]> git.saurik.com Git - wxWidgets.git/blob - configure
GetSubcontrols now const
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wxWindows 2.5.1.
5 #
6 # Report bugs to <wx-dev@lists.wxwindows.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46 do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100 fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
156 ;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS=" $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='wxWindows'
272 PACKAGE_TARNAME='wxwindows'
273 PACKAGE_VERSION='2.5.1'
274 PACKAGE_STRING='wxWindows 2.5.1'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
276
277 ac_unique_file="wx-config.in"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subdirs_all="$ac_subdirs_all src/expat"
316 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 LN_S CXXCPP subdirs 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 EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_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_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_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_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_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_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI 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_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI 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 LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
317 ac_subst_files=''
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
338
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654 done
655
656 if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676 do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683 done
684
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729 else
730 ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777 ac_env_CXX_set=${CXX+set}
778 ac_env_CXX_value=$CXX
779 ac_cv_env_CXX_set=${CXX+set}
780 ac_cv_env_CXX_value=$CXX
781 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_env_CXXFLAGS_value=$CXXFLAGS
783 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785 ac_env_CXXCPP_set=${CXXCPP+set}
786 ac_env_CXXCPP_value=$CXXCPP
787 ac_cv_env_CXXCPP_set=${CXXCPP+set}
788 ac_cv_env_CXXCPP_value=$CXXCPP
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
797 \`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819 cat <<_ACEOF
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
822 [$ac_default_prefix]
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
824 [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846 _ACEOF
847
848 cat <<\_ACEOF
849
850 X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854 System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858 _ACEOF
859 fi
860
861 if test -n "$ac_init_help"; then
862 case $ac_init_help in
863 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
864 esac
865 cat <<\_ACEOF
866
867 Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
871 --enable-monolithic build wxWindows as single library
872 --enable-plugins build parts of wxWindows as loadable components
873 --enable-universal use wxWindows GUI controls instead of native ones
874 --enable-nanox use NanoX
875 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
876 --enable-shared create shared library code
877 --enable-optimise create optimised code
878 --enable-debug same as debug_flag and debug_info
879 --enable-stl use STL for containers
880 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
881 --enable-debug_info create code with debugging information
882 --enable-debug_gdb create code with extra GDB debugging information
883 --enable-debug_cntxt use wxDebugContext
884 --enable-mem_tracing create code with memory tracing
885 --enable-profile create code with profiling information
886 --enable-no_rtti create code without RTTI information
887 --enable-no_exceptions create code without C++ exceptions handling
888 --enable-permissive compile code disregarding strict ANSI
889 --enable-no_deps create code without dependency information
890 --enable-compat22 enable wxWindows 2.2 compatibility
891 --disable-compat24 disable wxWindows 2.4 compatibility
892 --enable-rpath=DIR output the rpath flag from wx-config
893 --enable-intl use internationalization system
894 --enable-config use wxConfig (and derived) classes
895 --enable-protocols use wxProtocol and derived classes
896 --enable-ftp use wxFTP (requires wxProtocol
897 --enable-http use wxHTTP (requires wxProtocol
898 --enable-fileproto use wxFileProto class (requires wxProtocol
899 --enable-sockets use socket/network classes
900 --enable-ole use OLE classes (Win32 only)
901 --enable-dataobj use data object classes
902 --enable-ipc use interprocess communication (wxSocket etc.)
903 --enable-apple_ieee use the Apple IEEE codec
904 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
905 --enable-cmdline use wxCmdLineParser class
906 --enable-datetime use wxDateTime class
907 --enable-dialupman use dialup network classes
908 --enable-dynlib use wxLibrary class for DLL loading
909 --enable-dynamicloader use (new) wxDynamicLibrary class
910 --enable-exceptions build exception-safe library
911 --enable-ffile use wxFFile class
912 --enable-file use wxFile class
913 --enable-filesystem use virtual file systems classes
914 --enable-fontmap use font encodings conversion classes
915 --enable-fs_inet use virtual HTTP/FTP filesystems
916 --enable-fs_zip use virtual ZIP filesystems
917 --enable-geometry use geometry class
918 --enable-log use logging system
919 --enable-longlong use wxLongLong class
920 --enable-mimetype use wxMimeTypesManager
921 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
922 --enable-snglinst use wxSingleInstanceChecker class
923 --enable-streams use wxStream etc classes
924 --enable-std_iostreams use standard C++ stream classes
925 --enable-stopwatch use wxStopWatch class
926 --enable-sysoptions use wxSystemOptions
927 --enable-textbuf use wxTextBuffer class
928 --enable-textfile use wxTextFile class
929 --enable-timer use wxTimer class
930 --enable-unicode compile wxString with Unicode support
931 --enable-sound use wxSound class
932 --enable-wxprintfv use wxWindows implementation of vprintf()
933 --enable-zipstream use wxZipInputStream
934 --enable-gzstream use wxGzipInputStream
935 --enable-url use wxURL class
936 --enable-protocol use wxProtocol class
937 --enable-protocol-http HTTP support in wxProtocol
938 --enable-protocol-ftp FTP support in wxProtocol
939 --enable-protocol-file FILE support in wxProtocol
940 --enable-threads use threads
941 --enable-docview use document view architecture
942 --enable-help use help subsystem
943 --enable-mshtmlhelp use MS HTML Help (win32)
944 --enable-html use wxHTML sub-library
945 --enable-htmlhelp use wxHTML-based help
946 --enable-constraints use layout-constraints system
947 --enable-printarch use printing architecture
948 --enable-mdi use multiple document interface architecture
949 --enable-loggui use standard GUI logger
950 --enable-logwin use wxLogWindow
951 --enable-logdialog use wxLogDialog
952 --enable-postscript use wxPostscriptDC device context (default for gtk+)
953 --enable-prologio not available; see contrib
954 --enable-resources not available; see contrib
955 --enable-clipboard use wxClipboard class
956 --enable-dnd use Drag'n'Drop classes
957 --enable-metafile use win32 metafiles
958 --enable-controls use all usual controls
959 --enable-accel use accelerators
960 --enable-button use wxButton class
961 --enable-bmpbutton use wxBitmapButton class
962 --enable-calendar use wxCalendarCtrl class
963 --enable-caret use wxCaret class
964 --enable-checkbox use wxCheckBox class
965 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
966 --enable-choice use wxChoice class
967 --enable-combobox use wxComboBox class
968 --enable-display use wxDisplay class
969 --enable-gauge use wxGauge class
970 --enable-grid use wxGrid class
971 --enable-imaglist use wxImageList class
972 --enable-listbook use wxListbook class
973 --enable-listbox use wxListBox class
974 --enable-listctrl use wxListCtrl class
975 --enable-notebook use wxNotebook class
976 --enable-radiobox use wxRadioBox class
977 --enable-radiobtn use wxRadioButton class
978 --enable-sash use wxSashWindow class
979 --enable-scrollbar use wxScrollBar class and scrollable windows
980 --enable-slider use wxSlider class
981 --enable-spinbtn use wxSpinButton class
982 --enable-spinctrl use wxSpinCtrl class
983 --enable-splitter use wxSplitterWindow class
984 --enable-statbmp use wxStaticBitmap class
985 --enable-statbox use wxStaticBox class
986 --enable-statline use wxStaticLine class
987 --enable-stattext use wxStaticText class
988 --enable-statusbar use wxStatusBar class
989 --enable-tabdialog use wxTabControl class
990 --enable-textctrl use wxTextCtrl class
991 --enable-togglebtn use wxToggleButton class
992 --enable-toolbar use wxToolBar class
993 --enable-tbarnative use native wxToolBar class
994 --enable-tbarsmpl use wxToolBarSimple class
995 --enable-treectrl use wxTreeCtrl class
996 --enable-tipwindow use wxTipWindow class
997 --enable-popupwin use wxPopUpWindow class
998 --enable-commondlg use all common dialogs
999 --enable-choicedlg use wxChoiceDialog
1000 --enable-coldlg use wxColourDialog
1001 --enable-filedlg use wxFileDialog
1002 --enable-finddlg use wxFindReplaceDialog
1003 --enable-fontdlg use wxFontDialog
1004 --enable-dirdlg use wxDirDialog
1005 --enable-msgdlg use wxMessageDialog
1006 --enable-numberdlg use wxNumberEntryDialog
1007 --enable-splash use wxSplashScreen
1008 --enable-textdlg use wxTextDialog
1009 --enable-tipdlg use startup tips
1010 --enable-progressdlg use wxProgressDialog
1011 --enable-wizarddlg use wxWizard
1012 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1013 --enable-miniframe use wxMiniFrame class
1014 --enable-tooltips use wxToolTip class
1015 --enable-splines use spline drawing code
1016 --enable-validators use wxValidator and derived classes
1017 --enable-busyinfo use wxBusyInfo
1018 --enable-joystick use wxJoystick (Linux only)
1019 --enable-metafiles use wxMetaFile (Windows only)
1020 --enable-dragimage use wxDragImage
1021 --enable-accessibility enable accessibility support
1022 --enable-palette use wxPalette class
1023 --enable-image use wxImage class
1024 --enable-gif use gif images (GIF file format)
1025 --enable-pcx use pcx images (PCX file format)
1026 --enable-iff use iff images (IFF file format)
1027 --enable-pnm use pnm images (PNM file format)
1028 --enable-xpm use xpm images (XPM file format)
1029 --enable-icocur use Windows ICO and CUR formats
1030 --enable-official_build official build of wxWindows (win32 DLL only)
1031 --enable-vendor=VENDOR vendor name (win32 DLL only)
1032 --disable-largefile omit support for large files
1033 --disable-gtktest do not try to compile and run a test GTK+ program
1034 --disable-gtktest Do not try to compile and run a test GTK program
1035 --disable-sdltest Do not try to compile and run a test SDL program
1036 --disable-precomp-headers don't use precompiled headers even if compiler can
1037
1038 Optional Packages:
1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1041 --with-gtk use GTK+
1042 --with-motif use Motif/Lesstif
1043 --with-mac use Mac OS X
1044 --with-cocoa use Cocoa
1045 --with-wine use Wine
1046 --with-msw use MS-Windows
1047 --with-pm use OS/2 Presentation Manager
1048 --with-mgl use SciTech MGL
1049 --with-microwin use MicroWindows
1050 --with-x11 use X11
1051 --with-libpng use libpng (PNG image format)
1052 --with-libjpeg use libjpeg (JPEG file format)
1053 --with-libtiff use libtiff (TIFF file format)
1054 --with-libxpm use libxpm (XPM file format)
1055 --with-libmspack use libmspack (CHM help files loading)
1056 --with-sdl use SDL for audio on Unix
1057 --with-opengl use OpenGL (or Mesa)
1058 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1059 --with-regex enable support for wxRegEx class
1060 --with-zlib use zlib for LZW compression
1061 --with-odbc use the IODBC and wxODBC classes
1062 --with-expat enable XML support using expat parser
1063 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1064 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1065 --with-x use the X Window System
1066 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1067 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1068 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1069
1070 Some influential environment variables:
1071 CC C compiler command
1072 CFLAGS C compiler flags
1073 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1074 nonstandard directory <lib dir>
1075 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1076 headers in a nonstandard directory <include dir>
1077 CPP C preprocessor
1078 CXX C++ compiler command
1079 CXXFLAGS C++ compiler flags
1080 CXXCPP C++ preprocessor
1081
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1084
1085 Report bugs to <wx-dev@lists.wxwindows.org>.
1086 _ACEOF
1087 fi
1088
1089 if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1091 ac_popdir=`pwd`
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1094 ac_builddir=.
1095
1096 if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100 else
1101 ac_dir_suffix= ac_top_builddir=
1102 fi
1103
1104 case $srcdir in
1105 .) # No --srcdir option. We are building in place.
1106 ac_srcdir=.
1107 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=.
1109 else
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111 fi ;;
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1115 *) # Relative path.
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 esac
1119
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1122 case `pwd` in
1123 .) ac_abs_builddir="$ac_dir";;
1124 *)
1125 case "$ac_dir" in
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 *)
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1142 *)
1143 case $ac_srcdir in
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 *)
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156 esac;;
1157 esac
1158
1159 cd $ac_dir
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1162 echo
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1165 echo
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
1168 test -f $ac_srcdir/configure.in; then
1169 echo
1170 $ac_configure --help
1171 else
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173 fi
1174 cd $ac_popdir
1175 done
1176 fi
1177
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1180 cat <<\_ACEOF
1181 wxWindows configure 2.5.1
1182 generated by GNU Autoconf 2.59
1183
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1187 _ACEOF
1188 exit 0
1189 fi
1190 exec 5>config.log
1191 cat >&5 <<_ACEOF
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1194
1195 It was created by wxWindows $as_me 2.5.1, which was
1196 generated by GNU Autoconf 2.59. Invocation command line was
1197
1198 $ $0 $@
1199
1200 _ACEOF
1201 {
1202 cat <<_ASUNAME
1203 ## --------- ##
1204 ## Platform. ##
1205 ## --------- ##
1206
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1215
1216 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1217 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1220 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1221 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1222 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1223
1224 _ASUNAME
1225
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227 for as_dir in $PATH
1228 do
1229 IFS=$as_save_IFS
1230 test -z "$as_dir" && as_dir=.
1231 echo "PATH: $as_dir"
1232 done
1233
1234 } >&5
1235
1236 cat >&5 <<_ACEOF
1237
1238
1239 ## ----------- ##
1240 ## Core tests. ##
1241 ## ----------- ##
1242
1243 _ACEOF
1244
1245
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_configure_args=
1252 ac_configure_args0=
1253 ac_configure_args1=
1254 ac_sep=
1255 ac_must_keep_next=false
1256 for ac_pass in 1 2
1257 do
1258 for ac_arg
1259 do
1260 case $ac_arg in
1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1264 continue ;;
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 esac
1268 case $ac_pass in
1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270 2)
1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272 if test $ac_must_keep_next = true; then
1273 ac_must_keep_next=false # Got value, back to normal.
1274 else
1275 case $ac_arg in
1276 *=* | --config-cache | -C | -disable-* | --disable-* \
1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279 | -with-* | --with-* | -without-* | --without-* | --x)
1280 case "$ac_configure_args0 " in
1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282 esac
1283 ;;
1284 -* ) ac_must_keep_next=true ;;
1285 esac
1286 fi
1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288 # Get rid of the leading space.
1289 ac_sep=" "
1290 ;;
1291 esac
1292 done
1293 done
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log. We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303 # Save into config.log some information that might help in debugging.
1304 {
1305 echo
1306
1307 cat <<\_ASBOX
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1311 _ASBOX
1312 echo
1313 # The following way of writing the cache mishandles newlines in values,
1314 {
1315 (set) 2>&1 |
1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317 *ac_space=\ *)
1318 sed -n \
1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321 ;;
1322 *)
1323 sed -n \
1324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325 ;;
1326 esac;
1327 }
1328 echo
1329
1330 cat <<\_ASBOX
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1334 _ASBOX
1335 echo
1336 for ac_var in $ac_subst_vars
1337 do
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1340 done | sort
1341 echo
1342
1343 if test -n "$ac_subst_files"; then
1344 cat <<\_ASBOX
1345 ## ------------- ##
1346 ## Output files. ##
1347 ## ------------- ##
1348 _ASBOX
1349 echo
1350 for ac_var in $ac_subst_files
1351 do
1352 eval ac_val=$`echo $ac_var`
1353 echo "$ac_var='"'"'$ac_val'"'"'"
1354 done | sort
1355 echo
1356 fi
1357
1358 if test -s confdefs.h; then
1359 cat <<\_ASBOX
1360 ## ----------- ##
1361 ## confdefs.h. ##
1362 ## ----------- ##
1363 _ASBOX
1364 echo
1365 sed "/^$/d" confdefs.h | sort
1366 echo
1367 fi
1368 test "$ac_signal" != 0 &&
1369 echo "$as_me: caught signal $ac_signal"
1370 echo "$as_me: exit $exit_status"
1371 } >&5
1372 rm -f core *.core &&
1373 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374 exit $exit_status
1375 ' 0
1376 for ac_signal in 1 2 13 15; do
1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378 done
1379 ac_signal=0
1380
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 echo >confdefs.h
1385
1386 # Predefined preprocessor variables.
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410 _ACEOF
1411
1412
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416 if test "x$prefix" != xNONE; then
1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418 else
1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420 fi
1421 fi
1422 for ac_site_file in $CONFIG_SITE; do
1423 if test -r "$ac_site_file"; then
1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426 sed 's/^/| /' "$ac_site_file" >&5
1427 . "$ac_site_file"
1428 fi
1429 done
1430
1431 if test -r "$cache_file"; then
1432 # Some versions of bash will fail to source /dev/null (special
1433 # files actually), so we avoid doing that.
1434 if test -f "$cache_file"; then
1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1437 case $cache_file in
1438 [\\/]* | ?:[\\/]* ) . $cache_file;;
1439 *) . ./$cache_file;;
1440 esac
1441 fi
1442 else
1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1445 >$cache_file
1446 fi
1447
1448 # Check that the precious variables saved in the cache have kept the same
1449 # value.
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454 eval ac_new_set=\$ac_env_${ac_var}_set
1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456 eval ac_new_val="\$ac_env_${ac_var}_value"
1457 case $ac_old_set,$ac_new_set in
1458 set,)
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1462 ,set)
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1466 ,);;
1467 *)
1468 if test "x$ac_old_val" != "x$ac_new_val"; then
1469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1472 echo "$as_me: former value: $ac_old_val" >&2;}
1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1474 echo "$as_me: current value: $ac_new_val" >&2;}
1475 ac_cache_corrupted=:
1476 fi;;
1477 esac
1478 # Pass precious variables to config.status.
1479 if test "$ac_new_set" = set; then
1480 case $ac_new_val in
1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 *) ac_arg=$ac_var=$ac_new_val ;;
1484 esac
1485 case " $ac_configure_args " in
1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488 esac
1489 fi
1490 done
1491 if $ac_cache_corrupted; then
1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496 { (exit 1); exit 1; }; }
1497 fi
1498
1499 ac_ext=c
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534 ac_aux_dir=
1535 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1536 if test -f $ac_dir/install-sh; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/install-sh -c"
1539 break
1540 elif test -f $ac_dir/install.sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install.sh -c"
1543 break
1544 elif test -f $ac_dir/shtool; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 break
1548 fi
1549 done
1550 if test -z "$ac_aux_dir"; then
1551 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1552 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1553 { (exit 1); exit 1; }; }
1554 fi
1555 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558
1559 # Make sure we can run config.sub.
1560 $ac_config_sub sun4 >/dev/null 2>&1 ||
1561 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1562 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1563 { (exit 1); exit 1; }; }
1564
1565 echo "$as_me:$LINENO: checking build system type" >&5
1566 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1567 if test "${ac_cv_build+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570 ac_cv_build_alias=$build_alias
1571 test -z "$ac_cv_build_alias" &&
1572 ac_cv_build_alias=`$ac_config_guess`
1573 test -z "$ac_cv_build_alias" &&
1574 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1575 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1576 { (exit 1); exit 1; }; }
1577 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1578 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1579 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1580 { (exit 1); exit 1; }; }
1581
1582 fi
1583 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1584 echo "${ECHO_T}$ac_cv_build" >&6
1585 build=$ac_cv_build
1586 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1587 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1588 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589
1590
1591 echo "$as_me:$LINENO: checking host system type" >&5
1592 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1593 if test "${ac_cv_host+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596 ac_cv_host_alias=$host_alias
1597 test -z "$ac_cv_host_alias" &&
1598 ac_cv_host_alias=$ac_cv_build_alias
1599 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1600 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1601 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1602 { (exit 1); exit 1; }; }
1603
1604 fi
1605 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1606 echo "${ECHO_T}$ac_cv_host" >&6
1607 host=$ac_cv_host
1608 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1609 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1610 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611
1612
1613 echo "$as_me:$LINENO: checking target system type" >&5
1614 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1615 if test "${ac_cv_target+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 else
1618 ac_cv_target_alias=$target_alias
1619 test "x$ac_cv_target_alias" = "x" &&
1620 ac_cv_target_alias=$ac_cv_host_alias
1621 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1622 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1623 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1624 { (exit 1); exit 1; }; }
1625
1626 fi
1627 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1628 echo "${ECHO_T}$ac_cv_target" >&6
1629 target=$ac_cv_target
1630 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633
1634
1635 # The aliases save the names the user supplied, while $host etc.
1636 # will get canonicalized.
1637 test -n "$target_alias" &&
1638 test "$program_prefix$program_suffix$program_transform_name" = \
1639 NONENONEs,x,x, &&
1640 program_prefix=${target_alias}-
1641
1642
1643
1644 WX_MAJOR_VERSION_NUMBER=2
1645 WX_MINOR_VERSION_NUMBER=5
1646 WX_RELEASE_NUMBER=1
1647
1648 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1649 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1650
1651 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1652
1653 WX_CURRENT=1
1654 WX_REVISION=0
1655 WX_AGE=0
1656
1657
1658
1659 USE_UNIX=1
1660 USE_OS2=0
1661 USE_WIN32=0
1662 USE_DOS=0
1663 USE_BEOS=0
1664 USE_MAC=0
1665
1666 USE_AIX=
1667 USE_BSD= USE_DARWIN= USE_FREEBSD=
1668 USE_GNU= USE_HPUX=
1669 USE_LINUX=
1670 USE_NETBSD=
1671 USE_OPENBSD=
1672 USE_OSF= USE_SGI=
1673 USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1674 USE_ULTRIX=
1675 USE_UNIXWARE=
1676
1677 USE_ALPHA=
1678
1679 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1680
1681 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1682
1683 DEFAULT_wxUSE_COCOA=0
1684 DEFAULT_wxUSE_GTK=0
1685 DEFAULT_wxUSE_MAC=0
1686 DEFAULT_wxUSE_MGL=0
1687 DEFAULT_wxUSE_MICROWIN=0
1688 DEFAULT_wxUSE_MOTIF=0
1689 DEFAULT_wxUSE_MSW=0
1690 DEFAULT_wxUSE_PM=0
1691 DEFAULT_wxUSE_X11=0
1692
1693 DEFAULT_DEFAULT_wxUSE_COCOA=0
1694 DEFAULT_DEFAULT_wxUSE_GTK=0
1695 DEFAULT_DEFAULT_wxUSE_MAC=0
1696 DEFAULT_DEFAULT_wxUSE_MGL=0
1697 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1698 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1699 DEFAULT_DEFAULT_wxUSE_MSW=0
1700 DEFAULT_DEFAULT_wxUSE_PM=0
1701 DEFAULT_DEFAULT_wxUSE_X11=0
1702
1703 PROGRAM_EXT=
1704 SO_SUFFIX=so
1705 SAMPLES_RPATH_FLAG=
1706 SAMPLES_RPATH_POSTLINK=
1707
1708 case "${host}" in
1709 *-hp-hpux* )
1710 USE_HPUX=1
1711 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1712 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1713 SO_SUFFIX=sl
1714 cat >>confdefs.h <<\_ACEOF
1715 #define __HPUX__ 1
1716 _ACEOF
1717
1718 ;;
1719 *-*-linux* )
1720 USE_LINUX=1
1721 cat >>confdefs.h <<\_ACEOF
1722 #define __LINUX__ 1
1723 _ACEOF
1724
1725 TMP=`uname -m`
1726 if test "x$TMP" = "xalpha"; then
1727 USE_ALPHA=1
1728 cat >>confdefs.h <<\_ACEOF
1729 #define __ALPHA__ 1
1730 _ACEOF
1731
1732 fi
1733 DEFAULT_DEFAULT_wxUSE_GTK=1
1734 ;;
1735 *-*-gnu* )
1736 USE_GNU=1
1737 cat >>confdefs.h <<\_ACEOF
1738 #define __GNU__ 1
1739 _ACEOF
1740
1741 TMP=`uname -m`
1742 if test "x$TMP" = "xalpha"; then
1743 USE_ALPHA=1
1744 cat >>confdefs.h <<\_ACEOF
1745 #define __ALPHA__ 1
1746 _ACEOF
1747
1748 fi
1749 DEFAULT_DEFAULT_wxUSE_GTK=1
1750 ;;
1751 *-*-irix5* | *-*-irix6* )
1752 USE_SGI=1
1753 USE_SVR4=1
1754 cat >>confdefs.h <<\_ACEOF
1755 #define __SGI__ 1
1756 _ACEOF
1757
1758 cat >>confdefs.h <<\_ACEOF
1759 #define __SVR4__ 1
1760 _ACEOF
1761
1762 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1763 ;;
1764 *-*-solaris2* )
1765 USE_SUN=1
1766 USE_SOLARIS=1
1767 USE_SVR4=1
1768 cat >>confdefs.h <<\_ACEOF
1769 #define __SUN__ 1
1770 _ACEOF
1771
1772 cat >>confdefs.h <<\_ACEOF
1773 #define __SOLARIS__ 1
1774 _ACEOF
1775
1776 cat >>confdefs.h <<\_ACEOF
1777 #define __SVR4__ 1
1778 _ACEOF
1779
1780 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1781 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1782 ;;
1783 *-*-sunos4* )
1784 USE_SUN=1
1785 USE_SUNOS=1
1786 USE_BSD=1
1787 cat >>confdefs.h <<\_ACEOF
1788 #define __SUN__ 1
1789 _ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792 #define __SUNOS__ 1
1793 _ACEOF
1794
1795 cat >>confdefs.h <<\_ACEOF
1796 #define __BSD__ 1
1797 _ACEOF
1798
1799 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1800 ;;
1801 *-*-freebsd*)
1802 USE_BSD=1
1803 USE_FREEBSD=1
1804 cat >>confdefs.h <<\_ACEOF
1805 #define __FREEBSD__ 1
1806 _ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809 #define __BSD__ 1
1810 _ACEOF
1811
1812 DEFAULT_DEFAULT_wxUSE_GTK=1
1813 ;;
1814 *-*-openbsd*)
1815 USE_BSD=1
1816 USE_OPENBSD=1
1817 cat >>confdefs.h <<\_ACEOF
1818 #define __OPENBSD__ 1
1819 _ACEOF
1820
1821 cat >>confdefs.h <<\_ACEOF
1822 #define __BSD__ 1
1823 _ACEOF
1824
1825 DEFAULT_DEFAULT_wxUSE_GTK=1
1826 ;;
1827 *-*-netbsd*)
1828 USE_BSD=1
1829 USE_NETBSD=1
1830 cat >>confdefs.h <<\_ACEOF
1831 #define __NETBSD__ 1
1832 _ACEOF
1833
1834 cat >>confdefs.h <<\_ACEOF
1835 #define __BSD__ 1
1836 _ACEOF
1837
1838 DEFAULT_DEFAULT_wxUSE_GTK=1
1839 ;;
1840 *-*-osf* )
1841 USE_ALPHA=1
1842 USE_OSF=1
1843 cat >>confdefs.h <<\_ACEOF
1844 #define __ALPHA__ 1
1845 _ACEOF
1846
1847 cat >>confdefs.h <<\_ACEOF
1848 #define __OSF__ 1
1849 _ACEOF
1850
1851 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1852 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1853 ;;
1854 *-*-dgux5* )
1855 USE_ALPHA=1
1856 USE_SVR4=1
1857 cat >>confdefs.h <<\_ACEOF
1858 #define __ALPHA__ 1
1859 _ACEOF
1860
1861 cat >>confdefs.h <<\_ACEOF
1862 #define __SVR4__ 1
1863 _ACEOF
1864
1865 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1866 ;;
1867 *-*-sysv5* )
1868 USE_SYSV=1
1869 USE_SVR4=1
1870 cat >>confdefs.h <<\_ACEOF
1871 #define __SYSV__ 1
1872 _ACEOF
1873
1874 cat >>confdefs.h <<\_ACEOF
1875 #define __SVR4__ 1
1876 _ACEOF
1877
1878 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1879 ;;
1880 *-*-aix* )
1881 USE_AIX=1
1882 USE_SYSV=1
1883 USE_SVR4=1
1884 SO_SUFFIX=a
1885 cat >>confdefs.h <<\_ACEOF
1886 #define __AIX__ 1
1887 _ACEOF
1888
1889 cat >>confdefs.h <<\_ACEOF
1890 #define __SYSV__ 1
1891 _ACEOF
1892
1893 cat >>confdefs.h <<\_ACEOF
1894 #define __SVR4__ 1
1895 _ACEOF
1896
1897 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1898 ;;
1899
1900 *-*-*UnixWare*)
1901 USE_SYSV=1
1902 USE_SVR4=1
1903 USE_UNIXWARE=1
1904 cat >>confdefs.h <<\_ACEOF
1905 #define __UNIXWARE__ 1
1906 _ACEOF
1907
1908 ;;
1909
1910 *-*-cygwin* | *-*-mingw32* )
1911 SO_SUFFIX=dll
1912 PROGRAM_EXT=".exe"
1913 RESCOMP=windres
1914 DEFAULT_DEFAULT_wxUSE_MSW=1
1915 ;;
1916
1917 *-pc-msdosdjgpp )
1918 USE_UNIX=0
1919 USE_DOS=1
1920 cat >>confdefs.h <<\_ACEOF
1921 #define __DOS__ 1
1922 _ACEOF
1923
1924 PROGRAM_EXT=".exe"
1925 DEFAULT_DEFAULT_wxUSE_MGL=1
1926 LIBS="$LIBS -lstdc++"
1927 ;;
1928
1929 *-pc-os2_emx | *-pc-os2-emx )
1930 cat >>confdefs.h <<\_ACEOF
1931 #define __EMX__ 1
1932 _ACEOF
1933
1934 USE_OS2=1
1935 cat >>confdefs.h <<\_ACEOF
1936 #define __OS2__ 1
1937 _ACEOF
1938
1939 PROGRAM_EXT=".exe"
1940 DEFAULT_DEFAULT_wxUSE_PM=1
1941 CXX=gcc
1942 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
1943 ac_executable_extensions=".exe"
1944 export ac_executable_extensions
1945 ac_save_IFS="$IFS"
1946 IFS='\\'
1947 ac_TEMP_PATH=
1948 for ac_dir in $PATH; do
1949 IFS=$ac_save_IFS
1950 if test -z "$ac_TEMP_PATH"; then
1951 ac_TEMP_PATH="$ac_dir"
1952 else
1953 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1954 fi
1955 done
1956 export PATH="$ac_TEMP_PATH"
1957 unset ac_TEMP_PATH
1958 ;;
1959
1960 powerpc-*-darwin* )
1961 USE_BSD=1
1962 USE_DARWIN=1
1963 SO_SUFFIX=dylib
1964 cat >>confdefs.h <<\_ACEOF
1965 #define __BSD__ 1
1966 _ACEOF
1967
1968 cat >>confdefs.h <<\_ACEOF
1969 #define __DARWIN__ 1
1970 _ACEOF
1971
1972 cat >>confdefs.h <<\_ACEOF
1973 #define __POWERPC__ 1
1974 _ACEOF
1975
1976 cat >>confdefs.h <<\_ACEOF
1977 #define TARGET_CARBON 1
1978 _ACEOF
1979
1980 DEFAULT_DEFAULT_wxUSE_MAC=1
1981 ;;
1982
1983 *-*-beos* )
1984 USE_BEOS=1
1985 cat >>confdefs.h <<\_ACEOF
1986 #define __BEOS__ 1
1987 _ACEOF
1988
1989 ;;
1990
1991 *)
1992 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1993 echo "$as_me: error: unknown system type ${host}." >&2;}
1994 { (exit 1); exit 1; }; }
1995 esac
1996
1997
1998
1999
2000 wx_arg_cache_file="configarg.cache"
2001 echo "loading argument cache $wx_arg_cache_file"
2002 rm -f ${wx_arg_cache_file}.tmp
2003 touch ${wx_arg_cache_file}.tmp
2004 touch ${wx_arg_cache_file}
2005
2006
2007 DEBUG_CONFIGURE=0
2008 if test $DEBUG_CONFIGURE = 1; then
2009 DEFAULT_wxUSE_UNIVERSAL=no
2010 DEFAULT_wxUSE_STL=no
2011
2012 DEFAULT_wxUSE_NANOX=no
2013
2014 DEFAULT_wxUSE_THREADS=yes
2015
2016 DEFAULT_wxUSE_SHARED=yes
2017 DEFAULT_wxUSE_OPTIMISE=no
2018 DEFAULT_wxUSE_PROFILE=no
2019 DEFAULT_wxUSE_NO_DEPS=no
2020 DEFAULT_wxUSE_NO_RTTI=no
2021 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2022 DEFAULT_wxUSE_PERMISSIVE=no
2023 DEFAULT_wxUSE_DEBUG_FLAG=yes
2024 DEFAULT_wxUSE_DEBUG_INFO=yes
2025 DEFAULT_wxUSE_DEBUG_GDB=yes
2026 DEFAULT_wxUSE_MEM_TRACING=no
2027 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2028 DEFAULT_wxUSE_DMALLOC=no
2029 DEFAULT_wxUSE_APPLE_IEEE=no
2030
2031 DEFAULT_wxUSE_EXCEPTIONS=no
2032 DEFAULT_wxUSE_LOG=yes
2033 DEFAULT_wxUSE_LOGWINDOW=no
2034 DEFAULT_wxUSE_LOGGUI=no
2035 DEFAULT_wxUSE_LOGDIALOG=no
2036
2037 DEFAULT_wxUSE_GUI=yes
2038 DEFAULT_wxUSE_CONTROLS=no
2039
2040 DEFAULT_wxUSE_REGEX=no
2041 DEFAULT_wxUSE_XML=no
2042 DEFAULT_wxUSE_EXPAT=no
2043 DEFAULT_wxUSE_ZLIB=no
2044 DEFAULT_wxUSE_LIBPNG=no
2045 DEFAULT_wxUSE_LIBJPEG=no
2046 DEFAULT_wxUSE_LIBTIFF=no
2047 DEFAULT_wxUSE_LIBXPM=no
2048 DEFAULT_wxUSE_LIBMSPACK=no
2049 DEFAULT_wxUSE_LIBSDL=no
2050 DEFAULT_wxUSE_ODBC=no
2051 DEFAULT_wxUSE_OPENGL=no
2052
2053 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2054 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2055 DEFAULT_wxUSE_STD_IOSTREAM=no
2056 DEFAULT_wxUSE_CMDLINE_PARSER=no
2057 DEFAULT_wxUSE_DATETIME=no
2058 DEFAULT_wxUSE_TIMER=no
2059 DEFAULT_wxUSE_STOPWATCH=no
2060 DEFAULT_wxUSE_FILE=no
2061 DEFAULT_wxUSE_FFILE=no
2062 DEFAULT_wxUSE_TEXTBUFFER=no
2063 DEFAULT_wxUSE_TEXTFILE=no
2064 DEFAULT_wxUSE_SOUND=no
2065 DEFAULT_wxUSE_INTL=no
2066 DEFAULT_wxUSE_CONFIG=no
2067 DEFAULT_wxUSE_FONTMAP=no
2068 DEFAULT_wxUSE_STREAMS=no
2069 DEFAULT_wxUSE_SOCKETS=no
2070 DEFAULT_wxUSE_OLE=no
2071 DEFAULT_wxUSE_DATAOBJ=no
2072 DEFAULT_wxUSE_DIALUP_MANAGER=no
2073 DEFAULT_wxUSE_JOYSTICK=no
2074 DEFAULT_wxUSE_DYNLIB_CLASS=no
2075 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2076 DEFAULT_wxUSE_LONGLONG=no
2077 DEFAULT_wxUSE_GEOMETRY=no
2078
2079 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2080 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2081 DEFAULT_wxUSE_POSTSCRIPT=no
2082
2083 DEFAULT_wxUSE_CLIPBOARD=no
2084 DEFAULT_wxUSE_TOOLTIPS=no
2085 DEFAULT_wxUSE_DRAG_AND_DROP=no
2086 DEFAULT_wxUSE_DRAGIMAGE=no
2087 DEFAULT_wxUSE_SPLINES=no
2088
2089 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2090 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2091 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2092
2093 DEFAULT_wxUSE_RESOURCES=no
2094 DEFAULT_wxUSE_CONSTRAINTS=no
2095 DEFAULT_wxUSE_IPC=no
2096 DEFAULT_wxUSE_HELP=no
2097 DEFAULT_wxUSE_MS_HTML_HELP=no
2098 DEFAULT_wxUSE_WXHTML_HELP=no
2099 DEFAULT_wxUSE_TREELAYOUT=no
2100 DEFAULT_wxUSE_METAFILE=no
2101 DEFAULT_wxUSE_MIMETYPE=no
2102 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2103 DEFAULT_wxUSE_PROTOCOL=no
2104 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2105 DEFAULT_wxUSE_PROTOCOL_FTP=no
2106 DEFAULT_wxUSE_PROTOCOL_FILE=no
2107 DEFAULT_wxUSE_URL=no
2108
2109 DEFAULT_wxUSE_COMMONDLGS=no
2110 DEFAULT_wxUSE_CHOICEDLG=no
2111 DEFAULT_wxUSE_COLOURDLG=no
2112 DEFAULT_wxUSE_DIRDLG=no
2113 DEFAULT_wxUSE_FILEDLG=no
2114 DEFAULT_wxUSE_FINDREPLDLG=no
2115 DEFAULT_wxUSE_FONTDLG=no
2116 DEFAULT_wxUSE_MSGDLG=no
2117 DEFAULT_wxUSE_NUMBERDLG=no
2118 DEFAULT_wxUSE_TEXTDLG=no
2119 DEFAULT_wxUSE_SPLASH=no
2120 DEFAULT_wxUSE_STARTUP_TIPS=no
2121 DEFAULT_wxUSE_PROGRESSDLG=no
2122 DEFAULT_wxUSE_WIZARDDLG=no
2123
2124 DEFAULT_wxUSE_MENUS=no
2125 DEFAULT_wxUSE_MINIFRAME=no
2126 DEFAULT_wxUSE_HTML=no
2127 DEFAULT_wxUSE_FILESYSTEM=no
2128 DEFAULT_wxUSE_FS_INET=no
2129 DEFAULT_wxUSE_FS_ZIP=no
2130 DEFAULT_wxUSE_BUSYINFO=no
2131 DEFAULT_wxUSE_ZIPSTREAM=no
2132 DEFAULT_wxUSE_GZSTREAM=no
2133 DEFAULT_wxUSE_VALIDATORS=no
2134
2135 DEFAULT_wxUSE_ACCEL=no
2136 DEFAULT_wxUSE_BUTTON=no
2137 DEFAULT_wxUSE_BMPBUTTON=no
2138 DEFAULT_wxUSE_CALCTRL=no
2139 DEFAULT_wxUSE_CARET=no
2140 DEFAULT_wxUSE_CHECKBOX=no
2141 DEFAULT_wxUSE_CHECKLST=no
2142 DEFAULT_wxUSE_CHOICE=no
2143 DEFAULT_wxUSE_COMBOBOX=no
2144 DEFAULT_wxUSE_DISPLAY=no
2145 DEFAULT_wxUSE_GAUGE=no
2146 DEFAULT_wxUSE_GRID=no
2147 DEFAULT_wxUSE_IMAGLIST=no
2148 DEFAULT_wxUSE_LISTBOOK=no
2149 DEFAULT_wxUSE_LISTBOX=no
2150 DEFAULT_wxUSE_LISTCTRL=no
2151 DEFAULT_wxUSE_NOTEBOOK=no
2152 DEFAULT_wxUSE_RADIOBOX=no
2153 DEFAULT_wxUSE_RADIOBTN=no
2154 DEFAULT_wxUSE_SASH=no
2155 DEFAULT_wxUSE_SCROLLBAR=no
2156 DEFAULT_wxUSE_SLIDER=no
2157 DEFAULT_wxUSE_SPINBTN=no
2158 DEFAULT_wxUSE_SPINCTRL=no
2159 DEFAULT_wxUSE_SPLITTER=no
2160 DEFAULT_wxUSE_STATBMP=no
2161 DEFAULT_wxUSE_STATBOX=no
2162 DEFAULT_wxUSE_STATLINE=no
2163 DEFAULT_wxUSE_STATTEXT=no
2164 DEFAULT_wxUSE_STATUSBAR=yes
2165 DEFAULT_wxUSE_TABDIALOG=no
2166 DEFAULT_wxUSE_TEXTCTRL=no
2167 DEFAULT_wxUSE_TOGGLEBTN=no
2168 DEFAULT_wxUSE_TOOLBAR=no
2169 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2170 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2171 DEFAULT_wxUSE_TREECTRL=no
2172 DEFAULT_wxUSE_POPUPWIN=no
2173 DEFAULT_wxUSE_TIPWINDOW=no
2174
2175 DEFAULT_wxUSE_UNICODE=no
2176 DEFAULT_wxUSE_UNICODE_MSLU=no
2177 DEFAULT_wxUSE_WCSRTOMBS=no
2178
2179 DEFAULT_wxUSE_PALETTE=no
2180 DEFAULT_wxUSE_IMAGE=no
2181 DEFAULT_wxUSE_GIF=no
2182 DEFAULT_wxUSE_PCX=no
2183 DEFAULT_wxUSE_PNM=no
2184 DEFAULT_wxUSE_IFF=no
2185 DEFAULT_wxUSE_XPM=no
2186 DEFAULT_wxUSE_ICO_CUR=no
2187 DEFAULT_wxUSE_ACCESSIBILITY=no
2188
2189 DEFAULT_wxUSE_MONOLITHIC=no
2190 DEFAULT_wxUSE_PLUGINS=no
2191 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2192 else
2193 DEFAULT_wxUSE_UNIVERSAL=no
2194 DEFAULT_wxUSE_STL=no
2195
2196 DEFAULT_wxUSE_NANOX=no
2197
2198 DEFAULT_wxUSE_THREADS=yes
2199
2200 DEFAULT_wxUSE_SHARED=yes
2201 DEFAULT_wxUSE_OPTIMISE=yes
2202 DEFAULT_wxUSE_PROFILE=no
2203 DEFAULT_wxUSE_NO_DEPS=no
2204 DEFAULT_wxUSE_NO_RTTI=no
2205 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2206 DEFAULT_wxUSE_PERMISSIVE=no
2207 DEFAULT_wxUSE_DEBUG_FLAG=no
2208 DEFAULT_wxUSE_DEBUG_INFO=no
2209 DEFAULT_wxUSE_DEBUG_GDB=no
2210 DEFAULT_wxUSE_MEM_TRACING=no
2211 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2212 DEFAULT_wxUSE_DMALLOC=no
2213 DEFAULT_wxUSE_APPLE_IEEE=yes
2214
2215 DEFAULT_wxUSE_EXCEPTIONS=yes
2216 DEFAULT_wxUSE_LOG=yes
2217 DEFAULT_wxUSE_LOGWINDOW=yes
2218 DEFAULT_wxUSE_LOGGUI=yes
2219 DEFAULT_wxUSE_LOGDIALOG=yes
2220
2221 DEFAULT_wxUSE_GUI=yes
2222
2223 DEFAULT_wxUSE_REGEX=yes
2224 DEFAULT_wxUSE_XML=yes
2225 DEFAULT_wxUSE_EXPAT=yes
2226 DEFAULT_wxUSE_ZLIB=yes
2227 DEFAULT_wxUSE_LIBPNG=yes
2228 DEFAULT_wxUSE_LIBJPEG=yes
2229 DEFAULT_wxUSE_LIBTIFF=yes
2230 DEFAULT_wxUSE_LIBXPM=yes
2231 DEFAULT_wxUSE_LIBMSPACK=yes
2232 DEFAULT_wxUSE_LIBSDL=no
2233 DEFAULT_wxUSE_ODBC=no
2234 DEFAULT_wxUSE_OPENGL=no
2235
2236 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2237 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2238 DEFAULT_wxUSE_STD_IOSTREAM=no
2239 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2240 DEFAULT_wxUSE_DATETIME=yes
2241 DEFAULT_wxUSE_TIMER=yes
2242 DEFAULT_wxUSE_STOPWATCH=yes
2243 DEFAULT_wxUSE_FILE=yes
2244 DEFAULT_wxUSE_FFILE=yes
2245 DEFAULT_wxUSE_TEXTBUFFER=yes
2246 DEFAULT_wxUSE_TEXTFILE=yes
2247 DEFAULT_wxUSE_SOUND=yes
2248 DEFAULT_wxUSE_INTL=yes
2249 DEFAULT_wxUSE_CONFIG=yes
2250 DEFAULT_wxUSE_FONTMAP=yes
2251 DEFAULT_wxUSE_STREAMS=yes
2252 DEFAULT_wxUSE_SOCKETS=yes
2253 DEFAULT_wxUSE_OLE=yes
2254 DEFAULT_wxUSE_DATAOBJ=yes
2255 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2256 DEFAULT_wxUSE_JOYSTICK=yes
2257 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2258 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2259 DEFAULT_wxUSE_LONGLONG=yes
2260 DEFAULT_wxUSE_GEOMETRY=yes
2261
2262 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2263 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2264 DEFAULT_wxUSE_POSTSCRIPT=yes
2265
2266 DEFAULT_wxUSE_CLIPBOARD=yes
2267 DEFAULT_wxUSE_TOOLTIPS=yes
2268 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2269 DEFAULT_wxUSE_DRAGIMAGE=yes
2270 DEFAULT_wxUSE_SPLINES=yes
2271
2272 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2273 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2274 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2275
2276 DEFAULT_wxUSE_RESOURCES=no
2277 DEFAULT_wxUSE_CONSTRAINTS=yes
2278 DEFAULT_wxUSE_IPC=yes
2279 DEFAULT_wxUSE_HELP=yes
2280 DEFAULT_wxUSE_MS_HTML_HELP=yes
2281 DEFAULT_wxUSE_WXHTML_HELP=yes
2282 DEFAULT_wxUSE_TREELAYOUT=yes
2283 DEFAULT_wxUSE_METAFILE=yes
2284 DEFAULT_wxUSE_MIMETYPE=yes
2285 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2286 DEFAULT_wxUSE_PROTOCOL=yes
2287 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2288 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2289 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2290 DEFAULT_wxUSE_URL=yes
2291
2292 DEFAULT_wxUSE_COMMONDLGS=yes
2293 DEFAULT_wxUSE_CHOICEDLG=yes
2294 DEFAULT_wxUSE_COLOURDLG=yes
2295 DEFAULT_wxUSE_DIRDLG=yes
2296 DEFAULT_wxUSE_FILEDLG=yes
2297 DEFAULT_wxUSE_FINDREPLDLG=yes
2298 DEFAULT_wxUSE_FONTDLG=yes
2299 DEFAULT_wxUSE_MSGDLG=yes
2300 DEFAULT_wxUSE_NUMBERDLG=yes
2301 DEFAULT_wxUSE_TEXTDLG=yes
2302 DEFAULT_wxUSE_SPLASH=yes
2303 DEFAULT_wxUSE_STARTUP_TIPS=yes
2304 DEFAULT_wxUSE_PROGRESSDLG=yes
2305 DEFAULT_wxUSE_WIZARDDLG=yes
2306
2307 DEFAULT_wxUSE_MENUS=yes
2308 DEFAULT_wxUSE_MINIFRAME=yes
2309 DEFAULT_wxUSE_HTML=yes
2310 DEFAULT_wxUSE_FILESYSTEM=yes
2311 DEFAULT_wxUSE_FS_INET=yes
2312 DEFAULT_wxUSE_FS_ZIP=yes
2313 DEFAULT_wxUSE_BUSYINFO=yes
2314 DEFAULT_wxUSE_ZIPSTREAM=yes
2315 DEFAULT_wxUSE_GZSTREAM=yes
2316 DEFAULT_wxUSE_VALIDATORS=yes
2317
2318 DEFAULT_wxUSE_ACCEL=yes
2319 DEFAULT_wxUSE_BUTTON=yes
2320 DEFAULT_wxUSE_BMPBUTTON=yes
2321 DEFAULT_wxUSE_CALCTRL=yes
2322 DEFAULT_wxUSE_CARET=yes
2323 DEFAULT_wxUSE_CHECKBOX=yes
2324 DEFAULT_wxUSE_CHECKLST=yes
2325 DEFAULT_wxUSE_CHOICE=yes
2326 DEFAULT_wxUSE_COMBOBOX=yes
2327 DEFAULT_wxUSE_DISPLAY=no
2328 DEFAULT_wxUSE_GAUGE=yes
2329 DEFAULT_wxUSE_GRID=yes
2330 DEFAULT_wxUSE_IMAGLIST=yes
2331 DEFAULT_wxUSE_LISTBOOK=yes
2332 DEFAULT_wxUSE_LISTBOX=yes
2333 DEFAULT_wxUSE_LISTCTRL=yes
2334 DEFAULT_wxUSE_NOTEBOOK=yes
2335 DEFAULT_wxUSE_RADIOBOX=yes
2336 DEFAULT_wxUSE_RADIOBTN=yes
2337 DEFAULT_wxUSE_SASH=yes
2338 DEFAULT_wxUSE_SCROLLBAR=yes
2339 DEFAULT_wxUSE_SLIDER=yes
2340 DEFAULT_wxUSE_SPINBTN=yes
2341 DEFAULT_wxUSE_SPINCTRL=yes
2342 DEFAULT_wxUSE_SPLITTER=yes
2343 DEFAULT_wxUSE_STATBMP=yes
2344 DEFAULT_wxUSE_STATBOX=yes
2345 DEFAULT_wxUSE_STATLINE=yes
2346 DEFAULT_wxUSE_STATTEXT=yes
2347 DEFAULT_wxUSE_STATUSBAR=yes
2348 DEFAULT_wxUSE_TABDIALOG=no
2349 DEFAULT_wxUSE_TEXTCTRL=yes
2350 DEFAULT_wxUSE_TOGGLEBTN=yes
2351 DEFAULT_wxUSE_TOOLBAR=yes
2352 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2353 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2354 DEFAULT_wxUSE_TREECTRL=yes
2355 DEFAULT_wxUSE_POPUPWIN=yes
2356 DEFAULT_wxUSE_TIPWINDOW=yes
2357
2358 DEFAULT_wxUSE_UNICODE=no
2359 DEFAULT_wxUSE_UNICODE_MSLU=yes
2360 DEFAULT_wxUSE_WCSRTOMBS=no
2361
2362 DEFAULT_wxUSE_PALETTE=yes
2363 DEFAULT_wxUSE_IMAGE=yes
2364 DEFAULT_wxUSE_GIF=yes
2365 DEFAULT_wxUSE_PCX=yes
2366 DEFAULT_wxUSE_IFF=no
2367 DEFAULT_wxUSE_PNM=yes
2368 DEFAULT_wxUSE_XPM=yes
2369 DEFAULT_wxUSE_ICO_CUR=yes
2370 DEFAULT_wxUSE_ACCESSIBILITY=no
2371
2372 DEFAULT_wxUSE_MONOLITHIC=no
2373 DEFAULT_wxUSE_PLUGINS=no
2374 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2375 fi
2376
2377
2378
2379 for toolkit in `echo $ALL_TOOLKITS`; do
2380 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2381 if test "x$LINE" != "x" ; then
2382 has_toolkit_in_cache=1
2383 eval "DEFAULT_$LINE"
2384 eval "CACHE_$toolkit=1"
2385 fi
2386 done
2387
2388
2389
2390 enablestring=
2391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2392 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2393 no_cache=0
2394 # Check whether --enable-gui or --disable-gui was given.
2395 if test "${enable_gui+set}" = set; then
2396 enableval="$enable_gui"
2397
2398 if test "$enableval" = yes; then
2399 ac_cv_use_gui='wxUSE_GUI=yes'
2400 else
2401 ac_cv_use_gui='wxUSE_GUI=no'
2402 fi
2403
2404 else
2405
2406 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2407 if test "x$LINE" != x ; then
2408 eval "DEFAULT_$LINE"
2409 else
2410 no_cache=1
2411 fi
2412
2413 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2414
2415 fi;
2416
2417 eval "$ac_cv_use_gui"
2418 if test "$no_cache" != 1; then
2419 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2420 fi
2421
2422 if test "$wxUSE_GUI" = yes; then
2423 echo "$as_me:$LINENO: result: yes" >&5
2424 echo "${ECHO_T}yes" >&6
2425 else
2426 echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6
2428 fi
2429
2430
2431 enablestring=
2432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2433 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2434 no_cache=0
2435 # Check whether --enable-monolithic or --disable-monolithic was given.
2436 if test "${enable_monolithic+set}" = set; then
2437 enableval="$enable_monolithic"
2438
2439 if test "$enableval" = yes; then
2440 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2441 else
2442 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2443 fi
2444
2445 else
2446
2447 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2448 if test "x$LINE" != x ; then
2449 eval "DEFAULT_$LINE"
2450 else
2451 no_cache=1
2452 fi
2453
2454 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2455
2456 fi;
2457
2458 eval "$ac_cv_use_monolithic"
2459 if test "$no_cache" != 1; then
2460 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2461 fi
2462
2463 if test "$wxUSE_MONOLITHIC" = yes; then
2464 echo "$as_me:$LINENO: result: yes" >&5
2465 echo "${ECHO_T}yes" >&6
2466 else
2467 echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6
2469 fi
2470
2471
2472 enablestring=
2473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2474 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2475 no_cache=0
2476 # Check whether --enable-plugins or --disable-plugins was given.
2477 if test "${enable_plugins+set}" = set; then
2478 enableval="$enable_plugins"
2479
2480 if test "$enableval" = yes; then
2481 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2482 else
2483 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2484 fi
2485
2486 else
2487
2488 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2489 if test "x$LINE" != x ; then
2490 eval "DEFAULT_$LINE"
2491 else
2492 no_cache=1
2493 fi
2494
2495 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2496
2497 fi;
2498
2499 eval "$ac_cv_use_plugins"
2500 if test "$no_cache" != 1; then
2501 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2502 fi
2503
2504 if test "$wxUSE_PLUGINS" = yes; then
2505 echo "$as_me:$LINENO: result: yes" >&5
2506 echo "${ECHO_T}yes" >&6
2507 else
2508 echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2510 fi
2511
2512
2513 if test "$wxUSE_GUI" = "yes"; then
2514
2515
2516 enablestring=
2517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2518 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2519 no_cache=0
2520 # Check whether --enable-universal or --disable-universal was given.
2521 if test "${enable_universal+set}" = set; then
2522 enableval="$enable_universal"
2523
2524 if test "$enableval" = yes; then
2525 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2526 else
2527 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2528 fi
2529
2530 else
2531
2532 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2533 if test "x$LINE" != x ; then
2534 eval "DEFAULT_$LINE"
2535 else
2536 no_cache=1
2537 fi
2538
2539 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2540
2541 fi;
2542
2543 eval "$ac_cv_use_universal"
2544 if test "$no_cache" != 1; then
2545 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2546 fi
2547
2548 if test "$wxUSE_UNIVERSAL" = yes; then
2549 echo "$as_me:$LINENO: result: yes" >&5
2550 echo "${ECHO_T}yes" >&6
2551 else
2552 echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2554 fi
2555
2556
2557 # Check whether --with-gtk or --without-gtk was given.
2558 if test "${with_gtk+set}" = set; then
2559 withval="$with_gtk"
2560 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2561 fi;
2562
2563 # Check whether --with-motif or --without-motif was given.
2564 if test "${with_motif+set}" = set; then
2565 withval="$with_motif"
2566 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2567 fi;
2568
2569 # Check whether --with-mac or --without-mac was given.
2570 if test "${with_mac+set}" = set; then
2571 withval="$with_mac"
2572 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2573 fi;
2574
2575 # Check whether --with-cocoa or --without-cocoa was given.
2576 if test "${with_cocoa+set}" = set; then
2577 withval="$with_cocoa"
2578 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2579 fi;
2580
2581 # Check whether --with-wine or --without-wine was given.
2582 if test "${with_wine+set}" = set; then
2583 withval="$with_wine"
2584 wxUSE_WINE="$withval" CACHE_WINE=1
2585 fi;
2586
2587 # Check whether --with-msw or --without-msw was given.
2588 if test "${with_msw+set}" = set; then
2589 withval="$with_msw"
2590 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2591 fi;
2592
2593 # Check whether --with-pm or --without-pm was given.
2594 if test "${with_pm+set}" = set; then
2595 withval="$with_pm"
2596 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2597 fi;
2598
2599 # Check whether --with-mgl or --without-mgl was given.
2600 if test "${with_mgl+set}" = set; then
2601 withval="$with_mgl"
2602 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2603 fi;
2604
2605 # Check whether --with-microwin or --without-microwin was given.
2606 if test "${with_microwin+set}" = set; then
2607 withval="$with_microwin"
2608 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2609 fi;
2610
2611 # Check whether --with-x11 or --without-x11 was given.
2612 if test "${with_x11+set}" = set; then
2613 withval="$with_x11"
2614 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2615 fi;
2616
2617 enablestring=
2618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2619 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2620 no_cache=0
2621 # Check whether --enable-nanox or --disable-nanox was given.
2622 if test "${enable_nanox+set}" = set; then
2623 enableval="$enable_nanox"
2624
2625 if test "$enableval" = yes; then
2626 ac_cv_use_nanox='wxUSE_NANOX=yes'
2627 else
2628 ac_cv_use_nanox='wxUSE_NANOX=no'
2629 fi
2630
2631 else
2632
2633 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2634 if test "x$LINE" != x ; then
2635 eval "DEFAULT_$LINE"
2636 else
2637 no_cache=1
2638 fi
2639
2640 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2641
2642 fi;
2643
2644 eval "$ac_cv_use_nanox"
2645 if test "$no_cache" != 1; then
2646 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2647 fi
2648
2649 if test "$wxUSE_NANOX" = yes; then
2650 echo "$as_me:$LINENO: result: yes" >&5
2651 echo "${ECHO_T}yes" >&6
2652 else
2653 echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6
2655 fi
2656
2657
2658
2659 enablestring=
2660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2661 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2662 no_cache=0
2663 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2664 if test "${enable_gtk2+set}" = set; then
2665 enableval="$enable_gtk2"
2666
2667 if test "$enableval" = yes; then
2668 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2669 else
2670 ac_cv_use_gtk2='wxUSE_GTK2=no'
2671 fi
2672
2673 else
2674
2675 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2676 if test "x$LINE" != x ; then
2677 eval "DEFAULT_$LINE"
2678 else
2679 no_cache=1
2680 fi
2681
2682 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2683
2684 fi;
2685
2686 eval "$ac_cv_use_gtk2"
2687 if test "$no_cache" != 1; then
2688 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2689 fi
2690
2691 if test "$wxUSE_GTK2" = yes; then
2692 echo "$as_me:$LINENO: result: yes" >&5
2693 echo "${ECHO_T}yes" >&6
2694 else
2695 echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6
2697 fi
2698
2699
2700
2701 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2702 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2703 no_cache=0
2704
2705 # Check whether --with-libpng or --without-libpng was given.
2706 if test "${with_libpng+set}" = set; then
2707 withval="$with_libpng"
2708
2709 if test "$withval" = yes; then
2710 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2711 elif test "$withval" = no; then
2712 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2713 elif test "$withval" = sys; then
2714 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2715 elif test "$withval" = builtin; then
2716 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2717 else
2718 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2719 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2720 { (exit 1); exit 1; }; }
2721 fi
2722
2723 else
2724
2725 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2726 if test "x$LINE" != x ; then
2727 eval "DEFAULT_$LINE"
2728 else
2729 no_cache=1
2730 fi
2731
2732 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2733
2734 fi;
2735
2736 eval "$ac_cv_use_libpng"
2737 if test "$no_cache" != 1; then
2738 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2739 fi
2740
2741 if test "$wxUSE_LIBPNG" = yes; then
2742 echo "$as_me:$LINENO: result: yes" >&5
2743 echo "${ECHO_T}yes" >&6
2744 elif test "$wxUSE_LIBPNG" = no; then
2745 echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6
2747 elif test "$wxUSE_LIBPNG" = sys; then
2748 echo "$as_me:$LINENO: result: system version" >&5
2749 echo "${ECHO_T}system version" >&6
2750 elif test "$wxUSE_LIBPNG" = builtin; then
2751 echo "$as_me:$LINENO: result: builtin version" >&5
2752 echo "${ECHO_T}builtin version" >&6
2753 else
2754 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2755 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2756 { (exit 1); exit 1; }; }
2757 fi
2758
2759
2760 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2761 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2762 no_cache=0
2763
2764 # Check whether --with-libjpeg or --without-libjpeg was given.
2765 if test "${with_libjpeg+set}" = set; then
2766 withval="$with_libjpeg"
2767
2768 if test "$withval" = yes; then
2769 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2770 elif test "$withval" = no; then
2771 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2772 elif test "$withval" = sys; then
2773 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2774 elif test "$withval" = builtin; then
2775 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2776 else
2777 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2778 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2779 { (exit 1); exit 1; }; }
2780 fi
2781
2782 else
2783
2784 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2785 if test "x$LINE" != x ; then
2786 eval "DEFAULT_$LINE"
2787 else
2788 no_cache=1
2789 fi
2790
2791 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2792
2793 fi;
2794
2795 eval "$ac_cv_use_libjpeg"
2796 if test "$no_cache" != 1; then
2797 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2798 fi
2799
2800 if test "$wxUSE_LIBJPEG" = yes; then
2801 echo "$as_me:$LINENO: result: yes" >&5
2802 echo "${ECHO_T}yes" >&6
2803 elif test "$wxUSE_LIBJPEG" = no; then
2804 echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2806 elif test "$wxUSE_LIBJPEG" = sys; then
2807 echo "$as_me:$LINENO: result: system version" >&5
2808 echo "${ECHO_T}system version" >&6
2809 elif test "$wxUSE_LIBJPEG" = builtin; then
2810 echo "$as_me:$LINENO: result: builtin version" >&5
2811 echo "${ECHO_T}builtin version" >&6
2812 else
2813 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2814 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2815 { (exit 1); exit 1; }; }
2816 fi
2817
2818
2819 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2820 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2821 no_cache=0
2822
2823 # Check whether --with-libtiff or --without-libtiff was given.
2824 if test "${with_libtiff+set}" = set; then
2825 withval="$with_libtiff"
2826
2827 if test "$withval" = yes; then
2828 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2829 elif test "$withval" = no; then
2830 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2831 elif test "$withval" = sys; then
2832 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2833 elif test "$withval" = builtin; then
2834 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2835 else
2836 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2837 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2838 { (exit 1); exit 1; }; }
2839 fi
2840
2841 else
2842
2843 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2844 if test "x$LINE" != x ; then
2845 eval "DEFAULT_$LINE"
2846 else
2847 no_cache=1
2848 fi
2849
2850 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2851
2852 fi;
2853
2854 eval "$ac_cv_use_libtiff"
2855 if test "$no_cache" != 1; then
2856 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2857 fi
2858
2859 if test "$wxUSE_LIBTIFF" = yes; then
2860 echo "$as_me:$LINENO: result: yes" >&5
2861 echo "${ECHO_T}yes" >&6
2862 elif test "$wxUSE_LIBTIFF" = no; then
2863 echo "$as_me:$LINENO: result: no" >&5
2864 echo "${ECHO_T}no" >&6
2865 elif test "$wxUSE_LIBTIFF" = sys; then
2866 echo "$as_me:$LINENO: result: system version" >&5
2867 echo "${ECHO_T}system version" >&6
2868 elif test "$wxUSE_LIBTIFF" = builtin; then
2869 echo "$as_me:$LINENO: result: builtin version" >&5
2870 echo "${ECHO_T}builtin version" >&6
2871 else
2872 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2873 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2874 { (exit 1); exit 1; }; }
2875 fi
2876
2877
2878 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2879 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2880 no_cache=0
2881
2882 # Check whether --with-libxpm or --without-libxpm was given.
2883 if test "${with_libxpm+set}" = set; then
2884 withval="$with_libxpm"
2885
2886 if test "$withval" = yes; then
2887 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2888 elif test "$withval" = no; then
2889 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2890 elif test "$withval" = sys; then
2891 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2892 elif test "$withval" = builtin; then
2893 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2894 else
2895 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2896 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2897 { (exit 1); exit 1; }; }
2898 fi
2899
2900 else
2901
2902 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2910
2911 fi;
2912
2913 eval "$ac_cv_use_libxpm"
2914 if test "$no_cache" != 1; then
2915 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2916 fi
2917
2918 if test "$wxUSE_LIBXPM" = yes; then
2919 echo "$as_me:$LINENO: result: yes" >&5
2920 echo "${ECHO_T}yes" >&6
2921 elif test "$wxUSE_LIBXPM" = no; then
2922 echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6
2924 elif test "$wxUSE_LIBXPM" = sys; then
2925 echo "$as_me:$LINENO: result: system version" >&5
2926 echo "${ECHO_T}system version" >&6
2927 elif test "$wxUSE_LIBXPM" = builtin; then
2928 echo "$as_me:$LINENO: result: builtin version" >&5
2929 echo "${ECHO_T}builtin version" >&6
2930 else
2931 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2932 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2933 { (exit 1); exit 1; }; }
2934 fi
2935
2936
2937 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2938 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2939 no_cache=0
2940
2941 # Check whether --with-libmspack or --without-libmspack was given.
2942 if test "${with_libmspack+set}" = set; then
2943 withval="$with_libmspack"
2944
2945 if test "$withval" = yes; then
2946 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2947 else
2948 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2949 fi
2950
2951 else
2952
2953 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2954 if test "x$LINE" != x ; then
2955 eval "DEFAULT_$LINE"
2956 else
2957 no_cache=1
2958 fi
2959
2960 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2961
2962 fi;
2963
2964 eval "$ac_cv_use_libmspack"
2965 if test "$no_cache" != 1; then
2966 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2967 fi
2968
2969 if test "$wxUSE_LIBMSPACK" = yes; then
2970 echo "$as_me:$LINENO: result: yes" >&5
2971 echo "${ECHO_T}yes" >&6
2972 else
2973 echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2975 fi
2976
2977
2978 echo "$as_me:$LINENO: checking for --with-sdl" >&5
2979 echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
2980 no_cache=0
2981
2982 # Check whether --with-sdl or --without-sdl was given.
2983 if test "${with_sdl+set}" = set; then
2984 withval="$with_sdl"
2985
2986 if test "$withval" = yes; then
2987 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
2988 else
2989 ac_cv_use_sdl='wxUSE_LIBSDL=no'
2990 fi
2991
2992 else
2993
2994 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
2995 if test "x$LINE" != x ; then
2996 eval "DEFAULT_$LINE"
2997 else
2998 no_cache=1
2999 fi
3000
3001 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3002
3003 fi;
3004
3005 eval "$ac_cv_use_sdl"
3006 if test "$no_cache" != 1; then
3007 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3008 fi
3009
3010 if test "$wxUSE_LIBSDL" = yes; then
3011 echo "$as_me:$LINENO: result: yes" >&5
3012 echo "${ECHO_T}yes" >&6
3013 else
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3016 fi
3017
3018
3019 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3020 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3021 no_cache=0
3022
3023 # Check whether --with-opengl or --without-opengl was given.
3024 if test "${with_opengl+set}" = set; then
3025 withval="$with_opengl"
3026
3027 if test "$withval" = yes; then
3028 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3029 else
3030 ac_cv_use_opengl='wxUSE_OPENGL=no'
3031 fi
3032
3033 else
3034
3035 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3036 if test "x$LINE" != x ; then
3037 eval "DEFAULT_$LINE"
3038 else
3039 no_cache=1
3040 fi
3041
3042 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3043
3044 fi;
3045
3046 eval "$ac_cv_use_opengl"
3047 if test "$no_cache" != 1; then
3048 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3049 fi
3050
3051 if test "$wxUSE_OPENGL" = yes; then
3052 echo "$as_me:$LINENO: result: yes" >&5
3053 echo "${ECHO_T}yes" >&6
3054 else
3055 echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6
3057 fi
3058
3059
3060 fi
3061
3062
3063 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3064 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3065 no_cache=0
3066
3067 # Check whether --with-dmalloc or --without-dmalloc was given.
3068 if test "${with_dmalloc+set}" = set; then
3069 withval="$with_dmalloc"
3070
3071 if test "$withval" = yes; then
3072 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3073 else
3074 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3075 fi
3076
3077 else
3078
3079 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3080 if test "x$LINE" != x ; then
3081 eval "DEFAULT_$LINE"
3082 else
3083 no_cache=1
3084 fi
3085
3086 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3087
3088 fi;
3089
3090 eval "$ac_cv_use_dmalloc"
3091 if test "$no_cache" != 1; then
3092 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3093 fi
3094
3095 if test "$wxUSE_DMALLOC" = yes; then
3096 echo "$as_me:$LINENO: result: yes" >&5
3097 echo "${ECHO_T}yes" >&6
3098 else
3099 echo "$as_me:$LINENO: result: no" >&5
3100 echo "${ECHO_T}no" >&6
3101 fi
3102
3103
3104 echo "$as_me:$LINENO: checking for --with-regex" >&5
3105 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3106 no_cache=0
3107
3108 # Check whether --with-regex or --without-regex was given.
3109 if test "${with_regex+set}" = set; then
3110 withval="$with_regex"
3111
3112 if test "$withval" = yes; then
3113 ac_cv_use_regex='wxUSE_REGEX=yes'
3114 elif test "$withval" = no; then
3115 ac_cv_use_regex='wxUSE_REGEX=no'
3116 elif test "$withval" = sys; then
3117 ac_cv_use_regex='wxUSE_REGEX=sys'
3118 elif test "$withval" = builtin; then
3119 ac_cv_use_regex='wxUSE_REGEX=builtin'
3120 else
3121 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3122 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3123 { (exit 1); exit 1; }; }
3124 fi
3125
3126 else
3127
3128 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3129 if test "x$LINE" != x ; then
3130 eval "DEFAULT_$LINE"
3131 else
3132 no_cache=1
3133 fi
3134
3135 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3136
3137 fi;
3138
3139 eval "$ac_cv_use_regex"
3140 if test "$no_cache" != 1; then
3141 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3142 fi
3143
3144 if test "$wxUSE_REGEX" = yes; then
3145 echo "$as_me:$LINENO: result: yes" >&5
3146 echo "${ECHO_T}yes" >&6
3147 elif test "$wxUSE_REGEX" = no; then
3148 echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3150 elif test "$wxUSE_REGEX" = sys; then
3151 echo "$as_me:$LINENO: result: system version" >&5
3152 echo "${ECHO_T}system version" >&6
3153 elif test "$wxUSE_REGEX" = builtin; then
3154 echo "$as_me:$LINENO: result: builtin version" >&5
3155 echo "${ECHO_T}builtin version" >&6
3156 else
3157 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3158 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3159 { (exit 1); exit 1; }; }
3160 fi
3161
3162
3163 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3164 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3165 no_cache=0
3166
3167 # Check whether --with-zlib or --without-zlib was given.
3168 if test "${with_zlib+set}" = set; then
3169 withval="$with_zlib"
3170
3171 if test "$withval" = yes; then
3172 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3173 elif test "$withval" = no; then
3174 ac_cv_use_zlib='wxUSE_ZLIB=no'
3175 elif test "$withval" = sys; then
3176 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3177 elif test "$withval" = builtin; then
3178 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3179 else
3180 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3181 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3182 { (exit 1); exit 1; }; }
3183 fi
3184
3185 else
3186
3187 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3188 if test "x$LINE" != x ; then
3189 eval "DEFAULT_$LINE"
3190 else
3191 no_cache=1
3192 fi
3193
3194 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3195
3196 fi;
3197
3198 eval "$ac_cv_use_zlib"
3199 if test "$no_cache" != 1; then
3200 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3201 fi
3202
3203 if test "$wxUSE_ZLIB" = yes; then
3204 echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3206 elif test "$wxUSE_ZLIB" = no; then
3207 echo "$as_me:$LINENO: result: no" >&5
3208 echo "${ECHO_T}no" >&6
3209 elif test "$wxUSE_ZLIB" = sys; then
3210 echo "$as_me:$LINENO: result: system version" >&5
3211 echo "${ECHO_T}system version" >&6
3212 elif test "$wxUSE_ZLIB" = builtin; then
3213 echo "$as_me:$LINENO: result: builtin version" >&5
3214 echo "${ECHO_T}builtin version" >&6
3215 else
3216 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3217 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3218 { (exit 1); exit 1; }; }
3219 fi
3220
3221
3222 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3223 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3224 no_cache=0
3225
3226 # Check whether --with-odbc or --without-odbc was given.
3227 if test "${with_odbc+set}" = set; then
3228 withval="$with_odbc"
3229
3230 if test "$withval" = yes; then
3231 ac_cv_use_odbc='wxUSE_ODBC=yes'
3232 elif test "$withval" = no; then
3233 ac_cv_use_odbc='wxUSE_ODBC=no'
3234 elif test "$withval" = sys; then
3235 ac_cv_use_odbc='wxUSE_ODBC=sys'
3236 elif test "$withval" = builtin; then
3237 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3238 else
3239 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3240 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3241 { (exit 1); exit 1; }; }
3242 fi
3243
3244 else
3245
3246 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3247 if test "x$LINE" != x ; then
3248 eval "DEFAULT_$LINE"
3249 else
3250 no_cache=1
3251 fi
3252
3253 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3254
3255 fi;
3256
3257 eval "$ac_cv_use_odbc"
3258 if test "$no_cache" != 1; then
3259 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3260 fi
3261
3262 if test "$wxUSE_ODBC" = yes; then
3263 echo "$as_me:$LINENO: result: yes" >&5
3264 echo "${ECHO_T}yes" >&6
3265 elif test "$wxUSE_ODBC" = no; then
3266 echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6
3268 elif test "$wxUSE_ODBC" = sys; then
3269 echo "$as_me:$LINENO: result: system version" >&5
3270 echo "${ECHO_T}system version" >&6
3271 elif test "$wxUSE_ODBC" = builtin; then
3272 echo "$as_me:$LINENO: result: builtin version" >&5
3273 echo "${ECHO_T}builtin version" >&6
3274 else
3275 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3276 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3277 { (exit 1); exit 1; }; }
3278 fi
3279
3280
3281 echo "$as_me:$LINENO: checking for --with-expat" >&5
3282 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3283 no_cache=0
3284
3285 # Check whether --with-expat or --without-expat was given.
3286 if test "${with_expat+set}" = set; then
3287 withval="$with_expat"
3288
3289 if test "$withval" = yes; then
3290 ac_cv_use_expat='wxUSE_EXPAT=yes'
3291 elif test "$withval" = no; then
3292 ac_cv_use_expat='wxUSE_EXPAT=no'
3293 elif test "$withval" = sys; then
3294 ac_cv_use_expat='wxUSE_EXPAT=sys'
3295 elif test "$withval" = builtin; then
3296 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3297 else
3298 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3299 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3300 { (exit 1); exit 1; }; }
3301 fi
3302
3303 else
3304
3305 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3306 if test "x$LINE" != x ; then
3307 eval "DEFAULT_$LINE"
3308 else
3309 no_cache=1
3310 fi
3311
3312 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3313
3314 fi;
3315
3316 eval "$ac_cv_use_expat"
3317 if test "$no_cache" != 1; then
3318 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3319 fi
3320
3321 if test "$wxUSE_EXPAT" = yes; then
3322 echo "$as_me:$LINENO: result: yes" >&5
3323 echo "${ECHO_T}yes" >&6
3324 elif test "$wxUSE_EXPAT" = no; then
3325 echo "$as_me:$LINENO: result: no" >&5
3326 echo "${ECHO_T}no" >&6
3327 elif test "$wxUSE_EXPAT" = sys; then
3328 echo "$as_me:$LINENO: result: system version" >&5
3329 echo "${ECHO_T}system version" >&6
3330 elif test "$wxUSE_EXPAT" = builtin; then
3331 echo "$as_me:$LINENO: result: builtin version" >&5
3332 echo "${ECHO_T}builtin version" >&6
3333 else
3334 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3335 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3336 { (exit 1); exit 1; }; }
3337 fi
3338
3339
3340
3341
3342 enablestring=
3343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3344 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3345 no_cache=0
3346 # Check whether --enable-shared or --disable-shared was given.
3347 if test "${enable_shared+set}" = set; then
3348 enableval="$enable_shared"
3349
3350 if test "$enableval" = yes; then
3351 ac_cv_use_shared='wxUSE_SHARED=yes'
3352 else
3353 ac_cv_use_shared='wxUSE_SHARED=no'
3354 fi
3355
3356 else
3357
3358 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3359 if test "x$LINE" != x ; then
3360 eval "DEFAULT_$LINE"
3361 else
3362 no_cache=1
3363 fi
3364
3365 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3366
3367 fi;
3368
3369 eval "$ac_cv_use_shared"
3370 if test "$no_cache" != 1; then
3371 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3372 fi
3373
3374 if test "$wxUSE_SHARED" = yes; then
3375 echo "$as_me:$LINENO: result: yes" >&5
3376 echo "${ECHO_T}yes" >&6
3377 else
3378 echo "$as_me:$LINENO: result: no" >&5
3379 echo "${ECHO_T}no" >&6
3380 fi
3381
3382
3383 enablestring=
3384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3385 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3386 no_cache=0
3387 # Check whether --enable-optimise or --disable-optimise was given.
3388 if test "${enable_optimise+set}" = set; then
3389 enableval="$enable_optimise"
3390
3391 if test "$enableval" = yes; then
3392 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3393 else
3394 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3395 fi
3396
3397 else
3398
3399 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3400 if test "x$LINE" != x ; then
3401 eval "DEFAULT_$LINE"
3402 else
3403 no_cache=1
3404 fi
3405
3406 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3407
3408 fi;
3409
3410 eval "$ac_cv_use_optimise"
3411 if test "$no_cache" != 1; then
3412 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3413 fi
3414
3415 if test "$wxUSE_OPTIMISE" = yes; then
3416 echo "$as_me:$LINENO: result: yes" >&5
3417 echo "${ECHO_T}yes" >&6
3418 else
3419 echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3421 fi
3422
3423
3424 enablestring=
3425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3426 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3427 no_cache=0
3428 # Check whether --enable-debug or --disable-debug was given.
3429 if test "${enable_debug+set}" = set; then
3430 enableval="$enable_debug"
3431
3432 if test "$enableval" = yes; then
3433 ac_cv_use_debug='wxUSE_DEBUG=yes'
3434 else
3435 ac_cv_use_debug='wxUSE_DEBUG=no'
3436 fi
3437
3438 else
3439
3440 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3441 if test "x$LINE" != x ; then
3442 eval "DEFAULT_$LINE"
3443 else
3444 no_cache=1
3445 fi
3446
3447 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3448
3449 fi;
3450
3451 eval "$ac_cv_use_debug"
3452 if test "$no_cache" != 1; then
3453 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3454 fi
3455
3456 if test "$wxUSE_DEBUG" = yes; then
3457 echo "$as_me:$LINENO: result: yes" >&5
3458 echo "${ECHO_T}yes" >&6
3459 else
3460 echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3462 fi
3463
3464
3465 enablestring=
3466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3467 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3468 no_cache=0
3469 # Check whether --enable-stl or --disable-stl was given.
3470 if test "${enable_stl+set}" = set; then
3471 enableval="$enable_stl"
3472
3473 if test "$enableval" = yes; then
3474 ac_cv_use_stl='wxUSE_STL=yes'
3475 else
3476 ac_cv_use_stl='wxUSE_STL=no'
3477 fi
3478
3479 else
3480
3481 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3482 if test "x$LINE" != x ; then
3483 eval "DEFAULT_$LINE"
3484 else
3485 no_cache=1
3486 fi
3487
3488 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3489
3490 fi;
3491
3492 eval "$ac_cv_use_stl"
3493 if test "$no_cache" != 1; then
3494 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3495 fi
3496
3497 if test "$wxUSE_STL" = yes; then
3498 echo "$as_me:$LINENO: result: yes" >&5
3499 echo "${ECHO_T}yes" >&6
3500 else
3501 echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3503 fi
3504
3505
3506 if test "$wxUSE_DEBUG" = "yes"; then
3507 DEFAULT_wxUSE_DEBUG_FLAG=yes
3508 DEFAULT_wxUSE_DEBUG_INFO=yes
3509 BUILD=debug
3510 elif test "$wxUSE_DEBUG" = "no"; then
3511 DEFAULT_wxUSE_DEBUG_FLAG=no
3512 DEFAULT_wxUSE_DEBUG_INFO=no
3513 BUILD=release
3514 fi
3515
3516
3517 enablestring=
3518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3519 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3520 no_cache=0
3521 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3522 if test "${enable_debug_flag+set}" = set; then
3523 enableval="$enable_debug_flag"
3524
3525 if test "$enableval" = yes; then
3526 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3527 else
3528 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3529 fi
3530
3531 else
3532
3533 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3534 if test "x$LINE" != x ; then
3535 eval "DEFAULT_$LINE"
3536 else
3537 no_cache=1
3538 fi
3539
3540 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3541
3542 fi;
3543
3544 eval "$ac_cv_use_debug_flag"
3545 if test "$no_cache" != 1; then
3546 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3547 fi
3548
3549 if test "$wxUSE_DEBUG_FLAG" = yes; then
3550 echo "$as_me:$LINENO: result: yes" >&5
3551 echo "${ECHO_T}yes" >&6
3552 else
3553 echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6
3555 fi
3556
3557
3558 enablestring=
3559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3560 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3561 no_cache=0
3562 # Check whether --enable-debug_info or --disable-debug_info was given.
3563 if test "${enable_debug_info+set}" = set; then
3564 enableval="$enable_debug_info"
3565
3566 if test "$enableval" = yes; then
3567 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3568 else
3569 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3570 fi
3571
3572 else
3573
3574 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3575 if test "x$LINE" != x ; then
3576 eval "DEFAULT_$LINE"
3577 else
3578 no_cache=1
3579 fi
3580
3581 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3582
3583 fi;
3584
3585 eval "$ac_cv_use_debug_info"
3586 if test "$no_cache" != 1; then
3587 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3588 fi
3589
3590 if test "$wxUSE_DEBUG_INFO" = yes; then
3591 echo "$as_me:$LINENO: result: yes" >&5
3592 echo "${ECHO_T}yes" >&6
3593 else
3594 echo "$as_me:$LINENO: result: no" >&5
3595 echo "${ECHO_T}no" >&6
3596 fi
3597
3598
3599 enablestring=
3600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3601 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3602 no_cache=0
3603 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3604 if test "${enable_debug_gdb+set}" = set; then
3605 enableval="$enable_debug_gdb"
3606
3607 if test "$enableval" = yes; then
3608 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3609 else
3610 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3611 fi
3612
3613 else
3614
3615 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3616 if test "x$LINE" != x ; then
3617 eval "DEFAULT_$LINE"
3618 else
3619 no_cache=1
3620 fi
3621
3622 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3623
3624 fi;
3625
3626 eval "$ac_cv_use_debug_gdb"
3627 if test "$no_cache" != 1; then
3628 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3629 fi
3630
3631 if test "$wxUSE_DEBUG_GDB" = yes; then
3632 echo "$as_me:$LINENO: result: yes" >&5
3633 echo "${ECHO_T}yes" >&6
3634 else
3635 echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3637 fi
3638
3639
3640 enablestring=
3641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3642 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3643 no_cache=0
3644 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3645 if test "${enable_debug_cntxt+set}" = set; then
3646 enableval="$enable_debug_cntxt"
3647
3648 if test "$enableval" = yes; then
3649 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3650 else
3651 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3652 fi
3653
3654 else
3655
3656 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3657 if test "x$LINE" != x ; then
3658 eval "DEFAULT_$LINE"
3659 else
3660 no_cache=1
3661 fi
3662
3663 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3664
3665 fi;
3666
3667 eval "$ac_cv_use_debug_cntxt"
3668 if test "$no_cache" != 1; then
3669 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3670 fi
3671
3672 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3673 echo "$as_me:$LINENO: result: yes" >&5
3674 echo "${ECHO_T}yes" >&6
3675 else
3676 echo "$as_me:$LINENO: result: no" >&5
3677 echo "${ECHO_T}no" >&6
3678 fi
3679
3680
3681 enablestring=
3682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3683 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3684 no_cache=0
3685 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3686 if test "${enable_mem_tracing+set}" = set; then
3687 enableval="$enable_mem_tracing"
3688
3689 if test "$enableval" = yes; then
3690 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3691 else
3692 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3693 fi
3694
3695 else
3696
3697 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3698 if test "x$LINE" != x ; then
3699 eval "DEFAULT_$LINE"
3700 else
3701 no_cache=1
3702 fi
3703
3704 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3705
3706 fi;
3707
3708 eval "$ac_cv_use_mem_tracing"
3709 if test "$no_cache" != 1; then
3710 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3711 fi
3712
3713 if test "$wxUSE_MEM_TRACING" = yes; then
3714 echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6
3716 else
3717 echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6
3719 fi
3720
3721
3722 enablestring=
3723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3724 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3725 no_cache=0
3726 # Check whether --enable-profile or --disable-profile was given.
3727 if test "${enable_profile+set}" = set; then
3728 enableval="$enable_profile"
3729
3730 if test "$enableval" = yes; then
3731 ac_cv_use_profile='wxUSE_PROFILE=yes'
3732 else
3733 ac_cv_use_profile='wxUSE_PROFILE=no'
3734 fi
3735
3736 else
3737
3738 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3739 if test "x$LINE" != x ; then
3740 eval "DEFAULT_$LINE"
3741 else
3742 no_cache=1
3743 fi
3744
3745 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3746
3747 fi;
3748
3749 eval "$ac_cv_use_profile"
3750 if test "$no_cache" != 1; then
3751 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3752 fi
3753
3754 if test "$wxUSE_PROFILE" = yes; then
3755 echo "$as_me:$LINENO: result: yes" >&5
3756 echo "${ECHO_T}yes" >&6
3757 else
3758 echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6
3760 fi
3761
3762
3763 enablestring=
3764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3765 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3766 no_cache=0
3767 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3768 if test "${enable_no_rtti+set}" = set; then
3769 enableval="$enable_no_rtti"
3770
3771 if test "$enableval" = yes; then
3772 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3773 else
3774 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3775 fi
3776
3777 else
3778
3779 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3780 if test "x$LINE" != x ; then
3781 eval "DEFAULT_$LINE"
3782 else
3783 no_cache=1
3784 fi
3785
3786 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3787
3788 fi;
3789
3790 eval "$ac_cv_use_no_rtti"
3791 if test "$no_cache" != 1; then
3792 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3793 fi
3794
3795 if test "$wxUSE_NO_RTTI" = yes; then
3796 echo "$as_me:$LINENO: result: yes" >&5
3797 echo "${ECHO_T}yes" >&6
3798 else
3799 echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3801 fi
3802
3803
3804 enablestring=
3805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3806 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3807 no_cache=0
3808 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3809 if test "${enable_no_exceptions+set}" = set; then
3810 enableval="$enable_no_exceptions"
3811
3812 if test "$enableval" = yes; then
3813 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3814 else
3815 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3816 fi
3817
3818 else
3819
3820 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3821 if test "x$LINE" != x ; then
3822 eval "DEFAULT_$LINE"
3823 else
3824 no_cache=1
3825 fi
3826
3827 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3828
3829 fi;
3830
3831 eval "$ac_cv_use_no_exceptions"
3832 if test "$no_cache" != 1; then
3833 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3834 fi
3835
3836 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3837 echo "$as_me:$LINENO: result: yes" >&5
3838 echo "${ECHO_T}yes" >&6
3839 else
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3842 fi
3843
3844
3845 enablestring=
3846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3847 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3848 no_cache=0
3849 # Check whether --enable-permissive or --disable-permissive was given.
3850 if test "${enable_permissive+set}" = set; then
3851 enableval="$enable_permissive"
3852
3853 if test "$enableval" = yes; then
3854 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3855 else
3856 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3857 fi
3858
3859 else
3860
3861 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3862 if test "x$LINE" != x ; then
3863 eval "DEFAULT_$LINE"
3864 else
3865 no_cache=1
3866 fi
3867
3868 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3869
3870 fi;
3871
3872 eval "$ac_cv_use_permissive"
3873 if test "$no_cache" != 1; then
3874 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3875 fi
3876
3877 if test "$wxUSE_PERMISSIVE" = yes; then
3878 echo "$as_me:$LINENO: result: yes" >&5
3879 echo "${ECHO_T}yes" >&6
3880 else
3881 echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3883 fi
3884
3885
3886 enablestring=
3887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3888 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3889 no_cache=0
3890 # Check whether --enable-no_deps or --disable-no_deps was given.
3891 if test "${enable_no_deps+set}" = set; then
3892 enableval="$enable_no_deps"
3893
3894 if test "$enableval" = yes; then
3895 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3896 else
3897 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3898 fi
3899
3900 else
3901
3902 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3903 if test "x$LINE" != x ; then
3904 eval "DEFAULT_$LINE"
3905 else
3906 no_cache=1
3907 fi
3908
3909 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3910
3911 fi;
3912
3913 eval "$ac_cv_use_no_deps"
3914 if test "$no_cache" != 1; then
3915 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3916 fi
3917
3918 if test "$wxUSE_NO_DEPS" = yes; then
3919 echo "$as_me:$LINENO: result: yes" >&5
3920 echo "${ECHO_T}yes" >&6
3921 else
3922 echo "$as_me:$LINENO: result: no" >&5
3923 echo "${ECHO_T}no" >&6
3924 fi
3925
3926
3927
3928 enablestring=
3929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3930 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3931 no_cache=0
3932 # Check whether --enable-compat22 or --disable-compat22 was given.
3933 if test "${enable_compat22+set}" = set; then
3934 enableval="$enable_compat22"
3935
3936 if test "$enableval" = yes; then
3937 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3938 else
3939 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3940 fi
3941
3942 else
3943
3944 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3945 if test "x$LINE" != x ; then
3946 eval "DEFAULT_$LINE"
3947 else
3948 no_cache=1
3949 fi
3950
3951 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3952
3953 fi;
3954
3955 eval "$ac_cv_use_compat22"
3956 if test "$no_cache" != 1; then
3957 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3958 fi
3959
3960 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3961 echo "$as_me:$LINENO: result: yes" >&5
3962 echo "${ECHO_T}yes" >&6
3963 else
3964 echo "$as_me:$LINENO: result: no" >&5
3965 echo "${ECHO_T}no" >&6
3966 fi
3967
3968
3969 enablestring=disable
3970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3971 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
3972 no_cache=0
3973 # Check whether --enable-compat24 or --disable-compat24 was given.
3974 if test "${enable_compat24+set}" = set; then
3975 enableval="$enable_compat24"
3976
3977 if test "$enableval" = yes; then
3978 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3979 else
3980 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3981 fi
3982
3983 else
3984
3985 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3986 if test "x$LINE" != x ; then
3987 eval "DEFAULT_$LINE"
3988 else
3989 no_cache=1
3990 fi
3991
3992 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3993
3994 fi;
3995
3996 eval "$ac_cv_use_compat24"
3997 if test "$no_cache" != 1; then
3998 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3999 fi
4000
4001 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4002 echo "$as_me:$LINENO: result: yes" >&5
4003 echo "${ECHO_T}yes" >&6
4004 else
4005 echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4007 fi
4008
4009
4010 # Check whether --enable-rpath or --disable-rpath was given.
4011 if test "${enable_rpath+set}" = set; then
4012 enableval="$enable_rpath"
4013 wxRPATH_DIR="$enableval"
4014 fi;
4015
4016 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4017 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4018 fi
4019
4020
4021
4022
4023 enablestring=
4024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4025 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4026 no_cache=0
4027 # Check whether --enable-intl or --disable-intl was given.
4028 if test "${enable_intl+set}" = set; then
4029 enableval="$enable_intl"
4030
4031 if test "$enableval" = yes; then
4032 ac_cv_use_intl='wxUSE_INTL=yes'
4033 else
4034 ac_cv_use_intl='wxUSE_INTL=no'
4035 fi
4036
4037 else
4038
4039 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4040 if test "x$LINE" != x ; then
4041 eval "DEFAULT_$LINE"
4042 else
4043 no_cache=1
4044 fi
4045
4046 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4047
4048 fi;
4049
4050 eval "$ac_cv_use_intl"
4051 if test "$no_cache" != 1; then
4052 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4053 fi
4054
4055 if test "$wxUSE_INTL" = yes; then
4056 echo "$as_me:$LINENO: result: yes" >&5
4057 echo "${ECHO_T}yes" >&6
4058 else
4059 echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4061 fi
4062
4063
4064 enablestring=
4065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4066 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4067 no_cache=0
4068 # Check whether --enable-config or --disable-config was given.
4069 if test "${enable_config+set}" = set; then
4070 enableval="$enable_config"
4071
4072 if test "$enableval" = yes; then
4073 ac_cv_use_config='wxUSE_CONFIG=yes'
4074 else
4075 ac_cv_use_config='wxUSE_CONFIG=no'
4076 fi
4077
4078 else
4079
4080 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4081 if test "x$LINE" != x ; then
4082 eval "DEFAULT_$LINE"
4083 else
4084 no_cache=1
4085 fi
4086
4087 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4088
4089 fi;
4090
4091 eval "$ac_cv_use_config"
4092 if test "$no_cache" != 1; then
4093 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4094 fi
4095
4096 if test "$wxUSE_CONFIG" = yes; then
4097 echo "$as_me:$LINENO: result: yes" >&5
4098 echo "${ECHO_T}yes" >&6
4099 else
4100 echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4102 fi
4103
4104
4105
4106 enablestring=
4107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4108 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4109 no_cache=0
4110 # Check whether --enable-protocols or --disable-protocols was given.
4111 if test "${enable_protocols+set}" = set; then
4112 enableval="$enable_protocols"
4113
4114 if test "$enableval" = yes; then
4115 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4116 else
4117 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4118 fi
4119
4120 else
4121
4122 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4123 if test "x$LINE" != x ; then
4124 eval "DEFAULT_$LINE"
4125 else
4126 no_cache=1
4127 fi
4128
4129 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4130
4131 fi;
4132
4133 eval "$ac_cv_use_protocols"
4134 if test "$no_cache" != 1; then
4135 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4136 fi
4137
4138 if test "$wxUSE_PROTOCOL" = yes; then
4139 echo "$as_me:$LINENO: result: yes" >&5
4140 echo "${ECHO_T}yes" >&6
4141 else
4142 echo "$as_me:$LINENO: result: no" >&5
4143 echo "${ECHO_T}no" >&6
4144 fi
4145
4146
4147 enablestring=
4148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4149 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4150 no_cache=0
4151 # Check whether --enable-ftp or --disable-ftp was given.
4152 if test "${enable_ftp+set}" = set; then
4153 enableval="$enable_ftp"
4154
4155 if test "$enableval" = yes; then
4156 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4157 else
4158 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4159 fi
4160
4161 else
4162
4163 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4164 if test "x$LINE" != x ; then
4165 eval "DEFAULT_$LINE"
4166 else
4167 no_cache=1
4168 fi
4169
4170 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4171
4172 fi;
4173
4174 eval "$ac_cv_use_ftp"
4175 if test "$no_cache" != 1; then
4176 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4177 fi
4178
4179 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4180 echo "$as_me:$LINENO: result: yes" >&5
4181 echo "${ECHO_T}yes" >&6
4182 else
4183 echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4185 fi
4186
4187
4188 enablestring=
4189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4190 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4191 no_cache=0
4192 # Check whether --enable-http or --disable-http was given.
4193 if test "${enable_http+set}" = set; then
4194 enableval="$enable_http"
4195
4196 if test "$enableval" = yes; then
4197 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4198 else
4199 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4200 fi
4201
4202 else
4203
4204 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4205 if test "x$LINE" != x ; then
4206 eval "DEFAULT_$LINE"
4207 else
4208 no_cache=1
4209 fi
4210
4211 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4212
4213 fi;
4214
4215 eval "$ac_cv_use_http"
4216 if test "$no_cache" != 1; then
4217 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4218 fi
4219
4220 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4221 echo "$as_me:$LINENO: result: yes" >&5
4222 echo "${ECHO_T}yes" >&6
4223 else
4224 echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4226 fi
4227
4228
4229 enablestring=
4230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4231 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4232 no_cache=0
4233 # Check whether --enable-fileproto or --disable-fileproto was given.
4234 if test "${enable_fileproto+set}" = set; then
4235 enableval="$enable_fileproto"
4236
4237 if test "$enableval" = yes; then
4238 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4239 else
4240 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4241 fi
4242
4243 else
4244
4245 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4246 if test "x$LINE" != x ; then
4247 eval "DEFAULT_$LINE"
4248 else
4249 no_cache=1
4250 fi
4251
4252 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4253
4254 fi;
4255
4256 eval "$ac_cv_use_fileproto"
4257 if test "$no_cache" != 1; then
4258 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4259 fi
4260
4261 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4262 echo "$as_me:$LINENO: result: yes" >&5
4263 echo "${ECHO_T}yes" >&6
4264 else
4265 echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6
4267 fi
4268
4269
4270 enablestring=
4271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4272 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4273 no_cache=0
4274 # Check whether --enable-sockets or --disable-sockets was given.
4275 if test "${enable_sockets+set}" = set; then
4276 enableval="$enable_sockets"
4277
4278 if test "$enableval" = yes; then
4279 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4280 else
4281 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4282 fi
4283
4284 else
4285
4286 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4287 if test "x$LINE" != x ; then
4288 eval "DEFAULT_$LINE"
4289 else
4290 no_cache=1
4291 fi
4292
4293 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4294
4295 fi;
4296
4297 eval "$ac_cv_use_sockets"
4298 if test "$no_cache" != 1; then
4299 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4300 fi
4301
4302 if test "$wxUSE_SOCKETS" = yes; then
4303 echo "$as_me:$LINENO: result: yes" >&5
4304 echo "${ECHO_T}yes" >&6
4305 else
4306 echo "$as_me:$LINENO: result: no" >&5
4307 echo "${ECHO_T}no" >&6
4308 fi
4309
4310
4311 enablestring=
4312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4313 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4314 no_cache=0
4315 # Check whether --enable-ole or --disable-ole was given.
4316 if test "${enable_ole+set}" = set; then
4317 enableval="$enable_ole"
4318
4319 if test "$enableval" = yes; then
4320 ac_cv_use_ole='wxUSE_OLE=yes'
4321 else
4322 ac_cv_use_ole='wxUSE_OLE=no'
4323 fi
4324
4325 else
4326
4327 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4328 if test "x$LINE" != x ; then
4329 eval "DEFAULT_$LINE"
4330 else
4331 no_cache=1
4332 fi
4333
4334 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4335
4336 fi;
4337
4338 eval "$ac_cv_use_ole"
4339 if test "$no_cache" != 1; then
4340 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4341 fi
4342
4343 if test "$wxUSE_OLE" = yes; then
4344 echo "$as_me:$LINENO: result: yes" >&5
4345 echo "${ECHO_T}yes" >&6
4346 else
4347 echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6
4349 fi
4350
4351
4352 enablestring=
4353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4354 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4355 no_cache=0
4356 # Check whether --enable-dataobj or --disable-dataobj was given.
4357 if test "${enable_dataobj+set}" = set; then
4358 enableval="$enable_dataobj"
4359
4360 if test "$enableval" = yes; then
4361 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4362 else
4363 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4364 fi
4365
4366 else
4367
4368 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4369 if test "x$LINE" != x ; then
4370 eval "DEFAULT_$LINE"
4371 else
4372 no_cache=1
4373 fi
4374
4375 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4376
4377 fi;
4378
4379 eval "$ac_cv_use_dataobj"
4380 if test "$no_cache" != 1; then
4381 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4382 fi
4383
4384 if test "$wxUSE_DATAOBJ" = yes; then
4385 echo "$as_me:$LINENO: result: yes" >&5
4386 echo "${ECHO_T}yes" >&6
4387 else
4388 echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6
4390 fi
4391
4392
4393
4394 enablestring=
4395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4396 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4397 no_cache=0
4398 # Check whether --enable-ipc or --disable-ipc was given.
4399 if test "${enable_ipc+set}" = set; then
4400 enableval="$enable_ipc"
4401
4402 if test "$enableval" = yes; then
4403 ac_cv_use_ipc='wxUSE_IPC=yes'
4404 else
4405 ac_cv_use_ipc='wxUSE_IPC=no'
4406 fi
4407
4408 else
4409
4410 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4411 if test "x$LINE" != x ; then
4412 eval "DEFAULT_$LINE"
4413 else
4414 no_cache=1
4415 fi
4416
4417 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4418
4419 fi;
4420
4421 eval "$ac_cv_use_ipc"
4422 if test "$no_cache" != 1; then
4423 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4424 fi
4425
4426 if test "$wxUSE_IPC" = yes; then
4427 echo "$as_me:$LINENO: result: yes" >&5
4428 echo "${ECHO_T}yes" >&6
4429 else
4430 echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6
4432 fi
4433
4434
4435
4436 enablestring=
4437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4438 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4439 no_cache=0
4440 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4441 if test "${enable_apple_ieee+set}" = set; then
4442 enableval="$enable_apple_ieee"
4443
4444 if test "$enableval" = yes; then
4445 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4446 else
4447 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4448 fi
4449
4450 else
4451
4452 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4453 if test "x$LINE" != x ; then
4454 eval "DEFAULT_$LINE"
4455 else
4456 no_cache=1
4457 fi
4458
4459 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4460
4461 fi;
4462
4463 eval "$ac_cv_use_apple_ieee"
4464 if test "$no_cache" != 1; then
4465 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4466 fi
4467
4468 if test "$wxUSE_APPLE_IEEE" = yes; then
4469 echo "$as_me:$LINENO: result: yes" >&5
4470 echo "${ECHO_T}yes" >&6
4471 else
4472 echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6
4474 fi
4475
4476
4477 enablestring=
4478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4479 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4480 no_cache=0
4481 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4482 if test "${enable_catch_segvs+set}" = set; then
4483 enableval="$enable_catch_segvs"
4484
4485 if test "$enableval" = yes; then
4486 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4487 else
4488 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4489 fi
4490
4491 else
4492
4493 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4494 if test "x$LINE" != x ; then
4495 eval "DEFAULT_$LINE"
4496 else
4497 no_cache=1
4498 fi
4499
4500 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4501
4502 fi;
4503
4504 eval "$ac_cv_use_catch_segvs"
4505 if test "$no_cache" != 1; then
4506 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4507 fi
4508
4509 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4510 echo "$as_me:$LINENO: result: yes" >&5
4511 echo "${ECHO_T}yes" >&6
4512 else
4513 echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4515 fi
4516
4517
4518 enablestring=
4519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4520 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4521 no_cache=0
4522 # Check whether --enable-cmdline or --disable-cmdline was given.
4523 if test "${enable_cmdline+set}" = set; then
4524 enableval="$enable_cmdline"
4525
4526 if test "$enableval" = yes; then
4527 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4528 else
4529 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4530 fi
4531
4532 else
4533
4534 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4535 if test "x$LINE" != x ; then
4536 eval "DEFAULT_$LINE"
4537 else
4538 no_cache=1
4539 fi
4540
4541 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4542
4543 fi;
4544
4545 eval "$ac_cv_use_cmdline"
4546 if test "$no_cache" != 1; then
4547 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4548 fi
4549
4550 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4551 echo "$as_me:$LINENO: result: yes" >&5
4552 echo "${ECHO_T}yes" >&6
4553 else
4554 echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6
4556 fi
4557
4558
4559 enablestring=
4560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4561 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4562 no_cache=0
4563 # Check whether --enable-datetime or --disable-datetime was given.
4564 if test "${enable_datetime+set}" = set; then
4565 enableval="$enable_datetime"
4566
4567 if test "$enableval" = yes; then
4568 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4569 else
4570 ac_cv_use_datetime='wxUSE_DATETIME=no'
4571 fi
4572
4573 else
4574
4575 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4576 if test "x$LINE" != x ; then
4577 eval "DEFAULT_$LINE"
4578 else
4579 no_cache=1
4580 fi
4581
4582 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4583
4584 fi;
4585
4586 eval "$ac_cv_use_datetime"
4587 if test "$no_cache" != 1; then
4588 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4589 fi
4590
4591 if test "$wxUSE_DATETIME" = yes; then
4592 echo "$as_me:$LINENO: result: yes" >&5
4593 echo "${ECHO_T}yes" >&6
4594 else
4595 echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6
4597 fi
4598
4599
4600 enablestring=
4601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4602 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4603 no_cache=0
4604 # Check whether --enable-dialupman or --disable-dialupman was given.
4605 if test "${enable_dialupman+set}" = set; then
4606 enableval="$enable_dialupman"
4607
4608 if test "$enableval" = yes; then
4609 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4610 else
4611 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4612 fi
4613
4614 else
4615
4616 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4617 if test "x$LINE" != x ; then
4618 eval "DEFAULT_$LINE"
4619 else
4620 no_cache=1
4621 fi
4622
4623 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4624
4625 fi;
4626
4627 eval "$ac_cv_use_dialupman"
4628 if test "$no_cache" != 1; then
4629 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4630 fi
4631
4632 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4633 echo "$as_me:$LINENO: result: yes" >&5
4634 echo "${ECHO_T}yes" >&6
4635 else
4636 echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4638 fi
4639
4640
4641 enablestring=
4642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4643 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4644 no_cache=0
4645 # Check whether --enable-dynlib or --disable-dynlib was given.
4646 if test "${enable_dynlib+set}" = set; then
4647 enableval="$enable_dynlib"
4648
4649 if test "$enableval" = yes; then
4650 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4651 else
4652 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4653 fi
4654
4655 else
4656
4657 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4658 if test "x$LINE" != x ; then
4659 eval "DEFAULT_$LINE"
4660 else
4661 no_cache=1
4662 fi
4663
4664 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4665
4666 fi;
4667
4668 eval "$ac_cv_use_dynlib"
4669 if test "$no_cache" != 1; then
4670 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4671 fi
4672
4673 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4674 echo "$as_me:$LINENO: result: yes" >&5
4675 echo "${ECHO_T}yes" >&6
4676 else
4677 echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6
4679 fi
4680
4681
4682 enablestring=
4683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4684 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4685 no_cache=0
4686 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4687 if test "${enable_dynamicloader+set}" = set; then
4688 enableval="$enable_dynamicloader"
4689
4690 if test "$enableval" = yes; then
4691 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4692 else
4693 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4694 fi
4695
4696 else
4697
4698 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4699 if test "x$LINE" != x ; then
4700 eval "DEFAULT_$LINE"
4701 else
4702 no_cache=1
4703 fi
4704
4705 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4706
4707 fi;
4708
4709 eval "$ac_cv_use_dynamicloader"
4710 if test "$no_cache" != 1; then
4711 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4712 fi
4713
4714 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4715 echo "$as_me:$LINENO: result: yes" >&5
4716 echo "${ECHO_T}yes" >&6
4717 else
4718 echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6
4720 fi
4721
4722
4723 enablestring=
4724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4725 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4726 no_cache=0
4727 # Check whether --enable-exceptions or --disable-exceptions was given.
4728 if test "${enable_exceptions+set}" = set; then
4729 enableval="$enable_exceptions"
4730
4731 if test "$enableval" = yes; then
4732 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4733 else
4734 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4735 fi
4736
4737 else
4738
4739 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4747
4748 fi;
4749
4750 eval "$ac_cv_use_exceptions"
4751 if test "$no_cache" != 1; then
4752 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4753 fi
4754
4755 if test "$wxUSE_EXCEPTIONS" = yes; then
4756 echo "$as_me:$LINENO: result: yes" >&5
4757 echo "${ECHO_T}yes" >&6
4758 else
4759 echo "$as_me:$LINENO: result: no" >&5
4760 echo "${ECHO_T}no" >&6
4761 fi
4762
4763
4764 enablestring=
4765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4766 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4767 no_cache=0
4768 # Check whether --enable-ffile or --disable-ffile was given.
4769 if test "${enable_ffile+set}" = set; then
4770 enableval="$enable_ffile"
4771
4772 if test "$enableval" = yes; then
4773 ac_cv_use_ffile='wxUSE_FFILE=yes'
4774 else
4775 ac_cv_use_ffile='wxUSE_FFILE=no'
4776 fi
4777
4778 else
4779
4780 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4781 if test "x$LINE" != x ; then
4782 eval "DEFAULT_$LINE"
4783 else
4784 no_cache=1
4785 fi
4786
4787 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4788
4789 fi;
4790
4791 eval "$ac_cv_use_ffile"
4792 if test "$no_cache" != 1; then
4793 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4794 fi
4795
4796 if test "$wxUSE_FFILE" = yes; then
4797 echo "$as_me:$LINENO: result: yes" >&5
4798 echo "${ECHO_T}yes" >&6
4799 else
4800 echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6
4802 fi
4803
4804
4805 enablestring=
4806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4807 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4808 no_cache=0
4809 # Check whether --enable-file or --disable-file was given.
4810 if test "${enable_file+set}" = set; then
4811 enableval="$enable_file"
4812
4813 if test "$enableval" = yes; then
4814 ac_cv_use_file='wxUSE_FILE=yes'
4815 else
4816 ac_cv_use_file='wxUSE_FILE=no'
4817 fi
4818
4819 else
4820
4821 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4822 if test "x$LINE" != x ; then
4823 eval "DEFAULT_$LINE"
4824 else
4825 no_cache=1
4826 fi
4827
4828 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4829
4830 fi;
4831
4832 eval "$ac_cv_use_file"
4833 if test "$no_cache" != 1; then
4834 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4835 fi
4836
4837 if test "$wxUSE_FILE" = yes; then
4838 echo "$as_me:$LINENO: result: yes" >&5
4839 echo "${ECHO_T}yes" >&6
4840 else
4841 echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6
4843 fi
4844
4845
4846 enablestring=
4847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4848 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4849 no_cache=0
4850 # Check whether --enable-filesystem or --disable-filesystem was given.
4851 if test "${enable_filesystem+set}" = set; then
4852 enableval="$enable_filesystem"
4853
4854 if test "$enableval" = yes; then
4855 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4856 else
4857 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4858 fi
4859
4860 else
4861
4862 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4863 if test "x$LINE" != x ; then
4864 eval "DEFAULT_$LINE"
4865 else
4866 no_cache=1
4867 fi
4868
4869 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4870
4871 fi;
4872
4873 eval "$ac_cv_use_filesystem"
4874 if test "$no_cache" != 1; then
4875 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4876 fi
4877
4878 if test "$wxUSE_FILESYSTEM" = yes; then
4879 echo "$as_me:$LINENO: result: yes" >&5
4880 echo "${ECHO_T}yes" >&6
4881 else
4882 echo "$as_me:$LINENO: result: no" >&5
4883 echo "${ECHO_T}no" >&6
4884 fi
4885
4886
4887 enablestring=
4888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4889 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4890 no_cache=0
4891 # Check whether --enable-fontmap or --disable-fontmap was given.
4892 if test "${enable_fontmap+set}" = set; then
4893 enableval="$enable_fontmap"
4894
4895 if test "$enableval" = yes; then
4896 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4897 else
4898 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4899 fi
4900
4901 else
4902
4903 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4904 if test "x$LINE" != x ; then
4905 eval "DEFAULT_$LINE"
4906 else
4907 no_cache=1
4908 fi
4909
4910 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4911
4912 fi;
4913
4914 eval "$ac_cv_use_fontmap"
4915 if test "$no_cache" != 1; then
4916 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4917 fi
4918
4919 if test "$wxUSE_FONTMAP" = yes; then
4920 echo "$as_me:$LINENO: result: yes" >&5
4921 echo "${ECHO_T}yes" >&6
4922 else
4923 echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6
4925 fi
4926
4927
4928 enablestring=
4929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4930 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
4931 no_cache=0
4932 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4933 if test "${enable_fs_inet+set}" = set; then
4934 enableval="$enable_fs_inet"
4935
4936 if test "$enableval" = yes; then
4937 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4938 else
4939 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4940 fi
4941
4942 else
4943
4944 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4945 if test "x$LINE" != x ; then
4946 eval "DEFAULT_$LINE"
4947 else
4948 no_cache=1
4949 fi
4950
4951 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4952
4953 fi;
4954
4955 eval "$ac_cv_use_fs_inet"
4956 if test "$no_cache" != 1; then
4957 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4958 fi
4959
4960 if test "$wxUSE_FS_INET" = yes; then
4961 echo "$as_me:$LINENO: result: yes" >&5
4962 echo "${ECHO_T}yes" >&6
4963 else
4964 echo "$as_me:$LINENO: result: no" >&5
4965 echo "${ECHO_T}no" >&6
4966 fi
4967
4968
4969 enablestring=
4970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4971 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
4972 no_cache=0
4973 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4974 if test "${enable_fs_zip+set}" = set; then
4975 enableval="$enable_fs_zip"
4976
4977 if test "$enableval" = yes; then
4978 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4979 else
4980 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4981 fi
4982
4983 else
4984
4985 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4986 if test "x$LINE" != x ; then
4987 eval "DEFAULT_$LINE"
4988 else
4989 no_cache=1
4990 fi
4991
4992 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4993
4994 fi;
4995
4996 eval "$ac_cv_use_fs_zip"
4997 if test "$no_cache" != 1; then
4998 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4999 fi
5000
5001 if test "$wxUSE_FS_ZIP" = yes; then
5002 echo "$as_me:$LINENO: result: yes" >&5
5003 echo "${ECHO_T}yes" >&6
5004 else
5005 echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6
5007 fi
5008
5009
5010 enablestring=
5011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5012 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5013 no_cache=0
5014 # Check whether --enable-geometry or --disable-geometry was given.
5015 if test "${enable_geometry+set}" = set; then
5016 enableval="$enable_geometry"
5017
5018 if test "$enableval" = yes; then
5019 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5020 else
5021 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5022 fi
5023
5024 else
5025
5026 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5027 if test "x$LINE" != x ; then
5028 eval "DEFAULT_$LINE"
5029 else
5030 no_cache=1
5031 fi
5032
5033 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5034
5035 fi;
5036
5037 eval "$ac_cv_use_geometry"
5038 if test "$no_cache" != 1; then
5039 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5040 fi
5041
5042 if test "$wxUSE_GEOMETRY" = yes; then
5043 echo "$as_me:$LINENO: result: yes" >&5
5044 echo "${ECHO_T}yes" >&6
5045 else
5046 echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6
5048 fi
5049
5050
5051 enablestring=
5052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5053 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5054 no_cache=0
5055 # Check whether --enable-log or --disable-log was given.
5056 if test "${enable_log+set}" = set; then
5057 enableval="$enable_log"
5058
5059 if test "$enableval" = yes; then
5060 ac_cv_use_log='wxUSE_LOG=yes'
5061 else
5062 ac_cv_use_log='wxUSE_LOG=no'
5063 fi
5064
5065 else
5066
5067 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5068 if test "x$LINE" != x ; then
5069 eval "DEFAULT_$LINE"
5070 else
5071 no_cache=1
5072 fi
5073
5074 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5075
5076 fi;
5077
5078 eval "$ac_cv_use_log"
5079 if test "$no_cache" != 1; then
5080 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5081 fi
5082
5083 if test "$wxUSE_LOG" = yes; then
5084 echo "$as_me:$LINENO: result: yes" >&5
5085 echo "${ECHO_T}yes" >&6
5086 else
5087 echo "$as_me:$LINENO: result: no" >&5
5088 echo "${ECHO_T}no" >&6
5089 fi
5090
5091
5092 enablestring=
5093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5094 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5095 no_cache=0
5096 # Check whether --enable-longlong or --disable-longlong was given.
5097 if test "${enable_longlong+set}" = set; then
5098 enableval="$enable_longlong"
5099
5100 if test "$enableval" = yes; then
5101 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5102 else
5103 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5104 fi
5105
5106 else
5107
5108 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5109 if test "x$LINE" != x ; then
5110 eval "DEFAULT_$LINE"
5111 else
5112 no_cache=1
5113 fi
5114
5115 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5116
5117 fi;
5118
5119 eval "$ac_cv_use_longlong"
5120 if test "$no_cache" != 1; then
5121 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5122 fi
5123
5124 if test "$wxUSE_LONGLONG" = yes; then
5125 echo "$as_me:$LINENO: result: yes" >&5
5126 echo "${ECHO_T}yes" >&6
5127 else
5128 echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6
5130 fi
5131
5132
5133 enablestring=
5134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5135 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5136 no_cache=0
5137 # Check whether --enable-mimetype or --disable-mimetype was given.
5138 if test "${enable_mimetype+set}" = set; then
5139 enableval="$enable_mimetype"
5140
5141 if test "$enableval" = yes; then
5142 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5143 else
5144 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5145 fi
5146
5147 else
5148
5149 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5150 if test "x$LINE" != x ; then
5151 eval "DEFAULT_$LINE"
5152 else
5153 no_cache=1
5154 fi
5155
5156 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5157
5158 fi;
5159
5160 eval "$ac_cv_use_mimetype"
5161 if test "$no_cache" != 1; then
5162 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5163 fi
5164
5165 if test "$wxUSE_MIMETYPE" = yes; then
5166 echo "$as_me:$LINENO: result: yes" >&5
5167 echo "${ECHO_T}yes" >&6
5168 else
5169 echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6
5171 fi
5172
5173
5174 enablestring=
5175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5176 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5177 no_cache=0
5178 # Check whether --enable-mslu or --disable-mslu was given.
5179 if test "${enable_mslu+set}" = set; then
5180 enableval="$enable_mslu"
5181
5182 if test "$enableval" = yes; then
5183 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5184 else
5185 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5186 fi
5187
5188 else
5189
5190 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5191 if test "x$LINE" != x ; then
5192 eval "DEFAULT_$LINE"
5193 else
5194 no_cache=1
5195 fi
5196
5197 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5198
5199 fi;
5200
5201 eval "$ac_cv_use_mslu"
5202 if test "$no_cache" != 1; then
5203 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5204 fi
5205
5206 if test "$wxUSE_UNICODE_MSLU" = yes; then
5207 echo "$as_me:$LINENO: result: yes" >&5
5208 echo "${ECHO_T}yes" >&6
5209 else
5210 echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5212 fi
5213
5214
5215 enablestring=
5216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5217 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5218 no_cache=0
5219 # Check whether --enable-snglinst or --disable-snglinst was given.
5220 if test "${enable_snglinst+set}" = set; then
5221 enableval="$enable_snglinst"
5222
5223 if test "$enableval" = yes; then
5224 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5225 else
5226 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5227 fi
5228
5229 else
5230
5231 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5232 if test "x$LINE" != x ; then
5233 eval "DEFAULT_$LINE"
5234 else
5235 no_cache=1
5236 fi
5237
5238 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5239
5240 fi;
5241
5242 eval "$ac_cv_use_snglinst"
5243 if test "$no_cache" != 1; then
5244 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5245 fi
5246
5247 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5248 echo "$as_me:$LINENO: result: yes" >&5
5249 echo "${ECHO_T}yes" >&6
5250 else
5251 echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5253 fi
5254
5255
5256 enablestring=
5257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5258 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5259 no_cache=0
5260 # Check whether --enable-streams or --disable-streams was given.
5261 if test "${enable_streams+set}" = set; then
5262 enableval="$enable_streams"
5263
5264 if test "$enableval" = yes; then
5265 ac_cv_use_streams='wxUSE_STREAMS=yes'
5266 else
5267 ac_cv_use_streams='wxUSE_STREAMS=no'
5268 fi
5269
5270 else
5271
5272 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5273 if test "x$LINE" != x ; then
5274 eval "DEFAULT_$LINE"
5275 else
5276 no_cache=1
5277 fi
5278
5279 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5280
5281 fi;
5282
5283 eval "$ac_cv_use_streams"
5284 if test "$no_cache" != 1; then
5285 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5286 fi
5287
5288 if test "$wxUSE_STREAMS" = yes; then
5289 echo "$as_me:$LINENO: result: yes" >&5
5290 echo "${ECHO_T}yes" >&6
5291 else
5292 echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6
5294 fi
5295
5296
5297 enablestring=
5298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5299 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5300 no_cache=0
5301 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5302 if test "${enable_std_iostreams+set}" = set; then
5303 enableval="$enable_std_iostreams"
5304
5305 if test "$enableval" = yes; then
5306 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5307 else
5308 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5309 fi
5310
5311 else
5312
5313 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5314 if test "x$LINE" != x ; then
5315 eval "DEFAULT_$LINE"
5316 else
5317 no_cache=1
5318 fi
5319
5320 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5321
5322 fi;
5323
5324 eval "$ac_cv_use_std_iostreams"
5325 if test "$no_cache" != 1; then
5326 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5327 fi
5328
5329 if test "$wxUSE_STD_IOSTREAM" = yes; then
5330 echo "$as_me:$LINENO: result: yes" >&5
5331 echo "${ECHO_T}yes" >&6
5332 else
5333 echo "$as_me:$LINENO: result: no" >&5
5334 echo "${ECHO_T}no" >&6
5335 fi
5336
5337
5338 enablestring=
5339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5340 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5341 no_cache=0
5342 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5343 if test "${enable_stopwatch+set}" = set; then
5344 enableval="$enable_stopwatch"
5345
5346 if test "$enableval" = yes; then
5347 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5348 else
5349 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5350 fi
5351
5352 else
5353
5354 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5355 if test "x$LINE" != x ; then
5356 eval "DEFAULT_$LINE"
5357 else
5358 no_cache=1
5359 fi
5360
5361 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5362
5363 fi;
5364
5365 eval "$ac_cv_use_stopwatch"
5366 if test "$no_cache" != 1; then
5367 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5368 fi
5369
5370 if test "$wxUSE_STOPWATCH" = yes; then
5371 echo "$as_me:$LINENO: result: yes" >&5
5372 echo "${ECHO_T}yes" >&6
5373 else
5374 echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5376 fi
5377
5378
5379 enablestring=
5380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5381 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5382 no_cache=0
5383 # Check whether --enable-system_options or --disable-system_options was given.
5384 if test "${enable_system_options+set}" = set; then
5385 enableval="$enable_system_options"
5386
5387 if test "$enableval" = yes; then
5388 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5389 else
5390 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5391 fi
5392
5393 else
5394
5395 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5396 if test "x$LINE" != x ; then
5397 eval "DEFAULT_$LINE"
5398 else
5399 no_cache=1
5400 fi
5401
5402 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5403
5404 fi;
5405
5406 eval "$ac_cv_use_system_options"
5407 if test "$no_cache" != 1; then
5408 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5409 fi
5410
5411 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5412 echo "$as_me:$LINENO: result: yes" >&5
5413 echo "${ECHO_T}yes" >&6
5414 else
5415 echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6
5417 fi
5418
5419
5420 enablestring=
5421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5422 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5423 no_cache=0
5424 # Check whether --enable-textbuf or --disable-textbuf was given.
5425 if test "${enable_textbuf+set}" = set; then
5426 enableval="$enable_textbuf"
5427
5428 if test "$enableval" = yes; then
5429 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5430 else
5431 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5432 fi
5433
5434 else
5435
5436 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5437 if test "x$LINE" != x ; then
5438 eval "DEFAULT_$LINE"
5439 else
5440 no_cache=1
5441 fi
5442
5443 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5444
5445 fi;
5446
5447 eval "$ac_cv_use_textbuf"
5448 if test "$no_cache" != 1; then
5449 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5450 fi
5451
5452 if test "$wxUSE_TEXTBUFFER" = yes; then
5453 echo "$as_me:$LINENO: result: yes" >&5
5454 echo "${ECHO_T}yes" >&6
5455 else
5456 echo "$as_me:$LINENO: result: no" >&5
5457 echo "${ECHO_T}no" >&6
5458 fi
5459
5460
5461 enablestring=
5462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5463 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5464 no_cache=0
5465 # Check whether --enable-textfile or --disable-textfile was given.
5466 if test "${enable_textfile+set}" = set; then
5467 enableval="$enable_textfile"
5468
5469 if test "$enableval" = yes; then
5470 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5471 else
5472 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5473 fi
5474
5475 else
5476
5477 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5478 if test "x$LINE" != x ; then
5479 eval "DEFAULT_$LINE"
5480 else
5481 no_cache=1
5482 fi
5483
5484 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5485
5486 fi;
5487
5488 eval "$ac_cv_use_textfile"
5489 if test "$no_cache" != 1; then
5490 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5491 fi
5492
5493 if test "$wxUSE_TEXTFILE" = yes; then
5494 echo "$as_me:$LINENO: result: yes" >&5
5495 echo "${ECHO_T}yes" >&6
5496 else
5497 echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6
5499 fi
5500
5501
5502 enablestring=
5503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5504 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5505 no_cache=0
5506 # Check whether --enable-timer or --disable-timer was given.
5507 if test "${enable_timer+set}" = set; then
5508 enableval="$enable_timer"
5509
5510 if test "$enableval" = yes; then
5511 ac_cv_use_timer='wxUSE_TIMER=yes'
5512 else
5513 ac_cv_use_timer='wxUSE_TIMER=no'
5514 fi
5515
5516 else
5517
5518 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5519 if test "x$LINE" != x ; then
5520 eval "DEFAULT_$LINE"
5521 else
5522 no_cache=1
5523 fi
5524
5525 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5526
5527 fi;
5528
5529 eval "$ac_cv_use_timer"
5530 if test "$no_cache" != 1; then
5531 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5532 fi
5533
5534 if test "$wxUSE_TIMER" = yes; then
5535 echo "$as_me:$LINENO: result: yes" >&5
5536 echo "${ECHO_T}yes" >&6
5537 else
5538 echo "$as_me:$LINENO: result: no" >&5
5539 echo "${ECHO_T}no" >&6
5540 fi
5541
5542
5543 enablestring=
5544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5545 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5546 no_cache=0
5547 # Check whether --enable-unicode or --disable-unicode was given.
5548 if test "${enable_unicode+set}" = set; then
5549 enableval="$enable_unicode"
5550
5551 if test "$enableval" = yes; then
5552 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5553 else
5554 ac_cv_use_unicode='wxUSE_UNICODE=no'
5555 fi
5556
5557 else
5558
5559 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5560 if test "x$LINE" != x ; then
5561 eval "DEFAULT_$LINE"
5562 else
5563 no_cache=1
5564 fi
5565
5566 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5567
5568 fi;
5569
5570 eval "$ac_cv_use_unicode"
5571 if test "$no_cache" != 1; then
5572 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5573 fi
5574
5575 if test "$wxUSE_UNICODE" = yes; then
5576 echo "$as_me:$LINENO: result: yes" >&5
5577 echo "${ECHO_T}yes" >&6
5578 else
5579 echo "$as_me:$LINENO: result: no" >&5
5580 echo "${ECHO_T}no" >&6
5581 fi
5582
5583
5584 enablestring=
5585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5586 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5587 no_cache=0
5588 # Check whether --enable-sound or --disable-sound was given.
5589 if test "${enable_sound+set}" = set; then
5590 enableval="$enable_sound"
5591
5592 if test "$enableval" = yes; then
5593 ac_cv_use_sound='wxUSE_SOUND=yes'
5594 else
5595 ac_cv_use_sound='wxUSE_SOUND=no'
5596 fi
5597
5598 else
5599
5600 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5601 if test "x$LINE" != x ; then
5602 eval "DEFAULT_$LINE"
5603 else
5604 no_cache=1
5605 fi
5606
5607 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5608
5609 fi;
5610
5611 eval "$ac_cv_use_sound"
5612 if test "$no_cache" != 1; then
5613 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5614 fi
5615
5616 if test "$wxUSE_SOUND" = yes; then
5617 echo "$as_me:$LINENO: result: yes" >&5
5618 echo "${ECHO_T}yes" >&6
5619 else
5620 echo "$as_me:$LINENO: result: no" >&5
5621 echo "${ECHO_T}no" >&6
5622 fi
5623
5624
5625 enablestring=
5626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5627 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5628 no_cache=0
5629 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5630 if test "${enable_wxprintfv+set}" = set; then
5631 enableval="$enable_wxprintfv"
5632
5633 if test "$enableval" = yes; then
5634 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5635 else
5636 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5637 fi
5638
5639 else
5640
5641 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5642 if test "x$LINE" != x ; then
5643 eval "DEFAULT_$LINE"
5644 else
5645 no_cache=1
5646 fi
5647
5648 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5649
5650 fi;
5651
5652 eval "$ac_cv_use_wxprintfv"
5653 if test "$no_cache" != 1; then
5654 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5655 fi
5656
5657 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5658 echo "$as_me:$LINENO: result: yes" >&5
5659 echo "${ECHO_T}yes" >&6
5660 else
5661 echo "$as_me:$LINENO: result: no" >&5
5662 echo "${ECHO_T}no" >&6
5663 fi
5664
5665
5666 enablestring=
5667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5668 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5669 no_cache=0
5670 # Check whether --enable-zipstream or --disable-zipstream was given.
5671 if test "${enable_zipstream+set}" = set; then
5672 enableval="$enable_zipstream"
5673
5674 if test "$enableval" = yes; then
5675 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5676 else
5677 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5678 fi
5679
5680 else
5681
5682 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5683 if test "x$LINE" != x ; then
5684 eval "DEFAULT_$LINE"
5685 else
5686 no_cache=1
5687 fi
5688
5689 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5690
5691 fi;
5692
5693 eval "$ac_cv_use_zipstream"
5694 if test "$no_cache" != 1; then
5695 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5696 fi
5697
5698 if test "$wxUSE_ZIPSTREAM" = yes; then
5699 echo "$as_me:$LINENO: result: yes" >&5
5700 echo "${ECHO_T}yes" >&6
5701 else
5702 echo "$as_me:$LINENO: result: no" >&5
5703 echo "${ECHO_T}no" >&6
5704 fi
5705
5706
5707 enablestring=
5708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5709 echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5710 no_cache=0
5711 # Check whether --enable-gzstream or --disable-gzstream was given.
5712 if test "${enable_gzstream+set}" = set; then
5713 enableval="$enable_gzstream"
5714
5715 if test "$enableval" = yes; then
5716 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5717 else
5718 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5719 fi
5720
5721 else
5722
5723 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5724 if test "x$LINE" != x ; then
5725 eval "DEFAULT_$LINE"
5726 else
5727 no_cache=1
5728 fi
5729
5730 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5731
5732 fi;
5733
5734 eval "$ac_cv_use_gzstream"
5735 if test "$no_cache" != 1; then
5736 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5737 fi
5738
5739 if test "$wxUSE_GZSTREAM" = yes; then
5740 echo "$as_me:$LINENO: result: yes" >&5
5741 echo "${ECHO_T}yes" >&6
5742 else
5743 echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6
5745 fi
5746
5747
5748
5749 enablestring=
5750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5751 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5752 no_cache=0
5753 # Check whether --enable-url or --disable-url was given.
5754 if test "${enable_url+set}" = set; then
5755 enableval="$enable_url"
5756
5757 if test "$enableval" = yes; then
5758 ac_cv_use_url='wxUSE_URL=yes'
5759 else
5760 ac_cv_use_url='wxUSE_URL=no'
5761 fi
5762
5763 else
5764
5765 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5766 if test "x$LINE" != x ; then
5767 eval "DEFAULT_$LINE"
5768 else
5769 no_cache=1
5770 fi
5771
5772 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5773
5774 fi;
5775
5776 eval "$ac_cv_use_url"
5777 if test "$no_cache" != 1; then
5778 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5779 fi
5780
5781 if test "$wxUSE_URL" = yes; then
5782 echo "$as_me:$LINENO: result: yes" >&5
5783 echo "${ECHO_T}yes" >&6
5784 else
5785 echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6
5787 fi
5788
5789
5790 enablestring=
5791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5792 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5793 no_cache=0
5794 # Check whether --enable-protocol or --disable-protocol was given.
5795 if test "${enable_protocol+set}" = set; then
5796 enableval="$enable_protocol"
5797
5798 if test "$enableval" = yes; then
5799 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5800 else
5801 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5802 fi
5803
5804 else
5805
5806 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5807 if test "x$LINE" != x ; then
5808 eval "DEFAULT_$LINE"
5809 else
5810 no_cache=1
5811 fi
5812
5813 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5814
5815 fi;
5816
5817 eval "$ac_cv_use_protocol"
5818 if test "$no_cache" != 1; then
5819 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5820 fi
5821
5822 if test "$wxUSE_PROTOCOL" = yes; then
5823 echo "$as_me:$LINENO: result: yes" >&5
5824 echo "${ECHO_T}yes" >&6
5825 else
5826 echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6
5828 fi
5829
5830
5831 enablestring=
5832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5833 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5834 no_cache=0
5835 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5836 if test "${enable_protocol_http+set}" = set; then
5837 enableval="$enable_protocol_http"
5838
5839 if test "$enableval" = yes; then
5840 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5841 else
5842 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5843 fi
5844
5845 else
5846
5847 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5848 if test "x$LINE" != x ; then
5849 eval "DEFAULT_$LINE"
5850 else
5851 no_cache=1
5852 fi
5853
5854 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5855
5856 fi;
5857
5858 eval "$ac_cv_use_protocol_http"
5859 if test "$no_cache" != 1; then
5860 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5861 fi
5862
5863 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5864 echo "$as_me:$LINENO: result: yes" >&5
5865 echo "${ECHO_T}yes" >&6
5866 else
5867 echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6
5869 fi
5870
5871
5872 enablestring=
5873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5874 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5875 no_cache=0
5876 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5877 if test "${enable_protocol_ftp+set}" = set; then
5878 enableval="$enable_protocol_ftp"
5879
5880 if test "$enableval" = yes; then
5881 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5882 else
5883 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5884 fi
5885
5886 else
5887
5888 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5889 if test "x$LINE" != x ; then
5890 eval "DEFAULT_$LINE"
5891 else
5892 no_cache=1
5893 fi
5894
5895 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5896
5897 fi;
5898
5899 eval "$ac_cv_use_protocol_ftp"
5900 if test "$no_cache" != 1; then
5901 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5902 fi
5903
5904 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5905 echo "$as_me:$LINENO: result: yes" >&5
5906 echo "${ECHO_T}yes" >&6
5907 else
5908 echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6
5910 fi
5911
5912
5913 enablestring=
5914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5915 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5916 no_cache=0
5917 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5918 if test "${enable_protocol_file+set}" = set; then
5919 enableval="$enable_protocol_file"
5920
5921 if test "$enableval" = yes; then
5922 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5923 else
5924 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5925 fi
5926
5927 else
5928
5929 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5930 if test "x$LINE" != x ; then
5931 eval "DEFAULT_$LINE"
5932 else
5933 no_cache=1
5934 fi
5935
5936 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5937
5938 fi;
5939
5940 eval "$ac_cv_use_protocol_file"
5941 if test "$no_cache" != 1; then
5942 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5943 fi
5944
5945 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5946 echo "$as_me:$LINENO: result: yes" >&5
5947 echo "${ECHO_T}yes" >&6
5948 else
5949 echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6
5951 fi
5952
5953
5954
5955
5956
5957 enablestring=
5958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5959 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5960 no_cache=0
5961 # Check whether --enable-threads or --disable-threads was given.
5962 if test "${enable_threads+set}" = set; then
5963 enableval="$enable_threads"
5964
5965 if test "$enableval" = yes; then
5966 ac_cv_use_threads='wxUSE_THREADS=yes'
5967 else
5968 ac_cv_use_threads='wxUSE_THREADS=no'
5969 fi
5970
5971 else
5972
5973 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5974 if test "x$LINE" != x ; then
5975 eval "DEFAULT_$LINE"
5976 else
5977 no_cache=1
5978 fi
5979
5980 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5981
5982 fi;
5983
5984 eval "$ac_cv_use_threads"
5985 if test "$no_cache" != 1; then
5986 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5987 fi
5988
5989 if test "$wxUSE_THREADS" = yes; then
5990 echo "$as_me:$LINENO: result: yes" >&5
5991 echo "${ECHO_T}yes" >&6
5992 else
5993 echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6
5995 fi
5996
5997
5998 if test "$wxUSE_GUI" = "yes"; then
5999
6000
6001
6002 enablestring=
6003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6004 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6005 no_cache=0
6006 # Check whether --enable-docview or --disable-docview was given.
6007 if test "${enable_docview+set}" = set; then
6008 enableval="$enable_docview"
6009
6010 if test "$enableval" = yes; then
6011 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6012 else
6013 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6014 fi
6015
6016 else
6017
6018 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6019 if test "x$LINE" != x ; then
6020 eval "DEFAULT_$LINE"
6021 else
6022 no_cache=1
6023 fi
6024
6025 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6026
6027 fi;
6028
6029 eval "$ac_cv_use_docview"
6030 if test "$no_cache" != 1; then
6031 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6032 fi
6033
6034 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6035 echo "$as_me:$LINENO: result: yes" >&5
6036 echo "${ECHO_T}yes" >&6
6037 else
6038 echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6040 fi
6041
6042
6043 enablestring=
6044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6045 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6046 no_cache=0
6047 # Check whether --enable-help or --disable-help was given.
6048 if test "${enable_help+set}" = set; then
6049 enableval="$enable_help"
6050
6051 if test "$enableval" = yes; then
6052 ac_cv_use_help='wxUSE_HELP=yes'
6053 else
6054 ac_cv_use_help='wxUSE_HELP=no'
6055 fi
6056
6057 else
6058
6059 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6060 if test "x$LINE" != x ; then
6061 eval "DEFAULT_$LINE"
6062 else
6063 no_cache=1
6064 fi
6065
6066 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6067
6068 fi;
6069
6070 eval "$ac_cv_use_help"
6071 if test "$no_cache" != 1; then
6072 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6073 fi
6074
6075 if test "$wxUSE_HELP" = yes; then
6076 echo "$as_me:$LINENO: result: yes" >&5
6077 echo "${ECHO_T}yes" >&6
6078 else
6079 echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6
6081 fi
6082
6083
6084 enablestring=
6085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6086 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6087 no_cache=0
6088 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6089 if test "${enable_mshtmlhelp+set}" = set; then
6090 enableval="$enable_mshtmlhelp"
6091
6092 if test "$enableval" = yes; then
6093 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6094 else
6095 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6096 fi
6097
6098 else
6099
6100 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6101 if test "x$LINE" != x ; then
6102 eval "DEFAULT_$LINE"
6103 else
6104 no_cache=1
6105 fi
6106
6107 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6108
6109 fi;
6110
6111 eval "$ac_cv_use_mshtmlhelp"
6112 if test "$no_cache" != 1; then
6113 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6114 fi
6115
6116 if test "$wxUSE_MS_HTML_HELP" = yes; then
6117 echo "$as_me:$LINENO: result: yes" >&5
6118 echo "${ECHO_T}yes" >&6
6119 else
6120 echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6
6122 fi
6123
6124
6125 enablestring=
6126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6127 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6128 no_cache=0
6129 # Check whether --enable-html or --disable-html was given.
6130 if test "${enable_html+set}" = set; then
6131 enableval="$enable_html"
6132
6133 if test "$enableval" = yes; then
6134 ac_cv_use_html='wxUSE_HTML=yes'
6135 else
6136 ac_cv_use_html='wxUSE_HTML=no'
6137 fi
6138
6139 else
6140
6141 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6142 if test "x$LINE" != x ; then
6143 eval "DEFAULT_$LINE"
6144 else
6145 no_cache=1
6146 fi
6147
6148 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6149
6150 fi;
6151
6152 eval "$ac_cv_use_html"
6153 if test "$no_cache" != 1; then
6154 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6155 fi
6156
6157 if test "$wxUSE_HTML" = yes; then
6158 echo "$as_me:$LINENO: result: yes" >&5
6159 echo "${ECHO_T}yes" >&6
6160 else
6161 echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6
6163 fi
6164
6165
6166 enablestring=
6167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6168 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6169 no_cache=0
6170 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6171 if test "${enable_htmlhelp+set}" = set; then
6172 enableval="$enable_htmlhelp"
6173
6174 if test "$enableval" = yes; then
6175 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6176 else
6177 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6178 fi
6179
6180 else
6181
6182 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6183 if test "x$LINE" != x ; then
6184 eval "DEFAULT_$LINE"
6185 else
6186 no_cache=1
6187 fi
6188
6189 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6190
6191 fi;
6192
6193 eval "$ac_cv_use_htmlhelp"
6194 if test "$no_cache" != 1; then
6195 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6196 fi
6197
6198 if test "$wxUSE_WXHTML_HELP" = yes; then
6199 echo "$as_me:$LINENO: result: yes" >&5
6200 echo "${ECHO_T}yes" >&6
6201 else
6202 echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6
6204 fi
6205
6206
6207 enablestring=
6208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6209 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6210 no_cache=0
6211 # Check whether --enable-constraints or --disable-constraints was given.
6212 if test "${enable_constraints+set}" = set; then
6213 enableval="$enable_constraints"
6214
6215 if test "$enableval" = yes; then
6216 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6217 else
6218 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6219 fi
6220
6221 else
6222
6223 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6224 if test "x$LINE" != x ; then
6225 eval "DEFAULT_$LINE"
6226 else
6227 no_cache=1
6228 fi
6229
6230 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6231
6232 fi;
6233
6234 eval "$ac_cv_use_constraints"
6235 if test "$no_cache" != 1; then
6236 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6237 fi
6238
6239 if test "$wxUSE_CONSTRAINTS" = yes; then
6240 echo "$as_me:$LINENO: result: yes" >&5
6241 echo "${ECHO_T}yes" >&6
6242 else
6243 echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6
6245 fi
6246
6247
6248 enablestring=
6249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6250 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6251 no_cache=0
6252 # Check whether --enable-printarch or --disable-printarch was given.
6253 if test "${enable_printarch+set}" = set; then
6254 enableval="$enable_printarch"
6255
6256 if test "$enableval" = yes; then
6257 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6258 else
6259 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6260 fi
6261
6262 else
6263
6264 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6272
6273 fi;
6274
6275 eval "$ac_cv_use_printarch"
6276 if test "$no_cache" != 1; then
6277 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6278 fi
6279
6280 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6281 echo "$as_me:$LINENO: result: yes" >&5
6282 echo "${ECHO_T}yes" >&6
6283 else
6284 echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6
6286 fi
6287
6288
6289 enablestring=
6290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6291 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6292 no_cache=0
6293 # Check whether --enable-mdi or --disable-mdi was given.
6294 if test "${enable_mdi+set}" = set; then
6295 enableval="$enable_mdi"
6296
6297 if test "$enableval" = yes; then
6298 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6299 else
6300 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6301 fi
6302
6303 else
6304
6305 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6306 if test "x$LINE" != x ; then
6307 eval "DEFAULT_$LINE"
6308 else
6309 no_cache=1
6310 fi
6311
6312 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6313
6314 fi;
6315
6316 eval "$ac_cv_use_mdi"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6322 echo "$as_me:$LINENO: result: yes" >&5
6323 echo "${ECHO_T}yes" >&6
6324 else
6325 echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6
6327 fi
6328
6329
6330 enablestring=
6331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6332 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6333 no_cache=0
6334 # Check whether --enable-loggui or --disable-loggui was given.
6335 if test "${enable_loggui+set}" = set; then
6336 enableval="$enable_loggui"
6337
6338 if test "$enableval" = yes; then
6339 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6340 else
6341 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6342 fi
6343
6344 else
6345
6346 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6347 if test "x$LINE" != x ; then
6348 eval "DEFAULT_$LINE"
6349 else
6350 no_cache=1
6351 fi
6352
6353 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6354
6355 fi;
6356
6357 eval "$ac_cv_use_loggui"
6358 if test "$no_cache" != 1; then
6359 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6360 fi
6361
6362 if test "$wxUSE_LOGGUI" = yes; then
6363 echo "$as_me:$LINENO: result: yes" >&5
6364 echo "${ECHO_T}yes" >&6
6365 else
6366 echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6
6368 fi
6369
6370
6371 enablestring=
6372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6373 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6374 no_cache=0
6375 # Check whether --enable-logwin or --disable-logwin was given.
6376 if test "${enable_logwin+set}" = set; then
6377 enableval="$enable_logwin"
6378
6379 if test "$enableval" = yes; then
6380 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6381 else
6382 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6383 fi
6384
6385 else
6386
6387 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6388 if test "x$LINE" != x ; then
6389 eval "DEFAULT_$LINE"
6390 else
6391 no_cache=1
6392 fi
6393
6394 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6395
6396 fi;
6397
6398 eval "$ac_cv_use_logwin"
6399 if test "$no_cache" != 1; then
6400 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6401 fi
6402
6403 if test "$wxUSE_LOGWINDOW" = yes; then
6404 echo "$as_me:$LINENO: result: yes" >&5
6405 echo "${ECHO_T}yes" >&6
6406 else
6407 echo "$as_me:$LINENO: result: no" >&5
6408 echo "${ECHO_T}no" >&6
6409 fi
6410
6411
6412 enablestring=
6413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6414 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6415 no_cache=0
6416 # Check whether --enable-logdialog or --disable-logdialog was given.
6417 if test "${enable_logdialog+set}" = set; then
6418 enableval="$enable_logdialog"
6419
6420 if test "$enableval" = yes; then
6421 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6422 else
6423 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6424 fi
6425
6426 else
6427
6428 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6429 if test "x$LINE" != x ; then
6430 eval "DEFAULT_$LINE"
6431 else
6432 no_cache=1
6433 fi
6434
6435 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6436
6437 fi;
6438
6439 eval "$ac_cv_use_logdialog"
6440 if test "$no_cache" != 1; then
6441 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6442 fi
6443
6444 if test "$wxUSE_LOGDIALOG" = yes; then
6445 echo "$as_me:$LINENO: result: yes" >&5
6446 echo "${ECHO_T}yes" >&6
6447 else
6448 echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6
6450 fi
6451
6452
6453
6454 enablestring=
6455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6456 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6457 no_cache=0
6458 # Check whether --enable-postscript or --disable-postscript was given.
6459 if test "${enable_postscript+set}" = set; then
6460 enableval="$enable_postscript"
6461
6462 if test "$enableval" = yes; then
6463 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6464 else
6465 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6466 fi
6467
6468 else
6469
6470 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6471 if test "x$LINE" != x ; then
6472 eval "DEFAULT_$LINE"
6473 else
6474 no_cache=1
6475 fi
6476
6477 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6478
6479 fi;
6480
6481 eval "$ac_cv_use_postscript"
6482 if test "$no_cache" != 1; then
6483 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6484 fi
6485
6486 if test "$wxUSE_POSTSCRIPT" = yes; then
6487 echo "$as_me:$LINENO: result: yes" >&5
6488 echo "${ECHO_T}yes" >&6
6489 else
6490 echo "$as_me:$LINENO: result: no" >&5
6491 echo "${ECHO_T}no" >&6
6492 fi
6493
6494
6495
6496
6497
6498 enablestring=
6499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6500 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6501 no_cache=0
6502 # Check whether --enable-prologio or --disable-prologio was given.
6503 if test "${enable_prologio+set}" = set; then
6504 enableval="$enable_prologio"
6505
6506 if test "$enableval" = yes; then
6507 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6508 else
6509 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6510 fi
6511
6512 else
6513
6514 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6515 if test "x$LINE" != x ; then
6516 eval "DEFAULT_$LINE"
6517 else
6518 no_cache=1
6519 fi
6520
6521 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6522
6523 fi;
6524
6525 eval "$ac_cv_use_prologio"
6526 if test "$no_cache" != 1; then
6527 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6528 fi
6529
6530 if test "$wxUSE_PROLOGIO" = yes; then
6531 echo "$as_me:$LINENO: result: yes" >&5
6532 echo "${ECHO_T}yes" >&6
6533 else
6534 echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6
6536 fi
6537
6538
6539 enablestring=
6540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6541 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6542 no_cache=0
6543 # Check whether --enable-resources or --disable-resources was given.
6544 if test "${enable_resources+set}" = set; then
6545 enableval="$enable_resources"
6546
6547 if test "$enableval" = yes; then
6548 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6549 else
6550 ac_cv_use_resources='wxUSE_RESOURCES=no'
6551 fi
6552
6553 else
6554
6555 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6556 if test "x$LINE" != x ; then
6557 eval "DEFAULT_$LINE"
6558 else
6559 no_cache=1
6560 fi
6561
6562 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6563
6564 fi;
6565
6566 eval "$ac_cv_use_resources"
6567 if test "$no_cache" != 1; then
6568 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6569 fi
6570
6571 if test "$wxUSE_RESOURCES" = yes; then
6572 echo "$as_me:$LINENO: result: yes" >&5
6573 echo "${ECHO_T}yes" >&6
6574 else
6575 echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6
6577 fi
6578
6579
6580
6581
6582 enablestring=
6583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6584 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6585 no_cache=0
6586 # Check whether --enable-clipboard or --disable-clipboard was given.
6587 if test "${enable_clipboard+set}" = set; then
6588 enableval="$enable_clipboard"
6589
6590 if test "$enableval" = yes; then
6591 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6592 else
6593 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6594 fi
6595
6596 else
6597
6598 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6599 if test "x$LINE" != x ; then
6600 eval "DEFAULT_$LINE"
6601 else
6602 no_cache=1
6603 fi
6604
6605 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6606
6607 fi;
6608
6609 eval "$ac_cv_use_clipboard"
6610 if test "$no_cache" != 1; then
6611 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6612 fi
6613
6614 if test "$wxUSE_CLIPBOARD" = yes; then
6615 echo "$as_me:$LINENO: result: yes" >&5
6616 echo "${ECHO_T}yes" >&6
6617 else
6618 echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6
6620 fi
6621
6622
6623 enablestring=
6624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6625 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6626 no_cache=0
6627 # Check whether --enable-dnd or --disable-dnd was given.
6628 if test "${enable_dnd+set}" = set; then
6629 enableval="$enable_dnd"
6630
6631 if test "$enableval" = yes; then
6632 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6633 else
6634 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6635 fi
6636
6637 else
6638
6639 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6640 if test "x$LINE" != x ; then
6641 eval "DEFAULT_$LINE"
6642 else
6643 no_cache=1
6644 fi
6645
6646 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6647
6648 fi;
6649
6650 eval "$ac_cv_use_dnd"
6651 if test "$no_cache" != 1; then
6652 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6653 fi
6654
6655 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6656 echo "$as_me:$LINENO: result: yes" >&5
6657 echo "${ECHO_T}yes" >&6
6658 else
6659 echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6
6661 fi
6662
6663
6664 enablestring=
6665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6666 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6667 no_cache=0
6668 # Check whether --enable-metafile or --disable-metafile was given.
6669 if test "${enable_metafile+set}" = set; then
6670 enableval="$enable_metafile"
6671
6672 if test "$enableval" = yes; then
6673 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6674 else
6675 ac_cv_use_metafile='wxUSE_METAFILE=no'
6676 fi
6677
6678 else
6679
6680 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6681 if test "x$LINE" != x ; then
6682 eval "DEFAULT_$LINE"
6683 else
6684 no_cache=1
6685 fi
6686
6687 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6688
6689 fi;
6690
6691 eval "$ac_cv_use_metafile"
6692 if test "$no_cache" != 1; then
6693 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6694 fi
6695
6696 if test "$wxUSE_METAFILE" = yes; then
6697 echo "$as_me:$LINENO: result: yes" >&5
6698 echo "${ECHO_T}yes" >&6
6699 else
6700 echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6
6702 fi
6703
6704
6705
6706
6707
6708 enablestring=
6709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6710 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6711 no_cache=0
6712 # Check whether --enable-controls or --disable-controls was given.
6713 if test "${enable_controls+set}" = set; then
6714 enableval="$enable_controls"
6715
6716 if test "$enableval" = yes; then
6717 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6718 else
6719 ac_cv_use_controls='wxUSE_CONTROLS=no'
6720 fi
6721
6722 else
6723
6724 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6725 if test "x$LINE" != x ; then
6726 eval "DEFAULT_$LINE"
6727 else
6728 no_cache=1
6729 fi
6730
6731 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6732
6733 fi;
6734
6735 eval "$ac_cv_use_controls"
6736 if test "$no_cache" != 1; then
6737 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6738 fi
6739
6740 if test "$wxUSE_CONTROLS" = yes; then
6741 echo "$as_me:$LINENO: result: yes" >&5
6742 echo "${ECHO_T}yes" >&6
6743 else
6744 echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6
6746 fi
6747
6748
6749 if test "$wxUSE_CONTROLS" = "yes"; then
6750 DEFAULT_wxUSE_ACCEL=yes
6751 DEFAULT_wxUSE_BMPBUTTON=yes
6752 DEFAULT_wxUSE_BUTTON=yes
6753 DEFAULT_wxUSE_CALCTRL=no
6754 DEFAULT_wxUSE_CARET=yes
6755 DEFAULT_wxUSE_COMBOBOX=yes
6756 DEFAULT_wxUSE_CHECKBOX=yes
6757 DEFAULT_wxUSE_CHECKLISTBOX=yes
6758 DEFAULT_wxUSE_CHOICE=yes
6759 DEFAULT_wxUSE_GAUGE=yes
6760 DEFAULT_wxUSE_GRID=yes
6761 DEFAULT_wxUSE_IMAGLIST=yes
6762 DEFAULT_wxUSE_LISTBOOK=yes
6763 DEFAULT_wxUSE_LISTBOX=yes
6764 DEFAULT_wxUSE_LISTCTRL=yes
6765 DEFAULT_wxUSE_NOTEBOOK=yes
6766 DEFAULT_wxUSE_RADIOBOX=yes
6767 DEFAULT_wxUSE_RADIOBTN=yes
6768 DEFAULT_wxUSE_SASH=yes
6769 DEFAULT_wxUSE_SCROLLBAR=yes
6770 DEFAULT_wxUSE_SLIDER=yes
6771 DEFAULT_wxUSE_SPINBTN=yes
6772 DEFAULT_wxUSE_SPINCTRL=yes
6773 DEFAULT_wxUSE_SPLITTER=yes
6774 DEFAULT_wxUSE_STATBMP=yes
6775 DEFAULT_wxUSE_STATBOX=yes
6776 DEFAULT_wxUSE_STATLINE=yes
6777 DEFAULT_wxUSE_STATUSBAR=yes
6778 DEFAULT_wxUSE_TAB_DIALOG=yes
6779 DEFAULT_wxUSE_TOGGLEBTN=yes
6780 DEFAULT_wxUSE_TOOLBAR=yes
6781 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6782 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6783 DEFAULT_wxUSE_TOOLTIPS=yes
6784 DEFAULT_wxUSE_TREECTRL=yes
6785 DEFAULT_wxUSE_POPUPWIN=yes
6786 DEFAULT_wxUSE_TIPWINDOW=yes
6787 elif test "$wxUSE_CONTROLS" = "no"; then
6788 DEFAULT_wxUSE_ACCEL=no
6789 DEFAULT_wxUSE_BMPBUTTON=no
6790 DEFAULT_wxUSE_BUTTON=no
6791 DEFAULT_wxUSE_CALCTRL=no
6792 DEFAULT_wxUSE_CARET=no
6793 DEFAULT_wxUSE_COMBOBOX=no
6794 DEFAULT_wxUSE_CHECKBOX=no
6795 DEFAULT_wxUSE_CHECKLISTBOX=no
6796 DEFAULT_wxUSE_CHOICE=no
6797 DEFAULT_wxUSE_GAUGE=no
6798 DEFAULT_wxUSE_GRID=no
6799 DEFAULT_wxUSE_IMAGLIST=no
6800 DEFAULT_wxUSE_LISTBOOK=no
6801 DEFAULT_wxUSE_LISTBOX=no
6802 DEFAULT_wxUSE_LISTCTRL=no
6803 DEFAULT_wxUSE_NOTEBOOK=no
6804 DEFAULT_wxUSE_RADIOBOX=no
6805 DEFAULT_wxUSE_RADIOBTN=no
6806 DEFAULT_wxUSE_SASH=no
6807 DEFAULT_wxUSE_SCROLLBAR=no
6808 DEFAULT_wxUSE_SLIDER=no
6809 DEFAULT_wxUSE_SPINBTN=no
6810 DEFAULT_wxUSE_SPINCTRL=no
6811 DEFAULT_wxUSE_SPLITTER=no
6812 DEFAULT_wxUSE_STATBMP=no
6813 DEFAULT_wxUSE_STATBOX=no
6814 DEFAULT_wxUSE_STATLINE=no
6815 DEFAULT_wxUSE_STATUSBAR=no
6816 DEFAULT_wxUSE_TAB_DIALOG=no
6817 DEFAULT_wxUSE_TOGGLEBTN=no
6818 DEFAULT_wxUSE_TOOLBAR=no
6819 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6820 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6821 DEFAULT_wxUSE_TOOLTIPS=no
6822 DEFAULT_wxUSE_TREECTRL=no
6823 DEFAULT_wxUSE_POPUPWIN=no
6824 DEFAULT_wxUSE_TIPWINDOW=no
6825 fi
6826
6827 ## FIXME: This is a blatant hack
6828 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6829 wxUSE_PRINTING_ARCHITECTURE=no
6830 wxUSE_DRAG_AND_DROP=no
6831 # Generic notebook requires tab dialog
6832 DEFAULT_wxUSE_TABDIALOG=yes
6833 DEFAULT_wxUSE_SCROLLBAR=no
6834 DEFAULT_wxUSE_TOOLTIPS=no
6835 DEFAULT_wxUSE_DRAGIMAGE=no
6836 fi
6837
6838
6839 enablestring=
6840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6841 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6842 no_cache=0
6843 # Check whether --enable-accel or --disable-accel was given.
6844 if test "${enable_accel+set}" = set; then
6845 enableval="$enable_accel"
6846
6847 if test "$enableval" = yes; then
6848 ac_cv_use_accel='wxUSE_ACCEL=yes'
6849 else
6850 ac_cv_use_accel='wxUSE_ACCEL=no'
6851 fi
6852
6853 else
6854
6855 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6856 if test "x$LINE" != x ; then
6857 eval "DEFAULT_$LINE"
6858 else
6859 no_cache=1
6860 fi
6861
6862 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6863
6864 fi;
6865
6866 eval "$ac_cv_use_accel"
6867 if test "$no_cache" != 1; then
6868 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6869 fi
6870
6871 if test "$wxUSE_ACCEL" = yes; then
6872 echo "$as_me:$LINENO: result: yes" >&5
6873 echo "${ECHO_T}yes" >&6
6874 else
6875 echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6
6877 fi
6878
6879
6880 enablestring=
6881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6882 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6883 no_cache=0
6884 # Check whether --enable-button or --disable-button was given.
6885 if test "${enable_button+set}" = set; then
6886 enableval="$enable_button"
6887
6888 if test "$enableval" = yes; then
6889 ac_cv_use_button='wxUSE_BUTTON=yes'
6890 else
6891 ac_cv_use_button='wxUSE_BUTTON=no'
6892 fi
6893
6894 else
6895
6896 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6897 if test "x$LINE" != x ; then
6898 eval "DEFAULT_$LINE"
6899 else
6900 no_cache=1
6901 fi
6902
6903 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6904
6905 fi;
6906
6907 eval "$ac_cv_use_button"
6908 if test "$no_cache" != 1; then
6909 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6910 fi
6911
6912 if test "$wxUSE_BUTTON" = yes; then
6913 echo "$as_me:$LINENO: result: yes" >&5
6914 echo "${ECHO_T}yes" >&6
6915 else
6916 echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6
6918 fi
6919
6920
6921 enablestring=
6922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6923 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6924 no_cache=0
6925 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6926 if test "${enable_bmpbutton+set}" = set; then
6927 enableval="$enable_bmpbutton"
6928
6929 if test "$enableval" = yes; then
6930 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6931 else
6932 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6933 fi
6934
6935 else
6936
6937 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6938 if test "x$LINE" != x ; then
6939 eval "DEFAULT_$LINE"
6940 else
6941 no_cache=1
6942 fi
6943
6944 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6945
6946 fi;
6947
6948 eval "$ac_cv_use_bmpbutton"
6949 if test "$no_cache" != 1; then
6950 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6951 fi
6952
6953 if test "$wxUSE_BMPBUTTON" = yes; then
6954 echo "$as_me:$LINENO: result: yes" >&5
6955 echo "${ECHO_T}yes" >&6
6956 else
6957 echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6
6959 fi
6960
6961
6962 enablestring=
6963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6964 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
6965 no_cache=0
6966 # Check whether --enable-calendar or --disable-calendar was given.
6967 if test "${enable_calendar+set}" = set; then
6968 enableval="$enable_calendar"
6969
6970 if test "$enableval" = yes; then
6971 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6972 else
6973 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6974 fi
6975
6976 else
6977
6978 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6979 if test "x$LINE" != x ; then
6980 eval "DEFAULT_$LINE"
6981 else
6982 no_cache=1
6983 fi
6984
6985 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6986
6987 fi;
6988
6989 eval "$ac_cv_use_calendar"
6990 if test "$no_cache" != 1; then
6991 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6992 fi
6993
6994 if test "$wxUSE_CALCTRL" = yes; then
6995 echo "$as_me:$LINENO: result: yes" >&5
6996 echo "${ECHO_T}yes" >&6
6997 else
6998 echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6
7000 fi
7001
7002
7003 enablestring=
7004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7005 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7006 no_cache=0
7007 # Check whether --enable-caret or --disable-caret was given.
7008 if test "${enable_caret+set}" = set; then
7009 enableval="$enable_caret"
7010
7011 if test "$enableval" = yes; then
7012 ac_cv_use_caret='wxUSE_CARET=yes'
7013 else
7014 ac_cv_use_caret='wxUSE_CARET=no'
7015 fi
7016
7017 else
7018
7019 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7020 if test "x$LINE" != x ; then
7021 eval "DEFAULT_$LINE"
7022 else
7023 no_cache=1
7024 fi
7025
7026 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7027
7028 fi;
7029
7030 eval "$ac_cv_use_caret"
7031 if test "$no_cache" != 1; then
7032 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7033 fi
7034
7035 if test "$wxUSE_CARET" = yes; then
7036 echo "$as_me:$LINENO: result: yes" >&5
7037 echo "${ECHO_T}yes" >&6
7038 else
7039 echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6
7041 fi
7042
7043
7044 enablestring=
7045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7046 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7047 no_cache=0
7048 # Check whether --enable-checkbox or --disable-checkbox was given.
7049 if test "${enable_checkbox+set}" = set; then
7050 enableval="$enable_checkbox"
7051
7052 if test "$enableval" = yes; then
7053 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7054 else
7055 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7056 fi
7057
7058 else
7059
7060 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
7067 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7068
7069 fi;
7070
7071 eval "$ac_cv_use_checkbox"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_CHECKBOX" = yes; then
7077 echo "$as_me:$LINENO: result: yes" >&5
7078 echo "${ECHO_T}yes" >&6
7079 else
7080 echo "$as_me:$LINENO: result: no" >&5
7081 echo "${ECHO_T}no" >&6
7082 fi
7083
7084
7085 enablestring=
7086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7087 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7088 no_cache=0
7089 # Check whether --enable-checklst or --disable-checklst was given.
7090 if test "${enable_checklst+set}" = set; then
7091 enableval="$enable_checklst"
7092
7093 if test "$enableval" = yes; then
7094 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7095 else
7096 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7097 fi
7098
7099 else
7100
7101 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7102 if test "x$LINE" != x ; then
7103 eval "DEFAULT_$LINE"
7104 else
7105 no_cache=1
7106 fi
7107
7108 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7109
7110 fi;
7111
7112 eval "$ac_cv_use_checklst"
7113 if test "$no_cache" != 1; then
7114 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7115 fi
7116
7117 if test "$wxUSE_CHECKLST" = yes; then
7118 echo "$as_me:$LINENO: result: yes" >&5
7119 echo "${ECHO_T}yes" >&6
7120 else
7121 echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6
7123 fi
7124
7125
7126 enablestring=
7127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7128 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7129 no_cache=0
7130 # Check whether --enable-choice or --disable-choice was given.
7131 if test "${enable_choice+set}" = set; then
7132 enableval="$enable_choice"
7133
7134 if test "$enableval" = yes; then
7135 ac_cv_use_choice='wxUSE_CHOICE=yes'
7136 else
7137 ac_cv_use_choice='wxUSE_CHOICE=no'
7138 fi
7139
7140 else
7141
7142 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7143 if test "x$LINE" != x ; then
7144 eval "DEFAULT_$LINE"
7145 else
7146 no_cache=1
7147 fi
7148
7149 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7150
7151 fi;
7152
7153 eval "$ac_cv_use_choice"
7154 if test "$no_cache" != 1; then
7155 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7156 fi
7157
7158 if test "$wxUSE_CHOICE" = yes; then
7159 echo "$as_me:$LINENO: result: yes" >&5
7160 echo "${ECHO_T}yes" >&6
7161 else
7162 echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6
7164 fi
7165
7166
7167 enablestring=
7168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7169 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7170 no_cache=0
7171 # Check whether --enable-combobox or --disable-combobox was given.
7172 if test "${enable_combobox+set}" = set; then
7173 enableval="$enable_combobox"
7174
7175 if test "$enableval" = yes; then
7176 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7177 else
7178 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7179 fi
7180
7181 else
7182
7183 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7184 if test "x$LINE" != x ; then
7185 eval "DEFAULT_$LINE"
7186 else
7187 no_cache=1
7188 fi
7189
7190 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7191
7192 fi;
7193
7194 eval "$ac_cv_use_combobox"
7195 if test "$no_cache" != 1; then
7196 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7197 fi
7198
7199 if test "$wxUSE_COMBOBOX" = yes; then
7200 echo "$as_me:$LINENO: result: yes" >&5
7201 echo "${ECHO_T}yes" >&6
7202 else
7203 echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6
7205 fi
7206
7207
7208 enablestring=
7209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7210 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7211 no_cache=0
7212 # Check whether --enable-display or --disable-display was given.
7213 if test "${enable_display+set}" = set; then
7214 enableval="$enable_display"
7215
7216 if test "$enableval" = yes; then
7217 ac_cv_use_display='wxUSE_DISPLAY=yes'
7218 else
7219 ac_cv_use_display='wxUSE_DISPLAY=no'
7220 fi
7221
7222 else
7223
7224 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7225 if test "x$LINE" != x ; then
7226 eval "DEFAULT_$LINE"
7227 else
7228 no_cache=1
7229 fi
7230
7231 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7232
7233 fi;
7234
7235 eval "$ac_cv_use_display"
7236 if test "$no_cache" != 1; then
7237 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7238 fi
7239
7240 if test "$wxUSE_DISPLAY" = yes; then
7241 echo "$as_me:$LINENO: result: yes" >&5
7242 echo "${ECHO_T}yes" >&6
7243 else
7244 echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6
7246 fi
7247
7248
7249 enablestring=
7250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7251 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7252 no_cache=0
7253 # Check whether --enable-gauge or --disable-gauge was given.
7254 if test "${enable_gauge+set}" = set; then
7255 enableval="$enable_gauge"
7256
7257 if test "$enableval" = yes; then
7258 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7259 else
7260 ac_cv_use_gauge='wxUSE_GAUGE=no'
7261 fi
7262
7263 else
7264
7265 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7266 if test "x$LINE" != x ; then
7267 eval "DEFAULT_$LINE"
7268 else
7269 no_cache=1
7270 fi
7271
7272 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7273
7274 fi;
7275
7276 eval "$ac_cv_use_gauge"
7277 if test "$no_cache" != 1; then
7278 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7279 fi
7280
7281 if test "$wxUSE_GAUGE" = yes; then
7282 echo "$as_me:$LINENO: result: yes" >&5
7283 echo "${ECHO_T}yes" >&6
7284 else
7285 echo "$as_me:$LINENO: result: no" >&5
7286 echo "${ECHO_T}no" >&6
7287 fi
7288
7289
7290 enablestring=
7291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7292 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7293 no_cache=0
7294 # Check whether --enable-grid or --disable-grid was given.
7295 if test "${enable_grid+set}" = set; then
7296 enableval="$enable_grid"
7297
7298 if test "$enableval" = yes; then
7299 ac_cv_use_grid='wxUSE_GRID=yes'
7300 else
7301 ac_cv_use_grid='wxUSE_GRID=no'
7302 fi
7303
7304 else
7305
7306 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7307 if test "x$LINE" != x ; then
7308 eval "DEFAULT_$LINE"
7309 else
7310 no_cache=1
7311 fi
7312
7313 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7314
7315 fi;
7316
7317 eval "$ac_cv_use_grid"
7318 if test "$no_cache" != 1; then
7319 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7320 fi
7321
7322 if test "$wxUSE_GRID" = yes; then
7323 echo "$as_me:$LINENO: result: yes" >&5
7324 echo "${ECHO_T}yes" >&6
7325 else
7326 echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6
7328 fi
7329
7330
7331 enablestring=
7332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7333 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7334 no_cache=0
7335 # Check whether --enable-imaglist or --disable-imaglist was given.
7336 if test "${enable_imaglist+set}" = set; then
7337 enableval="$enable_imaglist"
7338
7339 if test "$enableval" = yes; then
7340 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7341 else
7342 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7343 fi
7344
7345 else
7346
7347 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7348 if test "x$LINE" != x ; then
7349 eval "DEFAULT_$LINE"
7350 else
7351 no_cache=1
7352 fi
7353
7354 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7355
7356 fi;
7357
7358 eval "$ac_cv_use_imaglist"
7359 if test "$no_cache" != 1; then
7360 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7361 fi
7362
7363 if test "$wxUSE_IMAGLIST" = yes; then
7364 echo "$as_me:$LINENO: result: yes" >&5
7365 echo "${ECHO_T}yes" >&6
7366 else
7367 echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6
7369 fi
7370
7371
7372 enablestring=
7373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7374 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7375 no_cache=0
7376 # Check whether --enable-listbook or --disable-listbook was given.
7377 if test "${enable_listbook+set}" = set; then
7378 enableval="$enable_listbook"
7379
7380 if test "$enableval" = yes; then
7381 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7382 else
7383 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7384 fi
7385
7386 else
7387
7388 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7389 if test "x$LINE" != x ; then
7390 eval "DEFAULT_$LINE"
7391 else
7392 no_cache=1
7393 fi
7394
7395 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7396
7397 fi;
7398
7399 eval "$ac_cv_use_listbook"
7400 if test "$no_cache" != 1; then
7401 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7402 fi
7403
7404 if test "$wxUSE_LISTBOOK" = yes; then
7405 echo "$as_me:$LINENO: result: yes" >&5
7406 echo "${ECHO_T}yes" >&6
7407 else
7408 echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6
7410 fi
7411
7412
7413 enablestring=
7414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7415 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7416 no_cache=0
7417 # Check whether --enable-listbox or --disable-listbox was given.
7418 if test "${enable_listbox+set}" = set; then
7419 enableval="$enable_listbox"
7420
7421 if test "$enableval" = yes; then
7422 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7423 else
7424 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7425 fi
7426
7427 else
7428
7429 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7430 if test "x$LINE" != x ; then
7431 eval "DEFAULT_$LINE"
7432 else
7433 no_cache=1
7434 fi
7435
7436 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7437
7438 fi;
7439
7440 eval "$ac_cv_use_listbox"
7441 if test "$no_cache" != 1; then
7442 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7443 fi
7444
7445 if test "$wxUSE_LISTBOX" = yes; then
7446 echo "$as_me:$LINENO: result: yes" >&5
7447 echo "${ECHO_T}yes" >&6
7448 else
7449 echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7451 fi
7452
7453
7454 enablestring=
7455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7456 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7457 no_cache=0
7458 # Check whether --enable-listctrl or --disable-listctrl was given.
7459 if test "${enable_listctrl+set}" = set; then
7460 enableval="$enable_listctrl"
7461
7462 if test "$enableval" = yes; then
7463 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7464 else
7465 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7466 fi
7467
7468 else
7469
7470 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7471 if test "x$LINE" != x ; then
7472 eval "DEFAULT_$LINE"
7473 else
7474 no_cache=1
7475 fi
7476
7477 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7478
7479 fi;
7480
7481 eval "$ac_cv_use_listctrl"
7482 if test "$no_cache" != 1; then
7483 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7484 fi
7485
7486 if test "$wxUSE_LISTCTRL" = yes; then
7487 echo "$as_me:$LINENO: result: yes" >&5
7488 echo "${ECHO_T}yes" >&6
7489 else
7490 echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7492 fi
7493
7494
7495 enablestring=
7496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7497 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7498 no_cache=0
7499 # Check whether --enable-notebook or --disable-notebook was given.
7500 if test "${enable_notebook+set}" = set; then
7501 enableval="$enable_notebook"
7502
7503 if test "$enableval" = yes; then
7504 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7505 else
7506 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7507 fi
7508
7509 else
7510
7511 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7512 if test "x$LINE" != x ; then
7513 eval "DEFAULT_$LINE"
7514 else
7515 no_cache=1
7516 fi
7517
7518 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7519
7520 fi;
7521
7522 eval "$ac_cv_use_notebook"
7523 if test "$no_cache" != 1; then
7524 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7525 fi
7526
7527 if test "$wxUSE_NOTEBOOK" = yes; then
7528 echo "$as_me:$LINENO: result: yes" >&5
7529 echo "${ECHO_T}yes" >&6
7530 else
7531 echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7533 fi
7534
7535
7536 enablestring=
7537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7538 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7539 no_cache=0
7540 # Check whether --enable-radiobox or --disable-radiobox was given.
7541 if test "${enable_radiobox+set}" = set; then
7542 enableval="$enable_radiobox"
7543
7544 if test "$enableval" = yes; then
7545 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7546 else
7547 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7548 fi
7549
7550 else
7551
7552 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7553 if test "x$LINE" != x ; then
7554 eval "DEFAULT_$LINE"
7555 else
7556 no_cache=1
7557 fi
7558
7559 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7560
7561 fi;
7562
7563 eval "$ac_cv_use_radiobox"
7564 if test "$no_cache" != 1; then
7565 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7566 fi
7567
7568 if test "$wxUSE_RADIOBOX" = yes; then
7569 echo "$as_me:$LINENO: result: yes" >&5
7570 echo "${ECHO_T}yes" >&6
7571 else
7572 echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6
7574 fi
7575
7576
7577 enablestring=
7578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7579 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7580 no_cache=0
7581 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7582 if test "${enable_radiobtn+set}" = set; then
7583 enableval="$enable_radiobtn"
7584
7585 if test "$enableval" = yes; then
7586 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7587 else
7588 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7589 fi
7590
7591 else
7592
7593 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7594 if test "x$LINE" != x ; then
7595 eval "DEFAULT_$LINE"
7596 else
7597 no_cache=1
7598 fi
7599
7600 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7601
7602 fi;
7603
7604 eval "$ac_cv_use_radiobtn"
7605 if test "$no_cache" != 1; then
7606 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7607 fi
7608
7609 if test "$wxUSE_RADIOBTN" = yes; then
7610 echo "$as_me:$LINENO: result: yes" >&5
7611 echo "${ECHO_T}yes" >&6
7612 else
7613 echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7615 fi
7616
7617
7618 enablestring=
7619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7620 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7621 no_cache=0
7622 # Check whether --enable-sash or --disable-sash was given.
7623 if test "${enable_sash+set}" = set; then
7624 enableval="$enable_sash"
7625
7626 if test "$enableval" = yes; then
7627 ac_cv_use_sash='wxUSE_SASH=yes'
7628 else
7629 ac_cv_use_sash='wxUSE_SASH=no'
7630 fi
7631
7632 else
7633
7634 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7635 if test "x$LINE" != x ; then
7636 eval "DEFAULT_$LINE"
7637 else
7638 no_cache=1
7639 fi
7640
7641 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7642
7643 fi;
7644
7645 eval "$ac_cv_use_sash"
7646 if test "$no_cache" != 1; then
7647 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7648 fi
7649
7650 if test "$wxUSE_SASH" = yes; then
7651 echo "$as_me:$LINENO: result: yes" >&5
7652 echo "${ECHO_T}yes" >&6
7653 else
7654 echo "$as_me:$LINENO: result: no" >&5
7655 echo "${ECHO_T}no" >&6
7656 fi
7657
7658
7659 enablestring=
7660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7661 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7662 no_cache=0
7663 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7664 if test "${enable_scrollbar+set}" = set; then
7665 enableval="$enable_scrollbar"
7666
7667 if test "$enableval" = yes; then
7668 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7669 else
7670 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7671 fi
7672
7673 else
7674
7675 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7676 if test "x$LINE" != x ; then
7677 eval "DEFAULT_$LINE"
7678 else
7679 no_cache=1
7680 fi
7681
7682 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7683
7684 fi;
7685
7686 eval "$ac_cv_use_scrollbar"
7687 if test "$no_cache" != 1; then
7688 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7689 fi
7690
7691 if test "$wxUSE_SCROLLBAR" = yes; then
7692 echo "$as_me:$LINENO: result: yes" >&5
7693 echo "${ECHO_T}yes" >&6
7694 else
7695 echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6
7697 fi
7698
7699
7700 enablestring=
7701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7702 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7703 no_cache=0
7704 # Check whether --enable-slider or --disable-slider was given.
7705 if test "${enable_slider+set}" = set; then
7706 enableval="$enable_slider"
7707
7708 if test "$enableval" = yes; then
7709 ac_cv_use_slider='wxUSE_SLIDER=yes'
7710 else
7711 ac_cv_use_slider='wxUSE_SLIDER=no'
7712 fi
7713
7714 else
7715
7716 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7717 if test "x$LINE" != x ; then
7718 eval "DEFAULT_$LINE"
7719 else
7720 no_cache=1
7721 fi
7722
7723 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7724
7725 fi;
7726
7727 eval "$ac_cv_use_slider"
7728 if test "$no_cache" != 1; then
7729 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7730 fi
7731
7732 if test "$wxUSE_SLIDER" = yes; then
7733 echo "$as_me:$LINENO: result: yes" >&5
7734 echo "${ECHO_T}yes" >&6
7735 else
7736 echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6
7738 fi
7739
7740
7741 enablestring=
7742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7743 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7744 no_cache=0
7745 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7746 if test "${enable_spinbtn+set}" = set; then
7747 enableval="$enable_spinbtn"
7748
7749 if test "$enableval" = yes; then
7750 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7751 else
7752 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7753 fi
7754
7755 else
7756
7757 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7758 if test "x$LINE" != x ; then
7759 eval "DEFAULT_$LINE"
7760 else
7761 no_cache=1
7762 fi
7763
7764 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7765
7766 fi;
7767
7768 eval "$ac_cv_use_spinbtn"
7769 if test "$no_cache" != 1; then
7770 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7771 fi
7772
7773 if test "$wxUSE_SPINBTN" = yes; then
7774 echo "$as_me:$LINENO: result: yes" >&5
7775 echo "${ECHO_T}yes" >&6
7776 else
7777 echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6
7779 fi
7780
7781
7782 enablestring=
7783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7784 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7785 no_cache=0
7786 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7787 if test "${enable_spinctrl+set}" = set; then
7788 enableval="$enable_spinctrl"
7789
7790 if test "$enableval" = yes; then
7791 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7792 else
7793 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7794 fi
7795
7796 else
7797
7798 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7799 if test "x$LINE" != x ; then
7800 eval "DEFAULT_$LINE"
7801 else
7802 no_cache=1
7803 fi
7804
7805 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7806
7807 fi;
7808
7809 eval "$ac_cv_use_spinctrl"
7810 if test "$no_cache" != 1; then
7811 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7812 fi
7813
7814 if test "$wxUSE_SPINCTRL" = yes; then
7815 echo "$as_me:$LINENO: result: yes" >&5
7816 echo "${ECHO_T}yes" >&6
7817 else
7818 echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6
7820 fi
7821
7822
7823 enablestring=
7824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7825 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7826 no_cache=0
7827 # Check whether --enable-splitter or --disable-splitter was given.
7828 if test "${enable_splitter+set}" = set; then
7829 enableval="$enable_splitter"
7830
7831 if test "$enableval" = yes; then
7832 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7833 else
7834 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7835 fi
7836
7837 else
7838
7839 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7840 if test "x$LINE" != x ; then
7841 eval "DEFAULT_$LINE"
7842 else
7843 no_cache=1
7844 fi
7845
7846 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7847
7848 fi;
7849
7850 eval "$ac_cv_use_splitter"
7851 if test "$no_cache" != 1; then
7852 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7853 fi
7854
7855 if test "$wxUSE_SPLITTER" = yes; then
7856 echo "$as_me:$LINENO: result: yes" >&5
7857 echo "${ECHO_T}yes" >&6
7858 else
7859 echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6
7861 fi
7862
7863
7864 enablestring=
7865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7866 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7867 no_cache=0
7868 # Check whether --enable-statbmp or --disable-statbmp was given.
7869 if test "${enable_statbmp+set}" = set; then
7870 enableval="$enable_statbmp"
7871
7872 if test "$enableval" = yes; then
7873 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7874 else
7875 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7876 fi
7877
7878 else
7879
7880 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7881 if test "x$LINE" != x ; then
7882 eval "DEFAULT_$LINE"
7883 else
7884 no_cache=1
7885 fi
7886
7887 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7888
7889 fi;
7890
7891 eval "$ac_cv_use_statbmp"
7892 if test "$no_cache" != 1; then
7893 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7894 fi
7895
7896 if test "$wxUSE_STATBMP" = yes; then
7897 echo "$as_me:$LINENO: result: yes" >&5
7898 echo "${ECHO_T}yes" >&6
7899 else
7900 echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6
7902 fi
7903
7904
7905 enablestring=
7906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7907 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7908 no_cache=0
7909 # Check whether --enable-statbox or --disable-statbox was given.
7910 if test "${enable_statbox+set}" = set; then
7911 enableval="$enable_statbox"
7912
7913 if test "$enableval" = yes; then
7914 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7915 else
7916 ac_cv_use_statbox='wxUSE_STATBOX=no'
7917 fi
7918
7919 else
7920
7921 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7922 if test "x$LINE" != x ; then
7923 eval "DEFAULT_$LINE"
7924 else
7925 no_cache=1
7926 fi
7927
7928 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7929
7930 fi;
7931
7932 eval "$ac_cv_use_statbox"
7933 if test "$no_cache" != 1; then
7934 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7935 fi
7936
7937 if test "$wxUSE_STATBOX" = yes; then
7938 echo "$as_me:$LINENO: result: yes" >&5
7939 echo "${ECHO_T}yes" >&6
7940 else
7941 echo "$as_me:$LINENO: result: no" >&5
7942 echo "${ECHO_T}no" >&6
7943 fi
7944
7945
7946 enablestring=
7947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7948 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7949 no_cache=0
7950 # Check whether --enable-statline or --disable-statline was given.
7951 if test "${enable_statline+set}" = set; then
7952 enableval="$enable_statline"
7953
7954 if test "$enableval" = yes; then
7955 ac_cv_use_statline='wxUSE_STATLINE=yes'
7956 else
7957 ac_cv_use_statline='wxUSE_STATLINE=no'
7958 fi
7959
7960 else
7961
7962 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7963 if test "x$LINE" != x ; then
7964 eval "DEFAULT_$LINE"
7965 else
7966 no_cache=1
7967 fi
7968
7969 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7970
7971 fi;
7972
7973 eval "$ac_cv_use_statline"
7974 if test "$no_cache" != 1; then
7975 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7976 fi
7977
7978 if test "$wxUSE_STATLINE" = yes; then
7979 echo "$as_me:$LINENO: result: yes" >&5
7980 echo "${ECHO_T}yes" >&6
7981 else
7982 echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6
7984 fi
7985
7986
7987 enablestring=
7988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7989 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
7990 no_cache=0
7991 # Check whether --enable-stattext or --disable-stattext was given.
7992 if test "${enable_stattext+set}" = set; then
7993 enableval="$enable_stattext"
7994
7995 if test "$enableval" = yes; then
7996 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7997 else
7998 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7999 fi
8000
8001 else
8002
8003 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8004 if test "x$LINE" != x ; then
8005 eval "DEFAULT_$LINE"
8006 else
8007 no_cache=1
8008 fi
8009
8010 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8011
8012 fi;
8013
8014 eval "$ac_cv_use_stattext"
8015 if test "$no_cache" != 1; then
8016 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8017 fi
8018
8019 if test "$wxUSE_STATTEXT" = yes; then
8020 echo "$as_me:$LINENO: result: yes" >&5
8021 echo "${ECHO_T}yes" >&6
8022 else
8023 echo "$as_me:$LINENO: result: no" >&5
8024 echo "${ECHO_T}no" >&6
8025 fi
8026
8027
8028 enablestring=
8029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8030 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8031 no_cache=0
8032 # Check whether --enable-statusbar or --disable-statusbar was given.
8033 if test "${enable_statusbar+set}" = set; then
8034 enableval="$enable_statusbar"
8035
8036 if test "$enableval" = yes; then
8037 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8038 else
8039 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8040 fi
8041
8042 else
8043
8044 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8045 if test "x$LINE" != x ; then
8046 eval "DEFAULT_$LINE"
8047 else
8048 no_cache=1
8049 fi
8050
8051 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8052
8053 fi;
8054
8055 eval "$ac_cv_use_statusbar"
8056 if test "$no_cache" != 1; then
8057 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8058 fi
8059
8060 if test "$wxUSE_STATUSBAR" = yes; then
8061 echo "$as_me:$LINENO: result: yes" >&5
8062 echo "${ECHO_T}yes" >&6
8063 else
8064 echo "$as_me:$LINENO: result: no" >&5
8065 echo "${ECHO_T}no" >&6
8066 fi
8067
8068
8069 enablestring=
8070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8071 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8072 no_cache=0
8073 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8074 if test "${enable_tabdialog+set}" = set; then
8075 enableval="$enable_tabdialog"
8076
8077 if test "$enableval" = yes; then
8078 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8079 else
8080 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8081 fi
8082
8083 else
8084
8085 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8086 if test "x$LINE" != x ; then
8087 eval "DEFAULT_$LINE"
8088 else
8089 no_cache=1
8090 fi
8091
8092 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8093
8094 fi;
8095
8096 eval "$ac_cv_use_tabdialog"
8097 if test "$no_cache" != 1; then
8098 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8099 fi
8100
8101 if test "$wxUSE_TABDIALOG" = yes; then
8102 echo "$as_me:$LINENO: result: yes" >&5
8103 echo "${ECHO_T}yes" >&6
8104 else
8105 echo "$as_me:$LINENO: result: no" >&5
8106 echo "${ECHO_T}no" >&6
8107 fi
8108
8109
8110 enablestring=
8111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8112 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8113 no_cache=0
8114 # Check whether --enable-textctrl or --disable-textctrl was given.
8115 if test "${enable_textctrl+set}" = set; then
8116 enableval="$enable_textctrl"
8117
8118 if test "$enableval" = yes; then
8119 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8120 else
8121 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8122 fi
8123
8124 else
8125
8126 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8127 if test "x$LINE" != x ; then
8128 eval "DEFAULT_$LINE"
8129 else
8130 no_cache=1
8131 fi
8132
8133 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8134
8135 fi;
8136
8137 eval "$ac_cv_use_textctrl"
8138 if test "$no_cache" != 1; then
8139 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8140 fi
8141
8142 if test "$wxUSE_TEXTCTRL" = yes; then
8143 echo "$as_me:$LINENO: result: yes" >&5
8144 echo "${ECHO_T}yes" >&6
8145 else
8146 echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6
8148 fi
8149
8150
8151 enablestring=
8152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8153 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8154 no_cache=0
8155 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8156 if test "${enable_togglebtn+set}" = set; then
8157 enableval="$enable_togglebtn"
8158
8159 if test "$enableval" = yes; then
8160 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8161 else
8162 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8163 fi
8164
8165 else
8166
8167 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8168 if test "x$LINE" != x ; then
8169 eval "DEFAULT_$LINE"
8170 else
8171 no_cache=1
8172 fi
8173
8174 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8175
8176 fi;
8177
8178 eval "$ac_cv_use_togglebtn"
8179 if test "$no_cache" != 1; then
8180 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8181 fi
8182
8183 if test "$wxUSE_TOGGLEBTN" = yes; then
8184 echo "$as_me:$LINENO: result: yes" >&5
8185 echo "${ECHO_T}yes" >&6
8186 else
8187 echo "$as_me:$LINENO: result: no" >&5
8188 echo "${ECHO_T}no" >&6
8189 fi
8190
8191
8192 enablestring=
8193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8194 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8195 no_cache=0
8196 # Check whether --enable-toolbar or --disable-toolbar was given.
8197 if test "${enable_toolbar+set}" = set; then
8198 enableval="$enable_toolbar"
8199
8200 if test "$enableval" = yes; then
8201 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8202 else
8203 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8204 fi
8205
8206 else
8207
8208 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8209 if test "x$LINE" != x ; then
8210 eval "DEFAULT_$LINE"
8211 else
8212 no_cache=1
8213 fi
8214
8215 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8216
8217 fi;
8218
8219 eval "$ac_cv_use_toolbar"
8220 if test "$no_cache" != 1; then
8221 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8222 fi
8223
8224 if test "$wxUSE_TOOLBAR" = yes; then
8225 echo "$as_me:$LINENO: result: yes" >&5
8226 echo "${ECHO_T}yes" >&6
8227 else
8228 echo "$as_me:$LINENO: result: no" >&5
8229 echo "${ECHO_T}no" >&6
8230 fi
8231
8232
8233 enablestring=
8234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8235 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8236 no_cache=0
8237 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8238 if test "${enable_tbarnative+set}" = set; then
8239 enableval="$enable_tbarnative"
8240
8241 if test "$enableval" = yes; then
8242 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8243 else
8244 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8245 fi
8246
8247 else
8248
8249 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8250 if test "x$LINE" != x ; then
8251 eval "DEFAULT_$LINE"
8252 else
8253 no_cache=1
8254 fi
8255
8256 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8257
8258 fi;
8259
8260 eval "$ac_cv_use_tbarnative"
8261 if test "$no_cache" != 1; then
8262 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8263 fi
8264
8265 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8266 echo "$as_me:$LINENO: result: yes" >&5
8267 echo "${ECHO_T}yes" >&6
8268 else
8269 echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6
8271 fi
8272
8273
8274 enablestring=
8275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8276 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8277 no_cache=0
8278 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8279 if test "${enable_tbarsmpl+set}" = set; then
8280 enableval="$enable_tbarsmpl"
8281
8282 if test "$enableval" = yes; then
8283 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8284 else
8285 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8286 fi
8287
8288 else
8289
8290 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8291 if test "x$LINE" != x ; then
8292 eval "DEFAULT_$LINE"
8293 else
8294 no_cache=1
8295 fi
8296
8297 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8298
8299 fi;
8300
8301 eval "$ac_cv_use_tbarsmpl"
8302 if test "$no_cache" != 1; then
8303 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8304 fi
8305
8306 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8307 echo "$as_me:$LINENO: result: yes" >&5
8308 echo "${ECHO_T}yes" >&6
8309 else
8310 echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8312 fi
8313
8314
8315 enablestring=
8316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8317 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8318 no_cache=0
8319 # Check whether --enable-treectrl or --disable-treectrl was given.
8320 if test "${enable_treectrl+set}" = set; then
8321 enableval="$enable_treectrl"
8322
8323 if test "$enableval" = yes; then
8324 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8325 else
8326 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8327 fi
8328
8329 else
8330
8331 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8332 if test "x$LINE" != x ; then
8333 eval "DEFAULT_$LINE"
8334 else
8335 no_cache=1
8336 fi
8337
8338 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8339
8340 fi;
8341
8342 eval "$ac_cv_use_treectrl"
8343 if test "$no_cache" != 1; then
8344 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8345 fi
8346
8347 if test "$wxUSE_TREECTRL" = yes; then
8348 echo "$as_me:$LINENO: result: yes" >&5
8349 echo "${ECHO_T}yes" >&6
8350 else
8351 echo "$as_me:$LINENO: result: no" >&5
8352 echo "${ECHO_T}no" >&6
8353 fi
8354
8355
8356 enablestring=
8357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8358 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8359 no_cache=0
8360 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8361 if test "${enable_tipwindow+set}" = set; then
8362 enableval="$enable_tipwindow"
8363
8364 if test "$enableval" = yes; then
8365 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8366 else
8367 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8368 fi
8369
8370 else
8371
8372 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8373 if test "x$LINE" != x ; then
8374 eval "DEFAULT_$LINE"
8375 else
8376 no_cache=1
8377 fi
8378
8379 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8380
8381 fi;
8382
8383 eval "$ac_cv_use_tipwindow"
8384 if test "$no_cache" != 1; then
8385 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8386 fi
8387
8388 if test "$wxUSE_TIPWINDOW" = yes; then
8389 echo "$as_me:$LINENO: result: yes" >&5
8390 echo "${ECHO_T}yes" >&6
8391 else
8392 echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6
8394 fi
8395
8396
8397 enablestring=
8398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8399 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8400 no_cache=0
8401 # Check whether --enable-popupwin or --disable-popupwin was given.
8402 if test "${enable_popupwin+set}" = set; then
8403 enableval="$enable_popupwin"
8404
8405 if test "$enableval" = yes; then
8406 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8407 else
8408 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8409 fi
8410
8411 else
8412
8413 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8414 if test "x$LINE" != x ; then
8415 eval "DEFAULT_$LINE"
8416 else
8417 no_cache=1
8418 fi
8419
8420 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8421
8422 fi;
8423
8424 eval "$ac_cv_use_popupwin"
8425 if test "$no_cache" != 1; then
8426 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8427 fi
8428
8429 if test "$wxUSE_POPUPWIN" = yes; then
8430 echo "$as_me:$LINENO: result: yes" >&5
8431 echo "${ECHO_T}yes" >&6
8432 else
8433 echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6
8435 fi
8436
8437
8438
8439
8440 enablestring=
8441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8442 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8443 no_cache=0
8444 # Check whether --enable-commondlg or --disable-commondlg was given.
8445 if test "${enable_commondlg+set}" = set; then
8446 enableval="$enable_commondlg"
8447
8448 if test "$enableval" = yes; then
8449 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8450 else
8451 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8452 fi
8453
8454 else
8455
8456 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8457 if test "x$LINE" != x ; then
8458 eval "DEFAULT_$LINE"
8459 else
8460 no_cache=1
8461 fi
8462
8463 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8464
8465 fi;
8466
8467 eval "$ac_cv_use_commondlg"
8468 if test "$no_cache" != 1; then
8469 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8470 fi
8471
8472 if test "$wxUSE_COMMONDLGS" = yes; then
8473 echo "$as_me:$LINENO: result: yes" >&5
8474 echo "${ECHO_T}yes" >&6
8475 else
8476 echo "$as_me:$LINENO: result: no" >&5
8477 echo "${ECHO_T}no" >&6
8478 fi
8479
8480
8481 enablestring=
8482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8483 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8484 no_cache=0
8485 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8486 if test "${enable_choicedlg+set}" = set; then
8487 enableval="$enable_choicedlg"
8488
8489 if test "$enableval" = yes; then
8490 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8491 else
8492 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8493 fi
8494
8495 else
8496
8497 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8498 if test "x$LINE" != x ; then
8499 eval "DEFAULT_$LINE"
8500 else
8501 no_cache=1
8502 fi
8503
8504 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8505
8506 fi;
8507
8508 eval "$ac_cv_use_choicedlg"
8509 if test "$no_cache" != 1; then
8510 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8511 fi
8512
8513 if test "$wxUSE_CHOICEDLG" = yes; then
8514 echo "$as_me:$LINENO: result: yes" >&5
8515 echo "${ECHO_T}yes" >&6
8516 else
8517 echo "$as_me:$LINENO: result: no" >&5
8518 echo "${ECHO_T}no" >&6
8519 fi
8520
8521
8522 enablestring=
8523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8524 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8525 no_cache=0
8526 # Check whether --enable-coldlg or --disable-coldlg was given.
8527 if test "${enable_coldlg+set}" = set; then
8528 enableval="$enable_coldlg"
8529
8530 if test "$enableval" = yes; then
8531 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8532 else
8533 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8534 fi
8535
8536 else
8537
8538 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8539 if test "x$LINE" != x ; then
8540 eval "DEFAULT_$LINE"
8541 else
8542 no_cache=1
8543 fi
8544
8545 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8546
8547 fi;
8548
8549 eval "$ac_cv_use_coldlg"
8550 if test "$no_cache" != 1; then
8551 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8552 fi
8553
8554 if test "$wxUSE_COLOURDLG" = yes; then
8555 echo "$as_me:$LINENO: result: yes" >&5
8556 echo "${ECHO_T}yes" >&6
8557 else
8558 echo "$as_me:$LINENO: result: no" >&5
8559 echo "${ECHO_T}no" >&6
8560 fi
8561
8562
8563 enablestring=
8564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8565 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8566 no_cache=0
8567 # Check whether --enable-filedlg or --disable-filedlg was given.
8568 if test "${enable_filedlg+set}" = set; then
8569 enableval="$enable_filedlg"
8570
8571 if test "$enableval" = yes; then
8572 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8573 else
8574 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8575 fi
8576
8577 else
8578
8579 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8580 if test "x$LINE" != x ; then
8581 eval "DEFAULT_$LINE"
8582 else
8583 no_cache=1
8584 fi
8585
8586 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8587
8588 fi;
8589
8590 eval "$ac_cv_use_filedlg"
8591 if test "$no_cache" != 1; then
8592 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8593 fi
8594
8595 if test "$wxUSE_FILEDLG" = yes; then
8596 echo "$as_me:$LINENO: result: yes" >&5
8597 echo "${ECHO_T}yes" >&6
8598 else
8599 echo "$as_me:$LINENO: result: no" >&5
8600 echo "${ECHO_T}no" >&6
8601 fi
8602
8603
8604 enablestring=
8605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8606 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8607 no_cache=0
8608 # Check whether --enable-finddlg or --disable-finddlg was given.
8609 if test "${enable_finddlg+set}" = set; then
8610 enableval="$enable_finddlg"
8611
8612 if test "$enableval" = yes; then
8613 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8614 else
8615 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8616 fi
8617
8618 else
8619
8620 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8621 if test "x$LINE" != x ; then
8622 eval "DEFAULT_$LINE"
8623 else
8624 no_cache=1
8625 fi
8626
8627 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8628
8629 fi;
8630
8631 eval "$ac_cv_use_finddlg"
8632 if test "$no_cache" != 1; then
8633 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8634 fi
8635
8636 if test "$wxUSE_FINDREPLDLG" = yes; then
8637 echo "$as_me:$LINENO: result: yes" >&5
8638 echo "${ECHO_T}yes" >&6
8639 else
8640 echo "$as_me:$LINENO: result: no" >&5
8641 echo "${ECHO_T}no" >&6
8642 fi
8643
8644
8645 enablestring=
8646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8647 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8648 no_cache=0
8649 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8650 if test "${enable_fontdlg+set}" = set; then
8651 enableval="$enable_fontdlg"
8652
8653 if test "$enableval" = yes; then
8654 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8655 else
8656 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8657 fi
8658
8659 else
8660
8661 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8662 if test "x$LINE" != x ; then
8663 eval "DEFAULT_$LINE"
8664 else
8665 no_cache=1
8666 fi
8667
8668 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8669
8670 fi;
8671
8672 eval "$ac_cv_use_fontdlg"
8673 if test "$no_cache" != 1; then
8674 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8675 fi
8676
8677 if test "$wxUSE_FONTDLG" = yes; then
8678 echo "$as_me:$LINENO: result: yes" >&5
8679 echo "${ECHO_T}yes" >&6
8680 else
8681 echo "$as_me:$LINENO: result: no" >&5
8682 echo "${ECHO_T}no" >&6
8683 fi
8684
8685
8686 enablestring=
8687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8688 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8689 no_cache=0
8690 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8691 if test "${enable_dirdlg+set}" = set; then
8692 enableval="$enable_dirdlg"
8693
8694 if test "$enableval" = yes; then
8695 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8696 else
8697 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8698 fi
8699
8700 else
8701
8702 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8703 if test "x$LINE" != x ; then
8704 eval "DEFAULT_$LINE"
8705 else
8706 no_cache=1
8707 fi
8708
8709 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8710
8711 fi;
8712
8713 eval "$ac_cv_use_dirdlg"
8714 if test "$no_cache" != 1; then
8715 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8716 fi
8717
8718 if test "$wxUSE_DIRDLG" = yes; then
8719 echo "$as_me:$LINENO: result: yes" >&5
8720 echo "${ECHO_T}yes" >&6
8721 else
8722 echo "$as_me:$LINENO: result: no" >&5
8723 echo "${ECHO_T}no" >&6
8724 fi
8725
8726
8727 enablestring=
8728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8729 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8730 no_cache=0
8731 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8732 if test "${enable_msgdlg+set}" = set; then
8733 enableval="$enable_msgdlg"
8734
8735 if test "$enableval" = yes; then
8736 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8737 else
8738 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8739 fi
8740
8741 else
8742
8743 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8744 if test "x$LINE" != x ; then
8745 eval "DEFAULT_$LINE"
8746 else
8747 no_cache=1
8748 fi
8749
8750 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8751
8752 fi;
8753
8754 eval "$ac_cv_use_msgdlg"
8755 if test "$no_cache" != 1; then
8756 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8757 fi
8758
8759 if test "$wxUSE_MSGDLG" = yes; then
8760 echo "$as_me:$LINENO: result: yes" >&5
8761 echo "${ECHO_T}yes" >&6
8762 else
8763 echo "$as_me:$LINENO: result: no" >&5
8764 echo "${ECHO_T}no" >&6
8765 fi
8766
8767
8768 enablestring=
8769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8770 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8771 no_cache=0
8772 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8773 if test "${enable_numberdlg+set}" = set; then
8774 enableval="$enable_numberdlg"
8775
8776 if test "$enableval" = yes; then
8777 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8778 else
8779 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8780 fi
8781
8782 else
8783
8784 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8785 if test "x$LINE" != x ; then
8786 eval "DEFAULT_$LINE"
8787 else
8788 no_cache=1
8789 fi
8790
8791 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8792
8793 fi;
8794
8795 eval "$ac_cv_use_numberdlg"
8796 if test "$no_cache" != 1; then
8797 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8798 fi
8799
8800 if test "$wxUSE_NUMBERDLG" = yes; then
8801 echo "$as_me:$LINENO: result: yes" >&5
8802 echo "${ECHO_T}yes" >&6
8803 else
8804 echo "$as_me:$LINENO: result: no" >&5
8805 echo "${ECHO_T}no" >&6
8806 fi
8807
8808
8809 enablestring=
8810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8811 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8812 no_cache=0
8813 # Check whether --enable-splash or --disable-splash was given.
8814 if test "${enable_splash+set}" = set; then
8815 enableval="$enable_splash"
8816
8817 if test "$enableval" = yes; then
8818 ac_cv_use_splash='wxUSE_SPLASH=yes'
8819 else
8820 ac_cv_use_splash='wxUSE_SPLASH=no'
8821 fi
8822
8823 else
8824
8825 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8826 if test "x$LINE" != x ; then
8827 eval "DEFAULT_$LINE"
8828 else
8829 no_cache=1
8830 fi
8831
8832 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8833
8834 fi;
8835
8836 eval "$ac_cv_use_splash"
8837 if test "$no_cache" != 1; then
8838 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8839 fi
8840
8841 if test "$wxUSE_SPLASH" = yes; then
8842 echo "$as_me:$LINENO: result: yes" >&5
8843 echo "${ECHO_T}yes" >&6
8844 else
8845 echo "$as_me:$LINENO: result: no" >&5
8846 echo "${ECHO_T}no" >&6
8847 fi
8848
8849
8850 enablestring=
8851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8852 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8853 no_cache=0
8854 # Check whether --enable-textdlg or --disable-textdlg was given.
8855 if test "${enable_textdlg+set}" = set; then
8856 enableval="$enable_textdlg"
8857
8858 if test "$enableval" = yes; then
8859 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8860 else
8861 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8862 fi
8863
8864 else
8865
8866 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8867 if test "x$LINE" != x ; then
8868 eval "DEFAULT_$LINE"
8869 else
8870 no_cache=1
8871 fi
8872
8873 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8874
8875 fi;
8876
8877 eval "$ac_cv_use_textdlg"
8878 if test "$no_cache" != 1; then
8879 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8880 fi
8881
8882 if test "$wxUSE_TEXTDLG" = yes; then
8883 echo "$as_me:$LINENO: result: yes" >&5
8884 echo "${ECHO_T}yes" >&6
8885 else
8886 echo "$as_me:$LINENO: result: no" >&5
8887 echo "${ECHO_T}no" >&6
8888 fi
8889
8890
8891 enablestring=
8892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8893 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8894 no_cache=0
8895 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8896 if test "${enable_tipdlg+set}" = set; then
8897 enableval="$enable_tipdlg"
8898
8899 if test "$enableval" = yes; then
8900 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8901 else
8902 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8903 fi
8904
8905 else
8906
8907 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8908 if test "x$LINE" != x ; then
8909 eval "DEFAULT_$LINE"
8910 else
8911 no_cache=1
8912 fi
8913
8914 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8915
8916 fi;
8917
8918 eval "$ac_cv_use_tipdlg"
8919 if test "$no_cache" != 1; then
8920 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8921 fi
8922
8923 if test "$wxUSE_STARTUP_TIPS" = yes; then
8924 echo "$as_me:$LINENO: result: yes" >&5
8925 echo "${ECHO_T}yes" >&6
8926 else
8927 echo "$as_me:$LINENO: result: no" >&5
8928 echo "${ECHO_T}no" >&6
8929 fi
8930
8931
8932 enablestring=
8933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8934 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8935 no_cache=0
8936 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8937 if test "${enable_progressdlg+set}" = set; then
8938 enableval="$enable_progressdlg"
8939
8940 if test "$enableval" = yes; then
8941 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8942 else
8943 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8944 fi
8945
8946 else
8947
8948 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8949 if test "x$LINE" != x ; then
8950 eval "DEFAULT_$LINE"
8951 else
8952 no_cache=1
8953 fi
8954
8955 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8956
8957 fi;
8958
8959 eval "$ac_cv_use_progressdlg"
8960 if test "$no_cache" != 1; then
8961 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8962 fi
8963
8964 if test "$wxUSE_PROGRESSDLG" = yes; then
8965 echo "$as_me:$LINENO: result: yes" >&5
8966 echo "${ECHO_T}yes" >&6
8967 else
8968 echo "$as_me:$LINENO: result: no" >&5
8969 echo "${ECHO_T}no" >&6
8970 fi
8971
8972
8973 enablestring=
8974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8975 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
8976 no_cache=0
8977 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8978 if test "${enable_wizarddlg+set}" = set; then
8979 enableval="$enable_wizarddlg"
8980
8981 if test "$enableval" = yes; then
8982 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8983 else
8984 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8985 fi
8986
8987 else
8988
8989 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8990 if test "x$LINE" != x ; then
8991 eval "DEFAULT_$LINE"
8992 else
8993 no_cache=1
8994 fi
8995
8996 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8997
8998 fi;
8999
9000 eval "$ac_cv_use_wizarddlg"
9001 if test "$no_cache" != 1; then
9002 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9003 fi
9004
9005 if test "$wxUSE_WIZARDDLG" = yes; then
9006 echo "$as_me:$LINENO: result: yes" >&5
9007 echo "${ECHO_T}yes" >&6
9008 else
9009 echo "$as_me:$LINENO: result: no" >&5
9010 echo "${ECHO_T}no" >&6
9011 fi
9012
9013
9014
9015
9016 enablestring=
9017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9018 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9019 no_cache=0
9020 # Check whether --enable-menus or --disable-menus was given.
9021 if test "${enable_menus+set}" = set; then
9022 enableval="$enable_menus"
9023
9024 if test "$enableval" = yes; then
9025 ac_cv_use_menus='wxUSE_MENUS=yes'
9026 else
9027 ac_cv_use_menus='wxUSE_MENUS=no'
9028 fi
9029
9030 else
9031
9032 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9033 if test "x$LINE" != x ; then
9034 eval "DEFAULT_$LINE"
9035 else
9036 no_cache=1
9037 fi
9038
9039 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9040
9041 fi;
9042
9043 eval "$ac_cv_use_menus"
9044 if test "$no_cache" != 1; then
9045 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9046 fi
9047
9048 if test "$wxUSE_MENUS" = yes; then
9049 echo "$as_me:$LINENO: result: yes" >&5
9050 echo "${ECHO_T}yes" >&6
9051 else
9052 echo "$as_me:$LINENO: result: no" >&5
9053 echo "${ECHO_T}no" >&6
9054 fi
9055
9056
9057 enablestring=
9058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9059 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9060 no_cache=0
9061 # Check whether --enable-miniframe or --disable-miniframe was given.
9062 if test "${enable_miniframe+set}" = set; then
9063 enableval="$enable_miniframe"
9064
9065 if test "$enableval" = yes; then
9066 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9067 else
9068 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9069 fi
9070
9071 else
9072
9073 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9074 if test "x$LINE" != x ; then
9075 eval "DEFAULT_$LINE"
9076 else
9077 no_cache=1
9078 fi
9079
9080 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9081
9082 fi;
9083
9084 eval "$ac_cv_use_miniframe"
9085 if test "$no_cache" != 1; then
9086 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9087 fi
9088
9089 if test "$wxUSE_MINIFRAME" = yes; then
9090 echo "$as_me:$LINENO: result: yes" >&5
9091 echo "${ECHO_T}yes" >&6
9092 else
9093 echo "$as_me:$LINENO: result: no" >&5
9094 echo "${ECHO_T}no" >&6
9095 fi
9096
9097
9098 enablestring=
9099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9100 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9101 no_cache=0
9102 # Check whether --enable-tooltips or --disable-tooltips was given.
9103 if test "${enable_tooltips+set}" = set; then
9104 enableval="$enable_tooltips"
9105
9106 if test "$enableval" = yes; then
9107 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9108 else
9109 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9110 fi
9111
9112 else
9113
9114 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9115 if test "x$LINE" != x ; then
9116 eval "DEFAULT_$LINE"
9117 else
9118 no_cache=1
9119 fi
9120
9121 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9122
9123 fi;
9124
9125 eval "$ac_cv_use_tooltips"
9126 if test "$no_cache" != 1; then
9127 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9128 fi
9129
9130 if test "$wxUSE_TOOLTIPS" = yes; then
9131 echo "$as_me:$LINENO: result: yes" >&5
9132 echo "${ECHO_T}yes" >&6
9133 else
9134 echo "$as_me:$LINENO: result: no" >&5
9135 echo "${ECHO_T}no" >&6
9136 fi
9137
9138
9139 enablestring=
9140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9141 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9142 no_cache=0
9143 # Check whether --enable-splines or --disable-splines was given.
9144 if test "${enable_splines+set}" = set; then
9145 enableval="$enable_splines"
9146
9147 if test "$enableval" = yes; then
9148 ac_cv_use_splines='wxUSE_SPLINES=yes'
9149 else
9150 ac_cv_use_splines='wxUSE_SPLINES=no'
9151 fi
9152
9153 else
9154
9155 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9156 if test "x$LINE" != x ; then
9157 eval "DEFAULT_$LINE"
9158 else
9159 no_cache=1
9160 fi
9161
9162 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9163
9164 fi;
9165
9166 eval "$ac_cv_use_splines"
9167 if test "$no_cache" != 1; then
9168 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9169 fi
9170
9171 if test "$wxUSE_SPLINES" = yes; then
9172 echo "$as_me:$LINENO: result: yes" >&5
9173 echo "${ECHO_T}yes" >&6
9174 else
9175 echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6
9177 fi
9178
9179
9180 enablestring=
9181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9182 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9183 no_cache=0
9184 # Check whether --enable-validators or --disable-validators was given.
9185 if test "${enable_validators+set}" = set; then
9186 enableval="$enable_validators"
9187
9188 if test "$enableval" = yes; then
9189 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9190 else
9191 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9192 fi
9193
9194 else
9195
9196 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9197 if test "x$LINE" != x ; then
9198 eval "DEFAULT_$LINE"
9199 else
9200 no_cache=1
9201 fi
9202
9203 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9204
9205 fi;
9206
9207 eval "$ac_cv_use_validators"
9208 if test "$no_cache" != 1; then
9209 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9210 fi
9211
9212 if test "$wxUSE_VALIDATORS" = yes; then
9213 echo "$as_me:$LINENO: result: yes" >&5
9214 echo "${ECHO_T}yes" >&6
9215 else
9216 echo "$as_me:$LINENO: result: no" >&5
9217 echo "${ECHO_T}no" >&6
9218 fi
9219
9220
9221 enablestring=
9222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9223 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9224 no_cache=0
9225 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9226 if test "${enable_busyinfo+set}" = set; then
9227 enableval="$enable_busyinfo"
9228
9229 if test "$enableval" = yes; then
9230 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9231 else
9232 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9233 fi
9234
9235 else
9236
9237 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9238 if test "x$LINE" != x ; then
9239 eval "DEFAULT_$LINE"
9240 else
9241 no_cache=1
9242 fi
9243
9244 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9245
9246 fi;
9247
9248 eval "$ac_cv_use_busyinfo"
9249 if test "$no_cache" != 1; then
9250 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9251 fi
9252
9253 if test "$wxUSE_BUSYINFO" = yes; then
9254 echo "$as_me:$LINENO: result: yes" >&5
9255 echo "${ECHO_T}yes" >&6
9256 else
9257 echo "$as_me:$LINENO: result: no" >&5
9258 echo "${ECHO_T}no" >&6
9259 fi
9260
9261
9262 enablestring=
9263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9264 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9265 no_cache=0
9266 # Check whether --enable-joystick or --disable-joystick was given.
9267 if test "${enable_joystick+set}" = set; then
9268 enableval="$enable_joystick"
9269
9270 if test "$enableval" = yes; then
9271 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9272 else
9273 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9274 fi
9275
9276 else
9277
9278 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9279 if test "x$LINE" != x ; then
9280 eval "DEFAULT_$LINE"
9281 else
9282 no_cache=1
9283 fi
9284
9285 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9286
9287 fi;
9288
9289 eval "$ac_cv_use_joystick"
9290 if test "$no_cache" != 1; then
9291 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9292 fi
9293
9294 if test "$wxUSE_JOYSTICK" = yes; then
9295 echo "$as_me:$LINENO: result: yes" >&5
9296 echo "${ECHO_T}yes" >&6
9297 else
9298 echo "$as_me:$LINENO: result: no" >&5
9299 echo "${ECHO_T}no" >&6
9300 fi
9301
9302
9303 enablestring=
9304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9305 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9306 no_cache=0
9307 # Check whether --enable-metafile or --disable-metafile was given.
9308 if test "${enable_metafile+set}" = set; then
9309 enableval="$enable_metafile"
9310
9311 if test "$enableval" = yes; then
9312 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9313 else
9314 ac_cv_use_metafile='wxUSE_METAFILE=no'
9315 fi
9316
9317 else
9318
9319 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9320 if test "x$LINE" != x ; then
9321 eval "DEFAULT_$LINE"
9322 else
9323 no_cache=1
9324 fi
9325
9326 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9327
9328 fi;
9329
9330 eval "$ac_cv_use_metafile"
9331 if test "$no_cache" != 1; then
9332 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9333 fi
9334
9335 if test "$wxUSE_METAFILE" = yes; then
9336 echo "$as_me:$LINENO: result: yes" >&5
9337 echo "${ECHO_T}yes" >&6
9338 else
9339 echo "$as_me:$LINENO: result: no" >&5
9340 echo "${ECHO_T}no" >&6
9341 fi
9342
9343
9344 enablestring=
9345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9346 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9347 no_cache=0
9348 # Check whether --enable-dragimage or --disable-dragimage was given.
9349 if test "${enable_dragimage+set}" = set; then
9350 enableval="$enable_dragimage"
9351
9352 if test "$enableval" = yes; then
9353 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9354 else
9355 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9356 fi
9357
9358 else
9359
9360 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9361 if test "x$LINE" != x ; then
9362 eval "DEFAULT_$LINE"
9363 else
9364 no_cache=1
9365 fi
9366
9367 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9368
9369 fi;
9370
9371 eval "$ac_cv_use_dragimage"
9372 if test "$no_cache" != 1; then
9373 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9374 fi
9375
9376 if test "$wxUSE_DRAGIMAGE" = yes; then
9377 echo "$as_me:$LINENO: result: yes" >&5
9378 echo "${ECHO_T}yes" >&6
9379 else
9380 echo "$as_me:$LINENO: result: no" >&5
9381 echo "${ECHO_T}no" >&6
9382 fi
9383
9384
9385 enablestring=
9386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9387 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9388 no_cache=0
9389 # Check whether --enable-accessibility or --disable-accessibility was given.
9390 if test "${enable_accessibility+set}" = set; then
9391 enableval="$enable_accessibility"
9392
9393 if test "$enableval" = yes; then
9394 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9395 else
9396 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9397 fi
9398
9399 else
9400
9401 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9402 if test "x$LINE" != x ; then
9403 eval "DEFAULT_$LINE"
9404 else
9405 no_cache=1
9406 fi
9407
9408 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9409
9410 fi;
9411
9412 eval "$ac_cv_use_accessibility"
9413 if test "$no_cache" != 1; then
9414 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9415 fi
9416
9417 if test "$wxUSE_ACCESSIBILITY" = yes; then
9418 echo "$as_me:$LINENO: result: yes" >&5
9419 echo "${ECHO_T}yes" >&6
9420 else
9421 echo "$as_me:$LINENO: result: no" >&5
9422 echo "${ECHO_T}no" >&6
9423 fi
9424
9425
9426
9427
9428 enablestring=
9429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9430 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9431 no_cache=0
9432 # Check whether --enable-palette or --disable-palette was given.
9433 if test "${enable_palette+set}" = set; then
9434 enableval="$enable_palette"
9435
9436 if test "$enableval" = yes; then
9437 ac_cv_use_palette='wxUSE_PALETTE=yes'
9438 else
9439 ac_cv_use_palette='wxUSE_PALETTE=no'
9440 fi
9441
9442 else
9443
9444 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9445 if test "x$LINE" != x ; then
9446 eval "DEFAULT_$LINE"
9447 else
9448 no_cache=1
9449 fi
9450
9451 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9452
9453 fi;
9454
9455 eval "$ac_cv_use_palette"
9456 if test "$no_cache" != 1; then
9457 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9458 fi
9459
9460 if test "$wxUSE_PALETTE" = yes; then
9461 echo "$as_me:$LINENO: result: yes" >&5
9462 echo "${ECHO_T}yes" >&6
9463 else
9464 echo "$as_me:$LINENO: result: no" >&5
9465 echo "${ECHO_T}no" >&6
9466 fi
9467
9468
9469 enablestring=
9470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9471 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9472 no_cache=0
9473 # Check whether --enable-image or --disable-image was given.
9474 if test "${enable_image+set}" = set; then
9475 enableval="$enable_image"
9476
9477 if test "$enableval" = yes; then
9478 ac_cv_use_image='wxUSE_IMAGE=yes'
9479 else
9480 ac_cv_use_image='wxUSE_IMAGE=no'
9481 fi
9482
9483 else
9484
9485 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9486 if test "x$LINE" != x ; then
9487 eval "DEFAULT_$LINE"
9488 else
9489 no_cache=1
9490 fi
9491
9492 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9493
9494 fi;
9495
9496 eval "$ac_cv_use_image"
9497 if test "$no_cache" != 1; then
9498 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9499 fi
9500
9501 if test "$wxUSE_IMAGE" = yes; then
9502 echo "$as_me:$LINENO: result: yes" >&5
9503 echo "${ECHO_T}yes" >&6
9504 else
9505 echo "$as_me:$LINENO: result: no" >&5
9506 echo "${ECHO_T}no" >&6
9507 fi
9508
9509
9510 enablestring=
9511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9512 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9513 no_cache=0
9514 # Check whether --enable-gif or --disable-gif was given.
9515 if test "${enable_gif+set}" = set; then
9516 enableval="$enable_gif"
9517
9518 if test "$enableval" = yes; then
9519 ac_cv_use_gif='wxUSE_GIF=yes'
9520 else
9521 ac_cv_use_gif='wxUSE_GIF=no'
9522 fi
9523
9524 else
9525
9526 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9527 if test "x$LINE" != x ; then
9528 eval "DEFAULT_$LINE"
9529 else
9530 no_cache=1
9531 fi
9532
9533 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9534
9535 fi;
9536
9537 eval "$ac_cv_use_gif"
9538 if test "$no_cache" != 1; then
9539 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9540 fi
9541
9542 if test "$wxUSE_GIF" = yes; then
9543 echo "$as_me:$LINENO: result: yes" >&5
9544 echo "${ECHO_T}yes" >&6
9545 else
9546 echo "$as_me:$LINENO: result: no" >&5
9547 echo "${ECHO_T}no" >&6
9548 fi
9549
9550
9551 enablestring=
9552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9553 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9554 no_cache=0
9555 # Check whether --enable-pcx or --disable-pcx was given.
9556 if test "${enable_pcx+set}" = set; then
9557 enableval="$enable_pcx"
9558
9559 if test "$enableval" = yes; then
9560 ac_cv_use_pcx='wxUSE_PCX=yes'
9561 else
9562 ac_cv_use_pcx='wxUSE_PCX=no'
9563 fi
9564
9565 else
9566
9567 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9568 if test "x$LINE" != x ; then
9569 eval "DEFAULT_$LINE"
9570 else
9571 no_cache=1
9572 fi
9573
9574 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9575
9576 fi;
9577
9578 eval "$ac_cv_use_pcx"
9579 if test "$no_cache" != 1; then
9580 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9581 fi
9582
9583 if test "$wxUSE_PCX" = yes; then
9584 echo "$as_me:$LINENO: result: yes" >&5
9585 echo "${ECHO_T}yes" >&6
9586 else
9587 echo "$as_me:$LINENO: result: no" >&5
9588 echo "${ECHO_T}no" >&6
9589 fi
9590
9591
9592 enablestring=
9593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9594 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9595 no_cache=0
9596 # Check whether --enable-iff or --disable-iff was given.
9597 if test "${enable_iff+set}" = set; then
9598 enableval="$enable_iff"
9599
9600 if test "$enableval" = yes; then
9601 ac_cv_use_iff='wxUSE_IFF=yes'
9602 else
9603 ac_cv_use_iff='wxUSE_IFF=no'
9604 fi
9605
9606 else
9607
9608 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9609 if test "x$LINE" != x ; then
9610 eval "DEFAULT_$LINE"
9611 else
9612 no_cache=1
9613 fi
9614
9615 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9616
9617 fi;
9618
9619 eval "$ac_cv_use_iff"
9620 if test "$no_cache" != 1; then
9621 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9622 fi
9623
9624 if test "$wxUSE_IFF" = yes; then
9625 echo "$as_me:$LINENO: result: yes" >&5
9626 echo "${ECHO_T}yes" >&6
9627 else
9628 echo "$as_me:$LINENO: result: no" >&5
9629 echo "${ECHO_T}no" >&6
9630 fi
9631
9632
9633 enablestring=
9634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9635 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9636 no_cache=0
9637 # Check whether --enable-pnm or --disable-pnm was given.
9638 if test "${enable_pnm+set}" = set; then
9639 enableval="$enable_pnm"
9640
9641 if test "$enableval" = yes; then
9642 ac_cv_use_pnm='wxUSE_PNM=yes'
9643 else
9644 ac_cv_use_pnm='wxUSE_PNM=no'
9645 fi
9646
9647 else
9648
9649 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9650 if test "x$LINE" != x ; then
9651 eval "DEFAULT_$LINE"
9652 else
9653 no_cache=1
9654 fi
9655
9656 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9657
9658 fi;
9659
9660 eval "$ac_cv_use_pnm"
9661 if test "$no_cache" != 1; then
9662 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9663 fi
9664
9665 if test "$wxUSE_PNM" = yes; then
9666 echo "$as_me:$LINENO: result: yes" >&5
9667 echo "${ECHO_T}yes" >&6
9668 else
9669 echo "$as_me:$LINENO: result: no" >&5
9670 echo "${ECHO_T}no" >&6
9671 fi
9672
9673
9674 enablestring=
9675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9676 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9677 no_cache=0
9678 # Check whether --enable-xpm or --disable-xpm was given.
9679 if test "${enable_xpm+set}" = set; then
9680 enableval="$enable_xpm"
9681
9682 if test "$enableval" = yes; then
9683 ac_cv_use_xpm='wxUSE_XPM=yes'
9684 else
9685 ac_cv_use_xpm='wxUSE_XPM=no'
9686 fi
9687
9688 else
9689
9690 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9691 if test "x$LINE" != x ; then
9692 eval "DEFAULT_$LINE"
9693 else
9694 no_cache=1
9695 fi
9696
9697 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9698
9699 fi;
9700
9701 eval "$ac_cv_use_xpm"
9702 if test "$no_cache" != 1; then
9703 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9704 fi
9705
9706 if test "$wxUSE_XPM" = yes; then
9707 echo "$as_me:$LINENO: result: yes" >&5
9708 echo "${ECHO_T}yes" >&6
9709 else
9710 echo "$as_me:$LINENO: result: no" >&5
9711 echo "${ECHO_T}no" >&6
9712 fi
9713
9714
9715 enablestring=
9716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9717 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9718 no_cache=0
9719 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9720 if test "${enable_ico_cur+set}" = set; then
9721 enableval="$enable_ico_cur"
9722
9723 if test "$enableval" = yes; then
9724 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9725 else
9726 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9727 fi
9728
9729 else
9730
9731 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9732 if test "x$LINE" != x ; then
9733 eval "DEFAULT_$LINE"
9734 else
9735 no_cache=1
9736 fi
9737
9738 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9739
9740 fi;
9741
9742 eval "$ac_cv_use_ico_cur"
9743 if test "$no_cache" != 1; then
9744 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9745 fi
9746
9747 if test "$wxUSE_ICO_CUR" = yes; then
9748 echo "$as_me:$LINENO: result: yes" >&5
9749 echo "${ECHO_T}yes" >&6
9750 else
9751 echo "$as_me:$LINENO: result: no" >&5
9752 echo "${ECHO_T}no" >&6
9753 fi
9754
9755
9756 fi
9757
9758
9759
9760 enablestring=
9761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9762 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9763 no_cache=0
9764 # Check whether --enable-official_build or --disable-official_build was given.
9765 if test "${enable_official_build+set}" = set; then
9766 enableval="$enable_official_build"
9767
9768 if test "$enableval" = yes; then
9769 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9770 else
9771 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9772 fi
9773
9774 else
9775
9776 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9777 if test "x$LINE" != x ; then
9778 eval "DEFAULT_$LINE"
9779 else
9780 no_cache=1
9781 fi
9782
9783 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9784
9785 fi;
9786
9787 eval "$ac_cv_use_official_build"
9788 if test "$no_cache" != 1; then
9789 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9790 fi
9791
9792 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9793 echo "$as_me:$LINENO: result: yes" >&5
9794 echo "${ECHO_T}yes" >&6
9795 else
9796 echo "$as_me:$LINENO: result: no" >&5
9797 echo "${ECHO_T}no" >&6
9798 fi
9799
9800 # Check whether --enable-vendor or --disable-vendor was given.
9801 if test "${enable_vendor+set}" = set; then
9802 enableval="$enable_vendor"
9803 VENDOR="$enableval"
9804 fi;
9805 if test "x$VENDOR" = "x"; then
9806 VENDOR="custom"
9807 fi
9808
9809 case "${host}" in
9810 *-pc-os2_emx | *-pc-os2-emx )
9811 PATH_IFS=';'
9812 ;;
9813 *)
9814 PATH_IFS=':'
9815 ;;
9816 esac
9817
9818
9819
9820 echo "saving argument cache $wx_arg_cache_file"
9821 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9822
9823
9824
9825 echo "$as_me:$LINENO: checking for toolkit" >&5
9826 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9827
9828 # In Wine, we need to default to MSW, not GTK or MOTIF
9829 if test "$wxUSE_WINE" = "yes"; then
9830 DEFAULT_DEFAULT_wxUSE_GTK=0
9831 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9832 DEFAULT_DEFAULT_wxUSE_MSW=1
9833 wxUSE_SHARED=no
9834 fi
9835
9836 if test "$wxUSE_GUI" = "yes"; then
9837
9838 if test "$USE_BEOS" = 1; then
9839 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9840 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9841 { (exit 1); exit 1; }; }
9842 fi
9843
9844 if test "$TOOLKIT_GIVEN" = 1; then
9845 for toolkit in `echo $ALL_TOOLKITS`; do
9846 var=wxUSE_$toolkit
9847 eval "value=\$${var}"
9848 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9849 done
9850 else
9851 for toolkit in `echo $ALL_TOOLKITS`; do
9852 if test "$has_toolkit_in_cache" != 1; then
9853 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9854 else
9855 var=DEFAULT_wxUSE_$toolkit
9856 fi
9857 eval "wxUSE_$toolkit=\$${var}"
9858 done
9859 fi
9860
9861 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9862 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9863 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9864
9865 case "${host}" in
9866 *-pc-os2_emx | *-pc-os2-emx )
9867 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9868 esac
9869
9870 case "$NUM_TOOLKITS" in
9871 1)
9872 ;;
9873 0)
9874 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9875 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9876 { (exit 1); exit 1; }; }
9877 ;;
9878 *)
9879 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9880 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9881 { (exit 1); exit 1; }; }
9882 esac
9883
9884 for toolkit in `echo $ALL_TOOLKITS`; do
9885 var=wxUSE_$toolkit
9886 eval "value=\$${var}"
9887 if test "x$value" != x; then
9888 cache_var=CACHE_$toolkit
9889 eval "cache=\$${cache_var}"
9890 if test "$cache" = 1; then
9891 echo "$var=$value" >> ${wx_arg_cache_file}
9892 fi
9893 if test "$value" = 1; then
9894 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9895 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9896 echo "${ECHO_T}$toolkit_echo" >&6
9897 fi
9898 fi
9899 done
9900 else
9901 if test "x$host_alias" != "x"; then
9902 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9903 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9904 else
9905 echo "$as_me:$LINENO: result: base only" >&5
9906 echo "${ECHO_T}base only" >&6
9907 fi
9908 fi
9909
9910 wants_win32=0
9911 doesnt_want_win32=0
9912 case "${host}" in
9913 *-*-cygwin*)
9914 if test "$wxUSE_MSW" = 1 ; then
9915 wants_win32=1
9916 else
9917 doesnt_want_win32=1
9918 fi
9919 ;;
9920 *-*-mingw*)
9921 wants_win32=1
9922 ;;
9923 esac
9924
9925 if test "$wxUSE_WINE" = "yes"; then
9926 wants_win32=1
9927 CC=winegcc
9928 CXX=wineg++
9929 RESCOMP=wrc
9930 LDFLAGS_GUI="-mwindows"
9931 fi
9932
9933 if test "$wants_win32" = 1 ; then
9934 USE_UNIX=0
9935 USE_WIN32=1
9936 cat >>confdefs.h <<\_ACEOF
9937 #define __WIN32__ 1
9938 _ACEOF
9939
9940 cat >>confdefs.h <<\_ACEOF
9941 #define __WIN95__ 1
9942 _ACEOF
9943
9944 cat >>confdefs.h <<\_ACEOF
9945 #define __WINDOWS__ 1
9946 _ACEOF
9947
9948 cat >>confdefs.h <<\_ACEOF
9949 #define __GNUWIN32__ 1
9950 _ACEOF
9951
9952 cat >>confdefs.h <<\_ACEOF
9953 #define STRICT 1
9954 _ACEOF
9955
9956 cat >>confdefs.h <<\_ACEOF
9957 #define WINVER 0x0400
9958 _ACEOF
9959
9960 fi
9961 if test "$doesnt_want_win32" = 1 ; then
9962 USE_UNIX=1
9963 USE_WIN32=0
9964 fi
9965
9966 if test "$USE_UNIX" = 1 ; then
9967 wxUSE_UNIX=yes
9968 cat >>confdefs.h <<\_ACEOF
9969 #define __UNIX__ 1
9970 _ACEOF
9971
9972 fi
9973
9974
9975 cat >confcache <<\_ACEOF
9976 # This file is a shell script that caches the results of configure
9977 # tests run on this system so they can be shared between configure
9978 # scripts and configure runs, see configure's option --config-cache.
9979 # It is not useful on other systems. If it contains results you don't
9980 # want to keep, you may remove or edit it.
9981 #
9982 # config.status only pays attention to the cache file if you give it
9983 # the --recheck option to rerun configure.
9984 #
9985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9987 # following values.
9988
9989 _ACEOF
9990
9991 # The following way of writing the cache mishandles newlines in values,
9992 # but we know of no workaround that is simple, portable, and efficient.
9993 # So, don't put newlines in cache variables' values.
9994 # Ultrix sh set writes to stderr and can't be redirected directly,
9995 # and sets the high bit in the cache file unless we assign to the vars.
9996 {
9997 (set) 2>&1 |
9998 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9999 *ac_space=\ *)
10000 # `set' does not quote correctly, so add quotes (double-quote
10001 # substitution turns \\\\ into \\, and sed turns \\ into \).
10002 sed -n \
10003 "s/'/'\\\\''/g;
10004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10005 ;;
10006 *)
10007 # `set' quotes correctly as required by POSIX, so do not add quotes.
10008 sed -n \
10009 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10010 ;;
10011 esac;
10012 } |
10013 sed '
10014 t clear
10015 : clear
10016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10017 t end
10018 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10019 : end' >>confcache
10020 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10021 if test -w $cache_file; then
10022 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10023 cat confcache >$cache_file
10024 else
10025 echo "not updating unwritable cache $cache_file"
10026 fi
10027 fi
10028 rm -f confcache
10029
10030 if test "$build" != "$host" ; then
10031 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10032 CC=$host_alias-gcc
10033 CXX=$host_alias-c++
10034 AR=$host_alias-ar
10035 RANLIB=$host_alias-ranlib
10036 DLLTOOL=$host_alias-dlltool
10037 RESCOMP=$host_alias-windres
10038 LD=$host_alias-ld
10039 NM=$host_alias-nm
10040 STRIP=$host_alias-strip
10041 else
10042 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10043 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10044 { (exit 1); exit 1; }; }
10045 fi
10046 fi
10047
10048 CFLAGS=${CFLAGS:=}
10049 ac_ext=c
10050 ac_cpp='$CPP $CPPFLAGS'
10051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10054 if test -n "$ac_tool_prefix"; then
10055 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10056 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10057 echo "$as_me:$LINENO: checking for $ac_word" >&5
10058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10059 if test "${ac_cv_prog_CC+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062 if test -n "$CC"; then
10063 ac_cv_prog_CC="$CC" # Let the user override the test.
10064 else
10065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066 for as_dir in $PATH
10067 do
10068 IFS=$as_save_IFS
10069 test -z "$as_dir" && as_dir=.
10070 for ac_exec_ext in '' $ac_executable_extensions; do
10071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10072 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 break 2
10075 fi
10076 done
10077 done
10078
10079 fi
10080 fi
10081 CC=$ac_cv_prog_CC
10082 if test -n "$CC"; then
10083 echo "$as_me:$LINENO: result: $CC" >&5
10084 echo "${ECHO_T}$CC" >&6
10085 else
10086 echo "$as_me:$LINENO: result: no" >&5
10087 echo "${ECHO_T}no" >&6
10088 fi
10089
10090 fi
10091 if test -z "$ac_cv_prog_CC"; then
10092 ac_ct_CC=$CC
10093 # Extract the first word of "gcc", so it can be a program name with args.
10094 set dummy gcc; ac_word=$2
10095 echo "$as_me:$LINENO: checking for $ac_word" >&5
10096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 else
10100 if test -n "$ac_ct_CC"; then
10101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10102 else
10103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10105 do
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110 ac_cv_prog_ac_ct_CC="gcc"
10111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10113 fi
10114 done
10115 done
10116
10117 fi
10118 fi
10119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10120 if test -n "$ac_ct_CC"; then
10121 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10122 echo "${ECHO_T}$ac_ct_CC" >&6
10123 else
10124 echo "$as_me:$LINENO: result: no" >&5
10125 echo "${ECHO_T}no" >&6
10126 fi
10127
10128 CC=$ac_ct_CC
10129 else
10130 CC="$ac_cv_prog_CC"
10131 fi
10132
10133 if test -z "$CC"; then
10134 if test -n "$ac_tool_prefix"; then
10135 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10136 set dummy ${ac_tool_prefix}cc; ac_word=$2
10137 echo "$as_me:$LINENO: checking for $ac_word" >&5
10138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10139 if test "${ac_cv_prog_CC+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142 if test -n "$CC"; then
10143 ac_cv_prog_CC="$CC" # Let the user override the test.
10144 else
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10147 do
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10152 ac_cv_prog_CC="${ac_tool_prefix}cc"
10153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10154 break 2
10155 fi
10156 done
10157 done
10158
10159 fi
10160 fi
10161 CC=$ac_cv_prog_CC
10162 if test -n "$CC"; then
10163 echo "$as_me:$LINENO: result: $CC" >&5
10164 echo "${ECHO_T}$CC" >&6
10165 else
10166 echo "$as_me:$LINENO: result: no" >&5
10167 echo "${ECHO_T}no" >&6
10168 fi
10169
10170 fi
10171 if test -z "$ac_cv_prog_CC"; then
10172 ac_ct_CC=$CC
10173 # Extract the first word of "cc", so it can be a program name with args.
10174 set dummy cc; ac_word=$2
10175 echo "$as_me:$LINENO: checking for $ac_word" >&5
10176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180 if test -n "$ac_ct_CC"; then
10181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10182 else
10183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184 for as_dir in $PATH
10185 do
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190 ac_cv_prog_ac_ct_CC="cc"
10191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10193 fi
10194 done
10195 done
10196
10197 fi
10198 fi
10199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10200 if test -n "$ac_ct_CC"; then
10201 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10202 echo "${ECHO_T}$ac_ct_CC" >&6
10203 else
10204 echo "$as_me:$LINENO: result: no" >&5
10205 echo "${ECHO_T}no" >&6
10206 fi
10207
10208 CC=$ac_ct_CC
10209 else
10210 CC="$ac_cv_prog_CC"
10211 fi
10212
10213 fi
10214 if test -z "$CC"; then
10215 # Extract the first word of "cc", so it can be a program name with args.
10216 set dummy cc; ac_word=$2
10217 echo "$as_me:$LINENO: checking for $ac_word" >&5
10218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10219 if test "${ac_cv_prog_CC+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222 if test -n "$CC"; then
10223 ac_cv_prog_CC="$CC" # Let the user override the test.
10224 else
10225 ac_prog_rejected=no
10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10228 do
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
10231 for ac_exec_ext in '' $ac_executable_extensions; do
10232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10233 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10234 ac_prog_rejected=yes
10235 continue
10236 fi
10237 ac_cv_prog_CC="cc"
10238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10240 fi
10241 done
10242 done
10243
10244 if test $ac_prog_rejected = yes; then
10245 # We found a bogon in the path, so make sure we never use it.
10246 set dummy $ac_cv_prog_CC
10247 shift
10248 if test $# != 0; then
10249 # We chose a different compiler from the bogus one.
10250 # However, it has the same basename, so the bogon will be chosen
10251 # first if we set CC to just the basename; use the full file name.
10252 shift
10253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10254 fi
10255 fi
10256 fi
10257 fi
10258 CC=$ac_cv_prog_CC
10259 if test -n "$CC"; then
10260 echo "$as_me:$LINENO: result: $CC" >&5
10261 echo "${ECHO_T}$CC" >&6
10262 else
10263 echo "$as_me:$LINENO: result: no" >&5
10264 echo "${ECHO_T}no" >&6
10265 fi
10266
10267 fi
10268 if test -z "$CC"; then
10269 if test -n "$ac_tool_prefix"; then
10270 for ac_prog in cl
10271 do
10272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10274 echo "$as_me:$LINENO: checking for $ac_word" >&5
10275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10276 if test "${ac_cv_prog_CC+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279 if test -n "$CC"; then
10280 ac_cv_prog_CC="$CC" # Let the user override the test.
10281 else
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283 for as_dir in $PATH
10284 do
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
10287 for ac_exec_ext in '' $ac_executable_extensions; do
10288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10289 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 break 2
10292 fi
10293 done
10294 done
10295
10296 fi
10297 fi
10298 CC=$ac_cv_prog_CC
10299 if test -n "$CC"; then
10300 echo "$as_me:$LINENO: result: $CC" >&5
10301 echo "${ECHO_T}$CC" >&6
10302 else
10303 echo "$as_me:$LINENO: result: no" >&5
10304 echo "${ECHO_T}no" >&6
10305 fi
10306
10307 test -n "$CC" && break
10308 done
10309 fi
10310 if test -z "$CC"; then
10311 ac_ct_CC=$CC
10312 for ac_prog in cl
10313 do
10314 # Extract the first word of "$ac_prog", so it can be a program name with args.
10315 set dummy $ac_prog; ac_word=$2
10316 echo "$as_me:$LINENO: checking for $ac_word" >&5
10317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321 if test -n "$ac_ct_CC"; then
10322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10323 else
10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325 for as_dir in $PATH
10326 do
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
10329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10331 ac_cv_prog_ac_ct_CC="$ac_prog"
10332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 break 2
10334 fi
10335 done
10336 done
10337
10338 fi
10339 fi
10340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10341 if test -n "$ac_ct_CC"; then
10342 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10343 echo "${ECHO_T}$ac_ct_CC" >&6
10344 else
10345 echo "$as_me:$LINENO: result: no" >&5
10346 echo "${ECHO_T}no" >&6
10347 fi
10348
10349 test -n "$ac_ct_CC" && break
10350 done
10351
10352 CC=$ac_ct_CC
10353 fi
10354
10355 fi
10356
10357
10358 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10359 See \`config.log' for more details." >&5
10360 echo "$as_me: error: no acceptable C compiler found in \$PATH
10361 See \`config.log' for more details." >&2;}
10362 { (exit 1); exit 1; }; }
10363
10364 # Provide some information about the compiler.
10365 echo "$as_me:$LINENO:" \
10366 "checking for C compiler version" >&5
10367 ac_compiler=`set X $ac_compile; echo $2`
10368 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10369 (eval $ac_compiler --version </dev/null >&5) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }
10373 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10374 (eval $ac_compiler -v </dev/null >&5) 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }
10378 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10379 (eval $ac_compiler -V </dev/null >&5) 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }
10383
10384 cat >conftest.$ac_ext <<_ACEOF
10385 /* confdefs.h. */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390
10391 int
10392 main ()
10393 {
10394
10395 ;
10396 return 0;
10397 }
10398 _ACEOF
10399 ac_clean_files_save=$ac_clean_files
10400 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10401 # Try to create an executable without -o first, disregard a.out.
10402 # It will help us diagnose broken compilers, and finding out an intuition
10403 # of exeext.
10404 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10405 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
10406 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10407 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10408 (eval $ac_link_default) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; then
10412 # Find the output, starting from the most likely. This scheme is
10413 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10414 # resort.
10415
10416 # Be careful to initialize this variable, since it used to be cached.
10417 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10418 ac_cv_exeext=
10419 # b.out is created by i960 compilers.
10420 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10421 do
10422 test -f "$ac_file" || continue
10423 case $ac_file in
10424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10425 ;;
10426 conftest.$ac_ext )
10427 # This is the source file.
10428 ;;
10429 [ab].out )
10430 # We found the default executable, but exeext='' is most
10431 # certainly right.
10432 break;;
10433 *.* )
10434 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10435 # FIXME: I believe we export ac_cv_exeext for Libtool,
10436 # but it would be cool to find out if it's true. Does anybody
10437 # maintain Libtool? --akim.
10438 export ac_cv_exeext
10439 break;;
10440 * )
10441 break;;
10442 esac
10443 done
10444 else
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10449 See \`config.log' for more details." >&5
10450 echo "$as_me: error: C compiler cannot create executables
10451 See \`config.log' for more details." >&2;}
10452 { (exit 77); exit 77; }; }
10453 fi
10454
10455 ac_exeext=$ac_cv_exeext
10456 echo "$as_me:$LINENO: result: $ac_file" >&5
10457 echo "${ECHO_T}$ac_file" >&6
10458
10459 # Check the compiler produces executables we can run. If not, either
10460 # the compiler is broken, or we cross compile.
10461 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10462 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10463 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10464 # If not cross compiling, check that we can run a simple program.
10465 if test "$cross_compiling" != yes; then
10466 if { ac_try='./$ac_file'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 cross_compiling=no
10473 else
10474 if test "$cross_compiling" = maybe; then
10475 cross_compiling=yes
10476 else
10477 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10478 If you meant to cross compile, use \`--host'.
10479 See \`config.log' for more details." >&5
10480 echo "$as_me: error: cannot run C compiled programs.
10481 If you meant to cross compile, use \`--host'.
10482 See \`config.log' for more details." >&2;}
10483 { (exit 1); exit 1; }; }
10484 fi
10485 fi
10486 fi
10487 echo "$as_me:$LINENO: result: yes" >&5
10488 echo "${ECHO_T}yes" >&6
10489
10490 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10491 ac_clean_files=$ac_clean_files_save
10492 # Check the compiler produces executables we can run. If not, either
10493 # the compiler is broken, or we cross compile.
10494 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10495 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10496 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10497 echo "${ECHO_T}$cross_compiling" >&6
10498
10499 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10500 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10502 (eval $ac_link) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; then
10506 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10507 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10508 # work properly (i.e., refer to `conftest.exe'), while it won't with
10509 # `rm'.
10510 for ac_file in conftest.exe conftest conftest.*; do
10511 test -f "$ac_file" || continue
10512 case $ac_file in
10513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10514 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10515 export ac_cv_exeext
10516 break;;
10517 * ) break;;
10518 esac
10519 done
10520 else
10521 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10522 See \`config.log' for more details." >&5
10523 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10524 See \`config.log' for more details." >&2;}
10525 { (exit 1); exit 1; }; }
10526 fi
10527
10528 rm -f conftest$ac_cv_exeext
10529 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10530 echo "${ECHO_T}$ac_cv_exeext" >&6
10531
10532 rm -f conftest.$ac_ext
10533 EXEEXT=$ac_cv_exeext
10534 ac_exeext=$EXEEXT
10535 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10536 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10537 if test "${ac_cv_objext+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 else
10540 cat >conftest.$ac_ext <<_ACEOF
10541 /* confdefs.h. */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10546
10547 int
10548 main ()
10549 {
10550
10551 ;
10552 return 0;
10553 }
10554 _ACEOF
10555 rm -f conftest.o conftest.obj
10556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10557 (eval $ac_compile) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; then
10561 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10562 case $ac_file in
10563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10564 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10565 break;;
10566 esac
10567 done
10568 else
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10571
10572 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10573 See \`config.log' for more details." >&5
10574 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10575 See \`config.log' for more details." >&2;}
10576 { (exit 1); exit 1; }; }
10577 fi
10578
10579 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10580 fi
10581 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10582 echo "${ECHO_T}$ac_cv_objext" >&6
10583 OBJEXT=$ac_cv_objext
10584 ac_objext=$OBJEXT
10585 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10586 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10587 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 else
10590 cat >conftest.$ac_ext <<_ACEOF
10591 /* confdefs.h. */
10592 _ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h. */
10596
10597 int
10598 main ()
10599 {
10600 #ifndef __GNUC__
10601 choke me
10602 #endif
10603
10604 ;
10605 return 0;
10606 }
10607 _ACEOF
10608 rm -f conftest.$ac_objext
10609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10610 (eval $ac_compile) 2>conftest.er1
10611 ac_status=$?
10612 grep -v '^ *+' conftest.er1 >conftest.err
10613 rm -f conftest.er1
10614 cat conftest.err >&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -z "$ac_c_werror_flag"
10618 || test ! -s conftest.err'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; } &&
10624 { ac_try='test -s conftest.$ac_objext'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10630 ac_compiler_gnu=yes
10631 else
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10634
10635 ac_compiler_gnu=no
10636 fi
10637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10638 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10639
10640 fi
10641 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10642 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10643 GCC=`test $ac_compiler_gnu = yes && echo yes`
10644 ac_test_CFLAGS=${CFLAGS+set}
10645 ac_save_CFLAGS=$CFLAGS
10646 CFLAGS="-g"
10647 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10648 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10649 if test "${ac_cv_prog_cc_g+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652 cat >conftest.$ac_ext <<_ACEOF
10653 /* confdefs.h. */
10654 _ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10658
10659 int
10660 main ()
10661 {
10662
10663 ;
10664 return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
10676 { ac_try='test -z "$ac_c_werror_flag"
10677 || test ! -s conftest.err'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest.$ac_objext'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10689 ac_cv_prog_cc_g=yes
10690 else
10691 echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10693
10694 ac_cv_prog_cc_g=no
10695 fi
10696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10697 fi
10698 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10699 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10700 if test "$ac_test_CFLAGS" = set; then
10701 CFLAGS=$ac_save_CFLAGS
10702 elif test $ac_cv_prog_cc_g = yes; then
10703 if test "$GCC" = yes; then
10704 CFLAGS="-g -O2"
10705 else
10706 CFLAGS="-g"
10707 fi
10708 else
10709 if test "$GCC" = yes; then
10710 CFLAGS="-O2"
10711 else
10712 CFLAGS=
10713 fi
10714 fi
10715 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10716 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10717 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720 ac_cv_prog_cc_stdc=no
10721 ac_save_CC=$CC
10722 cat >conftest.$ac_ext <<_ACEOF
10723 /* confdefs.h. */
10724 _ACEOF
10725 cat confdefs.h >>conftest.$ac_ext
10726 cat >>conftest.$ac_ext <<_ACEOF
10727 /* end confdefs.h. */
10728 #include <stdarg.h>
10729 #include <stdio.h>
10730 #include <sys/types.h>
10731 #include <sys/stat.h>
10732 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10733 struct buf { int x; };
10734 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10735 static char *e (p, i)
10736 char **p;
10737 int i;
10738 {
10739 return p[i];
10740 }
10741 static char *f (char * (*g) (char **, int), char **p, ...)
10742 {
10743 char *s;
10744 va_list v;
10745 va_start (v,p);
10746 s = g (p, va_arg (v,int));
10747 va_end (v);
10748 return s;
10749 }
10750
10751 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10752 function prototypes and stuff, but not '\xHH' hex character constants.
10753 These don't provoke an error unfortunately, instead are silently treated
10754 as 'x'. The following induces an error, until -std1 is added to get
10755 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10756 array size at least. It's necessary to write '\x00'==0 to get something
10757 that's true only with -std1. */
10758 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10759
10760 int test (int i, double x);
10761 struct s1 {int (*f) (int a);};
10762 struct s2 {int (*f) (double a);};
10763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10764 int argc;
10765 char **argv;
10766 int
10767 main ()
10768 {
10769 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10770 ;
10771 return 0;
10772 }
10773 _ACEOF
10774 # Don't try gcc -ansi; that turns off useful extensions and
10775 # breaks some systems' header files.
10776 # AIX -qlanglvl=ansi
10777 # Ultrix and OSF/1 -std1
10778 # HP-UX 10.20 and later -Ae
10779 # HP-UX older versions -Aa -D_HPUX_SOURCE
10780 # SVR4 -Xc -D__EXTENSIONS__
10781 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10782 do
10783 CC="$ac_save_CC $ac_arg"
10784 rm -f conftest.$ac_objext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10786 (eval $ac_compile) 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag"
10794 || test ! -s conftest.err'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest.$ac_objext'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_cv_prog_cc_stdc=$ac_arg
10807 break
10808 else
10809 echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10811
10812 fi
10813 rm -f conftest.err conftest.$ac_objext
10814 done
10815 rm -f conftest.$ac_ext conftest.$ac_objext
10816 CC=$ac_save_CC
10817
10818 fi
10819
10820 case "x$ac_cv_prog_cc_stdc" in
10821 x|xno)
10822 echo "$as_me:$LINENO: result: none needed" >&5
10823 echo "${ECHO_T}none needed" >&6 ;;
10824 *)
10825 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10826 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10827 CC="$CC $ac_cv_prog_cc_stdc" ;;
10828 esac
10829
10830 # Some people use a C++ compiler to compile C. Since we use `exit',
10831 # in C++ we need to declare it. In case someone uses the same compiler
10832 # for both compiling C and C++ we need to have the C++ compiler decide
10833 # the declaration of exit, since it's the most demanding environment.
10834 cat >conftest.$ac_ext <<_ACEOF
10835 #ifndef __cplusplus
10836 choke me
10837 #endif
10838 _ACEOF
10839 rm -f conftest.$ac_objext
10840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10841 (eval $ac_compile) 2>conftest.er1
10842 ac_status=$?
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } &&
10848 { ac_try='test -z "$ac_c_werror_flag"
10849 || test ! -s conftest.err'
10850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10851 (eval $ac_try) 2>&5
10852 ac_status=$?
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); }; } &&
10855 { ac_try='test -s conftest.$ac_objext'
10856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857 (eval $ac_try) 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; }; then
10861 for ac_declaration in \
10862 '' \
10863 'extern "C" void std::exit (int) throw (); using std::exit;' \
10864 'extern "C" void std::exit (int); using std::exit;' \
10865 'extern "C" void exit (int) throw ();' \
10866 'extern "C" void exit (int);' \
10867 'void exit (int);'
10868 do
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 $ac_declaration
10876 #include <stdlib.h>
10877 int
10878 main ()
10879 {
10880 exit (42);
10881 ;
10882 return 0;
10883 }
10884 _ACEOF
10885 rm -f conftest.$ac_objext
10886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10887 (eval $ac_compile) 2>conftest.er1
10888 ac_status=$?
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try='test -z "$ac_c_werror_flag"
10895 || test ! -s conftest.err'
10896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897 (eval $ac_try) 2>&5
10898 ac_status=$?
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; } &&
10901 { ac_try='test -s conftest.$ac_objext'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 :
10908 else
10909 echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10911
10912 continue
10913 fi
10914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10915 cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h. */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 $ac_declaration
10922 int
10923 main ()
10924 {
10925 exit (42);
10926 ;
10927 return 0;
10928 }
10929 _ACEOF
10930 rm -f conftest.$ac_objext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10932 (eval $ac_compile) 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -z "$ac_c_werror_flag"
10940 || test ! -s conftest.err'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; } &&
10946 { ac_try='test -s conftest.$ac_objext'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 break
10953 else
10954 echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957 fi
10958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10959 done
10960 rm -f conftest*
10961 if test -n "$ac_declaration"; then
10962 echo '#ifdef __cplusplus' >>confdefs.h
10963 echo $ac_declaration >>confdefs.h
10964 echo '#endif' >>confdefs.h
10965 fi
10966
10967 else
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 fi
10972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10973 ac_ext=c
10974 ac_cpp='$CPP $CPPFLAGS'
10975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10978
10979
10980
10981 ac_ext=c
10982 ac_cpp='$CPP $CPPFLAGS'
10983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10986 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10987 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10988 # On Suns, sometimes $CPP names a directory.
10989 if test -n "$CPP" && test -d "$CPP"; then
10990 CPP=
10991 fi
10992 if test -z "$CPP"; then
10993 if test "${ac_cv_prog_CPP+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 else
10996 # Double quotes because CPP needs to be expanded
10997 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10998 do
10999 ac_preproc_ok=false
11000 for ac_c_preproc_warn_flag in '' yes
11001 do
11002 # Use a header file that comes with gcc, so configuring glibc
11003 # with a fresh cross-compiler works.
11004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11005 # <limits.h> exists even on freestanding compilers.
11006 # On the NeXT, cc -E runs the code through the compiler's parser,
11007 # not just through cpp. "Syntax error" is here to catch this case.
11008 cat >conftest.$ac_ext <<_ACEOF
11009 /* confdefs.h. */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 #ifdef __STDC__
11015 # include <limits.h>
11016 #else
11017 # include <assert.h>
11018 #endif
11019 Syntax error
11020 _ACEOF
11021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } >/dev/null; then
11029 if test -s conftest.err; then
11030 ac_cpp_err=$ac_c_preproc_warn_flag
11031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11032 else
11033 ac_cpp_err=
11034 fi
11035 else
11036 ac_cpp_err=yes
11037 fi
11038 if test -z "$ac_cpp_err"; then
11039 :
11040 else
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11043
11044 # Broken: fails on valid input.
11045 continue
11046 fi
11047 rm -f conftest.err conftest.$ac_ext
11048
11049 # OK, works on sane cases. Now check whether non-existent headers
11050 # can be detected and how.
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <ac_nonexistent.h>
11058 _ACEOF
11059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11061 ac_status=$?
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } >/dev/null; then
11067 if test -s conftest.err; then
11068 ac_cpp_err=$ac_c_preproc_warn_flag
11069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11070 else
11071 ac_cpp_err=
11072 fi
11073 else
11074 ac_cpp_err=yes
11075 fi
11076 if test -z "$ac_cpp_err"; then
11077 # Broken: success on invalid input.
11078 continue
11079 else
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083 # Passes both tests.
11084 ac_preproc_ok=:
11085 break
11086 fi
11087 rm -f conftest.err conftest.$ac_ext
11088
11089 done
11090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11091 rm -f conftest.err conftest.$ac_ext
11092 if $ac_preproc_ok; then
11093 break
11094 fi
11095
11096 done
11097 ac_cv_prog_CPP=$CPP
11098
11099 fi
11100 CPP=$ac_cv_prog_CPP
11101 else
11102 ac_cv_prog_CPP=$CPP
11103 fi
11104 echo "$as_me:$LINENO: result: $CPP" >&5
11105 echo "${ECHO_T}$CPP" >&6
11106 ac_preproc_ok=false
11107 for ac_c_preproc_warn_flag in '' yes
11108 do
11109 # Use a header file that comes with gcc, so configuring glibc
11110 # with a fresh cross-compiler works.
11111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11112 # <limits.h> exists even on freestanding compilers.
11113 # On the NeXT, cc -E runs the code through the compiler's parser,
11114 # not just through cpp. "Syntax error" is here to catch this case.
11115 cat >conftest.$ac_ext <<_ACEOF
11116 /* confdefs.h. */
11117 _ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11121 #ifdef __STDC__
11122 # include <limits.h>
11123 #else
11124 # include <assert.h>
11125 #endif
11126 Syntax error
11127 _ACEOF
11128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11130 ac_status=$?
11131 grep -v '^ *+' conftest.er1 >conftest.err
11132 rm -f conftest.er1
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } >/dev/null; then
11136 if test -s conftest.err; then
11137 ac_cpp_err=$ac_c_preproc_warn_flag
11138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11139 else
11140 ac_cpp_err=
11141 fi
11142 else
11143 ac_cpp_err=yes
11144 fi
11145 if test -z "$ac_cpp_err"; then
11146 :
11147 else
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11150
11151 # Broken: fails on valid input.
11152 continue
11153 fi
11154 rm -f conftest.err conftest.$ac_ext
11155
11156 # OK, works on sane cases. Now check whether non-existent headers
11157 # can be detected and how.
11158 cat >conftest.$ac_ext <<_ACEOF
11159 /* confdefs.h. */
11160 _ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11164 #include <ac_nonexistent.h>
11165 _ACEOF
11166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11168 ac_status=$?
11169 grep -v '^ *+' conftest.er1 >conftest.err
11170 rm -f conftest.er1
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } >/dev/null; then
11174 if test -s conftest.err; then
11175 ac_cpp_err=$ac_c_preproc_warn_flag
11176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11177 else
11178 ac_cpp_err=
11179 fi
11180 else
11181 ac_cpp_err=yes
11182 fi
11183 if test -z "$ac_cpp_err"; then
11184 # Broken: success on invalid input.
11185 continue
11186 else
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11189
11190 # Passes both tests.
11191 ac_preproc_ok=:
11192 break
11193 fi
11194 rm -f conftest.err conftest.$ac_ext
11195
11196 done
11197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11198 rm -f conftest.err conftest.$ac_ext
11199 if $ac_preproc_ok; then
11200 :
11201 else
11202 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11203 See \`config.log' for more details." >&5
11204 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11205 See \`config.log' for more details." >&2;}
11206 { (exit 1); exit 1; }; }
11207 fi
11208
11209 ac_ext=c
11210 ac_cpp='$CPP $CPPFLAGS'
11211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11214
11215
11216 echo "$as_me:$LINENO: checking for egrep" >&5
11217 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11218 if test "${ac_cv_prog_egrep+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11222 then ac_cv_prog_egrep='grep -E'
11223 else ac_cv_prog_egrep='egrep'
11224 fi
11225 fi
11226 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11227 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11228 EGREP=$ac_cv_prog_egrep
11229
11230
11231 if test $ac_cv_c_compiler_gnu = yes; then
11232 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11233 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11234 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237 ac_pattern="Autoconf.*'x'"
11238 cat >conftest.$ac_ext <<_ACEOF
11239 /* confdefs.h. */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 #include <sgtty.h>
11245 Autoconf TIOCGETP
11246 _ACEOF
11247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11248 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11249 ac_cv_prog_gcc_traditional=yes
11250 else
11251 ac_cv_prog_gcc_traditional=no
11252 fi
11253 rm -f conftest*
11254
11255
11256 if test $ac_cv_prog_gcc_traditional = no; then
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h. */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #include <termio.h>
11264 Autoconf TCGETA
11265 _ACEOF
11266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11267 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11268 ac_cv_prog_gcc_traditional=yes
11269 fi
11270 rm -f conftest*
11271
11272 fi
11273 fi
11274 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11275 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11276 if test $ac_cv_prog_gcc_traditional = yes; then
11277 CC="$CC -traditional"
11278 fi
11279 fi
11280
11281
11282
11283
11284 ac_ext=cc
11285 ac_cpp='$CXXCPP $CPPFLAGS'
11286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11289
11290
11291 CXXFLAGS=${CXXFLAGS:=}
11292 ac_ext=cc
11293 ac_cpp='$CXXCPP $CPPFLAGS'
11294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11297 if test -n "$ac_tool_prefix"; then
11298 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11299 do
11300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11302 echo "$as_me:$LINENO: checking for $ac_word" >&5
11303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11304 if test "${ac_cv_prog_CXX+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307 if test -n "$CXX"; then
11308 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11309 else
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11312 do
11313 IFS=$as_save_IFS
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11317 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 break 2
11320 fi
11321 done
11322 done
11323
11324 fi
11325 fi
11326 CXX=$ac_cv_prog_CXX
11327 if test -n "$CXX"; then
11328 echo "$as_me:$LINENO: result: $CXX" >&5
11329 echo "${ECHO_T}$CXX" >&6
11330 else
11331 echo "$as_me:$LINENO: result: no" >&5
11332 echo "${ECHO_T}no" >&6
11333 fi
11334
11335 test -n "$CXX" && break
11336 done
11337 fi
11338 if test -z "$CXX"; then
11339 ac_ct_CXX=$CXX
11340 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11341 do
11342 # Extract the first word of "$ac_prog", so it can be a program name with args.
11343 set dummy $ac_prog; ac_word=$2
11344 echo "$as_me:$LINENO: checking for $ac_word" >&5
11345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11346 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349 if test -n "$ac_ct_CXX"; then
11350 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11351 else
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11354 do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359 ac_cv_prog_ac_ct_CXX="$ac_prog"
11360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11362 fi
11363 done
11364 done
11365
11366 fi
11367 fi
11368 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11369 if test -n "$ac_ct_CXX"; then
11370 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11371 echo "${ECHO_T}$ac_ct_CXX" >&6
11372 else
11373 echo "$as_me:$LINENO: result: no" >&5
11374 echo "${ECHO_T}no" >&6
11375 fi
11376
11377 test -n "$ac_ct_CXX" && break
11378 done
11379 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11380
11381 CXX=$ac_ct_CXX
11382 fi
11383
11384
11385 # Provide some information about the compiler.
11386 echo "$as_me:$LINENO:" \
11387 "checking for C++ compiler version" >&5
11388 ac_compiler=`set X $ac_compile; echo $2`
11389 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11390 (eval $ac_compiler --version </dev/null >&5) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }
11394 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11395 (eval $ac_compiler -v </dev/null >&5) 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }
11399 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11400 (eval $ac_compiler -V </dev/null >&5) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }
11404
11405 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11406 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11407 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h. */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416
11417 int
11418 main ()
11419 {
11420 #ifndef __GNUC__
11421 choke me
11422 #endif
11423
11424 ;
11425 return 0;
11426 }
11427 _ACEOF
11428 rm -f conftest.$ac_objext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430 (eval $ac_compile) 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try='test -z "$ac_cxx_werror_flag"
11438 || test ! -s conftest.err'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; } &&
11444 { ac_try='test -s conftest.$ac_objext'
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_compiler_gnu=yes
11451 else
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11454
11455 ac_compiler_gnu=no
11456 fi
11457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11458 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11459
11460 fi
11461 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11462 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11463 GXX=`test $ac_compiler_gnu = yes && echo yes`
11464 ac_test_CXXFLAGS=${CXXFLAGS+set}
11465 ac_save_CXXFLAGS=$CXXFLAGS
11466 CXXFLAGS="-g"
11467 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11468 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11469 if test "${ac_cv_prog_cxx_g+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472 cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h. */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11478
11479 int
11480 main ()
11481 {
11482
11483 ;
11484 return 0;
11485 }
11486 _ACEOF
11487 rm -f conftest.$ac_objext
11488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11489 (eval $ac_compile) 2>conftest.er1
11490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
11496 { ac_try='test -z "$ac_cxx_werror_flag"
11497 || test ! -s conftest.err'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest.$ac_objext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 ac_cv_prog_cxx_g=yes
11510 else
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 ac_cv_prog_cxx_g=no
11515 fi
11516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11517 fi
11518 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11519 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11520 if test "$ac_test_CXXFLAGS" = set; then
11521 CXXFLAGS=$ac_save_CXXFLAGS
11522 elif test $ac_cv_prog_cxx_g = yes; then
11523 if test "$GXX" = yes; then
11524 CXXFLAGS="-g -O2"
11525 else
11526 CXXFLAGS="-g"
11527 fi
11528 else
11529 if test "$GXX" = yes; then
11530 CXXFLAGS="-O2"
11531 else
11532 CXXFLAGS=
11533 fi
11534 fi
11535 for ac_declaration in \
11536 '' \
11537 'extern "C" void std::exit (int) throw (); using std::exit;' \
11538 'extern "C" void std::exit (int); using std::exit;' \
11539 'extern "C" void exit (int) throw ();' \
11540 'extern "C" void exit (int);' \
11541 'void exit (int);'
11542 do
11543 cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h. */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 $ac_declaration
11550 #include <stdlib.h>
11551 int
11552 main ()
11553 {
11554 exit (42);
11555 ;
11556 return 0;
11557 }
11558 _ACEOF
11559 rm -f conftest.$ac_objext
11560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11561 (eval $ac_compile) 2>conftest.er1
11562 ac_status=$?
11563 grep -v '^ *+' conftest.er1 >conftest.err
11564 rm -f conftest.er1
11565 cat conftest.err >&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
11568 { ac_try='test -z "$ac_cxx_werror_flag"
11569 || test ! -s conftest.err'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11572 ac_status=$?
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; } &&
11575 { ac_try='test -s conftest.$ac_objext'
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; }; then
11581 :
11582 else
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11585
11586 continue
11587 fi
11588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11589 cat >conftest.$ac_ext <<_ACEOF
11590 /* confdefs.h. */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11595 $ac_declaration
11596 int
11597 main ()
11598 {
11599 exit (42);
11600 ;
11601 return 0;
11602 }
11603 _ACEOF
11604 rm -f conftest.$ac_objext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
11613 { ac_try='test -z "$ac_cxx_werror_flag"
11614 || test ! -s conftest.err'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; } &&
11620 { ac_try='test -s conftest.$ac_objext'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 break
11627 else
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 fi
11632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11633 done
11634 rm -f conftest*
11635 if test -n "$ac_declaration"; then
11636 echo '#ifdef __cplusplus' >>confdefs.h
11637 echo $ac_declaration >>confdefs.h
11638 echo '#endif' >>confdefs.h
11639 fi
11640
11641 ac_ext=cc
11642 ac_cpp='$CXXCPP $CPPFLAGS'
11643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11646
11647
11648 ac_ext=c
11649 ac_cpp='$CPP $CPPFLAGS'
11650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11653
11654
11655 echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11656 echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11657 GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11658 if test "$GCC" = "yes" ; then
11659 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11660 sed -n '1,/End of search list\./p' | \
11661 grep '^ */usr/local/include$' 2>&1 /dev/null \
11662 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11663 fi
11664 echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11665 echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11666
11667 if test -n "$ac_tool_prefix"; then
11668 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11669 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11670 echo "$as_me:$LINENO: checking for $ac_word" >&5
11671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11672 if test "${ac_cv_prog_RANLIB+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 else
11675 if test -n "$RANLIB"; then
11676 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11677 else
11678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679 for as_dir in $PATH
11680 do
11681 IFS=$as_save_IFS
11682 test -z "$as_dir" && as_dir=.
11683 for ac_exec_ext in '' $ac_executable_extensions; do
11684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11685 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11687 break 2
11688 fi
11689 done
11690 done
11691
11692 fi
11693 fi
11694 RANLIB=$ac_cv_prog_RANLIB
11695 if test -n "$RANLIB"; then
11696 echo "$as_me:$LINENO: result: $RANLIB" >&5
11697 echo "${ECHO_T}$RANLIB" >&6
11698 else
11699 echo "$as_me:$LINENO: result: no" >&5
11700 echo "${ECHO_T}no" >&6
11701 fi
11702
11703 fi
11704 if test -z "$ac_cv_prog_RANLIB"; then
11705 ac_ct_RANLIB=$RANLIB
11706 # Extract the first word of "ranlib", so it can be a program name with args.
11707 set dummy ranlib; ac_word=$2
11708 echo "$as_me:$LINENO: checking for $ac_word" >&5
11709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11710 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713 if test -n "$ac_ct_RANLIB"; then
11714 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11715 else
11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717 for as_dir in $PATH
11718 do
11719 IFS=$as_save_IFS
11720 test -z "$as_dir" && as_dir=.
11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11723 ac_cv_prog_ac_ct_RANLIB="ranlib"
11724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11725 break 2
11726 fi
11727 done
11728 done
11729
11730 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11731 fi
11732 fi
11733 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11734 if test -n "$ac_ct_RANLIB"; then
11735 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11736 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11737 else
11738 echo "$as_me:$LINENO: result: no" >&5
11739 echo "${ECHO_T}no" >&6
11740 fi
11741
11742 RANLIB=$ac_ct_RANLIB
11743 else
11744 RANLIB="$ac_cv_prog_RANLIB"
11745 fi
11746
11747
11748 # Extract the first word of "ar", so it can be a program name with args.
11749 set dummy ar; ac_word=$2
11750 echo "$as_me:$LINENO: checking for $ac_word" >&5
11751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11752 if test "${ac_cv_prog_AR+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755 if test -n "$AR"; then
11756 ac_cv_prog_AR="$AR" # Let the user override the test.
11757 else
11758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759 for as_dir in $PATH
11760 do
11761 IFS=$as_save_IFS
11762 test -z "$as_dir" && as_dir=.
11763 for ac_exec_ext in '' $ac_executable_extensions; do
11764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11765 ac_cv_prog_AR="ar"
11766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11767 break 2
11768 fi
11769 done
11770 done
11771
11772 fi
11773 fi
11774 AR=$ac_cv_prog_AR
11775 if test -n "$AR"; then
11776 echo "$as_me:$LINENO: result: $AR" >&5
11777 echo "${ECHO_T}$AR" >&6
11778 else
11779 echo "$as_me:$LINENO: result: no" >&5
11780 echo "${ECHO_T}no" >&6
11781 fi
11782
11783 if test "x$AR" = "x" ; then
11784 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11785 echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11786 { (exit 1); exit 1; }; }
11787 fi
11788
11789 # Find a good install program. We prefer a C program (faster),
11790 # so one script is as good as another. But avoid the broken or
11791 # incompatible versions:
11792 # SysV /etc/install, /usr/sbin/install
11793 # SunOS /usr/etc/install
11794 # IRIX /sbin/install
11795 # AIX /bin/install
11796 # AmigaOS /C/install, which installs bootblocks on floppy discs
11797 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11798 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11799 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11800 # OS/2's system install, which has a completely different semantic
11801 # ./install, which can be erroneously created by make from ./install.sh.
11802 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11803 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11804 if test -z "$INSTALL"; then
11805 if test "${ac_cv_path_install+set}" = set; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 else
11808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809 for as_dir in $PATH
11810 do
11811 IFS=$as_save_IFS
11812 test -z "$as_dir" && as_dir=.
11813 # Account for people who put trailing slashes in PATH elements.
11814 case $as_dir/ in
11815 ./ | .// | /cC/* | \
11816 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11817 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11818 /usr/ucb/* ) ;;
11819 *)
11820 # OSF1 and SCO ODT 3.0 have their own names for install.
11821 # Don't use installbsd from OSF since it installs stuff as root
11822 # by default.
11823 for ac_prog in ginstall scoinst install; do
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11826 if test $ac_prog = install &&
11827 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11828 # AIX install. It has an incompatible calling convention.
11829 :
11830 elif test $ac_prog = install &&
11831 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11832 # program-specific install script used by HP pwplus--don't use.
11833 :
11834 else
11835 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11836 break 3
11837 fi
11838 fi
11839 done
11840 done
11841 ;;
11842 esac
11843 done
11844
11845
11846 fi
11847 if test "${ac_cv_path_install+set}" = set; then
11848 INSTALL=$ac_cv_path_install
11849 else
11850 # As a last resort, use the slow shell script. We don't cache a
11851 # path for INSTALL within a source directory, because that will
11852 # break other packages using the cache if that directory is
11853 # removed, or if the path is relative.
11854 INSTALL=$ac_install_sh
11855 fi
11856 fi
11857 echo "$as_me:$LINENO: result: $INSTALL" >&5
11858 echo "${ECHO_T}$INSTALL" >&6
11859
11860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11861 # It thinks the first close brace ends the variable substitution.
11862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11863
11864 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11865
11866 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11867
11868
11869 case ${INSTALL} in
11870 /* ) # Absolute
11871 ;;
11872 ?:* ) # Drive letter, considered as absolute.
11873 ;;
11874 *)
11875 INSTALL=`pwd`/${INSTALL} ;;
11876 esac
11877
11878 case ${host} in
11879 *-hp-hpux* )
11880 INSTALL_DIR="mkdir"
11881 ;;
11882
11883 *) INSTALL_DIR="$INSTALL -d"
11884 ;;
11885 esac
11886
11887
11888 case "${host}" in
11889
11890 powerpc-*-darwin* )
11891 INSTALL_PROGRAM="cp -fp"
11892 INSTALL_DATA="cp -fp"
11893 ;;
11894 *)
11895 ;;
11896 esac
11897
11898 # Extract the first word of "strip", so it can be a program name with args.
11899 set dummy strip; ac_word=$2
11900 echo "$as_me:$LINENO: checking for $ac_word" >&5
11901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11902 if test "${ac_cv_prog_STRIP+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905 if test -n "$STRIP"; then
11906 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11907 else
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11910 do
11911 IFS=$as_save_IFS
11912 test -z "$as_dir" && as_dir=.
11913 for ac_exec_ext in '' $ac_executable_extensions; do
11914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11915 ac_cv_prog_STRIP="strip"
11916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11917 break 2
11918 fi
11919 done
11920 done
11921
11922 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11923 fi
11924 fi
11925 STRIP=$ac_cv_prog_STRIP
11926 if test -n "$STRIP"; then
11927 echo "$as_me:$LINENO: result: $STRIP" >&5
11928 echo "${ECHO_T}$STRIP" >&6
11929 else
11930 echo "$as_me:$LINENO: result: no" >&5
11931 echo "${ECHO_T}no" >&6
11932 fi
11933
11934
11935 echo "$as_me:$LINENO: checking if make is GNU make" >&5
11936 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11937 if test "${wx_cv_prog_makeisgnu+set}" = set; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 else
11940
11941 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11942 egrep -s GNU > /dev/null); then
11943 wx_cv_prog_makeisgnu="yes"
11944 else
11945 wx_cv_prog_makeisgnu="no"
11946 fi
11947
11948 fi
11949 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11950 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11951
11952 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11953 IF_GNU_MAKE=""
11954 else
11955 IF_GNU_MAKE="#"
11956 fi
11957
11958
11959
11960 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11961 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11962 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11963 if test "${wx_cv_prog_makevpath+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966
11967 cat - << EOF > confMake
11968 check : file
11969 cp \$? \$@
11970 cp \$? final_file
11971 EOF
11972
11973 if test ! -d sub ; then
11974 mkdir sub
11975 fi
11976 echo dummy > sub/file
11977 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
11978 RESULT=$?
11979 rm -f sub/file check final_file confMake
11980 rmdir sub
11981 if test "$RESULT" = 0; then
11982 wx_cv_prog_makevpath="yes"
11983 else
11984 wx_cv_prog_makevpath="no"
11985 fi
11986
11987 fi
11988 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11989 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
11990
11991 if test "x$wx_cv_prog_makevpath" != "xyes"; then
11992 { { echo "$as_me:$LINENO: error:
11993 You need a make-utility that is able to use the variable
11994 VPATH correctly.
11995 If your version of make does not support VPATH correctly,
11996 please install GNU-make (possibly as gmake), and start
11997 configure with the following command:
11998 export MAKE=gmake; ./configure for sh-type shells
11999 setenv MAKE gmake; ./configure for csh-type shells
12000 Also please do remember to use gmake in this case every time
12001 you are trying to compile.
12002 " >&5
12003 echo "$as_me: error:
12004 You need a make-utility that is able to use the variable
12005 VPATH correctly.
12006 If your version of make does not support VPATH correctly,
12007 please install GNU-make (possibly as gmake), and start
12008 configure with the following command:
12009 export MAKE=gmake; ./configure for sh-type shells
12010 setenv MAKE gmake; ./configure for csh-type shells
12011 Also please do remember to use gmake in this case every time
12012 you are trying to compile.
12013 " >&2;}
12014 { (exit 1); exit 1; }; }
12015 fi fi
12016 echo "$as_me:$LINENO: checking whether ln -s works" >&5
12017 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12018 LN_S=$as_ln_s
12019 if test "$LN_S" = "ln -s"; then
12020 echo "$as_me:$LINENO: result: yes" >&5
12021 echo "${ECHO_T}yes" >&6
12022 else
12023 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12024 echo "${ECHO_T}no, using $LN_S" >&6
12025 fi
12026
12027
12028
12029 case "${host}" in
12030 *-pc-os2_emx | *-pc-os2-emx )
12031 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12032 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12033 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12034 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037 ac_check_lib_save_LIBS=$LIBS
12038 LIBS="-lcExt $LIBS"
12039 cat >conftest.$ac_ext <<_ACEOF
12040 /* confdefs.h. */
12041 _ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045
12046 /* Override any gcc2 internal prototype to avoid an error. */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 /* We use char because int might match the return type of a gcc2
12051 builtin and then its argument prototype would still apply. */
12052 char drand48 ();
12053 int
12054 main ()
12055 {
12056 drand48 ();
12057 ;
12058 return 0;
12059 }
12060 _ACEOF
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063 (eval $ac_link) 2>conftest.er1
12064 ac_status=$?
12065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_c_werror_flag"
12071 || test ! -s conftest.err'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 ac_cv_lib_cExt_drand48=yes
12084 else
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088 ac_cv_lib_cExt_drand48=no
12089 fi
12090 rm -f conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12092 LIBS=$ac_check_lib_save_LIBS
12093 fi
12094 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12095 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12096 if test $ac_cv_lib_cExt_drand48 = yes; then
12097 LIBS="$LIBS -lcExt"
12098 fi
12099
12100 else
12101 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12102 fi
12103 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
12104 echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
12105 if test "${wx_cv_gcc3+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108
12109 cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h. */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115
12116 int
12117 main ()
12118 {
12119
12120 #if (__GNUC__ < 3)
12121 #error old gcc
12122 #endif
12123
12124 ;
12125 return 0;
12126 }
12127 _ACEOF
12128 rm -f conftest.$ac_objext
12129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12130 (eval $ac_compile) 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try='test -z "$ac_c_werror_flag"
12138 || test ! -s conftest.err'
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); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150
12151 wx_cv_gcc3=yes
12152
12153 else
12154 echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12156
12157
12158 wx_cv_gcc3=no
12159
12160
12161 fi
12162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12163
12164 fi
12165 echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12166 echo "${ECHO_T}$wx_cv_gcc3" >&6
12167 if test "$wx_cv_gcc3" = "no"; then
12168 LIBS="$LIBS -lstdcpp"
12169 else
12170 LIBS="$LIBS -lstdcxx"
12171 fi
12172 ;;
12173 *)
12174
12175
12176
12177 ac_ext=cc
12178 ac_cpp='$CXXCPP $CPPFLAGS'
12179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12182
12183
12184
12185 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12186 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12187 if test "${ac_cv_string_strcasecmp+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197
12198 #include <string.h>
12199
12200 int
12201 main ()
12202 {
12203
12204 strcasecmp("foo", "bar");
12205
12206 ;
12207 return 0;
12208 }
12209 _ACEOF
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12212 (eval $ac_link) 2>conftest.er1
12213 ac_status=$?
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -z "$ac_cxx_werror_flag"
12220 || test ! -s conftest.err'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; } &&
12226 { ac_try='test -s conftest$ac_exeext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 ac_cv_string_strcasecmp=yes
12233 else
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12236
12237 ac_cv_string_strcasecmp=no
12238
12239 fi
12240 rm -f conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
12242
12243 fi
12244 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12245 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12246
12247 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12248 cat >>confdefs.h <<\_ACEOF
12249 #define HAVE_STRCASECMP_IN_STRING_H 1
12250 _ACEOF
12251
12252 else
12253 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12254 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12255 if test "${ac_cv_strings_strcasecmp+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 else
12258
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h. */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12265
12266 #include <strings.h>
12267
12268 int
12269 main ()
12270 {
12271
12272 strcasecmp("foo", "bar");
12273
12274 ;
12275 return 0;
12276 }
12277 _ACEOF
12278 rm -f conftest.$ac_objext conftest$ac_exeext
12279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12280 (eval $ac_link) 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try='test -z "$ac_cxx_werror_flag"
12288 || test ! -s conftest.err'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest$ac_exeext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 ac_cv_strings_strcasecmp=yes
12301 else
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305 ac_cv_strings_strcasecmp=no
12306
12307 fi
12308 rm -f conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310
12311 fi
12312 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12313 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12314
12315 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12316 cat >>confdefs.h <<\_ACEOF
12317 #define HAVE_STRCASECMP_IN_STRINGS_H 1
12318 _ACEOF
12319
12320 else
12321 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12322 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12323 { (exit 1); exit 1; }; }
12324 fi
12325 fi
12326
12327 ac_ext=c
12328 ac_cpp='$CPP $CPPFLAGS'
12329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12332
12333 ;;
12334 esac
12335
12336
12337 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12338 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12339 if test "${ac_cv_header_stdc+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 #include <stdlib.h>
12349 #include <stdarg.h>
12350 #include <string.h>
12351 #include <float.h>
12352
12353 int
12354 main ()
12355 {
12356
12357 ;
12358 return 0;
12359 }
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12363 (eval $ac_compile) 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_c_werror_flag"
12371 || test ! -s conftest.err'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest.$ac_objext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_cv_header_stdc=yes
12384 else
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12387
12388 ac_cv_header_stdc=no
12389 fi
12390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12391
12392 if test $ac_cv_header_stdc = yes; then
12393 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12394 cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h. */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400 #include <string.h>
12401
12402 _ACEOF
12403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12404 $EGREP "memchr" >/dev/null 2>&1; then
12405 :
12406 else
12407 ac_cv_header_stdc=no
12408 fi
12409 rm -f conftest*
12410
12411 fi
12412
12413 if test $ac_cv_header_stdc = yes; then
12414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12415 cat >conftest.$ac_ext <<_ACEOF
12416 /* confdefs.h. */
12417 _ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 #include <stdlib.h>
12422
12423 _ACEOF
12424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12425 $EGREP "free" >/dev/null 2>&1; then
12426 :
12427 else
12428 ac_cv_header_stdc=no
12429 fi
12430 rm -f conftest*
12431
12432 fi
12433
12434 if test $ac_cv_header_stdc = yes; then
12435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12436 if test "$cross_compiling" = yes; then
12437 :
12438 else
12439 cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h. */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12445 #include <ctype.h>
12446 #if ((' ' & 0x0FF) == 0x020)
12447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12449 #else
12450 # define ISLOWER(c) \
12451 (('a' <= (c) && (c) <= 'i') \
12452 || ('j' <= (c) && (c) <= 'r') \
12453 || ('s' <= (c) && (c) <= 'z'))
12454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12455 #endif
12456
12457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12458 int
12459 main ()
12460 {
12461 int i;
12462 for (i = 0; i < 256; i++)
12463 if (XOR (islower (i), ISLOWER (i))
12464 || toupper (i) != TOUPPER (i))
12465 exit(2);
12466 exit (0);
12467 }
12468 _ACEOF
12469 rm -f conftest$ac_exeext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12471 (eval $ac_link) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 :
12481 else
12482 echo "$as_me: program exited with status $ac_status" >&5
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12485
12486 ( exit $ac_status )
12487 ac_cv_header_stdc=no
12488 fi
12489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12490 fi
12491 fi
12492 fi
12493 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12494 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12495 if test $ac_cv_header_stdc = yes; then
12496
12497 cat >>confdefs.h <<\_ACEOF
12498 #define STDC_HEADERS 1
12499 _ACEOF
12500
12501 fi
12502
12503 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12514 inttypes.h stdint.h unistd.h
12515 do
12516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12517 echo "$as_me:$LINENO: checking for $ac_header" >&5
12518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522 cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h. */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12528 $ac_includes_default
12529
12530 #include <$ac_header>
12531 _ACEOF
12532 rm -f conftest.$ac_objext
12533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12534 (eval $ac_compile) 2>conftest.er1
12535 ac_status=$?
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -z "$ac_c_werror_flag"
12542 || test ! -s conftest.err'
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; } &&
12548 { ac_try='test -s conftest.$ac_objext'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 eval "$as_ac_Header=yes"
12555 else
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12558
12559 eval "$as_ac_Header=no"
12560 fi
12561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12562 fi
12563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12566 cat >>confdefs.h <<_ACEOF
12567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12568 _ACEOF
12569
12570 fi
12571
12572 done
12573
12574
12575
12576 for ac_header in stdlib.h
12577 do
12578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12580 echo "$as_me:$LINENO: checking for $ac_header" >&5
12581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 fi
12585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12587 else
12588 # Is the header compilable?
12589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 $ac_includes_default
12598 #include <$ac_header>
12599 _ACEOF
12600 rm -f conftest.$ac_objext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>conftest.er1
12603 ac_status=$?
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try='test -z "$ac_c_werror_flag"
12610 || test ! -s conftest.err'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
12616 { ac_try='test -s conftest.$ac_objext'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 ac_header_compiler=yes
12623 else
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12626
12627 ac_header_compiler=no
12628 fi
12629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12631 echo "${ECHO_T}$ac_header_compiler" >&6
12632
12633 # Is the header present?
12634 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12636 cat >conftest.$ac_ext <<_ACEOF
12637 /* confdefs.h. */
12638 _ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12642 #include <$ac_header>
12643 _ACEOF
12644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } >/dev/null; then
12652 if test -s conftest.err; then
12653 ac_cpp_err=$ac_c_preproc_warn_flag
12654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12655 else
12656 ac_cpp_err=
12657 fi
12658 else
12659 ac_cpp_err=yes
12660 fi
12661 if test -z "$ac_cpp_err"; then
12662 ac_header_preproc=yes
12663 else
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 ac_header_preproc=no
12668 fi
12669 rm -f conftest.err conftest.$ac_ext
12670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12671 echo "${ECHO_T}$ac_header_preproc" >&6
12672
12673 # So? What about this header?
12674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12675 yes:no: )
12676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12680 ac_header_preproc=yes
12681 ;;
12682 no:yes:* )
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12695 (
12696 cat <<\_ASBOX
12697 ## ----------------------------------------- ##
12698 ## Report this to wx-dev@lists.wxwindows.org ##
12699 ## ----------------------------------------- ##
12700 _ASBOX
12701 ) |
12702 sed "s/^/$as_me: WARNING: /" >&2
12703 ;;
12704 esac
12705 echo "$as_me:$LINENO: checking for $ac_header" >&5
12706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710 eval "$as_ac_Header=\$ac_header_preproc"
12711 fi
12712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12714
12715 fi
12716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12717 cat >>confdefs.h <<_ACEOF
12718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12719 _ACEOF
12720
12721 fi
12722
12723 done
12724
12725
12726 for ac_header in malloc.h
12727 do
12728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12730 echo "$as_me:$LINENO: checking for $ac_header" >&5
12731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 fi
12735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12737 else
12738 # Is the header compilable?
12739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12741 cat >conftest.$ac_ext <<_ACEOF
12742 /* confdefs.h. */
12743 _ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h. */
12747 $ac_includes_default
12748 #include <$ac_header>
12749 _ACEOF
12750 rm -f conftest.$ac_objext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752 (eval $ac_compile) 2>conftest.er1
12753 ac_status=$?
12754 grep -v '^ *+' conftest.er1 >conftest.err
12755 rm -f conftest.er1
12756 cat conftest.err >&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
12759 { ac_try='test -z "$ac_c_werror_flag"
12760 || test ! -s conftest.err'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; } &&
12766 { ac_try='test -s conftest.$ac_objext'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 ac_header_compiler=yes
12773 else
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777 ac_header_compiler=no
12778 fi
12779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12781 echo "${ECHO_T}$ac_header_compiler" >&6
12782
12783 # Is the header present?
12784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12786 cat >conftest.$ac_ext <<_ACEOF
12787 /* confdefs.h. */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792 #include <$ac_header>
12793 _ACEOF
12794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12796 ac_status=$?
12797 grep -v '^ *+' conftest.er1 >conftest.err
12798 rm -f conftest.er1
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } >/dev/null; then
12802 if test -s conftest.err; then
12803 ac_cpp_err=$ac_c_preproc_warn_flag
12804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12805 else
12806 ac_cpp_err=
12807 fi
12808 else
12809 ac_cpp_err=yes
12810 fi
12811 if test -z "$ac_cpp_err"; then
12812 ac_header_preproc=yes
12813 else
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817 ac_header_preproc=no
12818 fi
12819 rm -f conftest.err conftest.$ac_ext
12820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12821 echo "${ECHO_T}$ac_header_preproc" >&6
12822
12823 # So? What about this header?
12824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12825 yes:no: )
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12830 ac_header_preproc=yes
12831 ;;
12832 no:yes:* )
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12845 (
12846 cat <<\_ASBOX
12847 ## ----------------------------------------- ##
12848 ## Report this to wx-dev@lists.wxwindows.org ##
12849 ## ----------------------------------------- ##
12850 _ASBOX
12851 ) |
12852 sed "s/^/$as_me: WARNING: /" >&2
12853 ;;
12854 esac
12855 echo "$as_me:$LINENO: checking for $ac_header" >&5
12856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 else
12860 eval "$as_ac_Header=\$ac_header_preproc"
12861 fi
12862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12864
12865 fi
12866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12867 cat >>confdefs.h <<_ACEOF
12868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12869 _ACEOF
12870
12871 fi
12872
12873 done
12874
12875
12876 for ac_header in unistd.h
12877 do
12878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12880 echo "$as_me:$LINENO: checking for $ac_header" >&5
12881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 fi
12885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12887 else
12888 # Is the header compilable?
12889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h. */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897 $ac_includes_default
12898 #include <$ac_header>
12899 _ACEOF
12900 rm -f conftest.$ac_objext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12902 (eval $ac_compile) 2>conftest.er1
12903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try='test -z "$ac_c_werror_flag"
12910 || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest.$ac_objext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_header_compiler=yes
12923 else
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12926
12927 ac_header_compiler=no
12928 fi
12929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12931 echo "${ECHO_T}$ac_header_compiler" >&6
12932
12933 # Is the header present?
12934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12936 cat >conftest.$ac_ext <<_ACEOF
12937 /* confdefs.h. */
12938 _ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 #include <$ac_header>
12943 _ACEOF
12944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12946 ac_status=$?
12947 grep -v '^ *+' conftest.er1 >conftest.err
12948 rm -f conftest.er1
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } >/dev/null; then
12952 if test -s conftest.err; then
12953 ac_cpp_err=$ac_c_preproc_warn_flag
12954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12955 else
12956 ac_cpp_err=
12957 fi
12958 else
12959 ac_cpp_err=yes
12960 fi
12961 if test -z "$ac_cpp_err"; then
12962 ac_header_preproc=yes
12963 else
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12966
12967 ac_header_preproc=no
12968 fi
12969 rm -f conftest.err conftest.$ac_ext
12970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12971 echo "${ECHO_T}$ac_header_preproc" >&6
12972
12973 # So? What about this header?
12974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12975 yes:no: )
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12980 ac_header_preproc=yes
12981 ;;
12982 no:yes:* )
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12995 (
12996 cat <<\_ASBOX
12997 ## ----------------------------------------- ##
12998 ## Report this to wx-dev@lists.wxwindows.org ##
12999 ## ----------------------------------------- ##
13000 _ASBOX
13001 ) |
13002 sed "s/^/$as_me: WARNING: /" >&2
13003 ;;
13004 esac
13005 echo "$as_me:$LINENO: checking for $ac_header" >&5
13006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 else
13010 eval "$as_ac_Header=\$ac_header_preproc"
13011 fi
13012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13014
13015 fi
13016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13017 cat >>confdefs.h <<_ACEOF
13018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13019 _ACEOF
13020
13021 fi
13022
13023 done
13024
13025
13026 for ac_header in wchar.h
13027 do
13028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13030 echo "$as_me:$LINENO: checking for $ac_header" >&5
13031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 fi
13035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13037 else
13038 # Is the header compilable?
13039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13041 cat >conftest.$ac_ext <<_ACEOF
13042 /* confdefs.h. */
13043 _ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13047 $ac_includes_default
13048 #include <$ac_header>
13049 _ACEOF
13050 rm -f conftest.$ac_objext
13051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052 (eval $ac_compile) 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -z "$ac_c_werror_flag"
13060 || test ! -s conftest.err'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest.$ac_objext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 ac_header_compiler=yes
13073 else
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13076
13077 ac_header_compiler=no
13078 fi
13079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13081 echo "${ECHO_T}$ac_header_compiler" >&6
13082
13083 # Is the header present?
13084 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13086 cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h. */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092 #include <$ac_header>
13093 _ACEOF
13094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } >/dev/null; then
13102 if test -s conftest.err; then
13103 ac_cpp_err=$ac_c_preproc_warn_flag
13104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13105 else
13106 ac_cpp_err=
13107 fi
13108 else
13109 ac_cpp_err=yes
13110 fi
13111 if test -z "$ac_cpp_err"; then
13112 ac_header_preproc=yes
13113 else
13114 echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13116
13117 ac_header_preproc=no
13118 fi
13119 rm -f conftest.err conftest.$ac_ext
13120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13121 echo "${ECHO_T}$ac_header_preproc" >&6
13122
13123 # So? What about this header?
13124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13125 yes:no: )
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13130 ac_header_preproc=yes
13131 ;;
13132 no:yes:* )
13133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13145 (
13146 cat <<\_ASBOX
13147 ## ----------------------------------------- ##
13148 ## Report this to wx-dev@lists.wxwindows.org ##
13149 ## ----------------------------------------- ##
13150 _ASBOX
13151 ) |
13152 sed "s/^/$as_me: WARNING: /" >&2
13153 ;;
13154 esac
13155 echo "$as_me:$LINENO: checking for $ac_header" >&5
13156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160 eval "$as_ac_Header=\$ac_header_preproc"
13161 fi
13162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13164
13165 fi
13166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13167 cat >>confdefs.h <<_ACEOF
13168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13169 _ACEOF
13170
13171 fi
13172
13173 done
13174
13175
13176 if test "$ac_cv_header_wchar_h" != "yes"; then
13177
13178 for ac_header in wcstr.h
13179 do
13180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13182 echo "$as_me:$LINENO: checking for $ac_header" >&5
13183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 fi
13187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13189 else
13190 # Is the header compilable?
13191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13193 cat >conftest.$ac_ext <<_ACEOF
13194 /* confdefs.h. */
13195 _ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13199 $ac_includes_default
13200 #include <$ac_header>
13201 _ACEOF
13202 rm -f conftest.$ac_objext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13204 (eval $ac_compile) 2>conftest.er1
13205 ac_status=$?
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try='test -z "$ac_c_werror_flag"
13212 || test ! -s conftest.err'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; } &&
13218 { ac_try='test -s conftest.$ac_objext'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 ac_header_compiler=yes
13225 else
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13228
13229 ac_header_compiler=no
13230 fi
13231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13233 echo "${ECHO_T}$ac_header_compiler" >&6
13234
13235 # Is the header present?
13236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13238 cat >conftest.$ac_ext <<_ACEOF
13239 /* confdefs.h. */
13240 _ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 #include <$ac_header>
13245 _ACEOF
13246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13248 ac_status=$?
13249 grep -v '^ *+' conftest.er1 >conftest.err
13250 rm -f conftest.er1
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } >/dev/null; then
13254 if test -s conftest.err; then
13255 ac_cpp_err=$ac_c_preproc_warn_flag
13256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13257 else
13258 ac_cpp_err=
13259 fi
13260 else
13261 ac_cpp_err=yes
13262 fi
13263 if test -z "$ac_cpp_err"; then
13264 ac_header_preproc=yes
13265 else
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13268
13269 ac_header_preproc=no
13270 fi
13271 rm -f conftest.err conftest.$ac_ext
13272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13273 echo "${ECHO_T}$ac_header_preproc" >&6
13274
13275 # So? What about this header?
13276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13277 yes:no: )
13278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13282 ac_header_preproc=yes
13283 ;;
13284 no:yes:* )
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13297 (
13298 cat <<\_ASBOX
13299 ## ----------------------------------------- ##
13300 ## Report this to wx-dev@lists.wxwindows.org ##
13301 ## ----------------------------------------- ##
13302 _ASBOX
13303 ) |
13304 sed "s/^/$as_me: WARNING: /" >&2
13305 ;;
13306 esac
13307 echo "$as_me:$LINENO: checking for $ac_header" >&5
13308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312 eval "$as_ac_Header=\$ac_header_preproc"
13313 fi
13314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13316
13317 fi
13318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13319 cat >>confdefs.h <<_ACEOF
13320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13321 _ACEOF
13322
13323 fi
13324
13325 done
13326
13327 fi
13328
13329
13330 for ac_header in fnmatch.h
13331 do
13332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13334 echo "$as_me:$LINENO: checking for $ac_header" >&5
13335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 fi
13339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13341 else
13342 # Is the header compilable?
13343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13345 cat >conftest.$ac_ext <<_ACEOF
13346 /* confdefs.h. */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13351 $ac_includes_default
13352 #include <$ac_header>
13353 _ACEOF
13354 rm -f conftest.$ac_objext
13355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356 (eval $ac_compile) 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_c_werror_flag"
13364 || test ! -s conftest.err'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; } &&
13370 { ac_try='test -s conftest.$ac_objext'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_header_compiler=yes
13377 else
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13380
13381 ac_header_compiler=no
13382 fi
13383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13385 echo "${ECHO_T}$ac_header_compiler" >&6
13386
13387 # Is the header present?
13388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13390 cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h. */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396 #include <$ac_header>
13397 _ACEOF
13398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13400 ac_status=$?
13401 grep -v '^ *+' conftest.er1 >conftest.err
13402 rm -f conftest.er1
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } >/dev/null; then
13406 if test -s conftest.err; then
13407 ac_cpp_err=$ac_c_preproc_warn_flag
13408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13409 else
13410 ac_cpp_err=
13411 fi
13412 else
13413 ac_cpp_err=yes
13414 fi
13415 if test -z "$ac_cpp_err"; then
13416 ac_header_preproc=yes
13417 else
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13420
13421 ac_header_preproc=no
13422 fi
13423 rm -f conftest.err conftest.$ac_ext
13424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13425 echo "${ECHO_T}$ac_header_preproc" >&6
13426
13427 # So? What about this header?
13428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13429 yes:no: )
13430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13434 ac_header_preproc=yes
13435 ;;
13436 no:yes:* )
13437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13449 (
13450 cat <<\_ASBOX
13451 ## ----------------------------------------- ##
13452 ## Report this to wx-dev@lists.wxwindows.org ##
13453 ## ----------------------------------------- ##
13454 _ASBOX
13455 ) |
13456 sed "s/^/$as_me: WARNING: /" >&2
13457 ;;
13458 esac
13459 echo "$as_me:$LINENO: checking for $ac_header" >&5
13460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464 eval "$as_ac_Header=\$ac_header_preproc"
13465 fi
13466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13468
13469 fi
13470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13471 cat >>confdefs.h <<_ACEOF
13472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13473 _ACEOF
13474
13475 fi
13476
13477 done
13478
13479
13480 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13481
13482 for ac_func in fnmatch
13483 do
13484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13485 echo "$as_me:$LINENO: checking for $ac_func" >&5
13486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13487 if eval "test \"\${$as_ac_var+set}\" = set"; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490 cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h. */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13498 #define $ac_func innocuous_$ac_func
13499
13500 /* System header to define __stub macros and hopefully few prototypes,
13501 which can conflict with char $ac_func (); below.
13502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13503 <limits.h> exists even on freestanding compilers. */
13504
13505 #ifdef __STDC__
13506 # include <limits.h>
13507 #else
13508 # include <assert.h>
13509 #endif
13510
13511 #undef $ac_func
13512
13513 /* Override any gcc2 internal prototype to avoid an error. */
13514 #ifdef __cplusplus
13515 extern "C"
13516 {
13517 #endif
13518 /* We use char because int might match the return type of a gcc2
13519 builtin and then its argument prototype would still apply. */
13520 char $ac_func ();
13521 /* The GNU C library defines this for functions which it implements
13522 to always fail with ENOSYS. Some functions are actually named
13523 something starting with __ and the normal name is an alias. */
13524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13525 choke me
13526 #else
13527 char (*f) () = $ac_func;
13528 #endif
13529 #ifdef __cplusplus
13530 }
13531 #endif
13532
13533 int
13534 main ()
13535 {
13536 return f != $ac_func;
13537 ;
13538 return 0;
13539 }
13540 _ACEOF
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13543 (eval $ac_link) 2>conftest.er1
13544 ac_status=$?
13545 grep -v '^ *+' conftest.er1 >conftest.err
13546 rm -f conftest.er1
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
13550 { ac_try='test -z "$ac_c_werror_flag"
13551 || test ! -s conftest.err'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; } &&
13557 { ac_try='test -s conftest$ac_exeext'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 eval "$as_ac_var=yes"
13564 else
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 eval "$as_ac_var=no"
13569 fi
13570 rm -f conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
13572 fi
13573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13575 if test `eval echo '${'$as_ac_var'}'` = yes; then
13576 cat >>confdefs.h <<_ACEOF
13577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13578 _ACEOF
13579
13580 fi
13581 done
13582
13583 fi
13584
13585
13586 for ac_header in langinfo.h
13587 do
13588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13590 echo "$as_me:$LINENO: checking for $ac_header" >&5
13591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 fi
13595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13597 else
13598 # Is the header compilable?
13599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h. */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607 $ac_includes_default
13608 #include <$ac_header>
13609 _ACEOF
13610 rm -f conftest.$ac_objext
13611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13612 (eval $ac_compile) 2>conftest.er1
13613 ac_status=$?
13614 grep -v '^ *+' conftest.er1 >conftest.err
13615 rm -f conftest.er1
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -z "$ac_c_werror_flag"
13620 || test ! -s conftest.err'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest.$ac_objext'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13632 ac_header_compiler=yes
13633 else
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637 ac_header_compiler=no
13638 fi
13639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13641 echo "${ECHO_T}$ac_header_compiler" >&6
13642
13643 # Is the header present?
13644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13646 cat >conftest.$ac_ext <<_ACEOF
13647 /* confdefs.h. */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652 #include <$ac_header>
13653 _ACEOF
13654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13656 ac_status=$?
13657 grep -v '^ *+' conftest.er1 >conftest.err
13658 rm -f conftest.er1
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } >/dev/null; then
13662 if test -s conftest.err; then
13663 ac_cpp_err=$ac_c_preproc_warn_flag
13664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13665 else
13666 ac_cpp_err=
13667 fi
13668 else
13669 ac_cpp_err=yes
13670 fi
13671 if test -z "$ac_cpp_err"; then
13672 ac_header_preproc=yes
13673 else
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13676
13677 ac_header_preproc=no
13678 fi
13679 rm -f conftest.err conftest.$ac_ext
13680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13681 echo "${ECHO_T}$ac_header_preproc" >&6
13682
13683 # So? What about this header?
13684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13685 yes:no: )
13686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13690 ac_header_preproc=yes
13691 ;;
13692 no:yes:* )
13693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13705 (
13706 cat <<\_ASBOX
13707 ## ----------------------------------------- ##
13708 ## Report this to wx-dev@lists.wxwindows.org ##
13709 ## ----------------------------------------- ##
13710 _ASBOX
13711 ) |
13712 sed "s/^/$as_me: WARNING: /" >&2
13713 ;;
13714 esac
13715 echo "$as_me:$LINENO: checking for $ac_header" >&5
13716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13718 echo $ECHO_N "(cached) $ECHO_C" >&6
13719 else
13720 eval "$as_ac_Header=\$ac_header_preproc"
13721 fi
13722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13724
13725 fi
13726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13727 cat >>confdefs.h <<_ACEOF
13728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13729 _ACEOF
13730
13731 fi
13732
13733 done
13734
13735
13736 case "${host}" in
13737 *-pc-os2_emx | *-pc-os2-emx )
13738 if test $ac_cv_header_langinfo_h = "yes"; then
13739 LIBS="$LIBS -lintl"
13740 fi
13741 ;;
13742 esac
13743
13744 if test "$wxUSE_GUI" = "yes"; then
13745 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13746
13747 for ac_header in X11/Xlib.h
13748 do
13749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13751 echo "$as_me:$LINENO: checking for $ac_header" >&5
13752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13754 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 fi
13756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13758 else
13759 # Is the header compilable?
13760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13762 cat >conftest.$ac_ext <<_ACEOF
13763 /* confdefs.h. */
13764 _ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13768 $ac_includes_default
13769 #include <$ac_header>
13770 _ACEOF
13771 rm -f conftest.$ac_objext
13772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13773 (eval $ac_compile) 2>conftest.er1
13774 ac_status=$?
13775 grep -v '^ *+' conftest.er1 >conftest.err
13776 rm -f conftest.er1
13777 cat conftest.err >&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } &&
13780 { ac_try='test -z "$ac_c_werror_flag"
13781 || test ! -s conftest.err'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; } &&
13787 { ac_try='test -s conftest.$ac_objext'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
13793 ac_header_compiler=yes
13794 else
13795 echo "$as_me: failed program was:" >&5
13796 sed 's/^/| /' conftest.$ac_ext >&5
13797
13798 ac_header_compiler=no
13799 fi
13800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13802 echo "${ECHO_T}$ac_header_compiler" >&6
13803
13804 # Is the header present?
13805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13807 cat >conftest.$ac_ext <<_ACEOF
13808 /* confdefs.h. */
13809 _ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h. */
13813 #include <$ac_header>
13814 _ACEOF
13815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } >/dev/null; then
13823 if test -s conftest.err; then
13824 ac_cpp_err=$ac_c_preproc_warn_flag
13825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13826 else
13827 ac_cpp_err=
13828 fi
13829 else
13830 ac_cpp_err=yes
13831 fi
13832 if test -z "$ac_cpp_err"; then
13833 ac_header_preproc=yes
13834 else
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13837
13838 ac_header_preproc=no
13839 fi
13840 rm -f conftest.err conftest.$ac_ext
13841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13842 echo "${ECHO_T}$ac_header_preproc" >&6
13843
13844 # So? What about this header?
13845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13846 yes:no: )
13847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13851 ac_header_preproc=yes
13852 ;;
13853 no:yes:* )
13854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13866 (
13867 cat <<\_ASBOX
13868 ## ----------------------------------------- ##
13869 ## Report this to wx-dev@lists.wxwindows.org ##
13870 ## ----------------------------------------- ##
13871 _ASBOX
13872 ) |
13873 sed "s/^/$as_me: WARNING: /" >&2
13874 ;;
13875 esac
13876 echo "$as_me:$LINENO: checking for $ac_header" >&5
13877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881 eval "$as_ac_Header=\$ac_header_preproc"
13882 fi
13883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13885
13886 fi
13887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13888 cat >>confdefs.h <<_ACEOF
13889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13890 _ACEOF
13891
13892 fi
13893
13894 done
13895
13896
13897 for ac_header in X11/XKBlib.h
13898 do
13899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13900 echo "$as_me:$LINENO: checking for $ac_header" >&5
13901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905 cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h. */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911
13912 #if HAVE_X11_XLIB_H
13913 #include <X11/Xlib.h>
13914 #endif
13915
13916
13917 #include <$ac_header>
13918 _ACEOF
13919 rm -f conftest.$ac_objext
13920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13921 (eval $ac_compile) 2>conftest.er1
13922 ac_status=$?
13923 grep -v '^ *+' conftest.er1 >conftest.err
13924 rm -f conftest.er1
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -z "$ac_c_werror_flag"
13929 || test ! -s conftest.err'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; } &&
13935 { ac_try='test -s conftest.$ac_objext'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; }; then
13941 eval "$as_ac_Header=yes"
13942 else
13943 echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13945
13946 eval "$as_ac_Header=no"
13947 fi
13948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13949 fi
13950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13953 cat >>confdefs.h <<_ACEOF
13954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13955 _ACEOF
13956
13957 fi
13958
13959 done
13960
13961 fi
13962 fi
13963
13964
13965 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13966 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13967 if test "${ac_cv_c_const+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13969 else
13970 cat >conftest.$ac_ext <<_ACEOF
13971 /* confdefs.h. */
13972 _ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13976
13977 int
13978 main ()
13979 {
13980 /* FIXME: Include the comments suggested by Paul. */
13981 #ifndef __cplusplus
13982 /* Ultrix mips cc rejects this. */
13983 typedef int charset[2];
13984 const charset x;
13985 /* SunOS 4.1.1 cc rejects this. */
13986 char const *const *ccp;
13987 char **p;
13988 /* NEC SVR4.0.2 mips cc rejects this. */
13989 struct point {int x, y;};
13990 static struct point const zero = {0,0};
13991 /* AIX XL C 1.02.0.0 rejects this.
13992 It does not let you subtract one const X* pointer from another in
13993 an arm of an if-expression whose if-part is not a constant
13994 expression */
13995 const char *g = "string";
13996 ccp = &g + (g ? g-g : 0);
13997 /* HPUX 7.0 cc rejects these. */
13998 ++ccp;
13999 p = (char**) ccp;
14000 ccp = (char const *const *) p;
14001 { /* SCO 3.2v4 cc rejects this. */
14002 char *t;
14003 char const *s = 0 ? (char *) 0 : (char const *) 0;
14004
14005 *t++ = 0;
14006 }
14007 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14008 int x[] = {25, 17};
14009 const int *foo = &x[0];
14010 ++foo;
14011 }
14012 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14013 typedef const int *iptr;
14014 iptr p = 0;
14015 ++p;
14016 }
14017 { /* AIX XL C 1.02.0.0 rejects this saying
14018 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14019 struct s { int j; const int *ap[3]; };
14020 struct s *b; b->j = 5;
14021 }
14022 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14023 const int foo = 10;
14024 }
14025 #endif
14026
14027 ;
14028 return 0;
14029 }
14030 _ACEOF
14031 rm -f conftest.$ac_objext
14032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14033 (eval $ac_compile) 2>conftest.er1
14034 ac_status=$?
14035 grep -v '^ *+' conftest.er1 >conftest.err
14036 rm -f conftest.er1
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
14040 { ac_try='test -z "$ac_c_werror_flag"
14041 || test ! -s conftest.err'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; } &&
14047 { ac_try='test -s conftest.$ac_objext'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_cv_c_const=yes
14054 else
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14057
14058 ac_cv_c_const=no
14059 fi
14060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14061 fi
14062 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14063 echo "${ECHO_T}$ac_cv_c_const" >&6
14064 if test $ac_cv_c_const = no; then
14065
14066 cat >>confdefs.h <<\_ACEOF
14067 #define const
14068 _ACEOF
14069
14070 fi
14071
14072 echo "$as_me:$LINENO: checking for inline" >&5
14073 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14074 if test "${ac_cv_c_inline+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 else
14077 ac_cv_c_inline=no
14078 for ac_kw in inline __inline__ __inline; do
14079 cat >conftest.$ac_ext <<_ACEOF
14080 /* confdefs.h. */
14081 _ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14085 #ifndef __cplusplus
14086 typedef int foo_t;
14087 static $ac_kw foo_t static_foo () {return 0; }
14088 $ac_kw foo_t foo () {return 0; }
14089 #endif
14090
14091 _ACEOF
14092 rm -f conftest.$ac_objext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14094 (eval $ac_compile) 2>conftest.er1
14095 ac_status=$?
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -z "$ac_c_werror_flag"
14102 || test ! -s conftest.err'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest.$ac_objext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_cv_c_inline=$ac_kw; break
14115 else
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14118
14119 fi
14120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14121 done
14122
14123 fi
14124 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14125 echo "${ECHO_T}$ac_cv_c_inline" >&6
14126
14127
14128 case $ac_cv_c_inline in
14129 inline | yes) ;;
14130 *)
14131 case $ac_cv_c_inline in
14132 no) ac_val=;;
14133 *) ac_val=$ac_cv_c_inline;;
14134 esac
14135 cat >>confdefs.h <<_ACEOF
14136 #ifndef __cplusplus
14137 #define inline $ac_val
14138 #endif
14139 _ACEOF
14140 ;;
14141 esac
14142
14143
14144 echo "$as_me:$LINENO: checking for char" >&5
14145 echo $ECHO_N "checking for char... $ECHO_C" >&6
14146 if test "${ac_cv_type_char+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h. */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 $ac_includes_default
14156 int
14157 main ()
14158 {
14159 if ((char *) 0)
14160 return 0;
14161 if (sizeof (char))
14162 return 0;
14163 ;
14164 return 0;
14165 }
14166 _ACEOF
14167 rm -f conftest.$ac_objext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14169 (eval $ac_compile) 2>conftest.er1
14170 ac_status=$?
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -z "$ac_c_werror_flag"
14177 || test ! -s conftest.err'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; } &&
14183 { ac_try='test -s conftest.$ac_objext'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; }; then
14189 ac_cv_type_char=yes
14190 else
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14193
14194 ac_cv_type_char=no
14195 fi
14196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14197 fi
14198 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14199 echo "${ECHO_T}$ac_cv_type_char" >&6
14200
14201 echo "$as_me:$LINENO: checking size of char" >&5
14202 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14203 if test "${ac_cv_sizeof_char+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206 if test "$ac_cv_type_char" = yes; then
14207 # The cast to unsigned long works around a bug in the HP C Compiler
14208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14210 # This bug is HP SR number 8606223364.
14211 if test "$cross_compiling" = yes; then
14212 # Depending upon the size, compute the lo and hi bounds.
14213 cat >conftest.$ac_ext <<_ACEOF
14214 /* confdefs.h. */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 $ac_includes_default
14220 int
14221 main ()
14222 {
14223 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14224 test_array [0] = 0
14225
14226 ;
14227 return 0;
14228 }
14229 _ACEOF
14230 rm -f conftest.$ac_objext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232 (eval $ac_compile) 2>conftest.er1
14233 ac_status=$?
14234 grep -v '^ *+' conftest.er1 >conftest.err
14235 rm -f conftest.er1
14236 cat conftest.err >&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try='test -z "$ac_c_werror_flag"
14240 || test ! -s conftest.err'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try='test -s conftest.$ac_objext'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14252 ac_lo=0 ac_mid=0
14253 while :; do
14254 cat >conftest.$ac_ext <<_ACEOF
14255 /* confdefs.h. */
14256 _ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14260 $ac_includes_default
14261 int
14262 main ()
14263 {
14264 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14265 test_array [0] = 0
14266
14267 ;
14268 return 0;
14269 }
14270 _ACEOF
14271 rm -f conftest.$ac_objext
14272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14273 (eval $ac_compile) 2>conftest.er1
14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
14280 { ac_try='test -z "$ac_c_werror_flag"
14281 || test ! -s conftest.err'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest.$ac_objext'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_hi=$ac_mid; break
14294 else
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14297
14298 ac_lo=`expr $ac_mid + 1`
14299 if test $ac_lo -le $ac_mid; then
14300 ac_lo= ac_hi=
14301 break
14302 fi
14303 ac_mid=`expr 2 '*' $ac_mid + 1`
14304 fi
14305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14306 done
14307 else
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311 cat >conftest.$ac_ext <<_ACEOF
14312 /* confdefs.h. */
14313 _ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14317 $ac_includes_default
14318 int
14319 main ()
14320 {
14321 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14322 test_array [0] = 0
14323
14324 ;
14325 return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330 (eval $ac_compile) 2>conftest.er1
14331 ac_status=$?
14332 grep -v '^ *+' conftest.er1 >conftest.err
14333 rm -f conftest.er1
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
14337 { ac_try='test -z "$ac_c_werror_flag"
14338 || test ! -s conftest.err'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14341 ac_status=$?
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } &&
14344 { ac_try='test -s conftest.$ac_objext'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14347 ac_status=$?
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14350 ac_hi=-1 ac_mid=-1
14351 while :; do
14352 cat >conftest.$ac_ext <<_ACEOF
14353 /* confdefs.h. */
14354 _ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14358 $ac_includes_default
14359 int
14360 main ()
14361 {
14362 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14363 test_array [0] = 0
14364
14365 ;
14366 return 0;
14367 }
14368 _ACEOF
14369 rm -f conftest.$ac_objext
14370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14371 (eval $ac_compile) 2>conftest.er1
14372 ac_status=$?
14373 grep -v '^ *+' conftest.er1 >conftest.err
14374 rm -f conftest.er1
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } &&
14378 { ac_try='test -z "$ac_c_werror_flag"
14379 || test ! -s conftest.err'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; } &&
14385 { ac_try='test -s conftest.$ac_objext'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391 ac_lo=$ac_mid; break
14392 else
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396 ac_hi=`expr '(' $ac_mid ')' - 1`
14397 if test $ac_mid -le $ac_hi; then
14398 ac_lo= ac_hi=
14399 break
14400 fi
14401 ac_mid=`expr 2 '*' $ac_mid`
14402 fi
14403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14404 done
14405 else
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409 ac_lo= ac_hi=
14410 fi
14411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14412 fi
14413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14414 # Binary search between lo and hi bounds.
14415 while test "x$ac_lo" != "x$ac_hi"; do
14416 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14417 cat >conftest.$ac_ext <<_ACEOF
14418 /* confdefs.h. */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 $ac_includes_default
14424 int
14425 main ()
14426 {
14427 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14428 test_array [0] = 0
14429
14430 ;
14431 return 0;
14432 }
14433 _ACEOF
14434 rm -f conftest.$ac_objext
14435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14436 (eval $ac_compile) 2>conftest.er1
14437 ac_status=$?
14438 grep -v '^ *+' conftest.er1 >conftest.err
14439 rm -f conftest.er1
14440 cat conftest.err >&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } &&
14443 { ac_try='test -z "$ac_c_werror_flag"
14444 || test ! -s conftest.err'
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; } &&
14450 { ac_try='test -s conftest.$ac_objext'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 ac_hi=$ac_mid
14457 else
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14460
14461 ac_lo=`expr '(' $ac_mid ')' + 1`
14462 fi
14463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14464 done
14465 case $ac_lo in
14466 ?*) ac_cv_sizeof_char=$ac_lo;;
14467 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14468 See \`config.log' for more details." >&5
14469 echo "$as_me: error: cannot compute sizeof (char), 77
14470 See \`config.log' for more details." >&2;}
14471 { (exit 1); exit 1; }; } ;;
14472 esac
14473 else
14474 if test "$cross_compiling" = yes; then
14475 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14476 See \`config.log' for more details." >&5
14477 echo "$as_me: error: cannot run test program while cross compiling
14478 See \`config.log' for more details." >&2;}
14479 { (exit 1); exit 1; }; }
14480 else
14481 cat >conftest.$ac_ext <<_ACEOF
14482 /* confdefs.h. */
14483 _ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h. */
14487 $ac_includes_default
14488 long longval () { return (long) (sizeof (char)); }
14489 unsigned long ulongval () { return (long) (sizeof (char)); }
14490 #include <stdio.h>
14491 #include <stdlib.h>
14492 int
14493 main ()
14494 {
14495
14496 FILE *f = fopen ("conftest.val", "w");
14497 if (! f)
14498 exit (1);
14499 if (((long) (sizeof (char))) < 0)
14500 {
14501 long i = longval ();
14502 if (i != ((long) (sizeof (char))))
14503 exit (1);
14504 fprintf (f, "%ld\n", i);
14505 }
14506 else
14507 {
14508 unsigned long i = ulongval ();
14509 if (i != ((long) (sizeof (char))))
14510 exit (1);
14511 fprintf (f, "%lu\n", i);
14512 }
14513 exit (ferror (f) || fclose (f) != 0);
14514
14515 ;
14516 return 0;
14517 }
14518 _ACEOF
14519 rm -f conftest$ac_exeext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14521 (eval $ac_link) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_cv_sizeof_char=`cat conftest.val`
14531 else
14532 echo "$as_me: program exited with status $ac_status" >&5
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14535
14536 ( exit $ac_status )
14537 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14538 See \`config.log' for more details." >&5
14539 echo "$as_me: error: cannot compute sizeof (char), 77
14540 See \`config.log' for more details." >&2;}
14541 { (exit 1); exit 1; }; }
14542 fi
14543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14544 fi
14545 fi
14546 rm -f conftest.val
14547 else
14548 ac_cv_sizeof_char=0
14549 fi
14550 fi
14551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14552 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14553 cat >>confdefs.h <<_ACEOF
14554 #define SIZEOF_CHAR $ac_cv_sizeof_char
14555 _ACEOF
14556
14557
14558 echo "$as_me:$LINENO: checking for short" >&5
14559 echo $ECHO_N "checking for short... $ECHO_C" >&6
14560 if test "${ac_cv_type_short+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 else
14563 cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h. */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14569 $ac_includes_default
14570 int
14571 main ()
14572 {
14573 if ((short *) 0)
14574 return 0;
14575 if (sizeof (short))
14576 return 0;
14577 ;
14578 return 0;
14579 }
14580 _ACEOF
14581 rm -f conftest.$ac_objext
14582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14583 (eval $ac_compile) 2>conftest.er1
14584 ac_status=$?
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -z "$ac_c_werror_flag"
14591 || test ! -s conftest.err'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest.$ac_objext'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603 ac_cv_type_short=yes
14604 else
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14607
14608 ac_cv_type_short=no
14609 fi
14610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14611 fi
14612 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14613 echo "${ECHO_T}$ac_cv_type_short" >&6
14614
14615 echo "$as_me:$LINENO: checking size of short" >&5
14616 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14617 if test "${ac_cv_sizeof_short+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14620 if test "$ac_cv_type_short" = yes; then
14621 # The cast to unsigned long works around a bug in the HP C Compiler
14622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14624 # This bug is HP SR number 8606223364.
14625 if test "$cross_compiling" = yes; then
14626 # Depending upon the size, compute the lo and hi bounds.
14627 cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h. */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 $ac_includes_default
14634 int
14635 main ()
14636 {
14637 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14638 test_array [0] = 0
14639
14640 ;
14641 return 0;
14642 }
14643 _ACEOF
14644 rm -f conftest.$ac_objext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14646 (eval $ac_compile) 2>conftest.er1
14647 ac_status=$?
14648 grep -v '^ *+' conftest.er1 >conftest.err
14649 rm -f conftest.er1
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try='test -z "$ac_c_werror_flag"
14654 || test ! -s conftest.err'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; } &&
14660 { ac_try='test -s conftest.$ac_objext'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14666 ac_lo=0 ac_mid=0
14667 while :; do
14668 cat >conftest.$ac_ext <<_ACEOF
14669 /* confdefs.h. */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674 $ac_includes_default
14675 int
14676 main ()
14677 {
14678 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14679 test_array [0] = 0
14680
14681 ;
14682 return 0;
14683 }
14684 _ACEOF
14685 rm -f conftest.$ac_objext
14686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14687 (eval $ac_compile) 2>conftest.er1
14688 ac_status=$?
14689 grep -v '^ *+' conftest.er1 >conftest.err
14690 rm -f conftest.er1
14691 cat conftest.err >&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } &&
14694 { ac_try='test -z "$ac_c_werror_flag"
14695 || test ! -s conftest.err'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14698 ac_status=$?
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; } &&
14701 { ac_try='test -s conftest.$ac_objext'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }; then
14707 ac_hi=$ac_mid; break
14708 else
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14711
14712 ac_lo=`expr $ac_mid + 1`
14713 if test $ac_lo -le $ac_mid; then
14714 ac_lo= ac_hi=
14715 break
14716 fi
14717 ac_mid=`expr 2 '*' $ac_mid + 1`
14718 fi
14719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14720 done
14721 else
14722 echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14724
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 $ac_includes_default
14732 int
14733 main ()
14734 {
14735 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14736 test_array [0] = 0
14737
14738 ;
14739 return 0;
14740 }
14741 _ACEOF
14742 rm -f conftest.$ac_objext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744 (eval $ac_compile) 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_hi=-1 ac_mid=-1
14765 while :; do
14766 cat >conftest.$ac_ext <<_ACEOF
14767 /* confdefs.h. */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14772 $ac_includes_default
14773 int
14774 main ()
14775 {
14776 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14777 test_array [0] = 0
14778
14779 ;
14780 return 0;
14781 }
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785 (eval $ac_compile) 2>conftest.er1
14786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
14792 { ac_try='test -z "$ac_c_werror_flag"
14793 || test ! -s conftest.err'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14796 ac_status=$?
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; } &&
14799 { ac_try='test -s conftest.$ac_objext'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 ac_lo=$ac_mid; break
14806 else
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14809
14810 ac_hi=`expr '(' $ac_mid ')' - 1`
14811 if test $ac_mid -le $ac_hi; then
14812 ac_lo= ac_hi=
14813 break
14814 fi
14815 ac_mid=`expr 2 '*' $ac_mid`
14816 fi
14817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14818 done
14819 else
14820 echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14822
14823 ac_lo= ac_hi=
14824 fi
14825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14826 fi
14827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14828 # Binary search between lo and hi bounds.
14829 while test "x$ac_lo" != "x$ac_hi"; do
14830 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14831 cat >conftest.$ac_ext <<_ACEOF
14832 /* confdefs.h. */
14833 _ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14837 $ac_includes_default
14838 int
14839 main ()
14840 {
14841 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14842 test_array [0] = 0
14843
14844 ;
14845 return 0;
14846 }
14847 _ACEOF
14848 rm -f conftest.$ac_objext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14850 (eval $ac_compile) 2>conftest.er1
14851 ac_status=$?
14852 grep -v '^ *+' conftest.er1 >conftest.err
14853 rm -f conftest.er1
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } &&
14857 { ac_try='test -z "$ac_c_werror_flag"
14858 || test ! -s conftest.err'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; } &&
14864 { ac_try='test -s conftest.$ac_objext'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 ac_hi=$ac_mid
14871 else
14872 echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14874
14875 ac_lo=`expr '(' $ac_mid ')' + 1`
14876 fi
14877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14878 done
14879 case $ac_lo in
14880 ?*) ac_cv_sizeof_short=$ac_lo;;
14881 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14882 See \`config.log' for more details." >&5
14883 echo "$as_me: error: cannot compute sizeof (short), 77
14884 See \`config.log' for more details." >&2;}
14885 { (exit 1); exit 1; }; } ;;
14886 esac
14887 else
14888 if test "$cross_compiling" = yes; then
14889 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14890 See \`config.log' for more details." >&5
14891 echo "$as_me: error: cannot run test program while cross compiling
14892 See \`config.log' for more details." >&2;}
14893 { (exit 1); exit 1; }; }
14894 else
14895 cat >conftest.$ac_ext <<_ACEOF
14896 /* confdefs.h. */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 $ac_includes_default
14902 long longval () { return (long) (sizeof (short)); }
14903 unsigned long ulongval () { return (long) (sizeof (short)); }
14904 #include <stdio.h>
14905 #include <stdlib.h>
14906 int
14907 main ()
14908 {
14909
14910 FILE *f = fopen ("conftest.val", "w");
14911 if (! f)
14912 exit (1);
14913 if (((long) (sizeof (short))) < 0)
14914 {
14915 long i = longval ();
14916 if (i != ((long) (sizeof (short))))
14917 exit (1);
14918 fprintf (f, "%ld\n", i);
14919 }
14920 else
14921 {
14922 unsigned long i = ulongval ();
14923 if (i != ((long) (sizeof (short))))
14924 exit (1);
14925 fprintf (f, "%lu\n", i);
14926 }
14927 exit (ferror (f) || fclose (f) != 0);
14928
14929 ;
14930 return 0;
14931 }
14932 _ACEOF
14933 rm -f conftest$ac_exeext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14935 (eval $ac_link) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
14944 ac_cv_sizeof_short=`cat conftest.val`
14945 else
14946 echo "$as_me: program exited with status $ac_status" >&5
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14949
14950 ( exit $ac_status )
14951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14952 See \`config.log' for more details." >&5
14953 echo "$as_me: error: cannot compute sizeof (short), 77
14954 See \`config.log' for more details." >&2;}
14955 { (exit 1); exit 1; }; }
14956 fi
14957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14958 fi
14959 fi
14960 rm -f conftest.val
14961 else
14962 ac_cv_sizeof_short=0
14963 fi
14964 fi
14965 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14966 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14967 cat >>confdefs.h <<_ACEOF
14968 #define SIZEOF_SHORT $ac_cv_sizeof_short
14969 _ACEOF
14970
14971
14972 echo "$as_me:$LINENO: checking for void *" >&5
14973 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14974 if test "${ac_cv_type_void_p+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977 cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h. */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 $ac_includes_default
14984 int
14985 main ()
14986 {
14987 if ((void * *) 0)
14988 return 0;
14989 if (sizeof (void *))
14990 return 0;
14991 ;
14992 return 0;
14993 }
14994 _ACEOF
14995 rm -f conftest.$ac_objext
14996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14997 (eval $ac_compile) 2>conftest.er1
14998 ac_status=$?
14999 grep -v '^ *+' conftest.er1 >conftest.err
15000 rm -f conftest.er1
15001 cat conftest.err >&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
15004 { ac_try='test -z "$ac_c_werror_flag"
15005 || test ! -s conftest.err'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest.$ac_objext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_cv_type_void_p=yes
15018 else
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 ac_cv_type_void_p=no
15023 fi
15024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15025 fi
15026 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15027 echo "${ECHO_T}$ac_cv_type_void_p" >&6
15028
15029 echo "$as_me:$LINENO: checking size of void *" >&5
15030 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15031 if test "${ac_cv_sizeof_void_p+set}" = set; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 else
15034 if test "$ac_cv_type_void_p" = yes; then
15035 # The cast to unsigned long works around a bug in the HP C Compiler
15036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15038 # This bug is HP SR number 8606223364.
15039 if test "$cross_compiling" = yes; then
15040 # Depending upon the size, compute the lo and hi bounds.
15041 cat >conftest.$ac_ext <<_ACEOF
15042 /* confdefs.h. */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 $ac_includes_default
15048 int
15049 main ()
15050 {
15051 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15052 test_array [0] = 0
15053
15054 ;
15055 return 0;
15056 }
15057 _ACEOF
15058 rm -f conftest.$ac_objext
15059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15060 (eval $ac_compile) 2>conftest.er1
15061 ac_status=$?
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try='test -z "$ac_c_werror_flag"
15068 || test ! -s conftest.err'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; } &&
15074 { ac_try='test -s conftest.$ac_objext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15077 ac_status=$?
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15080 ac_lo=0 ac_mid=0
15081 while :; do
15082 cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h. */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15088 $ac_includes_default
15089 int
15090 main ()
15091 {
15092 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15093 test_array [0] = 0
15094
15095 ;
15096 return 0;
15097 }
15098 _ACEOF
15099 rm -f conftest.$ac_objext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15101 (eval $ac_compile) 2>conftest.er1
15102 ac_status=$?
15103 grep -v '^ *+' conftest.er1 >conftest.err
15104 rm -f conftest.er1
15105 cat conftest.err >&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -z "$ac_c_werror_flag"
15109 || test ! -s conftest.err'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; } &&
15115 { ac_try='test -s conftest.$ac_objext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_hi=$ac_mid; break
15122 else
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126 ac_lo=`expr $ac_mid + 1`
15127 if test $ac_lo -le $ac_mid; then
15128 ac_lo= ac_hi=
15129 break
15130 fi
15131 ac_mid=`expr 2 '*' $ac_mid + 1`
15132 fi
15133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15134 done
15135 else
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15138
15139 cat >conftest.$ac_ext <<_ACEOF
15140 /* confdefs.h. */
15141 _ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h. */
15145 $ac_includes_default
15146 int
15147 main ()
15148 {
15149 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15150 test_array [0] = 0
15151
15152 ;
15153 return 0;
15154 }
15155 _ACEOF
15156 rm -f conftest.$ac_objext
15157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15158 (eval $ac_compile) 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } &&
15165 { ac_try='test -z "$ac_c_werror_flag"
15166 || test ! -s conftest.err'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; } &&
15172 { ac_try='test -s conftest.$ac_objext'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15178 ac_hi=-1 ac_mid=-1
15179 while :; do
15180 cat >conftest.$ac_ext <<_ACEOF
15181 /* confdefs.h. */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15186 $ac_includes_default
15187 int
15188 main ()
15189 {
15190 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15191 test_array [0] = 0
15192
15193 ;
15194 return 0;
15195 }
15196 _ACEOF
15197 rm -f conftest.$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199 (eval $ac_compile) 2>conftest.er1
15200 ac_status=$?
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try='test -z "$ac_c_werror_flag"
15207 || test ! -s conftest.err'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try='test -s conftest.$ac_objext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 ac_lo=$ac_mid; break
15220 else
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15223
15224 ac_hi=`expr '(' $ac_mid ')' - 1`
15225 if test $ac_mid -le $ac_hi; then
15226 ac_lo= ac_hi=
15227 break
15228 fi
15229 ac_mid=`expr 2 '*' $ac_mid`
15230 fi
15231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15232 done
15233 else
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15236
15237 ac_lo= ac_hi=
15238 fi
15239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15240 fi
15241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15242 # Binary search between lo and hi bounds.
15243 while test "x$ac_lo" != "x$ac_hi"; do
15244 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 $ac_includes_default
15252 int
15253 main ()
15254 {
15255 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15256 test_array [0] = 0
15257
15258 ;
15259 return 0;
15260 }
15261 _ACEOF
15262 rm -f conftest.$ac_objext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15264 (eval $ac_compile) 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } &&
15271 { ac_try='test -z "$ac_c_werror_flag"
15272 || test ! -s conftest.err'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; } &&
15278 { ac_try='test -s conftest.$ac_objext'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15284 ac_hi=$ac_mid
15285 else
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15288
15289 ac_lo=`expr '(' $ac_mid ')' + 1`
15290 fi
15291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15292 done
15293 case $ac_lo in
15294 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15295 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15296 See \`config.log' for more details." >&5
15297 echo "$as_me: error: cannot compute sizeof (void *), 77
15298 See \`config.log' for more details." >&2;}
15299 { (exit 1); exit 1; }; } ;;
15300 esac
15301 else
15302 if test "$cross_compiling" = yes; then
15303 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15304 See \`config.log' for more details." >&5
15305 echo "$as_me: error: cannot run test program while cross compiling
15306 See \`config.log' for more details." >&2;}
15307 { (exit 1); exit 1; }; }
15308 else
15309 cat >conftest.$ac_ext <<_ACEOF
15310 /* confdefs.h. */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 $ac_includes_default
15316 long longval () { return (long) (sizeof (void *)); }
15317 unsigned long ulongval () { return (long) (sizeof (void *)); }
15318 #include <stdio.h>
15319 #include <stdlib.h>
15320 int
15321 main ()
15322 {
15323
15324 FILE *f = fopen ("conftest.val", "w");
15325 if (! f)
15326 exit (1);
15327 if (((long) (sizeof (void *))) < 0)
15328 {
15329 long i = longval ();
15330 if (i != ((long) (sizeof (void *))))
15331 exit (1);
15332 fprintf (f, "%ld\n", i);
15333 }
15334 else
15335 {
15336 unsigned long i = ulongval ();
15337 if (i != ((long) (sizeof (void *))))
15338 exit (1);
15339 fprintf (f, "%lu\n", i);
15340 }
15341 exit (ferror (f) || fclose (f) != 0);
15342
15343 ;
15344 return 0;
15345 }
15346 _ACEOF
15347 rm -f conftest$ac_exeext
15348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15349 (eval $ac_link) 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 ac_cv_sizeof_void_p=`cat conftest.val`
15359 else
15360 echo "$as_me: program exited with status $ac_status" >&5
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15363
15364 ( exit $ac_status )
15365 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15366 See \`config.log' for more details." >&5
15367 echo "$as_me: error: cannot compute sizeof (void *), 77
15368 See \`config.log' for more details." >&2;}
15369 { (exit 1); exit 1; }; }
15370 fi
15371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15372 fi
15373 fi
15374 rm -f conftest.val
15375 else
15376 ac_cv_sizeof_void_p=0
15377 fi
15378 fi
15379 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15380 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15381 cat >>confdefs.h <<_ACEOF
15382 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15383 _ACEOF
15384
15385
15386 echo "$as_me:$LINENO: checking for int" >&5
15387 echo $ECHO_N "checking for int... $ECHO_C" >&6
15388 if test "${ac_cv_type_int+set}" = set; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 else
15391 cat >conftest.$ac_ext <<_ACEOF
15392 /* confdefs.h. */
15393 _ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h. */
15397 $ac_includes_default
15398 int
15399 main ()
15400 {
15401 if ((int *) 0)
15402 return 0;
15403 if (sizeof (int))
15404 return 0;
15405 ;
15406 return 0;
15407 }
15408 _ACEOF
15409 rm -f conftest.$ac_objext
15410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>conftest.er1
15412 ac_status=$?
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -z "$ac_c_werror_flag"
15419 || test ! -s conftest.err'
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try='test -s conftest.$ac_objext'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 ac_cv_type_int=yes
15432 else
15433 echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15435
15436 ac_cv_type_int=no
15437 fi
15438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15439 fi
15440 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15441 echo "${ECHO_T}$ac_cv_type_int" >&6
15442
15443 echo "$as_me:$LINENO: checking size of int" >&5
15444 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15445 if test "${ac_cv_sizeof_int+set}" = set; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15447 else
15448 if test "$ac_cv_type_int" = yes; then
15449 # The cast to unsigned long works around a bug in the HP C Compiler
15450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15452 # This bug is HP SR number 8606223364.
15453 if test "$cross_compiling" = yes; then
15454 # Depending upon the size, compute the lo and hi bounds.
15455 cat >conftest.$ac_ext <<_ACEOF
15456 /* confdefs.h. */
15457 _ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15461 $ac_includes_default
15462 int
15463 main ()
15464 {
15465 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15466 test_array [0] = 0
15467
15468 ;
15469 return 0;
15470 }
15471 _ACEOF
15472 rm -f conftest.$ac_objext
15473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15474 (eval $ac_compile) 2>conftest.er1
15475 ac_status=$?
15476 grep -v '^ *+' conftest.er1 >conftest.err
15477 rm -f conftest.er1
15478 cat conftest.err >&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
15481 { ac_try='test -z "$ac_c_werror_flag"
15482 || test ! -s conftest.err'
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; } &&
15488 { ac_try='test -s conftest.$ac_objext'
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; }; then
15494 ac_lo=0 ac_mid=0
15495 while :; do
15496 cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h. */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502 $ac_includes_default
15503 int
15504 main ()
15505 {
15506 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15507 test_array [0] = 0
15508
15509 ;
15510 return 0;
15511 }
15512 _ACEOF
15513 rm -f conftest.$ac_objext
15514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15515 (eval $ac_compile) 2>conftest.er1
15516 ac_status=$?
15517 grep -v '^ *+' conftest.er1 >conftest.err
15518 rm -f conftest.er1
15519 cat conftest.err >&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } &&
15522 { ac_try='test -z "$ac_c_werror_flag"
15523 || test ! -s conftest.err'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15526 ac_status=$?
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; } &&
15529 { ac_try='test -s conftest.$ac_objext'
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15535 ac_hi=$ac_mid; break
15536 else
15537 echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15539
15540 ac_lo=`expr $ac_mid + 1`
15541 if test $ac_lo -le $ac_mid; then
15542 ac_lo= ac_hi=
15543 break
15544 fi
15545 ac_mid=`expr 2 '*' $ac_mid + 1`
15546 fi
15547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15548 done
15549 else
15550 echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15552
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h. */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 $ac_includes_default
15560 int
15561 main ()
15562 {
15563 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15564 test_array [0] = 0
15565
15566 ;
15567 return 0;
15568 }
15569 _ACEOF
15570 rm -f conftest.$ac_objext
15571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15572 (eval $ac_compile) 2>conftest.er1
15573 ac_status=$?
15574 grep -v '^ *+' conftest.er1 >conftest.err
15575 rm -f conftest.er1
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
15579 { ac_try='test -z "$ac_c_werror_flag"
15580 || test ! -s conftest.err'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15583 ac_status=$?
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; } &&
15586 { ac_try='test -s conftest.$ac_objext'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 ac_hi=-1 ac_mid=-1
15593 while :; do
15594 cat >conftest.$ac_ext <<_ACEOF
15595 /* confdefs.h. */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 $ac_includes_default
15601 int
15602 main ()
15603 {
15604 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15605 test_array [0] = 0
15606
15607 ;
15608 return 0;
15609 }
15610 _ACEOF
15611 rm -f conftest.$ac_objext
15612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15613 (eval $ac_compile) 2>conftest.er1
15614 ac_status=$?
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag"
15621 || test ! -s conftest.err'
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); }; } &&
15627 { ac_try='test -s conftest.$ac_objext'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; }; then
15633 ac_lo=$ac_mid; break
15634 else
15635 echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15637
15638 ac_hi=`expr '(' $ac_mid ')' - 1`
15639 if test $ac_mid -le $ac_hi; then
15640 ac_lo= ac_hi=
15641 break
15642 fi
15643 ac_mid=`expr 2 '*' $ac_mid`
15644 fi
15645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15646 done
15647 else
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15650
15651 ac_lo= ac_hi=
15652 fi
15653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15654 fi
15655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15656 # Binary search between lo and hi bounds.
15657 while test "x$ac_lo" != "x$ac_hi"; do
15658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15659 cat >conftest.$ac_ext <<_ACEOF
15660 /* confdefs.h. */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15665 $ac_includes_default
15666 int
15667 main ()
15668 {
15669 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15670 test_array [0] = 0
15671
15672 ;
15673 return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15678 (eval $ac_compile) 2>conftest.er1
15679 ac_status=$?
15680 grep -v '^ *+' conftest.er1 >conftest.err
15681 rm -f conftest.er1
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
15685 { ac_try='test -z "$ac_c_werror_flag"
15686 || test ! -s conftest.err'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest.$ac_objext'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_hi=$ac_mid
15699 else
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703 ac_lo=`expr '(' $ac_mid ')' + 1`
15704 fi
15705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15706 done
15707 case $ac_lo in
15708 ?*) ac_cv_sizeof_int=$ac_lo;;
15709 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15710 See \`config.log' for more details." >&5
15711 echo "$as_me: error: cannot compute sizeof (int), 77
15712 See \`config.log' for more details." >&2;}
15713 { (exit 1); exit 1; }; } ;;
15714 esac
15715 else
15716 if test "$cross_compiling" = yes; then
15717 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15718 See \`config.log' for more details." >&5
15719 echo "$as_me: error: cannot run test program while cross compiling
15720 See \`config.log' for more details." >&2;}
15721 { (exit 1); exit 1; }; }
15722 else
15723 cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 $ac_includes_default
15730 long longval () { return (long) (sizeof (int)); }
15731 unsigned long ulongval () { return (long) (sizeof (int)); }
15732 #include <stdio.h>
15733 #include <stdlib.h>
15734 int
15735 main ()
15736 {
15737
15738 FILE *f = fopen ("conftest.val", "w");
15739 if (! f)
15740 exit (1);
15741 if (((long) (sizeof (int))) < 0)
15742 {
15743 long i = longval ();
15744 if (i != ((long) (sizeof (int))))
15745 exit (1);
15746 fprintf (f, "%ld\n", i);
15747 }
15748 else
15749 {
15750 unsigned long i = ulongval ();
15751 if (i != ((long) (sizeof (int))))
15752 exit (1);
15753 fprintf (f, "%lu\n", i);
15754 }
15755 exit (ferror (f) || fclose (f) != 0);
15756
15757 ;
15758 return 0;
15759 }
15760 _ACEOF
15761 rm -f conftest$ac_exeext
15762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15763 (eval $ac_link) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; }; then
15772 ac_cv_sizeof_int=`cat conftest.val`
15773 else
15774 echo "$as_me: program exited with status $ac_status" >&5
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15777
15778 ( exit $ac_status )
15779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15780 See \`config.log' for more details." >&5
15781 echo "$as_me: error: cannot compute sizeof (int), 77
15782 See \`config.log' for more details." >&2;}
15783 { (exit 1); exit 1; }; }
15784 fi
15785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15786 fi
15787 fi
15788 rm -f conftest.val
15789 else
15790 ac_cv_sizeof_int=0
15791 fi
15792 fi
15793 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15794 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15795 cat >>confdefs.h <<_ACEOF
15796 #define SIZEOF_INT $ac_cv_sizeof_int
15797 _ACEOF
15798
15799
15800 echo "$as_me:$LINENO: checking for long" >&5
15801 echo $ECHO_N "checking for long... $ECHO_C" >&6
15802 if test "${ac_cv_type_long+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 else
15805 cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h. */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 $ac_includes_default
15812 int
15813 main ()
15814 {
15815 if ((long *) 0)
15816 return 0;
15817 if (sizeof (long))
15818 return 0;
15819 ;
15820 return 0;
15821 }
15822 _ACEOF
15823 rm -f conftest.$ac_objext
15824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15825 (eval $ac_compile) 2>conftest.er1
15826 ac_status=$?
15827 grep -v '^ *+' conftest.er1 >conftest.err
15828 rm -f conftest.er1
15829 cat conftest.err >&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } &&
15832 { ac_try='test -z "$ac_c_werror_flag"
15833 || test ! -s conftest.err'
15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; } &&
15839 { ac_try='test -s conftest.$ac_objext'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }; then
15845 ac_cv_type_long=yes
15846 else
15847 echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15849
15850 ac_cv_type_long=no
15851 fi
15852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15853 fi
15854 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15855 echo "${ECHO_T}$ac_cv_type_long" >&6
15856
15857 echo "$as_me:$LINENO: checking size of long" >&5
15858 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15859 if test "${ac_cv_sizeof_long+set}" = set; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862 if test "$ac_cv_type_long" = yes; then
15863 # The cast to unsigned long works around a bug in the HP C Compiler
15864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15866 # This bug is HP SR number 8606223364.
15867 if test "$cross_compiling" = yes; then
15868 # Depending upon the size, compute the lo and hi bounds.
15869 cat >conftest.$ac_ext <<_ACEOF
15870 /* confdefs.h. */
15871 _ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15875 $ac_includes_default
15876 int
15877 main ()
15878 {
15879 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15880 test_array [0] = 0
15881
15882 ;
15883 return 0;
15884 }
15885 _ACEOF
15886 rm -f conftest.$ac_objext
15887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15888 (eval $ac_compile) 2>conftest.er1
15889 ac_status=$?
15890 grep -v '^ *+' conftest.er1 >conftest.err
15891 rm -f conftest.er1
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } &&
15895 { ac_try='test -z "$ac_c_werror_flag"
15896 || test ! -s conftest.err'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15899 ac_status=$?
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; } &&
15902 { ac_try='test -s conftest.$ac_objext'
15903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15904 (eval $ac_try) 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; }; then
15908 ac_lo=0 ac_mid=0
15909 while :; do
15910 cat >conftest.$ac_ext <<_ACEOF
15911 /* confdefs.h. */
15912 _ACEOF
15913 cat confdefs.h >>conftest.$ac_ext
15914 cat >>conftest.$ac_ext <<_ACEOF
15915 /* end confdefs.h. */
15916 $ac_includes_default
15917 int
15918 main ()
15919 {
15920 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15921 test_array [0] = 0
15922
15923 ;
15924 return 0;
15925 }
15926 _ACEOF
15927 rm -f conftest.$ac_objext
15928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15929 (eval $ac_compile) 2>conftest.er1
15930 ac_status=$?
15931 grep -v '^ *+' conftest.er1 >conftest.err
15932 rm -f conftest.er1
15933 cat conftest.err >&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } &&
15936 { ac_try='test -z "$ac_c_werror_flag"
15937 || test ! -s conftest.err'
15938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; } &&
15943 { ac_try='test -s conftest.$ac_objext'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; }; then
15949 ac_hi=$ac_mid; break
15950 else
15951 echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15953
15954 ac_lo=`expr $ac_mid + 1`
15955 if test $ac_lo -le $ac_mid; then
15956 ac_lo= ac_hi=
15957 break
15958 fi
15959 ac_mid=`expr 2 '*' $ac_mid + 1`
15960 fi
15961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15962 done
15963 else
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15966
15967 cat >conftest.$ac_ext <<_ACEOF
15968 /* confdefs.h. */
15969 _ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15973 $ac_includes_default
15974 int
15975 main ()
15976 {
15977 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15978 test_array [0] = 0
15979
15980 ;
15981 return 0;
15982 }
15983 _ACEOF
15984 rm -f conftest.$ac_objext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15986 (eval $ac_compile) 2>conftest.er1
15987 ac_status=$?
15988 grep -v '^ *+' conftest.er1 >conftest.err
15989 rm -f conftest.er1
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } &&
15993 { ac_try='test -z "$ac_c_werror_flag"
15994 || test ! -s conftest.err'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; } &&
16000 { ac_try='test -s conftest.$ac_objext'
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
16006 ac_hi=-1 ac_mid=-1
16007 while :; do
16008 cat >conftest.$ac_ext <<_ACEOF
16009 /* confdefs.h. */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 $ac_includes_default
16015 int
16016 main ()
16017 {
16018 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16019 test_array [0] = 0
16020
16021 ;
16022 return 0;
16023 }
16024 _ACEOF
16025 rm -f conftest.$ac_objext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16027 (eval $ac_compile) 2>conftest.er1
16028 ac_status=$?
16029 grep -v '^ *+' conftest.er1 >conftest.err
16030 rm -f conftest.er1
16031 cat conftest.err >&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try='test -z "$ac_c_werror_flag"
16035 || test ! -s conftest.err'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try='test -s conftest.$ac_objext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_lo=$ac_mid; break
16048 else
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16051
16052 ac_hi=`expr '(' $ac_mid ')' - 1`
16053 if test $ac_mid -le $ac_hi; then
16054 ac_lo= ac_hi=
16055 break
16056 fi
16057 ac_mid=`expr 2 '*' $ac_mid`
16058 fi
16059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16060 done
16061 else
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16064
16065 ac_lo= ac_hi=
16066 fi
16067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16068 fi
16069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16070 # Binary search between lo and hi bounds.
16071 while test "x$ac_lo" != "x$ac_hi"; do
16072 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16073 cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h. */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 $ac_includes_default
16080 int
16081 main ()
16082 {
16083 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16084 test_array [0] = 0
16085
16086 ;
16087 return 0;
16088 }
16089 _ACEOF
16090 rm -f conftest.$ac_objext
16091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16092 (eval $ac_compile) 2>conftest.er1
16093 ac_status=$?
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } &&
16099 { ac_try='test -z "$ac_c_werror_flag"
16100 || test ! -s conftest.err'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest.$ac_objext'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 ac_hi=$ac_mid
16113 else
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16116
16117 ac_lo=`expr '(' $ac_mid ')' + 1`
16118 fi
16119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16120 done
16121 case $ac_lo in
16122 ?*) ac_cv_sizeof_long=$ac_lo;;
16123 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16124 See \`config.log' for more details." >&5
16125 echo "$as_me: error: cannot compute sizeof (long), 77
16126 See \`config.log' for more details." >&2;}
16127 { (exit 1); exit 1; }; } ;;
16128 esac
16129 else
16130 if test "$cross_compiling" = yes; then
16131 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16132 See \`config.log' for more details." >&5
16133 echo "$as_me: error: cannot run test program while cross compiling
16134 See \`config.log' for more details." >&2;}
16135 { (exit 1); exit 1; }; }
16136 else
16137 cat >conftest.$ac_ext <<_ACEOF
16138 /* confdefs.h. */
16139 _ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h. */
16143 $ac_includes_default
16144 long longval () { return (long) (sizeof (long)); }
16145 unsigned long ulongval () { return (long) (sizeof (long)); }
16146 #include <stdio.h>
16147 #include <stdlib.h>
16148 int
16149 main ()
16150 {
16151
16152 FILE *f = fopen ("conftest.val", "w");
16153 if (! f)
16154 exit (1);
16155 if (((long) (sizeof (long))) < 0)
16156 {
16157 long i = longval ();
16158 if (i != ((long) (sizeof (long))))
16159 exit (1);
16160 fprintf (f, "%ld\n", i);
16161 }
16162 else
16163 {
16164 unsigned long i = ulongval ();
16165 if (i != ((long) (sizeof (long))))
16166 exit (1);
16167 fprintf (f, "%lu\n", i);
16168 }
16169 exit (ferror (f) || fclose (f) != 0);
16170
16171 ;
16172 return 0;
16173 }
16174 _ACEOF
16175 rm -f conftest$ac_exeext
16176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16177 (eval $ac_link) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_cv_sizeof_long=`cat conftest.val`
16187 else
16188 echo "$as_me: program exited with status $ac_status" >&5
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16191
16192 ( exit $ac_status )
16193 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16194 See \`config.log' for more details." >&5
16195 echo "$as_me: error: cannot compute sizeof (long), 77
16196 See \`config.log' for more details." >&2;}
16197 { (exit 1); exit 1; }; }
16198 fi
16199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16200 fi
16201 fi
16202 rm -f conftest.val
16203 else
16204 ac_cv_sizeof_long=0
16205 fi
16206 fi
16207 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16208 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16209 cat >>confdefs.h <<_ACEOF
16210 #define SIZEOF_LONG $ac_cv_sizeof_long
16211 _ACEOF
16212
16213
16214 echo "$as_me:$LINENO: checking for size_t" >&5
16215 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16216 if test "${ac_cv_type_size_t+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219 cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h. */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16225 $ac_includes_default
16226 int
16227 main ()
16228 {
16229 if ((size_t *) 0)
16230 return 0;
16231 if (sizeof (size_t))
16232 return 0;
16233 ;
16234 return 0;
16235 }
16236 _ACEOF
16237 rm -f conftest.$ac_objext
16238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16239 (eval $ac_compile) 2>conftest.er1
16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
16246 { ac_try='test -z "$ac_c_werror_flag"
16247 || test ! -s conftest.err'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest.$ac_objext'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 ac_cv_type_size_t=yes
16260 else
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16263
16264 ac_cv_type_size_t=no
16265 fi
16266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16267 fi
16268 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16269 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16270
16271 echo "$as_me:$LINENO: checking size of size_t" >&5
16272 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16273 if test "${ac_cv_sizeof_size_t+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16275 else
16276 if test "$ac_cv_type_size_t" = yes; then
16277 # The cast to unsigned long works around a bug in the HP C Compiler
16278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16280 # This bug is HP SR number 8606223364.
16281 if test "$cross_compiling" = yes; then
16282 # Depending upon the size, compute the lo and hi bounds.
16283 cat >conftest.$ac_ext <<_ACEOF
16284 /* confdefs.h. */
16285 _ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16289 $ac_includes_default
16290 int
16291 main ()
16292 {
16293 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16294 test_array [0] = 0
16295
16296 ;
16297 return 0;
16298 }
16299 _ACEOF
16300 rm -f conftest.$ac_objext
16301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16302 (eval $ac_compile) 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -z "$ac_c_werror_flag"
16310 || test ! -s conftest.err'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 { ac_try='test -s conftest.$ac_objext'
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 ac_lo=0 ac_mid=0
16323 while :; do
16324 cat >conftest.$ac_ext <<_ACEOF
16325 /* confdefs.h. */
16326 _ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16330 $ac_includes_default
16331 int
16332 main ()
16333 {
16334 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16335 test_array [0] = 0
16336
16337 ;
16338 return 0;
16339 }
16340 _ACEOF
16341 rm -f conftest.$ac_objext
16342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16343 (eval $ac_compile) 2>conftest.er1
16344 ac_status=$?
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
16350 { ac_try='test -z "$ac_c_werror_flag"
16351 || test ! -s conftest.err'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; } &&
16357 { ac_try='test -s conftest.$ac_objext'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 ac_hi=$ac_mid; break
16364 else
16365 echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16367
16368 ac_lo=`expr $ac_mid + 1`
16369 if test $ac_lo -le $ac_mid; then
16370 ac_lo= ac_hi=
16371 break
16372 fi
16373 ac_mid=`expr 2 '*' $ac_mid + 1`
16374 fi
16375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16376 done
16377 else
16378 echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16380
16381 cat >conftest.$ac_ext <<_ACEOF
16382 /* confdefs.h. */
16383 _ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 $ac_includes_default
16388 int
16389 main ()
16390 {
16391 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16392 test_array [0] = 0
16393
16394 ;
16395 return 0;
16396 }
16397 _ACEOF
16398 rm -f conftest.$ac_objext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16400 (eval $ac_compile) 2>conftest.er1
16401 ac_status=$?
16402 grep -v '^ *+' conftest.er1 >conftest.err
16403 rm -f conftest.er1
16404 cat conftest.err >&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } &&
16407 { ac_try='test -z "$ac_c_werror_flag"
16408 || test ! -s conftest.err'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; } &&
16414 { ac_try='test -s conftest.$ac_objext'
16415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416 (eval $ac_try) 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; }; then
16420 ac_hi=-1 ac_mid=-1
16421 while :; do
16422 cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h. */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16428 $ac_includes_default
16429 int
16430 main ()
16431 {
16432 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16433 test_array [0] = 0
16434
16435 ;
16436 return 0;
16437 }
16438 _ACEOF
16439 rm -f conftest.$ac_objext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16441 (eval $ac_compile) 2>conftest.er1
16442 ac_status=$?
16443 grep -v '^ *+' conftest.er1 >conftest.err
16444 rm -f conftest.er1
16445 cat conftest.err >&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } &&
16448 { ac_try='test -z "$ac_c_werror_flag"
16449 || test ! -s conftest.err'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; } &&
16455 { ac_try='test -s conftest.$ac_objext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 ac_lo=$ac_mid; break
16462 else
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16465
16466 ac_hi=`expr '(' $ac_mid ')' - 1`
16467 if test $ac_mid -le $ac_hi; then
16468 ac_lo= ac_hi=
16469 break
16470 fi
16471 ac_mid=`expr 2 '*' $ac_mid`
16472 fi
16473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16474 done
16475 else
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479 ac_lo= ac_hi=
16480 fi
16481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16482 fi
16483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16484 # Binary search between lo and hi bounds.
16485 while test "x$ac_lo" != "x$ac_hi"; do
16486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16487 cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h. */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16493 $ac_includes_default
16494 int
16495 main ()
16496 {
16497 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16498 test_array [0] = 0
16499
16500 ;
16501 return 0;
16502 }
16503 _ACEOF
16504 rm -f conftest.$ac_objext
16505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16506 (eval $ac_compile) 2>conftest.er1
16507 ac_status=$?
16508 grep -v '^ *+' conftest.er1 >conftest.err
16509 rm -f conftest.er1
16510 cat conftest.err >&5
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } &&
16513 { ac_try='test -z "$ac_c_werror_flag"
16514 || test ! -s conftest.err'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; } &&
16520 { ac_try='test -s conftest.$ac_objext'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ac_hi=$ac_mid
16527 else
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16530
16531 ac_lo=`expr '(' $ac_mid ')' + 1`
16532 fi
16533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16534 done
16535 case $ac_lo in
16536 ?*) ac_cv_sizeof_size_t=$ac_lo;;
16537 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16538 See \`config.log' for more details." >&5
16539 echo "$as_me: error: cannot compute sizeof (size_t), 77
16540 See \`config.log' for more details." >&2;}
16541 { (exit 1); exit 1; }; } ;;
16542 esac
16543 else
16544 if test "$cross_compiling" = yes; then
16545 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16546 See \`config.log' for more details." >&5
16547 echo "$as_me: error: cannot run test program while cross compiling
16548 See \`config.log' for more details." >&2;}
16549 { (exit 1); exit 1; }; }
16550 else
16551 cat >conftest.$ac_ext <<_ACEOF
16552 /* confdefs.h. */
16553 _ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h. */
16557 $ac_includes_default
16558 long longval () { return (long) (sizeof (size_t)); }
16559 unsigned long ulongval () { return (long) (sizeof (size_t)); }
16560 #include <stdio.h>
16561 #include <stdlib.h>
16562 int
16563 main ()
16564 {
16565
16566 FILE *f = fopen ("conftest.val", "w");
16567 if (! f)
16568 exit (1);
16569 if (((long) (sizeof (size_t))) < 0)
16570 {
16571 long i = longval ();
16572 if (i != ((long) (sizeof (size_t))))
16573 exit (1);
16574 fprintf (f, "%ld\n", i);
16575 }
16576 else
16577 {
16578 unsigned long i = ulongval ();
16579 if (i != ((long) (sizeof (size_t))))
16580 exit (1);
16581 fprintf (f, "%lu\n", i);
16582 }
16583 exit (ferror (f) || fclose (f) != 0);
16584
16585 ;
16586 return 0;
16587 }
16588 _ACEOF
16589 rm -f conftest$ac_exeext
16590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16591 (eval $ac_link) 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16600 ac_cv_sizeof_size_t=`cat conftest.val`
16601 else
16602 echo "$as_me: program exited with status $ac_status" >&5
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16605
16606 ( exit $ac_status )
16607 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16608 See \`config.log' for more details." >&5
16609 echo "$as_me: error: cannot compute sizeof (size_t), 77
16610 See \`config.log' for more details." >&2;}
16611 { (exit 1); exit 1; }; }
16612 fi
16613 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16614 fi
16615 fi
16616 rm -f conftest.val
16617 else
16618 ac_cv_sizeof_size_t=0
16619 fi
16620 fi
16621 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16622 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16623 cat >>confdefs.h <<_ACEOF
16624 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16625 _ACEOF
16626
16627
16628
16629 case "${host}" in
16630 arm-*-linux* )
16631 echo "$as_me:$LINENO: checking for long long" >&5
16632 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16633 if test "${ac_cv_type_long_long+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 else
16636 cat >conftest.$ac_ext <<_ACEOF
16637 /* confdefs.h. */
16638 _ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16642 $ac_includes_default
16643 int
16644 main ()
16645 {
16646 if ((long long *) 0)
16647 return 0;
16648 if (sizeof (long long))
16649 return 0;
16650 ;
16651 return 0;
16652 }
16653 _ACEOF
16654 rm -f conftest.$ac_objext
16655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16656 (eval $ac_compile) 2>conftest.er1
16657 ac_status=$?
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -z "$ac_c_werror_flag"
16664 || test ! -s conftest.err'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_type_long_long=yes
16677 else
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 ac_cv_type_long_long=no
16682 fi
16683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16684 fi
16685 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16686 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16687
16688 echo "$as_me:$LINENO: checking size of long long" >&5
16689 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16690 if test "${ac_cv_sizeof_long_long+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 else
16693 if test "$ac_cv_type_long_long" = yes; then
16694 # The cast to unsigned long works around a bug in the HP C Compiler
16695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16697 # This bug is HP SR number 8606223364.
16698 if test "$cross_compiling" = yes; then
16699 # Depending upon the size, compute the lo and hi bounds.
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h. */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 $ac_includes_default
16707 int
16708 main ()
16709 {
16710 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16711 test_array [0] = 0
16712
16713 ;
16714 return 0;
16715 }
16716 _ACEOF
16717 rm -f conftest.$ac_objext
16718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16719 (eval $ac_compile) 2>conftest.er1
16720 ac_status=$?
16721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -z "$ac_c_werror_flag"
16727 || test ! -s conftest.err'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 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
16739 ac_lo=0 ac_mid=0
16740 while :; do
16741 cat >conftest.$ac_ext <<_ACEOF
16742 /* confdefs.h. */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 $ac_includes_default
16748 int
16749 main ()
16750 {
16751 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16752 test_array [0] = 0
16753
16754 ;
16755 return 0;
16756 }
16757 _ACEOF
16758 rm -f conftest.$ac_objext
16759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16760 (eval $ac_compile) 2>conftest.er1
16761 ac_status=$?
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
16767 { ac_try='test -z "$ac_c_werror_flag"
16768 || test ! -s conftest.err'
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; } &&
16774 { ac_try='test -s conftest.$ac_objext'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_hi=$ac_mid; break
16781 else
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16784
16785 ac_lo=`expr $ac_mid + 1`
16786 if test $ac_lo -le $ac_mid; then
16787 ac_lo= ac_hi=
16788 break
16789 fi
16790 ac_mid=`expr 2 '*' $ac_mid + 1`
16791 fi
16792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16793 done
16794 else
16795 echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16797
16798 cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h. */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 $ac_includes_default
16805 int
16806 main ()
16807 {
16808 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16809 test_array [0] = 0
16810
16811 ;
16812 return 0;
16813 }
16814 _ACEOF
16815 rm -f conftest.$ac_objext
16816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16817 (eval $ac_compile) 2>conftest.er1
16818 ac_status=$?
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_c_werror_flag"
16825 || test ! -s conftest.err'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest.$ac_objext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_hi=-1 ac_mid=-1
16838 while :; do
16839 cat >conftest.$ac_ext <<_ACEOF
16840 /* confdefs.h. */
16841 _ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h. */
16845 $ac_includes_default
16846 int
16847 main ()
16848 {
16849 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16850 test_array [0] = 0
16851
16852 ;
16853 return 0;
16854 }
16855 _ACEOF
16856 rm -f conftest.$ac_objext
16857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858 (eval $ac_compile) 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag"
16866 || test ! -s conftest.err'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; } &&
16872 { ac_try='test -s conftest.$ac_objext'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_lo=$ac_mid; break
16879 else
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16882
16883 ac_hi=`expr '(' $ac_mid ')' - 1`
16884 if test $ac_mid -le $ac_hi; then
16885 ac_lo= ac_hi=
16886 break
16887 fi
16888 ac_mid=`expr 2 '*' $ac_mid`
16889 fi
16890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16891 done
16892 else
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16895
16896 ac_lo= ac_hi=
16897 fi
16898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16899 fi
16900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16901 # Binary search between lo and hi bounds.
16902 while test "x$ac_lo" != "x$ac_hi"; do
16903 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16904 cat >conftest.$ac_ext <<_ACEOF
16905 /* confdefs.h. */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 $ac_includes_default
16911 int
16912 main ()
16913 {
16914 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16915 test_array [0] = 0
16916
16917 ;
16918 return 0;
16919 }
16920 _ACEOF
16921 rm -f conftest.$ac_objext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16923 (eval $ac_compile) 2>conftest.er1
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
16930 { ac_try='test -z "$ac_c_werror_flag"
16931 || test ! -s conftest.err'
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 ac_hi=$ac_mid
16944 else
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16947
16948 ac_lo=`expr '(' $ac_mid ')' + 1`
16949 fi
16950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16951 done
16952 case $ac_lo in
16953 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16954 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16955 See \`config.log' for more details." >&5
16956 echo "$as_me: error: cannot compute sizeof (long long), 77
16957 See \`config.log' for more details." >&2;}
16958 { (exit 1); exit 1; }; } ;;
16959 esac
16960 else
16961 if test "$cross_compiling" = yes; then
16962 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16963 See \`config.log' for more details." >&5
16964 echo "$as_me: error: cannot run test program while cross compiling
16965 See \`config.log' for more details." >&2;}
16966 { (exit 1); exit 1; }; }
16967 else
16968 cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h. */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 $ac_includes_default
16975 long longval () { return (long) (sizeof (long long)); }
16976 unsigned long ulongval () { return (long) (sizeof (long long)); }
16977 #include <stdio.h>
16978 #include <stdlib.h>
16979 int
16980 main ()
16981 {
16982
16983 FILE *f = fopen ("conftest.val", "w");
16984 if (! f)
16985 exit (1);
16986 if (((long) (sizeof (long long))) < 0)
16987 {
16988 long i = longval ();
16989 if (i != ((long) (sizeof (long long))))
16990 exit (1);
16991 fprintf (f, "%ld\n", i);
16992 }
16993 else
16994 {
16995 unsigned long i = ulongval ();
16996 if (i != ((long) (sizeof (long long))))
16997 exit (1);
16998 fprintf (f, "%lu\n", i);
16999 }
17000 exit (ferror (f) || fclose (f) != 0);
17001
17002 ;
17003 return 0;
17004 }
17005 _ACEOF
17006 rm -f conftest$ac_exeext
17007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17008 (eval $ac_link) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_cv_sizeof_long_long=`cat conftest.val`
17018 else
17019 echo "$as_me: program exited with status $ac_status" >&5
17020 echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023 ( exit $ac_status )
17024 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17025 See \`config.log' for more details." >&5
17026 echo "$as_me: error: cannot compute sizeof (long long), 77
17027 See \`config.log' for more details." >&2;}
17028 { (exit 1); exit 1; }; }
17029 fi
17030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17031 fi
17032 fi
17033 rm -f conftest.val
17034 else
17035 ac_cv_sizeof_long_long=0
17036 fi
17037 fi
17038 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17039 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17040 cat >>confdefs.h <<_ACEOF
17041 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17042 _ACEOF
17043
17044
17045 ;;
17046 *-hp-hpux* )
17047 echo "$as_me:$LINENO: checking for long long" >&5
17048 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17049 if test "${ac_cv_type_long_long+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052 cat >conftest.$ac_ext <<_ACEOF
17053 /* confdefs.h. */
17054 _ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h. */
17058 $ac_includes_default
17059 int
17060 main ()
17061 {
17062 if ((long long *) 0)
17063 return 0;
17064 if (sizeof (long long))
17065 return 0;
17066 ;
17067 return 0;
17068 }
17069 _ACEOF
17070 rm -f conftest.$ac_objext
17071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17072 (eval $ac_compile) 2>conftest.er1
17073 ac_status=$?
17074 grep -v '^ *+' conftest.er1 >conftest.err
17075 rm -f conftest.er1
17076 cat conftest.err >&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
17079 { ac_try='test -z "$ac_c_werror_flag"
17080 || test ! -s conftest.err'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest.$ac_objext'
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 ac_cv_type_long_long=yes
17093 else
17094 echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17096
17097 ac_cv_type_long_long=no
17098 fi
17099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17100 fi
17101 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17102 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17103
17104 echo "$as_me:$LINENO: checking size of long long" >&5
17105 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17106 if test "${ac_cv_sizeof_long_long+set}" = set; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109 if test "$ac_cv_type_long_long" = yes; then
17110 # The cast to unsigned long works around a bug in the HP C Compiler
17111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17113 # This bug is HP SR number 8606223364.
17114 if test "$cross_compiling" = yes; then
17115 # Depending upon the size, compute the lo and hi bounds.
17116 cat >conftest.$ac_ext <<_ACEOF
17117 /* confdefs.h. */
17118 _ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h. */
17122 $ac_includes_default
17123 int
17124 main ()
17125 {
17126 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17127 test_array [0] = 0
17128
17129 ;
17130 return 0;
17131 }
17132 _ACEOF
17133 rm -f conftest.$ac_objext
17134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17135 (eval $ac_compile) 2>conftest.er1
17136 ac_status=$?
17137 grep -v '^ *+' conftest.er1 >conftest.err
17138 rm -f conftest.er1
17139 cat conftest.err >&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } &&
17142 { ac_try='test -z "$ac_c_werror_flag"
17143 || test ! -s conftest.err'
17144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145 (eval $ac_try) 2>&5
17146 ac_status=$?
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; } &&
17149 { ac_try='test -s conftest.$ac_objext'
17150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151 (eval $ac_try) 2>&5
17152 ac_status=$?
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; }; then
17155 ac_lo=0 ac_mid=0
17156 while :; do
17157 cat >conftest.$ac_ext <<_ACEOF
17158 /* confdefs.h. */
17159 _ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17163 $ac_includes_default
17164 int
17165 main ()
17166 {
17167 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17168 test_array [0] = 0
17169
17170 ;
17171 return 0;
17172 }
17173 _ACEOF
17174 rm -f conftest.$ac_objext
17175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17176 (eval $ac_compile) 2>conftest.er1
17177 ac_status=$?
17178 grep -v '^ *+' conftest.er1 >conftest.err
17179 rm -f conftest.er1
17180 cat conftest.err >&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } &&
17183 { ac_try='test -z "$ac_c_werror_flag"
17184 || test ! -s conftest.err'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest.$ac_objext'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196 ac_hi=$ac_mid; break
17197 else
17198 echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17200
17201 ac_lo=`expr $ac_mid + 1`
17202 if test $ac_lo -le $ac_mid; then
17203 ac_lo= ac_hi=
17204 break
17205 fi
17206 ac_mid=`expr 2 '*' $ac_mid + 1`
17207 fi
17208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17209 done
17210 else
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17213
17214 cat >conftest.$ac_ext <<_ACEOF
17215 /* confdefs.h. */
17216 _ACEOF
17217 cat confdefs.h >>conftest.$ac_ext
17218 cat >>conftest.$ac_ext <<_ACEOF
17219 /* end confdefs.h. */
17220 $ac_includes_default
17221 int
17222 main ()
17223 {
17224 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17225 test_array [0] = 0
17226
17227 ;
17228 return 0;
17229 }
17230 _ACEOF
17231 rm -f conftest.$ac_objext
17232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17233 (eval $ac_compile) 2>conftest.er1
17234 ac_status=$?
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } &&
17240 { ac_try='test -z "$ac_c_werror_flag"
17241 || test ! -s conftest.err'
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; } &&
17247 { ac_try='test -s conftest.$ac_objext'
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 ac_hi=-1 ac_mid=-1
17254 while :; do
17255 cat >conftest.$ac_ext <<_ACEOF
17256 /* confdefs.h. */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17261 $ac_includes_default
17262 int
17263 main ()
17264 {
17265 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17266 test_array [0] = 0
17267
17268 ;
17269 return 0;
17270 }
17271 _ACEOF
17272 rm -f conftest.$ac_objext
17273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17274 (eval $ac_compile) 2>conftest.er1
17275 ac_status=$?
17276 grep -v '^ *+' conftest.er1 >conftest.err
17277 rm -f conftest.er1
17278 cat conftest.err >&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
17281 { ac_try='test -z "$ac_c_werror_flag"
17282 || test ! -s conftest.err'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17285 ac_status=$?
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; } &&
17288 { ac_try='test -s conftest.$ac_objext'
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
17294 ac_lo=$ac_mid; break
17295 else
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17298
17299 ac_hi=`expr '(' $ac_mid ')' - 1`
17300 if test $ac_mid -le $ac_hi; then
17301 ac_lo= ac_hi=
17302 break
17303 fi
17304 ac_mid=`expr 2 '*' $ac_mid`
17305 fi
17306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17307 done
17308 else
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 ac_lo= ac_hi=
17313 fi
17314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17315 fi
17316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17317 # Binary search between lo and hi bounds.
17318 while test "x$ac_lo" != "x$ac_hi"; do
17319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17320 cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h. */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17326 $ac_includes_default
17327 int
17328 main ()
17329 {
17330 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17331 test_array [0] = 0
17332
17333 ;
17334 return 0;
17335 }
17336 _ACEOF
17337 rm -f conftest.$ac_objext
17338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17339 (eval $ac_compile) 2>conftest.er1
17340 ac_status=$?
17341 grep -v '^ *+' conftest.er1 >conftest.err
17342 rm -f conftest.er1
17343 cat conftest.err >&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } &&
17346 { ac_try='test -z "$ac_c_werror_flag"
17347 || test ! -s conftest.err'
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; } &&
17353 { ac_try='test -s conftest.$ac_objext'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17356 ac_status=$?
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; }; then
17359 ac_hi=$ac_mid
17360 else
17361 echo "$as_me: failed program was:" >&5
17362 sed 's/^/| /' conftest.$ac_ext >&5
17363
17364 ac_lo=`expr '(' $ac_mid ')' + 1`
17365 fi
17366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17367 done
17368 case $ac_lo in
17369 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17370 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17371 See \`config.log' for more details." >&5
17372 echo "$as_me: error: cannot compute sizeof (long long), 77
17373 See \`config.log' for more details." >&2;}
17374 { (exit 1); exit 1; }; } ;;
17375 esac
17376 else
17377 if test "$cross_compiling" = yes; then
17378 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17379 See \`config.log' for more details." >&5
17380 echo "$as_me: error: cannot run test program while cross compiling
17381 See \`config.log' for more details." >&2;}
17382 { (exit 1); exit 1; }; }
17383 else
17384 cat >conftest.$ac_ext <<_ACEOF
17385 /* confdefs.h. */
17386 _ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h. */
17390 $ac_includes_default
17391 long longval () { return (long) (sizeof (long long)); }
17392 unsigned long ulongval () { return (long) (sizeof (long long)); }
17393 #include <stdio.h>
17394 #include <stdlib.h>
17395 int
17396 main ()
17397 {
17398
17399 FILE *f = fopen ("conftest.val", "w");
17400 if (! f)
17401 exit (1);
17402 if (((long) (sizeof (long long))) < 0)
17403 {
17404 long i = longval ();
17405 if (i != ((long) (sizeof (long long))))
17406 exit (1);
17407 fprintf (f, "%ld\n", i);
17408 }
17409 else
17410 {
17411 unsigned long i = ulongval ();
17412 if (i != ((long) (sizeof (long long))))
17413 exit (1);
17414 fprintf (f, "%lu\n", i);
17415 }
17416 exit (ferror (f) || fclose (f) != 0);
17417
17418 ;
17419 return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest$ac_exeext
17423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424 (eval $ac_link) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; }; then
17433 ac_cv_sizeof_long_long=`cat conftest.val`
17434 else
17435 echo "$as_me: program exited with status $ac_status" >&5
17436 echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439 ( exit $ac_status )
17440 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17441 See \`config.log' for more details." >&5
17442 echo "$as_me: error: cannot compute sizeof (long long), 77
17443 See \`config.log' for more details." >&2;}
17444 { (exit 1); exit 1; }; }
17445 fi
17446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17447 fi
17448 fi
17449 rm -f conftest.val
17450 else
17451 ac_cv_sizeof_long_long=0
17452 fi
17453 fi
17454 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17455 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17456 cat >>confdefs.h <<_ACEOF
17457 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17458 _ACEOF
17459
17460
17461 if test "$ac_cv_sizeof_long_long" != "0"; then
17462 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17463 fi
17464 ;;
17465 * )
17466 echo "$as_me:$LINENO: checking for long long" >&5
17467 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17468 if test "${ac_cv_type_long_long+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17470 else
17471 cat >conftest.$ac_ext <<_ACEOF
17472 /* confdefs.h. */
17473 _ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h. */
17477 $ac_includes_default
17478 int
17479 main ()
17480 {
17481 if ((long long *) 0)
17482 return 0;
17483 if (sizeof (long long))
17484 return 0;
17485 ;
17486 return 0;
17487 }
17488 _ACEOF
17489 rm -f conftest.$ac_objext
17490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17491 (eval $ac_compile) 2>conftest.er1
17492 ac_status=$?
17493 grep -v '^ *+' conftest.er1 >conftest.err
17494 rm -f conftest.er1
17495 cat conftest.err >&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } &&
17498 { ac_try='test -z "$ac_c_werror_flag"
17499 || test ! -s conftest.err'
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); }; } &&
17505 { ac_try='test -s conftest.$ac_objext'
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 ac_cv_type_long_long=yes
17512 else
17513 echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17515
17516 ac_cv_type_long_long=no
17517 fi
17518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17519 fi
17520 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17521 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17522
17523 echo "$as_me:$LINENO: checking size of long long" >&5
17524 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17525 if test "${ac_cv_sizeof_long_long+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528 if test "$ac_cv_type_long_long" = yes; then
17529 # The cast to unsigned long works around a bug in the HP C Compiler
17530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17532 # This bug is HP SR number 8606223364.
17533 if test "$cross_compiling" = yes; then
17534 # Depending upon the size, compute the lo and hi bounds.
17535 cat >conftest.$ac_ext <<_ACEOF
17536 /* confdefs.h. */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17541 $ac_includes_default
17542 int
17543 main ()
17544 {
17545 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17546 test_array [0] = 0
17547
17548 ;
17549 return 0;
17550 }
17551 _ACEOF
17552 rm -f conftest.$ac_objext
17553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17554 (eval $ac_compile) 2>conftest.er1
17555 ac_status=$?
17556 grep -v '^ *+' conftest.er1 >conftest.err
17557 rm -f conftest.er1
17558 cat conftest.err >&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } &&
17561 { ac_try='test -z "$ac_c_werror_flag"
17562 || test ! -s conftest.err'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; } &&
17568 { ac_try='test -s conftest.$ac_objext'
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17574 ac_lo=0 ac_mid=0
17575 while :; do
17576 cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h. */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17582 $ac_includes_default
17583 int
17584 main ()
17585 {
17586 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17587 test_array [0] = 0
17588
17589 ;
17590 return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595 (eval $ac_compile) 2>conftest.er1
17596 ac_status=$?
17597 grep -v '^ *+' conftest.er1 >conftest.err
17598 rm -f conftest.er1
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest.$ac_objext'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ac_hi=$ac_mid; break
17616 else
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17619
17620 ac_lo=`expr $ac_mid + 1`
17621 if test $ac_lo -le $ac_mid; then
17622 ac_lo= ac_hi=
17623 break
17624 fi
17625 ac_mid=`expr 2 '*' $ac_mid + 1`
17626 fi
17627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17628 done
17629 else
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633 cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h. */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17639 $ac_includes_default
17640 int
17641 main ()
17642 {
17643 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17644 test_array [0] = 0
17645
17646 ;
17647 return 0;
17648 }
17649 _ACEOF
17650 rm -f conftest.$ac_objext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17652 (eval $ac_compile) 2>conftest.er1
17653 ac_status=$?
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_c_werror_flag"
17660 || test ! -s conftest.err'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest.$ac_objext'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 ac_hi=-1 ac_mid=-1
17673 while :; do
17674 cat >conftest.$ac_ext <<_ACEOF
17675 /* confdefs.h. */
17676 _ACEOF
17677 cat confdefs.h >>conftest.$ac_ext
17678 cat >>conftest.$ac_ext <<_ACEOF
17679 /* end confdefs.h. */
17680 $ac_includes_default
17681 int
17682 main ()
17683 {
17684 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17685 test_array [0] = 0
17686
17687 ;
17688 return 0;
17689 }
17690 _ACEOF
17691 rm -f conftest.$ac_objext
17692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17693 (eval $ac_compile) 2>conftest.er1
17694 ac_status=$?
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
17700 { ac_try='test -z "$ac_c_werror_flag"
17701 || test ! -s conftest.err'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; } &&
17707 { ac_try='test -s conftest.$ac_objext'
17708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709 (eval $ac_try) 2>&5
17710 ac_status=$?
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); }; }; then
17713 ac_lo=$ac_mid; break
17714 else
17715 echo "$as_me: failed program was:" >&5
17716 sed 's/^/| /' conftest.$ac_ext >&5
17717
17718 ac_hi=`expr '(' $ac_mid ')' - 1`
17719 if test $ac_mid -le $ac_hi; then
17720 ac_lo= ac_hi=
17721 break
17722 fi
17723 ac_mid=`expr 2 '*' $ac_mid`
17724 fi
17725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17726 done
17727 else
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17730
17731 ac_lo= ac_hi=
17732 fi
17733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17734 fi
17735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17736 # Binary search between lo and hi bounds.
17737 while test "x$ac_lo" != "x$ac_hi"; do
17738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17739 cat >conftest.$ac_ext <<_ACEOF
17740 /* confdefs.h. */
17741 _ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17745 $ac_includes_default
17746 int
17747 main ()
17748 {
17749 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17750 test_array [0] = 0
17751
17752 ;
17753 return 0;
17754 }
17755 _ACEOF
17756 rm -f conftest.$ac_objext
17757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17758 (eval $ac_compile) 2>conftest.er1
17759 ac_status=$?
17760 grep -v '^ *+' conftest.er1 >conftest.err
17761 rm -f conftest.er1
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
17765 { ac_try='test -z "$ac_c_werror_flag"
17766 || test ! -s conftest.err'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest.$ac_objext'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 ac_hi=$ac_mid
17779 else
17780 echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17782
17783 ac_lo=`expr '(' $ac_mid ')' + 1`
17784 fi
17785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17786 done
17787 case $ac_lo in
17788 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17789 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17790 See \`config.log' for more details." >&5
17791 echo "$as_me: error: cannot compute sizeof (long long), 77
17792 See \`config.log' for more details." >&2;}
17793 { (exit 1); exit 1; }; } ;;
17794 esac
17795 else
17796 if test "$cross_compiling" = yes; then
17797 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17798 See \`config.log' for more details." >&5
17799 echo "$as_me: error: cannot run test program while cross compiling
17800 See \`config.log' for more details." >&2;}
17801 { (exit 1); exit 1; }; }
17802 else
17803 cat >conftest.$ac_ext <<_ACEOF
17804 /* confdefs.h. */
17805 _ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h. */
17809 $ac_includes_default
17810 long longval () { return (long) (sizeof (long long)); }
17811 unsigned long ulongval () { return (long) (sizeof (long long)); }
17812 #include <stdio.h>
17813 #include <stdlib.h>
17814 int
17815 main ()
17816 {
17817
17818 FILE *f = fopen ("conftest.val", "w");
17819 if (! f)
17820 exit (1);
17821 if (((long) (sizeof (long long))) < 0)
17822 {
17823 long i = longval ();
17824 if (i != ((long) (sizeof (long long))))
17825 exit (1);
17826 fprintf (f, "%ld\n", i);
17827 }
17828 else
17829 {
17830 unsigned long i = ulongval ();
17831 if (i != ((long) (sizeof (long long))))
17832 exit (1);
17833 fprintf (f, "%lu\n", i);
17834 }
17835 exit (ferror (f) || fclose (f) != 0);
17836
17837 ;
17838 return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest$ac_exeext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843 (eval $ac_link) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long_long=`cat conftest.val`
17853 else
17854 echo "$as_me: program exited with status $ac_status" >&5
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858 ( exit $ac_status )
17859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17860 See \`config.log' for more details." >&5
17861 echo "$as_me: error: cannot compute sizeof (long long), 77
17862 See \`config.log' for more details." >&2;}
17863 { (exit 1); exit 1; }; }
17864 fi
17865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17866 fi
17867 fi
17868 rm -f conftest.val
17869 else
17870 ac_cv_sizeof_long_long=0
17871 fi
17872 fi
17873 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17874 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17875 cat >>confdefs.h <<_ACEOF
17876 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17877 _ACEOF
17878
17879
17880 esac
17881
17882 echo "$as_me:$LINENO: checking size of wchar_t" >&5
17883 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17884 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887
17888 if test "$cross_compiling" = yes; then
17889
17890 case "${host}" in
17891 *-pc-msdosdjgpp )
17892 wx_cv_sizeof_wchar_t=0
17893 ;;
17894 * )
17895 wx_cv_sizeof_wchar_t=4
17896 ;;
17897 esac
17898
17899
17900 else
17901 cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h. */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907
17908 /* DJGPP only has fake wchar_t: */
17909 #ifdef __DJGPP__
17910 # error "fake wchar_t"
17911 #endif
17912 #ifdef HAVE_WCHAR_H
17913 # ifdef __CYGWIN__
17914 # include <stddef.h>
17915 # endif
17916 # include <wchar.h>
17917 #endif
17918 #ifdef HAVE_STDLIB_H
17919 # include <stdlib.h>
17920 #endif
17921 #include <stdio.h>
17922 int main()
17923 {
17924 FILE *f=fopen("conftestval", "w");
17925 if (!f) exit(1);
17926 fprintf(f, "%i", sizeof(wchar_t));
17927 exit(0);
17928 }
17929
17930 _ACEOF
17931 rm -f conftest$ac_exeext
17932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17933 (eval $ac_link) 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942 wx_cv_sizeof_wchar_t=`cat conftestval`
17943 else
17944 echo "$as_me: program exited with status $ac_status" >&5
17945 echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17947
17948 ( exit $ac_status )
17949 wx_cv_sizeof_wchar_t=0
17950 fi
17951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17952 fi
17953
17954 fi
17955 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17956 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
17957
17958 cat >>confdefs.h <<_ACEOF
17959 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
17960 _ACEOF
17961
17962
17963 # Check whether --enable-largefile or --disable-largefile was given.
17964 if test "${enable_largefile+set}" = set; then
17965 enableval="$enable_largefile"
17966
17967 fi;
17968 if test "$enable_largefile" != no; then
17969 wx_largefile=no
17970
17971 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17972 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17973 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 else
17976
17977 cat >conftest.$ac_ext <<_ACEOF
17978 /* confdefs.h. */
17979 _ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17983 #define _FILE_OFFSET_BITS 64
17984 #include <sys/types.h>
17985 int
17986 main ()
17987 {
17988 typedef struct {
17989 unsigned int field: sizeof(off_t) == 8;
17990 } wxlf;
17991
17992 ;
17993 return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext
17997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17998 (eval $ac_compile) 2>conftest.er1
17999 ac_status=$?
18000 grep -v '^ *+' conftest.er1 >conftest.err
18001 rm -f conftest.er1
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
18005 { ac_try='test -z "$ac_c_werror_flag"
18006 || test ! -s conftest.err'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; } &&
18012 { ac_try='test -s conftest.$ac_objext'
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18015 ac_status=$?
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; }; then
18018 ac_cv_sys_file_offset_bits=64
18019 else
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023 ac_cv_sys_file_offset_bits=no
18024 fi
18025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18026
18027
18028 fi
18029 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18030 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18031
18032 if test "$ac_cv_sys_file_offset_bits" != no; then
18033 wx_largefile=yes
18034 cat >>confdefs.h <<_ACEOF
18035 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18036 _ACEOF
18037
18038 fi
18039
18040 if test "x$wx_largefile" != "xyes"; then
18041
18042 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18043 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18044 if test "${ac_cv_sys_large_files+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 else
18047
18048 cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h. */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 #define _LARGE_FILES 1
18055 #include <sys/types.h>
18056 int
18057 main ()
18058 {
18059 typedef struct {
18060 unsigned int field: sizeof(off_t) == 8;
18061 } wxlf;
18062
18063 ;
18064 return 0;
18065 }
18066 _ACEOF
18067 rm -f conftest.$ac_objext
18068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18069 (eval $ac_compile) 2>conftest.er1
18070 ac_status=$?
18071 grep -v '^ *+' conftest.er1 >conftest.err
18072 rm -f conftest.er1
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } &&
18076 { ac_try='test -z "$ac_c_werror_flag"
18077 || test ! -s conftest.err'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } &&
18083 { ac_try='test -s conftest.$ac_objext'
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
18089 ac_cv_sys_large_files=1
18090 else
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18093
18094 ac_cv_sys_large_files=no
18095 fi
18096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18097
18098
18099 fi
18100 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18101 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18102
18103 if test "$ac_cv_sys_large_files" != no; then
18104 wx_largefile=yes
18105 cat >>confdefs.h <<_ACEOF
18106 #define _LARGE_FILES $ac_cv_sys_large_files
18107 _ACEOF
18108
18109 fi
18110
18111 fi
18112
18113 echo "$as_me:$LINENO: checking if large file support is available" >&5
18114 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18115 if test "x$wx_largefile" = "xyes"; then
18116 cat >>confdefs.h <<\_ACEOF
18117 #define HAVE_LARGEFILE_SUPPORT 1
18118 _ACEOF
18119
18120 fi
18121 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18122 echo "${ECHO_T}$wx_largefile" >&6
18123 fi
18124
18125
18126 if test "x$wx_largefile" = "xyes"; then
18127 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18128 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18129 else
18130 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18131 fi
18132 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18133 fi
18134
18135 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18136 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18137 if test "${ac_cv_c_bigendian+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140 ac_cv_c_bigendian=unknown
18141 # See if sys/param.h defines the BYTE_ORDER macro.
18142 cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h. */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18148 #include <sys/types.h>
18149 #include <sys/param.h>
18150 int
18151 main ()
18152 {
18153
18154 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18155 bogus endian macros
18156 #endif
18157 ;
18158 return 0;
18159 }
18160 _ACEOF
18161 rm -f conftest.$ac_objext
18162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18163 (eval $ac_compile) 2>conftest.er1
18164 ac_status=$?
18165 grep -v '^ *+' conftest.er1 >conftest.err
18166 rm -f conftest.er1
18167 cat conftest.err >&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
18170 { ac_try='test -z "$ac_c_werror_flag"
18171 || test ! -s conftest.err'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; } &&
18177 { ac_try='test -s conftest.$ac_objext'
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; }; then
18183 # It does; now see whether it defined to BIG_ENDIAN or not.
18184 cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h. */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 #include <sys/types.h>
18191 #include <sys/param.h>
18192 int
18193 main ()
18194 {
18195
18196 #if BYTE_ORDER != BIG_ENDIAN
18197 not big endian
18198 #endif
18199 ;
18200 return 0;
18201 }
18202 _ACEOF
18203 rm -f conftest.$ac_objext
18204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18205 (eval $ac_compile) 2>conftest.er1
18206 ac_status=$?
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try='test -z "$ac_c_werror_flag"
18213 || test ! -s conftest.err'
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; } &&
18219 { ac_try='test -s conftest.$ac_objext'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
18225 ac_cv_c_bigendian=yes
18226 else
18227 echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18229
18230 ac_cv_c_bigendian=no
18231 fi
18232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18233 else
18234 echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18236
18237 fi
18238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18239 if test $ac_cv_c_bigendian = unknown; then
18240 if test "$cross_compiling" = yes; then
18241 ac_cv_c_bigendian=unknown
18242 else
18243 cat >conftest.$ac_ext <<_ACEOF
18244 /* confdefs.h. */
18245 _ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h. */
18249 main () {
18250 /* Are we little or big endian? From Harbison&Steele. */
18251 union
18252 {
18253 long l;
18254 char c[sizeof (long)];
18255 } u;
18256 u.l = 1;
18257 exit (u.c[sizeof (long) - 1] == 1);
18258 }
18259 _ACEOF
18260 rm -f conftest$ac_exeext
18261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18262 (eval $ac_link) 2>&5
18263 ac_status=$?
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18271 ac_cv_c_bigendian=no
18272 else
18273 echo "$as_me: program exited with status $ac_status" >&5
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18276
18277 ( exit $ac_status )
18278 ac_cv_c_bigendian=yes
18279 fi
18280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18281 fi
18282 fi
18283 fi
18284 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18285 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18286 if test $ac_cv_c_bigendian = unknown; then
18287 { 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
18288 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;}
18289 fi
18290 if test $ac_cv_c_bigendian = yes; then
18291 cat >>confdefs.h <<\_ACEOF
18292 #define WORDS_BIGENDIAN 1
18293 _ACEOF
18294
18295 fi
18296
18297
18298 ac_ext=cc
18299 ac_cpp='$CXXCPP $CPPFLAGS'
18300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18303 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18304 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18305 if test -z "$CXXCPP"; then
18306 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309 # Double quotes because CXXCPP needs to be expanded
18310 for CXXCPP in "$CXX -E" "/lib/cpp"
18311 do
18312 ac_preproc_ok=false
18313 for ac_cxx_preproc_warn_flag in '' yes
18314 do
18315 # Use a header file that comes with gcc, so configuring glibc
18316 # with a fresh cross-compiler works.
18317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18318 # <limits.h> exists even on freestanding compilers.
18319 # On the NeXT, cc -E runs the code through the compiler's parser,
18320 # not just through cpp. "Syntax error" is here to catch this case.
18321 cat >conftest.$ac_ext <<_ACEOF
18322 /* confdefs.h. */
18323 _ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18327 #ifdef __STDC__
18328 # include <limits.h>
18329 #else
18330 # include <assert.h>
18331 #endif
18332 Syntax error
18333 _ACEOF
18334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18336 ac_status=$?
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } >/dev/null; then
18342 if test -s conftest.err; then
18343 ac_cpp_err=$ac_cxx_preproc_warn_flag
18344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18345 else
18346 ac_cpp_err=
18347 fi
18348 else
18349 ac_cpp_err=yes
18350 fi
18351 if test -z "$ac_cpp_err"; then
18352 :
18353 else
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18356
18357 # Broken: fails on valid input.
18358 continue
18359 fi
18360 rm -f conftest.err conftest.$ac_ext
18361
18362 # OK, works on sane cases. Now check whether non-existent headers
18363 # can be detected and how.
18364 cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h. */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18370 #include <ac_nonexistent.h>
18371 _ACEOF
18372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18374 ac_status=$?
18375 grep -v '^ *+' conftest.er1 >conftest.err
18376 rm -f conftest.er1
18377 cat conftest.err >&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } >/dev/null; then
18380 if test -s conftest.err; then
18381 ac_cpp_err=$ac_cxx_preproc_warn_flag
18382 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18383 else
18384 ac_cpp_err=
18385 fi
18386 else
18387 ac_cpp_err=yes
18388 fi
18389 if test -z "$ac_cpp_err"; then
18390 # Broken: success on invalid input.
18391 continue
18392 else
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18395
18396 # Passes both tests.
18397 ac_preproc_ok=:
18398 break
18399 fi
18400 rm -f conftest.err conftest.$ac_ext
18401
18402 done
18403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18404 rm -f conftest.err conftest.$ac_ext
18405 if $ac_preproc_ok; then
18406 break
18407 fi
18408
18409 done
18410 ac_cv_prog_CXXCPP=$CXXCPP
18411
18412 fi
18413 CXXCPP=$ac_cv_prog_CXXCPP
18414 else
18415 ac_cv_prog_CXXCPP=$CXXCPP
18416 fi
18417 echo "$as_me:$LINENO: result: $CXXCPP" >&5
18418 echo "${ECHO_T}$CXXCPP" >&6
18419 ac_preproc_ok=false
18420 for ac_cxx_preproc_warn_flag in '' yes
18421 do
18422 # Use a header file that comes with gcc, so configuring glibc
18423 # with a fresh cross-compiler works.
18424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18425 # <limits.h> exists even on freestanding compilers.
18426 # On the NeXT, cc -E runs the code through the compiler's parser,
18427 # not just through cpp. "Syntax error" is here to catch this case.
18428 cat >conftest.$ac_ext <<_ACEOF
18429 /* confdefs.h. */
18430 _ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18434 #ifdef __STDC__
18435 # include <limits.h>
18436 #else
18437 # include <assert.h>
18438 #endif
18439 Syntax error
18440 _ACEOF
18441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18443 ac_status=$?
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } >/dev/null; then
18449 if test -s conftest.err; then
18450 ac_cpp_err=$ac_cxx_preproc_warn_flag
18451 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18452 else
18453 ac_cpp_err=
18454 fi
18455 else
18456 ac_cpp_err=yes
18457 fi
18458 if test -z "$ac_cpp_err"; then
18459 :
18460 else
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 # Broken: fails on valid input.
18465 continue
18466 fi
18467 rm -f conftest.err conftest.$ac_ext
18468
18469 # OK, works on sane cases. Now check whether non-existent headers
18470 # can be detected and how.
18471 cat >conftest.$ac_ext <<_ACEOF
18472 /* confdefs.h. */
18473 _ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18477 #include <ac_nonexistent.h>
18478 _ACEOF
18479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18481 ac_status=$?
18482 grep -v '^ *+' conftest.er1 >conftest.err
18483 rm -f conftest.er1
18484 cat conftest.err >&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } >/dev/null; then
18487 if test -s conftest.err; then
18488 ac_cpp_err=$ac_cxx_preproc_warn_flag
18489 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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 # Broken: success on invalid input.
18498 continue
18499 else
18500 echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18502
18503 # Passes both tests.
18504 ac_preproc_ok=:
18505 break
18506 fi
18507 rm -f conftest.err conftest.$ac_ext
18508
18509 done
18510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18511 rm -f conftest.err conftest.$ac_ext
18512 if $ac_preproc_ok; then
18513 :
18514 else
18515 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18516 See \`config.log' for more details." >&5
18517 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18518 See \`config.log' for more details." >&2;}
18519 { (exit 1); exit 1; }; }
18520 fi
18521
18522 ac_ext=cc
18523 ac_cpp='$CXXCPP $CPPFLAGS'
18524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18527
18528
18529
18530 if test "$cross_compiling" = "yes"; then
18531 cat >>confdefs.h <<\_ACEOF
18532 #define wxUSE_IOSTREAMH 1
18533 _ACEOF
18534
18535 else
18536
18537
18538 ac_ext=cc
18539 ac_cpp='$CXXCPP $CPPFLAGS'
18540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18543
18544
18545
18546 for ac_header in iostream
18547 do
18548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18550 echo "$as_me:$LINENO: checking for $ac_header" >&5
18551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18554 fi
18555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18557 else
18558 # Is the header compilable?
18559 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h. */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 $ac_includes_default
18568 #include <$ac_header>
18569 _ACEOF
18570 rm -f conftest.$ac_objext
18571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18572 (eval $ac_compile) 2>conftest.er1
18573 ac_status=$?
18574 grep -v '^ *+' conftest.er1 >conftest.err
18575 rm -f conftest.er1
18576 cat conftest.err >&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
18579 { ac_try='test -z "$ac_cxx_werror_flag"
18580 || test ! -s conftest.err'
18581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582 (eval $ac_try) 2>&5
18583 ac_status=$?
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; } &&
18586 { ac_try='test -s conftest.$ac_objext'
18587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588 (eval $ac_try) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; }; then
18592 ac_header_compiler=yes
18593 else
18594 echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18596
18597 ac_header_compiler=no
18598 fi
18599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18601 echo "${ECHO_T}$ac_header_compiler" >&6
18602
18603 # Is the header present?
18604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18606 cat >conftest.$ac_ext <<_ACEOF
18607 /* confdefs.h. */
18608 _ACEOF
18609 cat confdefs.h >>conftest.$ac_ext
18610 cat >>conftest.$ac_ext <<_ACEOF
18611 /* end confdefs.h. */
18612 #include <$ac_header>
18613 _ACEOF
18614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } >/dev/null; then
18622 if test -s conftest.err; then
18623 ac_cpp_err=$ac_cxx_preproc_warn_flag
18624 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18625 else
18626 ac_cpp_err=
18627 fi
18628 else
18629 ac_cpp_err=yes
18630 fi
18631 if test -z "$ac_cpp_err"; then
18632 ac_header_preproc=yes
18633 else
18634 echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18636
18637 ac_header_preproc=no
18638 fi
18639 rm -f conftest.err conftest.$ac_ext
18640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18641 echo "${ECHO_T}$ac_header_preproc" >&6
18642
18643 # So? What about this header?
18644 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18645 yes:no: )
18646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18650 ac_header_preproc=yes
18651 ;;
18652 no:yes:* )
18653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18665 (
18666 cat <<\_ASBOX
18667 ## ----------------------------------------- ##
18668 ## Report this to wx-dev@lists.wxwindows.org ##
18669 ## ----------------------------------------- ##
18670 _ASBOX
18671 ) |
18672 sed "s/^/$as_me: WARNING: /" >&2
18673 ;;
18674 esac
18675 echo "$as_me:$LINENO: checking for $ac_header" >&5
18676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18679 else
18680 eval "$as_ac_Header=\$ac_header_preproc"
18681 fi
18682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18684
18685 fi
18686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18687 cat >>confdefs.h <<_ACEOF
18688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18689 _ACEOF
18690
18691 fi
18692
18693 done
18694
18695
18696 if test "$ac_cv_header_iostream" = "yes" ; then
18697 :
18698 else
18699 cat >>confdefs.h <<\_ACEOF
18700 #define wxUSE_IOSTREAMH 1
18701 _ACEOF
18702
18703 fi
18704
18705 ac_ext=c
18706 ac_cpp='$CPP $CPPFLAGS'
18707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18710
18711 fi
18712
18713
18714
18715 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18716 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18717 if test "${wx_cv_cpp_bool+set}" = set; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18719 else
18720
18721
18722
18723 ac_ext=cc
18724 ac_cpp='$CXXCPP $CPPFLAGS'
18725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18728
18729
18730 cat >conftest.$ac_ext <<_ACEOF
18731 /* confdefs.h. */
18732 _ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18736
18737
18738 int
18739 main ()
18740 {
18741
18742 bool b = true;
18743
18744 return 0;
18745
18746 ;
18747 return 0;
18748 }
18749 _ACEOF
18750 rm -f conftest.$ac_objext
18751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18752 (eval $ac_compile) 2>conftest.er1
18753 ac_status=$?
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_cxx_werror_flag"
18760 || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try='test -s conftest.$ac_objext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772
18773 wx_cv_cpp_bool=yes
18774
18775 else
18776 echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18778
18779
18780 wx_cv_cpp_bool=no
18781
18782
18783 fi
18784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18785
18786 ac_ext=c
18787 ac_cpp='$CPP $CPPFLAGS'
18788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18791
18792
18793 fi
18794 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18795 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18796
18797 if test "$wx_cv_cpp_bool" = "yes"; then
18798 cat >>confdefs.h <<\_ACEOF
18799 #define HAVE_BOOL 1
18800 _ACEOF
18801
18802 fi
18803
18804
18805
18806 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18807 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18808 if test "${wx_cv_explicit+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18810 else
18811
18812
18813
18814 ac_ext=cc
18815 ac_cpp='$CXXCPP $CPPFLAGS'
18816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18819
18820
18821 cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h. */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18827
18828 class Foo { public: explicit Foo(int) {} };
18829
18830 int
18831 main ()
18832 {
18833
18834 return 0;
18835
18836 ;
18837 return 0;
18838 }
18839 _ACEOF
18840 rm -f conftest.$ac_objext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18842 (eval $ac_compile) 2>conftest.er1
18843 ac_status=$?
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -z "$ac_cxx_werror_flag"
18850 || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest.$ac_objext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862
18863 cat >conftest.$ac_ext <<_ACEOF
18864 /* confdefs.h. */
18865 _ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h. */
18869
18870 class Foo { public: explicit Foo(int) {} };
18871 static void TakeFoo(const Foo& foo) { }
18872
18873 int
18874 main ()
18875 {
18876
18877 TakeFoo(17);
18878 return 0;
18879
18880 ;
18881 return 0;
18882 }
18883 _ACEOF
18884 rm -f conftest.$ac_objext
18885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18886 (eval $ac_compile) 2>conftest.er1
18887 ac_status=$?
18888 grep -v '^ *+' conftest.er1 >conftest.err
18889 rm -f conftest.er1
18890 cat conftest.err >&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } &&
18893 { ac_try='test -z "$ac_cxx_werror_flag"
18894 || test ! -s conftest.err'
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18897 ac_status=$?
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; } &&
18900 { ac_try='test -s conftest.$ac_objext'
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18906 wx_cv_explicit=no
18907 else
18908 echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18910
18911 wx_cv_explicit=yes
18912
18913 fi
18914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18915
18916 else
18917 echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.$ac_ext >&5
18919
18920 wx_cv_explicit=no
18921
18922 fi
18923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18924
18925 ac_ext=c
18926 ac_cpp='$CPP $CPPFLAGS'
18927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18930
18931
18932 fi
18933 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18934 echo "${ECHO_T}$wx_cv_explicit" >&6
18935
18936 if test "$wx_cv_explicit" = "yes"; then
18937 cat >>confdefs.h <<\_ACEOF
18938 #define HAVE_EXPLICIT 1
18939 _ACEOF
18940
18941 fi
18942
18943
18944 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18945 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18946 if test "${ac_cv_cxx_const_cast+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18948 else
18949
18950
18951 ac_ext=cc
18952 ac_cpp='$CXXCPP $CPPFLAGS'
18953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18956
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h. */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963
18964 int
18965 main ()
18966 {
18967 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
18968 ;
18969 return 0;
18970 }
18971 _ACEOF
18972 rm -f conftest.$ac_objext
18973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18974 (eval $ac_compile) 2>conftest.er1
18975 ac_status=$?
18976 grep -v '^ *+' conftest.er1 >conftest.err
18977 rm -f conftest.er1
18978 cat conftest.err >&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } &&
18981 { ac_try='test -z "$ac_cxx_werror_flag"
18982 || test ! -s conftest.err'
18983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984 (eval $ac_try) 2>&5
18985 ac_status=$?
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; } &&
18988 { ac_try='test -s conftest.$ac_objext'
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18994 ac_cv_cxx_const_cast=yes
18995 else
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18998
18999 ac_cv_cxx_const_cast=no
19000 fi
19001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19002 ac_ext=c
19003 ac_cpp='$CPP $CPPFLAGS'
19004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19007
19008
19009 fi
19010 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19011 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19012 if test "$ac_cv_cxx_const_cast" = yes; then
19013
19014 cat >>confdefs.h <<\_ACEOF
19015 #define HAVE_CONST_CAST
19016 _ACEOF
19017
19018 fi
19019
19020 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19021 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19022 if test "${ac_cv_cxx_static_cast+set}" = set; then
19023 echo $ECHO_N "(cached) $ECHO_C" >&6
19024 else
19025
19026
19027 ac_ext=cc
19028 ac_cpp='$CXXCPP $CPPFLAGS'
19029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19032
19033 cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h. */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039 #include <typeinfo>
19040 class Base { public : Base () {} virtual void f () = 0; };
19041 class Derived : public Base { public : Derived () {} virtual void f () {} };
19042 int g (Derived&) { return 0; }
19043 int
19044 main ()
19045 {
19046
19047 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19048 ;
19049 return 0;
19050 }
19051 _ACEOF
19052 rm -f conftest.$ac_objext
19053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19054 (eval $ac_compile) 2>conftest.er1
19055 ac_status=$?
19056 grep -v '^ *+' conftest.er1 >conftest.err
19057 rm -f conftest.er1
19058 cat conftest.err >&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); } &&
19061 { ac_try='test -z "$ac_cxx_werror_flag"
19062 || test ! -s conftest.err'
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); }; } &&
19068 { ac_try='test -s conftest.$ac_objext'
19069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070 (eval $ac_try) 2>&5
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; }; then
19074 ac_cv_cxx_static_cast=yes
19075 else
19076 echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19078
19079 ac_cv_cxx_static_cast=no
19080 fi
19081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19082 ac_ext=c
19083 ac_cpp='$CPP $CPPFLAGS'
19084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19087
19088
19089 fi
19090 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19091 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19092 if test "$ac_cv_cxx_static_cast" = yes; then
19093
19094 cat >>confdefs.h <<\_ACEOF
19095 #define HAVE_STATIC_CAST
19096 _ACEOF
19097
19098 fi
19099
19100
19101 if test "$wxUSE_STL" = "yes"; then
19102 ac_ext=cc
19103 ac_cpp='$CXXCPP $CPPFLAGS'
19104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19107
19108
19109 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19110 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19111 cat >conftest.$ac_ext <<_ACEOF
19112 /* confdefs.h. */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117 #include <string>
19118 #include <functional>
19119 #include <algorithm>
19120 #include <vector>
19121 #include <list>
19122 int
19123 main ()
19124 {
19125 std::vector<int> moo;
19126 std::list<int> foo;
19127 std::vector<int>::iterator it =
19128 std::find_if(moo.begin(), moo.end(),
19129 std::bind2nd(std::less<int>(), 3));
19130 ;
19131 return 0;
19132 }
19133 _ACEOF
19134 rm -f conftest.$ac_objext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19136 (eval $ac_compile) 2>conftest.er1
19137 ac_status=$?
19138 grep -v '^ *+' conftest.er1 >conftest.err
19139 rm -f conftest.er1
19140 cat conftest.err >&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
19143 { ac_try='test -z "$ac_cxx_werror_flag"
19144 || test ! -s conftest.err'
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest.$ac_objext'
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; }; then
19156 echo "$as_me:$LINENO: result: yes" >&5
19157 echo "${ECHO_T}yes" >&6
19158 else
19159 echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19161
19162 echo "$as_me:$LINENO: result: no" >&5
19163 echo "${ECHO_T}no" >&6
19164 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19165 echo "$as_me: error: Basic STL functionality missing" >&2;}
19166 { (exit 1); exit 1; }; }
19167 fi
19168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19169
19170 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19171 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19172 cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h. */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19178 #include <string>
19179 int
19180 main ()
19181 {
19182 std::wstring foo;
19183 ;
19184 return 0;
19185 }
19186 _ACEOF
19187 rm -f conftest.$ac_objext
19188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19189 (eval $ac_compile) 2>conftest.er1
19190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
19196 { ac_try='test -z "$ac_cxx_werror_flag"
19197 || test ! -s conftest.err'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest.$ac_objext'
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209 echo "$as_me:$LINENO: result: yes" >&5
19210 echo "${ECHO_T}yes" >&6
19211 cat >>confdefs.h <<\_ACEOF
19212 #define HAVE_STD_WSTRING 1
19213 _ACEOF
19214
19215 else
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 echo "$as_me:$LINENO: result: no" >&5
19220 echo "${ECHO_T}no" >&6
19221 fi
19222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19223
19224 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19225 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19226 cat >conftest.$ac_ext <<_ACEOF
19227 /* confdefs.h. */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 #include <string>
19233 int
19234 main ()
19235 {
19236 std::string foo, bar;
19237 foo.compare(bar);
19238 foo.compare(1, 1, bar);
19239 foo.compare(1, 1, bar, 1, 1);
19240 foo.compare("");
19241 foo.compare(1, 1, "");
19242 foo.compare(1, 1, "", 2);
19243 ;
19244 return 0;
19245 }
19246 _ACEOF
19247 rm -f conftest.$ac_objext
19248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19249 (eval $ac_compile) 2>conftest.er1
19250 ac_status=$?
19251 grep -v '^ *+' conftest.er1 >conftest.err
19252 rm -f conftest.er1
19253 cat conftest.err >&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
19256 { ac_try='test -z "$ac_cxx_werror_flag"
19257 || test ! -s conftest.err'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; } &&
19263 { ac_try='test -s conftest.$ac_objext'
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 echo "$as_me:$LINENO: result: yes" >&5
19270 echo "${ECHO_T}yes" >&6
19271 cat >>confdefs.h <<\_ACEOF
19272 #define HAVE_STD_STRING_COMPARE 1
19273 _ACEOF
19274
19275 else
19276 echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19278
19279 echo "$as_me:$LINENO: result: no" >&5
19280 echo "${ECHO_T}no" >&6
19281 fi
19282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19283
19284 ac_ext=c
19285 ac_cpp='$CPP $CPPFLAGS'
19286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19289
19290 fi
19291
19292
19293 SEARCH_INCLUDE="\
19294 /usr/local/include \
19295 \
19296 /usr/Motif-2.1/include \
19297 /usr/Motif-1.2/include \
19298 /usr/include/Motif1.2 \
19299 /opt/xpm/include/X11 \
19300 /opt/GBxpm/include/ \
19301 /opt/GBxpm/X11/include/ \
19302 \
19303 /usr/dt/include \
19304 /usr/openwin/include \
19305 \
19306 /usr/include/Xm \
19307 \
19308 /usr/X11R6/include \
19309 /usr/X11R6.4/include \
19310 /usr/X11R5/include \
19311 /usr/X11R4/include \
19312 \
19313 /usr/include/X11R6 \
19314 /usr/include/X11R5 \
19315 /usr/include/X11R4 \
19316 \
19317 /usr/local/X11R6/include \
19318 /usr/local/X11R5/include \
19319 /usr/local/X11R4/include \
19320 \
19321 /usr/local/include/X11R6 \
19322 /usr/local/include/X11R5 \
19323 /usr/local/include/X11R4 \
19324 \
19325 /usr/X11/include \
19326 /usr/include/X11 \
19327 /usr/local/X11/include \
19328 /usr/local/include/X11 \
19329 \
19330 /usr/X386/include \
19331 /usr/x386/include \
19332 /usr/XFree86/include/X11 \
19333 \
19334 X:/XFree86/include \
19335 X:/XFree86/include/X11 \
19336 \
19337 /usr/include/gtk \
19338 /usr/local/include/gtk \
19339 /usr/include/glib \
19340 /usr/local/include/glib \
19341 \
19342 /usr/include/qt \
19343 /usr/local/include/qt \
19344 \
19345 /usr/include/windows \
19346 /usr/include/wine \
19347 /usr/local/include/wine \
19348 \
19349 /usr/unsupported/include \
19350 /usr/athena/include \
19351 /usr/local/x11r5/include \
19352 /usr/lpp/Xamples/include \
19353 \
19354 /usr/openwin/share/include"
19355
19356 SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19357
19358
19359 cat >confcache <<\_ACEOF
19360 # This file is a shell script that caches the results of configure
19361 # tests run on this system so they can be shared between configure
19362 # scripts and configure runs, see configure's option --config-cache.
19363 # It is not useful on other systems. If it contains results you don't
19364 # want to keep, you may remove or edit it.
19365 #
19366 # config.status only pays attention to the cache file if you give it
19367 # the --recheck option to rerun configure.
19368 #
19369 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19370 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19371 # following values.
19372
19373 _ACEOF
19374
19375 # The following way of writing the cache mishandles newlines in values,
19376 # but we know of no workaround that is simple, portable, and efficient.
19377 # So, don't put newlines in cache variables' values.
19378 # Ultrix sh set writes to stderr and can't be redirected directly,
19379 # and sets the high bit in the cache file unless we assign to the vars.
19380 {
19381 (set) 2>&1 |
19382 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19383 *ac_space=\ *)
19384 # `set' does not quote correctly, so add quotes (double-quote
19385 # substitution turns \\\\ into \\, and sed turns \\ into \).
19386 sed -n \
19387 "s/'/'\\\\''/g;
19388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19389 ;;
19390 *)
19391 # `set' quotes correctly as required by POSIX, so do not add quotes.
19392 sed -n \
19393 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19394 ;;
19395 esac;
19396 } |
19397 sed '
19398 t clear
19399 : clear
19400 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19401 t end
19402 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19403 : end' >>confcache
19404 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19405 if test -w $cache_file; then
19406 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19407 cat confcache >$cache_file
19408 else
19409 echo "not updating unwritable cache $cache_file"
19410 fi
19411 fi
19412 rm -f confcache
19413
19414 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19415 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19416 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19417 if test "${wx_cv_lib_glibc21+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420
19421 cat >conftest.$ac_ext <<_ACEOF
19422 /* confdefs.h. */
19423 _ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h. */
19427 #include <features.h>
19428 int
19429 main ()
19430 {
19431
19432 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19433 #error not glibc2.1
19434 #endif
19435
19436 ;
19437 return 0;
19438 }
19439 _ACEOF
19440 rm -f conftest.$ac_objext
19441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19442 (eval $ac_compile) 2>conftest.er1
19443 ac_status=$?
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } &&
19449 { ac_try='test -z "$ac_c_werror_flag"
19450 || test ! -s conftest.err'
19451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452 (eval $ac_try) 2>&5
19453 ac_status=$?
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; } &&
19456 { ac_try='test -s conftest.$ac_objext'
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; }; then
19462
19463 wx_cv_lib_glibc21=yes
19464
19465 else
19466 echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19468
19469
19470 wx_cv_lib_glibc21=no
19471
19472
19473 fi
19474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19475
19476 fi
19477 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19478 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
19479 if test "$wx_cv_lib_glibc21" = "yes"; then
19480 cat >>confdefs.h <<\_ACEOF
19481 #define wxHAVE_GLIBC2 1
19482 _ACEOF
19483
19484 fi
19485 fi
19486
19487 if test "x$wx_cv_lib_glibc21" = "xyes"; then
19488 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
19489 cat >>confdefs.h <<\_ACEOF
19490 #define _GNU_SOURCE 1
19491 _ACEOF
19492
19493 fi
19494 fi
19495
19496
19497
19498 if test "$wxUSE_REGEX" != "no"; then
19499 cat >>confdefs.h <<\_ACEOF
19500 #define wxUSE_REGEX 1
19501 _ACEOF
19502
19503
19504 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
19505 { echo "$as_me:$LINENO: WARNING: Unicode build requires built-in regex library, will use it instead" >&5
19506 echo "$as_me: WARNING: Unicode build requires built-in regex library, will use it instead" >&2;}
19507 wxUSE_REGEX=builtin
19508 fi
19509
19510 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
19511 if test "${ac_cv_header_regex_h+set}" = set; then
19512 echo "$as_me:$LINENO: checking for regex.h" >&5
19513 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19514 if test "${ac_cv_header_regex_h+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19516 fi
19517 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19518 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19519 else
19520 # Is the header compilable?
19521 echo "$as_me:$LINENO: checking regex.h usability" >&5
19522 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19523 cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h. */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 $ac_includes_default
19530 #include <regex.h>
19531 _ACEOF
19532 rm -f conftest.$ac_objext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19534 (eval $ac_compile) 2>conftest.er1
19535 ac_status=$?
19536 grep -v '^ *+' conftest.er1 >conftest.err
19537 rm -f conftest.er1
19538 cat conftest.err >&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
19541 { ac_try='test -z "$ac_c_werror_flag"
19542 || test ! -s conftest.err'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try='test -s conftest.$ac_objext'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19554 ac_header_compiler=yes
19555 else
19556 echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19558
19559 ac_header_compiler=no
19560 fi
19561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19563 echo "${ECHO_T}$ac_header_compiler" >&6
19564
19565 # Is the header present?
19566 echo "$as_me:$LINENO: checking regex.h presence" >&5
19567 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19568 cat >conftest.$ac_ext <<_ACEOF
19569 /* confdefs.h. */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19574 #include <regex.h>
19575 _ACEOF
19576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19578 ac_status=$?
19579 grep -v '^ *+' conftest.er1 >conftest.err
19580 rm -f conftest.er1
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } >/dev/null; then
19584 if test -s conftest.err; then
19585 ac_cpp_err=$ac_c_preproc_warn_flag
19586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19587 else
19588 ac_cpp_err=
19589 fi
19590 else
19591 ac_cpp_err=yes
19592 fi
19593 if test -z "$ac_cpp_err"; then
19594 ac_header_preproc=yes
19595 else
19596 echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.$ac_ext >&5
19598
19599 ac_header_preproc=no
19600 fi
19601 rm -f conftest.err conftest.$ac_ext
19602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19603 echo "${ECHO_T}$ac_header_preproc" >&6
19604
19605 # So? What about this header?
19606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19607 yes:no: )
19608 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19609 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19610 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19611 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19612 ac_header_preproc=yes
19613 ;;
19614 no:yes:* )
19615 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19616 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
19617 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19618 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19619 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19620 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19622 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
19623 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19624 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19626 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
19627 (
19628 cat <<\_ASBOX
19629 ## ----------------------------------------- ##
19630 ## Report this to wx-dev@lists.wxwindows.org ##
19631 ## ----------------------------------------- ##
19632 _ASBOX
19633 ) |
19634 sed "s/^/$as_me: WARNING: /" >&2
19635 ;;
19636 esac
19637 echo "$as_me:$LINENO: checking for regex.h" >&5
19638 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19639 if test "${ac_cv_header_regex_h+set}" = set; then
19640 echo $ECHO_N "(cached) $ECHO_C" >&6
19641 else
19642 ac_cv_header_regex_h=$ac_header_preproc
19643 fi
19644 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19645 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19646
19647 fi
19648 if test $ac_cv_header_regex_h = yes; then
19649
19650 for ac_func in regcomp
19651 do
19652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19653 echo "$as_me:$LINENO: checking for $ac_func" >&5
19654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19655 if eval "test \"\${$as_ac_var+set}\" = set"; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658 cat >conftest.$ac_ext <<_ACEOF
19659 /* confdefs.h. */
19660 _ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h. */
19664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19666 #define $ac_func innocuous_$ac_func
19667
19668 /* System header to define __stub macros and hopefully few prototypes,
19669 which can conflict with char $ac_func (); below.
19670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19671 <limits.h> exists even on freestanding compilers. */
19672
19673 #ifdef __STDC__
19674 # include <limits.h>
19675 #else
19676 # include <assert.h>
19677 #endif
19678
19679 #undef $ac_func
19680
19681 /* Override any gcc2 internal prototype to avoid an error. */
19682 #ifdef __cplusplus
19683 extern "C"
19684 {
19685 #endif
19686 /* We use char because int might match the return type of a gcc2
19687 builtin and then its argument prototype would still apply. */
19688 char $ac_func ();
19689 /* The GNU C library defines this for functions which it implements
19690 to always fail with ENOSYS. Some functions are actually named
19691 something starting with __ and the normal name is an alias. */
19692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19693 choke me
19694 #else
19695 char (*f) () = $ac_func;
19696 #endif
19697 #ifdef __cplusplus
19698 }
19699 #endif
19700
19701 int
19702 main ()
19703 {
19704 return f != $ac_func;
19705 ;
19706 return 0;
19707 }
19708 _ACEOF
19709 rm -f conftest.$ac_objext conftest$ac_exeext
19710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19711 (eval $ac_link) 2>conftest.er1
19712 ac_status=$?
19713 grep -v '^ *+' conftest.er1 >conftest.err
19714 rm -f conftest.er1
19715 cat conftest.err >&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } &&
19718 { ac_try='test -z "$ac_c_werror_flag"
19719 || test ! -s conftest.err'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest$ac_exeext'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731 eval "$as_ac_var=yes"
19732 else
19733 echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19735
19736 eval "$as_ac_var=no"
19737 fi
19738 rm -f conftest.err conftest.$ac_objext \
19739 conftest$ac_exeext conftest.$ac_ext
19740 fi
19741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19743 if test `eval echo '${'$as_ac_var'}'` = yes; then
19744 cat >>confdefs.h <<_ACEOF
19745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19746 _ACEOF
19747
19748 fi
19749 done
19750
19751 fi
19752
19753
19754
19755 if test "x$ac_cv_func_regcomp" != "xyes"; then
19756 if test "$wxUSE_REGEX" = "sys" ; then
19757 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19758 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19759 { (exit 1); exit 1; }; }
19760 else
19761 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19762 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
19763 wxUSE_REGEX=builtin
19764 fi
19765 else
19766 wxUSE_REGEX=sys
19767 fi
19768 fi
19769 fi
19770
19771
19772 ZLIB_LINK=
19773 if test "$wxUSE_ZLIB" != "no" ; then
19774 cat >>confdefs.h <<\_ACEOF
19775 #define wxUSE_ZLIB 1
19776 _ACEOF
19777
19778
19779 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
19780 if test "$USE_DARWIN" = 1; then
19781 system_zlib_h_ok="yes"
19782 else
19783 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19784 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19785 if test "${ac_cv_header_zlib_h+set}" = set; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 else
19788 if test "$cross_compiling" = yes; then
19789 unset ac_cv_header_zlib_h
19790
19791 else
19792 cat >conftest.$ac_ext <<_ACEOF
19793 /* confdefs.h. */
19794 _ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h. */
19798
19799 #include <zlib.h>
19800 #include <stdio.h>
19801
19802 int main()
19803 {
19804 FILE *f=fopen("conftestval", "w");
19805 if (!f) exit(1);
19806 fprintf(f, "%s",
19807 ZLIB_VERSION[0] == '1' &&
19808 (ZLIB_VERSION[2] > '1' ||
19809 (ZLIB_VERSION[2] == '1' &&
19810 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19811 exit(0);
19812 }
19813
19814 _ACEOF
19815 rm -f conftest$ac_exeext
19816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19817 (eval $ac_link) 2>&5
19818 ac_status=$?
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 ac_cv_header_zlib_h=`cat conftestval`
19827 else
19828 echo "$as_me: program exited with status $ac_status" >&5
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19831
19832 ( exit $ac_status )
19833 ac_cv_header_zlib_h=no
19834 fi
19835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19836 fi
19837
19838 fi
19839 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19840 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19841 if test "${ac_cv_header_zlib_h+set}" = set; then
19842 echo "$as_me:$LINENO: checking for zlib.h" >&5
19843 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19844 if test "${ac_cv_header_zlib_h+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 fi
19847 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19848 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19849 else
19850 # Is the header compilable?
19851 echo "$as_me:$LINENO: checking zlib.h usability" >&5
19852 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h. */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19859 $ac_includes_default
19860 #include <zlib.h>
19861 _ACEOF
19862 rm -f conftest.$ac_objext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864 (eval $ac_compile) 2>conftest.er1
19865 ac_status=$?
19866 grep -v '^ *+' conftest.er1 >conftest.err
19867 rm -f conftest.er1
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -z "$ac_c_werror_flag"
19872 || test ! -s conftest.err'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 ac_header_compiler=yes
19885 else
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ac_header_compiler=no
19890 fi
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19893 echo "${ECHO_T}$ac_header_compiler" >&6
19894
19895 # Is the header present?
19896 echo "$as_me:$LINENO: checking zlib.h presence" >&5
19897 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19898 cat >conftest.$ac_ext <<_ACEOF
19899 /* confdefs.h. */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19904 #include <zlib.h>
19905 _ACEOF
19906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19908 ac_status=$?
19909 grep -v '^ *+' conftest.er1 >conftest.err
19910 rm -f conftest.er1
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } >/dev/null; then
19914 if test -s conftest.err; then
19915 ac_cpp_err=$ac_c_preproc_warn_flag
19916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19917 else
19918 ac_cpp_err=
19919 fi
19920 else
19921 ac_cpp_err=yes
19922 fi
19923 if test -z "$ac_cpp_err"; then
19924 ac_header_preproc=yes
19925 else
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929 ac_header_preproc=no
19930 fi
19931 rm -f conftest.err conftest.$ac_ext
19932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19933 echo "${ECHO_T}$ac_header_preproc" >&6
19934
19935 # So? What about this header?
19936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19937 yes:no: )
19938 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19939 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19940 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19941 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19942 ac_header_preproc=yes
19943 ;;
19944 no:yes:* )
19945 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19946 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19948 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19950 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19952 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19954 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19956 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
19957 (
19958 cat <<\_ASBOX
19959 ## ----------------------------------------- ##
19960 ## Report this to wx-dev@lists.wxwindows.org ##
19961 ## ----------------------------------------- ##
19962 _ASBOX
19963 ) |
19964 sed "s/^/$as_me: WARNING: /" >&2
19965 ;;
19966 esac
19967 echo "$as_me:$LINENO: checking for zlib.h" >&5
19968 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19969 if test "${ac_cv_header_zlib_h+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972 ac_cv_header_zlib_h=$ac_header_preproc
19973 fi
19974 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19975 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19976
19977 fi
19978
19979
19980
19981 system_zlib_h_ok=$ac_cv_header_zlib_h
19982 fi
19983
19984 if test "$system_zlib_h_ok" = "yes"; then
19985 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19986 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19987 if test "${ac_cv_lib_z_deflate+set}" = set; then
19988 echo $ECHO_N "(cached) $ECHO_C" >&6
19989 else
19990 ac_check_lib_save_LIBS=$LIBS
19991 LIBS="-lz $LIBS"
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998
19999 /* Override any gcc2 internal prototype to avoid an error. */
20000 #ifdef __cplusplus
20001 extern "C"
20002 #endif
20003 /* We use char because int might match the return type of a gcc2
20004 builtin and then its argument prototype would still apply. */
20005 char deflate ();
20006 int
20007 main ()
20008 {
20009 deflate ();
20010 ;
20011 return 0;
20012 }
20013 _ACEOF
20014 rm -f conftest.$ac_objext conftest$ac_exeext
20015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20016 (eval $ac_link) 2>conftest.er1
20017 ac_status=$?
20018 grep -v '^ *+' conftest.er1 >conftest.err
20019 rm -f conftest.er1
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } &&
20023 { ac_try='test -z "$ac_c_werror_flag"
20024 || test ! -s conftest.err'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20027 ac_status=$?
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; } &&
20030 { ac_try='test -s conftest$ac_exeext'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20033 ac_status=$?
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; }; then
20036 ac_cv_lib_z_deflate=yes
20037 else
20038 echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20040
20041 ac_cv_lib_z_deflate=no
20042 fi
20043 rm -f conftest.err conftest.$ac_objext \
20044 conftest$ac_exeext conftest.$ac_ext
20045 LIBS=$ac_check_lib_save_LIBS
20046 fi
20047 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20048 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20049 if test $ac_cv_lib_z_deflate = yes; then
20050 ZLIB_LINK=" -lz"
20051 fi
20052
20053 fi
20054
20055 if test "x$ZLIB_LINK" = "x" ; then
20056 if test "$wxUSE_ZLIB" = "sys" ; then
20057 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20058 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20059 { (exit 1); exit 1; }; }
20060 else
20061 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20062 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20063 wxUSE_ZLIB=builtin
20064 fi
20065 else
20066 wxUSE_ZLIB=sys
20067 fi
20068 fi
20069 fi
20070
20071
20072 PNG_LINK=
20073 if test "$wxUSE_LIBPNG" != "no" ; then
20074 cat >>confdefs.h <<\_ACEOF
20075 #define wxUSE_LIBPNG 1
20076 _ACEOF
20077
20078
20079 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20080 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20081 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20082 wxUSE_LIBPNG=sys
20083 fi
20084
20085 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20086 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20087 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20088 wxUSE_LIBPNG=builtin
20089 fi
20090
20091 if test "$wxUSE_MGL" != 1 ; then
20092 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20093 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20094 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20095 if test "${ac_cv_header_png_h+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098 if test "$cross_compiling" = yes; then
20099 unset ac_cv_header_png_h
20100
20101 else
20102 cat >conftest.$ac_ext <<_ACEOF
20103 /* confdefs.h. */
20104 _ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20108
20109 #include <png.h>
20110 #include <stdio.h>
20111
20112 int main()
20113 {
20114 FILE *f=fopen("conftestval", "w");
20115 if (!f) exit(1);
20116 fprintf(f, "%s",
20117 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20118 exit(0);
20119 }
20120
20121 _ACEOF
20122 rm -f conftest$ac_exeext
20123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20124 (eval $ac_link) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; }; then
20133 ac_cv_header_png_h=`cat conftestval`
20134 else
20135 echo "$as_me: program exited with status $ac_status" >&5
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20138
20139 ( exit $ac_status )
20140 ac_cv_header_png_h=no
20141 fi
20142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20143 fi
20144
20145 fi
20146 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20147 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20148 if test "${ac_cv_header_png_h+set}" = set; then
20149 echo "$as_me:$LINENO: checking for png.h" >&5
20150 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20151 if test "${ac_cv_header_png_h+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 fi
20154 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20155 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20156 else
20157 # Is the header compilable?
20158 echo "$as_me:$LINENO: checking png.h usability" >&5
20159 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h. */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 $ac_includes_default
20167 #include <png.h>
20168 _ACEOF
20169 rm -f conftest.$ac_objext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20171 (eval $ac_compile) 2>conftest.er1
20172 ac_status=$?
20173 grep -v '^ *+' conftest.er1 >conftest.err
20174 rm -f conftest.er1
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } &&
20178 { ac_try='test -z "$ac_c_werror_flag"
20179 || test ! -s conftest.err'
20180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181 (eval $ac_try) 2>&5
20182 ac_status=$?
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; } &&
20185 { ac_try='test -s conftest.$ac_objext'
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
20191 ac_header_compiler=yes
20192 else
20193 echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20195
20196 ac_header_compiler=no
20197 fi
20198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20200 echo "${ECHO_T}$ac_header_compiler" >&6
20201
20202 # Is the header present?
20203 echo "$as_me:$LINENO: checking png.h presence" >&5
20204 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20205 cat >conftest.$ac_ext <<_ACEOF
20206 /* confdefs.h. */
20207 _ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20211 #include <png.h>
20212 _ACEOF
20213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20215 ac_status=$?
20216 grep -v '^ *+' conftest.er1 >conftest.err
20217 rm -f conftest.er1
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } >/dev/null; then
20221 if test -s conftest.err; then
20222 ac_cpp_err=$ac_c_preproc_warn_flag
20223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20224 else
20225 ac_cpp_err=
20226 fi
20227 else
20228 ac_cpp_err=yes
20229 fi
20230 if test -z "$ac_cpp_err"; then
20231 ac_header_preproc=yes
20232 else
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20235
20236 ac_header_preproc=no
20237 fi
20238 rm -f conftest.err conftest.$ac_ext
20239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20240 echo "${ECHO_T}$ac_header_preproc" >&6
20241
20242 # So? What about this header?
20243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20244 yes:no: )
20245 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20246 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20247 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20248 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20249 ac_header_preproc=yes
20250 ;;
20251 no:yes:* )
20252 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20253 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
20254 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20255 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20256 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20257 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20258 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20259 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
20260 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20261 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
20262 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20263 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
20264 (
20265 cat <<\_ASBOX
20266 ## ----------------------------------------- ##
20267 ## Report this to wx-dev@lists.wxwindows.org ##
20268 ## ----------------------------------------- ##
20269 _ASBOX
20270 ) |
20271 sed "s/^/$as_me: WARNING: /" >&2
20272 ;;
20273 esac
20274 echo "$as_me:$LINENO: checking for png.h" >&5
20275 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20276 if test "${ac_cv_header_png_h+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279 ac_cv_header_png_h=$ac_header_preproc
20280 fi
20281 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20282 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20283
20284 fi
20285
20286
20287
20288 if test "$ac_cv_header_png_h" = "yes"; then
20289 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20290 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20291 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20293 else
20294 ac_check_lib_save_LIBS=$LIBS
20295 LIBS="-lpng -lz -lm $LIBS"
20296 cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h. */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302
20303 /* Override any gcc2 internal prototype to avoid an error. */
20304 #ifdef __cplusplus
20305 extern "C"
20306 #endif
20307 /* We use char because int might match the return type of a gcc2
20308 builtin and then its argument prototype would still apply. */
20309 char png_check_sig ();
20310 int
20311 main ()
20312 {
20313 png_check_sig ();
20314 ;
20315 return 0;
20316 }
20317 _ACEOF
20318 rm -f conftest.$ac_objext conftest$ac_exeext
20319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20320 (eval $ac_link) 2>conftest.er1
20321 ac_status=$?
20322 grep -v '^ *+' conftest.er1 >conftest.err
20323 rm -f conftest.er1
20324 cat conftest.err >&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); } &&
20327 { ac_try='test -z "$ac_c_werror_flag"
20328 || test ! -s conftest.err'
20329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330 (eval $ac_try) 2>&5
20331 ac_status=$?
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); }; } &&
20334 { ac_try='test -s conftest$ac_exeext'
20335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336 (eval $ac_try) 2>&5
20337 ac_status=$?
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; }; then
20340 ac_cv_lib_png_png_check_sig=yes
20341 else
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 ac_cv_lib_png_png_check_sig=no
20346 fi
20347 rm -f conftest.err conftest.$ac_objext \
20348 conftest$ac_exeext conftest.$ac_ext
20349 LIBS=$ac_check_lib_save_LIBS
20350 fi
20351 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20352 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20353 if test $ac_cv_lib_png_png_check_sig = yes; then
20354 PNG_LINK=" -lpng"
20355 fi
20356
20357 fi
20358
20359 if test "x$PNG_LINK" = "x" ; then
20360 if test "$wxUSE_LIBPNG" = "sys" ; then
20361 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20362 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20363 { (exit 1); exit 1; }; }
20364 else
20365 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20366 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20367 wxUSE_LIBPNG=builtin
20368 fi
20369 else
20370 wxUSE_LIBPNG=sys
20371 fi
20372 fi
20373 fi
20374
20375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20376 fi
20377
20378
20379 JPEG_LINK=
20380 if test "$wxUSE_LIBJPEG" != "no" ; then
20381 cat >>confdefs.h <<\_ACEOF
20382 #define wxUSE_LIBJPEG 1
20383 _ACEOF
20384
20385
20386 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20387 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20388 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20389 wxUSE_LIBJPEG=sys
20390 fi
20391
20392 if test "$wxUSE_MGL" != 1 ; then
20393 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20394 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20395 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20396 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399 cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h. */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405
20406 #undef HAVE_STDLIB_H
20407 #include <stdio.h>
20408 #include <jpeglib.h>
20409
20410 int
20411 main ()
20412 {
20413
20414
20415 ;
20416 return 0;
20417 }
20418 _ACEOF
20419 rm -f conftest.$ac_objext
20420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20421 (eval $ac_compile) 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
20428 { ac_try='test -z "$ac_c_werror_flag"
20429 || test ! -s conftest.err'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try='test -s conftest.$ac_objext'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20441 ac_cv_header_jpeglib_h=yes
20442 else
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446 ac_cv_header_jpeglib_h=no
20447
20448 fi
20449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20450
20451 fi
20452
20453 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20454 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
20455
20456 if test "$ac_cv_header_jpeglib_h" = "yes"; then
20457 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20458 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20459 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20461 else
20462 ac_check_lib_save_LIBS=$LIBS
20463 LIBS="-ljpeg $LIBS"
20464 cat >conftest.$ac_ext <<_ACEOF
20465 /* confdefs.h. */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20470
20471 /* Override any gcc2 internal prototype to avoid an error. */
20472 #ifdef __cplusplus
20473 extern "C"
20474 #endif
20475 /* We use char because int might match the return type of a gcc2
20476 builtin and then its argument prototype would still apply. */
20477 char jpeg_read_header ();
20478 int
20479 main ()
20480 {
20481 jpeg_read_header ();
20482 ;
20483 return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext conftest$ac_exeext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20488 (eval $ac_link) 2>conftest.er1
20489 ac_status=$?
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try='test -z "$ac_c_werror_flag"
20496 || test ! -s conftest.err'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; } &&
20502 { ac_try='test -s conftest$ac_exeext'
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508 ac_cv_lib_jpeg_jpeg_read_header=yes
20509 else
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20512
20513 ac_cv_lib_jpeg_jpeg_read_header=no
20514 fi
20515 rm -f conftest.err conftest.$ac_objext \
20516 conftest$ac_exeext conftest.$ac_ext
20517 LIBS=$ac_check_lib_save_LIBS
20518 fi
20519 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20520 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20521 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
20522 JPEG_LINK=" -ljpeg"
20523 fi
20524
20525 fi
20526
20527 if test "x$JPEG_LINK" = "x" ; then
20528 if test "$wxUSE_LIBJPEG" = "sys" ; then
20529 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20530 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20531 { (exit 1); exit 1; }; }
20532 else
20533 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20534 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
20535 wxUSE_LIBJPEG=builtin
20536 fi
20537 else
20538 wxUSE_LIBJPEG=sys
20539 fi
20540 fi
20541 fi
20542 fi
20543
20544
20545 TIFF_LINK=
20546 TIFF_PREREQ_LINKS=-lm
20547 if test "$wxUSE_LIBTIFF" != "no" ; then
20548 cat >>confdefs.h <<\_ACEOF
20549 #define wxUSE_LIBTIFF 1
20550 _ACEOF
20551
20552
20553 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
20554 if test "$wxUSE_LIBJPEG" = "sys"; then
20555 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20556 fi
20557 if test "$wxUSE_ZLIB" = "sys"; then
20558 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20559 fi
20560 if test "${ac_cv_header_tiffio_h+set}" = set; then
20561 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20562 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20563 if test "${ac_cv_header_tiffio_h+set}" = set; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 fi
20566 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20567 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20568 else
20569 # Is the header compilable?
20570 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20571 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20572 cat >conftest.$ac_ext <<_ACEOF
20573 /* confdefs.h. */
20574 _ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20578 $ac_includes_default
20579 #include <tiffio.h>
20580 _ACEOF
20581 rm -f conftest.$ac_objext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20583 (eval $ac_compile) 2>conftest.er1
20584 ac_status=$?
20585 grep -v '^ *+' conftest.er1 >conftest.err
20586 rm -f conftest.er1
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } &&
20590 { ac_try='test -z "$ac_c_werror_flag"
20591 || test ! -s conftest.err'
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20594 ac_status=$?
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; } &&
20597 { ac_try='test -s conftest.$ac_objext'
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; }; then
20603 ac_header_compiler=yes
20604 else
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608 ac_header_compiler=no
20609 fi
20610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20612 echo "${ECHO_T}$ac_header_compiler" >&6
20613
20614 # Is the header present?
20615 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20616 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20617 cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h. */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20623 #include <tiffio.h>
20624 _ACEOF
20625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20627 ac_status=$?
20628 grep -v '^ *+' conftest.er1 >conftest.err
20629 rm -f conftest.er1
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } >/dev/null; then
20633 if test -s conftest.err; then
20634 ac_cpp_err=$ac_c_preproc_warn_flag
20635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20636 else
20637 ac_cpp_err=
20638 fi
20639 else
20640 ac_cpp_err=yes
20641 fi
20642 if test -z "$ac_cpp_err"; then
20643 ac_header_preproc=yes
20644 else
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20647
20648 ac_header_preproc=no
20649 fi
20650 rm -f conftest.err conftest.$ac_ext
20651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20652 echo "${ECHO_T}$ac_header_preproc" >&6
20653
20654 # So? What about this header?
20655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20656 yes:no: )
20657 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20658 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20659 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20660 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20661 ac_header_preproc=yes
20662 ;;
20663 no:yes:* )
20664 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20665 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
20666 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20667 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20668 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20669 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20670 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20671 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
20672 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20673 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
20674 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20675 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
20676 (
20677 cat <<\_ASBOX
20678 ## ----------------------------------------- ##
20679 ## Report this to wx-dev@lists.wxwindows.org ##
20680 ## ----------------------------------------- ##
20681 _ASBOX
20682 ) |
20683 sed "s/^/$as_me: WARNING: /" >&2
20684 ;;
20685 esac
20686 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20687 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20688 if test "${ac_cv_header_tiffio_h+set}" = set; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 else
20691 ac_cv_header_tiffio_h=$ac_header_preproc
20692 fi
20693 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20694 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20695
20696 fi
20697 if test $ac_cv_header_tiffio_h = yes; then
20698
20699 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
20700 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20701 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20702 echo $ECHO_N "(cached) $ECHO_C" >&6
20703 else
20704 ac_check_lib_save_LIBS=$LIBS
20705 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
20706 cat >conftest.$ac_ext <<_ACEOF
20707 /* confdefs.h. */
20708 _ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20712
20713 /* Override any gcc2 internal prototype to avoid an error. */
20714 #ifdef __cplusplus
20715 extern "C"
20716 #endif
20717 /* We use char because int might match the return type of a gcc2
20718 builtin and then its argument prototype would still apply. */
20719 char TIFFError ();
20720 int
20721 main ()
20722 {
20723 TIFFError ();
20724 ;
20725 return 0;
20726 }
20727 _ACEOF
20728 rm -f conftest.$ac_objext conftest$ac_exeext
20729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20730 (eval $ac_link) 2>conftest.er1
20731 ac_status=$?
20732 grep -v '^ *+' conftest.er1 >conftest.err
20733 rm -f conftest.er1
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } &&
20737 { ac_try='test -z "$ac_c_werror_flag"
20738 || test ! -s conftest.err'
20739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740 (eval $ac_try) 2>&5
20741 ac_status=$?
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; } &&
20744 { ac_try='test -s conftest$ac_exeext'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 ac_cv_lib_tiff_TIFFError=yes
20751 else
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20754
20755 ac_cv_lib_tiff_TIFFError=no
20756 fi
20757 rm -f conftest.err conftest.$ac_objext \
20758 conftest$ac_exeext conftest.$ac_ext
20759 LIBS=$ac_check_lib_save_LIBS
20760 fi
20761 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20762 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20763 if test $ac_cv_lib_tiff_TIFFError = yes; then
20764 TIFF_LINK=" -ltiff"
20765 fi
20766
20767
20768
20769 fi
20770
20771
20772
20773 if test "x$TIFF_LINK" = "x" ; then
20774 if test "$wxUSE_LIBTIFF" = "sys" ; then
20775 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20776 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20777 { (exit 1); exit 1; }; }
20778 else
20779 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20780 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
20781 wxUSE_LIBTIFF=builtin
20782 fi
20783 else
20784 wxUSE_LIBTIFF=sys
20785 fi
20786 fi
20787 fi
20788
20789
20790 if test "$wxUSE_EXPAT" != "no"; then
20791 wxUSE_XML=yes
20792 cat >>confdefs.h <<\_ACEOF
20793 #define wxUSE_EXPAT 1
20794 _ACEOF
20795
20796 cat >>confdefs.h <<\_ACEOF
20797 #define wxUSE_XML 1
20798 _ACEOF
20799
20800
20801 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20802 if test "${ac_cv_header_expat_h+set}" = set; then
20803 echo "$as_me:$LINENO: checking for expat.h" >&5
20804 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20805 if test "${ac_cv_header_expat_h+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20807 fi
20808 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20809 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20810 else
20811 # Is the header compilable?
20812 echo "$as_me:$LINENO: checking expat.h usability" >&5
20813 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20814 cat >conftest.$ac_ext <<_ACEOF
20815 /* confdefs.h. */
20816 _ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20820 $ac_includes_default
20821 #include <expat.h>
20822 _ACEOF
20823 rm -f conftest.$ac_objext
20824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20825 (eval $ac_compile) 2>conftest.er1
20826 ac_status=$?
20827 grep -v '^ *+' conftest.er1 >conftest.err
20828 rm -f conftest.er1
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } &&
20832 { ac_try='test -z "$ac_c_werror_flag"
20833 || test ! -s conftest.err'
20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20835 (eval $ac_try) 2>&5
20836 ac_status=$?
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; } &&
20839 { ac_try='test -s conftest.$ac_objext'
20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841 (eval $ac_try) 2>&5
20842 ac_status=$?
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; }; then
20845 ac_header_compiler=yes
20846 else
20847 echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20849
20850 ac_header_compiler=no
20851 fi
20852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20854 echo "${ECHO_T}$ac_header_compiler" >&6
20855
20856 # Is the header present?
20857 echo "$as_me:$LINENO: checking expat.h presence" >&5
20858 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20859 cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h. */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 #include <expat.h>
20866 _ACEOF
20867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20869 ac_status=$?
20870 grep -v '^ *+' conftest.er1 >conftest.err
20871 rm -f conftest.er1
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } >/dev/null; then
20875 if test -s conftest.err; then
20876 ac_cpp_err=$ac_c_preproc_warn_flag
20877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20878 else
20879 ac_cpp_err=
20880 fi
20881 else
20882 ac_cpp_err=yes
20883 fi
20884 if test -z "$ac_cpp_err"; then
20885 ac_header_preproc=yes
20886 else
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20889
20890 ac_header_preproc=no
20891 fi
20892 rm -f conftest.err conftest.$ac_ext
20893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20894 echo "${ECHO_T}$ac_header_preproc" >&6
20895
20896 # So? What about this header?
20897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20898 yes:no: )
20899 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20900 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20901 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20902 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20903 ac_header_preproc=yes
20904 ;;
20905 no:yes:* )
20906 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20907 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
20908 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20909 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20910 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20911 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20912 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20913 echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
20914 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20915 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
20916 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20917 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
20918 (
20919 cat <<\_ASBOX
20920 ## ----------------------------------------- ##
20921 ## Report this to wx-dev@lists.wxwindows.org ##
20922 ## ----------------------------------------- ##
20923 _ASBOX
20924 ) |
20925 sed "s/^/$as_me: WARNING: /" >&2
20926 ;;
20927 esac
20928 echo "$as_me:$LINENO: checking for expat.h" >&5
20929 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20930 if test "${ac_cv_header_expat_h+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933 ac_cv_header_expat_h=$ac_header_preproc
20934 fi
20935 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20936 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20937
20938 fi
20939 if test $ac_cv_header_expat_h = yes; then
20940 found_expat_h=1
20941 fi
20942
20943
20944 if test "x$found_expat_h" = "x1"; then
20945 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20946 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20947 if test "${wx_cv_expat_is_not_broken+set}" = set; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 else
20950
20951
20952
20953 ac_ext=cc
20954 ac_cpp='$CXXCPP $CPPFLAGS'
20955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20958
20959 cat >conftest.$ac_ext <<_ACEOF
20960 /* confdefs.h. */
20961 _ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 #include <expat.h>
20966 int
20967 main ()
20968 {
20969
20970 ;
20971 return 0;
20972 }
20973 _ACEOF
20974 rm -f conftest.$ac_objext
20975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20976 (eval $ac_compile) 2>conftest.er1
20977 ac_status=$?
20978 grep -v '^ *+' conftest.er1 >conftest.err
20979 rm -f conftest.er1
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } &&
20983 { ac_try='test -z "$ac_cxx_werror_flag"
20984 || test ! -s conftest.err'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; } &&
20990 { ac_try='test -s conftest.$ac_objext'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }; then
20996 wx_cv_expat_is_not_broken=yes
20997 else
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21000
21001 wx_cv_expat_is_not_broken=no
21002
21003 fi
21004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21005 ac_ext=c
21006 ac_cpp='$CPP $CPPFLAGS'
21007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21010
21011
21012
21013 fi
21014 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21015 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21016 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21017 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21018 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21019 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21021 else
21022 ac_check_lib_save_LIBS=$LIBS
21023 LIBS="-lexpat $LIBS"
21024 cat >conftest.$ac_ext <<_ACEOF
21025 /* confdefs.h. */
21026 _ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21030
21031 /* Override any gcc2 internal prototype to avoid an error. */
21032 #ifdef __cplusplus
21033 extern "C"
21034 #endif
21035 /* We use char because int might match the return type of a gcc2
21036 builtin and then its argument prototype would still apply. */
21037 char XML_ParserCreate ();
21038 int
21039 main ()
21040 {
21041 XML_ParserCreate ();
21042 ;
21043 return 0;
21044 }
21045 _ACEOF
21046 rm -f conftest.$ac_objext conftest$ac_exeext
21047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21048 (eval $ac_link) 2>conftest.er1
21049 ac_status=$?
21050 grep -v '^ *+' conftest.er1 >conftest.err
21051 rm -f conftest.er1
21052 cat conftest.err >&5
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); } &&
21055 { ac_try='test -z "$ac_c_werror_flag"
21056 || test ! -s conftest.err'
21057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058 (eval $ac_try) 2>&5
21059 ac_status=$?
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; } &&
21062 { ac_try='test -s conftest$ac_exeext'
21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21065 ac_status=$?
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; }; then
21068 ac_cv_lib_expat_XML_ParserCreate=yes
21069 else
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21072
21073 ac_cv_lib_expat_XML_ParserCreate=no
21074 fi
21075 rm -f conftest.err conftest.$ac_objext \
21076 conftest$ac_exeext conftest.$ac_ext
21077 LIBS=$ac_check_lib_save_LIBS
21078 fi
21079 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21080 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21081 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21082 EXPAT_LINK=" -lexpat"
21083 fi
21084
21085 fi
21086 fi
21087 if test "x$EXPAT_LINK" = "x" ; then
21088 if test "$wxUSE_EXPAT" = "sys" ; then
21089 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21090 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21091 { (exit 1); exit 1; }; }
21092 else
21093 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21094 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21095 wxUSE_EXPAT=builtin
21096 fi
21097 else
21098 wxUSE_EXPAT=sys
21099 fi
21100 fi
21101 if test "$wxUSE_EXPAT" = "builtin" ; then
21102
21103
21104 subdirs="$subdirs src/expat"
21105
21106 fi
21107 fi
21108
21109
21110
21111 if test "$wxUSE_LIBMSPACK" != "no"; then
21112
21113 if test "${ac_cv_header_mspack_h+set}" = set; then
21114 echo "$as_me:$LINENO: checking for mspack.h" >&5
21115 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21116 if test "${ac_cv_header_mspack_h+set}" = set; then
21117 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 fi
21119 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21120 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21121 else
21122 # Is the header compilable?
21123 echo "$as_me:$LINENO: checking mspack.h usability" >&5
21124 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21125 cat >conftest.$ac_ext <<_ACEOF
21126 /* confdefs.h. */
21127 _ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 $ac_includes_default
21132 #include <mspack.h>
21133 _ACEOF
21134 rm -f conftest.$ac_objext
21135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21136 (eval $ac_compile) 2>conftest.er1
21137 ac_status=$?
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } &&
21143 { ac_try='test -z "$ac_c_werror_flag"
21144 || test ! -s conftest.err'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } &&
21150 { ac_try='test -s conftest.$ac_objext'
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21153 ac_status=$?
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; }; then
21156 ac_header_compiler=yes
21157 else
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21160
21161 ac_header_compiler=no
21162 fi
21163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21165 echo "${ECHO_T}$ac_header_compiler" >&6
21166
21167 # Is the header present?
21168 echo "$as_me:$LINENO: checking mspack.h presence" >&5
21169 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21170 cat >conftest.$ac_ext <<_ACEOF
21171 /* confdefs.h. */
21172 _ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21176 #include <mspack.h>
21177 _ACEOF
21178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21180 ac_status=$?
21181 grep -v '^ *+' conftest.er1 >conftest.err
21182 rm -f conftest.er1
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } >/dev/null; then
21186 if test -s conftest.err; then
21187 ac_cpp_err=$ac_c_preproc_warn_flag
21188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21189 else
21190 ac_cpp_err=
21191 fi
21192 else
21193 ac_cpp_err=yes
21194 fi
21195 if test -z "$ac_cpp_err"; then
21196 ac_header_preproc=yes
21197 else
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21200
21201 ac_header_preproc=no
21202 fi
21203 rm -f conftest.err conftest.$ac_ext
21204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21205 echo "${ECHO_T}$ac_header_preproc" >&6
21206
21207 # So? What about this header?
21208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21209 yes:no: )
21210 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21211 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21212 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21213 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21214 ac_header_preproc=yes
21215 ;;
21216 no:yes:* )
21217 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21218 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
21219 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21220 echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21221 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21222 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21223 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21224 echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
21225 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21226 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
21227 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21228 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
21229 (
21230 cat <<\_ASBOX
21231 ## ----------------------------------------- ##
21232 ## Report this to wx-dev@lists.wxwindows.org ##
21233 ## ----------------------------------------- ##
21234 _ASBOX
21235 ) |
21236 sed "s/^/$as_me: WARNING: /" >&2
21237 ;;
21238 esac
21239 echo "$as_me:$LINENO: checking for mspack.h" >&5
21240 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21241 if test "${ac_cv_header_mspack_h+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 else
21244 ac_cv_header_mspack_h=$ac_header_preproc
21245 fi
21246 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21247 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21248
21249 fi
21250 if test $ac_cv_header_mspack_h = yes; then
21251 found_mspack_h=1
21252 fi
21253
21254
21255 if test "x$found_mspack_h" = "x1"; then
21256 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21257 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21258 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 else
21261 ac_check_lib_save_LIBS=$LIBS
21262 LIBS="-lmspack $LIBS"
21263 cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h. */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269
21270 /* Override any gcc2 internal prototype to avoid an error. */
21271 #ifdef __cplusplus
21272 extern "C"
21273 #endif
21274 /* We use char because int might match the return type of a gcc2
21275 builtin and then its argument prototype would still apply. */
21276 char mspack_create_chm_decompressor ();
21277 int
21278 main ()
21279 {
21280 mspack_create_chm_decompressor ();
21281 ;
21282 return 0;
21283 }
21284 _ACEOF
21285 rm -f conftest.$ac_objext conftest$ac_exeext
21286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21287 (eval $ac_link) 2>conftest.er1
21288 ac_status=$?
21289 grep -v '^ *+' conftest.er1 >conftest.err
21290 rm -f conftest.er1
21291 cat conftest.err >&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } &&
21294 { ac_try='test -z "$ac_c_werror_flag"
21295 || test ! -s conftest.err'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21298 ac_status=$?
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; } &&
21301 { ac_try='test -s conftest$ac_exeext'
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21304 ac_status=$?
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; }; then
21307 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21308 else
21309 echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21311
21312 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21313 fi
21314 rm -f conftest.err conftest.$ac_objext \
21315 conftest$ac_exeext conftest.$ac_ext
21316 LIBS=$ac_check_lib_save_LIBS
21317 fi
21318 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21319 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21320 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21321 MSPACK_LINK=" -lmspack"
21322 fi
21323
21324 fi
21325 if test "x$MSPACK_LINK" = "x" ; then
21326 wxUSE_LIBMSPACK=no
21327 else
21328 cat >>confdefs.h <<\_ACEOF
21329 #define wxUSE_LIBMSPACK 1
21330 _ACEOF
21331
21332 fi
21333 fi
21334
21335
21336
21337 AFMINSTALL=
21338 WIN32INSTALL=
21339
21340 TOOLKIT=
21341 TOOLKIT_INCLUDE=
21342 WIDGET_SET=
21343
21344 if test "$USE_WIN32" = 1 ; then
21345
21346 for ac_header in w32api.h
21347 do
21348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21350 echo "$as_me:$LINENO: checking for $ac_header" >&5
21351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 fi
21355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21357 else
21358 # Is the header compilable?
21359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21361 cat >conftest.$ac_ext <<_ACEOF
21362 /* confdefs.h. */
21363 _ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21367 $ac_includes_default
21368 #include <$ac_header>
21369 _ACEOF
21370 rm -f conftest.$ac_objext
21371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21372 (eval $ac_compile) 2>conftest.er1
21373 ac_status=$?
21374 grep -v '^ *+' conftest.er1 >conftest.err
21375 rm -f conftest.er1
21376 cat conftest.err >&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } &&
21379 { ac_try='test -z "$ac_c_werror_flag"
21380 || test ! -s conftest.err'
21381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382 (eval $ac_try) 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; } &&
21386 { ac_try='test -s conftest.$ac_objext'
21387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21388 (eval $ac_try) 2>&5
21389 ac_status=$?
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); }; }; then
21392 ac_header_compiler=yes
21393 else
21394 echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21396
21397 ac_header_compiler=no
21398 fi
21399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21401 echo "${ECHO_T}$ac_header_compiler" >&6
21402
21403 # Is the header present?
21404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21406 cat >conftest.$ac_ext <<_ACEOF
21407 /* confdefs.h. */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21412 #include <$ac_header>
21413 _ACEOF
21414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21416 ac_status=$?
21417 grep -v '^ *+' conftest.er1 >conftest.err
21418 rm -f conftest.er1
21419 cat conftest.err >&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); } >/dev/null; then
21422 if test -s conftest.err; then
21423 ac_cpp_err=$ac_c_preproc_warn_flag
21424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21425 else
21426 ac_cpp_err=
21427 fi
21428 else
21429 ac_cpp_err=yes
21430 fi
21431 if test -z "$ac_cpp_err"; then
21432 ac_header_preproc=yes
21433 else
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21436
21437 ac_header_preproc=no
21438 fi
21439 rm -f conftest.err conftest.$ac_ext
21440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21441 echo "${ECHO_T}$ac_header_preproc" >&6
21442
21443 # So? What about this header?
21444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21445 yes:no: )
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21450 ac_header_preproc=yes
21451 ;;
21452 no:yes:* )
21453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21465 (
21466 cat <<\_ASBOX
21467 ## ----------------------------------------- ##
21468 ## Report this to wx-dev@lists.wxwindows.org ##
21469 ## ----------------------------------------- ##
21470 _ASBOX
21471 ) |
21472 sed "s/^/$as_me: WARNING: /" >&2
21473 ;;
21474 esac
21475 echo "$as_me:$LINENO: checking for $ac_header" >&5
21476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21478 echo $ECHO_N "(cached) $ECHO_C" >&6
21479 else
21480 eval "$as_ac_Header=\$ac_header_preproc"
21481 fi
21482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21484
21485 fi
21486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21487 cat >>confdefs.h <<_ACEOF
21488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21489 _ACEOF
21490
21491 fi
21492
21493 done
21494
21495 if test "${ac_cv_header_windows_h+set}" = set; then
21496 echo "$as_me:$LINENO: checking for windows.h" >&5
21497 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21498 if test "${ac_cv_header_windows_h+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21500 fi
21501 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21502 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21503 else
21504 # Is the header compilable?
21505 echo "$as_me:$LINENO: checking windows.h usability" >&5
21506 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21507 cat >conftest.$ac_ext <<_ACEOF
21508 /* confdefs.h. */
21509 _ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 $ac_includes_default
21514 #include <windows.h>
21515 _ACEOF
21516 rm -f conftest.$ac_objext
21517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21518 (eval $ac_compile) 2>conftest.er1
21519 ac_status=$?
21520 grep -v '^ *+' conftest.er1 >conftest.err
21521 rm -f conftest.er1
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } &&
21525 { ac_try='test -z "$ac_c_werror_flag"
21526 || test ! -s conftest.err'
21527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528 (eval $ac_try) 2>&5
21529 ac_status=$?
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; } &&
21532 { ac_try='test -s conftest.$ac_objext'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21535 ac_status=$?
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 ac_header_compiler=yes
21539 else
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21542
21543 ac_header_compiler=no
21544 fi
21545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21547 echo "${ECHO_T}$ac_header_compiler" >&6
21548
21549 # Is the header present?
21550 echo "$as_me:$LINENO: checking windows.h presence" >&5
21551 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21552 cat >conftest.$ac_ext <<_ACEOF
21553 /* confdefs.h. */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 #include <windows.h>
21559 _ACEOF
21560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21562 ac_status=$?
21563 grep -v '^ *+' conftest.er1 >conftest.err
21564 rm -f conftest.er1
21565 cat conftest.err >&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); } >/dev/null; then
21568 if test -s conftest.err; then
21569 ac_cpp_err=$ac_c_preproc_warn_flag
21570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21571 else
21572 ac_cpp_err=
21573 fi
21574 else
21575 ac_cpp_err=yes
21576 fi
21577 if test -z "$ac_cpp_err"; then
21578 ac_header_preproc=yes
21579 else
21580 echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21582
21583 ac_header_preproc=no
21584 fi
21585 rm -f conftest.err conftest.$ac_ext
21586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21587 echo "${ECHO_T}$ac_header_preproc" >&6
21588
21589 # So? What about this header?
21590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21591 yes:no: )
21592 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21593 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21595 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21596 ac_header_preproc=yes
21597 ;;
21598 no:yes:* )
21599 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21600 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21601 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21602 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21603 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21604 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21605 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21606 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21607 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21608 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21609 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21610 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21611 (
21612 cat <<\_ASBOX
21613 ## ----------------------------------------- ##
21614 ## Report this to wx-dev@lists.wxwindows.org ##
21615 ## ----------------------------------------- ##
21616 _ASBOX
21617 ) |
21618 sed "s/^/$as_me: WARNING: /" >&2
21619 ;;
21620 esac
21621 echo "$as_me:$LINENO: checking for windows.h" >&5
21622 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21623 if test "${ac_cv_header_windows_h+set}" = set; then
21624 echo $ECHO_N "(cached) $ECHO_C" >&6
21625 else
21626 ac_cv_header_windows_h=$ac_header_preproc
21627 fi
21628 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21629 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21630
21631 fi
21632 if test $ac_cv_header_windows_h = yes; then
21633 :
21634 else
21635
21636 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21637 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21638 { (exit 1); exit 1; }; }
21639
21640 fi
21641
21642
21643
21644 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21645
21646 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21647 LIBS="$LIBS -loleacc"
21648 fi
21649
21650 case "${host}" in
21651 *-*-cygwin* )
21652 LIBS="$LIBS -lkernel32 -luser32"
21653 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
21654 esac
21655
21656 if test "$wxUSE_ODBC" = "sys" ; then
21657 wxUSE_ODBC = "yes"
21658 fi
21659 if test "$wxUSE_ODBC" = "yes" ; then
21660 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
21661 cat >>confdefs.h <<\_ACEOF
21662 #define wxUSE_ODBC 1
21663 _ACEOF
21664
21665 fi
21666
21667 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21668 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
21669
21670 WIN32INSTALL=win32install
21671 fi
21672
21673 if test "$wxUSE_GUI" = "yes"; then
21674 USE_GUI=1
21675
21676 GUI_TK_LIBRARY=
21677
21678 WXGTK12=
21679 WXGTK127=
21680 WXGTK20=
21681
21682 if test "$wxUSE_MSW" = 1 ; then
21683 TOOLKIT=MSW
21684 GUIDIST=MSW_DIST
21685
21686 case "${host}" in
21687 *-*-mingw32* )
21688 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21689 esac
21690 fi
21691
21692 if test "$wxUSE_GTK" = 1; then
21693 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21694 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21695
21696 gtk_version_cached=1
21697 if test "${wx_cv_lib_gtk+set}" = set; then
21698 echo $ECHO_N "(cached) $ECHO_C" >&6
21699 else
21700
21701 gtk_version_cached=0
21702 echo "$as_me:$LINENO: result: " >&5
21703 echo "${ECHO_T}" >&6
21704
21705 GTK_MODULES=
21706 if test "$wxUSE_THREADS" = "yes"; then
21707 GTK_MODULES=gthread
21708 fi
21709
21710 wx_cv_lib_gtk=
21711 if test "x$wxUSE_GTK2" = "xyes"; then
21712 # Check whether --enable-gtktest or --disable-gtktest was given.
21713 if test "${enable_gtktest+set}" = set; then
21714 enableval="$enable_gtktest"
21715
21716 else
21717 enable_gtktest=yes
21718 fi;
21719
21720 pkg_config_args=gtk+-2.0
21721 for module in . $GTK_MODULES
21722 do
21723 case "$module" in
21724 gthread)
21725 pkg_config_args="$pkg_config_args gthread-2.0"
21726 ;;
21727 esac
21728 done
21729
21730 no_gtk=""
21731
21732 # Extract the first word of "pkg-config", so it can be a program name with args.
21733 set dummy pkg-config; ac_word=$2
21734 echo "$as_me:$LINENO: checking for $ac_word" >&5
21735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21736 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21737 echo $ECHO_N "(cached) $ECHO_C" >&6
21738 else
21739 case $PKG_CONFIG in
21740 [\\/]* | ?:[\\/]*)
21741 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21742 ;;
21743 *)
21744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21745 for as_dir in $PATH
21746 do
21747 IFS=$as_save_IFS
21748 test -z "$as_dir" && as_dir=.
21749 for ac_exec_ext in '' $ac_executable_extensions; do
21750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21751 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21753 break 2
21754 fi
21755 done
21756 done
21757
21758 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21759 ;;
21760 esac
21761 fi
21762 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21763
21764 if test -n "$PKG_CONFIG"; then
21765 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21766 echo "${ECHO_T}$PKG_CONFIG" >&6
21767 else
21768 echo "$as_me:$LINENO: result: no" >&5
21769 echo "${ECHO_T}no" >&6
21770 fi
21771
21772
21773 if test x$PKG_CONFIG != xno ; then
21774 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21775 :
21776 else
21777 echo *** pkg-config too old; version 0.7 or better required.
21778 no_gtk=yes
21779 PKG_CONFIG=no
21780 fi
21781 else
21782 no_gtk=yes
21783 fi
21784
21785 min_gtk_version=2.0.0
21786 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21787 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
21788
21789 if test x$PKG_CONFIG != xno ; then
21790 ## don't try to run the test against uninstalled libtool libs
21791 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21792 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21793 enable_gtktest=no
21794 fi
21795
21796 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21797 :
21798 else
21799 no_gtk=yes
21800 fi
21801 fi
21802
21803 if test x"$no_gtk" = x ; then
21804 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21805 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21806 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21807 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21808 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21809 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21810 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21811 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21812 if test "x$enable_gtktest" = "xyes" ; then
21813 ac_save_CFLAGS="$CFLAGS"
21814 ac_save_LIBS="$LIBS"
21815 CFLAGS="$CFLAGS $GTK_CFLAGS"
21816 LIBS="$GTK_LIBS $LIBS"
21817 rm -f conf.gtktest
21818 if test "$cross_compiling" = yes; then
21819 echo $ac_n "cross compiling; assumed OK... $ac_c"
21820 else
21821 cat >conftest.$ac_ext <<_ACEOF
21822 /* confdefs.h. */
21823 _ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h. */
21827
21828 #include <gtk/gtk.h>
21829 #include <stdio.h>
21830 #include <stdlib.h>
21831
21832 int
21833 main ()
21834 {
21835 int major, minor, micro;
21836 char *tmp_version;
21837
21838 system ("touch conf.gtktest");
21839
21840 /* HP/UX 9 (%@#!) writes to sscanf strings */
21841 tmp_version = g_strdup("$min_gtk_version");
21842 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21843 printf("%s, bad version string\n", "$min_gtk_version");
21844 exit(1);
21845 }
21846
21847 if ((gtk_major_version != $gtk_config_major_version) ||
21848 (gtk_minor_version != $gtk_config_minor_version) ||
21849 (gtk_micro_version != $gtk_config_micro_version))
21850 {
21851 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21852 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21853 gtk_major_version, gtk_minor_version, gtk_micro_version);
21854 printf ("*** was found! If pkg-config was correct, then it is best\n");
21855 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21856 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21857 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21858 printf("*** required on your system.\n");
21859 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21860 printf("*** to point to the correct configuration files\n");
21861 }
21862 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21863 (gtk_minor_version != GTK_MINOR_VERSION) ||
21864 (gtk_micro_version != GTK_MICRO_VERSION))
21865 {
21866 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21867 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21868 printf("*** library (version %d.%d.%d)\n",
21869 gtk_major_version, gtk_minor_version, gtk_micro_version);
21870 }
21871 else
21872 {
21873 if ((gtk_major_version > major) ||
21874 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21875 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21876 {
21877 return 0;
21878 }
21879 else
21880 {
21881 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21882 gtk_major_version, gtk_minor_version, gtk_micro_version);
21883 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21884 major, minor, micro);
21885 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21886 printf("***\n");
21887 printf("*** If you have already installed a sufficiently new version, this error\n");
21888 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21889 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21890 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21891 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21892 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21893 printf("*** so that the correct libraries are found at run-time))\n");
21894 }
21895 }
21896 return 1;
21897 }
21898
21899 _ACEOF
21900 rm -f conftest$ac_exeext
21901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21902 (eval $ac_link) 2>&5
21903 ac_status=$?
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907 (eval $ac_try) 2>&5
21908 ac_status=$?
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; }; then
21911 :
21912 else
21913 echo "$as_me: program exited with status $ac_status" >&5
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21916
21917 ( exit $ac_status )
21918 no_gtk=yes
21919 fi
21920 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21921 fi
21922 CFLAGS="$ac_save_CFLAGS"
21923 LIBS="$ac_save_LIBS"
21924 fi
21925 fi
21926 if test "x$no_gtk" = x ; then
21927 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21928 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21929 wx_cv_lib_gtk=2.0
21930 else
21931 echo "$as_me:$LINENO: result: no" >&5
21932 echo "${ECHO_T}no" >&6
21933 if test "$PKG_CONFIG" = "no" ; then
21934 echo "*** A new enough version of pkg-config was not found."
21935 echo "*** See http://pkgconfig.sourceforge.net"
21936 else
21937 if test -f conf.gtktest ; then
21938 :
21939 else
21940 echo "*** Could not run GTK+ test program, checking why..."
21941 ac_save_CFLAGS="$CFLAGS"
21942 ac_save_LIBS="$LIBS"
21943 CFLAGS="$CFLAGS $GTK_CFLAGS"
21944 LIBS="$LIBS $GTK_LIBS"
21945 cat >conftest.$ac_ext <<_ACEOF
21946 /* confdefs.h. */
21947 _ACEOF
21948 cat confdefs.h >>conftest.$ac_ext
21949 cat >>conftest.$ac_ext <<_ACEOF
21950 /* end confdefs.h. */
21951
21952 #include <gtk/gtk.h>
21953 #include <stdio.h>
21954
21955 int
21956 main ()
21957 {
21958 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21959 ;
21960 return 0;
21961 }
21962 _ACEOF
21963 rm -f conftest.$ac_objext conftest$ac_exeext
21964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21965 (eval $ac_link) 2>conftest.er1
21966 ac_status=$?
21967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } &&
21972 { ac_try='test -z "$ac_c_werror_flag"
21973 || test ! -s conftest.err'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21976 ac_status=$?
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; } &&
21979 { ac_try='test -s conftest$ac_exeext'
21980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981 (eval $ac_try) 2>&5
21982 ac_status=$?
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; }; then
21985 echo "*** The test program compiled, but did not run. This usually means"
21986 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21987 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21988 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21989 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21990 echo "*** is required on your system"
21991 echo "***"
21992 echo "*** If you have an old version installed, it is best to remove it, although"
21993 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21994 else
21995 echo "$as_me: failed program was:" >&5
21996 sed 's/^/| /' conftest.$ac_ext >&5
21997
21998 echo "*** The test program failed to compile or link. See the file config.log for the"
21999 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22000 fi
22001 rm -f conftest.err conftest.$ac_objext \
22002 conftest$ac_exeext conftest.$ac_ext
22003 CFLAGS="$ac_save_CFLAGS"
22004 LIBS="$ac_save_LIBS"
22005 fi
22006 fi
22007 GTK_CFLAGS=""
22008 GTK_LIBS=""
22009 :
22010 fi
22011
22012
22013 rm -f conf.gtktest
22014
22015 else
22016
22017 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22018 if test "${with_gtk_prefix+set}" = set; then
22019 withval="$with_gtk_prefix"
22020 gtk_config_prefix="$withval"
22021 else
22022 gtk_config_prefix=""
22023 fi;
22024
22025 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22026 if test "${with_gtk_exec_prefix+set}" = set; then
22027 withval="$with_gtk_exec_prefix"
22028 gtk_config_exec_prefix="$withval"
22029 else
22030 gtk_config_exec_prefix=""
22031 fi;
22032 # Check whether --enable-gtktest or --disable-gtktest was given.
22033 if test "${enable_gtktest+set}" = set; then
22034 enableval="$enable_gtktest"
22035
22036 else
22037 enable_gtktest=yes
22038 fi;
22039
22040 for module in . $GTK_MODULES
22041 do
22042 case "$module" in
22043 gthread)
22044 gtk_config_args="$gtk_config_args gthread"
22045 ;;
22046 esac
22047 done
22048
22049 if test x$gtk_config_exec_prefix != x ; then
22050 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22051 if test x${GTK_CONFIG+set} != xset ; then
22052 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22053 fi
22054 fi
22055 if test x$gtk_config_prefix != x ; then
22056 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22057 if test x${GTK_CONFIG+set} != xset ; then
22058 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22059 fi
22060 fi
22061
22062 # Extract the first word of "gtk-config", so it can be a program name with args.
22063 set dummy gtk-config; ac_word=$2
22064 echo "$as_me:$LINENO: checking for $ac_word" >&5
22065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22066 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22067 echo $ECHO_N "(cached) $ECHO_C" >&6
22068 else
22069 case $GTK_CONFIG in
22070 [\\/]* | ?:[\\/]*)
22071 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22072 ;;
22073 *)
22074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22075 for as_dir in $PATH
22076 do
22077 IFS=$as_save_IFS
22078 test -z "$as_dir" && as_dir=.
22079 for ac_exec_ext in '' $ac_executable_extensions; do
22080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22081 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22083 break 2
22084 fi
22085 done
22086 done
22087
22088 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22089 ;;
22090 esac
22091 fi
22092 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22093
22094 if test -n "$GTK_CONFIG"; then
22095 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22096 echo "${ECHO_T}$GTK_CONFIG" >&6
22097 else
22098 echo "$as_me:$LINENO: result: no" >&5
22099 echo "${ECHO_T}no" >&6
22100 fi
22101
22102 min_gtk_version=1.2.7
22103 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22104 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22105 no_gtk=""
22106 if test "$GTK_CONFIG" = "no" ; then
22107 no_gtk=yes
22108 else
22109 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22110 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22111 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22112 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22113 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22114 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22115 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22116 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22117 if test "x$enable_gtktest" = "xyes" ; then
22118 ac_save_CFLAGS="$CFLAGS"
22119 ac_save_LIBS="$LIBS"
22120 CFLAGS="$CFLAGS $GTK_CFLAGS"
22121 LIBS="$GTK_LIBS $LIBS"
22122 rm -f conf.gtktest
22123 if test "$cross_compiling" = yes; then
22124 echo $ac_n "cross compiling; assumed OK... $ac_c"
22125 else
22126 cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h. */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132
22133 #include <gtk/gtk.h>
22134 #include <stdio.h>
22135 #include <stdlib.h>
22136
22137 int
22138 main ()
22139 {
22140 int major, minor, micro;
22141 char *tmp_version;
22142
22143 system ("touch conf.gtktest");
22144
22145 /* HP/UX 9 (%@#!) writes to sscanf strings */
22146 tmp_version = g_strdup("$min_gtk_version");
22147 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22148 printf("%s, bad version string\n", "$min_gtk_version");
22149 exit(1);
22150 }
22151
22152 if ((gtk_major_version != $gtk_config_major_version) ||
22153 (gtk_minor_version != $gtk_config_minor_version) ||
22154 (gtk_micro_version != $gtk_config_micro_version))
22155 {
22156 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22157 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22158 gtk_major_version, gtk_minor_version, gtk_micro_version);
22159 printf ("*** was found! If gtk-config was correct, then it is best\n");
22160 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22161 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22162 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22163 printf("*** required on your system.\n");
22164 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22165 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22166 printf("*** before re-running configure\n");
22167 }
22168 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22169 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22170 (gtk_minor_version != GTK_MINOR_VERSION) ||
22171 (gtk_micro_version != GTK_MICRO_VERSION))
22172 {
22173 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22174 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22175 printf("*** library (version %d.%d.%d)\n",
22176 gtk_major_version, gtk_minor_version, gtk_micro_version);
22177 }
22178 #endif /* defined (GTK_MAJOR_VERSION) ... */
22179 else
22180 {
22181 if ((gtk_major_version > major) ||
22182 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22183 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22184 {
22185 return 0;
22186 }
22187 else
22188 {
22189 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22190 gtk_major_version, gtk_minor_version, gtk_micro_version);
22191 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22192 major, minor, micro);
22193 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22194 printf("***\n");
22195 printf("*** If you have already installed a sufficiently new version, this error\n");
22196 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22197 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22198 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22199 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22200 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22201 printf("*** so that the correct libraries are found at run-time))\n");
22202 }
22203 }
22204 return 1;
22205 }
22206
22207 _ACEOF
22208 rm -f conftest$ac_exeext
22209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22210 (eval $ac_link) 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22216 ac_status=$?
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; }; then
22219 :
22220 else
22221 echo "$as_me: program exited with status $ac_status" >&5
22222 echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.$ac_ext >&5
22224
22225 ( exit $ac_status )
22226 no_gtk=yes
22227 fi
22228 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22229 fi
22230 CFLAGS="$ac_save_CFLAGS"
22231 LIBS="$ac_save_LIBS"
22232 fi
22233 fi
22234 if test "x$no_gtk" = x ; then
22235 echo "$as_me:$LINENO: result: yes" >&5
22236 echo "${ECHO_T}yes" >&6
22237 wx_cv_lib_gtk=1.2.7
22238 else
22239 echo "$as_me:$LINENO: result: no" >&5
22240 echo "${ECHO_T}no" >&6
22241 if test "$GTK_CONFIG" = "no" ; then
22242 echo "*** The gtk-config script installed by GTK could not be found"
22243 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22244 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22245 echo "*** full path to gtk-config."
22246 else
22247 if test -f conf.gtktest ; then
22248 :
22249 else
22250 echo "*** Could not run GTK test program, checking why..."
22251 CFLAGS="$CFLAGS $GTK_CFLAGS"
22252 LIBS="$LIBS $GTK_LIBS"
22253 cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h. */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259
22260 #include <gtk/gtk.h>
22261 #include <stdio.h>
22262
22263 int
22264 main ()
22265 {
22266 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22267 ;
22268 return 0;
22269 }
22270 _ACEOF
22271 rm -f conftest.$ac_objext conftest$ac_exeext
22272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22273 (eval $ac_link) 2>conftest.er1
22274 ac_status=$?
22275 grep -v '^ *+' conftest.er1 >conftest.err
22276 rm -f conftest.er1
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } &&
22280 { ac_try='test -z "$ac_c_werror_flag"
22281 || test ! -s conftest.err'
22282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283 (eval $ac_try) 2>&5
22284 ac_status=$?
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); }; } &&
22287 { ac_try='test -s conftest$ac_exeext'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22290 ac_status=$?
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; }; then
22293 echo "*** The test program compiled, but did not run. This usually means"
22294 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22295 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22296 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22297 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22298 echo "*** is required on your system"
22299 echo "***"
22300 echo "*** If you have an old version installed, it is best to remove it, although"
22301 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22302 echo "***"
22303 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22304 echo "*** came with the system with the command"
22305 echo "***"
22306 echo "*** rpm --erase --nodeps gtk gtk-devel"
22307 else
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22310
22311 echo "*** The test program failed to compile or link. See the file config.log for the"
22312 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22313 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22314 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22315 fi
22316 rm -f conftest.err conftest.$ac_objext \
22317 conftest$ac_exeext conftest.$ac_ext
22318 CFLAGS="$ac_save_CFLAGS"
22319 LIBS="$ac_save_LIBS"
22320 fi
22321 fi
22322 GTK_CFLAGS=""
22323 GTK_LIBS=""
22324 :
22325 fi
22326
22327
22328 rm -f conf.gtktest
22329
22330
22331 if test -z "$wx_cv_lib_gtk"; then
22332
22333 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22334 if test "${with_gtk_prefix+set}" = set; then
22335 withval="$with_gtk_prefix"
22336 gtk_config_prefix="$withval"
22337 else
22338 gtk_config_prefix=""
22339 fi;
22340
22341 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22342 if test "${with_gtk_exec_prefix+set}" = set; then
22343 withval="$with_gtk_exec_prefix"
22344 gtk_config_exec_prefix="$withval"
22345 else
22346 gtk_config_exec_prefix=""
22347 fi;
22348 # Check whether --enable-gtktest or --disable-gtktest was given.
22349 if test "${enable_gtktest+set}" = set; then
22350 enableval="$enable_gtktest"
22351
22352 else
22353 enable_gtktest=yes
22354 fi;
22355
22356 for module in . $GTK_MODULES
22357 do
22358 case "$module" in
22359 gthread)
22360 gtk_config_args="$gtk_config_args gthread"
22361 ;;
22362 esac
22363 done
22364
22365 if test x$gtk_config_exec_prefix != x ; then
22366 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22367 if test x${GTK_CONFIG+set} != xset ; then
22368 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22369 fi
22370 fi
22371 if test x$gtk_config_prefix != x ; then
22372 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22373 if test x${GTK_CONFIG+set} != xset ; then
22374 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22375 fi
22376 fi
22377
22378 # Extract the first word of "gtk-config", so it can be a program name with args.
22379 set dummy gtk-config; ac_word=$2
22380 echo "$as_me:$LINENO: checking for $ac_word" >&5
22381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22382 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22383 echo $ECHO_N "(cached) $ECHO_C" >&6
22384 else
22385 case $GTK_CONFIG in
22386 [\\/]* | ?:[\\/]*)
22387 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22388 ;;
22389 *)
22390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22391 for as_dir in $PATH
22392 do
22393 IFS=$as_save_IFS
22394 test -z "$as_dir" && as_dir=.
22395 for ac_exec_ext in '' $ac_executable_extensions; do
22396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22397 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22399 break 2
22400 fi
22401 done
22402 done
22403
22404 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22405 ;;
22406 esac
22407 fi
22408 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22409
22410 if test -n "$GTK_CONFIG"; then
22411 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22412 echo "${ECHO_T}$GTK_CONFIG" >&6
22413 else
22414 echo "$as_me:$LINENO: result: no" >&5
22415 echo "${ECHO_T}no" >&6
22416 fi
22417
22418 min_gtk_version=1.2.3
22419 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22420 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22421 no_gtk=""
22422 if test "$GTK_CONFIG" = "no" ; then
22423 no_gtk=yes
22424 else
22425 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22426 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22427 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22428 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22429 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22430 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22431 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22432 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22433 if test "x$enable_gtktest" = "xyes" ; then
22434 ac_save_CFLAGS="$CFLAGS"
22435 ac_save_LIBS="$LIBS"
22436 CFLAGS="$CFLAGS $GTK_CFLAGS"
22437 LIBS="$GTK_LIBS $LIBS"
22438 rm -f conf.gtktest
22439 if test "$cross_compiling" = yes; then
22440 echo $ac_n "cross compiling; assumed OK... $ac_c"
22441 else
22442 cat >conftest.$ac_ext <<_ACEOF
22443 /* confdefs.h. */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h. */
22448
22449 #include <gtk/gtk.h>
22450 #include <stdio.h>
22451 #include <stdlib.h>
22452
22453 int
22454 main ()
22455 {
22456 int major, minor, micro;
22457 char *tmp_version;
22458
22459 system ("touch conf.gtktest");
22460
22461 /* HP/UX 9 (%@#!) writes to sscanf strings */
22462 tmp_version = g_strdup("$min_gtk_version");
22463 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22464 printf("%s, bad version string\n", "$min_gtk_version");
22465 exit(1);
22466 }
22467
22468 if ((gtk_major_version != $gtk_config_major_version) ||
22469 (gtk_minor_version != $gtk_config_minor_version) ||
22470 (gtk_micro_version != $gtk_config_micro_version))
22471 {
22472 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22473 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22474 gtk_major_version, gtk_minor_version, gtk_micro_version);
22475 printf ("*** was found! If gtk-config was correct, then it is best\n");
22476 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22477 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22478 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22479 printf("*** required on your system.\n");
22480 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22481 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22482 printf("*** before re-running configure\n");
22483 }
22484 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22485 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22486 (gtk_minor_version != GTK_MINOR_VERSION) ||
22487 (gtk_micro_version != GTK_MICRO_VERSION))
22488 {
22489 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22490 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22491 printf("*** library (version %d.%d.%d)\n",
22492 gtk_major_version, gtk_minor_version, gtk_micro_version);
22493 }
22494 #endif /* defined (GTK_MAJOR_VERSION) ... */
22495 else
22496 {
22497 if ((gtk_major_version > major) ||
22498 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22499 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22500 {
22501 return 0;
22502 }
22503 else
22504 {
22505 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22506 gtk_major_version, gtk_minor_version, gtk_micro_version);
22507 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22508 major, minor, micro);
22509 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22510 printf("***\n");
22511 printf("*** If you have already installed a sufficiently new version, this error\n");
22512 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22513 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22514 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22515 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22516 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22517 printf("*** so that the correct libraries are found at run-time))\n");
22518 }
22519 }
22520 return 1;
22521 }
22522
22523 _ACEOF
22524 rm -f conftest$ac_exeext
22525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22526 (eval $ac_link) 2>&5
22527 ac_status=$?
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22531 (eval $ac_try) 2>&5
22532 ac_status=$?
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); }; }; then
22535 :
22536 else
22537 echo "$as_me: program exited with status $ac_status" >&5
22538 echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22540
22541 ( exit $ac_status )
22542 no_gtk=yes
22543 fi
22544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22545 fi
22546 CFLAGS="$ac_save_CFLAGS"
22547 LIBS="$ac_save_LIBS"
22548 fi
22549 fi
22550 if test "x$no_gtk" = x ; then
22551 echo "$as_me:$LINENO: result: yes" >&5
22552 echo "${ECHO_T}yes" >&6
22553 wx_cv_lib_gtk=1.2.3
22554 else
22555 echo "$as_me:$LINENO: result: no" >&5
22556 echo "${ECHO_T}no" >&6
22557 if test "$GTK_CONFIG" = "no" ; then
22558 echo "*** The gtk-config script installed by GTK could not be found"
22559 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22560 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22561 echo "*** full path to gtk-config."
22562 else
22563 if test -f conf.gtktest ; then
22564 :
22565 else
22566 echo "*** Could not run GTK test program, checking why..."
22567 CFLAGS="$CFLAGS $GTK_CFLAGS"
22568 LIBS="$LIBS $GTK_LIBS"
22569 cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h. */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h. */
22575
22576 #include <gtk/gtk.h>
22577 #include <stdio.h>
22578
22579 int
22580 main ()
22581 {
22582 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22583 ;
22584 return 0;
22585 }
22586 _ACEOF
22587 rm -f conftest.$ac_objext conftest$ac_exeext
22588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22589 (eval $ac_link) 2>conftest.er1
22590 ac_status=$?
22591 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1
22593 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } &&
22596 { ac_try='test -z "$ac_c_werror_flag"
22597 || test ! -s conftest.err'
22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599 (eval $ac_try) 2>&5
22600 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); }; } &&
22603 { ac_try='test -s conftest$ac_exeext'
22604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605 (eval $ac_try) 2>&5
22606 ac_status=$?
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); }; }; then
22609 echo "*** The test program compiled, but did not run. This usually means"
22610 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22611 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22612 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22613 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22614 echo "*** is required on your system"
22615 echo "***"
22616 echo "*** If you have an old version installed, it is best to remove it, although"
22617 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22618 echo "***"
22619 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22620 echo "*** came with the system with the command"
22621 echo "***"
22622 echo "*** rpm --erase --nodeps gtk gtk-devel"
22623 else
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22626
22627 echo "*** The test program failed to compile or link. See the file config.log for the"
22628 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22629 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22630 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22631 fi
22632 rm -f conftest.err conftest.$ac_objext \
22633 conftest$ac_exeext conftest.$ac_ext
22634 CFLAGS="$ac_save_CFLAGS"
22635 LIBS="$ac_save_LIBS"
22636 fi
22637 fi
22638 GTK_CFLAGS=""
22639 GTK_LIBS=""
22640 :
22641 fi
22642
22643
22644 rm -f conf.gtktest
22645
22646 fi
22647 fi
22648
22649 if test -z "$wx_cv_lib_gtk"; then
22650 wx_cv_lib_gtk=none
22651 else
22652 wx_cv_cflags_gtk=$GTK_CFLAGS
22653 wx_cv_libs_gtk=$GTK_LIBS
22654 fi
22655
22656
22657 fi
22658
22659
22660 if test "$gtk_version_cached" = 1; then
22661 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22662 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
22663 fi
22664
22665 case "$wx_cv_lib_gtk" in
22666 2.0) WXGTK20=1
22667 TOOLKIT_VERSION=2
22668 ;;
22669 1.2.7) WXGTK127=1
22670 WXGTK12=1
22671 ;;
22672 1.2.3) WXGTK12=1
22673 ;;
22674 *) { { echo "$as_me:$LINENO: error:
22675 Please check that gtk-config is in path, the directory
22676 where GTK+ libraries are installed (returned by
22677 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22678 equivalent variable and GTK+ is version 1.2.3 or above.
22679 " >&5
22680 echo "$as_me: error:
22681 Please check that gtk-config is in path, the directory
22682 where GTK+ libraries are installed (returned by
22683 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22684 equivalent variable and GTK+ is version 1.2.3 or above.
22685 " >&2;}
22686 { (exit 1); exit 1; }; }
22687 ;;
22688 esac
22689
22690 if test "$WXGTK20" = 1; then
22691 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
22692
22693 succeeded=no
22694
22695 if test -z "$PKG_CONFIG"; then
22696 # Extract the first word of "pkg-config", so it can be a program name with args.
22697 set dummy pkg-config; ac_word=$2
22698 echo "$as_me:$LINENO: checking for $ac_word" >&5
22699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22700 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
22702 else
22703 case $PKG_CONFIG in
22704 [\\/]* | ?:[\\/]*)
22705 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22706 ;;
22707 *)
22708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22709 for as_dir in $PATH
22710 do
22711 IFS=$as_save_IFS
22712 test -z "$as_dir" && as_dir=.
22713 for ac_exec_ext in '' $ac_executable_extensions; do
22714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22715 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22717 break 2
22718 fi
22719 done
22720 done
22721
22722 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22723 ;;
22724 esac
22725 fi
22726 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22727
22728 if test -n "$PKG_CONFIG"; then
22729 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22730 echo "${ECHO_T}$PKG_CONFIG" >&6
22731 else
22732 echo "$as_me:$LINENO: result: no" >&5
22733 echo "${ECHO_T}no" >&6
22734 fi
22735
22736 fi
22737
22738 if test "$PKG_CONFIG" = "no" ; then
22739 echo "*** The pkg-config script could not be found. Make sure it is"
22740 echo "*** in your path, or set the PKG_CONFIG environment variable"
22741 echo "*** to the full path to pkg-config."
22742 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22743 else
22744 PKG_CONFIG_MIN_VERSION=0.9.0
22745 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22746 echo "$as_me:$LINENO: checking for pangoft2" >&5
22747 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22748
22749 if $PKG_CONFIG --exists "pangoft2" ; then
22750 echo "$as_me:$LINENO: result: yes" >&5
22751 echo "${ECHO_T}yes" >&6
22752 succeeded=yes
22753
22754 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22755 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22756 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22757 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22758 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22759
22760 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22761 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22762 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22763 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22764 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22765 else
22766 PANGOFT2_CFLAGS=""
22767 PANGOFT2_LIBS=""
22768 ## If we have a custom action on failure, don't print errors, but
22769 ## do set a variable so people can do so.
22770 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22771
22772 fi
22773
22774
22775
22776 else
22777 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22778 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22779 fi
22780 fi
22781
22782 if test $succeeded = yes; then
22783
22784 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22785 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22786
22787 else
22788
22789 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22790 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22791 wxUSE_PRINTING_ARCHITECTURE="no"
22792
22793
22794 fi
22795
22796 fi
22797 else
22798 if test "$wxUSE_UNICODE" = "yes"; then
22799 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22800 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
22801 wxUSE_UNICODE=no
22802 fi
22803 fi
22804
22805 if test "$USE_DARWIN" != 1; then
22806
22807 for ac_func in poll
22808 do
22809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22810 echo "$as_me:$LINENO: checking for $ac_func" >&5
22811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22812 if eval "test \"\${$as_ac_var+set}\" = set"; then
22813 echo $ECHO_N "(cached) $ECHO_C" >&6
22814 else
22815 cat >conftest.$ac_ext <<_ACEOF
22816 /* confdefs.h. */
22817 _ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22823 #define $ac_func innocuous_$ac_func
22824
22825 /* System header to define __stub macros and hopefully few prototypes,
22826 which can conflict with char $ac_func (); below.
22827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22828 <limits.h> exists even on freestanding compilers. */
22829
22830 #ifdef __STDC__
22831 # include <limits.h>
22832 #else
22833 # include <assert.h>
22834 #endif
22835
22836 #undef $ac_func
22837
22838 /* Override any gcc2 internal prototype to avoid an error. */
22839 #ifdef __cplusplus
22840 extern "C"
22841 {
22842 #endif
22843 /* We use char because int might match the return type of a gcc2
22844 builtin and then its argument prototype would still apply. */
22845 char $ac_func ();
22846 /* The GNU C library defines this for functions which it implements
22847 to always fail with ENOSYS. Some functions are actually named
22848 something starting with __ and the normal name is an alias. */
22849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22850 choke me
22851 #else
22852 char (*f) () = $ac_func;
22853 #endif
22854 #ifdef __cplusplus
22855 }
22856 #endif
22857
22858 int
22859 main ()
22860 {
22861 return f != $ac_func;
22862 ;
22863 return 0;
22864 }
22865 _ACEOF
22866 rm -f conftest.$ac_objext conftest$ac_exeext
22867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22868 (eval $ac_link) 2>conftest.er1
22869 ac_status=$?
22870 grep -v '^ *+' conftest.er1 >conftest.err
22871 rm -f conftest.er1
22872 cat conftest.err >&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); } &&
22875 { ac_try='test -z "$ac_c_werror_flag"
22876 || test ! -s conftest.err'
22877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22878 (eval $ac_try) 2>&5
22879 ac_status=$?
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); }; } &&
22882 { ac_try='test -s conftest$ac_exeext'
22883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22884 (eval $ac_try) 2>&5
22885 ac_status=$?
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); }; }; then
22888 eval "$as_ac_var=yes"
22889 else
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893 eval "$as_ac_var=no"
22894 fi
22895 rm -f conftest.err conftest.$ac_objext \
22896 conftest$ac_exeext conftest.$ac_ext
22897 fi
22898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22900 if test `eval echo '${'$as_ac_var'}'` = yes; then
22901 cat >>confdefs.h <<_ACEOF
22902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22903 _ACEOF
22904
22905 fi
22906 done
22907
22908 fi
22909
22910 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
22911 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
22912
22913 AFMINSTALL=afminstall
22914 TOOLKIT=GTK
22915 GUIDIST=GTK_DIST
22916
22917 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22918 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22919 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22920 echo $ECHO_N "(cached) $ECHO_C" >&6
22921 else
22922 ac_check_lib_save_LIBS=$LIBS
22923 LIBS="-lgdk $LIBS"
22924 cat >conftest.$ac_ext <<_ACEOF
22925 /* confdefs.h. */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h. */
22930
22931 /* Override any gcc2 internal prototype to avoid an error. */
22932 #ifdef __cplusplus
22933 extern "C"
22934 #endif
22935 /* We use char because int might match the return type of a gcc2
22936 builtin and then its argument prototype would still apply. */
22937 char gdk_im_open ();
22938 int
22939 main ()
22940 {
22941 gdk_im_open ();
22942 ;
22943 return 0;
22944 }
22945 _ACEOF
22946 rm -f conftest.$ac_objext conftest$ac_exeext
22947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22948 (eval $ac_link) 2>conftest.er1
22949 ac_status=$?
22950 grep -v '^ *+' conftest.er1 >conftest.err
22951 rm -f conftest.er1
22952 cat conftest.err >&5
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } &&
22955 { ac_try='test -z "$ac_c_werror_flag"
22956 || test ! -s conftest.err'
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); }; } &&
22962 { ac_try='test -s conftest$ac_exeext'
22963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964 (eval $ac_try) 2>&5
22965 ac_status=$?
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); }; }; then
22968 ac_cv_lib_gdk_gdk_im_open=yes
22969 else
22970 echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22972
22973 ac_cv_lib_gdk_gdk_im_open=no
22974 fi
22975 rm -f conftest.err conftest.$ac_objext \
22976 conftest$ac_exeext conftest.$ac_ext
22977 LIBS=$ac_check_lib_save_LIBS
22978 fi
22979 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22980 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22981 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22982 cat >>confdefs.h <<\_ACEOF
22983 #define HAVE_XIM 1
22984 _ACEOF
22985
22986 fi
22987
22988 fi
22989
22990 if test "$wxUSE_MGL" = 1; then
22991 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22992 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
22993 if test "x$MGL_ROOT" = x ; then
22994 echo "$as_me:$LINENO: result: not found" >&5
22995 echo "${ECHO_T}not found" >&6
22996 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
22997 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
22998 { (exit 1); exit 1; }; }
22999 else
23000 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23001 echo "${ECHO_T}$MGL_ROOT" >&6
23002 fi
23003
23004 echo "$as_me:$LINENO: checking for libmgl location" >&5
23005 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23006 case "${host}" in
23007 *-*-linux* )
23008 if test "x$wxUSE_SHARED" = xyes ; then
23009 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23010 else
23011 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23012 fi
23013 ;;
23014 *-pc-msdosdjgpp )
23015 mgl_os_candidates="dos32/dj2"
23016 ;;
23017 *)
23018 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23019 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23020 { (exit 1); exit 1; }; }
23021 esac
23022
23023 mgl_lib_type=""
23024 mgl_os=""
23025
23026 for mgl_os_i in $mgl_os_candidates ; do
23027 if test "x$mgl_os" = x ; then
23028 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23029 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23030 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23031 mgl_lib_type=debug
23032 mgl_os=$mgl_os_i
23033 fi
23034 fi
23035 if test "x$mgl_lib_type" = x ; then
23036 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23037 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23038 mgl_lib_type=release
23039 mgl_os=$mgl_os_i
23040 fi
23041 fi
23042 fi
23043 done
23044
23045 if test "x$mgl_os" = x ; then
23046 echo "$as_me:$LINENO: result: not found" >&5
23047 echo "${ECHO_T}not found" >&6
23048 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23049 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23050 { (exit 1); exit 1; }; }
23051 fi
23052 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23053 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23054
23055 wxUSE_UNIVERSAL="yes"
23056
23057 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23058 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23059
23060 AFMINSTALL=afminstall
23061 TOOLKIT=MGL
23062 GUIDIST=MGL_DIST
23063 fi
23064
23065 if test "$wxUSE_MICROWIN" = 1; then
23066 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23067 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23068 if test "x$MICROWINDOWS" = x ; then
23069 echo "$as_me:$LINENO: result: not found" >&5
23070 echo "${ECHO_T}not found" >&6
23071 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23072 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23073 { (exit 1); exit 1; }; }
23074 else
23075 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23076 echo "${ECHO_T}$MICROWINDOWS" >&6
23077 fi
23078
23079 if test -f $MICROWINDOWS/lib/libmwin.a; then
23080 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23081 echo "${ECHO_T}MicroWindows' libraries found." >&6
23082 else
23083 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23084 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23085 { (exit 1); exit 1; }; }
23086 fi
23087
23088 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23089 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23090
23091 wxUSE_UNIVERSAL="yes"
23092
23093 AFMINSTALL=afminstall
23094 TOOLKIT=MICROWIN
23095 GUIDIST=MICROWIN_DIST
23096
23097 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23098 fi
23099
23100 if test "$wxUSE_X11" = 1; then
23101 echo "$as_me:$LINENO: checking for X" >&5
23102 echo $ECHO_N "checking for X... $ECHO_C" >&6
23103
23104
23105 # Check whether --with-x or --without-x was given.
23106 if test "${with_x+set}" = set; then
23107 withval="$with_x"
23108
23109 fi;
23110 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23111 if test "x$with_x" = xno; then
23112 # The user explicitly disabled X.
23113 have_x=disabled
23114 else
23115 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23116 # Both variables are already set.
23117 have_x=yes
23118 else
23119 if test "${ac_cv_have_x+set}" = set; then
23120 echo $ECHO_N "(cached) $ECHO_C" >&6
23121 else
23122 # One or both of the vars are not set, and there is no cached value.
23123 ac_x_includes=no ac_x_libraries=no
23124 rm -fr conftest.dir
23125 if mkdir conftest.dir; then
23126 cd conftest.dir
23127 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23128 cat >Imakefile <<'_ACEOF'
23129 acfindx:
23130 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23131 _ACEOF
23132 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23134 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23135 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23136 for ac_extension in a so sl; do
23137 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23138 test -f $ac_im_libdir/libX11.$ac_extension; then
23139 ac_im_usrlibdir=$ac_im_libdir; break
23140 fi
23141 done
23142 # Screen out bogus values from the imake configuration. They are
23143 # bogus both because they are the default anyway, and because
23144 # using them would break gcc on systems where it needs fixed includes.
23145 case $ac_im_incroot in
23146 /usr/include) ;;
23147 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23148 esac
23149 case $ac_im_usrlibdir in
23150 /usr/lib | /lib) ;;
23151 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23152 esac
23153 fi
23154 cd ..
23155 rm -fr conftest.dir
23156 fi
23157
23158 # Standard set of common directories for X headers.
23159 # Check X11 before X11Rn because it is often a symlink to the current release.
23160 ac_x_header_dirs='
23161 /usr/X11/include
23162 /usr/X11R6/include
23163 /usr/X11R5/include
23164 /usr/X11R4/include
23165
23166 /usr/include/X11
23167 /usr/include/X11R6
23168 /usr/include/X11R5
23169 /usr/include/X11R4
23170
23171 /usr/local/X11/include
23172 /usr/local/X11R6/include
23173 /usr/local/X11R5/include
23174 /usr/local/X11R4/include
23175
23176 /usr/local/include/X11
23177 /usr/local/include/X11R6
23178 /usr/local/include/X11R5
23179 /usr/local/include/X11R4
23180
23181 /usr/X386/include
23182 /usr/x386/include
23183 /usr/XFree86/include/X11
23184
23185 /usr/include
23186 /usr/local/include
23187 /usr/unsupported/include
23188 /usr/athena/include
23189 /usr/local/x11r5/include
23190 /usr/lpp/Xamples/include
23191
23192 /usr/openwin/include
23193 /usr/openwin/share/include'
23194
23195 if test "$ac_x_includes" = no; then
23196 # Guess where to find include files, by looking for Intrinsic.h.
23197 # First, try using that file with no special directory specified.
23198 cat >conftest.$ac_ext <<_ACEOF
23199 /* confdefs.h. */
23200 _ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23204 #include <X11/Intrinsic.h>
23205 _ACEOF
23206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23208 ac_status=$?
23209 grep -v '^ *+' conftest.er1 >conftest.err
23210 rm -f conftest.er1
23211 cat conftest.err >&5
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); } >/dev/null; then
23214 if test -s conftest.err; then
23215 ac_cpp_err=$ac_c_preproc_warn_flag
23216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23217 else
23218 ac_cpp_err=
23219 fi
23220 else
23221 ac_cpp_err=yes
23222 fi
23223 if test -z "$ac_cpp_err"; then
23224 # We can compile using X headers with no special include directory.
23225 ac_x_includes=
23226 else
23227 echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23229
23230 for ac_dir in $ac_x_header_dirs; do
23231 if test -r "$ac_dir/X11/Intrinsic.h"; then
23232 ac_x_includes=$ac_dir
23233 break
23234 fi
23235 done
23236 fi
23237 rm -f conftest.err conftest.$ac_ext
23238 fi # $ac_x_includes = no
23239
23240 if test "$ac_x_libraries" = no; then
23241 # Check for the libraries.
23242 # See if we find them without any special options.
23243 # Don't add to $LIBS permanently.
23244 ac_save_LIBS=$LIBS
23245 LIBS="-lXt $LIBS"
23246 cat >conftest.$ac_ext <<_ACEOF
23247 /* confdefs.h. */
23248 _ACEOF
23249 cat confdefs.h >>conftest.$ac_ext
23250 cat >>conftest.$ac_ext <<_ACEOF
23251 /* end confdefs.h. */
23252 #include <X11/Intrinsic.h>
23253 int
23254 main ()
23255 {
23256 XtMalloc (0)
23257 ;
23258 return 0;
23259 }
23260 _ACEOF
23261 rm -f conftest.$ac_objext conftest$ac_exeext
23262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23263 (eval $ac_link) 2>conftest.er1
23264 ac_status=$?
23265 grep -v '^ *+' conftest.er1 >conftest.err
23266 rm -f conftest.er1
23267 cat conftest.err >&5
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); } &&
23270 { ac_try='test -z "$ac_c_werror_flag"
23271 || test ! -s conftest.err'
23272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23274 ac_status=$?
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; } &&
23277 { ac_try='test -s conftest$ac_exeext'
23278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23279 (eval $ac_try) 2>&5
23280 ac_status=$?
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); }; }; then
23283 LIBS=$ac_save_LIBS
23284 # We can link X programs with no special library path.
23285 ac_x_libraries=
23286 else
23287 echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23289
23290 LIBS=$ac_save_LIBS
23291 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23292 do
23293 # Don't even attempt the hair of trying to link an X program!
23294 for ac_extension in a so sl; do
23295 if test -r $ac_dir/libXt.$ac_extension; then
23296 ac_x_libraries=$ac_dir
23297 break 2
23298 fi
23299 done
23300 done
23301 fi
23302 rm -f conftest.err conftest.$ac_objext \
23303 conftest$ac_exeext conftest.$ac_ext
23304 fi # $ac_x_libraries = no
23305
23306 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23307 # Didn't find X anywhere. Cache the known absence of X.
23308 ac_cv_have_x="have_x=no"
23309 else
23310 # Record where we found X for the cache.
23311 ac_cv_have_x="have_x=yes \
23312 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23313 fi
23314 fi
23315
23316 fi
23317 eval "$ac_cv_have_x"
23318 fi # $with_x != no
23319
23320 if test "$have_x" != yes; then
23321 echo "$as_me:$LINENO: result: $have_x" >&5
23322 echo "${ECHO_T}$have_x" >&6
23323 no_x=yes
23324 else
23325 # If each of the values was on the command line, it overrides each guess.
23326 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23327 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23328 # Update the cache value to reflect the command line values.
23329 ac_cv_have_x="have_x=yes \
23330 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23331 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23332 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23333 fi
23334
23335 if test "$no_x" = yes; then
23336 # Not all programs may use this symbol, but it does not hurt to define it.
23337
23338 cat >>confdefs.h <<\_ACEOF
23339 #define X_DISPLAY_MISSING 1
23340 _ACEOF
23341
23342 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23343 else
23344 if test -n "$x_includes"; then
23345 X_CFLAGS="$X_CFLAGS -I$x_includes"
23346 fi
23347
23348 # It would also be nice to do this for all -L options, not just this one.
23349 if test -n "$x_libraries"; then
23350 X_LIBS="$X_LIBS -L$x_libraries"
23351 # For Solaris; some versions of Sun CC require a space after -R and
23352 # others require no space. Words are not sufficient . . . .
23353 case `(uname -sr) 2>/dev/null` in
23354 "SunOS 5"*)
23355 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23356 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23357 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23358 cat >conftest.$ac_ext <<_ACEOF
23359 /* confdefs.h. */
23360 _ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h. */
23364
23365 int
23366 main ()
23367 {
23368
23369 ;
23370 return 0;
23371 }
23372 _ACEOF
23373 rm -f conftest.$ac_objext conftest$ac_exeext
23374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23375 (eval $ac_link) 2>conftest.er1
23376 ac_status=$?
23377 grep -v '^ *+' conftest.er1 >conftest.err
23378 rm -f conftest.er1
23379 cat conftest.err >&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } &&
23382 { ac_try='test -z "$ac_c_werror_flag"
23383 || test ! -s conftest.err'
23384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385 (eval $ac_try) 2>&5
23386 ac_status=$?
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); }; } &&
23389 { ac_try='test -s conftest$ac_exeext'
23390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391 (eval $ac_try) 2>&5
23392 ac_status=$?
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; }; then
23395 ac_R_nospace=yes
23396 else
23397 echo "$as_me: failed program was:" >&5
23398 sed 's/^/| /' conftest.$ac_ext >&5
23399
23400 ac_R_nospace=no
23401 fi
23402 rm -f conftest.err conftest.$ac_objext \
23403 conftest$ac_exeext conftest.$ac_ext
23404 if test $ac_R_nospace = yes; then
23405 echo "$as_me:$LINENO: result: no" >&5
23406 echo "${ECHO_T}no" >&6
23407 X_LIBS="$X_LIBS -R$x_libraries"
23408 else
23409 LIBS="$ac_xsave_LIBS -R $x_libraries"
23410 cat >conftest.$ac_ext <<_ACEOF
23411 /* confdefs.h. */
23412 _ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23416
23417 int
23418 main ()
23419 {
23420
23421 ;
23422 return 0;
23423 }
23424 _ACEOF
23425 rm -f conftest.$ac_objext conftest$ac_exeext
23426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23427 (eval $ac_link) 2>conftest.er1
23428 ac_status=$?
23429 grep -v '^ *+' conftest.er1 >conftest.err
23430 rm -f conftest.er1
23431 cat conftest.err >&5
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); } &&
23434 { ac_try='test -z "$ac_c_werror_flag"
23435 || test ! -s conftest.err'
23436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23437 (eval $ac_try) 2>&5
23438 ac_status=$?
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); }; } &&
23441 { ac_try='test -s conftest$ac_exeext'
23442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23443 (eval $ac_try) 2>&5
23444 ac_status=$?
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); }; }; then
23447 ac_R_space=yes
23448 else
23449 echo "$as_me: failed program was:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23451
23452 ac_R_space=no
23453 fi
23454 rm -f conftest.err conftest.$ac_objext \
23455 conftest$ac_exeext conftest.$ac_ext
23456 if test $ac_R_space = yes; then
23457 echo "$as_me:$LINENO: result: yes" >&5
23458 echo "${ECHO_T}yes" >&6
23459 X_LIBS="$X_LIBS -R $x_libraries"
23460 else
23461 echo "$as_me:$LINENO: result: neither works" >&5
23462 echo "${ECHO_T}neither works" >&6
23463 fi
23464 fi
23465 LIBS=$ac_xsave_LIBS
23466 esac
23467 fi
23468
23469 # Check for system-dependent libraries X programs must link with.
23470 # Do this before checking for the system-independent R6 libraries
23471 # (-lICE), since we may need -lsocket or whatever for X linking.
23472
23473 if test "$ISC" = yes; then
23474 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23475 else
23476 # Martyn Johnson says this is needed for Ultrix, if the X
23477 # libraries were built with DECnet support. And Karl Berry says
23478 # the Alpha needs dnet_stub (dnet does not exist).
23479 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23480 cat >conftest.$ac_ext <<_ACEOF
23481 /* confdefs.h. */
23482 _ACEOF
23483 cat confdefs.h >>conftest.$ac_ext
23484 cat >>conftest.$ac_ext <<_ACEOF
23485 /* end confdefs.h. */
23486
23487 /* Override any gcc2 internal prototype to avoid an error. */
23488 #ifdef __cplusplus
23489 extern "C"
23490 #endif
23491 /* We use char because int might match the return type of a gcc2
23492 builtin and then its argument prototype would still apply. */
23493 char XOpenDisplay ();
23494 int
23495 main ()
23496 {
23497 XOpenDisplay ();
23498 ;
23499 return 0;
23500 }
23501 _ACEOF
23502 rm -f conftest.$ac_objext conftest$ac_exeext
23503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23504 (eval $ac_link) 2>conftest.er1
23505 ac_status=$?
23506 grep -v '^ *+' conftest.er1 >conftest.err
23507 rm -f conftest.er1
23508 cat conftest.err >&5
23509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); } &&
23511 { ac_try='test -z "$ac_c_werror_flag"
23512 || test ! -s conftest.err'
23513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514 (eval $ac_try) 2>&5
23515 ac_status=$?
23516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; } &&
23518 { ac_try='test -s conftest$ac_exeext'
23519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23520 (eval $ac_try) 2>&5
23521 ac_status=$?
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); }; }; then
23524 :
23525 else
23526 echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23528
23529 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23530 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23531 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23533 else
23534 ac_check_lib_save_LIBS=$LIBS
23535 LIBS="-ldnet $LIBS"
23536 cat >conftest.$ac_ext <<_ACEOF
23537 /* confdefs.h. */
23538 _ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h. */
23542
23543 /* Override any gcc2 internal prototype to avoid an error. */
23544 #ifdef __cplusplus
23545 extern "C"
23546 #endif
23547 /* We use char because int might match the return type of a gcc2
23548 builtin and then its argument prototype would still apply. */
23549 char dnet_ntoa ();
23550 int
23551 main ()
23552 {
23553 dnet_ntoa ();
23554 ;
23555 return 0;
23556 }
23557 _ACEOF
23558 rm -f conftest.$ac_objext conftest$ac_exeext
23559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23560 (eval $ac_link) 2>conftest.er1
23561 ac_status=$?
23562 grep -v '^ *+' conftest.er1 >conftest.err
23563 rm -f conftest.er1
23564 cat conftest.err >&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } &&
23567 { ac_try='test -z "$ac_c_werror_flag"
23568 || test ! -s conftest.err'
23569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570 (eval $ac_try) 2>&5
23571 ac_status=$?
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); }; } &&
23574 { ac_try='test -s conftest$ac_exeext'
23575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23577 ac_status=$?
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; }; then
23580 ac_cv_lib_dnet_dnet_ntoa=yes
23581 else
23582 echo "$as_me: failed program was:" >&5
23583 sed 's/^/| /' conftest.$ac_ext >&5
23584
23585 ac_cv_lib_dnet_dnet_ntoa=no
23586 fi
23587 rm -f conftest.err conftest.$ac_objext \
23588 conftest$ac_exeext conftest.$ac_ext
23589 LIBS=$ac_check_lib_save_LIBS
23590 fi
23591 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23592 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23593 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23594 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23595 fi
23596
23597 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23598 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23599 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23600 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23601 echo $ECHO_N "(cached) $ECHO_C" >&6
23602 else
23603 ac_check_lib_save_LIBS=$LIBS
23604 LIBS="-ldnet_stub $LIBS"
23605 cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h. */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23611
23612 /* Override any gcc2 internal prototype to avoid an error. */
23613 #ifdef __cplusplus
23614 extern "C"
23615 #endif
23616 /* We use char because int might match the return type of a gcc2
23617 builtin and then its argument prototype would still apply. */
23618 char dnet_ntoa ();
23619 int
23620 main ()
23621 {
23622 dnet_ntoa ();
23623 ;
23624 return 0;
23625 }
23626 _ACEOF
23627 rm -f conftest.$ac_objext conftest$ac_exeext
23628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23629 (eval $ac_link) 2>conftest.er1
23630 ac_status=$?
23631 grep -v '^ *+' conftest.er1 >conftest.err
23632 rm -f conftest.er1
23633 cat conftest.err >&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } &&
23636 { ac_try='test -z "$ac_c_werror_flag"
23637 || test ! -s conftest.err'
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5
23640 ac_status=$?
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; } &&
23643 { ac_try='test -s conftest$ac_exeext'
23644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23646 ac_status=$?
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; }; then
23649 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23650 else
23651 echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23653
23654 ac_cv_lib_dnet_stub_dnet_ntoa=no
23655 fi
23656 rm -f conftest.err conftest.$ac_objext \
23657 conftest$ac_exeext conftest.$ac_ext
23658 LIBS=$ac_check_lib_save_LIBS
23659 fi
23660 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23661 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23662 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23663 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23664 fi
23665
23666 fi
23667 fi
23668 rm -f conftest.err conftest.$ac_objext \
23669 conftest$ac_exeext conftest.$ac_ext
23670 LIBS="$ac_xsave_LIBS"
23671
23672 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23673 # to get the SysV transport functions.
23674 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23675 # needs -lnsl.
23676 # The nsl library prevents programs from opening the X display
23677 # on Irix 5.2, according to T.E. Dickey.
23678 # The functions gethostbyname, getservbyname, and inet_addr are
23679 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23680 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23681 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23682 if test "${ac_cv_func_gethostbyname+set}" = set; then
23683 echo $ECHO_N "(cached) $ECHO_C" >&6
23684 else
23685 cat >conftest.$ac_ext <<_ACEOF
23686 /* confdefs.h. */
23687 _ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23691 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23693 #define gethostbyname innocuous_gethostbyname
23694
23695 /* System header to define __stub macros and hopefully few prototypes,
23696 which can conflict with char gethostbyname (); below.
23697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23698 <limits.h> exists even on freestanding compilers. */
23699
23700 #ifdef __STDC__
23701 # include <limits.h>
23702 #else
23703 # include <assert.h>
23704 #endif
23705
23706 #undef gethostbyname
23707
23708 /* Override any gcc2 internal prototype to avoid an error. */
23709 #ifdef __cplusplus
23710 extern "C"
23711 {
23712 #endif
23713 /* We use char because int might match the return type of a gcc2
23714 builtin and then its argument prototype would still apply. */
23715 char gethostbyname ();
23716 /* The GNU C library defines this for functions which it implements
23717 to always fail with ENOSYS. Some functions are actually named
23718 something starting with __ and the normal name is an alias. */
23719 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23720 choke me
23721 #else
23722 char (*f) () = gethostbyname;
23723 #endif
23724 #ifdef __cplusplus
23725 }
23726 #endif
23727
23728 int
23729 main ()
23730 {
23731 return f != gethostbyname;
23732 ;
23733 return 0;
23734 }
23735 _ACEOF
23736 rm -f conftest.$ac_objext conftest$ac_exeext
23737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23738 (eval $ac_link) 2>conftest.er1
23739 ac_status=$?
23740 grep -v '^ *+' conftest.er1 >conftest.err
23741 rm -f conftest.er1
23742 cat conftest.err >&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } &&
23745 { ac_try='test -z "$ac_c_werror_flag"
23746 || test ! -s conftest.err'
23747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748 (eval $ac_try) 2>&5
23749 ac_status=$?
23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); }; } &&
23752 { ac_try='test -s conftest$ac_exeext'
23753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754 (eval $ac_try) 2>&5
23755 ac_status=$?
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); }; }; then
23758 ac_cv_func_gethostbyname=yes
23759 else
23760 echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23762
23763 ac_cv_func_gethostbyname=no
23764 fi
23765 rm -f conftest.err conftest.$ac_objext \
23766 conftest$ac_exeext conftest.$ac_ext
23767 fi
23768 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23769 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23770
23771 if test $ac_cv_func_gethostbyname = no; then
23772 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23773 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23774 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23775 echo $ECHO_N "(cached) $ECHO_C" >&6
23776 else
23777 ac_check_lib_save_LIBS=$LIBS
23778 LIBS="-lnsl $LIBS"
23779 cat >conftest.$ac_ext <<_ACEOF
23780 /* confdefs.h. */
23781 _ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h. */
23785
23786 /* Override any gcc2 internal prototype to avoid an error. */
23787 #ifdef __cplusplus
23788 extern "C"
23789 #endif
23790 /* We use char because int might match the return type of a gcc2
23791 builtin and then its argument prototype would still apply. */
23792 char gethostbyname ();
23793 int
23794 main ()
23795 {
23796 gethostbyname ();
23797 ;
23798 return 0;
23799 }
23800 _ACEOF
23801 rm -f conftest.$ac_objext conftest$ac_exeext
23802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23803 (eval $ac_link) 2>conftest.er1
23804 ac_status=$?
23805 grep -v '^ *+' conftest.er1 >conftest.err
23806 rm -f conftest.er1
23807 cat conftest.err >&5
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } &&
23810 { ac_try='test -z "$ac_c_werror_flag"
23811 || test ! -s conftest.err'
23812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813 (eval $ac_try) 2>&5
23814 ac_status=$?
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); }; } &&
23817 { ac_try='test -s conftest$ac_exeext'
23818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819 (eval $ac_try) 2>&5
23820 ac_status=$?
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); }; }; then
23823 ac_cv_lib_nsl_gethostbyname=yes
23824 else
23825 echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23827
23828 ac_cv_lib_nsl_gethostbyname=no
23829 fi
23830 rm -f conftest.err conftest.$ac_objext \
23831 conftest$ac_exeext conftest.$ac_ext
23832 LIBS=$ac_check_lib_save_LIBS
23833 fi
23834 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23835 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23836 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23837 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23838 fi
23839
23840 if test $ac_cv_lib_nsl_gethostbyname = no; then
23841 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23842 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23843 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23844 echo $ECHO_N "(cached) $ECHO_C" >&6
23845 else
23846 ac_check_lib_save_LIBS=$LIBS
23847 LIBS="-lbsd $LIBS"
23848 cat >conftest.$ac_ext <<_ACEOF
23849 /* confdefs.h. */
23850 _ACEOF
23851 cat confdefs.h >>conftest.$ac_ext
23852 cat >>conftest.$ac_ext <<_ACEOF
23853 /* end confdefs.h. */
23854
23855 /* Override any gcc2 internal prototype to avoid an error. */
23856 #ifdef __cplusplus
23857 extern "C"
23858 #endif
23859 /* We use char because int might match the return type of a gcc2
23860 builtin and then its argument prototype would still apply. */
23861 char gethostbyname ();
23862 int
23863 main ()
23864 {
23865 gethostbyname ();
23866 ;
23867 return 0;
23868 }
23869 _ACEOF
23870 rm -f conftest.$ac_objext conftest$ac_exeext
23871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23872 (eval $ac_link) 2>conftest.er1
23873 ac_status=$?
23874 grep -v '^ *+' conftest.er1 >conftest.err
23875 rm -f conftest.er1
23876 cat conftest.err >&5
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); } &&
23879 { ac_try='test -z "$ac_c_werror_flag"
23880 || test ! -s conftest.err'
23881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882 (eval $ac_try) 2>&5
23883 ac_status=$?
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; } &&
23886 { ac_try='test -s conftest$ac_exeext'
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; }; then
23892 ac_cv_lib_bsd_gethostbyname=yes
23893 else
23894 echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.$ac_ext >&5
23896
23897 ac_cv_lib_bsd_gethostbyname=no
23898 fi
23899 rm -f conftest.err conftest.$ac_objext \
23900 conftest$ac_exeext conftest.$ac_ext
23901 LIBS=$ac_check_lib_save_LIBS
23902 fi
23903 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23904 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23905 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23906 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23907 fi
23908
23909 fi
23910 fi
23911
23912 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23913 # socket/setsockopt and other routines are undefined under SCO ODT
23914 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23915 # on later versions), says Simon Leinen: it contains gethostby*
23916 # variants that don't use the name server (or something). -lsocket
23917 # must be given before -lnsl if both are needed. We assume that
23918 # if connect needs -lnsl, so does gethostbyname.
23919 echo "$as_me:$LINENO: checking for connect" >&5
23920 echo $ECHO_N "checking for connect... $ECHO_C" >&6
23921 if test "${ac_cv_func_connect+set}" = set; then
23922 echo $ECHO_N "(cached) $ECHO_C" >&6
23923 else
23924 cat >conftest.$ac_ext <<_ACEOF
23925 /* confdefs.h. */
23926 _ACEOF
23927 cat confdefs.h >>conftest.$ac_ext
23928 cat >>conftest.$ac_ext <<_ACEOF
23929 /* end confdefs.h. */
23930 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23932 #define connect innocuous_connect
23933
23934 /* System header to define __stub macros and hopefully few prototypes,
23935 which can conflict with char connect (); below.
23936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23937 <limits.h> exists even on freestanding compilers. */
23938
23939 #ifdef __STDC__
23940 # include <limits.h>
23941 #else
23942 # include <assert.h>
23943 #endif
23944
23945 #undef connect
23946
23947 /* Override any gcc2 internal prototype to avoid an error. */
23948 #ifdef __cplusplus
23949 extern "C"
23950 {
23951 #endif
23952 /* We use char because int might match the return type of a gcc2
23953 builtin and then its argument prototype would still apply. */
23954 char connect ();
23955 /* The GNU C library defines this for functions which it implements
23956 to always fail with ENOSYS. Some functions are actually named
23957 something starting with __ and the normal name is an alias. */
23958 #if defined (__stub_connect) || defined (__stub___connect)
23959 choke me
23960 #else
23961 char (*f) () = connect;
23962 #endif
23963 #ifdef __cplusplus
23964 }
23965 #endif
23966
23967 int
23968 main ()
23969 {
23970 return f != connect;
23971 ;
23972 return 0;
23973 }
23974 _ACEOF
23975 rm -f conftest.$ac_objext conftest$ac_exeext
23976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23977 (eval $ac_link) 2>conftest.er1
23978 ac_status=$?
23979 grep -v '^ *+' conftest.er1 >conftest.err
23980 rm -f conftest.er1
23981 cat conftest.err >&5
23982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); } &&
23984 { ac_try='test -z "$ac_c_werror_flag"
23985 || test ! -s conftest.err'
23986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23987 (eval $ac_try) 2>&5
23988 ac_status=$?
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); }; } &&
23991 { ac_try='test -s conftest$ac_exeext'
23992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23993 (eval $ac_try) 2>&5
23994 ac_status=$?
23995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); }; }; then
23997 ac_cv_func_connect=yes
23998 else
23999 echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24001
24002 ac_cv_func_connect=no
24003 fi
24004 rm -f conftest.err conftest.$ac_objext \
24005 conftest$ac_exeext conftest.$ac_ext
24006 fi
24007 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24008 echo "${ECHO_T}$ac_cv_func_connect" >&6
24009
24010 if test $ac_cv_func_connect = no; then
24011 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24012 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24013 if test "${ac_cv_lib_socket_connect+set}" = set; then
24014 echo $ECHO_N "(cached) $ECHO_C" >&6
24015 else
24016 ac_check_lib_save_LIBS=$LIBS
24017 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24018 cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h. */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24024
24025 /* Override any gcc2 internal prototype to avoid an error. */
24026 #ifdef __cplusplus
24027 extern "C"
24028 #endif
24029 /* We use char because int might match the return type of a gcc2
24030 builtin and then its argument prototype would still apply. */
24031 char connect ();
24032 int
24033 main ()
24034 {
24035 connect ();
24036 ;
24037 return 0;
24038 }
24039 _ACEOF
24040 rm -f conftest.$ac_objext conftest$ac_exeext
24041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24042 (eval $ac_link) 2>conftest.er1
24043 ac_status=$?
24044 grep -v '^ *+' conftest.er1 >conftest.err
24045 rm -f conftest.er1
24046 cat conftest.err >&5
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); } &&
24049 { ac_try='test -z "$ac_c_werror_flag"
24050 || test ! -s conftest.err'
24051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24052 (eval $ac_try) 2>&5
24053 ac_status=$?
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); }; } &&
24056 { ac_try='test -s conftest$ac_exeext'
24057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24058 (eval $ac_try) 2>&5
24059 ac_status=$?
24060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); }; }; then
24062 ac_cv_lib_socket_connect=yes
24063 else
24064 echo "$as_me: failed program was:" >&5
24065 sed 's/^/| /' conftest.$ac_ext >&5
24066
24067 ac_cv_lib_socket_connect=no
24068 fi
24069 rm -f conftest.err conftest.$ac_objext \
24070 conftest$ac_exeext conftest.$ac_ext
24071 LIBS=$ac_check_lib_save_LIBS
24072 fi
24073 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24074 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24075 if test $ac_cv_lib_socket_connect = yes; then
24076 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24077 fi
24078
24079 fi
24080
24081 # Guillermo Gomez says -lposix is necessary on A/UX.
24082 echo "$as_me:$LINENO: checking for remove" >&5
24083 echo $ECHO_N "checking for remove... $ECHO_C" >&6
24084 if test "${ac_cv_func_remove+set}" = set; then
24085 echo $ECHO_N "(cached) $ECHO_C" >&6
24086 else
24087 cat >conftest.$ac_ext <<_ACEOF
24088 /* confdefs.h. */
24089 _ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h. */
24093 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
24094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24095 #define remove innocuous_remove
24096
24097 /* System header to define __stub macros and hopefully few prototypes,
24098 which can conflict with char remove (); below.
24099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24100 <limits.h> exists even on freestanding compilers. */
24101
24102 #ifdef __STDC__
24103 # include <limits.h>
24104 #else
24105 # include <assert.h>
24106 #endif
24107
24108 #undef remove
24109
24110 /* Override any gcc2 internal prototype to avoid an error. */
24111 #ifdef __cplusplus
24112 extern "C"
24113 {
24114 #endif
24115 /* We use char because int might match the return type of a gcc2
24116 builtin and then its argument prototype would still apply. */
24117 char remove ();
24118 /* The GNU C library defines this for functions which it implements
24119 to always fail with ENOSYS. Some functions are actually named
24120 something starting with __ and the normal name is an alias. */
24121 #if defined (__stub_remove) || defined (__stub___remove)
24122 choke me
24123 #else
24124 char (*f) () = remove;
24125 #endif
24126 #ifdef __cplusplus
24127 }
24128 #endif
24129
24130 int
24131 main ()
24132 {
24133 return f != remove;
24134 ;
24135 return 0;
24136 }
24137 _ACEOF
24138 rm -f conftest.$ac_objext conftest$ac_exeext
24139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24140 (eval $ac_link) 2>conftest.er1
24141 ac_status=$?
24142 grep -v '^ *+' conftest.er1 >conftest.err
24143 rm -f conftest.er1
24144 cat conftest.err >&5
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); } &&
24147 { ac_try='test -z "$ac_c_werror_flag"
24148 || test ! -s conftest.err'
24149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24150 (eval $ac_try) 2>&5
24151 ac_status=$?
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); }; } &&
24154 { ac_try='test -s conftest$ac_exeext'
24155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24156 (eval $ac_try) 2>&5
24157 ac_status=$?
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); }; }; then
24160 ac_cv_func_remove=yes
24161 else
24162 echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24164
24165 ac_cv_func_remove=no
24166 fi
24167 rm -f conftest.err conftest.$ac_objext \
24168 conftest$ac_exeext conftest.$ac_ext
24169 fi
24170 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24171 echo "${ECHO_T}$ac_cv_func_remove" >&6
24172
24173 if test $ac_cv_func_remove = no; then
24174 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24175 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24176 if test "${ac_cv_lib_posix_remove+set}" = set; then
24177 echo $ECHO_N "(cached) $ECHO_C" >&6
24178 else
24179 ac_check_lib_save_LIBS=$LIBS
24180 LIBS="-lposix $LIBS"
24181 cat >conftest.$ac_ext <<_ACEOF
24182 /* confdefs.h. */
24183 _ACEOF
24184 cat confdefs.h >>conftest.$ac_ext
24185 cat >>conftest.$ac_ext <<_ACEOF
24186 /* end confdefs.h. */
24187
24188 /* Override any gcc2 internal prototype to avoid an error. */
24189 #ifdef __cplusplus
24190 extern "C"
24191 #endif
24192 /* We use char because int might match the return type of a gcc2
24193 builtin and then its argument prototype would still apply. */
24194 char remove ();
24195 int
24196 main ()
24197 {
24198 remove ();
24199 ;
24200 return 0;
24201 }
24202 _ACEOF
24203 rm -f conftest.$ac_objext conftest$ac_exeext
24204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24205 (eval $ac_link) 2>conftest.er1
24206 ac_status=$?
24207 grep -v '^ *+' conftest.er1 >conftest.err
24208 rm -f conftest.er1
24209 cat conftest.err >&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } &&
24212 { ac_try='test -z "$ac_c_werror_flag"
24213 || test ! -s conftest.err'
24214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24215 (eval $ac_try) 2>&5
24216 ac_status=$?
24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218 (exit $ac_status); }; } &&
24219 { ac_try='test -s conftest$ac_exeext'
24220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24221 (eval $ac_try) 2>&5
24222 ac_status=$?
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); }; }; then
24225 ac_cv_lib_posix_remove=yes
24226 else
24227 echo "$as_me: failed program was:" >&5
24228 sed 's/^/| /' conftest.$ac_ext >&5
24229
24230 ac_cv_lib_posix_remove=no
24231 fi
24232 rm -f conftest.err conftest.$ac_objext \
24233 conftest$ac_exeext conftest.$ac_ext
24234 LIBS=$ac_check_lib_save_LIBS
24235 fi
24236 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24237 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24238 if test $ac_cv_lib_posix_remove = yes; then
24239 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24240 fi
24241
24242 fi
24243
24244 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24245 echo "$as_me:$LINENO: checking for shmat" >&5
24246 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24247 if test "${ac_cv_func_shmat+set}" = set; then
24248 echo $ECHO_N "(cached) $ECHO_C" >&6
24249 else
24250 cat >conftest.$ac_ext <<_ACEOF
24251 /* confdefs.h. */
24252 _ACEOF
24253 cat confdefs.h >>conftest.$ac_ext
24254 cat >>conftest.$ac_ext <<_ACEOF
24255 /* end confdefs.h. */
24256 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24258 #define shmat innocuous_shmat
24259
24260 /* System header to define __stub macros and hopefully few prototypes,
24261 which can conflict with char shmat (); below.
24262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24263 <limits.h> exists even on freestanding compilers. */
24264
24265 #ifdef __STDC__
24266 # include <limits.h>
24267 #else
24268 # include <assert.h>
24269 #endif
24270
24271 #undef shmat
24272
24273 /* Override any gcc2 internal prototype to avoid an error. */
24274 #ifdef __cplusplus
24275 extern "C"
24276 {
24277 #endif
24278 /* We use char because int might match the return type of a gcc2
24279 builtin and then its argument prototype would still apply. */
24280 char shmat ();
24281 /* The GNU C library defines this for functions which it implements
24282 to always fail with ENOSYS. Some functions are actually named
24283 something starting with __ and the normal name is an alias. */
24284 #if defined (__stub_shmat) || defined (__stub___shmat)
24285 choke me
24286 #else
24287 char (*f) () = shmat;
24288 #endif
24289 #ifdef __cplusplus
24290 }
24291 #endif
24292
24293 int
24294 main ()
24295 {
24296 return f != shmat;
24297 ;
24298 return 0;
24299 }
24300 _ACEOF
24301 rm -f conftest.$ac_objext conftest$ac_exeext
24302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24303 (eval $ac_link) 2>conftest.er1
24304 ac_status=$?
24305 grep -v '^ *+' conftest.er1 >conftest.err
24306 rm -f conftest.er1
24307 cat conftest.err >&5
24308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309 (exit $ac_status); } &&
24310 { ac_try='test -z "$ac_c_werror_flag"
24311 || test ! -s conftest.err'
24312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24313 (eval $ac_try) 2>&5
24314 ac_status=$?
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); }; } &&
24317 { ac_try='test -s conftest$ac_exeext'
24318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24319 (eval $ac_try) 2>&5
24320 ac_status=$?
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); }; }; then
24323 ac_cv_func_shmat=yes
24324 else
24325 echo "$as_me: failed program was:" >&5
24326 sed 's/^/| /' conftest.$ac_ext >&5
24327
24328 ac_cv_func_shmat=no
24329 fi
24330 rm -f conftest.err conftest.$ac_objext \
24331 conftest$ac_exeext conftest.$ac_ext
24332 fi
24333 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24334 echo "${ECHO_T}$ac_cv_func_shmat" >&6
24335
24336 if test $ac_cv_func_shmat = no; then
24337 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24338 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24339 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24340 echo $ECHO_N "(cached) $ECHO_C" >&6
24341 else
24342 ac_check_lib_save_LIBS=$LIBS
24343 LIBS="-lipc $LIBS"
24344 cat >conftest.$ac_ext <<_ACEOF
24345 /* confdefs.h. */
24346 _ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h. */
24350
24351 /* Override any gcc2 internal prototype to avoid an error. */
24352 #ifdef __cplusplus
24353 extern "C"
24354 #endif
24355 /* We use char because int might match the return type of a gcc2
24356 builtin and then its argument prototype would still apply. */
24357 char shmat ();
24358 int
24359 main ()
24360 {
24361 shmat ();
24362 ;
24363 return 0;
24364 }
24365 _ACEOF
24366 rm -f conftest.$ac_objext conftest$ac_exeext
24367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24368 (eval $ac_link) 2>conftest.er1
24369 ac_status=$?
24370 grep -v '^ *+' conftest.er1 >conftest.err
24371 rm -f conftest.er1
24372 cat conftest.err >&5
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); } &&
24375 { ac_try='test -z "$ac_c_werror_flag"
24376 || test ! -s conftest.err'
24377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24378 (eval $ac_try) 2>&5
24379 ac_status=$?
24380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); }; } &&
24382 { ac_try='test -s conftest$ac_exeext'
24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384 (eval $ac_try) 2>&5
24385 ac_status=$?
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; }; then
24388 ac_cv_lib_ipc_shmat=yes
24389 else
24390 echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24392
24393 ac_cv_lib_ipc_shmat=no
24394 fi
24395 rm -f conftest.err conftest.$ac_objext \
24396 conftest$ac_exeext conftest.$ac_ext
24397 LIBS=$ac_check_lib_save_LIBS
24398 fi
24399 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24400 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24401 if test $ac_cv_lib_ipc_shmat = yes; then
24402 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24403 fi
24404
24405 fi
24406 fi
24407
24408 # Check for libraries that X11R6 Xt/Xaw programs need.
24409 ac_save_LDFLAGS=$LDFLAGS
24410 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24411 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24412 # check for ICE first), but we must link in the order -lSM -lICE or
24413 # we get undefined symbols. So assume we have SM if we have ICE.
24414 # These have to be linked with before -lX11, unlike the other
24415 # libraries we check for below, so use a different variable.
24416 # John Interrante, Karl Berry
24417 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24418 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24419 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24420 echo $ECHO_N "(cached) $ECHO_C" >&6
24421 else
24422 ac_check_lib_save_LIBS=$LIBS
24423 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24424 cat >conftest.$ac_ext <<_ACEOF
24425 /* confdefs.h. */
24426 _ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h. */
24430
24431 /* Override any gcc2 internal prototype to avoid an error. */
24432 #ifdef __cplusplus
24433 extern "C"
24434 #endif
24435 /* We use char because int might match the return type of a gcc2
24436 builtin and then its argument prototype would still apply. */
24437 char IceConnectionNumber ();
24438 int
24439 main ()
24440 {
24441 IceConnectionNumber ();
24442 ;
24443 return 0;
24444 }
24445 _ACEOF
24446 rm -f conftest.$ac_objext conftest$ac_exeext
24447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24448 (eval $ac_link) 2>conftest.er1
24449 ac_status=$?
24450 grep -v '^ *+' conftest.er1 >conftest.err
24451 rm -f conftest.er1
24452 cat conftest.err >&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } &&
24455 { ac_try='test -z "$ac_c_werror_flag"
24456 || test ! -s conftest.err'
24457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458 (eval $ac_try) 2>&5
24459 ac_status=$?
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); }; } &&
24462 { ac_try='test -s conftest$ac_exeext'
24463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464 (eval $ac_try) 2>&5
24465 ac_status=$?
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); }; }; then
24468 ac_cv_lib_ICE_IceConnectionNumber=yes
24469 else
24470 echo "$as_me: failed program was:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24472
24473 ac_cv_lib_ICE_IceConnectionNumber=no
24474 fi
24475 rm -f conftest.err conftest.$ac_objext \
24476 conftest$ac_exeext conftest.$ac_ext
24477 LIBS=$ac_check_lib_save_LIBS
24478 fi
24479 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24480 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24481 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24482 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24483 fi
24484
24485 LDFLAGS=$ac_save_LDFLAGS
24486
24487 fi
24488
24489
24490 if test "$no_x" = "yes"; then
24491 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24492 echo "$as_me: error: X11 not found" >&2;}
24493 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
24494 fi
24495
24496 GUI_TK_LIBRARY="$X_LIBS"
24497 TOOLKIT_INCLUDE="$X_CFLAGS"
24498 AFMINSTALL=afminstall
24499 COMPILED_X_PROGRAM=0
24500
24501 if test "$wxUSE_NANOX" = "yes"; then
24502 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
24503 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
24504 if test "x$MICROWIN" = x ; then
24505 echo "$as_me:$LINENO: result: not found" >&5
24506 echo "${ECHO_T}not found" >&6
24507 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
24508 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
24509 { (exit 1); exit 1; }; }
24510 else
24511 echo "$as_me:$LINENO: result: $MICROWIN" >&5
24512 echo "${ECHO_T}$MICROWIN" >&6
24513 cat >>confdefs.h <<\_ACEOF
24514 #define wxUSE_NANOX 1
24515 _ACEOF
24516
24517 fi
24518 fi
24519
24520 if test "$wxUSE_UNICODE" = "yes"; then
24521
24522 succeeded=no
24523
24524 if test -z "$PKG_CONFIG"; then
24525 # Extract the first word of "pkg-config", so it can be a program name with args.
24526 set dummy pkg-config; ac_word=$2
24527 echo "$as_me:$LINENO: checking for $ac_word" >&5
24528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24529 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24530 echo $ECHO_N "(cached) $ECHO_C" >&6
24531 else
24532 case $PKG_CONFIG in
24533 [\\/]* | ?:[\\/]*)
24534 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24535 ;;
24536 *)
24537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24538 for as_dir in $PATH
24539 do
24540 IFS=$as_save_IFS
24541 test -z "$as_dir" && as_dir=.
24542 for ac_exec_ext in '' $ac_executable_extensions; do
24543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24544 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24546 break 2
24547 fi
24548 done
24549 done
24550
24551 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24552 ;;
24553 esac
24554 fi
24555 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24556
24557 if test -n "$PKG_CONFIG"; then
24558 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24559 echo "${ECHO_T}$PKG_CONFIG" >&6
24560 else
24561 echo "$as_me:$LINENO: result: no" >&5
24562 echo "${ECHO_T}no" >&6
24563 fi
24564
24565 fi
24566
24567 if test "$PKG_CONFIG" = "no" ; then
24568 echo "*** The pkg-config script could not be found. Make sure it is"
24569 echo "*** in your path, or set the PKG_CONFIG environment variable"
24570 echo "*** to the full path to pkg-config."
24571 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24572 else
24573 PKG_CONFIG_MIN_VERSION=0.9.0
24574 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24575 echo "$as_me:$LINENO: checking for pangox" >&5
24576 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
24577
24578 if $PKG_CONFIG --exists "pangox" ; then
24579 echo "$as_me:$LINENO: result: yes" >&5
24580 echo "${ECHO_T}yes" >&6
24581 succeeded=yes
24582
24583 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
24584 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
24585 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
24586 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
24587 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
24588
24589 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24590 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
24591 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
24592 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24593 echo "${ECHO_T}$PANGOX_LIBS" >&6
24594 else
24595 PANGOX_CFLAGS=""
24596 PANGOX_LIBS=""
24597 ## If we have a custom action on failure, don't print errors, but
24598 ## do set a variable so people can do so.
24599 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
24600
24601 fi
24602
24603
24604
24605 else
24606 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24607 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24608 fi
24609 fi
24610
24611 if test $succeeded = yes; then
24612
24613 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
24614 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
24615
24616 else
24617
24618 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24619 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24620 { (exit 1); exit 1; }; }
24621
24622
24623 fi
24624
24625
24626 succeeded=no
24627
24628 if test -z "$PKG_CONFIG"; then
24629 # Extract the first word of "pkg-config", so it can be a program name with args.
24630 set dummy pkg-config; ac_word=$2
24631 echo "$as_me:$LINENO: checking for $ac_word" >&5
24632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24633 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24634 echo $ECHO_N "(cached) $ECHO_C" >&6
24635 else
24636 case $PKG_CONFIG in
24637 [\\/]* | ?:[\\/]*)
24638 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24639 ;;
24640 *)
24641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24642 for as_dir in $PATH
24643 do
24644 IFS=$as_save_IFS
24645 test -z "$as_dir" && as_dir=.
24646 for ac_exec_ext in '' $ac_executable_extensions; do
24647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24648 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24650 break 2
24651 fi
24652 done
24653 done
24654
24655 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24656 ;;
24657 esac
24658 fi
24659 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24660
24661 if test -n "$PKG_CONFIG"; then
24662 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24663 echo "${ECHO_T}$PKG_CONFIG" >&6
24664 else
24665 echo "$as_me:$LINENO: result: no" >&5
24666 echo "${ECHO_T}no" >&6
24667 fi
24668
24669 fi
24670
24671 if test "$PKG_CONFIG" = "no" ; then
24672 echo "*** The pkg-config script could not be found. Make sure it is"
24673 echo "*** in your path, or set the PKG_CONFIG environment variable"
24674 echo "*** to the full path to pkg-config."
24675 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24676 else
24677 PKG_CONFIG_MIN_VERSION=0.9.0
24678 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24679 echo "$as_me:$LINENO: checking for pangoft2" >&5
24680 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
24681
24682 if $PKG_CONFIG --exists "pangoft2" ; then
24683 echo "$as_me:$LINENO: result: yes" >&5
24684 echo "${ECHO_T}yes" >&6
24685 succeeded=yes
24686
24687 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24688 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
24689 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
24690 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24691 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
24692
24693 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24694 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
24695 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
24696 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24697 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
24698 else
24699 PANGOFT2_CFLAGS=""
24700 PANGOFT2_LIBS=""
24701 ## If we have a custom action on failure, don't print errors, but
24702 ## do set a variable so people can do so.
24703 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
24704
24705 fi
24706
24707
24708
24709 else
24710 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24711 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24712 fi
24713 fi
24714
24715 if test $succeeded = yes; then
24716
24717 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
24718 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
24719
24720 else
24721
24722 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24723 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
24724 wxUSE_PRINTING_ARCHITECTURE="no"
24725
24726
24727 fi
24728
24729
24730 succeeded=no
24731
24732 if test -z "$PKG_CONFIG"; then
24733 # Extract the first word of "pkg-config", so it can be a program name with args.
24734 set dummy pkg-config; ac_word=$2
24735 echo "$as_me:$LINENO: checking for $ac_word" >&5
24736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24737 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24738 echo $ECHO_N "(cached) $ECHO_C" >&6
24739 else
24740 case $PKG_CONFIG in
24741 [\\/]* | ?:[\\/]*)
24742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24743 ;;
24744 *)
24745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24746 for as_dir in $PATH
24747 do
24748 IFS=$as_save_IFS
24749 test -z "$as_dir" && as_dir=.
24750 for ac_exec_ext in '' $ac_executable_extensions; do
24751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24752 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24754 break 2
24755 fi
24756 done
24757 done
24758
24759 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24760 ;;
24761 esac
24762 fi
24763 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24764
24765 if test -n "$PKG_CONFIG"; then
24766 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24767 echo "${ECHO_T}$PKG_CONFIG" >&6
24768 else
24769 echo "$as_me:$LINENO: result: no" >&5
24770 echo "${ECHO_T}no" >&6
24771 fi
24772
24773 fi
24774
24775 if test "$PKG_CONFIG" = "no" ; then
24776 echo "*** The pkg-config script could not be found. Make sure it is"
24777 echo "*** in your path, or set the PKG_CONFIG environment variable"
24778 echo "*** to the full path to pkg-config."
24779 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24780 else
24781 PKG_CONFIG_MIN_VERSION=0.9.0
24782 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24783 echo "$as_me:$LINENO: checking for pangoxft" >&5
24784 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
24785
24786 if $PKG_CONFIG --exists "pangoxft" ; then
24787 echo "$as_me:$LINENO: result: yes" >&5
24788 echo "${ECHO_T}yes" >&6
24789 succeeded=yes
24790
24791 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24792 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
24793 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
24794 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24795 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
24796
24797 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24798 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
24799 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
24800 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24801 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
24802 else
24803 PANGOXFT_CFLAGS=""
24804 PANGOXFT_LIBS=""
24805 ## If we have a custom action on failure, don't print errors, but
24806 ## do set a variable so people can do so.
24807 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
24808
24809 fi
24810
24811
24812
24813 else
24814 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24815 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24816 fi
24817 fi
24818
24819 if test $succeeded = yes; then
24820
24821 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
24822 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
24823
24824 else
24825
24826 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24827 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24828
24829
24830 fi
24831
24832 fi
24833
24834 wxUSE_UNIVERSAL="yes"
24835
24836 if test "$wxUSE_NANOX" = "yes"; then
24837 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
24838 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"
24839 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24840 else
24841 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
24842 fi
24843
24844 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24845 TOOLKIT=X11
24846 GUIDIST=X11_DIST
24847 fi
24848
24849 if test "$wxUSE_MOTIF" = 1; then
24850 if test "$no_x" = yes; then
24851 # Not all programs may use this symbol, but it does not hurt to define it.
24852
24853 cat >>confdefs.h <<\_ACEOF
24854 #define X_DISPLAY_MISSING 1
24855 _ACEOF
24856
24857 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24858 else
24859 if test -n "$x_includes"; then
24860 X_CFLAGS="$X_CFLAGS -I$x_includes"
24861 fi
24862
24863 # It would also be nice to do this for all -L options, not just this one.
24864 if test -n "$x_libraries"; then
24865 X_LIBS="$X_LIBS -L$x_libraries"
24866 # For Solaris; some versions of Sun CC require a space after -R and
24867 # others require no space. Words are not sufficient . . . .
24868 case `(uname -sr) 2>/dev/null` in
24869 "SunOS 5"*)
24870 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24871 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24872 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24873 cat >conftest.$ac_ext <<_ACEOF
24874 /* confdefs.h. */
24875 _ACEOF
24876 cat confdefs.h >>conftest.$ac_ext
24877 cat >>conftest.$ac_ext <<_ACEOF
24878 /* end confdefs.h. */
24879
24880 int
24881 main ()
24882 {
24883
24884 ;
24885 return 0;
24886 }
24887 _ACEOF
24888 rm -f conftest.$ac_objext conftest$ac_exeext
24889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24890 (eval $ac_link) 2>conftest.er1
24891 ac_status=$?
24892 grep -v '^ *+' conftest.er1 >conftest.err
24893 rm -f conftest.er1
24894 cat conftest.err >&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); } &&
24897 { ac_try='test -z "$ac_c_werror_flag"
24898 || test ! -s conftest.err'
24899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24900 (eval $ac_try) 2>&5
24901 ac_status=$?
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; } &&
24904 { ac_try='test -s conftest$ac_exeext'
24905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24906 (eval $ac_try) 2>&5
24907 ac_status=$?
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); }; }; then
24910 ac_R_nospace=yes
24911 else
24912 echo "$as_me: failed program was:" >&5
24913 sed 's/^/| /' conftest.$ac_ext >&5
24914
24915 ac_R_nospace=no
24916 fi
24917 rm -f conftest.err conftest.$ac_objext \
24918 conftest$ac_exeext conftest.$ac_ext
24919 if test $ac_R_nospace = yes; then
24920 echo "$as_me:$LINENO: result: no" >&5
24921 echo "${ECHO_T}no" >&6
24922 X_LIBS="$X_LIBS -R$x_libraries"
24923 else
24924 LIBS="$ac_xsave_LIBS -R $x_libraries"
24925 cat >conftest.$ac_ext <<_ACEOF
24926 /* confdefs.h. */
24927 _ACEOF
24928 cat confdefs.h >>conftest.$ac_ext
24929 cat >>conftest.$ac_ext <<_ACEOF
24930 /* end confdefs.h. */
24931
24932 int
24933 main ()
24934 {
24935
24936 ;
24937 return 0;
24938 }
24939 _ACEOF
24940 rm -f conftest.$ac_objext conftest$ac_exeext
24941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24942 (eval $ac_link) 2>conftest.er1
24943 ac_status=$?
24944 grep -v '^ *+' conftest.er1 >conftest.err
24945 rm -f conftest.er1
24946 cat conftest.err >&5
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); } &&
24949 { ac_try='test -z "$ac_c_werror_flag"
24950 || test ! -s conftest.err'
24951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952 (eval $ac_try) 2>&5
24953 ac_status=$?
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }; } &&
24956 { ac_try='test -s conftest$ac_exeext'
24957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24958 (eval $ac_try) 2>&5
24959 ac_status=$?
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); }; }; then
24962 ac_R_space=yes
24963 else
24964 echo "$as_me: failed program was:" >&5
24965 sed 's/^/| /' conftest.$ac_ext >&5
24966
24967 ac_R_space=no
24968 fi
24969 rm -f conftest.err conftest.$ac_objext \
24970 conftest$ac_exeext conftest.$ac_ext
24971 if test $ac_R_space = yes; then
24972 echo "$as_me:$LINENO: result: yes" >&5
24973 echo "${ECHO_T}yes" >&6
24974 X_LIBS="$X_LIBS -R $x_libraries"
24975 else
24976 echo "$as_me:$LINENO: result: neither works" >&5
24977 echo "${ECHO_T}neither works" >&6
24978 fi
24979 fi
24980 LIBS=$ac_xsave_LIBS
24981 esac
24982 fi
24983
24984 # Check for system-dependent libraries X programs must link with.
24985 # Do this before checking for the system-independent R6 libraries
24986 # (-lICE), since we may need -lsocket or whatever for X linking.
24987
24988 if test "$ISC" = yes; then
24989 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24990 else
24991 # Martyn Johnson says this is needed for Ultrix, if the X
24992 # libraries were built with DECnet support. And Karl Berry says
24993 # the Alpha needs dnet_stub (dnet does not exist).
24994 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24995 cat >conftest.$ac_ext <<_ACEOF
24996 /* confdefs.h. */
24997 _ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h. */
25001
25002 /* Override any gcc2 internal prototype to avoid an error. */
25003 #ifdef __cplusplus
25004 extern "C"
25005 #endif
25006 /* We use char because int might match the return type of a gcc2
25007 builtin and then its argument prototype would still apply. */
25008 char XOpenDisplay ();
25009 int
25010 main ()
25011 {
25012 XOpenDisplay ();
25013 ;
25014 return 0;
25015 }
25016 _ACEOF
25017 rm -f conftest.$ac_objext conftest$ac_exeext
25018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25019 (eval $ac_link) 2>conftest.er1
25020 ac_status=$?
25021 grep -v '^ *+' conftest.er1 >conftest.err
25022 rm -f conftest.er1
25023 cat conftest.err >&5
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); } &&
25026 { ac_try='test -z "$ac_c_werror_flag"
25027 || test ! -s conftest.err'
25028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25029 (eval $ac_try) 2>&5
25030 ac_status=$?
25031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032 (exit $ac_status); }; } &&
25033 { ac_try='test -s conftest$ac_exeext'
25034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25035 (eval $ac_try) 2>&5
25036 ac_status=$?
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); }; }; then
25039 :
25040 else
25041 echo "$as_me: failed program was:" >&5
25042 sed 's/^/| /' conftest.$ac_ext >&5
25043
25044 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25045 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25046 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25047 echo $ECHO_N "(cached) $ECHO_C" >&6
25048 else
25049 ac_check_lib_save_LIBS=$LIBS
25050 LIBS="-ldnet $LIBS"
25051 cat >conftest.$ac_ext <<_ACEOF
25052 /* confdefs.h. */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057
25058 /* Override any gcc2 internal prototype to avoid an error. */
25059 #ifdef __cplusplus
25060 extern "C"
25061 #endif
25062 /* We use char because int might match the return type of a gcc2
25063 builtin and then its argument prototype would still apply. */
25064 char dnet_ntoa ();
25065 int
25066 main ()
25067 {
25068 dnet_ntoa ();
25069 ;
25070 return 0;
25071 }
25072 _ACEOF
25073 rm -f conftest.$ac_objext conftest$ac_exeext
25074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25075 (eval $ac_link) 2>conftest.er1
25076 ac_status=$?
25077 grep -v '^ *+' conftest.er1 >conftest.err
25078 rm -f conftest.er1
25079 cat conftest.err >&5
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); } &&
25082 { ac_try='test -z "$ac_c_werror_flag"
25083 || test ! -s conftest.err'
25084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25085 (eval $ac_try) 2>&5
25086 ac_status=$?
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); }; } &&
25089 { ac_try='test -s conftest$ac_exeext'
25090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25091 (eval $ac_try) 2>&5
25092 ac_status=$?
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); }; }; then
25095 ac_cv_lib_dnet_dnet_ntoa=yes
25096 else
25097 echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.$ac_ext >&5
25099
25100 ac_cv_lib_dnet_dnet_ntoa=no
25101 fi
25102 rm -f conftest.err conftest.$ac_objext \
25103 conftest$ac_exeext conftest.$ac_ext
25104 LIBS=$ac_check_lib_save_LIBS
25105 fi
25106 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25107 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25108 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25109 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25110 fi
25111
25112 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25113 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25114 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25115 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25116 echo $ECHO_N "(cached) $ECHO_C" >&6
25117 else
25118 ac_check_lib_save_LIBS=$LIBS
25119 LIBS="-ldnet_stub $LIBS"
25120 cat >conftest.$ac_ext <<_ACEOF
25121 /* confdefs.h. */
25122 _ACEOF
25123 cat confdefs.h >>conftest.$ac_ext
25124 cat >>conftest.$ac_ext <<_ACEOF
25125 /* end confdefs.h. */
25126
25127 /* Override any gcc2 internal prototype to avoid an error. */
25128 #ifdef __cplusplus
25129 extern "C"
25130 #endif
25131 /* We use char because int might match the return type of a gcc2
25132 builtin and then its argument prototype would still apply. */
25133 char dnet_ntoa ();
25134 int
25135 main ()
25136 {
25137 dnet_ntoa ();
25138 ;
25139 return 0;
25140 }
25141 _ACEOF
25142 rm -f conftest.$ac_objext conftest$ac_exeext
25143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25144 (eval $ac_link) 2>conftest.er1
25145 ac_status=$?
25146 grep -v '^ *+' conftest.er1 >conftest.err
25147 rm -f conftest.er1
25148 cat conftest.err >&5
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); } &&
25151 { ac_try='test -z "$ac_c_werror_flag"
25152 || test ! -s conftest.err'
25153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154 (eval $ac_try) 2>&5
25155 ac_status=$?
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); }; } &&
25158 { ac_try='test -s conftest$ac_exeext'
25159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160 (eval $ac_try) 2>&5
25161 ac_status=$?
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); }; }; then
25164 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25165 else
25166 echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25168
25169 ac_cv_lib_dnet_stub_dnet_ntoa=no
25170 fi
25171 rm -f conftest.err conftest.$ac_objext \
25172 conftest$ac_exeext conftest.$ac_ext
25173 LIBS=$ac_check_lib_save_LIBS
25174 fi
25175 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25176 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25177 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25178 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25179 fi
25180
25181 fi
25182 fi
25183 rm -f conftest.err conftest.$ac_objext \
25184 conftest$ac_exeext conftest.$ac_ext
25185 LIBS="$ac_xsave_LIBS"
25186
25187 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25188 # to get the SysV transport functions.
25189 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25190 # needs -lnsl.
25191 # The nsl library prevents programs from opening the X display
25192 # on Irix 5.2, according to T.E. Dickey.
25193 # The functions gethostbyname, getservbyname, and inet_addr are
25194 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25195 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25196 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25197 if test "${ac_cv_func_gethostbyname+set}" = set; then
25198 echo $ECHO_N "(cached) $ECHO_C" >&6
25199 else
25200 cat >conftest.$ac_ext <<_ACEOF
25201 /* confdefs.h. */
25202 _ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h. */
25206 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25208 #define gethostbyname innocuous_gethostbyname
25209
25210 /* System header to define __stub macros and hopefully few prototypes,
25211 which can conflict with char gethostbyname (); below.
25212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25213 <limits.h> exists even on freestanding compilers. */
25214
25215 #ifdef __STDC__
25216 # include <limits.h>
25217 #else
25218 # include <assert.h>
25219 #endif
25220
25221 #undef gethostbyname
25222
25223 /* Override any gcc2 internal prototype to avoid an error. */
25224 #ifdef __cplusplus
25225 extern "C"
25226 {
25227 #endif
25228 /* We use char because int might match the return type of a gcc2
25229 builtin and then its argument prototype would still apply. */
25230 char gethostbyname ();
25231 /* The GNU C library defines this for functions which it implements
25232 to always fail with ENOSYS. Some functions are actually named
25233 something starting with __ and the normal name is an alias. */
25234 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25235 choke me
25236 #else
25237 char (*f) () = gethostbyname;
25238 #endif
25239 #ifdef __cplusplus
25240 }
25241 #endif
25242
25243 int
25244 main ()
25245 {
25246 return f != gethostbyname;
25247 ;
25248 return 0;
25249 }
25250 _ACEOF
25251 rm -f conftest.$ac_objext conftest$ac_exeext
25252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25253 (eval $ac_link) 2>conftest.er1
25254 ac_status=$?
25255 grep -v '^ *+' conftest.er1 >conftest.err
25256 rm -f conftest.er1
25257 cat conftest.err >&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); } &&
25260 { ac_try='test -z "$ac_c_werror_flag"
25261 || test ! -s conftest.err'
25262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25263 (eval $ac_try) 2>&5
25264 ac_status=$?
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); }; } &&
25267 { ac_try='test -s conftest$ac_exeext'
25268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25269 (eval $ac_try) 2>&5
25270 ac_status=$?
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); }; }; then
25273 ac_cv_func_gethostbyname=yes
25274 else
25275 echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25277
25278 ac_cv_func_gethostbyname=no
25279 fi
25280 rm -f conftest.err conftest.$ac_objext \
25281 conftest$ac_exeext conftest.$ac_ext
25282 fi
25283 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25284 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25285
25286 if test $ac_cv_func_gethostbyname = no; then
25287 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25288 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25289 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25290 echo $ECHO_N "(cached) $ECHO_C" >&6
25291 else
25292 ac_check_lib_save_LIBS=$LIBS
25293 LIBS="-lnsl $LIBS"
25294 cat >conftest.$ac_ext <<_ACEOF
25295 /* confdefs.h. */
25296 _ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h. */
25300
25301 /* Override any gcc2 internal prototype to avoid an error. */
25302 #ifdef __cplusplus
25303 extern "C"
25304 #endif
25305 /* We use char because int might match the return type of a gcc2
25306 builtin and then its argument prototype would still apply. */
25307 char gethostbyname ();
25308 int
25309 main ()
25310 {
25311 gethostbyname ();
25312 ;
25313 return 0;
25314 }
25315 _ACEOF
25316 rm -f conftest.$ac_objext conftest$ac_exeext
25317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25318 (eval $ac_link) 2>conftest.er1
25319 ac_status=$?
25320 grep -v '^ *+' conftest.er1 >conftest.err
25321 rm -f conftest.er1
25322 cat conftest.err >&5
25323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); } &&
25325 { ac_try='test -z "$ac_c_werror_flag"
25326 || test ! -s conftest.err'
25327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25328 (eval $ac_try) 2>&5
25329 ac_status=$?
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); }; } &&
25332 { ac_try='test -s conftest$ac_exeext'
25333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334 (eval $ac_try) 2>&5
25335 ac_status=$?
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); }; }; then
25338 ac_cv_lib_nsl_gethostbyname=yes
25339 else
25340 echo "$as_me: failed program was:" >&5
25341 sed 's/^/| /' conftest.$ac_ext >&5
25342
25343 ac_cv_lib_nsl_gethostbyname=no
25344 fi
25345 rm -f conftest.err conftest.$ac_objext \
25346 conftest$ac_exeext conftest.$ac_ext
25347 LIBS=$ac_check_lib_save_LIBS
25348 fi
25349 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25350 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25351 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25352 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25353 fi
25354
25355 if test $ac_cv_lib_nsl_gethostbyname = no; then
25356 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25357 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25358 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25359 echo $ECHO_N "(cached) $ECHO_C" >&6
25360 else
25361 ac_check_lib_save_LIBS=$LIBS
25362 LIBS="-lbsd $LIBS"
25363 cat >conftest.$ac_ext <<_ACEOF
25364 /* confdefs.h. */
25365 _ACEOF
25366 cat confdefs.h >>conftest.$ac_ext
25367 cat >>conftest.$ac_ext <<_ACEOF
25368 /* end confdefs.h. */
25369
25370 /* Override any gcc2 internal prototype to avoid an error. */
25371 #ifdef __cplusplus
25372 extern "C"
25373 #endif
25374 /* We use char because int might match the return type of a gcc2
25375 builtin and then its argument prototype would still apply. */
25376 char gethostbyname ();
25377 int
25378 main ()
25379 {
25380 gethostbyname ();
25381 ;
25382 return 0;
25383 }
25384 _ACEOF
25385 rm -f conftest.$ac_objext conftest$ac_exeext
25386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25387 (eval $ac_link) 2>conftest.er1
25388 ac_status=$?
25389 grep -v '^ *+' conftest.er1 >conftest.err
25390 rm -f conftest.er1
25391 cat conftest.err >&5
25392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393 (exit $ac_status); } &&
25394 { ac_try='test -z "$ac_c_werror_flag"
25395 || test ! -s conftest.err'
25396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25397 (eval $ac_try) 2>&5
25398 ac_status=$?
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); }; } &&
25401 { ac_try='test -s conftest$ac_exeext'
25402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); }; }; then
25407 ac_cv_lib_bsd_gethostbyname=yes
25408 else
25409 echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25411
25412 ac_cv_lib_bsd_gethostbyname=no
25413 fi
25414 rm -f conftest.err conftest.$ac_objext \
25415 conftest$ac_exeext conftest.$ac_ext
25416 LIBS=$ac_check_lib_save_LIBS
25417 fi
25418 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25419 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25420 if test $ac_cv_lib_bsd_gethostbyname = yes; then
25421 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25422 fi
25423
25424 fi
25425 fi
25426
25427 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25428 # socket/setsockopt and other routines are undefined under SCO ODT
25429 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25430 # on later versions), says Simon Leinen: it contains gethostby*
25431 # variants that don't use the name server (or something). -lsocket
25432 # must be given before -lnsl if both are needed. We assume that
25433 # if connect needs -lnsl, so does gethostbyname.
25434 echo "$as_me:$LINENO: checking for connect" >&5
25435 echo $ECHO_N "checking for connect... $ECHO_C" >&6
25436 if test "${ac_cv_func_connect+set}" = set; then
25437 echo $ECHO_N "(cached) $ECHO_C" >&6
25438 else
25439 cat >conftest.$ac_ext <<_ACEOF
25440 /* confdefs.h. */
25441 _ACEOF
25442 cat confdefs.h >>conftest.$ac_ext
25443 cat >>conftest.$ac_ext <<_ACEOF
25444 /* end confdefs.h. */
25445 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
25446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25447 #define connect innocuous_connect
25448
25449 /* System header to define __stub macros and hopefully few prototypes,
25450 which can conflict with char connect (); below.
25451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25452 <limits.h> exists even on freestanding compilers. */
25453
25454 #ifdef __STDC__
25455 # include <limits.h>
25456 #else
25457 # include <assert.h>
25458 #endif
25459
25460 #undef connect
25461
25462 /* Override any gcc2 internal prototype to avoid an error. */
25463 #ifdef __cplusplus
25464 extern "C"
25465 {
25466 #endif
25467 /* We use char because int might match the return type of a gcc2
25468 builtin and then its argument prototype would still apply. */
25469 char connect ();
25470 /* The GNU C library defines this for functions which it implements
25471 to always fail with ENOSYS. Some functions are actually named
25472 something starting with __ and the normal name is an alias. */
25473 #if defined (__stub_connect) || defined (__stub___connect)
25474 choke me
25475 #else
25476 char (*f) () = connect;
25477 #endif
25478 #ifdef __cplusplus
25479 }
25480 #endif
25481
25482 int
25483 main ()
25484 {
25485 return f != connect;
25486 ;
25487 return 0;
25488 }
25489 _ACEOF
25490 rm -f conftest.$ac_objext conftest$ac_exeext
25491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25492 (eval $ac_link) 2>conftest.er1
25493 ac_status=$?
25494 grep -v '^ *+' conftest.er1 >conftest.err
25495 rm -f conftest.er1
25496 cat conftest.err >&5
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); } &&
25499 { ac_try='test -z "$ac_c_werror_flag"
25500 || test ! -s conftest.err'
25501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25502 (eval $ac_try) 2>&5
25503 ac_status=$?
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); }; } &&
25506 { ac_try='test -s conftest$ac_exeext'
25507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508 (eval $ac_try) 2>&5
25509 ac_status=$?
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); }; }; then
25512 ac_cv_func_connect=yes
25513 else
25514 echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25516
25517 ac_cv_func_connect=no
25518 fi
25519 rm -f conftest.err conftest.$ac_objext \
25520 conftest$ac_exeext conftest.$ac_ext
25521 fi
25522 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25523 echo "${ECHO_T}$ac_cv_func_connect" >&6
25524
25525 if test $ac_cv_func_connect = no; then
25526 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25527 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25528 if test "${ac_cv_lib_socket_connect+set}" = set; then
25529 echo $ECHO_N "(cached) $ECHO_C" >&6
25530 else
25531 ac_check_lib_save_LIBS=$LIBS
25532 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25533 cat >conftest.$ac_ext <<_ACEOF
25534 /* confdefs.h. */
25535 _ACEOF
25536 cat confdefs.h >>conftest.$ac_ext
25537 cat >>conftest.$ac_ext <<_ACEOF
25538 /* end confdefs.h. */
25539
25540 /* Override any gcc2 internal prototype to avoid an error. */
25541 #ifdef __cplusplus
25542 extern "C"
25543 #endif
25544 /* We use char because int might match the return type of a gcc2
25545 builtin and then its argument prototype would still apply. */
25546 char connect ();
25547 int
25548 main ()
25549 {
25550 connect ();
25551 ;
25552 return 0;
25553 }
25554 _ACEOF
25555 rm -f conftest.$ac_objext conftest$ac_exeext
25556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25557 (eval $ac_link) 2>conftest.er1
25558 ac_status=$?
25559 grep -v '^ *+' conftest.er1 >conftest.err
25560 rm -f conftest.er1
25561 cat conftest.err >&5
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); } &&
25564 { ac_try='test -z "$ac_c_werror_flag"
25565 || test ! -s conftest.err'
25566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25567 (eval $ac_try) 2>&5
25568 ac_status=$?
25569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570 (exit $ac_status); }; } &&
25571 { ac_try='test -s conftest$ac_exeext'
25572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25573 (eval $ac_try) 2>&5
25574 ac_status=$?
25575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); }; }; then
25577 ac_cv_lib_socket_connect=yes
25578 else
25579 echo "$as_me: failed program was:" >&5
25580 sed 's/^/| /' conftest.$ac_ext >&5
25581
25582 ac_cv_lib_socket_connect=no
25583 fi
25584 rm -f conftest.err conftest.$ac_objext \
25585 conftest$ac_exeext conftest.$ac_ext
25586 LIBS=$ac_check_lib_save_LIBS
25587 fi
25588 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25589 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25590 if test $ac_cv_lib_socket_connect = yes; then
25591 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25592 fi
25593
25594 fi
25595
25596 # Guillermo Gomez says -lposix is necessary on A/UX.
25597 echo "$as_me:$LINENO: checking for remove" >&5
25598 echo $ECHO_N "checking for remove... $ECHO_C" >&6
25599 if test "${ac_cv_func_remove+set}" = set; then
25600 echo $ECHO_N "(cached) $ECHO_C" >&6
25601 else
25602 cat >conftest.$ac_ext <<_ACEOF
25603 /* confdefs.h. */
25604 _ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h. */
25608 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
25609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25610 #define remove innocuous_remove
25611
25612 /* System header to define __stub macros and hopefully few prototypes,
25613 which can conflict with char remove (); below.
25614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25615 <limits.h> exists even on freestanding compilers. */
25616
25617 #ifdef __STDC__
25618 # include <limits.h>
25619 #else
25620 # include <assert.h>
25621 #endif
25622
25623 #undef remove
25624
25625 /* Override any gcc2 internal prototype to avoid an error. */
25626 #ifdef __cplusplus
25627 extern "C"
25628 {
25629 #endif
25630 /* We use char because int might match the return type of a gcc2
25631 builtin and then its argument prototype would still apply. */
25632 char remove ();
25633 /* The GNU C library defines this for functions which it implements
25634 to always fail with ENOSYS. Some functions are actually named
25635 something starting with __ and the normal name is an alias. */
25636 #if defined (__stub_remove) || defined (__stub___remove)
25637 choke me
25638 #else
25639 char (*f) () = remove;
25640 #endif
25641 #ifdef __cplusplus
25642 }
25643 #endif
25644
25645 int
25646 main ()
25647 {
25648 return f != remove;
25649 ;
25650 return 0;
25651 }
25652 _ACEOF
25653 rm -f conftest.$ac_objext conftest$ac_exeext
25654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25655 (eval $ac_link) 2>conftest.er1
25656 ac_status=$?
25657 grep -v '^ *+' conftest.er1 >conftest.err
25658 rm -f conftest.er1
25659 cat conftest.err >&5
25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); } &&
25662 { ac_try='test -z "$ac_c_werror_flag"
25663 || test ! -s conftest.err'
25664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665 (eval $ac_try) 2>&5
25666 ac_status=$?
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; } &&
25669 { ac_try='test -s conftest$ac_exeext'
25670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671 (eval $ac_try) 2>&5
25672 ac_status=$?
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); }; }; then
25675 ac_cv_func_remove=yes
25676 else
25677 echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25679
25680 ac_cv_func_remove=no
25681 fi
25682 rm -f conftest.err conftest.$ac_objext \
25683 conftest$ac_exeext conftest.$ac_ext
25684 fi
25685 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25686 echo "${ECHO_T}$ac_cv_func_remove" >&6
25687
25688 if test $ac_cv_func_remove = no; then
25689 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25690 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25691 if test "${ac_cv_lib_posix_remove+set}" = set; then
25692 echo $ECHO_N "(cached) $ECHO_C" >&6
25693 else
25694 ac_check_lib_save_LIBS=$LIBS
25695 LIBS="-lposix $LIBS"
25696 cat >conftest.$ac_ext <<_ACEOF
25697 /* confdefs.h. */
25698 _ACEOF
25699 cat confdefs.h >>conftest.$ac_ext
25700 cat >>conftest.$ac_ext <<_ACEOF
25701 /* end confdefs.h. */
25702
25703 /* Override any gcc2 internal prototype to avoid an error. */
25704 #ifdef __cplusplus
25705 extern "C"
25706 #endif
25707 /* We use char because int might match the return type of a gcc2
25708 builtin and then its argument prototype would still apply. */
25709 char remove ();
25710 int
25711 main ()
25712 {
25713 remove ();
25714 ;
25715 return 0;
25716 }
25717 _ACEOF
25718 rm -f conftest.$ac_objext conftest$ac_exeext
25719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25720 (eval $ac_link) 2>conftest.er1
25721 ac_status=$?
25722 grep -v '^ *+' conftest.er1 >conftest.err
25723 rm -f conftest.er1
25724 cat conftest.err >&5
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); } &&
25727 { ac_try='test -z "$ac_c_werror_flag"
25728 || test ! -s conftest.err'
25729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25730 (eval $ac_try) 2>&5
25731 ac_status=$?
25732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733 (exit $ac_status); }; } &&
25734 { ac_try='test -s conftest$ac_exeext'
25735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736 (eval $ac_try) 2>&5
25737 ac_status=$?
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); }; }; then
25740 ac_cv_lib_posix_remove=yes
25741 else
25742 echo "$as_me: failed program was:" >&5
25743 sed 's/^/| /' conftest.$ac_ext >&5
25744
25745 ac_cv_lib_posix_remove=no
25746 fi
25747 rm -f conftest.err conftest.$ac_objext \
25748 conftest$ac_exeext conftest.$ac_ext
25749 LIBS=$ac_check_lib_save_LIBS
25750 fi
25751 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25752 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25753 if test $ac_cv_lib_posix_remove = yes; then
25754 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25755 fi
25756
25757 fi
25758
25759 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25760 echo "$as_me:$LINENO: checking for shmat" >&5
25761 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25762 if test "${ac_cv_func_shmat+set}" = set; then
25763 echo $ECHO_N "(cached) $ECHO_C" >&6
25764 else
25765 cat >conftest.$ac_ext <<_ACEOF
25766 /* confdefs.h. */
25767 _ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h. */
25771 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25773 #define shmat innocuous_shmat
25774
25775 /* System header to define __stub macros and hopefully few prototypes,
25776 which can conflict with char shmat (); below.
25777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25778 <limits.h> exists even on freestanding compilers. */
25779
25780 #ifdef __STDC__
25781 # include <limits.h>
25782 #else
25783 # include <assert.h>
25784 #endif
25785
25786 #undef shmat
25787
25788 /* Override any gcc2 internal prototype to avoid an error. */
25789 #ifdef __cplusplus
25790 extern "C"
25791 {
25792 #endif
25793 /* We use char because int might match the return type of a gcc2
25794 builtin and then its argument prototype would still apply. */
25795 char shmat ();
25796 /* The GNU C library defines this for functions which it implements
25797 to always fail with ENOSYS. Some functions are actually named
25798 something starting with __ and the normal name is an alias. */
25799 #if defined (__stub_shmat) || defined (__stub___shmat)
25800 choke me
25801 #else
25802 char (*f) () = shmat;
25803 #endif
25804 #ifdef __cplusplus
25805 }
25806 #endif
25807
25808 int
25809 main ()
25810 {
25811 return f != shmat;
25812 ;
25813 return 0;
25814 }
25815 _ACEOF
25816 rm -f conftest.$ac_objext conftest$ac_exeext
25817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25818 (eval $ac_link) 2>conftest.er1
25819 ac_status=$?
25820 grep -v '^ *+' conftest.er1 >conftest.err
25821 rm -f conftest.er1
25822 cat conftest.err >&5
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); } &&
25825 { ac_try='test -z "$ac_c_werror_flag"
25826 || test ! -s conftest.err'
25827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828 (eval $ac_try) 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_func_shmat=yes
25839 else
25840 echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25842
25843 ac_cv_func_shmat=no
25844 fi
25845 rm -f conftest.err conftest.$ac_objext \
25846 conftest$ac_exeext conftest.$ac_ext
25847 fi
25848 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25849 echo "${ECHO_T}$ac_cv_func_shmat" >&6
25850
25851 if test $ac_cv_func_shmat = no; then
25852 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25853 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25854 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25855 echo $ECHO_N "(cached) $ECHO_C" >&6
25856 else
25857 ac_check_lib_save_LIBS=$LIBS
25858 LIBS="-lipc $LIBS"
25859 cat >conftest.$ac_ext <<_ACEOF
25860 /* confdefs.h. */
25861 _ACEOF
25862 cat confdefs.h >>conftest.$ac_ext
25863 cat >>conftest.$ac_ext <<_ACEOF
25864 /* end confdefs.h. */
25865
25866 /* Override any gcc2 internal prototype to avoid an error. */
25867 #ifdef __cplusplus
25868 extern "C"
25869 #endif
25870 /* We use char because int might match the return type of a gcc2
25871 builtin and then its argument prototype would still apply. */
25872 char shmat ();
25873 int
25874 main ()
25875 {
25876 shmat ();
25877 ;
25878 return 0;
25879 }
25880 _ACEOF
25881 rm -f conftest.$ac_objext conftest$ac_exeext
25882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25883 (eval $ac_link) 2>conftest.er1
25884 ac_status=$?
25885 grep -v '^ *+' conftest.er1 >conftest.err
25886 rm -f conftest.er1
25887 cat conftest.err >&5
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); } &&
25890 { ac_try='test -z "$ac_c_werror_flag"
25891 || test ! -s conftest.err'
25892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25893 (eval $ac_try) 2>&5
25894 ac_status=$?
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); }; } &&
25897 { ac_try='test -s conftest$ac_exeext'
25898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25899 (eval $ac_try) 2>&5
25900 ac_status=$?
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); }; }; then
25903 ac_cv_lib_ipc_shmat=yes
25904 else
25905 echo "$as_me: failed program was:" >&5
25906 sed 's/^/| /' conftest.$ac_ext >&5
25907
25908 ac_cv_lib_ipc_shmat=no
25909 fi
25910 rm -f conftest.err conftest.$ac_objext \
25911 conftest$ac_exeext conftest.$ac_ext
25912 LIBS=$ac_check_lib_save_LIBS
25913 fi
25914 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25915 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25916 if test $ac_cv_lib_ipc_shmat = yes; then
25917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25918 fi
25919
25920 fi
25921 fi
25922
25923 # Check for libraries that X11R6 Xt/Xaw programs need.
25924 ac_save_LDFLAGS=$LDFLAGS
25925 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25926 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25927 # check for ICE first), but we must link in the order -lSM -lICE or
25928 # we get undefined symbols. So assume we have SM if we have ICE.
25929 # These have to be linked with before -lX11, unlike the other
25930 # libraries we check for below, so use a different variable.
25931 # John Interrante, Karl Berry
25932 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25933 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25934 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25935 echo $ECHO_N "(cached) $ECHO_C" >&6
25936 else
25937 ac_check_lib_save_LIBS=$LIBS
25938 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25939 cat >conftest.$ac_ext <<_ACEOF
25940 /* confdefs.h. */
25941 _ACEOF
25942 cat confdefs.h >>conftest.$ac_ext
25943 cat >>conftest.$ac_ext <<_ACEOF
25944 /* end confdefs.h. */
25945
25946 /* Override any gcc2 internal prototype to avoid an error. */
25947 #ifdef __cplusplus
25948 extern "C"
25949 #endif
25950 /* We use char because int might match the return type of a gcc2
25951 builtin and then its argument prototype would still apply. */
25952 char IceConnectionNumber ();
25953 int
25954 main ()
25955 {
25956 IceConnectionNumber ();
25957 ;
25958 return 0;
25959 }
25960 _ACEOF
25961 rm -f conftest.$ac_objext conftest$ac_exeext
25962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25963 (eval $ac_link) 2>conftest.er1
25964 ac_status=$?
25965 grep -v '^ *+' conftest.er1 >conftest.err
25966 rm -f conftest.er1
25967 cat conftest.err >&5
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); } &&
25970 { ac_try='test -z "$ac_c_werror_flag"
25971 || test ! -s conftest.err'
25972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973 (eval $ac_try) 2>&5
25974 ac_status=$?
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; } &&
25977 { ac_try='test -s conftest$ac_exeext'
25978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25979 (eval $ac_try) 2>&5
25980 ac_status=$?
25981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); }; }; then
25983 ac_cv_lib_ICE_IceConnectionNumber=yes
25984 else
25985 echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25987
25988 ac_cv_lib_ICE_IceConnectionNumber=no
25989 fi
25990 rm -f conftest.err conftest.$ac_objext \
25991 conftest$ac_exeext conftest.$ac_ext
25992 LIBS=$ac_check_lib_save_LIBS
25993 fi
25994 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25995 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25996 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25997 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25998 fi
25999
26000 LDFLAGS=$ac_save_LDFLAGS
26001
26002 fi
26003
26004
26005 if test "$no_x" = "yes"; then
26006 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26007 echo "$as_me: error: X11 not found" >&2;}
26008 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26009 fi
26010
26011 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
26012 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
26013 AFMINSTALL=afminstall
26014 COMPILED_X_PROGRAM=0
26015
26016 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26017 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
26018
26019 ac_find_includes=
26020 for ac_dir in $SEARCH_INCLUDE /usr/include;
26021 do
26022 if test -f "$ac_dir/Xm/Xm.h"; then
26023 ac_find_includes=$ac_dir
26024 break
26025 fi
26026 done
26027
26028 if test "$ac_find_includes" != "" ; then
26029 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26030 echo "${ECHO_T}found in $ac_find_includes" >&6
26031
26032 if test "x$ac_find_includes" = "x/usr/include"; then
26033 ac_path_to_include=""
26034 else
26035 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26036 result=$?
26037 if test $result = 0; then
26038 ac_path_to_include=""
26039 else
26040 ac_path_to_include=" -I$ac_find_includes"
26041 fi
26042 fi
26043
26044 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26045 else
26046 cat >conftest.$ac_ext <<_ACEOF
26047 /* confdefs.h. */
26048 _ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h. */
26052
26053 #include <Xm/Xm.h>
26054
26055 int
26056 main ()
26057 {
26058
26059 int version;
26060 version = xmUseVersion;
26061
26062 ;
26063 return 0;
26064 }
26065 _ACEOF
26066 rm -f conftest.$ac_objext
26067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26068 (eval $ac_compile) 2>conftest.er1
26069 ac_status=$?
26070 grep -v '^ *+' conftest.er1 >conftest.err
26071 rm -f conftest.er1
26072 cat conftest.err >&5
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); } &&
26075 { ac_try='test -z "$ac_c_werror_flag"
26076 || test ! -s conftest.err'
26077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26078 (eval $ac_try) 2>&5
26079 ac_status=$?
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); }; } &&
26082 { ac_try='test -s conftest.$ac_objext'
26083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26084 (eval $ac_try) 2>&5
26085 ac_status=$?
26086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087 (exit $ac_status); }; }; then
26088
26089 echo "$as_me:$LINENO: result: found in default search path" >&5
26090 echo "${ECHO_T}found in default search path" >&6
26091 COMPILED_X_PROGRAM=1
26092
26093 else
26094 echo "$as_me: failed program was:" >&5
26095 sed 's/^/| /' conftest.$ac_ext >&5
26096
26097
26098 echo "$as_me:$LINENO: result: no" >&5
26099 echo "${ECHO_T}no" >&6
26100 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26101 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26102 { (exit 1); exit 1; }; }
26103
26104
26105 fi
26106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26107 fi
26108
26109 if test "$COMPILED_X_PROGRAM" = 0; then
26110 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26111 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26112
26113 ac_find_libraries=
26114 for ac_dir in $SEARCH_LIB /usr/lib;
26115 do
26116 for ac_extension in a so sl dylib; do
26117 if test -f "$ac_dir/libXm.$ac_extension"; then
26118 ac_find_libraries=$ac_dir
26119 break 2
26120 fi
26121 done
26122 done
26123
26124 if test "$ac_find_libraries" != "" ; then
26125 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26126 echo "${ECHO_T}found at $ac_find_libraries" >&6
26127
26128
26129 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26130 result=$?
26131 if test $result = 0; then
26132 ac_path_to_link=""
26133 else
26134 ac_path_to_link=" -L$ac_find_libraries"
26135 fi
26136
26137 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26138 else
26139 save_CFLAGS=$CFLAGS
26140 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26141
26142 cat >conftest.$ac_ext <<_ACEOF
26143 /* confdefs.h. */
26144 _ACEOF
26145 cat confdefs.h >>conftest.$ac_ext
26146 cat >>conftest.$ac_ext <<_ACEOF
26147 /* end confdefs.h. */
26148
26149 #include <Xm/Xm.h>
26150
26151 int
26152 main ()
26153 {
26154
26155 int version;
26156 version = xmUseVersion;
26157
26158 ;
26159 return 0;
26160 }
26161 _ACEOF
26162 rm -f conftest.$ac_objext
26163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26164 (eval $ac_compile) 2>conftest.er1
26165 ac_status=$?
26166 grep -v '^ *+' conftest.er1 >conftest.err
26167 rm -f conftest.er1
26168 cat conftest.err >&5
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); } &&
26171 { ac_try='test -z "$ac_c_werror_flag"
26172 || test ! -s conftest.err'
26173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174 (eval $ac_try) 2>&5
26175 ac_status=$?
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); }; } &&
26178 { ac_try='test -s conftest.$ac_objext'
26179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26180 (eval $ac_try) 2>&5
26181 ac_status=$?
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); }; }; then
26184
26185 echo "$as_me:$LINENO: result: found in default search path" >&5
26186 echo "${ECHO_T}found in default search path" >&6
26187 COMPILED_X_PROGRAM=1
26188
26189 else
26190 echo "$as_me: failed program was:" >&5
26191 sed 's/^/| /' conftest.$ac_ext >&5
26192
26193
26194 echo "$as_me:$LINENO: result: no" >&5
26195 echo "${ECHO_T}no" >&6
26196 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26197 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26198 { (exit 1); exit 1; }; }
26199
26200
26201 fi
26202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26203
26204 CFLAGS=$save_CFLAGS
26205 fi
26206 fi
26207
26208 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26209 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26210 libp_link=""
26211 libsm_ice_link=""
26212 libs_found=0
26213 for libp in "" " -lXp"; do
26214 if test "$libs_found" = "0"; then
26215 for libsm_ice in "" " -lSM -lICE"; do
26216 if test "$libs_found" = "0"; then
26217 save_LIBS="$LIBS"
26218 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26219 save_CFLAGS=$CFLAGS
26220 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26221
26222 cat >conftest.$ac_ext <<_ACEOF
26223 /* confdefs.h. */
26224 _ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h. */
26228
26229 #include <Xm/Xm.h>
26230 #include <Xm/List.h>
26231
26232 int
26233 main ()
26234 {
26235
26236 XmString string = NULL;
26237 Widget w = NULL;
26238 int position = 0;
26239 XmListAddItem(w, string, position);
26240
26241 ;
26242 return 0;
26243 }
26244 _ACEOF
26245 rm -f conftest.$ac_objext conftest$ac_exeext
26246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26247 (eval $ac_link) 2>conftest.er1
26248 ac_status=$?
26249 grep -v '^ *+' conftest.er1 >conftest.err
26250 rm -f conftest.er1
26251 cat conftest.err >&5
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); } &&
26254 { ac_try='test -z "$ac_c_werror_flag"
26255 || test ! -s conftest.err'
26256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26257 (eval $ac_try) 2>&5
26258 ac_status=$?
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); }; } &&
26261 { ac_try='test -s conftest$ac_exeext'
26262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26263 (eval $ac_try) 2>&5
26264 ac_status=$?
26265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); }; }; then
26267
26268 libp_link="$libp"
26269 libsm_ice_link="$libsm_ice"
26270 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26271 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26272 libs_found=1
26273
26274 else
26275 echo "$as_me: failed program was:" >&5
26276 sed 's/^/| /' conftest.$ac_ext >&5
26277
26278
26279
26280 fi
26281 rm -f conftest.err conftest.$ac_objext \
26282 conftest$ac_exeext conftest.$ac_ext
26283
26284 LIBS="$save_LIBS"
26285 CFLAGS=$save_CFLAGS
26286 fi
26287 done
26288 fi
26289 done
26290
26291 if test "$libs_found" = "0"; then
26292 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26293 echo "${ECHO_T}can't find the right libraries" >&6
26294 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26295 echo "$as_me: error: can't link a simple motif program" >&2;}
26296 { (exit 1); exit 1; }; }
26297 fi
26298
26299 save_CFLAGS=$CFLAGS
26300 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26301 echo "$as_me:$LINENO: checking for Motif 2" >&5
26302 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26303 cat >conftest.$ac_ext <<_ACEOF
26304 /* confdefs.h. */
26305 _ACEOF
26306 cat confdefs.h >>conftest.$ac_ext
26307 cat >>conftest.$ac_ext <<_ACEOF
26308 /* end confdefs.h. */
26309
26310 #include <Xm/Xm.h>
26311
26312 int
26313 main ()
26314 {
26315
26316 #if XmVersion < 2000
26317 #error "Not Motif 2"
26318 #endif
26319
26320 ;
26321 return 0;
26322 }
26323 _ACEOF
26324 rm -f conftest.$ac_objext
26325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26326 (eval $ac_compile) 2>conftest.er1
26327 ac_status=$?
26328 grep -v '^ *+' conftest.er1 >conftest.err
26329 rm -f conftest.er1
26330 cat conftest.err >&5
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332 (exit $ac_status); } &&
26333 { ac_try='test -z "$ac_c_werror_flag"
26334 || test ! -s conftest.err'
26335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26336 (eval $ac_try) 2>&5
26337 ac_status=$?
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); }; } &&
26340 { ac_try='test -s conftest.$ac_objext'
26341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26342 (eval $ac_try) 2>&5
26343 ac_status=$?
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); }; }; then
26346
26347 cat >>confdefs.h <<\_ACEOF
26348 #define __WXMOTIF20__ 1
26349 _ACEOF
26350
26351 echo "$as_me:$LINENO: result: found" >&5
26352 echo "${ECHO_T}found" >&6
26353
26354 else
26355 echo "$as_me: failed program was:" >&5
26356 sed 's/^/| /' conftest.$ac_ext >&5
26357
26358
26359 cat >>confdefs.h <<\_ACEOF
26360 #define __WXMOTIF20__ 0
26361 _ACEOF
26362
26363 echo "$as_me:$LINENO: result: not found" >&5
26364 echo "${ECHO_T}not found" >&6
26365
26366 fi
26367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26368 CFLAGS=$save_CFLAGS
26369
26370 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26371 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26372 TOOLKIT=MOTIF
26373 GUIDIST=MOTIF_DIST
26374 fi
26375
26376 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26377 if test "$wxUSE_LIBXPM" = "sys"; then
26378 echo "$as_me:$LINENO: checking for Xpm library" >&5
26379 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26380
26381 ac_find_libraries=
26382 for ac_dir in $SEARCH_LIB /usr/lib;
26383 do
26384 for ac_extension in a so sl dylib; do
26385 if test -f "$ac_dir/libXpm.$ac_extension"; then
26386 ac_find_libraries=$ac_dir
26387 break 2
26388 fi
26389 done
26390 done
26391
26392 if test "$ac_find_libraries" != "" ; then
26393
26394 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26395 result=$?
26396 if test $result = 0; then
26397 ac_path_to_link=""
26398 else
26399 ac_path_to_link=" -L$ac_find_libraries"
26400 fi
26401
26402 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26403 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26404 echo "${ECHO_T}found at $ac_find_libraries" >&6
26405
26406 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26407 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26408 if test "${wx_cv_x11_xpm_h+set}" = set; then
26409 echo $ECHO_N "(cached) $ECHO_C" >&6
26410 else
26411
26412 save_CFLAGS=$CFLAGS
26413 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26414
26415 cat >conftest.$ac_ext <<_ACEOF
26416 /* confdefs.h. */
26417 _ACEOF
26418 cat confdefs.h >>conftest.$ac_ext
26419 cat >>conftest.$ac_ext <<_ACEOF
26420 /* end confdefs.h. */
26421
26422 #include <X11/xpm.h>
26423
26424 int
26425 main ()
26426 {
26427
26428 int version;
26429 version = XpmLibraryVersion();
26430
26431 ;
26432 return 0;
26433 }
26434 _ACEOF
26435 rm -f conftest.$ac_objext
26436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26437 (eval $ac_compile) 2>conftest.er1
26438 ac_status=$?
26439 grep -v '^ *+' conftest.er1 >conftest.err
26440 rm -f conftest.er1
26441 cat conftest.err >&5
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); } &&
26444 { ac_try='test -z "$ac_c_werror_flag"
26445 || test ! -s conftest.err'
26446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26447 (eval $ac_try) 2>&5
26448 ac_status=$?
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); }; } &&
26451 { ac_try='test -s conftest.$ac_objext'
26452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453 (eval $ac_try) 2>&5
26454 ac_status=$?
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); }; }; then
26457 wx_cv_x11_xpm_h=yes
26458 else
26459 echo "$as_me: failed program was:" >&5
26460 sed 's/^/| /' conftest.$ac_ext >&5
26461
26462 wx_cv_x11_xpm_h=no
26463
26464 fi
26465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26466
26467 CFLAGS=$save_CFLAGS
26468
26469
26470 fi
26471 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26472 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26473
26474 if test $wx_cv_x11_xpm_h = "yes"; then
26475 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26476 cat >>confdefs.h <<\_ACEOF
26477 #define wxHAVE_LIB_XPM 1
26478 _ACEOF
26479
26480 else
26481 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26482 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26483 fi
26484 fi
26485
26486 fi
26487
26488 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26489 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26490 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26491 echo $ECHO_N "(cached) $ECHO_C" >&6
26492 else
26493 ac_check_lib_save_LIBS=$LIBS
26494 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26495 cat >conftest.$ac_ext <<_ACEOF
26496 /* confdefs.h. */
26497 _ACEOF
26498 cat confdefs.h >>conftest.$ac_ext
26499 cat >>conftest.$ac_ext <<_ACEOF
26500 /* end confdefs.h. */
26501
26502 /* Override any gcc2 internal prototype to avoid an error. */
26503 #ifdef __cplusplus
26504 extern "C"
26505 #endif
26506 /* We use char because int might match the return type of a gcc2
26507 builtin and then its argument prototype would still apply. */
26508 char XShapeQueryExtension ();
26509 int
26510 main ()
26511 {
26512 XShapeQueryExtension ();
26513 ;
26514 return 0;
26515 }
26516 _ACEOF
26517 rm -f conftest.$ac_objext conftest$ac_exeext
26518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26519 (eval $ac_link) 2>conftest.er1
26520 ac_status=$?
26521 grep -v '^ *+' conftest.er1 >conftest.err
26522 rm -f conftest.er1
26523 cat conftest.err >&5
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } &&
26526 { ac_try='test -z "$ac_c_werror_flag"
26527 || test ! -s conftest.err'
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); }; } &&
26533 { ac_try='test -s conftest$ac_exeext'
26534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535 (eval $ac_try) 2>&5
26536 ac_status=$?
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); }; }; then
26539 ac_cv_lib_Xext_XShapeQueryExtension=yes
26540 else
26541 echo "$as_me: failed program was:" >&5
26542 sed 's/^/| /' conftest.$ac_ext >&5
26543
26544 ac_cv_lib_Xext_XShapeQueryExtension=no
26545 fi
26546 rm -f conftest.err conftest.$ac_objext \
26547 conftest$ac_exeext conftest.$ac_ext
26548 LIBS=$ac_check_lib_save_LIBS
26549 fi
26550 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26551 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26552 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26553
26554 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26555 wxHAVE_XEXT_LIB=1
26556
26557 fi
26558
26559
26560 if test "$wxHAVE_XEXT_LIB" = 1; then
26561 save_CFLAGS="$CFLAGS"
26562 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26563
26564 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26565 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26566 cat >conftest.$ac_ext <<_ACEOF
26567 /* confdefs.h. */
26568 _ACEOF
26569 cat confdefs.h >>conftest.$ac_ext
26570 cat >>conftest.$ac_ext <<_ACEOF
26571 /* end confdefs.h. */
26572
26573 #include <X11/Xlib.h>
26574 #include <X11/extensions/shape.h>
26575
26576 int
26577 main ()
26578 {
26579
26580 int dummy1, dummy2;
26581 XShapeQueryExtension((Display*)NULL,
26582 (int*)NULL, (int*)NULL);
26583
26584 ;
26585 return 0;
26586 }
26587 _ACEOF
26588 rm -f conftest.$ac_objext
26589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26590 (eval $ac_compile) 2>conftest.er1
26591 ac_status=$?
26592 grep -v '^ *+' conftest.er1 >conftest.err
26593 rm -f conftest.er1
26594 cat conftest.err >&5
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); } &&
26597 { ac_try='test -z "$ac_c_werror_flag"
26598 || test ! -s conftest.err'
26599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26600 (eval $ac_try) 2>&5
26601 ac_status=$?
26602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603 (exit $ac_status); }; } &&
26604 { ac_try='test -s conftest.$ac_objext'
26605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26606 (eval $ac_try) 2>&5
26607 ac_status=$?
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609 (exit $ac_status); }; }; then
26610
26611 cat >>confdefs.h <<\_ACEOF
26612 #define HAVE_XSHAPE 1
26613 _ACEOF
26614
26615 echo "$as_me:$LINENO: result: found" >&5
26616 echo "${ECHO_T}found" >&6
26617
26618 else
26619 echo "$as_me: failed program was:" >&5
26620 sed 's/^/| /' conftest.$ac_ext >&5
26621
26622
26623 echo "$as_me:$LINENO: result: not found" >&5
26624 echo "${ECHO_T}not found" >&6
26625
26626 fi
26627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26628 CFLAGS="$save_CFLAGS"
26629
26630 fi
26631 fi
26632
26633 if test "$wxUSE_MAC" = 1; then
26634 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26635 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26636 if test "$GCC" = yes; then
26637 echo "$as_me:$LINENO: result: gcc" >&5
26638 echo "${ECHO_T}gcc" >&6
26639 CPPFLAGS_PASCAL="-fpascal-strings"
26640 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26641 echo "$as_me:$LINENO: result: xlc" >&5
26642 echo "${ECHO_T}xlc" >&6
26643 CPPFLAGS_PASCAL="-qmacpstr"
26644 else
26645 echo "$as_me:$LINENO: result: none" >&5
26646 echo "${ECHO_T}none" >&6
26647 fi
26648
26649 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
26650
26651 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
26652 TOOLKIT=MAC
26653 GUIDIST=MACX_DIST
26654 WXBASEPORT="_carbon"
26655 fi
26656
26657 if test "$wxUSE_COCOA" = 1; then
26658 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26659 TOOLKIT=COCOA
26660 GUIDIST=COCOA_DIST
26661 fi
26662
26663 if test "$wxUSE_PM" = 1; then
26664 TOOLKIT=PM
26665 GUIDIST=GTK_DIST
26666 fi
26667
26668 if test "$TOOLKIT" = "PM" ; then
26669 TOOLKIT_DIR="os2"
26670 else
26671 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26672 fi
26673
26674 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26675
26676 if test "$wxUSE_UNIVERSAL" = "yes"; then
26677 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26678
26679 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26680 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26681
26682 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26683 if test "$wxUSE_X11" = 1; then
26684 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26685 else
26686 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26687 fi
26688 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26689 WIDGET_SET=univ
26690 else
26691 ALL_OBJECTS="\$(GUIOBJS)"
26692 ALL_SOURCES="\$(ALL_SOURCES)"
26693 ALL_HEADERS="\$(ALL_HEADERS)"
26694 fi
26695
26696 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26697
26698 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26699 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26700 fi
26701
26702 if test "$wxUSE_HTML" = "yes"; then
26703 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26704 fi
26705
26706 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26707 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26708 fi
26709 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26710 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26711 fi
26712 if test "$wxUSE_LIBPNG" = "builtin" ; then
26713 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26714 fi
26715
26716 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26717 DISTDIR="wx\$(TOOLKIT)"
26718 else
26719 USE_GUI=0
26720
26721 TOOLKIT_DIR="base"
26722
26723 if test "$USE_WIN32" = 1 ; then
26724 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26725 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26726
26727 TOOLKIT="MSW"
26728 else
26729 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26730 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26731 fi
26732
26733 ALL_SOURCES="\$(ALL_SOURCES)"
26734 ALL_HEADERS="\$(ALL_HEADERS)"
26735
26736 PORT_FILES="\${top_srcdir}/src/files.lst"
26737
26738 GUIDIST="BASE_DIST"
26739 DISTDIR="wxBase"
26740 fi
26741
26742
26743
26744
26745 IODBC_C_SRC=""
26746
26747
26748 if test "$TOOLKIT" != "MSW" ; then
26749
26750 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26751
26752 if test "${ac_cv_header_sql_h+set}" = set; then
26753 echo "$as_me:$LINENO: checking for sql.h" >&5
26754 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26755 if test "${ac_cv_header_sql_h+set}" = set; then
26756 echo $ECHO_N "(cached) $ECHO_C" >&6
26757 fi
26758 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26759 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26760 else
26761 # Is the header compilable?
26762 echo "$as_me:$LINENO: checking sql.h usability" >&5
26763 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26764 cat >conftest.$ac_ext <<_ACEOF
26765 /* confdefs.h. */
26766 _ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h. */
26770 $ac_includes_default
26771 #include <sql.h>
26772 _ACEOF
26773 rm -f conftest.$ac_objext
26774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26775 (eval $ac_compile) 2>conftest.er1
26776 ac_status=$?
26777 grep -v '^ *+' conftest.er1 >conftest.err
26778 rm -f conftest.er1
26779 cat conftest.err >&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); } &&
26782 { ac_try='test -z "$ac_c_werror_flag"
26783 || test ! -s conftest.err'
26784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785 (eval $ac_try) 2>&5
26786 ac_status=$?
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); }; } &&
26789 { ac_try='test -s conftest.$ac_objext'
26790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791 (eval $ac_try) 2>&5
26792 ac_status=$?
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); }; }; then
26795 ac_header_compiler=yes
26796 else
26797 echo "$as_me: failed program was:" >&5
26798 sed 's/^/| /' conftest.$ac_ext >&5
26799
26800 ac_header_compiler=no
26801 fi
26802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26804 echo "${ECHO_T}$ac_header_compiler" >&6
26805
26806 # Is the header present?
26807 echo "$as_me:$LINENO: checking sql.h presence" >&5
26808 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26809 cat >conftest.$ac_ext <<_ACEOF
26810 /* confdefs.h. */
26811 _ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h. */
26815 #include <sql.h>
26816 _ACEOF
26817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26819 ac_status=$?
26820 grep -v '^ *+' conftest.er1 >conftest.err
26821 rm -f conftest.er1
26822 cat conftest.err >&5
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); } >/dev/null; then
26825 if test -s conftest.err; then
26826 ac_cpp_err=$ac_c_preproc_warn_flag
26827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26828 else
26829 ac_cpp_err=
26830 fi
26831 else
26832 ac_cpp_err=yes
26833 fi
26834 if test -z "$ac_cpp_err"; then
26835 ac_header_preproc=yes
26836 else
26837 echo "$as_me: failed program was:" >&5
26838 sed 's/^/| /' conftest.$ac_ext >&5
26839
26840 ac_header_preproc=no
26841 fi
26842 rm -f conftest.err conftest.$ac_ext
26843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26844 echo "${ECHO_T}$ac_header_preproc" >&6
26845
26846 # So? What about this header?
26847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26848 yes:no: )
26849 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26850 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26851 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26852 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26853 ac_header_preproc=yes
26854 ;;
26855 no:yes:* )
26856 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26857 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26859 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26860 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26861 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26862 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26863 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26865 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
26866 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26867 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
26868 (
26869 cat <<\_ASBOX
26870 ## ----------------------------------------- ##
26871 ## Report this to wx-dev@lists.wxwindows.org ##
26872 ## ----------------------------------------- ##
26873 _ASBOX
26874 ) |
26875 sed "s/^/$as_me: WARNING: /" >&2
26876 ;;
26877 esac
26878 echo "$as_me:$LINENO: checking for sql.h" >&5
26879 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26880 if test "${ac_cv_header_sql_h+set}" = set; then
26881 echo $ECHO_N "(cached) $ECHO_C" >&6
26882 else
26883 ac_cv_header_sql_h=$ac_header_preproc
26884 fi
26885 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26886 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26887
26888 fi
26889 if test $ac_cv_header_sql_h = yes; then
26890 found_sql_h=1
26891 fi
26892
26893
26894 if test "x$found_sql_h" = "x1" ; then
26895 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26896 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26897 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26898 echo $ECHO_N "(cached) $ECHO_C" >&6
26899 else
26900 ac_check_lib_save_LIBS=$LIBS
26901 LIBS="-liodbc $LIBS"
26902 cat >conftest.$ac_ext <<_ACEOF
26903 /* confdefs.h. */
26904 _ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h. */
26908
26909 /* Override any gcc2 internal prototype to avoid an error. */
26910 #ifdef __cplusplus
26911 extern "C"
26912 #endif
26913 /* We use char because int might match the return type of a gcc2
26914 builtin and then its argument prototype would still apply. */
26915 char SQLAllocEnv ();
26916 int
26917 main ()
26918 {
26919 SQLAllocEnv ();
26920 ;
26921 return 0;
26922 }
26923 _ACEOF
26924 rm -f conftest.$ac_objext conftest$ac_exeext
26925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26926 (eval $ac_link) 2>conftest.er1
26927 ac_status=$?
26928 grep -v '^ *+' conftest.er1 >conftest.err
26929 rm -f conftest.er1
26930 cat conftest.err >&5
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); } &&
26933 { ac_try='test -z "$ac_c_werror_flag"
26934 || test ! -s conftest.err'
26935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26936 (eval $ac_try) 2>&5
26937 ac_status=$?
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); }; } &&
26940 { ac_try='test -s conftest$ac_exeext'
26941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26942 (eval $ac_try) 2>&5
26943 ac_status=$?
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); }; }; then
26946 ac_cv_lib_iodbc_SQLAllocEnv=yes
26947 else
26948 echo "$as_me: failed program was:" >&5
26949 sed 's/^/| /' conftest.$ac_ext >&5
26950
26951 ac_cv_lib_iodbc_SQLAllocEnv=no
26952 fi
26953 rm -f conftest.err conftest.$ac_objext \
26954 conftest$ac_exeext conftest.$ac_ext
26955 LIBS=$ac_check_lib_save_LIBS
26956 fi
26957 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26958 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26959 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26960 ODBC_LINK=" -liodbc"
26961 else
26962
26963 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26964 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26965 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26966 echo $ECHO_N "(cached) $ECHO_C" >&6
26967 else
26968 ac_check_lib_save_LIBS=$LIBS
26969 LIBS="-lunixodbc $LIBS"
26970 cat >conftest.$ac_ext <<_ACEOF
26971 /* confdefs.h. */
26972 _ACEOF
26973 cat confdefs.h >>conftest.$ac_ext
26974 cat >>conftest.$ac_ext <<_ACEOF
26975 /* end confdefs.h. */
26976
26977 /* Override any gcc2 internal prototype to avoid an error. */
26978 #ifdef __cplusplus
26979 extern "C"
26980 #endif
26981 /* We use char because int might match the return type of a gcc2
26982 builtin and then its argument prototype would still apply. */
26983 char SQLAllocEnv ();
26984 int
26985 main ()
26986 {
26987 SQLAllocEnv ();
26988 ;
26989 return 0;
26990 }
26991 _ACEOF
26992 rm -f conftest.$ac_objext conftest$ac_exeext
26993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26994 (eval $ac_link) 2>conftest.er1
26995 ac_status=$?
26996 grep -v '^ *+' conftest.er1 >conftest.err
26997 rm -f conftest.er1
26998 cat conftest.err >&5
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); } &&
27001 { ac_try='test -z "$ac_c_werror_flag"
27002 || test ! -s conftest.err'
27003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27004 (eval $ac_try) 2>&5
27005 ac_status=$?
27006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); }; } &&
27008 { ac_try='test -s conftest$ac_exeext'
27009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27010 (eval $ac_try) 2>&5
27011 ac_status=$?
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); }; }; then
27014 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27015 else
27016 echo "$as_me: failed program was:" >&5
27017 sed 's/^/| /' conftest.$ac_ext >&5
27018
27019 ac_cv_lib_unixodbc_SQLAllocEnv=no
27020 fi
27021 rm -f conftest.err conftest.$ac_objext \
27022 conftest$ac_exeext conftest.$ac_ext
27023 LIBS=$ac_check_lib_save_LIBS
27024 fi
27025 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27026 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27027 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27028 ODBC_LINK=" -lunixodbc"
27029 else
27030
27031 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27032 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27033 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27034 echo $ECHO_N "(cached) $ECHO_C" >&6
27035 else
27036 ac_check_lib_save_LIBS=$LIBS
27037 LIBS="-lodbc $LIBS"
27038 cat >conftest.$ac_ext <<_ACEOF
27039 /* confdefs.h. */
27040 _ACEOF
27041 cat confdefs.h >>conftest.$ac_ext
27042 cat >>conftest.$ac_ext <<_ACEOF
27043 /* end confdefs.h. */
27044
27045 /* Override any gcc2 internal prototype to avoid an error. */
27046 #ifdef __cplusplus
27047 extern "C"
27048 #endif
27049 /* We use char because int might match the return type of a gcc2
27050 builtin and then its argument prototype would still apply. */
27051 char SQLAllocEnv ();
27052 int
27053 main ()
27054 {
27055 SQLAllocEnv ();
27056 ;
27057 return 0;
27058 }
27059 _ACEOF
27060 rm -f conftest.$ac_objext conftest$ac_exeext
27061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27062 (eval $ac_link) 2>conftest.er1
27063 ac_status=$?
27064 grep -v '^ *+' conftest.er1 >conftest.err
27065 rm -f conftest.er1
27066 cat conftest.err >&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); } &&
27069 { ac_try='test -z "$ac_c_werror_flag"
27070 || test ! -s conftest.err'
27071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072 (eval $ac_try) 2>&5
27073 ac_status=$?
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; } &&
27076 { ac_try='test -s conftest$ac_exeext'
27077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27078 (eval $ac_try) 2>&5
27079 ac_status=$?
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); }; }; then
27082 ac_cv_lib_odbc_SQLAllocEnv=yes
27083 else
27084 echo "$as_me: failed program was:" >&5
27085 sed 's/^/| /' conftest.$ac_ext >&5
27086
27087 ac_cv_lib_odbc_SQLAllocEnv=no
27088 fi
27089 rm -f conftest.err conftest.$ac_objext \
27090 conftest$ac_exeext conftest.$ac_ext
27091 LIBS=$ac_check_lib_save_LIBS
27092 fi
27093 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27094 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27095 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27096 ODBC_LINK=" -lodbc"
27097 fi
27098
27099
27100 fi
27101
27102
27103 fi
27104
27105 fi
27106 if test "x$ODBC_LINK" = "x" ; then
27107 if test "$wxUSE_ODBC" = "sys" ; then
27108 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27109 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27110 { (exit 1); exit 1; }; }
27111 else
27112 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27113 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27114 wxUSE_ODBC=builtin
27115 fi
27116 else
27117 wxUSE_ODBC=sys
27118 fi
27119 fi
27120 if test "$wxUSE_ODBC" != "no" ; then
27121 cat >>confdefs.h <<\_ACEOF
27122 #define wxUSE_ODBC 1
27123 _ACEOF
27124
27125 if test "$wxUSE_ODBC" = "builtin" ; then
27126 cat >>confdefs.h <<\_ACEOF
27127 #define wxUSE_BUILTIN_IODBC 1
27128 _ACEOF
27129
27130 fi
27131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27132
27133 WXODBCFLAG="-D_IODBC_"
27134 fi
27135 fi
27136
27137 if test "$wxUSE_REGEX" = "builtin" ; then
27138 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
27139 fi
27140 if test "$wxUSE_ZLIB" = "builtin" ; then
27141 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
27142 fi
27143
27144 if test "$wxUSE_DISPLAY" = "yes"; then
27145 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
27146 echo "$as_me:$LINENO: checking for Xinerama" >&5
27147 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27148
27149 ac_find_libraries=
27150 for ac_dir in $SEARCH_LIB /usr/lib;
27151 do
27152 for ac_extension in a so sl dylib; do
27153 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27154 ac_find_libraries=$ac_dir
27155 break 2
27156 fi
27157 done
27158 done
27159
27160 if test "$ac_find_libraries" != "" ; then
27161
27162 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27163 result=$?
27164 if test $result = 0; then
27165 ac_path_to_link=""
27166 else
27167 ac_path_to_link=" -L$ac_find_libraries"
27168 fi
27169
27170 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27171 LDFLAGS="$LDFLAGS $ac_path_to_link"
27172 fi
27173 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27174 echo "$as_me:$LINENO: result: yes" >&5
27175 echo "${ECHO_T}yes" >&6
27176
27177 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27178 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27179
27180 ac_find_libraries=
27181 for ac_dir in $SEARCH_LIB /usr/lib;
27182 do
27183 for ac_extension in a so sl dylib; do
27184 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27185 ac_find_libraries=$ac_dir
27186 break 2
27187 fi
27188 done
27189 done
27190
27191 if test "$ac_find_libraries" != "" ; then
27192 echo "$as_me:$LINENO: result: yes" >&5
27193 echo "${ECHO_T}yes" >&6
27194
27195 for ac_header in X11/extensions/xf86vmode.h
27196 do
27197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27198 echo "$as_me:$LINENO: checking for $ac_header" >&5
27199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27201 echo $ECHO_N "(cached) $ECHO_C" >&6
27202 else
27203 cat >conftest.$ac_ext <<_ACEOF
27204 /* confdefs.h. */
27205 _ACEOF
27206 cat confdefs.h >>conftest.$ac_ext
27207 cat >>conftest.$ac_ext <<_ACEOF
27208 /* end confdefs.h. */
27209
27210 #if HAVE_X11_XLIB_H
27211 #include <X11/Xlib.h>
27212 #endif
27213
27214
27215 #include <$ac_header>
27216 _ACEOF
27217 rm -f conftest.$ac_objext
27218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27219 (eval $ac_compile) 2>conftest.er1
27220 ac_status=$?
27221 grep -v '^ *+' conftest.er1 >conftest.err
27222 rm -f conftest.er1
27223 cat conftest.err >&5
27224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225 (exit $ac_status); } &&
27226 { ac_try='test -z "$ac_c_werror_flag"
27227 || test ! -s conftest.err'
27228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27229 (eval $ac_try) 2>&5
27230 ac_status=$?
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; } &&
27233 { ac_try='test -s conftest.$ac_objext'
27234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27235 (eval $ac_try) 2>&5
27236 ac_status=$?
27237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); }; }; then
27239 eval "$as_ac_Header=yes"
27240 else
27241 echo "$as_me: failed program was:" >&5
27242 sed 's/^/| /' conftest.$ac_ext >&5
27243
27244 eval "$as_ac_Header=no"
27245 fi
27246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27247 fi
27248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27251 cat >>confdefs.h <<_ACEOF
27252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27253 _ACEOF
27254
27255 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27256
27257 fi
27258
27259 done
27260
27261 else
27262 echo "$as_me:$LINENO: result: no" >&5
27263 echo "${ECHO_T}no" >&6
27264 fi
27265
27266 else
27267 echo "$as_me:$LINENO: result: no" >&5
27268 echo "${ECHO_T}no" >&6
27269 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
27270 echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
27271 wxUSE_DISPLAY="no"
27272 fi
27273 fi
27274 fi
27275
27276
27277 USE_OPENGL=0
27278 if test "$wxUSE_OPENGL" = "yes"; then
27279 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27280 OPENGL_LIBS="-framework OpenGL -framework AGL"
27281 elif test "$wxUSE_MSW" = 1; then
27282 OPENGL_LIBS="-lopengl32 -lglu32"
27283 else
27284
27285
27286 ac_find_includes=
27287 for ac_dir in $SEARCH_INCLUDE /usr/include;
27288 do
27289 if test -f "$ac_dir/GL/gl.h"; then
27290 ac_find_includes=$ac_dir
27291 break
27292 fi
27293 done
27294
27295 if test "$ac_find_includes" != "" ; then
27296 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27297 echo "${ECHO_T}found in $ac_find_includes" >&6
27298
27299 if test "x$ac_find_includes" = "x/usr/include"; then
27300 ac_path_to_include=""
27301 else
27302 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27303 result=$?
27304 if test $result = 0; then
27305 ac_path_to_include=""
27306 else
27307 ac_path_to_include=" -I$ac_find_includes"
27308 fi
27309 fi
27310
27311 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27312 fi
27313
27314 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27315 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27316 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27317 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27318 echo $ECHO_N "(cached) $ECHO_C" >&6
27319 fi
27320 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27321 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27322 else
27323 # Is the header compilable?
27324 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27325 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27326 cat >conftest.$ac_ext <<_ACEOF
27327 /* confdefs.h. */
27328 _ACEOF
27329 cat confdefs.h >>conftest.$ac_ext
27330 cat >>conftest.$ac_ext <<_ACEOF
27331 /* end confdefs.h. */
27332 $ac_includes_default
27333 #include <GL/gl.h>
27334 _ACEOF
27335 rm -f conftest.$ac_objext
27336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27337 (eval $ac_compile) 2>conftest.er1
27338 ac_status=$?
27339 grep -v '^ *+' conftest.er1 >conftest.err
27340 rm -f conftest.er1
27341 cat conftest.err >&5
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); } &&
27344 { ac_try='test -z "$ac_c_werror_flag"
27345 || test ! -s conftest.err'
27346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27347 (eval $ac_try) 2>&5
27348 ac_status=$?
27349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 (exit $ac_status); }; } &&
27351 { ac_try='test -s conftest.$ac_objext'
27352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27353 (eval $ac_try) 2>&5
27354 ac_status=$?
27355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); }; }; then
27357 ac_header_compiler=yes
27358 else
27359 echo "$as_me: failed program was:" >&5
27360 sed 's/^/| /' conftest.$ac_ext >&5
27361
27362 ac_header_compiler=no
27363 fi
27364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27366 echo "${ECHO_T}$ac_header_compiler" >&6
27367
27368 # Is the header present?
27369 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27370 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27371 cat >conftest.$ac_ext <<_ACEOF
27372 /* confdefs.h. */
27373 _ACEOF
27374 cat confdefs.h >>conftest.$ac_ext
27375 cat >>conftest.$ac_ext <<_ACEOF
27376 /* end confdefs.h. */
27377 #include <GL/gl.h>
27378 _ACEOF
27379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27381 ac_status=$?
27382 grep -v '^ *+' conftest.er1 >conftest.err
27383 rm -f conftest.er1
27384 cat conftest.err >&5
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); } >/dev/null; then
27387 if test -s conftest.err; then
27388 ac_cpp_err=$ac_c_preproc_warn_flag
27389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27390 else
27391 ac_cpp_err=
27392 fi
27393 else
27394 ac_cpp_err=yes
27395 fi
27396 if test -z "$ac_cpp_err"; then
27397 ac_header_preproc=yes
27398 else
27399 echo "$as_me: failed program was:" >&5
27400 sed 's/^/| /' conftest.$ac_ext >&5
27401
27402 ac_header_preproc=no
27403 fi
27404 rm -f conftest.err conftest.$ac_ext
27405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27406 echo "${ECHO_T}$ac_header_preproc" >&6
27407
27408 # So? What about this header?
27409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27410 yes:no: )
27411 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27412 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27413 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27414 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27415 ac_header_preproc=yes
27416 ;;
27417 no:yes:* )
27418 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27419 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
27420 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27421 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27422 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27423 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27424 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27425 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27426 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27427 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
27428 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27429 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
27430 (
27431 cat <<\_ASBOX
27432 ## ----------------------------------------- ##
27433 ## Report this to wx-dev@lists.wxwindows.org ##
27434 ## ----------------------------------------- ##
27435 _ASBOX
27436 ) |
27437 sed "s/^/$as_me: WARNING: /" >&2
27438 ;;
27439 esac
27440 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27441 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27442 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27443 echo $ECHO_N "(cached) $ECHO_C" >&6
27444 else
27445 ac_cv_header_GL_gl_h=$ac_header_preproc
27446 fi
27447 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27448 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27449
27450 fi
27451 if test $ac_cv_header_GL_gl_h = yes; then
27452
27453 found_gl=0
27454
27455 echo "$as_me:$LINENO: checking for -lGL" >&5
27456 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27457
27458 ac_find_libraries=
27459 for ac_dir in $SEARCH_LIB /usr/lib;
27460 do
27461 for ac_extension in a so sl dylib; do
27462 if test -f "$ac_dir/libGL.$ac_extension"; then
27463 ac_find_libraries=$ac_dir
27464 break 2
27465 fi
27466 done
27467 done
27468
27469 if test "$ac_find_libraries" != "" ; then
27470
27471 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27472 result=$?
27473 if test $result = 0; then
27474 ac_path_to_link=""
27475 else
27476 ac_path_to_link=" -L$ac_find_libraries"
27477 fi
27478
27479 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27480 LDFLAGS_GL="$ac_path_to_link"
27481 fi
27482
27483
27484 ac_find_libraries=
27485 for ac_dir in $SEARCH_LIB /usr/lib;
27486 do
27487 for ac_extension in a so sl dylib; do
27488 if test -f "$ac_dir/libGLU.$ac_extension"; then
27489 ac_find_libraries=$ac_dir
27490 break 2
27491 fi
27492 done
27493 done
27494
27495 if test "$ac_find_libraries" != "" ; then
27496
27497 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27498 result=$?
27499 if test $result = 0; then
27500 ac_path_to_link=""
27501 else
27502 ac_path_to_link=" -L$ac_find_libraries"
27503 fi
27504
27505 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27506 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27507 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27508 fi
27509
27510 found_gl=1
27511 OPENGL_LIBS="-lGL -lGLU"
27512 echo "$as_me:$LINENO: result: yes" >&5
27513 echo "${ECHO_T}yes" >&6
27514 fi
27515 fi
27516
27517 if test "$found_gl" != 1; then
27518 echo "$as_me:$LINENO: result: no" >&5
27519 echo "${ECHO_T}no" >&6
27520 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27521 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27522
27523 ac_find_libraries=
27524 for ac_dir in $SEARCH_LIB /usr/lib;
27525 do
27526 for ac_extension in a so sl dylib; do
27527 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27528 ac_find_libraries=$ac_dir
27529 break 2
27530 fi
27531 done
27532 done
27533
27534 if test "$ac_find_libraries" != "" ; then
27535
27536 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27537 result=$?
27538 if test $result = 0; then
27539 ac_path_to_link=""
27540 else
27541 ac_path_to_link=" -L$ac_find_libraries"
27542 fi
27543
27544 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27545 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27546 echo "$as_me:$LINENO: result: yes" >&5
27547 echo "${ECHO_T}yes" >&6
27548 else
27549 echo "$as_me:$LINENO: result: no" >&5
27550 echo "${ECHO_T}no" >&6
27551 fi
27552 fi
27553
27554 fi
27555
27556
27557
27558 if test "x$OPENGL_LIBS" = "x"; then
27559 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27560 echo "$as_me: error: OpenGL libraries not available" >&2;}
27561 { (exit 1); exit 1; }; }
27562 fi
27563 fi
27564
27565 if test "$wxUSE_OPENGL" = "yes"; then
27566 USE_OPENGL=1
27567 cat >>confdefs.h <<\_ACEOF
27568 #define wxUSE_OPENGL 1
27569 _ACEOF
27570
27571 cat >>confdefs.h <<\_ACEOF
27572 #define wxUSE_GLCANVAS 1
27573 _ACEOF
27574
27575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27576 fi
27577 fi
27578
27579 if test -z "$TOOLKIT_VPATH" ; then
27580 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27581 fi
27582
27583 if test -n "$TOOLKIT" ; then
27584 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27585 fi
27586
27587 UNICODE=0
27588 lib_unicode_suffix=
27589 if test "$wxUSE_UNICODE" = "yes"; then
27590 lib_unicode_suffix=u
27591 UNICODE=1
27592 fi
27593
27594 lib_debug_suffix=
27595 DEBUG_FLAG=0
27596 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27597 lib_debug_suffix=d
27598 DEBUG_FLAG=1
27599 fi
27600
27601 DEBUG_INFO=0
27602 if test "$wxUSE_DEBUG_INFO" = "yes"; then
27603 DEBUG_INFO=1
27604 fi
27605
27606 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27607
27608 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27609 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27610
27611 if test "$cross_compiling" = "yes"; then
27612 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27613 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
27614 HOST_SUFFIX="-${host_alias}"
27615 fi
27616
27617 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27618 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27619 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27620 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27621
27622 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27623 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27624
27625 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27626 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27627 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27628 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27629
27630 case "${host}" in
27631 *-*-cygwin* | *-*-mingw32* )
27632 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27633 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27634 ;;
27635
27636 *-*-darwin* )
27637
27638 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27639 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27640
27641 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27642 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27643 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27644 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27645
27646 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27647 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27648 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27649 fi
27650 ;;
27651 esac
27652
27653 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27654 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27655
27656 WXCONFIG_LIBS="-l${WX_LIBRARY}"
27657 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27658
27659 if test "$wxUSE_OPENGL" = "yes"; then
27660 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27661 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27662 fi
27663
27664
27665
27666 if test "$wxUSE_SHARED" = "yes"; then
27667 case "${host}" in
27668 *-pc-os2_emx | *-pc-os2-emx | \
27669 *-pc-msdosdjgpp )
27670 wxUSE_SHARED=no
27671 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27672 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27673 ;;
27674 esac
27675 fi
27676
27677 SHARED=0
27678 if test "$wxUSE_SHARED" = "yes"; then
27679 SHARED=1
27680
27681
27682 found_versioning=no
27683
27684
27685 if test $found_versioning = no ; then
27686 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27687 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27688 if test "${wx_cv_version_script+set}" = set; then
27689 echo $ECHO_N "(cached) $ECHO_C" >&6
27690 else
27691
27692 echo "VER_1 { *; };" >conftest.sym
27693 echo "int main() { return 0; }" >conftest.cpp
27694
27695 if { ac_try='
27696 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27697 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27699 (eval $ac_try) 2>&5
27700 ac_status=$?
27701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 (exit $ac_status); }; } ; then
27703 if test -s conftest.stderr ; then
27704 wx_cv_version_script=no
27705 else
27706 wx_cv_version_script=yes
27707 fi
27708 else
27709 wx_cv_version_script=no
27710 fi
27711 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27712
27713 fi
27714 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27715 echo "${ECHO_T}$wx_cv_version_script" >&6
27716 if test $wx_cv_version_script = yes ; then
27717 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27718 fi
27719 fi
27720
27721
27722 case "${host}" in
27723 *-*-linux* | *-*-gnu* )
27724 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27725 ;;
27726
27727 *-*-solaris2* )
27728 if test "$GCC" = yes ; then
27729 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27730
27731 saveLdflags="$LDFLAGS"
27732 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27733 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27734 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27735 cat >conftest.$ac_ext <<_ACEOF
27736 /* confdefs.h. */
27737 _ACEOF
27738 cat confdefs.h >>conftest.$ac_ext
27739 cat >>conftest.$ac_ext <<_ACEOF
27740 /* end confdefs.h. */
27741
27742 int
27743 main ()
27744 {
27745
27746 ;
27747 return 0;
27748 }
27749 _ACEOF
27750 rm -f conftest.$ac_objext conftest$ac_exeext
27751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27752 (eval $ac_link) 2>conftest.er1
27753 ac_status=$?
27754 grep -v '^ *+' conftest.er1 >conftest.err
27755 rm -f conftest.er1
27756 cat conftest.err >&5
27757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758 (exit $ac_status); } &&
27759 { ac_try='test -z "$ac_c_werror_flag"
27760 || test ! -s conftest.err'
27761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762 (eval $ac_try) 2>&5
27763 ac_status=$?
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; } &&
27766 { ac_try='test -s conftest$ac_exeext'
27767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27768 (eval $ac_try) 2>&5
27769 ac_status=$?
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); }; }; then
27772
27773 echo "$as_me:$LINENO: result: yes" >&5
27774 echo "${ECHO_T}yes" >&6
27775 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27776
27777 else
27778 echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27780
27781
27782 echo "$as_me:$LINENO: result: no" >&5
27783 echo "${ECHO_T}no" >&6
27784 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27785 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27786 LDFLAGS="$saveLdflags -Wl,-R,/"
27787 cat >conftest.$ac_ext <<_ACEOF
27788 /* confdefs.h. */
27789 _ACEOF
27790 cat confdefs.h >>conftest.$ac_ext
27791 cat >>conftest.$ac_ext <<_ACEOF
27792 /* end confdefs.h. */
27793
27794 int
27795 main ()
27796 {
27797
27798 ;
27799 return 0;
27800 }
27801 _ACEOF
27802 rm -f conftest.$ac_objext conftest$ac_exeext
27803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27804 (eval $ac_link) 2>conftest.er1
27805 ac_status=$?
27806 grep -v '^ *+' conftest.er1 >conftest.err
27807 rm -f conftest.er1
27808 cat conftest.err >&5
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); } &&
27811 { ac_try='test -z "$ac_c_werror_flag"
27812 || test ! -s conftest.err'
27813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27814 (eval $ac_try) 2>&5
27815 ac_status=$?
27816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817 (exit $ac_status); }; } &&
27818 { ac_try='test -s conftest$ac_exeext'
27819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27820 (eval $ac_try) 2>&5
27821 ac_status=$?
27822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823 (exit $ac_status); }; }; then
27824
27825 echo "$as_me:$LINENO: result: yes" >&5
27826 echo "${ECHO_T}yes" >&6
27827 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27828 else
27829 echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27831
27832
27833 echo "$as_me:$LINENO: result: no" >&5
27834 echo "${ECHO_T}no" >&6
27835
27836 fi
27837 rm -f conftest.err conftest.$ac_objext \
27838 conftest$ac_exeext conftest.$ac_ext
27839
27840 fi
27841 rm -f conftest.err conftest.$ac_objext \
27842 conftest$ac_exeext conftest.$ac_ext
27843 LDFLAGS="$saveLdflags"
27844 else
27845 SHARED_LD="${CXX} -G -o"
27846 PIC_FLAG="-KPIC"
27847 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27848 fi
27849 ;;
27850
27851 powerpc-*-darwin* )
27852 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27853 cat <<EOF >change-install-names
27854 #!/bin/sh
27855 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27856 inst_cmd="install_name_tool "
27857 for i in \${libnames} ; do
27858 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27859 done
27860 \${inst_cmd} \${3}
27861 EOF
27862 chmod +x change-install-names
27863 ;;
27864
27865 esac
27866
27867 if test "x$WX_TARGET_LIBRARY" = "x"; then
27868 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27869 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27870 fi
27871
27872 WX_TARGET_LIBRARY_TYPE="so"
27873 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27874 fi
27875
27876 if test "$wxUSE_SHARED" = "no"; then
27877
27878 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27879 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27880 fi
27881
27882 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27883 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27884 fi
27885
27886 if test "$wxUSE_OPENGL" = "yes"; then
27887 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27888 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27889 else
27890 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27891 fi
27892
27893 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27894 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27895
27896 WX_TARGET_LIBRARY_TYPE="a"
27897 INSTALL_LIBRARY='$(INSTALL_DATA)'
27898
27899 STATIC_FLAG="yes"
27900 else
27901 STATIC_FLAG="no"
27902 fi
27903
27904 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27905 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27906 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27907 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27908
27909 # Extract the first word of "Rez", so it can be a program name with args.
27910 set dummy Rez; ac_word=$2
27911 echo "$as_me:$LINENO: checking for $ac_word" >&5
27912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27913 if test "${ac_cv_prog_RESCOMP+set}" = set; then
27914 echo $ECHO_N "(cached) $ECHO_C" >&6
27915 else
27916 if test -n "$RESCOMP"; then
27917 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27918 else
27919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27920 for as_dir in $PATH
27921 do
27922 IFS=$as_save_IFS
27923 test -z "$as_dir" && as_dir=.
27924 for ac_exec_ext in '' $ac_executable_extensions; do
27925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27926 ac_cv_prog_RESCOMP="Rez"
27927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27928 break 2
27929 fi
27930 done
27931 done
27932
27933 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27934 fi
27935 fi
27936 RESCOMP=$ac_cv_prog_RESCOMP
27937 if test -n "$RESCOMP"; then
27938 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27939 echo "${ECHO_T}$RESCOMP" >&6
27940 else
27941 echo "$as_me:$LINENO: result: no" >&5
27942 echo "${ECHO_T}no" >&6
27943 fi
27944
27945 # Extract the first word of "DeRez", so it can be a program name with args.
27946 set dummy DeRez; ac_word=$2
27947 echo "$as_me:$LINENO: checking for $ac_word" >&5
27948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27949 if test "${ac_cv_prog_DEREZ+set}" = set; then
27950 echo $ECHO_N "(cached) $ECHO_C" >&6
27951 else
27952 if test -n "$DEREZ"; then
27953 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27954 else
27955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27956 for as_dir in $PATH
27957 do
27958 IFS=$as_save_IFS
27959 test -z "$as_dir" && as_dir=.
27960 for ac_exec_ext in '' $ac_executable_extensions; do
27961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27962 ac_cv_prog_DEREZ="DeRez"
27963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27964 break 2
27965 fi
27966 done
27967 done
27968
27969 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27970 fi
27971 fi
27972 DEREZ=$ac_cv_prog_DEREZ
27973 if test -n "$DEREZ"; then
27974 echo "$as_me:$LINENO: result: $DEREZ" >&5
27975 echo "${ECHO_T}$DEREZ" >&6
27976 else
27977 echo "$as_me:$LINENO: result: no" >&5
27978 echo "${ECHO_T}no" >&6
27979 fi
27980
27981 # Extract the first word of "SetFile", so it can be a program name with args.
27982 set dummy SetFile; ac_word=$2
27983 echo "$as_me:$LINENO: checking for $ac_word" >&5
27984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27985 if test "${ac_cv_prog_SETFILE+set}" = set; then
27986 echo $ECHO_N "(cached) $ECHO_C" >&6
27987 else
27988 if test -n "$SETFILE"; then
27989 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27990 else
27991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27992 for as_dir in $PATH
27993 do
27994 IFS=$as_save_IFS
27995 test -z "$as_dir" && as_dir=.
27996 for ac_exec_ext in '' $ac_executable_extensions; do
27997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27998 ac_cv_prog_SETFILE="SetFile"
27999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28000 break 2
28001 fi
28002 done
28003 done
28004
28005 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28006 fi
28007 fi
28008 SETFILE=$ac_cv_prog_SETFILE
28009 if test -n "$SETFILE"; then
28010 echo "$as_me:$LINENO: result: $SETFILE" >&5
28011 echo "${ECHO_T}$SETFILE" >&6
28012 else
28013 echo "$as_me:$LINENO: result: no" >&5
28014 echo "${ECHO_T}no" >&6
28015 fi
28016
28017
28018 MACSETFILE="\$(SETFILE)"
28019
28020 if test "$wxUSE_MAC" = 1; then
28021 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28022
28023 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28024 else
28025 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28026 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28027 fi
28028 else
28029 MACSETFILE="@#"
28030 MACRESWXCONFIG="#"
28031
28032 if test "$wxUSE_PM" = 1; then
28033 MACRESCOMP="emxbind -ep"
28034 else
28035 MACRESCOMP="@#"
28036 fi
28037 fi
28038
28039
28040
28041 echo "$as_me:$LINENO: checking for mode_t" >&5
28042 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28043 if test "${ac_cv_type_mode_t+set}" = set; then
28044 echo $ECHO_N "(cached) $ECHO_C" >&6
28045 else
28046 cat >conftest.$ac_ext <<_ACEOF
28047 /* confdefs.h. */
28048 _ACEOF
28049 cat confdefs.h >>conftest.$ac_ext
28050 cat >>conftest.$ac_ext <<_ACEOF
28051 /* end confdefs.h. */
28052 $ac_includes_default
28053 int
28054 main ()
28055 {
28056 if ((mode_t *) 0)
28057 return 0;
28058 if (sizeof (mode_t))
28059 return 0;
28060 ;
28061 return 0;
28062 }
28063 _ACEOF
28064 rm -f conftest.$ac_objext
28065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28066 (eval $ac_compile) 2>conftest.er1
28067 ac_status=$?
28068 grep -v '^ *+' conftest.er1 >conftest.err
28069 rm -f conftest.er1
28070 cat conftest.err >&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); } &&
28073 { ac_try='test -z "$ac_c_werror_flag"
28074 || test ! -s conftest.err'
28075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076 (eval $ac_try) 2>&5
28077 ac_status=$?
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }; } &&
28080 { ac_try='test -s conftest.$ac_objext'
28081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28082 (eval $ac_try) 2>&5
28083 ac_status=$?
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
28086 ac_cv_type_mode_t=yes
28087 else
28088 echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28090
28091 ac_cv_type_mode_t=no
28092 fi
28093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28094 fi
28095 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28096 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28097 if test $ac_cv_type_mode_t = yes; then
28098 :
28099 else
28100
28101 cat >>confdefs.h <<_ACEOF
28102 #define mode_t int
28103 _ACEOF
28104
28105 fi
28106
28107 echo "$as_me:$LINENO: checking for off_t" >&5
28108 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28109 if test "${ac_cv_type_off_t+set}" = set; then
28110 echo $ECHO_N "(cached) $ECHO_C" >&6
28111 else
28112 cat >conftest.$ac_ext <<_ACEOF
28113 /* confdefs.h. */
28114 _ACEOF
28115 cat confdefs.h >>conftest.$ac_ext
28116 cat >>conftest.$ac_ext <<_ACEOF
28117 /* end confdefs.h. */
28118 $ac_includes_default
28119 int
28120 main ()
28121 {
28122 if ((off_t *) 0)
28123 return 0;
28124 if (sizeof (off_t))
28125 return 0;
28126 ;
28127 return 0;
28128 }
28129 _ACEOF
28130 rm -f conftest.$ac_objext
28131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28132 (eval $ac_compile) 2>conftest.er1
28133 ac_status=$?
28134 grep -v '^ *+' conftest.er1 >conftest.err
28135 rm -f conftest.er1
28136 cat conftest.err >&5
28137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138 (exit $ac_status); } &&
28139 { ac_try='test -z "$ac_c_werror_flag"
28140 || test ! -s conftest.err'
28141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142 (eval $ac_try) 2>&5
28143 ac_status=$?
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; } &&
28146 { ac_try='test -s conftest.$ac_objext'
28147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28148 (eval $ac_try) 2>&5
28149 ac_status=$?
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); }; }; then
28152 ac_cv_type_off_t=yes
28153 else
28154 echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28156
28157 ac_cv_type_off_t=no
28158 fi
28159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28160 fi
28161 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28162 echo "${ECHO_T}$ac_cv_type_off_t" >&6
28163 if test $ac_cv_type_off_t = yes; then
28164 :
28165 else
28166
28167 cat >>confdefs.h <<_ACEOF
28168 #define off_t long
28169 _ACEOF
28170
28171 fi
28172
28173 echo "$as_me:$LINENO: checking for pid_t" >&5
28174 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28175 if test "${ac_cv_type_pid_t+set}" = set; then
28176 echo $ECHO_N "(cached) $ECHO_C" >&6
28177 else
28178 cat >conftest.$ac_ext <<_ACEOF
28179 /* confdefs.h. */
28180 _ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h. */
28184 $ac_includes_default
28185 int
28186 main ()
28187 {
28188 if ((pid_t *) 0)
28189 return 0;
28190 if (sizeof (pid_t))
28191 return 0;
28192 ;
28193 return 0;
28194 }
28195 _ACEOF
28196 rm -f conftest.$ac_objext
28197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28198 (eval $ac_compile) 2>conftest.er1
28199 ac_status=$?
28200 grep -v '^ *+' conftest.er1 >conftest.err
28201 rm -f conftest.er1
28202 cat conftest.err >&5
28203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); } &&
28205 { ac_try='test -z "$ac_c_werror_flag"
28206 || test ! -s conftest.err'
28207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208 (eval $ac_try) 2>&5
28209 ac_status=$?
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); }; } &&
28212 { ac_try='test -s conftest.$ac_objext'
28213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28214 (eval $ac_try) 2>&5
28215 ac_status=$?
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); }; }; then
28218 ac_cv_type_pid_t=yes
28219 else
28220 echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28222
28223 ac_cv_type_pid_t=no
28224 fi
28225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28226 fi
28227 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28228 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28229 if test $ac_cv_type_pid_t = yes; then
28230 :
28231 else
28232
28233 cat >>confdefs.h <<_ACEOF
28234 #define pid_t int
28235 _ACEOF
28236
28237 fi
28238
28239 echo "$as_me:$LINENO: checking for size_t" >&5
28240 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28241 if test "${ac_cv_type_size_t+set}" = set; then
28242 echo $ECHO_N "(cached) $ECHO_C" >&6
28243 else
28244 cat >conftest.$ac_ext <<_ACEOF
28245 /* confdefs.h. */
28246 _ACEOF
28247 cat confdefs.h >>conftest.$ac_ext
28248 cat >>conftest.$ac_ext <<_ACEOF
28249 /* end confdefs.h. */
28250 $ac_includes_default
28251 int
28252 main ()
28253 {
28254 if ((size_t *) 0)
28255 return 0;
28256 if (sizeof (size_t))
28257 return 0;
28258 ;
28259 return 0;
28260 }
28261 _ACEOF
28262 rm -f conftest.$ac_objext
28263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28264 (eval $ac_compile) 2>conftest.er1
28265 ac_status=$?
28266 grep -v '^ *+' conftest.er1 >conftest.err
28267 rm -f conftest.er1
28268 cat conftest.err >&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); } &&
28271 { ac_try='test -z "$ac_c_werror_flag"
28272 || test ! -s conftest.err'
28273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28274 (eval $ac_try) 2>&5
28275 ac_status=$?
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); }; } &&
28278 { ac_try='test -s conftest.$ac_objext'
28279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28280 (eval $ac_try) 2>&5
28281 ac_status=$?
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); }; }; then
28284 ac_cv_type_size_t=yes
28285 else
28286 echo "$as_me: failed program was:" >&5
28287 sed 's/^/| /' conftest.$ac_ext >&5
28288
28289 ac_cv_type_size_t=no
28290 fi
28291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28292 fi
28293 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28294 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28295 if test $ac_cv_type_size_t = yes; then
28296 :
28297 else
28298
28299 cat >>confdefs.h <<_ACEOF
28300 #define size_t unsigned
28301 _ACEOF
28302
28303 fi
28304
28305 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28306 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28307 if test "${ac_cv_type_uid_t+set}" = set; then
28308 echo $ECHO_N "(cached) $ECHO_C" >&6
28309 else
28310 cat >conftest.$ac_ext <<_ACEOF
28311 /* confdefs.h. */
28312 _ACEOF
28313 cat confdefs.h >>conftest.$ac_ext
28314 cat >>conftest.$ac_ext <<_ACEOF
28315 /* end confdefs.h. */
28316 #include <sys/types.h>
28317
28318 _ACEOF
28319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28320 $EGREP "uid_t" >/dev/null 2>&1; then
28321 ac_cv_type_uid_t=yes
28322 else
28323 ac_cv_type_uid_t=no
28324 fi
28325 rm -f conftest*
28326
28327 fi
28328 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28329 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28330 if test $ac_cv_type_uid_t = no; then
28331
28332 cat >>confdefs.h <<\_ACEOF
28333 #define uid_t int
28334 _ACEOF
28335
28336
28337 cat >>confdefs.h <<\_ACEOF
28338 #define gid_t int
28339 _ACEOF
28340
28341 fi
28342
28343
28344
28345
28346 ac_ext=cc
28347 ac_cpp='$CXXCPP $CPPFLAGS'
28348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28351
28352 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28353 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28354 if test "${wx_cv_size_t_is_uint+set}" = set; then
28355 echo $ECHO_N "(cached) $ECHO_C" >&6
28356 else
28357
28358 cat >conftest.$ac_ext <<_ACEOF
28359 /* confdefs.h. */
28360 _ACEOF
28361 cat confdefs.h >>conftest.$ac_ext
28362 cat >>conftest.$ac_ext <<_ACEOF
28363 /* end confdefs.h. */
28364 #include <stddef.h>
28365 int
28366 main ()
28367 {
28368
28369 return 0; }
28370
28371 struct Foo { void foo(size_t); void foo(unsigned int); };
28372
28373 int bar() {
28374
28375 ;
28376 return 0;
28377 }
28378 _ACEOF
28379 rm -f conftest.$ac_objext
28380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28381 (eval $ac_compile) 2>conftest.er1
28382 ac_status=$?
28383 grep -v '^ *+' conftest.er1 >conftest.err
28384 rm -f conftest.er1
28385 cat conftest.err >&5
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); } &&
28388 { ac_try='test -z "$ac_cxx_werror_flag"
28389 || test ! -s conftest.err'
28390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28391 (eval $ac_try) 2>&5
28392 ac_status=$?
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); }; } &&
28395 { ac_try='test -s conftest.$ac_objext'
28396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28397 (eval $ac_try) 2>&5
28398 ac_status=$?
28399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); }; }; then
28401 wx_cv_size_t_is_uint=no
28402 else
28403 echo "$as_me: failed program was:" >&5
28404 sed 's/^/| /' conftest.$ac_ext >&5
28405
28406 wx_cv_size_t_is_uint=yes
28407
28408 fi
28409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28410
28411
28412 fi
28413 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28414 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28415
28416 if test "$wx_cv_size_t_is_uint" = "yes"; then
28417 cat >>confdefs.h <<\_ACEOF
28418 #define wxSIZE_T_IS_UINT 1
28419 _ACEOF
28420
28421 else
28422 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28423 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28424 if test "${wx_cv_size_t_is_ulong+set}" = set; then
28425 echo $ECHO_N "(cached) $ECHO_C" >&6
28426 else
28427 cat >conftest.$ac_ext <<_ACEOF
28428 /* confdefs.h. */
28429 _ACEOF
28430 cat confdefs.h >>conftest.$ac_ext
28431 cat >>conftest.$ac_ext <<_ACEOF
28432 /* end confdefs.h. */
28433 #include <stddef.h>
28434 int
28435 main ()
28436 {
28437
28438 return 0; }
28439
28440 struct Foo { void foo(size_t); void foo(unsigned long); };
28441
28442 int bar() {
28443
28444 ;
28445 return 0;
28446 }
28447 _ACEOF
28448 rm -f conftest.$ac_objext
28449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28450 (eval $ac_compile) 2>conftest.er1
28451 ac_status=$?
28452 grep -v '^ *+' conftest.er1 >conftest.err
28453 rm -f conftest.er1
28454 cat conftest.err >&5
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); } &&
28457 { ac_try='test -z "$ac_cxx_werror_flag"
28458 || test ! -s conftest.err'
28459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28460 (eval $ac_try) 2>&5
28461 ac_status=$?
28462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463 (exit $ac_status); }; } &&
28464 { ac_try='test -s conftest.$ac_objext'
28465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28466 (eval $ac_try) 2>&5
28467 ac_status=$?
28468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469 (exit $ac_status); }; }; then
28470 wx_cv_size_t_is_ulong=no
28471 else
28472 echo "$as_me: failed program was:" >&5
28473 sed 's/^/| /' conftest.$ac_ext >&5
28474
28475 wx_cv_size_t_is_ulong=yes
28476
28477 fi
28478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28479
28480 fi
28481 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28482 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28483
28484 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28485 cat >>confdefs.h <<\_ACEOF
28486 #define wxSIZE_T_IS_ULONG 1
28487 _ACEOF
28488
28489 fi
28490 fi
28491
28492 ac_ext=c
28493 ac_cpp='$CPP $CPPFLAGS'
28494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28497
28498
28499
28500 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28501 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28502 if test "${wx_cv_struct_pw_gecos+set}" = set; then
28503 echo $ECHO_N "(cached) $ECHO_C" >&6
28504 else
28505
28506 cat >conftest.$ac_ext <<_ACEOF
28507 /* confdefs.h. */
28508 _ACEOF
28509 cat confdefs.h >>conftest.$ac_ext
28510 cat >>conftest.$ac_ext <<_ACEOF
28511 /* end confdefs.h. */
28512 #include <pwd.h>
28513 int
28514 main ()
28515 {
28516
28517 char *p;
28518 struct passwd *pw;
28519 p = pw->pw_gecos;
28520
28521 ;
28522 return 0;
28523 }
28524 _ACEOF
28525 rm -f conftest.$ac_objext
28526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28527 (eval $ac_compile) 2>conftest.er1
28528 ac_status=$?
28529 grep -v '^ *+' conftest.er1 >conftest.err
28530 rm -f conftest.er1
28531 cat conftest.err >&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); } &&
28534 { ac_try='test -z "$ac_c_werror_flag"
28535 || test ! -s conftest.err'
28536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28537 (eval $ac_try) 2>&5
28538 ac_status=$?
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); }; } &&
28541 { ac_try='test -s conftest.$ac_objext'
28542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28543 (eval $ac_try) 2>&5
28544 ac_status=$?
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); }; }; then
28547
28548 wx_cv_struct_pw_gecos=yes
28549
28550 else
28551 echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.$ac_ext >&5
28553
28554
28555 wx_cv_struct_pw_gecos=no
28556
28557
28558 fi
28559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28560
28561
28562 fi
28563 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28564 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28565
28566 if test "$wx_cv_struct_pw_gecos" = "yes"; then
28567 cat >>confdefs.h <<\_ACEOF
28568 #define HAVE_PW_GECOS 1
28569 _ACEOF
28570
28571 fi
28572
28573
28574 if test "$wx_cv_sizeof_wchar_t" != "0"; then
28575 cat >>confdefs.h <<\_ACEOF
28576 #define wxUSE_WCHAR_T 1
28577 _ACEOF
28578
28579
28580 WCSLEN_FOUND=0
28581 WCHAR_LINK=
28582
28583 for ac_func in wcslen
28584 do
28585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28586 echo "$as_me:$LINENO: checking for $ac_func" >&5
28587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28588 if eval "test \"\${$as_ac_var+set}\" = set"; then
28589 echo $ECHO_N "(cached) $ECHO_C" >&6
28590 else
28591 cat >conftest.$ac_ext <<_ACEOF
28592 /* confdefs.h. */
28593 _ACEOF
28594 cat confdefs.h >>conftest.$ac_ext
28595 cat >>conftest.$ac_ext <<_ACEOF
28596 /* end confdefs.h. */
28597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28599 #define $ac_func innocuous_$ac_func
28600
28601 /* System header to define __stub macros and hopefully few prototypes,
28602 which can conflict with char $ac_func (); below.
28603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28604 <limits.h> exists even on freestanding compilers. */
28605
28606 #ifdef __STDC__
28607 # include <limits.h>
28608 #else
28609 # include <assert.h>
28610 #endif
28611
28612 #undef $ac_func
28613
28614 /* Override any gcc2 internal prototype to avoid an error. */
28615 #ifdef __cplusplus
28616 extern "C"
28617 {
28618 #endif
28619 /* We use char because int might match the return type of a gcc2
28620 builtin and then its argument prototype would still apply. */
28621 char $ac_func ();
28622 /* The GNU C library defines this for functions which it implements
28623 to always fail with ENOSYS. Some functions are actually named
28624 something starting with __ and the normal name is an alias. */
28625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28626 choke me
28627 #else
28628 char (*f) () = $ac_func;
28629 #endif
28630 #ifdef __cplusplus
28631 }
28632 #endif
28633
28634 int
28635 main ()
28636 {
28637 return f != $ac_func;
28638 ;
28639 return 0;
28640 }
28641 _ACEOF
28642 rm -f conftest.$ac_objext conftest$ac_exeext
28643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28644 (eval $ac_link) 2>conftest.er1
28645 ac_status=$?
28646 grep -v '^ *+' conftest.er1 >conftest.err
28647 rm -f conftest.er1
28648 cat conftest.err >&5
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); } &&
28651 { ac_try='test -z "$ac_c_werror_flag"
28652 || test ! -s conftest.err'
28653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28654 (eval $ac_try) 2>&5
28655 ac_status=$?
28656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657 (exit $ac_status); }; } &&
28658 { ac_try='test -s conftest$ac_exeext'
28659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28660 (eval $ac_try) 2>&5
28661 ac_status=$?
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); }; }; then
28664 eval "$as_ac_var=yes"
28665 else
28666 echo "$as_me: failed program was:" >&5
28667 sed 's/^/| /' conftest.$ac_ext >&5
28668
28669 eval "$as_ac_var=no"
28670 fi
28671 rm -f conftest.err conftest.$ac_objext \
28672 conftest$ac_exeext conftest.$ac_ext
28673 fi
28674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28676 if test `eval echo '${'$as_ac_var'}'` = yes; then
28677 cat >>confdefs.h <<_ACEOF
28678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28679 _ACEOF
28680 WCSLEN_FOUND=1
28681 fi
28682 done
28683
28684
28685 if test "$WCSLEN_FOUND" = 0; then
28686 if test "$TOOLKIT" = "MSW"; then
28687 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28688 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28689 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28690 echo $ECHO_N "(cached) $ECHO_C" >&6
28691 else
28692 ac_check_lib_save_LIBS=$LIBS
28693 LIBS="-lmsvcrt $LIBS"
28694 cat >conftest.$ac_ext <<_ACEOF
28695 /* confdefs.h. */
28696 _ACEOF
28697 cat confdefs.h >>conftest.$ac_ext
28698 cat >>conftest.$ac_ext <<_ACEOF
28699 /* end confdefs.h. */
28700
28701 /* Override any gcc2 internal prototype to avoid an error. */
28702 #ifdef __cplusplus
28703 extern "C"
28704 #endif
28705 /* We use char because int might match the return type of a gcc2
28706 builtin and then its argument prototype would still apply. */
28707 char wcslen ();
28708 int
28709 main ()
28710 {
28711 wcslen ();
28712 ;
28713 return 0;
28714 }
28715 _ACEOF
28716 rm -f conftest.$ac_objext conftest$ac_exeext
28717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28718 (eval $ac_link) 2>conftest.er1
28719 ac_status=$?
28720 grep -v '^ *+' conftest.er1 >conftest.err
28721 rm -f conftest.er1
28722 cat conftest.err >&5
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); } &&
28725 { ac_try='test -z "$ac_c_werror_flag"
28726 || test ! -s conftest.err'
28727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28728 (eval $ac_try) 2>&5
28729 ac_status=$?
28730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731 (exit $ac_status); }; } &&
28732 { ac_try='test -s conftest$ac_exeext'
28733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734 (eval $ac_try) 2>&5
28735 ac_status=$?
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; }; then
28738 ac_cv_lib_msvcrt_wcslen=yes
28739 else
28740 echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28742
28743 ac_cv_lib_msvcrt_wcslen=no
28744 fi
28745 rm -f conftest.err conftest.$ac_objext \
28746 conftest$ac_exeext conftest.$ac_ext
28747 LIBS=$ac_check_lib_save_LIBS
28748 fi
28749 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28750 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28751 if test $ac_cv_lib_msvcrt_wcslen = yes; then
28752 WCHAR_OK=1
28753 fi
28754
28755 else
28756 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28757 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28758 if test "${ac_cv_lib_w_wcslen+set}" = set; then
28759 echo $ECHO_N "(cached) $ECHO_C" >&6
28760 else
28761 ac_check_lib_save_LIBS=$LIBS
28762 LIBS="-lw $LIBS"
28763 cat >conftest.$ac_ext <<_ACEOF
28764 /* confdefs.h. */
28765 _ACEOF
28766 cat confdefs.h >>conftest.$ac_ext
28767 cat >>conftest.$ac_ext <<_ACEOF
28768 /* end confdefs.h. */
28769
28770 /* Override any gcc2 internal prototype to avoid an error. */
28771 #ifdef __cplusplus
28772 extern "C"
28773 #endif
28774 /* We use char because int might match the return type of a gcc2
28775 builtin and then its argument prototype would still apply. */
28776 char wcslen ();
28777 int
28778 main ()
28779 {
28780 wcslen ();
28781 ;
28782 return 0;
28783 }
28784 _ACEOF
28785 rm -f conftest.$ac_objext conftest$ac_exeext
28786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28787 (eval $ac_link) 2>conftest.er1
28788 ac_status=$?
28789 grep -v '^ *+' conftest.er1 >conftest.err
28790 rm -f conftest.er1
28791 cat conftest.err >&5
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); } &&
28794 { ac_try='test -z "$ac_c_werror_flag"
28795 || test ! -s conftest.err'
28796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28797 (eval $ac_try) 2>&5
28798 ac_status=$?
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; } &&
28801 { ac_try='test -s conftest$ac_exeext'
28802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803 (eval $ac_try) 2>&5
28804 ac_status=$?
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; }; then
28807 ac_cv_lib_w_wcslen=yes
28808 else
28809 echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28811
28812 ac_cv_lib_w_wcslen=no
28813 fi
28814 rm -f conftest.err conftest.$ac_objext \
28815 conftest$ac_exeext conftest.$ac_ext
28816 LIBS=$ac_check_lib_save_LIBS
28817 fi
28818 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28819 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28820 if test $ac_cv_lib_w_wcslen = yes; then
28821
28822 WCHAR_LINK=" -lw"
28823 WCSLEN_FOUND=1
28824
28825 fi
28826
28827 fi
28828 fi
28829
28830 if test "$WCSLEN_FOUND" = 1; then
28831 cat >>confdefs.h <<\_ACEOF
28832 #define HAVE_WCSLEN 1
28833 _ACEOF
28834
28835 fi
28836
28837
28838 for ac_func in wcsrtombs
28839 do
28840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28841 echo "$as_me:$LINENO: checking for $ac_func" >&5
28842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28843 if eval "test \"\${$as_ac_var+set}\" = set"; then
28844 echo $ECHO_N "(cached) $ECHO_C" >&6
28845 else
28846 cat >conftest.$ac_ext <<_ACEOF
28847 /* confdefs.h. */
28848 _ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h. */
28852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28854 #define $ac_func innocuous_$ac_func
28855
28856 /* System header to define __stub macros and hopefully few prototypes,
28857 which can conflict with char $ac_func (); below.
28858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28859 <limits.h> exists even on freestanding compilers. */
28860
28861 #ifdef __STDC__
28862 # include <limits.h>
28863 #else
28864 # include <assert.h>
28865 #endif
28866
28867 #undef $ac_func
28868
28869 /* Override any gcc2 internal prototype to avoid an error. */
28870 #ifdef __cplusplus
28871 extern "C"
28872 {
28873 #endif
28874 /* We use char because int might match the return type of a gcc2
28875 builtin and then its argument prototype would still apply. */
28876 char $ac_func ();
28877 /* The GNU C library defines this for functions which it implements
28878 to always fail with ENOSYS. Some functions are actually named
28879 something starting with __ and the normal name is an alias. */
28880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28881 choke me
28882 #else
28883 char (*f) () = $ac_func;
28884 #endif
28885 #ifdef __cplusplus
28886 }
28887 #endif
28888
28889 int
28890 main ()
28891 {
28892 return f != $ac_func;
28893 ;
28894 return 0;
28895 }
28896 _ACEOF
28897 rm -f conftest.$ac_objext conftest$ac_exeext
28898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28899 (eval $ac_link) 2>conftest.er1
28900 ac_status=$?
28901 grep -v '^ *+' conftest.er1 >conftest.err
28902 rm -f conftest.er1
28903 cat conftest.err >&5
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); } &&
28906 { ac_try='test -z "$ac_c_werror_flag"
28907 || test ! -s conftest.err'
28908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909 (eval $ac_try) 2>&5
28910 ac_status=$?
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); }; } &&
28913 { ac_try='test -s conftest$ac_exeext'
28914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28915 (eval $ac_try) 2>&5
28916 ac_status=$?
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); }; }; then
28919 eval "$as_ac_var=yes"
28920 else
28921 echo "$as_me: failed program was:" >&5
28922 sed 's/^/| /' conftest.$ac_ext >&5
28923
28924 eval "$as_ac_var=no"
28925 fi
28926 rm -f conftest.err conftest.$ac_objext \
28927 conftest$ac_exeext conftest.$ac_ext
28928 fi
28929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28931 if test `eval echo '${'$as_ac_var'}'` = yes; then
28932 cat >>confdefs.h <<_ACEOF
28933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28934 _ACEOF
28935
28936 fi
28937 done
28938
28939 else
28940 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28941 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28942 fi
28943
28944
28945
28946 ac_ext=cc
28947 ac_cpp='$CXXCPP $CPPFLAGS'
28948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28951
28952
28953
28954 for ac_func in vsnprintf
28955 do
28956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28957 echo "$as_me:$LINENO: checking for $ac_func" >&5
28958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28959 if eval "test \"\${$as_ac_var+set}\" = set"; then
28960 echo $ECHO_N "(cached) $ECHO_C" >&6
28961 else
28962 cat >conftest.$ac_ext <<_ACEOF
28963 /* confdefs.h. */
28964 _ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h. */
28968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28970 #define $ac_func innocuous_$ac_func
28971
28972 /* System header to define __stub macros and hopefully few prototypes,
28973 which can conflict with char $ac_func (); below.
28974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28975 <limits.h> exists even on freestanding compilers. */
28976
28977 #ifdef __STDC__
28978 # include <limits.h>
28979 #else
28980 # include <assert.h>
28981 #endif
28982
28983 #undef $ac_func
28984
28985 /* Override any gcc2 internal prototype to avoid an error. */
28986 #ifdef __cplusplus
28987 extern "C"
28988 {
28989 #endif
28990 /* We use char because int might match the return type of a gcc2
28991 builtin and then its argument prototype would still apply. */
28992 char $ac_func ();
28993 /* The GNU C library defines this for functions which it implements
28994 to always fail with ENOSYS. Some functions are actually named
28995 something starting with __ and the normal name is an alias. */
28996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28997 choke me
28998 #else
28999 char (*f) () = $ac_func;
29000 #endif
29001 #ifdef __cplusplus
29002 }
29003 #endif
29004
29005 int
29006 main ()
29007 {
29008 return f != $ac_func;
29009 ;
29010 return 0;
29011 }
29012 _ACEOF
29013 rm -f conftest.$ac_objext conftest$ac_exeext
29014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29015 (eval $ac_link) 2>conftest.er1
29016 ac_status=$?
29017 grep -v '^ *+' conftest.er1 >conftest.err
29018 rm -f conftest.er1
29019 cat conftest.err >&5
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); } &&
29022 { ac_try='test -z "$ac_cxx_werror_flag"
29023 || test ! -s conftest.err'
29024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29025 (eval $ac_try) 2>&5
29026 ac_status=$?
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); }; } &&
29029 { ac_try='test -s conftest$ac_exeext'
29030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29031 (eval $ac_try) 2>&5
29032 ac_status=$?
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); }; }; then
29035 eval "$as_ac_var=yes"
29036 else
29037 echo "$as_me: failed program was:" >&5
29038 sed 's/^/| /' conftest.$ac_ext >&5
29039
29040 eval "$as_ac_var=no"
29041 fi
29042 rm -f conftest.err conftest.$ac_objext \
29043 conftest$ac_exeext conftest.$ac_ext
29044 fi
29045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29047 if test `eval echo '${'$as_ac_var'}'` = yes; then
29048 cat >>confdefs.h <<_ACEOF
29049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29050 _ACEOF
29051
29052 fi
29053 done
29054
29055
29056 if test "$ac_cv_func_vsnprintf" = "yes"; then
29057 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29058 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29059 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29060 echo $ECHO_N "(cached) $ECHO_C" >&6
29061 else
29062
29063 cat >conftest.$ac_ext <<_ACEOF
29064 /* confdefs.h. */
29065 _ACEOF
29066 cat confdefs.h >>conftest.$ac_ext
29067 cat >>conftest.$ac_ext <<_ACEOF
29068 /* end confdefs.h. */
29069
29070 #include <stdio.h>
29071 #include <stdarg.h>
29072
29073 int
29074 main ()
29075 {
29076
29077 char *buf;
29078 va_list ap;
29079 vsnprintf(buf, 10u, "%s", ap);
29080
29081 ;
29082 return 0;
29083 }
29084 _ACEOF
29085 rm -f conftest.$ac_objext
29086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29087 (eval $ac_compile) 2>conftest.er1
29088 ac_status=$?
29089 grep -v '^ *+' conftest.er1 >conftest.err
29090 rm -f conftest.er1
29091 cat conftest.err >&5
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); } &&
29094 { ac_try='test -z "$ac_cxx_werror_flag"
29095 || test ! -s conftest.err'
29096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29097 (eval $ac_try) 2>&5
29098 ac_status=$?
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; } &&
29101 { ac_try='test -s conftest.$ac_objext'
29102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103 (eval $ac_try) 2>&5
29104 ac_status=$?
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; }; then
29107 wx_cv_func_vsnprintf_decl=yes
29108 else
29109 echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.$ac_ext >&5
29111
29112 wx_cv_func_vsnprintf_decl=no
29113
29114 fi
29115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29116
29117
29118 fi
29119 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29120 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29121
29122 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29123 cat >>confdefs.h <<\_ACEOF
29124 #define HAVE_VSNPRINTF_DECL 1
29125 _ACEOF
29126
29127 fi
29128 fi
29129
29130 if test "$wxUSE_UNICODE" = yes; then
29131
29132
29133
29134 for ac_func in fputwc wprintf vswprintf
29135 do
29136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29137 echo "$as_me:$LINENO: checking for $ac_func" >&5
29138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29139 if eval "test \"\${$as_ac_var+set}\" = set"; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29141 else
29142 cat >conftest.$ac_ext <<_ACEOF
29143 /* confdefs.h. */
29144 _ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h. */
29148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29150 #define $ac_func innocuous_$ac_func
29151
29152 /* System header to define __stub macros and hopefully few prototypes,
29153 which can conflict with char $ac_func (); below.
29154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29155 <limits.h> exists even on freestanding compilers. */
29156
29157 #ifdef __STDC__
29158 # include <limits.h>
29159 #else
29160 # include <assert.h>
29161 #endif
29162
29163 #undef $ac_func
29164
29165 /* Override any gcc2 internal prototype to avoid an error. */
29166 #ifdef __cplusplus
29167 extern "C"
29168 {
29169 #endif
29170 /* We use char because int might match the return type of a gcc2
29171 builtin and then its argument prototype would still apply. */
29172 char $ac_func ();
29173 /* The GNU C library defines this for functions which it implements
29174 to always fail with ENOSYS. Some functions are actually named
29175 something starting with __ and the normal name is an alias. */
29176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29177 choke me
29178 #else
29179 char (*f) () = $ac_func;
29180 #endif
29181 #ifdef __cplusplus
29182 }
29183 #endif
29184
29185 int
29186 main ()
29187 {
29188 return f != $ac_func;
29189 ;
29190 return 0;
29191 }
29192 _ACEOF
29193 rm -f conftest.$ac_objext conftest$ac_exeext
29194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29195 (eval $ac_link) 2>conftest.er1
29196 ac_status=$?
29197 grep -v '^ *+' conftest.er1 >conftest.err
29198 rm -f conftest.er1
29199 cat conftest.err >&5
29200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201 (exit $ac_status); } &&
29202 { ac_try='test -z "$ac_cxx_werror_flag"
29203 || test ! -s conftest.err'
29204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29205 (eval $ac_try) 2>&5
29206 ac_status=$?
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); }; } &&
29209 { ac_try='test -s conftest$ac_exeext'
29210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29211 (eval $ac_try) 2>&5
29212 ac_status=$?
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); }; }; then
29215 eval "$as_ac_var=yes"
29216 else
29217 echo "$as_me: failed program was:" >&5
29218 sed 's/^/| /' conftest.$ac_ext >&5
29219
29220 eval "$as_ac_var=no"
29221 fi
29222 rm -f conftest.err conftest.$ac_objext \
29223 conftest$ac_exeext conftest.$ac_ext
29224 fi
29225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29227 if test `eval echo '${'$as_ac_var'}'` = yes; then
29228 cat >>confdefs.h <<_ACEOF
29229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29230 _ACEOF
29231
29232 fi
29233 done
29234
29235
29236 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29237 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29238 cat >conftest.$ac_ext <<_ACEOF
29239 /* confdefs.h. */
29240 _ACEOF
29241 cat confdefs.h >>conftest.$ac_ext
29242 cat >>conftest.$ac_ext <<_ACEOF
29243 /* end confdefs.h. */
29244 #include <wchar.h>
29245 int
29246 main ()
29247 {
29248 &_vsnwprintf;
29249 ;
29250 return 0;
29251 }
29252 _ACEOF
29253 rm -f conftest.$ac_objext
29254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29255 (eval $ac_compile) 2>conftest.er1
29256 ac_status=$?
29257 grep -v '^ *+' conftest.er1 >conftest.err
29258 rm -f conftest.er1
29259 cat conftest.err >&5
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); } &&
29262 { ac_try='test -z "$ac_cxx_werror_flag"
29263 || test ! -s conftest.err'
29264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265 (eval $ac_try) 2>&5
29266 ac_status=$?
29267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); }; } &&
29269 { ac_try='test -s conftest.$ac_objext'
29270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271 (eval $ac_try) 2>&5
29272 ac_status=$?
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
29275 echo "$as_me:$LINENO: result: yes" >&5
29276 echo "${ECHO_T}yes" >&6
29277 cat >>confdefs.h <<\_ACEOF
29278 #define HAVE__VSNWPRINTF 1
29279 _ACEOF
29280
29281 else
29282 echo "$as_me: failed program was:" >&5
29283 sed 's/^/| /' conftest.$ac_ext >&5
29284
29285 echo "$as_me:$LINENO: result: no" >&5
29286 echo "${ECHO_T}no" >&6
29287 fi
29288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
29289 fi
29290
29291 ac_ext=c
29292 ac_cpp='$CPP $CPPFLAGS'
29293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29296
29297
29298
29299
29300 if test "$TOOLKIT" != "MSW"; then
29301
29302
29303
29304
29305 ac_ext=cc
29306 ac_cpp='$CXXCPP $CPPFLAGS'
29307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29310
29311
29312
29313
29314 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29315 if test "${with_libiconv_prefix+set}" = set; then
29316 withval="$with_libiconv_prefix"
29317
29318 for dir in `echo "$withval" | tr : ' '`; do
29319 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29320 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29321 done
29322
29323 fi;
29324
29325 echo "$as_me:$LINENO: checking for iconv" >&5
29326 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29327 if test "${am_cv_func_iconv+set}" = set; then
29328 echo $ECHO_N "(cached) $ECHO_C" >&6
29329 else
29330
29331 am_cv_func_iconv="no, consider installing GNU libiconv"
29332 am_cv_lib_iconv=no
29333 cat >conftest.$ac_ext <<_ACEOF
29334 /* confdefs.h. */
29335 _ACEOF
29336 cat confdefs.h >>conftest.$ac_ext
29337 cat >>conftest.$ac_ext <<_ACEOF
29338 /* end confdefs.h. */
29339 #include <stdlib.h>
29340 #include <iconv.h>
29341 int
29342 main ()
29343 {
29344 iconv_t cd = iconv_open("","");
29345 iconv(cd,NULL,NULL,NULL,NULL);
29346 iconv_close(cd);
29347 ;
29348 return 0;
29349 }
29350 _ACEOF
29351 rm -f conftest.$ac_objext conftest$ac_exeext
29352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29353 (eval $ac_link) 2>conftest.er1
29354 ac_status=$?
29355 grep -v '^ *+' conftest.er1 >conftest.err
29356 rm -f conftest.er1
29357 cat conftest.err >&5
29358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359 (exit $ac_status); } &&
29360 { ac_try='test -z "$ac_cxx_werror_flag"
29361 || test ! -s conftest.err'
29362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29363 (eval $ac_try) 2>&5
29364 ac_status=$?
29365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366 (exit $ac_status); }; } &&
29367 { ac_try='test -s conftest$ac_exeext'
29368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29369 (eval $ac_try) 2>&5
29370 ac_status=$?
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); }; }; then
29373 am_cv_func_iconv=yes
29374 else
29375 echo "$as_me: failed program was:" >&5
29376 sed 's/^/| /' conftest.$ac_ext >&5
29377
29378 fi
29379 rm -f conftest.err conftest.$ac_objext \
29380 conftest$ac_exeext conftest.$ac_ext
29381 if test "$am_cv_func_iconv" != yes; then
29382 am_save_LIBS="$LIBS"
29383 LIBS="$LIBS -liconv"
29384 cat >conftest.$ac_ext <<_ACEOF
29385 /* confdefs.h. */
29386 _ACEOF
29387 cat confdefs.h >>conftest.$ac_ext
29388 cat >>conftest.$ac_ext <<_ACEOF
29389 /* end confdefs.h. */
29390 #include <stdlib.h>
29391 #include <iconv.h>
29392 int
29393 main ()
29394 {
29395 iconv_t cd = iconv_open("","");
29396 iconv(cd,NULL,NULL,NULL,NULL);
29397 iconv_close(cd);
29398 ;
29399 return 0;
29400 }
29401 _ACEOF
29402 rm -f conftest.$ac_objext conftest$ac_exeext
29403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29404 (eval $ac_link) 2>conftest.er1
29405 ac_status=$?
29406 grep -v '^ *+' conftest.er1 >conftest.err
29407 rm -f conftest.er1
29408 cat conftest.err >&5
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); } &&
29411 { ac_try='test -z "$ac_cxx_werror_flag"
29412 || test ! -s conftest.err'
29413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29414 (eval $ac_try) 2>&5
29415 ac_status=$?
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; } &&
29418 { ac_try='test -s conftest$ac_exeext'
29419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29420 (eval $ac_try) 2>&5
29421 ac_status=$?
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); }; }; then
29424 am_cv_lib_iconv=yes
29425 am_cv_func_iconv=yes
29426 else
29427 echo "$as_me: failed program was:" >&5
29428 sed 's/^/| /' conftest.$ac_ext >&5
29429
29430 fi
29431 rm -f conftest.err conftest.$ac_objext \
29432 conftest$ac_exeext conftest.$ac_ext
29433 LIBS="$am_save_LIBS"
29434 fi
29435
29436 fi
29437 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29438 echo "${ECHO_T}$am_cv_func_iconv" >&6
29439 if test "$am_cv_func_iconv" = yes; then
29440
29441 cat >>confdefs.h <<\_ACEOF
29442 #define HAVE_ICONV 1
29443 _ACEOF
29444
29445 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29446 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29447 if test "${wx_cv_func_iconv_const+set}" = set; then
29448 echo $ECHO_N "(cached) $ECHO_C" >&6
29449 else
29450 cat >conftest.$ac_ext <<_ACEOF
29451 /* confdefs.h. */
29452 _ACEOF
29453 cat confdefs.h >>conftest.$ac_ext
29454 cat >>conftest.$ac_ext <<_ACEOF
29455 /* end confdefs.h. */
29456
29457 #include <stdlib.h>
29458 #include <iconv.h>
29459 extern
29460 #ifdef __cplusplus
29461 "C"
29462 #endif
29463 #if defined(__STDC__) || defined(__cplusplus)
29464 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29465 #else
29466 size_t iconv();
29467 #endif
29468
29469 int
29470 main ()
29471 {
29472
29473 ;
29474 return 0;
29475 }
29476 _ACEOF
29477 rm -f conftest.$ac_objext
29478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29479 (eval $ac_compile) 2>conftest.er1
29480 ac_status=$?
29481 grep -v '^ *+' conftest.er1 >conftest.err
29482 rm -f conftest.er1
29483 cat conftest.err >&5
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); } &&
29486 { ac_try='test -z "$ac_cxx_werror_flag"
29487 || test ! -s conftest.err'
29488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29489 (eval $ac_try) 2>&5
29490 ac_status=$?
29491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492 (exit $ac_status); }; } &&
29493 { ac_try='test -s conftest.$ac_objext'
29494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29495 (eval $ac_try) 2>&5
29496 ac_status=$?
29497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498 (exit $ac_status); }; }; then
29499 wx_cv_func_iconv_const="no"
29500 else
29501 echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29503
29504 wx_cv_func_iconv_const="yes"
29505
29506 fi
29507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29508
29509 fi
29510 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29511 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29512
29513 iconv_const=
29514 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29515 iconv_const="const"
29516 fi
29517
29518
29519 cat >>confdefs.h <<_ACEOF
29520 #define ICONV_CONST $iconv_const
29521 _ACEOF
29522
29523 fi
29524 LIBICONV=
29525 if test "$am_cv_lib_iconv" = yes; then
29526 LIBICONV="-liconv"
29527 fi
29528
29529
29530 LIBS="$LIBICONV $LIBS"
29531 ac_ext=c
29532 ac_cpp='$CPP $CPPFLAGS'
29533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29536
29537
29538 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29539
29540 for ac_func in sigaction
29541 do
29542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29543 echo "$as_me:$LINENO: checking for $ac_func" >&5
29544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29545 if eval "test \"\${$as_ac_var+set}\" = set"; then
29546 echo $ECHO_N "(cached) $ECHO_C" >&6
29547 else
29548 cat >conftest.$ac_ext <<_ACEOF
29549 /* confdefs.h. */
29550 _ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h. */
29554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29556 #define $ac_func innocuous_$ac_func
29557
29558 /* System header to define __stub macros and hopefully few prototypes,
29559 which can conflict with char $ac_func (); below.
29560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29561 <limits.h> exists even on freestanding compilers. */
29562
29563 #ifdef __STDC__
29564 # include <limits.h>
29565 #else
29566 # include <assert.h>
29567 #endif
29568
29569 #undef $ac_func
29570
29571 /* Override any gcc2 internal prototype to avoid an error. */
29572 #ifdef __cplusplus
29573 extern "C"
29574 {
29575 #endif
29576 /* We use char because int might match the return type of a gcc2
29577 builtin and then its argument prototype would still apply. */
29578 char $ac_func ();
29579 /* The GNU C library defines this for functions which it implements
29580 to always fail with ENOSYS. Some functions are actually named
29581 something starting with __ and the normal name is an alias. */
29582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29583 choke me
29584 #else
29585 char (*f) () = $ac_func;
29586 #endif
29587 #ifdef __cplusplus
29588 }
29589 #endif
29590
29591 int
29592 main ()
29593 {
29594 return f != $ac_func;
29595 ;
29596 return 0;
29597 }
29598 _ACEOF
29599 rm -f conftest.$ac_objext conftest$ac_exeext
29600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29601 (eval $ac_link) 2>conftest.er1
29602 ac_status=$?
29603 grep -v '^ *+' conftest.er1 >conftest.err
29604 rm -f conftest.er1
29605 cat conftest.err >&5
29606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607 (exit $ac_status); } &&
29608 { ac_try='test -z "$ac_c_werror_flag"
29609 || test ! -s conftest.err'
29610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29611 (eval $ac_try) 2>&5
29612 ac_status=$?
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; } &&
29615 { ac_try='test -s conftest$ac_exeext'
29616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29617 (eval $ac_try) 2>&5
29618 ac_status=$?
29619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620 (exit $ac_status); }; }; then
29621 eval "$as_ac_var=yes"
29622 else
29623 echo "$as_me: failed program was:" >&5
29624 sed 's/^/| /' conftest.$ac_ext >&5
29625
29626 eval "$as_ac_var=no"
29627 fi
29628 rm -f conftest.err conftest.$ac_objext \
29629 conftest$ac_exeext conftest.$ac_ext
29630 fi
29631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29633 if test `eval echo '${'$as_ac_var'}'` = yes; then
29634 cat >>confdefs.h <<_ACEOF
29635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29636 _ACEOF
29637
29638 fi
29639 done
29640
29641
29642 if test "$ac_cv_func_sigaction" = "no"; then
29643 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29644 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29645 wxUSE_ON_FATAL_EXCEPTION=no
29646 fi
29647
29648 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29649
29650
29651 ac_ext=cc
29652 ac_cpp='$CXXCPP $CPPFLAGS'
29653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29656
29657
29658 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29659 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29660 if test "${wx_cv_type_sa_handler+set}" = set; then
29661 echo $ECHO_N "(cached) $ECHO_C" >&6
29662 else
29663
29664 cat >conftest.$ac_ext <<_ACEOF
29665 /* confdefs.h. */
29666 _ACEOF
29667 cat confdefs.h >>conftest.$ac_ext
29668 cat >>conftest.$ac_ext <<_ACEOF
29669 /* end confdefs.h. */
29670 #include <signal.h>
29671 int
29672 main ()
29673 {
29674
29675 extern void testSigHandler(int);
29676
29677 struct sigaction sa;
29678 sa.sa_handler = testSigHandler;
29679
29680 ;
29681 return 0;
29682 }
29683 _ACEOF
29684 rm -f conftest.$ac_objext
29685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29686 (eval $ac_compile) 2>conftest.er1
29687 ac_status=$?
29688 grep -v '^ *+' conftest.er1 >conftest.err
29689 rm -f conftest.er1
29690 cat conftest.err >&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); } &&
29693 { ac_try='test -z "$ac_cxx_werror_flag"
29694 || test ! -s conftest.err'
29695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29696 (eval $ac_try) 2>&5
29697 ac_status=$?
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); }; } &&
29700 { ac_try='test -s conftest.$ac_objext'
29701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29702 (eval $ac_try) 2>&5
29703 ac_status=$?
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); }; }; then
29706
29707 wx_cv_type_sa_handler=int
29708
29709 else
29710 echo "$as_me: failed program was:" >&5
29711 sed 's/^/| /' conftest.$ac_ext >&5
29712
29713
29714 wx_cv_type_sa_handler=void
29715
29716 fi
29717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29718
29719 fi
29720 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29721 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29722
29723 ac_ext=c
29724 ac_cpp='$CPP $CPPFLAGS'
29725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29728
29729
29730 cat >>confdefs.h <<_ACEOF
29731 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29732 _ACEOF
29733
29734 fi
29735 fi
29736
29737
29738
29739 for ac_func in mkstemp mktemp
29740 do
29741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29742 echo "$as_me:$LINENO: checking for $ac_func" >&5
29743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29744 if eval "test \"\${$as_ac_var+set}\" = set"; then
29745 echo $ECHO_N "(cached) $ECHO_C" >&6
29746 else
29747 cat >conftest.$ac_ext <<_ACEOF
29748 /* confdefs.h. */
29749 _ACEOF
29750 cat confdefs.h >>conftest.$ac_ext
29751 cat >>conftest.$ac_ext <<_ACEOF
29752 /* end confdefs.h. */
29753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29755 #define $ac_func innocuous_$ac_func
29756
29757 /* System header to define __stub macros and hopefully few prototypes,
29758 which can conflict with char $ac_func (); below.
29759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29760 <limits.h> exists even on freestanding compilers. */
29761
29762 #ifdef __STDC__
29763 # include <limits.h>
29764 #else
29765 # include <assert.h>
29766 #endif
29767
29768 #undef $ac_func
29769
29770 /* Override any gcc2 internal prototype to avoid an error. */
29771 #ifdef __cplusplus
29772 extern "C"
29773 {
29774 #endif
29775 /* We use char because int might match the return type of a gcc2
29776 builtin and then its argument prototype would still apply. */
29777 char $ac_func ();
29778 /* The GNU C library defines this for functions which it implements
29779 to always fail with ENOSYS. Some functions are actually named
29780 something starting with __ and the normal name is an alias. */
29781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29782 choke me
29783 #else
29784 char (*f) () = $ac_func;
29785 #endif
29786 #ifdef __cplusplus
29787 }
29788 #endif
29789
29790 int
29791 main ()
29792 {
29793 return f != $ac_func;
29794 ;
29795 return 0;
29796 }
29797 _ACEOF
29798 rm -f conftest.$ac_objext conftest$ac_exeext
29799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29800 (eval $ac_link) 2>conftest.er1
29801 ac_status=$?
29802 grep -v '^ *+' conftest.er1 >conftest.err
29803 rm -f conftest.er1
29804 cat conftest.err >&5
29805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29806 (exit $ac_status); } &&
29807 { ac_try='test -z "$ac_c_werror_flag"
29808 || test ! -s conftest.err'
29809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29810 (eval $ac_try) 2>&5
29811 ac_status=$?
29812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813 (exit $ac_status); }; } &&
29814 { ac_try='test -s conftest$ac_exeext'
29815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29816 (eval $ac_try) 2>&5
29817 ac_status=$?
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); }; }; then
29820 eval "$as_ac_var=yes"
29821 else
29822 echo "$as_me: failed program was:" >&5
29823 sed 's/^/| /' conftest.$ac_ext >&5
29824
29825 eval "$as_ac_var=no"
29826 fi
29827 rm -f conftest.err conftest.$ac_objext \
29828 conftest$ac_exeext conftest.$ac_ext
29829 fi
29830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29832 if test `eval echo '${'$as_ac_var'}'` = yes; then
29833 cat >>confdefs.h <<_ACEOF
29834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29835 _ACEOF
29836 break
29837 fi
29838 done
29839
29840
29841 echo "$as_me:$LINENO: checking for statfs" >&5
29842 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29843 if test "${wx_cv_func_statfs+set}" = set; then
29844 echo $ECHO_N "(cached) $ECHO_C" >&6
29845 else
29846 cat >conftest.$ac_ext <<_ACEOF
29847 /* confdefs.h. */
29848 _ACEOF
29849 cat confdefs.h >>conftest.$ac_ext
29850 cat >>conftest.$ac_ext <<_ACEOF
29851 /* end confdefs.h. */
29852
29853 #if defined(__BSD__)
29854 #include <sys/param.h>
29855 #include <sys/mount.h>
29856 #else
29857 #include <sys/vfs.h>
29858 #endif
29859
29860 int
29861 main ()
29862 {
29863
29864 long l;
29865 struct statfs fs;
29866 statfs("/", &fs);
29867 l = fs.f_bsize;
29868 l += fs.f_blocks;
29869 l += fs.f_bavail;
29870
29871 ;
29872 return 0;
29873 }
29874 _ACEOF
29875 rm -f conftest.$ac_objext
29876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29877 (eval $ac_compile) 2>conftest.er1
29878 ac_status=$?
29879 grep -v '^ *+' conftest.er1 >conftest.err
29880 rm -f conftest.er1
29881 cat conftest.err >&5
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); } &&
29884 { ac_try='test -z "$ac_c_werror_flag"
29885 || test ! -s conftest.err'
29886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29887 (eval $ac_try) 2>&5
29888 ac_status=$?
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; } &&
29891 { ac_try='test -s conftest.$ac_objext'
29892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29893 (eval $ac_try) 2>&5
29894 ac_status=$?
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); }; }; then
29897
29898 wx_cv_func_statfs=yes
29899
29900 else
29901 echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29903
29904
29905 wx_cv_func_statfs=no
29906
29907
29908 fi
29909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29910
29911 fi
29912 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29913 echo "${ECHO_T}$wx_cv_func_statfs" >&6
29914
29915 if test "$wx_cv_func_statfs" = "yes"; then
29916 wx_cv_type_statvfs_t="struct statfs"
29917 cat >>confdefs.h <<\_ACEOF
29918 #define HAVE_STATFS 1
29919 _ACEOF
29920
29921 else
29922 echo "$as_me:$LINENO: checking for statvfs" >&5
29923 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29924 if test "${wx_cv_func_statvfs+set}" = set; then
29925 echo $ECHO_N "(cached) $ECHO_C" >&6
29926 else
29927 cat >conftest.$ac_ext <<_ACEOF
29928 /* confdefs.h. */
29929 _ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h. */
29933
29934 #include <stddef.h>
29935 #include <sys/statvfs.h>
29936
29937 int
29938 main ()
29939 {
29940
29941 statvfs("/", NULL);
29942
29943 ;
29944 return 0;
29945 }
29946 _ACEOF
29947 rm -f conftest.$ac_objext
29948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29949 (eval $ac_compile) 2>conftest.er1
29950 ac_status=$?
29951 grep -v '^ *+' conftest.er1 >conftest.err
29952 rm -f conftest.er1
29953 cat conftest.err >&5
29954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955 (exit $ac_status); } &&
29956 { ac_try='test -z "$ac_c_werror_flag"
29957 || test ! -s conftest.err'
29958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29959 (eval $ac_try) 2>&5
29960 ac_status=$?
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); }; } &&
29963 { ac_try='test -s conftest.$ac_objext'
29964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29965 (eval $ac_try) 2>&5
29966 ac_status=$?
29967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968 (exit $ac_status); }; }; then
29969 wx_cv_func_statvfs=yes
29970 else
29971 echo "$as_me: failed program was:" >&5
29972 sed 's/^/| /' conftest.$ac_ext >&5
29973
29974 wx_cv_func_statvfs=no
29975
29976 fi
29977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29978
29979 fi
29980 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29981 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29982
29983 if test "$wx_cv_func_statvfs" = "yes"; then
29984
29985
29986 ac_ext=cc
29987 ac_cpp='$CXXCPP $CPPFLAGS'
29988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29991
29992
29993 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29994 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29995 if test "${wx_cv_type_statvfs_t+set}" = set; then
29996 echo $ECHO_N "(cached) $ECHO_C" >&6
29997 else
29998 cat >conftest.$ac_ext <<_ACEOF
29999 /* confdefs.h. */
30000 _ACEOF
30001 cat confdefs.h >>conftest.$ac_ext
30002 cat >>conftest.$ac_ext <<_ACEOF
30003 /* end confdefs.h. */
30004
30005 #include <sys/statvfs.h>
30006
30007 int
30008 main ()
30009 {
30010
30011 long l;
30012 statvfs_t fs;
30013 statvfs("/", &fs);
30014 l = fs.f_bsize;
30015 l += fs.f_blocks;
30016 l += fs.f_bavail;
30017
30018 ;
30019 return 0;
30020 }
30021 _ACEOF
30022 rm -f conftest.$ac_objext
30023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30024 (eval $ac_compile) 2>conftest.er1
30025 ac_status=$?
30026 grep -v '^ *+' conftest.er1 >conftest.err
30027 rm -f conftest.er1
30028 cat conftest.err >&5
30029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030 (exit $ac_status); } &&
30031 { ac_try='test -z "$ac_cxx_werror_flag"
30032 || test ! -s conftest.err'
30033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30034 (eval $ac_try) 2>&5
30035 ac_status=$?
30036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30037 (exit $ac_status); }; } &&
30038 { ac_try='test -s conftest.$ac_objext'
30039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30040 (eval $ac_try) 2>&5
30041 ac_status=$?
30042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043 (exit $ac_status); }; }; then
30044 wx_cv_type_statvfs_t=statvfs_t
30045 else
30046 echo "$as_me: failed program was:" >&5
30047 sed 's/^/| /' conftest.$ac_ext >&5
30048
30049
30050 cat >conftest.$ac_ext <<_ACEOF
30051 /* confdefs.h. */
30052 _ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h. */
30056
30057 #include <sys/statvfs.h>
30058
30059 int
30060 main ()
30061 {
30062
30063 long l;
30064 struct statvfs fs;
30065 statvfs("/", &fs);
30066 l = fs.f_bsize;
30067 l += fs.f_blocks;
30068 l += fs.f_bavail;
30069
30070 ;
30071 return 0;
30072 }
30073 _ACEOF
30074 rm -f conftest.$ac_objext
30075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30076 (eval $ac_compile) 2>conftest.er1
30077 ac_status=$?
30078 grep -v '^ *+' conftest.er1 >conftest.err
30079 rm -f conftest.er1
30080 cat conftest.err >&5
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); } &&
30083 { ac_try='test -z "$ac_cxx_werror_flag"
30084 || test ! -s conftest.err'
30085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30086 (eval $ac_try) 2>&5
30087 ac_status=$?
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); }; } &&
30090 { ac_try='test -s conftest.$ac_objext'
30091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30092 (eval $ac_try) 2>&5
30093 ac_status=$?
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); }; }; then
30096 wx_cv_type_statvfs_t="struct statvfs"
30097 else
30098 echo "$as_me: failed program was:" >&5
30099 sed 's/^/| /' conftest.$ac_ext >&5
30100
30101 wx_cv_type_statvfs_t="unknown"
30102
30103 fi
30104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30105
30106
30107 fi
30108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30109
30110 fi
30111 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30112 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30113
30114 ac_ext=c
30115 ac_cpp='$CPP $CPPFLAGS'
30116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30119
30120
30121 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30122 cat >>confdefs.h <<\_ACEOF
30123 #define HAVE_STATVFS 1
30124 _ACEOF
30125
30126 fi
30127 else
30128 wx_cv_type_statvfs_t="unknown"
30129 fi
30130 fi
30131
30132 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30133 cat >>confdefs.h <<_ACEOF
30134 #define WX_STATFS_T $wx_cv_type_statvfs_t
30135 _ACEOF
30136
30137 else
30138 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30139 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30140 fi
30141
30142 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30143
30144
30145 for ac_func in fcntl flock
30146 do
30147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30148 echo "$as_me:$LINENO: checking for $ac_func" >&5
30149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30150 if eval "test \"\${$as_ac_var+set}\" = set"; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30152 else
30153 cat >conftest.$ac_ext <<_ACEOF
30154 /* confdefs.h. */
30155 _ACEOF
30156 cat confdefs.h >>conftest.$ac_ext
30157 cat >>conftest.$ac_ext <<_ACEOF
30158 /* end confdefs.h. */
30159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30161 #define $ac_func innocuous_$ac_func
30162
30163 /* System header to define __stub macros and hopefully few prototypes,
30164 which can conflict with char $ac_func (); below.
30165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30166 <limits.h> exists even on freestanding compilers. */
30167
30168 #ifdef __STDC__
30169 # include <limits.h>
30170 #else
30171 # include <assert.h>
30172 #endif
30173
30174 #undef $ac_func
30175
30176 /* Override any gcc2 internal prototype to avoid an error. */
30177 #ifdef __cplusplus
30178 extern "C"
30179 {
30180 #endif
30181 /* We use char because int might match the return type of a gcc2
30182 builtin and then its argument prototype would still apply. */
30183 char $ac_func ();
30184 /* The GNU C library defines this for functions which it implements
30185 to always fail with ENOSYS. Some functions are actually named
30186 something starting with __ and the normal name is an alias. */
30187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30188 choke me
30189 #else
30190 char (*f) () = $ac_func;
30191 #endif
30192 #ifdef __cplusplus
30193 }
30194 #endif
30195
30196 int
30197 main ()
30198 {
30199 return f != $ac_func;
30200 ;
30201 return 0;
30202 }
30203 _ACEOF
30204 rm -f conftest.$ac_objext conftest$ac_exeext
30205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30206 (eval $ac_link) 2>conftest.er1
30207 ac_status=$?
30208 grep -v '^ *+' conftest.er1 >conftest.err
30209 rm -f conftest.er1
30210 cat conftest.err >&5
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); } &&
30213 { ac_try='test -z "$ac_c_werror_flag"
30214 || test ! -s conftest.err'
30215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30216 (eval $ac_try) 2>&5
30217 ac_status=$?
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); }; } &&
30220 { ac_try='test -s conftest$ac_exeext'
30221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222 (eval $ac_try) 2>&5
30223 ac_status=$?
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); }; }; then
30226 eval "$as_ac_var=yes"
30227 else
30228 echo "$as_me: failed program was:" >&5
30229 sed 's/^/| /' conftest.$ac_ext >&5
30230
30231 eval "$as_ac_var=no"
30232 fi
30233 rm -f conftest.err conftest.$ac_objext \
30234 conftest$ac_exeext conftest.$ac_ext
30235 fi
30236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30238 if test `eval echo '${'$as_ac_var'}'` = yes; then
30239 cat >>confdefs.h <<_ACEOF
30240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30241 _ACEOF
30242 break
30243 fi
30244 done
30245
30246
30247 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30248 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30249 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30250 wxUSE_SNGLINST_CHECKER=no
30251 fi
30252 fi
30253
30254
30255 for ac_func in timegm
30256 do
30257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30258 echo "$as_me:$LINENO: checking for $ac_func" >&5
30259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30260 if eval "test \"\${$as_ac_var+set}\" = set"; then
30261 echo $ECHO_N "(cached) $ECHO_C" >&6
30262 else
30263 cat >conftest.$ac_ext <<_ACEOF
30264 /* confdefs.h. */
30265 _ACEOF
30266 cat confdefs.h >>conftest.$ac_ext
30267 cat >>conftest.$ac_ext <<_ACEOF
30268 /* end confdefs.h. */
30269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30271 #define $ac_func innocuous_$ac_func
30272
30273 /* System header to define __stub macros and hopefully few prototypes,
30274 which can conflict with char $ac_func (); below.
30275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30276 <limits.h> exists even on freestanding compilers. */
30277
30278 #ifdef __STDC__
30279 # include <limits.h>
30280 #else
30281 # include <assert.h>
30282 #endif
30283
30284 #undef $ac_func
30285
30286 /* Override any gcc2 internal prototype to avoid an error. */
30287 #ifdef __cplusplus
30288 extern "C"
30289 {
30290 #endif
30291 /* We use char because int might match the return type of a gcc2
30292 builtin and then its argument prototype would still apply. */
30293 char $ac_func ();
30294 /* The GNU C library defines this for functions which it implements
30295 to always fail with ENOSYS. Some functions are actually named
30296 something starting with __ and the normal name is an alias. */
30297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30298 choke me
30299 #else
30300 char (*f) () = $ac_func;
30301 #endif
30302 #ifdef __cplusplus
30303 }
30304 #endif
30305
30306 int
30307 main ()
30308 {
30309 return f != $ac_func;
30310 ;
30311 return 0;
30312 }
30313 _ACEOF
30314 rm -f conftest.$ac_objext conftest$ac_exeext
30315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30316 (eval $ac_link) 2>conftest.er1
30317 ac_status=$?
30318 grep -v '^ *+' conftest.er1 >conftest.err
30319 rm -f conftest.er1
30320 cat conftest.err >&5
30321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); } &&
30323 { ac_try='test -z "$ac_c_werror_flag"
30324 || test ! -s conftest.err'
30325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30326 (eval $ac_try) 2>&5
30327 ac_status=$?
30328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); }; } &&
30330 { ac_try='test -s conftest$ac_exeext'
30331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30332 (eval $ac_try) 2>&5
30333 ac_status=$?
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); }; }; then
30336 eval "$as_ac_var=yes"
30337 else
30338 echo "$as_me: failed program was:" >&5
30339 sed 's/^/| /' conftest.$ac_ext >&5
30340
30341 eval "$as_ac_var=no"
30342 fi
30343 rm -f conftest.err conftest.$ac_objext \
30344 conftest$ac_exeext conftest.$ac_ext
30345 fi
30346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30348 if test `eval echo '${'$as_ac_var'}'` = yes; then
30349 cat >>confdefs.h <<_ACEOF
30350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30351 _ACEOF
30352
30353 fi
30354 done
30355
30356
30357
30358
30359 for ac_func in putenv setenv
30360 do
30361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30362 echo "$as_me:$LINENO: checking for $ac_func" >&5
30363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30364 if eval "test \"\${$as_ac_var+set}\" = set"; then
30365 echo $ECHO_N "(cached) $ECHO_C" >&6
30366 else
30367 cat >conftest.$ac_ext <<_ACEOF
30368 /* confdefs.h. */
30369 _ACEOF
30370 cat confdefs.h >>conftest.$ac_ext
30371 cat >>conftest.$ac_ext <<_ACEOF
30372 /* end confdefs.h. */
30373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30375 #define $ac_func innocuous_$ac_func
30376
30377 /* System header to define __stub macros and hopefully few prototypes,
30378 which can conflict with char $ac_func (); below.
30379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30380 <limits.h> exists even on freestanding compilers. */
30381
30382 #ifdef __STDC__
30383 # include <limits.h>
30384 #else
30385 # include <assert.h>
30386 #endif
30387
30388 #undef $ac_func
30389
30390 /* Override any gcc2 internal prototype to avoid an error. */
30391 #ifdef __cplusplus
30392 extern "C"
30393 {
30394 #endif
30395 /* We use char because int might match the return type of a gcc2
30396 builtin and then its argument prototype would still apply. */
30397 char $ac_func ();
30398 /* The GNU C library defines this for functions which it implements
30399 to always fail with ENOSYS. Some functions are actually named
30400 something starting with __ and the normal name is an alias. */
30401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30402 choke me
30403 #else
30404 char (*f) () = $ac_func;
30405 #endif
30406 #ifdef __cplusplus
30407 }
30408 #endif
30409
30410 int
30411 main ()
30412 {
30413 return f != $ac_func;
30414 ;
30415 return 0;
30416 }
30417 _ACEOF
30418 rm -f conftest.$ac_objext conftest$ac_exeext
30419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30420 (eval $ac_link) 2>conftest.er1
30421 ac_status=$?
30422 grep -v '^ *+' conftest.er1 >conftest.err
30423 rm -f conftest.er1
30424 cat conftest.err >&5
30425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426 (exit $ac_status); } &&
30427 { ac_try='test -z "$ac_c_werror_flag"
30428 || test ! -s conftest.err'
30429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30430 (eval $ac_try) 2>&5
30431 ac_status=$?
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); }; } &&
30434 { ac_try='test -s conftest$ac_exeext'
30435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436 (eval $ac_try) 2>&5
30437 ac_status=$?
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
30440 eval "$as_ac_var=yes"
30441 else
30442 echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.$ac_ext >&5
30444
30445 eval "$as_ac_var=no"
30446 fi
30447 rm -f conftest.err conftest.$ac_objext \
30448 conftest$ac_exeext conftest.$ac_ext
30449 fi
30450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30452 if test `eval echo '${'$as_ac_var'}'` = yes; then
30453 cat >>confdefs.h <<_ACEOF
30454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30455 _ACEOF
30456 break
30457 fi
30458 done
30459
30460
30461 HAVE_SOME_SLEEP_FUNC=0
30462 if test "$USE_BEOS" = 1; then
30463 cat >>confdefs.h <<\_ACEOF
30464 #define HAVE_SLEEP 1
30465 _ACEOF
30466
30467 HAVE_SOME_SLEEP_FUNC=1
30468 fi
30469
30470 if test "$USE_DARWIN" = 1; then
30471 cat >>confdefs.h <<\_ACEOF
30472 #define HAVE_USLEEP 1
30473 _ACEOF
30474
30475 HAVE_SOME_SLEEP_FUNC=1
30476 fi
30477
30478 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30479 POSIX4_LINK=
30480
30481 for ac_func in nanosleep
30482 do
30483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30484 echo "$as_me:$LINENO: checking for $ac_func" >&5
30485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30486 if eval "test \"\${$as_ac_var+set}\" = set"; then
30487 echo $ECHO_N "(cached) $ECHO_C" >&6
30488 else
30489 cat >conftest.$ac_ext <<_ACEOF
30490 /* confdefs.h. */
30491 _ACEOF
30492 cat confdefs.h >>conftest.$ac_ext
30493 cat >>conftest.$ac_ext <<_ACEOF
30494 /* end confdefs.h. */
30495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30497 #define $ac_func innocuous_$ac_func
30498
30499 /* System header to define __stub macros and hopefully few prototypes,
30500 which can conflict with char $ac_func (); below.
30501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30502 <limits.h> exists even on freestanding compilers. */
30503
30504 #ifdef __STDC__
30505 # include <limits.h>
30506 #else
30507 # include <assert.h>
30508 #endif
30509
30510 #undef $ac_func
30511
30512 /* Override any gcc2 internal prototype to avoid an error. */
30513 #ifdef __cplusplus
30514 extern "C"
30515 {
30516 #endif
30517 /* We use char because int might match the return type of a gcc2
30518 builtin and then its argument prototype would still apply. */
30519 char $ac_func ();
30520 /* The GNU C library defines this for functions which it implements
30521 to always fail with ENOSYS. Some functions are actually named
30522 something starting with __ and the normal name is an alias. */
30523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30524 choke me
30525 #else
30526 char (*f) () = $ac_func;
30527 #endif
30528 #ifdef __cplusplus
30529 }
30530 #endif
30531
30532 int
30533 main ()
30534 {
30535 return f != $ac_func;
30536 ;
30537 return 0;
30538 }
30539 _ACEOF
30540 rm -f conftest.$ac_objext conftest$ac_exeext
30541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30542 (eval $ac_link) 2>conftest.er1
30543 ac_status=$?
30544 grep -v '^ *+' conftest.er1 >conftest.err
30545 rm -f conftest.er1
30546 cat conftest.err >&5
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); } &&
30549 { ac_try='test -z "$ac_c_werror_flag"
30550 || test ! -s conftest.err'
30551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30552 (eval $ac_try) 2>&5
30553 ac_status=$?
30554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555 (exit $ac_status); }; } &&
30556 { ac_try='test -s conftest$ac_exeext'
30557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30558 (eval $ac_try) 2>&5
30559 ac_status=$?
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); }; }; then
30562 eval "$as_ac_var=yes"
30563 else
30564 echo "$as_me: failed program was:" >&5
30565 sed 's/^/| /' conftest.$ac_ext >&5
30566
30567 eval "$as_ac_var=no"
30568 fi
30569 rm -f conftest.err conftest.$ac_objext \
30570 conftest$ac_exeext conftest.$ac_ext
30571 fi
30572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30574 if test `eval echo '${'$as_ac_var'}'` = yes; then
30575 cat >>confdefs.h <<_ACEOF
30576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30577 _ACEOF
30578 cat >>confdefs.h <<\_ACEOF
30579 #define HAVE_NANOSLEEP 1
30580 _ACEOF
30581
30582 else
30583
30584 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30585 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30586 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30587 echo $ECHO_N "(cached) $ECHO_C" >&6
30588 else
30589 ac_check_lib_save_LIBS=$LIBS
30590 LIBS="-lposix4 $LIBS"
30591 cat >conftest.$ac_ext <<_ACEOF
30592 /* confdefs.h. */
30593 _ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h. */
30597
30598 /* Override any gcc2 internal prototype to avoid an error. */
30599 #ifdef __cplusplus
30600 extern "C"
30601 #endif
30602 /* We use char because int might match the return type of a gcc2
30603 builtin and then its argument prototype would still apply. */
30604 char nanosleep ();
30605 int
30606 main ()
30607 {
30608 nanosleep ();
30609 ;
30610 return 0;
30611 }
30612 _ACEOF
30613 rm -f conftest.$ac_objext conftest$ac_exeext
30614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30615 (eval $ac_link) 2>conftest.er1
30616 ac_status=$?
30617 grep -v '^ *+' conftest.er1 >conftest.err
30618 rm -f conftest.er1
30619 cat conftest.err >&5
30620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621 (exit $ac_status); } &&
30622 { ac_try='test -z "$ac_c_werror_flag"
30623 || test ! -s conftest.err'
30624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30625 (eval $ac_try) 2>&5
30626 ac_status=$?
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); }; } &&
30629 { ac_try='test -s conftest$ac_exeext'
30630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30631 (eval $ac_try) 2>&5
30632 ac_status=$?
30633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634 (exit $ac_status); }; }; then
30635 ac_cv_lib_posix4_nanosleep=yes
30636 else
30637 echo "$as_me: failed program was:" >&5
30638 sed 's/^/| /' conftest.$ac_ext >&5
30639
30640 ac_cv_lib_posix4_nanosleep=no
30641 fi
30642 rm -f conftest.err conftest.$ac_objext \
30643 conftest$ac_exeext conftest.$ac_ext
30644 LIBS=$ac_check_lib_save_LIBS
30645 fi
30646 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30647 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30648 if test $ac_cv_lib_posix4_nanosleep = yes; then
30649
30650 cat >>confdefs.h <<\_ACEOF
30651 #define HAVE_NANOSLEEP 1
30652 _ACEOF
30653
30654 POSIX4_LINK=" -lposix4"
30655
30656 else
30657
30658
30659 for ac_func in usleep
30660 do
30661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30662 echo "$as_me:$LINENO: checking for $ac_func" >&5
30663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30664 if eval "test \"\${$as_ac_var+set}\" = set"; then
30665 echo $ECHO_N "(cached) $ECHO_C" >&6
30666 else
30667 cat >conftest.$ac_ext <<_ACEOF
30668 /* confdefs.h. */
30669 _ACEOF
30670 cat confdefs.h >>conftest.$ac_ext
30671 cat >>conftest.$ac_ext <<_ACEOF
30672 /* end confdefs.h. */
30673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30675 #define $ac_func innocuous_$ac_func
30676
30677 /* System header to define __stub macros and hopefully few prototypes,
30678 which can conflict with char $ac_func (); below.
30679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30680 <limits.h> exists even on freestanding compilers. */
30681
30682 #ifdef __STDC__
30683 # include <limits.h>
30684 #else
30685 # include <assert.h>
30686 #endif
30687
30688 #undef $ac_func
30689
30690 /* Override any gcc2 internal prototype to avoid an error. */
30691 #ifdef __cplusplus
30692 extern "C"
30693 {
30694 #endif
30695 /* We use char because int might match the return type of a gcc2
30696 builtin and then its argument prototype would still apply. */
30697 char $ac_func ();
30698 /* The GNU C library defines this for functions which it implements
30699 to always fail with ENOSYS. Some functions are actually named
30700 something starting with __ and the normal name is an alias. */
30701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30702 choke me
30703 #else
30704 char (*f) () = $ac_func;
30705 #endif
30706 #ifdef __cplusplus
30707 }
30708 #endif
30709
30710 int
30711 main ()
30712 {
30713 return f != $ac_func;
30714 ;
30715 return 0;
30716 }
30717 _ACEOF
30718 rm -f conftest.$ac_objext conftest$ac_exeext
30719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30720 (eval $ac_link) 2>conftest.er1
30721 ac_status=$?
30722 grep -v '^ *+' conftest.er1 >conftest.err
30723 rm -f conftest.er1
30724 cat conftest.err >&5
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); } &&
30727 { ac_try='test -z "$ac_c_werror_flag"
30728 || test ! -s conftest.err'
30729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30730 (eval $ac_try) 2>&5
30731 ac_status=$?
30732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30733 (exit $ac_status); }; } &&
30734 { ac_try='test -s conftest$ac_exeext'
30735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30736 (eval $ac_try) 2>&5
30737 ac_status=$?
30738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30739 (exit $ac_status); }; }; then
30740 eval "$as_ac_var=yes"
30741 else
30742 echo "$as_me: failed program was:" >&5
30743 sed 's/^/| /' conftest.$ac_ext >&5
30744
30745 eval "$as_ac_var=no"
30746 fi
30747 rm -f conftest.err conftest.$ac_objext \
30748 conftest$ac_exeext conftest.$ac_ext
30749 fi
30750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30752 if test `eval echo '${'$as_ac_var'}'` = yes; then
30753 cat >>confdefs.h <<_ACEOF
30754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30755 _ACEOF
30756 cat >>confdefs.h <<\_ACEOF
30757 #define HAVE_USLEEP 1
30758 _ACEOF
30759
30760 else
30761 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30762 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30763
30764 fi
30765 done
30766
30767
30768
30769 fi
30770
30771
30772
30773 fi
30774 done
30775
30776 fi
30777
30778
30779
30780 for ac_func in uname gethostname
30781 do
30782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30783 echo "$as_me:$LINENO: checking for $ac_func" >&5
30784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30785 if eval "test \"\${$as_ac_var+set}\" = set"; then
30786 echo $ECHO_N "(cached) $ECHO_C" >&6
30787 else
30788 cat >conftest.$ac_ext <<_ACEOF
30789 /* confdefs.h. */
30790 _ACEOF
30791 cat confdefs.h >>conftest.$ac_ext
30792 cat >>conftest.$ac_ext <<_ACEOF
30793 /* end confdefs.h. */
30794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30796 #define $ac_func innocuous_$ac_func
30797
30798 /* System header to define __stub macros and hopefully few prototypes,
30799 which can conflict with char $ac_func (); below.
30800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30801 <limits.h> exists even on freestanding compilers. */
30802
30803 #ifdef __STDC__
30804 # include <limits.h>
30805 #else
30806 # include <assert.h>
30807 #endif
30808
30809 #undef $ac_func
30810
30811 /* Override any gcc2 internal prototype to avoid an error. */
30812 #ifdef __cplusplus
30813 extern "C"
30814 {
30815 #endif
30816 /* We use char because int might match the return type of a gcc2
30817 builtin and then its argument prototype would still apply. */
30818 char $ac_func ();
30819 /* The GNU C library defines this for functions which it implements
30820 to always fail with ENOSYS. Some functions are actually named
30821 something starting with __ and the normal name is an alias. */
30822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30823 choke me
30824 #else
30825 char (*f) () = $ac_func;
30826 #endif
30827 #ifdef __cplusplus
30828 }
30829 #endif
30830
30831 int
30832 main ()
30833 {
30834 return f != $ac_func;
30835 ;
30836 return 0;
30837 }
30838 _ACEOF
30839 rm -f conftest.$ac_objext conftest$ac_exeext
30840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30841 (eval $ac_link) 2>conftest.er1
30842 ac_status=$?
30843 grep -v '^ *+' conftest.er1 >conftest.err
30844 rm -f conftest.er1
30845 cat conftest.err >&5
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); } &&
30848 { ac_try='test -z "$ac_c_werror_flag"
30849 || test ! -s conftest.err'
30850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30851 (eval $ac_try) 2>&5
30852 ac_status=$?
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); }; } &&
30855 { ac_try='test -s conftest$ac_exeext'
30856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30857 (eval $ac_try) 2>&5
30858 ac_status=$?
30859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860 (exit $ac_status); }; }; then
30861 eval "$as_ac_var=yes"
30862 else
30863 echo "$as_me: failed program was:" >&5
30864 sed 's/^/| /' conftest.$ac_ext >&5
30865
30866 eval "$as_ac_var=no"
30867 fi
30868 rm -f conftest.err conftest.$ac_objext \
30869 conftest$ac_exeext conftest.$ac_ext
30870 fi
30871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30873 if test `eval echo '${'$as_ac_var'}'` = yes; then
30874 cat >>confdefs.h <<_ACEOF
30875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30876 _ACEOF
30877 break
30878 fi
30879 done
30880
30881
30882
30883
30884 ac_ext=cc
30885 ac_cpp='$CXXCPP $CPPFLAGS'
30886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30889
30890
30891
30892 for ac_func in strtok_r
30893 do
30894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30895 echo "$as_me:$LINENO: checking for $ac_func" >&5
30896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30897 if eval "test \"\${$as_ac_var+set}\" = set"; then
30898 echo $ECHO_N "(cached) $ECHO_C" >&6
30899 else
30900 cat >conftest.$ac_ext <<_ACEOF
30901 /* confdefs.h. */
30902 _ACEOF
30903 cat confdefs.h >>conftest.$ac_ext
30904 cat >>conftest.$ac_ext <<_ACEOF
30905 /* end confdefs.h. */
30906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30908 #define $ac_func innocuous_$ac_func
30909
30910 /* System header to define __stub macros and hopefully few prototypes,
30911 which can conflict with char $ac_func (); below.
30912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30913 <limits.h> exists even on freestanding compilers. */
30914
30915 #ifdef __STDC__
30916 # include <limits.h>
30917 #else
30918 # include <assert.h>
30919 #endif
30920
30921 #undef $ac_func
30922
30923 /* Override any gcc2 internal prototype to avoid an error. */
30924 #ifdef __cplusplus
30925 extern "C"
30926 {
30927 #endif
30928 /* We use char because int might match the return type of a gcc2
30929 builtin and then its argument prototype would still apply. */
30930 char $ac_func ();
30931 /* The GNU C library defines this for functions which it implements
30932 to always fail with ENOSYS. Some functions are actually named
30933 something starting with __ and the normal name is an alias. */
30934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30935 choke me
30936 #else
30937 char (*f) () = $ac_func;
30938 #endif
30939 #ifdef __cplusplus
30940 }
30941 #endif
30942
30943 int
30944 main ()
30945 {
30946 return f != $ac_func;
30947 ;
30948 return 0;
30949 }
30950 _ACEOF
30951 rm -f conftest.$ac_objext conftest$ac_exeext
30952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30953 (eval $ac_link) 2>conftest.er1
30954 ac_status=$?
30955 grep -v '^ *+' conftest.er1 >conftest.err
30956 rm -f conftest.er1
30957 cat conftest.err >&5
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); } &&
30960 { ac_try='test -z "$ac_cxx_werror_flag"
30961 || test ! -s conftest.err'
30962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30963 (eval $ac_try) 2>&5
30964 ac_status=$?
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); }; } &&
30967 { ac_try='test -s conftest$ac_exeext'
30968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30969 (eval $ac_try) 2>&5
30970 ac_status=$?
30971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972 (exit $ac_status); }; }; then
30973 eval "$as_ac_var=yes"
30974 else
30975 echo "$as_me: failed program was:" >&5
30976 sed 's/^/| /' conftest.$ac_ext >&5
30977
30978 eval "$as_ac_var=no"
30979 fi
30980 rm -f conftest.err conftest.$ac_objext \
30981 conftest$ac_exeext conftest.$ac_ext
30982 fi
30983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30985 if test `eval echo '${'$as_ac_var'}'` = yes; then
30986 cat >>confdefs.h <<_ACEOF
30987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30988 _ACEOF
30989
30990 fi
30991 done
30992
30993
30994 ac_ext=c
30995 ac_cpp='$CPP $CPPFLAGS'
30996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30999
31000
31001 INET_LINK=
31002
31003 for ac_func in inet_addr
31004 do
31005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31006 echo "$as_me:$LINENO: checking for $ac_func" >&5
31007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31008 if eval "test \"\${$as_ac_var+set}\" = set"; then
31009 echo $ECHO_N "(cached) $ECHO_C" >&6
31010 else
31011 cat >conftest.$ac_ext <<_ACEOF
31012 /* confdefs.h. */
31013 _ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31019 #define $ac_func innocuous_$ac_func
31020
31021 /* System header to define __stub macros and hopefully few prototypes,
31022 which can conflict with char $ac_func (); below.
31023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31024 <limits.h> exists even on freestanding compilers. */
31025
31026 #ifdef __STDC__
31027 # include <limits.h>
31028 #else
31029 # include <assert.h>
31030 #endif
31031
31032 #undef $ac_func
31033
31034 /* Override any gcc2 internal prototype to avoid an error. */
31035 #ifdef __cplusplus
31036 extern "C"
31037 {
31038 #endif
31039 /* We use char because int might match the return type of a gcc2
31040 builtin and then its argument prototype would still apply. */
31041 char $ac_func ();
31042 /* The GNU C library defines this for functions which it implements
31043 to always fail with ENOSYS. Some functions are actually named
31044 something starting with __ and the normal name is an alias. */
31045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31046 choke me
31047 #else
31048 char (*f) () = $ac_func;
31049 #endif
31050 #ifdef __cplusplus
31051 }
31052 #endif
31053
31054 int
31055 main ()
31056 {
31057 return f != $ac_func;
31058 ;
31059 return 0;
31060 }
31061 _ACEOF
31062 rm -f conftest.$ac_objext conftest$ac_exeext
31063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31064 (eval $ac_link) 2>conftest.er1
31065 ac_status=$?
31066 grep -v '^ *+' conftest.er1 >conftest.err
31067 rm -f conftest.er1
31068 cat conftest.err >&5
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); } &&
31071 { ac_try='test -z "$ac_c_werror_flag"
31072 || test ! -s conftest.err'
31073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31074 (eval $ac_try) 2>&5
31075 ac_status=$?
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); }; } &&
31078 { ac_try='test -s conftest$ac_exeext'
31079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31080 (eval $ac_try) 2>&5
31081 ac_status=$?
31082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083 (exit $ac_status); }; }; then
31084 eval "$as_ac_var=yes"
31085 else
31086 echo "$as_me: failed program was:" >&5
31087 sed 's/^/| /' conftest.$ac_ext >&5
31088
31089 eval "$as_ac_var=no"
31090 fi
31091 rm -f conftest.err conftest.$ac_objext \
31092 conftest$ac_exeext conftest.$ac_ext
31093 fi
31094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31095 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31096 if test `eval echo '${'$as_ac_var'}'` = yes; then
31097 cat >>confdefs.h <<_ACEOF
31098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31099 _ACEOF
31100 cat >>confdefs.h <<\_ACEOF
31101 #define HAVE_INET_ADDR 1
31102 _ACEOF
31103
31104 else
31105
31106 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31107 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31108 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31109 echo $ECHO_N "(cached) $ECHO_C" >&6
31110 else
31111 ac_check_lib_save_LIBS=$LIBS
31112 LIBS="-lnsl $LIBS"
31113 cat >conftest.$ac_ext <<_ACEOF
31114 /* confdefs.h. */
31115 _ACEOF
31116 cat confdefs.h >>conftest.$ac_ext
31117 cat >>conftest.$ac_ext <<_ACEOF
31118 /* end confdefs.h. */
31119
31120 /* Override any gcc2 internal prototype to avoid an error. */
31121 #ifdef __cplusplus
31122 extern "C"
31123 #endif
31124 /* We use char because int might match the return type of a gcc2
31125 builtin and then its argument prototype would still apply. */
31126 char inet_addr ();
31127 int
31128 main ()
31129 {
31130 inet_addr ();
31131 ;
31132 return 0;
31133 }
31134 _ACEOF
31135 rm -f conftest.$ac_objext conftest$ac_exeext
31136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31137 (eval $ac_link) 2>conftest.er1
31138 ac_status=$?
31139 grep -v '^ *+' conftest.er1 >conftest.err
31140 rm -f conftest.er1
31141 cat conftest.err >&5
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); } &&
31144 { ac_try='test -z "$ac_c_werror_flag"
31145 || test ! -s conftest.err'
31146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31147 (eval $ac_try) 2>&5
31148 ac_status=$?
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); }; } &&
31151 { ac_try='test -s conftest$ac_exeext'
31152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31153 (eval $ac_try) 2>&5
31154 ac_status=$?
31155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156 (exit $ac_status); }; }; then
31157 ac_cv_lib_nsl_inet_addr=yes
31158 else
31159 echo "$as_me: failed program was:" >&5
31160 sed 's/^/| /' conftest.$ac_ext >&5
31161
31162 ac_cv_lib_nsl_inet_addr=no
31163 fi
31164 rm -f conftest.err conftest.$ac_objext \
31165 conftest$ac_exeext conftest.$ac_ext
31166 LIBS=$ac_check_lib_save_LIBS
31167 fi
31168 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31169 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31170 if test $ac_cv_lib_nsl_inet_addr = yes; then
31171 INET_LINK="nsl"
31172 else
31173
31174 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31175 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31176 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31177 echo $ECHO_N "(cached) $ECHO_C" >&6
31178 else
31179 ac_check_lib_save_LIBS=$LIBS
31180 LIBS="-lresolv $LIBS"
31181 cat >conftest.$ac_ext <<_ACEOF
31182 /* confdefs.h. */
31183 _ACEOF
31184 cat confdefs.h >>conftest.$ac_ext
31185 cat >>conftest.$ac_ext <<_ACEOF
31186 /* end confdefs.h. */
31187
31188 /* Override any gcc2 internal prototype to avoid an error. */
31189 #ifdef __cplusplus
31190 extern "C"
31191 #endif
31192 /* We use char because int might match the return type of a gcc2
31193 builtin and then its argument prototype would still apply. */
31194 char inet_addr ();
31195 int
31196 main ()
31197 {
31198 inet_addr ();
31199 ;
31200 return 0;
31201 }
31202 _ACEOF
31203 rm -f conftest.$ac_objext conftest$ac_exeext
31204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31205 (eval $ac_link) 2>conftest.er1
31206 ac_status=$?
31207 grep -v '^ *+' conftest.er1 >conftest.err
31208 rm -f conftest.er1
31209 cat conftest.err >&5
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); } &&
31212 { ac_try='test -z "$ac_c_werror_flag"
31213 || test ! -s conftest.err'
31214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31215 (eval $ac_try) 2>&5
31216 ac_status=$?
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218 (exit $ac_status); }; } &&
31219 { ac_try='test -s conftest$ac_exeext'
31220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31221 (eval $ac_try) 2>&5
31222 ac_status=$?
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); }; }; then
31225 ac_cv_lib_resolv_inet_addr=yes
31226 else
31227 echo "$as_me: failed program was:" >&5
31228 sed 's/^/| /' conftest.$ac_ext >&5
31229
31230 ac_cv_lib_resolv_inet_addr=no
31231 fi
31232 rm -f conftest.err conftest.$ac_objext \
31233 conftest$ac_exeext conftest.$ac_ext
31234 LIBS=$ac_check_lib_save_LIBS
31235 fi
31236 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31237 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31238 if test $ac_cv_lib_resolv_inet_addr = yes; then
31239 INET_LINK="resolv"
31240 else
31241
31242 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31243 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31244 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31245 echo $ECHO_N "(cached) $ECHO_C" >&6
31246 else
31247 ac_check_lib_save_LIBS=$LIBS
31248 LIBS="-lsocket $LIBS"
31249 cat >conftest.$ac_ext <<_ACEOF
31250 /* confdefs.h. */
31251 _ACEOF
31252 cat confdefs.h >>conftest.$ac_ext
31253 cat >>conftest.$ac_ext <<_ACEOF
31254 /* end confdefs.h. */
31255
31256 /* Override any gcc2 internal prototype to avoid an error. */
31257 #ifdef __cplusplus
31258 extern "C"
31259 #endif
31260 /* We use char because int might match the return type of a gcc2
31261 builtin and then its argument prototype would still apply. */
31262 char inet_addr ();
31263 int
31264 main ()
31265 {
31266 inet_addr ();
31267 ;
31268 return 0;
31269 }
31270 _ACEOF
31271 rm -f conftest.$ac_objext conftest$ac_exeext
31272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31273 (eval $ac_link) 2>conftest.er1
31274 ac_status=$?
31275 grep -v '^ *+' conftest.er1 >conftest.err
31276 rm -f conftest.er1
31277 cat conftest.err >&5
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); } &&
31280 { ac_try='test -z "$ac_c_werror_flag"
31281 || test ! -s conftest.err'
31282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31283 (eval $ac_try) 2>&5
31284 ac_status=$?
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); }; } &&
31287 { ac_try='test -s conftest$ac_exeext'
31288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31289 (eval $ac_try) 2>&5
31290 ac_status=$?
31291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31292 (exit $ac_status); }; }; then
31293 ac_cv_lib_socket_inet_addr=yes
31294 else
31295 echo "$as_me: failed program was:" >&5
31296 sed 's/^/| /' conftest.$ac_ext >&5
31297
31298 ac_cv_lib_socket_inet_addr=no
31299 fi
31300 rm -f conftest.err conftest.$ac_objext \
31301 conftest$ac_exeext conftest.$ac_ext
31302 LIBS=$ac_check_lib_save_LIBS
31303 fi
31304 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31305 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31306 if test $ac_cv_lib_socket_inet_addr = yes; then
31307 INET_LINK="socket"
31308
31309 fi
31310
31311
31312
31313 fi
31314
31315
31316
31317 fi
31318
31319
31320
31321 fi
31322 done
31323
31324
31325
31326 for ac_func in inet_aton
31327 do
31328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31329 echo "$as_me:$LINENO: checking for $ac_func" >&5
31330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31331 if eval "test \"\${$as_ac_var+set}\" = set"; then
31332 echo $ECHO_N "(cached) $ECHO_C" >&6
31333 else
31334 cat >conftest.$ac_ext <<_ACEOF
31335 /* confdefs.h. */
31336 _ACEOF
31337 cat confdefs.h >>conftest.$ac_ext
31338 cat >>conftest.$ac_ext <<_ACEOF
31339 /* end confdefs.h. */
31340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31342 #define $ac_func innocuous_$ac_func
31343
31344 /* System header to define __stub macros and hopefully few prototypes,
31345 which can conflict with char $ac_func (); below.
31346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31347 <limits.h> exists even on freestanding compilers. */
31348
31349 #ifdef __STDC__
31350 # include <limits.h>
31351 #else
31352 # include <assert.h>
31353 #endif
31354
31355 #undef $ac_func
31356
31357 /* Override any gcc2 internal prototype to avoid an error. */
31358 #ifdef __cplusplus
31359 extern "C"
31360 {
31361 #endif
31362 /* We use char because int might match the return type of a gcc2
31363 builtin and then its argument prototype would still apply. */
31364 char $ac_func ();
31365 /* The GNU C library defines this for functions which it implements
31366 to always fail with ENOSYS. Some functions are actually named
31367 something starting with __ and the normal name is an alias. */
31368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31369 choke me
31370 #else
31371 char (*f) () = $ac_func;
31372 #endif
31373 #ifdef __cplusplus
31374 }
31375 #endif
31376
31377 int
31378 main ()
31379 {
31380 return f != $ac_func;
31381 ;
31382 return 0;
31383 }
31384 _ACEOF
31385 rm -f conftest.$ac_objext conftest$ac_exeext
31386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31387 (eval $ac_link) 2>conftest.er1
31388 ac_status=$?
31389 grep -v '^ *+' conftest.er1 >conftest.err
31390 rm -f conftest.er1
31391 cat conftest.err >&5
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); } &&
31394 { ac_try='test -z "$ac_c_werror_flag"
31395 || test ! -s conftest.err'
31396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31397 (eval $ac_try) 2>&5
31398 ac_status=$?
31399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400 (exit $ac_status); }; } &&
31401 { ac_try='test -s conftest$ac_exeext'
31402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31403 (eval $ac_try) 2>&5
31404 ac_status=$?
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); }; }; then
31407 eval "$as_ac_var=yes"
31408 else
31409 echo "$as_me: failed program was:" >&5
31410 sed 's/^/| /' conftest.$ac_ext >&5
31411
31412 eval "$as_ac_var=no"
31413 fi
31414 rm -f conftest.err conftest.$ac_objext \
31415 conftest$ac_exeext conftest.$ac_ext
31416 fi
31417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31419 if test `eval echo '${'$as_ac_var'}'` = yes; then
31420 cat >>confdefs.h <<_ACEOF
31421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31422 _ACEOF
31423 cat >>confdefs.h <<\_ACEOF
31424 #define HAVE_INET_ATON 1
31425 _ACEOF
31426
31427 else
31428
31429 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31430 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31431 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31432 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31433 echo $ECHO_N "(cached) $ECHO_C" >&6
31434 else
31435 ac_check_lib_save_LIBS=$LIBS
31436 LIBS="-l$INET_LINK $LIBS"
31437 cat >conftest.$ac_ext <<_ACEOF
31438 /* confdefs.h. */
31439 _ACEOF
31440 cat confdefs.h >>conftest.$ac_ext
31441 cat >>conftest.$ac_ext <<_ACEOF
31442 /* end confdefs.h. */
31443
31444 /* Override any gcc2 internal prototype to avoid an error. */
31445 #ifdef __cplusplus
31446 extern "C"
31447 #endif
31448 /* We use char because int might match the return type of a gcc2
31449 builtin and then its argument prototype would still apply. */
31450 char inet_aton ();
31451 int
31452 main ()
31453 {
31454 inet_aton ();
31455 ;
31456 return 0;
31457 }
31458 _ACEOF
31459 rm -f conftest.$ac_objext conftest$ac_exeext
31460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31461 (eval $ac_link) 2>conftest.er1
31462 ac_status=$?
31463 grep -v '^ *+' conftest.er1 >conftest.err
31464 rm -f conftest.er1
31465 cat conftest.err >&5
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); } &&
31468 { ac_try='test -z "$ac_c_werror_flag"
31469 || test ! -s conftest.err'
31470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31471 (eval $ac_try) 2>&5
31472 ac_status=$?
31473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474 (exit $ac_status); }; } &&
31475 { ac_try='test -s conftest$ac_exeext'
31476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31477 (eval $ac_try) 2>&5
31478 ac_status=$?
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); }; }; then
31481 eval "$as_ac_Lib=yes"
31482 else
31483 echo "$as_me: failed program was:" >&5
31484 sed 's/^/| /' conftest.$ac_ext >&5
31485
31486 eval "$as_ac_Lib=no"
31487 fi
31488 rm -f conftest.err conftest.$ac_objext \
31489 conftest$ac_exeext conftest.$ac_ext
31490 LIBS=$ac_check_lib_save_LIBS
31491 fi
31492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31493 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31494 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31495 cat >>confdefs.h <<\_ACEOF
31496 #define HAVE_INET_ATON 1
31497 _ACEOF
31498
31499 fi
31500
31501
31502 fi
31503 done
31504
31505
31506 if test "x$INET_LINK" != "x"; then
31507 cat >>confdefs.h <<\_ACEOF
31508 #define HAVE_INET_ADDR 1
31509 _ACEOF
31510
31511 INET_LINK=" -l$INET_LINK"
31512 fi
31513
31514 fi
31515
31516
31517
31518 EXTRALIBS_ESD=
31519 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31520 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31521 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31522 echo $ECHO_N "(cached) $ECHO_C" >&6
31523 else
31524 ac_check_lib_save_LIBS=$LIBS
31525 LIBS="-lesd $LIBS"
31526 cat >conftest.$ac_ext <<_ACEOF
31527 /* confdefs.h. */
31528 _ACEOF
31529 cat confdefs.h >>conftest.$ac_ext
31530 cat >>conftest.$ac_ext <<_ACEOF
31531 /* end confdefs.h. */
31532
31533 /* Override any gcc2 internal prototype to avoid an error. */
31534 #ifdef __cplusplus
31535 extern "C"
31536 #endif
31537 /* We use char because int might match the return type of a gcc2
31538 builtin and then its argument prototype would still apply. */
31539 char esd_close ();
31540 int
31541 main ()
31542 {
31543 esd_close ();
31544 ;
31545 return 0;
31546 }
31547 _ACEOF
31548 rm -f conftest.$ac_objext conftest$ac_exeext
31549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31550 (eval $ac_link) 2>conftest.er1
31551 ac_status=$?
31552 grep -v '^ *+' conftest.er1 >conftest.err
31553 rm -f conftest.er1
31554 cat conftest.err >&5
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); } &&
31557 { ac_try='test -z "$ac_c_werror_flag"
31558 || test ! -s conftest.err'
31559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31560 (eval $ac_try) 2>&5
31561 ac_status=$?
31562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); }; } &&
31564 { ac_try='test -s conftest$ac_exeext'
31565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31566 (eval $ac_try) 2>&5
31567 ac_status=$?
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); }; }; then
31570 ac_cv_lib_esd_esd_close=yes
31571 else
31572 echo "$as_me: failed program was:" >&5
31573 sed 's/^/| /' conftest.$ac_ext >&5
31574
31575 ac_cv_lib_esd_esd_close=no
31576 fi
31577 rm -f conftest.err conftest.$ac_objext \
31578 conftest$ac_exeext conftest.$ac_ext
31579 LIBS=$ac_check_lib_save_LIBS
31580 fi
31581 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31582 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31583 if test $ac_cv_lib_esd_esd_close = yes; then
31584
31585
31586 for ac_header in esd.h
31587 do
31588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31590 echo "$as_me:$LINENO: checking for $ac_header" >&5
31591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31593 echo $ECHO_N "(cached) $ECHO_C" >&6
31594 fi
31595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31597 else
31598 # Is the header compilable?
31599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31601 cat >conftest.$ac_ext <<_ACEOF
31602 /* confdefs.h. */
31603 _ACEOF
31604 cat confdefs.h >>conftest.$ac_ext
31605 cat >>conftest.$ac_ext <<_ACEOF
31606 /* end confdefs.h. */
31607 $ac_includes_default
31608 #include <$ac_header>
31609 _ACEOF
31610 rm -f conftest.$ac_objext
31611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31612 (eval $ac_compile) 2>conftest.er1
31613 ac_status=$?
31614 grep -v '^ *+' conftest.er1 >conftest.err
31615 rm -f conftest.er1
31616 cat conftest.err >&5
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); } &&
31619 { ac_try='test -z "$ac_c_werror_flag"
31620 || test ! -s conftest.err'
31621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31622 (eval $ac_try) 2>&5
31623 ac_status=$?
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); }; } &&
31626 { ac_try='test -s conftest.$ac_objext'
31627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31628 (eval $ac_try) 2>&5
31629 ac_status=$?
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); }; }; then
31632 ac_header_compiler=yes
31633 else
31634 echo "$as_me: failed program was:" >&5
31635 sed 's/^/| /' conftest.$ac_ext >&5
31636
31637 ac_header_compiler=no
31638 fi
31639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31641 echo "${ECHO_T}$ac_header_compiler" >&6
31642
31643 # Is the header present?
31644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31646 cat >conftest.$ac_ext <<_ACEOF
31647 /* confdefs.h. */
31648 _ACEOF
31649 cat confdefs.h >>conftest.$ac_ext
31650 cat >>conftest.$ac_ext <<_ACEOF
31651 /* end confdefs.h. */
31652 #include <$ac_header>
31653 _ACEOF
31654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31656 ac_status=$?
31657 grep -v '^ *+' conftest.er1 >conftest.err
31658 rm -f conftest.er1
31659 cat conftest.err >&5
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); } >/dev/null; then
31662 if test -s conftest.err; then
31663 ac_cpp_err=$ac_c_preproc_warn_flag
31664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31665 else
31666 ac_cpp_err=
31667 fi
31668 else
31669 ac_cpp_err=yes
31670 fi
31671 if test -z "$ac_cpp_err"; then
31672 ac_header_preproc=yes
31673 else
31674 echo "$as_me: failed program was:" >&5
31675 sed 's/^/| /' conftest.$ac_ext >&5
31676
31677 ac_header_preproc=no
31678 fi
31679 rm -f conftest.err conftest.$ac_ext
31680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31681 echo "${ECHO_T}$ac_header_preproc" >&6
31682
31683 # So? What about this header?
31684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31685 yes:no: )
31686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31690 ac_header_preproc=yes
31691 ;;
31692 no:yes:* )
31693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31705 (
31706 cat <<\_ASBOX
31707 ## ----------------------------------------- ##
31708 ## Report this to wx-dev@lists.wxwindows.org ##
31709 ## ----------------------------------------- ##
31710 _ASBOX
31711 ) |
31712 sed "s/^/$as_me: WARNING: /" >&2
31713 ;;
31714 esac
31715 echo "$as_me:$LINENO: checking for $ac_header" >&5
31716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31718 echo $ECHO_N "(cached) $ECHO_C" >&6
31719 else
31720 eval "$as_ac_Header=\$ac_header_preproc"
31721 fi
31722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31724
31725 fi
31726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31727 cat >>confdefs.h <<_ACEOF
31728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31729 _ACEOF
31730
31731 EXTRALIBS_ESD="-lesd"
31732
31733 fi
31734
31735 done
31736
31737
31738 fi
31739
31740
31741
31742 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31743 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31744 cat >conftest.$ac_ext <<_ACEOF
31745 /* confdefs.h. */
31746 _ACEOF
31747 cat confdefs.h >>conftest.$ac_ext
31748 cat >>conftest.$ac_ext <<_ACEOF
31749 /* end confdefs.h. */
31750 #ifdef __linux__
31751 #include <linux/cdrom.h>
31752 #else
31753 /* For Solaris */
31754 #include <sys/cdio.h>
31755 #endif
31756
31757 int
31758 main ()
31759 {
31760 struct cdrom_tocentry entry, old_entry;
31761 ;
31762 return 0;
31763 }
31764 _ACEOF
31765 rm -f conftest.$ac_objext
31766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31767 (eval $ac_compile) 2>conftest.er1
31768 ac_status=$?
31769 grep -v '^ *+' conftest.er1 >conftest.err
31770 rm -f conftest.er1
31771 cat conftest.err >&5
31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773 (exit $ac_status); } &&
31774 { ac_try='test -z "$ac_c_werror_flag"
31775 || test ! -s conftest.err'
31776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31777 (eval $ac_try) 2>&5
31778 ac_status=$?
31779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31780 (exit $ac_status); }; } &&
31781 { ac_try='test -s conftest.$ac_objext'
31782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31783 (eval $ac_try) 2>&5
31784 ac_status=$?
31785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786 (exit $ac_status); }; }; then
31787 echo "$as_me:$LINENO: result: yes" >&5
31788 echo "${ECHO_T}yes" >&6
31789 cat >>confdefs.h <<\_ACEOF
31790 #define HAVE_KNOWN_CDROM_INTERFACE 1
31791 _ACEOF
31792
31793 else
31794 echo "$as_me: failed program was:" >&5
31795 sed 's/^/| /' conftest.$ac_ext >&5
31796
31797 echo "$as_me:$LINENO: result: no" >&5
31798 echo "${ECHO_T}no" >&6
31799 fi
31800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31801
31802
31803 cat >confcache <<\_ACEOF
31804 # This file is a shell script that caches the results of configure
31805 # tests run on this system so they can be shared between configure
31806 # scripts and configure runs, see configure's option --config-cache.
31807 # It is not useful on other systems. If it contains results you don't
31808 # want to keep, you may remove or edit it.
31809 #
31810 # config.status only pays attention to the cache file if you give it
31811 # the --recheck option to rerun configure.
31812 #
31813 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31814 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31815 # following values.
31816
31817 _ACEOF
31818
31819 # The following way of writing the cache mishandles newlines in values,
31820 # but we know of no workaround that is simple, portable, and efficient.
31821 # So, don't put newlines in cache variables' values.
31822 # Ultrix sh set writes to stderr and can't be redirected directly,
31823 # and sets the high bit in the cache file unless we assign to the vars.
31824 {
31825 (set) 2>&1 |
31826 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31827 *ac_space=\ *)
31828 # `set' does not quote correctly, so add quotes (double-quote
31829 # substitution turns \\\\ into \\, and sed turns \\ into \).
31830 sed -n \
31831 "s/'/'\\\\''/g;
31832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31833 ;;
31834 *)
31835 # `set' quotes correctly as required by POSIX, so do not add quotes.
31836 sed -n \
31837 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31838 ;;
31839 esac;
31840 } |
31841 sed '
31842 t clear
31843 : clear
31844 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31845 t end
31846 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31847 : end' >>confcache
31848 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31849 if test -w $cache_file; then
31850 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31851 cat confcache >$cache_file
31852 else
31853 echo "not updating unwritable cache $cache_file"
31854 fi
31855 fi
31856 rm -f confcache
31857
31858
31859 CPP_MT_FLAG=
31860 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31861
31862
31863 THREADS_LINK=
31864 THREADS_CFLAGS=
31865
31866 if test "$wxUSE_THREADS" = "yes" ; then
31867 if test "$USE_BEOS" = 1; then
31868 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31869 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31870 wxUSE_THREADS="no"
31871 fi
31872 fi
31873
31874 if test "$wxUSE_THREADS" = "yes" ; then
31875
31876
31877 THREAD_OPTS="-pthread"
31878 case "${host}" in
31879 *-*-solaris2* | *-*-sunos4* )
31880 if test "x$GCC" = "xyes"; then
31881 THREAD_OPTS="-pthreads $THREAD_OPTS"
31882 else
31883 THREAD_OPTS="-mt $THREAD_OPTS"
31884 fi
31885 ;;
31886 *-*-freebsd*)
31887 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31888 ;;
31889 *-*-darwin* | *-*-cygwin* )
31890 THREAD_OPTS=""
31891 ;;
31892 *-*-aix*)
31893 THREAD_OPTS="pthreads"
31894 ;;
31895 *-hp-hpux* )
31896 if test "x$GCC" != "xyes"; then
31897 THREAD_OPTS=""
31898 fi
31899 ;;
31900
31901 *-*-irix* )
31902 if test "x$GCC" = "xyes"; then
31903 THREAD_OPTS=""
31904 fi
31905 ;;
31906
31907 *-*-*UnixWare*)
31908 if test "x$GCC" != "xyes"; then
31909 THREAD_OPTS="-Ethread"
31910 fi
31911 ;;
31912 esac
31913
31914 THREAD_OPTS="$THREAD_OPTS pthread none"
31915
31916 THREADS_OK=no
31917 for flag in $THREAD_OPTS; do
31918 case $flag in
31919 none)
31920 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31921 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31922 ;;
31923
31924 -*)
31925 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31926 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31927 THREADS_CFLAGS="$flag"
31928 ;;
31929
31930 *)
31931 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31932 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31933 THREADS_LINK="-l$flag"
31934 ;;
31935 esac
31936
31937 save_LIBS="$LIBS"
31938 save_CFLAGS="$CFLAGS"
31939 LIBS="$THREADS_LINK $LIBS"
31940 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31941
31942 cat >conftest.$ac_ext <<_ACEOF
31943 /* confdefs.h. */
31944 _ACEOF
31945 cat confdefs.h >>conftest.$ac_ext
31946 cat >>conftest.$ac_ext <<_ACEOF
31947 /* end confdefs.h. */
31948 #include <pthread.h>
31949 int
31950 main ()
31951 {
31952 pthread_create(0,0,0,0);
31953 ;
31954 return 0;
31955 }
31956 _ACEOF
31957 rm -f conftest.$ac_objext conftest$ac_exeext
31958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31959 (eval $ac_link) 2>conftest.er1
31960 ac_status=$?
31961 grep -v '^ *+' conftest.er1 >conftest.err
31962 rm -f conftest.er1
31963 cat conftest.err >&5
31964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965 (exit $ac_status); } &&
31966 { ac_try='test -z "$ac_c_werror_flag"
31967 || test ! -s conftest.err'
31968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31969 (eval $ac_try) 2>&5
31970 ac_status=$?
31971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); }; } &&
31973 { ac_try='test -s conftest$ac_exeext'
31974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31975 (eval $ac_try) 2>&5
31976 ac_status=$?
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); }; }; then
31979 THREADS_OK=yes
31980 else
31981 echo "$as_me: failed program was:" >&5
31982 sed 's/^/| /' conftest.$ac_ext >&5
31983
31984 fi
31985 rm -f conftest.err conftest.$ac_objext \
31986 conftest$ac_exeext conftest.$ac_ext
31987
31988 LIBS="$save_LIBS"
31989 CFLAGS="$save_CFLAGS"
31990
31991 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31992 echo "${ECHO_T}$THREADS_OK" >&6
31993 if test "x$THREADS_OK" = "xyes"; then
31994 break;
31995 fi
31996
31997 THREADS_LINK=""
31998 THREADS_CFLAGS=""
31999 done
32000
32001 if test "x$THREADS_OK" != "xyes"; then
32002 wxUSE_THREADS=no
32003 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32004 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32005 else
32006 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32007 LIBS="$THREADS_LINK $LIBS"
32008
32009 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32010 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32011 flag=no
32012 case "${host}" in
32013 *-aix*)
32014 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32015 flag="-D_THREAD_SAFE"
32016 ;;
32017 *-freebsd*)
32018 flag="-D_THREAD_SAFE"
32019 ;;
32020 *-hp-hpux* )
32021 flag="-D_REENTRANT"
32022 if test "x$GCC" != "xyes"; then
32023 flag="$flag -D_RWSTD_MULTI_THREAD"
32024 fi
32025 ;;
32026 *solaris* | alpha*-osf*)
32027 flag="-D_REENTRANT"
32028 ;;
32029 esac
32030 echo "$as_me:$LINENO: result: ${flag}" >&5
32031 echo "${ECHO_T}${flag}" >&6
32032 if test "x$flag" != xno; then
32033 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32034 fi
32035
32036 if test "x$THREADS_CFLAGS" != "x"; then
32037 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32038 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32039 fi
32040 fi
32041 fi
32042
32043 if test "$wxUSE_THREADS" = "yes" ; then
32044
32045 for ac_func in thr_setconcurrency
32046 do
32047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32048 echo "$as_me:$LINENO: checking for $ac_func" >&5
32049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32050 if eval "test \"\${$as_ac_var+set}\" = set"; then
32051 echo $ECHO_N "(cached) $ECHO_C" >&6
32052 else
32053 cat >conftest.$ac_ext <<_ACEOF
32054 /* confdefs.h. */
32055 _ACEOF
32056 cat confdefs.h >>conftest.$ac_ext
32057 cat >>conftest.$ac_ext <<_ACEOF
32058 /* end confdefs.h. */
32059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32061 #define $ac_func innocuous_$ac_func
32062
32063 /* System header to define __stub macros and hopefully few prototypes,
32064 which can conflict with char $ac_func (); below.
32065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32066 <limits.h> exists even on freestanding compilers. */
32067
32068 #ifdef __STDC__
32069 # include <limits.h>
32070 #else
32071 # include <assert.h>
32072 #endif
32073
32074 #undef $ac_func
32075
32076 /* Override any gcc2 internal prototype to avoid an error. */
32077 #ifdef __cplusplus
32078 extern "C"
32079 {
32080 #endif
32081 /* We use char because int might match the return type of a gcc2
32082 builtin and then its argument prototype would still apply. */
32083 char $ac_func ();
32084 /* The GNU C library defines this for functions which it implements
32085 to always fail with ENOSYS. Some functions are actually named
32086 something starting with __ and the normal name is an alias. */
32087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32088 choke me
32089 #else
32090 char (*f) () = $ac_func;
32091 #endif
32092 #ifdef __cplusplus
32093 }
32094 #endif
32095
32096 int
32097 main ()
32098 {
32099 return f != $ac_func;
32100 ;
32101 return 0;
32102 }
32103 _ACEOF
32104 rm -f conftest.$ac_objext conftest$ac_exeext
32105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32106 (eval $ac_link) 2>conftest.er1
32107 ac_status=$?
32108 grep -v '^ *+' conftest.er1 >conftest.err
32109 rm -f conftest.er1
32110 cat conftest.err >&5
32111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112 (exit $ac_status); } &&
32113 { ac_try='test -z "$ac_c_werror_flag"
32114 || test ! -s conftest.err'
32115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32116 (eval $ac_try) 2>&5
32117 ac_status=$?
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); }; } &&
32120 { ac_try='test -s conftest$ac_exeext'
32121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32122 (eval $ac_try) 2>&5
32123 ac_status=$?
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); }; }; then
32126 eval "$as_ac_var=yes"
32127 else
32128 echo "$as_me: failed program was:" >&5
32129 sed 's/^/| /' conftest.$ac_ext >&5
32130
32131 eval "$as_ac_var=no"
32132 fi
32133 rm -f conftest.err conftest.$ac_objext \
32134 conftest$ac_exeext conftest.$ac_ext
32135 fi
32136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32138 if test `eval echo '${'$as_ac_var'}'` = yes; then
32139 cat >>confdefs.h <<_ACEOF
32140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32141 _ACEOF
32142
32143 fi
32144 done
32145
32146
32147
32148 for ac_header in sched.h
32149 do
32150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32152 echo "$as_me:$LINENO: checking for $ac_header" >&5
32153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32155 echo $ECHO_N "(cached) $ECHO_C" >&6
32156 fi
32157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32159 else
32160 # Is the header compilable?
32161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32163 cat >conftest.$ac_ext <<_ACEOF
32164 /* confdefs.h. */
32165 _ACEOF
32166 cat confdefs.h >>conftest.$ac_ext
32167 cat >>conftest.$ac_ext <<_ACEOF
32168 /* end confdefs.h. */
32169 $ac_includes_default
32170 #include <$ac_header>
32171 _ACEOF
32172 rm -f conftest.$ac_objext
32173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32174 (eval $ac_compile) 2>conftest.er1
32175 ac_status=$?
32176 grep -v '^ *+' conftest.er1 >conftest.err
32177 rm -f conftest.er1
32178 cat conftest.err >&5
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); } &&
32181 { ac_try='test -z "$ac_c_werror_flag"
32182 || test ! -s conftest.err'
32183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32184 (eval $ac_try) 2>&5
32185 ac_status=$?
32186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187 (exit $ac_status); }; } &&
32188 { ac_try='test -s conftest.$ac_objext'
32189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32190 (eval $ac_try) 2>&5
32191 ac_status=$?
32192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193 (exit $ac_status); }; }; then
32194 ac_header_compiler=yes
32195 else
32196 echo "$as_me: failed program was:" >&5
32197 sed 's/^/| /' conftest.$ac_ext >&5
32198
32199 ac_header_compiler=no
32200 fi
32201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32203 echo "${ECHO_T}$ac_header_compiler" >&6
32204
32205 # Is the header present?
32206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32208 cat >conftest.$ac_ext <<_ACEOF
32209 /* confdefs.h. */
32210 _ACEOF
32211 cat confdefs.h >>conftest.$ac_ext
32212 cat >>conftest.$ac_ext <<_ACEOF
32213 /* end confdefs.h. */
32214 #include <$ac_header>
32215 _ACEOF
32216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32218 ac_status=$?
32219 grep -v '^ *+' conftest.er1 >conftest.err
32220 rm -f conftest.er1
32221 cat conftest.err >&5
32222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223 (exit $ac_status); } >/dev/null; then
32224 if test -s conftest.err; then
32225 ac_cpp_err=$ac_c_preproc_warn_flag
32226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32227 else
32228 ac_cpp_err=
32229 fi
32230 else
32231 ac_cpp_err=yes
32232 fi
32233 if test -z "$ac_cpp_err"; then
32234 ac_header_preproc=yes
32235 else
32236 echo "$as_me: failed program was:" >&5
32237 sed 's/^/| /' conftest.$ac_ext >&5
32238
32239 ac_header_preproc=no
32240 fi
32241 rm -f conftest.err conftest.$ac_ext
32242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32243 echo "${ECHO_T}$ac_header_preproc" >&6
32244
32245 # So? What about this header?
32246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32247 yes:no: )
32248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32252 ac_header_preproc=yes
32253 ;;
32254 no:yes:* )
32255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32267 (
32268 cat <<\_ASBOX
32269 ## ----------------------------------------- ##
32270 ## Report this to wx-dev@lists.wxwindows.org ##
32271 ## ----------------------------------------- ##
32272 _ASBOX
32273 ) |
32274 sed "s/^/$as_me: WARNING: /" >&2
32275 ;;
32276 esac
32277 echo "$as_me:$LINENO: checking for $ac_header" >&5
32278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32280 echo $ECHO_N "(cached) $ECHO_C" >&6
32281 else
32282 eval "$as_ac_Header=\$ac_header_preproc"
32283 fi
32284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32286
32287 fi
32288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32289 cat >>confdefs.h <<_ACEOF
32290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32291 _ACEOF
32292
32293 fi
32294
32295 done
32296
32297 if test "$ac_cv_header_sched_h" = "yes"; then
32298 echo "$as_me:$LINENO: checking for sched_yield" >&5
32299 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32300 if test "${ac_cv_func_sched_yield+set}" = set; then
32301 echo $ECHO_N "(cached) $ECHO_C" >&6
32302 else
32303 cat >conftest.$ac_ext <<_ACEOF
32304 /* confdefs.h. */
32305 _ACEOF
32306 cat confdefs.h >>conftest.$ac_ext
32307 cat >>conftest.$ac_ext <<_ACEOF
32308 /* end confdefs.h. */
32309 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32311 #define sched_yield innocuous_sched_yield
32312
32313 /* System header to define __stub macros and hopefully few prototypes,
32314 which can conflict with char sched_yield (); below.
32315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32316 <limits.h> exists even on freestanding compilers. */
32317
32318 #ifdef __STDC__
32319 # include <limits.h>
32320 #else
32321 # include <assert.h>
32322 #endif
32323
32324 #undef sched_yield
32325
32326 /* Override any gcc2 internal prototype to avoid an error. */
32327 #ifdef __cplusplus
32328 extern "C"
32329 {
32330 #endif
32331 /* We use char because int might match the return type of a gcc2
32332 builtin and then its argument prototype would still apply. */
32333 char sched_yield ();
32334 /* The GNU C library defines this for functions which it implements
32335 to always fail with ENOSYS. Some functions are actually named
32336 something starting with __ and the normal name is an alias. */
32337 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32338 choke me
32339 #else
32340 char (*f) () = sched_yield;
32341 #endif
32342 #ifdef __cplusplus
32343 }
32344 #endif
32345
32346 int
32347 main ()
32348 {
32349 return f != sched_yield;
32350 ;
32351 return 0;
32352 }
32353 _ACEOF
32354 rm -f conftest.$ac_objext conftest$ac_exeext
32355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32356 (eval $ac_link) 2>conftest.er1
32357 ac_status=$?
32358 grep -v '^ *+' conftest.er1 >conftest.err
32359 rm -f conftest.er1
32360 cat conftest.err >&5
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); } &&
32363 { ac_try='test -z "$ac_c_werror_flag"
32364 || test ! -s conftest.err'
32365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32366 (eval $ac_try) 2>&5
32367 ac_status=$?
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); }; } &&
32370 { ac_try='test -s conftest$ac_exeext'
32371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32372 (eval $ac_try) 2>&5
32373 ac_status=$?
32374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375 (exit $ac_status); }; }; then
32376 ac_cv_func_sched_yield=yes
32377 else
32378 echo "$as_me: failed program was:" >&5
32379 sed 's/^/| /' conftest.$ac_ext >&5
32380
32381 ac_cv_func_sched_yield=no
32382 fi
32383 rm -f conftest.err conftest.$ac_objext \
32384 conftest$ac_exeext conftest.$ac_ext
32385 fi
32386 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32387 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32388 if test $ac_cv_func_sched_yield = yes; then
32389 cat >>confdefs.h <<\_ACEOF
32390 #define HAVE_SCHED_YIELD 1
32391 _ACEOF
32392
32393 else
32394
32395 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32396 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32397 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32398 echo $ECHO_N "(cached) $ECHO_C" >&6
32399 else
32400 ac_check_lib_save_LIBS=$LIBS
32401 LIBS="-lposix4 $LIBS"
32402 cat >conftest.$ac_ext <<_ACEOF
32403 /* confdefs.h. */
32404 _ACEOF
32405 cat confdefs.h >>conftest.$ac_ext
32406 cat >>conftest.$ac_ext <<_ACEOF
32407 /* end confdefs.h. */
32408
32409 /* Override any gcc2 internal prototype to avoid an error. */
32410 #ifdef __cplusplus
32411 extern "C"
32412 #endif
32413 /* We use char because int might match the return type of a gcc2
32414 builtin and then its argument prototype would still apply. */
32415 char sched_yield ();
32416 int
32417 main ()
32418 {
32419 sched_yield ();
32420 ;
32421 return 0;
32422 }
32423 _ACEOF
32424 rm -f conftest.$ac_objext conftest$ac_exeext
32425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32426 (eval $ac_link) 2>conftest.er1
32427 ac_status=$?
32428 grep -v '^ *+' conftest.er1 >conftest.err
32429 rm -f conftest.er1
32430 cat conftest.err >&5
32431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32432 (exit $ac_status); } &&
32433 { ac_try='test -z "$ac_c_werror_flag"
32434 || test ! -s conftest.err'
32435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32436 (eval $ac_try) 2>&5
32437 ac_status=$?
32438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439 (exit $ac_status); }; } &&
32440 { ac_try='test -s conftest$ac_exeext'
32441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32442 (eval $ac_try) 2>&5
32443 ac_status=$?
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); }; }; then
32446 ac_cv_lib_posix4_sched_yield=yes
32447 else
32448 echo "$as_me: failed program was:" >&5
32449 sed 's/^/| /' conftest.$ac_ext >&5
32450
32451 ac_cv_lib_posix4_sched_yield=no
32452 fi
32453 rm -f conftest.err conftest.$ac_objext \
32454 conftest$ac_exeext conftest.$ac_ext
32455 LIBS=$ac_check_lib_save_LIBS
32456 fi
32457 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32458 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32459 if test $ac_cv_lib_posix4_sched_yield = yes; then
32460 cat >>confdefs.h <<\_ACEOF
32461 #define HAVE_SCHED_YIELD 1
32462 _ACEOF
32463 POSIX4_LINK=" -lposix4"
32464 else
32465 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32466 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32467
32468 fi
32469
32470
32471
32472 fi
32473
32474 fi
32475
32476 HAVE_PRIOR_FUNCS=0
32477 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32478 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32479 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32480 echo $ECHO_N "(cached) $ECHO_C" >&6
32481 else
32482 cat >conftest.$ac_ext <<_ACEOF
32483 /* confdefs.h. */
32484 _ACEOF
32485 cat confdefs.h >>conftest.$ac_ext
32486 cat >>conftest.$ac_ext <<_ACEOF
32487 /* end confdefs.h. */
32488 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32490 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32491
32492 /* System header to define __stub macros and hopefully few prototypes,
32493 which can conflict with char pthread_attr_getschedpolicy (); below.
32494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32495 <limits.h> exists even on freestanding compilers. */
32496
32497 #ifdef __STDC__
32498 # include <limits.h>
32499 #else
32500 # include <assert.h>
32501 #endif
32502
32503 #undef pthread_attr_getschedpolicy
32504
32505 /* Override any gcc2 internal prototype to avoid an error. */
32506 #ifdef __cplusplus
32507 extern "C"
32508 {
32509 #endif
32510 /* We use char because int might match the return type of a gcc2
32511 builtin and then its argument prototype would still apply. */
32512 char pthread_attr_getschedpolicy ();
32513 /* The GNU C library defines this for functions which it implements
32514 to always fail with ENOSYS. Some functions are actually named
32515 something starting with __ and the normal name is an alias. */
32516 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32517 choke me
32518 #else
32519 char (*f) () = pthread_attr_getschedpolicy;
32520 #endif
32521 #ifdef __cplusplus
32522 }
32523 #endif
32524
32525 int
32526 main ()
32527 {
32528 return f != pthread_attr_getschedpolicy;
32529 ;
32530 return 0;
32531 }
32532 _ACEOF
32533 rm -f conftest.$ac_objext conftest$ac_exeext
32534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32535 (eval $ac_link) 2>conftest.er1
32536 ac_status=$?
32537 grep -v '^ *+' conftest.er1 >conftest.err
32538 rm -f conftest.er1
32539 cat conftest.err >&5
32540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); } &&
32542 { ac_try='test -z "$ac_c_werror_flag"
32543 || test ! -s conftest.err'
32544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32545 (eval $ac_try) 2>&5
32546 ac_status=$?
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); }; } &&
32549 { ac_try='test -s conftest$ac_exeext'
32550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32551 (eval $ac_try) 2>&5
32552 ac_status=$?
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); }; }; then
32555 ac_cv_func_pthread_attr_getschedpolicy=yes
32556 else
32557 echo "$as_me: failed program was:" >&5
32558 sed 's/^/| /' conftest.$ac_ext >&5
32559
32560 ac_cv_func_pthread_attr_getschedpolicy=no
32561 fi
32562 rm -f conftest.err conftest.$ac_objext \
32563 conftest$ac_exeext conftest.$ac_ext
32564 fi
32565 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32566 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32567 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32568 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32569 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32570 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32571 echo $ECHO_N "(cached) $ECHO_C" >&6
32572 else
32573 cat >conftest.$ac_ext <<_ACEOF
32574 /* confdefs.h. */
32575 _ACEOF
32576 cat confdefs.h >>conftest.$ac_ext
32577 cat >>conftest.$ac_ext <<_ACEOF
32578 /* end confdefs.h. */
32579 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32581 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32582
32583 /* System header to define __stub macros and hopefully few prototypes,
32584 which can conflict with char pthread_attr_setschedparam (); below.
32585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32586 <limits.h> exists even on freestanding compilers. */
32587
32588 #ifdef __STDC__
32589 # include <limits.h>
32590 #else
32591 # include <assert.h>
32592 #endif
32593
32594 #undef pthread_attr_setschedparam
32595
32596 /* Override any gcc2 internal prototype to avoid an error. */
32597 #ifdef __cplusplus
32598 extern "C"
32599 {
32600 #endif
32601 /* We use char because int might match the return type of a gcc2
32602 builtin and then its argument prototype would still apply. */
32603 char pthread_attr_setschedparam ();
32604 /* The GNU C library defines this for functions which it implements
32605 to always fail with ENOSYS. Some functions are actually named
32606 something starting with __ and the normal name is an alias. */
32607 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32608 choke me
32609 #else
32610 char (*f) () = pthread_attr_setschedparam;
32611 #endif
32612 #ifdef __cplusplus
32613 }
32614 #endif
32615
32616 int
32617 main ()
32618 {
32619 return f != pthread_attr_setschedparam;
32620 ;
32621 return 0;
32622 }
32623 _ACEOF
32624 rm -f conftest.$ac_objext conftest$ac_exeext
32625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32626 (eval $ac_link) 2>conftest.er1
32627 ac_status=$?
32628 grep -v '^ *+' conftest.er1 >conftest.err
32629 rm -f conftest.er1
32630 cat conftest.err >&5
32631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 (exit $ac_status); } &&
32633 { ac_try='test -z "$ac_c_werror_flag"
32634 || test ! -s conftest.err'
32635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32636 (eval $ac_try) 2>&5
32637 ac_status=$?
32638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639 (exit $ac_status); }; } &&
32640 { ac_try='test -s conftest$ac_exeext'
32641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32642 (eval $ac_try) 2>&5
32643 ac_status=$?
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; }; then
32646 ac_cv_func_pthread_attr_setschedparam=yes
32647 else
32648 echo "$as_me: failed program was:" >&5
32649 sed 's/^/| /' conftest.$ac_ext >&5
32650
32651 ac_cv_func_pthread_attr_setschedparam=no
32652 fi
32653 rm -f conftest.err conftest.$ac_objext \
32654 conftest$ac_exeext conftest.$ac_ext
32655 fi
32656 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32657 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32658 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32659 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32660 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32661 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32662 echo $ECHO_N "(cached) $ECHO_C" >&6
32663 else
32664 cat >conftest.$ac_ext <<_ACEOF
32665 /* confdefs.h. */
32666 _ACEOF
32667 cat confdefs.h >>conftest.$ac_ext
32668 cat >>conftest.$ac_ext <<_ACEOF
32669 /* end confdefs.h. */
32670 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32672 #define sched_get_priority_max innocuous_sched_get_priority_max
32673
32674 /* System header to define __stub macros and hopefully few prototypes,
32675 which can conflict with char sched_get_priority_max (); below.
32676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32677 <limits.h> exists even on freestanding compilers. */
32678
32679 #ifdef __STDC__
32680 # include <limits.h>
32681 #else
32682 # include <assert.h>
32683 #endif
32684
32685 #undef sched_get_priority_max
32686
32687 /* Override any gcc2 internal prototype to avoid an error. */
32688 #ifdef __cplusplus
32689 extern "C"
32690 {
32691 #endif
32692 /* We use char because int might match the return type of a gcc2
32693 builtin and then its argument prototype would still apply. */
32694 char sched_get_priority_max ();
32695 /* The GNU C library defines this for functions which it implements
32696 to always fail with ENOSYS. Some functions are actually named
32697 something starting with __ and the normal name is an alias. */
32698 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32699 choke me
32700 #else
32701 char (*f) () = sched_get_priority_max;
32702 #endif
32703 #ifdef __cplusplus
32704 }
32705 #endif
32706
32707 int
32708 main ()
32709 {
32710 return f != sched_get_priority_max;
32711 ;
32712 return 0;
32713 }
32714 _ACEOF
32715 rm -f conftest.$ac_objext conftest$ac_exeext
32716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32717 (eval $ac_link) 2>conftest.er1
32718 ac_status=$?
32719 grep -v '^ *+' conftest.er1 >conftest.err
32720 rm -f conftest.er1
32721 cat conftest.err >&5
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); } &&
32724 { ac_try='test -z "$ac_c_werror_flag"
32725 || test ! -s conftest.err'
32726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32727 (eval $ac_try) 2>&5
32728 ac_status=$?
32729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730 (exit $ac_status); }; } &&
32731 { ac_try='test -s conftest$ac_exeext'
32732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32733 (eval $ac_try) 2>&5
32734 ac_status=$?
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); }; }; then
32737 ac_cv_func_sched_get_priority_max=yes
32738 else
32739 echo "$as_me: failed program was:" >&5
32740 sed 's/^/| /' conftest.$ac_ext >&5
32741
32742 ac_cv_func_sched_get_priority_max=no
32743 fi
32744 rm -f conftest.err conftest.$ac_objext \
32745 conftest$ac_exeext conftest.$ac_ext
32746 fi
32747 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32748 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32749 if test $ac_cv_func_sched_get_priority_max = yes; then
32750 HAVE_PRIOR_FUNCS=1
32751 else
32752 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32753 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32754 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32755 echo $ECHO_N "(cached) $ECHO_C" >&6
32756 else
32757 ac_check_lib_save_LIBS=$LIBS
32758 LIBS="-lposix4 $LIBS"
32759 cat >conftest.$ac_ext <<_ACEOF
32760 /* confdefs.h. */
32761 _ACEOF
32762 cat confdefs.h >>conftest.$ac_ext
32763 cat >>conftest.$ac_ext <<_ACEOF
32764 /* end confdefs.h. */
32765
32766 /* Override any gcc2 internal prototype to avoid an error. */
32767 #ifdef __cplusplus
32768 extern "C"
32769 #endif
32770 /* We use char because int might match the return type of a gcc2
32771 builtin and then its argument prototype would still apply. */
32772 char sched_get_priority_max ();
32773 int
32774 main ()
32775 {
32776 sched_get_priority_max ();
32777 ;
32778 return 0;
32779 }
32780 _ACEOF
32781 rm -f conftest.$ac_objext conftest$ac_exeext
32782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32783 (eval $ac_link) 2>conftest.er1
32784 ac_status=$?
32785 grep -v '^ *+' conftest.er1 >conftest.err
32786 rm -f conftest.er1
32787 cat conftest.err >&5
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); } &&
32790 { ac_try='test -z "$ac_c_werror_flag"
32791 || test ! -s conftest.err'
32792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32793 (eval $ac_try) 2>&5
32794 ac_status=$?
32795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796 (exit $ac_status); }; } &&
32797 { ac_try='test -s conftest$ac_exeext'
32798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32799 (eval $ac_try) 2>&5
32800 ac_status=$?
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); }; }; then
32803 ac_cv_lib_posix4_sched_get_priority_max=yes
32804 else
32805 echo "$as_me: failed program was:" >&5
32806 sed 's/^/| /' conftest.$ac_ext >&5
32807
32808 ac_cv_lib_posix4_sched_get_priority_max=no
32809 fi
32810 rm -f conftest.err conftest.$ac_objext \
32811 conftest$ac_exeext conftest.$ac_ext
32812 LIBS=$ac_check_lib_save_LIBS
32813 fi
32814 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32815 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32816 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32817
32818 HAVE_PRIOR_FUNCS=1
32819 POSIX4_LINK=" -lposix4"
32820
32821 fi
32822
32823
32824 fi
32825
32826
32827 fi
32828
32829
32830 fi
32831
32832
32833 if test "$HAVE_PRIOR_FUNCS" = 1; then
32834 cat >>confdefs.h <<\_ACEOF
32835 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32836 _ACEOF
32837
32838 else
32839 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32840 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32841 fi
32842
32843 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32844 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32845 if test "${ac_cv_func_pthread_cancel+set}" = set; then
32846 echo $ECHO_N "(cached) $ECHO_C" >&6
32847 else
32848 cat >conftest.$ac_ext <<_ACEOF
32849 /* confdefs.h. */
32850 _ACEOF
32851 cat confdefs.h >>conftest.$ac_ext
32852 cat >>conftest.$ac_ext <<_ACEOF
32853 /* end confdefs.h. */
32854 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32856 #define pthread_cancel innocuous_pthread_cancel
32857
32858 /* System header to define __stub macros and hopefully few prototypes,
32859 which can conflict with char pthread_cancel (); below.
32860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32861 <limits.h> exists even on freestanding compilers. */
32862
32863 #ifdef __STDC__
32864 # include <limits.h>
32865 #else
32866 # include <assert.h>
32867 #endif
32868
32869 #undef pthread_cancel
32870
32871 /* Override any gcc2 internal prototype to avoid an error. */
32872 #ifdef __cplusplus
32873 extern "C"
32874 {
32875 #endif
32876 /* We use char because int might match the return type of a gcc2
32877 builtin and then its argument prototype would still apply. */
32878 char pthread_cancel ();
32879 /* The GNU C library defines this for functions which it implements
32880 to always fail with ENOSYS. Some functions are actually named
32881 something starting with __ and the normal name is an alias. */
32882 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32883 choke me
32884 #else
32885 char (*f) () = pthread_cancel;
32886 #endif
32887 #ifdef __cplusplus
32888 }
32889 #endif
32890
32891 int
32892 main ()
32893 {
32894 return f != pthread_cancel;
32895 ;
32896 return 0;
32897 }
32898 _ACEOF
32899 rm -f conftest.$ac_objext conftest$ac_exeext
32900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32901 (eval $ac_link) 2>conftest.er1
32902 ac_status=$?
32903 grep -v '^ *+' conftest.er1 >conftest.err
32904 rm -f conftest.er1
32905 cat conftest.err >&5
32906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32907 (exit $ac_status); } &&
32908 { ac_try='test -z "$ac_c_werror_flag"
32909 || test ! -s conftest.err'
32910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32911 (eval $ac_try) 2>&5
32912 ac_status=$?
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); }; } &&
32915 { ac_try='test -s conftest$ac_exeext'
32916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32917 (eval $ac_try) 2>&5
32918 ac_status=$?
32919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920 (exit $ac_status); }; }; then
32921 ac_cv_func_pthread_cancel=yes
32922 else
32923 echo "$as_me: failed program was:" >&5
32924 sed 's/^/| /' conftest.$ac_ext >&5
32925
32926 ac_cv_func_pthread_cancel=no
32927 fi
32928 rm -f conftest.err conftest.$ac_objext \
32929 conftest$ac_exeext conftest.$ac_ext
32930 fi
32931 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32932 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32933 if test $ac_cv_func_pthread_cancel = yes; then
32934 cat >>confdefs.h <<\_ACEOF
32935 #define HAVE_PTHREAD_CANCEL 1
32936 _ACEOF
32937
32938 else
32939 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32940 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32941 fi
32942
32943
32944
32945
32946 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32947 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32948 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32949 echo $ECHO_N "(cached) $ECHO_C" >&6
32950 else
32951
32952 cat >conftest.$ac_ext <<_ACEOF
32953 /* confdefs.h. */
32954 _ACEOF
32955 cat confdefs.h >>conftest.$ac_ext
32956 cat >>conftest.$ac_ext <<_ACEOF
32957 /* end confdefs.h. */
32958 #include <pthread.h>
32959 int
32960 main ()
32961 {
32962
32963 pthread_mutexattr_t attr;
32964 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32965
32966 ;
32967 return 0;
32968 }
32969 _ACEOF
32970 rm -f conftest.$ac_objext
32971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32972 (eval $ac_compile) 2>conftest.er1
32973 ac_status=$?
32974 grep -v '^ *+' conftest.er1 >conftest.err
32975 rm -f conftest.er1
32976 cat conftest.err >&5
32977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); } &&
32979 { ac_try='test -z "$ac_c_werror_flag"
32980 || test ! -s conftest.err'
32981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32982 (eval $ac_try) 2>&5
32983 ac_status=$?
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); }; } &&
32986 { ac_try='test -s conftest.$ac_objext'
32987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32988 (eval $ac_try) 2>&5
32989 ac_status=$?
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; }; then
32992
32993 wx_cv_type_pthread_mutexattr_t=yes
32994
32995 else
32996 echo "$as_me: failed program was:" >&5
32997 sed 's/^/| /' conftest.$ac_ext >&5
32998
32999
33000 wx_cv_type_pthread_mutexattr_t=no
33001
33002
33003 fi
33004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33005
33006 fi
33007 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33008 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33009
33010 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33011 cat >>confdefs.h <<\_ACEOF
33012 #define HAVE_PTHREAD_MUTEXATTR_T 1
33013 _ACEOF
33014
33015 else
33016 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33017 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33018 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33019 echo $ECHO_N "(cached) $ECHO_C" >&6
33020 else
33021
33022 cat >conftest.$ac_ext <<_ACEOF
33023 /* confdefs.h. */
33024 _ACEOF
33025 cat confdefs.h >>conftest.$ac_ext
33026 cat >>conftest.$ac_ext <<_ACEOF
33027 /* end confdefs.h. */
33028 #include <pthread.h>
33029 int
33030 main ()
33031 {
33032
33033 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33034
33035 ;
33036 return 0;
33037 }
33038 _ACEOF
33039 rm -f conftest.$ac_objext
33040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33041 (eval $ac_compile) 2>conftest.er1
33042 ac_status=$?
33043 grep -v '^ *+' conftest.er1 >conftest.err
33044 rm -f conftest.er1
33045 cat conftest.err >&5
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); } &&
33048 { ac_try='test -z "$ac_c_werror_flag"
33049 || test ! -s conftest.err'
33050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33051 (eval $ac_try) 2>&5
33052 ac_status=$?
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); }; } &&
33055 { ac_try='test -s conftest.$ac_objext'
33056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33057 (eval $ac_try) 2>&5
33058 ac_status=$?
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); }; }; then
33061
33062 wx_cv_type_pthread_rec_mutex_init=yes
33063
33064 else
33065 echo "$as_me: failed program was:" >&5
33066 sed 's/^/| /' conftest.$ac_ext >&5
33067
33068
33069 wx_cv_type_pthread_rec_mutex_init=no
33070
33071
33072 fi
33073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33074
33075 fi
33076 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33077 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33078 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33079 cat >>confdefs.h <<\_ACEOF
33080 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33081 _ACEOF
33082
33083 else
33084 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33085 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33086 fi
33087 fi
33088 fi
33089
33090 else
33091 if test "$wxUSE_THREADS" = "yes" ; then
33092 case "${host}" in
33093 *-*-mingw32* )
33094 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33095 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33096 if test "${wx_cv_cflags_mthread+set}" = set; then
33097 echo $ECHO_N "(cached) $ECHO_C" >&6
33098 else
33099
33100 CFLAGS_OLD="$CFLAGS"
33101 CFLAGS="$CFLAGS -mthreads"
33102 cat >conftest.$ac_ext <<_ACEOF
33103 /* confdefs.h. */
33104 _ACEOF
33105 cat confdefs.h >>conftest.$ac_ext
33106 cat >>conftest.$ac_ext <<_ACEOF
33107 /* end confdefs.h. */
33108
33109 int
33110 main ()
33111 {
33112
33113 ;
33114 return 0;
33115 }
33116 _ACEOF
33117 rm -f conftest.$ac_objext
33118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33119 (eval $ac_compile) 2>conftest.er1
33120 ac_status=$?
33121 grep -v '^ *+' conftest.er1 >conftest.err
33122 rm -f conftest.er1
33123 cat conftest.err >&5
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); } &&
33126 { ac_try='test -z "$ac_c_werror_flag"
33127 || test ! -s conftest.err'
33128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33129 (eval $ac_try) 2>&5
33130 ac_status=$?
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); }; } &&
33133 { ac_try='test -s conftest.$ac_objext'
33134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33135 (eval $ac_try) 2>&5
33136 ac_status=$?
33137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138 (exit $ac_status); }; }; then
33139 wx_cv_cflags_mthread=yes
33140 else
33141 echo "$as_me: failed program was:" >&5
33142 sed 's/^/| /' conftest.$ac_ext >&5
33143
33144 wx_cv_cflags_mthread=no
33145
33146 fi
33147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33148
33149
33150 fi
33151 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33152 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33153
33154 if test "$wx_cv_cflags_mthread" = "yes"; then
33155 CXXFLAGS="$CXXFLAGS -mthreads"
33156 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33157 LDFLAGS="$LDFLAGS -mthreads"
33158 else
33159 CFLAGS="$CFLAGS_OLD"
33160 fi
33161 ;;
33162 *-pc-os2*emx )
33163 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33164 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33165 LDFLAGS="$LDFLAGS -Zmt"
33166 ;;
33167 esac
33168 fi
33169 fi
33170
33171 if test "$wxUSE_THREADS" = "yes"; then
33172 cat >>confdefs.h <<\_ACEOF
33173 #define wxUSE_THREADS 1
33174 _ACEOF
33175
33176
33177 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33178 else
33179 if test "$ac_cv_func_strtok_r" = "yes"; then
33180 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33181 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33182 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33183 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33184 echo "$as_me:$LINENO: result: yes" >&5
33185 echo "${ECHO_T}yes" >&6
33186 else
33187 echo "$as_me:$LINENO: result: no" >&5
33188 echo "${ECHO_T}no" >&6
33189 fi
33190 fi
33191 fi
33192
33193 if test "$WXGTK20" = 1 ; then
33194 cat >>confdefs.h <<_ACEOF
33195 #define __WXGTK20__ $WXGTK20
33196 _ACEOF
33197
33198 WXGTK12=1
33199 fi
33200
33201 if test "$WXGTK12" = 1 ; then
33202 cat >>confdefs.h <<_ACEOF
33203 #define __WXGTK12__ $WXGTK12
33204 _ACEOF
33205
33206 fi
33207
33208 if test "$WXGTK127" = 1 ; then
33209 cat >>confdefs.h <<_ACEOF
33210 #define __WXGTK127__ $WXGTK127
33211 _ACEOF
33212
33213 fi
33214
33215 WXDEBUG=
33216
33217 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33218 WXDEBUG="-g"
33219 wxUSE_OPTIMISE=no
33220 fi
33221
33222 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33223 wxUSE_DEBUG_INFO=yes
33224 WXDEBUG="-ggdb"
33225 fi
33226
33227 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33228 cat >>confdefs.h <<\_ACEOF
33229 #define WXDEBUG 1
33230 _ACEOF
33231
33232 WXDEBUG_DEFINE="-D__WXDEBUG__"
33233 else
33234 if test "$wxUSE_GTK" = 1 ; then
33235 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33236 fi
33237 fi
33238
33239 if test "$wxUSE_MEM_TRACING" = "yes" ; then
33240 cat >>confdefs.h <<\_ACEOF
33241 #define wxUSE_MEMORY_TRACING 1
33242 _ACEOF
33243
33244 cat >>confdefs.h <<\_ACEOF
33245 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33246 _ACEOF
33247
33248 cat >>confdefs.h <<\_ACEOF
33249 #define wxUSE_DEBUG_NEW_ALWAYS 1
33250 _ACEOF
33251
33252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33253 fi
33254
33255 if test "$wxUSE_DMALLOC" = "yes" ; then
33256 DMALLOC_LIBS="-ldmalloc"
33257 fi
33258
33259 PROFILE=
33260 if test "$wxUSE_PROFILE" = "yes" ; then
33261 PROFILE=" -pg"
33262 fi
33263
33264 CODE_GEN_FLAGS=
33265 CODE_GEN_FLAGS_CXX=
33266 if test "$GCC" = "yes" ; then
33267 if test "$wxUSE_NO_RTTI" = "yes" ; then
33268 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33269 fi
33270 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33271 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33272 fi
33273 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33274 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33275 fi
33276
33277 case "${host}" in
33278 powerpc*-*-aix* )
33279 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33280 ;;
33281 *-hppa* )
33282 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33283 ;;
33284 esac
33285 fi
33286
33287 OPTIMISE=
33288 if test "$wxUSE_OPTIMISE" = "no" ; then
33289 if test "$GCC" = yes ; then
33290 OPTIMISE="-O0"
33291 fi
33292 else
33293 if test "$GCC" = yes ; then
33294 OPTIMISE="-O2"
33295
33296 case "${host}" in
33297 i586-*-*|i686-*-* )
33298 OPTIMISE="${OPTIMISE} "
33299 ;;
33300 esac
33301 else
33302 OPTIMISE="-O"
33303 fi
33304 fi
33305
33306
33307 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33308 cat >>confdefs.h <<\_ACEOF
33309 #define WXWIN_COMPATIBILITY_2_2 1
33310 _ACEOF
33311
33312
33313 WXWIN_COMPATIBILITY_2_4="yes"
33314 fi
33315
33316 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33317 cat >>confdefs.h <<\_ACEOF
33318 #define WXWIN_COMPATIBILITY_2_4 1
33319 _ACEOF
33320
33321 fi
33322
33323
33324 if test "$wxUSE_GUI" = "yes"; then
33325 cat >>confdefs.h <<\_ACEOF
33326 #define wxUSE_GUI 1
33327 _ACEOF
33328
33329
33330 else
33331 cat >>confdefs.h <<\_ACEOF
33332 #define wxUSE_NOGUI 1
33333 _ACEOF
33334
33335 fi
33336
33337
33338 if test "$wxUSE_UNIX" = "yes"; then
33339 cat >>confdefs.h <<\_ACEOF
33340 #define wxUSE_UNIX 1
33341 _ACEOF
33342
33343 fi
33344
33345
33346 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33347
33348 HAVE_DL_FUNCS=0
33349 HAVE_SHL_FUNCS=0
33350 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33351 if test "$USE_DARWIN" = 1; then
33352 HAVE_DL_FUNCS=1
33353 else
33354
33355 for ac_func in dlopen
33356 do
33357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33358 echo "$as_me:$LINENO: checking for $ac_func" >&5
33359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33360 if eval "test \"\${$as_ac_var+set}\" = set"; then
33361 echo $ECHO_N "(cached) $ECHO_C" >&6
33362 else
33363 cat >conftest.$ac_ext <<_ACEOF
33364 /* confdefs.h. */
33365 _ACEOF
33366 cat confdefs.h >>conftest.$ac_ext
33367 cat >>conftest.$ac_ext <<_ACEOF
33368 /* end confdefs.h. */
33369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33371 #define $ac_func innocuous_$ac_func
33372
33373 /* System header to define __stub macros and hopefully few prototypes,
33374 which can conflict with char $ac_func (); below.
33375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33376 <limits.h> exists even on freestanding compilers. */
33377
33378 #ifdef __STDC__
33379 # include <limits.h>
33380 #else
33381 # include <assert.h>
33382 #endif
33383
33384 #undef $ac_func
33385
33386 /* Override any gcc2 internal prototype to avoid an error. */
33387 #ifdef __cplusplus
33388 extern "C"
33389 {
33390 #endif
33391 /* We use char because int might match the return type of a gcc2
33392 builtin and then its argument prototype would still apply. */
33393 char $ac_func ();
33394 /* The GNU C library defines this for functions which it implements
33395 to always fail with ENOSYS. Some functions are actually named
33396 something starting with __ and the normal name is an alias. */
33397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33398 choke me
33399 #else
33400 char (*f) () = $ac_func;
33401 #endif
33402 #ifdef __cplusplus
33403 }
33404 #endif
33405
33406 int
33407 main ()
33408 {
33409 return f != $ac_func;
33410 ;
33411 return 0;
33412 }
33413 _ACEOF
33414 rm -f conftest.$ac_objext conftest$ac_exeext
33415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33416 (eval $ac_link) 2>conftest.er1
33417 ac_status=$?
33418 grep -v '^ *+' conftest.er1 >conftest.err
33419 rm -f conftest.er1
33420 cat conftest.err >&5
33421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422 (exit $ac_status); } &&
33423 { ac_try='test -z "$ac_c_werror_flag"
33424 || test ! -s conftest.err'
33425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33426 (eval $ac_try) 2>&5
33427 ac_status=$?
33428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429 (exit $ac_status); }; } &&
33430 { ac_try='test -s conftest$ac_exeext'
33431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33432 (eval $ac_try) 2>&5
33433 ac_status=$?
33434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); }; }; then
33436 eval "$as_ac_var=yes"
33437 else
33438 echo "$as_me: failed program was:" >&5
33439 sed 's/^/| /' conftest.$ac_ext >&5
33440
33441 eval "$as_ac_var=no"
33442 fi
33443 rm -f conftest.err conftest.$ac_objext \
33444 conftest$ac_exeext conftest.$ac_ext
33445 fi
33446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33448 if test `eval echo '${'$as_ac_var'}'` = yes; then
33449 cat >>confdefs.h <<_ACEOF
33450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33451 _ACEOF
33452
33453 cat >>confdefs.h <<\_ACEOF
33454 #define HAVE_DLOPEN 1
33455 _ACEOF
33456
33457 HAVE_DL_FUNCS=1
33458
33459 else
33460
33461 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33464 echo $ECHO_N "(cached) $ECHO_C" >&6
33465 else
33466 ac_check_lib_save_LIBS=$LIBS
33467 LIBS="-ldl $LIBS"
33468 cat >conftest.$ac_ext <<_ACEOF
33469 /* confdefs.h. */
33470 _ACEOF
33471 cat confdefs.h >>conftest.$ac_ext
33472 cat >>conftest.$ac_ext <<_ACEOF
33473 /* end confdefs.h. */
33474
33475 /* Override any gcc2 internal prototype to avoid an error. */
33476 #ifdef __cplusplus
33477 extern "C"
33478 #endif
33479 /* We use char because int might match the return type of a gcc2
33480 builtin and then its argument prototype would still apply. */
33481 char dlopen ();
33482 int
33483 main ()
33484 {
33485 dlopen ();
33486 ;
33487 return 0;
33488 }
33489 _ACEOF
33490 rm -f conftest.$ac_objext conftest$ac_exeext
33491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33492 (eval $ac_link) 2>conftest.er1
33493 ac_status=$?
33494 grep -v '^ *+' conftest.er1 >conftest.err
33495 rm -f conftest.er1
33496 cat conftest.err >&5
33497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33498 (exit $ac_status); } &&
33499 { ac_try='test -z "$ac_c_werror_flag"
33500 || test ! -s conftest.err'
33501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33502 (eval $ac_try) 2>&5
33503 ac_status=$?
33504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33505 (exit $ac_status); }; } &&
33506 { ac_try='test -s conftest$ac_exeext'
33507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33508 (eval $ac_try) 2>&5
33509 ac_status=$?
33510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33511 (exit $ac_status); }; }; then
33512 ac_cv_lib_dl_dlopen=yes
33513 else
33514 echo "$as_me: failed program was:" >&5
33515 sed 's/^/| /' conftest.$ac_ext >&5
33516
33517 ac_cv_lib_dl_dlopen=no
33518 fi
33519 rm -f conftest.err conftest.$ac_objext \
33520 conftest$ac_exeext conftest.$ac_ext
33521 LIBS=$ac_check_lib_save_LIBS
33522 fi
33523 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33524 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33525 if test $ac_cv_lib_dl_dlopen = yes; then
33526
33527 cat >>confdefs.h <<\_ACEOF
33528 #define HAVE_DLOPEN 1
33529 _ACEOF
33530
33531 HAVE_DL_FUNCS=1
33532 DL_LINK=" -ldl$DL_LINK"
33533
33534 else
33535
33536
33537 for ac_func in shl_load
33538 do
33539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33540 echo "$as_me:$LINENO: checking for $ac_func" >&5
33541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33542 if eval "test \"\${$as_ac_var+set}\" = set"; then
33543 echo $ECHO_N "(cached) $ECHO_C" >&6
33544 else
33545 cat >conftest.$ac_ext <<_ACEOF
33546 /* confdefs.h. */
33547 _ACEOF
33548 cat confdefs.h >>conftest.$ac_ext
33549 cat >>conftest.$ac_ext <<_ACEOF
33550 /* end confdefs.h. */
33551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33553 #define $ac_func innocuous_$ac_func
33554
33555 /* System header to define __stub macros and hopefully few prototypes,
33556 which can conflict with char $ac_func (); below.
33557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33558 <limits.h> exists even on freestanding compilers. */
33559
33560 #ifdef __STDC__
33561 # include <limits.h>
33562 #else
33563 # include <assert.h>
33564 #endif
33565
33566 #undef $ac_func
33567
33568 /* Override any gcc2 internal prototype to avoid an error. */
33569 #ifdef __cplusplus
33570 extern "C"
33571 {
33572 #endif
33573 /* We use char because int might match the return type of a gcc2
33574 builtin and then its argument prototype would still apply. */
33575 char $ac_func ();
33576 /* The GNU C library defines this for functions which it implements
33577 to always fail with ENOSYS. Some functions are actually named
33578 something starting with __ and the normal name is an alias. */
33579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33580 choke me
33581 #else
33582 char (*f) () = $ac_func;
33583 #endif
33584 #ifdef __cplusplus
33585 }
33586 #endif
33587
33588 int
33589 main ()
33590 {
33591 return f != $ac_func;
33592 ;
33593 return 0;
33594 }
33595 _ACEOF
33596 rm -f conftest.$ac_objext conftest$ac_exeext
33597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33598 (eval $ac_link) 2>conftest.er1
33599 ac_status=$?
33600 grep -v '^ *+' conftest.er1 >conftest.err
33601 rm -f conftest.er1
33602 cat conftest.err >&5
33603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604 (exit $ac_status); } &&
33605 { ac_try='test -z "$ac_c_werror_flag"
33606 || test ! -s conftest.err'
33607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33608 (eval $ac_try) 2>&5
33609 ac_status=$?
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611 (exit $ac_status); }; } &&
33612 { ac_try='test -s conftest$ac_exeext'
33613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33614 (eval $ac_try) 2>&5
33615 ac_status=$?
33616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33617 (exit $ac_status); }; }; then
33618 eval "$as_ac_var=yes"
33619 else
33620 echo "$as_me: failed program was:" >&5
33621 sed 's/^/| /' conftest.$ac_ext >&5
33622
33623 eval "$as_ac_var=no"
33624 fi
33625 rm -f conftest.err conftest.$ac_objext \
33626 conftest$ac_exeext conftest.$ac_ext
33627 fi
33628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33630 if test `eval echo '${'$as_ac_var'}'` = yes; then
33631 cat >>confdefs.h <<_ACEOF
33632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33633 _ACEOF
33634
33635 cat >>confdefs.h <<\_ACEOF
33636 #define HAVE_SHL_LOAD 1
33637 _ACEOF
33638
33639 HAVE_SHL_FUNCS=1
33640
33641 else
33642
33643 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33644 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33645 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33646 echo $ECHO_N "(cached) $ECHO_C" >&6
33647 else
33648 ac_check_lib_save_LIBS=$LIBS
33649 LIBS="-lshl_load $LIBS"
33650 cat >conftest.$ac_ext <<_ACEOF
33651 /* confdefs.h. */
33652 _ACEOF
33653 cat confdefs.h >>conftest.$ac_ext
33654 cat >>conftest.$ac_ext <<_ACEOF
33655 /* end confdefs.h. */
33656
33657 /* Override any gcc2 internal prototype to avoid an error. */
33658 #ifdef __cplusplus
33659 extern "C"
33660 #endif
33661 /* We use char because int might match the return type of a gcc2
33662 builtin and then its argument prototype would still apply. */
33663 char dld ();
33664 int
33665 main ()
33666 {
33667 dld ();
33668 ;
33669 return 0;
33670 }
33671 _ACEOF
33672 rm -f conftest.$ac_objext conftest$ac_exeext
33673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33674 (eval $ac_link) 2>conftest.er1
33675 ac_status=$?
33676 grep -v '^ *+' conftest.er1 >conftest.err
33677 rm -f conftest.er1
33678 cat conftest.err >&5
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); } &&
33681 { ac_try='test -z "$ac_c_werror_flag"
33682 || test ! -s conftest.err'
33683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33684 (eval $ac_try) 2>&5
33685 ac_status=$?
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); }; } &&
33688 { ac_try='test -s conftest$ac_exeext'
33689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33690 (eval $ac_try) 2>&5
33691 ac_status=$?
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); }; }; then
33694 ac_cv_lib_shl_load_dld=yes
33695 else
33696 echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33698
33699 ac_cv_lib_shl_load_dld=no
33700 fi
33701 rm -f conftest.err conftest.$ac_objext \
33702 conftest$ac_exeext conftest.$ac_ext
33703 LIBS=$ac_check_lib_save_LIBS
33704 fi
33705 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33706 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33707 if test $ac_cv_lib_shl_load_dld = yes; then
33708
33709 HAVE_SHL_FUNCS=1
33710 DL_LINK=" -ldld$DL_LINK"
33711
33712 fi
33713
33714
33715 fi
33716 done
33717
33718
33719 fi
33720
33721
33722 fi
33723 done
33724
33725
33726 if test "$HAVE_DL_FUNCS" = 1; then
33727
33728 for ac_func in dlerror
33729 do
33730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33731 echo "$as_me:$LINENO: checking for $ac_func" >&5
33732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33733 if eval "test \"\${$as_ac_var+set}\" = set"; then
33734 echo $ECHO_N "(cached) $ECHO_C" >&6
33735 else
33736 cat >conftest.$ac_ext <<_ACEOF
33737 /* confdefs.h. */
33738 _ACEOF
33739 cat confdefs.h >>conftest.$ac_ext
33740 cat >>conftest.$ac_ext <<_ACEOF
33741 /* end confdefs.h. */
33742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33744 #define $ac_func innocuous_$ac_func
33745
33746 /* System header to define __stub macros and hopefully few prototypes,
33747 which can conflict with char $ac_func (); below.
33748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33749 <limits.h> exists even on freestanding compilers. */
33750
33751 #ifdef __STDC__
33752 # include <limits.h>
33753 #else
33754 # include <assert.h>
33755 #endif
33756
33757 #undef $ac_func
33758
33759 /* Override any gcc2 internal prototype to avoid an error. */
33760 #ifdef __cplusplus
33761 extern "C"
33762 {
33763 #endif
33764 /* We use char because int might match the return type of a gcc2
33765 builtin and then its argument prototype would still apply. */
33766 char $ac_func ();
33767 /* The GNU C library defines this for functions which it implements
33768 to always fail with ENOSYS. Some functions are actually named
33769 something starting with __ and the normal name is an alias. */
33770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33771 choke me
33772 #else
33773 char (*f) () = $ac_func;
33774 #endif
33775 #ifdef __cplusplus
33776 }
33777 #endif
33778
33779 int
33780 main ()
33781 {
33782 return f != $ac_func;
33783 ;
33784 return 0;
33785 }
33786 _ACEOF
33787 rm -f conftest.$ac_objext conftest$ac_exeext
33788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33789 (eval $ac_link) 2>conftest.er1
33790 ac_status=$?
33791 grep -v '^ *+' conftest.er1 >conftest.err
33792 rm -f conftest.er1
33793 cat conftest.err >&5
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); } &&
33796 { ac_try='test -z "$ac_c_werror_flag"
33797 || test ! -s conftest.err'
33798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33799 (eval $ac_try) 2>&5
33800 ac_status=$?
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); }; } &&
33803 { ac_try='test -s conftest$ac_exeext'
33804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33805 (eval $ac_try) 2>&5
33806 ac_status=$?
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; }; then
33809 eval "$as_ac_var=yes"
33810 else
33811 echo "$as_me: failed program was:" >&5
33812 sed 's/^/| /' conftest.$ac_ext >&5
33813
33814 eval "$as_ac_var=no"
33815 fi
33816 rm -f conftest.err conftest.$ac_objext \
33817 conftest$ac_exeext conftest.$ac_ext
33818 fi
33819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33821 if test `eval echo '${'$as_ac_var'}'` = yes; then
33822 cat >>confdefs.h <<_ACEOF
33823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33824 _ACEOF
33825 cat >>confdefs.h <<\_ACEOF
33826 #define HAVE_DLERROR 1
33827 _ACEOF
33828
33829 else
33830
33831 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33832 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33833 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33834 echo $ECHO_N "(cached) $ECHO_C" >&6
33835 else
33836 ac_check_lib_save_LIBS=$LIBS
33837 LIBS="-ldl $LIBS"
33838 cat >conftest.$ac_ext <<_ACEOF
33839 /* confdefs.h. */
33840 _ACEOF
33841 cat confdefs.h >>conftest.$ac_ext
33842 cat >>conftest.$ac_ext <<_ACEOF
33843 /* end confdefs.h. */
33844
33845 /* Override any gcc2 internal prototype to avoid an error. */
33846 #ifdef __cplusplus
33847 extern "C"
33848 #endif
33849 /* We use char because int might match the return type of a gcc2
33850 builtin and then its argument prototype would still apply. */
33851 char dlerror ();
33852 int
33853 main ()
33854 {
33855 dlerror ();
33856 ;
33857 return 0;
33858 }
33859 _ACEOF
33860 rm -f conftest.$ac_objext conftest$ac_exeext
33861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33862 (eval $ac_link) 2>conftest.er1
33863 ac_status=$?
33864 grep -v '^ *+' conftest.er1 >conftest.err
33865 rm -f conftest.er1
33866 cat conftest.err >&5
33867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868 (exit $ac_status); } &&
33869 { ac_try='test -z "$ac_c_werror_flag"
33870 || test ! -s conftest.err'
33871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33872 (eval $ac_try) 2>&5
33873 ac_status=$?
33874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33875 (exit $ac_status); }; } &&
33876 { ac_try='test -s conftest$ac_exeext'
33877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33878 (eval $ac_try) 2>&5
33879 ac_status=$?
33880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881 (exit $ac_status); }; }; then
33882 ac_cv_lib_dl_dlerror=yes
33883 else
33884 echo "$as_me: failed program was:" >&5
33885 sed 's/^/| /' conftest.$ac_ext >&5
33886
33887 ac_cv_lib_dl_dlerror=no
33888 fi
33889 rm -f conftest.err conftest.$ac_objext \
33890 conftest$ac_exeext conftest.$ac_ext
33891 LIBS=$ac_check_lib_save_LIBS
33892 fi
33893 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33894 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33895 if test $ac_cv_lib_dl_dlerror = yes; then
33896 cat >>confdefs.h <<\_ACEOF
33897 #define HAVE_DLERROR 1
33898 _ACEOF
33899
33900 fi
33901
33902
33903
33904 fi
33905 done
33906
33907 fi
33908 fi
33909
33910 if test "$HAVE_DL_FUNCS" = 0; then
33911 if test "$HAVE_SHL_FUNCS" = 0; then
33912 if test "$USE_UNIX" = 1; then
33913 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33914 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33915 wxUSE_DYNAMIC_LOADER=no
33916 wxUSE_DYNLIB_CLASS=no
33917 else
33918 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33919 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33920 fi
33921 fi
33922 fi
33923 fi
33924 fi
33925
33926 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33927 cat >>confdefs.h <<\_ACEOF
33928 #define wxUSE_DYNAMIC_LOADER 1
33929 _ACEOF
33930
33931 fi
33932 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33933 cat >>confdefs.h <<\_ACEOF
33934 #define wxUSE_DYNLIB_CLASS 1
33935 _ACEOF
33936
33937 fi
33938
33939
33940
33941 if test "$wxUSE_PLUGINS" = "yes" ; then
33942 if test "$wxUSE_SHARED" = "no" ; then
33943 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33944 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33945 wxUSE_PLUGINS=no
33946 fi
33947 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33948 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33949 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33950 wxUSE_PLUGINS=no
33951 fi
33952 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33953 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33954 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33955 wxUSE_PLUGINS=no
33956 fi
33957 if test "$wxUSE_PLUGINS" = "yes" ; then
33958 cat >>confdefs.h <<\_ACEOF
33959 #define wxUSE_PLUGINS 1
33960 _ACEOF
33961
33962 fi
33963 fi
33964
33965
33966 if test "$wxUSE_STL" = "yes"; then
33967 cat >>confdefs.h <<\_ACEOF
33968 #define wxUSE_STL 1
33969 _ACEOF
33970
33971 fi
33972
33973 if test "$wxUSE_APPLE_IEEE" = "yes"; then
33974 cat >>confdefs.h <<\_ACEOF
33975 #define wxUSE_APPLE_IEEE 1
33976 _ACEOF
33977
33978 fi
33979
33980 if test "$wxUSE_TIMER" = "yes"; then
33981 cat >>confdefs.h <<\_ACEOF
33982 #define wxUSE_TIMER 1
33983 _ACEOF
33984
33985 fi
33986
33987 WITH_PLUGIN_SDL=0
33988 if test "$wxUSE_SOUND" = "yes"; then
33989 if test "$USE_UNIX" = "1" ; then
33990
33991 for ac_header in sys/soundcard.h
33992 do
33993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33995 echo "$as_me:$LINENO: checking for $ac_header" >&5
33996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33998 echo $ECHO_N "(cached) $ECHO_C" >&6
33999 fi
34000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34002 else
34003 # Is the header compilable?
34004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34006 cat >conftest.$ac_ext <<_ACEOF
34007 /* confdefs.h. */
34008 _ACEOF
34009 cat confdefs.h >>conftest.$ac_ext
34010 cat >>conftest.$ac_ext <<_ACEOF
34011 /* end confdefs.h. */
34012 $ac_includes_default
34013 #include <$ac_header>
34014 _ACEOF
34015 rm -f conftest.$ac_objext
34016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34017 (eval $ac_compile) 2>conftest.er1
34018 ac_status=$?
34019 grep -v '^ *+' conftest.er1 >conftest.err
34020 rm -f conftest.er1
34021 cat conftest.err >&5
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); } &&
34024 { ac_try='test -z "$ac_c_werror_flag"
34025 || test ! -s conftest.err'
34026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34027 (eval $ac_try) 2>&5
34028 ac_status=$?
34029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030 (exit $ac_status); }; } &&
34031 { ac_try='test -s conftest.$ac_objext'
34032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34033 (eval $ac_try) 2>&5
34034 ac_status=$?
34035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); }; }; then
34037 ac_header_compiler=yes
34038 else
34039 echo "$as_me: failed program was:" >&5
34040 sed 's/^/| /' conftest.$ac_ext >&5
34041
34042 ac_header_compiler=no
34043 fi
34044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34046 echo "${ECHO_T}$ac_header_compiler" >&6
34047
34048 # Is the header present?
34049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34051 cat >conftest.$ac_ext <<_ACEOF
34052 /* confdefs.h. */
34053 _ACEOF
34054 cat confdefs.h >>conftest.$ac_ext
34055 cat >>conftest.$ac_ext <<_ACEOF
34056 /* end confdefs.h. */
34057 #include <$ac_header>
34058 _ACEOF
34059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34061 ac_status=$?
34062 grep -v '^ *+' conftest.er1 >conftest.err
34063 rm -f conftest.er1
34064 cat conftest.err >&5
34065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066 (exit $ac_status); } >/dev/null; then
34067 if test -s conftest.err; then
34068 ac_cpp_err=$ac_c_preproc_warn_flag
34069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34070 else
34071 ac_cpp_err=
34072 fi
34073 else
34074 ac_cpp_err=yes
34075 fi
34076 if test -z "$ac_cpp_err"; then
34077 ac_header_preproc=yes
34078 else
34079 echo "$as_me: failed program was:" >&5
34080 sed 's/^/| /' conftest.$ac_ext >&5
34081
34082 ac_header_preproc=no
34083 fi
34084 rm -f conftest.err conftest.$ac_ext
34085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34086 echo "${ECHO_T}$ac_header_preproc" >&6
34087
34088 # So? What about this header?
34089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34090 yes:no: )
34091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34095 ac_header_preproc=yes
34096 ;;
34097 no:yes:* )
34098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34110 (
34111 cat <<\_ASBOX
34112 ## ----------------------------------------- ##
34113 ## Report this to wx-dev@lists.wxwindows.org ##
34114 ## ----------------------------------------- ##
34115 _ASBOX
34116 ) |
34117 sed "s/^/$as_me: WARNING: /" >&2
34118 ;;
34119 esac
34120 echo "$as_me:$LINENO: checking for $ac_header" >&5
34121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34123 echo $ECHO_N "(cached) $ECHO_C" >&6
34124 else
34125 eval "$as_ac_Header=\$ac_header_preproc"
34126 fi
34127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34129
34130 fi
34131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34132 cat >>confdefs.h <<_ACEOF
34133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34134 _ACEOF
34135
34136 fi
34137
34138 done
34139
34140
34141 if test "$wxUSE_LIBSDL" != "no"; then
34142
34143 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34144 if test "${with_sdl_prefix+set}" = set; then
34145 withval="$with_sdl_prefix"
34146 sdl_prefix="$withval"
34147 else
34148 sdl_prefix=""
34149 fi;
34150
34151 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34152 if test "${with_sdl_exec_prefix+set}" = set; then
34153 withval="$with_sdl_exec_prefix"
34154 sdl_exec_prefix="$withval"
34155 else
34156 sdl_exec_prefix=""
34157 fi;
34158 # Check whether --enable-sdltest or --disable-sdltest was given.
34159 if test "${enable_sdltest+set}" = set; then
34160 enableval="$enable_sdltest"
34161
34162 else
34163 enable_sdltest=yes
34164 fi;
34165
34166 if test x$sdl_exec_prefix != x ; then
34167 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34168 if test x${SDL_CONFIG+set} != xset ; then
34169 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34170 fi
34171 fi
34172 if test x$sdl_prefix != x ; then
34173 sdl_args="$sdl_args --prefix=$sdl_prefix"
34174 if test x${SDL_CONFIG+set} != xset ; then
34175 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34176 fi
34177 fi
34178
34179
34180 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34181 # Extract the first word of "sdl-config", so it can be a program name with args.
34182 set dummy sdl-config; ac_word=$2
34183 echo "$as_me:$LINENO: checking for $ac_word" >&5
34184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34185 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34186 echo $ECHO_N "(cached) $ECHO_C" >&6
34187 else
34188 case $SDL_CONFIG in
34189 [\\/]* | ?:[\\/]*)
34190 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34191 ;;
34192 *)
34193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34194 for as_dir in $PATH
34195 do
34196 IFS=$as_save_IFS
34197 test -z "$as_dir" && as_dir=.
34198 for ac_exec_ext in '' $ac_executable_extensions; do
34199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34200 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34202 break 2
34203 fi
34204 done
34205 done
34206
34207 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34208 ;;
34209 esac
34210 fi
34211 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34212
34213 if test -n "$SDL_CONFIG"; then
34214 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34215 echo "${ECHO_T}$SDL_CONFIG" >&6
34216 else
34217 echo "$as_me:$LINENO: result: no" >&5
34218 echo "${ECHO_T}no" >&6
34219 fi
34220
34221 min_sdl_version=1.2.0
34222 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34223 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34224 no_sdl=""
34225 if test "$SDL_CONFIG" = "no" ; then
34226 no_sdl=yes
34227 else
34228 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34229 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34230
34231 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34232 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34233 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34234 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34235 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34236 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34237 if test "x$enable_sdltest" = "xyes" ; then
34238 ac_save_CFLAGS="$CFLAGS"
34239 ac_save_LIBS="$LIBS"
34240 CFLAGS="$CFLAGS $SDL_CFLAGS"
34241 LIBS="$LIBS $SDL_LIBS"
34242 rm -f conf.sdltest
34243 if test "$cross_compiling" = yes; then
34244 echo $ac_n "cross compiling; assumed OK... $ac_c"
34245 else
34246 cat >conftest.$ac_ext <<_ACEOF
34247 /* confdefs.h. */
34248 _ACEOF
34249 cat confdefs.h >>conftest.$ac_ext
34250 cat >>conftest.$ac_ext <<_ACEOF
34251 /* end confdefs.h. */
34252
34253 #include <stdio.h>
34254 #include <stdlib.h>
34255 #include <string.h>
34256 #include "SDL.h"
34257
34258 char*
34259 my_strdup (char *str)
34260 {
34261 char *new_str;
34262
34263 if (str)
34264 {
34265 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34266 strcpy (new_str, str);
34267 }
34268 else
34269 new_str = NULL;
34270
34271 return new_str;
34272 }
34273
34274 int main (int argc, char *argv[])
34275 {
34276 int major, minor, micro;
34277 char *tmp_version;
34278
34279 /* This hangs on some systems (?)
34280 system ("touch conf.sdltest");
34281 */
34282 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34283
34284 /* HP/UX 9 (%@#!) writes to sscanf strings */
34285 tmp_version = my_strdup("$min_sdl_version");
34286 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34287 printf("%s, bad version string\n", "$min_sdl_version");
34288 exit(1);
34289 }
34290
34291 if (($sdl_major_version > major) ||
34292 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34293 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34294 {
34295 return 0;
34296 }
34297 else
34298 {
34299 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34300 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34301 printf("*** best to upgrade to the required version.\n");
34302 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34303 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34304 printf("*** config.cache before re-running configure\n");
34305 return 1;
34306 }
34307 }
34308
34309
34310 _ACEOF
34311 rm -f conftest$ac_exeext
34312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34313 (eval $ac_link) 2>&5
34314 ac_status=$?
34315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34318 (eval $ac_try) 2>&5
34319 ac_status=$?
34320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321 (exit $ac_status); }; }; then
34322 :
34323 else
34324 echo "$as_me: program exited with status $ac_status" >&5
34325 echo "$as_me: failed program was:" >&5
34326 sed 's/^/| /' conftest.$ac_ext >&5
34327
34328 ( exit $ac_status )
34329 no_sdl=yes
34330 fi
34331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34332 fi
34333 CFLAGS="$ac_save_CFLAGS"
34334 LIBS="$ac_save_LIBS"
34335 fi
34336 fi
34337 if test "x$no_sdl" = x ; then
34338 echo "$as_me:$LINENO: result: yes" >&5
34339 echo "${ECHO_T}yes" >&6
34340
34341 EXTRALIBS_SDL="$SDL_LIBS"
34342 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34343 cat >>confdefs.h <<\_ACEOF
34344 #define wxUSE_LIBSDL 1
34345 _ACEOF
34346
34347
34348 else
34349 echo "$as_me:$LINENO: result: no" >&5
34350 echo "${ECHO_T}no" >&6
34351 if test "$SDL_CONFIG" = "no" ; then
34352 echo "*** The sdl-config script installed by SDL could not be found"
34353 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34354 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34355 echo "*** full path to sdl-config."
34356 else
34357 if test -f conf.sdltest ; then
34358 :
34359 else
34360 echo "*** Could not run SDL test program, checking why..."
34361 CFLAGS="$CFLAGS $SDL_CFLAGS"
34362 LIBS="$LIBS $SDL_LIBS"
34363 cat >conftest.$ac_ext <<_ACEOF
34364 /* confdefs.h. */
34365 _ACEOF
34366 cat confdefs.h >>conftest.$ac_ext
34367 cat >>conftest.$ac_ext <<_ACEOF
34368 /* end confdefs.h. */
34369
34370 #include <stdio.h>
34371 #include "SDL.h"
34372
34373 int main(int argc, char *argv[])
34374 { return 0; }
34375 #undef main
34376 #define main K_and_R_C_main
34377
34378 int
34379 main ()
34380 {
34381 return 0;
34382 ;
34383 return 0;
34384 }
34385 _ACEOF
34386 rm -f conftest.$ac_objext conftest$ac_exeext
34387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34388 (eval $ac_link) 2>conftest.er1
34389 ac_status=$?
34390 grep -v '^ *+' conftest.er1 >conftest.err
34391 rm -f conftest.er1
34392 cat conftest.err >&5
34393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); } &&
34395 { ac_try='test -z "$ac_c_werror_flag"
34396 || test ! -s conftest.err'
34397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34398 (eval $ac_try) 2>&5
34399 ac_status=$?
34400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401 (exit $ac_status); }; } &&
34402 { ac_try='test -s conftest$ac_exeext'
34403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34404 (eval $ac_try) 2>&5
34405 ac_status=$?
34406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34407 (exit $ac_status); }; }; then
34408 echo "*** The test program compiled, but did not run. This usually means"
34409 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34410 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34411 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34412 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34413 echo "*** is required on your system"
34414 echo "***"
34415 echo "*** If you have an old version installed, it is best to remove it, although"
34416 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34417 else
34418 echo "$as_me: failed program was:" >&5
34419 sed 's/^/| /' conftest.$ac_ext >&5
34420
34421 echo "*** The test program failed to compile or link. See the file config.log for the"
34422 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34423 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34424 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34425 fi
34426 rm -f conftest.err conftest.$ac_objext \
34427 conftest$ac_exeext conftest.$ac_ext
34428 CFLAGS="$ac_save_CFLAGS"
34429 LIBS="$ac_save_LIBS"
34430 fi
34431 fi
34432 SDL_CFLAGS=""
34433 SDL_LIBS=""
34434 wxUSE_LIBSDL="no"
34435 fi
34436
34437
34438 rm -f conf.sdltest
34439
34440 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34441 WITH_PLUGIN_SDL=1
34442 fi
34443 fi
34444 fi
34445
34446 cat >>confdefs.h <<\_ACEOF
34447 #define wxUSE_SOUND 1
34448 _ACEOF
34449
34450 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34451 fi
34452
34453 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34454 cat >>confdefs.h <<\_ACEOF
34455 #define wxUSE_CMDLINE_PARSER 1
34456 _ACEOF
34457
34458 fi
34459
34460 if test "$wxUSE_STOPWATCH" = "yes"; then
34461 cat >>confdefs.h <<\_ACEOF
34462 #define wxUSE_STOPWATCH 1
34463 _ACEOF
34464
34465 fi
34466
34467 if test "$wxUSE_DATETIME" = "yes"; then
34468 cat >>confdefs.h <<\_ACEOF
34469 #define wxUSE_DATETIME 1
34470 _ACEOF
34471
34472 fi
34473
34474 if test "$wxUSE_FILE" = "yes"; then
34475 cat >>confdefs.h <<\_ACEOF
34476 #define wxUSE_FILE 1
34477 _ACEOF
34478
34479 fi
34480
34481 if test "$wxUSE_FFILE" = "yes"; then
34482 cat >>confdefs.h <<\_ACEOF
34483 #define wxUSE_FFILE 1
34484 _ACEOF
34485
34486 fi
34487
34488 if test "$wxUSE_FILESYSTEM" = "yes"; then
34489 cat >>confdefs.h <<\_ACEOF
34490 #define wxUSE_FILESYSTEM 1
34491 _ACEOF
34492
34493 fi
34494
34495 if test "$wxUSE_FS_ZIP" = "yes"; then
34496 cat >>confdefs.h <<\_ACEOF
34497 #define wxUSE_FS_ZIP 1
34498 _ACEOF
34499
34500 fi
34501
34502 if test "$wxUSE_ZIPSTREAM" = "yes"; then
34503 cat >>confdefs.h <<\_ACEOF
34504 #define wxUSE_ZIPSTREAM 1
34505 _ACEOF
34506
34507 fi
34508
34509 if test "$wxUSE_GZSTREAM" = "yes"; then
34510 cat >>confdefs.h <<\_ACEOF
34511 #define wxUSE_GZSTREAM 1
34512 _ACEOF
34513
34514 fi
34515
34516 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34517 cat >>confdefs.h <<\_ACEOF
34518 #define wxUSE_ON_FATAL_EXCEPTION 1
34519 _ACEOF
34520
34521 fi
34522
34523 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34524 cat >>confdefs.h <<\_ACEOF
34525 #define wxUSE_SNGLINST_CHECKER 1
34526 _ACEOF
34527
34528 fi
34529
34530 if test "$wxUSE_BUSYINFO" = "yes"; then
34531 cat >>confdefs.h <<\_ACEOF
34532 #define wxUSE_BUSYINFO 1
34533 _ACEOF
34534
34535 fi
34536
34537 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34538 cat >>confdefs.h <<\_ACEOF
34539 #define wxUSE_STD_IOSTREAM 1
34540 _ACEOF
34541
34542 fi
34543
34544 if test "$wxUSE_TEXTBUFFER" = "yes"; then
34545 cat >>confdefs.h <<\_ACEOF
34546 #define wxUSE_TEXTBUFFER 1
34547 _ACEOF
34548
34549 fi
34550
34551 if test "$wxUSE_TEXTFILE" = "yes"; then
34552 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34553 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34554 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34555 else
34556 cat >>confdefs.h <<\_ACEOF
34557 #define wxUSE_TEXTFILE 1
34558 _ACEOF
34559
34560 fi
34561 fi
34562
34563 if test "$wxUSE_CONFIG" = "yes" ; then
34564 if test "$wxUSE_TEXTFILE" != "yes"; then
34565 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34566 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34567 else
34568 cat >>confdefs.h <<\_ACEOF
34569 #define wxUSE_CONFIG 1
34570 _ACEOF
34571
34572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34573 fi
34574 fi
34575
34576 if test "$wxUSE_INTL" = "yes" ; then
34577 if test "$wxUSE_FILE" != "yes"; then
34578 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34579 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34580 else
34581 cat >>confdefs.h <<\_ACEOF
34582 #define wxUSE_INTL 1
34583 _ACEOF
34584
34585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34586 GUIDIST="$GUIDIST INTL_DIST"
34587 fi
34588 fi
34589
34590 if test "$wxUSE_LOG" = "yes"; then
34591 cat >>confdefs.h <<\_ACEOF
34592 #define wxUSE_LOG 1
34593 _ACEOF
34594
34595
34596 if test "$wxUSE_LOGGUI" = "yes"; then
34597 cat >>confdefs.h <<\_ACEOF
34598 #define wxUSE_LOGGUI 1
34599 _ACEOF
34600
34601 fi
34602
34603 if test "$wxUSE_LOGWINDOW" = "yes"; then
34604 cat >>confdefs.h <<\_ACEOF
34605 #define wxUSE_LOGWINDOW 1
34606 _ACEOF
34607
34608 fi
34609
34610 if test "$wxUSE_LOGDIALOG" = "yes"; then
34611 cat >>confdefs.h <<\_ACEOF
34612 #define wxUSE_LOG_DIALOG 1
34613 _ACEOF
34614
34615 fi
34616 fi
34617
34618 if test "$wxUSE_LONGLONG" = "yes"; then
34619 cat >>confdefs.h <<\_ACEOF
34620 #define wxUSE_LONGLONG 1
34621 _ACEOF
34622
34623 fi
34624
34625 if test "$wxUSE_GEOMETRY" = "yes"; then
34626 cat >>confdefs.h <<\_ACEOF
34627 #define wxUSE_GEOMETRY 1
34628 _ACEOF
34629
34630 fi
34631
34632 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34633 cat >>confdefs.h <<\_ACEOF
34634 #define wxUSE_DIALUP_MANAGER 1
34635 _ACEOF
34636
34637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34638 fi
34639
34640 if test "$wxUSE_STREAMS" = "yes" ; then
34641 cat >>confdefs.h <<\_ACEOF
34642 #define wxUSE_STREAMS 1
34643 _ACEOF
34644
34645 fi
34646
34647
34648 if test "$wxUSE_DATETIME" = "yes"; then
34649
34650 for ac_func in strptime
34651 do
34652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34653 echo "$as_me:$LINENO: checking for $ac_func" >&5
34654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34655 if eval "test \"\${$as_ac_var+set}\" = set"; then
34656 echo $ECHO_N "(cached) $ECHO_C" >&6
34657 else
34658 cat >conftest.$ac_ext <<_ACEOF
34659 /* confdefs.h. */
34660 _ACEOF
34661 cat confdefs.h >>conftest.$ac_ext
34662 cat >>conftest.$ac_ext <<_ACEOF
34663 /* end confdefs.h. */
34664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34666 #define $ac_func innocuous_$ac_func
34667
34668 /* System header to define __stub macros and hopefully few prototypes,
34669 which can conflict with char $ac_func (); below.
34670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34671 <limits.h> exists even on freestanding compilers. */
34672
34673 #ifdef __STDC__
34674 # include <limits.h>
34675 #else
34676 # include <assert.h>
34677 #endif
34678
34679 #undef $ac_func
34680
34681 /* Override any gcc2 internal prototype to avoid an error. */
34682 #ifdef __cplusplus
34683 extern "C"
34684 {
34685 #endif
34686 /* We use char because int might match the return type of a gcc2
34687 builtin and then its argument prototype would still apply. */
34688 char $ac_func ();
34689 /* The GNU C library defines this for functions which it implements
34690 to always fail with ENOSYS. Some functions are actually named
34691 something starting with __ and the normal name is an alias. */
34692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34693 choke me
34694 #else
34695 char (*f) () = $ac_func;
34696 #endif
34697 #ifdef __cplusplus
34698 }
34699 #endif
34700
34701 int
34702 main ()
34703 {
34704 return f != $ac_func;
34705 ;
34706 return 0;
34707 }
34708 _ACEOF
34709 rm -f conftest.$ac_objext conftest$ac_exeext
34710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34711 (eval $ac_link) 2>conftest.er1
34712 ac_status=$?
34713 grep -v '^ *+' conftest.er1 >conftest.err
34714 rm -f conftest.er1
34715 cat conftest.err >&5
34716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34717 (exit $ac_status); } &&
34718 { ac_try='test -z "$ac_c_werror_flag"
34719 || test ! -s conftest.err'
34720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34721 (eval $ac_try) 2>&5
34722 ac_status=$?
34723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34724 (exit $ac_status); }; } &&
34725 { ac_try='test -s conftest$ac_exeext'
34726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34727 (eval $ac_try) 2>&5
34728 ac_status=$?
34729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730 (exit $ac_status); }; }; then
34731 eval "$as_ac_var=yes"
34732 else
34733 echo "$as_me: failed program was:" >&5
34734 sed 's/^/| /' conftest.$ac_ext >&5
34735
34736 eval "$as_ac_var=no"
34737 fi
34738 rm -f conftest.err conftest.$ac_objext \
34739 conftest$ac_exeext conftest.$ac_ext
34740 fi
34741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34743 if test `eval echo '${'$as_ac_var'}'` = yes; then
34744 cat >>confdefs.h <<_ACEOF
34745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34746 _ACEOF
34747
34748 fi
34749 done
34750
34751
34752 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34753 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34754 if test "${wx_cv_var_timezone+set}" = set; then
34755 echo $ECHO_N "(cached) $ECHO_C" >&6
34756 else
34757
34758 cat >conftest.$ac_ext <<_ACEOF
34759 /* confdefs.h. */
34760 _ACEOF
34761 cat confdefs.h >>conftest.$ac_ext
34762 cat >>conftest.$ac_ext <<_ACEOF
34763 /* end confdefs.h. */
34764
34765 #include <time.h>
34766
34767 int
34768 main ()
34769 {
34770
34771 int tz;
34772 tz = timezone;
34773
34774 ;
34775 return 0;
34776 }
34777 _ACEOF
34778 rm -f conftest.$ac_objext
34779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34780 (eval $ac_compile) 2>conftest.er1
34781 ac_status=$?
34782 grep -v '^ *+' conftest.er1 >conftest.err
34783 rm -f conftest.er1
34784 cat conftest.err >&5
34785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786 (exit $ac_status); } &&
34787 { ac_try='test -z "$ac_c_werror_flag"
34788 || test ! -s conftest.err'
34789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34790 (eval $ac_try) 2>&5
34791 ac_status=$?
34792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793 (exit $ac_status); }; } &&
34794 { ac_try='test -s conftest.$ac_objext'
34795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34796 (eval $ac_try) 2>&5
34797 ac_status=$?
34798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799 (exit $ac_status); }; }; then
34800
34801 wx_cv_var_timezone=timezone
34802
34803 else
34804 echo "$as_me: failed program was:" >&5
34805 sed 's/^/| /' conftest.$ac_ext >&5
34806
34807
34808 cat >conftest.$ac_ext <<_ACEOF
34809 /* confdefs.h. */
34810 _ACEOF
34811 cat confdefs.h >>conftest.$ac_ext
34812 cat >>conftest.$ac_ext <<_ACEOF
34813 /* end confdefs.h. */
34814
34815 #include <time.h>
34816
34817 int
34818 main ()
34819 {
34820
34821 int tz;
34822 tz = _timezone;
34823
34824 ;
34825 return 0;
34826 }
34827 _ACEOF
34828 rm -f conftest.$ac_objext
34829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34830 (eval $ac_compile) 2>conftest.er1
34831 ac_status=$?
34832 grep -v '^ *+' conftest.er1 >conftest.err
34833 rm -f conftest.er1
34834 cat conftest.err >&5
34835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836 (exit $ac_status); } &&
34837 { ac_try='test -z "$ac_c_werror_flag"
34838 || test ! -s conftest.err'
34839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34840 (eval $ac_try) 2>&5
34841 ac_status=$?
34842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34843 (exit $ac_status); }; } &&
34844 { ac_try='test -s conftest.$ac_objext'
34845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34846 (eval $ac_try) 2>&5
34847 ac_status=$?
34848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849 (exit $ac_status); }; }; then
34850
34851 wx_cv_var_timezone=_timezone
34852
34853 else
34854 echo "$as_me: failed program was:" >&5
34855 sed 's/^/| /' conftest.$ac_ext >&5
34856
34857
34858 cat >conftest.$ac_ext <<_ACEOF
34859 /* confdefs.h. */
34860 _ACEOF
34861 cat confdefs.h >>conftest.$ac_ext
34862 cat >>conftest.$ac_ext <<_ACEOF
34863 /* end confdefs.h. */
34864
34865 #include <time.h>
34866
34867 int
34868 main ()
34869 {
34870
34871 int tz;
34872 tz = __timezone;
34873
34874 ;
34875 return 0;
34876 }
34877 _ACEOF
34878 rm -f conftest.$ac_objext
34879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34880 (eval $ac_compile) 2>conftest.er1
34881 ac_status=$?
34882 grep -v '^ *+' conftest.er1 >conftest.err
34883 rm -f conftest.er1
34884 cat conftest.err >&5
34885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886 (exit $ac_status); } &&
34887 { ac_try='test -z "$ac_c_werror_flag"
34888 || test ! -s conftest.err'
34889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34890 (eval $ac_try) 2>&5
34891 ac_status=$?
34892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34893 (exit $ac_status); }; } &&
34894 { ac_try='test -s conftest.$ac_objext'
34895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34896 (eval $ac_try) 2>&5
34897 ac_status=$?
34898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34899 (exit $ac_status); }; }; then
34900
34901 wx_cv_var_timezone=__timezone
34902
34903 else
34904 echo "$as_me: failed program was:" >&5
34905 sed 's/^/| /' conftest.$ac_ext >&5
34906
34907
34908 if test "$USE_DOS" = 0 ; then
34909 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34910 echo "$as_me: WARNING: no timezone variable" >&2;}
34911 fi
34912
34913
34914 fi
34915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34916
34917
34918 fi
34919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34920
34921
34922 fi
34923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34924
34925
34926 fi
34927 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34928 echo "${ECHO_T}$wx_cv_var_timezone" >&6
34929
34930 if test "x$wx_cv_var_timezone" != x ; then
34931 cat >>confdefs.h <<_ACEOF
34932 #define WX_TIMEZONE $wx_cv_var_timezone
34933 _ACEOF
34934
34935 fi
34936
34937
34938 for ac_func in localtime
34939 do
34940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34941 echo "$as_me:$LINENO: checking for $ac_func" >&5
34942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34943 if eval "test \"\${$as_ac_var+set}\" = set"; then
34944 echo $ECHO_N "(cached) $ECHO_C" >&6
34945 else
34946 cat >conftest.$ac_ext <<_ACEOF
34947 /* confdefs.h. */
34948 _ACEOF
34949 cat confdefs.h >>conftest.$ac_ext
34950 cat >>conftest.$ac_ext <<_ACEOF
34951 /* end confdefs.h. */
34952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34954 #define $ac_func innocuous_$ac_func
34955
34956 /* System header to define __stub macros and hopefully few prototypes,
34957 which can conflict with char $ac_func (); below.
34958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34959 <limits.h> exists even on freestanding compilers. */
34960
34961 #ifdef __STDC__
34962 # include <limits.h>
34963 #else
34964 # include <assert.h>
34965 #endif
34966
34967 #undef $ac_func
34968
34969 /* Override any gcc2 internal prototype to avoid an error. */
34970 #ifdef __cplusplus
34971 extern "C"
34972 {
34973 #endif
34974 /* We use char because int might match the return type of a gcc2
34975 builtin and then its argument prototype would still apply. */
34976 char $ac_func ();
34977 /* The GNU C library defines this for functions which it implements
34978 to always fail with ENOSYS. Some functions are actually named
34979 something starting with __ and the normal name is an alias. */
34980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34981 choke me
34982 #else
34983 char (*f) () = $ac_func;
34984 #endif
34985 #ifdef __cplusplus
34986 }
34987 #endif
34988
34989 int
34990 main ()
34991 {
34992 return f != $ac_func;
34993 ;
34994 return 0;
34995 }
34996 _ACEOF
34997 rm -f conftest.$ac_objext conftest$ac_exeext
34998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34999 (eval $ac_link) 2>conftest.er1
35000 ac_status=$?
35001 grep -v '^ *+' conftest.er1 >conftest.err
35002 rm -f conftest.er1
35003 cat conftest.err >&5
35004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35005 (exit $ac_status); } &&
35006 { ac_try='test -z "$ac_c_werror_flag"
35007 || test ! -s conftest.err'
35008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35009 (eval $ac_try) 2>&5
35010 ac_status=$?
35011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35012 (exit $ac_status); }; } &&
35013 { ac_try='test -s conftest$ac_exeext'
35014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35015 (eval $ac_try) 2>&5
35016 ac_status=$?
35017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018 (exit $ac_status); }; }; then
35019 eval "$as_ac_var=yes"
35020 else
35021 echo "$as_me: failed program was:" >&5
35022 sed 's/^/| /' conftest.$ac_ext >&5
35023
35024 eval "$as_ac_var=no"
35025 fi
35026 rm -f conftest.err conftest.$ac_objext \
35027 conftest$ac_exeext conftest.$ac_ext
35028 fi
35029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35031 if test `eval echo '${'$as_ac_var'}'` = yes; then
35032 cat >>confdefs.h <<_ACEOF
35033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35034 _ACEOF
35035
35036 fi
35037 done
35038
35039
35040 if test "$ac_cv_func_localtime" = "yes"; then
35041 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35042 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35043 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35044 echo $ECHO_N "(cached) $ECHO_C" >&6
35045 else
35046
35047 cat >conftest.$ac_ext <<_ACEOF
35048 /* confdefs.h. */
35049 _ACEOF
35050 cat confdefs.h >>conftest.$ac_ext
35051 cat >>conftest.$ac_ext <<_ACEOF
35052 /* end confdefs.h. */
35053
35054 #include <time.h>
35055
35056 int
35057 main ()
35058 {
35059
35060 struct tm tm;
35061 tm.tm_gmtoff++;
35062
35063 ;
35064 return 0;
35065 }
35066 _ACEOF
35067 rm -f conftest.$ac_objext
35068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35069 (eval $ac_compile) 2>conftest.er1
35070 ac_status=$?
35071 grep -v '^ *+' conftest.er1 >conftest.err
35072 rm -f conftest.er1
35073 cat conftest.err >&5
35074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35075 (exit $ac_status); } &&
35076 { ac_try='test -z "$ac_c_werror_flag"
35077 || test ! -s conftest.err'
35078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35079 (eval $ac_try) 2>&5
35080 ac_status=$?
35081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082 (exit $ac_status); }; } &&
35083 { ac_try='test -s conftest.$ac_objext'
35084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35085 (eval $ac_try) 2>&5
35086 ac_status=$?
35087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35088 (exit $ac_status); }; }; then
35089
35090 wx_cv_struct_tm_has_gmtoff=yes
35091
35092 else
35093 echo "$as_me: failed program was:" >&5
35094 sed 's/^/| /' conftest.$ac_ext >&5
35095
35096 wx_cv_struct_tm_has_gmtoff=no
35097
35098 fi
35099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35100
35101 fi
35102 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35103 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35104 fi
35105
35106 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35107 cat >>confdefs.h <<\_ACEOF
35108 #define WX_GMTOFF_IN_TM 1
35109 _ACEOF
35110
35111 fi
35112
35113
35114
35115 for ac_func in gettimeofday ftime
35116 do
35117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35118 echo "$as_me:$LINENO: checking for $ac_func" >&5
35119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35120 if eval "test \"\${$as_ac_var+set}\" = set"; then
35121 echo $ECHO_N "(cached) $ECHO_C" >&6
35122 else
35123 cat >conftest.$ac_ext <<_ACEOF
35124 /* confdefs.h. */
35125 _ACEOF
35126 cat confdefs.h >>conftest.$ac_ext
35127 cat >>conftest.$ac_ext <<_ACEOF
35128 /* end confdefs.h. */
35129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35131 #define $ac_func innocuous_$ac_func
35132
35133 /* System header to define __stub macros and hopefully few prototypes,
35134 which can conflict with char $ac_func (); below.
35135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35136 <limits.h> exists even on freestanding compilers. */
35137
35138 #ifdef __STDC__
35139 # include <limits.h>
35140 #else
35141 # include <assert.h>
35142 #endif
35143
35144 #undef $ac_func
35145
35146 /* Override any gcc2 internal prototype to avoid an error. */
35147 #ifdef __cplusplus
35148 extern "C"
35149 {
35150 #endif
35151 /* We use char because int might match the return type of a gcc2
35152 builtin and then its argument prototype would still apply. */
35153 char $ac_func ();
35154 /* The GNU C library defines this for functions which it implements
35155 to always fail with ENOSYS. Some functions are actually named
35156 something starting with __ and the normal name is an alias. */
35157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35158 choke me
35159 #else
35160 char (*f) () = $ac_func;
35161 #endif
35162 #ifdef __cplusplus
35163 }
35164 #endif
35165
35166 int
35167 main ()
35168 {
35169 return f != $ac_func;
35170 ;
35171 return 0;
35172 }
35173 _ACEOF
35174 rm -f conftest.$ac_objext conftest$ac_exeext
35175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35176 (eval $ac_link) 2>conftest.er1
35177 ac_status=$?
35178 grep -v '^ *+' conftest.er1 >conftest.err
35179 rm -f conftest.er1
35180 cat conftest.err >&5
35181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35182 (exit $ac_status); } &&
35183 { ac_try='test -z "$ac_c_werror_flag"
35184 || test ! -s conftest.err'
35185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35186 (eval $ac_try) 2>&5
35187 ac_status=$?
35188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35189 (exit $ac_status); }; } &&
35190 { ac_try='test -s conftest$ac_exeext'
35191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35192 (eval $ac_try) 2>&5
35193 ac_status=$?
35194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195 (exit $ac_status); }; }; then
35196 eval "$as_ac_var=yes"
35197 else
35198 echo "$as_me: failed program was:" >&5
35199 sed 's/^/| /' conftest.$ac_ext >&5
35200
35201 eval "$as_ac_var=no"
35202 fi
35203 rm -f conftest.err conftest.$ac_objext \
35204 conftest$ac_exeext conftest.$ac_ext
35205 fi
35206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35208 if test `eval echo '${'$as_ac_var'}'` = yes; then
35209 cat >>confdefs.h <<_ACEOF
35210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35211 _ACEOF
35212 break
35213 fi
35214 done
35215
35216
35217 if test "$ac_cv_func_gettimeofday" = "yes"; then
35218 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35219 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35220 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35221 echo $ECHO_N "(cached) $ECHO_C" >&6
35222 else
35223
35224
35225
35226 ac_ext=cc
35227 ac_cpp='$CXXCPP $CPPFLAGS'
35228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35231
35232
35233 cat >conftest.$ac_ext <<_ACEOF
35234 /* confdefs.h. */
35235 _ACEOF
35236 cat confdefs.h >>conftest.$ac_ext
35237 cat >>conftest.$ac_ext <<_ACEOF
35238 /* end confdefs.h. */
35239
35240 #include <sys/time.h>
35241 #include <unistd.h>
35242
35243 int
35244 main ()
35245 {
35246
35247 struct timeval tv;
35248 gettimeofday(&tv, NULL);
35249
35250 ;
35251 return 0;
35252 }
35253 _ACEOF
35254 rm -f conftest.$ac_objext
35255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35256 (eval $ac_compile) 2>conftest.er1
35257 ac_status=$?
35258 grep -v '^ *+' conftest.er1 >conftest.err
35259 rm -f conftest.er1
35260 cat conftest.err >&5
35261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262 (exit $ac_status); } &&
35263 { ac_try='test -z "$ac_cxx_werror_flag"
35264 || test ! -s conftest.err'
35265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35266 (eval $ac_try) 2>&5
35267 ac_status=$?
35268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35269 (exit $ac_status); }; } &&
35270 { ac_try='test -s conftest.$ac_objext'
35271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35272 (eval $ac_try) 2>&5
35273 ac_status=$?
35274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275 (exit $ac_status); }; }; then
35276 wx_cv_func_gettimeofday_has_2_args=yes
35277 else
35278 echo "$as_me: failed program was:" >&5
35279 sed 's/^/| /' conftest.$ac_ext >&5
35280
35281 cat >conftest.$ac_ext <<_ACEOF
35282 /* confdefs.h. */
35283 _ACEOF
35284 cat confdefs.h >>conftest.$ac_ext
35285 cat >>conftest.$ac_ext <<_ACEOF
35286 /* end confdefs.h. */
35287
35288 #include <sys/time.h>
35289 #include <unistd.h>
35290
35291 int
35292 main ()
35293 {
35294
35295 struct timeval tv;
35296 gettimeofday(&tv);
35297
35298 ;
35299 return 0;
35300 }
35301 _ACEOF
35302 rm -f conftest.$ac_objext
35303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35304 (eval $ac_compile) 2>conftest.er1
35305 ac_status=$?
35306 grep -v '^ *+' conftest.er1 >conftest.err
35307 rm -f conftest.er1
35308 cat conftest.err >&5
35309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310 (exit $ac_status); } &&
35311 { ac_try='test -z "$ac_cxx_werror_flag"
35312 || test ! -s conftest.err'
35313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35314 (eval $ac_try) 2>&5
35315 ac_status=$?
35316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317 (exit $ac_status); }; } &&
35318 { ac_try='test -s conftest.$ac_objext'
35319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35320 (eval $ac_try) 2>&5
35321 ac_status=$?
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); }; }; then
35324 wx_cv_func_gettimeofday_has_2_args=no
35325 else
35326 echo "$as_me: failed program was:" >&5
35327 sed 's/^/| /' conftest.$ac_ext >&5
35328
35329
35330 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35331 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35332 wx_cv_func_gettimeofday_has_2_args=unknown
35333
35334
35335 fi
35336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35337
35338 fi
35339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35340 ac_ext=c
35341 ac_cpp='$CPP $CPPFLAGS'
35342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35345
35346
35347 fi
35348 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35349 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35350
35351 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35352 cat >>confdefs.h <<\_ACEOF
35353 #define WX_GETTIMEOFDAY_NO_TZ 1
35354 _ACEOF
35355
35356 fi
35357 fi
35358
35359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35360 fi
35361
35362
35363 if test "$wxUSE_SOCKETS" = "yes"; then
35364 if test "$wxUSE_MGL" = "1"; then
35365 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35366 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35367 wxUSE_SOCKETS="no"
35368 fi
35369 fi
35370
35371 if test "$wxUSE_SOCKETS" = "yes"; then
35372 if test "$TOOLKIT" != "MSW"; then
35373 echo "$as_me:$LINENO: checking for socket" >&5
35374 echo $ECHO_N "checking for socket... $ECHO_C" >&6
35375 if test "${ac_cv_func_socket+set}" = set; then
35376 echo $ECHO_N "(cached) $ECHO_C" >&6
35377 else
35378 cat >conftest.$ac_ext <<_ACEOF
35379 /* confdefs.h. */
35380 _ACEOF
35381 cat confdefs.h >>conftest.$ac_ext
35382 cat >>conftest.$ac_ext <<_ACEOF
35383 /* end confdefs.h. */
35384 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
35385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35386 #define socket innocuous_socket
35387
35388 /* System header to define __stub macros and hopefully few prototypes,
35389 which can conflict with char socket (); below.
35390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35391 <limits.h> exists even on freestanding compilers. */
35392
35393 #ifdef __STDC__
35394 # include <limits.h>
35395 #else
35396 # include <assert.h>
35397 #endif
35398
35399 #undef socket
35400
35401 /* Override any gcc2 internal prototype to avoid an error. */
35402 #ifdef __cplusplus
35403 extern "C"
35404 {
35405 #endif
35406 /* We use char because int might match the return type of a gcc2
35407 builtin and then its argument prototype would still apply. */
35408 char socket ();
35409 /* The GNU C library defines this for functions which it implements
35410 to always fail with ENOSYS. Some functions are actually named
35411 something starting with __ and the normal name is an alias. */
35412 #if defined (__stub_socket) || defined (__stub___socket)
35413 choke me
35414 #else
35415 char (*f) () = socket;
35416 #endif
35417 #ifdef __cplusplus
35418 }
35419 #endif
35420
35421 int
35422 main ()
35423 {
35424 return f != socket;
35425 ;
35426 return 0;
35427 }
35428 _ACEOF
35429 rm -f conftest.$ac_objext conftest$ac_exeext
35430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35431 (eval $ac_link) 2>conftest.er1
35432 ac_status=$?
35433 grep -v '^ *+' conftest.er1 >conftest.err
35434 rm -f conftest.er1
35435 cat conftest.err >&5
35436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35437 (exit $ac_status); } &&
35438 { ac_try='test -z "$ac_c_werror_flag"
35439 || test ! -s conftest.err'
35440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35441 (eval $ac_try) 2>&5
35442 ac_status=$?
35443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35444 (exit $ac_status); }; } &&
35445 { ac_try='test -s conftest$ac_exeext'
35446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35447 (eval $ac_try) 2>&5
35448 ac_status=$?
35449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450 (exit $ac_status); }; }; then
35451 ac_cv_func_socket=yes
35452 else
35453 echo "$as_me: failed program was:" >&5
35454 sed 's/^/| /' conftest.$ac_ext >&5
35455
35456 ac_cv_func_socket=no
35457 fi
35458 rm -f conftest.err conftest.$ac_objext \
35459 conftest$ac_exeext conftest.$ac_ext
35460 fi
35461 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35462 echo "${ECHO_T}$ac_cv_func_socket" >&6
35463 if test $ac_cv_func_socket = yes; then
35464 :
35465 else
35466
35467 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35468 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35469 if test "${ac_cv_lib_socket_socket+set}" = set; then
35470 echo $ECHO_N "(cached) $ECHO_C" >&6
35471 else
35472 ac_check_lib_save_LIBS=$LIBS
35473 LIBS="-lsocket $LIBS"
35474 cat >conftest.$ac_ext <<_ACEOF
35475 /* confdefs.h. */
35476 _ACEOF
35477 cat confdefs.h >>conftest.$ac_ext
35478 cat >>conftest.$ac_ext <<_ACEOF
35479 /* end confdefs.h. */
35480
35481 /* Override any gcc2 internal prototype to avoid an error. */
35482 #ifdef __cplusplus
35483 extern "C"
35484 #endif
35485 /* We use char because int might match the return type of a gcc2
35486 builtin and then its argument prototype would still apply. */
35487 char socket ();
35488 int
35489 main ()
35490 {
35491 socket ();
35492 ;
35493 return 0;
35494 }
35495 _ACEOF
35496 rm -f conftest.$ac_objext conftest$ac_exeext
35497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35498 (eval $ac_link) 2>conftest.er1
35499 ac_status=$?
35500 grep -v '^ *+' conftest.er1 >conftest.err
35501 rm -f conftest.er1
35502 cat conftest.err >&5
35503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35504 (exit $ac_status); } &&
35505 { ac_try='test -z "$ac_c_werror_flag"
35506 || test ! -s conftest.err'
35507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35508 (eval $ac_try) 2>&5
35509 ac_status=$?
35510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511 (exit $ac_status); }; } &&
35512 { ac_try='test -s conftest$ac_exeext'
35513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35514 (eval $ac_try) 2>&5
35515 ac_status=$?
35516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35517 (exit $ac_status); }; }; then
35518 ac_cv_lib_socket_socket=yes
35519 else
35520 echo "$as_me: failed program was:" >&5
35521 sed 's/^/| /' conftest.$ac_ext >&5
35522
35523 ac_cv_lib_socket_socket=no
35524 fi
35525 rm -f conftest.err conftest.$ac_objext \
35526 conftest$ac_exeext conftest.$ac_ext
35527 LIBS=$ac_check_lib_save_LIBS
35528 fi
35529 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35530 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35531 if test $ac_cv_lib_socket_socket = yes; then
35532 if test "$INET_LINK" != " -lsocket"; then
35533 INET_LINK="$INET_LINK -lsocket"
35534 fi
35535 else
35536
35537 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35538 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35539 wxUSE_SOCKETS=no
35540
35541
35542 fi
35543
35544
35545
35546 fi
35547
35548 fi
35549 fi
35550
35551 if test "$wxUSE_SOCKETS" = "yes" ; then
35552 if test "$TOOLKIT" != "MSW"; then
35553 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35554 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35555 if test "${wx_cv_type_getsockname3+set}" = set; then
35556 echo $ECHO_N "(cached) $ECHO_C" >&6
35557 else
35558
35559 cat >conftest.$ac_ext <<_ACEOF
35560 /* confdefs.h. */
35561 _ACEOF
35562 cat confdefs.h >>conftest.$ac_ext
35563 cat >>conftest.$ac_ext <<_ACEOF
35564 /* end confdefs.h. */
35565
35566 #include <sys/types.h>
35567 #include <sys/socket.h>
35568
35569 int
35570 main ()
35571 {
35572
35573 socklen_t len;
35574 getsockname(0, 0, &len);
35575
35576 ;
35577 return 0;
35578 }
35579 _ACEOF
35580 rm -f conftest.$ac_objext
35581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35582 (eval $ac_compile) 2>conftest.er1
35583 ac_status=$?
35584 grep -v '^ *+' conftest.er1 >conftest.err
35585 rm -f conftest.er1
35586 cat conftest.err >&5
35587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588 (exit $ac_status); } &&
35589 { ac_try='test -z "$ac_c_werror_flag"
35590 || test ! -s conftest.err'
35591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35592 (eval $ac_try) 2>&5
35593 ac_status=$?
35594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595 (exit $ac_status); }; } &&
35596 { ac_try='test -s conftest.$ac_objext'
35597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35598 (eval $ac_try) 2>&5
35599 ac_status=$?
35600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601 (exit $ac_status); }; }; then
35602 wx_cv_type_getsockname3=socklen_t
35603 else
35604 echo "$as_me: failed program was:" >&5
35605 sed 's/^/| /' conftest.$ac_ext >&5
35606
35607
35608 CFLAGS_OLD="$CFLAGS"
35609 if test "$GCC" = yes ; then
35610 CFLAGS="$CFLAGS -Werror"
35611 fi
35612
35613 cat >conftest.$ac_ext <<_ACEOF
35614 /* confdefs.h. */
35615 _ACEOF
35616 cat confdefs.h >>conftest.$ac_ext
35617 cat >>conftest.$ac_ext <<_ACEOF
35618 /* end confdefs.h. */
35619
35620 #include <sys/types.h>
35621 #include <sys/socket.h>
35622
35623 int
35624 main ()
35625 {
35626
35627 size_t len;
35628 getsockname(0, 0, &len);
35629
35630 ;
35631 return 0;
35632 }
35633 _ACEOF
35634 rm -f conftest.$ac_objext
35635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35636 (eval $ac_compile) 2>conftest.er1
35637 ac_status=$?
35638 grep -v '^ *+' conftest.er1 >conftest.err
35639 rm -f conftest.er1
35640 cat conftest.err >&5
35641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35642 (exit $ac_status); } &&
35643 { ac_try='test -z "$ac_c_werror_flag"
35644 || test ! -s conftest.err'
35645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35646 (eval $ac_try) 2>&5
35647 ac_status=$?
35648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35649 (exit $ac_status); }; } &&
35650 { ac_try='test -s conftest.$ac_objext'
35651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35652 (eval $ac_try) 2>&5
35653 ac_status=$?
35654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655 (exit $ac_status); }; }; then
35656 wx_cv_type_getsockname3=size_t
35657 else
35658 echo "$as_me: failed program was:" >&5
35659 sed 's/^/| /' conftest.$ac_ext >&5
35660
35661 cat >conftest.$ac_ext <<_ACEOF
35662 /* confdefs.h. */
35663 _ACEOF
35664 cat confdefs.h >>conftest.$ac_ext
35665 cat >>conftest.$ac_ext <<_ACEOF
35666 /* end confdefs.h. */
35667
35668 #include <sys/types.h>
35669 #include <sys/socket.h>
35670
35671 int
35672 main ()
35673 {
35674
35675 int len;
35676 getsockname(0, 0, &len);
35677
35678 ;
35679 return 0;
35680 }
35681 _ACEOF
35682 rm -f conftest.$ac_objext
35683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35684 (eval $ac_compile) 2>conftest.er1
35685 ac_status=$?
35686 grep -v '^ *+' conftest.er1 >conftest.err
35687 rm -f conftest.er1
35688 cat conftest.err >&5
35689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690 (exit $ac_status); } &&
35691 { ac_try='test -z "$ac_c_werror_flag"
35692 || test ! -s conftest.err'
35693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35694 (eval $ac_try) 2>&5
35695 ac_status=$?
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); }; } &&
35698 { ac_try='test -s conftest.$ac_objext'
35699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700 (eval $ac_try) 2>&5
35701 ac_status=$?
35702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703 (exit $ac_status); }; }; then
35704 wx_cv_type_getsockname3=int
35705 else
35706 echo "$as_me: failed program was:" >&5
35707 sed 's/^/| /' conftest.$ac_ext >&5
35708
35709 wx_cv_type_getsockname3=unknown
35710
35711 fi
35712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35713
35714 fi
35715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35716
35717 CFLAGS="$CFLAGS_OLD"
35718
35719
35720 fi
35721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35722
35723 fi
35724 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35725 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35726
35727 if test "$wx_cv_type_getsockname3" = "unknown"; then
35728 wxUSE_SOCKETS=no
35729 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35730 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35731 else
35732 cat >>confdefs.h <<_ACEOF
35733 #define SOCKLEN_T $wx_cv_type_getsockname3
35734 _ACEOF
35735
35736 fi
35737 fi
35738 fi
35739
35740 if test "$wxUSE_SOCKETS" = "yes" ; then
35741 cat >>confdefs.h <<\_ACEOF
35742 #define wxUSE_SOCKETS 1
35743 _ACEOF
35744
35745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35746 fi
35747
35748 if test "$wxUSE_PROTOCOL" = "yes"; then
35749 if test "$wxUSE_SOCKETS" != "yes"; then
35750 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35751 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35752 wxUSE_PROTOCOL=no
35753 fi
35754 fi
35755
35756 if test "$wxUSE_PROTOCOL" = "yes"; then
35757 cat >>confdefs.h <<\_ACEOF
35758 #define wxUSE_PROTOCOL 1
35759 _ACEOF
35760
35761
35762 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35763 cat >>confdefs.h <<\_ACEOF
35764 #define wxUSE_PROTOCOL_HTTP 1
35765 _ACEOF
35766
35767 fi
35768 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35769 cat >>confdefs.h <<\_ACEOF
35770 #define wxUSE_PROTOCOL_FTP 1
35771 _ACEOF
35772
35773 fi
35774 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35775 cat >>confdefs.h <<\_ACEOF
35776 #define wxUSE_PROTOCOL_FILE 1
35777 _ACEOF
35778
35779 fi
35780 else
35781 if test "$wxUSE_FS_INET" = "yes"; then
35782 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35783 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35784 wxUSE_FS_INET="no"
35785 fi
35786 fi
35787
35788 if test "$wxUSE_URL" = "yes"; then
35789 if test "$wxUSE_PROTOCOL" != "yes"; then
35790 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35791 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35792 wxUSE_URL=no
35793 fi
35794 if test "$wxUSE_URL" = "yes"; then
35795 cat >>confdefs.h <<\_ACEOF
35796 #define wxUSE_URL 1
35797 _ACEOF
35798
35799 fi
35800 fi
35801
35802 if test "$wxUSE_FS_INET" = "yes"; then
35803 cat >>confdefs.h <<\_ACEOF
35804 #define wxUSE_FS_INET 1
35805 _ACEOF
35806
35807 fi
35808
35809
35810 if test "$wxUSE_GUI" = "yes"; then
35811
35812 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35813 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35814 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35815 wxUSE_JOYSTICK=no
35816 fi
35817
35818 if test "$TOOLKIT" != "MSW"; then
35819 if test "$wxUSE_JOYSTICK" = "yes"; then
35820
35821 for ac_header in linux/joystick.h
35822 do
35823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35825 echo "$as_me:$LINENO: checking for $ac_header" >&5
35826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35828 echo $ECHO_N "(cached) $ECHO_C" >&6
35829 fi
35830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35832 else
35833 # Is the header compilable?
35834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35836 cat >conftest.$ac_ext <<_ACEOF
35837 /* confdefs.h. */
35838 _ACEOF
35839 cat confdefs.h >>conftest.$ac_ext
35840 cat >>conftest.$ac_ext <<_ACEOF
35841 /* end confdefs.h. */
35842 $ac_includes_default
35843 #include <$ac_header>
35844 _ACEOF
35845 rm -f conftest.$ac_objext
35846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35847 (eval $ac_compile) 2>conftest.er1
35848 ac_status=$?
35849 grep -v '^ *+' conftest.er1 >conftest.err
35850 rm -f conftest.er1
35851 cat conftest.err >&5
35852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35853 (exit $ac_status); } &&
35854 { ac_try='test -z "$ac_c_werror_flag"
35855 || test ! -s conftest.err'
35856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35857 (eval $ac_try) 2>&5
35858 ac_status=$?
35859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860 (exit $ac_status); }; } &&
35861 { ac_try='test -s conftest.$ac_objext'
35862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35863 (eval $ac_try) 2>&5
35864 ac_status=$?
35865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866 (exit $ac_status); }; }; then
35867 ac_header_compiler=yes
35868 else
35869 echo "$as_me: failed program was:" >&5
35870 sed 's/^/| /' conftest.$ac_ext >&5
35871
35872 ac_header_compiler=no
35873 fi
35874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35876 echo "${ECHO_T}$ac_header_compiler" >&6
35877
35878 # Is the header present?
35879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35881 cat >conftest.$ac_ext <<_ACEOF
35882 /* confdefs.h. */
35883 _ACEOF
35884 cat confdefs.h >>conftest.$ac_ext
35885 cat >>conftest.$ac_ext <<_ACEOF
35886 /* end confdefs.h. */
35887 #include <$ac_header>
35888 _ACEOF
35889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35891 ac_status=$?
35892 grep -v '^ *+' conftest.er1 >conftest.err
35893 rm -f conftest.er1
35894 cat conftest.err >&5
35895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35896 (exit $ac_status); } >/dev/null; then
35897 if test -s conftest.err; then
35898 ac_cpp_err=$ac_c_preproc_warn_flag
35899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35900 else
35901 ac_cpp_err=
35902 fi
35903 else
35904 ac_cpp_err=yes
35905 fi
35906 if test -z "$ac_cpp_err"; then
35907 ac_header_preproc=yes
35908 else
35909 echo "$as_me: failed program was:" >&5
35910 sed 's/^/| /' conftest.$ac_ext >&5
35911
35912 ac_header_preproc=no
35913 fi
35914 rm -f conftest.err conftest.$ac_ext
35915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35916 echo "${ECHO_T}$ac_header_preproc" >&6
35917
35918 # So? What about this header?
35919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35920 yes:no: )
35921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35925 ac_header_preproc=yes
35926 ;;
35927 no:yes:* )
35928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35940 (
35941 cat <<\_ASBOX
35942 ## ----------------------------------------- ##
35943 ## Report this to wx-dev@lists.wxwindows.org ##
35944 ## ----------------------------------------- ##
35945 _ASBOX
35946 ) |
35947 sed "s/^/$as_me: WARNING: /" >&2
35948 ;;
35949 esac
35950 echo "$as_me:$LINENO: checking for $ac_header" >&5
35951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35953 echo $ECHO_N "(cached) $ECHO_C" >&6
35954 else
35955 eval "$as_ac_Header=\$ac_header_preproc"
35956 fi
35957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35959
35960 fi
35961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35962 cat >>confdefs.h <<_ACEOF
35963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35964 _ACEOF
35965
35966 fi
35967
35968 done
35969
35970 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35971 wxUSE_JOYSTICK=no
35972 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35973 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35974 fi
35975 fi
35976 fi
35977
35978 if test "$wxUSE_JOYSTICK" = "yes"; then
35979 cat >>confdefs.h <<\_ACEOF
35980 #define wxUSE_JOYSTICK 1
35981 _ACEOF
35982
35983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35984 fi
35985 fi
35986
35987
35988
35989
35990 if test "$wxUSE_FONTMAP" = "yes" ; then
35991 cat >>confdefs.h <<\_ACEOF
35992 #define wxUSE_FONTMAP 1
35993 _ACEOF
35994
35995 fi
35996
35997 if test "$wxUSE_UNICODE" = "yes" ; then
35998 cat >>confdefs.h <<\_ACEOF
35999 #define wxUSE_UNICODE 1
36000 _ACEOF
36001
36002
36003 if test "$USE_WIN32" != 1; then
36004 wxUSE_UNICODE_MSLU=no
36005 fi
36006
36007 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36008 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36009 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36010 if test "${ac_cv_lib_unicows_main+set}" = set; then
36011 echo $ECHO_N "(cached) $ECHO_C" >&6
36012 else
36013 ac_check_lib_save_LIBS=$LIBS
36014 LIBS="-lunicows $LIBS"
36015 cat >conftest.$ac_ext <<_ACEOF
36016 /* confdefs.h. */
36017 _ACEOF
36018 cat confdefs.h >>conftest.$ac_ext
36019 cat >>conftest.$ac_ext <<_ACEOF
36020 /* end confdefs.h. */
36021
36022
36023 int
36024 main ()
36025 {
36026 main ();
36027 ;
36028 return 0;
36029 }
36030 _ACEOF
36031 rm -f conftest.$ac_objext conftest$ac_exeext
36032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36033 (eval $ac_link) 2>conftest.er1
36034 ac_status=$?
36035 grep -v '^ *+' conftest.er1 >conftest.err
36036 rm -f conftest.er1
36037 cat conftest.err >&5
36038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039 (exit $ac_status); } &&
36040 { ac_try='test -z "$ac_c_werror_flag"
36041 || test ! -s conftest.err'
36042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36043 (eval $ac_try) 2>&5
36044 ac_status=$?
36045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36046 (exit $ac_status); }; } &&
36047 { ac_try='test -s conftest$ac_exeext'
36048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36049 (eval $ac_try) 2>&5
36050 ac_status=$?
36051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36052 (exit $ac_status); }; }; then
36053 ac_cv_lib_unicows_main=yes
36054 else
36055 echo "$as_me: failed program was:" >&5
36056 sed 's/^/| /' conftest.$ac_ext >&5
36057
36058 ac_cv_lib_unicows_main=no
36059 fi
36060 rm -f conftest.err conftest.$ac_objext \
36061 conftest$ac_exeext conftest.$ac_ext
36062 LIBS=$ac_check_lib_save_LIBS
36063 fi
36064 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36065 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36066 if test $ac_cv_lib_unicows_main = yes; then
36067
36068 cat >>confdefs.h <<\_ACEOF
36069 #define wxUSE_UNICODE_MSLU 1
36070 _ACEOF
36071
36072
36073 else
36074
36075 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36076 Applications will only run on Windows NT/2000/XP!" >&5
36077 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36078 Applications will only run on Windows NT/2000/XP!" >&2;}
36079 wxUSE_UNICODE_MSLU=no
36080
36081 fi
36082
36083 fi
36084 fi
36085
36086 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36087 cat >>confdefs.h <<\_ACEOF
36088 #define wxUSE_EXPERIMENTAL_PRINTF 1
36089 _ACEOF
36090
36091 fi
36092
36093
36094 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36095 cat >>confdefs.h <<\_ACEOF
36096 #define wxUSE_POSTSCRIPT 1
36097 _ACEOF
36098
36099 fi
36100
36101 cat >>confdefs.h <<\_ACEOF
36102 #define wxUSE_AFM_FOR_POSTSCRIPT 1
36103 _ACEOF
36104
36105
36106 cat >>confdefs.h <<\_ACEOF
36107 #define wxUSE_NORMALIZED_PS_FONTS 1
36108 _ACEOF
36109
36110
36111
36112 if test "$wxUSE_CONSTRAINTS" = "yes"; then
36113 cat >>confdefs.h <<\_ACEOF
36114 #define wxUSE_CONSTRAINTS 1
36115 _ACEOF
36116
36117 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36118 fi
36119
36120 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36121 cat >>confdefs.h <<\_ACEOF
36122 #define wxUSE_MDI_ARCHITECTURE 1
36123 _ACEOF
36124
36125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36126 fi
36127
36128 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36129 cat >>confdefs.h <<\_ACEOF
36130 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
36131 _ACEOF
36132
36133 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36134 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36136 fi
36137 fi
36138
36139 if test "$wxUSE_HELP" = "yes"; then
36140 cat >>confdefs.h <<\_ACEOF
36141 #define wxUSE_HELP 1
36142 _ACEOF
36143
36144 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36145
36146 if test "$wxUSE_MSW" = 1; then
36147 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36148 cat >>confdefs.h <<\_ACEOF
36149 #define wxUSE_MS_HTML_HELP 1
36150 _ACEOF
36151
36152 fi
36153 fi
36154
36155 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36156 if test "$wxUSE_HTML" = "yes"; then
36157 cat >>confdefs.h <<\_ACEOF
36158 #define wxUSE_WXHTML_HELP 1
36159 _ACEOF
36160
36161 else
36162 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36163 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36164 wxUSE_WXHTML_HELP=no
36165 fi
36166 fi
36167 fi
36168
36169 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36170 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36171 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36172 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36173 else
36174 cat >>confdefs.h <<\_ACEOF
36175 #define wxUSE_PRINTING_ARCHITECTURE 1
36176 _ACEOF
36177
36178 fi
36179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36180 fi
36181
36182 if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36183 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36184 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36185 { (exit 1); exit 1; }; }
36186 fi
36187
36188
36189 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36190 -o "$wxUSE_CLIPBOARD" = "yes" \
36191 -o "$wxUSE_OLE" = "yes" \
36192 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36193
36194 for ac_header in ole2.h
36195 do
36196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36198 echo "$as_me:$LINENO: checking for $ac_header" >&5
36199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36201 echo $ECHO_N "(cached) $ECHO_C" >&6
36202 fi
36203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36205 else
36206 # Is the header compilable?
36207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36209 cat >conftest.$ac_ext <<_ACEOF
36210 /* confdefs.h. */
36211 _ACEOF
36212 cat confdefs.h >>conftest.$ac_ext
36213 cat >>conftest.$ac_ext <<_ACEOF
36214 /* end confdefs.h. */
36215 $ac_includes_default
36216 #include <$ac_header>
36217 _ACEOF
36218 rm -f conftest.$ac_objext
36219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36220 (eval $ac_compile) 2>conftest.er1
36221 ac_status=$?
36222 grep -v '^ *+' conftest.er1 >conftest.err
36223 rm -f conftest.er1
36224 cat conftest.err >&5
36225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226 (exit $ac_status); } &&
36227 { ac_try='test -z "$ac_c_werror_flag"
36228 || test ! -s conftest.err'
36229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36230 (eval $ac_try) 2>&5
36231 ac_status=$?
36232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233 (exit $ac_status); }; } &&
36234 { ac_try='test -s conftest.$ac_objext'
36235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36236 (eval $ac_try) 2>&5
36237 ac_status=$?
36238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239 (exit $ac_status); }; }; then
36240 ac_header_compiler=yes
36241 else
36242 echo "$as_me: failed program was:" >&5
36243 sed 's/^/| /' conftest.$ac_ext >&5
36244
36245 ac_header_compiler=no
36246 fi
36247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36249 echo "${ECHO_T}$ac_header_compiler" >&6
36250
36251 # Is the header present?
36252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36254 cat >conftest.$ac_ext <<_ACEOF
36255 /* confdefs.h. */
36256 _ACEOF
36257 cat confdefs.h >>conftest.$ac_ext
36258 cat >>conftest.$ac_ext <<_ACEOF
36259 /* end confdefs.h. */
36260 #include <$ac_header>
36261 _ACEOF
36262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36264 ac_status=$?
36265 grep -v '^ *+' conftest.er1 >conftest.err
36266 rm -f conftest.er1
36267 cat conftest.err >&5
36268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269 (exit $ac_status); } >/dev/null; then
36270 if test -s conftest.err; then
36271 ac_cpp_err=$ac_c_preproc_warn_flag
36272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36273 else
36274 ac_cpp_err=
36275 fi
36276 else
36277 ac_cpp_err=yes
36278 fi
36279 if test -z "$ac_cpp_err"; then
36280 ac_header_preproc=yes
36281 else
36282 echo "$as_me: failed program was:" >&5
36283 sed 's/^/| /' conftest.$ac_ext >&5
36284
36285 ac_header_preproc=no
36286 fi
36287 rm -f conftest.err conftest.$ac_ext
36288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36289 echo "${ECHO_T}$ac_header_preproc" >&6
36290
36291 # So? What about this header?
36292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36293 yes:no: )
36294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36298 ac_header_preproc=yes
36299 ;;
36300 no:yes:* )
36301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36313 (
36314 cat <<\_ASBOX
36315 ## ----------------------------------------- ##
36316 ## Report this to wx-dev@lists.wxwindows.org ##
36317 ## ----------------------------------------- ##
36318 _ASBOX
36319 ) |
36320 sed "s/^/$as_me: WARNING: /" >&2
36321 ;;
36322 esac
36323 echo "$as_me:$LINENO: checking for $ac_header" >&5
36324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36326 echo $ECHO_N "(cached) $ECHO_C" >&6
36327 else
36328 eval "$as_ac_Header=\$ac_header_preproc"
36329 fi
36330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36332
36333 fi
36334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36335 cat >>confdefs.h <<_ACEOF
36336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36337 _ACEOF
36338
36339 fi
36340
36341 done
36342
36343
36344 if test "$ac_cv_header_ole2_h" = "yes" ; then
36345 if test "$GCC" = yes ; then
36346
36347
36348 ac_ext=cc
36349 ac_cpp='$CXXCPP $CPPFLAGS'
36350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36353
36354
36355 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36356 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36357 cat >conftest.$ac_ext <<_ACEOF
36358 /* confdefs.h. */
36359 _ACEOF
36360 cat confdefs.h >>conftest.$ac_ext
36361 cat >>conftest.$ac_ext <<_ACEOF
36362 /* end confdefs.h. */
36363 #include <windows.h>
36364 #include <ole2.h>
36365 int
36366 main ()
36367 {
36368
36369 ;
36370 return 0;
36371 }
36372 _ACEOF
36373 rm -f conftest.$ac_objext
36374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36375 (eval $ac_compile) 2>conftest.er1
36376 ac_status=$?
36377 grep -v '^ *+' conftest.er1 >conftest.err
36378 rm -f conftest.er1
36379 cat conftest.err >&5
36380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381 (exit $ac_status); } &&
36382 { ac_try='test -z "$ac_cxx_werror_flag"
36383 || test ! -s conftest.err'
36384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36385 (eval $ac_try) 2>&5
36386 ac_status=$?
36387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388 (exit $ac_status); }; } &&
36389 { ac_try='test -s conftest.$ac_objext'
36390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36391 (eval $ac_try) 2>&5
36392 ac_status=$?
36393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36394 (exit $ac_status); }; }; then
36395 echo "$as_me:$LINENO: result: no" >&5
36396 echo "${ECHO_T}no" >&6
36397 else
36398 echo "$as_me: failed program was:" >&5
36399 sed 's/^/| /' conftest.$ac_ext >&5
36400
36401 echo "$as_me:$LINENO: result: yes" >&5
36402 echo "${ECHO_T}yes" >&6
36403 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36404 fi
36405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36406 ac_ext=c
36407 ac_cpp='$CPP $CPPFLAGS'
36408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36411
36412 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36413 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36414 if test "$wxUSE_OLE" = "yes" ; then
36415 cat >>confdefs.h <<\_ACEOF
36416 #define wxUSE_OLE 1
36417 _ACEOF
36418
36419 fi
36420 fi
36421
36422 if test "$wxUSE_DATAOBJ" = "yes" ; then
36423 cat >>confdefs.h <<\_ACEOF
36424 #define wxUSE_DATAOBJ 1
36425 _ACEOF
36426
36427 fi
36428 else
36429 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36430 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36431
36432 wxUSE_CLIPBOARD=no
36433 wxUSE_DRAG_AND_DROP=no
36434 wxUSE_DATAOBJ=no
36435 wxUSE_OLE=no
36436 fi
36437
36438 if test "$wxUSE_METAFILE" = "yes"; then
36439 cat >>confdefs.h <<\_ACEOF
36440 #define wxUSE_METAFILE 1
36441 _ACEOF
36442
36443
36444 cat >>confdefs.h <<\_ACEOF
36445 #define wxUSE_ENH_METAFILE 1
36446 _ACEOF
36447
36448 fi
36449 fi
36450
36451 if test "$wxUSE_IPC" = "yes"; then
36452 if test "$wxUSE_SOCKETS" != "yes"; then
36453 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
36454 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
36455 fi
36456
36457 cat >>confdefs.h <<\_ACEOF
36458 #define wxUSE_IPC 1
36459 _ACEOF
36460
36461 fi
36462
36463 if test "$wxUSE_CLIPBOARD" = "yes"; then
36464 if test "$wxUSE_MGL" = 1; then
36465 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36466 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36467 wxUSE_CLIPBOARD=no
36468 fi
36469
36470 if test "$wxUSE_CLIPBOARD" = "yes"; then
36471 cat >>confdefs.h <<\_ACEOF
36472 #define wxUSE_CLIPBOARD 1
36473 _ACEOF
36474
36475
36476 cat >>confdefs.h <<\_ACEOF
36477 #define wxUSE_DATAOBJ 1
36478 _ACEOF
36479
36480 fi
36481 fi
36482
36483 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36484 if test "$wxUSE_GTK" = 1; then
36485 if test "$WXGTK12" != 1; then
36486 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36487 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36488 wxUSE_DRAG_AND_DROP=no
36489 fi
36490 fi
36491
36492 if test "$wxUSE_MOTIF" = 1; then
36493 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36494 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36495 wxUSE_DRAG_AND_DROP=no
36496 fi
36497
36498 if test "$wxUSE_X11" = 1; then
36499 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36500 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36501 wxUSE_DRAG_AND_DROP=no
36502 fi
36503
36504 if test "$wxUSE_MGL" = 1; then
36505 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36506 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36507 wxUSE_DRAG_AND_DROP=no
36508 fi
36509
36510 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36511 cat >>confdefs.h <<\_ACEOF
36512 #define wxUSE_DRAG_AND_DROP 1
36513 _ACEOF
36514
36515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36516 fi
36517
36518 fi
36519
36520 if test "$wxUSE_SPLINES" = "yes" ; then
36521 cat >>confdefs.h <<\_ACEOF
36522 #define wxUSE_SPLINES 1
36523 _ACEOF
36524
36525 fi
36526
36527
36528 USES_CONTROLS=0
36529 if test "$wxUSE_CONTROLS" = "yes"; then
36530 USES_CONTROLS=1
36531 fi
36532
36533 if test "$wxUSE_ACCEL" = "yes"; then
36534 cat >>confdefs.h <<\_ACEOF
36535 #define wxUSE_ACCEL 1
36536 _ACEOF
36537
36538 USES_CONTROLS=1
36539 fi
36540
36541 if test "$wxUSE_BUTTON" = "yes"; then
36542 cat >>confdefs.h <<\_ACEOF
36543 #define wxUSE_BUTTON 1
36544 _ACEOF
36545
36546 USES_CONTROLS=1
36547 fi
36548
36549 if test "$wxUSE_BMPBUTTON" = "yes"; then
36550 cat >>confdefs.h <<\_ACEOF
36551 #define wxUSE_BMPBUTTON 1
36552 _ACEOF
36553
36554 USES_CONTROLS=1
36555 fi
36556
36557 if test "$wxUSE_CALCTRL" = "yes"; then
36558 cat >>confdefs.h <<\_ACEOF
36559 #define wxUSE_CALENDARCTRL 1
36560 _ACEOF
36561
36562 USES_CONTROLS=1
36563 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36564 fi
36565
36566 if test "$wxUSE_CARET" = "yes"; then
36567 cat >>confdefs.h <<\_ACEOF
36568 #define wxUSE_CARET 1
36569 _ACEOF
36570
36571 USES_CONTROLS=1
36572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36573 fi
36574
36575 if test "$wxUSE_COMBOBOX" = "yes"; then
36576 cat >>confdefs.h <<\_ACEOF
36577 #define wxUSE_COMBOBOX 1
36578 _ACEOF
36579
36580 USES_CONTROLS=1
36581 fi
36582
36583 if test "$wxUSE_CHOICE" = "yes"; then
36584 cat >>confdefs.h <<\_ACEOF
36585 #define wxUSE_CHOICE 1
36586 _ACEOF
36587
36588 USES_CONTROLS=1
36589 fi
36590
36591 if test "$wxUSE_CHECKBOX" = "yes"; then
36592 cat >>confdefs.h <<\_ACEOF
36593 #define wxUSE_CHECKBOX 1
36594 _ACEOF
36595
36596 USES_CONTROLS=1
36597 fi
36598
36599 if test "$wxUSE_CHECKLST" = "yes"; then
36600 cat >>confdefs.h <<\_ACEOF
36601 #define wxUSE_CHECKLISTBOX 1
36602 _ACEOF
36603
36604 USES_CONTROLS=1
36605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36606 fi
36607
36608 if test "$wxUSE_DISPLAY" = "yes"; then
36609 cat >>confdefs.h <<\_ACEOF
36610 #define wxUSE_DISPLAY 1
36611 _ACEOF
36612
36613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36614 fi
36615
36616 if test "$wxUSE_GAUGE" = "yes"; then
36617 cat >>confdefs.h <<\_ACEOF
36618 #define wxUSE_GAUGE 1
36619 _ACEOF
36620
36621 USES_CONTROLS=1
36622 fi
36623
36624 if test "$wxUSE_GRID" = "yes"; then
36625 cat >>confdefs.h <<\_ACEOF
36626 #define wxUSE_GRID 1
36627 _ACEOF
36628
36629 USES_CONTROLS=1
36630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36631 fi
36632
36633 if test "$wxUSE_IMAGLIST" = "yes"; then
36634 cat >>confdefs.h <<\_ACEOF
36635 #define wxUSE_IMAGLIST 1
36636 _ACEOF
36637
36638 fi
36639
36640 if test "$wxUSE_LISTBOOK" = "yes"; then
36641 cat >>confdefs.h <<\_ACEOF
36642 #define wxUSE_LISTBOOK 1
36643 _ACEOF
36644
36645 USES_CONTROLS=1
36646 fi
36647
36648 if test "$wxUSE_LISTBOX" = "yes"; then
36649 cat >>confdefs.h <<\_ACEOF
36650 #define wxUSE_LISTBOX 1
36651 _ACEOF
36652
36653 USES_CONTROLS=1
36654 fi
36655
36656 if test "$wxUSE_LISTCTRL" = "yes"; then
36657 if test "$wxUSE_IMAGLIST" = "yes"; then
36658 cat >>confdefs.h <<\_ACEOF
36659 #define wxUSE_LISTCTRL 1
36660 _ACEOF
36661
36662 USES_CONTROLS=1
36663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36664 else
36665 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36666 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36667 fi
36668 fi
36669
36670 if test "$wxUSE_NOTEBOOK" = "yes"; then
36671 cat >>confdefs.h <<\_ACEOF
36672 #define wxUSE_NOTEBOOK 1
36673 _ACEOF
36674
36675 USES_CONTROLS=1
36676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36677 fi
36678
36679
36680 if test "$wxUSE_RADIOBOX" = "yes"; then
36681 cat >>confdefs.h <<\_ACEOF
36682 #define wxUSE_RADIOBOX 1
36683 _ACEOF
36684
36685 USES_CONTROLS=1
36686 fi
36687
36688 if test "$wxUSE_RADIOBTN" = "yes"; then
36689 cat >>confdefs.h <<\_ACEOF
36690 #define wxUSE_RADIOBTN 1
36691 _ACEOF
36692
36693 USES_CONTROLS=1
36694 fi
36695
36696 if test "$wxUSE_SASH" = "yes"; then
36697 cat >>confdefs.h <<\_ACEOF
36698 #define wxUSE_SASH 1
36699 _ACEOF
36700
36701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36702 fi
36703
36704 if test "$wxUSE_SCROLLBAR" = "yes"; then
36705 cat >>confdefs.h <<\_ACEOF
36706 #define wxUSE_SCROLLBAR 1
36707 _ACEOF
36708
36709 USES_CONTROLS=1
36710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36711 fi
36712
36713 if test "$wxUSE_SLIDER" = "yes"; then
36714 cat >>confdefs.h <<\_ACEOF
36715 #define wxUSE_SLIDER 1
36716 _ACEOF
36717
36718 USES_CONTROLS=1
36719 fi
36720
36721 if test "$wxUSE_SPINBTN" = "yes"; then
36722 cat >>confdefs.h <<\_ACEOF
36723 #define wxUSE_SPINBTN 1
36724 _ACEOF
36725
36726 USES_CONTROLS=1
36727 fi
36728
36729 if test "$wxUSE_SPINCTRL" = "yes"; then
36730 cat >>confdefs.h <<\_ACEOF
36731 #define wxUSE_SPINCTRL 1
36732 _ACEOF
36733
36734 USES_CONTROLS=1
36735 fi
36736
36737 if test "$wxUSE_SPLITTER" = "yes"; then
36738 cat >>confdefs.h <<\_ACEOF
36739 #define wxUSE_SPLITTER 1
36740 _ACEOF
36741
36742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36743 fi
36744
36745 if test "$wxUSE_STATBMP" = "yes"; then
36746 cat >>confdefs.h <<\_ACEOF
36747 #define wxUSE_STATBMP 1
36748 _ACEOF
36749
36750 USES_CONTROLS=1
36751 fi
36752
36753 if test "$wxUSE_STATBOX" = "yes"; then
36754 cat >>confdefs.h <<\_ACEOF
36755 #define wxUSE_STATBOX 1
36756 _ACEOF
36757
36758 USES_CONTROLS=1
36759 fi
36760
36761 if test "$wxUSE_STATTEXT" = "yes"; then
36762 cat >>confdefs.h <<\_ACEOF
36763 #define wxUSE_STATTEXT 1
36764 _ACEOF
36765
36766 USES_CONTROLS=1
36767 fi
36768
36769 if test "$wxUSE_STATLINE" = "yes"; then
36770 cat >>confdefs.h <<\_ACEOF
36771 #define wxUSE_STATLINE 1
36772 _ACEOF
36773
36774 USES_CONTROLS=1
36775 fi
36776
36777 if test "$wxUSE_STATUSBAR" = "yes"; then
36778 cat >>confdefs.h <<\_ACEOF
36779 #define wxUSE_STATUSBAR 1
36780 _ACEOF
36781
36782 USES_CONTROLS=1
36783
36784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36785 fi
36786
36787 if test "$wxUSE_TABDIALOG" = "yes"; then
36788 cat >>confdefs.h <<\_ACEOF
36789 #define wxUSE_TAB_DIALOG 1
36790 _ACEOF
36791
36792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36793 fi
36794
36795 if test "$wxUSE_TEXTCTRL" = "yes"; then
36796 cat >>confdefs.h <<\_ACEOF
36797 #define wxUSE_TEXTCTRL 1
36798 _ACEOF
36799
36800 USES_CONTROLS=1
36801 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36802 fi
36803
36804 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36805 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36806 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36807 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36808 wxUSE_TOGGLEBTN=no
36809 fi
36810 if test "$wxUSE_UNIVERSAL" = "yes"; then
36811 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36812 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36813 wxUSE_TOGGLEBTN=no
36814 fi
36815
36816 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36817 cat >>confdefs.h <<\_ACEOF
36818 #define wxUSE_TOGGLEBTN 1
36819 _ACEOF
36820
36821 USES_CONTROLS=1
36822 fi
36823 fi
36824
36825 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36826 cat >>confdefs.h <<\_ACEOF
36827 #define wxUSE_TOOLBAR_SIMPLE 1
36828 _ACEOF
36829
36830 wxUSE_TOOLBAR="yes"
36831 USES_CONTROLS=1
36832 fi
36833
36834 if test "$wxUSE_TOOLBAR" = "yes"; then
36835 cat >>confdefs.h <<\_ACEOF
36836 #define wxUSE_TOOLBAR 1
36837 _ACEOF
36838
36839 USES_CONTROLS=1
36840
36841 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36842 wxUSE_TOOLBAR_NATIVE="yes"
36843 fi
36844
36845 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36846 cat >>confdefs.h <<\_ACEOF
36847 #define wxUSE_TOOLBAR_NATIVE 1
36848 _ACEOF
36849
36850 USES_CONTROLS=1
36851 fi
36852
36853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36854 fi
36855
36856 if test "$wxUSE_TOOLTIPS" = "yes"; then
36857 if test "$wxUSE_MOTIF" = 1; then
36858 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36859 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36860 else
36861 if test "$wxUSE_UNIVERSAL" = "yes"; then
36862 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36863 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36864 else
36865 cat >>confdefs.h <<\_ACEOF
36866 #define wxUSE_TOOLTIPS 1
36867 _ACEOF
36868
36869 fi
36870 fi
36871 fi
36872
36873 if test "$wxUSE_TREECTRL" = "yes"; then
36874 if test "$wxUSE_IMAGLIST" = "yes"; then
36875 cat >>confdefs.h <<\_ACEOF
36876 #define wxUSE_TREECTRL 1
36877 _ACEOF
36878
36879 USES_CONTROLS=1
36880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36881 else
36882 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36883 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36884 fi
36885 fi
36886
36887 if test "$wxUSE_POPUPWIN" = "yes"; then
36888 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36889 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36890 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36891 else
36892 if test "$wxUSE_PM" = 1; then
36893 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36894 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36895 else
36896 cat >>confdefs.h <<\_ACEOF
36897 #define wxUSE_POPUPWIN 1
36898 _ACEOF
36899
36900
36901 USES_CONTROLS=1
36902 fi
36903 fi
36904 fi
36905
36906 if test "$wxUSE_TIPWINDOW" = "yes"; then
36907 if test "$wxUSE_PM" = 1; then
36908 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36909 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36910 else
36911 cat >>confdefs.h <<\_ACEOF
36912 #define wxUSE_TIPWINDOW 1
36913 _ACEOF
36914
36915 fi
36916 fi
36917
36918 if test "$USES_CONTROLS" = 1; then
36919 cat >>confdefs.h <<\_ACEOF
36920 #define wxUSE_CONTROLS 1
36921 _ACEOF
36922
36923 fi
36924
36925
36926 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36927 cat >>confdefs.h <<\_ACEOF
36928 #define wxUSE_ACCESSIBILITY 1
36929 _ACEOF
36930
36931 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36932 fi
36933
36934 if test "$wxUSE_DRAGIMAGE" = "yes"; then
36935 cat >>confdefs.h <<\_ACEOF
36936 #define wxUSE_DRAGIMAGE 1
36937 _ACEOF
36938
36939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36940 fi
36941
36942 if test "$wxUSE_EXCEPTIONS" = "yes"; then
36943 cat >>confdefs.h <<\_ACEOF
36944 #define wxUSE_EXCEPTIONS 1
36945 _ACEOF
36946
36947 fi
36948
36949 USE_HTML=0
36950 if test "$wxUSE_HTML" = "yes"; then
36951 cat >>confdefs.h <<\_ACEOF
36952 #define wxUSE_HTML 1
36953 _ACEOF
36954
36955 USE_HTML=1
36956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
36957 fi
36958
36959 if test "$wxUSE_MENUS" = "yes"; then
36960 cat >>confdefs.h <<\_ACEOF
36961 #define wxUSE_MENUS 1
36962 _ACEOF
36963
36964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36965 fi
36966
36967 if test "$wxUSE_METAFILE" = "yes"; then
36968 cat >>confdefs.h <<\_ACEOF
36969 #define wxUSE_METAFILE 1
36970 _ACEOF
36971
36972 fi
36973
36974 if test "$wxUSE_MIMETYPE" = "yes"; then
36975 cat >>confdefs.h <<\_ACEOF
36976 #define wxUSE_MIMETYPE 1
36977 _ACEOF
36978
36979 fi
36980
36981 if test "$wxUSE_MINIFRAME" = "yes"; then
36982 cat >>confdefs.h <<\_ACEOF
36983 #define wxUSE_MINIFRAME 1
36984 _ACEOF
36985
36986 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36987 fi
36988
36989 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
36990 cat >>confdefs.h <<\_ACEOF
36991 #define wxUSE_SYSTEM_OPTIONS 1
36992 _ACEOF
36993
36994 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36995 "$TOOLKIT" = "MOTIF"; then
36996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36997 fi
36998 fi
36999
37000
37001 if test "$wxUSE_VALIDATORS" = "yes"; then
37002 cat >>confdefs.h <<\_ACEOF
37003 #define wxUSE_VALIDATORS 1
37004 _ACEOF
37005
37006 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37007 fi
37008
37009 if test "$wxUSE_PALETTE" = "yes" ; then
37010 cat >>confdefs.h <<\_ACEOF
37011 #define wxUSE_PALETTE 1
37012 _ACEOF
37013
37014 fi
37015
37016 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37017 LIBS=" -lunicows $LIBS"
37018 fi
37019
37020
37021 if test "$wxUSE_IMAGE" = "yes" ; then
37022 cat >>confdefs.h <<\_ACEOF
37023 #define wxUSE_IMAGE 1
37024 _ACEOF
37025
37026
37027 if test "$wxUSE_GIF" = "yes" ; then
37028 cat >>confdefs.h <<\_ACEOF
37029 #define wxUSE_GIF 1
37030 _ACEOF
37031
37032 fi
37033
37034 if test "$wxUSE_PCX" = "yes" ; then
37035 cat >>confdefs.h <<\_ACEOF
37036 #define wxUSE_PCX 1
37037 _ACEOF
37038
37039 fi
37040
37041 if test "$wxUSE_IFF" = "yes" ; then
37042 cat >>confdefs.h <<\_ACEOF
37043 #define wxUSE_IFF 1
37044 _ACEOF
37045
37046 fi
37047
37048 if test "$wxUSE_PNM" = "yes" ; then
37049 cat >>confdefs.h <<\_ACEOF
37050 #define wxUSE_PNM 1
37051 _ACEOF
37052
37053 fi
37054
37055 if test "$wxUSE_XPM" = "yes" ; then
37056 cat >>confdefs.h <<\_ACEOF
37057 #define wxUSE_XPM 1
37058 _ACEOF
37059
37060 fi
37061
37062 if test "$wxUSE_ICO_CUR" = "yes" ; then
37063 cat >>confdefs.h <<\_ACEOF
37064 #define wxUSE_ICO_CUR 1
37065 _ACEOF
37066
37067 fi
37068 fi
37069
37070
37071 if test "$wxUSE_CHOICEDLG" = "yes"; then
37072 cat >>confdefs.h <<\_ACEOF
37073 #define wxUSE_CHOICEDLG 1
37074 _ACEOF
37075
37076 fi
37077
37078 if test "$wxUSE_COLOURDLG" = "yes"; then
37079 cat >>confdefs.h <<\_ACEOF
37080 #define wxUSE_COLOURDLG 1
37081 _ACEOF
37082
37083 fi
37084
37085 if test "$wxUSE_FILEDLG" = "yes"; then
37086 cat >>confdefs.h <<\_ACEOF
37087 #define wxUSE_FILEDLG 1
37088 _ACEOF
37089
37090 fi
37091
37092 if test "$wxUSE_FINDREPLDLG" = "yes"; then
37093 cat >>confdefs.h <<\_ACEOF
37094 #define wxUSE_FINDREPLDLG 1
37095 _ACEOF
37096
37097 fi
37098
37099 if test "$wxUSE_FONTDLG" = "yes"; then
37100 cat >>confdefs.h <<\_ACEOF
37101 #define wxUSE_FONTDLG 1
37102 _ACEOF
37103
37104 fi
37105
37106 if test "$wxUSE_DIRDLG" = "yes"; then
37107 if test "$wxUSE_TREECTRL" != "yes"; then
37108 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37109 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37110 else
37111 cat >>confdefs.h <<\_ACEOF
37112 #define wxUSE_DIRDLG 1
37113 _ACEOF
37114
37115 fi
37116 fi
37117
37118 if test "$wxUSE_MSGDLG" = "yes"; then
37119 cat >>confdefs.h <<\_ACEOF
37120 #define wxUSE_MSGDLG 1
37121 _ACEOF
37122
37123 fi
37124
37125 if test "$wxUSE_NUMBERDLG" = "yes"; then
37126 cat >>confdefs.h <<\_ACEOF
37127 #define wxUSE_NUMBERDLG 1
37128 _ACEOF
37129
37130 fi
37131
37132 if test "$wxUSE_PROGRESSDLG" = "yes"; then
37133 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37134 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37135 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37136 else
37137 cat >>confdefs.h <<\_ACEOF
37138 #define wxUSE_PROGRESSDLG 1
37139 _ACEOF
37140
37141 fi
37142 fi
37143
37144 if test "$wxUSE_SPLASH" = "yes"; then
37145 cat >>confdefs.h <<\_ACEOF
37146 #define wxUSE_SPLASH 1
37147 _ACEOF
37148
37149 fi
37150
37151 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37152 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37153 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37154 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37155 else
37156 cat >>confdefs.h <<\_ACEOF
37157 #define wxUSE_STARTUP_TIPS 1
37158 _ACEOF
37159
37160 fi
37161 fi
37162
37163 if test "$wxUSE_TEXTDLG" = "yes"; then
37164 cat >>confdefs.h <<\_ACEOF
37165 #define wxUSE_TEXTDLG 1
37166 _ACEOF
37167
37168 fi
37169
37170 if test "$wxUSE_WIZARDDLG" = "yes"; then
37171 cat >>confdefs.h <<\_ACEOF
37172 #define wxUSE_WIZARDDLG 1
37173 _ACEOF
37174
37175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37176 fi
37177
37178
37179 if test "$cross_compiling" = "yes"; then
37180 OSINFO="\"$host\""
37181 else
37182 OSINFO=`uname -s -r -m`
37183 OSINFO="\"$OSINFO\""
37184 fi
37185
37186 cat >>confdefs.h <<_ACEOF
37187 #define WXWIN_OS_DESCRIPTION $OSINFO
37188 _ACEOF
37189
37190
37191
37192 if test "x$prefix" != "xNONE"; then
37193 wxPREFIX=$prefix
37194 else
37195 wxPREFIX=$ac_default_prefix
37196 fi
37197
37198 cat >>confdefs.h <<_ACEOF
37199 #define wxINSTALL_PREFIX "$wxPREFIX"
37200 _ACEOF
37201
37202
37203 top_builddir_wxconfig=`pwd`
37204
37205
37206
37207 CORE_BASE_LIBS="net base"
37208 CORE_GUI_LIBS="adv core"
37209
37210 if test "$wxUSE_XML" = "yes" ; then
37211 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37212 fi
37213 if test "$wxUSE_ODBC" != "no" ; then
37214 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37215 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37216 fi
37217 if test "$wxUSE_HTML" = "yes" ; then
37218 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37219 fi
37220
37221 if test "$wxUSE_GUI" != "yes"; then
37222 CORE_GUI_LIBS=""
37223 fi
37224
37225
37226
37227
37228
37229
37230
37231
37232 if test "$wxUSE_MAC" = 1 ; then
37233 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
37234 fi
37235 if test "$wxUSE_COCOA" = 1 ; then
37236 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37237 fi
37238
37239
37240 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37241
37242 have_cos=0
37243 have_floor=0
37244
37245 for ac_func in cos
37246 do
37247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37248 echo "$as_me:$LINENO: checking for $ac_func" >&5
37249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37250 if eval "test \"\${$as_ac_var+set}\" = set"; then
37251 echo $ECHO_N "(cached) $ECHO_C" >&6
37252 else
37253 cat >conftest.$ac_ext <<_ACEOF
37254 /* confdefs.h. */
37255 _ACEOF
37256 cat confdefs.h >>conftest.$ac_ext
37257 cat >>conftest.$ac_ext <<_ACEOF
37258 /* end confdefs.h. */
37259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37261 #define $ac_func innocuous_$ac_func
37262
37263 /* System header to define __stub macros and hopefully few prototypes,
37264 which can conflict with char $ac_func (); below.
37265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37266 <limits.h> exists even on freestanding compilers. */
37267
37268 #ifdef __STDC__
37269 # include <limits.h>
37270 #else
37271 # include <assert.h>
37272 #endif
37273
37274 #undef $ac_func
37275
37276 /* Override any gcc2 internal prototype to avoid an error. */
37277 #ifdef __cplusplus
37278 extern "C"
37279 {
37280 #endif
37281 /* We use char because int might match the return type of a gcc2
37282 builtin and then its argument prototype would still apply. */
37283 char $ac_func ();
37284 /* The GNU C library defines this for functions which it implements
37285 to always fail with ENOSYS. Some functions are actually named
37286 something starting with __ and the normal name is an alias. */
37287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37288 choke me
37289 #else
37290 char (*f) () = $ac_func;
37291 #endif
37292 #ifdef __cplusplus
37293 }
37294 #endif
37295
37296 int
37297 main ()
37298 {
37299 return f != $ac_func;
37300 ;
37301 return 0;
37302 }
37303 _ACEOF
37304 rm -f conftest.$ac_objext conftest$ac_exeext
37305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37306 (eval $ac_link) 2>conftest.er1
37307 ac_status=$?
37308 grep -v '^ *+' conftest.er1 >conftest.err
37309 rm -f conftest.er1
37310 cat conftest.err >&5
37311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37312 (exit $ac_status); } &&
37313 { ac_try='test -z "$ac_c_werror_flag"
37314 || test ! -s conftest.err'
37315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37316 (eval $ac_try) 2>&5
37317 ac_status=$?
37318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37319 (exit $ac_status); }; } &&
37320 { ac_try='test -s conftest$ac_exeext'
37321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37322 (eval $ac_try) 2>&5
37323 ac_status=$?
37324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37325 (exit $ac_status); }; }; then
37326 eval "$as_ac_var=yes"
37327 else
37328 echo "$as_me: failed program was:" >&5
37329 sed 's/^/| /' conftest.$ac_ext >&5
37330
37331 eval "$as_ac_var=no"
37332 fi
37333 rm -f conftest.err conftest.$ac_objext \
37334 conftest$ac_exeext conftest.$ac_ext
37335 fi
37336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37338 if test `eval echo '${'$as_ac_var'}'` = yes; then
37339 cat >>confdefs.h <<_ACEOF
37340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37341 _ACEOF
37342 have_cos=1
37343 fi
37344 done
37345
37346
37347 for ac_func in floor
37348 do
37349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37350 echo "$as_me:$LINENO: checking for $ac_func" >&5
37351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37352 if eval "test \"\${$as_ac_var+set}\" = set"; then
37353 echo $ECHO_N "(cached) $ECHO_C" >&6
37354 else
37355 cat >conftest.$ac_ext <<_ACEOF
37356 /* confdefs.h. */
37357 _ACEOF
37358 cat confdefs.h >>conftest.$ac_ext
37359 cat >>conftest.$ac_ext <<_ACEOF
37360 /* end confdefs.h. */
37361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37363 #define $ac_func innocuous_$ac_func
37364
37365 /* System header to define __stub macros and hopefully few prototypes,
37366 which can conflict with char $ac_func (); below.
37367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37368 <limits.h> exists even on freestanding compilers. */
37369
37370 #ifdef __STDC__
37371 # include <limits.h>
37372 #else
37373 # include <assert.h>
37374 #endif
37375
37376 #undef $ac_func
37377
37378 /* Override any gcc2 internal prototype to avoid an error. */
37379 #ifdef __cplusplus
37380 extern "C"
37381 {
37382 #endif
37383 /* We use char because int might match the return type of a gcc2
37384 builtin and then its argument prototype would still apply. */
37385 char $ac_func ();
37386 /* The GNU C library defines this for functions which it implements
37387 to always fail with ENOSYS. Some functions are actually named
37388 something starting with __ and the normal name is an alias. */
37389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37390 choke me
37391 #else
37392 char (*f) () = $ac_func;
37393 #endif
37394 #ifdef __cplusplus
37395 }
37396 #endif
37397
37398 int
37399 main ()
37400 {
37401 return f != $ac_func;
37402 ;
37403 return 0;
37404 }
37405 _ACEOF
37406 rm -f conftest.$ac_objext conftest$ac_exeext
37407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37408 (eval $ac_link) 2>conftest.er1
37409 ac_status=$?
37410 grep -v '^ *+' conftest.er1 >conftest.err
37411 rm -f conftest.er1
37412 cat conftest.err >&5
37413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414 (exit $ac_status); } &&
37415 { ac_try='test -z "$ac_c_werror_flag"
37416 || test ! -s conftest.err'
37417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37418 (eval $ac_try) 2>&5
37419 ac_status=$?
37420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37421 (exit $ac_status); }; } &&
37422 { ac_try='test -s conftest$ac_exeext'
37423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37424 (eval $ac_try) 2>&5
37425 ac_status=$?
37426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37427 (exit $ac_status); }; }; then
37428 eval "$as_ac_var=yes"
37429 else
37430 echo "$as_me: failed program was:" >&5
37431 sed 's/^/| /' conftest.$ac_ext >&5
37432
37433 eval "$as_ac_var=no"
37434 fi
37435 rm -f conftest.err conftest.$ac_objext \
37436 conftest$ac_exeext conftest.$ac_ext
37437 fi
37438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37440 if test `eval echo '${'$as_ac_var'}'` = yes; then
37441 cat >>confdefs.h <<_ACEOF
37442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37443 _ACEOF
37444 have_floor=1
37445 fi
37446 done
37447
37448 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37449 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37450 if test "$have_cos" = 1 -a "$have_floor" = 1; then
37451 echo "$as_me:$LINENO: result: yes" >&5
37452 echo "${ECHO_T}yes" >&6
37453 else
37454 echo "$as_me:$LINENO: result: no" >&5
37455 echo "${ECHO_T}no" >&6
37456 LIBS="$LIBS -lm"
37457 # use different functions to avoid configure caching
37458 have_sin=0
37459 have_ceil=0
37460
37461 for ac_func in sin
37462 do
37463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37464 echo "$as_me:$LINENO: checking for $ac_func" >&5
37465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37466 if eval "test \"\${$as_ac_var+set}\" = set"; then
37467 echo $ECHO_N "(cached) $ECHO_C" >&6
37468 else
37469 cat >conftest.$ac_ext <<_ACEOF
37470 /* confdefs.h. */
37471 _ACEOF
37472 cat confdefs.h >>conftest.$ac_ext
37473 cat >>conftest.$ac_ext <<_ACEOF
37474 /* end confdefs.h. */
37475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37477 #define $ac_func innocuous_$ac_func
37478
37479 /* System header to define __stub macros and hopefully few prototypes,
37480 which can conflict with char $ac_func (); below.
37481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37482 <limits.h> exists even on freestanding compilers. */
37483
37484 #ifdef __STDC__
37485 # include <limits.h>
37486 #else
37487 # include <assert.h>
37488 #endif
37489
37490 #undef $ac_func
37491
37492 /* Override any gcc2 internal prototype to avoid an error. */
37493 #ifdef __cplusplus
37494 extern "C"
37495 {
37496 #endif
37497 /* We use char because int might match the return type of a gcc2
37498 builtin and then its argument prototype would still apply. */
37499 char $ac_func ();
37500 /* The GNU C library defines this for functions which it implements
37501 to always fail with ENOSYS. Some functions are actually named
37502 something starting with __ and the normal name is an alias. */
37503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37504 choke me
37505 #else
37506 char (*f) () = $ac_func;
37507 #endif
37508 #ifdef __cplusplus
37509 }
37510 #endif
37511
37512 int
37513 main ()
37514 {
37515 return f != $ac_func;
37516 ;
37517 return 0;
37518 }
37519 _ACEOF
37520 rm -f conftest.$ac_objext conftest$ac_exeext
37521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37522 (eval $ac_link) 2>conftest.er1
37523 ac_status=$?
37524 grep -v '^ *+' conftest.er1 >conftest.err
37525 rm -f conftest.er1
37526 cat conftest.err >&5
37527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37528 (exit $ac_status); } &&
37529 { ac_try='test -z "$ac_c_werror_flag"
37530 || test ! -s conftest.err'
37531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37532 (eval $ac_try) 2>&5
37533 ac_status=$?
37534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37535 (exit $ac_status); }; } &&
37536 { ac_try='test -s conftest$ac_exeext'
37537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37538 (eval $ac_try) 2>&5
37539 ac_status=$?
37540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541 (exit $ac_status); }; }; then
37542 eval "$as_ac_var=yes"
37543 else
37544 echo "$as_me: failed program was:" >&5
37545 sed 's/^/| /' conftest.$ac_ext >&5
37546
37547 eval "$as_ac_var=no"
37548 fi
37549 rm -f conftest.err conftest.$ac_objext \
37550 conftest$ac_exeext conftest.$ac_ext
37551 fi
37552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37554 if test `eval echo '${'$as_ac_var'}'` = yes; then
37555 cat >>confdefs.h <<_ACEOF
37556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37557 _ACEOF
37558 have_sin=1
37559 fi
37560 done
37561
37562
37563 for ac_func in ceil
37564 do
37565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37566 echo "$as_me:$LINENO: checking for $ac_func" >&5
37567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37568 if eval "test \"\${$as_ac_var+set}\" = set"; then
37569 echo $ECHO_N "(cached) $ECHO_C" >&6
37570 else
37571 cat >conftest.$ac_ext <<_ACEOF
37572 /* confdefs.h. */
37573 _ACEOF
37574 cat confdefs.h >>conftest.$ac_ext
37575 cat >>conftest.$ac_ext <<_ACEOF
37576 /* end confdefs.h. */
37577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37579 #define $ac_func innocuous_$ac_func
37580
37581 /* System header to define __stub macros and hopefully few prototypes,
37582 which can conflict with char $ac_func (); below.
37583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37584 <limits.h> exists even on freestanding compilers. */
37585
37586 #ifdef __STDC__
37587 # include <limits.h>
37588 #else
37589 # include <assert.h>
37590 #endif
37591
37592 #undef $ac_func
37593
37594 /* Override any gcc2 internal prototype to avoid an error. */
37595 #ifdef __cplusplus
37596 extern "C"
37597 {
37598 #endif
37599 /* We use char because int might match the return type of a gcc2
37600 builtin and then its argument prototype would still apply. */
37601 char $ac_func ();
37602 /* The GNU C library defines this for functions which it implements
37603 to always fail with ENOSYS. Some functions are actually named
37604 something starting with __ and the normal name is an alias. */
37605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37606 choke me
37607 #else
37608 char (*f) () = $ac_func;
37609 #endif
37610 #ifdef __cplusplus
37611 }
37612 #endif
37613
37614 int
37615 main ()
37616 {
37617 return f != $ac_func;
37618 ;
37619 return 0;
37620 }
37621 _ACEOF
37622 rm -f conftest.$ac_objext conftest$ac_exeext
37623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37624 (eval $ac_link) 2>conftest.er1
37625 ac_status=$?
37626 grep -v '^ *+' conftest.er1 >conftest.err
37627 rm -f conftest.er1
37628 cat conftest.err >&5
37629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630 (exit $ac_status); } &&
37631 { ac_try='test -z "$ac_c_werror_flag"
37632 || test ! -s conftest.err'
37633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37634 (eval $ac_try) 2>&5
37635 ac_status=$?
37636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37637 (exit $ac_status); }; } &&
37638 { ac_try='test -s conftest$ac_exeext'
37639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37640 (eval $ac_try) 2>&5
37641 ac_status=$?
37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643 (exit $ac_status); }; }; then
37644 eval "$as_ac_var=yes"
37645 else
37646 echo "$as_me: failed program was:" >&5
37647 sed 's/^/| /' conftest.$ac_ext >&5
37648
37649 eval "$as_ac_var=no"
37650 fi
37651 rm -f conftest.err conftest.$ac_objext \
37652 conftest$ac_exeext conftest.$ac_ext
37653 fi
37654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37656 if test `eval echo '${'$as_ac_var'}'` = yes; then
37657 cat >>confdefs.h <<_ACEOF
37658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37659 _ACEOF
37660 have_ceil=1
37661 fi
37662 done
37663
37664 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37665 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37666 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37667 echo "$as_me:$LINENO: result: yes" >&5
37668 echo "${ECHO_T}yes" >&6
37669 else
37670 echo "$as_me:$LINENO: result: no" >&5
37671 echo "${ECHO_T}no" >&6
37672 # not sure we should warn the user, crash, etc.
37673 fi
37674 fi
37675
37676 if test "$wxUSE_GUI" = "yes"; then
37677
37678
37679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37680 drawing dynamic erase event exec font image \
37681 minimal propsize rotate shaped widgets render"
37682
37683 if test "$wxUSE_MONOLITHIC" != "yes"; then
37684 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37685 fi
37686 else
37687 SAMPLES_SUBDIRS="console"
37688 fi
37689
37690
37691 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37692 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37693
37694 if test "$GXX" = yes ; then
37695 CXXWARNINGS="-Wall"
37696 fi
37697
37698 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37699
37700 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
37701 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37702 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
37703
37704
37705 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
37706 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37707 EXTRALIBS_XML="$EXPAT_LINK"
37708 EXTRALIBS_HTML="$MSPACK_LINK"
37709 EXTRALIBS_ODBC="$ODBC_LINK"
37710 if test "$wxUSE_GUI" = "yes"; then
37711 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
37712 fi
37713 if test "$wxUSE_OPENGL" = "yes"; then
37714 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37715 fi
37716
37717 LDFLAGS="$LDFLAGS $PROFILE"
37718
37719 if test "$wxUSE_GTK" = 1; then
37720 WXCONFIG_INCLUDE=
37721 else
37722 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37723 fi
37724
37725 WXCONFIG_EXTRALIBS="$LIBS"
37726
37727 if test "$wxUSE_REGEX" = "builtin" ; then
37728 wxconfig_3rdparty="$wxconfig_3rdparty regex"
37729 fi
37730 if test "$wxUSE_EXPAT" = "builtin" ; then
37731 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37732 fi
37733 if test "$wxUSE_ODBC" = "builtin" ; then
37734 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37735 fi
37736 if test "$wxUSE_LIBTIFF" = "builtin" ; then
37737 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37738 fi
37739 if test "$wxUSE_LIBJPEG" = "builtin" ; then
37740 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37741 fi
37742 if test "$wxUSE_LIBPNG" = "builtin" ; then
37743 wxconfig_3rdparty="$wxconfig_3rdparty png"
37744 fi
37745 if test "$wxUSE_ZLIB" = "builtin" ; then
37746 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37747 fi
37748 if test "$wxUSE_ODBC" = "builtin" ; then
37749 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37750 fi
37751
37752 for i in $wxconfig_3rdparty ; do
37753 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37754 done
37755
37756
37757 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37758 WXUNIV=1
37759 else
37760 WXUNIV=0
37761 fi
37762
37763
37764
37765
37766
37767
37768
37769
37770
37771 if test $wxUSE_MONOLITHIC = "yes" ; then
37772 MONOLITHIC=1
37773 else
37774 MONOLITHIC=0
37775 fi
37776
37777 if test $wxUSE_PLUGINS = "yes" ; then
37778 USE_PLUGINS=1
37779 else
37780 USE_PLUGINS=0
37781 fi
37782
37783 if test $wxUSE_ODBC != "no" ; then
37784 USE_ODBC=1
37785 else
37786 USE_ODBC=0
37787 fi
37788
37789 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37790 OFFICIAL_BUILD=1
37791 else
37792 OFFICIAL_BUILD=0
37793 fi
37794
37795
37796
37797
37798
37799
37800
37801
37802
37803
37804
37805
37806
37807
37808
37809
37810
37811
37812
37813
37814
37815 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37816
37817
37818
37819
37820
37821
37822
37823 if test "x$BAKEFILE_HOST" = "x"; then
37824 BAKEFILE_HOST="${host}"
37825 fi
37826
37827 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37828
37829 if test -n "$ac_tool_prefix"; then
37830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37832 echo "$as_me:$LINENO: checking for $ac_word" >&5
37833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37834 if test "${ac_cv_prog_RANLIB+set}" = set; then
37835 echo $ECHO_N "(cached) $ECHO_C" >&6
37836 else
37837 if test -n "$RANLIB"; then
37838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37839 else
37840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37841 for as_dir in $PATH
37842 do
37843 IFS=$as_save_IFS
37844 test -z "$as_dir" && as_dir=.
37845 for ac_exec_ext in '' $ac_executable_extensions; do
37846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37849 break 2
37850 fi
37851 done
37852 done
37853
37854 fi
37855 fi
37856 RANLIB=$ac_cv_prog_RANLIB
37857 if test -n "$RANLIB"; then
37858 echo "$as_me:$LINENO: result: $RANLIB" >&5
37859 echo "${ECHO_T}$RANLIB" >&6
37860 else
37861 echo "$as_me:$LINENO: result: no" >&5
37862 echo "${ECHO_T}no" >&6
37863 fi
37864
37865 fi
37866 if test -z "$ac_cv_prog_RANLIB"; then
37867 ac_ct_RANLIB=$RANLIB
37868 # Extract the first word of "ranlib", so it can be a program name with args.
37869 set dummy ranlib; ac_word=$2
37870 echo "$as_me:$LINENO: checking for $ac_word" >&5
37871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37872 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37873 echo $ECHO_N "(cached) $ECHO_C" >&6
37874 else
37875 if test -n "$ac_ct_RANLIB"; then
37876 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37877 else
37878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37879 for as_dir in $PATH
37880 do
37881 IFS=$as_save_IFS
37882 test -z "$as_dir" && as_dir=.
37883 for ac_exec_ext in '' $ac_executable_extensions; do
37884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37885 ac_cv_prog_ac_ct_RANLIB="ranlib"
37886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37887 break 2
37888 fi
37889 done
37890 done
37891
37892 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37893 fi
37894 fi
37895 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37896 if test -n "$ac_ct_RANLIB"; then
37897 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37898 echo "${ECHO_T}$ac_ct_RANLIB" >&6
37899 else
37900 echo "$as_me:$LINENO: result: no" >&5
37901 echo "${ECHO_T}no" >&6
37902 fi
37903
37904 RANLIB=$ac_ct_RANLIB
37905 else
37906 RANLIB="$ac_cv_prog_RANLIB"
37907 fi
37908
37909 # Find a good install program. We prefer a C program (faster),
37910 # so one script is as good as another. But avoid the broken or
37911 # incompatible versions:
37912 # SysV /etc/install, /usr/sbin/install
37913 # SunOS /usr/etc/install
37914 # IRIX /sbin/install
37915 # AIX /bin/install
37916 # AmigaOS /C/install, which installs bootblocks on floppy discs
37917 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37918 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
37919 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
37920 # OS/2's system install, which has a completely different semantic
37921 # ./install, which can be erroneously created by make from ./install.sh.
37922 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37923 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37924 if test -z "$INSTALL"; then
37925 if test "${ac_cv_path_install+set}" = set; then
37926 echo $ECHO_N "(cached) $ECHO_C" >&6
37927 else
37928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37929 for as_dir in $PATH
37930 do
37931 IFS=$as_save_IFS
37932 test -z "$as_dir" && as_dir=.
37933 # Account for people who put trailing slashes in PATH elements.
37934 case $as_dir/ in
37935 ./ | .// | /cC/* | \
37936 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
37937 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
37938 /usr/ucb/* ) ;;
37939 *)
37940 # OSF1 and SCO ODT 3.0 have their own names for install.
37941 # Don't use installbsd from OSF since it installs stuff as root
37942 # by default.
37943 for ac_prog in ginstall scoinst install; do
37944 for ac_exec_ext in '' $ac_executable_extensions; do
37945 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37946 if test $ac_prog = install &&
37947 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37948 # AIX install. It has an incompatible calling convention.
37949 :
37950 elif test $ac_prog = install &&
37951 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37952 # program-specific install script used by HP pwplus--don't use.
37953 :
37954 else
37955 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37956 break 3
37957 fi
37958 fi
37959 done
37960 done
37961 ;;
37962 esac
37963 done
37964
37965
37966 fi
37967 if test "${ac_cv_path_install+set}" = set; then
37968 INSTALL=$ac_cv_path_install
37969 else
37970 # As a last resort, use the slow shell script. We don't cache a
37971 # path for INSTALL within a source directory, because that will
37972 # break other packages using the cache if that directory is
37973 # removed, or if the path is relative.
37974 INSTALL=$ac_install_sh
37975 fi
37976 fi
37977 echo "$as_me:$LINENO: result: $INSTALL" >&5
37978 echo "${ECHO_T}$INSTALL" >&6
37979
37980 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
37981 # It thinks the first close brace ends the variable substitution.
37982 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
37983
37984 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
37985
37986 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
37987
37988 echo "$as_me:$LINENO: checking whether ln -s works" >&5
37989 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
37990 LN_S=$as_ln_s
37991 if test "$LN_S" = "ln -s"; then
37992 echo "$as_me:$LINENO: result: yes" >&5
37993 echo "${ECHO_T}yes" >&6
37994 else
37995 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37996 echo "${ECHO_T}no, using $LN_S" >&6
37997 fi
37998
37999
38000 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38001 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
38002 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
38003 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38004 echo $ECHO_N "(cached) $ECHO_C" >&6
38005 else
38006 cat >conftest.make <<\_ACEOF
38007 all:
38008 @echo 'ac_maketemp="$(MAKE)"'
38009 _ACEOF
38010 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38011 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38012 if test -n "$ac_maketemp"; then
38013 eval ac_cv_prog_make_${ac_make}_set=yes
38014 else
38015 eval ac_cv_prog_make_${ac_make}_set=no
38016 fi
38017 rm -f conftest.make
38018 fi
38019 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38020 echo "$as_me:$LINENO: result: yes" >&5
38021 echo "${ECHO_T}yes" >&6
38022 SET_MAKE=
38023 else
38024 echo "$as_me:$LINENO: result: no" >&5
38025 echo "${ECHO_T}no" >&6
38026 SET_MAKE="MAKE=${MAKE-make}"
38027 fi
38028
38029
38030
38031 if test -n "$ac_tool_prefix"; then
38032 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38033 set dummy ${ac_tool_prefix}ar; ac_word=$2
38034 echo "$as_me:$LINENO: checking for $ac_word" >&5
38035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38036 if test "${ac_cv_prog_AR+set}" = set; then
38037 echo $ECHO_N "(cached) $ECHO_C" >&6
38038 else
38039 if test -n "$AR"; then
38040 ac_cv_prog_AR="$AR" # Let the user override the test.
38041 else
38042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38043 for as_dir in $PATH
38044 do
38045 IFS=$as_save_IFS
38046 test -z "$as_dir" && as_dir=.
38047 for ac_exec_ext in '' $ac_executable_extensions; do
38048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38049 ac_cv_prog_AR="${ac_tool_prefix}ar"
38050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38051 break 2
38052 fi
38053 done
38054 done
38055
38056 fi
38057 fi
38058 AR=$ac_cv_prog_AR
38059 if test -n "$AR"; then
38060 echo "$as_me:$LINENO: result: $AR" >&5
38061 echo "${ECHO_T}$AR" >&6
38062 else
38063 echo "$as_me:$LINENO: result: no" >&5
38064 echo "${ECHO_T}no" >&6
38065 fi
38066
38067 fi
38068 if test -z "$ac_cv_prog_AR"; then
38069 ac_ct_AR=$AR
38070 # Extract the first word of "ar", so it can be a program name with args.
38071 set dummy ar; ac_word=$2
38072 echo "$as_me:$LINENO: checking for $ac_word" >&5
38073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38074 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38075 echo $ECHO_N "(cached) $ECHO_C" >&6
38076 else
38077 if test -n "$ac_ct_AR"; then
38078 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38079 else
38080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38081 for as_dir in $PATH
38082 do
38083 IFS=$as_save_IFS
38084 test -z "$as_dir" && as_dir=.
38085 for ac_exec_ext in '' $ac_executable_extensions; do
38086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38087 ac_cv_prog_ac_ct_AR="ar"
38088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38089 break 2
38090 fi
38091 done
38092 done
38093
38094 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38095 fi
38096 fi
38097 ac_ct_AR=$ac_cv_prog_ac_ct_AR
38098 if test -n "$ac_ct_AR"; then
38099 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38100 echo "${ECHO_T}$ac_ct_AR" >&6
38101 else
38102 echo "$as_me:$LINENO: result: no" >&5
38103 echo "${ECHO_T}no" >&6
38104 fi
38105
38106 AR=$ac_ct_AR
38107 else
38108 AR="$ac_cv_prog_AR"
38109 fi
38110
38111 if test -n "$ac_tool_prefix"; then
38112 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38113 set dummy ${ac_tool_prefix}strip; ac_word=$2
38114 echo "$as_me:$LINENO: checking for $ac_word" >&5
38115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38116 if test "${ac_cv_prog_STRIP+set}" = set; then
38117 echo $ECHO_N "(cached) $ECHO_C" >&6
38118 else
38119 if test -n "$STRIP"; then
38120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38121 else
38122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38123 for as_dir in $PATH
38124 do
38125 IFS=$as_save_IFS
38126 test -z "$as_dir" && as_dir=.
38127 for ac_exec_ext in '' $ac_executable_extensions; do
38128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38129 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38131 break 2
38132 fi
38133 done
38134 done
38135
38136 fi
38137 fi
38138 STRIP=$ac_cv_prog_STRIP
38139 if test -n "$STRIP"; then
38140 echo "$as_me:$LINENO: result: $STRIP" >&5
38141 echo "${ECHO_T}$STRIP" >&6
38142 else
38143 echo "$as_me:$LINENO: result: no" >&5
38144 echo "${ECHO_T}no" >&6
38145 fi
38146
38147 fi
38148 if test -z "$ac_cv_prog_STRIP"; then
38149 ac_ct_STRIP=$STRIP
38150 # Extract the first word of "strip", so it can be a program name with args.
38151 set dummy strip; ac_word=$2
38152 echo "$as_me:$LINENO: checking for $ac_word" >&5
38153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38154 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38155 echo $ECHO_N "(cached) $ECHO_C" >&6
38156 else
38157 if test -n "$ac_ct_STRIP"; then
38158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38159 else
38160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38161 for as_dir in $PATH
38162 do
38163 IFS=$as_save_IFS
38164 test -z "$as_dir" && as_dir=.
38165 for ac_exec_ext in '' $ac_executable_extensions; do
38166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38167 ac_cv_prog_ac_ct_STRIP="strip"
38168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38169 break 2
38170 fi
38171 done
38172 done
38173
38174 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38175 fi
38176 fi
38177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38178 if test -n "$ac_ct_STRIP"; then
38179 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38180 echo "${ECHO_T}$ac_ct_STRIP" >&6
38181 else
38182 echo "$as_me:$LINENO: result: no" >&5
38183 echo "${ECHO_T}no" >&6
38184 fi
38185
38186 STRIP=$ac_ct_STRIP
38187 else
38188 STRIP="$ac_cv_prog_STRIP"
38189 fi
38190
38191 if test -n "$ac_tool_prefix"; then
38192 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38193 set dummy ${ac_tool_prefix}nm; ac_word=$2
38194 echo "$as_me:$LINENO: checking for $ac_word" >&5
38195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38196 if test "${ac_cv_prog_NM+set}" = set; then
38197 echo $ECHO_N "(cached) $ECHO_C" >&6
38198 else
38199 if test -n "$NM"; then
38200 ac_cv_prog_NM="$NM" # Let the user override the test.
38201 else
38202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38203 for as_dir in $PATH
38204 do
38205 IFS=$as_save_IFS
38206 test -z "$as_dir" && as_dir=.
38207 for ac_exec_ext in '' $ac_executable_extensions; do
38208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38209 ac_cv_prog_NM="${ac_tool_prefix}nm"
38210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38211 break 2
38212 fi
38213 done
38214 done
38215
38216 fi
38217 fi
38218 NM=$ac_cv_prog_NM
38219 if test -n "$NM"; then
38220 echo "$as_me:$LINENO: result: $NM" >&5
38221 echo "${ECHO_T}$NM" >&6
38222 else
38223 echo "$as_me:$LINENO: result: no" >&5
38224 echo "${ECHO_T}no" >&6
38225 fi
38226
38227 fi
38228 if test -z "$ac_cv_prog_NM"; then
38229 ac_ct_NM=$NM
38230 # Extract the first word of "nm", so it can be a program name with args.
38231 set dummy nm; ac_word=$2
38232 echo "$as_me:$LINENO: checking for $ac_word" >&5
38233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38234 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38235 echo $ECHO_N "(cached) $ECHO_C" >&6
38236 else
38237 if test -n "$ac_ct_NM"; then
38238 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38239 else
38240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38241 for as_dir in $PATH
38242 do
38243 IFS=$as_save_IFS
38244 test -z "$as_dir" && as_dir=.
38245 for ac_exec_ext in '' $ac_executable_extensions; do
38246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38247 ac_cv_prog_ac_ct_NM="nm"
38248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38249 break 2
38250 fi
38251 done
38252 done
38253
38254 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38255 fi
38256 fi
38257 ac_ct_NM=$ac_cv_prog_ac_ct_NM
38258 if test -n "$ac_ct_NM"; then
38259 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38260 echo "${ECHO_T}$ac_ct_NM" >&6
38261 else
38262 echo "$as_me:$LINENO: result: no" >&5
38263 echo "${ECHO_T}no" >&6
38264 fi
38265
38266 NM=$ac_ct_NM
38267 else
38268 NM="$ac_cv_prog_NM"
38269 fi
38270
38271
38272 case ${BAKEFILE_HOST} in
38273 *-hp-hpux* )
38274 INSTALL_DIR="mkdir"
38275 ;;
38276 *) INSTALL_DIR="$INSTALL -d"
38277 ;;
38278 esac
38279
38280
38281 LDFLAGS_GUI=
38282 case ${BAKEFILE_HOST} in
38283 *-*-cygwin* | *-*-mingw32* )
38284 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
38285 esac
38286
38287
38288 fi
38289
38290 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38291 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38292 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38293 echo $ECHO_N "(cached) $ECHO_C" >&6
38294 else
38295
38296 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38297 egrep -s GNU > /dev/null); then
38298 bakefile_cv_prog_makeisgnu="yes"
38299 else
38300 bakefile_cv_prog_makeisgnu="no"
38301 fi
38302
38303 fi
38304 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38305 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38306
38307 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38308 IF_GNU_MAKE=""
38309 else
38310 IF_GNU_MAKE="#"
38311 fi
38312
38313
38314
38315 PLATFORM_UNIX=0
38316 PLATFORM_WIN32=0
38317 PLATFORM_MSDOS=0
38318 PLATFORM_MAC=0
38319 PLATFORM_MACOSX=0
38320 PLATFORM_OS2=0
38321
38322 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38323 case "${BAKEFILE_HOST}" in
38324 *-*-cygwin* | *-*-mingw32* )
38325 PLATFORM_WIN32=1
38326 ;;
38327 *-pc-msdosdjgpp )
38328 PLATFORM_MSDOS=1
38329 ;;
38330 *-pc-os2_emx | *-pc-os2-emx )
38331 PLATFORM_OS2=1
38332 ;;
38333 powerpc-*-darwin* )
38334 PLATFORM_MAC=1
38335 PLATFORM_MACOSX=1
38336 ;;
38337 * )
38338 PLATFORM_UNIX=1
38339 ;;
38340 esac
38341 else
38342 case "$BAKEFILE_FORCE_PLATFORM" in
38343 win32 )
38344 PLATFORM_WIN32=1
38345 ;;
38346 msdos )
38347 PLATFORM_MSDOS=1
38348 ;;
38349 os2 )
38350 PLATFORM_OS2=1
38351 ;;
38352 darwin )
38353 PLATFORM_MAC=1
38354 PLATFORM_MACOSX=1
38355 ;;
38356 unix )
38357 PLATFORM_UNIX=1
38358 ;;
38359 * )
38360 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38361 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38362 { (exit 1); exit 1; }; }
38363 ;;
38364 esac
38365 fi
38366
38367
38368
38369
38370
38371
38372
38373
38374
38375 SO_SUFFIX="so"
38376 SO_SUFFIX_MODULE="so"
38377 EXEEXT=""
38378 LIBPREFIX=lib
38379 DLLPREFIX=lib
38380 DLLPREFIX_MODULE=
38381
38382 case "${BAKEFILE_HOST}" in
38383 *-hp-hpux* )
38384 SO_SUFFIX="sl"
38385 SO_SUFFIX_MODULE="sl"
38386 ;;
38387 *-*-aix* )
38388 SO_SUFFIX="a"
38389 SO_SUFFIX_MODULE="a"
38390 ;;
38391 *-*-cygwin* | *-*-mingw32* )
38392 SO_SUFFIX="dll"
38393 SO_SUFFIX_MODULE="dll"
38394 EXEEXT=".exe"
38395 DLLPREFIX=""
38396 ;;
38397 *-pc-msdosdjgpp )
38398 EXEEXT=".exe"
38399 DLLPREFIX=""
38400 ;;
38401 *-pc-os2_emx | *-pc-os2-emx )
38402 EXEEXT=".exe"
38403 DLLPREFIX=""
38404 LIBPREFIX=""
38405 ;;
38406 powerpc-*-darwin* )
38407 SO_SUFFIX="dylib"
38408 SO_SUFFIX_MODULE="bundle"
38409 ;;
38410 esac
38411
38412
38413
38414
38415
38416
38417
38418
38419
38420 SHARED_LD_CC="\$(CC) -shared -o"
38421 SHARED_LD_CXX="\$(CXX) -shared -o"
38422
38423 if test "x$GCC" = "xyes"; then
38424 PIC_FLAG="-fPIC"
38425 fi
38426
38427 case "${BAKEFILE_HOST}" in
38428 *-hp-hpux* )
38429 if test "x$GCC" = "xyes"; then
38430 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38431 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38432 else
38433 LDFLAGS="$LDFLAGS -L/usr/lib"
38434
38435 SHARED_LD_CC="${CC} -b -o"
38436 SHARED_LD_CXX="${CXX} -b -o"
38437 PIC_FLAG="+Z"
38438 fi
38439 ;;
38440
38441 *-*-linux* )
38442 if test "x$GCC" != "xyes"; then
38443 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38444 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38445 if test "${bakefile_cv_prog_icc+set}" = set; then
38446 echo $ECHO_N "(cached) $ECHO_C" >&6
38447 else
38448
38449 cat >conftest.$ac_ext <<_ACEOF
38450 /* confdefs.h. */
38451 _ACEOF
38452 cat confdefs.h >>conftest.$ac_ext
38453 cat >>conftest.$ac_ext <<_ACEOF
38454 /* end confdefs.h. */
38455
38456 int
38457 main ()
38458 {
38459
38460 #ifndef __INTEL_COMPILER
38461 #error Not icc
38462 #endif
38463
38464 ;
38465 return 0;
38466 }
38467 _ACEOF
38468 rm -f conftest.$ac_objext
38469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38470 (eval $ac_compile) 2>conftest.er1
38471 ac_status=$?
38472 grep -v '^ *+' conftest.er1 >conftest.err
38473 rm -f conftest.er1
38474 cat conftest.err >&5
38475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38476 (exit $ac_status); } &&
38477 { ac_try='test -z "$ac_c_werror_flag"
38478 || test ! -s conftest.err'
38479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38480 (eval $ac_try) 2>&5
38481 ac_status=$?
38482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38483 (exit $ac_status); }; } &&
38484 { ac_try='test -s conftest.$ac_objext'
38485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38486 (eval $ac_try) 2>&5
38487 ac_status=$?
38488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38489 (exit $ac_status); }; }; then
38490 bakefile_cv_prog_icc=yes
38491 else
38492 echo "$as_me: failed program was:" >&5
38493 sed 's/^/| /' conftest.$ac_ext >&5
38494
38495 bakefile_cv_prog_icc=no
38496
38497 fi
38498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38499
38500 fi
38501 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38502 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38503 if test "$bakefile_cv_prog_icc" = "yes"; then
38504 PIC_FLAG="-KPIC"
38505 fi
38506 fi
38507 ;;
38508
38509 *-*-solaris2* )
38510 if test "x$GCC" != xyes ; then
38511 SHARED_LD_CC="${CC} -G -o"
38512 SHARED_LD_CXX="${CXX} -G -o"
38513 PIC_FLAG="-KPIC"
38514 fi
38515 ;;
38516
38517 *-*-darwin* )
38518 CFLAGS="$CFLAGS -fno-common"
38519 CXXFLAGS="$CXXFLAGS -fno-common"
38520
38521
38522 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38523 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38524 if test "${wx_cv_gcc31+set}" = set; then
38525 echo $ECHO_N "(cached) $ECHO_C" >&6
38526 else
38527
38528 cat >conftest.$ac_ext <<_ACEOF
38529 /* confdefs.h. */
38530 _ACEOF
38531 cat confdefs.h >>conftest.$ac_ext
38532 cat >>conftest.$ac_ext <<_ACEOF
38533 /* end confdefs.h. */
38534
38535 int
38536 main ()
38537 {
38538
38539 #if (__GNUC__ < 3) || \
38540 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38541 #error old gcc
38542 #endif
38543
38544 ;
38545 return 0;
38546 }
38547 _ACEOF
38548 rm -f conftest.$ac_objext
38549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38550 (eval $ac_compile) 2>conftest.er1
38551 ac_status=$?
38552 grep -v '^ *+' conftest.er1 >conftest.err
38553 rm -f conftest.er1
38554 cat conftest.err >&5
38555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38556 (exit $ac_status); } &&
38557 { ac_try='test -z "$ac_c_werror_flag"
38558 || test ! -s conftest.err'
38559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38560 (eval $ac_try) 2>&5
38561 ac_status=$?
38562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38563 (exit $ac_status); }; } &&
38564 { ac_try='test -s conftest.$ac_objext'
38565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38566 (eval $ac_try) 2>&5
38567 ac_status=$?
38568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38569 (exit $ac_status); }; }; then
38570
38571 wx_cv_gcc31=yes
38572
38573 else
38574 echo "$as_me: failed program was:" >&5
38575 sed 's/^/| /' conftest.$ac_ext >&5
38576
38577
38578 wx_cv_gcc31=no
38579
38580
38581 fi
38582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38583
38584 fi
38585 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38586 echo "${ECHO_T}$wx_cv_gcc31" >&6
38587 if test "$wx_cv_gcc31" = "no"; then
38588 cat <<EOF >shared-ld-sh
38589 #!/bin/sh
38590 #-----------------------------------------------------------------------------
38591 #-- Name: distrib/mac/shared-ld-sh
38592 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38593 #-- Author: Gilles Depeyrot
38594 #-- Copyright: (c) 2002 Gilles Depeyrot
38595 #-- Licence: any use permitted
38596 #-----------------------------------------------------------------------------
38597
38598 verbose=0
38599 args=""
38600 objects=""
38601 linking_flag="-dynamiclib"
38602
38603 while test \${#} -gt 0; do
38604 case \${1} in
38605
38606 -v)
38607 verbose=1
38608 ;;
38609
38610 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38611 # collect these options and values
38612 args="\${args} \${1} \${2}"
38613 shift
38614 ;;
38615
38616 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38617 # collect these options
38618 args="\${args} \${1}"
38619 ;;
38620
38621 -dynamiclib|-bundle)
38622 linking_flag="\${1}"
38623 ;;
38624
38625 -*)
38626 echo "shared-ld: unhandled option '\${1}'"
38627 exit 1
38628 ;;
38629
38630 *.o | *.a | *.dylib)
38631 # collect object files
38632 objects="\${objects} \${1}"
38633 ;;
38634
38635 *)
38636 echo "shared-ld: unhandled argument '\${1}'"
38637 exit 1
38638 ;;
38639
38640 esac
38641 shift
38642 done
38643
38644 #
38645 # Link one module containing all the others
38646 #
38647 if test \${verbose} = 1; then
38648 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
38649 fi
38650 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
38651 status=\$?
38652 if test \${status} != 0; then
38653 exit \${status}
38654 fi
38655
38656 #
38657 # Link the shared library from the single module created
38658 #
38659 if test \${verbose} = 1; then
38660 echo "cc \${linking_flag} master.\$\$.o \${args}"
38661 fi
38662 c++ \${linking_flag} master.\$\$.o \${args}
38663 status=\$?
38664 if test \${status} != 0; then
38665 exit \${status}
38666 fi
38667
38668 #
38669 # Remove intermediate module
38670 #
38671 rm -f master.\$\$.o
38672
38673 exit 0
38674 EOF
38675 chmod +x shared-ld-sh
38676
38677 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38678 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38679 SHARED_LD_CXX="$SHARED_LD_CC"
38680 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38681 else
38682 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38683 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38684 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38685 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38686 fi
38687
38688 PIC_FLAG="-dynamic -fPIC"
38689 ;;
38690
38691 *-*-aix* )
38692 if test "x$GCC" != "xyes"; then
38693 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38694 set dummy makeC++SharedLib; ac_word=$2
38695 echo "$as_me:$LINENO: checking for $ac_word" >&5
38696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38697 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38698 echo $ECHO_N "(cached) $ECHO_C" >&6
38699 else
38700 if test -n "$AIX_CXX_LD"; then
38701 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38702 else
38703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38704 for as_dir in $PATH
38705 do
38706 IFS=$as_save_IFS
38707 test -z "$as_dir" && as_dir=.
38708 for ac_exec_ext in '' $ac_executable_extensions; do
38709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38710 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38712 break 2
38713 fi
38714 done
38715 done
38716
38717 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38718 fi
38719 fi
38720 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38721 if test -n "$AIX_CXX_LD"; then
38722 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38723 echo "${ECHO_T}$AIX_CXX_LD" >&6
38724 else
38725 echo "$as_me:$LINENO: result: no" >&5
38726 echo "${ECHO_T}no" >&6
38727 fi
38728
38729 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38730 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38731 fi
38732 ;;
38733
38734 *-*-beos* )
38735 SHARED_LD_CC="${LD} -shared -o"
38736 SHARED_LD_CXX="${LD} -shared -o"
38737 ;;
38738
38739 *-*-irix* )
38740 if test "x$GCC" != "xyes"; then
38741 PIC_FLAG="-KPIC"
38742 fi
38743 ;;
38744
38745 *-*-cygwin* | *-*-mingw32* )
38746 PIC_FLAG=""
38747 ;;
38748
38749 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
38750 *-*-sunos4* | \
38751 *-*-osf* | \
38752 *-*-dgux5* | \
38753 *-pc-os2_emx | *-pc-os2-emx | \
38754 *-*-sysv5* )
38755 ;;
38756
38757 *)
38758 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
38759 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
38760 { (exit 1); exit 1; }; }
38761 esac
38762
38763 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
38764 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
38765 fi
38766 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
38767 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
38768 fi
38769
38770
38771
38772
38773
38774
38775
38776
38777 USE_SOVERSION=0
38778 USE_SOVERLINUX=0
38779 USE_SOVERSOLARIS=0
38780 USE_SOSYMLINKS=0
38781 USE_MACVERSION=0
38782 SONAME_FLAG=
38783
38784 case "${BAKEFILE_HOST}" in
38785 *-*-linux* )
38786 SONAME_FLAG="-Wl,-soname,"
38787 USE_SOVERSION=1
38788 USE_SOVERLINUX=1
38789 USE_SOSYMLINKS=1
38790 ;;
38791
38792 *-*-solaris2* )
38793 SONAME_FLAG="-h "
38794 USE_SOVERSION=1
38795 USE_SOVERSOLARIS=1
38796 USE_SOSYMLINKS=1
38797 ;;
38798
38799 *-*-darwin* )
38800 USE_MACVERSION=1
38801 USE_SOVERSION=1
38802 USE_SOSYMLINKS=1
38803 ;;
38804 esac
38805
38806
38807
38808
38809
38810
38811
38812
38813
38814 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
38815 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
38816 DEPS_TRACKING=0
38817
38818 if test "x$GCC" = "xyes"; then
38819 DEPSMODE=gcc
38820 DEPS_TRACKING=1
38821 case "${BAKEFILE_HOST}" in
38822 powerpc-*-darwin* )
38823 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
38824 ;;
38825 * )
38826 DEPSFLAG_GCC="-MMD"
38827 ;;
38828 esac
38829 echo "$as_me:$LINENO: result: gcc" >&5
38830 echo "${ECHO_T}gcc" >&6
38831 else
38832 echo "$as_me:$LINENO: result: none" >&5
38833 echo "${ECHO_T}none" >&6
38834 fi
38835
38836 if test $DEPS_TRACKING = 1 ; then
38837 cat <<EOF >bk-deps
38838 #!/bin/sh
38839
38840 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38841 # script. It is used to track C/C++ files dependencies in portable way.
38842 #
38843 # Permission is given to use this file in any way.
38844
38845 DEPSMODE=$DEPSMODE
38846 DEPSDIR=.deps
38847 DEPSFLAG_GCC="$DEPSFLAG_GCC"
38848
38849 mkdir -p \$DEPSDIR
38850
38851 if test \$DEPSMODE = gcc ; then
38852 \${*} \${DEPSFLAG_GCC}
38853 status=\${?}
38854 if test \${status} != 0 ; then
38855 exit \${status}
38856 fi
38857 # move created file to the location we want it in:
38858 while test \${#} -gt 0; do
38859 case "\${1}" in
38860 -o )
38861 shift
38862 objfile=\${1}
38863 ;;
38864 -* )
38865 ;;
38866 * )
38867 srcfile=\${1}
38868 ;;
38869 esac
38870 shift
38871 done
38872 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
38873 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
38874 if test -f \$depfile ; then
38875 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
38876 rm -f \$depfile
38877 else
38878 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
38879 if test -f \$depfile ; then
38880 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
38881 rm -f \$depfile
38882 fi
38883 fi
38884 exit 0
38885 else
38886 \${*}
38887 exit \${?}
38888 fi
38889 EOF
38890 chmod +x bk-deps
38891 fi
38892
38893
38894
38895
38896 RESCOMP=
38897 SETFILE=
38898
38899 case ${BAKEFILE_HOST} in
38900 *-*-cygwin* | *-*-mingw32* )
38901 if test "$build" != "$host" ; then
38902 RESCOMP=$host_alias-windres
38903 else
38904 # Extract the first word of "windres", so it can be a program name with args.
38905 set dummy windres; ac_word=$2
38906 echo "$as_me:$LINENO: checking for $ac_word" >&5
38907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38908 if test "${ac_cv_prog_RESCOMP+set}" = set; then
38909 echo $ECHO_N "(cached) $ECHO_C" >&6
38910 else
38911 if test -n "$RESCOMP"; then
38912 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
38913 else
38914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38915 for as_dir in $PATH
38916 do
38917 IFS=$as_save_IFS
38918 test -z "$as_dir" && as_dir=.
38919 for ac_exec_ext in '' $ac_executable_extensions; do
38920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38921 ac_cv_prog_RESCOMP="windres"
38922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38923 break 2
38924 fi
38925 done
38926 done
38927
38928 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
38929 fi
38930 fi
38931 RESCOMP=$ac_cv_prog_RESCOMP
38932 if test -n "$RESCOMP"; then
38933 echo "$as_me:$LINENO: result: $RESCOMP" >&5
38934 echo "${ECHO_T}$RESCOMP" >&6
38935 else
38936 echo "$as_me:$LINENO: result: no" >&5
38937 echo "${ECHO_T}no" >&6
38938 fi
38939
38940 fi
38941 ;;
38942
38943 *-*-darwin* )
38944 # Extract the first word of "Rez", so it can be a program name with args.
38945 set dummy Rez; ac_word=$2
38946 echo "$as_me:$LINENO: checking for $ac_word" >&5
38947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38948 if test "${ac_cv_prog_RESCOMP+set}" = set; then
38949 echo $ECHO_N "(cached) $ECHO_C" >&6
38950 else
38951 if test -n "$RESCOMP"; then
38952 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
38953 else
38954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38955 for as_dir in $PATH
38956 do
38957 IFS=$as_save_IFS
38958 test -z "$as_dir" && as_dir=.
38959 for ac_exec_ext in '' $ac_executable_extensions; do
38960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38961 ac_cv_prog_RESCOMP="Rez"
38962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38963 break 2
38964 fi
38965 done
38966 done
38967
38968 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
38969 fi
38970 fi
38971 RESCOMP=$ac_cv_prog_RESCOMP
38972 if test -n "$RESCOMP"; then
38973 echo "$as_me:$LINENO: result: $RESCOMP" >&5
38974 echo "${ECHO_T}$RESCOMP" >&6
38975 else
38976 echo "$as_me:$LINENO: result: no" >&5
38977 echo "${ECHO_T}no" >&6
38978 fi
38979
38980 # Extract the first word of "SetFile", so it can be a program name with args.
38981 set dummy SetFile; ac_word=$2
38982 echo "$as_me:$LINENO: checking for $ac_word" >&5
38983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38984 if test "${ac_cv_prog_SETFILE+set}" = set; then
38985 echo $ECHO_N "(cached) $ECHO_C" >&6
38986 else
38987 if test -n "$SETFILE"; then
38988 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
38989 else
38990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38991 for as_dir in $PATH
38992 do
38993 IFS=$as_save_IFS
38994 test -z "$as_dir" && as_dir=.
38995 for ac_exec_ext in '' $ac_executable_extensions; do
38996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38997 ac_cv_prog_SETFILE="SetFile"
38998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38999 break 2
39000 fi
39001 done
39002 done
39003
39004 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39005 fi
39006 fi
39007 SETFILE=$ac_cv_prog_SETFILE
39008 if test -n "$SETFILE"; then
39009 echo "$as_me:$LINENO: result: $SETFILE" >&5
39010 echo "${ECHO_T}$SETFILE" >&6
39011 else
39012 echo "$as_me:$LINENO: result: no" >&5
39013 echo "${ECHO_T}no" >&6
39014 fi
39015
39016 ;;
39017 esac
39018
39019
39020
39021
39022
39023
39024
39025
39026
39027
39028 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39029 if test "${enable_precomp_headers+set}" = set; then
39030 enableval="$enable_precomp_headers"
39031 bk_use_pch="$enableval"
39032 fi;
39033
39034 GCC_PCH=0
39035
39036 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39037 if test "x$GCC" = "xyes"; then
39038 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39039 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39040 cat >conftest.$ac_ext <<_ACEOF
39041 /* confdefs.h. */
39042 _ACEOF
39043 cat confdefs.h >>conftest.$ac_ext
39044 cat >>conftest.$ac_ext <<_ACEOF
39045 /* end confdefs.h. */
39046
39047 int
39048 main ()
39049 {
39050
39051 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39052 #error "no pch support"
39053 #endif
39054 #if (__GNUC__ < 3)
39055 #error "no pch support"
39056 #endif
39057 #if (__GNUC__ == 3) && \
39058 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39059 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39060 #error "no pch support"
39061 #endif
39062
39063 ;
39064 return 0;
39065 }
39066 _ACEOF
39067 rm -f conftest.$ac_objext
39068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39069 (eval $ac_compile) 2>conftest.er1
39070 ac_status=$?
39071 grep -v '^ *+' conftest.er1 >conftest.err
39072 rm -f conftest.er1
39073 cat conftest.err >&5
39074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39075 (exit $ac_status); } &&
39076 { ac_try='test -z "$ac_c_werror_flag"
39077 || test ! -s conftest.err'
39078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39079 (eval $ac_try) 2>&5
39080 ac_status=$?
39081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39082 (exit $ac_status); }; } &&
39083 { ac_try='test -s conftest.$ac_objext'
39084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39085 (eval $ac_try) 2>&5
39086 ac_status=$?
39087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39088 (exit $ac_status); }; }; then
39089
39090 echo "$as_me:$LINENO: result: yes" >&5
39091 echo "${ECHO_T}yes" >&6
39092 CPPFLAGS="-fpch-deps $CPPFLAGS"
39093 GCC_PCH=1
39094
39095 else
39096 echo "$as_me: failed program was:" >&5
39097 sed 's/^/| /' conftest.$ac_ext >&5
39098
39099
39100 echo "$as_me:$LINENO: result: no" >&5
39101 echo "${ECHO_T}no" >&6
39102
39103 fi
39104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39105 if test $GCC_PCH = 1 ; then
39106 cat <<EOF >bk-make-pch
39107 #!/bin/sh
39108
39109 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39110 # script. It is used to generated precompiled headers.
39111 #
39112 # Permission is given to use this file in any way.
39113
39114 outfile="\${1}"
39115 header="\${2}"
39116 shift
39117 shift
39118
39119 compiler=
39120 headerfile=
39121 while test \${#} -gt 0; do
39122 case "\${1}" in
39123 -I* )
39124 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39125 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39126 headerfile="\${incdir}/\${header}"
39127 fi
39128 ;;
39129 esac
39130 compiler="\${compiler} \${1}"
39131 shift
39132 done
39133
39134 if test "x\${headerfile}" = "x" ; then
39135 echo "error: can't find header \${header} in include paths" >2
39136 else
39137 if test -f \${outfile} ; then
39138 rm -f \${outfile}
39139 else
39140 mkdir -p \`dirname \${outfile}\`
39141 fi
39142 depsfile=".deps/\`basename \${outfile}\`.d"
39143 mkdir -p .deps
39144 # can do this because gcc is >= 3.4:
39145 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39146 exit \${?}
39147 fi
39148 EOF
39149 chmod +x bk-make-pch
39150 fi
39151 fi
39152 fi
39153
39154
39155
39156
39157
39158 COND_BUILD_DEBUG="#"
39159 if test "x$BUILD" = "xdebug" ; then
39160 COND_BUILD_DEBUG=""
39161 fi
39162
39163 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39164 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39165 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39166 fi
39167
39168 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39169 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39170 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39171 fi
39172
39173 COND_BUILD_DEBUG_UNICODE_0="#"
39174 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39175 COND_BUILD_DEBUG_UNICODE_0=""
39176 fi
39177
39178 COND_BUILD_DEBUG_UNICODE_1="#"
39179 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39180 COND_BUILD_DEBUG_UNICODE_1=""
39181 fi
39182
39183 COND_BUILD_RELEASE="#"
39184 if test "x$BUILD" = "xrelease" ; then
39185 COND_BUILD_RELEASE=""
39186 fi
39187
39188 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39189 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39190 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39191 fi
39192
39193 COND_BUILD_RELEASE_UNICODE_0="#"
39194 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39195 COND_BUILD_RELEASE_UNICODE_0=""
39196 fi
39197
39198 COND_BUILD_RELEASE_UNICODE_1="#"
39199 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39200 COND_BUILD_RELEASE_UNICODE_1=""
39201 fi
39202
39203 COND_DEBUG_FLAG_1="#"
39204 if test "x$DEBUG_FLAG" = "x1" ; then
39205 COND_DEBUG_FLAG_1=""
39206 fi
39207
39208 COND_DEBUG_INFO_0="#"
39209 if test "x$DEBUG_INFO" = "x0" ; then
39210 COND_DEBUG_INFO_0=""
39211 fi
39212
39213 COND_DEBUG_INFO_1="#"
39214 if test "x$DEBUG_INFO" = "x1" ; then
39215 COND_DEBUG_INFO_1=""
39216 fi
39217
39218 COND_DEPS_TRACKING_0="#"
39219 if test "x$DEPS_TRACKING" = "x0" ; then
39220 COND_DEPS_TRACKING_0=""
39221 fi
39222
39223 COND_DEPS_TRACKING_1="#"
39224 if test "x$DEPS_TRACKING" = "x1" ; then
39225 COND_DEPS_TRACKING_1=""
39226 fi
39227
39228 COND_GCC_PCH_1="#"
39229 if test "x$GCC_PCH" = "x1" ; then
39230 COND_GCC_PCH_1=""
39231 fi
39232
39233 COND_MONOLITHIC_0="#"
39234 if test "x$MONOLITHIC" = "x0" ; then
39235 COND_MONOLITHIC_0=""
39236 fi
39237
39238 COND_MONOLITHIC_0_SHARED_0="#"
39239 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39240 COND_MONOLITHIC_0_SHARED_0=""
39241 fi
39242
39243 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39244 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39245 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39246 fi
39247
39248 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39249 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39250 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39251 fi
39252
39253 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39254 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39255 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39256 fi
39257
39258 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39259 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39260 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39261 fi
39262
39263 COND_MONOLITHIC_0_SHARED_1="#"
39264 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39265 COND_MONOLITHIC_0_SHARED_1=""
39266 fi
39267
39268 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39269 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39270 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39271 fi
39272
39273 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39274 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39275 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39276 fi
39277
39278 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39279 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39280 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39281 fi
39282
39283 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39284 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39285 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39286 fi
39287
39288 COND_MONOLITHIC_0_USE_ODBC_1="#"
39289 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39290 COND_MONOLITHIC_0_USE_ODBC_1=""
39291 fi
39292
39293 COND_MONOLITHIC_1="#"
39294 if test "x$MONOLITHIC" = "x1" ; then
39295 COND_MONOLITHIC_1=""
39296 fi
39297
39298 COND_MONOLITHIC_1_SHARED_0="#"
39299 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39300 COND_MONOLITHIC_1_SHARED_0=""
39301 fi
39302
39303 COND_MONOLITHIC_1_SHARED_1="#"
39304 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39305 COND_MONOLITHIC_1_SHARED_1=""
39306 fi
39307
39308 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39309 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39310 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39311 fi
39312
39313 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39314 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39315 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39316 fi
39317
39318 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39319 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39320 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39321 fi
39322
39323 COND_PLATFORM_MACOSX_1="#"
39324 if test "x$PLATFORM_MACOSX" = "x1" ; then
39325 COND_PLATFORM_MACOSX_1=""
39326 fi
39327
39328 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39329 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39330 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39331 fi
39332
39333 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39334 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39335 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39336 fi
39337
39338 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39339 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39340 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39341 fi
39342
39343 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39344 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39345 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39346 fi
39347
39348 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39349 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39350 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39351 fi
39352
39353 COND_PLATFORM_MAC_1="#"
39354 if test "x$PLATFORM_MAC" = "x1" ; then
39355 COND_PLATFORM_MAC_1=""
39356 fi
39357
39358 COND_PLATFORM_OS2_1="#"
39359 if test "x$PLATFORM_OS2" = "x1" ; then
39360 COND_PLATFORM_OS2_1=""
39361 fi
39362
39363 COND_PLATFORM_UNIX_0="#"
39364 if test "x$PLATFORM_UNIX" = "x0" ; then
39365 COND_PLATFORM_UNIX_0=""
39366 fi
39367
39368 COND_PLATFORM_UNIX_1="#"
39369 if test "x$PLATFORM_UNIX" = "x1" ; then
39370 COND_PLATFORM_UNIX_1=""
39371 fi
39372
39373 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39374 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39375 COND_PLATFORM_UNIX_1_USE_GUI_1=""
39376 fi
39377
39378 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39379 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
39380 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
39381 fi
39382
39383 COND_PLATFORM_WIN32_0="#"
39384 if test "x$PLATFORM_WIN32" = "x0" ; then
39385 COND_PLATFORM_WIN32_0=""
39386 fi
39387
39388 COND_PLATFORM_WIN32_1="#"
39389 if test "x$PLATFORM_WIN32" = "x1" ; then
39390 COND_PLATFORM_WIN32_1=""
39391 fi
39392
39393 COND_SHARED_0="#"
39394 if test "x$SHARED" = "x0" ; then
39395 COND_SHARED_0=""
39396 fi
39397
39398 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
39399 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39400 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
39401 fi
39402
39403 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39404 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39405 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39406 fi
39407
39408 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39409 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39410 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39411 fi
39412
39413 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39414 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39415 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39416 fi
39417
39418 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
39419 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
39420 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
39421 fi
39422
39423 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
39424 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
39425 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
39426 fi
39427
39428 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
39429 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
39430 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
39431 fi
39432
39433 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
39434 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
39435 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
39436 fi
39437
39438 COND_SHARED_1="#"
39439 if test "x$SHARED" = "x1" ; then
39440 COND_SHARED_1=""
39441 fi
39442
39443 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
39444 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39445 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
39446 fi
39447
39448 COND_TOOLKIT_COCOA="#"
39449 if test "x$TOOLKIT" = "xCOCOA" ; then
39450 COND_TOOLKIT_COCOA=""
39451 fi
39452
39453 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
39454 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39455 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
39456 fi
39457
39458 COND_TOOLKIT_GTK="#"
39459 if test "x$TOOLKIT" = "xGTK" ; then
39460 COND_TOOLKIT_GTK=""
39461 fi
39462
39463 COND_TOOLKIT_GTK_USE_GUI_1="#"
39464 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
39465 COND_TOOLKIT_GTK_USE_GUI_1=""
39466 fi
39467
39468 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
39469 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39470 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
39471 fi
39472
39473 COND_TOOLKIT_MAC="#"
39474 if test "x$TOOLKIT" = "xMAC" ; then
39475 COND_TOOLKIT_MAC=""
39476 fi
39477
39478 COND_TOOLKIT_MAC_USE_GUI_1="#"
39479 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
39480 COND_TOOLKIT_MAC_USE_GUI_1=""
39481 fi
39482
39483 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
39484 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39485 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
39486 fi
39487
39488 COND_TOOLKIT_MGL="#"
39489 if test "x$TOOLKIT" = "xMGL" ; then
39490 COND_TOOLKIT_MGL=""
39491 fi
39492
39493 COND_TOOLKIT_MGL_USE_GUI_1="#"
39494 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
39495 COND_TOOLKIT_MGL_USE_GUI_1=""
39496 fi
39497
39498 COND_TOOLKIT_MOTIF="#"
39499 if test "x$TOOLKIT" = "xMOTIF" ; then
39500 COND_TOOLKIT_MOTIF=""
39501 fi
39502
39503 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
39504 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
39505 COND_TOOLKIT_MOTIF_USE_GUI_1=""
39506 fi
39507
39508 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
39509 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39510 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
39511 fi
39512
39513 COND_TOOLKIT_MSW="#"
39514 if test "x$TOOLKIT" = "xMSW" ; then
39515 COND_TOOLKIT_MSW=""
39516 fi
39517
39518 COND_TOOLKIT_MSW_USE_GUI_1="#"
39519 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
39520 COND_TOOLKIT_MSW_USE_GUI_1=""
39521 fi
39522
39523 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
39524 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39525 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
39526 fi
39527
39528 COND_TOOLKIT_PM="#"
39529 if test "x$TOOLKIT" = "xPM" ; then
39530 COND_TOOLKIT_PM=""
39531 fi
39532
39533 COND_TOOLKIT_PM_USE_GUI_1="#"
39534 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
39535 COND_TOOLKIT_PM_USE_GUI_1=""
39536 fi
39537
39538 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
39539 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39540 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
39541 fi
39542
39543 COND_TOOLKIT_X11="#"
39544 if test "x$TOOLKIT" = "xX11" ; then
39545 COND_TOOLKIT_X11=""
39546 fi
39547
39548 COND_TOOLKIT_X11_USE_GUI_1="#"
39549 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
39550 COND_TOOLKIT_X11_USE_GUI_1=""
39551 fi
39552
39553 COND_UNICODE_1="#"
39554 if test "x$UNICODE" = "x1" ; then
39555 COND_UNICODE_1=""
39556 fi
39557
39558 COND_USE_EXCEPTIONS_0="#"
39559 if test "x$USE_EXCEPTIONS" = "x0" ; then
39560 COND_USE_EXCEPTIONS_0=""
39561 fi
39562
39563 COND_USE_EXCEPTIONS_1="#"
39564 if test "x$USE_EXCEPTIONS" = "x1" ; then
39565 COND_USE_EXCEPTIONS_1=""
39566 fi
39567
39568 COND_USE_GUI_0="#"
39569 if test "x$USE_GUI" = "x0" ; then
39570 COND_USE_GUI_0=""
39571 fi
39572
39573 COND_USE_GUI_1="#"
39574 if test "x$USE_GUI" = "x1" ; then
39575 COND_USE_GUI_1=""
39576 fi
39577
39578 COND_USE_GUI_1_WXUNIV_0="#"
39579 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39580 COND_USE_GUI_1_WXUNIV_0=""
39581 fi
39582
39583 COND_USE_GUI_1_WXUNIV_1="#"
39584 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
39585 COND_USE_GUI_1_WXUNIV_1=""
39586 fi
39587
39588 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39589 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39590 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39591 fi
39592
39593 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39594 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39595 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39596 fi
39597
39598 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39599 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39600 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39601 fi
39602
39603 COND_USE_ODBC_1="#"
39604 if test "x$USE_ODBC" = "x1" ; then
39605 COND_USE_ODBC_1=""
39606 fi
39607
39608 COND_USE_PLUGINS_0="#"
39609 if test "x$USE_PLUGINS" = "x0" ; then
39610 COND_USE_PLUGINS_0=""
39611 fi
39612
39613 COND_USE_SOSYMLINKS_1="#"
39614 if test "x$USE_SOSYMLINKS" = "x1" ; then
39615 COND_USE_SOSYMLINKS_1=""
39616 fi
39617
39618 COND_USE_SOVERLINUX_1="#"
39619 if test "x$USE_SOVERLINUX" = "x1" ; then
39620 COND_USE_SOVERLINUX_1=""
39621 fi
39622
39623 COND_USE_SOVERSION_0="#"
39624 if test "x$USE_SOVERSION" = "x0" ; then
39625 COND_USE_SOVERSION_0=""
39626 fi
39627
39628 COND_USE_SOVERSOLARIS_1="#"
39629 if test "x$USE_SOVERSOLARIS" = "x1" ; then
39630 COND_USE_SOVERSOLARIS_1=""
39631 fi
39632
39633 COND_WITH_PLUGIN_SDL_1="#"
39634 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
39635 COND_WITH_PLUGIN_SDL_1=""
39636 fi
39637
39638 COND_WITH_SDL_1="#"
39639 if test "x$WITH_SDL" = "x1" ; then
39640 COND_WITH_SDL_1=""
39641 fi
39642
39643 COND_WXUNIV_1="#"
39644 if test "x$WXUNIV" = "x1" ; then
39645 COND_WXUNIV_1=""
39646 fi
39647
39648 COND_WXUSE_EXPAT_BUILTIN="#"
39649 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
39650 COND_WXUSE_EXPAT_BUILTIN=""
39651 fi
39652
39653 COND_WXUSE_LIBJPEG_BUILTIN="#"
39654 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39655 COND_WXUSE_LIBJPEG_BUILTIN=""
39656 fi
39657
39658 COND_WXUSE_LIBPNG_BUILTIN="#"
39659 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39660 COND_WXUSE_LIBPNG_BUILTIN=""
39661 fi
39662
39663 COND_WXUSE_LIBTIFF_BUILTIN="#"
39664 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39665 COND_WXUSE_LIBTIFF_BUILTIN=""
39666 fi
39667
39668 COND_WXUSE_ODBC_BUILTIN="#"
39669 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
39670 COND_WXUSE_ODBC_BUILTIN=""
39671 fi
39672
39673 COND_WXUSE_REGEX_BUILTIN="#"
39674 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
39675 COND_WXUSE_REGEX_BUILTIN=""
39676 fi
39677
39678 COND_WXUSE_ZLIB_BUILTIN="#"
39679 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
39680 COND_WXUSE_ZLIB_BUILTIN=""
39681 fi
39682
39683
39684
39685
39686
39687 if test $GCC_PCH = 1 ; then
39688 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
39689 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
39690 else
39691 case "${host}" in
39692 powerpc-*-darwin* )
39693 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
39694 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
39695 ;;
39696 esac
39697 fi
39698
39699
39700 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
39701
39702
39703
39704
39705
39706
39707
39708
39709
39710
39711
39712
39713
39714
39715
39716
39717
39718
39719
39720
39721
39722
39723
39724
39725
39726
39727
39728
39729
39730
39731
39732
39733
39734
39735
39736
39737
39738
39739
39740
39741
39742
39743
39744
39745
39746
39747
39748
39749
39750
39751
39752
39753
39754
39755
39756
39757
39758
39759
39760
39761
39762
39763
39764
39765
39766
39767
39768
39769
39770
39771
39772
39773
39774
39775
39776
39777
39778
39779
39780
39781
39782
39783
39784
39785
39786
39787
39788
39789
39790
39791
39792
39793
39794
39795
39796
39797
39798
39799
39800
39801 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39802 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
39803 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
39804 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39805 echo $ECHO_N "(cached) $ECHO_C" >&6
39806 else
39807 cat >conftest.make <<\_ACEOF
39808 all:
39809 @echo 'ac_maketemp="$(MAKE)"'
39810 _ACEOF
39811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39812 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39813 if test -n "$ac_maketemp"; then
39814 eval ac_cv_prog_make_${ac_make}_set=yes
39815 else
39816 eval ac_cv_prog_make_${ac_make}_set=no
39817 fi
39818 rm -f conftest.make
39819 fi
39820 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39821 echo "$as_me:$LINENO: result: yes" >&5
39822 echo "${ECHO_T}yes" >&6
39823 SET_MAKE=
39824 else
39825 echo "$as_me:$LINENO: result: no" >&5
39826 echo "${ECHO_T}no" >&6
39827 SET_MAKE="MAKE=${MAKE-make}"
39828 fi
39829
39830
39831 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
39832 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
39833 fi
39834
39835 ac_config_headers="$ac_config_headers setup.h"
39836
39837
39838 ac_config_files="$ac_config_files wx-config version-script Makefile"
39839
39840
39841 ac_config_commands="$ac_config_commands default"
39842
39843
39844
39845 if test "$wxUSE_GUI" = "yes"; then
39846 SUBDIRS="samples demos utils contrib"
39847 else SUBDIRS="samples utils"
39848 fi
39849
39850 for subdir in `echo $SUBDIRS`; do
39851 if test -d ${srcdir}/${subdir} ; then
39852 if test "$wxUSE_GUI" = "yes"; then
39853 if test ${subdir} = "samples"; then
39854 makefiles="samples/Makefile.in $makefiles"
39855 for sample in `echo $SAMPLES_SUBDIRS`; do
39856 if test -d $srcdir/samples/$sample; then
39857 makefiles="samples/$sample/Makefile.in $makefiles"
39858 fi
39859 done
39860 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
39861 fi
39862 else if test ${subdir} = "samples"; then
39863 makefiles="samples/Makefile.in samples/console/Makefile.in"
39864 else makefiles="utils/HelpGen/Makefile.in \
39865 utils/HelpGen/src/Makefile.in \
39866 utils/tex2rtf/Makefile.in \
39867 utils/tex2rtf/src/Makefile.in"
39868 fi
39869 fi
39870
39871 for mkin in $makefiles ; do
39872 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
39873 ac_config_files="$ac_config_files $mk"
39874
39875 done
39876 fi
39877 done
39878
39879
39880 cat >confcache <<\_ACEOF
39881 # This file is a shell script that caches the results of configure
39882 # tests run on this system so they can be shared between configure
39883 # scripts and configure runs, see configure's option --config-cache.
39884 # It is not useful on other systems. If it contains results you don't
39885 # want to keep, you may remove or edit it.
39886 #
39887 # config.status only pays attention to the cache file if you give it
39888 # the --recheck option to rerun configure.
39889 #
39890 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39891 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39892 # following values.
39893
39894 _ACEOF
39895
39896 # The following way of writing the cache mishandles newlines in values,
39897 # but we know of no workaround that is simple, portable, and efficient.
39898 # So, don't put newlines in cache variables' values.
39899 # Ultrix sh set writes to stderr and can't be redirected directly,
39900 # and sets the high bit in the cache file unless we assign to the vars.
39901 {
39902 (set) 2>&1 |
39903 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39904 *ac_space=\ *)
39905 # `set' does not quote correctly, so add quotes (double-quote
39906 # substitution turns \\\\ into \\, and sed turns \\ into \).
39907 sed -n \
39908 "s/'/'\\\\''/g;
39909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39910 ;;
39911 *)
39912 # `set' quotes correctly as required by POSIX, so do not add quotes.
39913 sed -n \
39914 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39915 ;;
39916 esac;
39917 } |
39918 sed '
39919 t clear
39920 : clear
39921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39922 t end
39923 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39924 : end' >>confcache
39925 if diff $cache_file confcache >/dev/null 2>&1; then :; else
39926 if test -w $cache_file; then
39927 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39928 cat confcache >$cache_file
39929 else
39930 echo "not updating unwritable cache $cache_file"
39931 fi
39932 fi
39933 rm -f confcache
39934
39935 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39936 # Let make expand exec_prefix.
39937 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39938
39939 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39940 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39941 # trailing colons and then remove the whole line if VPATH becomes empty
39942 # (actually we leave an empty line to preserve line numbers).
39943 if test "x$srcdir" = x.; then
39944 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39945 s/:*\$(srcdir):*/:/;
39946 s/:*\${srcdir}:*/:/;
39947 s/:*@srcdir@:*/:/;
39948 s/^\([^=]*=[ ]*\):*/\1/;
39949 s/:*$//;
39950 s/^[^=]*=[ ]*$//;
39951 }'
39952 fi
39953
39954 DEFS=-DHAVE_CONFIG_H
39955
39956 ac_libobjs=
39957 ac_ltlibobjs=
39958 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39959 # 1. Remove the extension, and $U if already installed.
39960 ac_i=`echo "$ac_i" |
39961 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39962 # 2. Add them.
39963 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39964 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39965 done
39966 LIBOBJS=$ac_libobjs
39967
39968 LTLIBOBJS=$ac_ltlibobjs
39969
39970
39971
39972 : ${CONFIG_STATUS=./config.status}
39973 ac_clean_files_save=$ac_clean_files
39974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39975 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39976 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39977 cat >$CONFIG_STATUS <<_ACEOF
39978 #! $SHELL
39979 # Generated by $as_me.
39980 # Run this file to recreate the current configuration.
39981 # Compiler output produced by configure, useful for debugging
39982 # configure, is in config.log if it exists.
39983
39984 debug=false
39985 ac_cs_recheck=false
39986 ac_cs_silent=false
39987 SHELL=\${CONFIG_SHELL-$SHELL}
39988 _ACEOF
39989
39990 cat >>$CONFIG_STATUS <<\_ACEOF
39991 ## --------------------- ##
39992 ## M4sh Initialization. ##
39993 ## --------------------- ##
39994
39995 # Be Bourne compatible
39996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39997 emulate sh
39998 NULLCMD=:
39999 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40000 # is contrary to our usage. Disable this feature.
40001 alias -g '${1+"$@"}'='"$@"'
40002 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40003 set -o posix
40004 fi
40005 DUALCASE=1; export DUALCASE # for MKS sh
40006
40007 # Support unset when possible.
40008 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40009 as_unset=unset
40010 else
40011 as_unset=false
40012 fi
40013
40014
40015 # Work around bugs in pre-3.0 UWIN ksh.
40016 $as_unset ENV MAIL MAILPATH
40017 PS1='$ '
40018 PS2='> '
40019 PS4='+ '
40020
40021 # NLS nuisances.
40022 for as_var in \
40023 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40024 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40025 LC_TELEPHONE LC_TIME
40026 do
40027 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40028 eval $as_var=C; export $as_var
40029 else
40030 $as_unset $as_var
40031 fi
40032 done
40033
40034 # Required to use basename.
40035 if expr a : '\(a\)' >/dev/null 2>&1; then
40036 as_expr=expr
40037 else
40038 as_expr=false
40039 fi
40040
40041 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40042 as_basename=basename
40043 else
40044 as_basename=false
40045 fi
40046
40047
40048 # Name of the executable.
40049 as_me=`$as_basename "$0" ||
40050 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40051 X"$0" : 'X\(//\)$' \| \
40052 X"$0" : 'X\(/\)$' \| \
40053 . : '\(.\)' 2>/dev/null ||
40054 echo X/"$0" |
40055 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40056 /^X\/\(\/\/\)$/{ s//\1/; q; }
40057 /^X\/\(\/\).*/{ s//\1/; q; }
40058 s/.*/./; q'`
40059
40060
40061 # PATH needs CR, and LINENO needs CR and PATH.
40062 # Avoid depending upon Character Ranges.
40063 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40064 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40065 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40066 as_cr_digits='0123456789'
40067 as_cr_alnum=$as_cr_Letters$as_cr_digits
40068
40069 # The user is always right.
40070 if test "${PATH_SEPARATOR+set}" != set; then
40071 echo "#! /bin/sh" >conf$$.sh
40072 echo "exit 0" >>conf$$.sh
40073 chmod +x conf$$.sh
40074 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40075 PATH_SEPARATOR=';'
40076 else
40077 PATH_SEPARATOR=:
40078 fi
40079 rm -f conf$$.sh
40080 fi
40081
40082
40083 as_lineno_1=$LINENO
40084 as_lineno_2=$LINENO
40085 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40086 test "x$as_lineno_1" != "x$as_lineno_2" &&
40087 test "x$as_lineno_3" = "x$as_lineno_2" || {
40088 # Find who we are. Look in the path if we contain no path at all
40089 # relative or not.
40090 case $0 in
40091 *[\\/]* ) as_myself=$0 ;;
40092 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40093 for as_dir in $PATH
40094 do
40095 IFS=$as_save_IFS
40096 test -z "$as_dir" && as_dir=.
40097 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40098 done
40099
40100 ;;
40101 esac
40102 # We did not find ourselves, most probably we were run as `sh COMMAND'
40103 # in which case we are not to be found in the path.
40104 if test "x$as_myself" = x; then
40105 as_myself=$0
40106 fi
40107 if test ! -f "$as_myself"; then
40108 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40109 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40110 { (exit 1); exit 1; }; }
40111 fi
40112 case $CONFIG_SHELL in
40113 '')
40114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40115 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40116 do
40117 IFS=$as_save_IFS
40118 test -z "$as_dir" && as_dir=.
40119 for as_base in sh bash ksh sh5; do
40120 case $as_dir in
40121 /*)
40122 if ("$as_dir/$as_base" -c '
40123 as_lineno_1=$LINENO
40124 as_lineno_2=$LINENO
40125 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40126 test "x$as_lineno_1" != "x$as_lineno_2" &&
40127 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
40128 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40129 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40130 CONFIG_SHELL=$as_dir/$as_base
40131 export CONFIG_SHELL
40132 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40133 fi;;
40134 esac
40135 done
40136 done
40137 ;;
40138 esac
40139
40140 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40141 # uniformly replaced by the line number. The first 'sed' inserts a
40142 # line-number line before each line; the second 'sed' does the real
40143 # work. The second script uses 'N' to pair each line-number line
40144 # with the numbered line, and appends trailing '-' during
40145 # substitution so that $LINENO is not a special case at line end.
40146 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40147 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
40148 sed '=' <$as_myself |
40149 sed '
40150 N
40151 s,$,-,
40152 : loop
40153 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40154 t loop
40155 s,-$,,
40156 s,^['$as_cr_digits']*\n,,
40157 ' >$as_me.lineno &&
40158 chmod +x $as_me.lineno ||
40159 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40160 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40161 { (exit 1); exit 1; }; }
40162
40163 # Don't try to exec as it changes $[0], causing all sort of problems
40164 # (the dirname of $[0] is not the place where we might find the
40165 # original and so on. Autoconf is especially sensible to this).
40166 . ./$as_me.lineno
40167 # Exit status is that of the last command.
40168 exit
40169 }
40170
40171
40172 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40173 *c*,-n*) ECHO_N= ECHO_C='
40174 ' ECHO_T=' ' ;;
40175 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40176 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
40177 esac
40178
40179 if expr a : '\(a\)' >/dev/null 2>&1; then
40180 as_expr=expr
40181 else
40182 as_expr=false
40183 fi
40184
40185 rm -f conf$$ conf$$.exe conf$$.file
40186 echo >conf$$.file
40187 if ln -s conf$$.file conf$$ 2>/dev/null; then
40188 # We could just check for DJGPP; but this test a) works b) is more generic
40189 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40190 if test -f conf$$.exe; then
40191 # Don't use ln at all; we don't have any links
40192 as_ln_s='cp -p'
40193 else
40194 as_ln_s='ln -s'
40195 fi
40196 elif ln conf$$.file conf$$ 2>/dev/null; then
40197 as_ln_s=ln
40198 else
40199 as_ln_s='cp -p'
40200 fi
40201 rm -f conf$$ conf$$.exe conf$$.file
40202
40203 if mkdir -p . 2>/dev/null; then
40204 as_mkdir_p=:
40205 else
40206 test -d ./-p && rmdir ./-p
40207 as_mkdir_p=false
40208 fi
40209
40210 as_executable_p="test -f"
40211
40212 # Sed expression to map a string onto a valid CPP name.
40213 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40214
40215 # Sed expression to map a string onto a valid variable name.
40216 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40217
40218
40219 # IFS
40220 # We need space, tab and new line, in precisely that order.
40221 as_nl='
40222 '
40223 IFS=" $as_nl"
40224
40225 # CDPATH.
40226 $as_unset CDPATH
40227
40228 exec 6>&1
40229
40230 # Open the log real soon, to keep \$[0] and so on meaningful, and to
40231 # report actual input values of CONFIG_FILES etc. instead of their
40232 # values after options handling. Logging --version etc. is OK.
40233 exec 5>>config.log
40234 {
40235 echo
40236 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40237 ## Running $as_me. ##
40238 _ASBOX
40239 } >&5
40240 cat >&5 <<_CSEOF
40241
40242 This file was extended by wxWindows $as_me 2.5.1, which was
40243 generated by GNU Autoconf 2.59. Invocation command line was
40244
40245 CONFIG_FILES = $CONFIG_FILES
40246 CONFIG_HEADERS = $CONFIG_HEADERS
40247 CONFIG_LINKS = $CONFIG_LINKS
40248 CONFIG_COMMANDS = $CONFIG_COMMANDS
40249 $ $0 $@
40250
40251 _CSEOF
40252 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40253 echo >&5
40254 _ACEOF
40255
40256 # Files that config.status was made for.
40257 if test -n "$ac_config_files"; then
40258 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40259 fi
40260
40261 if test -n "$ac_config_headers"; then
40262 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40263 fi
40264
40265 if test -n "$ac_config_links"; then
40266 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40267 fi
40268
40269 if test -n "$ac_config_commands"; then
40270 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40271 fi
40272
40273 cat >>$CONFIG_STATUS <<\_ACEOF
40274
40275 ac_cs_usage="\
40276 \`$as_me' instantiates files from templates according to the
40277 current configuration.
40278
40279 Usage: $0 [OPTIONS] [FILE]...
40280
40281 -h, --help print this help, then exit
40282 -V, --version print version number, then exit
40283 -q, --quiet do not print progress messages
40284 -d, --debug don't remove temporary files
40285 --recheck update $as_me by reconfiguring in the same conditions
40286 --file=FILE[:TEMPLATE]
40287 instantiate the configuration file FILE
40288 --header=FILE[:TEMPLATE]
40289 instantiate the configuration header FILE
40290
40291 Configuration files:
40292 $config_files
40293
40294 Configuration headers:
40295 $config_headers
40296
40297 Configuration commands:
40298 $config_commands
40299
40300 Report bugs to <bug-autoconf@gnu.org>."
40301 _ACEOF
40302
40303 cat >>$CONFIG_STATUS <<_ACEOF
40304 ac_cs_version="\\
40305 wxWindows config.status 2.5.1
40306 configured by $0, generated by GNU Autoconf 2.59,
40307 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40308
40309 Copyright (C) 2003 Free Software Foundation, Inc.
40310 This config.status script is free software; the Free Software Foundation
40311 gives unlimited permission to copy, distribute and modify it."
40312 srcdir=$srcdir
40313 INSTALL="$INSTALL"
40314 _ACEOF
40315
40316 cat >>$CONFIG_STATUS <<\_ACEOF
40317 # If no file are specified by the user, then we need to provide default
40318 # value. By we need to know if files were specified by the user.
40319 ac_need_defaults=:
40320 while test $# != 0
40321 do
40322 case $1 in
40323 --*=*)
40324 ac_option=`expr "x$1" : 'x\([^=]*\)='`
40325 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40326 ac_shift=:
40327 ;;
40328 -*)
40329 ac_option=$1
40330 ac_optarg=$2
40331 ac_shift=shift
40332 ;;
40333 *) # This is not an option, so the user has probably given explicit
40334 # arguments.
40335 ac_option=$1
40336 ac_need_defaults=false;;
40337 esac
40338
40339 case $ac_option in
40340 # Handling of the options.
40341 _ACEOF
40342 cat >>$CONFIG_STATUS <<\_ACEOF
40343 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40344 ac_cs_recheck=: ;;
40345 --version | --vers* | -V )
40346 echo "$ac_cs_version"; exit 0 ;;
40347 --he | --h)
40348 # Conflict between --help and --header
40349 { { echo "$as_me:$LINENO: error: ambiguous option: $1
40350 Try \`$0 --help' for more information." >&5
40351 echo "$as_me: error: ambiguous option: $1
40352 Try \`$0 --help' for more information." >&2;}
40353 { (exit 1); exit 1; }; };;
40354 --help | --hel | -h )
40355 echo "$ac_cs_usage"; exit 0 ;;
40356 --debug | --d* | -d )
40357 debug=: ;;
40358 --file | --fil | --fi | --f )
40359 $ac_shift
40360 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40361 ac_need_defaults=false;;
40362 --header | --heade | --head | --hea )
40363 $ac_shift
40364 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40365 ac_need_defaults=false;;
40366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40367 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40368 ac_cs_silent=: ;;
40369
40370 # This is an error.
40371 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40372 Try \`$0 --help' for more information." >&5
40373 echo "$as_me: error: unrecognized option: $1
40374 Try \`$0 --help' for more information." >&2;}
40375 { (exit 1); exit 1; }; } ;;
40376
40377 *) ac_config_targets="$ac_config_targets $1" ;;
40378
40379 esac
40380 shift
40381 done
40382
40383 ac_configure_extra_args=
40384
40385 if $ac_cs_silent; then
40386 exec 6>/dev/null
40387 ac_configure_extra_args="$ac_configure_extra_args --silent"
40388 fi
40389
40390 _ACEOF
40391 cat >>$CONFIG_STATUS <<_ACEOF
40392 if \$ac_cs_recheck; then
40393 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40394 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40395 fi
40396
40397 _ACEOF
40398
40399 cat >>$CONFIG_STATUS <<_ACEOF
40400 #
40401 # INIT-COMMANDS section.
40402 #
40403
40404
40405 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
40406 LN_S="${LN_S}"
40407
40408
40409
40410 _ACEOF
40411
40412
40413
40414 cat >>$CONFIG_STATUS <<\_ACEOF
40415 for ac_config_target in $ac_config_targets
40416 do
40417 case "$ac_config_target" in
40418 # Handling of arguments.
40419 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
40420 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
40421 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40422 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
40423 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40424 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
40425 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40426 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40427 { (exit 1); exit 1; }; };;
40428 esac
40429 done
40430
40431 # If the user did not use the arguments to specify the items to instantiate,
40432 # then the envvar interface is used. Set only those that are not.
40433 # We use the long form for the default assignment because of an extremely
40434 # bizarre bug on SunOS 4.1.3.
40435 if $ac_need_defaults; then
40436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40439 fi
40440
40441 # Have a temporary directory for convenience. Make it in the build tree
40442 # simply because there is no reason to put it here, and in addition,
40443 # creating and moving files from /tmp can sometimes cause problems.
40444 # Create a temporary directory, and hook for its removal unless debugging.
40445 $debug ||
40446 {
40447 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40448 trap '{ (exit 1); exit 1; }' 1 2 13 15
40449 }
40450
40451 # Create a (secure) tmp directory for tmp files.
40452
40453 {
40454 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40455 test -n "$tmp" && test -d "$tmp"
40456 } ||
40457 {
40458 tmp=./confstat$$-$RANDOM
40459 (umask 077 && mkdir $tmp)
40460 } ||
40461 {
40462 echo "$me: cannot create a temporary directory in ." >&2
40463 { (exit 1); exit 1; }
40464 }
40465
40466 _ACEOF
40467
40468 cat >>$CONFIG_STATUS <<_ACEOF
40469
40470 #
40471 # CONFIG_FILES section.
40472 #
40473
40474 # No need to generate the scripts if there are no CONFIG_FILES.
40475 # This happens for instance when ./config.status config.h
40476 if test -n "\$CONFIG_FILES"; then
40477 # Protect against being on the right side of a sed subst in config.status.
40478 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40479 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40480 s,@SHELL@,$SHELL,;t t
40481 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40482 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40483 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40484 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40485 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40486 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40487 s,@exec_prefix@,$exec_prefix,;t t
40488 s,@prefix@,$prefix,;t t
40489 s,@program_transform_name@,$program_transform_name,;t t
40490 s,@bindir@,$bindir,;t t
40491 s,@sbindir@,$sbindir,;t t
40492 s,@libexecdir@,$libexecdir,;t t
40493 s,@datadir@,$datadir,;t t
40494 s,@sysconfdir@,$sysconfdir,;t t
40495 s,@sharedstatedir@,$sharedstatedir,;t t
40496 s,@localstatedir@,$localstatedir,;t t
40497 s,@libdir@,$libdir,;t t
40498 s,@includedir@,$includedir,;t t
40499 s,@oldincludedir@,$oldincludedir,;t t
40500 s,@infodir@,$infodir,;t t
40501 s,@mandir@,$mandir,;t t
40502 s,@build_alias@,$build_alias,;t t
40503 s,@host_alias@,$host_alias,;t t
40504 s,@target_alias@,$target_alias,;t t
40505 s,@DEFS@,$DEFS,;t t
40506 s,@ECHO_C@,$ECHO_C,;t t
40507 s,@ECHO_N@,$ECHO_N,;t t
40508 s,@ECHO_T@,$ECHO_T,;t t
40509 s,@LIBS@,$LIBS,;t t
40510 s,@build@,$build,;t t
40511 s,@build_cpu@,$build_cpu,;t t
40512 s,@build_vendor@,$build_vendor,;t t
40513 s,@build_os@,$build_os,;t t
40514 s,@host@,$host,;t t
40515 s,@host_cpu@,$host_cpu,;t t
40516 s,@host_vendor@,$host_vendor,;t t
40517 s,@host_os@,$host_os,;t t
40518 s,@target@,$target,;t t
40519 s,@target_cpu@,$target_cpu,;t t
40520 s,@target_vendor@,$target_vendor,;t t
40521 s,@target_os@,$target_os,;t t
40522 s,@CC@,$CC,;t t
40523 s,@CFLAGS@,$CFLAGS,;t t
40524 s,@LDFLAGS@,$LDFLAGS,;t t
40525 s,@CPPFLAGS@,$CPPFLAGS,;t t
40526 s,@ac_ct_CC@,$ac_ct_CC,;t t
40527 s,@EXEEXT@,$EXEEXT,;t t
40528 s,@OBJEXT@,$OBJEXT,;t t
40529 s,@CPP@,$CPP,;t t
40530 s,@EGREP@,$EGREP,;t t
40531 s,@CXX@,$CXX,;t t
40532 s,@CXXFLAGS@,$CXXFLAGS,;t t
40533 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
40534 s,@RANLIB@,$RANLIB,;t t
40535 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40536 s,@AR@,$AR,;t t
40537 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40538 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40539 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40540 s,@STRIP@,$STRIP,;t t
40541 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
40542 s,@LN_S@,$LN_S,;t t
40543 s,@CXXCPP@,$CXXCPP,;t t
40544 s,@subdirs@,$subdirs,;t t
40545 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
40546 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
40547 s,@GTK_LIBS@,$GTK_LIBS,;t t
40548 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
40549 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
40550 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
40551 s,@X_CFLAGS@,$X_CFLAGS,;t t
40552 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
40553 s,@X_LIBS@,$X_LIBS,;t t
40554 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
40555 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
40556 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
40557 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
40558 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
40559 s,@RESCOMP@,$RESCOMP,;t t
40560 s,@DEREZ@,$DEREZ,;t t
40561 s,@SETFILE@,$SETFILE,;t t
40562 s,@LIBICONV@,$LIBICONV,;t t
40563 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
40564 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
40565 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
40566 s,@SDL_LIBS@,$SDL_LIBS,;t t
40567 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
40568 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
40569 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
40570 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
40571 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
40572 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
40573 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
40574 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
40575 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
40576 s,@VENDOR@,$VENDOR,;t t
40577 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
40578 s,@WXUNIV@,$WXUNIV,;t t
40579 s,@MONOLITHIC@,$MONOLITHIC,;t t
40580 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
40581 s,@EXTRALIBS@,$EXTRALIBS,;t t
40582 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
40583 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
40584 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
40585 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
40586 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
40587 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
40588 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
40589 s,@UNICODE@,$UNICODE,;t t
40590 s,@BUILD@,$BUILD,;t t
40591 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
40592 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
40593 s,@SHARED@,$SHARED,;t t
40594 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
40595 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
40596 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
40597 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
40598 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
40599 s,@SET_MAKE@,$SET_MAKE,;t t
40600 s,@MAKE_SET@,$MAKE_SET,;t t
40601 s,@ac_ct_AR@,$ac_ct_AR,;t t
40602 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40603 s,@NM@,$NM,;t t
40604 s,@ac_ct_NM@,$ac_ct_NM,;t t
40605 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
40606 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
40607 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
40608 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
40609 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
40610 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
40611 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
40612 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
40613 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
40614 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
40615 s,@LIBPREFIX@,$LIBPREFIX,;t t
40616 s,@DLLPREFIX@,$DLLPREFIX,;t t
40617 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
40618 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
40619 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
40620 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
40621 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
40622 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
40623 s,@PIC_FLAG@,$PIC_FLAG,;t t
40624 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
40625 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
40626 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
40627 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
40628 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
40629 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
40630 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
40631 s,@GCC_PCH@,$GCC_PCH,;t t
40632 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
40633 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
40634 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
40635 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
40636 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
40637 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
40638 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
40639 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
40640 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
40641 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
40642 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
40643 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
40644 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
40645 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
40646 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
40647 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
40648 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
40649 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
40650 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
40651 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
40652 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
40653 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
40654 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
40655 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
40656 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
40657 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
40658 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
40659 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
40660 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
40661 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
40662 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
40663 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
40664 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
40665 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
40666 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
40667 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
40668 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
40669 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
40670 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
40671 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
40672 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
40673 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
40674 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
40675 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
40676 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
40677 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
40678 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
40679 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
40680 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
40681 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40682 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40683 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
40684 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
40685 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
40686 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
40687 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
40688 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
40689 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
40690 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
40691 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
40692 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
40693 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
40694 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
40695 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
40696 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
40697 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
40698 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
40699 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
40700 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
40701 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
40702 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
40703 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
40704 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
40705 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
40706 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
40707 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
40708 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
40709 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
40710 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
40711 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
40712 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
40713 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
40714 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
40715 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
40716 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
40717 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
40718 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40719 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40720 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
40721 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
40722 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
40723 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
40724 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
40725 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
40726 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
40727 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
40728 s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
40729 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
40730 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
40731 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
40732 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
40733 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
40734 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
40735 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
40736 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
40737 s,@PATH_IFS@,$PATH_IFS,;t t
40738 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
40739 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
40740 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
40741 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
40742 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
40743 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
40744 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
40745 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
40746 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
40747 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
40748 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
40749 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
40750 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
40751 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
40752 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
40753 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
40754 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
40755 s,@WX_ALL@,$WX_ALL,;t t
40756 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
40757 s,@SHARED_LD@,$SHARED_LD,;t t
40758 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
40759 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
40760 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
40761 s,@USE_GUI@,$USE_GUI,;t t
40762 s,@AFMINSTALL@,$AFMINSTALL,;t t
40763 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
40764 s,@TOOLKIT@,$TOOLKIT,;t t
40765 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
40766 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
40767 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
40768 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
40769 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
40770 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
40771 s,@cross_compiling@,$cross_compiling,;t t
40772 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
40773 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
40774 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
40775 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
40776 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
40777 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
40778 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
40779 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
40780 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
40781 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
40782 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
40783 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
40784 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
40785 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
40786 s,@GUIDIST@,$GUIDIST,;t t
40787 s,@PORT_FILES@,$PORT_FILES,;t t
40788 s,@DISTDIR@,$DISTDIR,;t t
40789 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
40790 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
40791 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
40792 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
40793 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
40794 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
40795 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
40796 s,@RESFLAGS@,$RESFLAGS,;t t
40797 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
40798 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
40799 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
40800 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
40801 s,@MACRESCOMP@,$MACRESCOMP,;t t
40802 s,@MACSETFILE@,$MACSETFILE,;t t
40803 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
40804 s,@GCC@,$GCC,;t t
40805 s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
40806 s,@DLLTOOL@,$DLLTOOL,;t t
40807 s,@AS@,$AS,;t t
40808 s,@LD@,$LD,;t t
40809 s,@MAKEINFO@,$MAKEINFO,;t t
40810 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
40811 s,@LIBOBJS@,$LIBOBJS,;t t
40812 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40813 CEOF
40814
40815 _ACEOF
40816
40817 cat >>$CONFIG_STATUS <<\_ACEOF
40818 # Split the substitutions into bite-sized pieces for seds with
40819 # small command number limits, like on Digital OSF/1 and HP-UX.
40820 ac_max_sed_lines=48
40821 ac_sed_frag=1 # Number of current file.
40822 ac_beg=1 # First line for current file.
40823 ac_end=$ac_max_sed_lines # Line after last line for current file.
40824 ac_more_lines=:
40825 ac_sed_cmds=
40826 while $ac_more_lines; do
40827 if test $ac_beg -gt 1; then
40828 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40829 else
40830 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40831 fi
40832 if test ! -s $tmp/subs.frag; then
40833 ac_more_lines=false
40834 else
40835 # The purpose of the label and of the branching condition is to
40836 # speed up the sed processing (if there are no `@' at all, there
40837 # is no need to browse any of the substitutions).
40838 # These are the two extra sed commands mentioned above.
40839 (echo ':t
40840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40841 if test -z "$ac_sed_cmds"; then
40842 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40843 else
40844 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40845 fi
40846 ac_sed_frag=`expr $ac_sed_frag + 1`
40847 ac_beg=$ac_end
40848 ac_end=`expr $ac_end + $ac_max_sed_lines`
40849 fi
40850 done
40851 if test -z "$ac_sed_cmds"; then
40852 ac_sed_cmds=cat
40853 fi
40854 fi # test -n "$CONFIG_FILES"
40855
40856 _ACEOF
40857 cat >>$CONFIG_STATUS <<\_ACEOF
40858 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40859 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40860 case $ac_file in
40861 - | *:- | *:-:* ) # input from stdin
40862 cat >$tmp/stdin
40863 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40864 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40865 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40866 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40867 * ) ac_file_in=$ac_file.in ;;
40868 esac
40869
40870 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40871 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40872 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40873 X"$ac_file" : 'X\(//\)[^/]' \| \
40874 X"$ac_file" : 'X\(//\)$' \| \
40875 X"$ac_file" : 'X\(/\)' \| \
40876 . : '\(.\)' 2>/dev/null ||
40877 echo X"$ac_file" |
40878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40880 /^X\(\/\/\)$/{ s//\1/; q; }
40881 /^X\(\/\).*/{ s//\1/; q; }
40882 s/.*/./; q'`
40883 { if $as_mkdir_p; then
40884 mkdir -p "$ac_dir"
40885 else
40886 as_dir="$ac_dir"
40887 as_dirs=
40888 while test ! -d "$as_dir"; do
40889 as_dirs="$as_dir $as_dirs"
40890 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40892 X"$as_dir" : 'X\(//\)[^/]' \| \
40893 X"$as_dir" : 'X\(//\)$' \| \
40894 X"$as_dir" : 'X\(/\)' \| \
40895 . : '\(.\)' 2>/dev/null ||
40896 echo X"$as_dir" |
40897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40898 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40899 /^X\(\/\/\)$/{ s//\1/; q; }
40900 /^X\(\/\).*/{ s//\1/; q; }
40901 s/.*/./; q'`
40902 done
40903 test ! -n "$as_dirs" || mkdir $as_dirs
40904 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40905 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40906 { (exit 1); exit 1; }; }; }
40907
40908 ac_builddir=.
40909
40910 if test "$ac_dir" != .; then
40911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40912 # A "../" for each directory in $ac_dir_suffix.
40913 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40914 else
40915 ac_dir_suffix= ac_top_builddir=
40916 fi
40917
40918 case $srcdir in
40919 .) # No --srcdir option. We are building in place.
40920 ac_srcdir=.
40921 if test -z "$ac_top_builddir"; then
40922 ac_top_srcdir=.
40923 else
40924 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40925 fi ;;
40926 [\\/]* | ?:[\\/]* ) # Absolute path.
40927 ac_srcdir=$srcdir$ac_dir_suffix;
40928 ac_top_srcdir=$srcdir ;;
40929 *) # Relative path.
40930 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40931 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40932 esac
40933
40934 # Do not use `cd foo && pwd` to compute absolute paths, because
40935 # the directories may not exist.
40936 case `pwd` in
40937 .) ac_abs_builddir="$ac_dir";;
40938 *)
40939 case "$ac_dir" in
40940 .) ac_abs_builddir=`pwd`;;
40941 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40942 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40943 esac;;
40944 esac
40945 case $ac_abs_builddir in
40946 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40947 *)
40948 case ${ac_top_builddir}. in
40949 .) ac_abs_top_builddir=$ac_abs_builddir;;
40950 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40951 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40952 esac;;
40953 esac
40954 case $ac_abs_builddir in
40955 .) ac_abs_srcdir=$ac_srcdir;;
40956 *)
40957 case $ac_srcdir in
40958 .) ac_abs_srcdir=$ac_abs_builddir;;
40959 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40960 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40961 esac;;
40962 esac
40963 case $ac_abs_builddir in
40964 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40965 *)
40966 case $ac_top_srcdir in
40967 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40968 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40969 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40970 esac;;
40971 esac
40972
40973
40974 case $INSTALL in
40975 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40976 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40977 esac
40978
40979 if test x"$ac_file" != x-; then
40980 { echo "$as_me:$LINENO: creating $ac_file" >&5
40981 echo "$as_me: creating $ac_file" >&6;}
40982 rm -f "$ac_file"
40983 fi
40984 # Let's still pretend it is `configure' which instantiates (i.e., don't
40985 # use $as_me), people would be surprised to read:
40986 # /* config.h. Generated by config.status. */
40987 if test x"$ac_file" = x-; then
40988 configure_input=
40989 else
40990 configure_input="$ac_file. "
40991 fi
40992 configure_input=$configure_input"Generated from `echo $ac_file_in |
40993 sed 's,.*/,,'` by configure."
40994
40995 # First look for the input files in the build tree, otherwise in the
40996 # src tree.
40997 ac_file_inputs=`IFS=:
40998 for f in $ac_file_in; do
40999 case $f in
41000 -) echo $tmp/stdin ;;
41001 [\\/$]*)
41002 # Absolute (can't be DOS-style, as IFS=:)
41003 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41004 echo "$as_me: error: cannot find input file: $f" >&2;}
41005 { (exit 1); exit 1; }; }
41006 echo "$f";;
41007 *) # Relative
41008 if test -f "$f"; then
41009 # Build tree
41010 echo "$f"
41011 elif test -f "$srcdir/$f"; then
41012 # Source tree
41013 echo "$srcdir/$f"
41014 else
41015 # /dev/null tree
41016 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41017 echo "$as_me: error: cannot find input file: $f" >&2;}
41018 { (exit 1); exit 1; }; }
41019 fi;;
41020 esac
41021 done` || { (exit 1); exit 1; }
41022 _ACEOF
41023 cat >>$CONFIG_STATUS <<_ACEOF
41024 sed "$ac_vpsub
41025 $extrasub
41026 _ACEOF
41027 cat >>$CONFIG_STATUS <<\_ACEOF
41028 :t
41029 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41030 s,@configure_input@,$configure_input,;t t
41031 s,@srcdir@,$ac_srcdir,;t t
41032 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41033 s,@top_srcdir@,$ac_top_srcdir,;t t
41034 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41035 s,@builddir@,$ac_builddir,;t t
41036 s,@abs_builddir@,$ac_abs_builddir,;t t
41037 s,@top_builddir@,$ac_top_builddir,;t t
41038 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41039 s,@INSTALL@,$ac_INSTALL,;t t
41040 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41041 rm -f $tmp/stdin
41042 if test x"$ac_file" != x-; then
41043 mv $tmp/out $ac_file
41044 else
41045 cat $tmp/out
41046 rm -f $tmp/out
41047 fi
41048
41049 done
41050 _ACEOF
41051 cat >>$CONFIG_STATUS <<\_ACEOF
41052
41053 #
41054 # CONFIG_HEADER section.
41055 #
41056
41057 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41058 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41059 #
41060 # ac_d sets the value in "#define NAME VALUE" lines.
41061 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41062 ac_dB='[ ].*$,\1#\2'
41063 ac_dC=' '
41064 ac_dD=',;t'
41065 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41066 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41067 ac_uB='$,\1#\2define\3'
41068 ac_uC=' '
41069 ac_uD=',;t'
41070
41071 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41072 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41073 case $ac_file in
41074 - | *:- | *:-:* ) # input from stdin
41075 cat >$tmp/stdin
41076 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41077 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41078 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41079 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41080 * ) ac_file_in=$ac_file.in ;;
41081 esac
41082
41083 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41084 echo "$as_me: creating $ac_file" >&6;}
41085
41086 # First look for the input files in the build tree, otherwise in the
41087 # src tree.
41088 ac_file_inputs=`IFS=:
41089 for f in $ac_file_in; do
41090 case $f in
41091 -) echo $tmp/stdin ;;
41092 [\\/$]*)
41093 # Absolute (can't be DOS-style, as IFS=:)
41094 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41095 echo "$as_me: error: cannot find input file: $f" >&2;}
41096 { (exit 1); exit 1; }; }
41097 # Do quote $f, to prevent DOS paths from being IFS'd.
41098 echo "$f";;
41099 *) # Relative
41100 if test -f "$f"; then
41101 # Build tree
41102 echo "$f"
41103 elif test -f "$srcdir/$f"; then
41104 # Source tree
41105 echo "$srcdir/$f"
41106 else
41107 # /dev/null tree
41108 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41109 echo "$as_me: error: cannot find input file: $f" >&2;}
41110 { (exit 1); exit 1; }; }
41111 fi;;
41112 esac
41113 done` || { (exit 1); exit 1; }
41114 # Remove the trailing spaces.
41115 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41116
41117 _ACEOF
41118
41119 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41120 # `conftest.undefs', that substitutes the proper values into
41121 # config.h.in to produce config.h. The first handles `#define'
41122 # templates, and the second `#undef' templates.
41123 # And first: Protect against being on the right side of a sed subst in
41124 # config.status. Protect against being in an unquoted here document
41125 # in config.status.
41126 rm -f conftest.defines conftest.undefs
41127 # Using a here document instead of a string reduces the quoting nightmare.
41128 # Putting comments in sed scripts is not portable.
41129 #
41130 # `end' is used to avoid that the second main sed command (meant for
41131 # 0-ary CPP macros) applies to n-ary macro definitions.
41132 # See the Autoconf documentation for `clear'.
41133 cat >confdef2sed.sed <<\_ACEOF
41134 s/[\\&,]/\\&/g
41135 s,[\\$`],\\&,g
41136 t clear
41137 : clear
41138 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41139 t end
41140 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41141 : end
41142 _ACEOF
41143 # If some macros were called several times there might be several times
41144 # the same #defines, which is useless. Nevertheless, we may not want to
41145 # sort them, since we want the *last* AC-DEFINE to be honored.
41146 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41147 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41148 rm -f confdef2sed.sed
41149
41150 # This sed command replaces #undef with comments. This is necessary, for
41151 # example, in the case of _POSIX_SOURCE, which is predefined and required
41152 # on some systems where configure will not decide to define it.
41153 cat >>conftest.undefs <<\_ACEOF
41154 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41155 _ACEOF
41156
41157 # Break up conftest.defines because some shells have a limit on the size
41158 # of here documents, and old seds have small limits too (100 cmds).
41159 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41160 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41161 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41162 echo ' :' >>$CONFIG_STATUS
41163 rm -f conftest.tail
41164 while grep . conftest.defines >/dev/null
41165 do
41166 # Write a limited-size here document to $tmp/defines.sed.
41167 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41168 # Speed up: don't consider the non `#define' lines.
41169 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41170 # Work around the forget-to-reset-the-flag bug.
41171 echo 't clr' >>$CONFIG_STATUS
41172 echo ': clr' >>$CONFIG_STATUS
41173 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41174 echo 'CEOF
41175 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41176 rm -f $tmp/in
41177 mv $tmp/out $tmp/in
41178 ' >>$CONFIG_STATUS
41179 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41180 rm -f conftest.defines
41181 mv conftest.tail conftest.defines
41182 done
41183 rm -f conftest.defines
41184 echo ' fi # grep' >>$CONFIG_STATUS
41185 echo >>$CONFIG_STATUS
41186
41187 # Break up conftest.undefs because some shells have a limit on the size
41188 # of here documents, and old seds have small limits too (100 cmds).
41189 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
41190 rm -f conftest.tail
41191 while grep . conftest.undefs >/dev/null
41192 do
41193 # Write a limited-size here document to $tmp/undefs.sed.
41194 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41195 # Speed up: don't consider the non `#undef'
41196 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
41197 # Work around the forget-to-reset-the-flag bug.
41198 echo 't clr' >>$CONFIG_STATUS
41199 echo ': clr' >>$CONFIG_STATUS
41200 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41201 echo 'CEOF
41202 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41203 rm -f $tmp/in
41204 mv $tmp/out $tmp/in
41205 ' >>$CONFIG_STATUS
41206 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41207 rm -f conftest.undefs
41208 mv conftest.tail conftest.undefs
41209 done
41210 rm -f conftest.undefs
41211
41212 cat >>$CONFIG_STATUS <<\_ACEOF
41213 # Let's still pretend it is `configure' which instantiates (i.e., don't
41214 # use $as_me), people would be surprised to read:
41215 # /* config.h. Generated by config.status. */
41216 if test x"$ac_file" = x-; then
41217 echo "/* Generated by configure. */" >$tmp/config.h
41218 else
41219 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
41220 fi
41221 cat $tmp/in >>$tmp/config.h
41222 rm -f $tmp/in
41223 if test x"$ac_file" != x-; then
41224 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41225 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41226 echo "$as_me: $ac_file is unchanged" >&6;}
41227 else
41228 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41230 X"$ac_file" : 'X\(//\)[^/]' \| \
41231 X"$ac_file" : 'X\(//\)$' \| \
41232 X"$ac_file" : 'X\(/\)' \| \
41233 . : '\(.\)' 2>/dev/null ||
41234 echo X"$ac_file" |
41235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41237 /^X\(\/\/\)$/{ s//\1/; q; }
41238 /^X\(\/\).*/{ s//\1/; q; }
41239 s/.*/./; q'`
41240 { if $as_mkdir_p; then
41241 mkdir -p "$ac_dir"
41242 else
41243 as_dir="$ac_dir"
41244 as_dirs=
41245 while test ! -d "$as_dir"; do
41246 as_dirs="$as_dir $as_dirs"
41247 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41248 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41249 X"$as_dir" : 'X\(//\)[^/]' \| \
41250 X"$as_dir" : 'X\(//\)$' \| \
41251 X"$as_dir" : 'X\(/\)' \| \
41252 . : '\(.\)' 2>/dev/null ||
41253 echo X"$as_dir" |
41254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41256 /^X\(\/\/\)$/{ s//\1/; q; }
41257 /^X\(\/\).*/{ s//\1/; q; }
41258 s/.*/./; q'`
41259 done
41260 test ! -n "$as_dirs" || mkdir $as_dirs
41261 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41262 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41263 { (exit 1); exit 1; }; }; }
41264
41265 rm -f $ac_file
41266 mv $tmp/config.h $ac_file
41267 fi
41268 else
41269 cat $tmp/config.h
41270 rm -f $tmp/config.h
41271 fi
41272 done
41273 _ACEOF
41274 cat >>$CONFIG_STATUS <<\_ACEOF
41275
41276 #
41277 # CONFIG_COMMANDS section.
41278 #
41279 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41280 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41281 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41282 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41283 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41284 X"$ac_dest" : 'X\(//\)[^/]' \| \
41285 X"$ac_dest" : 'X\(//\)$' \| \
41286 X"$ac_dest" : 'X\(/\)' \| \
41287 . : '\(.\)' 2>/dev/null ||
41288 echo X"$ac_dest" |
41289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41291 /^X\(\/\/\)$/{ s//\1/; q; }
41292 /^X\(\/\).*/{ s//\1/; q; }
41293 s/.*/./; q'`
41294 { if $as_mkdir_p; then
41295 mkdir -p "$ac_dir"
41296 else
41297 as_dir="$ac_dir"
41298 as_dirs=
41299 while test ! -d "$as_dir"; do
41300 as_dirs="$as_dir $as_dirs"
41301 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41303 X"$as_dir" : 'X\(//\)[^/]' \| \
41304 X"$as_dir" : 'X\(//\)$' \| \
41305 X"$as_dir" : 'X\(/\)' \| \
41306 . : '\(.\)' 2>/dev/null ||
41307 echo X"$as_dir" |
41308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41310 /^X\(\/\/\)$/{ s//\1/; q; }
41311 /^X\(\/\).*/{ s//\1/; q; }
41312 s/.*/./; q'`
41313 done
41314 test ! -n "$as_dirs" || mkdir $as_dirs
41315 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41316 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41317 { (exit 1); exit 1; }; }; }
41318
41319 ac_builddir=.
41320
41321 if test "$ac_dir" != .; then
41322 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41323 # A "../" for each directory in $ac_dir_suffix.
41324 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41325 else
41326 ac_dir_suffix= ac_top_builddir=
41327 fi
41328
41329 case $srcdir in
41330 .) # No --srcdir option. We are building in place.
41331 ac_srcdir=.
41332 if test -z "$ac_top_builddir"; then
41333 ac_top_srcdir=.
41334 else
41335 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41336 fi ;;
41337 [\\/]* | ?:[\\/]* ) # Absolute path.
41338 ac_srcdir=$srcdir$ac_dir_suffix;
41339 ac_top_srcdir=$srcdir ;;
41340 *) # Relative path.
41341 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41342 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41343 esac
41344
41345 # Do not use `cd foo && pwd` to compute absolute paths, because
41346 # the directories may not exist.
41347 case `pwd` in
41348 .) ac_abs_builddir="$ac_dir";;
41349 *)
41350 case "$ac_dir" in
41351 .) ac_abs_builddir=`pwd`;;
41352 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41353 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41354 esac;;
41355 esac
41356 case $ac_abs_builddir in
41357 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41358 *)
41359 case ${ac_top_builddir}. in
41360 .) ac_abs_top_builddir=$ac_abs_builddir;;
41361 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41362 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41363 esac;;
41364 esac
41365 case $ac_abs_builddir in
41366 .) ac_abs_srcdir=$ac_srcdir;;
41367 *)
41368 case $ac_srcdir in
41369 .) ac_abs_srcdir=$ac_abs_builddir;;
41370 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41371 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41372 esac;;
41373 esac
41374 case $ac_abs_builddir in
41375 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41376 *)
41377 case $ac_top_srcdir in
41378 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41379 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41380 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41381 esac;;
41382 esac
41383
41384
41385 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41386 echo "$as_me: executing $ac_dest commands" >&6;}
41387 case $ac_dest in
41388 default )
41389 if test ! -h wx-config; then
41390 chmod +x wx-config
41391 mv wx-config wx${TOOLCHAIN_NAME}-config
41392 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
41393 fi
41394
41395 if test ! -d lib; then
41396 mkdir lib
41397 fi
41398 if test ! -d lib/wx; then
41399 mkdir lib/wx
41400 fi
41401 if test ! -d lib/wx/include; then
41402 mkdir lib/wx/include
41403 fi
41404 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
41405 mkdir lib/wx/include/${TOOLCHAIN_NAME}
41406 fi
41407 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
41408 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
41409 fi
41410 if test -f setup.h; then
41411 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
41412 fi
41413 ;;
41414 esac
41415 done
41416 _ACEOF
41417
41418 cat >>$CONFIG_STATUS <<\_ACEOF
41419
41420 { (exit 0); exit 0; }
41421 _ACEOF
41422 chmod +x $CONFIG_STATUS
41423 ac_clean_files=$ac_clean_files_save
41424
41425
41426 # configure is writing to config.log, and then calls config.status.
41427 # config.status does its own redirection, appending to config.log.
41428 # Unfortunately, on DOS this fails, as config.log is still kept open
41429 # by configure, so config.status won't be able to write to it; its
41430 # output is simply discarded. So we exec the FD to /dev/null,
41431 # effectively closing config.log, so it can be properly (re)opened and
41432 # appended to by config.status. When coming back to configure, we
41433 # need to make the FD available again.
41434 if test "$no_create" != yes; then
41435 ac_cs_success=:
41436 ac_config_status_args=
41437 test "$silent" = yes &&
41438 ac_config_status_args="$ac_config_status_args --quiet"
41439 exec 5>/dev/null
41440 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41441 exec 5>>config.log
41442 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41443 # would make configure fail if this is the last instruction.
41444 $ac_cs_success || { (exit 1); exit 1; }
41445 fi
41446
41447 #
41448 # CONFIG_SUBDIRS section.
41449 #
41450 if test "$no_recursion" != yes; then
41451
41452 # Remove --cache-file and --srcdir arguments so they do not pile up.
41453 ac_sub_configure_args=
41454 ac_prev=
41455 for ac_arg in $ac_configure_args; do
41456 if test -n "$ac_prev"; then
41457 ac_prev=
41458 continue
41459 fi
41460 case $ac_arg in
41461 -cache-file | --cache-file | --cache-fil | --cache-fi \
41462 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
41463 ac_prev=cache_file ;;
41464 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
41465 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
41466 | --c=*)
41467 ;;
41468 --config-cache | -C)
41469 ;;
41470 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
41471 ac_prev=srcdir ;;
41472 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
41473 ;;
41474 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
41475 ac_prev=prefix ;;
41476 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
41477 ;;
41478 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
41479 esac
41480 done
41481
41482 # Always prepend --prefix to ensure using the same prefix
41483 # in subdir configurations.
41484 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
41485
41486 ac_popdir=`pwd`
41487 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
41488
41489 # Do not complain, so a configure script can configure whichever
41490 # parts of a large source tree are present.
41491 test -d $srcdir/$ac_dir || continue
41492
41493 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
41494 echo "$as_me: configuring in $ac_dir" >&6;}
41495 { if $as_mkdir_p; then
41496 mkdir -p "$ac_dir"
41497 else
41498 as_dir="$ac_dir"
41499 as_dirs=
41500 while test ! -d "$as_dir"; do
41501 as_dirs="$as_dir $as_dirs"
41502 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41504 X"$as_dir" : 'X\(//\)[^/]' \| \
41505 X"$as_dir" : 'X\(//\)$' \| \
41506 X"$as_dir" : 'X\(/\)' \| \
41507 . : '\(.\)' 2>/dev/null ||
41508 echo X"$as_dir" |
41509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41511 /^X\(\/\/\)$/{ s//\1/; q; }
41512 /^X\(\/\).*/{ s//\1/; q; }
41513 s/.*/./; q'`
41514 done
41515 test ! -n "$as_dirs" || mkdir $as_dirs
41516 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41517 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41518 { (exit 1); exit 1; }; }; }
41519
41520 ac_builddir=.
41521
41522 if test "$ac_dir" != .; then
41523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41524 # A "../" for each directory in $ac_dir_suffix.
41525 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41526 else
41527 ac_dir_suffix= ac_top_builddir=
41528 fi
41529
41530 case $srcdir in
41531 .) # No --srcdir option. We are building in place.
41532 ac_srcdir=.
41533 if test -z "$ac_top_builddir"; then
41534 ac_top_srcdir=.
41535 else
41536 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41537 fi ;;
41538 [\\/]* | ?:[\\/]* ) # Absolute path.
41539 ac_srcdir=$srcdir$ac_dir_suffix;
41540 ac_top_srcdir=$srcdir ;;
41541 *) # Relative path.
41542 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41543 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41544 esac
41545
41546 # Do not use `cd foo && pwd` to compute absolute paths, because
41547 # the directories may not exist.
41548 case `pwd` in
41549 .) ac_abs_builddir="$ac_dir";;
41550 *)
41551 case "$ac_dir" in
41552 .) ac_abs_builddir=`pwd`;;
41553 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41554 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41555 esac;;
41556 esac
41557 case $ac_abs_builddir in
41558 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41559 *)
41560 case ${ac_top_builddir}. in
41561 .) ac_abs_top_builddir=$ac_abs_builddir;;
41562 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41563 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41564 esac;;
41565 esac
41566 case $ac_abs_builddir in
41567 .) ac_abs_srcdir=$ac_srcdir;;
41568 *)
41569 case $ac_srcdir in
41570 .) ac_abs_srcdir=$ac_abs_builddir;;
41571 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41572 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41573 esac;;
41574 esac
41575 case $ac_abs_builddir in
41576 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41577 *)
41578 case $ac_top_srcdir in
41579 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41580 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41581 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41582 esac;;
41583 esac
41584
41585
41586 cd $ac_dir
41587
41588 # Check for guested configure; otherwise get Cygnus style configure.
41589 if test -f $ac_srcdir/configure.gnu; then
41590 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
41591 elif test -f $ac_srcdir/configure; then
41592 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
41593 elif test -f $ac_srcdir/configure.in; then
41594 ac_sub_configure=$ac_configure
41595 else
41596 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
41597 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
41598 ac_sub_configure=
41599 fi
41600
41601 # The recursion is here.
41602 if test -n "$ac_sub_configure"; then
41603 # Make the cache file name correct relative to the subdirectory.
41604 case $cache_file in
41605 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
41606 *) # Relative path.
41607 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
41608 esac
41609
41610 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
41611 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
41612 # The eval makes quoting arguments work.
41613 eval $ac_sub_configure $ac_sub_configure_args \
41614 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
41615 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
41616 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
41617 { (exit 1); exit 1; }; }
41618 fi
41619
41620 cd $ac_popdir
41621 done
41622 fi
41623
41624
41625 echo
41626 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
41627 echo ""
41628 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
41629 echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
41630
41631 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
41632 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
41633 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
41634
41635 echo " What level of wxWindows compatibility should be enabled?"
41636 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
41637 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
41638
41639 echo " Which libraries should wxWindows use?"
41640 echo " jpeg ${wxUSE_LIBJPEG-none}"
41641 echo " png ${wxUSE_LIBPNG-none}"
41642 echo " regex ${wxUSE_REGEX}"
41643 echo " tiff ${wxUSE_LIBTIFF-none}"
41644 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
41645 echo " xpm ${wxUSE_LIBXPM-none}"
41646 fi
41647 echo " zlib ${wxUSE_ZLIB}"
41648 echo " odbc ${wxUSE_ODBC}"
41649 echo " expat ${wxUSE_EXPAT}"
41650 echo " libmspack ${wxUSE_LIBMSPACK}"
41651 echo " sdl ${wxUSE_LIBSDL}"
41652
41653 echo ""
41654