]> git.saurik.com Git - wxWidgets.git/blob - configure
42b2a54b2d284f2e57b2b8181ae2cb3b2ddc2c1e
[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 wxWidgets 2.7.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.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='wxWidgets'
272 PACKAGE_TARNAME='wxwidgets'
273 PACKAGE_VERSION='2.7.0'
274 PACKAGE_STRING='wxWidgets 2.7.0'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.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 ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP RESCOMP ac_ct_RESCOMP DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN 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_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_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_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_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_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_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_USE_XRC_1 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_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 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_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_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_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 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 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC CPPUNIT_CONFIG 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 wxWidgets 2.7.0 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 wxWidgets 2.7.0:";;
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 wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
874 --enable-nanox use NanoX
875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
892 --enable-compat24 enable wxWidgets 2.4 compatibility
893 --disable-compat26 disable wxWidgets 2.6 compatibility
894 --disable-rpath disable use of rpath for uninstalled builds
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-arcstream use wxArchive streams
907 --enable-backtrace use wxStackWalker class for getting backtraces
908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
911 --enable-debugreport use wxDebugReport class
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
928 --enable-std_iostreams use standard C++ stream classes
929 --enable-std_string use standard C++ string classes
930 --enable-stdpaths use wxStandardPaths class
931 --enable-stopwatch use wxStopWatch class
932 --enable-streams use wxStream etc classes
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
939 --enable-mediactrl use wxMediaCtrl class
940 --enable-wxprintfv use wxWidgets implementation of vprintf()
941 --enable-zipstream use wxZip streams
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
953 --enable-xrc use XRC resources sub-library
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
957 --enable-mdidoc use docview architecture with MDI
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
961 --enable-webkit use wxWebKitCtrl (Mac)
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
977 --enable-choicebook use wxChoicebook class
978 --enable-combobox use wxComboBox class
979 --enable-datepick use wxDatePickerCtrl class
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treebook use wxTreebook class
1008 --enable-treectrl use wxTreeCtrl class
1009 --enable-tipwindow use wxTipWindow class
1010 --enable-popupwin use wxPopUpWindow class
1011 --enable-commondlg use all common dialogs
1012 --enable-choicedlg use wxChoiceDialog
1013 --enable-coldlg use wxColourDialog
1014 --enable-filedlg use wxFileDialog
1015 --enable-finddlg use wxFindReplaceDialog
1016 --enable-fontdlg use wxFontDialog
1017 --enable-dirdlg use wxDirDialog
1018 --enable-msgdlg use wxMessageDialog
1019 --enable-numberdlg use wxNumberEntryDialog
1020 --enable-splash use wxSplashScreen
1021 --enable-textdlg use wxTextDialog
1022 --enable-tipdlg use startup tips
1023 --enable-progressdlg use wxProgressDialog
1024 --enable-wizarddlg use wxWizard
1025 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1026 --enable-miniframe use wxMiniFrame class
1027 --enable-tooltips use wxToolTip class
1028 --enable-splines use spline drawing code
1029 --enable-mousewheel use mousewheel
1030 --enable-validators use wxValidator and derived classes
1031 --enable-busyinfo use wxBusyInfo
1032 --enable-joystick use wxJoystick
1033 --enable-metafiles use wxMetaFile (Win32 only)
1034 --enable-dragimage use wxDragImage
1035 --enable-accessibility enable accessibility support
1036 --enable-dccache cache temporary wxDC objects (Win32 only)
1037 --enable-palette use wxPalette class
1038 --enable-image use wxImage class
1039 --enable-gif use gif images (GIF file format)
1040 --enable-pcx use pcx images (PCX file format)
1041 --enable-iff use iff images (IFF file format)
1042 --enable-pnm use pnm images (PNM file format)
1043 --enable-xpm use xpm images (XPM file format)
1044 --enable-icocur use Windows ICO and CUR formats
1045 --enable-official_build official build of wxWidgets (win32 DLL only)
1046 --enable-vendor=VENDOR vendor name (win32 DLL only)
1047 --disable-largefile omit support for large files
1048 --disable-gtktest do not try to compile and run a test GTK+ program
1049 --disable-gtktest Do not try to compile and run a test GTK program
1050 --disable-sdltest Do not try to compile and run a test SDL program
1051 --enable-omf use OMF object format (OS/2)
1052 --disable-precomp-headers
1053 don't use precompiled headers even if compiler can
1054
1055 Optional Packages:
1056 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1057 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1058 --without-subdirs don't generate makefiles for samples/demos/...
1059 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
1060 --with-motif use Motif/Lesstif
1061 --with-mac use Mac OS X
1062 --with-cocoa use Cocoa
1063 --with-wine use Wine
1064 --with-msw use MS-Windows
1065 --with-pm use OS/2 Presentation Manager
1066 --with-mgl use SciTech MGL
1067 --with-microwin use MicroWindows
1068 --with-x11 use X11
1069 --with-libpng use libpng (PNG image format)
1070 --with-libjpeg use libjpeg (JPEG file format)
1071 --with-libtiff use libtiff (TIFF file format)
1072 --with-libxpm use libxpm (XPM file format)
1073 --with-libmspack use libmspack (CHM help files loading)
1074 --with-sdl use SDL for audio on Unix
1075 --with-gnomeprint use GNOME print for printing under Unix
1076 --with-opengl use OpenGL (or Mesa)
1077 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1078 --with-regex enable support for wxRegEx class
1079 --with-zlib use zlib for LZW compression
1080 --with-odbc use the IODBC and wxODBC classes
1081 --with-expat enable XML support using expat parser
1082 --with-flavour=NAME specify a name to identify this build
1083 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1084 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1085 --with-x use the X Window System
1086 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1087 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1088 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1089 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1090 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1091
1092 Some influential environment variables:
1093 CC C compiler command
1094 CFLAGS C compiler flags
1095 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1096 nonstandard directory <lib dir>
1097 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1098 headers in a nonstandard directory <include dir>
1099 CPP C preprocessor
1100 CXX C++ compiler command
1101 CXXFLAGS C++ compiler flags
1102 CXXCPP C++ preprocessor
1103
1104 Use these variables to override the choices made by `configure' or to help
1105 it to find libraries and programs with nonstandard names/locations.
1106
1107 Report bugs to <wx-dev@lists.wxwidgets.org>.
1108 _ACEOF
1109 fi
1110
1111 if test "$ac_init_help" = "recursive"; then
1112 # If there are subdirs, report their specific --help.
1113 ac_popdir=`pwd`
1114 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1115 test -d $ac_dir || continue
1116 ac_builddir=.
1117
1118 if test "$ac_dir" != .; then
1119 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1120 # A "../" for each directory in $ac_dir_suffix.
1121 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1122 else
1123 ac_dir_suffix= ac_top_builddir=
1124 fi
1125
1126 case $srcdir in
1127 .) # No --srcdir option. We are building in place.
1128 ac_srcdir=.
1129 if test -z "$ac_top_builddir"; then
1130 ac_top_srcdir=.
1131 else
1132 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1133 fi ;;
1134 [\\/]* | ?:[\\/]* ) # Absolute path.
1135 ac_srcdir=$srcdir$ac_dir_suffix;
1136 ac_top_srcdir=$srcdir ;;
1137 *) # Relative path.
1138 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1139 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1140 esac
1141
1142 # Do not use `cd foo && pwd` to compute absolute paths, because
1143 # the directories may not exist.
1144 case `pwd` in
1145 .) ac_abs_builddir="$ac_dir";;
1146 *)
1147 case "$ac_dir" in
1148 .) ac_abs_builddir=`pwd`;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1150 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1151 esac;;
1152 esac
1153 case $ac_abs_builddir in
1154 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1155 *)
1156 case ${ac_top_builddir}. in
1157 .) ac_abs_top_builddir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1159 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1160 esac;;
1161 esac
1162 case $ac_abs_builddir in
1163 .) ac_abs_srcdir=$ac_srcdir;;
1164 *)
1165 case $ac_srcdir in
1166 .) ac_abs_srcdir=$ac_abs_builddir;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1168 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1169 esac;;
1170 esac
1171 case $ac_abs_builddir in
1172 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1173 *)
1174 case $ac_top_srcdir in
1175 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1176 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1177 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1178 esac;;
1179 esac
1180
1181 cd $ac_dir
1182 # Check for guested configure; otherwise get Cygnus style configure.
1183 if test -f $ac_srcdir/configure.gnu; then
1184 echo
1185 $SHELL $ac_srcdir/configure.gnu --help=recursive
1186 elif test -f $ac_srcdir/configure; then
1187 echo
1188 $SHELL $ac_srcdir/configure --help=recursive
1189 elif test -f $ac_srcdir/configure.ac ||
1190 test -f $ac_srcdir/configure.in; then
1191 echo
1192 $ac_configure --help
1193 else
1194 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1195 fi
1196 cd "$ac_popdir"
1197 done
1198 fi
1199
1200 test -n "$ac_init_help" && exit 0
1201 if $ac_init_version; then
1202 cat <<\_ACEOF
1203 wxWidgets configure 2.7.0
1204 generated by GNU Autoconf 2.59
1205
1206 Copyright (C) 2003 Free Software Foundation, Inc.
1207 This configure script is free software; the Free Software Foundation
1208 gives unlimited permission to copy, distribute and modify it.
1209 _ACEOF
1210 exit 0
1211 fi
1212 exec 5>config.log
1213 cat >&5 <<_ACEOF
1214 This file contains any messages produced by compilers while
1215 running configure, to aid debugging if configure makes a mistake.
1216
1217 It was created by wxWidgets $as_me 2.7.0, which was
1218 generated by GNU Autoconf 2.59. Invocation command line was
1219
1220 $ $0 $@
1221
1222 _ACEOF
1223 {
1224 cat <<_ASUNAME
1225 ## --------- ##
1226 ## Platform. ##
1227 ## --------- ##
1228
1229 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1230 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1231 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1232 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1233 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1234
1235 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1236 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1237
1238 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1239 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1240 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1241 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1242 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1243 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1244 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1245
1246 _ASUNAME
1247
1248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1249 for as_dir in $PATH
1250 do
1251 IFS=$as_save_IFS
1252 test -z "$as_dir" && as_dir=.
1253 echo "PATH: $as_dir"
1254 done
1255
1256 } >&5
1257
1258 cat >&5 <<_ACEOF
1259
1260
1261 ## ----------- ##
1262 ## Core tests. ##
1263 ## ----------- ##
1264
1265 _ACEOF
1266
1267
1268 # Keep a trace of the command line.
1269 # Strip out --no-create and --no-recursion so they do not pile up.
1270 # Strip out --silent because we don't want to record it for future runs.
1271 # Also quote any args containing shell meta-characters.
1272 # Make two passes to allow for proper duplicate-argument suppression.
1273 ac_configure_args=
1274 ac_configure_args0=
1275 ac_configure_args1=
1276 ac_sep=
1277 ac_must_keep_next=false
1278 for ac_pass in 1 2
1279 do
1280 for ac_arg
1281 do
1282 case $ac_arg in
1283 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285 | -silent | --silent | --silen | --sile | --sil)
1286 continue ;;
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 esac
1290 case $ac_pass in
1291 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1292 2)
1293 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1294 if test $ac_must_keep_next = true; then
1295 ac_must_keep_next=false # Got value, back to normal.
1296 else
1297 case $ac_arg in
1298 *=* | --config-cache | -C | -disable-* | --disable-* \
1299 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1300 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1301 | -with-* | --with-* | -without-* | --without-* | --x)
1302 case "$ac_configure_args0 " in
1303 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1304 esac
1305 ;;
1306 -* ) ac_must_keep_next=true ;;
1307 esac
1308 fi
1309 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1310 # Get rid of the leading space.
1311 ac_sep=" "
1312 ;;
1313 esac
1314 done
1315 done
1316 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1317 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1318
1319 # When interrupted or exit'd, cleanup temporary files, and complete
1320 # config.log. We remove comments because anyway the quotes in there
1321 # would cause problems or look ugly.
1322 # WARNING: Be sure not to use single quotes in there, as some shells,
1323 # such as our DU 5.0 friend, will then `close' the trap.
1324 trap 'exit_status=$?
1325 # Save into config.log some information that might help in debugging.
1326 {
1327 echo
1328
1329 cat <<\_ASBOX
1330 ## ---------------- ##
1331 ## Cache variables. ##
1332 ## ---------------- ##
1333 _ASBOX
1334 echo
1335 # The following way of writing the cache mishandles newlines in values,
1336 {
1337 (set) 2>&1 |
1338 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1339 *ac_space=\ *)
1340 sed -n \
1341 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1343 ;;
1344 *)
1345 sed -n \
1346 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1347 ;;
1348 esac;
1349 }
1350 echo
1351
1352 cat <<\_ASBOX
1353 ## ----------------- ##
1354 ## Output variables. ##
1355 ## ----------------- ##
1356 _ASBOX
1357 echo
1358 for ac_var in $ac_subst_vars
1359 do
1360 eval ac_val=$`echo $ac_var`
1361 echo "$ac_var='"'"'$ac_val'"'"'"
1362 done | sort
1363 echo
1364
1365 if test -n "$ac_subst_files"; then
1366 cat <<\_ASBOX
1367 ## ------------- ##
1368 ## Output files. ##
1369 ## ------------- ##
1370 _ASBOX
1371 echo
1372 for ac_var in $ac_subst_files
1373 do
1374 eval ac_val=$`echo $ac_var`
1375 echo "$ac_var='"'"'$ac_val'"'"'"
1376 done | sort
1377 echo
1378 fi
1379
1380 if test -s confdefs.h; then
1381 cat <<\_ASBOX
1382 ## ----------- ##
1383 ## confdefs.h. ##
1384 ## ----------- ##
1385 _ASBOX
1386 echo
1387 sed "/^$/d" confdefs.h | sort
1388 echo
1389 fi
1390 test "$ac_signal" != 0 &&
1391 echo "$as_me: caught signal $ac_signal"
1392 echo "$as_me: exit $exit_status"
1393 } >&5
1394 rm -f core *.core &&
1395 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1396 exit $exit_status
1397 ' 0
1398 for ac_signal in 1 2 13 15; do
1399 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1400 done
1401 ac_signal=0
1402
1403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1404 rm -rf conftest* confdefs.h
1405 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1406 echo >confdefs.h
1407
1408 # Predefined preprocessor variables.
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_NAME "$PACKAGE_NAME"
1412 _ACEOF
1413
1414
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1417 _ACEOF
1418
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_STRING "$PACKAGE_STRING"
1427 _ACEOF
1428
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1432 _ACEOF
1433
1434
1435 # Let the site file select an alternate cache file if it wants to.
1436 # Prefer explicitly selected file to automatically selected ones.
1437 if test -z "$CONFIG_SITE"; then
1438 if test "x$prefix" != xNONE; then
1439 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1440 else
1441 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1442 fi
1443 fi
1444 for ac_site_file in $CONFIG_SITE; do
1445 if test -r "$ac_site_file"; then
1446 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1447 echo "$as_me: loading site script $ac_site_file" >&6;}
1448 sed 's/^/| /' "$ac_site_file" >&5
1449 . "$ac_site_file"
1450 fi
1451 done
1452
1453 if test -r "$cache_file"; then
1454 # Some versions of bash will fail to source /dev/null (special
1455 # files actually), so we avoid doing that.
1456 if test -f "$cache_file"; then
1457 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1458 echo "$as_me: loading cache $cache_file" >&6;}
1459 case $cache_file in
1460 [\\/]* | ?:[\\/]* ) . $cache_file;;
1461 *) . ./$cache_file;;
1462 esac
1463 fi
1464 else
1465 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1466 echo "$as_me: creating cache $cache_file" >&6;}
1467 >$cache_file
1468 fi
1469
1470 # Check that the precious variables saved in the cache have kept the same
1471 # value.
1472 ac_cache_corrupted=false
1473 for ac_var in `(set) 2>&1 |
1474 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1475 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1476 eval ac_new_set=\$ac_env_${ac_var}_set
1477 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1478 eval ac_new_val="\$ac_env_${ac_var}_value"
1479 case $ac_old_set,$ac_new_set in
1480 set,)
1481 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1482 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1483 ac_cache_corrupted=: ;;
1484 ,set)
1485 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1486 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1487 ac_cache_corrupted=: ;;
1488 ,);;
1489 *)
1490 if test "x$ac_old_val" != "x$ac_new_val"; then
1491 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1492 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1493 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1494 echo "$as_me: former value: $ac_old_val" >&2;}
1495 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1496 echo "$as_me: current value: $ac_new_val" >&2;}
1497 ac_cache_corrupted=:
1498 fi;;
1499 esac
1500 # Pass precious variables to config.status.
1501 if test "$ac_new_set" = set; then
1502 case $ac_new_val in
1503 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1504 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1505 *) ac_arg=$ac_var=$ac_new_val ;;
1506 esac
1507 case " $ac_configure_args " in
1508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1509 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1510 esac
1511 fi
1512 done
1513 if $ac_cache_corrupted; then
1514 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1515 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1516 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1517 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1518 { (exit 1); exit 1; }; }
1519 fi
1520
1521 ac_ext=c
1522 ac_cpp='$CPP $CPPFLAGS'
1523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556 ac_aux_dir=
1557 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1558 if test -f $ac_dir/install-sh; then
1559 ac_aux_dir=$ac_dir
1560 ac_install_sh="$ac_aux_dir/install-sh -c"
1561 break
1562 elif test -f $ac_dir/install.sh; then
1563 ac_aux_dir=$ac_dir
1564 ac_install_sh="$ac_aux_dir/install.sh -c"
1565 break
1566 elif test -f $ac_dir/shtool; then
1567 ac_aux_dir=$ac_dir
1568 ac_install_sh="$ac_aux_dir/shtool install -c"
1569 break
1570 fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1575 { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 # Make sure we can run config.sub.
1582 $ac_config_sub sun4 >/dev/null 2>&1 ||
1583 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1584 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587 echo "$as_me:$LINENO: checking build system type" >&5
1588 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1589 if test "${ac_cv_build+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592 ac_cv_build_alias=$build_alias
1593 test -z "$ac_cv_build_alias" &&
1594 ac_cv_build_alias=`$ac_config_guess`
1595 test -z "$ac_cv_build_alias" &&
1596 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1597 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1598 { (exit 1); exit 1; }; }
1599 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1600 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1601 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1602 { (exit 1); exit 1; }; }
1603
1604 fi
1605 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1606 echo "${ECHO_T}$ac_cv_build" >&6
1607 build=$ac_cv_build
1608 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1609 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1610 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611
1612
1613 echo "$as_me:$LINENO: checking host system type" >&5
1614 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1615 if test "${ac_cv_host+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 else
1618 ac_cv_host_alias=$host_alias
1619 test -z "$ac_cv_host_alias" &&
1620 ac_cv_host_alias=$ac_cv_build_alias
1621 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1622 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1623 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1624 { (exit 1); exit 1; }; }
1625
1626 fi
1627 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1628 echo "${ECHO_T}$ac_cv_host" >&6
1629 host=$ac_cv_host
1630 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633
1634
1635 echo "$as_me:$LINENO: checking target system type" >&5
1636 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1637 if test "${ac_cv_target+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640 ac_cv_target_alias=$target_alias
1641 test "x$ac_cv_target_alias" = "x" &&
1642 ac_cv_target_alias=$ac_cv_host_alias
1643 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1644 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1645 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1646 { (exit 1); exit 1; }; }
1647
1648 fi
1649 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1650 echo "${ECHO_T}$ac_cv_target" >&6
1651 target=$ac_cv_target
1652 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1653 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1654 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1655
1656
1657 # The aliases save the names the user supplied, while $host etc.
1658 # will get canonicalized.
1659 test -n "$target_alias" &&
1660 test "$program_prefix$program_suffix$program_transform_name" = \
1661 NONENONEs,x,x, &&
1662 program_prefix=${target_alias}-
1663
1664
1665
1666 wx_major_version_number=2
1667 wx_minor_version_number=7
1668 wx_release_number=0
1669 wx_subrelease_number=0
1670
1671 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1672 WX_VERSION=$WX_RELEASE.$wx_release_number
1673 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1674
1675 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1676
1677
1678
1679
1680 USE_UNIX=1
1681 USE_OS2=0
1682 USE_WIN32=0
1683 USE_DOS=0
1684 USE_BEOS=0
1685 USE_MAC=0
1686
1687 USE_AIX=
1688 USE_BSD= USE_DARWIN= USE_FREEBSD=
1689 USE_GNU= USE_HPUX=
1690 USE_LINUX=
1691 USE_NETBSD=
1692 USE_OPENBSD=
1693 USE_OSF= USE_SGI=
1694 USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1695 USE_ULTRIX=
1696 USE_UNIXWARE=
1697
1698 USE_ALPHA=
1699
1700 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1701
1702 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1703
1704 DEFAULT_wxUSE_COCOA=0
1705 DEFAULT_wxUSE_GTK=0
1706 DEFAULT_wxUSE_MAC=0
1707 DEFAULT_wxUSE_MGL=0
1708 DEFAULT_wxUSE_MICROWIN=0
1709 DEFAULT_wxUSE_MOTIF=0
1710 DEFAULT_wxUSE_MSW=0
1711 DEFAULT_wxUSE_PM=0
1712 DEFAULT_wxUSE_X11=0
1713
1714 DEFAULT_DEFAULT_wxUSE_COCOA=0
1715 DEFAULT_DEFAULT_wxUSE_GTK=0
1716 DEFAULT_DEFAULT_wxUSE_MAC=0
1717 DEFAULT_DEFAULT_wxUSE_MGL=0
1718 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1719 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1720 DEFAULT_DEFAULT_wxUSE_MSW=0
1721 DEFAULT_DEFAULT_wxUSE_PM=0
1722 DEFAULT_DEFAULT_wxUSE_X11=0
1723
1724 PROGRAM_EXT=
1725 SO_SUFFIX=so
1726 SAMPLES_RPATH_FLAG=
1727 SAMPLES_RPATH_POSTLINK=
1728
1729 DEFAULT_STD_FLAG=yes
1730
1731 case "${host}" in
1732 *-hp-hpux* )
1733 USE_HPUX=1
1734 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1735 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1736 SO_SUFFIX=sl
1737 cat >>confdefs.h <<\_ACEOF
1738 #define __HPUX__ 1
1739 _ACEOF
1740
1741
1742 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
1743 ;;
1744 *-*-linux* )
1745 USE_LINUX=1
1746 cat >>confdefs.h <<\_ACEOF
1747 #define __LINUX__ 1
1748 _ACEOF
1749
1750 TMP=`uname -m`
1751 if test "x$TMP" = "xalpha"; then
1752 USE_ALPHA=1
1753 cat >>confdefs.h <<\_ACEOF
1754 #define __ALPHA__ 1
1755 _ACEOF
1756
1757 fi
1758 DEFAULT_DEFAULT_wxUSE_GTK=1
1759 ;;
1760 *-*-gnu* | *-*-k*bsd*-gnu )
1761 USE_GNU=1
1762 TMP=`uname -m`
1763 if test "x$TMP" = "xalpha"; then
1764 USE_ALPHA=1
1765 cat >>confdefs.h <<\_ACEOF
1766 #define __ALPHA__ 1
1767 _ACEOF
1768
1769 fi
1770 DEFAULT_DEFAULT_wxUSE_GTK=1
1771 ;;
1772 *-*-irix5* | *-*-irix6* )
1773 USE_SGI=1
1774 USE_SVR4=1
1775 cat >>confdefs.h <<\_ACEOF
1776 #define __SGI__ 1
1777 _ACEOF
1778
1779 cat >>confdefs.h <<\_ACEOF
1780 #define __SVR4__ 1
1781 _ACEOF
1782
1783 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1784 ;;
1785 *-*-solaris2* )
1786 USE_SUN=1
1787 USE_SOLARIS=1
1788 USE_SVR4=1
1789 cat >>confdefs.h <<\_ACEOF
1790 #define __SUN__ 1
1791 _ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794 #define __SOLARIS__ 1
1795 _ACEOF
1796
1797 cat >>confdefs.h <<\_ACEOF
1798 #define __SVR4__ 1
1799 _ACEOF
1800
1801 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1802 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1803 ;;
1804 *-*-sunos4* )
1805 USE_SUN=1
1806 USE_SUNOS=1
1807 USE_BSD=1
1808 cat >>confdefs.h <<\_ACEOF
1809 #define __SUN__ 1
1810 _ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813 #define __SUNOS__ 1
1814 _ACEOF
1815
1816 cat >>confdefs.h <<\_ACEOF
1817 #define __BSD__ 1
1818 _ACEOF
1819
1820 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1821 ;;
1822 *-*-freebsd*)
1823 USE_BSD=1
1824 USE_FREEBSD=1
1825 cat >>confdefs.h <<\_ACEOF
1826 #define __FREEBSD__ 1
1827 _ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830 #define __BSD__ 1
1831 _ACEOF
1832
1833 DEFAULT_DEFAULT_wxUSE_GTK=1
1834 ;;
1835 *-*-openbsd*)
1836 USE_BSD=1
1837 USE_OPENBSD=1
1838 cat >>confdefs.h <<\_ACEOF
1839 #define __OPENBSD__ 1
1840 _ACEOF
1841
1842 cat >>confdefs.h <<\_ACEOF
1843 #define __BSD__ 1
1844 _ACEOF
1845
1846 DEFAULT_DEFAULT_wxUSE_GTK=1
1847 ;;
1848 *-*-netbsd*)
1849 USE_BSD=1
1850 USE_NETBSD=1
1851 cat >>confdefs.h <<\_ACEOF
1852 #define __NETBSD__ 1
1853 _ACEOF
1854
1855 cat >>confdefs.h <<\_ACEOF
1856 #define __BSD__ 1
1857 _ACEOF
1858
1859 DEFAULT_DEFAULT_wxUSE_GTK=1
1860 ;;
1861 *-*-osf* )
1862 USE_ALPHA=1
1863 USE_OSF=1
1864 cat >>confdefs.h <<\_ACEOF
1865 #define __ALPHA__ 1
1866 _ACEOF
1867
1868 cat >>confdefs.h <<\_ACEOF
1869 #define __OSF__ 1
1870 _ACEOF
1871
1872 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1873 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1874 ;;
1875 *-*-dgux5* )
1876 USE_ALPHA=1
1877 USE_SVR4=1
1878 cat >>confdefs.h <<\_ACEOF
1879 #define __ALPHA__ 1
1880 _ACEOF
1881
1882 cat >>confdefs.h <<\_ACEOF
1883 #define __SVR4__ 1
1884 _ACEOF
1885
1886 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1887 ;;
1888 *-*-sysv5* )
1889 USE_SYSV=1
1890 USE_SVR4=1
1891 cat >>confdefs.h <<\_ACEOF
1892 #define __SYSV__ 1
1893 _ACEOF
1894
1895 cat >>confdefs.h <<\_ACEOF
1896 #define __SVR4__ 1
1897 _ACEOF
1898
1899 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1900 ;;
1901 *-*-aix* )
1902 USE_AIX=1
1903 USE_SYSV=1
1904 USE_SVR4=1
1905 SO_SUFFIX=a
1906 cat >>confdefs.h <<\_ACEOF
1907 #define __AIX__ 1
1908 _ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911 #define __SYSV__ 1
1912 _ACEOF
1913
1914 cat >>confdefs.h <<\_ACEOF
1915 #define __SVR4__ 1
1916 _ACEOF
1917
1918 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1919 ;;
1920
1921 *-*-*UnixWare*)
1922 USE_SYSV=1
1923 USE_SVR4=1
1924 USE_UNIXWARE=1
1925 cat >>confdefs.h <<\_ACEOF
1926 #define __UNIXWARE__ 1
1927 _ACEOF
1928
1929 ;;
1930
1931 *-*-cygwin* | *-*-mingw32* )
1932 SO_SUFFIX=dll
1933 PROGRAM_EXT=".exe"
1934 DEFAULT_DEFAULT_wxUSE_MSW=1
1935 DEFAULT_STD_FLAG=no
1936 ;;
1937
1938 *-pc-msdosdjgpp )
1939 USE_UNIX=0
1940 USE_DOS=1
1941 cat >>confdefs.h <<\_ACEOF
1942 #define __DOS__ 1
1943 _ACEOF
1944
1945 PROGRAM_EXT=".exe"
1946 DEFAULT_DEFAULT_wxUSE_MGL=1
1947 ;;
1948
1949 *-pc-os2_emx | *-pc-os2-emx )
1950 cat >>confdefs.h <<\_ACEOF
1951 #define __EMX__ 1
1952 _ACEOF
1953
1954 USE_OS2=1
1955 cat >>confdefs.h <<\_ACEOF
1956 #define __OS2__ 1
1957 _ACEOF
1958
1959 PROGRAM_EXT=".exe"
1960 DEFAULT_DEFAULT_wxUSE_PM=1
1961 CXX=gcc
1962 LDFLAGS="$LDFLAGS -Zcrtdll"
1963 ac_executable_extensions=".exe"
1964 export ac_executable_extensions
1965 ac_save_IFS="$IFS"
1966 IFS='\\'
1967 ac_TEMP_PATH=
1968 for ac_dir in $PATH; do
1969 IFS=$ac_save_IFS
1970 if test -z "$ac_TEMP_PATH"; then
1971 ac_TEMP_PATH="$ac_dir"
1972 else
1973 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1974 fi
1975 done
1976 export PATH="$ac_TEMP_PATH"
1977 unset ac_TEMP_PATH
1978 DEFAULT_STD_FLAG=no
1979 ;;
1980
1981 *-*-darwin* )
1982 USE_BSD=1
1983 USE_DARWIN=1
1984 SO_SUFFIX=dylib
1985 cat >>confdefs.h <<\_ACEOF
1986 #define __BSD__ 1
1987 _ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990 #define __DARWIN__ 1
1991 _ACEOF
1992
1993 cat >>confdefs.h <<\_ACEOF
1994 #define TARGET_CARBON 1
1995 _ACEOF
1996
1997 DEFAULT_DEFAULT_wxUSE_MAC=1
1998 DEFAULT_STD_FLAG=no
1999 ;;
2000 powerpc-apple-macos* )
2001 USE_UNIX=0
2002 ac_cv_c_bigendian=yes
2003 SO_SUFFIX=shlib
2004 DEFAULT_DEFAULT_wxUSE_MAC=1
2005 DEFAULT_STD_FLAG=no
2006 ;;
2007
2008 *-*-beos* )
2009 USE_BEOS=1
2010 cat >>confdefs.h <<\_ACEOF
2011 #define __BEOS__ 1
2012 _ACEOF
2013
2014 ;;
2015
2016 *)
2017 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2018 echo "$as_me: error: unknown system type ${host}." >&2;}
2019 { (exit 1); exit 1; }; }
2020 esac
2021
2022
2023
2024
2025 wx_arg_cache_file="configarg.cache"
2026 echo "loading argument cache $wx_arg_cache_file"
2027 rm -f ${wx_arg_cache_file}.tmp
2028 touch ${wx_arg_cache_file}.tmp
2029 touch ${wx_arg_cache_file}
2030
2031
2032 DEBUG_CONFIGURE=0
2033 if test $DEBUG_CONFIGURE = 1; then
2034 DEFAULT_wxUSE_UNIVERSAL=no
2035 DEFAULT_wxUSE_STL=no
2036
2037 DEFAULT_wxUSE_NANOX=no
2038
2039 DEFAULT_wxUSE_THREADS=yes
2040
2041 DEFAULT_wxUSE_SHARED=yes
2042 DEFAULT_wxUSE_OPTIMISE=no
2043 DEFAULT_wxUSE_PROFILE=no
2044 DEFAULT_wxUSE_NO_DEPS=no
2045 DEFAULT_wxUSE_NO_RTTI=no
2046 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2047 DEFAULT_wxUSE_RPATH=yes
2048 DEFAULT_wxUSE_PERMISSIVE=no
2049 DEFAULT_wxUSE_DEBUG_FLAG=yes
2050 DEFAULT_wxUSE_DEBUG_INFO=yes
2051 DEFAULT_wxUSE_DEBUG_GDB=yes
2052 DEFAULT_wxUSE_MEM_TRACING=no
2053 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2054 DEFAULT_wxUSE_DMALLOC=no
2055 DEFAULT_wxUSE_APPLE_IEEE=no
2056
2057 DEFAULT_wxUSE_EXCEPTIONS=no
2058 DEFAULT_wxUSE_LOG=yes
2059 DEFAULT_wxUSE_LOGWINDOW=no
2060 DEFAULT_wxUSE_LOGGUI=no
2061 DEFAULT_wxUSE_LOGDIALOG=no
2062
2063 DEFAULT_wxUSE_GUI=yes
2064 DEFAULT_wxUSE_CONTROLS=no
2065
2066 DEFAULT_wxUSE_REGEX=no
2067 DEFAULT_wxUSE_XML=no
2068 DEFAULT_wxUSE_EXPAT=no
2069 DEFAULT_wxUSE_ZLIB=no
2070 DEFAULT_wxUSE_LIBPNG=no
2071 DEFAULT_wxUSE_LIBJPEG=no
2072 DEFAULT_wxUSE_LIBTIFF=no
2073 DEFAULT_wxUSE_LIBXPM=no
2074 DEFAULT_wxUSE_LIBMSPACK=no
2075 DEFAULT_wxUSE_LIBSDL=no
2076 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2077 DEFAULT_wxUSE_ODBC=no
2078 DEFAULT_wxUSE_OPENGL=no
2079
2080 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2081 DEFAULT_wxUSE_STACKWALKER=no
2082 DEFAULT_wxUSE_DEBUGREPORT=no
2083 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2084 DEFAULT_wxUSE_STD_IOSTREAM=no
2085 DEFAULT_wxUSE_STD_STRING=no
2086 DEFAULT_wxUSE_CMDLINE_PARSER=no
2087 DEFAULT_wxUSE_DATETIME=no
2088 DEFAULT_wxUSE_TIMER=no
2089 DEFAULT_wxUSE_STOPWATCH=no
2090 DEFAULT_wxUSE_FILE=no
2091 DEFAULT_wxUSE_FFILE=no
2092 DEFAULT_wxUSE_STDPATHS=no
2093 DEFAULT_wxUSE_TEXTBUFFER=no
2094 DEFAULT_wxUSE_TEXTFILE=no
2095 DEFAULT_wxUSE_SOUND=no
2096 DEFAULT_wxUSE_MEDIACTRL=no
2097 DEFAULT_wxUSE_INTL=no
2098 DEFAULT_wxUSE_CONFIG=no
2099 DEFAULT_wxUSE_FONTMAP=no
2100 DEFAULT_wxUSE_STREAMS=no
2101 DEFAULT_wxUSE_SOCKETS=no
2102 DEFAULT_wxUSE_OLE=no
2103 DEFAULT_wxUSE_DATAOBJ=no
2104 DEFAULT_wxUSE_DIALUP_MANAGER=no
2105 DEFAULT_wxUSE_JOYSTICK=no
2106 DEFAULT_wxUSE_DYNLIB_CLASS=no
2107 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2108 DEFAULT_wxUSE_LONGLONG=no
2109 DEFAULT_wxUSE_GEOMETRY=no
2110
2111 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2112 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2113 DEFAULT_wxUSE_POSTSCRIPT=no
2114
2115 DEFAULT_wxUSE_CLIPBOARD=no
2116 DEFAULT_wxUSE_TOOLTIPS=no
2117 DEFAULT_wxUSE_DRAG_AND_DROP=no
2118 DEFAULT_wxUSE_DRAGIMAGE=no
2119 DEFAULT_wxUSE_SPLINES=no
2120 DEFAULT_wxUSE_MOUSEWHEEL=no
2121
2122 DEFAULT_wxUSE_MDI=no
2123 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2124 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2125 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2126
2127 DEFAULT_wxUSE_RESOURCES=no
2128 DEFAULT_wxUSE_CONSTRAINTS=no
2129 DEFAULT_wxUSE_IPC=no
2130 DEFAULT_wxUSE_HELP=no
2131 DEFAULT_wxUSE_MS_HTML_HELP=no
2132 DEFAULT_wxUSE_WXHTML_HELP=no
2133 DEFAULT_wxUSE_TREELAYOUT=no
2134 DEFAULT_wxUSE_METAFILE=no
2135 DEFAULT_wxUSE_MIMETYPE=no
2136 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2137 DEFAULT_wxUSE_PROTOCOL=no
2138 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2139 DEFAULT_wxUSE_PROTOCOL_FTP=no
2140 DEFAULT_wxUSE_PROTOCOL_FILE=no
2141 DEFAULT_wxUSE_URL=no
2142
2143 DEFAULT_wxUSE_COMMONDLGS=no
2144 DEFAULT_wxUSE_CHOICEDLG=no
2145 DEFAULT_wxUSE_COLOURDLG=no
2146 DEFAULT_wxUSE_DIRDLG=no
2147 DEFAULT_wxUSE_FILEDLG=no
2148 DEFAULT_wxUSE_FINDREPLDLG=no
2149 DEFAULT_wxUSE_FONTDLG=no
2150 DEFAULT_wxUSE_MSGDLG=no
2151 DEFAULT_wxUSE_NUMBERDLG=no
2152 DEFAULT_wxUSE_TEXTDLG=no
2153 DEFAULT_wxUSE_SPLASH=no
2154 DEFAULT_wxUSE_STARTUP_TIPS=no
2155 DEFAULT_wxUSE_PROGRESSDLG=no
2156 DEFAULT_wxUSE_WIZARDDLG=no
2157
2158 DEFAULT_wxUSE_MENUS=no
2159 DEFAULT_wxUSE_MINIFRAME=no
2160 DEFAULT_wxUSE_HTML=no
2161 DEFAULT_wxUSE_XRC=no
2162 DEFAULT_wxUSE_WEBKIT=no
2163 DEFAULT_wxUSE_FILESYSTEM=no
2164 DEFAULT_wxUSE_FS_INET=no
2165 DEFAULT_wxUSE_FS_ZIP=no
2166 DEFAULT_wxUSE_BUSYINFO=no
2167 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2168 DEFAULT_wxUSE_ZIPSTREAM=no
2169 DEFAULT_wxUSE_VALIDATORS=no
2170
2171 DEFAULT_wxUSE_ACCEL=no
2172 DEFAULT_wxUSE_BUTTON=no
2173 DEFAULT_wxUSE_BMPBUTTON=no
2174 DEFAULT_wxUSE_CALCTRL=no
2175 DEFAULT_wxUSE_CARET=no
2176 DEFAULT_wxUSE_CHECKBOX=no
2177 DEFAULT_wxUSE_CHECKLST=no
2178 DEFAULT_wxUSE_CHOICE=no
2179 DEFAULT_wxUSE_CHOICEBOOK=no
2180 DEFAULT_wxUSE_COMBOBOX=no
2181 DEFAULT_wxUSE_DATEPICKCTRL=no
2182 DEFAULT_wxUSE_DISPLAY=no
2183 DEFAULT_wxUSE_GAUGE=no
2184 DEFAULT_wxUSE_GRID=no
2185 DEFAULT_wxUSE_IMAGLIST=no
2186 DEFAULT_wxUSE_LISTBOOK=no
2187 DEFAULT_wxUSE_LISTBOX=no
2188 DEFAULT_wxUSE_LISTCTRL=no
2189 DEFAULT_wxUSE_NOTEBOOK=no
2190 DEFAULT_wxUSE_RADIOBOX=no
2191 DEFAULT_wxUSE_RADIOBTN=no
2192 DEFAULT_wxUSE_SASH=no
2193 DEFAULT_wxUSE_SCROLLBAR=no
2194 DEFAULT_wxUSE_SLIDER=no
2195 DEFAULT_wxUSE_SPINBTN=no
2196 DEFAULT_wxUSE_SPINCTRL=no
2197 DEFAULT_wxUSE_SPLITTER=no
2198 DEFAULT_wxUSE_STATBMP=no
2199 DEFAULT_wxUSE_STATBOX=no
2200 DEFAULT_wxUSE_STATLINE=no
2201 DEFAULT_wxUSE_STATTEXT=no
2202 DEFAULT_wxUSE_STATUSBAR=yes
2203 DEFAULT_wxUSE_TABDIALOG=no
2204 DEFAULT_wxUSE_TEXTCTRL=no
2205 DEFAULT_wxUSE_TOGGLEBTN=no
2206 DEFAULT_wxUSE_TOOLBAR=no
2207 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2208 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2209 DEFAULT_wxUSE_TREEBOOK=no
2210 DEFAULT_wxUSE_TREECTRL=no
2211 DEFAULT_wxUSE_POPUPWIN=no
2212 DEFAULT_wxUSE_TIPWINDOW=no
2213
2214 DEFAULT_wxUSE_UNICODE=no
2215 DEFAULT_wxUSE_UNICODE_MSLU=no
2216 DEFAULT_wxUSE_WCSRTOMBS=no
2217
2218 DEFAULT_wxUSE_PALETTE=no
2219 DEFAULT_wxUSE_IMAGE=no
2220 DEFAULT_wxUSE_GIF=no
2221 DEFAULT_wxUSE_PCX=no
2222 DEFAULT_wxUSE_PNM=no
2223 DEFAULT_wxUSE_IFF=no
2224 DEFAULT_wxUSE_XPM=no
2225 DEFAULT_wxUSE_ICO_CUR=no
2226 DEFAULT_wxUSE_ACCESSIBILITY=no
2227
2228 DEFAULT_wxUSE_MONOLITHIC=no
2229 DEFAULT_wxUSE_PLUGINS=no
2230 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2231 else
2232 DEFAULT_wxUSE_UNIVERSAL=no
2233 DEFAULT_wxUSE_STL=no
2234
2235 DEFAULT_wxUSE_NANOX=no
2236
2237 DEFAULT_wxUSE_THREADS=yes
2238
2239 DEFAULT_wxUSE_SHARED=yes
2240 DEFAULT_wxUSE_OPTIMISE=yes
2241 DEFAULT_wxUSE_PROFILE=no
2242 DEFAULT_wxUSE_NO_DEPS=no
2243 DEFAULT_wxUSE_NO_RTTI=no
2244 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2245 DEFAULT_wxUSE_RPATH=yes
2246 DEFAULT_wxUSE_PERMISSIVE=no
2247 DEFAULT_wxUSE_DEBUG_FLAG=no
2248 DEFAULT_wxUSE_DEBUG_INFO=no
2249 DEFAULT_wxUSE_DEBUG_GDB=no
2250 DEFAULT_wxUSE_MEM_TRACING=no
2251 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2252 DEFAULT_wxUSE_DMALLOC=no
2253 DEFAULT_wxUSE_APPLE_IEEE=yes
2254
2255 DEFAULT_wxUSE_EXCEPTIONS=yes
2256 DEFAULT_wxUSE_LOG=yes
2257 DEFAULT_wxUSE_LOGWINDOW=yes
2258 DEFAULT_wxUSE_LOGGUI=yes
2259 DEFAULT_wxUSE_LOGDIALOG=yes
2260
2261 DEFAULT_wxUSE_GUI=yes
2262
2263 DEFAULT_wxUSE_REGEX=yes
2264 DEFAULT_wxUSE_XML=yes
2265 DEFAULT_wxUSE_EXPAT=yes
2266 DEFAULT_wxUSE_ZLIB=yes
2267 DEFAULT_wxUSE_LIBPNG=yes
2268 DEFAULT_wxUSE_LIBJPEG=yes
2269 DEFAULT_wxUSE_LIBTIFF=yes
2270 DEFAULT_wxUSE_LIBXPM=yes
2271 DEFAULT_wxUSE_LIBMSPACK=yes
2272 DEFAULT_wxUSE_LIBSDL=no
2273 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2274 DEFAULT_wxUSE_ODBC=no
2275 DEFAULT_wxUSE_OPENGL=no
2276
2277 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2278 DEFAULT_wxUSE_STACKWALKER=yes
2279 DEFAULT_wxUSE_DEBUGREPORT=yes
2280 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2281 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2282 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2283 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2284 DEFAULT_wxUSE_DATETIME=yes
2285 DEFAULT_wxUSE_TIMER=yes
2286 DEFAULT_wxUSE_STOPWATCH=yes
2287 DEFAULT_wxUSE_FILE=yes
2288 DEFAULT_wxUSE_FFILE=yes
2289 DEFAULT_wxUSE_STDPATHS=yes
2290 DEFAULT_wxUSE_TEXTBUFFER=yes
2291 DEFAULT_wxUSE_TEXTFILE=yes
2292 DEFAULT_wxUSE_SOUND=yes
2293 DEFAULT_wxUSE_MEDIACTRL=no
2294 DEFAULT_wxUSE_INTL=yes
2295 DEFAULT_wxUSE_CONFIG=yes
2296 DEFAULT_wxUSE_FONTMAP=yes
2297 DEFAULT_wxUSE_STREAMS=yes
2298 DEFAULT_wxUSE_SOCKETS=yes
2299 DEFAULT_wxUSE_OLE=yes
2300 DEFAULT_wxUSE_DATAOBJ=yes
2301 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2302 DEFAULT_wxUSE_JOYSTICK=yes
2303 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2304 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2305 DEFAULT_wxUSE_LONGLONG=yes
2306 DEFAULT_wxUSE_GEOMETRY=yes
2307
2308 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2309 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2310 DEFAULT_wxUSE_POSTSCRIPT=yes
2311
2312 DEFAULT_wxUSE_CLIPBOARD=yes
2313 DEFAULT_wxUSE_TOOLTIPS=yes
2314 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2315 DEFAULT_wxUSE_DRAGIMAGE=yes
2316 DEFAULT_wxUSE_SPLINES=yes
2317 DEFAULT_wxUSE_MOUSEWHEEL=yes
2318
2319 DEFAULT_wxUSE_MDI=yes
2320 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2321 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2322 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2323
2324 DEFAULT_wxUSE_RESOURCES=no
2325 DEFAULT_wxUSE_CONSTRAINTS=yes
2326 DEFAULT_wxUSE_IPC=yes
2327 DEFAULT_wxUSE_HELP=yes
2328 DEFAULT_wxUSE_MS_HTML_HELP=yes
2329 DEFAULT_wxUSE_WXHTML_HELP=yes
2330 DEFAULT_wxUSE_TREELAYOUT=yes
2331 DEFAULT_wxUSE_METAFILE=yes
2332 DEFAULT_wxUSE_MIMETYPE=yes
2333 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2334 DEFAULT_wxUSE_PROTOCOL=yes
2335 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2336 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2337 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2338 DEFAULT_wxUSE_URL=yes
2339
2340 DEFAULT_wxUSE_COMMONDLGS=yes
2341 DEFAULT_wxUSE_CHOICEDLG=yes
2342 DEFAULT_wxUSE_COLOURDLG=yes
2343 DEFAULT_wxUSE_DIRDLG=yes
2344 DEFAULT_wxUSE_FILEDLG=yes
2345 DEFAULT_wxUSE_FINDREPLDLG=yes
2346 DEFAULT_wxUSE_FONTDLG=yes
2347 DEFAULT_wxUSE_MSGDLG=yes
2348 DEFAULT_wxUSE_NUMBERDLG=yes
2349 DEFAULT_wxUSE_TEXTDLG=yes
2350 DEFAULT_wxUSE_SPLASH=yes
2351 DEFAULT_wxUSE_STARTUP_TIPS=yes
2352 DEFAULT_wxUSE_PROGRESSDLG=yes
2353 DEFAULT_wxUSE_WIZARDDLG=yes
2354
2355 DEFAULT_wxUSE_MENUS=yes
2356 DEFAULT_wxUSE_MINIFRAME=yes
2357 DEFAULT_wxUSE_HTML=yes
2358 DEFAULT_wxUSE_XRC=yes
2359 DEFAULT_wxUSE_WEBKIT=yes
2360 DEFAULT_wxUSE_FILESYSTEM=yes
2361 DEFAULT_wxUSE_FS_INET=yes
2362 DEFAULT_wxUSE_FS_ZIP=yes
2363 DEFAULT_wxUSE_BUSYINFO=yes
2364 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2365 DEFAULT_wxUSE_ZIPSTREAM=yes
2366 DEFAULT_wxUSE_VALIDATORS=yes
2367
2368 DEFAULT_wxUSE_ACCEL=yes
2369 DEFAULT_wxUSE_BUTTON=yes
2370 DEFAULT_wxUSE_BMPBUTTON=yes
2371 DEFAULT_wxUSE_CALCTRL=yes
2372 DEFAULT_wxUSE_CARET=yes
2373 DEFAULT_wxUSE_CHECKBOX=yes
2374 DEFAULT_wxUSE_CHECKLST=yes
2375 DEFAULT_wxUSE_CHOICE=yes
2376 DEFAULT_wxUSE_CHOICEBOOK=yes
2377 DEFAULT_wxUSE_COMBOBOX=yes
2378 DEFAULT_wxUSE_DATEPICKCTRL=yes
2379 DEFAULT_wxUSE_DISPLAY=yes
2380 DEFAULT_wxUSE_GAUGE=yes
2381 DEFAULT_wxUSE_GRID=yes
2382 DEFAULT_wxUSE_IMAGLIST=yes
2383 DEFAULT_wxUSE_LISTBOOK=yes
2384 DEFAULT_wxUSE_LISTBOX=yes
2385 DEFAULT_wxUSE_LISTCTRL=yes
2386 DEFAULT_wxUSE_NOTEBOOK=yes
2387 DEFAULT_wxUSE_RADIOBOX=yes
2388 DEFAULT_wxUSE_RADIOBTN=yes
2389 DEFAULT_wxUSE_SASH=yes
2390 DEFAULT_wxUSE_SCROLLBAR=yes
2391 DEFAULT_wxUSE_SLIDER=yes
2392 DEFAULT_wxUSE_SPINBTN=yes
2393 DEFAULT_wxUSE_SPINCTRL=yes
2394 DEFAULT_wxUSE_SPLITTER=yes
2395 DEFAULT_wxUSE_STATBMP=yes
2396 DEFAULT_wxUSE_STATBOX=yes
2397 DEFAULT_wxUSE_STATLINE=yes
2398 DEFAULT_wxUSE_STATTEXT=yes
2399 DEFAULT_wxUSE_STATUSBAR=yes
2400 DEFAULT_wxUSE_TABDIALOG=no
2401 DEFAULT_wxUSE_TEXTCTRL=yes
2402 DEFAULT_wxUSE_TOGGLEBTN=yes
2403 DEFAULT_wxUSE_TOOLBAR=yes
2404 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2405 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2406 DEFAULT_wxUSE_TREEBOOK=yes
2407 DEFAULT_wxUSE_TREECTRL=yes
2408 DEFAULT_wxUSE_POPUPWIN=yes
2409 DEFAULT_wxUSE_TIPWINDOW=yes
2410
2411 DEFAULT_wxUSE_UNICODE=no
2412 DEFAULT_wxUSE_UNICODE_MSLU=yes
2413 DEFAULT_wxUSE_WCSRTOMBS=no
2414
2415 DEFAULT_wxUSE_PALETTE=yes
2416 DEFAULT_wxUSE_IMAGE=yes
2417 DEFAULT_wxUSE_GIF=yes
2418 DEFAULT_wxUSE_PCX=yes
2419 DEFAULT_wxUSE_IFF=no
2420 DEFAULT_wxUSE_PNM=yes
2421 DEFAULT_wxUSE_XPM=yes
2422 DEFAULT_wxUSE_ICO_CUR=yes
2423 DEFAULT_wxUSE_ACCESSIBILITY=no
2424
2425 DEFAULT_wxUSE_MONOLITHIC=no
2426 DEFAULT_wxUSE_PLUGINS=no
2427 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2428
2429 DEFAULT_wxUSE_GTK2=yes
2430 fi
2431
2432
2433
2434
2435 for toolkit in `echo $ALL_TOOLKITS`; do
2436 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2437 if test "x$LINE" != "x" ; then
2438 has_toolkit_in_cache=1
2439 eval "DEFAULT_$LINE"
2440 eval "CACHE_$toolkit=1"
2441
2442 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2443 if test "x$LINE" != "x" ; then
2444 eval "DEFAULT_$LINE"
2445 fi
2446 fi
2447 done
2448
2449
2450
2451 enablestring=
2452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2453 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2454 no_cache=0
2455 # Check whether --enable-gui or --disable-gui was given.
2456 if test "${enable_gui+set}" = set; then
2457 enableval="$enable_gui"
2458
2459 if test "$enableval" = yes; then
2460 ac_cv_use_gui='wxUSE_GUI=yes'
2461 else
2462 ac_cv_use_gui='wxUSE_GUI=no'
2463 fi
2464
2465 else
2466
2467 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2468 if test "x$LINE" != x ; then
2469 eval "DEFAULT_$LINE"
2470 else
2471 no_cache=1
2472 fi
2473
2474 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2475
2476 fi;
2477
2478 eval "$ac_cv_use_gui"
2479 if test "$no_cache" != 1; then
2480 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2481 fi
2482
2483 if test "$wxUSE_GUI" = yes; then
2484 echo "$as_me:$LINENO: result: yes" >&5
2485 echo "${ECHO_T}yes" >&6
2486 else
2487 echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2489 fi
2490
2491
2492 enablestring=
2493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2494 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2495 no_cache=0
2496 # Check whether --enable-monolithic or --disable-monolithic was given.
2497 if test "${enable_monolithic+set}" = set; then
2498 enableval="$enable_monolithic"
2499
2500 if test "$enableval" = yes; then
2501 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2502 else
2503 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2504 fi
2505
2506 else
2507
2508 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2516
2517 fi;
2518
2519 eval "$ac_cv_use_monolithic"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_MONOLITHIC" = yes; then
2525 echo "$as_me:$LINENO: result: yes" >&5
2526 echo "${ECHO_T}yes" >&6
2527 else
2528 echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6
2530 fi
2531
2532
2533 enablestring=
2534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2535 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2536 no_cache=0
2537 # Check whether --enable-plugins or --disable-plugins was given.
2538 if test "${enable_plugins+set}" = set; then
2539 enableval="$enable_plugins"
2540
2541 if test "$enableval" = yes; then
2542 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2543 else
2544 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2545 fi
2546
2547 else
2548
2549 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2550 if test "x$LINE" != x ; then
2551 eval "DEFAULT_$LINE"
2552 else
2553 no_cache=1
2554 fi
2555
2556 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2557
2558 fi;
2559
2560 eval "$ac_cv_use_plugins"
2561 if test "$no_cache" != 1; then
2562 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2563 fi
2564
2565 if test "$wxUSE_PLUGINS" = yes; then
2566 echo "$as_me:$LINENO: result: yes" >&5
2567 echo "${ECHO_T}yes" >&6
2568 else
2569 echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6
2571 fi
2572
2573
2574 withstring=without
2575 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2576 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2577 no_cache=0
2578
2579 # Check whether --with-subdirs or --without-subdirs was given.
2580 if test "${with_subdirs+set}" = set; then
2581 withval="$with_subdirs"
2582
2583 if test "$withval" = yes; then
2584 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2585 else
2586 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2587 fi
2588
2589 else
2590
2591 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2592 if test "x$LINE" != x ; then
2593 eval "DEFAULT_$LINE"
2594 else
2595 no_cache=1
2596 fi
2597
2598 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2599
2600 fi;
2601
2602 eval "$ac_cv_use_subdirs"
2603 if test "$no_cache" != 1; then
2604 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2605 fi
2606
2607 if test "$wxWITH_SUBDIRS" = yes; then
2608 echo "$as_me:$LINENO: result: yes" >&5
2609 echo "${ECHO_T}yes" >&6
2610 else
2611 echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2613 fi
2614
2615
2616 if test "$wxUSE_GUI" = "yes"; then
2617
2618
2619 enablestring=
2620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2621 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2622 no_cache=0
2623 # Check whether --enable-universal or --disable-universal was given.
2624 if test "${enable_universal+set}" = set; then
2625 enableval="$enable_universal"
2626
2627 if test "$enableval" = yes; then
2628 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2629 else
2630 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2631 fi
2632
2633 else
2634
2635 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2636 if test "x$LINE" != x ; then
2637 eval "DEFAULT_$LINE"
2638 else
2639 no_cache=1
2640 fi
2641
2642 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2643
2644 fi;
2645
2646 eval "$ac_cv_use_universal"
2647 if test "$no_cache" != 1; then
2648 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2649 fi
2650
2651 if test "$wxUSE_UNIVERSAL" = yes; then
2652 echo "$as_me:$LINENO: result: yes" >&5
2653 echo "${ECHO_T}yes" >&6
2654 else
2655 echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2657 fi
2658
2659
2660 # Check whether --with-gtk or --without-gtk was given.
2661 if test "${with_gtk+set}" = set; then
2662 withval="$with_gtk"
2663 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2664 fi;
2665
2666 # Check whether --with-motif or --without-motif was given.
2667 if test "${with_motif+set}" = set; then
2668 withval="$with_motif"
2669 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2670 fi;
2671
2672 # Check whether --with-mac or --without-mac was given.
2673 if test "${with_mac+set}" = set; then
2674 withval="$with_mac"
2675 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2676 fi;
2677
2678 # Check whether --with-cocoa or --without-cocoa was given.
2679 if test "${with_cocoa+set}" = set; then
2680 withval="$with_cocoa"
2681 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2682 fi;
2683
2684 # Check whether --with-wine or --without-wine was given.
2685 if test "${with_wine+set}" = set; then
2686 withval="$with_wine"
2687 wxUSE_WINE="$withval" CACHE_WINE=1
2688 fi;
2689
2690 # Check whether --with-msw or --without-msw was given.
2691 if test "${with_msw+set}" = set; then
2692 withval="$with_msw"
2693 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2694 fi;
2695
2696 # Check whether --with-pm or --without-pm was given.
2697 if test "${with_pm+set}" = set; then
2698 withval="$with_pm"
2699 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2700 fi;
2701
2702 # Check whether --with-mgl or --without-mgl was given.
2703 if test "${with_mgl+set}" = set; then
2704 withval="$with_mgl"
2705 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2706 fi;
2707
2708 # Check whether --with-microwin or --without-microwin was given.
2709 if test "${with_microwin+set}" = set; then
2710 withval="$with_microwin"
2711 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2712 fi;
2713
2714 # Check whether --with-x11 or --without-x11 was given.
2715 if test "${with_x11+set}" = set; then
2716 withval="$with_x11"
2717 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2718 fi;
2719
2720 enablestring=
2721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2722 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2723 no_cache=0
2724 # Check whether --enable-nanox or --disable-nanox was given.
2725 if test "${enable_nanox+set}" = set; then
2726 enableval="$enable_nanox"
2727
2728 if test "$enableval" = yes; then
2729 ac_cv_use_nanox='wxUSE_NANOX=yes'
2730 else
2731 ac_cv_use_nanox='wxUSE_NANOX=no'
2732 fi
2733
2734 else
2735
2736 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2737 if test "x$LINE" != x ; then
2738 eval "DEFAULT_$LINE"
2739 else
2740 no_cache=1
2741 fi
2742
2743 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2744
2745 fi;
2746
2747 eval "$ac_cv_use_nanox"
2748 if test "$no_cache" != 1; then
2749 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2750 fi
2751
2752 if test "$wxUSE_NANOX" = yes; then
2753 echo "$as_me:$LINENO: result: yes" >&5
2754 echo "${ECHO_T}yes" >&6
2755 else
2756 echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2758 fi
2759
2760
2761 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2762 if test "${enable_gtk2+set}" = set; then
2763 enableval="$enable_gtk2"
2764 wxUSE_GTK2="$enableval"
2765 fi;
2766
2767 enablestring=
2768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2769 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2770 no_cache=0
2771 # Check whether --enable-gpe or --disable-gpe was given.
2772 if test "${enable_gpe+set}" = set; then
2773 enableval="$enable_gpe"
2774
2775 if test "$enableval" = yes; then
2776 ac_cv_use_gpe='wxUSE_GPE=yes'
2777 else
2778 ac_cv_use_gpe='wxUSE_GPE=no'
2779 fi
2780
2781 else
2782
2783 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2784 if test "x$LINE" != x ; then
2785 eval "DEFAULT_$LINE"
2786 else
2787 no_cache=1
2788 fi
2789
2790 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2791
2792 fi;
2793
2794 eval "$ac_cv_use_gpe"
2795 if test "$no_cache" != 1; then
2796 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2797 fi
2798
2799 if test "$wxUSE_GPE" = yes; then
2800 echo "$as_me:$LINENO: result: yes" >&5
2801 echo "${ECHO_T}yes" >&6
2802 else
2803 echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6
2805 fi
2806
2807
2808
2809 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2810 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2811 no_cache=0
2812
2813 # Check whether --with-libpng or --without-libpng was given.
2814 if test "${with_libpng+set}" = set; then
2815 withval="$with_libpng"
2816
2817 if test "$withval" = yes; then
2818 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2819 elif test "$withval" = no; then
2820 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2821 elif test "$withval" = sys; then
2822 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2823 elif test "$withval" = builtin; then
2824 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2825 else
2826 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2827 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2828 { (exit 1); exit 1; }; }
2829 fi
2830
2831 else
2832
2833 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2834 if test "x$LINE" != x ; then
2835 eval "DEFAULT_$LINE"
2836 else
2837 no_cache=1
2838 fi
2839
2840 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2841
2842 fi;
2843
2844 eval "$ac_cv_use_libpng"
2845 if test "$no_cache" != 1; then
2846 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2847 fi
2848
2849 if test "$wxUSE_LIBPNG" = yes; then
2850 echo "$as_me:$LINENO: result: yes" >&5
2851 echo "${ECHO_T}yes" >&6
2852 elif test "$wxUSE_LIBPNG" = no; then
2853 echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6
2855 elif test "$wxUSE_LIBPNG" = sys; then
2856 echo "$as_me:$LINENO: result: system version" >&5
2857 echo "${ECHO_T}system version" >&6
2858 elif test "$wxUSE_LIBPNG" = builtin; then
2859 echo "$as_me:$LINENO: result: builtin version" >&5
2860 echo "${ECHO_T}builtin version" >&6
2861 else
2862 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2863 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2864 { (exit 1); exit 1; }; }
2865 fi
2866
2867
2868 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2869 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2870 no_cache=0
2871
2872 # Check whether --with-libjpeg or --without-libjpeg was given.
2873 if test "${with_libjpeg+set}" = set; then
2874 withval="$with_libjpeg"
2875
2876 if test "$withval" = yes; then
2877 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2878 elif test "$withval" = no; then
2879 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2880 elif test "$withval" = sys; then
2881 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2882 elif test "$withval" = builtin; then
2883 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2884 else
2885 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2886 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2887 { (exit 1); exit 1; }; }
2888 fi
2889
2890 else
2891
2892 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2893 if test "x$LINE" != x ; then
2894 eval "DEFAULT_$LINE"
2895 else
2896 no_cache=1
2897 fi
2898
2899 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2900
2901 fi;
2902
2903 eval "$ac_cv_use_libjpeg"
2904 if test "$no_cache" != 1; then
2905 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2906 fi
2907
2908 if test "$wxUSE_LIBJPEG" = yes; then
2909 echo "$as_me:$LINENO: result: yes" >&5
2910 echo "${ECHO_T}yes" >&6
2911 elif test "$wxUSE_LIBJPEG" = no; then
2912 echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6
2914 elif test "$wxUSE_LIBJPEG" = sys; then
2915 echo "$as_me:$LINENO: result: system version" >&5
2916 echo "${ECHO_T}system version" >&6
2917 elif test "$wxUSE_LIBJPEG" = builtin; then
2918 echo "$as_me:$LINENO: result: builtin version" >&5
2919 echo "${ECHO_T}builtin version" >&6
2920 else
2921 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2922 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2923 { (exit 1); exit 1; }; }
2924 fi
2925
2926
2927 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2928 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2929 no_cache=0
2930
2931 # Check whether --with-libtiff or --without-libtiff was given.
2932 if test "${with_libtiff+set}" = set; then
2933 withval="$with_libtiff"
2934
2935 if test "$withval" = yes; then
2936 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2937 elif test "$withval" = no; then
2938 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2939 elif test "$withval" = sys; then
2940 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2941 elif test "$withval" = builtin; then
2942 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2943 else
2944 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2945 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2946 { (exit 1); exit 1; }; }
2947 fi
2948
2949 else
2950
2951 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2952 if test "x$LINE" != x ; then
2953 eval "DEFAULT_$LINE"
2954 else
2955 no_cache=1
2956 fi
2957
2958 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2959
2960 fi;
2961
2962 eval "$ac_cv_use_libtiff"
2963 if test "$no_cache" != 1; then
2964 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2965 fi
2966
2967 if test "$wxUSE_LIBTIFF" = yes; then
2968 echo "$as_me:$LINENO: result: yes" >&5
2969 echo "${ECHO_T}yes" >&6
2970 elif test "$wxUSE_LIBTIFF" = no; then
2971 echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2973 elif test "$wxUSE_LIBTIFF" = sys; then
2974 echo "$as_me:$LINENO: result: system version" >&5
2975 echo "${ECHO_T}system version" >&6
2976 elif test "$wxUSE_LIBTIFF" = builtin; then
2977 echo "$as_me:$LINENO: result: builtin version" >&5
2978 echo "${ECHO_T}builtin version" >&6
2979 else
2980 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2981 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2982 { (exit 1); exit 1; }; }
2983 fi
2984
2985
2986 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2987 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2988 no_cache=0
2989
2990 # Check whether --with-libxpm or --without-libxpm was given.
2991 if test "${with_libxpm+set}" = set; then
2992 withval="$with_libxpm"
2993
2994 if test "$withval" = yes; then
2995 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2996 elif test "$withval" = no; then
2997 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2998 elif test "$withval" = sys; then
2999 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3000 elif test "$withval" = builtin; then
3001 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3002 else
3003 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3004 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3005 { (exit 1); exit 1; }; }
3006 fi
3007
3008 else
3009
3010 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3018
3019 fi;
3020
3021 eval "$ac_cv_use_libxpm"
3022 if test "$no_cache" != 1; then
3023 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3024 fi
3025
3026 if test "$wxUSE_LIBXPM" = yes; then
3027 echo "$as_me:$LINENO: result: yes" >&5
3028 echo "${ECHO_T}yes" >&6
3029 elif test "$wxUSE_LIBXPM" = no; then
3030 echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6
3032 elif test "$wxUSE_LIBXPM" = sys; then
3033 echo "$as_me:$LINENO: result: system version" >&5
3034 echo "${ECHO_T}system version" >&6
3035 elif test "$wxUSE_LIBXPM" = builtin; then
3036 echo "$as_me:$LINENO: result: builtin version" >&5
3037 echo "${ECHO_T}builtin version" >&6
3038 else
3039 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3040 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3041 { (exit 1); exit 1; }; }
3042 fi
3043
3044
3045 withstring=
3046 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3047 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3048 no_cache=0
3049
3050 # Check whether --with-libmspack or --without-libmspack was given.
3051 if test "${with_libmspack+set}" = set; then
3052 withval="$with_libmspack"
3053
3054 if test "$withval" = yes; then
3055 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3056 else
3057 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3058 fi
3059
3060 else
3061
3062 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3063 if test "x$LINE" != x ; then
3064 eval "DEFAULT_$LINE"
3065 else
3066 no_cache=1
3067 fi
3068
3069 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3070
3071 fi;
3072
3073 eval "$ac_cv_use_libmspack"
3074 if test "$no_cache" != 1; then
3075 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3076 fi
3077
3078 if test "$wxUSE_LIBMSPACK" = yes; then
3079 echo "$as_me:$LINENO: result: yes" >&5
3080 echo "${ECHO_T}yes" >&6
3081 else
3082 echo "$as_me:$LINENO: result: no" >&5
3083 echo "${ECHO_T}no" >&6
3084 fi
3085
3086
3087 withstring=
3088 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3089 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3090 no_cache=0
3091
3092 # Check whether --with-sdl or --without-sdl was given.
3093 if test "${with_sdl+set}" = set; then
3094 withval="$with_sdl"
3095
3096 if test "$withval" = yes; then
3097 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3098 else
3099 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3100 fi
3101
3102 else
3103
3104 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3105 if test "x$LINE" != x ; then
3106 eval "DEFAULT_$LINE"
3107 else
3108 no_cache=1
3109 fi
3110
3111 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3112
3113 fi;
3114
3115 eval "$ac_cv_use_sdl"
3116 if test "$no_cache" != 1; then
3117 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3118 fi
3119
3120 if test "$wxUSE_LIBSDL" = yes; then
3121 echo "$as_me:$LINENO: result: yes" >&5
3122 echo "${ECHO_T}yes" >&6
3123 else
3124 echo "$as_me:$LINENO: result: no" >&5
3125 echo "${ECHO_T}no" >&6
3126 fi
3127
3128
3129 withstring=
3130 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3131 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3132 no_cache=0
3133
3134 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3135 if test "${with_gnomeprint+set}" = set; then
3136 withval="$with_gnomeprint"
3137
3138 if test "$withval" = yes; then
3139 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3140 else
3141 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3142 fi
3143
3144 else
3145
3146 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3147 if test "x$LINE" != x ; then
3148 eval "DEFAULT_$LINE"
3149 else
3150 no_cache=1
3151 fi
3152
3153 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3154
3155 fi;
3156
3157 eval "$ac_cv_use_gnomeprint"
3158 if test "$no_cache" != 1; then
3159 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3160 fi
3161
3162 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3163 echo "$as_me:$LINENO: result: yes" >&5
3164 echo "${ECHO_T}yes" >&6
3165 else
3166 echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170
3171 withstring=
3172 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3173 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3174 no_cache=0
3175
3176 # Check whether --with-opengl or --without-opengl was given.
3177 if test "${with_opengl+set}" = set; then
3178 withval="$with_opengl"
3179
3180 if test "$withval" = yes; then
3181 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3182 else
3183 ac_cv_use_opengl='wxUSE_OPENGL=no'
3184 fi
3185
3186 else
3187
3188 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3189 if test "x$LINE" != x ; then
3190 eval "DEFAULT_$LINE"
3191 else
3192 no_cache=1
3193 fi
3194
3195 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3196
3197 fi;
3198
3199 eval "$ac_cv_use_opengl"
3200 if test "$no_cache" != 1; then
3201 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3202 fi
3203
3204 if test "$wxUSE_OPENGL" = yes; then
3205 echo "$as_me:$LINENO: result: yes" >&5
3206 echo "${ECHO_T}yes" >&6
3207 else
3208 echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3210 fi
3211
3212
3213 fi
3214
3215
3216 withstring=
3217 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3218 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3219 no_cache=0
3220
3221 # Check whether --with-dmalloc or --without-dmalloc was given.
3222 if test "${with_dmalloc+set}" = set; then
3223 withval="$with_dmalloc"
3224
3225 if test "$withval" = yes; then
3226 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3227 else
3228 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3229 fi
3230
3231 else
3232
3233 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3234 if test "x$LINE" != x ; then
3235 eval "DEFAULT_$LINE"
3236 else
3237 no_cache=1
3238 fi
3239
3240 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3241
3242 fi;
3243
3244 eval "$ac_cv_use_dmalloc"
3245 if test "$no_cache" != 1; then
3246 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3247 fi
3248
3249 if test "$wxUSE_DMALLOC" = yes; then
3250 echo "$as_me:$LINENO: result: yes" >&5
3251 echo "${ECHO_T}yes" >&6
3252 else
3253 echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3255 fi
3256
3257
3258 echo "$as_me:$LINENO: checking for --with-regex" >&5
3259 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3260 no_cache=0
3261
3262 # Check whether --with-regex or --without-regex was given.
3263 if test "${with_regex+set}" = set; then
3264 withval="$with_regex"
3265
3266 if test "$withval" = yes; then
3267 ac_cv_use_regex='wxUSE_REGEX=yes'
3268 elif test "$withval" = no; then
3269 ac_cv_use_regex='wxUSE_REGEX=no'
3270 elif test "$withval" = sys; then
3271 ac_cv_use_regex='wxUSE_REGEX=sys'
3272 elif test "$withval" = builtin; then
3273 ac_cv_use_regex='wxUSE_REGEX=builtin'
3274 else
3275 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3276 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3277 { (exit 1); exit 1; }; }
3278 fi
3279
3280 else
3281
3282 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3283 if test "x$LINE" != x ; then
3284 eval "DEFAULT_$LINE"
3285 else
3286 no_cache=1
3287 fi
3288
3289 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3290
3291 fi;
3292
3293 eval "$ac_cv_use_regex"
3294 if test "$no_cache" != 1; then
3295 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3296 fi
3297
3298 if test "$wxUSE_REGEX" = yes; then
3299 echo "$as_me:$LINENO: result: yes" >&5
3300 echo "${ECHO_T}yes" >&6
3301 elif test "$wxUSE_REGEX" = no; then
3302 echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3304 elif test "$wxUSE_REGEX" = sys; then
3305 echo "$as_me:$LINENO: result: system version" >&5
3306 echo "${ECHO_T}system version" >&6
3307 elif test "$wxUSE_REGEX" = builtin; then
3308 echo "$as_me:$LINENO: result: builtin version" >&5
3309 echo "${ECHO_T}builtin version" >&6
3310 else
3311 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3312 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3313 { (exit 1); exit 1; }; }
3314 fi
3315
3316
3317 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3318 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3319 no_cache=0
3320
3321 # Check whether --with-zlib or --without-zlib was given.
3322 if test "${with_zlib+set}" = set; then
3323 withval="$with_zlib"
3324
3325 if test "$withval" = yes; then
3326 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3327 elif test "$withval" = no; then
3328 ac_cv_use_zlib='wxUSE_ZLIB=no'
3329 elif test "$withval" = sys; then
3330 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3331 elif test "$withval" = builtin; then
3332 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3333 else
3334 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3335 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3336 { (exit 1); exit 1; }; }
3337 fi
3338
3339 else
3340
3341 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3342 if test "x$LINE" != x ; then
3343 eval "DEFAULT_$LINE"
3344 else
3345 no_cache=1
3346 fi
3347
3348 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3349
3350 fi;
3351
3352 eval "$ac_cv_use_zlib"
3353 if test "$no_cache" != 1; then
3354 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3355 fi
3356
3357 if test "$wxUSE_ZLIB" = yes; then
3358 echo "$as_me:$LINENO: result: yes" >&5
3359 echo "${ECHO_T}yes" >&6
3360 elif test "$wxUSE_ZLIB" = no; then
3361 echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3363 elif test "$wxUSE_ZLIB" = sys; then
3364 echo "$as_me:$LINENO: result: system version" >&5
3365 echo "${ECHO_T}system version" >&6
3366 elif test "$wxUSE_ZLIB" = builtin; then
3367 echo "$as_me:$LINENO: result: builtin version" >&5
3368 echo "${ECHO_T}builtin version" >&6
3369 else
3370 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3371 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3372 { (exit 1); exit 1; }; }
3373 fi
3374
3375
3376 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3377 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3378 no_cache=0
3379
3380 # Check whether --with-odbc or --without-odbc was given.
3381 if test "${with_odbc+set}" = set; then
3382 withval="$with_odbc"
3383
3384 if test "$withval" = yes; then
3385 ac_cv_use_odbc='wxUSE_ODBC=yes'
3386 elif test "$withval" = no; then
3387 ac_cv_use_odbc='wxUSE_ODBC=no'
3388 elif test "$withval" = sys; then
3389 ac_cv_use_odbc='wxUSE_ODBC=sys'
3390 elif test "$withval" = builtin; then
3391 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3392 else
3393 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3394 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3395 { (exit 1); exit 1; }; }
3396 fi
3397
3398 else
3399
3400 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3401 if test "x$LINE" != x ; then
3402 eval "DEFAULT_$LINE"
3403 else
3404 no_cache=1
3405 fi
3406
3407 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3408
3409 fi;
3410
3411 eval "$ac_cv_use_odbc"
3412 if test "$no_cache" != 1; then
3413 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3414 fi
3415
3416 if test "$wxUSE_ODBC" = yes; then
3417 echo "$as_me:$LINENO: result: yes" >&5
3418 echo "${ECHO_T}yes" >&6
3419 elif test "$wxUSE_ODBC" = no; then
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 elif test "$wxUSE_ODBC" = sys; then
3423 echo "$as_me:$LINENO: result: system version" >&5
3424 echo "${ECHO_T}system version" >&6
3425 elif test "$wxUSE_ODBC" = builtin; then
3426 echo "$as_me:$LINENO: result: builtin version" >&5
3427 echo "${ECHO_T}builtin version" >&6
3428 else
3429 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3430 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3431 { (exit 1); exit 1; }; }
3432 fi
3433
3434
3435 echo "$as_me:$LINENO: checking for --with-expat" >&5
3436 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3437 no_cache=0
3438
3439 # Check whether --with-expat or --without-expat was given.
3440 if test "${with_expat+set}" = set; then
3441 withval="$with_expat"
3442
3443 if test "$withval" = yes; then
3444 ac_cv_use_expat='wxUSE_EXPAT=yes'
3445 elif test "$withval" = no; then
3446 ac_cv_use_expat='wxUSE_EXPAT=no'
3447 elif test "$withval" = sys; then
3448 ac_cv_use_expat='wxUSE_EXPAT=sys'
3449 elif test "$withval" = builtin; then
3450 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3451 else
3452 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3453 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3454 { (exit 1); exit 1; }; }
3455 fi
3456
3457 else
3458
3459 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3467
3468 fi;
3469
3470 eval "$ac_cv_use_expat"
3471 if test "$no_cache" != 1; then
3472 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3473 fi
3474
3475 if test "$wxUSE_EXPAT" = yes; then
3476 echo "$as_me:$LINENO: result: yes" >&5
3477 echo "${ECHO_T}yes" >&6
3478 elif test "$wxUSE_EXPAT" = no; then
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3481 elif test "$wxUSE_EXPAT" = sys; then
3482 echo "$as_me:$LINENO: result: system version" >&5
3483 echo "${ECHO_T}system version" >&6
3484 elif test "$wxUSE_EXPAT" = builtin; then
3485 echo "$as_me:$LINENO: result: builtin version" >&5
3486 echo "${ECHO_T}builtin version" >&6
3487 else
3488 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3489 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3490 { (exit 1); exit 1; }; }
3491 fi
3492
3493
3494
3495
3496 enablestring=
3497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3498 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3499 no_cache=0
3500 # Check whether --enable-shared or --disable-shared was given.
3501 if test "${enable_shared+set}" = set; then
3502 enableval="$enable_shared"
3503
3504 if test "$enableval" = yes; then
3505 ac_cv_use_shared='wxUSE_SHARED=yes'
3506 else
3507 ac_cv_use_shared='wxUSE_SHARED=no'
3508 fi
3509
3510 else
3511
3512 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3513 if test "x$LINE" != x ; then
3514 eval "DEFAULT_$LINE"
3515 else
3516 no_cache=1
3517 fi
3518
3519 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3520
3521 fi;
3522
3523 eval "$ac_cv_use_shared"
3524 if test "$no_cache" != 1; then
3525 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3526 fi
3527
3528 if test "$wxUSE_SHARED" = yes; then
3529 echo "$as_me:$LINENO: result: yes" >&5
3530 echo "${ECHO_T}yes" >&6
3531 else
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3534 fi
3535
3536
3537 enablestring=
3538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3539 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3540 no_cache=0
3541 # Check whether --enable-optimise or --disable-optimise was given.
3542 if test "${enable_optimise+set}" = set; then
3543 enableval="$enable_optimise"
3544
3545 if test "$enableval" = yes; then
3546 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3547 else
3548 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3549 fi
3550
3551 else
3552
3553 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3554 if test "x$LINE" != x ; then
3555 eval "DEFAULT_$LINE"
3556 else
3557 no_cache=1
3558 fi
3559
3560 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3561
3562 fi;
3563
3564 eval "$ac_cv_use_optimise"
3565 if test "$no_cache" != 1; then
3566 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3567 fi
3568
3569 if test "$wxUSE_OPTIMISE" = yes; then
3570 echo "$as_me:$LINENO: result: yes" >&5
3571 echo "${ECHO_T}yes" >&6
3572 else
3573 echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6
3575 fi
3576
3577
3578 enablestring=
3579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3580 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3581 no_cache=0
3582 # Check whether --enable-debug or --disable-debug was given.
3583 if test "${enable_debug+set}" = set; then
3584 enableval="$enable_debug"
3585
3586 if test "$enableval" = yes; then
3587 ac_cv_use_debug='wxUSE_DEBUG=yes'
3588 else
3589 ac_cv_use_debug='wxUSE_DEBUG=no'
3590 fi
3591
3592 else
3593
3594 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3595 if test "x$LINE" != x ; then
3596 eval "DEFAULT_$LINE"
3597 else
3598 no_cache=1
3599 fi
3600
3601 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3602
3603 fi;
3604
3605 eval "$ac_cv_use_debug"
3606 if test "$no_cache" != 1; then
3607 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3608 fi
3609
3610 if test "$wxUSE_DEBUG" = yes; then
3611 echo "$as_me:$LINENO: result: yes" >&5
3612 echo "${ECHO_T}yes" >&6
3613 else
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618
3619 enablestring=
3620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3621 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3622 no_cache=0
3623 # Check whether --enable-stl or --disable-stl was given.
3624 if test "${enable_stl+set}" = set; then
3625 enableval="$enable_stl"
3626
3627 if test "$enableval" = yes; then
3628 ac_cv_use_stl='wxUSE_STL=yes'
3629 else
3630 ac_cv_use_stl='wxUSE_STL=no'
3631 fi
3632
3633 else
3634
3635 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3636 if test "x$LINE" != x ; then
3637 eval "DEFAULT_$LINE"
3638 else
3639 no_cache=1
3640 fi
3641
3642 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3643
3644 fi;
3645
3646 eval "$ac_cv_use_stl"
3647 if test "$no_cache" != 1; then
3648 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3649 fi
3650
3651 if test "$wxUSE_STL" = yes; then
3652 echo "$as_me:$LINENO: result: yes" >&5
3653 echo "${ECHO_T}yes" >&6
3654 else
3655 echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6
3657 fi
3658
3659 if test "$USE_OS2" = "1"; then
3660 DEFAULT_wxUSE_OMF=no
3661
3662 enablestring=
3663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3664 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3665 no_cache=0
3666 # Check whether --enable-omf or --disable-omf was given.
3667 if test "${enable_omf+set}" = set; then
3668 enableval="$enable_omf"
3669
3670 if test "$enableval" = yes; then
3671 ac_cv_use_omf='wxUSE_OMF=yes'
3672 else
3673 ac_cv_use_omf='wxUSE_OMF=no'
3674 fi
3675
3676 else
3677
3678 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3686
3687 fi;
3688
3689 eval "$ac_cv_use_omf"
3690 if test "$no_cache" != 1; then
3691 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3692 fi
3693
3694 if test "$wxUSE_OMF" = yes; then
3695 echo "$as_me:$LINENO: result: yes" >&5
3696 echo "${ECHO_T}yes" >&6
3697 else
3698 echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6
3700 fi
3701
3702 fi
3703
3704 if test "$wxUSE_DEBUG" = "yes"; then
3705 DEFAULT_wxUSE_DEBUG_FLAG=yes
3706 DEFAULT_wxUSE_DEBUG_INFO=yes
3707 BUILD=debug
3708 elif test "$wxUSE_DEBUG" = "no"; then
3709 DEFAULT_wxUSE_DEBUG_FLAG=no
3710 DEFAULT_wxUSE_DEBUG_INFO=no
3711 BUILD=release
3712 fi
3713
3714
3715 enablestring=
3716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3717 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3718 no_cache=0
3719 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3720 if test "${enable_debug_flag+set}" = set; then
3721 enableval="$enable_debug_flag"
3722
3723 if test "$enableval" = yes; then
3724 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3725 else
3726 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3727 fi
3728
3729 else
3730
3731 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3732 if test "x$LINE" != x ; then
3733 eval "DEFAULT_$LINE"
3734 else
3735 no_cache=1
3736 fi
3737
3738 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3739
3740 fi;
3741
3742 eval "$ac_cv_use_debug_flag"
3743 if test "$no_cache" != 1; then
3744 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3745 fi
3746
3747 if test "$wxUSE_DEBUG_FLAG" = yes; then
3748 echo "$as_me:$LINENO: result: yes" >&5
3749 echo "${ECHO_T}yes" >&6
3750 else
3751 echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6
3753 fi
3754
3755
3756 enablestring=
3757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3758 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3759 no_cache=0
3760 # Check whether --enable-debug_info or --disable-debug_info was given.
3761 if test "${enable_debug_info+set}" = set; then
3762 enableval="$enable_debug_info"
3763
3764 if test "$enableval" = yes; then
3765 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3766 else
3767 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3768 fi
3769
3770 else
3771
3772 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3773 if test "x$LINE" != x ; then
3774 eval "DEFAULT_$LINE"
3775 else
3776 no_cache=1
3777 fi
3778
3779 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3780
3781 fi;
3782
3783 eval "$ac_cv_use_debug_info"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_DEBUG_INFO" = yes; then
3789 echo "$as_me:$LINENO: result: yes" >&5
3790 echo "${ECHO_T}yes" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3794 fi
3795
3796
3797 enablestring=
3798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3799 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3800 no_cache=0
3801 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3802 if test "${enable_debug_gdb+set}" = set; then
3803 enableval="$enable_debug_gdb"
3804
3805 if test "$enableval" = yes; then
3806 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3807 else
3808 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3809 fi
3810
3811 else
3812
3813 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3814 if test "x$LINE" != x ; then
3815 eval "DEFAULT_$LINE"
3816 else
3817 no_cache=1
3818 fi
3819
3820 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3821
3822 fi;
3823
3824 eval "$ac_cv_use_debug_gdb"
3825 if test "$no_cache" != 1; then
3826 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3827 fi
3828
3829 if test "$wxUSE_DEBUG_GDB" = yes; then
3830 echo "$as_me:$LINENO: result: yes" >&5
3831 echo "${ECHO_T}yes" >&6
3832 else
3833 echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6
3835 fi
3836
3837
3838 enablestring=
3839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3840 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3841 no_cache=0
3842 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3843 if test "${enable_debug_cntxt+set}" = set; then
3844 enableval="$enable_debug_cntxt"
3845
3846 if test "$enableval" = yes; then
3847 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3848 else
3849 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3850 fi
3851
3852 else
3853
3854 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3855 if test "x$LINE" != x ; then
3856 eval "DEFAULT_$LINE"
3857 else
3858 no_cache=1
3859 fi
3860
3861 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3862
3863 fi;
3864
3865 eval "$ac_cv_use_debug_cntxt"
3866 if test "$no_cache" != 1; then
3867 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3868 fi
3869
3870 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3871 echo "$as_me:$LINENO: result: yes" >&5
3872 echo "${ECHO_T}yes" >&6
3873 else
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3876 fi
3877
3878
3879 enablestring=
3880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3881 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3882 no_cache=0
3883 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3884 if test "${enable_mem_tracing+set}" = set; then
3885 enableval="$enable_mem_tracing"
3886
3887 if test "$enableval" = yes; then
3888 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3889 else
3890 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3891 fi
3892
3893 else
3894
3895 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3896 if test "x$LINE" != x ; then
3897 eval "DEFAULT_$LINE"
3898 else
3899 no_cache=1
3900 fi
3901
3902 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3903
3904 fi;
3905
3906 eval "$ac_cv_use_mem_tracing"
3907 if test "$no_cache" != 1; then
3908 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3909 fi
3910
3911 if test "$wxUSE_MEM_TRACING" = yes; then
3912 echo "$as_me:$LINENO: result: yes" >&5
3913 echo "${ECHO_T}yes" >&6
3914 else
3915 echo "$as_me:$LINENO: result: no" >&5
3916 echo "${ECHO_T}no" >&6
3917 fi
3918
3919
3920 enablestring=
3921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3922 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3923 no_cache=0
3924 # Check whether --enable-profile or --disable-profile was given.
3925 if test "${enable_profile+set}" = set; then
3926 enableval="$enable_profile"
3927
3928 if test "$enableval" = yes; then
3929 ac_cv_use_profile='wxUSE_PROFILE=yes'
3930 else
3931 ac_cv_use_profile='wxUSE_PROFILE=no'
3932 fi
3933
3934 else
3935
3936 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3937 if test "x$LINE" != x ; then
3938 eval "DEFAULT_$LINE"
3939 else
3940 no_cache=1
3941 fi
3942
3943 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3944
3945 fi;
3946
3947 eval "$ac_cv_use_profile"
3948 if test "$no_cache" != 1; then
3949 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3950 fi
3951
3952 if test "$wxUSE_PROFILE" = yes; then
3953 echo "$as_me:$LINENO: result: yes" >&5
3954 echo "${ECHO_T}yes" >&6
3955 else
3956 echo "$as_me:$LINENO: result: no" >&5
3957 echo "${ECHO_T}no" >&6
3958 fi
3959
3960
3961 enablestring=
3962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3963 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3964 no_cache=0
3965 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3966 if test "${enable_no_rtti+set}" = set; then
3967 enableval="$enable_no_rtti"
3968
3969 if test "$enableval" = yes; then
3970 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3971 else
3972 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3973 fi
3974
3975 else
3976
3977 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3978 if test "x$LINE" != x ; then
3979 eval "DEFAULT_$LINE"
3980 else
3981 no_cache=1
3982 fi
3983
3984 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3985
3986 fi;
3987
3988 eval "$ac_cv_use_no_rtti"
3989 if test "$no_cache" != 1; then
3990 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3991 fi
3992
3993 if test "$wxUSE_NO_RTTI" = yes; then
3994 echo "$as_me:$LINENO: result: yes" >&5
3995 echo "${ECHO_T}yes" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999 fi
4000
4001
4002 enablestring=
4003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4004 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4005 no_cache=0
4006 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4007 if test "${enable_no_exceptions+set}" = set; then
4008 enableval="$enable_no_exceptions"
4009
4010 if test "$enableval" = yes; then
4011 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4012 else
4013 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4014 fi
4015
4016 else
4017
4018 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4019 if test "x$LINE" != x ; then
4020 eval "DEFAULT_$LINE"
4021 else
4022 no_cache=1
4023 fi
4024
4025 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4026
4027 fi;
4028
4029 eval "$ac_cv_use_no_exceptions"
4030 if test "$no_cache" != 1; then
4031 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4032 fi
4033
4034 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4035 echo "$as_me:$LINENO: result: yes" >&5
4036 echo "${ECHO_T}yes" >&6
4037 else
4038 echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4040 fi
4041
4042
4043 enablestring=
4044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4045 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4046 no_cache=0
4047 # Check whether --enable-permissive or --disable-permissive was given.
4048 if test "${enable_permissive+set}" = set; then
4049 enableval="$enable_permissive"
4050
4051 if test "$enableval" = yes; then
4052 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4053 else
4054 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4055 fi
4056
4057 else
4058
4059 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4060 if test "x$LINE" != x ; then
4061 eval "DEFAULT_$LINE"
4062 else
4063 no_cache=1
4064 fi
4065
4066 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4067
4068 fi;
4069
4070 eval "$ac_cv_use_permissive"
4071 if test "$no_cache" != 1; then
4072 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4073 fi
4074
4075 if test "$wxUSE_PERMISSIVE" = yes; then
4076 echo "$as_me:$LINENO: result: yes" >&5
4077 echo "${ECHO_T}yes" >&6
4078 else
4079 echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081 fi
4082
4083
4084 enablestring=
4085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4086 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4087 no_cache=0
4088 # Check whether --enable-no_deps or --disable-no_deps was given.
4089 if test "${enable_no_deps+set}" = set; then
4090 enableval="$enable_no_deps"
4091
4092 if test "$enableval" = yes; then
4093 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4094 else
4095 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4096 fi
4097
4098 else
4099
4100 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4101 if test "x$LINE" != x ; then
4102 eval "DEFAULT_$LINE"
4103 else
4104 no_cache=1
4105 fi
4106
4107 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4108
4109 fi;
4110
4111 eval "$ac_cv_use_no_deps"
4112 if test "$no_cache" != 1; then
4113 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4114 fi
4115
4116 if test "$wxUSE_NO_DEPS" = yes; then
4117 echo "$as_me:$LINENO: result: yes" >&5
4118 echo "${ECHO_T}yes" >&6
4119 else
4120 echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6
4122 fi
4123
4124
4125
4126 enablestring=enable
4127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4128 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4129 no_cache=0
4130 # Check whether --enable-compat24 or --disable-compat24 was given.
4131 if test "${enable_compat24+set}" = set; then
4132 enableval="$enable_compat24"
4133
4134 if test "$enableval" = yes; then
4135 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4136 else
4137 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4138 fi
4139
4140 else
4141
4142 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4143 if test "x$LINE" != x ; then
4144 eval "DEFAULT_$LINE"
4145 else
4146 no_cache=1
4147 fi
4148
4149 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4150
4151 fi;
4152
4153 eval "$ac_cv_use_compat24"
4154 if test "$no_cache" != 1; then
4155 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4156 fi
4157
4158 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4159 echo "$as_me:$LINENO: result: yes" >&5
4160 echo "${ECHO_T}yes" >&6
4161 else
4162 echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6
4164 fi
4165
4166
4167 enablestring=disable
4168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4169 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4170 no_cache=0
4171 # Check whether --enable-compat26 or --disable-compat26 was given.
4172 if test "${enable_compat26+set}" = set; then
4173 enableval="$enable_compat26"
4174
4175 if test "$enableval" = yes; then
4176 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4177 else
4178 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4179 fi
4180
4181 else
4182
4183 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
4184 if test "x$LINE" != x ; then
4185 eval "DEFAULT_$LINE"
4186 else
4187 no_cache=1
4188 fi
4189
4190 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
4191
4192 fi;
4193
4194 eval "$ac_cv_use_compat26"
4195 if test "$no_cache" != 1; then
4196 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4197 fi
4198
4199 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
4200 echo "$as_me:$LINENO: result: yes" >&5
4201 echo "${ECHO_T}yes" >&6
4202 else
4203 echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4205 fi
4206
4207
4208
4209 enablestring=
4210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4211 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4212 no_cache=0
4213 # Check whether --enable-rpath or --disable-rpath was given.
4214 if test "${enable_rpath+set}" = set; then
4215 enableval="$enable_rpath"
4216
4217 if test "$enableval" = yes; then
4218 ac_cv_use_rpath='wxUSE_RPATH=yes'
4219 else
4220 ac_cv_use_rpath='wxUSE_RPATH=no'
4221 fi
4222
4223 else
4224
4225 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4226 if test "x$LINE" != x ; then
4227 eval "DEFAULT_$LINE"
4228 else
4229 no_cache=1
4230 fi
4231
4232 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4233
4234 fi;
4235
4236 eval "$ac_cv_use_rpath"
4237 if test "$no_cache" != 1; then
4238 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4239 fi
4240
4241 if test "$wxUSE_RPATH" = yes; then
4242 echo "$as_me:$LINENO: result: yes" >&5
4243 echo "${ECHO_T}yes" >&6
4244 else
4245 echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4247 fi
4248
4249
4250
4251
4252
4253 enablestring=
4254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4255 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4256 no_cache=0
4257 # Check whether --enable-intl or --disable-intl was given.
4258 if test "${enable_intl+set}" = set; then
4259 enableval="$enable_intl"
4260
4261 if test "$enableval" = yes; then
4262 ac_cv_use_intl='wxUSE_INTL=yes'
4263 else
4264 ac_cv_use_intl='wxUSE_INTL=no'
4265 fi
4266
4267 else
4268
4269 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4270 if test "x$LINE" != x ; then
4271 eval "DEFAULT_$LINE"
4272 else
4273 no_cache=1
4274 fi
4275
4276 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4277
4278 fi;
4279
4280 eval "$ac_cv_use_intl"
4281 if test "$no_cache" != 1; then
4282 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4283 fi
4284
4285 if test "$wxUSE_INTL" = yes; then
4286 echo "$as_me:$LINENO: result: yes" >&5
4287 echo "${ECHO_T}yes" >&6
4288 else
4289 echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4291 fi
4292
4293
4294 enablestring=
4295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4296 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4297 no_cache=0
4298 # Check whether --enable-config or --disable-config was given.
4299 if test "${enable_config+set}" = set; then
4300 enableval="$enable_config"
4301
4302 if test "$enableval" = yes; then
4303 ac_cv_use_config='wxUSE_CONFIG=yes'
4304 else
4305 ac_cv_use_config='wxUSE_CONFIG=no'
4306 fi
4307
4308 else
4309
4310 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4311 if test "x$LINE" != x ; then
4312 eval "DEFAULT_$LINE"
4313 else
4314 no_cache=1
4315 fi
4316
4317 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4318
4319 fi;
4320
4321 eval "$ac_cv_use_config"
4322 if test "$no_cache" != 1; then
4323 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4324 fi
4325
4326 if test "$wxUSE_CONFIG" = yes; then
4327 echo "$as_me:$LINENO: result: yes" >&5
4328 echo "${ECHO_T}yes" >&6
4329 else
4330 echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4332 fi
4333
4334
4335
4336 enablestring=
4337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4338 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4339 no_cache=0
4340 # Check whether --enable-protocols or --disable-protocols was given.
4341 if test "${enable_protocols+set}" = set; then
4342 enableval="$enable_protocols"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4346 else
4347 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4348 fi
4349
4350 else
4351
4352 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4360
4361 fi;
4362
4363 eval "$ac_cv_use_protocols"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_PROTOCOL" = yes; then
4369 echo "$as_me:$LINENO: result: yes" >&5
4370 echo "${ECHO_T}yes" >&6
4371 else
4372 echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6
4374 fi
4375
4376
4377 enablestring=
4378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4379 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4380 no_cache=0
4381 # Check whether --enable-ftp or --disable-ftp was given.
4382 if test "${enable_ftp+set}" = set; then
4383 enableval="$enable_ftp"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4387 else
4388 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4389 fi
4390
4391 else
4392
4393 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4401
4402 fi;
4403
4404 eval "$ac_cv_use_ftp"
4405 if test "$no_cache" != 1; then
4406 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4407 fi
4408
4409 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4410 echo "$as_me:$LINENO: result: yes" >&5
4411 echo "${ECHO_T}yes" >&6
4412 else
4413 echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6
4415 fi
4416
4417
4418 enablestring=
4419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4420 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4421 no_cache=0
4422 # Check whether --enable-http or --disable-http was given.
4423 if test "${enable_http+set}" = set; then
4424 enableval="$enable_http"
4425
4426 if test "$enableval" = yes; then
4427 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4428 else
4429 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4430 fi
4431
4432 else
4433
4434 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4435 if test "x$LINE" != x ; then
4436 eval "DEFAULT_$LINE"
4437 else
4438 no_cache=1
4439 fi
4440
4441 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4442
4443 fi;
4444
4445 eval "$ac_cv_use_http"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4451 echo "$as_me:$LINENO: result: yes" >&5
4452 echo "${ECHO_T}yes" >&6
4453 else
4454 echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4456 fi
4457
4458
4459 enablestring=
4460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4461 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4462 no_cache=0
4463 # Check whether --enable-fileproto or --disable-fileproto was given.
4464 if test "${enable_fileproto+set}" = set; then
4465 enableval="$enable_fileproto"
4466
4467 if test "$enableval" = yes; then
4468 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4469 else
4470 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4471 fi
4472
4473 else
4474
4475 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4476 if test "x$LINE" != x ; then
4477 eval "DEFAULT_$LINE"
4478 else
4479 no_cache=1
4480 fi
4481
4482 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4483
4484 fi;
4485
4486 eval "$ac_cv_use_fileproto"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4492 echo "$as_me:$LINENO: result: yes" >&5
4493 echo "${ECHO_T}yes" >&6
4494 else
4495 echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6
4497 fi
4498
4499
4500 enablestring=
4501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4502 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4503 no_cache=0
4504 # Check whether --enable-sockets or --disable-sockets was given.
4505 if test "${enable_sockets+set}" = set; then
4506 enableval="$enable_sockets"
4507
4508 if test "$enableval" = yes; then
4509 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4510 else
4511 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4512 fi
4513
4514 else
4515
4516 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4517 if test "x$LINE" != x ; then
4518 eval "DEFAULT_$LINE"
4519 else
4520 no_cache=1
4521 fi
4522
4523 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4524
4525 fi;
4526
4527 eval "$ac_cv_use_sockets"
4528 if test "$no_cache" != 1; then
4529 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4530 fi
4531
4532 if test "$wxUSE_SOCKETS" = yes; then
4533 echo "$as_me:$LINENO: result: yes" >&5
4534 echo "${ECHO_T}yes" >&6
4535 else
4536 echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6
4538 fi
4539
4540
4541 enablestring=
4542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4543 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4544 no_cache=0
4545 # Check whether --enable-ole or --disable-ole was given.
4546 if test "${enable_ole+set}" = set; then
4547 enableval="$enable_ole"
4548
4549 if test "$enableval" = yes; then
4550 ac_cv_use_ole='wxUSE_OLE=yes'
4551 else
4552 ac_cv_use_ole='wxUSE_OLE=no'
4553 fi
4554
4555 else
4556
4557 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4558 if test "x$LINE" != x ; then
4559 eval "DEFAULT_$LINE"
4560 else
4561 no_cache=1
4562 fi
4563
4564 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4565
4566 fi;
4567
4568 eval "$ac_cv_use_ole"
4569 if test "$no_cache" != 1; then
4570 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4571 fi
4572
4573 if test "$wxUSE_OLE" = yes; then
4574 echo "$as_me:$LINENO: result: yes" >&5
4575 echo "${ECHO_T}yes" >&6
4576 else
4577 echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4579 fi
4580
4581
4582 enablestring=
4583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4584 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4585 no_cache=0
4586 # Check whether --enable-dataobj or --disable-dataobj was given.
4587 if test "${enable_dataobj+set}" = set; then
4588 enableval="$enable_dataobj"
4589
4590 if test "$enableval" = yes; then
4591 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4592 else
4593 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4594 fi
4595
4596 else
4597
4598 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4599 if test "x$LINE" != x ; then
4600 eval "DEFAULT_$LINE"
4601 else
4602 no_cache=1
4603 fi
4604
4605 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4606
4607 fi;
4608
4609 eval "$ac_cv_use_dataobj"
4610 if test "$no_cache" != 1; then
4611 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4612 fi
4613
4614 if test "$wxUSE_DATAOBJ" = yes; then
4615 echo "$as_me:$LINENO: result: yes" >&5
4616 echo "${ECHO_T}yes" >&6
4617 else
4618 echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4620 fi
4621
4622
4623
4624 enablestring=
4625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4626 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4627 no_cache=0
4628 # Check whether --enable-ipc or --disable-ipc was given.
4629 if test "${enable_ipc+set}" = set; then
4630 enableval="$enable_ipc"
4631
4632 if test "$enableval" = yes; then
4633 ac_cv_use_ipc='wxUSE_IPC=yes'
4634 else
4635 ac_cv_use_ipc='wxUSE_IPC=no'
4636 fi
4637
4638 else
4639
4640 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4641 if test "x$LINE" != x ; then
4642 eval "DEFAULT_$LINE"
4643 else
4644 no_cache=1
4645 fi
4646
4647 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4648
4649 fi;
4650
4651 eval "$ac_cv_use_ipc"
4652 if test "$no_cache" != 1; then
4653 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4654 fi
4655
4656 if test "$wxUSE_IPC" = yes; then
4657 echo "$as_me:$LINENO: result: yes" >&5
4658 echo "${ECHO_T}yes" >&6
4659 else
4660 echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6
4662 fi
4663
4664
4665
4666 enablestring=
4667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4668 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4669 no_cache=0
4670 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4671 if test "${enable_apple_ieee+set}" = set; then
4672 enableval="$enable_apple_ieee"
4673
4674 if test "$enableval" = yes; then
4675 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4676 else
4677 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4678 fi
4679
4680 else
4681
4682 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4683 if test "x$LINE" != x ; then
4684 eval "DEFAULT_$LINE"
4685 else
4686 no_cache=1
4687 fi
4688
4689 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4690
4691 fi;
4692
4693 eval "$ac_cv_use_apple_ieee"
4694 if test "$no_cache" != 1; then
4695 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4696 fi
4697
4698 if test "$wxUSE_APPLE_IEEE" = yes; then
4699 echo "$as_me:$LINENO: result: yes" >&5
4700 echo "${ECHO_T}yes" >&6
4701 else
4702 echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6
4704 fi
4705
4706
4707 enablestring=
4708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4709 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4710 no_cache=0
4711 # Check whether --enable-arcstream or --disable-arcstream was given.
4712 if test "${enable_arcstream+set}" = set; then
4713 enableval="$enable_arcstream"
4714
4715 if test "$enableval" = yes; then
4716 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
4717 else
4718 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
4719 fi
4720
4721 else
4722
4723 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
4724 if test "x$LINE" != x ; then
4725 eval "DEFAULT_$LINE"
4726 else
4727 no_cache=1
4728 fi
4729
4730 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
4731
4732 fi;
4733
4734 eval "$ac_cv_use_arcstream"
4735 if test "$no_cache" != 1; then
4736 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4737 fi
4738
4739 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
4740 echo "$as_me:$LINENO: result: yes" >&5
4741 echo "${ECHO_T}yes" >&6
4742 else
4743 echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6
4745 fi
4746
4747
4748 enablestring=
4749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4750 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4751 no_cache=0
4752 # Check whether --enable-backtrace or --disable-backtrace was given.
4753 if test "${enable_backtrace+set}" = set; then
4754 enableval="$enable_backtrace"
4755
4756 if test "$enableval" = yes; then
4757 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4758 else
4759 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4760 fi
4761
4762 else
4763
4764 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4765 if test "x$LINE" != x ; then
4766 eval "DEFAULT_$LINE"
4767 else
4768 no_cache=1
4769 fi
4770
4771 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4772
4773 fi;
4774
4775 eval "$ac_cv_use_backtrace"
4776 if test "$no_cache" != 1; then
4777 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4778 fi
4779
4780 if test "$wxUSE_STACKWALKER" = yes; then
4781 echo "$as_me:$LINENO: result: yes" >&5
4782 echo "${ECHO_T}yes" >&6
4783 else
4784 echo "$as_me:$LINENO: result: no" >&5
4785 echo "${ECHO_T}no" >&6
4786 fi
4787
4788
4789 enablestring=
4790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4791 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4792 no_cache=0
4793 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4794 if test "${enable_catch_segvs+set}" = set; then
4795 enableval="$enable_catch_segvs"
4796
4797 if test "$enableval" = yes; then
4798 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4799 else
4800 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4801 fi
4802
4803 else
4804
4805 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4806 if test "x$LINE" != x ; then
4807 eval "DEFAULT_$LINE"
4808 else
4809 no_cache=1
4810 fi
4811
4812 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4813
4814 fi;
4815
4816 eval "$ac_cv_use_catch_segvs"
4817 if test "$no_cache" != 1; then
4818 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4819 fi
4820
4821 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4822 echo "$as_me:$LINENO: result: yes" >&5
4823 echo "${ECHO_T}yes" >&6
4824 else
4825 echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6
4827 fi
4828
4829
4830 enablestring=
4831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4832 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4833 no_cache=0
4834 # Check whether --enable-cmdline or --disable-cmdline was given.
4835 if test "${enable_cmdline+set}" = set; then
4836 enableval="$enable_cmdline"
4837
4838 if test "$enableval" = yes; then
4839 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4840 else
4841 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4842 fi
4843
4844 else
4845
4846 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4854
4855 fi;
4856
4857 eval "$ac_cv_use_cmdline"
4858 if test "$no_cache" != 1; then
4859 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4860 fi
4861
4862 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4863 echo "$as_me:$LINENO: result: yes" >&5
4864 echo "${ECHO_T}yes" >&6
4865 else
4866 echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6
4868 fi
4869
4870
4871 enablestring=
4872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4873 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4874 no_cache=0
4875 # Check whether --enable-datetime or --disable-datetime was given.
4876 if test "${enable_datetime+set}" = set; then
4877 enableval="$enable_datetime"
4878
4879 if test "$enableval" = yes; then
4880 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4881 else
4882 ac_cv_use_datetime='wxUSE_DATETIME=no'
4883 fi
4884
4885 else
4886
4887 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4888 if test "x$LINE" != x ; then
4889 eval "DEFAULT_$LINE"
4890 else
4891 no_cache=1
4892 fi
4893
4894 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4895
4896 fi;
4897
4898 eval "$ac_cv_use_datetime"
4899 if test "$no_cache" != 1; then
4900 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4901 fi
4902
4903 if test "$wxUSE_DATETIME" = yes; then
4904 echo "$as_me:$LINENO: result: yes" >&5
4905 echo "${ECHO_T}yes" >&6
4906 else
4907 echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6
4909 fi
4910
4911
4912 enablestring=
4913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4914 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4915 no_cache=0
4916 # Check whether --enable-debugreport or --disable-debugreport was given.
4917 if test "${enable_debugreport+set}" = set; then
4918 enableval="$enable_debugreport"
4919
4920 if test "$enableval" = yes; then
4921 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4922 else
4923 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4924 fi
4925
4926 else
4927
4928 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4929 if test "x$LINE" != x ; then
4930 eval "DEFAULT_$LINE"
4931 else
4932 no_cache=1
4933 fi
4934
4935 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4936
4937 fi;
4938
4939 eval "$ac_cv_use_debugreport"
4940 if test "$no_cache" != 1; then
4941 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4942 fi
4943
4944 if test "$wxUSE_DEBUGREPORT" = yes; then
4945 echo "$as_me:$LINENO: result: yes" >&5
4946 echo "${ECHO_T}yes" >&6
4947 else
4948 echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6
4950 fi
4951
4952
4953 enablestring=
4954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4955 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4956 no_cache=0
4957 # Check whether --enable-dialupman or --disable-dialupman was given.
4958 if test "${enable_dialupman+set}" = set; then
4959 enableval="$enable_dialupman"
4960
4961 if test "$enableval" = yes; then
4962 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4963 else
4964 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4965 fi
4966
4967 else
4968
4969 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4970 if test "x$LINE" != x ; then
4971 eval "DEFAULT_$LINE"
4972 else
4973 no_cache=1
4974 fi
4975
4976 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4977
4978 fi;
4979
4980 eval "$ac_cv_use_dialupman"
4981 if test "$no_cache" != 1; then
4982 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4983 fi
4984
4985 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4986 echo "$as_me:$LINENO: result: yes" >&5
4987 echo "${ECHO_T}yes" >&6
4988 else
4989 echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6
4991 fi
4992
4993
4994 enablestring=
4995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4996 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4997 no_cache=0
4998 # Check whether --enable-dynlib or --disable-dynlib was given.
4999 if test "${enable_dynlib+set}" = set; then
5000 enableval="$enable_dynlib"
5001
5002 if test "$enableval" = yes; then
5003 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5004 else
5005 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5006 fi
5007
5008 else
5009
5010 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5011 if test "x$LINE" != x ; then
5012 eval "DEFAULT_$LINE"
5013 else
5014 no_cache=1
5015 fi
5016
5017 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5018
5019 fi;
5020
5021 eval "$ac_cv_use_dynlib"
5022 if test "$no_cache" != 1; then
5023 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5024 fi
5025
5026 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5027 echo "$as_me:$LINENO: result: yes" >&5
5028 echo "${ECHO_T}yes" >&6
5029 else
5030 echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6
5032 fi
5033
5034
5035 enablestring=
5036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5037 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5038 no_cache=0
5039 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5040 if test "${enable_dynamicloader+set}" = set; then
5041 enableval="$enable_dynamicloader"
5042
5043 if test "$enableval" = yes; then
5044 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5045 else
5046 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5047 fi
5048
5049 else
5050
5051 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5052 if test "x$LINE" != x ; then
5053 eval "DEFAULT_$LINE"
5054 else
5055 no_cache=1
5056 fi
5057
5058 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5059
5060 fi;
5061
5062 eval "$ac_cv_use_dynamicloader"
5063 if test "$no_cache" != 1; then
5064 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5065 fi
5066
5067 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5068 echo "$as_me:$LINENO: result: yes" >&5
5069 echo "${ECHO_T}yes" >&6
5070 else
5071 echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6
5073 fi
5074
5075
5076 enablestring=
5077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5078 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5079 no_cache=0
5080 # Check whether --enable-exceptions or --disable-exceptions was given.
5081 if test "${enable_exceptions+set}" = set; then
5082 enableval="$enable_exceptions"
5083
5084 if test "$enableval" = yes; then
5085 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5086 else
5087 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5088 fi
5089
5090 else
5091
5092 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5100
5101 fi;
5102
5103 eval "$ac_cv_use_exceptions"
5104 if test "$no_cache" != 1; then
5105 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5106 fi
5107
5108 if test "$wxUSE_EXCEPTIONS" = yes; then
5109 echo "$as_me:$LINENO: result: yes" >&5
5110 echo "${ECHO_T}yes" >&6
5111 else
5112 echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6
5114 fi
5115
5116
5117 enablestring=
5118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5119 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5120 no_cache=0
5121 # Check whether --enable-ffile or --disable-ffile was given.
5122 if test "${enable_ffile+set}" = set; then
5123 enableval="$enable_ffile"
5124
5125 if test "$enableval" = yes; then
5126 ac_cv_use_ffile='wxUSE_FFILE=yes'
5127 else
5128 ac_cv_use_ffile='wxUSE_FFILE=no'
5129 fi
5130
5131 else
5132
5133 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
5140 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5141
5142 fi;
5143
5144 eval "$ac_cv_use_ffile"
5145 if test "$no_cache" != 1; then
5146 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5147 fi
5148
5149 if test "$wxUSE_FFILE" = yes; then
5150 echo "$as_me:$LINENO: result: yes" >&5
5151 echo "${ECHO_T}yes" >&6
5152 else
5153 echo "$as_me:$LINENO: result: no" >&5
5154 echo "${ECHO_T}no" >&6
5155 fi
5156
5157
5158 enablestring=
5159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5160 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5161 no_cache=0
5162 # Check whether --enable-file or --disable-file was given.
5163 if test "${enable_file+set}" = set; then
5164 enableval="$enable_file"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_file='wxUSE_FILE=yes'
5168 else
5169 ac_cv_use_file='wxUSE_FILE=no'
5170 fi
5171
5172 else
5173
5174 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5182
5183 fi;
5184
5185 eval "$ac_cv_use_file"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_FILE" = yes; then
5191 echo "$as_me:$LINENO: result: yes" >&5
5192 echo "${ECHO_T}yes" >&6
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5196 fi
5197
5198
5199 enablestring=
5200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5201 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5202 no_cache=0
5203 # Check whether --enable-filesystem or --disable-filesystem was given.
5204 if test "${enable_filesystem+set}" = set; then
5205 enableval="$enable_filesystem"
5206
5207 if test "$enableval" = yes; then
5208 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5209 else
5210 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5211 fi
5212
5213 else
5214
5215 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5216 if test "x$LINE" != x ; then
5217 eval "DEFAULT_$LINE"
5218 else
5219 no_cache=1
5220 fi
5221
5222 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5223
5224 fi;
5225
5226 eval "$ac_cv_use_filesystem"
5227 if test "$no_cache" != 1; then
5228 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5229 fi
5230
5231 if test "$wxUSE_FILESYSTEM" = yes; then
5232 echo "$as_me:$LINENO: result: yes" >&5
5233 echo "${ECHO_T}yes" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5237 fi
5238
5239
5240 enablestring=
5241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5242 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5243 no_cache=0
5244 # Check whether --enable-fontmap or --disable-fontmap was given.
5245 if test "${enable_fontmap+set}" = set; then
5246 enableval="$enable_fontmap"
5247
5248 if test "$enableval" = yes; then
5249 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5250 else
5251 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5252 fi
5253
5254 else
5255
5256 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5257 if test "x$LINE" != x ; then
5258 eval "DEFAULT_$LINE"
5259 else
5260 no_cache=1
5261 fi
5262
5263 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5264
5265 fi;
5266
5267 eval "$ac_cv_use_fontmap"
5268 if test "$no_cache" != 1; then
5269 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5270 fi
5271
5272 if test "$wxUSE_FONTMAP" = yes; then
5273 echo "$as_me:$LINENO: result: yes" >&5
5274 echo "${ECHO_T}yes" >&6
5275 else
5276 echo "$as_me:$LINENO: result: no" >&5
5277 echo "${ECHO_T}no" >&6
5278 fi
5279
5280
5281 enablestring=
5282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5283 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5284 no_cache=0
5285 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5286 if test "${enable_fs_inet+set}" = set; then
5287 enableval="$enable_fs_inet"
5288
5289 if test "$enableval" = yes; then
5290 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5291 else
5292 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5293 fi
5294
5295 else
5296
5297 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5305
5306 fi;
5307
5308 eval "$ac_cv_use_fs_inet"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_FS_INET" = yes; then
5314 echo "$as_me:$LINENO: result: yes" >&5
5315 echo "${ECHO_T}yes" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6
5319 fi
5320
5321
5322 enablestring=
5323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5324 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5325 no_cache=0
5326 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5327 if test "${enable_fs_zip+set}" = set; then
5328 enableval="$enable_fs_zip"
5329
5330 if test "$enableval" = yes; then
5331 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5332 else
5333 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5334 fi
5335
5336 else
5337
5338 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5339 if test "x$LINE" != x ; then
5340 eval "DEFAULT_$LINE"
5341 else
5342 no_cache=1
5343 fi
5344
5345 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5346
5347 fi;
5348
5349 eval "$ac_cv_use_fs_zip"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_FS_ZIP" = yes; then
5355 echo "$as_me:$LINENO: result: yes" >&5
5356 echo "${ECHO_T}yes" >&6
5357 else
5358 echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6
5360 fi
5361
5362
5363 enablestring=
5364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5365 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5366 no_cache=0
5367 # Check whether --enable-geometry or --disable-geometry was given.
5368 if test "${enable_geometry+set}" = set; then
5369 enableval="$enable_geometry"
5370
5371 if test "$enableval" = yes; then
5372 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5373 else
5374 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5375 fi
5376
5377 else
5378
5379 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5380 if test "x$LINE" != x ; then
5381 eval "DEFAULT_$LINE"
5382 else
5383 no_cache=1
5384 fi
5385
5386 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5387
5388 fi;
5389
5390 eval "$ac_cv_use_geometry"
5391 if test "$no_cache" != 1; then
5392 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5393 fi
5394
5395 if test "$wxUSE_GEOMETRY" = yes; then
5396 echo "$as_me:$LINENO: result: yes" >&5
5397 echo "${ECHO_T}yes" >&6
5398 else
5399 echo "$as_me:$LINENO: result: no" >&5
5400 echo "${ECHO_T}no" >&6
5401 fi
5402
5403
5404 enablestring=
5405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5406 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5407 no_cache=0
5408 # Check whether --enable-log or --disable-log was given.
5409 if test "${enable_log+set}" = set; then
5410 enableval="$enable_log"
5411
5412 if test "$enableval" = yes; then
5413 ac_cv_use_log='wxUSE_LOG=yes'
5414 else
5415 ac_cv_use_log='wxUSE_LOG=no'
5416 fi
5417
5418 else
5419
5420 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5421 if test "x$LINE" != x ; then
5422 eval "DEFAULT_$LINE"
5423 else
5424 no_cache=1
5425 fi
5426
5427 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5428
5429 fi;
5430
5431 eval "$ac_cv_use_log"
5432 if test "$no_cache" != 1; then
5433 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5434 fi
5435
5436 if test "$wxUSE_LOG" = yes; then
5437 echo "$as_me:$LINENO: result: yes" >&5
5438 echo "${ECHO_T}yes" >&6
5439 else
5440 echo "$as_me:$LINENO: result: no" >&5
5441 echo "${ECHO_T}no" >&6
5442 fi
5443
5444
5445 enablestring=
5446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5447 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5448 no_cache=0
5449 # Check whether --enable-longlong or --disable-longlong was given.
5450 if test "${enable_longlong+set}" = set; then
5451 enableval="$enable_longlong"
5452
5453 if test "$enableval" = yes; then
5454 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5455 else
5456 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5457 fi
5458
5459 else
5460
5461 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5462 if test "x$LINE" != x ; then
5463 eval "DEFAULT_$LINE"
5464 else
5465 no_cache=1
5466 fi
5467
5468 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5469
5470 fi;
5471
5472 eval "$ac_cv_use_longlong"
5473 if test "$no_cache" != 1; then
5474 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5475 fi
5476
5477 if test "$wxUSE_LONGLONG" = yes; then
5478 echo "$as_me:$LINENO: result: yes" >&5
5479 echo "${ECHO_T}yes" >&6
5480 else
5481 echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6
5483 fi
5484
5485
5486 enablestring=
5487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5488 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5489 no_cache=0
5490 # Check whether --enable-mimetype or --disable-mimetype was given.
5491 if test "${enable_mimetype+set}" = set; then
5492 enableval="$enable_mimetype"
5493
5494 if test "$enableval" = yes; then
5495 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5496 else
5497 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5498 fi
5499
5500 else
5501
5502 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5510
5511 fi;
5512
5513 eval "$ac_cv_use_mimetype"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_MIMETYPE" = yes; then
5519 echo "$as_me:$LINENO: result: yes" >&5
5520 echo "${ECHO_T}yes" >&6
5521 else
5522 echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6
5524 fi
5525
5526
5527 enablestring=
5528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5529 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5530 no_cache=0
5531 # Check whether --enable-mslu or --disable-mslu was given.
5532 if test "${enable_mslu+set}" = set; then
5533 enableval="$enable_mslu"
5534
5535 if test "$enableval" = yes; then
5536 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5537 else
5538 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5539 fi
5540
5541 else
5542
5543 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5544 if test "x$LINE" != x ; then
5545 eval "DEFAULT_$LINE"
5546 else
5547 no_cache=1
5548 fi
5549
5550 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5551
5552 fi;
5553
5554 eval "$ac_cv_use_mslu"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_UNICODE_MSLU" = yes; then
5560 echo "$as_me:$LINENO: result: yes" >&5
5561 echo "${ECHO_T}yes" >&6
5562 else
5563 echo "$as_me:$LINENO: result: no" >&5
5564 echo "${ECHO_T}no" >&6
5565 fi
5566
5567
5568 enablestring=
5569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5570 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5571 no_cache=0
5572 # Check whether --enable-snglinst or --disable-snglinst was given.
5573 if test "${enable_snglinst+set}" = set; then
5574 enableval="$enable_snglinst"
5575
5576 if test "$enableval" = yes; then
5577 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5578 else
5579 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5580 fi
5581
5582 else
5583
5584 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5585 if test "x$LINE" != x ; then
5586 eval "DEFAULT_$LINE"
5587 else
5588 no_cache=1
5589 fi
5590
5591 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5592
5593 fi;
5594
5595 eval "$ac_cv_use_snglinst"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5601 echo "$as_me:$LINENO: result: yes" >&5
5602 echo "${ECHO_T}yes" >&6
5603 else
5604 echo "$as_me:$LINENO: result: no" >&5
5605 echo "${ECHO_T}no" >&6
5606 fi
5607
5608
5609 enablestring=
5610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5611 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5612 no_cache=0
5613 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5614 if test "${enable_std_iostreams+set}" = set; then
5615 enableval="$enable_std_iostreams"
5616
5617 if test "$enableval" = yes; then
5618 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5619 else
5620 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5621 fi
5622
5623 else
5624
5625 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5626 if test "x$LINE" != x ; then
5627 eval "DEFAULT_$LINE"
5628 else
5629 no_cache=1
5630 fi
5631
5632 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5633
5634 fi;
5635
5636 eval "$ac_cv_use_std_iostreams"
5637 if test "$no_cache" != 1; then
5638 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5639 fi
5640
5641 if test "$wxUSE_STD_IOSTREAM" = yes; then
5642 echo "$as_me:$LINENO: result: yes" >&5
5643 echo "${ECHO_T}yes" >&6
5644 else
5645 echo "$as_me:$LINENO: result: no" >&5
5646 echo "${ECHO_T}no" >&6
5647 fi
5648
5649
5650 enablestring=
5651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5652 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5653 no_cache=0
5654 # Check whether --enable-std_string or --disable-std_string was given.
5655 if test "${enable_std_string+set}" = set; then
5656 enableval="$enable_std_string"
5657
5658 if test "$enableval" = yes; then
5659 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5660 else
5661 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5662 fi
5663
5664 else
5665
5666 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5667 if test "x$LINE" != x ; then
5668 eval "DEFAULT_$LINE"
5669 else
5670 no_cache=1
5671 fi
5672
5673 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5674
5675 fi;
5676
5677 eval "$ac_cv_use_std_string"
5678 if test "$no_cache" != 1; then
5679 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5680 fi
5681
5682 if test "$wxUSE_STD_STRING" = yes; then
5683 echo "$as_me:$LINENO: result: yes" >&5
5684 echo "${ECHO_T}yes" >&6
5685 else
5686 echo "$as_me:$LINENO: result: no" >&5
5687 echo "${ECHO_T}no" >&6
5688 fi
5689
5690
5691 enablestring=
5692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5693 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
5694 no_cache=0
5695 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5696 if test "${enable_stdpaths+set}" = set; then
5697 enableval="$enable_stdpaths"
5698
5699 if test "$enableval" = yes; then
5700 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
5701 else
5702 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
5703 fi
5704
5705 else
5706
5707 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
5708 if test "x$LINE" != x ; then
5709 eval "DEFAULT_$LINE"
5710 else
5711 no_cache=1
5712 fi
5713
5714 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
5715
5716 fi;
5717
5718 eval "$ac_cv_use_stdpaths"
5719 if test "$no_cache" != 1; then
5720 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
5721 fi
5722
5723 if test "$wxUSE_STDPATHS" = yes; then
5724 echo "$as_me:$LINENO: result: yes" >&5
5725 echo "${ECHO_T}yes" >&6
5726 else
5727 echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6
5729 fi
5730
5731
5732 enablestring=
5733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5734 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5735 no_cache=0
5736 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5737 if test "${enable_stopwatch+set}" = set; then
5738 enableval="$enable_stopwatch"
5739
5740 if test "$enableval" = yes; then
5741 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5742 else
5743 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5744 fi
5745
5746 else
5747
5748 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5749 if test "x$LINE" != x ; then
5750 eval "DEFAULT_$LINE"
5751 else
5752 no_cache=1
5753 fi
5754
5755 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5756
5757 fi;
5758
5759 eval "$ac_cv_use_stopwatch"
5760 if test "$no_cache" != 1; then
5761 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5762 fi
5763
5764 if test "$wxUSE_STOPWATCH" = yes; then
5765 echo "$as_me:$LINENO: result: yes" >&5
5766 echo "${ECHO_T}yes" >&6
5767 else
5768 echo "$as_me:$LINENO: result: no" >&5
5769 echo "${ECHO_T}no" >&6
5770 fi
5771
5772
5773 enablestring=
5774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5775 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5776 no_cache=0
5777 # Check whether --enable-streams or --disable-streams was given.
5778 if test "${enable_streams+set}" = set; then
5779 enableval="$enable_streams"
5780
5781 if test "$enableval" = yes; then
5782 ac_cv_use_streams='wxUSE_STREAMS=yes'
5783 else
5784 ac_cv_use_streams='wxUSE_STREAMS=no'
5785 fi
5786
5787 else
5788
5789 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5790 if test "x$LINE" != x ; then
5791 eval "DEFAULT_$LINE"
5792 else
5793 no_cache=1
5794 fi
5795
5796 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5797
5798 fi;
5799
5800 eval "$ac_cv_use_streams"
5801 if test "$no_cache" != 1; then
5802 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5803 fi
5804
5805 if test "$wxUSE_STREAMS" = yes; then
5806 echo "$as_me:$LINENO: result: yes" >&5
5807 echo "${ECHO_T}yes" >&6
5808 else
5809 echo "$as_me:$LINENO: result: no" >&5
5810 echo "${ECHO_T}no" >&6
5811 fi
5812
5813
5814 enablestring=
5815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5816 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5817 no_cache=0
5818 # Check whether --enable-system_options or --disable-system_options was given.
5819 if test "${enable_system_options+set}" = set; then
5820 enableval="$enable_system_options"
5821
5822 if test "$enableval" = yes; then
5823 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5824 else
5825 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5826 fi
5827
5828 else
5829
5830 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5831 if test "x$LINE" != x ; then
5832 eval "DEFAULT_$LINE"
5833 else
5834 no_cache=1
5835 fi
5836
5837 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5838
5839 fi;
5840
5841 eval "$ac_cv_use_system_options"
5842 if test "$no_cache" != 1; then
5843 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5844 fi
5845
5846 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5847 echo "$as_me:$LINENO: result: yes" >&5
5848 echo "${ECHO_T}yes" >&6
5849 else
5850 echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6
5852 fi
5853
5854
5855 enablestring=
5856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5857 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5858 no_cache=0
5859 # Check whether --enable-textbuf or --disable-textbuf was given.
5860 if test "${enable_textbuf+set}" = set; then
5861 enableval="$enable_textbuf"
5862
5863 if test "$enableval" = yes; then
5864 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5865 else
5866 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5867 fi
5868
5869 else
5870
5871 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5872 if test "x$LINE" != x ; then
5873 eval "DEFAULT_$LINE"
5874 else
5875 no_cache=1
5876 fi
5877
5878 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5879
5880 fi;
5881
5882 eval "$ac_cv_use_textbuf"
5883 if test "$no_cache" != 1; then
5884 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5885 fi
5886
5887 if test "$wxUSE_TEXTBUFFER" = yes; then
5888 echo "$as_me:$LINENO: result: yes" >&5
5889 echo "${ECHO_T}yes" >&6
5890 else
5891 echo "$as_me:$LINENO: result: no" >&5
5892 echo "${ECHO_T}no" >&6
5893 fi
5894
5895
5896 enablestring=
5897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5898 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5899 no_cache=0
5900 # Check whether --enable-textfile or --disable-textfile was given.
5901 if test "${enable_textfile+set}" = set; then
5902 enableval="$enable_textfile"
5903
5904 if test "$enableval" = yes; then
5905 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5906 else
5907 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5908 fi
5909
5910 else
5911
5912 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5913 if test "x$LINE" != x ; then
5914 eval "DEFAULT_$LINE"
5915 else
5916 no_cache=1
5917 fi
5918
5919 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5920
5921 fi;
5922
5923 eval "$ac_cv_use_textfile"
5924 if test "$no_cache" != 1; then
5925 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5926 fi
5927
5928 if test "$wxUSE_TEXTFILE" = yes; then
5929 echo "$as_me:$LINENO: result: yes" >&5
5930 echo "${ECHO_T}yes" >&6
5931 else
5932 echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6
5934 fi
5935
5936
5937 enablestring=
5938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5939 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5940 no_cache=0
5941 # Check whether --enable-timer or --disable-timer was given.
5942 if test "${enable_timer+set}" = set; then
5943 enableval="$enable_timer"
5944
5945 if test "$enableval" = yes; then
5946 ac_cv_use_timer='wxUSE_TIMER=yes'
5947 else
5948 ac_cv_use_timer='wxUSE_TIMER=no'
5949 fi
5950
5951 else
5952
5953 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5954 if test "x$LINE" != x ; then
5955 eval "DEFAULT_$LINE"
5956 else
5957 no_cache=1
5958 fi
5959
5960 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5961
5962 fi;
5963
5964 eval "$ac_cv_use_timer"
5965 if test "$no_cache" != 1; then
5966 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5967 fi
5968
5969 if test "$wxUSE_TIMER" = yes; then
5970 echo "$as_me:$LINENO: result: yes" >&5
5971 echo "${ECHO_T}yes" >&6
5972 else
5973 echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5975 fi
5976
5977
5978 enablestring=
5979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5980 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5981 no_cache=0
5982 # Check whether --enable-unicode or --disable-unicode was given.
5983 if test "${enable_unicode+set}" = set; then
5984 enableval="$enable_unicode"
5985
5986 if test "$enableval" = yes; then
5987 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5988 else
5989 ac_cv_use_unicode='wxUSE_UNICODE=no'
5990 fi
5991
5992 else
5993
5994 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5995 if test "x$LINE" != x ; then
5996 eval "DEFAULT_$LINE"
5997 else
5998 no_cache=1
5999 fi
6000
6001 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6002
6003 fi;
6004
6005 eval "$ac_cv_use_unicode"
6006 if test "$no_cache" != 1; then
6007 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6008 fi
6009
6010 if test "$wxUSE_UNICODE" = yes; then
6011 echo "$as_me:$LINENO: result: yes" >&5
6012 echo "${ECHO_T}yes" >&6
6013 else
6014 echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6016 fi
6017
6018
6019 enablestring=
6020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6021 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6022 no_cache=0
6023 # Check whether --enable-sound or --disable-sound was given.
6024 if test "${enable_sound+set}" = set; then
6025 enableval="$enable_sound"
6026
6027 if test "$enableval" = yes; then
6028 ac_cv_use_sound='wxUSE_SOUND=yes'
6029 else
6030 ac_cv_use_sound='wxUSE_SOUND=no'
6031 fi
6032
6033 else
6034
6035 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6036 if test "x$LINE" != x ; then
6037 eval "DEFAULT_$LINE"
6038 else
6039 no_cache=1
6040 fi
6041
6042 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6043
6044 fi;
6045
6046 eval "$ac_cv_use_sound"
6047 if test "$no_cache" != 1; then
6048 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6049 fi
6050
6051 if test "$wxUSE_SOUND" = yes; then
6052 echo "$as_me:$LINENO: result: yes" >&5
6053 echo "${ECHO_T}yes" >&6
6054 else
6055 echo "$as_me:$LINENO: result: no" >&5
6056 echo "${ECHO_T}no" >&6
6057 fi
6058
6059
6060 enablestring=
6061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6062 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6063 no_cache=0
6064 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6065 if test "${enable_mediactrl+set}" = set; then
6066 enableval="$enable_mediactrl"
6067
6068 if test "$enableval" = yes; then
6069 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6070 else
6071 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6072 fi
6073
6074 else
6075
6076 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6077 if test "x$LINE" != x ; then
6078 eval "DEFAULT_$LINE"
6079 else
6080 no_cache=1
6081 fi
6082
6083 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6084
6085 fi;
6086
6087 eval "$ac_cv_use_mediactrl"
6088 if test "$no_cache" != 1; then
6089 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6090 fi
6091
6092 if test "$wxUSE_MEDIACTRL" = yes; then
6093 echo "$as_me:$LINENO: result: yes" >&5
6094 echo "${ECHO_T}yes" >&6
6095 else
6096 echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6
6098 fi
6099
6100
6101 enablestring=
6102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6103 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6104 no_cache=0
6105 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6106 if test "${enable_wxprintfv+set}" = set; then
6107 enableval="$enable_wxprintfv"
6108
6109 if test "$enableval" = yes; then
6110 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6111 else
6112 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6113 fi
6114
6115 else
6116
6117 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6118 if test "x$LINE" != x ; then
6119 eval "DEFAULT_$LINE"
6120 else
6121 no_cache=1
6122 fi
6123
6124 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6125
6126 fi;
6127
6128 eval "$ac_cv_use_wxprintfv"
6129 if test "$no_cache" != 1; then
6130 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6131 fi
6132
6133 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6134 echo "$as_me:$LINENO: result: yes" >&5
6135 echo "${ECHO_T}yes" >&6
6136 else
6137 echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6
6139 fi
6140
6141
6142 enablestring=
6143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6144 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6145 no_cache=0
6146 # Check whether --enable-zipstream or --disable-zipstream was given.
6147 if test "${enable_zipstream+set}" = set; then
6148 enableval="$enable_zipstream"
6149
6150 if test "$enableval" = yes; then
6151 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6152 else
6153 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6154 fi
6155
6156 else
6157
6158 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6159 if test "x$LINE" != x ; then
6160 eval "DEFAULT_$LINE"
6161 else
6162 no_cache=1
6163 fi
6164
6165 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6166
6167 fi;
6168
6169 eval "$ac_cv_use_zipstream"
6170 if test "$no_cache" != 1; then
6171 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6172 fi
6173
6174 if test "$wxUSE_ZIPSTREAM" = yes; then
6175 echo "$as_me:$LINENO: result: yes" >&5
6176 echo "${ECHO_T}yes" >&6
6177 else
6178 echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6
6180 fi
6181
6182
6183
6184 enablestring=
6185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6186 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6187 no_cache=0
6188 # Check whether --enable-url or --disable-url was given.
6189 if test "${enable_url+set}" = set; then
6190 enableval="$enable_url"
6191
6192 if test "$enableval" = yes; then
6193 ac_cv_use_url='wxUSE_URL=yes'
6194 else
6195 ac_cv_use_url='wxUSE_URL=no'
6196 fi
6197
6198 else
6199
6200 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6201 if test "x$LINE" != x ; then
6202 eval "DEFAULT_$LINE"
6203 else
6204 no_cache=1
6205 fi
6206
6207 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6208
6209 fi;
6210
6211 eval "$ac_cv_use_url"
6212 if test "$no_cache" != 1; then
6213 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6214 fi
6215
6216 if test "$wxUSE_URL" = yes; then
6217 echo "$as_me:$LINENO: result: yes" >&5
6218 echo "${ECHO_T}yes" >&6
6219 else
6220 echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6
6222 fi
6223
6224
6225 enablestring=
6226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6227 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6228 no_cache=0
6229 # Check whether --enable-protocol or --disable-protocol was given.
6230 if test "${enable_protocol+set}" = set; then
6231 enableval="$enable_protocol"
6232
6233 if test "$enableval" = yes; then
6234 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6235 else
6236 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6237 fi
6238
6239 else
6240
6241 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6242 if test "x$LINE" != x ; then
6243 eval "DEFAULT_$LINE"
6244 else
6245 no_cache=1
6246 fi
6247
6248 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6249
6250 fi;
6251
6252 eval "$ac_cv_use_protocol"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_PROTOCOL" = yes; then
6258 echo "$as_me:$LINENO: result: yes" >&5
6259 echo "${ECHO_T}yes" >&6
6260 else
6261 echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6
6263 fi
6264
6265
6266 enablestring=
6267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6268 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6269 no_cache=0
6270 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6271 if test "${enable_protocol_http+set}" = set; then
6272 enableval="$enable_protocol_http"
6273
6274 if test "$enableval" = yes; then
6275 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6276 else
6277 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6278 fi
6279
6280 else
6281
6282 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6283 if test "x$LINE" != x ; then
6284 eval "DEFAULT_$LINE"
6285 else
6286 no_cache=1
6287 fi
6288
6289 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6290
6291 fi;
6292
6293 eval "$ac_cv_use_protocol_http"
6294 if test "$no_cache" != 1; then
6295 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6296 fi
6297
6298 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6299 echo "$as_me:$LINENO: result: yes" >&5
6300 echo "${ECHO_T}yes" >&6
6301 else
6302 echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6
6304 fi
6305
6306
6307 enablestring=
6308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6309 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6310 no_cache=0
6311 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6312 if test "${enable_protocol_ftp+set}" = set; then
6313 enableval="$enable_protocol_ftp"
6314
6315 if test "$enableval" = yes; then
6316 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6317 else
6318 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6319 fi
6320
6321 else
6322
6323 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6324 if test "x$LINE" != x ; then
6325 eval "DEFAULT_$LINE"
6326 else
6327 no_cache=1
6328 fi
6329
6330 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6331
6332 fi;
6333
6334 eval "$ac_cv_use_protocol_ftp"
6335 if test "$no_cache" != 1; then
6336 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6337 fi
6338
6339 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6340 echo "$as_me:$LINENO: result: yes" >&5
6341 echo "${ECHO_T}yes" >&6
6342 else
6343 echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6
6345 fi
6346
6347
6348 enablestring=
6349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6350 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6351 no_cache=0
6352 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6353 if test "${enable_protocol_file+set}" = set; then
6354 enableval="$enable_protocol_file"
6355
6356 if test "$enableval" = yes; then
6357 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6358 else
6359 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6360 fi
6361
6362 else
6363
6364 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6365 if test "x$LINE" != x ; then
6366 eval "DEFAULT_$LINE"
6367 else
6368 no_cache=1
6369 fi
6370
6371 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6372
6373 fi;
6374
6375 eval "$ac_cv_use_protocol_file"
6376 if test "$no_cache" != 1; then
6377 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6378 fi
6379
6380 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6381 echo "$as_me:$LINENO: result: yes" >&5
6382 echo "${ECHO_T}yes" >&6
6383 else
6384 echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6
6386 fi
6387
6388
6389
6390
6391
6392 enablestring=
6393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6394 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6395 no_cache=0
6396 # Check whether --enable-threads or --disable-threads was given.
6397 if test "${enable_threads+set}" = set; then
6398 enableval="$enable_threads"
6399
6400 if test "$enableval" = yes; then
6401 ac_cv_use_threads='wxUSE_THREADS=yes'
6402 else
6403 ac_cv_use_threads='wxUSE_THREADS=no'
6404 fi
6405
6406 else
6407
6408 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6409 if test "x$LINE" != x ; then
6410 eval "DEFAULT_$LINE"
6411 else
6412 no_cache=1
6413 fi
6414
6415 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6416
6417 fi;
6418
6419 eval "$ac_cv_use_threads"
6420 if test "$no_cache" != 1; then
6421 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6422 fi
6423
6424 if test "$wxUSE_THREADS" = yes; then
6425 echo "$as_me:$LINENO: result: yes" >&5
6426 echo "${ECHO_T}yes" >&6
6427 else
6428 echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6
6430 fi
6431
6432
6433 if test "$wxUSE_GUI" = "yes"; then
6434
6435
6436
6437 enablestring=
6438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6439 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6440 no_cache=0
6441 # Check whether --enable-docview or --disable-docview was given.
6442 if test "${enable_docview+set}" = set; then
6443 enableval="$enable_docview"
6444
6445 if test "$enableval" = yes; then
6446 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6447 else
6448 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6449 fi
6450
6451 else
6452
6453 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6454 if test "x$LINE" != x ; then
6455 eval "DEFAULT_$LINE"
6456 else
6457 no_cache=1
6458 fi
6459
6460 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6461
6462 fi;
6463
6464 eval "$ac_cv_use_docview"
6465 if test "$no_cache" != 1; then
6466 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6467 fi
6468
6469 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6470 echo "$as_me:$LINENO: result: yes" >&5
6471 echo "${ECHO_T}yes" >&6
6472 else
6473 echo "$as_me:$LINENO: result: no" >&5
6474 echo "${ECHO_T}no" >&6
6475 fi
6476
6477
6478 enablestring=
6479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6480 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6481 no_cache=0
6482 # Check whether --enable-help or --disable-help was given.
6483 if test "${enable_help+set}" = set; then
6484 enableval="$enable_help"
6485
6486 if test "$enableval" = yes; then
6487 ac_cv_use_help='wxUSE_HELP=yes'
6488 else
6489 ac_cv_use_help='wxUSE_HELP=no'
6490 fi
6491
6492 else
6493
6494 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6495 if test "x$LINE" != x ; then
6496 eval "DEFAULT_$LINE"
6497 else
6498 no_cache=1
6499 fi
6500
6501 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6502
6503 fi;
6504
6505 eval "$ac_cv_use_help"
6506 if test "$no_cache" != 1; then
6507 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6508 fi
6509
6510 if test "$wxUSE_HELP" = yes; then
6511 echo "$as_me:$LINENO: result: yes" >&5
6512 echo "${ECHO_T}yes" >&6
6513 else
6514 echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6
6516 fi
6517
6518
6519 enablestring=
6520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6521 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6522 no_cache=0
6523 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6524 if test "${enable_mshtmlhelp+set}" = set; then
6525 enableval="$enable_mshtmlhelp"
6526
6527 if test "$enableval" = yes; then
6528 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6529 else
6530 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6531 fi
6532
6533 else
6534
6535 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6536 if test "x$LINE" != x ; then
6537 eval "DEFAULT_$LINE"
6538 else
6539 no_cache=1
6540 fi
6541
6542 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6543
6544 fi;
6545
6546 eval "$ac_cv_use_mshtmlhelp"
6547 if test "$no_cache" != 1; then
6548 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6549 fi
6550
6551 if test "$wxUSE_MS_HTML_HELP" = yes; then
6552 echo "$as_me:$LINENO: result: yes" >&5
6553 echo "${ECHO_T}yes" >&6
6554 else
6555 echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6
6557 fi
6558
6559
6560 enablestring=
6561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6562 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6563 no_cache=0
6564 # Check whether --enable-html or --disable-html was given.
6565 if test "${enable_html+set}" = set; then
6566 enableval="$enable_html"
6567
6568 if test "$enableval" = yes; then
6569 ac_cv_use_html='wxUSE_HTML=yes'
6570 else
6571 ac_cv_use_html='wxUSE_HTML=no'
6572 fi
6573
6574 else
6575
6576 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6577 if test "x$LINE" != x ; then
6578 eval "DEFAULT_$LINE"
6579 else
6580 no_cache=1
6581 fi
6582
6583 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6584
6585 fi;
6586
6587 eval "$ac_cv_use_html"
6588 if test "$no_cache" != 1; then
6589 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6590 fi
6591
6592 if test "$wxUSE_HTML" = yes; then
6593 echo "$as_me:$LINENO: result: yes" >&5
6594 echo "${ECHO_T}yes" >&6
6595 else
6596 echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6
6598 fi
6599
6600
6601 enablestring=
6602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6603 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6604 no_cache=0
6605 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6606 if test "${enable_htmlhelp+set}" = set; then
6607 enableval="$enable_htmlhelp"
6608
6609 if test "$enableval" = yes; then
6610 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6611 else
6612 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6613 fi
6614
6615 else
6616
6617 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6618 if test "x$LINE" != x ; then
6619 eval "DEFAULT_$LINE"
6620 else
6621 no_cache=1
6622 fi
6623
6624 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6625
6626 fi;
6627
6628 eval "$ac_cv_use_htmlhelp"
6629 if test "$no_cache" != 1; then
6630 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6631 fi
6632
6633 if test "$wxUSE_WXHTML_HELP" = yes; then
6634 echo "$as_me:$LINENO: result: yes" >&5
6635 echo "${ECHO_T}yes" >&6
6636 else
6637 echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6
6639 fi
6640
6641
6642 enablestring=
6643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6644 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6645 no_cache=0
6646 # Check whether --enable-xrc or --disable-xrc was given.
6647 if test "${enable_xrc+set}" = set; then
6648 enableval="$enable_xrc"
6649
6650 if test "$enableval" = yes; then
6651 ac_cv_use_xrc='wxUSE_XRC=yes'
6652 else
6653 ac_cv_use_xrc='wxUSE_XRC=no'
6654 fi
6655
6656 else
6657
6658 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6659 if test "x$LINE" != x ; then
6660 eval "DEFAULT_$LINE"
6661 else
6662 no_cache=1
6663 fi
6664
6665 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6666
6667 fi;
6668
6669 eval "$ac_cv_use_xrc"
6670 if test "$no_cache" != 1; then
6671 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6672 fi
6673
6674 if test "$wxUSE_XRC" = yes; then
6675 echo "$as_me:$LINENO: result: yes" >&5
6676 echo "${ECHO_T}yes" >&6
6677 else
6678 echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6
6680 fi
6681
6682
6683 enablestring=
6684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6685 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6686 no_cache=0
6687 # Check whether --enable-constraints or --disable-constraints was given.
6688 if test "${enable_constraints+set}" = set; then
6689 enableval="$enable_constraints"
6690
6691 if test "$enableval" = yes; then
6692 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6693 else
6694 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6695 fi
6696
6697 else
6698
6699 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6700 if test "x$LINE" != x ; then
6701 eval "DEFAULT_$LINE"
6702 else
6703 no_cache=1
6704 fi
6705
6706 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6707
6708 fi;
6709
6710 eval "$ac_cv_use_constraints"
6711 if test "$no_cache" != 1; then
6712 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6713 fi
6714
6715 if test "$wxUSE_CONSTRAINTS" = yes; then
6716 echo "$as_me:$LINENO: result: yes" >&5
6717 echo "${ECHO_T}yes" >&6
6718 else
6719 echo "$as_me:$LINENO: result: no" >&5
6720 echo "${ECHO_T}no" >&6
6721 fi
6722
6723
6724 enablestring=
6725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6726 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6727 no_cache=0
6728 # Check whether --enable-printarch or --disable-printarch was given.
6729 if test "${enable_printarch+set}" = set; then
6730 enableval="$enable_printarch"
6731
6732 if test "$enableval" = yes; then
6733 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6734 else
6735 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6736 fi
6737
6738 else
6739
6740 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6741 if test "x$LINE" != x ; then
6742 eval "DEFAULT_$LINE"
6743 else
6744 no_cache=1
6745 fi
6746
6747 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6748
6749 fi;
6750
6751 eval "$ac_cv_use_printarch"
6752 if test "$no_cache" != 1; then
6753 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6754 fi
6755
6756 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6757 echo "$as_me:$LINENO: result: yes" >&5
6758 echo "${ECHO_T}yes" >&6
6759 else
6760 echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6
6762 fi
6763
6764
6765 enablestring=
6766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6767 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6768 no_cache=0
6769 # Check whether --enable-mdi or --disable-mdi was given.
6770 if test "${enable_mdi+set}" = set; then
6771 enableval="$enable_mdi"
6772
6773 if test "$enableval" = yes; then
6774 ac_cv_use_mdi='wxUSE_MDI=yes'
6775 else
6776 ac_cv_use_mdi='wxUSE_MDI=no'
6777 fi
6778
6779 else
6780
6781 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
6782 if test "x$LINE" != x ; then
6783 eval "DEFAULT_$LINE"
6784 else
6785 no_cache=1
6786 fi
6787
6788 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
6789
6790 fi;
6791
6792 eval "$ac_cv_use_mdi"
6793 if test "$no_cache" != 1; then
6794 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6795 fi
6796
6797 if test "$wxUSE_MDI" = yes; then
6798 echo "$as_me:$LINENO: result: yes" >&5
6799 echo "${ECHO_T}yes" >&6
6800 else
6801 echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6
6803 fi
6804
6805
6806 enablestring=
6807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6808 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6809 no_cache=0
6810 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6811 if test "${enable_mdidoc+set}" = set; then
6812 enableval="$enable_mdidoc"
6813
6814 if test "$enableval" = yes; then
6815 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6816 else
6817 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6818 fi
6819
6820 else
6821
6822 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6823 if test "x$LINE" != x ; then
6824 eval "DEFAULT_$LINE"
6825 else
6826 no_cache=1
6827 fi
6828
6829 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6830
6831 fi;
6832
6833 eval "$ac_cv_use_mdidoc"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6836 fi
6837
6838 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6839 echo "$as_me:$LINENO: result: yes" >&5
6840 echo "${ECHO_T}yes" >&6
6841 else
6842 echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6
6844 fi
6845
6846
6847 enablestring=
6848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6849 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6850 no_cache=0
6851 # Check whether --enable-loggui or --disable-loggui was given.
6852 if test "${enable_loggui+set}" = set; then
6853 enableval="$enable_loggui"
6854
6855 if test "$enableval" = yes; then
6856 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6857 else
6858 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6859 fi
6860
6861 else
6862
6863 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6864 if test "x$LINE" != x ; then
6865 eval "DEFAULT_$LINE"
6866 else
6867 no_cache=1
6868 fi
6869
6870 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6871
6872 fi;
6873
6874 eval "$ac_cv_use_loggui"
6875 if test "$no_cache" != 1; then
6876 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6877 fi
6878
6879 if test "$wxUSE_LOGGUI" = yes; then
6880 echo "$as_me:$LINENO: result: yes" >&5
6881 echo "${ECHO_T}yes" >&6
6882 else
6883 echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6
6885 fi
6886
6887
6888 enablestring=
6889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6890 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6891 no_cache=0
6892 # Check whether --enable-logwin or --disable-logwin was given.
6893 if test "${enable_logwin+set}" = set; then
6894 enableval="$enable_logwin"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6898 else
6899 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6900 fi
6901
6902 else
6903
6904 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6912
6913 fi;
6914
6915 eval "$ac_cv_use_logwin"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_LOGWINDOW" = yes; then
6921 echo "$as_me:$LINENO: result: yes" >&5
6922 echo "${ECHO_T}yes" >&6
6923 else
6924 echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6
6926 fi
6927
6928
6929 enablestring=
6930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6931 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6932 no_cache=0
6933 # Check whether --enable-logdialog or --disable-logdialog was given.
6934 if test "${enable_logdialog+set}" = set; then
6935 enableval="$enable_logdialog"
6936
6937 if test "$enableval" = yes; then
6938 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6939 else
6940 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6941 fi
6942
6943 else
6944
6945 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6953
6954 fi;
6955
6956 eval "$ac_cv_use_logdialog"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_LOGDIALOG" = yes; then
6962 echo "$as_me:$LINENO: result: yes" >&5
6963 echo "${ECHO_T}yes" >&6
6964 else
6965 echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6
6967 fi
6968
6969
6970 enablestring=
6971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6972 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6973 no_cache=0
6974 # Check whether --enable-webkit or --disable-webkit was given.
6975 if test "${enable_webkit+set}" = set; then
6976 enableval="$enable_webkit"
6977
6978 if test "$enableval" = yes; then
6979 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6980 else
6981 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6982 fi
6983
6984 else
6985
6986 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6987 if test "x$LINE" != x ; then
6988 eval "DEFAULT_$LINE"
6989 else
6990 no_cache=1
6991 fi
6992
6993 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6994
6995 fi;
6996
6997 eval "$ac_cv_use_webkit"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_WEBKIT" = yes; then
7003 echo "$as_me:$LINENO: result: yes" >&5
7004 echo "${ECHO_T}yes" >&6
7005 else
7006 echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6
7008 fi
7009
7010
7011
7012 enablestring=
7013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7014 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7015 no_cache=0
7016 # Check whether --enable-postscript or --disable-postscript was given.
7017 if test "${enable_postscript+set}" = set; then
7018 enableval="$enable_postscript"
7019
7020 if test "$enableval" = yes; then
7021 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7022 else
7023 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7024 fi
7025
7026 else
7027
7028 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7029 if test "x$LINE" != x ; then
7030 eval "DEFAULT_$LINE"
7031 else
7032 no_cache=1
7033 fi
7034
7035 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7036
7037 fi;
7038
7039 eval "$ac_cv_use_postscript"
7040 if test "$no_cache" != 1; then
7041 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7042 fi
7043
7044 if test "$wxUSE_POSTSCRIPT" = yes; then
7045 echo "$as_me:$LINENO: result: yes" >&5
7046 echo "${ECHO_T}yes" >&6
7047 else
7048 echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6
7050 fi
7051
7052
7053
7054
7055
7056 enablestring=
7057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7058 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7059 no_cache=0
7060 # Check whether --enable-prologio or --disable-prologio was given.
7061 if test "${enable_prologio+set}" = set; then
7062 enableval="$enable_prologio"
7063
7064 if test "$enableval" = yes; then
7065 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7066 else
7067 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7068 fi
7069
7070 else
7071
7072 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7073 if test "x$LINE" != x ; then
7074 eval "DEFAULT_$LINE"
7075 else
7076 no_cache=1
7077 fi
7078
7079 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7080
7081 fi;
7082
7083 eval "$ac_cv_use_prologio"
7084 if test "$no_cache" != 1; then
7085 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7086 fi
7087
7088 if test "$wxUSE_PROLOGIO" = yes; then
7089 echo "$as_me:$LINENO: result: yes" >&5
7090 echo "${ECHO_T}yes" >&6
7091 else
7092 echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6
7094 fi
7095
7096
7097 enablestring=
7098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7099 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7100 no_cache=0
7101 # Check whether --enable-resources or --disable-resources was given.
7102 if test "${enable_resources+set}" = set; then
7103 enableval="$enable_resources"
7104
7105 if test "$enableval" = yes; then
7106 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7107 else
7108 ac_cv_use_resources='wxUSE_RESOURCES=no'
7109 fi
7110
7111 else
7112
7113 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7114 if test "x$LINE" != x ; then
7115 eval "DEFAULT_$LINE"
7116 else
7117 no_cache=1
7118 fi
7119
7120 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7121
7122 fi;
7123
7124 eval "$ac_cv_use_resources"
7125 if test "$no_cache" != 1; then
7126 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7127 fi
7128
7129 if test "$wxUSE_RESOURCES" = yes; then
7130 echo "$as_me:$LINENO: result: yes" >&5
7131 echo "${ECHO_T}yes" >&6
7132 else
7133 echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6
7135 fi
7136
7137
7138
7139
7140 enablestring=
7141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7142 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7143 no_cache=0
7144 # Check whether --enable-clipboard or --disable-clipboard was given.
7145 if test "${enable_clipboard+set}" = set; then
7146 enableval="$enable_clipboard"
7147
7148 if test "$enableval" = yes; then
7149 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7150 else
7151 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7152 fi
7153
7154 else
7155
7156 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7157 if test "x$LINE" != x ; then
7158 eval "DEFAULT_$LINE"
7159 else
7160 no_cache=1
7161 fi
7162
7163 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7164
7165 fi;
7166
7167 eval "$ac_cv_use_clipboard"
7168 if test "$no_cache" != 1; then
7169 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7170 fi
7171
7172 if test "$wxUSE_CLIPBOARD" = yes; then
7173 echo "$as_me:$LINENO: result: yes" >&5
7174 echo "${ECHO_T}yes" >&6
7175 else
7176 echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7178 fi
7179
7180
7181 enablestring=
7182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7183 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7184 no_cache=0
7185 # Check whether --enable-dnd or --disable-dnd was given.
7186 if test "${enable_dnd+set}" = set; then
7187 enableval="$enable_dnd"
7188
7189 if test "$enableval" = yes; then
7190 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7191 else
7192 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7193 fi
7194
7195 else
7196
7197 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7198 if test "x$LINE" != x ; then
7199 eval "DEFAULT_$LINE"
7200 else
7201 no_cache=1
7202 fi
7203
7204 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7205
7206 fi;
7207
7208 eval "$ac_cv_use_dnd"
7209 if test "$no_cache" != 1; then
7210 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7211 fi
7212
7213 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7214 echo "$as_me:$LINENO: result: yes" >&5
7215 echo "${ECHO_T}yes" >&6
7216 else
7217 echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7219 fi
7220
7221
7222 enablestring=
7223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7224 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7225 no_cache=0
7226 # Check whether --enable-metafile or --disable-metafile was given.
7227 if test "${enable_metafile+set}" = set; then
7228 enableval="$enable_metafile"
7229
7230 if test "$enableval" = yes; then
7231 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7232 else
7233 ac_cv_use_metafile='wxUSE_METAFILE=no'
7234 fi
7235
7236 else
7237
7238 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7239 if test "x$LINE" != x ; then
7240 eval "DEFAULT_$LINE"
7241 else
7242 no_cache=1
7243 fi
7244
7245 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7246
7247 fi;
7248
7249 eval "$ac_cv_use_metafile"
7250 if test "$no_cache" != 1; then
7251 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7252 fi
7253
7254 if test "$wxUSE_METAFILE" = yes; then
7255 echo "$as_me:$LINENO: result: yes" >&5
7256 echo "${ECHO_T}yes" >&6
7257 else
7258 echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6
7260 fi
7261
7262
7263
7264
7265
7266 enablestring=
7267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7268 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7269 no_cache=0
7270 # Check whether --enable-controls or --disable-controls was given.
7271 if test "${enable_controls+set}" = set; then
7272 enableval="$enable_controls"
7273
7274 if test "$enableval" = yes; then
7275 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7276 else
7277 ac_cv_use_controls='wxUSE_CONTROLS=no'
7278 fi
7279
7280 else
7281
7282 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7283 if test "x$LINE" != x ; then
7284 eval "DEFAULT_$LINE"
7285 else
7286 no_cache=1
7287 fi
7288
7289 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7290
7291 fi;
7292
7293 eval "$ac_cv_use_controls"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_CONTROLS" = yes; then
7299 echo "$as_me:$LINENO: result: yes" >&5
7300 echo "${ECHO_T}yes" >&6
7301 else
7302 echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7304 fi
7305
7306
7307 if test "$wxUSE_CONTROLS" = "yes"; then
7308 DEFAULT_wxUSE_ACCEL=yes
7309 DEFAULT_wxUSE_BMPBUTTON=yes
7310 DEFAULT_wxUSE_BUTTON=yes
7311 DEFAULT_wxUSE_CALCTRL=yes
7312 DEFAULT_wxUSE_CARET=yes
7313 DEFAULT_wxUSE_COMBOBOX=yes
7314 DEFAULT_wxUSE_CHECKBOX=yes
7315 DEFAULT_wxUSE_CHECKLISTBOX=yes
7316 DEFAULT_wxUSE_CHOICE=yes
7317 DEFAULT_wxUSE_CHOICEBOOK=yes
7318 DEFAULT_wxUSE_DATEPICKCTRL=yes
7319 DEFAULT_wxUSE_GAUGE=yes
7320 DEFAULT_wxUSE_GRID=yes
7321 DEFAULT_wxUSE_IMAGLIST=yes
7322 DEFAULT_wxUSE_LISTBOOK=yes
7323 DEFAULT_wxUSE_LISTBOX=yes
7324 DEFAULT_wxUSE_LISTCTRL=yes
7325 DEFAULT_wxUSE_NOTEBOOK=yes
7326 DEFAULT_wxUSE_RADIOBOX=yes
7327 DEFAULT_wxUSE_RADIOBTN=yes
7328 DEFAULT_wxUSE_SASH=yes
7329 DEFAULT_wxUSE_SCROLLBAR=yes
7330 DEFAULT_wxUSE_SLIDER=yes
7331 DEFAULT_wxUSE_SPINBTN=yes
7332 DEFAULT_wxUSE_SPINCTRL=yes
7333 DEFAULT_wxUSE_SPLITTER=yes
7334 DEFAULT_wxUSE_STATBMP=yes
7335 DEFAULT_wxUSE_STATBOX=yes
7336 DEFAULT_wxUSE_STATLINE=yes
7337 DEFAULT_wxUSE_STATUSBAR=yes
7338 DEFAULT_wxUSE_TAB_DIALOG=yes
7339 DEFAULT_wxUSE_TOGGLEBTN=yes
7340 DEFAULT_wxUSE_TOOLBAR=yes
7341 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7342 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7343 DEFAULT_wxUSE_TOOLTIPS=yes
7344 DEFAULT_wxUSE_TREEBOOK=yes
7345 DEFAULT_wxUSE_TREECTRL=yes
7346 DEFAULT_wxUSE_POPUPWIN=yes
7347 DEFAULT_wxUSE_TIPWINDOW=yes
7348 elif test "$wxUSE_CONTROLS" = "no"; then
7349 DEFAULT_wxUSE_ACCEL=no
7350 DEFAULT_wxUSE_BMPBUTTON=no
7351 DEFAULT_wxUSE_BUTTON=no
7352 DEFAULT_wxUSE_CALCTRL=no
7353 DEFAULT_wxUSE_CARET=no
7354 DEFAULT_wxUSE_COMBOBOX=no
7355 DEFAULT_wxUSE_CHECKBOX=no
7356 DEFAULT_wxUSE_CHECKLISTBOX=no
7357 DEFAULT_wxUSE_CHOICE=no
7358 DEFAULT_wxUSE_CHOICEBOOK=no
7359 DEFAULT_wxUSE_DATEPICKCTRL=no
7360 DEFAULT_wxUSE_GAUGE=no
7361 DEFAULT_wxUSE_GRID=no
7362 DEFAULT_wxUSE_IMAGLIST=no
7363 DEFAULT_wxUSE_LISTBOOK=no
7364 DEFAULT_wxUSE_LISTBOX=no
7365 DEFAULT_wxUSE_LISTCTRL=no
7366 DEFAULT_wxUSE_NOTEBOOK=no
7367 DEFAULT_wxUSE_RADIOBOX=no
7368 DEFAULT_wxUSE_RADIOBTN=no
7369 DEFAULT_wxUSE_SASH=no
7370 DEFAULT_wxUSE_SCROLLBAR=no
7371 DEFAULT_wxUSE_SLIDER=no
7372 DEFAULT_wxUSE_SPINBTN=no
7373 DEFAULT_wxUSE_SPINCTRL=no
7374 DEFAULT_wxUSE_SPLITTER=no
7375 DEFAULT_wxUSE_STATBMP=no
7376 DEFAULT_wxUSE_STATBOX=no
7377 DEFAULT_wxUSE_STATLINE=no
7378 DEFAULT_wxUSE_STATUSBAR=no
7379 DEFAULT_wxUSE_TAB_DIALOG=no
7380 DEFAULT_wxUSE_TOGGLEBTN=no
7381 DEFAULT_wxUSE_TOOLBAR=no
7382 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7383 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7384 DEFAULT_wxUSE_TOOLTIPS=no
7385 DEFAULT_wxUSE_TREEBOOK=no
7386 DEFAULT_wxUSE_TREECTRL=no
7387 DEFAULT_wxUSE_POPUPWIN=no
7388 DEFAULT_wxUSE_TIPWINDOW=no
7389 fi
7390
7391
7392 enablestring=
7393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7394 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7395 no_cache=0
7396 # Check whether --enable-accel or --disable-accel was given.
7397 if test "${enable_accel+set}" = set; then
7398 enableval="$enable_accel"
7399
7400 if test "$enableval" = yes; then
7401 ac_cv_use_accel='wxUSE_ACCEL=yes'
7402 else
7403 ac_cv_use_accel='wxUSE_ACCEL=no'
7404 fi
7405
7406 else
7407
7408 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7409 if test "x$LINE" != x ; then
7410 eval "DEFAULT_$LINE"
7411 else
7412 no_cache=1
7413 fi
7414
7415 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7416
7417 fi;
7418
7419 eval "$ac_cv_use_accel"
7420 if test "$no_cache" != 1; then
7421 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7422 fi
7423
7424 if test "$wxUSE_ACCEL" = yes; then
7425 echo "$as_me:$LINENO: result: yes" >&5
7426 echo "${ECHO_T}yes" >&6
7427 else
7428 echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7430 fi
7431
7432
7433 enablestring=
7434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7435 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7436 no_cache=0
7437 # Check whether --enable-button or --disable-button was given.
7438 if test "${enable_button+set}" = set; then
7439 enableval="$enable_button"
7440
7441 if test "$enableval" = yes; then
7442 ac_cv_use_button='wxUSE_BUTTON=yes'
7443 else
7444 ac_cv_use_button='wxUSE_BUTTON=no'
7445 fi
7446
7447 else
7448
7449 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7450 if test "x$LINE" != x ; then
7451 eval "DEFAULT_$LINE"
7452 else
7453 no_cache=1
7454 fi
7455
7456 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7457
7458 fi;
7459
7460 eval "$ac_cv_use_button"
7461 if test "$no_cache" != 1; then
7462 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7463 fi
7464
7465 if test "$wxUSE_BUTTON" = yes; then
7466 echo "$as_me:$LINENO: result: yes" >&5
7467 echo "${ECHO_T}yes" >&6
7468 else
7469 echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7471 fi
7472
7473
7474 enablestring=
7475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7476 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7477 no_cache=0
7478 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7479 if test "${enable_bmpbutton+set}" = set; then
7480 enableval="$enable_bmpbutton"
7481
7482 if test "$enableval" = yes; then
7483 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7484 else
7485 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7486 fi
7487
7488 else
7489
7490 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7491 if test "x$LINE" != x ; then
7492 eval "DEFAULT_$LINE"
7493 else
7494 no_cache=1
7495 fi
7496
7497 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7498
7499 fi;
7500
7501 eval "$ac_cv_use_bmpbutton"
7502 if test "$no_cache" != 1; then
7503 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7504 fi
7505
7506 if test "$wxUSE_BMPBUTTON" = yes; then
7507 echo "$as_me:$LINENO: result: yes" >&5
7508 echo "${ECHO_T}yes" >&6
7509 else
7510 echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6
7512 fi
7513
7514
7515 enablestring=
7516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7517 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7518 no_cache=0
7519 # Check whether --enable-calendar or --disable-calendar was given.
7520 if test "${enable_calendar+set}" = set; then
7521 enableval="$enable_calendar"
7522
7523 if test "$enableval" = yes; then
7524 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7525 else
7526 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7527 fi
7528
7529 else
7530
7531 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7532 if test "x$LINE" != x ; then
7533 eval "DEFAULT_$LINE"
7534 else
7535 no_cache=1
7536 fi
7537
7538 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7539
7540 fi;
7541
7542 eval "$ac_cv_use_calendar"
7543 if test "$no_cache" != 1; then
7544 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7545 fi
7546
7547 if test "$wxUSE_CALCTRL" = yes; then
7548 echo "$as_me:$LINENO: result: yes" >&5
7549 echo "${ECHO_T}yes" >&6
7550 else
7551 echo "$as_me:$LINENO: result: no" >&5
7552 echo "${ECHO_T}no" >&6
7553 fi
7554
7555
7556 enablestring=
7557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7558 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7559 no_cache=0
7560 # Check whether --enable-caret or --disable-caret was given.
7561 if test "${enable_caret+set}" = set; then
7562 enableval="$enable_caret"
7563
7564 if test "$enableval" = yes; then
7565 ac_cv_use_caret='wxUSE_CARET=yes'
7566 else
7567 ac_cv_use_caret='wxUSE_CARET=no'
7568 fi
7569
7570 else
7571
7572 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7573 if test "x$LINE" != x ; then
7574 eval "DEFAULT_$LINE"
7575 else
7576 no_cache=1
7577 fi
7578
7579 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7580
7581 fi;
7582
7583 eval "$ac_cv_use_caret"
7584 if test "$no_cache" != 1; then
7585 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7586 fi
7587
7588 if test "$wxUSE_CARET" = yes; then
7589 echo "$as_me:$LINENO: result: yes" >&5
7590 echo "${ECHO_T}yes" >&6
7591 else
7592 echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6
7594 fi
7595
7596
7597 enablestring=
7598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7599 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7600 no_cache=0
7601 # Check whether --enable-checkbox or --disable-checkbox was given.
7602 if test "${enable_checkbox+set}" = set; then
7603 enableval="$enable_checkbox"
7604
7605 if test "$enableval" = yes; then
7606 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7607 else
7608 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7609 fi
7610
7611 else
7612
7613 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7614 if test "x$LINE" != x ; then
7615 eval "DEFAULT_$LINE"
7616 else
7617 no_cache=1
7618 fi
7619
7620 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7621
7622 fi;
7623
7624 eval "$ac_cv_use_checkbox"
7625 if test "$no_cache" != 1; then
7626 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7627 fi
7628
7629 if test "$wxUSE_CHECKBOX" = yes; then
7630 echo "$as_me:$LINENO: result: yes" >&5
7631 echo "${ECHO_T}yes" >&6
7632 else
7633 echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6
7635 fi
7636
7637
7638 enablestring=
7639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7640 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7641 no_cache=0
7642 # Check whether --enable-checklst or --disable-checklst was given.
7643 if test "${enable_checklst+set}" = set; then
7644 enableval="$enable_checklst"
7645
7646 if test "$enableval" = yes; then
7647 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7648 else
7649 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7650 fi
7651
7652 else
7653
7654 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7655 if test "x$LINE" != x ; then
7656 eval "DEFAULT_$LINE"
7657 else
7658 no_cache=1
7659 fi
7660
7661 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7662
7663 fi;
7664
7665 eval "$ac_cv_use_checklst"
7666 if test "$no_cache" != 1; then
7667 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7668 fi
7669
7670 if test "$wxUSE_CHECKLST" = yes; then
7671 echo "$as_me:$LINENO: result: yes" >&5
7672 echo "${ECHO_T}yes" >&6
7673 else
7674 echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6
7676 fi
7677
7678
7679 enablestring=
7680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7681 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7682 no_cache=0
7683 # Check whether --enable-choice or --disable-choice was given.
7684 if test "${enable_choice+set}" = set; then
7685 enableval="$enable_choice"
7686
7687 if test "$enableval" = yes; then
7688 ac_cv_use_choice='wxUSE_CHOICE=yes'
7689 else
7690 ac_cv_use_choice='wxUSE_CHOICE=no'
7691 fi
7692
7693 else
7694
7695 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7696 if test "x$LINE" != x ; then
7697 eval "DEFAULT_$LINE"
7698 else
7699 no_cache=1
7700 fi
7701
7702 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7703
7704 fi;
7705
7706 eval "$ac_cv_use_choice"
7707 if test "$no_cache" != 1; then
7708 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7709 fi
7710
7711 if test "$wxUSE_CHOICE" = yes; then
7712 echo "$as_me:$LINENO: result: yes" >&5
7713 echo "${ECHO_T}yes" >&6
7714 else
7715 echo "$as_me:$LINENO: result: no" >&5
7716 echo "${ECHO_T}no" >&6
7717 fi
7718
7719
7720 enablestring=
7721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7722 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7723 no_cache=0
7724 # Check whether --enable-choicebook or --disable-choicebook was given.
7725 if test "${enable_choicebook+set}" = set; then
7726 enableval="$enable_choicebook"
7727
7728 if test "$enableval" = yes; then
7729 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7730 else
7731 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7732 fi
7733
7734 else
7735
7736 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7737 if test "x$LINE" != x ; then
7738 eval "DEFAULT_$LINE"
7739 else
7740 no_cache=1
7741 fi
7742
7743 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7744
7745 fi;
7746
7747 eval "$ac_cv_use_choicebook"
7748 if test "$no_cache" != 1; then
7749 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7750 fi
7751
7752 if test "$wxUSE_CHOICEBOOK" = yes; then
7753 echo "$as_me:$LINENO: result: yes" >&5
7754 echo "${ECHO_T}yes" >&6
7755 else
7756 echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6
7758 fi
7759
7760
7761 enablestring=
7762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7763 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7764 no_cache=0
7765 # Check whether --enable-combobox or --disable-combobox was given.
7766 if test "${enable_combobox+set}" = set; then
7767 enableval="$enable_combobox"
7768
7769 if test "$enableval" = yes; then
7770 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7771 else
7772 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7773 fi
7774
7775 else
7776
7777 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7778 if test "x$LINE" != x ; then
7779 eval "DEFAULT_$LINE"
7780 else
7781 no_cache=1
7782 fi
7783
7784 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7785
7786 fi;
7787
7788 eval "$ac_cv_use_combobox"
7789 if test "$no_cache" != 1; then
7790 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7791 fi
7792
7793 if test "$wxUSE_COMBOBOX" = yes; then
7794 echo "$as_me:$LINENO: result: yes" >&5
7795 echo "${ECHO_T}yes" >&6
7796 else
7797 echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6
7799 fi
7800
7801
7802 enablestring=
7803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7804 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7805 no_cache=0
7806 # Check whether --enable-datepick or --disable-datepick was given.
7807 if test "${enable_datepick+set}" = set; then
7808 enableval="$enable_datepick"
7809
7810 if test "$enableval" = yes; then
7811 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7812 else
7813 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7814 fi
7815
7816 else
7817
7818 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7819 if test "x$LINE" != x ; then
7820 eval "DEFAULT_$LINE"
7821 else
7822 no_cache=1
7823 fi
7824
7825 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7826
7827 fi;
7828
7829 eval "$ac_cv_use_datepick"
7830 if test "$no_cache" != 1; then
7831 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7832 fi
7833
7834 if test "$wxUSE_DATEPICKCTRL" = yes; then
7835 echo "$as_me:$LINENO: result: yes" >&5
7836 echo "${ECHO_T}yes" >&6
7837 else
7838 echo "$as_me:$LINENO: result: no" >&5
7839 echo "${ECHO_T}no" >&6
7840 fi
7841
7842
7843 enablestring=
7844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7845 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7846 no_cache=0
7847 # Check whether --enable-display or --disable-display was given.
7848 if test "${enable_display+set}" = set; then
7849 enableval="$enable_display"
7850
7851 if test "$enableval" = yes; then
7852 ac_cv_use_display='wxUSE_DISPLAY=yes'
7853 else
7854 ac_cv_use_display='wxUSE_DISPLAY=no'
7855 fi
7856
7857 else
7858
7859 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7860 if test "x$LINE" != x ; then
7861 eval "DEFAULT_$LINE"
7862 else
7863 no_cache=1
7864 fi
7865
7866 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7867
7868 fi;
7869
7870 eval "$ac_cv_use_display"
7871 if test "$no_cache" != 1; then
7872 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7873 fi
7874
7875 if test "$wxUSE_DISPLAY" = yes; then
7876 echo "$as_me:$LINENO: result: yes" >&5
7877 echo "${ECHO_T}yes" >&6
7878 else
7879 echo "$as_me:$LINENO: result: no" >&5
7880 echo "${ECHO_T}no" >&6
7881 fi
7882
7883
7884 enablestring=
7885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7886 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7887 no_cache=0
7888 # Check whether --enable-gauge or --disable-gauge was given.
7889 if test "${enable_gauge+set}" = set; then
7890 enableval="$enable_gauge"
7891
7892 if test "$enableval" = yes; then
7893 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7894 else
7895 ac_cv_use_gauge='wxUSE_GAUGE=no'
7896 fi
7897
7898 else
7899
7900 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7901 if test "x$LINE" != x ; then
7902 eval "DEFAULT_$LINE"
7903 else
7904 no_cache=1
7905 fi
7906
7907 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7908
7909 fi;
7910
7911 eval "$ac_cv_use_gauge"
7912 if test "$no_cache" != 1; then
7913 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7914 fi
7915
7916 if test "$wxUSE_GAUGE" = yes; then
7917 echo "$as_me:$LINENO: result: yes" >&5
7918 echo "${ECHO_T}yes" >&6
7919 else
7920 echo "$as_me:$LINENO: result: no" >&5
7921 echo "${ECHO_T}no" >&6
7922 fi
7923
7924
7925 enablestring=
7926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7927 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7928 no_cache=0
7929 # Check whether --enable-grid or --disable-grid was given.
7930 if test "${enable_grid+set}" = set; then
7931 enableval="$enable_grid"
7932
7933 if test "$enableval" = yes; then
7934 ac_cv_use_grid='wxUSE_GRID=yes'
7935 else
7936 ac_cv_use_grid='wxUSE_GRID=no'
7937 fi
7938
7939 else
7940
7941 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7942 if test "x$LINE" != x ; then
7943 eval "DEFAULT_$LINE"
7944 else
7945 no_cache=1
7946 fi
7947
7948 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7949
7950 fi;
7951
7952 eval "$ac_cv_use_grid"
7953 if test "$no_cache" != 1; then
7954 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7955 fi
7956
7957 if test "$wxUSE_GRID" = yes; then
7958 echo "$as_me:$LINENO: result: yes" >&5
7959 echo "${ECHO_T}yes" >&6
7960 else
7961 echo "$as_me:$LINENO: result: no" >&5
7962 echo "${ECHO_T}no" >&6
7963 fi
7964
7965
7966 enablestring=
7967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7968 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7969 no_cache=0
7970 # Check whether --enable-imaglist or --disable-imaglist was given.
7971 if test "${enable_imaglist+set}" = set; then
7972 enableval="$enable_imaglist"
7973
7974 if test "$enableval" = yes; then
7975 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7976 else
7977 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7978 fi
7979
7980 else
7981
7982 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7983 if test "x$LINE" != x ; then
7984 eval "DEFAULT_$LINE"
7985 else
7986 no_cache=1
7987 fi
7988
7989 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7990
7991 fi;
7992
7993 eval "$ac_cv_use_imaglist"
7994 if test "$no_cache" != 1; then
7995 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7996 fi
7997
7998 if test "$wxUSE_IMAGLIST" = yes; then
7999 echo "$as_me:$LINENO: result: yes" >&5
8000 echo "${ECHO_T}yes" >&6
8001 else
8002 echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6
8004 fi
8005
8006
8007 enablestring=
8008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8009 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8010 no_cache=0
8011 # Check whether --enable-listbook or --disable-listbook was given.
8012 if test "${enable_listbook+set}" = set; then
8013 enableval="$enable_listbook"
8014
8015 if test "$enableval" = yes; then
8016 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8017 else
8018 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8019 fi
8020
8021 else
8022
8023 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8024 if test "x$LINE" != x ; then
8025 eval "DEFAULT_$LINE"
8026 else
8027 no_cache=1
8028 fi
8029
8030 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8031
8032 fi;
8033
8034 eval "$ac_cv_use_listbook"
8035 if test "$no_cache" != 1; then
8036 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8037 fi
8038
8039 if test "$wxUSE_LISTBOOK" = yes; then
8040 echo "$as_me:$LINENO: result: yes" >&5
8041 echo "${ECHO_T}yes" >&6
8042 else
8043 echo "$as_me:$LINENO: result: no" >&5
8044 echo "${ECHO_T}no" >&6
8045 fi
8046
8047
8048 enablestring=
8049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8050 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8051 no_cache=0
8052 # Check whether --enable-listbox or --disable-listbox was given.
8053 if test "${enable_listbox+set}" = set; then
8054 enableval="$enable_listbox"
8055
8056 if test "$enableval" = yes; then
8057 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8058 else
8059 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8060 fi
8061
8062 else
8063
8064 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8065 if test "x$LINE" != x ; then
8066 eval "DEFAULT_$LINE"
8067 else
8068 no_cache=1
8069 fi
8070
8071 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8072
8073 fi;
8074
8075 eval "$ac_cv_use_listbox"
8076 if test "$no_cache" != 1; then
8077 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8078 fi
8079
8080 if test "$wxUSE_LISTBOX" = yes; then
8081 echo "$as_me:$LINENO: result: yes" >&5
8082 echo "${ECHO_T}yes" >&6
8083 else
8084 echo "$as_me:$LINENO: result: no" >&5
8085 echo "${ECHO_T}no" >&6
8086 fi
8087
8088
8089 enablestring=
8090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8091 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8092 no_cache=0
8093 # Check whether --enable-listctrl or --disable-listctrl was given.
8094 if test "${enable_listctrl+set}" = set; then
8095 enableval="$enable_listctrl"
8096
8097 if test "$enableval" = yes; then
8098 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8099 else
8100 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8101 fi
8102
8103 else
8104
8105 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8106 if test "x$LINE" != x ; then
8107 eval "DEFAULT_$LINE"
8108 else
8109 no_cache=1
8110 fi
8111
8112 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8113
8114 fi;
8115
8116 eval "$ac_cv_use_listctrl"
8117 if test "$no_cache" != 1; then
8118 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8119 fi
8120
8121 if test "$wxUSE_LISTCTRL" = yes; then
8122 echo "$as_me:$LINENO: result: yes" >&5
8123 echo "${ECHO_T}yes" >&6
8124 else
8125 echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6
8127 fi
8128
8129
8130 enablestring=
8131 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8132 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8133 no_cache=0
8134 # Check whether --enable-notebook or --disable-notebook was given.
8135 if test "${enable_notebook+set}" = set; then
8136 enableval="$enable_notebook"
8137
8138 if test "$enableval" = yes; then
8139 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8140 else
8141 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8142 fi
8143
8144 else
8145
8146 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8147 if test "x$LINE" != x ; then
8148 eval "DEFAULT_$LINE"
8149 else
8150 no_cache=1
8151 fi
8152
8153 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8154
8155 fi;
8156
8157 eval "$ac_cv_use_notebook"
8158 if test "$no_cache" != 1; then
8159 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8160 fi
8161
8162 if test "$wxUSE_NOTEBOOK" = yes; then
8163 echo "$as_me:$LINENO: result: yes" >&5
8164 echo "${ECHO_T}yes" >&6
8165 else
8166 echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8168 fi
8169
8170
8171 enablestring=
8172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8173 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8174 no_cache=0
8175 # Check whether --enable-radiobox or --disable-radiobox was given.
8176 if test "${enable_radiobox+set}" = set; then
8177 enableval="$enable_radiobox"
8178
8179 if test "$enableval" = yes; then
8180 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8181 else
8182 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8183 fi
8184
8185 else
8186
8187 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8188 if test "x$LINE" != x ; then
8189 eval "DEFAULT_$LINE"
8190 else
8191 no_cache=1
8192 fi
8193
8194 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8195
8196 fi;
8197
8198 eval "$ac_cv_use_radiobox"
8199 if test "$no_cache" != 1; then
8200 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8201 fi
8202
8203 if test "$wxUSE_RADIOBOX" = yes; then
8204 echo "$as_me:$LINENO: result: yes" >&5
8205 echo "${ECHO_T}yes" >&6
8206 else
8207 echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6
8209 fi
8210
8211
8212 enablestring=
8213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8214 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8215 no_cache=0
8216 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8217 if test "${enable_radiobtn+set}" = set; then
8218 enableval="$enable_radiobtn"
8219
8220 if test "$enableval" = yes; then
8221 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8222 else
8223 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8224 fi
8225
8226 else
8227
8228 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8229 if test "x$LINE" != x ; then
8230 eval "DEFAULT_$LINE"
8231 else
8232 no_cache=1
8233 fi
8234
8235 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8236
8237 fi;
8238
8239 eval "$ac_cv_use_radiobtn"
8240 if test "$no_cache" != 1; then
8241 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8242 fi
8243
8244 if test "$wxUSE_RADIOBTN" = yes; then
8245 echo "$as_me:$LINENO: result: yes" >&5
8246 echo "${ECHO_T}yes" >&6
8247 else
8248 echo "$as_me:$LINENO: result: no" >&5
8249 echo "${ECHO_T}no" >&6
8250 fi
8251
8252
8253 enablestring=
8254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8255 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8256 no_cache=0
8257 # Check whether --enable-sash or --disable-sash was given.
8258 if test "${enable_sash+set}" = set; then
8259 enableval="$enable_sash"
8260
8261 if test "$enableval" = yes; then
8262 ac_cv_use_sash='wxUSE_SASH=yes'
8263 else
8264 ac_cv_use_sash='wxUSE_SASH=no'
8265 fi
8266
8267 else
8268
8269 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8270 if test "x$LINE" != x ; then
8271 eval "DEFAULT_$LINE"
8272 else
8273 no_cache=1
8274 fi
8275
8276 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8277
8278 fi;
8279
8280 eval "$ac_cv_use_sash"
8281 if test "$no_cache" != 1; then
8282 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8283 fi
8284
8285 if test "$wxUSE_SASH" = yes; then
8286 echo "$as_me:$LINENO: result: yes" >&5
8287 echo "${ECHO_T}yes" >&6
8288 else
8289 echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6
8291 fi
8292
8293
8294 enablestring=
8295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8296 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8297 no_cache=0
8298 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8299 if test "${enable_scrollbar+set}" = set; then
8300 enableval="$enable_scrollbar"
8301
8302 if test "$enableval" = yes; then
8303 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8304 else
8305 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8306 fi
8307
8308 else
8309
8310 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8311 if test "x$LINE" != x ; then
8312 eval "DEFAULT_$LINE"
8313 else
8314 no_cache=1
8315 fi
8316
8317 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8318
8319 fi;
8320
8321 eval "$ac_cv_use_scrollbar"
8322 if test "$no_cache" != 1; then
8323 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8324 fi
8325
8326 if test "$wxUSE_SCROLLBAR" = yes; then
8327 echo "$as_me:$LINENO: result: yes" >&5
8328 echo "${ECHO_T}yes" >&6
8329 else
8330 echo "$as_me:$LINENO: result: no" >&5
8331 echo "${ECHO_T}no" >&6
8332 fi
8333
8334
8335 enablestring=
8336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8337 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8338 no_cache=0
8339 # Check whether --enable-slider or --disable-slider was given.
8340 if test "${enable_slider+set}" = set; then
8341 enableval="$enable_slider"
8342
8343 if test "$enableval" = yes; then
8344 ac_cv_use_slider='wxUSE_SLIDER=yes'
8345 else
8346 ac_cv_use_slider='wxUSE_SLIDER=no'
8347 fi
8348
8349 else
8350
8351 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8352 if test "x$LINE" != x ; then
8353 eval "DEFAULT_$LINE"
8354 else
8355 no_cache=1
8356 fi
8357
8358 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8359
8360 fi;
8361
8362 eval "$ac_cv_use_slider"
8363 if test "$no_cache" != 1; then
8364 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8365 fi
8366
8367 if test "$wxUSE_SLIDER" = yes; then
8368 echo "$as_me:$LINENO: result: yes" >&5
8369 echo "${ECHO_T}yes" >&6
8370 else
8371 echo "$as_me:$LINENO: result: no" >&5
8372 echo "${ECHO_T}no" >&6
8373 fi
8374
8375
8376 enablestring=
8377 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8378 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8379 no_cache=0
8380 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8381 if test "${enable_spinbtn+set}" = set; then
8382 enableval="$enable_spinbtn"
8383
8384 if test "$enableval" = yes; then
8385 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8386 else
8387 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8388 fi
8389
8390 else
8391
8392 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8393 if test "x$LINE" != x ; then
8394 eval "DEFAULT_$LINE"
8395 else
8396 no_cache=1
8397 fi
8398
8399 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8400
8401 fi;
8402
8403 eval "$ac_cv_use_spinbtn"
8404 if test "$no_cache" != 1; then
8405 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8406 fi
8407
8408 if test "$wxUSE_SPINBTN" = yes; then
8409 echo "$as_me:$LINENO: result: yes" >&5
8410 echo "${ECHO_T}yes" >&6
8411 else
8412 echo "$as_me:$LINENO: result: no" >&5
8413 echo "${ECHO_T}no" >&6
8414 fi
8415
8416
8417 enablestring=
8418 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8419 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8420 no_cache=0
8421 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8422 if test "${enable_spinctrl+set}" = set; then
8423 enableval="$enable_spinctrl"
8424
8425 if test "$enableval" = yes; then
8426 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8427 else
8428 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8429 fi
8430
8431 else
8432
8433 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8434 if test "x$LINE" != x ; then
8435 eval "DEFAULT_$LINE"
8436 else
8437 no_cache=1
8438 fi
8439
8440 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8441
8442 fi;
8443
8444 eval "$ac_cv_use_spinctrl"
8445 if test "$no_cache" != 1; then
8446 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8447 fi
8448
8449 if test "$wxUSE_SPINCTRL" = yes; then
8450 echo "$as_me:$LINENO: result: yes" >&5
8451 echo "${ECHO_T}yes" >&6
8452 else
8453 echo "$as_me:$LINENO: result: no" >&5
8454 echo "${ECHO_T}no" >&6
8455 fi
8456
8457
8458 enablestring=
8459 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8460 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8461 no_cache=0
8462 # Check whether --enable-splitter or --disable-splitter was given.
8463 if test "${enable_splitter+set}" = set; then
8464 enableval="$enable_splitter"
8465
8466 if test "$enableval" = yes; then
8467 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8468 else
8469 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8470 fi
8471
8472 else
8473
8474 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8475 if test "x$LINE" != x ; then
8476 eval "DEFAULT_$LINE"
8477 else
8478 no_cache=1
8479 fi
8480
8481 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8482
8483 fi;
8484
8485 eval "$ac_cv_use_splitter"
8486 if test "$no_cache" != 1; then
8487 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8488 fi
8489
8490 if test "$wxUSE_SPLITTER" = yes; then
8491 echo "$as_me:$LINENO: result: yes" >&5
8492 echo "${ECHO_T}yes" >&6
8493 else
8494 echo "$as_me:$LINENO: result: no" >&5
8495 echo "${ECHO_T}no" >&6
8496 fi
8497
8498
8499 enablestring=
8500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8501 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8502 no_cache=0
8503 # Check whether --enable-statbmp or --disable-statbmp was given.
8504 if test "${enable_statbmp+set}" = set; then
8505 enableval="$enable_statbmp"
8506
8507 if test "$enableval" = yes; then
8508 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8509 else
8510 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8511 fi
8512
8513 else
8514
8515 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8516 if test "x$LINE" != x ; then
8517 eval "DEFAULT_$LINE"
8518 else
8519 no_cache=1
8520 fi
8521
8522 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8523
8524 fi;
8525
8526 eval "$ac_cv_use_statbmp"
8527 if test "$no_cache" != 1; then
8528 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8529 fi
8530
8531 if test "$wxUSE_STATBMP" = yes; then
8532 echo "$as_me:$LINENO: result: yes" >&5
8533 echo "${ECHO_T}yes" >&6
8534 else
8535 echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6
8537 fi
8538
8539
8540 enablestring=
8541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8542 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8543 no_cache=0
8544 # Check whether --enable-statbox or --disable-statbox was given.
8545 if test "${enable_statbox+set}" = set; then
8546 enableval="$enable_statbox"
8547
8548 if test "$enableval" = yes; then
8549 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8550 else
8551 ac_cv_use_statbox='wxUSE_STATBOX=no'
8552 fi
8553
8554 else
8555
8556 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8557 if test "x$LINE" != x ; then
8558 eval "DEFAULT_$LINE"
8559 else
8560 no_cache=1
8561 fi
8562
8563 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8564
8565 fi;
8566
8567 eval "$ac_cv_use_statbox"
8568 if test "$no_cache" != 1; then
8569 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8570 fi
8571
8572 if test "$wxUSE_STATBOX" = yes; then
8573 echo "$as_me:$LINENO: result: yes" >&5
8574 echo "${ECHO_T}yes" >&6
8575 else
8576 echo "$as_me:$LINENO: result: no" >&5
8577 echo "${ECHO_T}no" >&6
8578 fi
8579
8580
8581 enablestring=
8582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8583 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8584 no_cache=0
8585 # Check whether --enable-statline or --disable-statline was given.
8586 if test "${enable_statline+set}" = set; then
8587 enableval="$enable_statline"
8588
8589 if test "$enableval" = yes; then
8590 ac_cv_use_statline='wxUSE_STATLINE=yes'
8591 else
8592 ac_cv_use_statline='wxUSE_STATLINE=no'
8593 fi
8594
8595 else
8596
8597 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8598 if test "x$LINE" != x ; then
8599 eval "DEFAULT_$LINE"
8600 else
8601 no_cache=1
8602 fi
8603
8604 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8605
8606 fi;
8607
8608 eval "$ac_cv_use_statline"
8609 if test "$no_cache" != 1; then
8610 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8611 fi
8612
8613 if test "$wxUSE_STATLINE" = yes; then
8614 echo "$as_me:$LINENO: result: yes" >&5
8615 echo "${ECHO_T}yes" >&6
8616 else
8617 echo "$as_me:$LINENO: result: no" >&5
8618 echo "${ECHO_T}no" >&6
8619 fi
8620
8621
8622 enablestring=
8623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8624 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8625 no_cache=0
8626 # Check whether --enable-stattext or --disable-stattext was given.
8627 if test "${enable_stattext+set}" = set; then
8628 enableval="$enable_stattext"
8629
8630 if test "$enableval" = yes; then
8631 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8632 else
8633 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8634 fi
8635
8636 else
8637
8638 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8639 if test "x$LINE" != x ; then
8640 eval "DEFAULT_$LINE"
8641 else
8642 no_cache=1
8643 fi
8644
8645 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8646
8647 fi;
8648
8649 eval "$ac_cv_use_stattext"
8650 if test "$no_cache" != 1; then
8651 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8652 fi
8653
8654 if test "$wxUSE_STATTEXT" = yes; then
8655 echo "$as_me:$LINENO: result: yes" >&5
8656 echo "${ECHO_T}yes" >&6
8657 else
8658 echo "$as_me:$LINENO: result: no" >&5
8659 echo "${ECHO_T}no" >&6
8660 fi
8661
8662
8663 enablestring=
8664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8665 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8666 no_cache=0
8667 # Check whether --enable-statusbar or --disable-statusbar was given.
8668 if test "${enable_statusbar+set}" = set; then
8669 enableval="$enable_statusbar"
8670
8671 if test "$enableval" = yes; then
8672 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8673 else
8674 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8675 fi
8676
8677 else
8678
8679 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8680 if test "x$LINE" != x ; then
8681 eval "DEFAULT_$LINE"
8682 else
8683 no_cache=1
8684 fi
8685
8686 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8687
8688 fi;
8689
8690 eval "$ac_cv_use_statusbar"
8691 if test "$no_cache" != 1; then
8692 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8693 fi
8694
8695 if test "$wxUSE_STATUSBAR" = yes; then
8696 echo "$as_me:$LINENO: result: yes" >&5
8697 echo "${ECHO_T}yes" >&6
8698 else
8699 echo "$as_me:$LINENO: result: no" >&5
8700 echo "${ECHO_T}no" >&6
8701 fi
8702
8703
8704 enablestring=
8705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8706 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8707 no_cache=0
8708 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8709 if test "${enable_tabdialog+set}" = set; then
8710 enableval="$enable_tabdialog"
8711
8712 if test "$enableval" = yes; then
8713 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8714 else
8715 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8716 fi
8717
8718 else
8719
8720 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8721 if test "x$LINE" != x ; then
8722 eval "DEFAULT_$LINE"
8723 else
8724 no_cache=1
8725 fi
8726
8727 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8728
8729 fi;
8730
8731 eval "$ac_cv_use_tabdialog"
8732 if test "$no_cache" != 1; then
8733 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8734 fi
8735
8736 if test "$wxUSE_TABDIALOG" = yes; then
8737 echo "$as_me:$LINENO: result: yes" >&5
8738 echo "${ECHO_T}yes" >&6
8739 else
8740 echo "$as_me:$LINENO: result: no" >&5
8741 echo "${ECHO_T}no" >&6
8742 fi
8743
8744
8745 enablestring=
8746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8747 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8748 no_cache=0
8749 # Check whether --enable-textctrl or --disable-textctrl was given.
8750 if test "${enable_textctrl+set}" = set; then
8751 enableval="$enable_textctrl"
8752
8753 if test "$enableval" = yes; then
8754 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8755 else
8756 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8757 fi
8758
8759 else
8760
8761 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8762 if test "x$LINE" != x ; then
8763 eval "DEFAULT_$LINE"
8764 else
8765 no_cache=1
8766 fi
8767
8768 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8769
8770 fi;
8771
8772 eval "$ac_cv_use_textctrl"
8773 if test "$no_cache" != 1; then
8774 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8775 fi
8776
8777 if test "$wxUSE_TEXTCTRL" = yes; then
8778 echo "$as_me:$LINENO: result: yes" >&5
8779 echo "${ECHO_T}yes" >&6
8780 else
8781 echo "$as_me:$LINENO: result: no" >&5
8782 echo "${ECHO_T}no" >&6
8783 fi
8784
8785
8786 enablestring=
8787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8788 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8789 no_cache=0
8790 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8791 if test "${enable_togglebtn+set}" = set; then
8792 enableval="$enable_togglebtn"
8793
8794 if test "$enableval" = yes; then
8795 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8796 else
8797 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8798 fi
8799
8800 else
8801
8802 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8803 if test "x$LINE" != x ; then
8804 eval "DEFAULT_$LINE"
8805 else
8806 no_cache=1
8807 fi
8808
8809 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8810
8811 fi;
8812
8813 eval "$ac_cv_use_togglebtn"
8814 if test "$no_cache" != 1; then
8815 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8816 fi
8817
8818 if test "$wxUSE_TOGGLEBTN" = yes; then
8819 echo "$as_me:$LINENO: result: yes" >&5
8820 echo "${ECHO_T}yes" >&6
8821 else
8822 echo "$as_me:$LINENO: result: no" >&5
8823 echo "${ECHO_T}no" >&6
8824 fi
8825
8826
8827 enablestring=
8828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8829 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8830 no_cache=0
8831 # Check whether --enable-toolbar or --disable-toolbar was given.
8832 if test "${enable_toolbar+set}" = set; then
8833 enableval="$enable_toolbar"
8834
8835 if test "$enableval" = yes; then
8836 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8837 else
8838 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8839 fi
8840
8841 else
8842
8843 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8844 if test "x$LINE" != x ; then
8845 eval "DEFAULT_$LINE"
8846 else
8847 no_cache=1
8848 fi
8849
8850 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8851
8852 fi;
8853
8854 eval "$ac_cv_use_toolbar"
8855 if test "$no_cache" != 1; then
8856 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8857 fi
8858
8859 if test "$wxUSE_TOOLBAR" = yes; then
8860 echo "$as_me:$LINENO: result: yes" >&5
8861 echo "${ECHO_T}yes" >&6
8862 else
8863 echo "$as_me:$LINENO: result: no" >&5
8864 echo "${ECHO_T}no" >&6
8865 fi
8866
8867
8868 enablestring=
8869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8870 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8871 no_cache=0
8872 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8873 if test "${enable_tbarnative+set}" = set; then
8874 enableval="$enable_tbarnative"
8875
8876 if test "$enableval" = yes; then
8877 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8878 else
8879 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8880 fi
8881
8882 else
8883
8884 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8885 if test "x$LINE" != x ; then
8886 eval "DEFAULT_$LINE"
8887 else
8888 no_cache=1
8889 fi
8890
8891 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8892
8893 fi;
8894
8895 eval "$ac_cv_use_tbarnative"
8896 if test "$no_cache" != 1; then
8897 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8898 fi
8899
8900 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8901 echo "$as_me:$LINENO: result: yes" >&5
8902 echo "${ECHO_T}yes" >&6
8903 else
8904 echo "$as_me:$LINENO: result: no" >&5
8905 echo "${ECHO_T}no" >&6
8906 fi
8907
8908
8909 enablestring=
8910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8911 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8912 no_cache=0
8913 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8914 if test "${enable_tbarsmpl+set}" = set; then
8915 enableval="$enable_tbarsmpl"
8916
8917 if test "$enableval" = yes; then
8918 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8919 else
8920 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8921 fi
8922
8923 else
8924
8925 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8926 if test "x$LINE" != x ; then
8927 eval "DEFAULT_$LINE"
8928 else
8929 no_cache=1
8930 fi
8931
8932 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8933
8934 fi;
8935
8936 eval "$ac_cv_use_tbarsmpl"
8937 if test "$no_cache" != 1; then
8938 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8939 fi
8940
8941 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8942 echo "$as_me:$LINENO: result: yes" >&5
8943 echo "${ECHO_T}yes" >&6
8944 else
8945 echo "$as_me:$LINENO: result: no" >&5
8946 echo "${ECHO_T}no" >&6
8947 fi
8948
8949
8950 enablestring=
8951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
8952 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
8953 no_cache=0
8954 # Check whether --enable-treebook or --disable-treebook was given.
8955 if test "${enable_treebook+set}" = set; then
8956 enableval="$enable_treebook"
8957
8958 if test "$enableval" = yes; then
8959 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
8960 else
8961 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
8962 fi
8963
8964 else
8965
8966 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
8967 if test "x$LINE" != x ; then
8968 eval "DEFAULT_$LINE"
8969 else
8970 no_cache=1
8971 fi
8972
8973 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
8974
8975 fi;
8976
8977 eval "$ac_cv_use_treebook"
8978 if test "$no_cache" != 1; then
8979 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
8980 fi
8981
8982 if test "$wxUSE_TREEBOOK" = yes; then
8983 echo "$as_me:$LINENO: result: yes" >&5
8984 echo "${ECHO_T}yes" >&6
8985 else
8986 echo "$as_me:$LINENO: result: no" >&5
8987 echo "${ECHO_T}no" >&6
8988 fi
8989
8990
8991 enablestring=
8992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8993 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8994 no_cache=0
8995 # Check whether --enable-treectrl or --disable-treectrl was given.
8996 if test "${enable_treectrl+set}" = set; then
8997 enableval="$enable_treectrl"
8998
8999 if test "$enableval" = yes; then
9000 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9001 else
9002 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9003 fi
9004
9005 else
9006
9007 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9008 if test "x$LINE" != x ; then
9009 eval "DEFAULT_$LINE"
9010 else
9011 no_cache=1
9012 fi
9013
9014 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9015
9016 fi;
9017
9018 eval "$ac_cv_use_treectrl"
9019 if test "$no_cache" != 1; then
9020 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9021 fi
9022
9023 if test "$wxUSE_TREECTRL" = yes; then
9024 echo "$as_me:$LINENO: result: yes" >&5
9025 echo "${ECHO_T}yes" >&6
9026 else
9027 echo "$as_me:$LINENO: result: no" >&5
9028 echo "${ECHO_T}no" >&6
9029 fi
9030
9031
9032 enablestring=
9033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9034 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9035 no_cache=0
9036 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9037 if test "${enable_tipwindow+set}" = set; then
9038 enableval="$enable_tipwindow"
9039
9040 if test "$enableval" = yes; then
9041 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9042 else
9043 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9044 fi
9045
9046 else
9047
9048 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9049 if test "x$LINE" != x ; then
9050 eval "DEFAULT_$LINE"
9051 else
9052 no_cache=1
9053 fi
9054
9055 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9056
9057 fi;
9058
9059 eval "$ac_cv_use_tipwindow"
9060 if test "$no_cache" != 1; then
9061 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9062 fi
9063
9064 if test "$wxUSE_TIPWINDOW" = yes; then
9065 echo "$as_me:$LINENO: result: yes" >&5
9066 echo "${ECHO_T}yes" >&6
9067 else
9068 echo "$as_me:$LINENO: result: no" >&5
9069 echo "${ECHO_T}no" >&6
9070 fi
9071
9072
9073 enablestring=
9074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9075 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9076 no_cache=0
9077 # Check whether --enable-popupwin or --disable-popupwin was given.
9078 if test "${enable_popupwin+set}" = set; then
9079 enableval="$enable_popupwin"
9080
9081 if test "$enableval" = yes; then
9082 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9083 else
9084 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9085 fi
9086
9087 else
9088
9089 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9090 if test "x$LINE" != x ; then
9091 eval "DEFAULT_$LINE"
9092 else
9093 no_cache=1
9094 fi
9095
9096 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9097
9098 fi;
9099
9100 eval "$ac_cv_use_popupwin"
9101 if test "$no_cache" != 1; then
9102 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9103 fi
9104
9105 if test "$wxUSE_POPUPWIN" = yes; then
9106 echo "$as_me:$LINENO: result: yes" >&5
9107 echo "${ECHO_T}yes" >&6
9108 else
9109 echo "$as_me:$LINENO: result: no" >&5
9110 echo "${ECHO_T}no" >&6
9111 fi
9112
9113
9114
9115
9116 enablestring=
9117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9118 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9119 no_cache=0
9120 # Check whether --enable-commondlg or --disable-commondlg was given.
9121 if test "${enable_commondlg+set}" = set; then
9122 enableval="$enable_commondlg"
9123
9124 if test "$enableval" = yes; then
9125 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9126 else
9127 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9128 fi
9129
9130 else
9131
9132 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9133 if test "x$LINE" != x ; then
9134 eval "DEFAULT_$LINE"
9135 else
9136 no_cache=1
9137 fi
9138
9139 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9140
9141 fi;
9142
9143 eval "$ac_cv_use_commondlg"
9144 if test "$no_cache" != 1; then
9145 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9146 fi
9147
9148 if test "$wxUSE_COMMONDLGS" = yes; then
9149 echo "$as_me:$LINENO: result: yes" >&5
9150 echo "${ECHO_T}yes" >&6
9151 else
9152 echo "$as_me:$LINENO: result: no" >&5
9153 echo "${ECHO_T}no" >&6
9154 fi
9155
9156
9157 enablestring=
9158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9159 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9160 no_cache=0
9161 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9162 if test "${enable_choicedlg+set}" = set; then
9163 enableval="$enable_choicedlg"
9164
9165 if test "$enableval" = yes; then
9166 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9167 else
9168 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9169 fi
9170
9171 else
9172
9173 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9174 if test "x$LINE" != x ; then
9175 eval "DEFAULT_$LINE"
9176 else
9177 no_cache=1
9178 fi
9179
9180 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9181
9182 fi;
9183
9184 eval "$ac_cv_use_choicedlg"
9185 if test "$no_cache" != 1; then
9186 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9187 fi
9188
9189 if test "$wxUSE_CHOICEDLG" = yes; then
9190 echo "$as_me:$LINENO: result: yes" >&5
9191 echo "${ECHO_T}yes" >&6
9192 else
9193 echo "$as_me:$LINENO: result: no" >&5
9194 echo "${ECHO_T}no" >&6
9195 fi
9196
9197
9198 enablestring=
9199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9200 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9201 no_cache=0
9202 # Check whether --enable-coldlg or --disable-coldlg was given.
9203 if test "${enable_coldlg+set}" = set; then
9204 enableval="$enable_coldlg"
9205
9206 if test "$enableval" = yes; then
9207 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9208 else
9209 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9210 fi
9211
9212 else
9213
9214 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9215 if test "x$LINE" != x ; then
9216 eval "DEFAULT_$LINE"
9217 else
9218 no_cache=1
9219 fi
9220
9221 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9222
9223 fi;
9224
9225 eval "$ac_cv_use_coldlg"
9226 if test "$no_cache" != 1; then
9227 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9228 fi
9229
9230 if test "$wxUSE_COLOURDLG" = yes; then
9231 echo "$as_me:$LINENO: result: yes" >&5
9232 echo "${ECHO_T}yes" >&6
9233 else
9234 echo "$as_me:$LINENO: result: no" >&5
9235 echo "${ECHO_T}no" >&6
9236 fi
9237
9238
9239 enablestring=
9240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9241 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9242 no_cache=0
9243 # Check whether --enable-filedlg or --disable-filedlg was given.
9244 if test "${enable_filedlg+set}" = set; then
9245 enableval="$enable_filedlg"
9246
9247 if test "$enableval" = yes; then
9248 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9249 else
9250 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9251 fi
9252
9253 else
9254
9255 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9256 if test "x$LINE" != x ; then
9257 eval "DEFAULT_$LINE"
9258 else
9259 no_cache=1
9260 fi
9261
9262 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9263
9264 fi;
9265
9266 eval "$ac_cv_use_filedlg"
9267 if test "$no_cache" != 1; then
9268 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9269 fi
9270
9271 if test "$wxUSE_FILEDLG" = yes; then
9272 echo "$as_me:$LINENO: result: yes" >&5
9273 echo "${ECHO_T}yes" >&6
9274 else
9275 echo "$as_me:$LINENO: result: no" >&5
9276 echo "${ECHO_T}no" >&6
9277 fi
9278
9279
9280 enablestring=
9281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9282 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9283 no_cache=0
9284 # Check whether --enable-finddlg or --disable-finddlg was given.
9285 if test "${enable_finddlg+set}" = set; then
9286 enableval="$enable_finddlg"
9287
9288 if test "$enableval" = yes; then
9289 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9290 else
9291 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9292 fi
9293
9294 else
9295
9296 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9297 if test "x$LINE" != x ; then
9298 eval "DEFAULT_$LINE"
9299 else
9300 no_cache=1
9301 fi
9302
9303 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9304
9305 fi;
9306
9307 eval "$ac_cv_use_finddlg"
9308 if test "$no_cache" != 1; then
9309 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9310 fi
9311
9312 if test "$wxUSE_FINDREPLDLG" = yes; then
9313 echo "$as_me:$LINENO: result: yes" >&5
9314 echo "${ECHO_T}yes" >&6
9315 else
9316 echo "$as_me:$LINENO: result: no" >&5
9317 echo "${ECHO_T}no" >&6
9318 fi
9319
9320
9321 enablestring=
9322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9323 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9324 no_cache=0
9325 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9326 if test "${enable_fontdlg+set}" = set; then
9327 enableval="$enable_fontdlg"
9328
9329 if test "$enableval" = yes; then
9330 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9331 else
9332 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9333 fi
9334
9335 else
9336
9337 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9338 if test "x$LINE" != x ; then
9339 eval "DEFAULT_$LINE"
9340 else
9341 no_cache=1
9342 fi
9343
9344 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9345
9346 fi;
9347
9348 eval "$ac_cv_use_fontdlg"
9349 if test "$no_cache" != 1; then
9350 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9351 fi
9352
9353 if test "$wxUSE_FONTDLG" = yes; then
9354 echo "$as_me:$LINENO: result: yes" >&5
9355 echo "${ECHO_T}yes" >&6
9356 else
9357 echo "$as_me:$LINENO: result: no" >&5
9358 echo "${ECHO_T}no" >&6
9359 fi
9360
9361
9362 enablestring=
9363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9364 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9365 no_cache=0
9366 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9367 if test "${enable_dirdlg+set}" = set; then
9368 enableval="$enable_dirdlg"
9369
9370 if test "$enableval" = yes; then
9371 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9372 else
9373 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9374 fi
9375
9376 else
9377
9378 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9379 if test "x$LINE" != x ; then
9380 eval "DEFAULT_$LINE"
9381 else
9382 no_cache=1
9383 fi
9384
9385 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9386
9387 fi;
9388
9389 eval "$ac_cv_use_dirdlg"
9390 if test "$no_cache" != 1; then
9391 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9392 fi
9393
9394 if test "$wxUSE_DIRDLG" = yes; then
9395 echo "$as_me:$LINENO: result: yes" >&5
9396 echo "${ECHO_T}yes" >&6
9397 else
9398 echo "$as_me:$LINENO: result: no" >&5
9399 echo "${ECHO_T}no" >&6
9400 fi
9401
9402
9403 enablestring=
9404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9405 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9406 no_cache=0
9407 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9408 if test "${enable_msgdlg+set}" = set; then
9409 enableval="$enable_msgdlg"
9410
9411 if test "$enableval" = yes; then
9412 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9413 else
9414 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9415 fi
9416
9417 else
9418
9419 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9420 if test "x$LINE" != x ; then
9421 eval "DEFAULT_$LINE"
9422 else
9423 no_cache=1
9424 fi
9425
9426 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9427
9428 fi;
9429
9430 eval "$ac_cv_use_msgdlg"
9431 if test "$no_cache" != 1; then
9432 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9433 fi
9434
9435 if test "$wxUSE_MSGDLG" = yes; then
9436 echo "$as_me:$LINENO: result: yes" >&5
9437 echo "${ECHO_T}yes" >&6
9438 else
9439 echo "$as_me:$LINENO: result: no" >&5
9440 echo "${ECHO_T}no" >&6
9441 fi
9442
9443
9444 enablestring=
9445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9446 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9447 no_cache=0
9448 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9449 if test "${enable_numberdlg+set}" = set; then
9450 enableval="$enable_numberdlg"
9451
9452 if test "$enableval" = yes; then
9453 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9454 else
9455 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9456 fi
9457
9458 else
9459
9460 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9461 if test "x$LINE" != x ; then
9462 eval "DEFAULT_$LINE"
9463 else
9464 no_cache=1
9465 fi
9466
9467 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9468
9469 fi;
9470
9471 eval "$ac_cv_use_numberdlg"
9472 if test "$no_cache" != 1; then
9473 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9474 fi
9475
9476 if test "$wxUSE_NUMBERDLG" = yes; then
9477 echo "$as_me:$LINENO: result: yes" >&5
9478 echo "${ECHO_T}yes" >&6
9479 else
9480 echo "$as_me:$LINENO: result: no" >&5
9481 echo "${ECHO_T}no" >&6
9482 fi
9483
9484
9485 enablestring=
9486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9487 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9488 no_cache=0
9489 # Check whether --enable-splash or --disable-splash was given.
9490 if test "${enable_splash+set}" = set; then
9491 enableval="$enable_splash"
9492
9493 if test "$enableval" = yes; then
9494 ac_cv_use_splash='wxUSE_SPLASH=yes'
9495 else
9496 ac_cv_use_splash='wxUSE_SPLASH=no'
9497 fi
9498
9499 else
9500
9501 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9502 if test "x$LINE" != x ; then
9503 eval "DEFAULT_$LINE"
9504 else
9505 no_cache=1
9506 fi
9507
9508 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9509
9510 fi;
9511
9512 eval "$ac_cv_use_splash"
9513 if test "$no_cache" != 1; then
9514 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9515 fi
9516
9517 if test "$wxUSE_SPLASH" = yes; then
9518 echo "$as_me:$LINENO: result: yes" >&5
9519 echo "${ECHO_T}yes" >&6
9520 else
9521 echo "$as_me:$LINENO: result: no" >&5
9522 echo "${ECHO_T}no" >&6
9523 fi
9524
9525
9526 enablestring=
9527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9528 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9529 no_cache=0
9530 # Check whether --enable-textdlg or --disable-textdlg was given.
9531 if test "${enable_textdlg+set}" = set; then
9532 enableval="$enable_textdlg"
9533
9534 if test "$enableval" = yes; then
9535 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9536 else
9537 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9538 fi
9539
9540 else
9541
9542 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9543 if test "x$LINE" != x ; then
9544 eval "DEFAULT_$LINE"
9545 else
9546 no_cache=1
9547 fi
9548
9549 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9550
9551 fi;
9552
9553 eval "$ac_cv_use_textdlg"
9554 if test "$no_cache" != 1; then
9555 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9556 fi
9557
9558 if test "$wxUSE_TEXTDLG" = yes; then
9559 echo "$as_me:$LINENO: result: yes" >&5
9560 echo "${ECHO_T}yes" >&6
9561 else
9562 echo "$as_me:$LINENO: result: no" >&5
9563 echo "${ECHO_T}no" >&6
9564 fi
9565
9566
9567 enablestring=
9568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9569 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9570 no_cache=0
9571 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9572 if test "${enable_tipdlg+set}" = set; then
9573 enableval="$enable_tipdlg"
9574
9575 if test "$enableval" = yes; then
9576 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9577 else
9578 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9579 fi
9580
9581 else
9582
9583 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9584 if test "x$LINE" != x ; then
9585 eval "DEFAULT_$LINE"
9586 else
9587 no_cache=1
9588 fi
9589
9590 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9591
9592 fi;
9593
9594 eval "$ac_cv_use_tipdlg"
9595 if test "$no_cache" != 1; then
9596 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9597 fi
9598
9599 if test "$wxUSE_STARTUP_TIPS" = yes; then
9600 echo "$as_me:$LINENO: result: yes" >&5
9601 echo "${ECHO_T}yes" >&6
9602 else
9603 echo "$as_me:$LINENO: result: no" >&5
9604 echo "${ECHO_T}no" >&6
9605 fi
9606
9607
9608 enablestring=
9609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9610 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9611 no_cache=0
9612 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9613 if test "${enable_progressdlg+set}" = set; then
9614 enableval="$enable_progressdlg"
9615
9616 if test "$enableval" = yes; then
9617 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9618 else
9619 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9620 fi
9621
9622 else
9623
9624 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9625 if test "x$LINE" != x ; then
9626 eval "DEFAULT_$LINE"
9627 else
9628 no_cache=1
9629 fi
9630
9631 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9632
9633 fi;
9634
9635 eval "$ac_cv_use_progressdlg"
9636 if test "$no_cache" != 1; then
9637 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9638 fi
9639
9640 if test "$wxUSE_PROGRESSDLG" = yes; then
9641 echo "$as_me:$LINENO: result: yes" >&5
9642 echo "${ECHO_T}yes" >&6
9643 else
9644 echo "$as_me:$LINENO: result: no" >&5
9645 echo "${ECHO_T}no" >&6
9646 fi
9647
9648
9649 enablestring=
9650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9651 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9652 no_cache=0
9653 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9654 if test "${enable_wizarddlg+set}" = set; then
9655 enableval="$enable_wizarddlg"
9656
9657 if test "$enableval" = yes; then
9658 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9659 else
9660 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9661 fi
9662
9663 else
9664
9665 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9666 if test "x$LINE" != x ; then
9667 eval "DEFAULT_$LINE"
9668 else
9669 no_cache=1
9670 fi
9671
9672 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9673
9674 fi;
9675
9676 eval "$ac_cv_use_wizarddlg"
9677 if test "$no_cache" != 1; then
9678 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9679 fi
9680
9681 if test "$wxUSE_WIZARDDLG" = yes; then
9682 echo "$as_me:$LINENO: result: yes" >&5
9683 echo "${ECHO_T}yes" >&6
9684 else
9685 echo "$as_me:$LINENO: result: no" >&5
9686 echo "${ECHO_T}no" >&6
9687 fi
9688
9689
9690
9691
9692 enablestring=
9693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9694 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9695 no_cache=0
9696 # Check whether --enable-menus or --disable-menus was given.
9697 if test "${enable_menus+set}" = set; then
9698 enableval="$enable_menus"
9699
9700 if test "$enableval" = yes; then
9701 ac_cv_use_menus='wxUSE_MENUS=yes'
9702 else
9703 ac_cv_use_menus='wxUSE_MENUS=no'
9704 fi
9705
9706 else
9707
9708 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9709 if test "x$LINE" != x ; then
9710 eval "DEFAULT_$LINE"
9711 else
9712 no_cache=1
9713 fi
9714
9715 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9716
9717 fi;
9718
9719 eval "$ac_cv_use_menus"
9720 if test "$no_cache" != 1; then
9721 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9722 fi
9723
9724 if test "$wxUSE_MENUS" = yes; then
9725 echo "$as_me:$LINENO: result: yes" >&5
9726 echo "${ECHO_T}yes" >&6
9727 else
9728 echo "$as_me:$LINENO: result: no" >&5
9729 echo "${ECHO_T}no" >&6
9730 fi
9731
9732
9733 enablestring=
9734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9735 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9736 no_cache=0
9737 # Check whether --enable-miniframe or --disable-miniframe was given.
9738 if test "${enable_miniframe+set}" = set; then
9739 enableval="$enable_miniframe"
9740
9741 if test "$enableval" = yes; then
9742 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9743 else
9744 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9745 fi
9746
9747 else
9748
9749 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9750 if test "x$LINE" != x ; then
9751 eval "DEFAULT_$LINE"
9752 else
9753 no_cache=1
9754 fi
9755
9756 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9757
9758 fi;
9759
9760 eval "$ac_cv_use_miniframe"
9761 if test "$no_cache" != 1; then
9762 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9763 fi
9764
9765 if test "$wxUSE_MINIFRAME" = yes; then
9766 echo "$as_me:$LINENO: result: yes" >&5
9767 echo "${ECHO_T}yes" >&6
9768 else
9769 echo "$as_me:$LINENO: result: no" >&5
9770 echo "${ECHO_T}no" >&6
9771 fi
9772
9773
9774 enablestring=
9775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9776 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9777 no_cache=0
9778 # Check whether --enable-tooltips or --disable-tooltips was given.
9779 if test "${enable_tooltips+set}" = set; then
9780 enableval="$enable_tooltips"
9781
9782 if test "$enableval" = yes; then
9783 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9784 else
9785 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9786 fi
9787
9788 else
9789
9790 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9791 if test "x$LINE" != x ; then
9792 eval "DEFAULT_$LINE"
9793 else
9794 no_cache=1
9795 fi
9796
9797 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9798
9799 fi;
9800
9801 eval "$ac_cv_use_tooltips"
9802 if test "$no_cache" != 1; then
9803 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9804 fi
9805
9806 if test "$wxUSE_TOOLTIPS" = yes; then
9807 echo "$as_me:$LINENO: result: yes" >&5
9808 echo "${ECHO_T}yes" >&6
9809 else
9810 echo "$as_me:$LINENO: result: no" >&5
9811 echo "${ECHO_T}no" >&6
9812 fi
9813
9814
9815 enablestring=
9816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9817 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9818 no_cache=0
9819 # Check whether --enable-splines or --disable-splines was given.
9820 if test "${enable_splines+set}" = set; then
9821 enableval="$enable_splines"
9822
9823 if test "$enableval" = yes; then
9824 ac_cv_use_splines='wxUSE_SPLINES=yes'
9825 else
9826 ac_cv_use_splines='wxUSE_SPLINES=no'
9827 fi
9828
9829 else
9830
9831 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9832 if test "x$LINE" != x ; then
9833 eval "DEFAULT_$LINE"
9834 else
9835 no_cache=1
9836 fi
9837
9838 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9839
9840 fi;
9841
9842 eval "$ac_cv_use_splines"
9843 if test "$no_cache" != 1; then
9844 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9845 fi
9846
9847 if test "$wxUSE_SPLINES" = yes; then
9848 echo "$as_me:$LINENO: result: yes" >&5
9849 echo "${ECHO_T}yes" >&6
9850 else
9851 echo "$as_me:$LINENO: result: no" >&5
9852 echo "${ECHO_T}no" >&6
9853 fi
9854
9855
9856 enablestring=
9857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9858 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9859 no_cache=0
9860 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9861 if test "${enable_mousewheel+set}" = set; then
9862 enableval="$enable_mousewheel"
9863
9864 if test "$enableval" = yes; then
9865 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9866 else
9867 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9868 fi
9869
9870 else
9871
9872 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9873 if test "x$LINE" != x ; then
9874 eval "DEFAULT_$LINE"
9875 else
9876 no_cache=1
9877 fi
9878
9879 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9880
9881 fi;
9882
9883 eval "$ac_cv_use_mousewheel"
9884 if test "$no_cache" != 1; then
9885 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9886 fi
9887
9888 if test "$wxUSE_MOUSEWHEEL" = yes; then
9889 echo "$as_me:$LINENO: result: yes" >&5
9890 echo "${ECHO_T}yes" >&6
9891 else
9892 echo "$as_me:$LINENO: result: no" >&5
9893 echo "${ECHO_T}no" >&6
9894 fi
9895
9896
9897 enablestring=
9898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9899 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9900 no_cache=0
9901 # Check whether --enable-validators or --disable-validators was given.
9902 if test "${enable_validators+set}" = set; then
9903 enableval="$enable_validators"
9904
9905 if test "$enableval" = yes; then
9906 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9907 else
9908 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9909 fi
9910
9911 else
9912
9913 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9914 if test "x$LINE" != x ; then
9915 eval "DEFAULT_$LINE"
9916 else
9917 no_cache=1
9918 fi
9919
9920 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9921
9922 fi;
9923
9924 eval "$ac_cv_use_validators"
9925 if test "$no_cache" != 1; then
9926 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9927 fi
9928
9929 if test "$wxUSE_VALIDATORS" = yes; then
9930 echo "$as_me:$LINENO: result: yes" >&5
9931 echo "${ECHO_T}yes" >&6
9932 else
9933 echo "$as_me:$LINENO: result: no" >&5
9934 echo "${ECHO_T}no" >&6
9935 fi
9936
9937
9938 enablestring=
9939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9940 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9941 no_cache=0
9942 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9943 if test "${enable_busyinfo+set}" = set; then
9944 enableval="$enable_busyinfo"
9945
9946 if test "$enableval" = yes; then
9947 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9948 else
9949 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9950 fi
9951
9952 else
9953
9954 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9955 if test "x$LINE" != x ; then
9956 eval "DEFAULT_$LINE"
9957 else
9958 no_cache=1
9959 fi
9960
9961 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9962
9963 fi;
9964
9965 eval "$ac_cv_use_busyinfo"
9966 if test "$no_cache" != 1; then
9967 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9968 fi
9969
9970 if test "$wxUSE_BUSYINFO" = yes; then
9971 echo "$as_me:$LINENO: result: yes" >&5
9972 echo "${ECHO_T}yes" >&6
9973 else
9974 echo "$as_me:$LINENO: result: no" >&5
9975 echo "${ECHO_T}no" >&6
9976 fi
9977
9978
9979 enablestring=
9980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9981 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9982 no_cache=0
9983 # Check whether --enable-joystick or --disable-joystick was given.
9984 if test "${enable_joystick+set}" = set; then
9985 enableval="$enable_joystick"
9986
9987 if test "$enableval" = yes; then
9988 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9989 else
9990 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9991 fi
9992
9993 else
9994
9995 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9996 if test "x$LINE" != x ; then
9997 eval "DEFAULT_$LINE"
9998 else
9999 no_cache=1
10000 fi
10001
10002 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10003
10004 fi;
10005
10006 eval "$ac_cv_use_joystick"
10007 if test "$no_cache" != 1; then
10008 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10009 fi
10010
10011 if test "$wxUSE_JOYSTICK" = yes; then
10012 echo "$as_me:$LINENO: result: yes" >&5
10013 echo "${ECHO_T}yes" >&6
10014 else
10015 echo "$as_me:$LINENO: result: no" >&5
10016 echo "${ECHO_T}no" >&6
10017 fi
10018
10019
10020 enablestring=
10021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10022 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10023 no_cache=0
10024 # Check whether --enable-metafile or --disable-metafile was given.
10025 if test "${enable_metafile+set}" = set; then
10026 enableval="$enable_metafile"
10027
10028 if test "$enableval" = yes; then
10029 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10030 else
10031 ac_cv_use_metafile='wxUSE_METAFILE=no'
10032 fi
10033
10034 else
10035
10036 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10037 if test "x$LINE" != x ; then
10038 eval "DEFAULT_$LINE"
10039 else
10040 no_cache=1
10041 fi
10042
10043 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10044
10045 fi;
10046
10047 eval "$ac_cv_use_metafile"
10048 if test "$no_cache" != 1; then
10049 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10050 fi
10051
10052 if test "$wxUSE_METAFILE" = yes; then
10053 echo "$as_me:$LINENO: result: yes" >&5
10054 echo "${ECHO_T}yes" >&6
10055 else
10056 echo "$as_me:$LINENO: result: no" >&5
10057 echo "${ECHO_T}no" >&6
10058 fi
10059
10060
10061 enablestring=
10062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10063 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10064 no_cache=0
10065 # Check whether --enable-dragimage or --disable-dragimage was given.
10066 if test "${enable_dragimage+set}" = set; then
10067 enableval="$enable_dragimage"
10068
10069 if test "$enableval" = yes; then
10070 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10071 else
10072 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10073 fi
10074
10075 else
10076
10077 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10078 if test "x$LINE" != x ; then
10079 eval "DEFAULT_$LINE"
10080 else
10081 no_cache=1
10082 fi
10083
10084 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10085
10086 fi;
10087
10088 eval "$ac_cv_use_dragimage"
10089 if test "$no_cache" != 1; then
10090 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10091 fi
10092
10093 if test "$wxUSE_DRAGIMAGE" = yes; then
10094 echo "$as_me:$LINENO: result: yes" >&5
10095 echo "${ECHO_T}yes" >&6
10096 else
10097 echo "$as_me:$LINENO: result: no" >&5
10098 echo "${ECHO_T}no" >&6
10099 fi
10100
10101
10102 enablestring=
10103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10104 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10105 no_cache=0
10106 # Check whether --enable-accessibility or --disable-accessibility was given.
10107 if test "${enable_accessibility+set}" = set; then
10108 enableval="$enable_accessibility"
10109
10110 if test "$enableval" = yes; then
10111 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10112 else
10113 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10114 fi
10115
10116 else
10117
10118 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10119 if test "x$LINE" != x ; then
10120 eval "DEFAULT_$LINE"
10121 else
10122 no_cache=1
10123 fi
10124
10125 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10126
10127 fi;
10128
10129 eval "$ac_cv_use_accessibility"
10130 if test "$no_cache" != 1; then
10131 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10132 fi
10133
10134 if test "$wxUSE_ACCESSIBILITY" = yes; then
10135 echo "$as_me:$LINENO: result: yes" >&5
10136 echo "${ECHO_T}yes" >&6
10137 else
10138 echo "$as_me:$LINENO: result: no" >&5
10139 echo "${ECHO_T}no" >&6
10140 fi
10141
10142
10143 if test "$wxUSE_MSW" = "1"; then
10144
10145 enablestring=
10146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10147 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10148 no_cache=0
10149 # Check whether --enable-dccache or --disable-dccache was given.
10150 if test "${enable_dccache+set}" = set; then
10151 enableval="$enable_dccache"
10152
10153 if test "$enableval" = yes; then
10154 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10155 else
10156 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10157 fi
10158
10159 else
10160
10161 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10162 if test "x$LINE" != x ; then
10163 eval "DEFAULT_$LINE"
10164 else
10165 no_cache=1
10166 fi
10167
10168 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10169
10170 fi;
10171
10172 eval "$ac_cv_use_dccache"
10173 if test "$no_cache" != 1; then
10174 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10175 fi
10176
10177 if test "$wxUSE_DC_CACHEING" = yes; then
10178 echo "$as_me:$LINENO: result: yes" >&5
10179 echo "${ECHO_T}yes" >&6
10180 else
10181 echo "$as_me:$LINENO: result: no" >&5
10182 echo "${ECHO_T}no" >&6
10183 fi
10184
10185 fi
10186
10187
10188
10189 enablestring=
10190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10191 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10192 no_cache=0
10193 # Check whether --enable-palette or --disable-palette was given.
10194 if test "${enable_palette+set}" = set; then
10195 enableval="$enable_palette"
10196
10197 if test "$enableval" = yes; then
10198 ac_cv_use_palette='wxUSE_PALETTE=yes'
10199 else
10200 ac_cv_use_palette='wxUSE_PALETTE=no'
10201 fi
10202
10203 else
10204
10205 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10206 if test "x$LINE" != x ; then
10207 eval "DEFAULT_$LINE"
10208 else
10209 no_cache=1
10210 fi
10211
10212 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10213
10214 fi;
10215
10216 eval "$ac_cv_use_palette"
10217 if test "$no_cache" != 1; then
10218 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10219 fi
10220
10221 if test "$wxUSE_PALETTE" = yes; then
10222 echo "$as_me:$LINENO: result: yes" >&5
10223 echo "${ECHO_T}yes" >&6
10224 else
10225 echo "$as_me:$LINENO: result: no" >&5
10226 echo "${ECHO_T}no" >&6
10227 fi
10228
10229
10230 enablestring=
10231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10232 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10233 no_cache=0
10234 # Check whether --enable-image or --disable-image was given.
10235 if test "${enable_image+set}" = set; then
10236 enableval="$enable_image"
10237
10238 if test "$enableval" = yes; then
10239 ac_cv_use_image='wxUSE_IMAGE=yes'
10240 else
10241 ac_cv_use_image='wxUSE_IMAGE=no'
10242 fi
10243
10244 else
10245
10246 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10247 if test "x$LINE" != x ; then
10248 eval "DEFAULT_$LINE"
10249 else
10250 no_cache=1
10251 fi
10252
10253 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10254
10255 fi;
10256
10257 eval "$ac_cv_use_image"
10258 if test "$no_cache" != 1; then
10259 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10260 fi
10261
10262 if test "$wxUSE_IMAGE" = yes; then
10263 echo "$as_me:$LINENO: result: yes" >&5
10264 echo "${ECHO_T}yes" >&6
10265 else
10266 echo "$as_me:$LINENO: result: no" >&5
10267 echo "${ECHO_T}no" >&6
10268 fi
10269
10270
10271 enablestring=
10272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10273 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10274 no_cache=0
10275 # Check whether --enable-gif or --disable-gif was given.
10276 if test "${enable_gif+set}" = set; then
10277 enableval="$enable_gif"
10278
10279 if test "$enableval" = yes; then
10280 ac_cv_use_gif='wxUSE_GIF=yes'
10281 else
10282 ac_cv_use_gif='wxUSE_GIF=no'
10283 fi
10284
10285 else
10286
10287 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10288 if test "x$LINE" != x ; then
10289 eval "DEFAULT_$LINE"
10290 else
10291 no_cache=1
10292 fi
10293
10294 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10295
10296 fi;
10297
10298 eval "$ac_cv_use_gif"
10299 if test "$no_cache" != 1; then
10300 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10301 fi
10302
10303 if test "$wxUSE_GIF" = yes; then
10304 echo "$as_me:$LINENO: result: yes" >&5
10305 echo "${ECHO_T}yes" >&6
10306 else
10307 echo "$as_me:$LINENO: result: no" >&5
10308 echo "${ECHO_T}no" >&6
10309 fi
10310
10311
10312 enablestring=
10313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10314 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10315 no_cache=0
10316 # Check whether --enable-pcx or --disable-pcx was given.
10317 if test "${enable_pcx+set}" = set; then
10318 enableval="$enable_pcx"
10319
10320 if test "$enableval" = yes; then
10321 ac_cv_use_pcx='wxUSE_PCX=yes'
10322 else
10323 ac_cv_use_pcx='wxUSE_PCX=no'
10324 fi
10325
10326 else
10327
10328 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10329 if test "x$LINE" != x ; then
10330 eval "DEFAULT_$LINE"
10331 else
10332 no_cache=1
10333 fi
10334
10335 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10336
10337 fi;
10338
10339 eval "$ac_cv_use_pcx"
10340 if test "$no_cache" != 1; then
10341 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10342 fi
10343
10344 if test "$wxUSE_PCX" = yes; then
10345 echo "$as_me:$LINENO: result: yes" >&5
10346 echo "${ECHO_T}yes" >&6
10347 else
10348 echo "$as_me:$LINENO: result: no" >&5
10349 echo "${ECHO_T}no" >&6
10350 fi
10351
10352
10353 enablestring=
10354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10355 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10356 no_cache=0
10357 # Check whether --enable-iff or --disable-iff was given.
10358 if test "${enable_iff+set}" = set; then
10359 enableval="$enable_iff"
10360
10361 if test "$enableval" = yes; then
10362 ac_cv_use_iff='wxUSE_IFF=yes'
10363 else
10364 ac_cv_use_iff='wxUSE_IFF=no'
10365 fi
10366
10367 else
10368
10369 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10370 if test "x$LINE" != x ; then
10371 eval "DEFAULT_$LINE"
10372 else
10373 no_cache=1
10374 fi
10375
10376 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10377
10378 fi;
10379
10380 eval "$ac_cv_use_iff"
10381 if test "$no_cache" != 1; then
10382 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10383 fi
10384
10385 if test "$wxUSE_IFF" = yes; then
10386 echo "$as_me:$LINENO: result: yes" >&5
10387 echo "${ECHO_T}yes" >&6
10388 else
10389 echo "$as_me:$LINENO: result: no" >&5
10390 echo "${ECHO_T}no" >&6
10391 fi
10392
10393
10394 enablestring=
10395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10396 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10397 no_cache=0
10398 # Check whether --enable-pnm or --disable-pnm was given.
10399 if test "${enable_pnm+set}" = set; then
10400 enableval="$enable_pnm"
10401
10402 if test "$enableval" = yes; then
10403 ac_cv_use_pnm='wxUSE_PNM=yes'
10404 else
10405 ac_cv_use_pnm='wxUSE_PNM=no'
10406 fi
10407
10408 else
10409
10410 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10411 if test "x$LINE" != x ; then
10412 eval "DEFAULT_$LINE"
10413 else
10414 no_cache=1
10415 fi
10416
10417 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10418
10419 fi;
10420
10421 eval "$ac_cv_use_pnm"
10422 if test "$no_cache" != 1; then
10423 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10424 fi
10425
10426 if test "$wxUSE_PNM" = yes; then
10427 echo "$as_me:$LINENO: result: yes" >&5
10428 echo "${ECHO_T}yes" >&6
10429 else
10430 echo "$as_me:$LINENO: result: no" >&5
10431 echo "${ECHO_T}no" >&6
10432 fi
10433
10434
10435 enablestring=
10436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10437 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10438 no_cache=0
10439 # Check whether --enable-xpm or --disable-xpm was given.
10440 if test "${enable_xpm+set}" = set; then
10441 enableval="$enable_xpm"
10442
10443 if test "$enableval" = yes; then
10444 ac_cv_use_xpm='wxUSE_XPM=yes'
10445 else
10446 ac_cv_use_xpm='wxUSE_XPM=no'
10447 fi
10448
10449 else
10450
10451 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10452 if test "x$LINE" != x ; then
10453 eval "DEFAULT_$LINE"
10454 else
10455 no_cache=1
10456 fi
10457
10458 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10459
10460 fi;
10461
10462 eval "$ac_cv_use_xpm"
10463 if test "$no_cache" != 1; then
10464 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10465 fi
10466
10467 if test "$wxUSE_XPM" = yes; then
10468 echo "$as_me:$LINENO: result: yes" >&5
10469 echo "${ECHO_T}yes" >&6
10470 else
10471 echo "$as_me:$LINENO: result: no" >&5
10472 echo "${ECHO_T}no" >&6
10473 fi
10474
10475
10476 enablestring=
10477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10478 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10479 no_cache=0
10480 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10481 if test "${enable_ico_cur+set}" = set; then
10482 enableval="$enable_ico_cur"
10483
10484 if test "$enableval" = yes; then
10485 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10486 else
10487 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10488 fi
10489
10490 else
10491
10492 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10493 if test "x$LINE" != x ; then
10494 eval "DEFAULT_$LINE"
10495 else
10496 no_cache=1
10497 fi
10498
10499 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10500
10501 fi;
10502
10503 eval "$ac_cv_use_ico_cur"
10504 if test "$no_cache" != 1; then
10505 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10506 fi
10507
10508 if test "$wxUSE_ICO_CUR" = yes; then
10509 echo "$as_me:$LINENO: result: yes" >&5
10510 echo "${ECHO_T}yes" >&6
10511 else
10512 echo "$as_me:$LINENO: result: no" >&5
10513 echo "${ECHO_T}no" >&6
10514 fi
10515
10516
10517 fi
10518
10519
10520
10521 # Check whether --with-flavour or --without-flavour was given.
10522 if test "${with_flavour+set}" = set; then
10523 withval="$with_flavour"
10524 WX_FLAVOUR="$withval"
10525 fi;
10526
10527
10528
10529 enablestring=
10530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10531 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10532 no_cache=0
10533 # Check whether --enable-official_build or --disable-official_build was given.
10534 if test "${enable_official_build+set}" = set; then
10535 enableval="$enable_official_build"
10536
10537 if test "$enableval" = yes; then
10538 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10539 else
10540 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10541 fi
10542
10543 else
10544
10545 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10546 if test "x$LINE" != x ; then
10547 eval "DEFAULT_$LINE"
10548 else
10549 no_cache=1
10550 fi
10551
10552 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10553
10554 fi;
10555
10556 eval "$ac_cv_use_official_build"
10557 if test "$no_cache" != 1; then
10558 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10559 fi
10560
10561 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10562 echo "$as_me:$LINENO: result: yes" >&5
10563 echo "${ECHO_T}yes" >&6
10564 else
10565 echo "$as_me:$LINENO: result: no" >&5
10566 echo "${ECHO_T}no" >&6
10567 fi
10568
10569 # Check whether --enable-vendor or --disable-vendor was given.
10570 if test "${enable_vendor+set}" = set; then
10571 enableval="$enable_vendor"
10572 VENDOR="$enableval"
10573 fi;
10574 if test "x$VENDOR" = "x"; then
10575 VENDOR="custom"
10576 fi
10577
10578
10579
10580
10581 echo "saving argument cache $wx_arg_cache_file"
10582 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10583
10584
10585
10586 echo "$as_me:$LINENO: checking for toolkit" >&5
10587 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10588
10589 # In Wine, we need to default to MSW, not GTK or MOTIF
10590 if test "$wxUSE_WINE" = "yes"; then
10591 DEFAULT_DEFAULT_wxUSE_GTK=0
10592 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10593 DEFAULT_DEFAULT_wxUSE_MSW=1
10594 wxUSE_SHARED=no
10595 fi
10596
10597
10598 if test "$wxUSE_GUI" = "yes"; then
10599
10600 if test "$USE_BEOS" = 1; then
10601 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10602 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10603 { (exit 1); exit 1; }; }
10604 fi
10605
10606 if test "$TOOLKIT_GIVEN" = 1; then
10607 for toolkit in `echo $ALL_TOOLKITS`; do
10608 var=wxUSE_$toolkit
10609 eval "value=\$${var}"
10610 if test "x$value" = "xno"; then
10611 eval "$var=0"
10612 elif test "x$value" != "x"; then
10613 eval "$var=1"
10614 fi
10615
10616 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10617 eval "wx${toolkit}_VERSION=$value"
10618 fi
10619 done
10620 else
10621 for toolkit in `echo $ALL_TOOLKITS`; do
10622 if test "$has_toolkit_in_cache" != 1; then
10623 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10624 else
10625 var=DEFAULT_wxUSE_$toolkit
10626
10627 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10628 if test "x$version" != "x"; then
10629 eval "wx${toolkit}_VERSION=$version"
10630 fi
10631 fi
10632 eval "wxUSE_$toolkit=\$${var}"
10633 done
10634 fi
10635
10636 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10637 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10638 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10639
10640 case "${host}" in
10641 *-pc-os2_emx | *-pc-os2-emx )
10642 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10643 esac
10644
10645 case "$NUM_TOOLKITS" in
10646 1)
10647 ;;
10648 0)
10649 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10650 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10651 { (exit 1); exit 1; }; }
10652 ;;
10653 *)
10654 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10655 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10656 { (exit 1); exit 1; }; }
10657 esac
10658
10659 # to be removed when --disable-gtk2 isn't needed
10660 if test "x$wxUSE_GTK2" = "xyes"; then
10661 wxGTK_VERSION=2
10662 elif test "x$wxUSE_GTK2" = "xno"; then
10663 wxGTK_VERSION=1
10664 fi
10665
10666 for toolkit in `echo $ALL_TOOLKITS`; do
10667 var=wxUSE_$toolkit
10668 eval "value=\$${var}"
10669 if test "x$value" != x; then
10670 cache_var=CACHE_$toolkit
10671 eval "cache=\$${cache_var}"
10672 if test "$cache" = 1; then
10673 echo "$var=$value" >> ${wx_arg_cache_file}
10674 eval "version=\$wx${toolkit}_VERSION"
10675 if test "x$version" != "x"; then
10676 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10677 fi
10678 fi
10679 if test "$value" = 1; then
10680 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10681 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10682 echo "${ECHO_T}$toolkit_echo" >&6
10683 fi
10684 fi
10685 done
10686 else
10687 if test "x$host_alias" != "x"; then
10688 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10689 echo "${ECHO_T}base ($host_alias hosted) only" >&6
10690 else
10691 echo "$as_me:$LINENO: result: base only" >&5
10692 echo "${ECHO_T}base only" >&6
10693 fi
10694 fi
10695
10696 wants_win32=0
10697 doesnt_want_win32=0
10698 case "${host}" in
10699 *-*-cygwin*)
10700 if test "$wxUSE_MSW" = 1 ; then
10701 wants_win32=1
10702 BAKEFILE_FORCE_PLATFORM=win32
10703 else
10704 doesnt_want_win32=1
10705 fi
10706 ;;
10707 *-*-mingw*)
10708 wants_win32=1
10709 ;;
10710 esac
10711
10712 if test "$wxUSE_WINE" = "yes"; then
10713 wants_win32=1
10714 CC=winegcc
10715 CXX=wineg++
10716 LDFLAGS_GUI="-mwindows"
10717 fi
10718
10719 if test "$wants_win32" = 1 ; then
10720 USE_UNIX=0
10721 USE_WIN32=1
10722 cat >>confdefs.h <<\_ACEOF
10723 #define __WIN32__ 1
10724 _ACEOF
10725
10726 cat >>confdefs.h <<\_ACEOF
10727 #define __WIN95__ 1
10728 _ACEOF
10729
10730 cat >>confdefs.h <<\_ACEOF
10731 #define __WINDOWS__ 1
10732 _ACEOF
10733
10734 cat >>confdefs.h <<\_ACEOF
10735 #define __GNUWIN32__ 1
10736 _ACEOF
10737
10738 cat >>confdefs.h <<\_ACEOF
10739 #define STRICT 1
10740 _ACEOF
10741
10742 cat >>confdefs.h <<\_ACEOF
10743 #define WINVER 0x0400
10744 _ACEOF
10745
10746 fi
10747 if test "$doesnt_want_win32" = 1 ; then
10748 USE_UNIX=1
10749 USE_WIN32=0
10750 fi
10751
10752 if test "$USE_UNIX" = 1 ; then
10753 wxUSE_UNIX=yes
10754 cat >>confdefs.h <<\_ACEOF
10755 #define __UNIX__ 1
10756 _ACEOF
10757
10758 fi
10759
10760
10761 cat >confcache <<\_ACEOF
10762 # This file is a shell script that caches the results of configure
10763 # tests run on this system so they can be shared between configure
10764 # scripts and configure runs, see configure's option --config-cache.
10765 # It is not useful on other systems. If it contains results you don't
10766 # want to keep, you may remove or edit it.
10767 #
10768 # config.status only pays attention to the cache file if you give it
10769 # the --recheck option to rerun configure.
10770 #
10771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10773 # following values.
10774
10775 _ACEOF
10776
10777 # The following way of writing the cache mishandles newlines in values,
10778 # but we know of no workaround that is simple, portable, and efficient.
10779 # So, don't put newlines in cache variables' values.
10780 # Ultrix sh set writes to stderr and can't be redirected directly,
10781 # and sets the high bit in the cache file unless we assign to the vars.
10782 {
10783 (set) 2>&1 |
10784 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10785 *ac_space=\ *)
10786 # `set' does not quote correctly, so add quotes (double-quote
10787 # substitution turns \\\\ into \\, and sed turns \\ into \).
10788 sed -n \
10789 "s/'/'\\\\''/g;
10790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10791 ;;
10792 *)
10793 # `set' quotes correctly as required by POSIX, so do not add quotes.
10794 sed -n \
10795 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10796 ;;
10797 esac;
10798 } |
10799 sed '
10800 t clear
10801 : clear
10802 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10803 t end
10804 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10805 : end' >>confcache
10806 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10807 if test -w $cache_file; then
10808 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10809 cat confcache >$cache_file
10810 else
10811 echo "not updating unwritable cache $cache_file"
10812 fi
10813 fi
10814 rm -f confcache
10815
10816 CFLAGS=${CFLAGS:=}
10817
10818
10819
10820 ac_ext=c
10821 ac_cpp='$CPP $CPPFLAGS'
10822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10825 if test -n "$ac_tool_prefix"; then
10826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10828 echo "$as_me:$LINENO: checking for $ac_word" >&5
10829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10830 if test "${ac_cv_prog_CC+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 else
10833 if test -n "$CC"; then
10834 ac_cv_prog_CC="$CC" # Let the user override the test.
10835 else
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10838 do
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10846 fi
10847 done
10848 done
10849
10850 fi
10851 fi
10852 CC=$ac_cv_prog_CC
10853 if test -n "$CC"; then
10854 echo "$as_me:$LINENO: result: $CC" >&5
10855 echo "${ECHO_T}$CC" >&6
10856 else
10857 echo "$as_me:$LINENO: result: no" >&5
10858 echo "${ECHO_T}no" >&6
10859 fi
10860
10861 fi
10862 if test -z "$ac_cv_prog_CC"; then
10863 ac_ct_CC=$CC
10864 # Extract the first word of "gcc", so it can be a program name with args.
10865 set dummy gcc; ac_word=$2
10866 echo "$as_me:$LINENO: checking for $ac_word" >&5
10867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871 if test -n "$ac_ct_CC"; then
10872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10873 else
10874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875 for as_dir in $PATH
10876 do
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10881 ac_cv_prog_ac_ct_CC="gcc"
10882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 break 2
10884 fi
10885 done
10886 done
10887
10888 fi
10889 fi
10890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10891 if test -n "$ac_ct_CC"; then
10892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10893 echo "${ECHO_T}$ac_ct_CC" >&6
10894 else
10895 echo "$as_me:$LINENO: result: no" >&5
10896 echo "${ECHO_T}no" >&6
10897 fi
10898
10899 CC=$ac_ct_CC
10900 else
10901 CC="$ac_cv_prog_CC"
10902 fi
10903
10904 if test -z "$CC"; then
10905 if test -n "$ac_tool_prefix"; then
10906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10907 set dummy ${ac_tool_prefix}cc; ac_word=$2
10908 echo "$as_me:$LINENO: checking for $ac_word" >&5
10909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10910 if test "${ac_cv_prog_CC+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913 if test -n "$CC"; then
10914 ac_cv_prog_CC="$CC" # Let the user override the test.
10915 else
10916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917 for as_dir in $PATH
10918 do
10919 IFS=$as_save_IFS
10920 test -z "$as_dir" && as_dir=.
10921 for ac_exec_ext in '' $ac_executable_extensions; do
10922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10923 ac_cv_prog_CC="${ac_tool_prefix}cc"
10924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10925 break 2
10926 fi
10927 done
10928 done
10929
10930 fi
10931 fi
10932 CC=$ac_cv_prog_CC
10933 if test -n "$CC"; then
10934 echo "$as_me:$LINENO: result: $CC" >&5
10935 echo "${ECHO_T}$CC" >&6
10936 else
10937 echo "$as_me:$LINENO: result: no" >&5
10938 echo "${ECHO_T}no" >&6
10939 fi
10940
10941 fi
10942 if test -z "$ac_cv_prog_CC"; then
10943 ac_ct_CC=$CC
10944 # Extract the first word of "cc", so it can be a program name with args.
10945 set dummy cc; ac_word=$2
10946 echo "$as_me:$LINENO: checking for $ac_word" >&5
10947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951 if test -n "$ac_ct_CC"; then
10952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10953 else
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10956 do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961 ac_cv_prog_ac_ct_CC="cc"
10962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10964 fi
10965 done
10966 done
10967
10968 fi
10969 fi
10970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10971 if test -n "$ac_ct_CC"; then
10972 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10973 echo "${ECHO_T}$ac_ct_CC" >&6
10974 else
10975 echo "$as_me:$LINENO: result: no" >&5
10976 echo "${ECHO_T}no" >&6
10977 fi
10978
10979 CC=$ac_ct_CC
10980 else
10981 CC="$ac_cv_prog_CC"
10982 fi
10983
10984 fi
10985 if test -z "$CC"; then
10986 # Extract the first word of "cc", so it can be a program name with args.
10987 set dummy cc; ac_word=$2
10988 echo "$as_me:$LINENO: checking for $ac_word" >&5
10989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10990 if test "${ac_cv_prog_CC+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993 if test -n "$CC"; then
10994 ac_cv_prog_CC="$CC" # Let the user override the test.
10995 else
10996 ac_prog_rejected=no
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
10999 do
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11005 ac_prog_rejected=yes
11006 continue
11007 fi
11008 ac_cv_prog_CC="cc"
11009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11010 break 2
11011 fi
11012 done
11013 done
11014
11015 if test $ac_prog_rejected = yes; then
11016 # We found a bogon in the path, so make sure we never use it.
11017 set dummy $ac_cv_prog_CC
11018 shift
11019 if test $# != 0; then
11020 # We chose a different compiler from the bogus one.
11021 # However, it has the same basename, so the bogon will be chosen
11022 # first if we set CC to just the basename; use the full file name.
11023 shift
11024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11025 fi
11026 fi
11027 fi
11028 fi
11029 CC=$ac_cv_prog_CC
11030 if test -n "$CC"; then
11031 echo "$as_me:$LINENO: result: $CC" >&5
11032 echo "${ECHO_T}$CC" >&6
11033 else
11034 echo "$as_me:$LINENO: result: no" >&5
11035 echo "${ECHO_T}no" >&6
11036 fi
11037
11038 fi
11039 if test -z "$CC"; then
11040 if test -n "$ac_tool_prefix"; then
11041 for ac_prog in cl
11042 do
11043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11045 echo "$as_me:$LINENO: checking for $ac_word" >&5
11046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11047 if test "${ac_cv_prog_CC+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050 if test -n "$CC"; then
11051 ac_cv_prog_CC="$CC" # Let the user override the test.
11052 else
11053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054 for as_dir in $PATH
11055 do
11056 IFS=$as_save_IFS
11057 test -z "$as_dir" && as_dir=.
11058 for ac_exec_ext in '' $ac_executable_extensions; do
11059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11062 break 2
11063 fi
11064 done
11065 done
11066
11067 fi
11068 fi
11069 CC=$ac_cv_prog_CC
11070 if test -n "$CC"; then
11071 echo "$as_me:$LINENO: result: $CC" >&5
11072 echo "${ECHO_T}$CC" >&6
11073 else
11074 echo "$as_me:$LINENO: result: no" >&5
11075 echo "${ECHO_T}no" >&6
11076 fi
11077
11078 test -n "$CC" && break
11079 done
11080 fi
11081 if test -z "$CC"; then
11082 ac_ct_CC=$CC
11083 for ac_prog in cl
11084 do
11085 # Extract the first word of "$ac_prog", so it can be a program name with args.
11086 set dummy $ac_prog; ac_word=$2
11087 echo "$as_me:$LINENO: checking for $ac_word" >&5
11088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092 if test -n "$ac_ct_CC"; then
11093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11094 else
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11097 do
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102 ac_cv_prog_ac_ct_CC="$ac_prog"
11103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 break 2
11105 fi
11106 done
11107 done
11108
11109 fi
11110 fi
11111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11112 if test -n "$ac_ct_CC"; then
11113 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11114 echo "${ECHO_T}$ac_ct_CC" >&6
11115 else
11116 echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6
11118 fi
11119
11120 test -n "$ac_ct_CC" && break
11121 done
11122
11123 CC=$ac_ct_CC
11124 fi
11125
11126 fi
11127
11128
11129 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11130 See \`config.log' for more details." >&5
11131 echo "$as_me: error: no acceptable C compiler found in \$PATH
11132 See \`config.log' for more details." >&2;}
11133 { (exit 1); exit 1; }; }
11134
11135 # Provide some information about the compiler.
11136 echo "$as_me:$LINENO:" \
11137 "checking for C compiler version" >&5
11138 ac_compiler=`set X $ac_compile; echo $2`
11139 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11140 (eval $ac_compiler --version </dev/null >&5) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }
11144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11145 (eval $ac_compiler -v </dev/null >&5) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }
11149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11150 (eval $ac_compiler -V </dev/null >&5) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }
11154
11155 cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h. */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161
11162 int
11163 main ()
11164 {
11165
11166 ;
11167 return 0;
11168 }
11169 _ACEOF
11170 ac_clean_files_save=$ac_clean_files
11171 ac_clean_files="$ac_clean_files a.out a.exe b.out"
11172 # Try to create an executable without -o first, disregard a.out.
11173 # It will help us diagnose broken compilers, and finding out an intuition
11174 # of exeext.
11175 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11176 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
11177 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11178 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11179 (eval $ac_link_default) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; then
11183 # Find the output, starting from the most likely. This scheme is
11184 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
11185 # resort.
11186
11187 # Be careful to initialize this variable, since it used to be cached.
11188 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11189 ac_cv_exeext=
11190 # b.out is created by i960 compilers.
11191 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11192 do
11193 test -f "$ac_file" || continue
11194 case $ac_file in
11195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11196 ;;
11197 conftest.$ac_ext )
11198 # This is the source file.
11199 ;;
11200 [ab].out )
11201 # We found the default executable, but exeext='' is most
11202 # certainly right.
11203 break;;
11204 *.* )
11205 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11206 # FIXME: I believe we export ac_cv_exeext for Libtool,
11207 # but it would be cool to find out if it's true. Does anybody
11208 # maintain Libtool? --akim.
11209 export ac_cv_exeext
11210 break;;
11211 * )
11212 break;;
11213 esac
11214 done
11215 else
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
11220 See \`config.log' for more details." >&5
11221 echo "$as_me: error: C compiler cannot create executables
11222 See \`config.log' for more details." >&2;}
11223 { (exit 77); exit 77; }; }
11224 fi
11225
11226 ac_exeext=$ac_cv_exeext
11227 echo "$as_me:$LINENO: result: $ac_file" >&5
11228 echo "${ECHO_T}$ac_file" >&6
11229
11230 # Check the compiler produces executables we can run. If not, either
11231 # the compiler is broken, or we cross compile.
11232 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11233 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11234 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11235 # If not cross compiling, check that we can run a simple program.
11236 if test "$cross_compiling" != yes; then
11237 if { ac_try='./$ac_file'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 cross_compiling=no
11244 else
11245 if test "$cross_compiling" = maybe; then
11246 cross_compiling=yes
11247 else
11248 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11249 If you meant to cross compile, use \`--host'.
11250 See \`config.log' for more details." >&5
11251 echo "$as_me: error: cannot run C compiled programs.
11252 If you meant to cross compile, use \`--host'.
11253 See \`config.log' for more details." >&2;}
11254 { (exit 1); exit 1; }; }
11255 fi
11256 fi
11257 fi
11258 echo "$as_me:$LINENO: result: yes" >&5
11259 echo "${ECHO_T}yes" >&6
11260
11261 rm -f a.out a.exe conftest$ac_cv_exeext b.out
11262 ac_clean_files=$ac_clean_files_save
11263 # Check the compiler produces executables we can run. If not, either
11264 # the compiler is broken, or we cross compile.
11265 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11266 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11267 echo "$as_me:$LINENO: result: $cross_compiling" >&5
11268 echo "${ECHO_T}$cross_compiling" >&6
11269
11270 echo "$as_me:$LINENO: checking for suffix of executables" >&5
11271 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11273 (eval $ac_link) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; then
11277 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11278 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11279 # work properly (i.e., refer to `conftest.exe'), while it won't with
11280 # `rm'.
11281 for ac_file in conftest.exe conftest conftest.*; do
11282 test -f "$ac_file" || continue
11283 case $ac_file in
11284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11286 export ac_cv_exeext
11287 break;;
11288 * ) break;;
11289 esac
11290 done
11291 else
11292 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11293 See \`config.log' for more details." >&5
11294 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11295 See \`config.log' for more details." >&2;}
11296 { (exit 1); exit 1; }; }
11297 fi
11298
11299 rm -f conftest$ac_cv_exeext
11300 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11301 echo "${ECHO_T}$ac_cv_exeext" >&6
11302
11303 rm -f conftest.$ac_ext
11304 EXEEXT=$ac_cv_exeext
11305 ac_exeext=$EXEEXT
11306 echo "$as_me:$LINENO: checking for suffix of object files" >&5
11307 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11308 if test "${ac_cv_objext+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h. */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317
11318 int
11319 main ()
11320 {
11321
11322 ;
11323 return 0;
11324 }
11325 _ACEOF
11326 rm -f conftest.o conftest.obj
11327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11328 (eval $ac_compile) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; then
11332 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11333 case $ac_file in
11334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11336 break;;
11337 esac
11338 done
11339 else
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11344 See \`config.log' for more details." >&5
11345 echo "$as_me: error: cannot compute suffix of object files: cannot compile
11346 See \`config.log' for more details." >&2;}
11347 { (exit 1); exit 1; }; }
11348 fi
11349
11350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
11351 fi
11352 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11353 echo "${ECHO_T}$ac_cv_objext" >&6
11354 OBJEXT=$ac_cv_objext
11355 ac_objext=$OBJEXT
11356 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361 cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h. */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367
11368 int
11369 main ()
11370 {
11371 #ifndef __GNUC__
11372 choke me
11373 #endif
11374
11375 ;
11376 return 0;
11377 }
11378 _ACEOF
11379 rm -f conftest.$ac_objext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11381 (eval $ac_compile) 2>conftest.er1
11382 ac_status=$?
11383 grep -v '^ *+' conftest.er1 >conftest.err
11384 rm -f conftest.er1
11385 cat conftest.err >&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } &&
11388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try='test -s conftest.$ac_objext'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 ac_compiler_gnu=yes
11401 else
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405 ac_compiler_gnu=no
11406 fi
11407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11409
11410 fi
11411 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11412 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11413 GCC=`test $ac_compiler_gnu = yes && echo yes`
11414 ac_test_CFLAGS=${CFLAGS+set}
11415 ac_save_CFLAGS=$CFLAGS
11416 CFLAGS="-g"
11417 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11419 if test "${ac_cv_prog_cc_g+set}" = set; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11421 else
11422 cat >conftest.$ac_ext <<_ACEOF
11423 /* confdefs.h. */
11424 _ACEOF
11425 cat confdefs.h >>conftest.$ac_ext
11426 cat >>conftest.$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11428
11429 int
11430 main ()
11431 {
11432
11433 ;
11434 return 0;
11435 }
11436 _ACEOF
11437 rm -f conftest.$ac_objext
11438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11439 (eval $ac_compile) 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; } &&
11452 { ac_try='test -s conftest.$ac_objext'
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 ac_cv_prog_cc_g=yes
11459 else
11460 echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11462
11463 ac_cv_prog_cc_g=no
11464 fi
11465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11466 fi
11467 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11468 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11469 if test "$ac_test_CFLAGS" = set; then
11470 CFLAGS=$ac_save_CFLAGS
11471 elif test $ac_cv_prog_cc_g = yes; then
11472 if test "$GCC" = yes; then
11473 CFLAGS="-g -O2"
11474 else
11475 CFLAGS="-g"
11476 fi
11477 else
11478 if test "$GCC" = yes; then
11479 CFLAGS="-O2"
11480 else
11481 CFLAGS=
11482 fi
11483 fi
11484 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11485 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11486 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489 ac_cv_prog_cc_stdc=no
11490 ac_save_CC=$CC
11491 cat >conftest.$ac_ext <<_ACEOF
11492 /* confdefs.h. */
11493 _ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11497 #include <stdarg.h>
11498 #include <stdio.h>
11499 #include <sys/types.h>
11500 #include <sys/stat.h>
11501 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11502 struct buf { int x; };
11503 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11504 static char *e (p, i)
11505 char **p;
11506 int i;
11507 {
11508 return p[i];
11509 }
11510 static char *f (char * (*g) (char **, int), char **p, ...)
11511 {
11512 char *s;
11513 va_list v;
11514 va_start (v,p);
11515 s = g (p, va_arg (v,int));
11516 va_end (v);
11517 return s;
11518 }
11519
11520 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11521 function prototypes and stuff, but not '\xHH' hex character constants.
11522 These don't provoke an error unfortunately, instead are silently treated
11523 as 'x'. The following induces an error, until -std1 is added to get
11524 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11525 array size at least. It's necessary to write '\x00'==0 to get something
11526 that's true only with -std1. */
11527 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11528
11529 int test (int i, double x);
11530 struct s1 {int (*f) (int a);};
11531 struct s2 {int (*f) (double a);};
11532 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11533 int argc;
11534 char **argv;
11535 int
11536 main ()
11537 {
11538 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11539 ;
11540 return 0;
11541 }
11542 _ACEOF
11543 # Don't try gcc -ansi; that turns off useful extensions and
11544 # breaks some systems' header files.
11545 # AIX -qlanglvl=ansi
11546 # Ultrix and OSF/1 -std1
11547 # HP-UX 10.20 and later -Ae
11548 # HP-UX older versions -Aa -D_HPUX_SOURCE
11549 # SVR4 -Xc -D__EXTENSIONS__
11550 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11551 do
11552 CC="$ac_save_CC $ac_arg"
11553 rm -f conftest.$ac_objext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555 (eval $ac_compile) 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; } &&
11568 { ac_try='test -s conftest.$ac_objext'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 ac_cv_prog_cc_stdc=$ac_arg
11575 break
11576 else
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11579
11580 fi
11581 rm -f conftest.err conftest.$ac_objext
11582 done
11583 rm -f conftest.$ac_ext conftest.$ac_objext
11584 CC=$ac_save_CC
11585
11586 fi
11587
11588 case "x$ac_cv_prog_cc_stdc" in
11589 x|xno)
11590 echo "$as_me:$LINENO: result: none needed" >&5
11591 echo "${ECHO_T}none needed" >&6 ;;
11592 *)
11593 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11594 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11595 CC="$CC $ac_cv_prog_cc_stdc" ;;
11596 esac
11597
11598 # Some people use a C++ compiler to compile C. Since we use `exit',
11599 # in C++ we need to declare it. In case someone uses the same compiler
11600 # for both compiling C and C++ we need to have the C++ compiler decide
11601 # the declaration of exit, since it's the most demanding environment.
11602 cat >conftest.$ac_ext <<_ACEOF
11603 #ifndef __cplusplus
11604 choke me
11605 #endif
11606 _ACEOF
11607 rm -f conftest.$ac_objext
11608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11609 (eval $ac_compile) 2>conftest.er1
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; } &&
11622 { ac_try='test -s conftest.$ac_objext'
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11625 ac_status=$?
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }; then
11628 for ac_declaration in \
11629 '' \
11630 'extern "C" void std::exit (int) throw (); using std::exit;' \
11631 'extern "C" void std::exit (int); using std::exit;' \
11632 'extern "C" void exit (int) throw ();' \
11633 'extern "C" void exit (int);' \
11634 'void exit (int);'
11635 do
11636 cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h. */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 $ac_declaration
11643 #include <stdlib.h>
11644 int
11645 main ()
11646 {
11647 exit (42);
11648 ;
11649 return 0;
11650 }
11651 _ACEOF
11652 rm -f conftest.$ac_objext
11653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11654 (eval $ac_compile) 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } &&
11661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest.$ac_objext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 :
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678 continue
11679 fi
11680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11681 cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h. */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 $ac_declaration
11688 int
11689 main ()
11690 {
11691 exit (42);
11692 ;
11693 return 0;
11694 }
11695 _ACEOF
11696 rm -f conftest.$ac_objext
11697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11698 (eval $ac_compile) 2>conftest.er1
11699 ac_status=$?
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
11705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest.$ac_objext'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 break
11718 else
11719 echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11721
11722 fi
11723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11724 done
11725 rm -f conftest*
11726 if test -n "$ac_declaration"; then
11727 echo '#ifdef __cplusplus' >>confdefs.h
11728 echo $ac_declaration >>confdefs.h
11729 echo '#endif' >>confdefs.h
11730 fi
11731
11732 else
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11735
11736 fi
11737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11738 ac_ext=c
11739 ac_cpp='$CPP $CPPFLAGS'
11740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11743
11744
11745
11746 ac_ext=c
11747 ac_cpp='$CPP $CPPFLAGS'
11748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11751
11752 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11753 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11754 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 else
11757 cat >conftest.$ac_ext <<_ACEOF
11758 /* confdefs.h. */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11763
11764 int
11765 main ()
11766 {
11767
11768 #ifndef __INTEL_COMPILER
11769 choke me
11770 #endif
11771
11772 ;
11773 return 0;
11774 }
11775 _ACEOF
11776 rm -f conftest.$ac_objext
11777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11778 (eval $ac_compile) 2>conftest.er1
11779 ac_status=$?
11780 grep -v '^ *+' conftest.er1 >conftest.err
11781 rm -f conftest.er1
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } &&
11785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try='test -s conftest.$ac_objext'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11798 else
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802 bakefile_cv_c_compiler___INTEL_COMPILER=no
11803
11804 fi
11805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11806
11807
11808 fi
11809 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11810 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11811 ac_ext=c
11812 ac_cpp='$CPP $CPPFLAGS'
11813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11816
11817 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11818 :; INTELCC=yes
11819 else
11820 :;
11821 fi
11822
11823
11824 if test "x$GCC" != "xyes"; then
11825 if test "xCC" = "xC"; then
11826 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
11827 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11828 if test "${bakefile_cv_c_exto+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831 cat >conftest.$ac_ext <<_ACEOF
11832 /* confdefs.h. */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837
11838 int
11839 main ()
11840 {
11841
11842 ;
11843 return 0;
11844 }
11845 _ACEOF
11846 rm -f conftest.$ac_objext conftest.$ac_ext.o
11847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848 (eval $ac_compile) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; then
11852 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11853 case $ac_file in
11854 conftest.$ac_ext.o)
11855 bakefile_cv_c_exto="-ext o"
11856 ;;
11857 *)
11858 ;;
11859 esac
11860 done
11861 else
11862 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11863 See \`config.log' for more details." >&5
11864 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11865 See \`config.log' for more details." >&2;}
11866 { (exit 1); exit 1; }; }
11867
11868 fi
11869
11870 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11871
11872 fi
11873 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
11874 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
11875 if test "x$bakefile_cv_c_exto" '!=' "x"; then
11876 if test "c" = "c"; then
11877 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
11878 fi
11879 if test "c" = "cxx"; then
11880 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
11881 fi
11882 fi
11883
11884 if test "x$bakefile_cv_c_exto" '!=' "x"; then
11885 unset ac_cv_prog_cc_g
11886 ac_test_CFLAGS=${CFLAGS+set}
11887 ac_save_CFLAGS=$CFLAGS
11888 CFLAGS="-g"
11889 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11890 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11891 if test "${ac_cv_prog_cc_g+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894 cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h. */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900
11901 int
11902 main ()
11903 {
11904
11905 ;
11906 return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911 (eval $ac_compile) 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest.$ac_objext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 ac_cv_prog_cc_g=yes
11931 else
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11934
11935 ac_cv_prog_cc_g=no
11936 fi
11937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11938 fi
11939 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11940 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11941 if test "$ac_test_CFLAGS" = set; then
11942 CFLAGS=$ac_save_CFLAGS
11943 elif test $ac_cv_prog_cc_g = yes; then
11944 if test "$GCC" = yes; then
11945 CFLAGS="-g -O2"
11946 else
11947 CFLAGS="-g"
11948 fi
11949 else
11950 if test "$GCC" = yes; then
11951 CFLAGS="-O2"
11952 else
11953 CFLAGS=
11954 fi
11955 fi
11956 fi
11957 fi
11958
11959 case `uname -s` in
11960 AIX*)
11961 ac_ext=c
11962 ac_cpp='$CPP $CPPFLAGS'
11963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11966
11967 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11968 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11969 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 else
11972 cat >conftest.$ac_ext <<_ACEOF
11973 /* confdefs.h. */
11974 _ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h. */
11978
11979 int
11980 main ()
11981 {
11982 #ifndef __xlC__
11983 choke me
11984 #endif
11985
11986 ;
11987 return 0;
11988 }
11989 _ACEOF
11990 rm -f conftest.$ac_objext
11991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11992 (eval $ac_compile) 2>conftest.er1
11993 ac_status=$?
11994 grep -v '^ *+' conftest.er1 >conftest.err
11995 rm -f conftest.er1
11996 cat conftest.err >&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } &&
11999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; } &&
12005 { ac_try='test -s conftest.$ac_objext'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 bakefile_compiler_xlc=yes
12012 else
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 bakefile_compiler_xlc=no
12017 fi
12018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12019 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12020
12021 fi
12022 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12023 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12024
12025 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12026 ac_ext=c
12027 ac_cpp='$CPP $CPPFLAGS'
12028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12031
12032
12033 ;;
12034
12035 Darwin)
12036 ac_ext=c
12037 ac_cpp='$CPP $CPPFLAGS'
12038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12041
12042 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12043 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12044 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047 cat >conftest.$ac_ext <<_ACEOF
12048 /* confdefs.h. */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053
12054 int
12055 main ()
12056 {
12057 #ifndef __MWERKS__
12058 choke me
12059 #endif
12060
12061 ;
12062 return 0;
12063 }
12064 _ACEOF
12065 rm -f conftest.$ac_objext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12067 (eval $ac_compile) 2>conftest.er1
12068 ac_status=$?
12069 grep -v '^ *+' conftest.er1 >conftest.err
12070 rm -f conftest.er1
12071 cat conftest.err >&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
12074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try='test -s conftest.$ac_objext'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 bakefile_compiler_mwerks=yes
12087 else
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12090
12091 bakefile_compiler_mwerks=no
12092 fi
12093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12094 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12095
12096 fi
12097 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12098 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12099
12100 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
12101 ac_ext=c
12102 ac_cpp='$CPP $CPPFLAGS'
12103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12106
12107
12108 ac_ext=c
12109 ac_cpp='$CPP $CPPFLAGS'
12110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12113
12114 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12115 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12116 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h. */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125
12126 int
12127 main ()
12128 {
12129 #ifndef __xlC__
12130 choke me
12131 #endif
12132
12133 ;
12134 return 0;
12135 }
12136 _ACEOF
12137 rm -f conftest.$ac_objext
12138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12139 (eval $ac_compile) 2>conftest.er1
12140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } &&
12146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; } &&
12152 { ac_try='test -s conftest.$ac_objext'
12153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12154 (eval $ac_try) 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
12158 bakefile_compiler_xlc=yes
12159 else
12160 echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12162
12163 bakefile_compiler_xlc=no
12164 fi
12165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12166 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12167
12168 fi
12169 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12170 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12171
12172 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12173 ac_ext=c
12174 ac_cpp='$CPP $CPPFLAGS'
12175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12178
12179
12180 ;;
12181
12182 IRIX*)
12183
12184
12185 ac_ext=c
12186 ac_cpp='$CPP $CPPFLAGS'
12187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12190
12191 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12192 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12193 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196 cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h. */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12202
12203 int
12204 main ()
12205 {
12206
12207 #ifndef _SGI_COMPILER_VERSION
12208 choke me
12209 #endif
12210
12211 ;
12212 return 0;
12213 }
12214 _ACEOF
12215 rm -f conftest.$ac_objext
12216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12217 (eval $ac_compile) 2>conftest.er1
12218 ac_status=$?
12219 grep -v '^ *+' conftest.er1 >conftest.err
12220 rm -f conftest.er1
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } &&
12224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } &&
12230 { ac_try='test -s conftest.$ac_objext'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12236 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12237 else
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12240
12241 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12242
12243 fi
12244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12245
12246
12247 fi
12248 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12249 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12250 ac_ext=c
12251 ac_cpp='$CPP $CPPFLAGS'
12252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12255
12256 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12257 :; SGICC=yes
12258 else
12259 :;
12260 fi
12261
12262
12263 ;;
12264
12265 HP-UX*)
12266
12267
12268 ac_ext=c
12269 ac_cpp='$CPP $CPPFLAGS'
12270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12273
12274 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12275 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12276 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279 cat >conftest.$ac_ext <<_ACEOF
12280 /* confdefs.h. */
12281 _ACEOF
12282 cat confdefs.h >>conftest.$ac_ext
12283 cat >>conftest.$ac_ext <<_ACEOF
12284 /* end confdefs.h. */
12285
12286 int
12287 main ()
12288 {
12289
12290 #ifndef __HP_cc
12291 choke me
12292 #endif
12293
12294 ;
12295 return 0;
12296 }
12297 _ACEOF
12298 rm -f conftest.$ac_objext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12300 (eval $ac_compile) 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest.$ac_objext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 bakefile_cv_c_compiler___HP_cc=yes
12320 else
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12323
12324 bakefile_cv_c_compiler___HP_cc=no
12325
12326 fi
12327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12328
12329
12330 fi
12331 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12332 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
12333 ac_ext=c
12334 ac_cpp='$CPP $CPPFLAGS'
12335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12338
12339 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12340 :; HPCC=yes
12341 else
12342 :;
12343 fi
12344
12345
12346 ;;
12347
12348 OSF1)
12349
12350
12351 ac_ext=c
12352 ac_cpp='$CPP $CPPFLAGS'
12353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12356
12357 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12358 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12359 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362 cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h. */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12368
12369 int
12370 main ()
12371 {
12372
12373 #ifndef __DECC
12374 choke me
12375 #endif
12376
12377 ;
12378 return 0;
12379 }
12380 _ACEOF
12381 rm -f conftest.$ac_objext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383 (eval $ac_compile) 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; } &&
12396 { ac_try='test -s conftest.$ac_objext'
12397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 bakefile_cv_c_compiler___DECC=yes
12403 else
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12406
12407 bakefile_cv_c_compiler___DECC=no
12408
12409 fi
12410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12411
12412
12413 fi
12414 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12415 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
12416 ac_ext=c
12417 ac_cpp='$CPP $CPPFLAGS'
12418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12421
12422 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12423 :; COMPAQCC=yes
12424 else
12425 :;
12426 fi
12427
12428
12429 ;;
12430
12431 SunOS)
12432
12433
12434 ac_ext=c
12435 ac_cpp='$CPP $CPPFLAGS'
12436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12439
12440 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12441 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12442 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12444 else
12445 cat >conftest.$ac_ext <<_ACEOF
12446 /* confdefs.h. */
12447 _ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h. */
12451
12452 int
12453 main ()
12454 {
12455
12456 #ifndef __SUNPRO_C
12457 choke me
12458 #endif
12459
12460 ;
12461 return 0;
12462 }
12463 _ACEOF
12464 rm -f conftest.$ac_objext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466 (eval $ac_compile) 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest.$ac_objext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 bakefile_cv_c_compiler___SUNPRO_C=yes
12486 else
12487 echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12489
12490 bakefile_cv_c_compiler___SUNPRO_C=no
12491
12492 fi
12493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12494
12495
12496 fi
12497 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12498 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12499 ac_ext=c
12500 ac_cpp='$CPP $CPPFLAGS'
12501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12504
12505 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12506 :; SUNCC=yes
12507 else
12508 :;
12509 fi
12510
12511
12512 ;;
12513 esac
12514 fi
12515
12516
12517
12518 ac_ext=c
12519 ac_cpp='$CPP $CPPFLAGS'
12520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12523 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12524 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12525 # On Suns, sometimes $CPP names a directory.
12526 if test -n "$CPP" && test -d "$CPP"; then
12527 CPP=
12528 fi
12529 if test -z "$CPP"; then
12530 if test "${ac_cv_prog_CPP+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533 # Double quotes because CPP needs to be expanded
12534 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12535 do
12536 ac_preproc_ok=false
12537 for ac_c_preproc_warn_flag in '' yes
12538 do
12539 # Use a header file that comes with gcc, so configuring glibc
12540 # with a fresh cross-compiler works.
12541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12542 # <limits.h> exists even on freestanding compilers.
12543 # On the NeXT, cc -E runs the code through the compiler's parser,
12544 # not just through cpp. "Syntax error" is here to catch this case.
12545 cat >conftest.$ac_ext <<_ACEOF
12546 /* confdefs.h. */
12547 _ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h. */
12551 #ifdef __STDC__
12552 # include <limits.h>
12553 #else
12554 # include <assert.h>
12555 #endif
12556 Syntax error
12557 _ACEOF
12558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } >/dev/null; then
12566 if test -s conftest.err; then
12567 ac_cpp_err=$ac_c_preproc_warn_flag
12568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12569 else
12570 ac_cpp_err=
12571 fi
12572 else
12573 ac_cpp_err=yes
12574 fi
12575 if test -z "$ac_cpp_err"; then
12576 :
12577 else
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581 # Broken: fails on valid input.
12582 continue
12583 fi
12584 rm -f conftest.err conftest.$ac_ext
12585
12586 # OK, works on sane cases. Now check whether non-existent headers
12587 # can be detected and how.
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12594 #include <ac_nonexistent.h>
12595 _ACEOF
12596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12598 ac_status=$?
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } >/dev/null; then
12604 if test -s conftest.err; then
12605 ac_cpp_err=$ac_c_preproc_warn_flag
12606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12607 else
12608 ac_cpp_err=
12609 fi
12610 else
12611 ac_cpp_err=yes
12612 fi
12613 if test -z "$ac_cpp_err"; then
12614 # Broken: success on invalid input.
12615 continue
12616 else
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12619
12620 # Passes both tests.
12621 ac_preproc_ok=:
12622 break
12623 fi
12624 rm -f conftest.err conftest.$ac_ext
12625
12626 done
12627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12628 rm -f conftest.err conftest.$ac_ext
12629 if $ac_preproc_ok; then
12630 break
12631 fi
12632
12633 done
12634 ac_cv_prog_CPP=$CPP
12635
12636 fi
12637 CPP=$ac_cv_prog_CPP
12638 else
12639 ac_cv_prog_CPP=$CPP
12640 fi
12641 echo "$as_me:$LINENO: result: $CPP" >&5
12642 echo "${ECHO_T}$CPP" >&6
12643 ac_preproc_ok=false
12644 for ac_c_preproc_warn_flag in '' yes
12645 do
12646 # Use a header file that comes with gcc, so configuring glibc
12647 # with a fresh cross-compiler works.
12648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12649 # <limits.h> exists even on freestanding compilers.
12650 # On the NeXT, cc -E runs the code through the compiler's parser,
12651 # not just through cpp. "Syntax error" is here to catch this case.
12652 cat >conftest.$ac_ext <<_ACEOF
12653 /* confdefs.h. */
12654 _ACEOF
12655 cat confdefs.h >>conftest.$ac_ext
12656 cat >>conftest.$ac_ext <<_ACEOF
12657 /* end confdefs.h. */
12658 #ifdef __STDC__
12659 # include <limits.h>
12660 #else
12661 # include <assert.h>
12662 #endif
12663 Syntax error
12664 _ACEOF
12665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12667 ac_status=$?
12668 grep -v '^ *+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } >/dev/null; then
12673 if test -s conftest.err; then
12674 ac_cpp_err=$ac_c_preproc_warn_flag
12675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12676 else
12677 ac_cpp_err=
12678 fi
12679 else
12680 ac_cpp_err=yes
12681 fi
12682 if test -z "$ac_cpp_err"; then
12683 :
12684 else
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12687
12688 # Broken: fails on valid input.
12689 continue
12690 fi
12691 rm -f conftest.err conftest.$ac_ext
12692
12693 # OK, works on sane cases. Now check whether non-existent headers
12694 # can be detected and how.
12695 cat >conftest.$ac_ext <<_ACEOF
12696 /* confdefs.h. */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12701 #include <ac_nonexistent.h>
12702 _ACEOF
12703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12705 ac_status=$?
12706 grep -v '^ *+' conftest.er1 >conftest.err
12707 rm -f conftest.er1
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } >/dev/null; then
12711 if test -s conftest.err; then
12712 ac_cpp_err=$ac_c_preproc_warn_flag
12713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12714 else
12715 ac_cpp_err=
12716 fi
12717 else
12718 ac_cpp_err=yes
12719 fi
12720 if test -z "$ac_cpp_err"; then
12721 # Broken: success on invalid input.
12722 continue
12723 else
12724 echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12726
12727 # Passes both tests.
12728 ac_preproc_ok=:
12729 break
12730 fi
12731 rm -f conftest.err conftest.$ac_ext
12732
12733 done
12734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12735 rm -f conftest.err conftest.$ac_ext
12736 if $ac_preproc_ok; then
12737 :
12738 else
12739 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12740 See \`config.log' for more details." >&5
12741 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12742 See \`config.log' for more details." >&2;}
12743 { (exit 1); exit 1; }; }
12744 fi
12745
12746 ac_ext=c
12747 ac_cpp='$CPP $CPPFLAGS'
12748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12751
12752
12753 echo "$as_me:$LINENO: checking for egrep" >&5
12754 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12755 if test "${ac_cv_prog_egrep+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12757 else
12758 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12759 then ac_cv_prog_egrep='grep -E'
12760 else ac_cv_prog_egrep='egrep'
12761 fi
12762 fi
12763 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12764 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12765 EGREP=$ac_cv_prog_egrep
12766
12767
12768 if test $ac_cv_c_compiler_gnu = yes; then
12769 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12770 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12771 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 else
12774 ac_pattern="Autoconf.*'x'"
12775 cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h. */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12781 #include <sgtty.h>
12782 Autoconf TIOCGETP
12783 _ACEOF
12784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12785 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12786 ac_cv_prog_gcc_traditional=yes
12787 else
12788 ac_cv_prog_gcc_traditional=no
12789 fi
12790 rm -f conftest*
12791
12792
12793 if test $ac_cv_prog_gcc_traditional = no; then
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 #include <termio.h>
12801 Autoconf TCGETA
12802 _ACEOF
12803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12804 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12805 ac_cv_prog_gcc_traditional=yes
12806 fi
12807 rm -f conftest*
12808
12809 fi
12810 fi
12811 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12812 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12813 if test $ac_cv_prog_gcc_traditional = yes; then
12814 CC="$CC -traditional"
12815 fi
12816 fi
12817
12818
12819
12820
12821 ac_ext=cc
12822 ac_cpp='$CXXCPP $CPPFLAGS'
12823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12826
12827
12828 CXXFLAGS=${CXXFLAGS:=}
12829
12830
12831
12832 ac_ext=cc
12833 ac_cpp='$CXXCPP $CPPFLAGS'
12834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12837 if test -n "$ac_tool_prefix"; then
12838 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12839 do
12840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12842 echo "$as_me:$LINENO: checking for $ac_word" >&5
12843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12844 if test "${ac_cv_prog_CXX+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 else
12847 if test -n "$CXX"; then
12848 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12849 else
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in $PATH
12852 do
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12857 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12860 fi
12861 done
12862 done
12863
12864 fi
12865 fi
12866 CXX=$ac_cv_prog_CXX
12867 if test -n "$CXX"; then
12868 echo "$as_me:$LINENO: result: $CXX" >&5
12869 echo "${ECHO_T}$CXX" >&6
12870 else
12871 echo "$as_me:$LINENO: result: no" >&5
12872 echo "${ECHO_T}no" >&6
12873 fi
12874
12875 test -n "$CXX" && break
12876 done
12877 fi
12878 if test -z "$CXX"; then
12879 ac_ct_CXX=$CXX
12880 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12881 do
12882 # Extract the first word of "$ac_prog", so it can be a program name with args.
12883 set dummy $ac_prog; ac_word=$2
12884 echo "$as_me:$LINENO: checking for $ac_word" >&5
12885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12886 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 else
12889 if test -n "$ac_ct_CXX"; then
12890 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12891 else
12892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893 for as_dir in $PATH
12894 do
12895 IFS=$as_save_IFS
12896 test -z "$as_dir" && as_dir=.
12897 for ac_exec_ext in '' $ac_executable_extensions; do
12898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12899 ac_cv_prog_ac_ct_CXX="$ac_prog"
12900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12901 break 2
12902 fi
12903 done
12904 done
12905
12906 fi
12907 fi
12908 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12909 if test -n "$ac_ct_CXX"; then
12910 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12911 echo "${ECHO_T}$ac_ct_CXX" >&6
12912 else
12913 echo "$as_me:$LINENO: result: no" >&5
12914 echo "${ECHO_T}no" >&6
12915 fi
12916
12917 test -n "$ac_ct_CXX" && break
12918 done
12919 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12920
12921 CXX=$ac_ct_CXX
12922 fi
12923
12924
12925 # Provide some information about the compiler.
12926 echo "$as_me:$LINENO:" \
12927 "checking for C++ compiler version" >&5
12928 ac_compiler=`set X $ac_compile; echo $2`
12929 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12930 (eval $ac_compiler --version </dev/null >&5) 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }
12934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12935 (eval $ac_compiler -v </dev/null >&5) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }
12939 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12940 (eval $ac_compiler -V </dev/null >&5) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }
12944
12945 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12946 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12947 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950 cat >conftest.$ac_ext <<_ACEOF
12951 /* confdefs.h. */
12952 _ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h. */
12956
12957 int
12958 main ()
12959 {
12960 #ifndef __GNUC__
12961 choke me
12962 #endif
12963
12964 ;
12965 return 0;
12966 }
12967 _ACEOF
12968 rm -f conftest.$ac_objext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970 (eval $ac_compile) 2>conftest.er1
12971 ac_status=$?
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest.$ac_objext'
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 ac_compiler_gnu=yes
12990 else
12991 echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12993
12994 ac_compiler_gnu=no
12995 fi
12996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12997 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12998
12999 fi
13000 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13001 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13002 GXX=`test $ac_compiler_gnu = yes && echo yes`
13003 ac_test_CXXFLAGS=${CXXFLAGS+set}
13004 ac_save_CXXFLAGS=$CXXFLAGS
13005 CXXFLAGS="-g"
13006 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13007 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13008 if test "${ac_cv_prog_cxx_g+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011 cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h. */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017
13018 int
13019 main ()
13020 {
13021
13022 ;
13023 return 0;
13024 }
13025 _ACEOF
13026 rm -f conftest.$ac_objext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13028 (eval $ac_compile) 2>conftest.er1
13029 ac_status=$?
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; } &&
13041 { ac_try='test -s conftest.$ac_objext'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047 ac_cv_prog_cxx_g=yes
13048 else
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052 ac_cv_prog_cxx_g=no
13053 fi
13054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13055 fi
13056 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13057 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13058 if test "$ac_test_CXXFLAGS" = set; then
13059 CXXFLAGS=$ac_save_CXXFLAGS
13060 elif test $ac_cv_prog_cxx_g = yes; then
13061 if test "$GXX" = yes; then
13062 CXXFLAGS="-g -O2"
13063 else
13064 CXXFLAGS="-g"
13065 fi
13066 else
13067 if test "$GXX" = yes; then
13068 CXXFLAGS="-O2"
13069 else
13070 CXXFLAGS=
13071 fi
13072 fi
13073 for ac_declaration in \
13074 '' \
13075 'extern "C" void std::exit (int) throw (); using std::exit;' \
13076 'extern "C" void std::exit (int); using std::exit;' \
13077 'extern "C" void exit (int) throw ();' \
13078 'extern "C" void exit (int);' \
13079 'void exit (int);'
13080 do
13081 cat >conftest.$ac_ext <<_ACEOF
13082 /* confdefs.h. */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13087 $ac_declaration
13088 #include <stdlib.h>
13089 int
13090 main ()
13091 {
13092 exit (42);
13093 ;
13094 return 0;
13095 }
13096 _ACEOF
13097 rm -f conftest.$ac_objext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try='test -s conftest.$ac_objext'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118 :
13119 else
13120 echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13122
13123 continue
13124 fi
13125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13126 cat >conftest.$ac_ext <<_ACEOF
13127 /* confdefs.h. */
13128 _ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h. */
13132 $ac_declaration
13133 int
13134 main ()
13135 {
13136 exit (42);
13137 ;
13138 return 0;
13139 }
13140 _ACEOF
13141 rm -f conftest.$ac_objext
13142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13143 (eval $ac_compile) 2>conftest.er1
13144 ac_status=$?
13145 grep -v '^ *+' conftest.er1 >conftest.err
13146 rm -f conftest.er1
13147 cat conftest.err >&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } &&
13150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest.$ac_objext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 break
13163 else
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13166
13167 fi
13168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13169 done
13170 rm -f conftest*
13171 if test -n "$ac_declaration"; then
13172 echo '#ifdef __cplusplus' >>confdefs.h
13173 echo $ac_declaration >>confdefs.h
13174 echo '#endif' >>confdefs.h
13175 fi
13176
13177 ac_ext=cc
13178 ac_cpp='$CXXCPP $CPPFLAGS'
13179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13182
13183
13184
13185 ac_ext=cc
13186 ac_cpp='$CXXCPP $CPPFLAGS'
13187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13190
13191 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13192 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13193 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196 cat >conftest.$ac_ext <<_ACEOF
13197 /* confdefs.h. */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13202
13203 int
13204 main ()
13205 {
13206
13207 #ifndef __INTEL_COMPILER
13208 choke me
13209 #endif
13210
13211 ;
13212 return 0;
13213 }
13214 _ACEOF
13215 rm -f conftest.$ac_objext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13217 (eval $ac_compile) 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; } &&
13230 { ac_try='test -s conftest.$ac_objext'
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13233 ac_status=$?
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; }; then
13236 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13237 else
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13240
13241 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13242
13243 fi
13244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13245
13246
13247 fi
13248 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13249 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13250 ac_ext=cc
13251 ac_cpp='$CXXCPP $CPPFLAGS'
13252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13255
13256 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13257 :; INTELCXX=yes
13258 else
13259 :;
13260 fi
13261
13262
13263 if test "x$GCXX" != "xyes"; then
13264 if test "xCXX" = "xC"; then
13265 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
13266 echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
13267 if test "${bakefile_cv_cxx_exto+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270 cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h. */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276
13277 int
13278 main ()
13279 {
13280
13281 ;
13282 return 0;
13283 }
13284 _ACEOF
13285 rm -f conftest.$ac_objext conftest.$ac_ext.o
13286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287 (eval $ac_compile) 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; then
13291 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13292 case $ac_file in
13293 conftest.$ac_ext.o)
13294 bakefile_cv_cxx_exto="-ext o"
13295 ;;
13296 *)
13297 ;;
13298 esac
13299 done
13300 else
13301 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13302 See \`config.log' for more details." >&5
13303 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13304 See \`config.log' for more details." >&2;}
13305 { (exit 1); exit 1; }; }
13306
13307 fi
13308
13309 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13310
13311 fi
13312 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13313 echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13314 if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
13315 if test "cxx" = "c"; then
13316 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
13317 fi
13318 if test "cxx" = "cxx"; then
13319 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
13320 fi
13321 fi
13322
13323 if test "x$bakefile_cv_c_exto" '!=' "x"; then
13324 unset ac_cv_prog_cc_g
13325 ac_test_CFLAGS=${CFLAGS+set}
13326 ac_save_CFLAGS=$CFLAGS
13327 CFLAGS="-g"
13328 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13329 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13330 if test "${ac_cv_prog_cc_g+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333 cat >conftest.$ac_ext <<_ACEOF
13334 /* confdefs.h. */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13339
13340 int
13341 main ()
13342 {
13343
13344 ;
13345 return 0;
13346 }
13347 _ACEOF
13348 rm -f conftest.$ac_objext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13350 (eval $ac_compile) 2>conftest.er1
13351 ac_status=$?
13352 grep -v '^ *+' conftest.er1 >conftest.err
13353 rm -f conftest.er1
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; } &&
13363 { ac_try='test -s conftest.$ac_objext'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13369 ac_cv_prog_cc_g=yes
13370 else
13371 echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13373
13374 ac_cv_prog_cc_g=no
13375 fi
13376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13377 fi
13378 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13379 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13380 if test "$ac_test_CFLAGS" = set; then
13381 CFLAGS=$ac_save_CFLAGS
13382 elif test $ac_cv_prog_cc_g = yes; then
13383 if test "$GCC" = yes; then
13384 CFLAGS="-g -O2"
13385 else
13386 CFLAGS="-g"
13387 fi
13388 else
13389 if test "$GCC" = yes; then
13390 CFLAGS="-O2"
13391 else
13392 CFLAGS=
13393 fi
13394 fi
13395 fi
13396 fi
13397
13398 case `uname -s` in
13399 AIX*)
13400 ac_ext=cc
13401 ac_cpp='$CXXCPP $CPPFLAGS'
13402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13405
13406 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13407 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
13408 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411 cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h. */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417
13418 int
13419 main ()
13420 {
13421 #ifndef __xlC__
13422 choke me
13423 #endif
13424
13425 ;
13426 return 0;
13427 }
13428 _ACEOF
13429 rm -f conftest.$ac_objext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13431 (eval $ac_compile) 2>conftest.er1
13432 ac_status=$?
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } &&
13438 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest.$ac_objext'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 bakefile_compiler_xlc=yes
13451 else
13452 echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13454
13455 bakefile_compiler_xlc=no
13456 fi
13457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13458 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
13459
13460 fi
13461 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13462 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
13463
13464 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
13465 ac_ext=cc
13466 ac_cpp='$CXXCPP $CPPFLAGS'
13467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13470
13471
13472 ;;
13473
13474 Darwin)
13475 ac_ext=cc
13476 ac_cpp='$CXXCPP $CPPFLAGS'
13477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13480
13481 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13482 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13483 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486 cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h. */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13492
13493 int
13494 main ()
13495 {
13496 #ifndef __MWERKS__
13497 choke me
13498 #endif
13499
13500 ;
13501 return 0;
13502 }
13503 _ACEOF
13504 rm -f conftest.$ac_objext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13506 (eval $ac_compile) 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
13513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515 (eval $ac_try) 2>&5
13516 ac_status=$?
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; } &&
13519 { ac_try='test -s conftest.$ac_objext'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13525 bakefile_compiler_mwerks=yes
13526 else
13527 echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13529
13530 bakefile_compiler_mwerks=no
13531 fi
13532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13533 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13534
13535 fi
13536 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13537 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13538
13539 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
13540 ac_ext=cc
13541 ac_cpp='$CXXCPP $CPPFLAGS'
13542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13545
13546
13547 ac_ext=cc
13548 ac_cpp='$CXXCPP $CPPFLAGS'
13549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13552
13553 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13554 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
13555 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 else
13558 cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h. */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13564
13565 int
13566 main ()
13567 {
13568 #ifndef __xlC__
13569 choke me
13570 #endif
13571
13572 ;
13573 return 0;
13574 }
13575 _ACEOF
13576 rm -f conftest.$ac_objext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578 (eval $ac_compile) 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest.$ac_objext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 bakefile_compiler_xlc=yes
13598 else
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13601
13602 bakefile_compiler_xlc=no
13603 fi
13604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13605 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
13606
13607 fi
13608 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13609 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
13610
13611 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
13612 ac_ext=cc
13613 ac_cpp='$CXXCPP $CPPFLAGS'
13614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13617
13618
13619 ;;
13620
13621 IRIX*)
13622
13623
13624 ac_ext=cc
13625 ac_cpp='$CXXCPP $CPPFLAGS'
13626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13629
13630 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13631 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13632 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 else
13635 cat >conftest.$ac_ext <<_ACEOF
13636 /* confdefs.h. */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641
13642 int
13643 main ()
13644 {
13645
13646 #ifndef _SGI_COMPILER_VERSION
13647 choke me
13648 #endif
13649
13650 ;
13651 return 0;
13652 }
13653 _ACEOF
13654 rm -f conftest.$ac_objext
13655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656 (eval $ac_compile) 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665 (eval $ac_try) 2>&5
13666 ac_status=$?
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; } &&
13669 { ac_try='test -s conftest.$ac_objext'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }; then
13675 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13676 else
13677 echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13679
13680 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13681
13682 fi
13683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13684
13685
13686 fi
13687 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13688 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13689 ac_ext=cc
13690 ac_cpp='$CXXCPP $CPPFLAGS'
13691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13694
13695 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13696 :; SGICXX=yes
13697 else
13698 :;
13699 fi
13700
13701
13702 ;;
13703
13704 HP-UX*)
13705
13706
13707 ac_ext=cc
13708 ac_cpp='$CXXCPP $CPPFLAGS'
13709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13712
13713 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13714 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13715 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13717 else
13718 cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h. */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13724
13725 int
13726 main ()
13727 {
13728
13729 #ifndef __HP_aCC
13730 choke me
13731 #endif
13732
13733 ;
13734 return 0;
13735 }
13736 _ACEOF
13737 rm -f conftest.$ac_objext
13738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739 (eval $ac_compile) 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest.$ac_objext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 bakefile_cv_cxx_compiler___HP_aCC=yes
13759 else
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763 bakefile_cv_cxx_compiler___HP_aCC=no
13764
13765 fi
13766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13767
13768
13769 fi
13770 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
13771 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
13772 ac_ext=cc
13773 ac_cpp='$CXXCPP $CPPFLAGS'
13774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13777
13778 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
13779 :; HPCXX=yes
13780 else
13781 :;
13782 fi
13783
13784
13785 ;;
13786
13787 OSF1)
13788
13789
13790 ac_ext=cc
13791 ac_cpp='$CXXCPP $CPPFLAGS'
13792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13795
13796 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
13797 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
13798 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801 cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h. */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807
13808 int
13809 main ()
13810 {
13811
13812 #ifndef __DECCXX
13813 choke me
13814 #endif
13815
13816 ;
13817 return 0;
13818 }
13819 _ACEOF
13820 rm -f conftest.$ac_objext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822 (eval $ac_compile) 2>conftest.er1
13823 ac_status=$?
13824 grep -v '^ *+' conftest.er1 >conftest.err
13825 rm -f conftest.er1
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
13829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; } &&
13835 { ac_try='test -s conftest.$ac_objext'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
13841 bakefile_cv_cxx_compiler___DECCXX=yes
13842 else
13843 echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846 bakefile_cv_cxx_compiler___DECCXX=no
13847
13848 fi
13849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13850
13851
13852 fi
13853 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
13854 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
13855 ac_ext=cc
13856 ac_cpp='$CXXCPP $CPPFLAGS'
13857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13860
13861 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
13862 :; COMPAQCXX=yes
13863 else
13864 :;
13865 fi
13866
13867
13868 ;;
13869
13870 SunOS)
13871
13872
13873 ac_ext=cc
13874 ac_cpp='$CXXCPP $CPPFLAGS'
13875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13878
13879 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13880 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13881 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h. */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890
13891 int
13892 main ()
13893 {
13894
13895 #ifndef __SUNPRO_CC
13896 choke me
13897 #endif
13898
13899 ;
13900 return 0;
13901 }
13902 _ACEOF
13903 rm -f conftest.$ac_objext
13904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13905 (eval $ac_compile) 2>conftest.er1
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } &&
13912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try='test -s conftest.$ac_objext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13925 else
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13928
13929 bakefile_cv_cxx_compiler___SUNPRO_CC=no
13930
13931 fi
13932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13933
13934
13935 fi
13936 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13937 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13938 ac_ext=cc
13939 ac_cpp='$CXXCPP $CPPFLAGS'
13940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13943
13944 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13945 :; SUNCXX=yes
13946 else
13947 :;
13948 fi
13949
13950
13951 ;;
13952 esac
13953 fi
13954
13955
13956
13957 ac_ext=c
13958 ac_cpp='$CPP $CPPFLAGS'
13959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13962
13963
13964 if test -n "$ac_tool_prefix"; then
13965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13967 echo "$as_me:$LINENO: checking for $ac_word" >&5
13968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13969 if test "${ac_cv_prog_RANLIB+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972 if test -n "$RANLIB"; then
13973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13974 else
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13977 do
13978 IFS=$as_save_IFS
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
13981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13984 break 2
13985 fi
13986 done
13987 done
13988
13989 fi
13990 fi
13991 RANLIB=$ac_cv_prog_RANLIB
13992 if test -n "$RANLIB"; then
13993 echo "$as_me:$LINENO: result: $RANLIB" >&5
13994 echo "${ECHO_T}$RANLIB" >&6
13995 else
13996 echo "$as_me:$LINENO: result: no" >&5
13997 echo "${ECHO_T}no" >&6
13998 fi
13999
14000 fi
14001 if test -z "$ac_cv_prog_RANLIB"; then
14002 ac_ct_RANLIB=$RANLIB
14003 # Extract the first word of "ranlib", so it can be a program name with args.
14004 set dummy ranlib; ac_word=$2
14005 echo "$as_me:$LINENO: checking for $ac_word" >&5
14006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14007 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010 if test -n "$ac_ct_RANLIB"; then
14011 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14012 else
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14015 do
14016 IFS=$as_save_IFS
14017 test -z "$as_dir" && as_dir=.
14018 for ac_exec_ext in '' $ac_executable_extensions; do
14019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14020 ac_cv_prog_ac_ct_RANLIB="ranlib"
14021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14022 break 2
14023 fi
14024 done
14025 done
14026
14027 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14028 fi
14029 fi
14030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14031 if test -n "$ac_ct_RANLIB"; then
14032 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14033 echo "${ECHO_T}$ac_ct_RANLIB" >&6
14034 else
14035 echo "$as_me:$LINENO: result: no" >&5
14036 echo "${ECHO_T}no" >&6
14037 fi
14038
14039 RANLIB=$ac_ct_RANLIB
14040 else
14041 RANLIB="$ac_cv_prog_RANLIB"
14042 fi
14043
14044
14045 if test -n "$ac_tool_prefix"; then
14046 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14047 set dummy ${ac_tool_prefix}ar; ac_word=$2
14048 echo "$as_me:$LINENO: checking for $ac_word" >&5
14049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14050 if test "${ac_cv_prog_AR+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053 if test -n "$AR"; then
14054 ac_cv_prog_AR="$AR" # Let the user override the test.
14055 else
14056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14057 for as_dir in $PATH
14058 do
14059 IFS=$as_save_IFS
14060 test -z "$as_dir" && as_dir=.
14061 for ac_exec_ext in '' $ac_executable_extensions; do
14062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14063 ac_cv_prog_AR="${ac_tool_prefix}ar"
14064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14065 break 2
14066 fi
14067 done
14068 done
14069
14070 fi
14071 fi
14072 AR=$ac_cv_prog_AR
14073 if test -n "$AR"; then
14074 echo "$as_me:$LINENO: result: $AR" >&5
14075 echo "${ECHO_T}$AR" >&6
14076 else
14077 echo "$as_me:$LINENO: result: no" >&5
14078 echo "${ECHO_T}no" >&6
14079 fi
14080
14081 fi
14082 if test -z "$ac_cv_prog_AR"; then
14083 ac_ct_AR=$AR
14084 # Extract the first word of "ar", so it can be a program name with args.
14085 set dummy ar; ac_word=$2
14086 echo "$as_me:$LINENO: checking for $ac_word" >&5
14087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14088 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 else
14091 if test -n "$ac_ct_AR"; then
14092 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14093 else
14094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095 for as_dir in $PATH
14096 do
14097 IFS=$as_save_IFS
14098 test -z "$as_dir" && as_dir=.
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101 ac_cv_prog_ac_ct_AR="ar"
14102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14103 break 2
14104 fi
14105 done
14106 done
14107
14108 fi
14109 fi
14110 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14111 if test -n "$ac_ct_AR"; then
14112 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14113 echo "${ECHO_T}$ac_ct_AR" >&6
14114 else
14115 echo "$as_me:$LINENO: result: no" >&5
14116 echo "${ECHO_T}no" >&6
14117 fi
14118
14119 AR=$ac_ct_AR
14120 else
14121 AR="$ac_cv_prog_AR"
14122 fi
14123
14124 if test "x$AR" = "x" ; then
14125 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14126 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
14127 { (exit 1); exit 1; }; }
14128 fi
14129
14130 # Find a good install program. We prefer a C program (faster),
14131 # so one script is as good as another. But avoid the broken or
14132 # incompatible versions:
14133 # SysV /etc/install, /usr/sbin/install
14134 # SunOS /usr/etc/install
14135 # IRIX /sbin/install
14136 # AIX /bin/install
14137 # AmigaOS /C/install, which installs bootblocks on floppy discs
14138 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14139 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14140 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14141 # OS/2's system install, which has a completely different semantic
14142 # ./install, which can be erroneously created by make from ./install.sh.
14143 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14144 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14145 if test -z "$INSTALL"; then
14146 if test "${ac_cv_path_install+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150 for as_dir in $PATH
14151 do
14152 IFS=$as_save_IFS
14153 test -z "$as_dir" && as_dir=.
14154 # Account for people who put trailing slashes in PATH elements.
14155 case $as_dir/ in
14156 ./ | .// | /cC/* | \
14157 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14158 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14159 /usr/ucb/* ) ;;
14160 *)
14161 # OSF1 and SCO ODT 3.0 have their own names for install.
14162 # Don't use installbsd from OSF since it installs stuff as root
14163 # by default.
14164 for ac_prog in ginstall scoinst install; do
14165 for ac_exec_ext in '' $ac_executable_extensions; do
14166 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14167 if test $ac_prog = install &&
14168 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14169 # AIX install. It has an incompatible calling convention.
14170 :
14171 elif test $ac_prog = install &&
14172 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14173 # program-specific install script used by HP pwplus--don't use.
14174 :
14175 else
14176 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14177 break 3
14178 fi
14179 fi
14180 done
14181 done
14182 ;;
14183 esac
14184 done
14185
14186
14187 fi
14188 if test "${ac_cv_path_install+set}" = set; then
14189 INSTALL=$ac_cv_path_install
14190 else
14191 # As a last resort, use the slow shell script. We don't cache a
14192 # path for INSTALL within a source directory, because that will
14193 # break other packages using the cache if that directory is
14194 # removed, or if the path is relative.
14195 INSTALL=$ac_install_sh
14196 fi
14197 fi
14198 echo "$as_me:$LINENO: result: $INSTALL" >&5
14199 echo "${ECHO_T}$INSTALL" >&6
14200
14201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14202 # It thinks the first close brace ends the variable substitution.
14203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14204
14205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14206
14207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14208
14209
14210 case ${INSTALL} in
14211 /* ) # Absolute
14212 ;;
14213 ?:* ) # Drive letter, considered as absolute.
14214 ;;
14215 *)
14216 INSTALL=`pwd`/${INSTALL} ;;
14217 esac
14218
14219
14220 case "${host}" in
14221
14222 *-*-darwin* )
14223 INSTALL_PROGRAM="cp -fp"
14224 INSTALL_DATA="cp -fp"
14225 ;;
14226 *)
14227 ;;
14228 esac
14229
14230 if test -n "$ac_tool_prefix"; then
14231 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14232 set dummy ${ac_tool_prefix}strip; ac_word=$2
14233 echo "$as_me:$LINENO: checking for $ac_word" >&5
14234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14235 if test "${ac_cv_prog_STRIP+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238 if test -n "$STRIP"; then
14239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14240 else
14241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14242 for as_dir in $PATH
14243 do
14244 IFS=$as_save_IFS
14245 test -z "$as_dir" && as_dir=.
14246 for ac_exec_ext in '' $ac_executable_extensions; do
14247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14248 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14250 break 2
14251 fi
14252 done
14253 done
14254
14255 fi
14256 fi
14257 STRIP=$ac_cv_prog_STRIP
14258 if test -n "$STRIP"; then
14259 echo "$as_me:$LINENO: result: $STRIP" >&5
14260 echo "${ECHO_T}$STRIP" >&6
14261 else
14262 echo "$as_me:$LINENO: result: no" >&5
14263 echo "${ECHO_T}no" >&6
14264 fi
14265
14266 fi
14267 if test -z "$ac_cv_prog_STRIP"; then
14268 ac_ct_STRIP=$STRIP
14269 # Extract the first word of "strip", so it can be a program name with args.
14270 set dummy strip; ac_word=$2
14271 echo "$as_me:$LINENO: checking for $ac_word" >&5
14272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14273 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276 if test -n "$ac_ct_STRIP"; then
14277 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14278 else
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14281 do
14282 IFS=$as_save_IFS
14283 test -z "$as_dir" && as_dir=.
14284 for ac_exec_ext in '' $ac_executable_extensions; do
14285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14286 ac_cv_prog_ac_ct_STRIP="strip"
14287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14288 break 2
14289 fi
14290 done
14291 done
14292
14293 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14294 fi
14295 fi
14296 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14297 if test -n "$ac_ct_STRIP"; then
14298 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14299 echo "${ECHO_T}$ac_ct_STRIP" >&6
14300 else
14301 echo "$as_me:$LINENO: result: no" >&5
14302 echo "${ECHO_T}no" >&6
14303 fi
14304
14305 STRIP=$ac_ct_STRIP
14306 else
14307 STRIP="$ac_cv_prog_STRIP"
14308 fi
14309
14310
14311 if test "$wxUSE_WINE" = "yes"; then
14312 if test -n "$ac_tool_prefix"; then
14313 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14314 set dummy ${ac_tool_prefix}wrc; ac_word=$2
14315 echo "$as_me:$LINENO: checking for $ac_word" >&5
14316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14317 if test "${ac_cv_prog_RESCOMP+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14319 else
14320 if test -n "$RESCOMP"; then
14321 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14322 else
14323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14325 do
14326 IFS=$as_save_IFS
14327 test -z "$as_dir" && as_dir=.
14328 for ac_exec_ext in '' $ac_executable_extensions; do
14329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14330 ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
14331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14332 break 2
14333 fi
14334 done
14335 done
14336
14337 fi
14338 fi
14339 RESCOMP=$ac_cv_prog_RESCOMP
14340 if test -n "$RESCOMP"; then
14341 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14342 echo "${ECHO_T}$RESCOMP" >&6
14343 else
14344 echo "$as_me:$LINENO: result: no" >&5
14345 echo "${ECHO_T}no" >&6
14346 fi
14347
14348 fi
14349 if test -z "$ac_cv_prog_RESCOMP"; then
14350 ac_ct_RESCOMP=$RESCOMP
14351 # Extract the first word of "wrc", so it can be a program name with args.
14352 set dummy wrc; ac_word=$2
14353 echo "$as_me:$LINENO: checking for $ac_word" >&5
14354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14355 if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358 if test -n "$ac_ct_RESCOMP"; then
14359 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14360 else
14361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362 for as_dir in $PATH
14363 do
14364 IFS=$as_save_IFS
14365 test -z "$as_dir" && as_dir=.
14366 for ac_exec_ext in '' $ac_executable_extensions; do
14367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14368 ac_cv_prog_ac_ct_RESCOMP="wrc"
14369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14370 break 2
14371 fi
14372 done
14373 done
14374
14375 fi
14376 fi
14377 ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14378 if test -n "$ac_ct_RESCOMP"; then
14379 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14380 echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14381 else
14382 echo "$as_me:$LINENO: result: no" >&5
14383 echo "${ECHO_T}no" >&6
14384 fi
14385
14386 RESCOMP=$ac_ct_RESCOMP
14387 else
14388 RESCOMP="$ac_cv_prog_RESCOMP"
14389 fi
14390
14391 else
14392 case "${host}" in
14393 *-*-cygwin* | *-*-mingw32* )
14394 if test -n "$ac_tool_prefix"; then
14395 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14396 set dummy ${ac_tool_prefix}windres; ac_word=$2
14397 echo "$as_me:$LINENO: checking for $ac_word" >&5
14398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14399 if test "${ac_cv_prog_RESCOMP+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 else
14402 if test -n "$RESCOMP"; then
14403 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14404 else
14405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406 for as_dir in $PATH
14407 do
14408 IFS=$as_save_IFS
14409 test -z "$as_dir" && as_dir=.
14410 for ac_exec_ext in '' $ac_executable_extensions; do
14411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14412 ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
14413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14414 break 2
14415 fi
14416 done
14417 done
14418
14419 fi
14420 fi
14421 RESCOMP=$ac_cv_prog_RESCOMP
14422 if test -n "$RESCOMP"; then
14423 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14424 echo "${ECHO_T}$RESCOMP" >&6
14425 else
14426 echo "$as_me:$LINENO: result: no" >&5
14427 echo "${ECHO_T}no" >&6
14428 fi
14429
14430 fi
14431 if test -z "$ac_cv_prog_RESCOMP"; then
14432 ac_ct_RESCOMP=$RESCOMP
14433 # Extract the first word of "windres", so it can be a program name with args.
14434 set dummy windres; ac_word=$2
14435 echo "$as_me:$LINENO: checking for $ac_word" >&5
14436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14437 if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 else
14440 if test -n "$ac_ct_RESCOMP"; then
14441 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14442 else
14443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14444 for as_dir in $PATH
14445 do
14446 IFS=$as_save_IFS
14447 test -z "$as_dir" && as_dir=.
14448 for ac_exec_ext in '' $ac_executable_extensions; do
14449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14450 ac_cv_prog_ac_ct_RESCOMP="windres"
14451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14452 break 2
14453 fi
14454 done
14455 done
14456
14457 fi
14458 fi
14459 ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14460 if test -n "$ac_ct_RESCOMP"; then
14461 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14462 echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14463 else
14464 echo "$as_me:$LINENO: result: no" >&5
14465 echo "${ECHO_T}no" >&6
14466 fi
14467
14468 RESCOMP=$ac_ct_RESCOMP
14469 else
14470 RESCOMP="$ac_cv_prog_RESCOMP"
14471 fi
14472
14473 if test -n "$ac_tool_prefix"; then
14474 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14475 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14476 echo "$as_me:$LINENO: checking for $ac_word" >&5
14477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14478 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481 if test -n "$DLLTOOL"; then
14482 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14483 else
14484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14485 for as_dir in $PATH
14486 do
14487 IFS=$as_save_IFS
14488 test -z "$as_dir" && as_dir=.
14489 for ac_exec_ext in '' $ac_executable_extensions; do
14490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14491 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14493 break 2
14494 fi
14495 done
14496 done
14497
14498 fi
14499 fi
14500 DLLTOOL=$ac_cv_prog_DLLTOOL
14501 if test -n "$DLLTOOL"; then
14502 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14503 echo "${ECHO_T}$DLLTOOL" >&6
14504 else
14505 echo "$as_me:$LINENO: result: no" >&5
14506 echo "${ECHO_T}no" >&6
14507 fi
14508
14509 fi
14510 if test -z "$ac_cv_prog_DLLTOOL"; then
14511 ac_ct_DLLTOOL=$DLLTOOL
14512 # Extract the first word of "dlltool", so it can be a program name with args.
14513 set dummy dlltool; ac_word=$2
14514 echo "$as_me:$LINENO: checking for $ac_word" >&5
14515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14516 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519 if test -n "$ac_ct_DLLTOOL"; then
14520 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14521 else
14522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14523 for as_dir in $PATH
14524 do
14525 IFS=$as_save_IFS
14526 test -z "$as_dir" && as_dir=.
14527 for ac_exec_ext in '' $ac_executable_extensions; do
14528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14529 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14531 break 2
14532 fi
14533 done
14534 done
14535
14536 fi
14537 fi
14538 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14539 if test -n "$ac_ct_DLLTOOL"; then
14540 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14541 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14542 else
14543 echo "$as_me:$LINENO: result: no" >&5
14544 echo "${ECHO_T}no" >&6
14545 fi
14546
14547 DLLTOOL=$ac_ct_DLLTOOL
14548 else
14549 DLLTOOL="$ac_cv_prog_DLLTOOL"
14550 fi
14551
14552 ;;
14553 esac
14554 fi
14555
14556 echo "$as_me:$LINENO: checking if make is GNU make" >&5
14557 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14558 if test "${wx_cv_prog_makeisgnu+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 else
14561
14562 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14563 egrep -s GNU > /dev/null); then
14564 wx_cv_prog_makeisgnu="yes"
14565 else
14566 wx_cv_prog_makeisgnu="no"
14567 fi
14568
14569 fi
14570 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14571 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14572
14573 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14574 IF_GNU_MAKE=""
14575 else
14576 IF_GNU_MAKE="#"
14577 fi
14578
14579
14580
14581 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14582 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14583 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14584 if test "${wx_cv_prog_makevpath+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586 else
14587
14588 cat - << EOF > confMake
14589 check : file
14590 cp \$? \$@
14591 cp \$? final_file
14592 EOF
14593
14594 if test ! -d sub ; then
14595 mkdir sub
14596 fi
14597 echo dummy > sub/file
14598 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14599 RESULT=$?
14600 rm -f sub/file check final_file confMake
14601 rmdir sub
14602 if test "$RESULT" = 0; then
14603 wx_cv_prog_makevpath="yes"
14604 else
14605 wx_cv_prog_makevpath="no"
14606 fi
14607
14608 fi
14609 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14610 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14611
14612 if test "x$wx_cv_prog_makevpath" != "xyes"; then
14613 { { echo "$as_me:$LINENO: error:
14614 You need a make-utility that is able to use the variable
14615 VPATH correctly.
14616 If your version of make does not support VPATH correctly,
14617 please install GNU-make (possibly as gmake), and start
14618 configure with the following command:
14619 export MAKE=gmake; ./configure for sh-type shells
14620 setenv MAKE gmake; ./configure for csh-type shells
14621 Also please do remember to use gmake in this case every time
14622 you are trying to compile.
14623 " >&5
14624 echo "$as_me: error:
14625 You need a make-utility that is able to use the variable
14626 VPATH correctly.
14627 If your version of make does not support VPATH correctly,
14628 please install GNU-make (possibly as gmake), and start
14629 configure with the following command:
14630 export MAKE=gmake; ./configure for sh-type shells
14631 setenv MAKE gmake; ./configure for csh-type shells
14632 Also please do remember to use gmake in this case every time
14633 you are trying to compile.
14634 " >&2;}
14635 { (exit 1); exit 1; }; }
14636 fi fi
14637 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14638 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14639 LN_S=$as_ln_s
14640 if test "$LN_S" = "ln -s"; then
14641 echo "$as_me:$LINENO: result: yes" >&5
14642 echo "${ECHO_T}yes" >&6
14643 else
14644 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14645 echo "${ECHO_T}no, using $LN_S" >&6
14646 fi
14647
14648
14649
14650 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
14651 CXXFLAGS="$CXXFLAGS -qunique"
14652 fi
14653
14654 case "${host}" in
14655 powerpc-*-darwin* )
14656 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14657 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14658 cat >conftest.$ac_ext <<_ACEOF
14659 /* confdefs.h. */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664
14665 int
14666 main ()
14667 {
14668 #ifndef __POWERPC__
14669 choke me for lack of PowerPC
14670 #endif
14671
14672 ;
14673 return 0;
14674 }
14675 _ACEOF
14676 rm -f conftest.$ac_objext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14678 (eval $ac_compile) 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687 (eval $ac_try) 2>&5
14688 ac_status=$?
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; } &&
14691 { ac_try='test -s conftest.$ac_objext'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14694 ac_status=$?
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }; then
14697 echo "$as_me:$LINENO: result: yes" >&5
14698 echo "${ECHO_T}yes" >&6
14699 else
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 echo "$as_me:$LINENO: result: no" >&5
14704 echo "${ECHO_T}no" >&6
14705 cat >>confdefs.h <<\_ACEOF
14706 #define __POWERPC__ 1
14707 _ACEOF
14708
14709
14710 fi
14711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14712 ;;
14713 esac
14714
14715 case "${host}" in
14716 *-*-darwin* )
14717 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14718 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h. */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 #include <CoreFoundation/CFBase.h>
14726
14727 int
14728 main ()
14729 {
14730
14731 ;
14732 return 0;
14733 }
14734 _ACEOF
14735 rm -f conftest.$ac_objext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737 (eval $ac_compile) 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14747 ac_status=$?
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; } &&
14750 { ac_try='test -s conftest.$ac_objext'
14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; }; then
14756 echo "$as_me:$LINENO: result: yes" >&5
14757 echo "${ECHO_T}yes" >&6
14758 else
14759 echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14761
14762 echo "$as_me:$LINENO: result: no" >&5
14763 echo "${ECHO_T}no" >&6
14764 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14765 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
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 #define __CF_USE_FRAMEWORK_INCLUDES__
14773 #include <CoreFoundation/CFBase.h>
14774
14775 int
14776 main ()
14777 {
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" || test ! -s conftest.err'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; } &&
14798 { ac_try='test -s conftest.$ac_objext'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 echo "$as_me:$LINENO: result: yes" >&5
14805 echo "${ECHO_T}yes" >&6
14806 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14807 else
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14810
14811 { { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14812 See \`config.log' for more details." >&5
14813 echo "$as_me: error: no. CoreFoundation not available.
14814 See \`config.log' for more details." >&2;}
14815 { (exit 1); exit 1; }; }
14816
14817 fi
14818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14819
14820
14821 fi
14822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823 ;;
14824 esac
14825
14826 case "${host}" in
14827 *-pc-os2_emx | *-pc-os2-emx )
14828 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14829 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14830 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14831 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834 ac_check_lib_save_LIBS=$LIBS
14835 LIBS="-lcExt $LIBS"
14836 cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h. */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842
14843 /* Override any gcc2 internal prototype to avoid an error. */
14844 #ifdef __cplusplus
14845 extern "C"
14846 #endif
14847 /* We use char because int might match the return type of a gcc2
14848 builtin and then its argument prototype would still apply. */
14849 char drand48 ();
14850 int
14851 main ()
14852 {
14853 drand48 ();
14854 ;
14855 return 0;
14856 }
14857 _ACEOF
14858 rm -f conftest.$ac_objext conftest$ac_exeext
14859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14860 (eval $ac_link) 2>conftest.er1
14861 ac_status=$?
14862 grep -v '^ *+' conftest.er1 >conftest.err
14863 rm -f conftest.er1
14864 cat conftest.err >&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
14867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; } &&
14873 { ac_try='test -s conftest$ac_exeext'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 ac_cv_lib_cExt_drand48=yes
14880 else
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14883
14884 ac_cv_lib_cExt_drand48=no
14885 fi
14886 rm -f conftest.err conftest.$ac_objext \
14887 conftest$ac_exeext conftest.$ac_ext
14888 LIBS=$ac_check_lib_save_LIBS
14889 fi
14890 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14891 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14892 if test $ac_cv_lib_cExt_drand48 = yes; then
14893 LIBS="$LIBS -lcExt"
14894 fi
14895
14896 else
14897 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14898 fi
14899 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14900 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
14901 if test "${wx_cv_gccversion+set}" = set; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 else
14904
14905 if test "$cross_compiling" = yes; then
14906 wx_cv_gccversion="EMX2"
14907
14908 else
14909 cat >conftest.$ac_ext <<_ACEOF
14910 /* confdefs.h. */
14911 _ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h. */
14915
14916 #include <stdio.h>
14917
14918 int main()
14919 {
14920 FILE *f=fopen("conftestval", "w");
14921 if (!f) exit(1);
14922 fprintf(f,
14923 #if (__GNUC__ < 3)
14924 "EMX2"
14925 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
14926 "EMX3"
14927 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
14928 "Innotek5"
14929 #else
14930 "Innotek6"
14931 #endif
14932 );
14933 exit(0);
14934 }
14935
14936 _ACEOF
14937 rm -f conftest$ac_exeext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14939 (eval $ac_link) 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; }; then
14948 wx_cv_gccversion=`cat conftestval`
14949 else
14950 echo "$as_me: program exited with status $ac_status" >&5
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954 ( exit $ac_status )
14955 wx_cv_gccversion="EMX2"
14956 fi
14957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14958 fi
14959
14960 fi
14961 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
14962 echo "${ECHO_T}$wx_cv_gccversion" >&6
14963 if test "$wx_cv_gccversion" = "EMX2"; then
14964 LIBS="$LIBS -lstdcpp"
14965 LDFLAGS="$LDFLAGS -Zsysv-signals"
14966 else
14967 if test "$wx_cv_gccversion" = "EMX3"; then
14968 LIBS="$LIBS -lstdcxx -lgcc"
14969 LDFLAGS="$LDFLAGS -Zsysv-signals"
14970 else
14971 LIBS="$LIBS -lstdc++"
14972 fi
14973 fi
14974 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
14975 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
14976 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
14977 wxUSE_OMF=yes
14978 enable_omf=yes
14979 fi
14980 ;;
14981 *)
14982
14983
14984
14985 ac_ext=cc
14986 ac_cpp='$CXXCPP $CPPFLAGS'
14987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14990
14991
14992 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
14993 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
14994 if test "${ac_cv_string_strcasecmp+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997
14998 cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h. */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15004
15005 #include <string.h>
15006
15007 int
15008 main ()
15009 {
15010
15011 strcasecmp("foo", "bar");
15012
15013 ;
15014 return 0;
15015 }
15016 _ACEOF
15017 rm -f conftest.$ac_objext conftest$ac_exeext
15018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15019 (eval $ac_link) 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest$ac_exeext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_cv_string_strcasecmp=yes
15039 else
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15042
15043 ac_cv_string_strcasecmp=no
15044
15045 fi
15046 rm -f conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
15048
15049 fi
15050 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15051 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15052
15053 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15054 cat >>confdefs.h <<\_ACEOF
15055 #define HAVE_STRCASECMP_IN_STRING_H 1
15056 _ACEOF
15057
15058 else
15059 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15060 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15061 if test "${ac_cv_strings_strcasecmp+set}" = set; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 else
15064
15065 cat >conftest.$ac_ext <<_ACEOF
15066 /* confdefs.h. */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15071
15072 #include <strings.h>
15073
15074 int
15075 main ()
15076 {
15077
15078 strcasecmp("foo", "bar");
15079
15080 ;
15081 return 0;
15082 }
15083 _ACEOF
15084 rm -f conftest.$ac_objext conftest$ac_exeext
15085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15086 (eval $ac_link) 2>conftest.er1
15087 ac_status=$?
15088 grep -v '^ *+' conftest.er1 >conftest.err
15089 rm -f conftest.er1
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } &&
15093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; } &&
15099 { ac_try='test -s conftest$ac_exeext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_strings_strcasecmp=yes
15106 else
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110 ac_cv_strings_strcasecmp=no
15111
15112 fi
15113 rm -f conftest.err conftest.$ac_objext \
15114 conftest$ac_exeext conftest.$ac_ext
15115
15116 fi
15117 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15118 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15119
15120 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
15121 cat >>confdefs.h <<\_ACEOF
15122 #define HAVE_STRCASECMP_IN_STRINGS_H 1
15123 _ACEOF
15124
15125 else
15126 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15127 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15128 { (exit 1); exit 1; }; }
15129 fi
15130 fi
15131
15132 ac_ext=c
15133 ac_cpp='$CPP $CPPFLAGS'
15134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15137
15138 ;;
15139 esac
15140
15141
15142 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15143 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15144 if test "${ac_cv_header_stdc+set}" = set; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147 cat >conftest.$ac_ext <<_ACEOF
15148 /* confdefs.h. */
15149 _ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15153 #include <stdlib.h>
15154 #include <stdarg.h>
15155 #include <string.h>
15156 #include <float.h>
15157
15158 int
15159 main ()
15160 {
15161
15162 ;
15163 return 0;
15164 }
15165 _ACEOF
15166 rm -f conftest.$ac_objext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15168 (eval $ac_compile) 2>conftest.er1
15169 ac_status=$?
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try='test -s conftest.$ac_objext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_cv_header_stdc=yes
15188 else
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192 ac_cv_header_stdc=no
15193 fi
15194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15195
15196 if test $ac_cv_header_stdc = yes; then
15197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15198 cat >conftest.$ac_ext <<_ACEOF
15199 /* confdefs.h. */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15204 #include <string.h>
15205
15206 _ACEOF
15207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15208 $EGREP "memchr" >/dev/null 2>&1; then
15209 :
15210 else
15211 ac_cv_header_stdc=no
15212 fi
15213 rm -f conftest*
15214
15215 fi
15216
15217 if test $ac_cv_header_stdc = yes; then
15218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15219 cat >conftest.$ac_ext <<_ACEOF
15220 /* confdefs.h. */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 #include <stdlib.h>
15226
15227 _ACEOF
15228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15229 $EGREP "free" >/dev/null 2>&1; then
15230 :
15231 else
15232 ac_cv_header_stdc=no
15233 fi
15234 rm -f conftest*
15235
15236 fi
15237
15238 if test $ac_cv_header_stdc = yes; then
15239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15240 if test "$cross_compiling" = yes; then
15241 :
15242 else
15243 cat >conftest.$ac_ext <<_ACEOF
15244 /* confdefs.h. */
15245 _ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h. */
15249 #include <ctype.h>
15250 #if ((' ' & 0x0FF) == 0x020)
15251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15253 #else
15254 # define ISLOWER(c) \
15255 (('a' <= (c) && (c) <= 'i') \
15256 || ('j' <= (c) && (c) <= 'r') \
15257 || ('s' <= (c) && (c) <= 'z'))
15258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15259 #endif
15260
15261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15262 int
15263 main ()
15264 {
15265 int i;
15266 for (i = 0; i < 256; i++)
15267 if (XOR (islower (i), ISLOWER (i))
15268 || toupper (i) != TOUPPER (i))
15269 exit(2);
15270 exit (0);
15271 }
15272 _ACEOF
15273 rm -f conftest$ac_exeext
15274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15275 (eval $ac_link) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 :
15285 else
15286 echo "$as_me: program exited with status $ac_status" >&5
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15289
15290 ( exit $ac_status )
15291 ac_cv_header_stdc=no
15292 fi
15293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15294 fi
15295 fi
15296 fi
15297 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15298 echo "${ECHO_T}$ac_cv_header_stdc" >&6
15299 if test $ac_cv_header_stdc = yes; then
15300
15301 cat >>confdefs.h <<\_ACEOF
15302 #define STDC_HEADERS 1
15303 _ACEOF
15304
15305 fi
15306
15307 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
15318 inttypes.h stdint.h unistd.h
15319 do
15320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15321 echo "$as_me:$LINENO: checking for $ac_header" >&5
15322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326 cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h. */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 $ac_includes_default
15333
15334 #include <$ac_header>
15335 _ACEOF
15336 rm -f conftest.$ac_objext
15337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15338 (eval $ac_compile) 2>conftest.er1
15339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
15345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest.$ac_objext'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 eval "$as_ac_Header=yes"
15358 else
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15361
15362 eval "$as_ac_Header=no"
15363 fi
15364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15365 fi
15366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15369 cat >>confdefs.h <<_ACEOF
15370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15371 _ACEOF
15372
15373 fi
15374
15375 done
15376
15377
15378
15379 for ac_header in stdlib.h
15380 do
15381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15383 echo "$as_me:$LINENO: checking for $ac_header" >&5
15384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 fi
15388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15390 else
15391 # Is the header compilable?
15392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15394 cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h. */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 $ac_includes_default
15401 #include <$ac_header>
15402 _ACEOF
15403 rm -f conftest.$ac_objext
15404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15405 (eval $ac_compile) 2>conftest.er1
15406 ac_status=$?
15407 grep -v '^ *+' conftest.er1 >conftest.err
15408 rm -f conftest.er1
15409 cat conftest.err >&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } &&
15412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414 (eval $ac_try) 2>&5
15415 ac_status=$?
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; } &&
15418 { ac_try='test -s conftest.$ac_objext'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }; then
15424 ac_header_compiler=yes
15425 else
15426 echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15428
15429 ac_header_compiler=no
15430 fi
15431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15433 echo "${ECHO_T}$ac_header_compiler" >&6
15434
15435 # Is the header present?
15436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15438 cat >conftest.$ac_ext <<_ACEOF
15439 /* confdefs.h. */
15440 _ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15444 #include <$ac_header>
15445 _ACEOF
15446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } >/dev/null; then
15454 if test -s conftest.err; then
15455 ac_cpp_err=$ac_c_preproc_warn_flag
15456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15457 else
15458 ac_cpp_err=
15459 fi
15460 else
15461 ac_cpp_err=yes
15462 fi
15463 if test -z "$ac_cpp_err"; then
15464 ac_header_preproc=yes
15465 else
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15468
15469 ac_header_preproc=no
15470 fi
15471 rm -f conftest.err conftest.$ac_ext
15472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15473 echo "${ECHO_T}$ac_header_preproc" >&6
15474
15475 # So? What about this header?
15476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15477 yes:no: )
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15482 ac_header_preproc=yes
15483 ;;
15484 no:yes:* )
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15497 (
15498 cat <<\_ASBOX
15499 ## ----------------------------------------- ##
15500 ## Report this to wx-dev@lists.wxwidgets.org ##
15501 ## ----------------------------------------- ##
15502 _ASBOX
15503 ) |
15504 sed "s/^/$as_me: WARNING: /" >&2
15505 ;;
15506 esac
15507 echo "$as_me:$LINENO: checking for $ac_header" >&5
15508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15511 else
15512 eval "$as_ac_Header=\$ac_header_preproc"
15513 fi
15514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15516
15517 fi
15518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15519 cat >>confdefs.h <<_ACEOF
15520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15521 _ACEOF
15522
15523 fi
15524
15525 done
15526
15527
15528 for ac_header in malloc.h
15529 do
15530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15532 echo "$as_me:$LINENO: checking for $ac_header" >&5
15533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 fi
15537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15539 else
15540 # Is the header compilable?
15541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15543 cat >conftest.$ac_ext <<_ACEOF
15544 /* confdefs.h. */
15545 _ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h. */
15549 $ac_includes_default
15550 #include <$ac_header>
15551 _ACEOF
15552 rm -f conftest.$ac_objext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15554 (eval $ac_compile) 2>conftest.er1
15555 ac_status=$?
15556 grep -v '^ *+' conftest.er1 >conftest.err
15557 rm -f conftest.er1
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 ac_header_compiler=yes
15574 else
15575 echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15577
15578 ac_header_compiler=no
15579 fi
15580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15582 echo "${ECHO_T}$ac_header_compiler" >&6
15583
15584 # Is the header present?
15585 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15587 cat >conftest.$ac_ext <<_ACEOF
15588 /* confdefs.h. */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15593 #include <$ac_header>
15594 _ACEOF
15595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15597 ac_status=$?
15598 grep -v '^ *+' conftest.er1 >conftest.err
15599 rm -f conftest.er1
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } >/dev/null; then
15603 if test -s conftest.err; then
15604 ac_cpp_err=$ac_c_preproc_warn_flag
15605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15606 else
15607 ac_cpp_err=
15608 fi
15609 else
15610 ac_cpp_err=yes
15611 fi
15612 if test -z "$ac_cpp_err"; then
15613 ac_header_preproc=yes
15614 else
15615 echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618 ac_header_preproc=no
15619 fi
15620 rm -f conftest.err conftest.$ac_ext
15621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15622 echo "${ECHO_T}$ac_header_preproc" >&6
15623
15624 # So? What about this header?
15625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15626 yes:no: )
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15631 ac_header_preproc=yes
15632 ;;
15633 no:yes:* )
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15646 (
15647 cat <<\_ASBOX
15648 ## ----------------------------------------- ##
15649 ## Report this to wx-dev@lists.wxwidgets.org ##
15650 ## ----------------------------------------- ##
15651 _ASBOX
15652 ) |
15653 sed "s/^/$as_me: WARNING: /" >&2
15654 ;;
15655 esac
15656 echo "$as_me:$LINENO: checking for $ac_header" >&5
15657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15660 else
15661 eval "$as_ac_Header=\$ac_header_preproc"
15662 fi
15663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15665
15666 fi
15667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15668 cat >>confdefs.h <<_ACEOF
15669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15670 _ACEOF
15671
15672 fi
15673
15674 done
15675
15676
15677 for ac_header in unistd.h
15678 do
15679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15681 echo "$as_me:$LINENO: checking for $ac_header" >&5
15682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 fi
15686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15688 else
15689 # Is the header compilable?
15690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h. */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 $ac_includes_default
15699 #include <$ac_header>
15700 _ACEOF
15701 rm -f conftest.$ac_objext
15702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15703 (eval $ac_compile) 2>conftest.er1
15704 ac_status=$?
15705 grep -v '^ *+' conftest.er1 >conftest.err
15706 rm -f conftest.er1
15707 cat conftest.err >&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } &&
15710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest.$ac_objext'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_header_compiler=yes
15723 else
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15726
15727 ac_header_compiler=no
15728 fi
15729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15731 echo "${ECHO_T}$ac_header_compiler" >&6
15732
15733 # Is the header present?
15734 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15736 cat >conftest.$ac_ext <<_ACEOF
15737 /* confdefs.h. */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15742 #include <$ac_header>
15743 _ACEOF
15744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15746 ac_status=$?
15747 grep -v '^ *+' conftest.er1 >conftest.err
15748 rm -f conftest.er1
15749 cat conftest.err >&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } >/dev/null; then
15752 if test -s conftest.err; then
15753 ac_cpp_err=$ac_c_preproc_warn_flag
15754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15755 else
15756 ac_cpp_err=
15757 fi
15758 else
15759 ac_cpp_err=yes
15760 fi
15761 if test -z "$ac_cpp_err"; then
15762 ac_header_preproc=yes
15763 else
15764 echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.$ac_ext >&5
15766
15767 ac_header_preproc=no
15768 fi
15769 rm -f conftest.err conftest.$ac_ext
15770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15771 echo "${ECHO_T}$ac_header_preproc" >&6
15772
15773 # So? What about this header?
15774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15775 yes:no: )
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15780 ac_header_preproc=yes
15781 ;;
15782 no:yes:* )
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15790 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15795 (
15796 cat <<\_ASBOX
15797 ## ----------------------------------------- ##
15798 ## Report this to wx-dev@lists.wxwidgets.org ##
15799 ## ----------------------------------------- ##
15800 _ASBOX
15801 ) |
15802 sed "s/^/$as_me: WARNING: /" >&2
15803 ;;
15804 esac
15805 echo "$as_me:$LINENO: checking for $ac_header" >&5
15806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15808 echo $ECHO_N "(cached) $ECHO_C" >&6
15809 else
15810 eval "$as_ac_Header=\$ac_header_preproc"
15811 fi
15812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15814
15815 fi
15816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15817 cat >>confdefs.h <<_ACEOF
15818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15819 _ACEOF
15820
15821 fi
15822
15823 done
15824
15825
15826 for ac_header in wchar.h
15827 do
15828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15830 echo "$as_me:$LINENO: checking for $ac_header" >&5
15831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15834 fi
15835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15837 else
15838 # Is the header compilable?
15839 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15841 cat >conftest.$ac_ext <<_ACEOF
15842 /* confdefs.h. */
15843 _ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h. */
15847 $ac_includes_default
15848 #include <$ac_header>
15849 _ACEOF
15850 rm -f conftest.$ac_objext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15852 (eval $ac_compile) 2>conftest.er1
15853 ac_status=$?
15854 grep -v '^ *+' conftest.er1 >conftest.err
15855 rm -f conftest.er1
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
15859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; } &&
15865 { ac_try='test -s conftest.$ac_objext'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; }; then
15871 ac_header_compiler=yes
15872 else
15873 echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15875
15876 ac_header_compiler=no
15877 fi
15878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15880 echo "${ECHO_T}$ac_header_compiler" >&6
15881
15882 # Is the header present?
15883 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15885 cat >conftest.$ac_ext <<_ACEOF
15886 /* confdefs.h. */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15891 #include <$ac_header>
15892 _ACEOF
15893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15895 ac_status=$?
15896 grep -v '^ *+' conftest.er1 >conftest.err
15897 rm -f conftest.er1
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } >/dev/null; then
15901 if test -s conftest.err; then
15902 ac_cpp_err=$ac_c_preproc_warn_flag
15903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15904 else
15905 ac_cpp_err=
15906 fi
15907 else
15908 ac_cpp_err=yes
15909 fi
15910 if test -z "$ac_cpp_err"; then
15911 ac_header_preproc=yes
15912 else
15913 echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 ac_header_preproc=no
15917 fi
15918 rm -f conftest.err conftest.$ac_ext
15919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15920 echo "${ECHO_T}$ac_header_preproc" >&6
15921
15922 # So? What about this header?
15923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15924 yes:no: )
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15929 ac_header_preproc=yes
15930 ;;
15931 no:yes:* )
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15944 (
15945 cat <<\_ASBOX
15946 ## ----------------------------------------- ##
15947 ## Report this to wx-dev@lists.wxwidgets.org ##
15948 ## ----------------------------------------- ##
15949 _ASBOX
15950 ) |
15951 sed "s/^/$as_me: WARNING: /" >&2
15952 ;;
15953 esac
15954 echo "$as_me:$LINENO: checking for $ac_header" >&5
15955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959 eval "$as_ac_Header=\$ac_header_preproc"
15960 fi
15961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15963
15964 fi
15965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15966 cat >>confdefs.h <<_ACEOF
15967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15968 _ACEOF
15969
15970 fi
15971
15972 done
15973
15974
15975 if test "$ac_cv_header_wchar_h" != "yes"; then
15976
15977 for ac_header in wcstr.h
15978 do
15979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15981 echo "$as_me:$LINENO: checking for $ac_header" >&5
15982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 fi
15986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15988 else
15989 # Is the header compilable?
15990 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h. */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 $ac_includes_default
15999 #include <$ac_header>
16000 _ACEOF
16001 rm -f conftest.$ac_objext
16002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16003 (eval $ac_compile) 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
16010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; } &&
16016 { ac_try='test -s conftest.$ac_objext'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16019 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16022 ac_header_compiler=yes
16023 else
16024 echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16026
16027 ac_header_compiler=no
16028 fi
16029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16031 echo "${ECHO_T}$ac_header_compiler" >&6
16032
16033 # Is the header present?
16034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16036 cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h. */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 #include <$ac_header>
16043 _ACEOF
16044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16046 ac_status=$?
16047 grep -v '^ *+' conftest.er1 >conftest.err
16048 rm -f conftest.er1
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } >/dev/null; then
16052 if test -s conftest.err; then
16053 ac_cpp_err=$ac_c_preproc_warn_flag
16054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16055 else
16056 ac_cpp_err=
16057 fi
16058 else
16059 ac_cpp_err=yes
16060 fi
16061 if test -z "$ac_cpp_err"; then
16062 ac_header_preproc=yes
16063 else
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 ac_header_preproc=no
16068 fi
16069 rm -f conftest.err conftest.$ac_ext
16070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16071 echo "${ECHO_T}$ac_header_preproc" >&6
16072
16073 # So? What about this header?
16074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16075 yes:no: )
16076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16080 ac_header_preproc=yes
16081 ;;
16082 no:yes:* )
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16095 (
16096 cat <<\_ASBOX
16097 ## ----------------------------------------- ##
16098 ## Report this to wx-dev@lists.wxwidgets.org ##
16099 ## ----------------------------------------- ##
16100 _ASBOX
16101 ) |
16102 sed "s/^/$as_me: WARNING: /" >&2
16103 ;;
16104 esac
16105 echo "$as_me:$LINENO: checking for $ac_header" >&5
16106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110 eval "$as_ac_Header=\$ac_header_preproc"
16111 fi
16112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16114
16115 fi
16116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16117 cat >>confdefs.h <<_ACEOF
16118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16119 _ACEOF
16120
16121 fi
16122
16123 done
16124
16125 fi
16126
16127
16128 for ac_header in fnmatch.h
16129 do
16130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16132 echo "$as_me:$LINENO: checking for $ac_header" >&5
16133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136 fi
16137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16139 else
16140 # Is the header compilable?
16141 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16143 cat >conftest.$ac_ext <<_ACEOF
16144 /* confdefs.h. */
16145 _ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h. */
16149 $ac_includes_default
16150 #include <$ac_header>
16151 _ACEOF
16152 rm -f conftest.$ac_objext
16153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16154 (eval $ac_compile) 2>conftest.er1
16155 ac_status=$?
16156 grep -v '^ *+' conftest.er1 >conftest.err
16157 rm -f conftest.er1
16158 cat conftest.err >&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } &&
16161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; } &&
16167 { ac_try='test -s conftest.$ac_objext'
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; }; then
16173 ac_header_compiler=yes
16174 else
16175 echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16177
16178 ac_header_compiler=no
16179 fi
16180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16182 echo "${ECHO_T}$ac_header_compiler" >&6
16183
16184 # Is the header present?
16185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16187 cat >conftest.$ac_ext <<_ACEOF
16188 /* confdefs.h. */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h. */
16193 #include <$ac_header>
16194 _ACEOF
16195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16197 ac_status=$?
16198 grep -v '^ *+' conftest.er1 >conftest.err
16199 rm -f conftest.er1
16200 cat conftest.err >&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } >/dev/null; then
16203 if test -s conftest.err; then
16204 ac_cpp_err=$ac_c_preproc_warn_flag
16205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16206 else
16207 ac_cpp_err=
16208 fi
16209 else
16210 ac_cpp_err=yes
16211 fi
16212 if test -z "$ac_cpp_err"; then
16213 ac_header_preproc=yes
16214 else
16215 echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16217
16218 ac_header_preproc=no
16219 fi
16220 rm -f conftest.err conftest.$ac_ext
16221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16222 echo "${ECHO_T}$ac_header_preproc" >&6
16223
16224 # So? What about this header?
16225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16226 yes:no: )
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16231 ac_header_preproc=yes
16232 ;;
16233 no:yes:* )
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16246 (
16247 cat <<\_ASBOX
16248 ## ----------------------------------------- ##
16249 ## Report this to wx-dev@lists.wxwidgets.org ##
16250 ## ----------------------------------------- ##
16251 _ASBOX
16252 ) |
16253 sed "s/^/$as_me: WARNING: /" >&2
16254 ;;
16255 esac
16256 echo "$as_me:$LINENO: checking for $ac_header" >&5
16257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261 eval "$as_ac_Header=\$ac_header_preproc"
16262 fi
16263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16265
16266 fi
16267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16268 cat >>confdefs.h <<_ACEOF
16269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16270 _ACEOF
16271
16272 fi
16273
16274 done
16275
16276
16277
16278 for ac_header in langinfo.h
16279 do
16280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16282 echo "$as_me:$LINENO: checking for $ac_header" >&5
16283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 fi
16287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16289 else
16290 # Is the header compilable?
16291 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16293 cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h. */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 $ac_includes_default
16300 #include <$ac_header>
16301 _ACEOF
16302 rm -f conftest.$ac_objext
16303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16304 (eval $ac_compile) 2>conftest.er1
16305 ac_status=$?
16306 grep -v '^ *+' conftest.er1 >conftest.err
16307 rm -f conftest.er1
16308 cat conftest.err >&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } &&
16311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest.$ac_objext'
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16323 ac_header_compiler=yes
16324 else
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16327
16328 ac_header_compiler=no
16329 fi
16330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16332 echo "${ECHO_T}$ac_header_compiler" >&6
16333
16334 # Is the header present?
16335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16337 cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h. */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 #include <$ac_header>
16344 _ACEOF
16345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16347 ac_status=$?
16348 grep -v '^ *+' conftest.er1 >conftest.err
16349 rm -f conftest.er1
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } >/dev/null; then
16353 if test -s conftest.err; then
16354 ac_cpp_err=$ac_c_preproc_warn_flag
16355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16356 else
16357 ac_cpp_err=
16358 fi
16359 else
16360 ac_cpp_err=yes
16361 fi
16362 if test -z "$ac_cpp_err"; then
16363 ac_header_preproc=yes
16364 else
16365 echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16367
16368 ac_header_preproc=no
16369 fi
16370 rm -f conftest.err conftest.$ac_ext
16371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16372 echo "${ECHO_T}$ac_header_preproc" >&6
16373
16374 # So? What about this header?
16375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16376 yes:no: )
16377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16381 ac_header_preproc=yes
16382 ;;
16383 no:yes:* )
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16396 (
16397 cat <<\_ASBOX
16398 ## ----------------------------------------- ##
16399 ## Report this to wx-dev@lists.wxwidgets.org ##
16400 ## ----------------------------------------- ##
16401 _ASBOX
16402 ) |
16403 sed "s/^/$as_me: WARNING: /" >&2
16404 ;;
16405 esac
16406 echo "$as_me:$LINENO: checking for $ac_header" >&5
16407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411 eval "$as_ac_Header=\$ac_header_preproc"
16412 fi
16413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16415
16416 fi
16417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16418 cat >>confdefs.h <<_ACEOF
16419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16420 _ACEOF
16421
16422 fi
16423
16424 done
16425
16426
16427 case "${host}" in
16428 *-pc-os2_emx | *-pc-os2-emx )
16429 if test $ac_cv_header_langinfo_h = "yes" \
16430 -a \( "$wx_cv_gccversion" = "EMX2" \
16431 -o "$wx_cv_gccversion" = "EMX3" \
16432 -o "$wx_cv_gccversion" = "Innotek5" \); then
16433 LIBS="$LIBS -lintl"
16434 fi
16435 ;;
16436 esac
16437
16438
16439 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16440 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16441 if test "${ac_cv_c_const+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16443 else
16444 cat >conftest.$ac_ext <<_ACEOF
16445 /* confdefs.h. */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450
16451 int
16452 main ()
16453 {
16454 /* FIXME: Include the comments suggested by Paul. */
16455 #ifndef __cplusplus
16456 /* Ultrix mips cc rejects this. */
16457 typedef int charset[2];
16458 const charset x;
16459 /* SunOS 4.1.1 cc rejects this. */
16460 char const *const *ccp;
16461 char **p;
16462 /* NEC SVR4.0.2 mips cc rejects this. */
16463 struct point {int x, y;};
16464 static struct point const zero = {0,0};
16465 /* AIX XL C 1.02.0.0 rejects this.
16466 It does not let you subtract one const X* pointer from another in
16467 an arm of an if-expression whose if-part is not a constant
16468 expression */
16469 const char *g = "string";
16470 ccp = &g + (g ? g-g : 0);
16471 /* HPUX 7.0 cc rejects these. */
16472 ++ccp;
16473 p = (char**) ccp;
16474 ccp = (char const *const *) p;
16475 { /* SCO 3.2v4 cc rejects this. */
16476 char *t;
16477 char const *s = 0 ? (char *) 0 : (char const *) 0;
16478
16479 *t++ = 0;
16480 }
16481 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16482 int x[] = {25, 17};
16483 const int *foo = &x[0];
16484 ++foo;
16485 }
16486 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16487 typedef const int *iptr;
16488 iptr p = 0;
16489 ++p;
16490 }
16491 { /* AIX XL C 1.02.0.0 rejects this saying
16492 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16493 struct s { int j; const int *ap[3]; };
16494 struct s *b; b->j = 5;
16495 }
16496 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16497 const int foo = 10;
16498 }
16499 #endif
16500
16501 ;
16502 return 0;
16503 }
16504 _ACEOF
16505 rm -f conftest.$ac_objext
16506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16507 (eval $ac_compile) 2>conftest.er1
16508 ac_status=$?
16509 grep -v '^ *+' conftest.er1 >conftest.err
16510 rm -f conftest.er1
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
16514 { ac_try='test -z "$ac_c_werror_flag" || 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_cv_c_const=yes
16527 else
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16530
16531 ac_cv_c_const=no
16532 fi
16533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16534 fi
16535 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16536 echo "${ECHO_T}$ac_cv_c_const" >&6
16537 if test $ac_cv_c_const = no; then
16538
16539 cat >>confdefs.h <<\_ACEOF
16540 #define const
16541 _ACEOF
16542
16543 fi
16544
16545 echo "$as_me:$LINENO: checking for inline" >&5
16546 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16547 if test "${ac_cv_c_inline+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550 ac_cv_c_inline=no
16551 for ac_kw in inline __inline__ __inline; do
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h. */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 #ifndef __cplusplus
16559 typedef int foo_t;
16560 static $ac_kw foo_t static_foo () {return 0; }
16561 $ac_kw foo_t foo () {return 0; }
16562 #endif
16563
16564 _ACEOF
16565 rm -f conftest.$ac_objext
16566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16567 (eval $ac_compile) 2>conftest.er1
16568 ac_status=$?
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try='test -s conftest.$ac_objext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_c_inline=$ac_kw; break
16587 else
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 fi
16592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16593 done
16594
16595 fi
16596 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16597 echo "${ECHO_T}$ac_cv_c_inline" >&6
16598
16599
16600 case $ac_cv_c_inline in
16601 inline | yes) ;;
16602 *)
16603 case $ac_cv_c_inline in
16604 no) ac_val=;;
16605 *) ac_val=$ac_cv_c_inline;;
16606 esac
16607 cat >>confdefs.h <<_ACEOF
16608 #ifndef __cplusplus
16609 #define inline $ac_val
16610 #endif
16611 _ACEOF
16612 ;;
16613 esac
16614
16615
16616 echo "$as_me:$LINENO: checking for char" >&5
16617 echo $ECHO_N "checking for char... $ECHO_C" >&6
16618 if test "${ac_cv_type_char+set}" = set; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16620 else
16621 cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h. */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 $ac_includes_default
16628 int
16629 main ()
16630 {
16631 if ((char *) 0)
16632 return 0;
16633 if (sizeof (char))
16634 return 0;
16635 ;
16636 return 0;
16637 }
16638 _ACEOF
16639 rm -f conftest.$ac_objext
16640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16641 (eval $ac_compile) 2>conftest.er1
16642 ac_status=$?
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } &&
16648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest.$ac_objext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 ac_cv_type_char=yes
16661 else
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665 ac_cv_type_char=no
16666 fi
16667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16668 fi
16669 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16670 echo "${ECHO_T}$ac_cv_type_char" >&6
16671
16672 echo "$as_me:$LINENO: checking size of char" >&5
16673 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16674 if test "${ac_cv_sizeof_char+set}" = set; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16676 else
16677 if test "$ac_cv_type_char" = yes; then
16678 # The cast to unsigned long works around a bug in the HP C Compiler
16679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16681 # This bug is HP SR number 8606223364.
16682 if test "$cross_compiling" = yes; then
16683 # Depending upon the size, compute the lo and hi bounds.
16684 cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h. */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 $ac_includes_default
16691 int
16692 main ()
16693 {
16694 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16695 test_array [0] = 0
16696
16697 ;
16698 return 0;
16699 }
16700 _ACEOF
16701 rm -f conftest.$ac_objext
16702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16703 (eval $ac_compile) 2>conftest.er1
16704 ac_status=$?
16705 grep -v '^ *+' conftest.er1 >conftest.err
16706 rm -f conftest.er1
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
16710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest.$ac_objext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16722 ac_lo=0 ac_mid=0
16723 while :; do
16724 cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h. */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 $ac_includes_default
16731 int
16732 main ()
16733 {
16734 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16735 test_array [0] = 0
16736
16737 ;
16738 return 0;
16739 }
16740 _ACEOF
16741 rm -f conftest.$ac_objext
16742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16743 (eval $ac_compile) 2>conftest.er1
16744 ac_status=$?
16745 grep -v '^ *+' conftest.er1 >conftest.err
16746 rm -f conftest.er1
16747 cat conftest.err >&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
16750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest.$ac_objext'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 ac_hi=$ac_mid; break
16763 else
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16766
16767 ac_lo=`expr $ac_mid + 1`
16768 if test $ac_lo -le $ac_mid; then
16769 ac_lo= ac_hi=
16770 break
16771 fi
16772 ac_mid=`expr 2 '*' $ac_mid + 1`
16773 fi
16774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16775 done
16776 else
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16779
16780 cat >conftest.$ac_ext <<_ACEOF
16781 /* confdefs.h. */
16782 _ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16786 $ac_includes_default
16787 int
16788 main ()
16789 {
16790 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16791 test_array [0] = 0
16792
16793 ;
16794 return 0;
16795 }
16796 _ACEOF
16797 rm -f conftest.$ac_objext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16799 (eval $ac_compile) 2>conftest.er1
16800 ac_status=$?
16801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
16806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest.$ac_objext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_hi=-1 ac_mid=-1
16819 while :; do
16820 cat >conftest.$ac_ext <<_ACEOF
16821 /* confdefs.h. */
16822 _ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16826 $ac_includes_default
16827 int
16828 main ()
16829 {
16830 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16831 test_array [0] = 0
16832
16833 ;
16834 return 0;
16835 }
16836 _ACEOF
16837 rm -f conftest.$ac_objext
16838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>conftest.er1
16840 ac_status=$?
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
16846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_lo=$ac_mid; break
16859 else
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16862
16863 ac_hi=`expr '(' $ac_mid ')' - 1`
16864 if test $ac_mid -le $ac_hi; then
16865 ac_lo= ac_hi=
16866 break
16867 fi
16868 ac_mid=`expr 2 '*' $ac_mid`
16869 fi
16870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16871 done
16872 else
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16875
16876 ac_lo= ac_hi=
16877 fi
16878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16879 fi
16880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16881 # Binary search between lo and hi bounds.
16882 while test "x$ac_lo" != "x$ac_hi"; do
16883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16884 cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h. */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 $ac_includes_default
16891 int
16892 main ()
16893 {
16894 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16895 test_array [0] = 0
16896
16897 ;
16898 return 0;
16899 }
16900 _ACEOF
16901 rm -f conftest.$ac_objext
16902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16903 (eval $ac_compile) 2>conftest.er1
16904 ac_status=$?
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest.$ac_objext'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_hi=$ac_mid
16923 else
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16926
16927 ac_lo=`expr '(' $ac_mid ')' + 1`
16928 fi
16929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16930 done
16931 case $ac_lo in
16932 ?*) ac_cv_sizeof_char=$ac_lo;;
16933 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16934 See \`config.log' for more details." >&5
16935 echo "$as_me: error: cannot compute sizeof (char), 77
16936 See \`config.log' for more details." >&2;}
16937 { (exit 1); exit 1; }; } ;;
16938 esac
16939 else
16940 if test "$cross_compiling" = yes; then
16941 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16942 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16943 { (exit 1); exit 1; }; }
16944 else
16945 cat >conftest.$ac_ext <<_ACEOF
16946 /* confdefs.h. */
16947 _ACEOF
16948 cat confdefs.h >>conftest.$ac_ext
16949 cat >>conftest.$ac_ext <<_ACEOF
16950 /* end confdefs.h. */
16951 $ac_includes_default
16952 long longval () { return (long) (sizeof (char)); }
16953 unsigned long ulongval () { return (long) (sizeof (char)); }
16954 #include <stdio.h>
16955 #include <stdlib.h>
16956 int
16957 main ()
16958 {
16959
16960 FILE *f = fopen ("conftest.val", "w");
16961 if (! f)
16962 exit (1);
16963 if (((long) (sizeof (char))) < 0)
16964 {
16965 long i = longval ();
16966 if (i != ((long) (sizeof (char))))
16967 exit (1);
16968 fprintf (f, "%ld\n", i);
16969 }
16970 else
16971 {
16972 unsigned long i = ulongval ();
16973 if (i != ((long) (sizeof (char))))
16974 exit (1);
16975 fprintf (f, "%lu\n", i);
16976 }
16977 exit (ferror (f) || fclose (f) != 0);
16978
16979 ;
16980 return 0;
16981 }
16982 _ACEOF
16983 rm -f conftest$ac_exeext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985 (eval $ac_link) 2>&5
16986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_cv_sizeof_char=`cat conftest.val`
16995 else
16996 echo "$as_me: program exited with status $ac_status" >&5
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000 ( exit $ac_status )
17001 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17002 See \`config.log' for more details." >&5
17003 echo "$as_me: error: cannot compute sizeof (char), 77
17004 See \`config.log' for more details." >&2;}
17005 { (exit 1); exit 1; }; }
17006 fi
17007 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17008 fi
17009 fi
17010 rm -f conftest.val
17011 else
17012 ac_cv_sizeof_char=0
17013 fi
17014 fi
17015 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17016 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17017 cat >>confdefs.h <<_ACEOF
17018 #define SIZEOF_CHAR $ac_cv_sizeof_char
17019 _ACEOF
17020
17021
17022 echo "$as_me:$LINENO: checking for short" >&5
17023 echo $ECHO_N "checking for short... $ECHO_C" >&6
17024 if test "${ac_cv_type_short+set}" = set; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 else
17027 cat >conftest.$ac_ext <<_ACEOF
17028 /* confdefs.h. */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17033 $ac_includes_default
17034 int
17035 main ()
17036 {
17037 if ((short *) 0)
17038 return 0;
17039 if (sizeof (short))
17040 return 0;
17041 ;
17042 return 0;
17043 }
17044 _ACEOF
17045 rm -f conftest.$ac_objext
17046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17047 (eval $ac_compile) 2>conftest.er1
17048 ac_status=$?
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest.$ac_objext'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_type_short=yes
17067 else
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17070
17071 ac_cv_type_short=no
17072 fi
17073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17074 fi
17075 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17076 echo "${ECHO_T}$ac_cv_type_short" >&6
17077
17078 echo "$as_me:$LINENO: checking size of short" >&5
17079 echo $ECHO_N "checking size of short... $ECHO_C" >&6
17080 if test "${ac_cv_sizeof_short+set}" = set; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17082 else
17083 if test "$ac_cv_type_short" = yes; then
17084 # The cast to unsigned long works around a bug in the HP C Compiler
17085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17087 # This bug is HP SR number 8606223364.
17088 if test "$cross_compiling" = yes; then
17089 # Depending upon the size, compute the lo and hi bounds.
17090 cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h. */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h. */
17096 $ac_includes_default
17097 int
17098 main ()
17099 {
17100 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17101 test_array [0] = 0
17102
17103 ;
17104 return 0;
17105 }
17106 _ACEOF
17107 rm -f conftest.$ac_objext
17108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17109 (eval $ac_compile) 2>conftest.er1
17110 ac_status=$?
17111 grep -v '^ *+' conftest.er1 >conftest.err
17112 rm -f conftest.er1
17113 cat conftest.err >&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
17116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; } &&
17122 { ac_try='test -s conftest.$ac_objext'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 ac_lo=0 ac_mid=0
17129 while :; do
17130 cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h. */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17136 $ac_includes_default
17137 int
17138 main ()
17139 {
17140 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17141 test_array [0] = 0
17142
17143 ;
17144 return 0;
17145 }
17146 _ACEOF
17147 rm -f conftest.$ac_objext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17149 (eval $ac_compile) 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_hi=$ac_mid; break
17169 else
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17172
17173 ac_lo=`expr $ac_mid + 1`
17174 if test $ac_lo -le $ac_mid; then
17175 ac_lo= ac_hi=
17176 break
17177 fi
17178 ac_mid=`expr 2 '*' $ac_mid + 1`
17179 fi
17180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17181 done
17182 else
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17185
17186 cat >conftest.$ac_ext <<_ACEOF
17187 /* confdefs.h. */
17188 _ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17192 $ac_includes_default
17193 int
17194 main ()
17195 {
17196 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17197 test_array [0] = 0
17198
17199 ;
17200 return 0;
17201 }
17202 _ACEOF
17203 rm -f conftest.$ac_objext
17204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17205 (eval $ac_compile) 2>conftest.er1
17206 ac_status=$?
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
17212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; } &&
17218 { ac_try='test -s conftest.$ac_objext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 ac_hi=-1 ac_mid=-1
17225 while :; do
17226 cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h. */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 $ac_includes_default
17233 int
17234 main ()
17235 {
17236 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17237 test_array [0] = 0
17238
17239 ;
17240 return 0;
17241 }
17242 _ACEOF
17243 rm -f conftest.$ac_objext
17244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17245 (eval $ac_compile) 2>conftest.er1
17246 ac_status=$?
17247 grep -v '^ *+' conftest.er1 >conftest.err
17248 rm -f conftest.er1
17249 cat conftest.err >&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
17252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest.$ac_objext'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_lo=$ac_mid; break
17265 else
17266 echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17268
17269 ac_hi=`expr '(' $ac_mid ')' - 1`
17270 if test $ac_mid -le $ac_hi; then
17271 ac_lo= ac_hi=
17272 break
17273 fi
17274 ac_mid=`expr 2 '*' $ac_mid`
17275 fi
17276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17277 done
17278 else
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17281
17282 ac_lo= ac_hi=
17283 fi
17284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17285 fi
17286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17287 # Binary search between lo and hi bounds.
17288 while test "x$ac_lo" != "x$ac_hi"; do
17289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17290 cat >conftest.$ac_ext <<_ACEOF
17291 /* confdefs.h. */
17292 _ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h. */
17296 $ac_includes_default
17297 int
17298 main ()
17299 {
17300 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17301 test_array [0] = 0
17302
17303 ;
17304 return 0;
17305 }
17306 _ACEOF
17307 rm -f conftest.$ac_objext
17308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17309 (eval $ac_compile) 2>conftest.er1
17310 ac_status=$?
17311 grep -v '^ *+' conftest.er1 >conftest.err
17312 rm -f conftest.er1
17313 cat conftest.err >&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } &&
17316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest.$ac_objext'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 ac_hi=$ac_mid
17329 else
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17332
17333 ac_lo=`expr '(' $ac_mid ')' + 1`
17334 fi
17335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17336 done
17337 case $ac_lo in
17338 ?*) ac_cv_sizeof_short=$ac_lo;;
17339 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17340 See \`config.log' for more details." >&5
17341 echo "$as_me: error: cannot compute sizeof (short), 77
17342 See \`config.log' for more details." >&2;}
17343 { (exit 1); exit 1; }; } ;;
17344 esac
17345 else
17346 if test "$cross_compiling" = yes; then
17347 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17348 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17349 { (exit 1); exit 1; }; }
17350 else
17351 cat >conftest.$ac_ext <<_ACEOF
17352 /* confdefs.h. */
17353 _ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17357 $ac_includes_default
17358 long longval () { return (long) (sizeof (short)); }
17359 unsigned long ulongval () { return (long) (sizeof (short)); }
17360 #include <stdio.h>
17361 #include <stdlib.h>
17362 int
17363 main ()
17364 {
17365
17366 FILE *f = fopen ("conftest.val", "w");
17367 if (! f)
17368 exit (1);
17369 if (((long) (sizeof (short))) < 0)
17370 {
17371 long i = longval ();
17372 if (i != ((long) (sizeof (short))))
17373 exit (1);
17374 fprintf (f, "%ld\n", i);
17375 }
17376 else
17377 {
17378 unsigned long i = ulongval ();
17379 if (i != ((long) (sizeof (short))))
17380 exit (1);
17381 fprintf (f, "%lu\n", i);
17382 }
17383 exit (ferror (f) || fclose (f) != 0);
17384
17385 ;
17386 return 0;
17387 }
17388 _ACEOF
17389 rm -f conftest$ac_exeext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17391 (eval $ac_link) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 ac_cv_sizeof_short=`cat conftest.val`
17401 else
17402 echo "$as_me: program exited with status $ac_status" >&5
17403 echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17405
17406 ( exit $ac_status )
17407 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17408 See \`config.log' for more details." >&5
17409 echo "$as_me: error: cannot compute sizeof (short), 77
17410 See \`config.log' for more details." >&2;}
17411 { (exit 1); exit 1; }; }
17412 fi
17413 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17414 fi
17415 fi
17416 rm -f conftest.val
17417 else
17418 ac_cv_sizeof_short=0
17419 fi
17420 fi
17421 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17422 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17423 cat >>confdefs.h <<_ACEOF
17424 #define SIZEOF_SHORT $ac_cv_sizeof_short
17425 _ACEOF
17426
17427
17428 echo "$as_me:$LINENO: checking for void *" >&5
17429 echo $ECHO_N "checking for void *... $ECHO_C" >&6
17430 if test "${ac_cv_type_void_p+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17432 else
17433 cat >conftest.$ac_ext <<_ACEOF
17434 /* confdefs.h. */
17435 _ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17439 $ac_includes_default
17440 int
17441 main ()
17442 {
17443 if ((void * *) 0)
17444 return 0;
17445 if (sizeof (void *))
17446 return 0;
17447 ;
17448 return 0;
17449 }
17450 _ACEOF
17451 rm -f conftest.$ac_objext
17452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17453 (eval $ac_compile) 2>conftest.er1
17454 ac_status=$?
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; } &&
17466 { ac_try='test -s conftest.$ac_objext'
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 ac_cv_type_void_p=yes
17473 else
17474 echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17476
17477 ac_cv_type_void_p=no
17478 fi
17479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17480 fi
17481 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17482 echo "${ECHO_T}$ac_cv_type_void_p" >&6
17483
17484 echo "$as_me:$LINENO: checking size of void *" >&5
17485 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17486 if test "${ac_cv_sizeof_void_p+set}" = set; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488 else
17489 if test "$ac_cv_type_void_p" = yes; then
17490 # The cast to unsigned long works around a bug in the HP C Compiler
17491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17493 # This bug is HP SR number 8606223364.
17494 if test "$cross_compiling" = yes; then
17495 # Depending upon the size, compute the lo and hi bounds.
17496 cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h. */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17502 $ac_includes_default
17503 int
17504 main ()
17505 {
17506 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17507 test_array [0] = 0
17508
17509 ;
17510 return 0;
17511 }
17512 _ACEOF
17513 rm -f conftest.$ac_objext
17514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17515 (eval $ac_compile) 2>conftest.er1
17516 ac_status=$?
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
17522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; } &&
17528 { ac_try='test -s conftest.$ac_objext'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; }; then
17534 ac_lo=0 ac_mid=0
17535 while :; do
17536 cat >conftest.$ac_ext <<_ACEOF
17537 /* confdefs.h. */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17542 $ac_includes_default
17543 int
17544 main ()
17545 {
17546 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17547 test_array [0] = 0
17548
17549 ;
17550 return 0;
17551 }
17552 _ACEOF
17553 rm -f conftest.$ac_objext
17554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17555 (eval $ac_compile) 2>conftest.er1
17556 ac_status=$?
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } &&
17562 { ac_try='test -z "$ac_c_werror_flag" || 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_hi=$ac_mid; break
17575 else
17576 echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17578
17579 ac_lo=`expr $ac_mid + 1`
17580 if test $ac_lo -le $ac_mid; then
17581 ac_lo= ac_hi=
17582 break
17583 fi
17584 ac_mid=`expr 2 '*' $ac_mid + 1`
17585 fi
17586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17587 done
17588 else
17589 echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17591
17592 cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h. */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 $ac_includes_default
17599 int
17600 main ()
17601 {
17602 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17603 test_array [0] = 0
17604
17605 ;
17606 return 0;
17607 }
17608 _ACEOF
17609 rm -f conftest.$ac_objext
17610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17611 (eval $ac_compile) 2>conftest.er1
17612 ac_status=$?
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try='test -s conftest.$ac_objext'
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17627 ac_status=$?
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 ac_hi=-1 ac_mid=-1
17631 while :; do
17632 cat >conftest.$ac_ext <<_ACEOF
17633 /* confdefs.h. */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17638 $ac_includes_default
17639 int
17640 main ()
17641 {
17642 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17643 test_array [0] = 0
17644
17645 ;
17646 return 0;
17647 }
17648 _ACEOF
17649 rm -f conftest.$ac_objext
17650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17651 (eval $ac_compile) 2>conftest.er1
17652 ac_status=$?
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try='test -s conftest.$ac_objext'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17670 ac_lo=$ac_mid; break
17671 else
17672 echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17674
17675 ac_hi=`expr '(' $ac_mid ')' - 1`
17676 if test $ac_mid -le $ac_hi; then
17677 ac_lo= ac_hi=
17678 break
17679 fi
17680 ac_mid=`expr 2 '*' $ac_mid`
17681 fi
17682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17683 done
17684 else
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17687
17688 ac_lo= ac_hi=
17689 fi
17690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17691 fi
17692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17693 # Binary search between lo and hi bounds.
17694 while test "x$ac_lo" != "x$ac_hi"; do
17695 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17696 cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h. */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17702 $ac_includes_default
17703 int
17704 main ()
17705 {
17706 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17707 test_array [0] = 0
17708
17709 ;
17710 return 0;
17711 }
17712 _ACEOF
17713 rm -f conftest.$ac_objext
17714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17715 (eval $ac_compile) 2>conftest.er1
17716 ac_status=$?
17717 grep -v '^ *+' conftest.er1 >conftest.err
17718 rm -f conftest.er1
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try='test -s conftest.$ac_objext'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 ac_hi=$ac_mid
17735 else
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17738
17739 ac_lo=`expr '(' $ac_mid ')' + 1`
17740 fi
17741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17742 done
17743 case $ac_lo in
17744 ?*) ac_cv_sizeof_void_p=$ac_lo;;
17745 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17746 See \`config.log' for more details." >&5
17747 echo "$as_me: error: cannot compute sizeof (void *), 77
17748 See \`config.log' for more details." >&2;}
17749 { (exit 1); exit 1; }; } ;;
17750 esac
17751 else
17752 if test "$cross_compiling" = yes; then
17753 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17754 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17755 { (exit 1); exit 1; }; }
17756 else
17757 cat >conftest.$ac_ext <<_ACEOF
17758 /* confdefs.h. */
17759 _ACEOF
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h. */
17763 $ac_includes_default
17764 long longval () { return (long) (sizeof (void *)); }
17765 unsigned long ulongval () { return (long) (sizeof (void *)); }
17766 #include <stdio.h>
17767 #include <stdlib.h>
17768 int
17769 main ()
17770 {
17771
17772 FILE *f = fopen ("conftest.val", "w");
17773 if (! f)
17774 exit (1);
17775 if (((long) (sizeof (void *))) < 0)
17776 {
17777 long i = longval ();
17778 if (i != ((long) (sizeof (void *))))
17779 exit (1);
17780 fprintf (f, "%ld\n", i);
17781 }
17782 else
17783 {
17784 unsigned long i = ulongval ();
17785 if (i != ((long) (sizeof (void *))))
17786 exit (1);
17787 fprintf (f, "%lu\n", i);
17788 }
17789 exit (ferror (f) || fclose (f) != 0);
17790
17791 ;
17792 return 0;
17793 }
17794 _ACEOF
17795 rm -f conftest$ac_exeext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17797 (eval $ac_link) 2>&5
17798 ac_status=$?
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_cv_sizeof_void_p=`cat conftest.val`
17807 else
17808 echo "$as_me: program exited with status $ac_status" >&5
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17811
17812 ( exit $ac_status )
17813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17814 See \`config.log' for more details." >&5
17815 echo "$as_me: error: cannot compute sizeof (void *), 77
17816 See \`config.log' for more details." >&2;}
17817 { (exit 1); exit 1; }; }
17818 fi
17819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17820 fi
17821 fi
17822 rm -f conftest.val
17823 else
17824 ac_cv_sizeof_void_p=0
17825 fi
17826 fi
17827 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17828 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17829 cat >>confdefs.h <<_ACEOF
17830 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17831 _ACEOF
17832
17833
17834 echo "$as_me:$LINENO: checking for int" >&5
17835 echo $ECHO_N "checking for int... $ECHO_C" >&6
17836 if test "${ac_cv_type_int+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17838 else
17839 cat >conftest.$ac_ext <<_ACEOF
17840 /* confdefs.h. */
17841 _ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h. */
17845 $ac_includes_default
17846 int
17847 main ()
17848 {
17849 if ((int *) 0)
17850 return 0;
17851 if (sizeof (int))
17852 return 0;
17853 ;
17854 return 0;
17855 }
17856 _ACEOF
17857 rm -f conftest.$ac_objext
17858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17859 (eval $ac_compile) 2>conftest.er1
17860 ac_status=$?
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } &&
17866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest.$ac_objext'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_cv_type_int=yes
17879 else
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17882
17883 ac_cv_type_int=no
17884 fi
17885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17886 fi
17887 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17888 echo "${ECHO_T}$ac_cv_type_int" >&6
17889
17890 echo "$as_me:$LINENO: checking size of int" >&5
17891 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17892 if test "${ac_cv_sizeof_int+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 else
17895 if test "$ac_cv_type_int" = yes; then
17896 # The cast to unsigned long works around a bug in the HP C Compiler
17897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17899 # This bug is HP SR number 8606223364.
17900 if test "$cross_compiling" = yes; then
17901 # Depending upon the size, compute the lo and hi bounds.
17902 cat >conftest.$ac_ext <<_ACEOF
17903 /* confdefs.h. */
17904 _ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17908 $ac_includes_default
17909 int
17910 main ()
17911 {
17912 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17913 test_array [0] = 0
17914
17915 ;
17916 return 0;
17917 }
17918 _ACEOF
17919 rm -f conftest.$ac_objext
17920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17921 (eval $ac_compile) 2>conftest.er1
17922 ac_status=$?
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest.$ac_objext'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_lo=0 ac_mid=0
17941 while :; do
17942 cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h. */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17948 $ac_includes_default
17949 int
17950 main ()
17951 {
17952 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17953 test_array [0] = 0
17954
17955 ;
17956 return 0;
17957 }
17958 _ACEOF
17959 rm -f conftest.$ac_objext
17960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17961 (eval $ac_compile) 2>conftest.er1
17962 ac_status=$?
17963 grep -v '^ *+' conftest.er1 >conftest.err
17964 rm -f conftest.er1
17965 cat conftest.err >&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } &&
17968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; } &&
17974 { ac_try='test -s conftest.$ac_objext'
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; }; then
17980 ac_hi=$ac_mid; break
17981 else
17982 echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17984
17985 ac_lo=`expr $ac_mid + 1`
17986 if test $ac_lo -le $ac_mid; then
17987 ac_lo= ac_hi=
17988 break
17989 fi
17990 ac_mid=`expr 2 '*' $ac_mid + 1`
17991 fi
17992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17993 done
17994 else
17995 echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17997
17998 cat >conftest.$ac_ext <<_ACEOF
17999 /* confdefs.h. */
18000 _ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18004 $ac_includes_default
18005 int
18006 main ()
18007 {
18008 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18009 test_array [0] = 0
18010
18011 ;
18012 return 0;
18013 }
18014 _ACEOF
18015 rm -f conftest.$ac_objext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18017 (eval $ac_compile) 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } &&
18024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest.$ac_objext'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_hi=-1 ac_mid=-1
18037 while :; do
18038 cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h. */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18044 $ac_includes_default
18045 int
18046 main ()
18047 {
18048 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18049 test_array [0] = 0
18050
18051 ;
18052 return 0;
18053 }
18054 _ACEOF
18055 rm -f conftest.$ac_objext
18056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18057 (eval $ac_compile) 2>conftest.er1
18058 ac_status=$?
18059 grep -v '^ *+' conftest.er1 >conftest.err
18060 rm -f conftest.er1
18061 cat conftest.err >&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } &&
18064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; } &&
18070 { ac_try='test -s conftest.$ac_objext'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18076 ac_lo=$ac_mid; break
18077 else
18078 echo "$as_me: failed program was:" >&5
18079 sed 's/^/| /' conftest.$ac_ext >&5
18080
18081 ac_hi=`expr '(' $ac_mid ')' - 1`
18082 if test $ac_mid -le $ac_hi; then
18083 ac_lo= ac_hi=
18084 break
18085 fi
18086 ac_mid=`expr 2 '*' $ac_mid`
18087 fi
18088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18089 done
18090 else
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18093
18094 ac_lo= ac_hi=
18095 fi
18096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18097 fi
18098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18099 # Binary search between lo and hi bounds.
18100 while test "x$ac_lo" != "x$ac_hi"; do
18101 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18102 cat >conftest.$ac_ext <<_ACEOF
18103 /* confdefs.h. */
18104 _ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h. */
18108 $ac_includes_default
18109 int
18110 main ()
18111 {
18112 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18113 test_array [0] = 0
18114
18115 ;
18116 return 0;
18117 }
18118 _ACEOF
18119 rm -f conftest.$ac_objext
18120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18121 (eval $ac_compile) 2>conftest.er1
18122 ac_status=$?
18123 grep -v '^ *+' conftest.er1 >conftest.err
18124 rm -f conftest.er1
18125 cat conftest.err >&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } &&
18128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18131 ac_status=$?
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; } &&
18134 { ac_try='test -s conftest.$ac_objext'
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18137 ac_status=$?
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18140 ac_hi=$ac_mid
18141 else
18142 echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18144
18145 ac_lo=`expr '(' $ac_mid ')' + 1`
18146 fi
18147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18148 done
18149 case $ac_lo in
18150 ?*) ac_cv_sizeof_int=$ac_lo;;
18151 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18152 See \`config.log' for more details." >&5
18153 echo "$as_me: error: cannot compute sizeof (int), 77
18154 See \`config.log' for more details." >&2;}
18155 { (exit 1); exit 1; }; } ;;
18156 esac
18157 else
18158 if test "$cross_compiling" = yes; then
18159 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18160 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18161 { (exit 1); exit 1; }; }
18162 else
18163 cat >conftest.$ac_ext <<_ACEOF
18164 /* confdefs.h. */
18165 _ACEOF
18166 cat confdefs.h >>conftest.$ac_ext
18167 cat >>conftest.$ac_ext <<_ACEOF
18168 /* end confdefs.h. */
18169 $ac_includes_default
18170 long longval () { return (long) (sizeof (int)); }
18171 unsigned long ulongval () { return (long) (sizeof (int)); }
18172 #include <stdio.h>
18173 #include <stdlib.h>
18174 int
18175 main ()
18176 {
18177
18178 FILE *f = fopen ("conftest.val", "w");
18179 if (! f)
18180 exit (1);
18181 if (((long) (sizeof (int))) < 0)
18182 {
18183 long i = longval ();
18184 if (i != ((long) (sizeof (int))))
18185 exit (1);
18186 fprintf (f, "%ld\n", i);
18187 }
18188 else
18189 {
18190 unsigned long i = ulongval ();
18191 if (i != ((long) (sizeof (int))))
18192 exit (1);
18193 fprintf (f, "%lu\n", i);
18194 }
18195 exit (ferror (f) || fclose (f) != 0);
18196
18197 ;
18198 return 0;
18199 }
18200 _ACEOF
18201 rm -f conftest$ac_exeext
18202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18203 (eval $ac_link) 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; }; then
18212 ac_cv_sizeof_int=`cat conftest.val`
18213 else
18214 echo "$as_me: program exited with status $ac_status" >&5
18215 echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18217
18218 ( exit $ac_status )
18219 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18220 See \`config.log' for more details." >&5
18221 echo "$as_me: error: cannot compute sizeof (int), 77
18222 See \`config.log' for more details." >&2;}
18223 { (exit 1); exit 1; }; }
18224 fi
18225 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18226 fi
18227 fi
18228 rm -f conftest.val
18229 else
18230 ac_cv_sizeof_int=0
18231 fi
18232 fi
18233 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18234 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18235 cat >>confdefs.h <<_ACEOF
18236 #define SIZEOF_INT $ac_cv_sizeof_int
18237 _ACEOF
18238
18239
18240 echo "$as_me:$LINENO: checking for long" >&5
18241 echo $ECHO_N "checking for long... $ECHO_C" >&6
18242 if test "${ac_cv_type_long+set}" = set; then
18243 echo $ECHO_N "(cached) $ECHO_C" >&6
18244 else
18245 cat >conftest.$ac_ext <<_ACEOF
18246 /* confdefs.h. */
18247 _ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h. */
18251 $ac_includes_default
18252 int
18253 main ()
18254 {
18255 if ((long *) 0)
18256 return 0;
18257 if (sizeof (long))
18258 return 0;
18259 ;
18260 return 0;
18261 }
18262 _ACEOF
18263 rm -f conftest.$ac_objext
18264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18265 (eval $ac_compile) 2>conftest.er1
18266 ac_status=$?
18267 grep -v '^ *+' conftest.er1 >conftest.err
18268 rm -f conftest.er1
18269 cat conftest.err >&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } &&
18272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; } &&
18278 { ac_try='test -s conftest.$ac_objext'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18284 ac_cv_type_long=yes
18285 else
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18288
18289 ac_cv_type_long=no
18290 fi
18291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18292 fi
18293 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18294 echo "${ECHO_T}$ac_cv_type_long" >&6
18295
18296 echo "$as_me:$LINENO: checking size of long" >&5
18297 echo $ECHO_N "checking size of long... $ECHO_C" >&6
18298 if test "${ac_cv_sizeof_long+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301 if test "$ac_cv_type_long" = yes; then
18302 # The cast to unsigned long works around a bug in the HP C Compiler
18303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18305 # This bug is HP SR number 8606223364.
18306 if test "$cross_compiling" = yes; then
18307 # Depending upon the size, compute the lo and hi bounds.
18308 cat >conftest.$ac_ext <<_ACEOF
18309 /* confdefs.h. */
18310 _ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18314 $ac_includes_default
18315 int
18316 main ()
18317 {
18318 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18319 test_array [0] = 0
18320
18321 ;
18322 return 0;
18323 }
18324 _ACEOF
18325 rm -f conftest.$ac_objext
18326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18327 (eval $ac_compile) 2>conftest.er1
18328 ac_status=$?
18329 grep -v '^ *+' conftest.er1 >conftest.err
18330 rm -f conftest.er1
18331 cat conftest.err >&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } &&
18334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest.$ac_objext'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; }; then
18346 ac_lo=0 ac_mid=0
18347 while :; do
18348 cat >conftest.$ac_ext <<_ACEOF
18349 /* confdefs.h. */
18350 _ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h. */
18354 $ac_includes_default
18355 int
18356 main ()
18357 {
18358 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18359 test_array [0] = 0
18360
18361 ;
18362 return 0;
18363 }
18364 _ACEOF
18365 rm -f conftest.$ac_objext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18367 (eval $ac_compile) 2>conftest.er1
18368 ac_status=$?
18369 grep -v '^ *+' conftest.er1 >conftest.err
18370 rm -f conftest.er1
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } &&
18374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18377 ac_status=$?
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; } &&
18380 { ac_try='test -s conftest.$ac_objext'
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 ac_hi=$ac_mid; break
18387 else
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18390
18391 ac_lo=`expr $ac_mid + 1`
18392 if test $ac_lo -le $ac_mid; then
18393 ac_lo= ac_hi=
18394 break
18395 fi
18396 ac_mid=`expr 2 '*' $ac_mid + 1`
18397 fi
18398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18399 done
18400 else
18401 echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18403
18404 cat >conftest.$ac_ext <<_ACEOF
18405 /* confdefs.h. */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18410 $ac_includes_default
18411 int
18412 main ()
18413 {
18414 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18415 test_array [0] = 0
18416
18417 ;
18418 return 0;
18419 }
18420 _ACEOF
18421 rm -f conftest.$ac_objext
18422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18423 (eval $ac_compile) 2>conftest.er1
18424 ac_status=$?
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
18430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; } &&
18436 { ac_try='test -s conftest.$ac_objext'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_hi=-1 ac_mid=-1
18443 while :; do
18444 cat >conftest.$ac_ext <<_ACEOF
18445 /* confdefs.h. */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h. */
18450 $ac_includes_default
18451 int
18452 main ()
18453 {
18454 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18455 test_array [0] = 0
18456
18457 ;
18458 return 0;
18459 }
18460 _ACEOF
18461 rm -f conftest.$ac_objext
18462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18463 (eval $ac_compile) 2>conftest.er1
18464 ac_status=$?
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
18470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; } &&
18476 { ac_try='test -s conftest.$ac_objext'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; }; then
18482 ac_lo=$ac_mid; break
18483 else
18484 echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18486
18487 ac_hi=`expr '(' $ac_mid ')' - 1`
18488 if test $ac_mid -le $ac_hi; then
18489 ac_lo= ac_hi=
18490 break
18491 fi
18492 ac_mid=`expr 2 '*' $ac_mid`
18493 fi
18494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18495 done
18496 else
18497 echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18499
18500 ac_lo= ac_hi=
18501 fi
18502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18503 fi
18504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18505 # Binary search between lo and hi bounds.
18506 while test "x$ac_lo" != "x$ac_hi"; do
18507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18508 cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h. */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 $ac_includes_default
18515 int
18516 main ()
18517 {
18518 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18519 test_array [0] = 0
18520
18521 ;
18522 return 0;
18523 }
18524 _ACEOF
18525 rm -f conftest.$ac_objext
18526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18527 (eval $ac_compile) 2>conftest.er1
18528 ac_status=$?
18529 grep -v '^ *+' conftest.er1 >conftest.err
18530 rm -f conftest.er1
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
18534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18536 (eval $ac_try) 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; } &&
18540 { ac_try='test -s conftest.$ac_objext'
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_hi=$ac_mid
18547 else
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18550
18551 ac_lo=`expr '(' $ac_mid ')' + 1`
18552 fi
18553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18554 done
18555 case $ac_lo in
18556 ?*) ac_cv_sizeof_long=$ac_lo;;
18557 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18558 See \`config.log' for more details." >&5
18559 echo "$as_me: error: cannot compute sizeof (long), 77
18560 See \`config.log' for more details." >&2;}
18561 { (exit 1); exit 1; }; } ;;
18562 esac
18563 else
18564 if test "$cross_compiling" = yes; then
18565 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18566 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18567 { (exit 1); exit 1; }; }
18568 else
18569 cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h. */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 $ac_includes_default
18576 long longval () { return (long) (sizeof (long)); }
18577 unsigned long ulongval () { return (long) (sizeof (long)); }
18578 #include <stdio.h>
18579 #include <stdlib.h>
18580 int
18581 main ()
18582 {
18583
18584 FILE *f = fopen ("conftest.val", "w");
18585 if (! f)
18586 exit (1);
18587 if (((long) (sizeof (long))) < 0)
18588 {
18589 long i = longval ();
18590 if (i != ((long) (sizeof (long))))
18591 exit (1);
18592 fprintf (f, "%ld\n", i);
18593 }
18594 else
18595 {
18596 unsigned long i = ulongval ();
18597 if (i != ((long) (sizeof (long))))
18598 exit (1);
18599 fprintf (f, "%lu\n", i);
18600 }
18601 exit (ferror (f) || fclose (f) != 0);
18602
18603 ;
18604 return 0;
18605 }
18606 _ACEOF
18607 rm -f conftest$ac_exeext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609 (eval $ac_link) 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_sizeof_long=`cat conftest.val`
18619 else
18620 echo "$as_me: program exited with status $ac_status" >&5
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18623
18624 ( exit $ac_status )
18625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18626 See \`config.log' for more details." >&5
18627 echo "$as_me: error: cannot compute sizeof (long), 77
18628 See \`config.log' for more details." >&2;}
18629 { (exit 1); exit 1; }; }
18630 fi
18631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18632 fi
18633 fi
18634 rm -f conftest.val
18635 else
18636 ac_cv_sizeof_long=0
18637 fi
18638 fi
18639 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18640 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18641 cat >>confdefs.h <<_ACEOF
18642 #define SIZEOF_LONG $ac_cv_sizeof_long
18643 _ACEOF
18644
18645
18646 echo "$as_me:$LINENO: checking for size_t" >&5
18647 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18648 if test "${ac_cv_type_size_t+set}" = set; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651 cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h. */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 $ac_includes_default
18658 int
18659 main ()
18660 {
18661 if ((size_t *) 0)
18662 return 0;
18663 if (sizeof (size_t))
18664 return 0;
18665 ;
18666 return 0;
18667 }
18668 _ACEOF
18669 rm -f conftest.$ac_objext
18670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18671 (eval $ac_compile) 2>conftest.er1
18672 ac_status=$?
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; } &&
18684 { ac_try='test -s conftest.$ac_objext'
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; }; then
18690 ac_cv_type_size_t=yes
18691 else
18692 echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18694
18695 ac_cv_type_size_t=no
18696 fi
18697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18698 fi
18699 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18700 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18701
18702 echo "$as_me:$LINENO: checking size of size_t" >&5
18703 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18704 if test "${ac_cv_sizeof_size_t+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707 if test "$ac_cv_type_size_t" = yes; then
18708 # The cast to unsigned long works around a bug in the HP C Compiler
18709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18711 # This bug is HP SR number 8606223364.
18712 if test "$cross_compiling" = yes; then
18713 # Depending upon the size, compute the lo and hi bounds.
18714 cat >conftest.$ac_ext <<_ACEOF
18715 /* confdefs.h. */
18716 _ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720 $ac_includes_default
18721 int
18722 main ()
18723 {
18724 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18725 test_array [0] = 0
18726
18727 ;
18728 return 0;
18729 }
18730 _ACEOF
18731 rm -f conftest.$ac_objext
18732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18733 (eval $ac_compile) 2>conftest.er1
18734 ac_status=$?
18735 grep -v '^ *+' conftest.er1 >conftest.err
18736 rm -f conftest.er1
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } &&
18740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; } &&
18746 { ac_try='test -s conftest.$ac_objext'
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18752 ac_lo=0 ac_mid=0
18753 while :; do
18754 cat >conftest.$ac_ext <<_ACEOF
18755 /* confdefs.h. */
18756 _ACEOF
18757 cat confdefs.h >>conftest.$ac_ext
18758 cat >>conftest.$ac_ext <<_ACEOF
18759 /* end confdefs.h. */
18760 $ac_includes_default
18761 int
18762 main ()
18763 {
18764 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18765 test_array [0] = 0
18766
18767 ;
18768 return 0;
18769 }
18770 _ACEOF
18771 rm -f conftest.$ac_objext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18773 (eval $ac_compile) 2>conftest.er1
18774 ac_status=$?
18775 grep -v '^ *+' conftest.er1 >conftest.err
18776 rm -f conftest.er1
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
18780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782 (eval $ac_try) 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; } &&
18786 { ac_try='test -s conftest.$ac_objext'
18787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18788 (eval $ac_try) 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; }; then
18792 ac_hi=$ac_mid; break
18793 else
18794 echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18796
18797 ac_lo=`expr $ac_mid + 1`
18798 if test $ac_lo -le $ac_mid; then
18799 ac_lo= ac_hi=
18800 break
18801 fi
18802 ac_mid=`expr 2 '*' $ac_mid + 1`
18803 fi
18804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18805 done
18806 else
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18809
18810 cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h. */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18816 $ac_includes_default
18817 int
18818 main ()
18819 {
18820 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18821 test_array [0] = 0
18822
18823 ;
18824 return 0;
18825 }
18826 _ACEOF
18827 rm -f conftest.$ac_objext
18828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18829 (eval $ac_compile) 2>conftest.er1
18830 ac_status=$?
18831 grep -v '^ *+' conftest.er1 >conftest.err
18832 rm -f conftest.er1
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
18836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; } &&
18842 { ac_try='test -s conftest.$ac_objext'
18843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844 (eval $ac_try) 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; }; then
18848 ac_hi=-1 ac_mid=-1
18849 while :; do
18850 cat >conftest.$ac_ext <<_ACEOF
18851 /* confdefs.h. */
18852 _ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18856 $ac_includes_default
18857 int
18858 main ()
18859 {
18860 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18861 test_array [0] = 0
18862
18863 ;
18864 return 0;
18865 }
18866 _ACEOF
18867 rm -f conftest.$ac_objext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18869 (eval $ac_compile) 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878 (eval $ac_try) 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; } &&
18882 { ac_try='test -s conftest.$ac_objext'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_lo=$ac_mid; break
18889 else
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18892
18893 ac_hi=`expr '(' $ac_mid ')' - 1`
18894 if test $ac_mid -le $ac_hi; then
18895 ac_lo= ac_hi=
18896 break
18897 fi
18898 ac_mid=`expr 2 '*' $ac_mid`
18899 fi
18900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18901 done
18902 else
18903 echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18905
18906 ac_lo= ac_hi=
18907 fi
18908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18909 fi
18910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18911 # Binary search between lo and hi bounds.
18912 while test "x$ac_lo" != "x$ac_hi"; do
18913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18914 cat >conftest.$ac_ext <<_ACEOF
18915 /* confdefs.h. */
18916 _ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h. */
18920 $ac_includes_default
18921 int
18922 main ()
18923 {
18924 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18925 test_array [0] = 0
18926
18927 ;
18928 return 0;
18929 }
18930 _ACEOF
18931 rm -f conftest.$ac_objext
18932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18933 (eval $ac_compile) 2>conftest.er1
18934 ac_status=$?
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
18940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; } &&
18946 { ac_try='test -s conftest.$ac_objext'
18947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948 (eval $ac_try) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; }; then
18952 ac_hi=$ac_mid
18953 else
18954 echo "$as_me: failed program was:" >&5
18955 sed 's/^/| /' conftest.$ac_ext >&5
18956
18957 ac_lo=`expr '(' $ac_mid ')' + 1`
18958 fi
18959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18960 done
18961 case $ac_lo in
18962 ?*) ac_cv_sizeof_size_t=$ac_lo;;
18963 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18964 See \`config.log' for more details." >&5
18965 echo "$as_me: error: cannot compute sizeof (size_t), 77
18966 See \`config.log' for more details." >&2;}
18967 { (exit 1); exit 1; }; } ;;
18968 esac
18969 else
18970 if test "$cross_compiling" = yes; then
18971 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18972 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18973 { (exit 1); exit 1; }; }
18974 else
18975 cat >conftest.$ac_ext <<_ACEOF
18976 /* confdefs.h. */
18977 _ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18981 $ac_includes_default
18982 long longval () { return (long) (sizeof (size_t)); }
18983 unsigned long ulongval () { return (long) (sizeof (size_t)); }
18984 #include <stdio.h>
18985 #include <stdlib.h>
18986 int
18987 main ()
18988 {
18989
18990 FILE *f = fopen ("conftest.val", "w");
18991 if (! f)
18992 exit (1);
18993 if (((long) (sizeof (size_t))) < 0)
18994 {
18995 long i = longval ();
18996 if (i != ((long) (sizeof (size_t))))
18997 exit (1);
18998 fprintf (f, "%ld\n", i);
18999 }
19000 else
19001 {
19002 unsigned long i = ulongval ();
19003 if (i != ((long) (sizeof (size_t))))
19004 exit (1);
19005 fprintf (f, "%lu\n", i);
19006 }
19007 exit (ferror (f) || fclose (f) != 0);
19008
19009 ;
19010 return 0;
19011 }
19012 _ACEOF
19013 rm -f conftest$ac_exeext
19014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19015 (eval $ac_link) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 ac_cv_sizeof_size_t=`cat conftest.val`
19025 else
19026 echo "$as_me: program exited with status $ac_status" >&5
19027 echo "$as_me: failed program was:" >&5
19028 sed 's/^/| /' conftest.$ac_ext >&5
19029
19030 ( exit $ac_status )
19031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19032 See \`config.log' for more details." >&5
19033 echo "$as_me: error: cannot compute sizeof (size_t), 77
19034 See \`config.log' for more details." >&2;}
19035 { (exit 1); exit 1; }; }
19036 fi
19037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19038 fi
19039 fi
19040 rm -f conftest.val
19041 else
19042 ac_cv_sizeof_size_t=0
19043 fi
19044 fi
19045 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19046 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19047 cat >>confdefs.h <<_ACEOF
19048 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19049 _ACEOF
19050
19051
19052
19053 case "${host}" in
19054 arm-*-linux* )
19055 echo "$as_me:$LINENO: checking for long long" >&5
19056 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19057 if test "${ac_cv_type_long_long+set}" = set; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19059 else
19060 cat >conftest.$ac_ext <<_ACEOF
19061 /* confdefs.h. */
19062 _ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h. */
19066 $ac_includes_default
19067 int
19068 main ()
19069 {
19070 if ((long long *) 0)
19071 return 0;
19072 if (sizeof (long long))
19073 return 0;
19074 ;
19075 return 0;
19076 }
19077 _ACEOF
19078 rm -f conftest.$ac_objext
19079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19080 (eval $ac_compile) 2>conftest.er1
19081 ac_status=$?
19082 grep -v '^ *+' conftest.er1 >conftest.err
19083 rm -f conftest.er1
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } &&
19087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; } &&
19093 { ac_try='test -s conftest.$ac_objext'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_cv_type_long_long=yes
19100 else
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104 ac_cv_type_long_long=no
19105 fi
19106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19107 fi
19108 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19109 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19110
19111 echo "$as_me:$LINENO: checking size of long long" >&5
19112 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19113 if test "${ac_cv_sizeof_long_long+set}" = set; then
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19115 else
19116 if test "$ac_cv_type_long_long" = yes; then
19117 # The cast to unsigned long works around a bug in the HP C Compiler
19118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19120 # This bug is HP SR number 8606223364.
19121 if test "$cross_compiling" = yes; then
19122 # Depending upon the size, compute the lo and hi bounds.
19123 cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h. */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 $ac_includes_default
19130 int
19131 main ()
19132 {
19133 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19134 test_array [0] = 0
19135
19136 ;
19137 return 0;
19138 }
19139 _ACEOF
19140 rm -f conftest.$ac_objext
19141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19142 (eval $ac_compile) 2>conftest.er1
19143 ac_status=$?
19144 grep -v '^ *+' conftest.er1 >conftest.err
19145 rm -f conftest.er1
19146 cat conftest.err >&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } &&
19149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest.$ac_objext'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_lo=0 ac_mid=0
19162 while :; do
19163 cat >conftest.$ac_ext <<_ACEOF
19164 /* confdefs.h. */
19165 _ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19169 $ac_includes_default
19170 int
19171 main ()
19172 {
19173 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19174 test_array [0] = 0
19175
19176 ;
19177 return 0;
19178 }
19179 _ACEOF
19180 rm -f conftest.$ac_objext
19181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19182 (eval $ac_compile) 2>conftest.er1
19183 ac_status=$?
19184 grep -v '^ *+' conftest.er1 >conftest.err
19185 rm -f conftest.er1
19186 cat conftest.err >&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } &&
19189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; } &&
19195 { ac_try='test -s conftest.$ac_objext'
19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197 (eval $ac_try) 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
19201 ac_hi=$ac_mid; break
19202 else
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19205
19206 ac_lo=`expr $ac_mid + 1`
19207 if test $ac_lo -le $ac_mid; then
19208 ac_lo= ac_hi=
19209 break
19210 fi
19211 ac_mid=`expr 2 '*' $ac_mid + 1`
19212 fi
19213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19214 done
19215 else
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h. */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19225 $ac_includes_default
19226 int
19227 main ()
19228 {
19229 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19230 test_array [0] = 0
19231
19232 ;
19233 return 0;
19234 }
19235 _ACEOF
19236 rm -f conftest.$ac_objext
19237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19238 (eval $ac_compile) 2>conftest.er1
19239 ac_status=$?
19240 grep -v '^ *+' conftest.er1 >conftest.err
19241 rm -f conftest.er1
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 ac_hi=-1 ac_mid=-1
19258 while :; do
19259 cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h. */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19265 $ac_includes_default
19266 int
19267 main ()
19268 {
19269 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19270 test_array [0] = 0
19271
19272 ;
19273 return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19278 (eval $ac_compile) 2>conftest.er1
19279 ac_status=$?
19280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
19285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; } &&
19291 { ac_try='test -s conftest.$ac_objext'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 ac_lo=$ac_mid; break
19298 else
19299 echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19301
19302 ac_hi=`expr '(' $ac_mid ')' - 1`
19303 if test $ac_mid -le $ac_hi; then
19304 ac_lo= ac_hi=
19305 break
19306 fi
19307 ac_mid=`expr 2 '*' $ac_mid`
19308 fi
19309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19310 done
19311 else
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 ac_lo= ac_hi=
19316 fi
19317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19318 fi
19319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19320 # Binary search between lo and hi bounds.
19321 while test "x$ac_lo" != "x$ac_hi"; do
19322 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h. */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 $ac_includes_default
19330 int
19331 main ()
19332 {
19333 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19334 test_array [0] = 0
19335
19336 ;
19337 return 0;
19338 }
19339 _ACEOF
19340 rm -f conftest.$ac_objext
19341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19342 (eval $ac_compile) 2>conftest.er1
19343 ac_status=$?
19344 grep -v '^ *+' conftest.er1 >conftest.err
19345 rm -f conftest.er1
19346 cat conftest.err >&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } &&
19349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; } &&
19355 { ac_try='test -s conftest.$ac_objext'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361 ac_hi=$ac_mid
19362 else
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19365
19366 ac_lo=`expr '(' $ac_mid ')' + 1`
19367 fi
19368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19369 done
19370 case $ac_lo in
19371 ?*) ac_cv_sizeof_long_long=$ac_lo;;
19372 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19373 See \`config.log' for more details." >&5
19374 echo "$as_me: error: cannot compute sizeof (long long), 77
19375 See \`config.log' for more details." >&2;}
19376 { (exit 1); exit 1; }; } ;;
19377 esac
19378 else
19379 if test "$cross_compiling" = yes; then
19380 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19381 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19382 { (exit 1); exit 1; }; }
19383 else
19384 cat >conftest.$ac_ext <<_ACEOF
19385 /* confdefs.h. */
19386 _ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19390 $ac_includes_default
19391 long longval () { return (long) (sizeof (long long)); }
19392 unsigned long ulongval () { return (long) (sizeof (long long)); }
19393 #include <stdio.h>
19394 #include <stdlib.h>
19395 int
19396 main ()
19397 {
19398
19399 FILE *f = fopen ("conftest.val", "w");
19400 if (! f)
19401 exit (1);
19402 if (((long) (sizeof (long long))) < 0)
19403 {
19404 long i = longval ();
19405 if (i != ((long) (sizeof (long long))))
19406 exit (1);
19407 fprintf (f, "%ld\n", i);
19408 }
19409 else
19410 {
19411 unsigned long i = ulongval ();
19412 if (i != ((long) (sizeof (long long))))
19413 exit (1);
19414 fprintf (f, "%lu\n", i);
19415 }
19416 exit (ferror (f) || fclose (f) != 0);
19417
19418 ;
19419 return 0;
19420 }
19421 _ACEOF
19422 rm -f conftest$ac_exeext
19423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19424 (eval $ac_link) 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433 ac_cv_sizeof_long_long=`cat conftest.val`
19434 else
19435 echo "$as_me: program exited with status $ac_status" >&5
19436 echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19438
19439 ( exit $ac_status )
19440 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19441 See \`config.log' for more details." >&5
19442 echo "$as_me: error: cannot compute sizeof (long long), 77
19443 See \`config.log' for more details." >&2;}
19444 { (exit 1); exit 1; }; }
19445 fi
19446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19447 fi
19448 fi
19449 rm -f conftest.val
19450 else
19451 ac_cv_sizeof_long_long=0
19452 fi
19453 fi
19454 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19455 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19456 cat >>confdefs.h <<_ACEOF
19457 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19458 _ACEOF
19459
19460
19461 ;;
19462 *-hp-hpux* )
19463 echo "$as_me:$LINENO: checking for long long" >&5
19464 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19465 if test "${ac_cv_type_long_long+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468 cat >conftest.$ac_ext <<_ACEOF
19469 /* confdefs.h. */
19470 _ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h. */
19474 $ac_includes_default
19475 int
19476 main ()
19477 {
19478 if ((long long *) 0)
19479 return 0;
19480 if (sizeof (long long))
19481 return 0;
19482 ;
19483 return 0;
19484 }
19485 _ACEOF
19486 rm -f conftest.$ac_objext
19487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19488 (eval $ac_compile) 2>conftest.er1
19489 ac_status=$?
19490 grep -v '^ *+' conftest.er1 >conftest.err
19491 rm -f conftest.er1
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
19495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19497 (eval $ac_try) 2>&5
19498 ac_status=$?
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }; } &&
19501 { ac_try='test -s conftest.$ac_objext'
19502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19503 (eval $ac_try) 2>&5
19504 ac_status=$?
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; }; then
19507 ac_cv_type_long_long=yes
19508 else
19509 echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19511
19512 ac_cv_type_long_long=no
19513 fi
19514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19515 fi
19516 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19517 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19518
19519 echo "$as_me:$LINENO: checking size of long long" >&5
19520 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19521 if test "${ac_cv_sizeof_long_long+set}" = set; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 else
19524 if test "$ac_cv_type_long_long" = yes; then
19525 # The cast to unsigned long works around a bug in the HP C Compiler
19526 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19527 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19528 # This bug is HP SR number 8606223364.
19529 if test "$cross_compiling" = yes; then
19530 # Depending upon the size, compute the lo and hi bounds.
19531 cat >conftest.$ac_ext <<_ACEOF
19532 /* confdefs.h. */
19533 _ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h. */
19537 $ac_includes_default
19538 int
19539 main ()
19540 {
19541 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19542 test_array [0] = 0
19543
19544 ;
19545 return 0;
19546 }
19547 _ACEOF
19548 rm -f conftest.$ac_objext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19550 (eval $ac_compile) 2>conftest.er1
19551 ac_status=$?
19552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest.$ac_objext'
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; }; then
19569 ac_lo=0 ac_mid=0
19570 while :; do
19571 cat >conftest.$ac_ext <<_ACEOF
19572 /* confdefs.h. */
19573 _ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h. */
19577 $ac_includes_default
19578 int
19579 main ()
19580 {
19581 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19582 test_array [0] = 0
19583
19584 ;
19585 return 0;
19586 }
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19590 (eval $ac_compile) 2>conftest.er1
19591 ac_status=$?
19592 grep -v '^ *+' conftest.er1 >conftest.err
19593 rm -f conftest.er1
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest.$ac_objext'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 ac_hi=$ac_mid; break
19610 else
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19613
19614 ac_lo=`expr $ac_mid + 1`
19615 if test $ac_lo -le $ac_mid; then
19616 ac_lo= ac_hi=
19617 break
19618 fi
19619 ac_mid=`expr 2 '*' $ac_mid + 1`
19620 fi
19621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19622 done
19623 else
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19626
19627 cat >conftest.$ac_ext <<_ACEOF
19628 /* confdefs.h. */
19629 _ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19633 $ac_includes_default
19634 int
19635 main ()
19636 {
19637 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19638 test_array [0] = 0
19639
19640 ;
19641 return 0;
19642 }
19643 _ACEOF
19644 rm -f conftest.$ac_objext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19646 (eval $ac_compile) 2>conftest.er1
19647 ac_status=$?
19648 grep -v '^ *+' conftest.er1 >conftest.err
19649 rm -f conftest.er1
19650 cat conftest.err >&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); } &&
19653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; } &&
19659 { ac_try='test -s conftest.$ac_objext'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 ac_hi=-1 ac_mid=-1
19666 while :; do
19667 cat >conftest.$ac_ext <<_ACEOF
19668 /* confdefs.h. */
19669 _ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 $ac_includes_default
19674 int
19675 main ()
19676 {
19677 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19678 test_array [0] = 0
19679
19680 ;
19681 return 0;
19682 }
19683 _ACEOF
19684 rm -f conftest.$ac_objext
19685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19686 (eval $ac_compile) 2>conftest.er1
19687 ac_status=$?
19688 grep -v '^ *+' conftest.er1 >conftest.err
19689 rm -f conftest.er1
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
19693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19696 ac_status=$?
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try='test -s conftest.$ac_objext'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 ac_lo=$ac_mid; break
19706 else
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19709
19710 ac_hi=`expr '(' $ac_mid ')' - 1`
19711 if test $ac_mid -le $ac_hi; then
19712 ac_lo= ac_hi=
19713 break
19714 fi
19715 ac_mid=`expr 2 '*' $ac_mid`
19716 fi
19717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19718 done
19719 else
19720 echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.$ac_ext >&5
19722
19723 ac_lo= ac_hi=
19724 fi
19725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19726 fi
19727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19728 # Binary search between lo and hi bounds.
19729 while test "x$ac_lo" != "x$ac_hi"; do
19730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19731 cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h. */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 $ac_includes_default
19738 int
19739 main ()
19740 {
19741 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19742 test_array [0] = 0
19743
19744 ;
19745 return 0;
19746 }
19747 _ACEOF
19748 rm -f conftest.$ac_objext
19749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19750 (eval $ac_compile) 2>conftest.er1
19751 ac_status=$?
19752 grep -v '^ *+' conftest.er1 >conftest.err
19753 rm -f conftest.er1
19754 cat conftest.err >&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } &&
19757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759 (eval $ac_try) 2>&5
19760 ac_status=$?
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; } &&
19763 { ac_try='test -s conftest.$ac_objext'
19764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; }; then
19769 ac_hi=$ac_mid
19770 else
19771 echo "$as_me: failed program was:" >&5
19772 sed 's/^/| /' conftest.$ac_ext >&5
19773
19774 ac_lo=`expr '(' $ac_mid ')' + 1`
19775 fi
19776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19777 done
19778 case $ac_lo in
19779 ?*) ac_cv_sizeof_long_long=$ac_lo;;
19780 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19781 See \`config.log' for more details." >&5
19782 echo "$as_me: error: cannot compute sizeof (long long), 77
19783 See \`config.log' for more details." >&2;}
19784 { (exit 1); exit 1; }; } ;;
19785 esac
19786 else
19787 if test "$cross_compiling" = yes; then
19788 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19789 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19790 { (exit 1); exit 1; }; }
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 $ac_includes_default
19799 long longval () { return (long) (sizeof (long long)); }
19800 unsigned long ulongval () { return (long) (sizeof (long long)); }
19801 #include <stdio.h>
19802 #include <stdlib.h>
19803 int
19804 main ()
19805 {
19806
19807 FILE *f = fopen ("conftest.val", "w");
19808 if (! f)
19809 exit (1);
19810 if (((long) (sizeof (long long))) < 0)
19811 {
19812 long i = longval ();
19813 if (i != ((long) (sizeof (long long))))
19814 exit (1);
19815 fprintf (f, "%ld\n", i);
19816 }
19817 else
19818 {
19819 unsigned long i = ulongval ();
19820 if (i != ((long) (sizeof (long long))))
19821 exit (1);
19822 fprintf (f, "%lu\n", i);
19823 }
19824 exit (ferror (f) || fclose (f) != 0);
19825
19826 ;
19827 return 0;
19828 }
19829 _ACEOF
19830 rm -f conftest$ac_exeext
19831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19832 (eval $ac_link) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; }; then
19841 ac_cv_sizeof_long_long=`cat conftest.val`
19842 else
19843 echo "$as_me: program exited with status $ac_status" >&5
19844 echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.$ac_ext >&5
19846
19847 ( exit $ac_status )
19848 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19849 See \`config.log' for more details." >&5
19850 echo "$as_me: error: cannot compute sizeof (long long), 77
19851 See \`config.log' for more details." >&2;}
19852 { (exit 1); exit 1; }; }
19853 fi
19854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19855 fi
19856 fi
19857 rm -f conftest.val
19858 else
19859 ac_cv_sizeof_long_long=0
19860 fi
19861 fi
19862 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19863 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19864 cat >>confdefs.h <<_ACEOF
19865 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19866 _ACEOF
19867
19868
19869 if test "$ac_cv_sizeof_long_long" != "0"; then
19870 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19871 fi
19872 ;;
19873 * )
19874 echo "$as_me:$LINENO: checking for long long" >&5
19875 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19876 if test "${ac_cv_type_long_long+set}" = set; then
19877 echo $ECHO_N "(cached) $ECHO_C" >&6
19878 else
19879 cat >conftest.$ac_ext <<_ACEOF
19880 /* confdefs.h. */
19881 _ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h. */
19885 $ac_includes_default
19886 int
19887 main ()
19888 {
19889 if ((long long *) 0)
19890 return 0;
19891 if (sizeof (long long))
19892 return 0;
19893 ;
19894 return 0;
19895 }
19896 _ACEOF
19897 rm -f conftest.$ac_objext
19898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19899 (eval $ac_compile) 2>conftest.er1
19900 ac_status=$?
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } &&
19906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908 (eval $ac_try) 2>&5
19909 ac_status=$?
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; } &&
19912 { ac_try='test -s conftest.$ac_objext'
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; }; then
19918 ac_cv_type_long_long=yes
19919 else
19920 echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923 ac_cv_type_long_long=no
19924 fi
19925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19926 fi
19927 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19928 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19929
19930 echo "$as_me:$LINENO: checking size of long long" >&5
19931 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19932 if test "${ac_cv_sizeof_long_long+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935 if test "$ac_cv_type_long_long" = yes; then
19936 # The cast to unsigned long works around a bug in the HP C Compiler
19937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19939 # This bug is HP SR number 8606223364.
19940 if test "$cross_compiling" = yes; then
19941 # Depending upon the size, compute the lo and hi bounds.
19942 cat >conftest.$ac_ext <<_ACEOF
19943 /* confdefs.h. */
19944 _ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h. */
19948 $ac_includes_default
19949 int
19950 main ()
19951 {
19952 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19953 test_array [0] = 0
19954
19955 ;
19956 return 0;
19957 }
19958 _ACEOF
19959 rm -f conftest.$ac_objext
19960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19961 (eval $ac_compile) 2>conftest.er1
19962 ac_status=$?
19963 grep -v '^ *+' conftest.er1 >conftest.err
19964 rm -f conftest.er1
19965 cat conftest.err >&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); } &&
19968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19970 (eval $ac_try) 2>&5
19971 ac_status=$?
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; } &&
19974 { ac_try='test -s conftest.$ac_objext'
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; }; then
19980 ac_lo=0 ac_mid=0
19981 while :; do
19982 cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h. */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 $ac_includes_default
19989 int
19990 main ()
19991 {
19992 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19993 test_array [0] = 0
19994
19995 ;
19996 return 0;
19997 }
19998 _ACEOF
19999 rm -f conftest.$ac_objext
20000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20001 (eval $ac_compile) 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
20008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest.$ac_objext'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_hi=$ac_mid; break
20021 else
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025 ac_lo=`expr $ac_mid + 1`
20026 if test $ac_lo -le $ac_mid; then
20027 ac_lo= ac_hi=
20028 break
20029 fi
20030 ac_mid=`expr 2 '*' $ac_mid + 1`
20031 fi
20032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20033 done
20034 else
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20037
20038 cat >conftest.$ac_ext <<_ACEOF
20039 /* confdefs.h. */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20044 $ac_includes_default
20045 int
20046 main ()
20047 {
20048 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20049 test_array [0] = 0
20050
20051 ;
20052 return 0;
20053 }
20054 _ACEOF
20055 rm -f conftest.$ac_objext
20056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20057 (eval $ac_compile) 2>conftest.er1
20058 ac_status=$?
20059 grep -v '^ *+' conftest.er1 >conftest.err
20060 rm -f conftest.er1
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } &&
20064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066 (eval $ac_try) 2>&5
20067 ac_status=$?
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; } &&
20070 { ac_try='test -s conftest.$ac_objext'
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; }; then
20076 ac_hi=-1 ac_mid=-1
20077 while :; do
20078 cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h. */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20084 $ac_includes_default
20085 int
20086 main ()
20087 {
20088 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20089 test_array [0] = 0
20090
20091 ;
20092 return 0;
20093 }
20094 _ACEOF
20095 rm -f conftest.$ac_objext
20096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20097 (eval $ac_compile) 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } &&
20104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; } &&
20110 { ac_try='test -s conftest.$ac_objext'
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 ac_lo=$ac_mid; break
20117 else
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20120
20121 ac_hi=`expr '(' $ac_mid ')' - 1`
20122 if test $ac_mid -le $ac_hi; then
20123 ac_lo= ac_hi=
20124 break
20125 fi
20126 ac_mid=`expr 2 '*' $ac_mid`
20127 fi
20128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20129 done
20130 else
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20133
20134 ac_lo= ac_hi=
20135 fi
20136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20137 fi
20138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20139 # Binary search between lo and hi bounds.
20140 while test "x$ac_lo" != "x$ac_hi"; do
20141 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 $ac_includes_default
20149 int
20150 main ()
20151 {
20152 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20153 test_array [0] = 0
20154
20155 ;
20156 return 0;
20157 }
20158 _ACEOF
20159 rm -f conftest.$ac_objext
20160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20161 (eval $ac_compile) 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } &&
20168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; } &&
20174 { ac_try='test -s conftest.$ac_objext'
20175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176 (eval $ac_try) 2>&5
20177 ac_status=$?
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); }; }; then
20180 ac_hi=$ac_mid
20181 else
20182 echo "$as_me: failed program was:" >&5
20183 sed 's/^/| /' conftest.$ac_ext >&5
20184
20185 ac_lo=`expr '(' $ac_mid ')' + 1`
20186 fi
20187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20188 done
20189 case $ac_lo in
20190 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20191 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20192 See \`config.log' for more details." >&5
20193 echo "$as_me: error: cannot compute sizeof (long long), 77
20194 See \`config.log' for more details." >&2;}
20195 { (exit 1); exit 1; }; } ;;
20196 esac
20197 else
20198 if test "$cross_compiling" = yes; then
20199 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20200 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20201 { (exit 1); exit 1; }; }
20202 else
20203 cat >conftest.$ac_ext <<_ACEOF
20204 /* confdefs.h. */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20209 $ac_includes_default
20210 long longval () { return (long) (sizeof (long long)); }
20211 unsigned long ulongval () { return (long) (sizeof (long long)); }
20212 #include <stdio.h>
20213 #include <stdlib.h>
20214 int
20215 main ()
20216 {
20217
20218 FILE *f = fopen ("conftest.val", "w");
20219 if (! f)
20220 exit (1);
20221 if (((long) (sizeof (long long))) < 0)
20222 {
20223 long i = longval ();
20224 if (i != ((long) (sizeof (long long))))
20225 exit (1);
20226 fprintf (f, "%ld\n", i);
20227 }
20228 else
20229 {
20230 unsigned long i = ulongval ();
20231 if (i != ((long) (sizeof (long long))))
20232 exit (1);
20233 fprintf (f, "%lu\n", i);
20234 }
20235 exit (ferror (f) || fclose (f) != 0);
20236
20237 ;
20238 return 0;
20239 }
20240 _ACEOF
20241 rm -f conftest$ac_exeext
20242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20243 (eval $ac_link) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 ac_cv_sizeof_long_long=`cat conftest.val`
20253 else
20254 echo "$as_me: program exited with status $ac_status" >&5
20255 echo "$as_me: failed program was:" >&5
20256 sed 's/^/| /' conftest.$ac_ext >&5
20257
20258 ( exit $ac_status )
20259 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20260 See \`config.log' for more details." >&5
20261 echo "$as_me: error: cannot compute sizeof (long long), 77
20262 See \`config.log' for more details." >&2;}
20263 { (exit 1); exit 1; }; }
20264 fi
20265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20266 fi
20267 fi
20268 rm -f conftest.val
20269 else
20270 ac_cv_sizeof_long_long=0
20271 fi
20272 fi
20273 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20274 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20275 cat >>confdefs.h <<_ACEOF
20276 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20277 _ACEOF
20278
20279
20280 esac
20281
20282 echo "$as_me:$LINENO: checking for wchar_t" >&5
20283 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20284 if test "${ac_cv_type_wchar_t+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20286 else
20287 cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h. */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293
20294 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20295 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20296 # error "fake wchar_t"
20297 #endif
20298 #ifdef HAVE_WCHAR_H
20299 # ifdef __CYGWIN__
20300 # include <stddef.h>
20301 # endif
20302 # include <wchar.h>
20303 #endif
20304 #ifdef HAVE_STDLIB_H
20305 # include <stdlib.h>
20306 #endif
20307 #include <stdio.h>
20308
20309
20310
20311 int
20312 main ()
20313 {
20314 if ((wchar_t *) 0)
20315 return 0;
20316 if (sizeof (wchar_t))
20317 return 0;
20318 ;
20319 return 0;
20320 }
20321 _ACEOF
20322 rm -f conftest.$ac_objext
20323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20324 (eval $ac_compile) 2>conftest.er1
20325 ac_status=$?
20326 grep -v '^ *+' conftest.er1 >conftest.err
20327 rm -f conftest.er1
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } &&
20331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; } &&
20337 { ac_try='test -s conftest.$ac_objext'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; }; then
20343 ac_cv_type_wchar_t=yes
20344 else
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348 ac_cv_type_wchar_t=no
20349 fi
20350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20351 fi
20352 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20353 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20354
20355 echo "$as_me:$LINENO: checking size of wchar_t" >&5
20356 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
20357 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20358 echo $ECHO_N "(cached) $ECHO_C" >&6
20359 else
20360 if test "$ac_cv_type_wchar_t" = yes; then
20361 # The cast to unsigned long works around a bug in the HP C Compiler
20362 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20363 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20364 # This bug is HP SR number 8606223364.
20365 if test "$cross_compiling" = yes; then
20366 # Depending upon the size, compute the lo and hi bounds.
20367 cat >conftest.$ac_ext <<_ACEOF
20368 /* confdefs.h. */
20369 _ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373
20374 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20375 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20376 # error "fake wchar_t"
20377 #endif
20378 #ifdef HAVE_WCHAR_H
20379 # ifdef __CYGWIN__
20380 # include <stddef.h>
20381 # endif
20382 # include <wchar.h>
20383 #endif
20384 #ifdef HAVE_STDLIB_H
20385 # include <stdlib.h>
20386 #endif
20387 #include <stdio.h>
20388
20389
20390
20391 int
20392 main ()
20393 {
20394 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20395 test_array [0] = 0
20396
20397 ;
20398 return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403 (eval $ac_compile) 2>conftest.er1
20404 ac_status=$?
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; } &&
20416 { ac_try='test -s conftest.$ac_objext'
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }; then
20422 ac_lo=0 ac_mid=0
20423 while :; do
20424 cat >conftest.$ac_ext <<_ACEOF
20425 /* confdefs.h. */
20426 _ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h. */
20430
20431 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20432 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20433 # error "fake wchar_t"
20434 #endif
20435 #ifdef HAVE_WCHAR_H
20436 # ifdef __CYGWIN__
20437 # include <stddef.h>
20438 # endif
20439 # include <wchar.h>
20440 #endif
20441 #ifdef HAVE_STDLIB_H
20442 # include <stdlib.h>
20443 #endif
20444 #include <stdio.h>
20445
20446
20447
20448 int
20449 main ()
20450 {
20451 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20452 test_array [0] = 0
20453
20454 ;
20455 return 0;
20456 }
20457 _ACEOF
20458 rm -f conftest.$ac_objext
20459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20460 (eval $ac_compile) 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
20467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469 (eval $ac_try) 2>&5
20470 ac_status=$?
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); }; } &&
20473 { ac_try='test -s conftest.$ac_objext'
20474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; }; then
20479 ac_hi=$ac_mid; break
20480 else
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20483
20484 ac_lo=`expr $ac_mid + 1`
20485 if test $ac_lo -le $ac_mid; then
20486 ac_lo= ac_hi=
20487 break
20488 fi
20489 ac_mid=`expr 2 '*' $ac_mid + 1`
20490 fi
20491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20492 done
20493 else
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 cat >conftest.$ac_ext <<_ACEOF
20498 /* confdefs.h. */
20499 _ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20503
20504 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20505 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20506 # error "fake wchar_t"
20507 #endif
20508 #ifdef HAVE_WCHAR_H
20509 # ifdef __CYGWIN__
20510 # include <stddef.h>
20511 # endif
20512 # include <wchar.h>
20513 #endif
20514 #ifdef HAVE_STDLIB_H
20515 # include <stdlib.h>
20516 #endif
20517 #include <stdio.h>
20518
20519
20520
20521 int
20522 main ()
20523 {
20524 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20525 test_array [0] = 0
20526
20527 ;
20528 return 0;
20529 }
20530 _ACEOF
20531 rm -f conftest.$ac_objext
20532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20533 (eval $ac_compile) 2>conftest.er1
20534 ac_status=$?
20535 grep -v '^ *+' conftest.er1 >conftest.err
20536 rm -f conftest.er1
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } &&
20540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20543 ac_status=$?
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; } &&
20546 { ac_try='test -s conftest.$ac_objext'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20549 ac_status=$?
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; }; then
20552 ac_hi=-1 ac_mid=-1
20553 while :; do
20554 cat >conftest.$ac_ext <<_ACEOF
20555 /* confdefs.h. */
20556 _ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20560
20561 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20562 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20563 # error "fake wchar_t"
20564 #endif
20565 #ifdef HAVE_WCHAR_H
20566 # ifdef __CYGWIN__
20567 # include <stddef.h>
20568 # endif
20569 # include <wchar.h>
20570 #endif
20571 #ifdef HAVE_STDLIB_H
20572 # include <stdlib.h>
20573 #endif
20574 #include <stdio.h>
20575
20576
20577
20578 int
20579 main ()
20580 {
20581 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20582 test_array [0] = 0
20583
20584 ;
20585 return 0;
20586 }
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20590 (eval $ac_compile) 2>conftest.er1
20591 ac_status=$?
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
20597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20603 { ac_try='test -s conftest.$ac_objext'
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20606 ac_status=$?
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; }; then
20609 ac_lo=$ac_mid; break
20610 else
20611 echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20613
20614 ac_hi=`expr '(' $ac_mid ')' - 1`
20615 if test $ac_mid -le $ac_hi; then
20616 ac_lo= ac_hi=
20617 break
20618 fi
20619 ac_mid=`expr 2 '*' $ac_mid`
20620 fi
20621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20622 done
20623 else
20624 echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20626
20627 ac_lo= ac_hi=
20628 fi
20629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20630 fi
20631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20632 # Binary search between lo and hi bounds.
20633 while test "x$ac_lo" != "x$ac_hi"; do
20634 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20635 cat >conftest.$ac_ext <<_ACEOF
20636 /* confdefs.h. */
20637 _ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h. */
20641
20642 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20643 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20644 # error "fake wchar_t"
20645 #endif
20646 #ifdef HAVE_WCHAR_H
20647 # ifdef __CYGWIN__
20648 # include <stddef.h>
20649 # endif
20650 # include <wchar.h>
20651 #endif
20652 #ifdef HAVE_STDLIB_H
20653 # include <stdlib.h>
20654 #endif
20655 #include <stdio.h>
20656
20657
20658
20659 int
20660 main ()
20661 {
20662 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20663 test_array [0] = 0
20664
20665 ;
20666 return 0;
20667 }
20668 _ACEOF
20669 rm -f conftest.$ac_objext
20670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20671 (eval $ac_compile) 2>conftest.er1
20672 ac_status=$?
20673 grep -v '^ *+' conftest.er1 >conftest.err
20674 rm -f conftest.er1
20675 cat conftest.err >&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } &&
20678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20681 ac_status=$?
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; } &&
20684 { ac_try='test -s conftest.$ac_objext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 ac_hi=$ac_mid
20691 else
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695 ac_lo=`expr '(' $ac_mid ')' + 1`
20696 fi
20697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20698 done
20699 case $ac_lo in
20700 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20701 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20702 See \`config.log' for more details." >&5
20703 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20704 See \`config.log' for more details." >&2;}
20705 { (exit 1); exit 1; }; } ;;
20706 esac
20707 else
20708 if test "$cross_compiling" = yes; then
20709 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20710 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20711 { (exit 1); exit 1; }; }
20712 else
20713 cat >conftest.$ac_ext <<_ACEOF
20714 /* confdefs.h. */
20715 _ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h. */
20719
20720 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20721 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20722 # error "fake wchar_t"
20723 #endif
20724 #ifdef HAVE_WCHAR_H
20725 # ifdef __CYGWIN__
20726 # include <stddef.h>
20727 # endif
20728 # include <wchar.h>
20729 #endif
20730 #ifdef HAVE_STDLIB_H
20731 # include <stdlib.h>
20732 #endif
20733 #include <stdio.h>
20734
20735
20736
20737 long longval () { return (long) (sizeof (wchar_t)); }
20738 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20739 #include <stdio.h>
20740 #include <stdlib.h>
20741 int
20742 main ()
20743 {
20744
20745 FILE *f = fopen ("conftest.val", "w");
20746 if (! f)
20747 exit (1);
20748 if (((long) (sizeof (wchar_t))) < 0)
20749 {
20750 long i = longval ();
20751 if (i != ((long) (sizeof (wchar_t))))
20752 exit (1);
20753 fprintf (f, "%ld\n", i);
20754 }
20755 else
20756 {
20757 unsigned long i = ulongval ();
20758 if (i != ((long) (sizeof (wchar_t))))
20759 exit (1);
20760 fprintf (f, "%lu\n", i);
20761 }
20762 exit (ferror (f) || fclose (f) != 0);
20763
20764 ;
20765 return 0;
20766 }
20767 _ACEOF
20768 rm -f conftest$ac_exeext
20769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20770 (eval $ac_link) 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 ac_cv_sizeof_wchar_t=`cat conftest.val`
20780 else
20781 echo "$as_me: program exited with status $ac_status" >&5
20782 echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20784
20785 ( exit $ac_status )
20786 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20787 See \`config.log' for more details." >&5
20788 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20789 See \`config.log' for more details." >&2;}
20790 { (exit 1); exit 1; }; }
20791 fi
20792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20793 fi
20794 fi
20795 rm -f conftest.val
20796 else
20797 ac_cv_sizeof_wchar_t=0
20798 fi
20799 fi
20800 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20801 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20802 cat >>confdefs.h <<_ACEOF
20803 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20804 _ACEOF
20805
20806
20807 if test "$ac_cv_sizeof_wchar_t" != "0"; then
20808 wxUSE_WCHAR_T=yes
20809 else
20810 wxUSE_WCHAR_T=no
20811 fi
20812
20813 echo "$as_me:$LINENO: checking for va_copy" >&5
20814 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20815 if test "${wx_cv_func_va_copy+set}" = set; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20817 else
20818
20819 cat >conftest.$ac_ext <<_ACEOF
20820
20821 #include <stdarg.h>
20822 void foo(char *f, ...)
20823 {
20824 va_list ap1, ap2;
20825 va_start(ap1, f);
20826 va_copy(ap2, ap1);
20827 va_end(ap2);
20828 va_end(ap1);
20829 }
20830 int main()
20831 {
20832 foo("hi", 17);
20833 return 0;
20834 }
20835 _ACEOF
20836 rm -f conftest.$ac_objext conftest$ac_exeext
20837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20838 (eval $ac_link) 2>conftest.er1
20839 ac_status=$?
20840 grep -v '^ *+' conftest.er1 >conftest.err
20841 rm -f conftest.er1
20842 cat conftest.err >&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } &&
20845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20848 ac_status=$?
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; } &&
20851 { ac_try='test -s conftest$ac_exeext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 wx_cv_func_va_copy=yes
20858 else
20859 echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20861
20862 wx_cv_func_va_copy=no
20863
20864 fi
20865 rm -f conftest.err conftest.$ac_objext \
20866 conftest$ac_exeext conftest.$ac_ext
20867
20868
20869 fi
20870 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20871 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20872
20873 if test $wx_cv_func_va_copy = "yes"; then
20874 cat >>confdefs.h <<\_ACEOF
20875 #define HAVE_VA_COPY 1
20876 _ACEOF
20877
20878 else
20879 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20880 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20881 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20882 echo $ECHO_N "(cached) $ECHO_C" >&6
20883 else
20884
20885 if test "$cross_compiling" = yes; then
20886 wx_cv_type_va_list_lvalue=yes
20887
20888 else
20889 cat >conftest.$ac_ext <<_ACEOF
20890
20891 #include <stdarg.h>
20892 int foo(char *f, ...)
20893 {
20894 va_list ap1, ap2;
20895 va_start(ap1, f);
20896 ap2 = ap1;
20897 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20898 return 1;
20899 va_end(ap2);
20900 va_end(ap1);
20901 return 0;
20902 }
20903 int main()
20904 {
20905 return foo("hi", 17);
20906 }
20907 _ACEOF
20908 rm -f conftest$ac_exeext
20909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20910 (eval $ac_link) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915 (eval $ac_try) 2>&5
20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 wx_cv_type_va_list_lvalue=yes
20920 else
20921 echo "$as_me: program exited with status $ac_status" >&5
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20924
20925 ( exit $ac_status )
20926 wx_cv_type_va_list_lvalue=no
20927 fi
20928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20929 fi
20930
20931
20932 fi
20933 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20934 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20935
20936 if test $wx_cv_type_va_list_lvalue != "yes"; then
20937 cat >>confdefs.h <<\_ACEOF
20938 #define VA_LIST_IS_ARRAY 1
20939 _ACEOF
20940
20941 fi
20942 fi
20943
20944 # Check whether --enable-largefile or --disable-largefile was given.
20945 if test "${enable_largefile+set}" = set; then
20946 enableval="$enable_largefile"
20947
20948 fi;
20949 if test "$enable_largefile" != no; then
20950 wx_largefile=no
20951
20952 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20953 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20954 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 else
20957
20958 cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h. */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 #define _FILE_OFFSET_BITS 64
20965 #include <sys/types.h>
20966 int
20967 main ()
20968 {
20969 typedef struct {
20970 unsigned int field: sizeof(off_t) == 8;
20971 } wxlf;
20972
20973 ;
20974 return 0;
20975 }
20976 _ACEOF
20977 rm -f conftest.$ac_objext
20978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20979 (eval $ac_compile) 2>conftest.er1
20980 ac_status=$?
20981 grep -v '^ *+' conftest.er1 >conftest.err
20982 rm -f conftest.er1
20983 cat conftest.err >&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); } &&
20986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20988 (eval $ac_try) 2>&5
20989 ac_status=$?
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); }; } &&
20992 { ac_try='test -s conftest.$ac_objext'
20993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20994 (eval $ac_try) 2>&5
20995 ac_status=$?
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); }; }; then
20998 ac_cv_sys_file_offset_bits=64
20999 else
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003 ac_cv_sys_file_offset_bits=no
21004 fi
21005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21006
21007
21008 fi
21009 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21010 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21011
21012 if test "$ac_cv_sys_file_offset_bits" != no; then
21013 wx_largefile=yes
21014 cat >>confdefs.h <<_ACEOF
21015 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21016 _ACEOF
21017
21018 fi
21019
21020 if test "x$wx_largefile" != "xyes"; then
21021
21022 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21023 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21024 if test "${ac_cv_sys_large_files+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21026 else
21027
21028 cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h. */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21034 #define _LARGE_FILES 1
21035 #include <sys/types.h>
21036 int
21037 main ()
21038 {
21039 typedef struct {
21040 unsigned int field: sizeof(off_t) == 8;
21041 } wxlf;
21042
21043 ;
21044 return 0;
21045 }
21046 _ACEOF
21047 rm -f conftest.$ac_objext
21048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21049 (eval $ac_compile) 2>conftest.er1
21050 ac_status=$?
21051 grep -v '^ *+' conftest.er1 >conftest.err
21052 rm -f conftest.er1
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } &&
21056 { ac_try='test -z "$ac_c_werror_flag" || 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_objext'
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_sys_large_files=1
21069 else
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21072
21073 ac_cv_sys_large_files=no
21074 fi
21075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21076
21077
21078 fi
21079 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21080 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21081
21082 if test "$ac_cv_sys_large_files" != no; then
21083 wx_largefile=yes
21084 cat >>confdefs.h <<_ACEOF
21085 #define _LARGE_FILES $ac_cv_sys_large_files
21086 _ACEOF
21087
21088 fi
21089
21090 fi
21091
21092 echo "$as_me:$LINENO: checking if large file support is available" >&5
21093 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21094 if test "x$wx_largefile" = "xyes"; then
21095 cat >>confdefs.h <<\_ACEOF
21096 #define HAVE_LARGEFILE_SUPPORT 1
21097 _ACEOF
21098
21099 fi
21100 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21101 echo "${ECHO_T}$wx_largefile" >&6
21102 fi
21103
21104
21105 if test "x$wx_largefile" = "xyes"; then
21106 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
21107 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
21108
21109 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21110 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21111 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21112 if test "${wx_cv_STDC_EXT_required+set}" = set; then
21113 echo $ECHO_N "(cached) $ECHO_C" >&6
21114 else
21115
21116
21117
21118 ac_ext=cc
21119 ac_cpp='$CXXCPP $CPPFLAGS'
21120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21123
21124 cat >conftest.$ac_ext <<_ACEOF
21125 /* confdefs.h. */
21126 _ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h. */
21130
21131 int
21132 main ()
21133 {
21134
21135 #ifndef __STDC_EXT__
21136 choke me
21137 #endif
21138
21139 ;
21140 return 0;
21141 }
21142 _ACEOF
21143 rm -f conftest.$ac_objext
21144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21145 (eval $ac_compile) 2>conftest.er1
21146 ac_status=$?
21147 grep -v '^ *+' conftest.er1 >conftest.err
21148 rm -f conftest.er1
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } &&
21152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154 (eval $ac_try) 2>&5
21155 ac_status=$?
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; } &&
21158 { ac_try='test -s conftest.$ac_objext'
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21161 ac_status=$?
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; }; then
21164 wx_cv_STDC_EXT_required=no
21165 else
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169 wx_cv_STDC_EXT_required=yes
21170
21171 fi
21172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21173 ac_ext=c
21174 ac_cpp='$CPP $CPPFLAGS'
21175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21178
21179
21180
21181 fi
21182 echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21183 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21184 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
21185 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
21186 fi
21187 fi
21188 else
21189 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
21190 fi
21191 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21192 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21193 if test "${ac_cv_sys_largefile_source+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196 while :; do
21197 ac_cv_sys_largefile_source=no
21198 cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h. */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21204 #include <stdio.h>
21205 int
21206 main ()
21207 {
21208 return !fseeko;
21209 ;
21210 return 0;
21211 }
21212 _ACEOF
21213 rm -f conftest.$ac_objext
21214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21215 (eval $ac_compile) 2>conftest.er1
21216 ac_status=$?
21217 grep -v '^ *+' conftest.er1 >conftest.err
21218 rm -f conftest.er1
21219 cat conftest.err >&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } &&
21222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; } &&
21228 { ac_try='test -s conftest.$ac_objext'
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21234 break
21235 else
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239 fi
21240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21241 cat >conftest.$ac_ext <<_ACEOF
21242 /* confdefs.h. */
21243 _ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h. */
21247 #define _LARGEFILE_SOURCE 1
21248 #include <stdio.h>
21249 int
21250 main ()
21251 {
21252 return !fseeko;
21253 ;
21254 return 0;
21255 }
21256 _ACEOF
21257 rm -f conftest.$ac_objext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21259 (eval $ac_compile) 2>conftest.er1
21260 ac_status=$?
21261 grep -v '^ *+' conftest.er1 >conftest.err
21262 rm -f conftest.er1
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } &&
21266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest.$ac_objext'
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
21278 ac_cv_sys_largefile_source=1; break
21279 else
21280 echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21282
21283 fi
21284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21285 break
21286 done
21287 fi
21288 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21289 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21290 if test "$ac_cv_sys_largefile_source" != no; then
21291
21292 cat >>confdefs.h <<_ACEOF
21293 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21294 _ACEOF
21295
21296 fi
21297 rm -f conftest*
21298
21299 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21300 # in glibc 2.1.3, but that breaks too many other things.
21301 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21302 echo "$as_me:$LINENO: checking for fseeko" >&5
21303 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21304 if test "${ac_cv_func_fseeko+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21306 else
21307 cat >conftest.$ac_ext <<_ACEOF
21308 /* confdefs.h. */
21309 _ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21313 #include <stdio.h>
21314 int
21315 main ()
21316 {
21317 return fseeko && fseeko (stdin, 0, 0);
21318 ;
21319 return 0;
21320 }
21321 _ACEOF
21322 rm -f conftest.$ac_objext conftest$ac_exeext
21323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21324 (eval $ac_link) 2>conftest.er1
21325 ac_status=$?
21326 grep -v '^ *+' conftest.er1 >conftest.err
21327 rm -f conftest.er1
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
21331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; } &&
21337 { ac_try='test -s conftest$ac_exeext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 ac_cv_func_fseeko=yes
21344 else
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21347
21348 ac_cv_func_fseeko=no
21349 fi
21350 rm -f conftest.err conftest.$ac_objext \
21351 conftest$ac_exeext conftest.$ac_ext
21352 fi
21353 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21354 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21355 if test $ac_cv_func_fseeko = yes; then
21356
21357 cat >>confdefs.h <<\_ACEOF
21358 #define HAVE_FSEEKO 1
21359 _ACEOF
21360
21361 fi
21362
21363 if test "$ac_cv_sys_largefile_source" != no; then
21364 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
21365 fi
21366 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
21367 fi
21368
21369 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21370 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21371 if test "${ac_cv_c_bigendian+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 else
21374 ac_cv_c_bigendian=unknown
21375 # See if sys/param.h defines the BYTE_ORDER macro.
21376 cat >conftest.$ac_ext <<_ACEOF
21377 /* confdefs.h. */
21378 _ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h. */
21382 #include <sys/types.h>
21383 #include <sys/param.h>
21384 int
21385 main ()
21386 {
21387
21388 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21389 bogus endian macros
21390 #endif
21391 ;
21392 return 0;
21393 }
21394 _ACEOF
21395 rm -f conftest.$ac_objext
21396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21397 (eval $ac_compile) 2>conftest.er1
21398 ac_status=$?
21399 grep -v '^ *+' conftest.er1 >conftest.err
21400 rm -f conftest.er1
21401 cat conftest.err >&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } &&
21404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406 (eval $ac_try) 2>&5
21407 ac_status=$?
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); }; } &&
21410 { ac_try='test -s conftest.$ac_objext'
21411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412 (eval $ac_try) 2>&5
21413 ac_status=$?
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; }; then
21416 # It does; now see whether it defined to BIG_ENDIAN or not.
21417 cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h. */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 #include <sys/types.h>
21424 #include <sys/param.h>
21425 int
21426 main ()
21427 {
21428
21429 #if BYTE_ORDER != BIG_ENDIAN
21430 not big endian
21431 #endif
21432 ;
21433 return 0;
21434 }
21435 _ACEOF
21436 rm -f conftest.$ac_objext
21437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21438 (eval $ac_compile) 2>conftest.er1
21439 ac_status=$?
21440 grep -v '^ *+' conftest.er1 >conftest.err
21441 rm -f conftest.er1
21442 cat conftest.err >&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } &&
21445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21448 ac_status=$?
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; } &&
21451 { ac_try='test -s conftest.$ac_objext'
21452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453 (eval $ac_try) 2>&5
21454 ac_status=$?
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; }; then
21457 ac_cv_c_bigendian=yes
21458 else
21459 echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21461
21462 ac_cv_c_bigendian=no
21463 fi
21464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21465 else
21466 echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469 fi
21470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21471 if test $ac_cv_c_bigendian = unknown; then
21472 if test "$cross_compiling" = yes; then
21473 ac_cv_c_bigendian=unknown
21474 else
21475 cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h. */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 main () {
21482 /* Are we little or big endian? From Harbison&Steele. */
21483 union
21484 {
21485 long l;
21486 char c[sizeof (long)];
21487 } u;
21488 u.l = 1;
21489 exit (u.c[sizeof (long) - 1] == 1);
21490 }
21491 _ACEOF
21492 rm -f conftest$ac_exeext
21493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21494 (eval $ac_link) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21500 ac_status=$?
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; }; then
21503 ac_cv_c_bigendian=no
21504 else
21505 echo "$as_me: program exited with status $ac_status" >&5
21506 echo "$as_me: failed program was:" >&5
21507 sed 's/^/| /' conftest.$ac_ext >&5
21508
21509 ( exit $ac_status )
21510 ac_cv_c_bigendian=yes
21511 fi
21512 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21513 fi
21514 fi
21515 fi
21516 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21517 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21518 if test $ac_cv_c_bigendian = unknown; then
21519 { 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
21520 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;}
21521 fi
21522 if test $ac_cv_c_bigendian = yes; then
21523 cat >>confdefs.h <<\_ACEOF
21524 #define WORDS_BIGENDIAN 1
21525 _ACEOF
21526
21527 fi
21528
21529
21530 ac_ext=cc
21531 ac_cpp='$CXXCPP $CPPFLAGS'
21532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21535 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21536 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21537 if test -z "$CXXCPP"; then
21538 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 else
21541 # Double quotes because CXXCPP needs to be expanded
21542 for CXXCPP in "$CXX -E" "/lib/cpp"
21543 do
21544 ac_preproc_ok=false
21545 for ac_cxx_preproc_warn_flag in '' yes
21546 do
21547 # Use a header file that comes with gcc, so configuring glibc
21548 # with a fresh cross-compiler works.
21549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21550 # <limits.h> exists even on freestanding compilers.
21551 # On the NeXT, cc -E runs the code through the compiler's parser,
21552 # not just through cpp. "Syntax error" is here to catch this case.
21553 cat >conftest.$ac_ext <<_ACEOF
21554 /* confdefs.h. */
21555 _ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 #ifdef __STDC__
21560 # include <limits.h>
21561 #else
21562 # include <assert.h>
21563 #endif
21564 Syntax error
21565 _ACEOF
21566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21568 ac_status=$?
21569 grep -v '^ *+' conftest.er1 >conftest.err
21570 rm -f conftest.er1
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } >/dev/null; then
21574 if test -s conftest.err; then
21575 ac_cpp_err=$ac_cxx_preproc_warn_flag
21576 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21577 else
21578 ac_cpp_err=
21579 fi
21580 else
21581 ac_cpp_err=yes
21582 fi
21583 if test -z "$ac_cpp_err"; then
21584 :
21585 else
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21588
21589 # Broken: fails on valid input.
21590 continue
21591 fi
21592 rm -f conftest.err conftest.$ac_ext
21593
21594 # OK, works on sane cases. Now check whether non-existent headers
21595 # can be detected and how.
21596 cat >conftest.$ac_ext <<_ACEOF
21597 /* confdefs.h. */
21598 _ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21602 #include <ac_nonexistent.h>
21603 _ACEOF
21604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21606 ac_status=$?
21607 grep -v '^ *+' conftest.er1 >conftest.err
21608 rm -f conftest.er1
21609 cat conftest.err >&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); } >/dev/null; then
21612 if test -s conftest.err; then
21613 ac_cpp_err=$ac_cxx_preproc_warn_flag
21614 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21615 else
21616 ac_cpp_err=
21617 fi
21618 else
21619 ac_cpp_err=yes
21620 fi
21621 if test -z "$ac_cpp_err"; then
21622 # Broken: success on invalid input.
21623 continue
21624 else
21625 echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21627
21628 # Passes both tests.
21629 ac_preproc_ok=:
21630 break
21631 fi
21632 rm -f conftest.err conftest.$ac_ext
21633
21634 done
21635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21636 rm -f conftest.err conftest.$ac_ext
21637 if $ac_preproc_ok; then
21638 break
21639 fi
21640
21641 done
21642 ac_cv_prog_CXXCPP=$CXXCPP
21643
21644 fi
21645 CXXCPP=$ac_cv_prog_CXXCPP
21646 else
21647 ac_cv_prog_CXXCPP=$CXXCPP
21648 fi
21649 echo "$as_me:$LINENO: result: $CXXCPP" >&5
21650 echo "${ECHO_T}$CXXCPP" >&6
21651 ac_preproc_ok=false
21652 for ac_cxx_preproc_warn_flag in '' yes
21653 do
21654 # Use a header file that comes with gcc, so configuring glibc
21655 # with a fresh cross-compiler works.
21656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21657 # <limits.h> exists even on freestanding compilers.
21658 # On the NeXT, cc -E runs the code through the compiler's parser,
21659 # not just through cpp. "Syntax error" is here to catch this case.
21660 cat >conftest.$ac_ext <<_ACEOF
21661 /* confdefs.h. */
21662 _ACEOF
21663 cat confdefs.h >>conftest.$ac_ext
21664 cat >>conftest.$ac_ext <<_ACEOF
21665 /* end confdefs.h. */
21666 #ifdef __STDC__
21667 # include <limits.h>
21668 #else
21669 # include <assert.h>
21670 #endif
21671 Syntax error
21672 _ACEOF
21673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21675 ac_status=$?
21676 grep -v '^ *+' conftest.er1 >conftest.err
21677 rm -f conftest.er1
21678 cat conftest.err >&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } >/dev/null; then
21681 if test -s conftest.err; then
21682 ac_cpp_err=$ac_cxx_preproc_warn_flag
21683 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21684 else
21685 ac_cpp_err=
21686 fi
21687 else
21688 ac_cpp_err=yes
21689 fi
21690 if test -z "$ac_cpp_err"; then
21691 :
21692 else
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696 # Broken: fails on valid input.
21697 continue
21698 fi
21699 rm -f conftest.err conftest.$ac_ext
21700
21701 # OK, works on sane cases. Now check whether non-existent headers
21702 # can be detected and how.
21703 cat >conftest.$ac_ext <<_ACEOF
21704 /* confdefs.h. */
21705 _ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h. */
21709 #include <ac_nonexistent.h>
21710 _ACEOF
21711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21713 ac_status=$?
21714 grep -v '^ *+' conftest.er1 >conftest.err
21715 rm -f conftest.er1
21716 cat conftest.err >&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } >/dev/null; then
21719 if test -s conftest.err; then
21720 ac_cpp_err=$ac_cxx_preproc_warn_flag
21721 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21722 else
21723 ac_cpp_err=
21724 fi
21725 else
21726 ac_cpp_err=yes
21727 fi
21728 if test -z "$ac_cpp_err"; then
21729 # Broken: success on invalid input.
21730 continue
21731 else
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21734
21735 # Passes both tests.
21736 ac_preproc_ok=:
21737 break
21738 fi
21739 rm -f conftest.err conftest.$ac_ext
21740
21741 done
21742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21743 rm -f conftest.err conftest.$ac_ext
21744 if $ac_preproc_ok; then
21745 :
21746 else
21747 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21748 See \`config.log' for more details." >&5
21749 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21750 See \`config.log' for more details." >&2;}
21751 { (exit 1); exit 1; }; }
21752 fi
21753
21754 ac_ext=cc
21755 ac_cpp='$CXXCPP $CPPFLAGS'
21756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21759
21760
21761
21762
21763
21764 ac_ext=cc
21765 ac_cpp='$CXXCPP $CPPFLAGS'
21766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21769
21770
21771
21772 for ac_header in iostream
21773 do
21774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21776 echo "$as_me:$LINENO: checking for $ac_header" >&5
21777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21780 fi
21781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21783 else
21784 # Is the header compilable?
21785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21787 cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h. */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21793 $ac_includes_default
21794 #include <$ac_header>
21795 _ACEOF
21796 rm -f conftest.$ac_objext
21797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21798 (eval $ac_compile) 2>conftest.er1
21799 ac_status=$?
21800 grep -v '^ *+' conftest.er1 >conftest.err
21801 rm -f conftest.er1
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } &&
21805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; } &&
21811 { ac_try='test -s conftest.$ac_objext'
21812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813 (eval $ac_try) 2>&5
21814 ac_status=$?
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21817 ac_header_compiler=yes
21818 else
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21821
21822 ac_header_compiler=no
21823 fi
21824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21826 echo "${ECHO_T}$ac_header_compiler" >&6
21827
21828 # Is the header present?
21829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21831 cat >conftest.$ac_ext <<_ACEOF
21832 /* confdefs.h. */
21833 _ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21837 #include <$ac_header>
21838 _ACEOF
21839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21841 ac_status=$?
21842 grep -v '^ *+' conftest.er1 >conftest.err
21843 rm -f conftest.er1
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } >/dev/null; then
21847 if test -s conftest.err; then
21848 ac_cpp_err=$ac_cxx_preproc_warn_flag
21849 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21850 else
21851 ac_cpp_err=
21852 fi
21853 else
21854 ac_cpp_err=yes
21855 fi
21856 if test -z "$ac_cpp_err"; then
21857 ac_header_preproc=yes
21858 else
21859 echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21861
21862 ac_header_preproc=no
21863 fi
21864 rm -f conftest.err conftest.$ac_ext
21865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21866 echo "${ECHO_T}$ac_header_preproc" >&6
21867
21868 # So? What about this header?
21869 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21870 yes:no: )
21871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21875 ac_header_preproc=yes
21876 ;;
21877 no:yes:* )
21878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21890 (
21891 cat <<\_ASBOX
21892 ## ----------------------------------------- ##
21893 ## Report this to wx-dev@lists.wxwidgets.org ##
21894 ## ----------------------------------------- ##
21895 _ASBOX
21896 ) |
21897 sed "s/^/$as_me: WARNING: /" >&2
21898 ;;
21899 esac
21900 echo "$as_me:$LINENO: checking for $ac_header" >&5
21901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 else
21905 eval "$as_ac_Header=\$ac_header_preproc"
21906 fi
21907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21909
21910 fi
21911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21912 cat >>confdefs.h <<_ACEOF
21913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21914 _ACEOF
21915
21916 fi
21917
21918 done
21919
21920
21921 if test "$ac_cv_header_iostream" = "yes" ; then
21922 :
21923 else
21924 cat >>confdefs.h <<\_ACEOF
21925 #define wxUSE_IOSTREAMH 1
21926 _ACEOF
21927
21928 fi
21929
21930 ac_ext=c
21931 ac_cpp='$CPP $CPPFLAGS'
21932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21935
21936
21937
21938
21939 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21940 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21941 if test "${wx_cv_cpp_bool+set}" = set; then
21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21943 else
21944
21945
21946
21947 ac_ext=cc
21948 ac_cpp='$CXXCPP $CPPFLAGS'
21949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21952
21953
21954 cat >conftest.$ac_ext <<_ACEOF
21955 /* confdefs.h. */
21956 _ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21960
21961
21962 int
21963 main ()
21964 {
21965
21966 bool b = true;
21967
21968 return 0;
21969
21970 ;
21971 return 0;
21972 }
21973 _ACEOF
21974 rm -f conftest.$ac_objext
21975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21976 (eval $ac_compile) 2>conftest.er1
21977 ac_status=$?
21978 grep -v '^ *+' conftest.er1 >conftest.err
21979 rm -f conftest.er1
21980 cat conftest.err >&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } &&
21983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21986 ac_status=$?
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; } &&
21989 { ac_try='test -s conftest.$ac_objext'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21995
21996 wx_cv_cpp_bool=yes
21997
21998 else
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002
22003 wx_cv_cpp_bool=no
22004
22005
22006 fi
22007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22008
22009 ac_ext=c
22010 ac_cpp='$CPP $CPPFLAGS'
22011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22014
22015
22016 fi
22017 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22018 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22019
22020 if test "$wx_cv_cpp_bool" = "yes"; then
22021 cat >>confdefs.h <<\_ACEOF
22022 #define HAVE_BOOL 1
22023 _ACEOF
22024
22025 fi
22026
22027
22028
22029 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22030 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22031 if test "${wx_cv_explicit+set}" = set; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22033 else
22034
22035
22036
22037 ac_ext=cc
22038 ac_cpp='$CXXCPP $CPPFLAGS'
22039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22042
22043
22044 cat >conftest.$ac_ext <<_ACEOF
22045 /* confdefs.h. */
22046 _ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22050
22051 class Foo { public: explicit Foo(int) {} };
22052
22053 int
22054 main ()
22055 {
22056
22057 return 0;
22058
22059 ;
22060 return 0;
22061 }
22062 _ACEOF
22063 rm -f conftest.$ac_objext
22064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22065 (eval $ac_compile) 2>conftest.er1
22066 ac_status=$?
22067 grep -v '^ *+' conftest.er1 >conftest.err
22068 rm -f conftest.er1
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); } &&
22072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22074 (eval $ac_try) 2>&5
22075 ac_status=$?
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); }; } &&
22078 { ac_try='test -s conftest.$ac_objext'
22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22081 ac_status=$?
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; }; then
22084
22085 cat >conftest.$ac_ext <<_ACEOF
22086 /* confdefs.h. */
22087 _ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h. */
22091
22092 class Foo { public: explicit Foo(int) {} };
22093 static void TakeFoo(const Foo& foo) { }
22094
22095 int
22096 main ()
22097 {
22098
22099 TakeFoo(17);
22100 return 0;
22101
22102 ;
22103 return 0;
22104 }
22105 _ACEOF
22106 rm -f conftest.$ac_objext
22107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22108 (eval $ac_compile) 2>conftest.er1
22109 ac_status=$?
22110 grep -v '^ *+' conftest.er1 >conftest.err
22111 rm -f conftest.er1
22112 cat conftest.err >&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } &&
22115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; } &&
22121 { ac_try='test -s conftest.$ac_objext'
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 wx_cv_explicit=no
22128 else
22129 echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22131
22132 wx_cv_explicit=yes
22133
22134 fi
22135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22136
22137 else
22138 echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.$ac_ext >&5
22140
22141 wx_cv_explicit=no
22142
22143 fi
22144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22145
22146 ac_ext=c
22147 ac_cpp='$CPP $CPPFLAGS'
22148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22151
22152
22153 fi
22154 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22155 echo "${ECHO_T}$wx_cv_explicit" >&6
22156
22157 if test "$wx_cv_explicit" = "yes"; then
22158 cat >>confdefs.h <<\_ACEOF
22159 #define HAVE_EXPLICIT 1
22160 _ACEOF
22161
22162 fi
22163
22164
22165 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22166 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22167 if test "${ac_cv_cxx_const_cast+set}" = set; then
22168 echo $ECHO_N "(cached) $ECHO_C" >&6
22169 else
22170
22171
22172 ac_ext=cc
22173 ac_cpp='$CXXCPP $CPPFLAGS'
22174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22177
22178 cat >conftest.$ac_ext <<_ACEOF
22179 /* confdefs.h. */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22184
22185 int
22186 main ()
22187 {
22188 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22189 ;
22190 return 0;
22191 }
22192 _ACEOF
22193 rm -f conftest.$ac_objext
22194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22195 (eval $ac_compile) 2>conftest.er1
22196 ac_status=$?
22197 grep -v '^ *+' conftest.er1 >conftest.err
22198 rm -f conftest.er1
22199 cat conftest.err >&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } &&
22202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204 (eval $ac_try) 2>&5
22205 ac_status=$?
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; } &&
22208 { ac_try='test -s conftest.$ac_objext'
22209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210 (eval $ac_try) 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; }; then
22214 ac_cv_cxx_const_cast=yes
22215 else
22216 echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22218
22219 ac_cv_cxx_const_cast=no
22220 fi
22221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22222 ac_ext=c
22223 ac_cpp='$CPP $CPPFLAGS'
22224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22227
22228
22229 fi
22230 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22231 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22232 if test "$ac_cv_cxx_const_cast" = yes; then
22233
22234 cat >>confdefs.h <<\_ACEOF
22235 #define HAVE_CONST_CAST
22236 _ACEOF
22237
22238 fi
22239
22240 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22241 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22242 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 else
22245
22246
22247 ac_ext=cc
22248 ac_cpp='$CXXCPP $CPPFLAGS'
22249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22252
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 #include <typeinfo>
22260 class Base { public : Base () {} virtual void f () = 0;};
22261 class Derived : public Base { public : Derived () {} virtual void f () {} };
22262 class Unrelated { public : Unrelated () {} };
22263 int g (Unrelated&) { return 0; }
22264 int
22265 main ()
22266 {
22267
22268 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22269 ;
22270 return 0;
22271 }
22272 _ACEOF
22273 rm -f conftest.$ac_objext
22274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22275 (eval $ac_compile) 2>conftest.er1
22276 ac_status=$?
22277 grep -v '^ *+' conftest.er1 >conftest.err
22278 rm -f conftest.er1
22279 cat conftest.err >&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } &&
22282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22285 ac_status=$?
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; } &&
22288 { ac_try='test -s conftest.$ac_objext'
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; }; then
22294 ac_cv_cxx_reinterpret_cast=yes
22295 else
22296 echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22298
22299 ac_cv_cxx_reinterpret_cast=no
22300 fi
22301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22302 ac_ext=c
22303 ac_cpp='$CPP $CPPFLAGS'
22304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22307
22308
22309 fi
22310 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22311 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22312 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22313
22314 cat >>confdefs.h <<\_ACEOF
22315 #define HAVE_REINTERPRET_CAST
22316 _ACEOF
22317
22318 fi
22319
22320 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22321 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22322 if test "${ac_cv_cxx_static_cast+set}" = set; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22324 else
22325
22326
22327 ac_ext=cc
22328 ac_cpp='$CXXCPP $CPPFLAGS'
22329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22332
22333 cat >conftest.$ac_ext <<_ACEOF
22334 /* confdefs.h. */
22335 _ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h. */
22339 #include <typeinfo>
22340 class Base { public : Base () {} virtual void f () = 0; };
22341 class Derived : public Base { public : Derived () {} virtual void f () {} };
22342 int g (Derived&) { return 0; }
22343 int
22344 main ()
22345 {
22346
22347 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22348 ;
22349 return 0;
22350 }
22351 _ACEOF
22352 rm -f conftest.$ac_objext
22353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22354 (eval $ac_compile) 2>conftest.er1
22355 ac_status=$?
22356 grep -v '^ *+' conftest.er1 >conftest.err
22357 rm -f conftest.er1
22358 cat conftest.err >&5
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } &&
22361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; } &&
22367 { ac_try='test -s conftest.$ac_objext'
22368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22369 (eval $ac_try) 2>&5
22370 ac_status=$?
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); }; }; then
22373 ac_cv_cxx_static_cast=yes
22374 else
22375 echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22377
22378 ac_cv_cxx_static_cast=no
22379 fi
22380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22381 ac_ext=c
22382 ac_cpp='$CPP $CPPFLAGS'
22383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22386
22387
22388 fi
22389 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22390 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22391 if test "$ac_cv_cxx_static_cast" = yes; then
22392
22393 cat >>confdefs.h <<\_ACEOF
22394 #define HAVE_STATIC_CAST
22395 _ACEOF
22396
22397 fi
22398
22399
22400 if test "x$SUNCXX" = xyes; then
22401 CXXFLAGS="$CXXFLAGS -features=tmplife"
22402 fi
22403
22404 if test "x$SUNCC" = xyes; then
22405 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
22406 fi
22407
22408 if test "x$SGICC" = "xyes"; then
22409 CFLAGS="$CFLAGS -woff 3970"
22410 fi
22411 if test "x$SGICXX" = "xyes"; then
22412 CXXFLAGS="$CXXFLAGS -woff 3970"
22413 fi
22414
22415 if test "x$HPCC" = "xyes"; then
22416 CFLAGS="$CFLAGS +W 2011,2450"
22417 fi
22418 if test "x$HPCXX" = "xyes"; then
22419 CXXFLAGS="$CXXFLAGS +W 2340"
22420 fi
22421
22422 if test "x$COMPAQCXX" = "xyes"; then
22423 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22424 fi
22425
22426 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
22427 ac_ext=cc
22428 ac_cpp='$CXXCPP $CPPFLAGS'
22429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22432
22433
22434 if test "$wxUSE_UNICODE" = "yes"; then
22435 std_string="std::wstring"
22436 char_type="wchar_t"
22437 else
22438 std_string="std::string"
22439 char_type="char"
22440 fi
22441
22442 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22443 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
22444 cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h. */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h. */
22450 #include <string>
22451 int
22452 main ()
22453 {
22454 $std_string foo;
22455 ;
22456 return 0;
22457 }
22458 _ACEOF
22459 rm -f conftest.$ac_objext
22460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22461 (eval $ac_compile) 2>conftest.er1
22462 ac_status=$?
22463 grep -v '^ *+' conftest.er1 >conftest.err
22464 rm -f conftest.er1
22465 cat conftest.err >&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } &&
22468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470 (eval $ac_try) 2>&5
22471 ac_status=$?
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); }; } &&
22474 { ac_try='test -s conftest.$ac_objext'
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22477 ac_status=$?
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; }; then
22480 echo "$as_me:$LINENO: result: yes" >&5
22481 echo "${ECHO_T}yes" >&6
22482 cat >>confdefs.h <<\_ACEOF
22483 #define HAVE_STD_WSTRING 1
22484 _ACEOF
22485
22486 else
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22489
22490 echo "$as_me:$LINENO: result: no" >&5
22491 echo "${ECHO_T}no" >&6
22492 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22493 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
22494 cat >conftest.$ac_ext <<_ACEOF
22495 /* confdefs.h. */
22496 _ACEOF
22497 cat confdefs.h >>conftest.$ac_ext
22498 cat >>conftest.$ac_ext <<_ACEOF
22499 /* end confdefs.h. */
22500
22501 #ifdef HAVE_WCHAR_H
22502 # ifdef __CYGWIN__
22503 # include <stddef.h>
22504 # endif
22505 # include <wchar.h>
22506 #endif
22507 #ifdef HAVE_STDLIB_H
22508 # include <stdlib.h>
22509 #endif
22510 #include <stdio.h>
22511 #include <string>
22512
22513 int
22514 main ()
22515 {
22516 std::basic_string<$char_type> foo;
22517 const $char_type* dummy = foo.c_str();
22518 ;
22519 return 0;
22520 }
22521 _ACEOF
22522 rm -f conftest.$ac_objext
22523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22524 (eval $ac_compile) 2>conftest.er1
22525 ac_status=$?
22526 grep -v '^ *+' conftest.er1 >conftest.err
22527 rm -f conftest.er1
22528 cat conftest.err >&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } &&
22531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22534 ac_status=$?
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; } &&
22537 { ac_try='test -s conftest.$ac_objext'
22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539 (eval $ac_try) 2>&5
22540 ac_status=$?
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; }; then
22543 echo "$as_me:$LINENO: result: yes" >&5
22544 echo "${ECHO_T}yes" >&6
22545 else
22546 echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22548
22549 echo "$as_me:$LINENO: result: no" >&5
22550 echo "${ECHO_T}no" >&6
22551 if test "$wxUSE_STL" = "yes"; then
22552 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22553 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22554 { (exit 1); exit 1; }; }
22555 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22556 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22557 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
22558 { (exit 1); exit 1; }; }
22559 else
22560 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22561 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22562 wxUSE_STD_STRING=no
22563 fi
22564
22565
22566 fi
22567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22568
22569 fi
22570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22571
22572 ac_ext=c
22573 ac_cpp='$CPP $CPPFLAGS'
22574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22577
22578 fi
22579
22580 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22581 ac_ext=cc
22582 ac_cpp='$CXXCPP $CPPFLAGS'
22583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22586
22587
22588 echo "$as_me:$LINENO: checking for std::istream" >&5
22589 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22590 if test "${ac_cv_type_std__istream+set}" = set; then
22591 echo $ECHO_N "(cached) $ECHO_C" >&6
22592 else
22593 cat >conftest.$ac_ext <<_ACEOF
22594 /* confdefs.h. */
22595 _ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h. */
22599 #include <iostream>
22600
22601 int
22602 main ()
22603 {
22604 if ((std::istream *) 0)
22605 return 0;
22606 if (sizeof (std::istream))
22607 return 0;
22608 ;
22609 return 0;
22610 }
22611 _ACEOF
22612 rm -f conftest.$ac_objext
22613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22614 (eval $ac_compile) 2>conftest.er1
22615 ac_status=$?
22616 grep -v '^ *+' conftest.er1 >conftest.err
22617 rm -f conftest.er1
22618 cat conftest.err >&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } &&
22621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; } &&
22627 { ac_try='test -s conftest.$ac_objext'
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; }; then
22633 ac_cv_type_std__istream=yes
22634 else
22635 echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.$ac_ext >&5
22637
22638 ac_cv_type_std__istream=no
22639 fi
22640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22641 fi
22642 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22643 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22644 if test $ac_cv_type_std__istream = yes; then
22645
22646 cat >>confdefs.h <<_ACEOF
22647 #define HAVE_STD__ISTREAM 1
22648 _ACEOF
22649
22650
22651 else
22652 wxUSE_STD_IOSTREAM=no
22653 fi
22654 echo "$as_me:$LINENO: checking for std::ostream" >&5
22655 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22656 if test "${ac_cv_type_std__ostream+set}" = set; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22658 else
22659 cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h. */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22665 #include <iostream>
22666
22667 int
22668 main ()
22669 {
22670 if ((std::ostream *) 0)
22671 return 0;
22672 if (sizeof (std::ostream))
22673 return 0;
22674 ;
22675 return 0;
22676 }
22677 _ACEOF
22678 rm -f conftest.$ac_objext
22679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22680 (eval $ac_compile) 2>conftest.er1
22681 ac_status=$?
22682 grep -v '^ *+' conftest.er1 >conftest.err
22683 rm -f conftest.er1
22684 cat conftest.err >&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } &&
22687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689 (eval $ac_try) 2>&5
22690 ac_status=$?
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; } &&
22693 { ac_try='test -s conftest.$ac_objext'
22694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695 (eval $ac_try) 2>&5
22696 ac_status=$?
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; }; then
22699 ac_cv_type_std__ostream=yes
22700 else
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22703
22704 ac_cv_type_std__ostream=no
22705 fi
22706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22707 fi
22708 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22709 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22710 if test $ac_cv_type_std__ostream = yes; then
22711
22712 cat >>confdefs.h <<_ACEOF
22713 #define HAVE_STD__OSTREAM 1
22714 _ACEOF
22715
22716
22717 else
22718 wxUSE_STD_IOSTREAM=no
22719 fi
22720
22721
22722 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
22723 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22724 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22725 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22726 { (exit 1); exit 1; }; }
22727 else
22728 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
22729 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
22730 fi
22731 fi
22732
22733 ac_ext=c
22734 ac_cpp='$CPP $CPPFLAGS'
22735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22738
22739 fi
22740
22741 if test "$wxUSE_STL" = "yes"; then
22742 ac_ext=cc
22743 ac_cpp='$CXXCPP $CPPFLAGS'
22744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22747
22748
22749 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22750 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
22751 cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h. */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h. */
22757 #include <string>
22758 #include <functional>
22759 #include <algorithm>
22760 #include <vector>
22761 #include <list>
22762 int
22763 main ()
22764 {
22765 std::vector<int> moo;
22766 std::list<int> foo;
22767 std::vector<int>::iterator it =
22768 std::find_if(moo.begin(), moo.end(),
22769 std::bind2nd(std::less<int>(), 3));
22770 ;
22771 return 0;
22772 }
22773 _ACEOF
22774 rm -f conftest.$ac_objext
22775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22776 (eval $ac_compile) 2>conftest.er1
22777 ac_status=$?
22778 grep -v '^ *+' conftest.er1 >conftest.err
22779 rm -f conftest.er1
22780 cat conftest.err >&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); } &&
22783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785 (eval $ac_try) 2>&5
22786 ac_status=$?
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); }; } &&
22789 { ac_try='test -s conftest.$ac_objext'
22790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791 (eval $ac_try) 2>&5
22792 ac_status=$?
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); }; }; then
22795 echo "$as_me:$LINENO: result: yes" >&5
22796 echo "${ECHO_T}yes" >&6
22797 else
22798 echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22800
22801 echo "$as_me:$LINENO: result: no" >&5
22802 echo "${ECHO_T}no" >&6
22803 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22804 echo "$as_me: error: Basic STL functionality missing" >&2;}
22805 { (exit 1); exit 1; }; }
22806 fi
22807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22808
22809 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22810 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22811 cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h. */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22817 #include <string>
22818 int
22819 main ()
22820 {
22821 std::string foo, bar;
22822 foo.compare(bar);
22823 foo.compare(1, 1, bar);
22824 foo.compare(1, 1, bar, 1, 1);
22825 foo.compare("");
22826 foo.compare(1, 1, "");
22827 foo.compare(1, 1, "", 2);
22828 ;
22829 return 0;
22830 }
22831 _ACEOF
22832 rm -f conftest.$ac_objext
22833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22834 (eval $ac_compile) 2>conftest.er1
22835 ac_status=$?
22836 grep -v '^ *+' conftest.er1 >conftest.err
22837 rm -f conftest.er1
22838 cat conftest.err >&5
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); } &&
22841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843 (eval $ac_try) 2>&5
22844 ac_status=$?
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; } &&
22847 { ac_try='test -s conftest.$ac_objext'
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22850 ac_status=$?
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; }; then
22853 echo "$as_me:$LINENO: result: yes" >&5
22854 echo "${ECHO_T}yes" >&6
22855 cat >>confdefs.h <<\_ACEOF
22856 #define HAVE_STD_STRING_COMPARE 1
22857 _ACEOF
22858
22859 else
22860 echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22862
22863 echo "$as_me:$LINENO: result: no" >&5
22864 echo "${ECHO_T}no" >&6
22865 fi
22866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22867
22868 if test "${ac_cv_header_hash_map+set}" = set; then
22869 echo "$as_me:$LINENO: checking for hash_map" >&5
22870 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22871 if test "${ac_cv_header_hash_map+set}" = set; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
22873 fi
22874 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22875 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22876 else
22877 # Is the header compilable?
22878 echo "$as_me:$LINENO: checking hash_map usability" >&5
22879 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22880 cat >conftest.$ac_ext <<_ACEOF
22881 /* confdefs.h. */
22882 _ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886 $ac_includes_default
22887 #include <hash_map>
22888 _ACEOF
22889 rm -f conftest.$ac_objext
22890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22891 (eval $ac_compile) 2>conftest.er1
22892 ac_status=$?
22893 grep -v '^ *+' conftest.er1 >conftest.err
22894 rm -f conftest.er1
22895 cat conftest.err >&5
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); } &&
22898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900 (eval $ac_try) 2>&5
22901 ac_status=$?
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }; } &&
22904 { ac_try='test -s conftest.$ac_objext'
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; }; then
22910 ac_header_compiler=yes
22911 else
22912 echo "$as_me: failed program was:" >&5
22913 sed 's/^/| /' conftest.$ac_ext >&5
22914
22915 ac_header_compiler=no
22916 fi
22917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22919 echo "${ECHO_T}$ac_header_compiler" >&6
22920
22921 # Is the header present?
22922 echo "$as_me:$LINENO: checking hash_map presence" >&5
22923 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
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 #include <hash_map>
22931 _ACEOF
22932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22934 ac_status=$?
22935 grep -v '^ *+' conftest.er1 >conftest.err
22936 rm -f conftest.er1
22937 cat conftest.err >&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } >/dev/null; then
22940 if test -s conftest.err; then
22941 ac_cpp_err=$ac_cxx_preproc_warn_flag
22942 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22943 else
22944 ac_cpp_err=
22945 fi
22946 else
22947 ac_cpp_err=yes
22948 fi
22949 if test -z "$ac_cpp_err"; then
22950 ac_header_preproc=yes
22951 else
22952 echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.$ac_ext >&5
22954
22955 ac_header_preproc=no
22956 fi
22957 rm -f conftest.err conftest.$ac_ext
22958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22959 echo "${ECHO_T}$ac_header_preproc" >&6
22960
22961 # So? What about this header?
22962 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22963 yes:no: )
22964 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22965 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
22966 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22967 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22968 ac_header_preproc=yes
22969 ;;
22970 no:yes:* )
22971 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22972 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
22973 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22974 echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22975 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22976 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22977 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22978 echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
22979 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22980 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
22981 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22982 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
22983 (
22984 cat <<\_ASBOX
22985 ## ----------------------------------------- ##
22986 ## Report this to wx-dev@lists.wxwidgets.org ##
22987 ## ----------------------------------------- ##
22988 _ASBOX
22989 ) |
22990 sed "s/^/$as_me: WARNING: /" >&2
22991 ;;
22992 esac
22993 echo "$as_me:$LINENO: checking for hash_map" >&5
22994 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22995 if test "${ac_cv_header_hash_map+set}" = set; then
22996 echo $ECHO_N "(cached) $ECHO_C" >&6
22997 else
22998 ac_cv_header_hash_map=$ac_header_preproc
22999 fi
23000 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23001 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23002
23003 fi
23004 if test $ac_cv_header_hash_map = yes; then
23005 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23006 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23007 cat >conftest.$ac_ext <<_ACEOF
23008 /* confdefs.h. */
23009 _ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h. */
23013 #include <hash_map>
23014 #include <hash_set>
23015 int
23016 main ()
23017 {
23018 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23019 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23020 ;
23021 return 0;
23022 }
23023 _ACEOF
23024 rm -f conftest.$ac_objext
23025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23026 (eval $ac_compile) 2>conftest.er1
23027 ac_status=$?
23028 grep -v '^ *+' conftest.er1 >conftest.err
23029 rm -f conftest.er1
23030 cat conftest.err >&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } &&
23033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035 (eval $ac_try) 2>&5
23036 ac_status=$?
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); }; } &&
23039 { ac_try='test -s conftest.$ac_objext'
23040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041 (eval $ac_try) 2>&5
23042 ac_status=$?
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); }; }; then
23045 echo "$as_me:$LINENO: result: yes" >&5
23046 echo "${ECHO_T}yes" >&6
23047 cat >>confdefs.h <<\_ACEOF
23048 #define HAVE_HASH_MAP 1
23049 _ACEOF
23050
23051 cat >>confdefs.h <<\_ACEOF
23052 #define HAVE_STD_HASH_MAP 1
23053 _ACEOF
23054
23055 else
23056 echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23058
23059 echo "$as_me:$LINENO: result: no" >&5
23060 echo "${ECHO_T}no" >&6
23061 fi
23062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23063
23064 fi
23065
23066
23067
23068 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23069 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23070 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23071 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23072 echo $ECHO_N "(cached) $ECHO_C" >&6
23073 fi
23074 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23075 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23076 else
23077 # Is the header compilable?
23078 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23079 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23080 cat >conftest.$ac_ext <<_ACEOF
23081 /* confdefs.h. */
23082 _ACEOF
23083 cat confdefs.h >>conftest.$ac_ext
23084 cat >>conftest.$ac_ext <<_ACEOF
23085 /* end confdefs.h. */
23086 $ac_includes_default
23087 #include <ext/hash_map>
23088 _ACEOF
23089 rm -f conftest.$ac_objext
23090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23091 (eval $ac_compile) 2>conftest.er1
23092 ac_status=$?
23093 grep -v '^ *+' conftest.er1 >conftest.err
23094 rm -f conftest.er1
23095 cat conftest.err >&5
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); } &&
23098 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23100 (eval $ac_try) 2>&5
23101 ac_status=$?
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); }; } &&
23104 { ac_try='test -s conftest.$ac_objext'
23105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23106 (eval $ac_try) 2>&5
23107 ac_status=$?
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); }; }; then
23110 ac_header_compiler=yes
23111 else
23112 echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23114
23115 ac_header_compiler=no
23116 fi
23117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23119 echo "${ECHO_T}$ac_header_compiler" >&6
23120
23121 # Is the header present?
23122 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23123 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23124 cat >conftest.$ac_ext <<_ACEOF
23125 /* confdefs.h. */
23126 _ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h. */
23130 #include <ext/hash_map>
23131 _ACEOF
23132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23134 ac_status=$?
23135 grep -v '^ *+' conftest.er1 >conftest.err
23136 rm -f conftest.er1
23137 cat conftest.err >&5
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } >/dev/null; then
23140 if test -s conftest.err; then
23141 ac_cpp_err=$ac_cxx_preproc_warn_flag
23142 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23143 else
23144 ac_cpp_err=
23145 fi
23146 else
23147 ac_cpp_err=yes
23148 fi
23149 if test -z "$ac_cpp_err"; then
23150 ac_header_preproc=yes
23151 else
23152 echo "$as_me: failed program was:" >&5
23153 sed 's/^/| /' conftest.$ac_ext >&5
23154
23155 ac_header_preproc=no
23156 fi
23157 rm -f conftest.err conftest.$ac_ext
23158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23159 echo "${ECHO_T}$ac_header_preproc" >&6
23160
23161 # So? What about this header?
23162 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23163 yes:no: )
23164 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23165 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23166 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23167 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23168 ac_header_preproc=yes
23169 ;;
23170 no:yes:* )
23171 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23172 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
23173 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23174 echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23175 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23176 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23177 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23178 echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
23179 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23180 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
23181 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23182 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
23183 (
23184 cat <<\_ASBOX
23185 ## ----------------------------------------- ##
23186 ## Report this to wx-dev@lists.wxwidgets.org ##
23187 ## ----------------------------------------- ##
23188 _ASBOX
23189 ) |
23190 sed "s/^/$as_me: WARNING: /" >&2
23191 ;;
23192 esac
23193 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23194 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23195 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23196 echo $ECHO_N "(cached) $ECHO_C" >&6
23197 else
23198 ac_cv_header_ext_hash_map=$ac_header_preproc
23199 fi
23200 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23201 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23202
23203 fi
23204 if test $ac_cv_header_ext_hash_map = yes; then
23205 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23206 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23207 cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h. */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 #include <ext/hash_map>
23214 #include <ext/hash_set>
23215 int
23216 main ()
23217 {
23218 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23219 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23220 ;
23221 return 0;
23222 }
23223 _ACEOF
23224 rm -f conftest.$ac_objext
23225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23226 (eval $ac_compile) 2>conftest.er1
23227 ac_status=$?
23228 grep -v '^ *+' conftest.er1 >conftest.err
23229 rm -f conftest.er1
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } &&
23233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235 (eval $ac_try) 2>&5
23236 ac_status=$?
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); }; } &&
23239 { ac_try='test -s conftest.$ac_objext'
23240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23241 (eval $ac_try) 2>&5
23242 ac_status=$?
23243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244 (exit $ac_status); }; }; then
23245 echo "$as_me:$LINENO: result: yes" >&5
23246 echo "${ECHO_T}yes" >&6
23247 cat >>confdefs.h <<\_ACEOF
23248 #define HAVE_EXT_HASH_MAP 1
23249 _ACEOF
23250
23251 cat >>confdefs.h <<\_ACEOF
23252 #define HAVE_GNU_CXX_HASH_MAP 1
23253 _ACEOF
23254
23255 else
23256 echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23258
23259 echo "$as_me:$LINENO: result: no" >&5
23260 echo "${ECHO_T}no" >&6
23261 fi
23262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23263
23264 fi
23265
23266
23267
23268 ac_ext=c
23269 ac_cpp='$CPP $CPPFLAGS'
23270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23273
23274 fi
23275
23276
23277 SEARCH_INCLUDE="\
23278 /usr/local/include \
23279 \
23280 /usr/Motif-2.1/include \
23281 /usr/Motif-1.2/include \
23282 /usr/include/Motif1.2 \
23283 \
23284 /usr/dt/include \
23285 /usr/openwin/include \
23286 \
23287 /usr/include/Xm \
23288 \
23289 /usr/X11R6/include \
23290 /usr/X11R6.4/include \
23291 /usr/X11R5/include \
23292 /usr/X11R4/include \
23293 \
23294 /usr/include/X11R6 \
23295 /usr/include/X11R5 \
23296 /usr/include/X11R4 \
23297 \
23298 /usr/local/X11R6/include \
23299 /usr/local/X11R5/include \
23300 /usr/local/X11R4/include \
23301 \
23302 /usr/local/include/X11R6 \
23303 /usr/local/include/X11R5 \
23304 /usr/local/include/X11R4 \
23305 \
23306 /usr/X11/include \
23307 /usr/include/X11 \
23308 /usr/local/X11/include \
23309 /usr/local/include/X11 \
23310 \
23311 /usr/XFree86/include/X11 \
23312 /usr/pkg/include \
23313 \
23314 /usr/openwin/share/include"
23315
23316 echo "$as_me:$LINENO: checking for libraries directory" >&5
23317 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
23318
23319 case "${host}" in
23320 *-*-irix6* )
23321 if test "${wx_cv_std_libpath+set}" = set; then
23322 echo $ECHO_N "(cached) $ECHO_C" >&6
23323 else
23324
23325 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23326 for e in a so sl dylib dll.a; do
23327 libc="$d/libc.$e"
23328 if test -f $libc; then
23329 save_LIBS="$LIBS"
23330 LIBS="$libc"
23331 cat >conftest.$ac_ext <<_ACEOF
23332 int main() { return 0; }
23333 _ACEOF
23334 rm -f conftest.$ac_objext conftest$ac_exeext
23335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23336 (eval $ac_link) 2>conftest.er1
23337 ac_status=$?
23338 grep -v '^ *+' conftest.er1 >conftest.err
23339 rm -f conftest.er1
23340 cat conftest.err >&5
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); } &&
23343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23345 (eval $ac_try) 2>&5
23346 ac_status=$?
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; } &&
23349 { ac_try='test -s conftest$ac_exeext'
23350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23351 (eval $ac_try) 2>&5
23352 ac_status=$?
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); }; }; then
23355 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23356 else
23357 echo "$as_me: failed program was:" >&5
23358 sed 's/^/| /' conftest.$ac_ext >&5
23359
23360 fi
23361 rm -f conftest.err conftest.$ac_objext \
23362 conftest$ac_exeext conftest.$ac_ext
23363 LIBS="$save_LIBS"
23364 if test "x$wx_cv_std_libpath" != "x"; then
23365 break 2
23366 fi
23367 fi
23368 done
23369 done
23370 if test "x$wx_cv_std_libpath" = "x"; then
23371 wx_cv_std_libpath="lib"
23372 fi
23373
23374
23375 fi
23376
23377 ;;
23378
23379 *-*-solaris2* )
23380 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23381 wx_cv_std_libpath="lib/64"
23382 else
23383 wx_cv_std_libpath="lib"
23384 fi
23385 ;;
23386
23387 *-*-linux* )
23388 if test "$ac_cv_sizeof_void_p" = 8 -a \
23389 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23390 wx_cv_std_libpath="lib64"
23391 else
23392 wx_cv_std_libpath="lib"
23393 fi
23394 ;;
23395
23396 *)
23397 wx_cv_std_libpath="lib";
23398 ;;
23399 esac
23400
23401 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23402 echo "${ECHO_T}$wx_cv_std_libpath" >&6
23403
23404 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
23405
23406 if test "$build" != "$host" -a "$GCC" = yes; then
23407 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23408 cross_root=`dirname $cross_root`
23409 cross_root=`dirname $cross_root`
23410
23411 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23412 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23413
23414 if test -z "$PKG_CONFIG_PATH"; then
23415 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23416 export PKG_CONFIG_PATH
23417 fi
23418
23419 if test -z "$x_includes" -o "$x_includes" = NONE; then
23420
23421 ac_find_includes=
23422 for ac_dir in $SEARCH_INCLUDE /usr/include;
23423 do
23424 if test -f "$ac_dir/X11/Intrinsic.h"; then
23425 ac_find_includes=$ac_dir
23426 break
23427 fi
23428 done
23429
23430 x_includes=$ac_find_includes
23431 fi
23432 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23433
23434 ac_find_libraries=
23435 for ac_dir in $SEARCH_LIB;
23436 do
23437 for ac_extension in a so sl dylib dll.a; do
23438 if test -f "$ac_dir/libXt.$ac_extension"; then
23439 ac_find_libraries=$ac_dir
23440 break 2
23441 fi
23442 done
23443 done
23444
23445 x_libraries=$ac_find_libraries
23446 fi
23447 fi
23448 fi
23449
23450
23451 cat >confcache <<\_ACEOF
23452 # This file is a shell script that caches the results of configure
23453 # tests run on this system so they can be shared between configure
23454 # scripts and configure runs, see configure's option --config-cache.
23455 # It is not useful on other systems. If it contains results you don't
23456 # want to keep, you may remove or edit it.
23457 #
23458 # config.status only pays attention to the cache file if you give it
23459 # the --recheck option to rerun configure.
23460 #
23461 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23462 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23463 # following values.
23464
23465 _ACEOF
23466
23467 # The following way of writing the cache mishandles newlines in values,
23468 # but we know of no workaround that is simple, portable, and efficient.
23469 # So, don't put newlines in cache variables' values.
23470 # Ultrix sh set writes to stderr and can't be redirected directly,
23471 # and sets the high bit in the cache file unless we assign to the vars.
23472 {
23473 (set) 2>&1 |
23474 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23475 *ac_space=\ *)
23476 # `set' does not quote correctly, so add quotes (double-quote
23477 # substitution turns \\\\ into \\, and sed turns \\ into \).
23478 sed -n \
23479 "s/'/'\\\\''/g;
23480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23481 ;;
23482 *)
23483 # `set' quotes correctly as required by POSIX, so do not add quotes.
23484 sed -n \
23485 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23486 ;;
23487 esac;
23488 } |
23489 sed '
23490 t clear
23491 : clear
23492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23493 t end
23494 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23495 : end' >>confcache
23496 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23497 if test -w $cache_file; then
23498 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23499 cat confcache >$cache_file
23500 else
23501 echo "not updating unwritable cache $cache_file"
23502 fi
23503 fi
23504 rm -f confcache
23505
23506 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23507 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23508 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23509 if test "${wx_cv_lib_glibc21+set}" = set; then
23510 echo $ECHO_N "(cached) $ECHO_C" >&6
23511 else
23512
23513 cat >conftest.$ac_ext <<_ACEOF
23514 /* confdefs.h. */
23515 _ACEOF
23516 cat confdefs.h >>conftest.$ac_ext
23517 cat >>conftest.$ac_ext <<_ACEOF
23518 /* end confdefs.h. */
23519 #include <features.h>
23520 int
23521 main ()
23522 {
23523
23524 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
23525 not glibc 2.1
23526 #endif
23527
23528 ;
23529 return 0;
23530 }
23531 _ACEOF
23532 rm -f conftest.$ac_objext
23533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23534 (eval $ac_compile) 2>conftest.er1
23535 ac_status=$?
23536 grep -v '^ *+' conftest.er1 >conftest.err
23537 rm -f conftest.er1
23538 cat conftest.err >&5
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } &&
23541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23543 (eval $ac_try) 2>&5
23544 ac_status=$?
23545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); }; } &&
23547 { ac_try='test -s conftest.$ac_objext'
23548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23549 (eval $ac_try) 2>&5
23550 ac_status=$?
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); }; }; then
23553
23554 wx_cv_lib_glibc21=yes
23555
23556 else
23557 echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23559
23560
23561 wx_cv_lib_glibc21=no
23562
23563
23564 fi
23565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23566
23567 fi
23568 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23569 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23570 if test "$wx_cv_lib_glibc21" = "yes"; then
23571 cat >>confdefs.h <<\_ACEOF
23572 #define wxHAVE_GLIBC2 1
23573 _ACEOF
23574
23575 fi
23576 fi
23577
23578 if test "x$wx_cv_lib_glibc21" = "xyes"; then
23579 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23580 cat >>confdefs.h <<\_ACEOF
23581 #define _GNU_SOURCE 1
23582 _ACEOF
23583
23584 fi
23585 fi
23586
23587
23588
23589 if test "$wxUSE_REGEX" != "no"; then
23590 cat >>confdefs.h <<\_ACEOF
23591 #define wxUSE_REGEX 1
23592 _ACEOF
23593
23594
23595 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23596 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23597 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23598 wxUSE_REGEX=builtin
23599 fi
23600
23601 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23602 if test "${ac_cv_header_regex_h+set}" = set; then
23603 echo "$as_me:$LINENO: checking for regex.h" >&5
23604 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23605 if test "${ac_cv_header_regex_h+set}" = set; then
23606 echo $ECHO_N "(cached) $ECHO_C" >&6
23607 fi
23608 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23609 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23610 else
23611 # Is the header compilable?
23612 echo "$as_me:$LINENO: checking regex.h usability" >&5
23613 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23614 cat >conftest.$ac_ext <<_ACEOF
23615 /* confdefs.h. */
23616 _ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23620 $ac_includes_default
23621 #include <regex.h>
23622 _ACEOF
23623 rm -f conftest.$ac_objext
23624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23625 (eval $ac_compile) 2>conftest.er1
23626 ac_status=$?
23627 grep -v '^ *+' conftest.er1 >conftest.err
23628 rm -f conftest.er1
23629 cat conftest.err >&5
23630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); } &&
23632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23634 (eval $ac_try) 2>&5
23635 ac_status=$?
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); }; } &&
23638 { ac_try='test -s conftest.$ac_objext'
23639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640 (eval $ac_try) 2>&5
23641 ac_status=$?
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); }; }; then
23644 ac_header_compiler=yes
23645 else
23646 echo "$as_me: failed program was:" >&5
23647 sed 's/^/| /' conftest.$ac_ext >&5
23648
23649 ac_header_compiler=no
23650 fi
23651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23653 echo "${ECHO_T}$ac_header_compiler" >&6
23654
23655 # Is the header present?
23656 echo "$as_me:$LINENO: checking regex.h presence" >&5
23657 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23658 cat >conftest.$ac_ext <<_ACEOF
23659 /* confdefs.h. */
23660 _ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h. */
23664 #include <regex.h>
23665 _ACEOF
23666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23668 ac_status=$?
23669 grep -v '^ *+' conftest.er1 >conftest.err
23670 rm -f conftest.er1
23671 cat conftest.err >&5
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); } >/dev/null; then
23674 if test -s conftest.err; then
23675 ac_cpp_err=$ac_c_preproc_warn_flag
23676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23677 else
23678 ac_cpp_err=
23679 fi
23680 else
23681 ac_cpp_err=yes
23682 fi
23683 if test -z "$ac_cpp_err"; then
23684 ac_header_preproc=yes
23685 else
23686 echo "$as_me: failed program was:" >&5
23687 sed 's/^/| /' conftest.$ac_ext >&5
23688
23689 ac_header_preproc=no
23690 fi
23691 rm -f conftest.err conftest.$ac_ext
23692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23693 echo "${ECHO_T}$ac_header_preproc" >&6
23694
23695 # So? What about this header?
23696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23697 yes:no: )
23698 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23699 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23700 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23701 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23702 ac_header_preproc=yes
23703 ;;
23704 no:yes:* )
23705 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23706 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23707 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23708 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23709 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23710 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23711 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23712 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
23713 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23714 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23715 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23716 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23717 (
23718 cat <<\_ASBOX
23719 ## ----------------------------------------- ##
23720 ## Report this to wx-dev@lists.wxwidgets.org ##
23721 ## ----------------------------------------- ##
23722 _ASBOX
23723 ) |
23724 sed "s/^/$as_me: WARNING: /" >&2
23725 ;;
23726 esac
23727 echo "$as_me:$LINENO: checking for regex.h" >&5
23728 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23729 if test "${ac_cv_header_regex_h+set}" = set; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23731 else
23732 ac_cv_header_regex_h=$ac_header_preproc
23733 fi
23734 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23735 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23736
23737 fi
23738 if test $ac_cv_header_regex_h = yes; then
23739
23740 for ac_func in regcomp
23741 do
23742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23743 echo "$as_me:$LINENO: checking for $ac_func" >&5
23744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23745 if eval "test \"\${$as_ac_var+set}\" = set"; then
23746 echo $ECHO_N "(cached) $ECHO_C" >&6
23747 else
23748 cat >conftest.$ac_ext <<_ACEOF
23749 /* confdefs.h. */
23750 _ACEOF
23751 cat confdefs.h >>conftest.$ac_ext
23752 cat >>conftest.$ac_ext <<_ACEOF
23753 /* end confdefs.h. */
23754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23756 #define $ac_func innocuous_$ac_func
23757
23758 /* System header to define __stub macros and hopefully few prototypes,
23759 which can conflict with char $ac_func (); below.
23760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23761 <limits.h> exists even on freestanding compilers. */
23762
23763 #ifdef __STDC__
23764 # include <limits.h>
23765 #else
23766 # include <assert.h>
23767 #endif
23768
23769 #undef $ac_func
23770
23771 /* Override any gcc2 internal prototype to avoid an error. */
23772 #ifdef __cplusplus
23773 extern "C"
23774 {
23775 #endif
23776 /* We use char because int might match the return type of a gcc2
23777 builtin and then its argument prototype would still apply. */
23778 char $ac_func ();
23779 /* The GNU C library defines this for functions which it implements
23780 to always fail with ENOSYS. Some functions are actually named
23781 something starting with __ and the normal name is an alias. */
23782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23783 choke me
23784 #else
23785 char (*f) () = $ac_func;
23786 #endif
23787 #ifdef __cplusplus
23788 }
23789 #endif
23790
23791 int
23792 main ()
23793 {
23794 return f != $ac_func;
23795 ;
23796 return 0;
23797 }
23798 _ACEOF
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23801 (eval $ac_link) 2>conftest.er1
23802 ac_status=$?
23803 grep -v '^ *+' conftest.er1 >conftest.err
23804 rm -f conftest.er1
23805 cat conftest.err >&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } &&
23808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23810 (eval $ac_try) 2>&5
23811 ac_status=$?
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); }; } &&
23814 { ac_try='test -s conftest$ac_exeext'
23815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23816 (eval $ac_try) 2>&5
23817 ac_status=$?
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); }; }; then
23820 eval "$as_ac_var=yes"
23821 else
23822 echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23824
23825 eval "$as_ac_var=no"
23826 fi
23827 rm -f conftest.err conftest.$ac_objext \
23828 conftest$ac_exeext conftest.$ac_ext
23829 fi
23830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23832 if test `eval echo '${'$as_ac_var'}'` = yes; then
23833 cat >>confdefs.h <<_ACEOF
23834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23835 _ACEOF
23836
23837 fi
23838 done
23839
23840 fi
23841
23842
23843
23844 if test "x$ac_cv_func_regcomp" != "xyes"; then
23845 if test "$wxUSE_REGEX" = "sys" ; then
23846 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23847 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23848 { (exit 1); exit 1; }; }
23849 else
23850 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23851 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23852 wxUSE_REGEX=builtin
23853 fi
23854 else
23855 wxUSE_REGEX=sys
23856 cat >>confdefs.h <<\_ACEOF
23857 #define WX_NO_REGEX_ADVANCED 1
23858 _ACEOF
23859
23860 fi
23861 fi
23862 fi
23863
23864
23865 ZLIB_LINK=
23866 if test "$wxUSE_ZLIB" != "no" ; then
23867 cat >>confdefs.h <<\_ACEOF
23868 #define wxUSE_ZLIB 1
23869 _ACEOF
23870
23871
23872 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23873 if test "$USE_DARWIN" = 1; then
23874 system_zlib_h_ok="yes"
23875 else
23876 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23877 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23878 if test "${ac_cv_header_zlib_h+set}" = set; then
23879 echo $ECHO_N "(cached) $ECHO_C" >&6
23880 else
23881 if test "$cross_compiling" = yes; then
23882 unset ac_cv_header_zlib_h
23883
23884 else
23885 cat >conftest.$ac_ext <<_ACEOF
23886 /* confdefs.h. */
23887 _ACEOF
23888 cat confdefs.h >>conftest.$ac_ext
23889 cat >>conftest.$ac_ext <<_ACEOF
23890 /* end confdefs.h. */
23891
23892 #include <zlib.h>
23893 #include <stdio.h>
23894
23895 int main()
23896 {
23897 FILE *f=fopen("conftestval", "w");
23898 if (!f) exit(1);
23899 fprintf(f, "%s",
23900 ZLIB_VERSION[0] == '1' &&
23901 (ZLIB_VERSION[2] > '1' ||
23902 (ZLIB_VERSION[2] == '1' &&
23903 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23904 exit(0);
23905 }
23906
23907 _ACEOF
23908 rm -f conftest$ac_exeext
23909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23910 (eval $ac_link) 2>&5
23911 ac_status=$?
23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915 (eval $ac_try) 2>&5
23916 ac_status=$?
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; }; then
23919 ac_cv_header_zlib_h=`cat conftestval`
23920 else
23921 echo "$as_me: program exited with status $ac_status" >&5
23922 echo "$as_me: failed program was:" >&5
23923 sed 's/^/| /' conftest.$ac_ext >&5
23924
23925 ( exit $ac_status )
23926 ac_cv_header_zlib_h=no
23927 fi
23928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23929 fi
23930
23931 fi
23932 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23933 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23934 if test "${ac_cv_header_zlib_h+set}" = set; then
23935 echo "$as_me:$LINENO: checking for zlib.h" >&5
23936 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23937 if test "${ac_cv_header_zlib_h+set}" = set; then
23938 echo $ECHO_N "(cached) $ECHO_C" >&6
23939 fi
23940 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23941 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23942 else
23943 # Is the header compilable?
23944 echo "$as_me:$LINENO: checking zlib.h usability" >&5
23945 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23946 cat >conftest.$ac_ext <<_ACEOF
23947 /* confdefs.h. */
23948 _ACEOF
23949 cat confdefs.h >>conftest.$ac_ext
23950 cat >>conftest.$ac_ext <<_ACEOF
23951 /* end confdefs.h. */
23952 $ac_includes_default
23953 #include <zlib.h>
23954 _ACEOF
23955 rm -f conftest.$ac_objext
23956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23957 (eval $ac_compile) 2>conftest.er1
23958 ac_status=$?
23959 grep -v '^ *+' conftest.er1 >conftest.err
23960 rm -f conftest.er1
23961 cat conftest.err >&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } &&
23964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 (eval $ac_try) 2>&5
23967 ac_status=$?
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; } &&
23970 { ac_try='test -s conftest.$ac_objext'
23971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972 (eval $ac_try) 2>&5
23973 ac_status=$?
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); }; }; then
23976 ac_header_compiler=yes
23977 else
23978 echo "$as_me: failed program was:" >&5
23979 sed 's/^/| /' conftest.$ac_ext >&5
23980
23981 ac_header_compiler=no
23982 fi
23983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23985 echo "${ECHO_T}$ac_header_compiler" >&6
23986
23987 # Is the header present?
23988 echo "$as_me:$LINENO: checking zlib.h presence" >&5
23989 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
23990 cat >conftest.$ac_ext <<_ACEOF
23991 /* confdefs.h. */
23992 _ACEOF
23993 cat confdefs.h >>conftest.$ac_ext
23994 cat >>conftest.$ac_ext <<_ACEOF
23995 /* end confdefs.h. */
23996 #include <zlib.h>
23997 _ACEOF
23998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24000 ac_status=$?
24001 grep -v '^ *+' conftest.er1 >conftest.err
24002 rm -f conftest.er1
24003 cat conftest.err >&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } >/dev/null; then
24006 if test -s conftest.err; then
24007 ac_cpp_err=$ac_c_preproc_warn_flag
24008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24009 else
24010 ac_cpp_err=
24011 fi
24012 else
24013 ac_cpp_err=yes
24014 fi
24015 if test -z "$ac_cpp_err"; then
24016 ac_header_preproc=yes
24017 else
24018 echo "$as_me: failed program was:" >&5
24019 sed 's/^/| /' conftest.$ac_ext >&5
24020
24021 ac_header_preproc=no
24022 fi
24023 rm -f conftest.err conftest.$ac_ext
24024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24025 echo "${ECHO_T}$ac_header_preproc" >&6
24026
24027 # So? What about this header?
24028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24029 yes:no: )
24030 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24031 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24032 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24033 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24034 ac_header_preproc=yes
24035 ;;
24036 no:yes:* )
24037 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24038 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
24039 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24040 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24041 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24042 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24043 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24044 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24045 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24046 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
24047 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24048 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
24049 (
24050 cat <<\_ASBOX
24051 ## ----------------------------------------- ##
24052 ## Report this to wx-dev@lists.wxwidgets.org ##
24053 ## ----------------------------------------- ##
24054 _ASBOX
24055 ) |
24056 sed "s/^/$as_me: WARNING: /" >&2
24057 ;;
24058 esac
24059 echo "$as_me:$LINENO: checking for zlib.h" >&5
24060 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24061 if test "${ac_cv_header_zlib_h+set}" = set; then
24062 echo $ECHO_N "(cached) $ECHO_C" >&6
24063 else
24064 ac_cv_header_zlib_h=$ac_header_preproc
24065 fi
24066 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24067 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24068
24069 fi
24070
24071
24072
24073 system_zlib_h_ok=$ac_cv_header_zlib_h
24074 fi
24075
24076 if test "$system_zlib_h_ok" = "yes"; then
24077 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24078 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24079 if test "${ac_cv_lib_z_deflate+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24081 else
24082 ac_check_lib_save_LIBS=$LIBS
24083 LIBS="-lz $LIBS"
24084 cat >conftest.$ac_ext <<_ACEOF
24085 /* confdefs.h. */
24086 _ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h. */
24090
24091 /* Override any gcc2 internal prototype to avoid an error. */
24092 #ifdef __cplusplus
24093 extern "C"
24094 #endif
24095 /* We use char because int might match the return type of a gcc2
24096 builtin and then its argument prototype would still apply. */
24097 char deflate ();
24098 int
24099 main ()
24100 {
24101 deflate ();
24102 ;
24103 return 0;
24104 }
24105 _ACEOF
24106 rm -f conftest.$ac_objext conftest$ac_exeext
24107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24108 (eval $ac_link) 2>conftest.er1
24109 ac_status=$?
24110 grep -v '^ *+' conftest.er1 >conftest.err
24111 rm -f conftest.er1
24112 cat conftest.err >&5
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); } &&
24115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24117 (eval $ac_try) 2>&5
24118 ac_status=$?
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); }; } &&
24121 { ac_try='test -s conftest$ac_exeext'
24122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24123 (eval $ac_try) 2>&5
24124 ac_status=$?
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); }; }; then
24127 ac_cv_lib_z_deflate=yes
24128 else
24129 echo "$as_me: failed program was:" >&5
24130 sed 's/^/| /' conftest.$ac_ext >&5
24131
24132 ac_cv_lib_z_deflate=no
24133 fi
24134 rm -f conftest.err conftest.$ac_objext \
24135 conftest$ac_exeext conftest.$ac_ext
24136 LIBS=$ac_check_lib_save_LIBS
24137 fi
24138 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24139 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24140 if test $ac_cv_lib_z_deflate = yes; then
24141 ZLIB_LINK=" -lz"
24142 fi
24143
24144 fi
24145
24146 if test "x$ZLIB_LINK" = "x" ; then
24147 if test "$wxUSE_ZLIB" = "sys" ; then
24148 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24149 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24150 { (exit 1); exit 1; }; }
24151 else
24152 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24153 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24154 wxUSE_ZLIB=builtin
24155 fi
24156 else
24157 wxUSE_ZLIB=sys
24158 fi
24159 fi
24160 fi
24161
24162
24163 PNG_LINK=
24164 if test "$wxUSE_LIBPNG" != "no" ; then
24165 cat >>confdefs.h <<\_ACEOF
24166 #define wxUSE_LIBPNG 1
24167 _ACEOF
24168
24169
24170 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24171 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24172 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24173 wxUSE_LIBPNG=sys
24174 fi
24175
24176 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24177 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24178 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24179 wxUSE_LIBPNG=builtin
24180 fi
24181
24182 if test "$wxUSE_MGL" != 1 ; then
24183 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24184 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24185 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24186 if test "${ac_cv_header_png_h+set}" = set; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24188 else
24189 if test "$cross_compiling" = yes; then
24190 unset ac_cv_header_png_h
24191
24192 else
24193 cat >conftest.$ac_ext <<_ACEOF
24194 /* confdefs.h. */
24195 _ACEOF
24196 cat confdefs.h >>conftest.$ac_ext
24197 cat >>conftest.$ac_ext <<_ACEOF
24198 /* end confdefs.h. */
24199
24200 #include <png.h>
24201 #include <stdio.h>
24202
24203 int main()
24204 {
24205 FILE *f=fopen("conftestval", "w");
24206 if (!f) exit(1);
24207 fprintf(f, "%s",
24208 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24209 exit(0);
24210 }
24211
24212 _ACEOF
24213 rm -f conftest$ac_exeext
24214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24215 (eval $ac_link) 2>&5
24216 ac_status=$?
24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24220 (eval $ac_try) 2>&5
24221 ac_status=$?
24222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223 (exit $ac_status); }; }; then
24224 ac_cv_header_png_h=`cat conftestval`
24225 else
24226 echo "$as_me: program exited with status $ac_status" >&5
24227 echo "$as_me: failed program was:" >&5
24228 sed 's/^/| /' conftest.$ac_ext >&5
24229
24230 ( exit $ac_status )
24231 ac_cv_header_png_h=no
24232 fi
24233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24234 fi
24235
24236 fi
24237 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24238 echo "${ECHO_T}$ac_cv_header_png_h" >&6
24239 if test "${ac_cv_header_png_h+set}" = set; then
24240 echo "$as_me:$LINENO: checking for png.h" >&5
24241 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24242 if test "${ac_cv_header_png_h+set}" = set; then
24243 echo $ECHO_N "(cached) $ECHO_C" >&6
24244 fi
24245 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24246 echo "${ECHO_T}$ac_cv_header_png_h" >&6
24247 else
24248 # Is the header compilable?
24249 echo "$as_me:$LINENO: checking png.h usability" >&5
24250 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24251 cat >conftest.$ac_ext <<_ACEOF
24252 /* confdefs.h. */
24253 _ACEOF
24254 cat confdefs.h >>conftest.$ac_ext
24255 cat >>conftest.$ac_ext <<_ACEOF
24256 /* end confdefs.h. */
24257 $ac_includes_default
24258 #include <png.h>
24259 _ACEOF
24260 rm -f conftest.$ac_objext
24261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24262 (eval $ac_compile) 2>conftest.er1
24263 ac_status=$?
24264 grep -v '^ *+' conftest.er1 >conftest.err
24265 rm -f conftest.er1
24266 cat conftest.err >&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); } &&
24269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24271 (eval $ac_try) 2>&5
24272 ac_status=$?
24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); }; } &&
24275 { ac_try='test -s conftest.$ac_objext'
24276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24277 (eval $ac_try) 2>&5
24278 ac_status=$?
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); }; }; then
24281 ac_header_compiler=yes
24282 else
24283 echo "$as_me: failed program was:" >&5
24284 sed 's/^/| /' conftest.$ac_ext >&5
24285
24286 ac_header_compiler=no
24287 fi
24288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24290 echo "${ECHO_T}$ac_header_compiler" >&6
24291
24292 # Is the header present?
24293 echo "$as_me:$LINENO: checking png.h presence" >&5
24294 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24295 cat >conftest.$ac_ext <<_ACEOF
24296 /* confdefs.h. */
24297 _ACEOF
24298 cat confdefs.h >>conftest.$ac_ext
24299 cat >>conftest.$ac_ext <<_ACEOF
24300 /* end confdefs.h. */
24301 #include <png.h>
24302 _ACEOF
24303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24305 ac_status=$?
24306 grep -v '^ *+' conftest.er1 >conftest.err
24307 rm -f conftest.er1
24308 cat conftest.err >&5
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } >/dev/null; then
24311 if test -s conftest.err; then
24312 ac_cpp_err=$ac_c_preproc_warn_flag
24313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24314 else
24315 ac_cpp_err=
24316 fi
24317 else
24318 ac_cpp_err=yes
24319 fi
24320 if test -z "$ac_cpp_err"; then
24321 ac_header_preproc=yes
24322 else
24323 echo "$as_me: failed program was:" >&5
24324 sed 's/^/| /' conftest.$ac_ext >&5
24325
24326 ac_header_preproc=no
24327 fi
24328 rm -f conftest.err conftest.$ac_ext
24329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24330 echo "${ECHO_T}$ac_header_preproc" >&6
24331
24332 # So? What about this header?
24333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24334 yes:no: )
24335 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24336 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24337 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24338 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24339 ac_header_preproc=yes
24340 ;;
24341 no:yes:* )
24342 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24343 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
24344 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24345 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24346 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24347 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24348 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24349 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
24350 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24351 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
24352 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24353 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
24354 (
24355 cat <<\_ASBOX
24356 ## ----------------------------------------- ##
24357 ## Report this to wx-dev@lists.wxwidgets.org ##
24358 ## ----------------------------------------- ##
24359 _ASBOX
24360 ) |
24361 sed "s/^/$as_me: WARNING: /" >&2
24362 ;;
24363 esac
24364 echo "$as_me:$LINENO: checking for png.h" >&5
24365 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24366 if test "${ac_cv_header_png_h+set}" = set; then
24367 echo $ECHO_N "(cached) $ECHO_C" >&6
24368 else
24369 ac_cv_header_png_h=$ac_header_preproc
24370 fi
24371 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24372 echo "${ECHO_T}$ac_cv_header_png_h" >&6
24373
24374 fi
24375
24376
24377
24378 if test "$ac_cv_header_png_h" = "yes"; then
24379 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24380 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24381 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24382 echo $ECHO_N "(cached) $ECHO_C" >&6
24383 else
24384 ac_check_lib_save_LIBS=$LIBS
24385 LIBS="-lpng -lz -lm $LIBS"
24386 cat >conftest.$ac_ext <<_ACEOF
24387 /* confdefs.h. */
24388 _ACEOF
24389 cat confdefs.h >>conftest.$ac_ext
24390 cat >>conftest.$ac_ext <<_ACEOF
24391 /* end confdefs.h. */
24392
24393 /* Override any gcc2 internal prototype to avoid an error. */
24394 #ifdef __cplusplus
24395 extern "C"
24396 #endif
24397 /* We use char because int might match the return type of a gcc2
24398 builtin and then its argument prototype would still apply. */
24399 char png_check_sig ();
24400 int
24401 main ()
24402 {
24403 png_check_sig ();
24404 ;
24405 return 0;
24406 }
24407 _ACEOF
24408 rm -f conftest.$ac_objext conftest$ac_exeext
24409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24410 (eval $ac_link) 2>conftest.er1
24411 ac_status=$?
24412 grep -v '^ *+' conftest.er1 >conftest.err
24413 rm -f conftest.er1
24414 cat conftest.err >&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } &&
24417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24419 (eval $ac_try) 2>&5
24420 ac_status=$?
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); }; } &&
24423 { ac_try='test -s conftest$ac_exeext'
24424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24425 (eval $ac_try) 2>&5
24426 ac_status=$?
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); }; }; then
24429 ac_cv_lib_png_png_check_sig=yes
24430 else
24431 echo "$as_me: failed program was:" >&5
24432 sed 's/^/| /' conftest.$ac_ext >&5
24433
24434 ac_cv_lib_png_png_check_sig=no
24435 fi
24436 rm -f conftest.err conftest.$ac_objext \
24437 conftest$ac_exeext conftest.$ac_ext
24438 LIBS=$ac_check_lib_save_LIBS
24439 fi
24440 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24441 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24442 if test $ac_cv_lib_png_png_check_sig = yes; then
24443 PNG_LINK=" -lpng -lz"
24444 fi
24445
24446 fi
24447
24448 if test "x$PNG_LINK" = "x" ; then
24449 if test "$wxUSE_LIBPNG" = "sys" ; then
24450 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24451 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24452 { (exit 1); exit 1; }; }
24453 else
24454 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24455 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24456 wxUSE_LIBPNG=builtin
24457 fi
24458 else
24459 wxUSE_LIBPNG=sys
24460 fi
24461 fi
24462 fi
24463
24464 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24465 fi
24466
24467
24468 JPEG_LINK=
24469 if test "$wxUSE_LIBJPEG" != "no" ; then
24470 cat >>confdefs.h <<\_ACEOF
24471 #define wxUSE_LIBJPEG 1
24472 _ACEOF
24473
24474
24475 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24476 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24477 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24478 wxUSE_LIBJPEG=sys
24479 fi
24480
24481 if test "$wxUSE_MGL" != 1 ; then
24482 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24483 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24484 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24485 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24486 echo $ECHO_N "(cached) $ECHO_C" >&6
24487 else
24488 cat >conftest.$ac_ext <<_ACEOF
24489 /* confdefs.h. */
24490 _ACEOF
24491 cat confdefs.h >>conftest.$ac_ext
24492 cat >>conftest.$ac_ext <<_ACEOF
24493 /* end confdefs.h. */
24494
24495 #undef HAVE_STDLIB_H
24496 #include <stdio.h>
24497 #include <jpeglib.h>
24498
24499 int
24500 main ()
24501 {
24502
24503
24504 ;
24505 return 0;
24506 }
24507 _ACEOF
24508 rm -f conftest.$ac_objext
24509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24510 (eval $ac_compile) 2>conftest.er1
24511 ac_status=$?
24512 grep -v '^ *+' conftest.er1 >conftest.err
24513 rm -f conftest.er1
24514 cat conftest.err >&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } &&
24517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519 (eval $ac_try) 2>&5
24520 ac_status=$?
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); }; } &&
24523 { ac_try='test -s conftest.$ac_objext'
24524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525 (eval $ac_try) 2>&5
24526 ac_status=$?
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); }; }; then
24529 ac_cv_header_jpeglib_h=yes
24530 else
24531 echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24533
24534 ac_cv_header_jpeglib_h=no
24535
24536 fi
24537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24538
24539 fi
24540
24541 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24542 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24543
24544 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24545 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24546 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24547 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24549 else
24550 ac_check_lib_save_LIBS=$LIBS
24551 LIBS="-ljpeg $LIBS"
24552 cat >conftest.$ac_ext <<_ACEOF
24553 /* confdefs.h. */
24554 _ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h. */
24558
24559 /* Override any gcc2 internal prototype to avoid an error. */
24560 #ifdef __cplusplus
24561 extern "C"
24562 #endif
24563 /* We use char because int might match the return type of a gcc2
24564 builtin and then its argument prototype would still apply. */
24565 char jpeg_read_header ();
24566 int
24567 main ()
24568 {
24569 jpeg_read_header ();
24570 ;
24571 return 0;
24572 }
24573 _ACEOF
24574 rm -f conftest.$ac_objext conftest$ac_exeext
24575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24576 (eval $ac_link) 2>conftest.er1
24577 ac_status=$?
24578 grep -v '^ *+' conftest.er1 >conftest.err
24579 rm -f conftest.er1
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } &&
24583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585 (eval $ac_try) 2>&5
24586 ac_status=$?
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); }; } &&
24589 { ac_try='test -s conftest$ac_exeext'
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24592 ac_status=$?
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; }; then
24595 ac_cv_lib_jpeg_jpeg_read_header=yes
24596 else
24597 echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24599
24600 ac_cv_lib_jpeg_jpeg_read_header=no
24601 fi
24602 rm -f conftest.err conftest.$ac_objext \
24603 conftest$ac_exeext conftest.$ac_ext
24604 LIBS=$ac_check_lib_save_LIBS
24605 fi
24606 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24607 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24608 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24609 JPEG_LINK=" -ljpeg"
24610 fi
24611
24612 fi
24613
24614 if test "x$JPEG_LINK" = "x" ; then
24615 if test "$wxUSE_LIBJPEG" = "sys" ; then
24616 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24617 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24618 { (exit 1); exit 1; }; }
24619 else
24620 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24621 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24622 wxUSE_LIBJPEG=builtin
24623 fi
24624 else
24625 wxUSE_LIBJPEG=sys
24626 fi
24627 fi
24628 fi
24629 fi
24630
24631
24632 TIFF_LINK=
24633 TIFF_PREREQ_LINKS=-lm
24634 if test "$wxUSE_LIBTIFF" != "no" ; then
24635 cat >>confdefs.h <<\_ACEOF
24636 #define wxUSE_LIBTIFF 1
24637 _ACEOF
24638
24639
24640 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24641 if test "$wxUSE_LIBJPEG" = "sys"; then
24642 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24643 fi
24644 if test "$wxUSE_ZLIB" = "sys"; then
24645 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24646 fi
24647 if test "${ac_cv_header_tiffio_h+set}" = set; then
24648 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24649 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24650 if test "${ac_cv_header_tiffio_h+set}" = set; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24652 fi
24653 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24654 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24655 else
24656 # Is the header compilable?
24657 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24658 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24659 cat >conftest.$ac_ext <<_ACEOF
24660 /* confdefs.h. */
24661 _ACEOF
24662 cat confdefs.h >>conftest.$ac_ext
24663 cat >>conftest.$ac_ext <<_ACEOF
24664 /* end confdefs.h. */
24665 $ac_includes_default
24666 #include <tiffio.h>
24667 _ACEOF
24668 rm -f conftest.$ac_objext
24669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24670 (eval $ac_compile) 2>conftest.er1
24671 ac_status=$?
24672 grep -v '^ *+' conftest.er1 >conftest.err
24673 rm -f conftest.er1
24674 cat conftest.err >&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); } &&
24677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24679 (eval $ac_try) 2>&5
24680 ac_status=$?
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); }; } &&
24683 { ac_try='test -s conftest.$ac_objext'
24684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24685 (eval $ac_try) 2>&5
24686 ac_status=$?
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; }; then
24689 ac_header_compiler=yes
24690 else
24691 echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24693
24694 ac_header_compiler=no
24695 fi
24696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24698 echo "${ECHO_T}$ac_header_compiler" >&6
24699
24700 # Is the header present?
24701 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24702 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24703 cat >conftest.$ac_ext <<_ACEOF
24704 /* confdefs.h. */
24705 _ACEOF
24706 cat confdefs.h >>conftest.$ac_ext
24707 cat >>conftest.$ac_ext <<_ACEOF
24708 /* end confdefs.h. */
24709 #include <tiffio.h>
24710 _ACEOF
24711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24713 ac_status=$?
24714 grep -v '^ *+' conftest.er1 >conftest.err
24715 rm -f conftest.er1
24716 cat conftest.err >&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); } >/dev/null; then
24719 if test -s conftest.err; then
24720 ac_cpp_err=$ac_c_preproc_warn_flag
24721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24722 else
24723 ac_cpp_err=
24724 fi
24725 else
24726 ac_cpp_err=yes
24727 fi
24728 if test -z "$ac_cpp_err"; then
24729 ac_header_preproc=yes
24730 else
24731 echo "$as_me: failed program was:" >&5
24732 sed 's/^/| /' conftest.$ac_ext >&5
24733
24734 ac_header_preproc=no
24735 fi
24736 rm -f conftest.err conftest.$ac_ext
24737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24738 echo "${ECHO_T}$ac_header_preproc" >&6
24739
24740 # So? What about this header?
24741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24742 yes:no: )
24743 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24744 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24745 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24746 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24747 ac_header_preproc=yes
24748 ;;
24749 no:yes:* )
24750 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24751 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
24752 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
24753 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
24754 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24755 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24756 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
24757 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
24758 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24759 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
24760 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24761 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
24762 (
24763 cat <<\_ASBOX
24764 ## ----------------------------------------- ##
24765 ## Report this to wx-dev@lists.wxwidgets.org ##
24766 ## ----------------------------------------- ##
24767 _ASBOX
24768 ) |
24769 sed "s/^/$as_me: WARNING: /" >&2
24770 ;;
24771 esac
24772 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24773 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24774 if test "${ac_cv_header_tiffio_h+set}" = set; then
24775 echo $ECHO_N "(cached) $ECHO_C" >&6
24776 else
24777 ac_cv_header_tiffio_h=$ac_header_preproc
24778 fi
24779 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24780 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24781
24782 fi
24783 if test $ac_cv_header_tiffio_h = yes; then
24784
24785 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24786 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24787 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24788 echo $ECHO_N "(cached) $ECHO_C" >&6
24789 else
24790 ac_check_lib_save_LIBS=$LIBS
24791 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24792 cat >conftest.$ac_ext <<_ACEOF
24793 /* confdefs.h. */
24794 _ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h. */
24798
24799 /* Override any gcc2 internal prototype to avoid an error. */
24800 #ifdef __cplusplus
24801 extern "C"
24802 #endif
24803 /* We use char because int might match the return type of a gcc2
24804 builtin and then its argument prototype would still apply. */
24805 char TIFFError ();
24806 int
24807 main ()
24808 {
24809 TIFFError ();
24810 ;
24811 return 0;
24812 }
24813 _ACEOF
24814 rm -f conftest.$ac_objext conftest$ac_exeext
24815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24816 (eval $ac_link) 2>conftest.er1
24817 ac_status=$?
24818 grep -v '^ *+' conftest.er1 >conftest.err
24819 rm -f conftest.er1
24820 cat conftest.err >&5
24821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); } &&
24823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24825 (eval $ac_try) 2>&5
24826 ac_status=$?
24827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); }; } &&
24829 { ac_try='test -s conftest$ac_exeext'
24830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24831 (eval $ac_try) 2>&5
24832 ac_status=$?
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); }; }; then
24835 ac_cv_lib_tiff_TIFFError=yes
24836 else
24837 echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.$ac_ext >&5
24839
24840 ac_cv_lib_tiff_TIFFError=no
24841 fi
24842 rm -f conftest.err conftest.$ac_objext \
24843 conftest$ac_exeext conftest.$ac_ext
24844 LIBS=$ac_check_lib_save_LIBS
24845 fi
24846 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24847 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24848 if test $ac_cv_lib_tiff_TIFFError = yes; then
24849 TIFF_LINK=" -ltiff"
24850 fi
24851
24852
24853
24854 fi
24855
24856
24857
24858 if test "x$TIFF_LINK" = "x" ; then
24859 if test "$wxUSE_LIBTIFF" = "sys" ; then
24860 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24861 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24862 { (exit 1); exit 1; }; }
24863 else
24864 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24865 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24866 wxUSE_LIBTIFF=builtin
24867 fi
24868 else
24869 wxUSE_LIBTIFF=sys
24870 fi
24871 fi
24872 fi
24873
24874
24875 if test "$wxUSE_WCHAR_T" != "yes"; then
24876 if test "$wxUSE_EXPAT" != "no"; then
24877 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24878 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24879 wxUSE_EXPAT=no
24880 fi
24881 if test "$wxUSE_XML" != "no"; then
24882 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24883 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24884 wxUSE_XML=no
24885 fi
24886 fi
24887
24888 if test "$wxUSE_EXPAT" != "no"; then
24889 wxUSE_XML=yes
24890 cat >>confdefs.h <<\_ACEOF
24891 #define wxUSE_EXPAT 1
24892 _ACEOF
24893
24894 cat >>confdefs.h <<\_ACEOF
24895 #define wxUSE_XML 1
24896 _ACEOF
24897
24898
24899 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24900 if test "${ac_cv_header_expat_h+set}" = set; then
24901 echo "$as_me:$LINENO: checking for expat.h" >&5
24902 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24903 if test "${ac_cv_header_expat_h+set}" = set; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
24905 fi
24906 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24907 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24908 else
24909 # Is the header compilable?
24910 echo "$as_me:$LINENO: checking expat.h usability" >&5
24911 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
24912 cat >conftest.$ac_ext <<_ACEOF
24913 /* confdefs.h. */
24914 _ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h. */
24918 $ac_includes_default
24919 #include <expat.h>
24920 _ACEOF
24921 rm -f conftest.$ac_objext
24922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24923 (eval $ac_compile) 2>conftest.er1
24924 ac_status=$?
24925 grep -v '^ *+' conftest.er1 >conftest.err
24926 rm -f conftest.er1
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } &&
24930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24932 (eval $ac_try) 2>&5
24933 ac_status=$?
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); }; } &&
24936 { ac_try='test -s conftest.$ac_objext'
24937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938 (eval $ac_try) 2>&5
24939 ac_status=$?
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); }; }; then
24942 ac_header_compiler=yes
24943 else
24944 echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.$ac_ext >&5
24946
24947 ac_header_compiler=no
24948 fi
24949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24951 echo "${ECHO_T}$ac_header_compiler" >&6
24952
24953 # Is the header present?
24954 echo "$as_me:$LINENO: checking expat.h presence" >&5
24955 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
24956 cat >conftest.$ac_ext <<_ACEOF
24957 /* confdefs.h. */
24958 _ACEOF
24959 cat confdefs.h >>conftest.$ac_ext
24960 cat >>conftest.$ac_ext <<_ACEOF
24961 /* end confdefs.h. */
24962 #include <expat.h>
24963 _ACEOF
24964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24966 ac_status=$?
24967 grep -v '^ *+' conftest.er1 >conftest.err
24968 rm -f conftest.er1
24969 cat conftest.err >&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); } >/dev/null; then
24972 if test -s conftest.err; then
24973 ac_cpp_err=$ac_c_preproc_warn_flag
24974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24975 else
24976 ac_cpp_err=
24977 fi
24978 else
24979 ac_cpp_err=yes
24980 fi
24981 if test -z "$ac_cpp_err"; then
24982 ac_header_preproc=yes
24983 else
24984 echo "$as_me: failed program was:" >&5
24985 sed 's/^/| /' conftest.$ac_ext >&5
24986
24987 ac_header_preproc=no
24988 fi
24989 rm -f conftest.err conftest.$ac_ext
24990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24991 echo "${ECHO_T}$ac_header_preproc" >&6
24992
24993 # So? What about this header?
24994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24995 yes:no: )
24996 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
24997 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24998 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
24999 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25000 ac_header_preproc=yes
25001 ;;
25002 no:yes:* )
25003 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25004 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
25005 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25006 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25007 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25008 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25009 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25010 echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
25011 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25012 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
25013 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25014 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
25015 (
25016 cat <<\_ASBOX
25017 ## ----------------------------------------- ##
25018 ## Report this to wx-dev@lists.wxwidgets.org ##
25019 ## ----------------------------------------- ##
25020 _ASBOX
25021 ) |
25022 sed "s/^/$as_me: WARNING: /" >&2
25023 ;;
25024 esac
25025 echo "$as_me:$LINENO: checking for expat.h" >&5
25026 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25027 if test "${ac_cv_header_expat_h+set}" = set; then
25028 echo $ECHO_N "(cached) $ECHO_C" >&6
25029 else
25030 ac_cv_header_expat_h=$ac_header_preproc
25031 fi
25032 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25033 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25034
25035 fi
25036 if test $ac_cv_header_expat_h = yes; then
25037 found_expat_h=1
25038 fi
25039
25040
25041 if test "x$found_expat_h" = "x1"; then
25042 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25043 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25044 if test "${wx_cv_expat_is_not_broken+set}" = set; then
25045 echo $ECHO_N "(cached) $ECHO_C" >&6
25046 else
25047
25048
25049
25050 ac_ext=cc
25051 ac_cpp='$CXXCPP $CPPFLAGS'
25052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25055
25056 cat >conftest.$ac_ext <<_ACEOF
25057 /* confdefs.h. */
25058 _ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25062 #include <expat.h>
25063 int
25064 main ()
25065 {
25066
25067 ;
25068 return 0;
25069 }
25070 _ACEOF
25071 rm -f conftest.$ac_objext
25072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25073 (eval $ac_compile) 2>conftest.er1
25074 ac_status=$?
25075 grep -v '^ *+' conftest.er1 >conftest.err
25076 rm -f conftest.er1
25077 cat conftest.err >&5
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); } &&
25080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082 (eval $ac_try) 2>&5
25083 ac_status=$?
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); }; } &&
25086 { ac_try='test -s conftest.$ac_objext'
25087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25088 (eval $ac_try) 2>&5
25089 ac_status=$?
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); }; }; then
25092 wx_cv_expat_is_not_broken=yes
25093 else
25094 echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25096
25097 wx_cv_expat_is_not_broken=no
25098
25099 fi
25100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25101 ac_ext=c
25102 ac_cpp='$CPP $CPPFLAGS'
25103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25106
25107
25108
25109 fi
25110 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25111 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25112 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25113 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25114 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25115 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25116 echo $ECHO_N "(cached) $ECHO_C" >&6
25117 else
25118 ac_check_lib_save_LIBS=$LIBS
25119 LIBS="-lexpat $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 XML_ParserCreate ();
25134 int
25135 main ()
25136 {
25137 XML_ParserCreate ();
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" || test ! -s conftest.err'
25152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25153 (eval $ac_try) 2>&5
25154 ac_status=$?
25155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); }; } &&
25157 { ac_try='test -s conftest$ac_exeext'
25158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159 (eval $ac_try) 2>&5
25160 ac_status=$?
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; }; then
25163 ac_cv_lib_expat_XML_ParserCreate=yes
25164 else
25165 echo "$as_me: failed program was:" >&5
25166 sed 's/^/| /' conftest.$ac_ext >&5
25167
25168 ac_cv_lib_expat_XML_ParserCreate=no
25169 fi
25170 rm -f conftest.err conftest.$ac_objext \
25171 conftest$ac_exeext conftest.$ac_ext
25172 LIBS=$ac_check_lib_save_LIBS
25173 fi
25174 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25175 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25176 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25177 EXPAT_LINK=" -lexpat"
25178 fi
25179
25180 fi
25181 fi
25182 if test "x$EXPAT_LINK" = "x" ; then
25183 if test "$wxUSE_EXPAT" = "sys" ; then
25184 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25185 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25186 { (exit 1); exit 1; }; }
25187 else
25188 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25189 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25190 wxUSE_EXPAT=builtin
25191 fi
25192 else
25193 wxUSE_EXPAT=sys
25194 fi
25195 fi
25196 if test "$wxUSE_EXPAT" = "builtin" ; then
25197
25198
25199 subdirs="$subdirs src/expat"
25200
25201 fi
25202 fi
25203
25204
25205
25206 if test "$wxUSE_LIBMSPACK" != "no"; then
25207 if test "${ac_cv_header_mspack_h+set}" = set; then
25208 echo "$as_me:$LINENO: checking for mspack.h" >&5
25209 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25210 if test "${ac_cv_header_mspack_h+set}" = set; then
25211 echo $ECHO_N "(cached) $ECHO_C" >&6
25212 fi
25213 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25214 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25215 else
25216 # Is the header compilable?
25217 echo "$as_me:$LINENO: checking mspack.h usability" >&5
25218 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25219 cat >conftest.$ac_ext <<_ACEOF
25220 /* confdefs.h. */
25221 _ACEOF
25222 cat confdefs.h >>conftest.$ac_ext
25223 cat >>conftest.$ac_ext <<_ACEOF
25224 /* end confdefs.h. */
25225 $ac_includes_default
25226 #include <mspack.h>
25227 _ACEOF
25228 rm -f conftest.$ac_objext
25229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25230 (eval $ac_compile) 2>conftest.er1
25231 ac_status=$?
25232 grep -v '^ *+' conftest.er1 >conftest.err
25233 rm -f conftest.er1
25234 cat conftest.err >&5
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } &&
25237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25239 (eval $ac_try) 2>&5
25240 ac_status=$?
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); }; } &&
25243 { ac_try='test -s conftest.$ac_objext'
25244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245 (eval $ac_try) 2>&5
25246 ac_status=$?
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); }; }; then
25249 ac_header_compiler=yes
25250 else
25251 echo "$as_me: failed program was:" >&5
25252 sed 's/^/| /' conftest.$ac_ext >&5
25253
25254 ac_header_compiler=no
25255 fi
25256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25258 echo "${ECHO_T}$ac_header_compiler" >&6
25259
25260 # Is the header present?
25261 echo "$as_me:$LINENO: checking mspack.h presence" >&5
25262 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25263 cat >conftest.$ac_ext <<_ACEOF
25264 /* confdefs.h. */
25265 _ACEOF
25266 cat confdefs.h >>conftest.$ac_ext
25267 cat >>conftest.$ac_ext <<_ACEOF
25268 /* end confdefs.h. */
25269 #include <mspack.h>
25270 _ACEOF
25271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25273 ac_status=$?
25274 grep -v '^ *+' conftest.er1 >conftest.err
25275 rm -f conftest.er1
25276 cat conftest.err >&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); } >/dev/null; then
25279 if test -s conftest.err; then
25280 ac_cpp_err=$ac_c_preproc_warn_flag
25281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25282 else
25283 ac_cpp_err=
25284 fi
25285 else
25286 ac_cpp_err=yes
25287 fi
25288 if test -z "$ac_cpp_err"; then
25289 ac_header_preproc=yes
25290 else
25291 echo "$as_me: failed program was:" >&5
25292 sed 's/^/| /' conftest.$ac_ext >&5
25293
25294 ac_header_preproc=no
25295 fi
25296 rm -f conftest.err conftest.$ac_ext
25297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25298 echo "${ECHO_T}$ac_header_preproc" >&6
25299
25300 # So? What about this header?
25301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25302 yes:no: )
25303 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25304 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25305 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25306 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25307 ac_header_preproc=yes
25308 ;;
25309 no:yes:* )
25310 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25311 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
25312 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25313 echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25314 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25315 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25316 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25317 echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
25318 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25319 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
25320 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25321 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
25322 (
25323 cat <<\_ASBOX
25324 ## ----------------------------------------- ##
25325 ## Report this to wx-dev@lists.wxwidgets.org ##
25326 ## ----------------------------------------- ##
25327 _ASBOX
25328 ) |
25329 sed "s/^/$as_me: WARNING: /" >&2
25330 ;;
25331 esac
25332 echo "$as_me:$LINENO: checking for mspack.h" >&5
25333 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25334 if test "${ac_cv_header_mspack_h+set}" = set; then
25335 echo $ECHO_N "(cached) $ECHO_C" >&6
25336 else
25337 ac_cv_header_mspack_h=$ac_header_preproc
25338 fi
25339 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25340 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25341
25342 fi
25343 if test $ac_cv_header_mspack_h = yes; then
25344 found_mspack_h=1
25345 fi
25346
25347
25348 if test "x$found_mspack_h" = "x1"; then
25349 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25350 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25351 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25352 echo $ECHO_N "(cached) $ECHO_C" >&6
25353 else
25354 ac_check_lib_save_LIBS=$LIBS
25355 LIBS="-lmspack $LIBS"
25356 cat >conftest.$ac_ext <<_ACEOF
25357 /* confdefs.h. */
25358 _ACEOF
25359 cat confdefs.h >>conftest.$ac_ext
25360 cat >>conftest.$ac_ext <<_ACEOF
25361 /* end confdefs.h. */
25362
25363 /* Override any gcc2 internal prototype to avoid an error. */
25364 #ifdef __cplusplus
25365 extern "C"
25366 #endif
25367 /* We use char because int might match the return type of a gcc2
25368 builtin and then its argument prototype would still apply. */
25369 char mspack_create_chm_decompressor ();
25370 int
25371 main ()
25372 {
25373 mspack_create_chm_decompressor ();
25374 ;
25375 return 0;
25376 }
25377 _ACEOF
25378 rm -f conftest.$ac_objext conftest$ac_exeext
25379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25380 (eval $ac_link) 2>conftest.er1
25381 ac_status=$?
25382 grep -v '^ *+' conftest.er1 >conftest.err
25383 rm -f conftest.er1
25384 cat conftest.err >&5
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); } &&
25387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25389 (eval $ac_try) 2>&5
25390 ac_status=$?
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); }; } &&
25393 { ac_try='test -s conftest$ac_exeext'
25394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25395 (eval $ac_try) 2>&5
25396 ac_status=$?
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); }; }; then
25399 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25400 else
25401 echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25403
25404 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25405 fi
25406 rm -f conftest.err conftest.$ac_objext \
25407 conftest$ac_exeext conftest.$ac_ext
25408 LIBS=$ac_check_lib_save_LIBS
25409 fi
25410 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25411 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25412 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25413 MSPACK_LINK=" -lmspack"
25414 fi
25415
25416 fi
25417 if test "x$MSPACK_LINK" = "x" ; then
25418 wxUSE_LIBMSPACK=no
25419 fi
25420 fi
25421
25422 if test "$wxUSE_LIBMSPACK" != "no"; then
25423 cat >>confdefs.h <<\_ACEOF
25424 #define wxUSE_LIBMSPACK 1
25425 _ACEOF
25426
25427 fi
25428
25429
25430
25431 AFMINSTALL=
25432 WIN32INSTALL=
25433
25434 TOOLKIT=
25435 TOOLKIT_INCLUDE=
25436 WIDGET_SET=
25437
25438 if test "$USE_WIN32" = 1 ; then
25439
25440 for ac_header in w32api.h
25441 do
25442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25444 echo "$as_me:$LINENO: checking for $ac_header" >&5
25445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25447 echo $ECHO_N "(cached) $ECHO_C" >&6
25448 fi
25449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25451 else
25452 # Is the header compilable?
25453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25455 cat >conftest.$ac_ext <<_ACEOF
25456 /* confdefs.h. */
25457 _ACEOF
25458 cat confdefs.h >>conftest.$ac_ext
25459 cat >>conftest.$ac_ext <<_ACEOF
25460 /* end confdefs.h. */
25461 $ac_includes_default
25462 #include <$ac_header>
25463 _ACEOF
25464 rm -f conftest.$ac_objext
25465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25466 (eval $ac_compile) 2>conftest.er1
25467 ac_status=$?
25468 grep -v '^ *+' conftest.er1 >conftest.err
25469 rm -f conftest.er1
25470 cat conftest.err >&5
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); } &&
25473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475 (eval $ac_try) 2>&5
25476 ac_status=$?
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); }; } &&
25479 { ac_try='test -s conftest.$ac_objext'
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; }; then
25485 ac_header_compiler=yes
25486 else
25487 echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25489
25490 ac_header_compiler=no
25491 fi
25492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25494 echo "${ECHO_T}$ac_header_compiler" >&6
25495
25496 # Is the header present?
25497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25499 cat >conftest.$ac_ext <<_ACEOF
25500 /* confdefs.h. */
25501 _ACEOF
25502 cat confdefs.h >>conftest.$ac_ext
25503 cat >>conftest.$ac_ext <<_ACEOF
25504 /* end confdefs.h. */
25505 #include <$ac_header>
25506 _ACEOF
25507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25509 ac_status=$?
25510 grep -v '^ *+' conftest.er1 >conftest.err
25511 rm -f conftest.er1
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } >/dev/null; then
25515 if test -s conftest.err; then
25516 ac_cpp_err=$ac_c_preproc_warn_flag
25517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25518 else
25519 ac_cpp_err=
25520 fi
25521 else
25522 ac_cpp_err=yes
25523 fi
25524 if test -z "$ac_cpp_err"; then
25525 ac_header_preproc=yes
25526 else
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25529
25530 ac_header_preproc=no
25531 fi
25532 rm -f conftest.err conftest.$ac_ext
25533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25534 echo "${ECHO_T}$ac_header_preproc" >&6
25535
25536 # So? What about this header?
25537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25538 yes:no: )
25539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25543 ac_header_preproc=yes
25544 ;;
25545 no:yes:* )
25546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25558 (
25559 cat <<\_ASBOX
25560 ## ----------------------------------------- ##
25561 ## Report this to wx-dev@lists.wxwidgets.org ##
25562 ## ----------------------------------------- ##
25563 _ASBOX
25564 ) |
25565 sed "s/^/$as_me: WARNING: /" >&2
25566 ;;
25567 esac
25568 echo "$as_me:$LINENO: checking for $ac_header" >&5
25569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25571 echo $ECHO_N "(cached) $ECHO_C" >&6
25572 else
25573 eval "$as_ac_Header=\$ac_header_preproc"
25574 fi
25575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25577
25578 fi
25579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25580 cat >>confdefs.h <<_ACEOF
25581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25582 _ACEOF
25583
25584 fi
25585
25586 done
25587
25588 if test "${ac_cv_header_windows_h+set}" = set; then
25589 echo "$as_me:$LINENO: checking for windows.h" >&5
25590 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25591 if test "${ac_cv_header_windows_h+set}" = set; then
25592 echo $ECHO_N "(cached) $ECHO_C" >&6
25593 fi
25594 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25595 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25596 else
25597 # Is the header compilable?
25598 echo "$as_me:$LINENO: checking windows.h usability" >&5
25599 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25600 cat >conftest.$ac_ext <<_ACEOF
25601 /* confdefs.h. */
25602 _ACEOF
25603 cat confdefs.h >>conftest.$ac_ext
25604 cat >>conftest.$ac_ext <<_ACEOF
25605 /* end confdefs.h. */
25606 $ac_includes_default
25607 #include <windows.h>
25608 _ACEOF
25609 rm -f conftest.$ac_objext
25610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25611 (eval $ac_compile) 2>conftest.er1
25612 ac_status=$?
25613 grep -v '^ *+' conftest.er1 >conftest.err
25614 rm -f conftest.er1
25615 cat conftest.err >&5
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } &&
25618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620 (eval $ac_try) 2>&5
25621 ac_status=$?
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); }; } &&
25624 { ac_try='test -s conftest.$ac_objext'
25625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25626 (eval $ac_try) 2>&5
25627 ac_status=$?
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); }; }; then
25630 ac_header_compiler=yes
25631 else
25632 echo "$as_me: failed program was:" >&5
25633 sed 's/^/| /' conftest.$ac_ext >&5
25634
25635 ac_header_compiler=no
25636 fi
25637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25639 echo "${ECHO_T}$ac_header_compiler" >&6
25640
25641 # Is the header present?
25642 echo "$as_me:$LINENO: checking windows.h presence" >&5
25643 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25644 cat >conftest.$ac_ext <<_ACEOF
25645 /* confdefs.h. */
25646 _ACEOF
25647 cat confdefs.h >>conftest.$ac_ext
25648 cat >>conftest.$ac_ext <<_ACEOF
25649 /* end confdefs.h. */
25650 #include <windows.h>
25651 _ACEOF
25652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25654 ac_status=$?
25655 grep -v '^ *+' conftest.er1 >conftest.err
25656 rm -f conftest.er1
25657 cat conftest.err >&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); } >/dev/null; then
25660 if test -s conftest.err; then
25661 ac_cpp_err=$ac_c_preproc_warn_flag
25662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25663 else
25664 ac_cpp_err=
25665 fi
25666 else
25667 ac_cpp_err=yes
25668 fi
25669 if test -z "$ac_cpp_err"; then
25670 ac_header_preproc=yes
25671 else
25672 echo "$as_me: failed program was:" >&5
25673 sed 's/^/| /' conftest.$ac_ext >&5
25674
25675 ac_header_preproc=no
25676 fi
25677 rm -f conftest.err conftest.$ac_ext
25678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25679 echo "${ECHO_T}$ac_header_preproc" >&6
25680
25681 # So? What about this header?
25682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25683 yes:no: )
25684 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25685 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25686 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25687 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25688 ac_header_preproc=yes
25689 ;;
25690 no:yes:* )
25691 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25692 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
25693 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25694 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25695 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25696 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25697 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25698 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
25699 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25700 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
25701 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25702 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
25703 (
25704 cat <<\_ASBOX
25705 ## ----------------------------------------- ##
25706 ## Report this to wx-dev@lists.wxwidgets.org ##
25707 ## ----------------------------------------- ##
25708 _ASBOX
25709 ) |
25710 sed "s/^/$as_me: WARNING: /" >&2
25711 ;;
25712 esac
25713 echo "$as_me:$LINENO: checking for windows.h" >&5
25714 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25715 if test "${ac_cv_header_windows_h+set}" = set; then
25716 echo $ECHO_N "(cached) $ECHO_C" >&6
25717 else
25718 ac_cv_header_windows_h=$ac_header_preproc
25719 fi
25720 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25721 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25722
25723 fi
25724 if test $ac_cv_header_windows_h = yes; then
25725 :
25726 else
25727
25728 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25729 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25730 { (exit 1); exit 1; }; }
25731
25732 fi
25733
25734
25735
25736 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25737
25738 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25739 LIBS="$LIBS -loleacc"
25740 fi
25741
25742 case "${host}" in
25743 *-*-cygwin* )
25744 LIBS="$LIBS -lkernel32 -luser32"
25745 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
25746 esac
25747
25748 if test "$wxUSE_ODBC" = "sys" ; then
25749 wxUSE_ODBC = "yes"
25750 fi
25751 if test "$wxUSE_ODBC" = "yes" ; then
25752 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25753 cat >>confdefs.h <<\_ACEOF
25754 #define wxUSE_ODBC 1
25755 _ACEOF
25756
25757 fi
25758
25759 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
25760 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25761
25762 WIN32INSTALL=win32install
25763 fi
25764
25765 if test "$wxUSE_GUI" = "yes"; then
25766 USE_GUI=1
25767
25768 GUI_TK_LIBRARY=
25769
25770 WXGTK12=
25771 WXGTK127=
25772 WXGTK20=
25773 WXGPE=
25774
25775 if test "$wxUSE_COCOA" = 1 ; then
25776 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25777 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25778 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25779 wxUSE_PRINTING_ARCHITECTURE=no
25780 fi
25781 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25782 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25783 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25784 wxUSE_DRAG_AND_DROP=no
25785 fi
25786 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25787 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25788 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25789 wxUSE_DRAGIMAGE=no
25790 fi
25791 fi
25792
25793 if test "$wxUSE_MSW" = 1 ; then
25794 TOOLKIT=MSW
25795 GUIDIST=MSW_DIST
25796
25797 case "${host}" in
25798 *-*-mingw32* )
25799 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25800 esac
25801 fi
25802
25803 if test "$wxUSE_GTK" = 1; then
25804 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25805 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25806
25807 gtk_version_cached=1
25808 if test "${wx_cv_lib_gtk+set}" = set; then
25809 echo $ECHO_N "(cached) $ECHO_C" >&6
25810 else
25811
25812 gtk_version_cached=0
25813 echo "$as_me:$LINENO: result: " >&5
25814 echo "${ECHO_T}" >&6
25815
25816 GTK_MODULES=
25817 if test "$wxUSE_THREADS" = "yes"; then
25818 GTK_MODULES=gthread
25819 fi
25820
25821 wx_cv_lib_gtk=
25822 if test "x$wxGTK_VERSION" != "x1"
25823 then
25824 case "${host}" in
25825 *-*-solaris2* )
25826 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25827 enable_gtktest=no
25828 fi
25829 esac
25830
25831 # Check whether --enable-gtktest or --disable-gtktest was given.
25832 if test "${enable_gtktest+set}" = set; then
25833 enableval="$enable_gtktest"
25834
25835 else
25836 enable_gtktest=yes
25837 fi;
25838
25839 pkg_config_args=gtk+-2.0
25840 for module in . $GTK_MODULES
25841 do
25842 case "$module" in
25843 gthread)
25844 pkg_config_args="$pkg_config_args gthread-2.0"
25845 ;;
25846 esac
25847 done
25848
25849 no_gtk=""
25850
25851 # Extract the first word of "pkg-config", so it can be a program name with args.
25852 set dummy pkg-config; ac_word=$2
25853 echo "$as_me:$LINENO: checking for $ac_word" >&5
25854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25855 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25856 echo $ECHO_N "(cached) $ECHO_C" >&6
25857 else
25858 case $PKG_CONFIG in
25859 [\\/]* | ?:[\\/]*)
25860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25861 ;;
25862 *)
25863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25864 for as_dir in $PATH
25865 do
25866 IFS=$as_save_IFS
25867 test -z "$as_dir" && as_dir=.
25868 for ac_exec_ext in '' $ac_executable_extensions; do
25869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25870 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25872 break 2
25873 fi
25874 done
25875 done
25876
25877 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25878 ;;
25879 esac
25880 fi
25881 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25882
25883 if test -n "$PKG_CONFIG"; then
25884 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25885 echo "${ECHO_T}$PKG_CONFIG" >&6
25886 else
25887 echo "$as_me:$LINENO: result: no" >&5
25888 echo "${ECHO_T}no" >&6
25889 fi
25890
25891
25892 if test x$PKG_CONFIG != xno ; then
25893 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25894 :
25895 else
25896 echo "*** pkg-config too old; version 0.7 or better required."
25897 no_gtk=yes
25898 PKG_CONFIG=no
25899 fi
25900 else
25901 no_gtk=yes
25902 fi
25903
25904 min_gtk_version=2.0.0
25905 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25906 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25907
25908 if test x$PKG_CONFIG != xno ; then
25909 ## don't try to run the test against uninstalled libtool libs
25910 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25911 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25912 enable_gtktest=no
25913 fi
25914
25915 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
25916 :
25917 else
25918 no_gtk=yes
25919 fi
25920 fi
25921
25922 if test x"$no_gtk" = x ; then
25923 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
25924 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
25925 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25926 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25927 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25928 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25929 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25930 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25931 if test "x$enable_gtktest" = "xyes" ; then
25932 ac_save_CFLAGS="$CFLAGS"
25933 ac_save_LIBS="$LIBS"
25934 CFLAGS="$CFLAGS $GTK_CFLAGS"
25935 LIBS="$GTK_LIBS $LIBS"
25936 rm -f conf.gtktest
25937 if test "$cross_compiling" = yes; then
25938 echo $ac_n "cross compiling; assumed OK... $ac_c"
25939 else
25940 cat >conftest.$ac_ext <<_ACEOF
25941 /* confdefs.h. */
25942 _ACEOF
25943 cat confdefs.h >>conftest.$ac_ext
25944 cat >>conftest.$ac_ext <<_ACEOF
25945 /* end confdefs.h. */
25946
25947 #include <gtk/gtk.h>
25948 #include <stdio.h>
25949 #include <stdlib.h>
25950
25951 int
25952 main ()
25953 {
25954 int major, minor, micro;
25955 char *tmp_version;
25956
25957 system ("touch conf.gtktest");
25958
25959 /* HP/UX 9 (%@#!) writes to sscanf strings */
25960 tmp_version = g_strdup("$min_gtk_version");
25961 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25962 printf("%s, bad version string\n", "$min_gtk_version");
25963 exit(1);
25964 }
25965
25966 if ((gtk_major_version != $gtk_config_major_version) ||
25967 (gtk_minor_version != $gtk_config_minor_version) ||
25968 (gtk_micro_version != $gtk_config_micro_version))
25969 {
25970 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25971 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25972 gtk_major_version, gtk_minor_version, gtk_micro_version);
25973 printf ("*** was found! If pkg-config was correct, then it is best\n");
25974 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25975 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25976 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25977 printf("*** required on your system.\n");
25978 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
25979 printf("*** to point to the correct configuration files\n");
25980 }
25981 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25982 (gtk_minor_version != GTK_MINOR_VERSION) ||
25983 (gtk_micro_version != GTK_MICRO_VERSION))
25984 {
25985 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25986 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25987 printf("*** library (version %d.%d.%d)\n",
25988 gtk_major_version, gtk_minor_version, gtk_micro_version);
25989 }
25990 else
25991 {
25992 if ((gtk_major_version > major) ||
25993 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25994 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25995 {
25996 return 0;
25997 }
25998 else
25999 {
26000 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26001 gtk_major_version, gtk_minor_version, gtk_micro_version);
26002 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26003 major, minor, micro);
26004 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26005 printf("***\n");
26006 printf("*** If you have already installed a sufficiently new version, this error\n");
26007 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26008 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26009 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26010 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26011 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26012 printf("*** so that the correct libraries are found at run-time))\n");
26013 }
26014 }
26015 return 1;
26016 }
26017
26018 _ACEOF
26019 rm -f conftest$ac_exeext
26020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26021 (eval $ac_link) 2>&5
26022 ac_status=$?
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026 (eval $ac_try) 2>&5
26027 ac_status=$?
26028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); }; }; then
26030 :
26031 else
26032 echo "$as_me: program exited with status $ac_status" >&5
26033 echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26035
26036 ( exit $ac_status )
26037 no_gtk=yes
26038 fi
26039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26040 fi
26041 CFLAGS="$ac_save_CFLAGS"
26042 LIBS="$ac_save_LIBS"
26043 fi
26044 fi
26045 if test "x$no_gtk" = x ; then
26046 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26047 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26048 wx_cv_lib_gtk=2.0
26049 else
26050 echo "$as_me:$LINENO: result: no" >&5
26051 echo "${ECHO_T}no" >&6
26052 if test "$PKG_CONFIG" = "no" ; then
26053 echo "*** A new enough version of pkg-config was not found."
26054 echo "*** See http://pkgconfig.sourceforge.net"
26055 else
26056 if test -f conf.gtktest ; then
26057 :
26058 else
26059 echo "*** Could not run GTK+ test program, checking why..."
26060 ac_save_CFLAGS="$CFLAGS"
26061 ac_save_LIBS="$LIBS"
26062 CFLAGS="$CFLAGS $GTK_CFLAGS"
26063 LIBS="$LIBS $GTK_LIBS"
26064 cat >conftest.$ac_ext <<_ACEOF
26065 /* confdefs.h. */
26066 _ACEOF
26067 cat confdefs.h >>conftest.$ac_ext
26068 cat >>conftest.$ac_ext <<_ACEOF
26069 /* end confdefs.h. */
26070
26071 #include <gtk/gtk.h>
26072 #include <stdio.h>
26073
26074 int
26075 main ()
26076 {
26077 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26078 ;
26079 return 0;
26080 }
26081 _ACEOF
26082 rm -f conftest.$ac_objext conftest$ac_exeext
26083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26084 (eval $ac_link) 2>conftest.er1
26085 ac_status=$?
26086 grep -v '^ *+' conftest.er1 >conftest.err
26087 rm -f conftest.er1
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } &&
26091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093 (eval $ac_try) 2>&5
26094 ac_status=$?
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); }; } &&
26097 { ac_try='test -s conftest$ac_exeext'
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5
26100 ac_status=$?
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; }; then
26103 echo "*** The test program compiled, but did not run. This usually means"
26104 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26105 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26106 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26107 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26108 echo "*** is required on your system"
26109 echo "***"
26110 echo "*** If you have an old version installed, it is best to remove it, although"
26111 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26112 else
26113 echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26115
26116 echo "*** The test program failed to compile or link. See the file config.log for the"
26117 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26118 fi
26119 rm -f conftest.err conftest.$ac_objext \
26120 conftest$ac_exeext conftest.$ac_ext
26121 CFLAGS="$ac_save_CFLAGS"
26122 LIBS="$ac_save_LIBS"
26123 fi
26124 fi
26125 GTK_CFLAGS=""
26126 GTK_LIBS=""
26127 :
26128 fi
26129
26130
26131 rm -f conf.gtktest
26132
26133
26134 case "${host}" in
26135 *-*-solaris2* )
26136 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26137 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26138 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26139 fi
26140 if test "$wxUSE_SHARED" != "yes"; then
26141 GTK_LIBS="$GTK_LIBS -lX11"
26142 fi
26143 esac
26144 fi
26145
26146 if test -z "$wx_cv_lib_gtk"; then
26147 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
26148
26149 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26150 if test "${with_gtk_prefix+set}" = set; then
26151 withval="$with_gtk_prefix"
26152 gtk_config_prefix="$withval"
26153 else
26154 gtk_config_prefix=""
26155 fi;
26156
26157 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26158 if test "${with_gtk_exec_prefix+set}" = set; then
26159 withval="$with_gtk_exec_prefix"
26160 gtk_config_exec_prefix="$withval"
26161 else
26162 gtk_config_exec_prefix=""
26163 fi;
26164 # Check whether --enable-gtktest or --disable-gtktest was given.
26165 if test "${enable_gtktest+set}" = set; then
26166 enableval="$enable_gtktest"
26167
26168 else
26169 enable_gtktest=yes
26170 fi;
26171
26172 for module in . $GTK_MODULES
26173 do
26174 case "$module" in
26175 gthread)
26176 gtk_config_args="$gtk_config_args gthread"
26177 ;;
26178 esac
26179 done
26180
26181 if test x$gtk_config_exec_prefix != x ; then
26182 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26183 if test x${GTK_CONFIG+set} != xset ; then
26184 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26185 fi
26186 fi
26187 if test x$gtk_config_prefix != x ; then
26188 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26189 if test x${GTK_CONFIG+set} != xset ; then
26190 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26191 fi
26192 fi
26193
26194 # Extract the first word of "gtk-config", so it can be a program name with args.
26195 set dummy gtk-config; ac_word=$2
26196 echo "$as_me:$LINENO: checking for $ac_word" >&5
26197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26198 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26199 echo $ECHO_N "(cached) $ECHO_C" >&6
26200 else
26201 case $GTK_CONFIG in
26202 [\\/]* | ?:[\\/]*)
26203 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26204 ;;
26205 *)
26206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26207 for as_dir in $PATH
26208 do
26209 IFS=$as_save_IFS
26210 test -z "$as_dir" && as_dir=.
26211 for ac_exec_ext in '' $ac_executable_extensions; do
26212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26213 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26215 break 2
26216 fi
26217 done
26218 done
26219
26220 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26221 ;;
26222 esac
26223 fi
26224 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26225
26226 if test -n "$GTK_CONFIG"; then
26227 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26228 echo "${ECHO_T}$GTK_CONFIG" >&6
26229 else
26230 echo "$as_me:$LINENO: result: no" >&5
26231 echo "${ECHO_T}no" >&6
26232 fi
26233
26234 min_gtk_version=1.2.7
26235 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26236 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26237 no_gtk=""
26238 if test "$GTK_CONFIG" = "no" ; then
26239 no_gtk=yes
26240 else
26241 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26242 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26243 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26245 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26247 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26248 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26249 if test "x$enable_gtktest" = "xyes" ; then
26250 ac_save_CFLAGS="$CFLAGS"
26251 ac_save_LIBS="$LIBS"
26252 CFLAGS="$CFLAGS $GTK_CFLAGS"
26253 LIBS="$GTK_LIBS $LIBS"
26254 rm -f conf.gtktest
26255 if test "$cross_compiling" = yes; then
26256 echo $ac_n "cross compiling; assumed OK... $ac_c"
26257 else
26258 cat >conftest.$ac_ext <<_ACEOF
26259 /* confdefs.h. */
26260 _ACEOF
26261 cat confdefs.h >>conftest.$ac_ext
26262 cat >>conftest.$ac_ext <<_ACEOF
26263 /* end confdefs.h. */
26264
26265 #include <gtk/gtk.h>
26266 #include <stdio.h>
26267 #include <stdlib.h>
26268
26269 int
26270 main ()
26271 {
26272 int major, minor, micro;
26273 char *tmp_version;
26274
26275 system ("touch conf.gtktest");
26276
26277 /* HP/UX 9 (%@#!) writes to sscanf strings */
26278 tmp_version = g_strdup("$min_gtk_version");
26279 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26280 printf("%s, bad version string\n", "$min_gtk_version");
26281 exit(1);
26282 }
26283
26284 if ((gtk_major_version != $gtk_config_major_version) ||
26285 (gtk_minor_version != $gtk_config_minor_version) ||
26286 (gtk_micro_version != $gtk_config_micro_version))
26287 {
26288 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26289 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26290 gtk_major_version, gtk_minor_version, gtk_micro_version);
26291 printf ("*** was found! If gtk-config was correct, then it is best\n");
26292 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26293 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26294 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26295 printf("*** required on your system.\n");
26296 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26297 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26298 printf("*** before re-running configure\n");
26299 }
26300 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26301 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26302 (gtk_minor_version != GTK_MINOR_VERSION) ||
26303 (gtk_micro_version != GTK_MICRO_VERSION))
26304 {
26305 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26306 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26307 printf("*** library (version %d.%d.%d)\n",
26308 gtk_major_version, gtk_minor_version, gtk_micro_version);
26309 }
26310 #endif /* defined (GTK_MAJOR_VERSION) ... */
26311 else
26312 {
26313 if ((gtk_major_version > major) ||
26314 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26315 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26316 {
26317 return 0;
26318 }
26319 else
26320 {
26321 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26322 gtk_major_version, gtk_minor_version, gtk_micro_version);
26323 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26324 major, minor, micro);
26325 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26326 printf("***\n");
26327 printf("*** If you have already installed a sufficiently new version, this error\n");
26328 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26329 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26330 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26331 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26332 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26333 printf("*** so that the correct libraries are found at run-time))\n");
26334 }
26335 }
26336 return 1;
26337 }
26338
26339 _ACEOF
26340 rm -f conftest$ac_exeext
26341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26342 (eval $ac_link) 2>&5
26343 ac_status=$?
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26347 (eval $ac_try) 2>&5
26348 ac_status=$?
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); }; }; then
26351 :
26352 else
26353 echo "$as_me: program exited with status $ac_status" >&5
26354 echo "$as_me: failed program was:" >&5
26355 sed 's/^/| /' conftest.$ac_ext >&5
26356
26357 ( exit $ac_status )
26358 no_gtk=yes
26359 fi
26360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26361 fi
26362 CFLAGS="$ac_save_CFLAGS"
26363 LIBS="$ac_save_LIBS"
26364 fi
26365 fi
26366 if test "x$no_gtk" = x ; then
26367 echo "$as_me:$LINENO: result: yes" >&5
26368 echo "${ECHO_T}yes" >&6
26369 wx_cv_lib_gtk=1.2.7
26370 else
26371 echo "$as_me:$LINENO: result: no" >&5
26372 echo "${ECHO_T}no" >&6
26373 if test "$GTK_CONFIG" = "no" ; then
26374 echo "*** The gtk-config script installed by GTK could not be found"
26375 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26376 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26377 echo "*** full path to gtk-config."
26378 else
26379 if test -f conf.gtktest ; then
26380 :
26381 else
26382 echo "*** Could not run GTK test program, checking why..."
26383 CFLAGS="$CFLAGS $GTK_CFLAGS"
26384 LIBS="$LIBS $GTK_LIBS"
26385 cat >conftest.$ac_ext <<_ACEOF
26386 /* confdefs.h. */
26387 _ACEOF
26388 cat confdefs.h >>conftest.$ac_ext
26389 cat >>conftest.$ac_ext <<_ACEOF
26390 /* end confdefs.h. */
26391
26392 #include <gtk/gtk.h>
26393 #include <stdio.h>
26394
26395 int
26396 main ()
26397 {
26398 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26399 ;
26400 return 0;
26401 }
26402 _ACEOF
26403 rm -f conftest.$ac_objext conftest$ac_exeext
26404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26405 (eval $ac_link) 2>conftest.er1
26406 ac_status=$?
26407 grep -v '^ *+' conftest.er1 >conftest.err
26408 rm -f conftest.er1
26409 cat conftest.err >&5
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); } &&
26412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26415 ac_status=$?
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; } &&
26418 { ac_try='test -s conftest$ac_exeext'
26419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420 (eval $ac_try) 2>&5
26421 ac_status=$?
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); }; }; then
26424 echo "*** The test program compiled, but did not run. This usually means"
26425 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26426 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26427 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26428 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26429 echo "*** is required on your system"
26430 echo "***"
26431 echo "*** If you have an old version installed, it is best to remove it, although"
26432 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26433 echo "***"
26434 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26435 echo "*** came with the system with the command"
26436 echo "***"
26437 echo "*** rpm --erase --nodeps gtk gtk-devel"
26438 else
26439 echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26441
26442 echo "*** The test program failed to compile or link. See the file config.log for the"
26443 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26444 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26445 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26446 fi
26447 rm -f conftest.err conftest.$ac_objext \
26448 conftest$ac_exeext conftest.$ac_ext
26449 CFLAGS="$ac_save_CFLAGS"
26450 LIBS="$ac_save_LIBS"
26451 fi
26452 fi
26453 GTK_CFLAGS=""
26454 GTK_LIBS=""
26455 :
26456 fi
26457
26458
26459 rm -f conf.gtktest
26460
26461
26462 if test -z "$wx_cv_lib_gtk"; then
26463
26464 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26465 if test "${with_gtk_prefix+set}" = set; then
26466 withval="$with_gtk_prefix"
26467 gtk_config_prefix="$withval"
26468 else
26469 gtk_config_prefix=""
26470 fi;
26471
26472 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26473 if test "${with_gtk_exec_prefix+set}" = set; then
26474 withval="$with_gtk_exec_prefix"
26475 gtk_config_exec_prefix="$withval"
26476 else
26477 gtk_config_exec_prefix=""
26478 fi;
26479 # Check whether --enable-gtktest or --disable-gtktest was given.
26480 if test "${enable_gtktest+set}" = set; then
26481 enableval="$enable_gtktest"
26482
26483 else
26484 enable_gtktest=yes
26485 fi;
26486
26487 for module in . $GTK_MODULES
26488 do
26489 case "$module" in
26490 gthread)
26491 gtk_config_args="$gtk_config_args gthread"
26492 ;;
26493 esac
26494 done
26495
26496 if test x$gtk_config_exec_prefix != x ; then
26497 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26498 if test x${GTK_CONFIG+set} != xset ; then
26499 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26500 fi
26501 fi
26502 if test x$gtk_config_prefix != x ; then
26503 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26504 if test x${GTK_CONFIG+set} != xset ; then
26505 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26506 fi
26507 fi
26508
26509 # Extract the first word of "gtk-config", so it can be a program name with args.
26510 set dummy gtk-config; ac_word=$2
26511 echo "$as_me:$LINENO: checking for $ac_word" >&5
26512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26513 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26514 echo $ECHO_N "(cached) $ECHO_C" >&6
26515 else
26516 case $GTK_CONFIG in
26517 [\\/]* | ?:[\\/]*)
26518 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26519 ;;
26520 *)
26521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26522 for as_dir in $PATH
26523 do
26524 IFS=$as_save_IFS
26525 test -z "$as_dir" && as_dir=.
26526 for ac_exec_ext in '' $ac_executable_extensions; do
26527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26528 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26530 break 2
26531 fi
26532 done
26533 done
26534
26535 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26536 ;;
26537 esac
26538 fi
26539 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26540
26541 if test -n "$GTK_CONFIG"; then
26542 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26543 echo "${ECHO_T}$GTK_CONFIG" >&6
26544 else
26545 echo "$as_me:$LINENO: result: no" >&5
26546 echo "${ECHO_T}no" >&6
26547 fi
26548
26549 min_gtk_version=1.2.3
26550 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26551 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26552 no_gtk=""
26553 if test "$GTK_CONFIG" = "no" ; then
26554 no_gtk=yes
26555 else
26556 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26557 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26558 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26559 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26560 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26561 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26562 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26563 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26564 if test "x$enable_gtktest" = "xyes" ; then
26565 ac_save_CFLAGS="$CFLAGS"
26566 ac_save_LIBS="$LIBS"
26567 CFLAGS="$CFLAGS $GTK_CFLAGS"
26568 LIBS="$GTK_LIBS $LIBS"
26569 rm -f conf.gtktest
26570 if test "$cross_compiling" = yes; then
26571 echo $ac_n "cross compiling; assumed OK... $ac_c"
26572 else
26573 cat >conftest.$ac_ext <<_ACEOF
26574 /* confdefs.h. */
26575 _ACEOF
26576 cat confdefs.h >>conftest.$ac_ext
26577 cat >>conftest.$ac_ext <<_ACEOF
26578 /* end confdefs.h. */
26579
26580 #include <gtk/gtk.h>
26581 #include <stdio.h>
26582 #include <stdlib.h>
26583
26584 int
26585 main ()
26586 {
26587 int major, minor, micro;
26588 char *tmp_version;
26589
26590 system ("touch conf.gtktest");
26591
26592 /* HP/UX 9 (%@#!) writes to sscanf strings */
26593 tmp_version = g_strdup("$min_gtk_version");
26594 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26595 printf("%s, bad version string\n", "$min_gtk_version");
26596 exit(1);
26597 }
26598
26599 if ((gtk_major_version != $gtk_config_major_version) ||
26600 (gtk_minor_version != $gtk_config_minor_version) ||
26601 (gtk_micro_version != $gtk_config_micro_version))
26602 {
26603 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26604 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26605 gtk_major_version, gtk_minor_version, gtk_micro_version);
26606 printf ("*** was found! If gtk-config was correct, then it is best\n");
26607 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26608 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26609 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26610 printf("*** required on your system.\n");
26611 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26612 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26613 printf("*** before re-running configure\n");
26614 }
26615 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26616 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26617 (gtk_minor_version != GTK_MINOR_VERSION) ||
26618 (gtk_micro_version != GTK_MICRO_VERSION))
26619 {
26620 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26621 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26622 printf("*** library (version %d.%d.%d)\n",
26623 gtk_major_version, gtk_minor_version, gtk_micro_version);
26624 }
26625 #endif /* defined (GTK_MAJOR_VERSION) ... */
26626 else
26627 {
26628 if ((gtk_major_version > major) ||
26629 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26630 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26631 {
26632 return 0;
26633 }
26634 else
26635 {
26636 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26637 gtk_major_version, gtk_minor_version, gtk_micro_version);
26638 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26639 major, minor, micro);
26640 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26641 printf("***\n");
26642 printf("*** If you have already installed a sufficiently new version, this error\n");
26643 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26644 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26645 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26646 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26647 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26648 printf("*** so that the correct libraries are found at run-time))\n");
26649 }
26650 }
26651 return 1;
26652 }
26653
26654 _ACEOF
26655 rm -f conftest$ac_exeext
26656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26657 (eval $ac_link) 2>&5
26658 ac_status=$?
26659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26663 ac_status=$?
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; }; then
26666 :
26667 else
26668 echo "$as_me: program exited with status $ac_status" >&5
26669 echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26671
26672 ( exit $ac_status )
26673 no_gtk=yes
26674 fi
26675 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26676 fi
26677 CFLAGS="$ac_save_CFLAGS"
26678 LIBS="$ac_save_LIBS"
26679 fi
26680 fi
26681 if test "x$no_gtk" = x ; then
26682 echo "$as_me:$LINENO: result: yes" >&5
26683 echo "${ECHO_T}yes" >&6
26684 wx_cv_lib_gtk=1.2.3
26685 else
26686 echo "$as_me:$LINENO: result: no" >&5
26687 echo "${ECHO_T}no" >&6
26688 if test "$GTK_CONFIG" = "no" ; then
26689 echo "*** The gtk-config script installed by GTK could not be found"
26690 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26691 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26692 echo "*** full path to gtk-config."
26693 else
26694 if test -f conf.gtktest ; then
26695 :
26696 else
26697 echo "*** Could not run GTK test program, checking why..."
26698 CFLAGS="$CFLAGS $GTK_CFLAGS"
26699 LIBS="$LIBS $GTK_LIBS"
26700 cat >conftest.$ac_ext <<_ACEOF
26701 /* confdefs.h. */
26702 _ACEOF
26703 cat confdefs.h >>conftest.$ac_ext
26704 cat >>conftest.$ac_ext <<_ACEOF
26705 /* end confdefs.h. */
26706
26707 #include <gtk/gtk.h>
26708 #include <stdio.h>
26709
26710 int
26711 main ()
26712 {
26713 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26714 ;
26715 return 0;
26716 }
26717 _ACEOF
26718 rm -f conftest.$ac_objext conftest$ac_exeext
26719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26720 (eval $ac_link) 2>conftest.er1
26721 ac_status=$?
26722 grep -v '^ *+' conftest.er1 >conftest.err
26723 rm -f conftest.er1
26724 cat conftest.err >&5
26725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726 (exit $ac_status); } &&
26727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26729 (eval $ac_try) 2>&5
26730 ac_status=$?
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); }; } &&
26733 { ac_try='test -s conftest$ac_exeext'
26734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26735 (eval $ac_try) 2>&5
26736 ac_status=$?
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); }; }; then
26739 echo "*** The test program compiled, but did not run. This usually means"
26740 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26741 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26742 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26743 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26744 echo "*** is required on your system"
26745 echo "***"
26746 echo "*** If you have an old version installed, it is best to remove it, although"
26747 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26748 echo "***"
26749 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26750 echo "*** came with the system with the command"
26751 echo "***"
26752 echo "*** rpm --erase --nodeps gtk gtk-devel"
26753 else
26754 echo "$as_me: failed program was:" >&5
26755 sed 's/^/| /' conftest.$ac_ext >&5
26756
26757 echo "*** The test program failed to compile or link. See the file config.log for the"
26758 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26759 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26760 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26761 fi
26762 rm -f conftest.err conftest.$ac_objext \
26763 conftest$ac_exeext conftest.$ac_ext
26764 CFLAGS="$ac_save_CFLAGS"
26765 LIBS="$ac_save_LIBS"
26766 fi
26767 fi
26768 GTK_CFLAGS=""
26769 GTK_LIBS=""
26770 :
26771 fi
26772
26773
26774 rm -f conf.gtktest
26775
26776 fi
26777 fi
26778 fi
26779
26780 if test -z "$wx_cv_lib_gtk"; then
26781 wx_cv_lib_gtk=none
26782 else
26783 wx_cv_cflags_gtk=$GTK_CFLAGS
26784 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
26785 fi
26786
26787
26788 fi
26789
26790
26791 if test "$gtk_version_cached" = 1; then
26792 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26793 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26794 fi
26795
26796 case "$wx_cv_lib_gtk" in
26797 2.0) WXGTK20=1
26798 TOOLKIT_VERSION=2
26799 ;;
26800 1.2.7) WXGTK127=1
26801 WXGTK12=1
26802 ;;
26803 1.2.3) WXGTK12=1
26804 ;;
26805 *) { { echo "$as_me:$LINENO: error:
26806 The development files for GTK+ were not found. For GTK+ 2, please
26807 ensure that pkg-config is in the path and that gtk+-2.0.pc is
26808 installed. For GTK+ 1.2 please check that gtk-config is in the path,
26809 and that the version is 1.2.3 or above. Also check that the
26810 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26811 --libs' are in the LD_LIBRARY_PATH or equivalent.
26812 " >&5
26813 echo "$as_me: error:
26814 The development files for GTK+ were not found. For GTK+ 2, please
26815 ensure that pkg-config is in the path and that gtk+-2.0.pc is
26816 installed. For GTK+ 1.2 please check that gtk-config is in the path,
26817 and that the version is 1.2.3 or above. Also check that the
26818 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26819 --libs' are in the LD_LIBRARY_PATH or equivalent.
26820 " >&2;}
26821 { (exit 1); exit 1; }; }
26822 ;;
26823 esac
26824
26825 if test "$WXGTK20" = 1; then
26826 save_CFLAGS="$CFLAGS"
26827 save_LIBS="$LIBS"
26828 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
26829 LIBS="$LIBS $wx_cv_libs_gtk"
26830
26831 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26832 echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26833 cat >conftest.$ac_ext <<_ACEOF
26834 /* confdefs.h. */
26835 _ACEOF
26836 cat confdefs.h >>conftest.$ac_ext
26837 cat >>conftest.$ac_ext <<_ACEOF
26838 /* end confdefs.h. */
26839
26840 #include <gtk/gtk.h>
26841
26842 int
26843 main ()
26844 {
26845
26846 void *f = gtk_icon_size_lookup;
26847
26848 ;
26849 return 0;
26850 }
26851 _ACEOF
26852 rm -f conftest.$ac_objext
26853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26854 (eval $ac_compile) 2>conftest.er1
26855 ac_status=$?
26856 grep -v '^ *+' conftest.er1 >conftest.err
26857 rm -f conftest.er1
26858 cat conftest.err >&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); } &&
26861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26863 (eval $ac_try) 2>&5
26864 ac_status=$?
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); }; } &&
26867 { ac_try='test -s conftest.$ac_objext'
26868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26869 (eval $ac_try) 2>&5
26870 ac_status=$?
26871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872 (exit $ac_status); }; }; then
26873
26874 echo "$as_me:$LINENO: result: no" >&5
26875 echo "${ECHO_T}no" >&6
26876
26877 else
26878 echo "$as_me: failed program was:" >&5
26879 sed 's/^/| /' conftest.$ac_ext >&5
26880
26881
26882 cat >>confdefs.h <<\_ACEOF
26883 #define NEED_GTK_ICON_SIZE_LOOKUP 1
26884 _ACEOF
26885
26886 echo "$as_me:$LINENO: result: yes" >&5
26887 echo "${ECHO_T}yes" >&6
26888
26889 fi
26890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26891
26892 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26893 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26894 cat >conftest.$ac_ext <<_ACEOF
26895 /* confdefs.h. */
26896 _ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h. */
26900
26901 #include <gtk/gtk.h>
26902
26903 int
26904 main ()
26905 {
26906
26907 #if !GTK_CHECK_VERSION(2,4,0)
26908 Not GTK+ 2.4
26909 #endif
26910
26911 ;
26912 return 0;
26913 }
26914 _ACEOF
26915 rm -f conftest.$ac_objext
26916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26917 (eval $ac_compile) 2>conftest.er1
26918 ac_status=$?
26919 grep -v '^ *+' conftest.er1 >conftest.err
26920 rm -f conftest.er1
26921 cat conftest.err >&5
26922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923 (exit $ac_status); } &&
26924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26926 (eval $ac_try) 2>&5
26927 ac_status=$?
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); }; } &&
26930 { ac_try='test -s conftest.$ac_objext'
26931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26932 (eval $ac_try) 2>&5
26933 ac_status=$?
26934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935 (exit $ac_status); }; }; then
26936
26937 cat >>confdefs.h <<\_ACEOF
26938 #define __WXGTK24__ 1
26939 _ACEOF
26940
26941 echo "$as_me:$LINENO: result: yes" >&5
26942 echo "${ECHO_T}yes" >&6
26943
26944 else
26945 echo "$as_me: failed program was:" >&5
26946 sed 's/^/| /' conftest.$ac_ext >&5
26947
26948
26949 echo "$as_me:$LINENO: result: no" >&5
26950 echo "${ECHO_T}no" >&6
26951
26952 fi
26953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26954
26955 CFLAGS="$save_CFLAGS"
26956 LIBS="$save_LIBS"
26957 else
26958 if test "$wxUSE_UNICODE" = "yes"; then
26959 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
26960 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
26961 wxUSE_UNICODE=no
26962 fi
26963 fi
26964
26965 if test "$USE_DARWIN" != 1; then
26966
26967 for ac_func in poll
26968 do
26969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26970 echo "$as_me:$LINENO: checking for $ac_func" >&5
26971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26972 if eval "test \"\${$as_ac_var+set}\" = set"; then
26973 echo $ECHO_N "(cached) $ECHO_C" >&6
26974 else
26975 cat >conftest.$ac_ext <<_ACEOF
26976 /* confdefs.h. */
26977 _ACEOF
26978 cat confdefs.h >>conftest.$ac_ext
26979 cat >>conftest.$ac_ext <<_ACEOF
26980 /* end confdefs.h. */
26981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26983 #define $ac_func innocuous_$ac_func
26984
26985 /* System header to define __stub macros and hopefully few prototypes,
26986 which can conflict with char $ac_func (); below.
26987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26988 <limits.h> exists even on freestanding compilers. */
26989
26990 #ifdef __STDC__
26991 # include <limits.h>
26992 #else
26993 # include <assert.h>
26994 #endif
26995
26996 #undef $ac_func
26997
26998 /* Override any gcc2 internal prototype to avoid an error. */
26999 #ifdef __cplusplus
27000 extern "C"
27001 {
27002 #endif
27003 /* We use char because int might match the return type of a gcc2
27004 builtin and then its argument prototype would still apply. */
27005 char $ac_func ();
27006 /* The GNU C library defines this for functions which it implements
27007 to always fail with ENOSYS. Some functions are actually named
27008 something starting with __ and the normal name is an alias. */
27009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27010 choke me
27011 #else
27012 char (*f) () = $ac_func;
27013 #endif
27014 #ifdef __cplusplus
27015 }
27016 #endif
27017
27018 int
27019 main ()
27020 {
27021 return f != $ac_func;
27022 ;
27023 return 0;
27024 }
27025 _ACEOF
27026 rm -f conftest.$ac_objext conftest$ac_exeext
27027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27028 (eval $ac_link) 2>conftest.er1
27029 ac_status=$?
27030 grep -v '^ *+' conftest.er1 >conftest.err
27031 rm -f conftest.er1
27032 cat conftest.err >&5
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); } &&
27035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27037 (eval $ac_try) 2>&5
27038 ac_status=$?
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); }; } &&
27041 { ac_try='test -s conftest$ac_exeext'
27042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27043 (eval $ac_try) 2>&5
27044 ac_status=$?
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; }; then
27047 eval "$as_ac_var=yes"
27048 else
27049 echo "$as_me: failed program was:" >&5
27050 sed 's/^/| /' conftest.$ac_ext >&5
27051
27052 eval "$as_ac_var=no"
27053 fi
27054 rm -f conftest.err conftest.$ac_objext \
27055 conftest$ac_exeext conftest.$ac_ext
27056 fi
27057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27059 if test `eval echo '${'$as_ac_var'}'` = yes; then
27060 cat >>confdefs.h <<_ACEOF
27061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27062 _ACEOF
27063
27064 fi
27065 done
27066
27067 fi
27068
27069 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27070 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27071
27072 AFMINSTALL=afminstall
27073 TOOLKIT=GTK
27074 GUIDIST=GTK_DIST
27075
27076 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27077 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27078 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27080 else
27081 ac_check_lib_save_LIBS=$LIBS
27082 LIBS="-lgdk $LIBS"
27083 cat >conftest.$ac_ext <<_ACEOF
27084 /* confdefs.h. */
27085 _ACEOF
27086 cat confdefs.h >>conftest.$ac_ext
27087 cat >>conftest.$ac_ext <<_ACEOF
27088 /* end confdefs.h. */
27089
27090 /* Override any gcc2 internal prototype to avoid an error. */
27091 #ifdef __cplusplus
27092 extern "C"
27093 #endif
27094 /* We use char because int might match the return type of a gcc2
27095 builtin and then its argument prototype would still apply. */
27096 char gdk_im_open ();
27097 int
27098 main ()
27099 {
27100 gdk_im_open ();
27101 ;
27102 return 0;
27103 }
27104 _ACEOF
27105 rm -f conftest.$ac_objext conftest$ac_exeext
27106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27107 (eval $ac_link) 2>conftest.er1
27108 ac_status=$?
27109 grep -v '^ *+' conftest.er1 >conftest.err
27110 rm -f conftest.er1
27111 cat conftest.err >&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } &&
27114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27116 (eval $ac_try) 2>&5
27117 ac_status=$?
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); }; } &&
27120 { ac_try='test -s conftest$ac_exeext'
27121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122 (eval $ac_try) 2>&5
27123 ac_status=$?
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; }; then
27126 ac_cv_lib_gdk_gdk_im_open=yes
27127 else
27128 echo "$as_me: failed program was:" >&5
27129 sed 's/^/| /' conftest.$ac_ext >&5
27130
27131 ac_cv_lib_gdk_gdk_im_open=no
27132 fi
27133 rm -f conftest.err conftest.$ac_objext \
27134 conftest$ac_exeext conftest.$ac_ext
27135 LIBS=$ac_check_lib_save_LIBS
27136 fi
27137 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27138 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27139 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27140 cat >>confdefs.h <<\_ACEOF
27141 #define HAVE_XIM 1
27142 _ACEOF
27143
27144 fi
27145
27146
27147
27148 if test "$wxUSE_GPE" = "yes"; then
27149 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27150 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27151
27152 ac_find_libraries=
27153 for ac_dir in $SEARCH_LIB;
27154 do
27155 for ac_extension in a so sl dylib dll.a; do
27156 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27157 ac_find_libraries=$ac_dir
27158 break 2
27159 fi
27160 done
27161 done
27162
27163 if test "$ac_find_libraries" != "" ; then
27164
27165 if test "$ac_find_libraries" = "default location"; then
27166 ac_path_to_link=""
27167 else
27168 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27169 result=$?
27170 if test $result = 0; then
27171 ac_path_to_link=""
27172 else
27173 ac_path_to_link=" -L$ac_find_libraries"
27174 fi
27175 fi
27176
27177 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27178 WXGPE=1
27179 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27180 echo "${ECHO_T}found in $ac_find_libraries" >&6
27181 else
27182 echo "$as_me:$LINENO: result: not found" >&5
27183 echo "${ECHO_T}not found" >&6
27184 fi
27185
27186 fi
27187 fi
27188
27189 if test "$wxUSE_MGL" = 1; then
27190 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27191 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27192 if test "x$MGL_ROOT" = x ; then
27193 echo "$as_me:$LINENO: result: not found" >&5
27194 echo "${ECHO_T}not found" >&6
27195 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27196 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27197 { (exit 1); exit 1; }; }
27198 else
27199 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27200 echo "${ECHO_T}$MGL_ROOT" >&6
27201 fi
27202
27203 echo "$as_me:$LINENO: checking for libmgl location" >&5
27204 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27205 case "${host}" in
27206 *-*-linux* )
27207 if test "x$wxUSE_SHARED" = xyes ; then
27208 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27209 else
27210 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27211 fi
27212 ;;
27213 *-pc-msdosdjgpp )
27214 mgl_os_candidates="dos32/dj2"
27215 ;;
27216 *)
27217 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27218 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27219 { (exit 1); exit 1; }; }
27220 esac
27221
27222 mgl_lib_type=""
27223 mgl_os=""
27224
27225 for mgl_os_i in $mgl_os_candidates ; do
27226 if test "x$mgl_os" = x ; then
27227 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27228 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27229 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27230 mgl_lib_type=debug
27231 mgl_os=$mgl_os_i
27232 fi
27233 fi
27234 if test "x$mgl_lib_type" = x ; then
27235 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27236 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27237 mgl_lib_type=release
27238 mgl_os=$mgl_os_i
27239 fi
27240 fi
27241 fi
27242 done
27243
27244 if test "x$mgl_os" = x ; then
27245 echo "$as_me:$LINENO: result: not found" >&5
27246 echo "${ECHO_T}not found" >&6
27247 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27248 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27249 { (exit 1); exit 1; }; }
27250 fi
27251 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27252 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27253
27254 wxUSE_UNIVERSAL="yes"
27255
27256 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27257 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27258
27259 AFMINSTALL=afminstall
27260 TOOLKIT=MGL
27261 GUIDIST=MGL_DIST
27262 fi
27263
27264 if test "$wxUSE_MICROWIN" = 1; then
27265 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27266 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27267 if test "x$MICROWINDOWS" = x ; then
27268 echo "$as_me:$LINENO: result: not found" >&5
27269 echo "${ECHO_T}not found" >&6
27270 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27271 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27272 { (exit 1); exit 1; }; }
27273 else
27274 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27275 echo "${ECHO_T}$MICROWINDOWS" >&6
27276 fi
27277
27278 if test -f $MICROWINDOWS/lib/libmwin.a; then
27279 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27280 echo "${ECHO_T}MicroWindows' libraries found." >&6
27281 else
27282 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27283 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27284 { (exit 1); exit 1; }; }
27285 fi
27286
27287 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27288 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27289
27290 wxUSE_UNIVERSAL="yes"
27291
27292 AFMINSTALL=afminstall
27293 TOOLKIT=MICROWIN
27294 GUIDIST=MICROWIN_DIST
27295
27296 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27297 fi
27298
27299 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
27300
27301 if test "x$ac_path_x_has_been_run" != xyes; then
27302 echo "$as_me:$LINENO: checking for X" >&5
27303 echo $ECHO_N "checking for X... $ECHO_C" >&6
27304
27305 ac_path_x_has_been_run=yes
27306
27307 # Check whether --with-x or --without-x was given.
27308 if test "${with_x+set}" = set; then
27309 withval="$with_x"
27310
27311 fi;
27312 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27313 if test "x$with_x" = xno; then
27314 # The user explicitly disabled X.
27315 have_x=disabled
27316 else
27317 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27318 # Both variables are already set.
27319 have_x=yes
27320 else
27321 if test "${ac_cv_have_x+set}" = set; then
27322 echo $ECHO_N "(cached) $ECHO_C" >&6
27323 else
27324 # One or both of the vars are not set, and there is no cached value.
27325 ac_x_includes=no ac_x_libraries=no
27326 rm -fr conftest.dir
27327 if mkdir conftest.dir; then
27328 cd conftest.dir
27329 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27330 cat >Imakefile <<'_ACEOF'
27331 acfindx:
27332 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27333 _ACEOF
27334 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27336 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27337 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27338 for ac_extension in a so sl; do
27339 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
27340 test -f $ac_im_libdir/libX11.$ac_extension; then
27341 ac_im_usrlibdir=$ac_im_libdir; break
27342 fi
27343 done
27344 # Screen out bogus values from the imake configuration. They are
27345 # bogus both because they are the default anyway, and because
27346 # using them would break gcc on systems where it needs fixed includes.
27347 case $ac_im_incroot in
27348 /usr/include) ;;
27349 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27350 esac
27351 case $ac_im_usrlibdir in
27352 /usr/lib | /lib) ;;
27353 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27354 esac
27355 fi
27356 cd ..
27357 rm -fr conftest.dir
27358 fi
27359
27360 # Standard set of common directories for X headers.
27361 # Check X11 before X11Rn because it is often a symlink to the current release.
27362 ac_x_header_dirs='
27363 /usr/X11/include
27364 /usr/X11R6/include
27365 /usr/X11R5/include
27366 /usr/X11R4/include
27367
27368 /usr/include/X11
27369 /usr/include/X11R6
27370 /usr/include/X11R5
27371 /usr/include/X11R4
27372
27373 /usr/local/X11/include
27374 /usr/local/X11R6/include
27375 /usr/local/X11R5/include
27376 /usr/local/X11R4/include
27377
27378 /usr/local/include/X11
27379 /usr/local/include/X11R6
27380 /usr/local/include/X11R5
27381 /usr/local/include/X11R4
27382
27383 /usr/X386/include
27384 /usr/x386/include
27385 /usr/XFree86/include/X11
27386
27387 /usr/include
27388 /usr/local/include
27389 /usr/unsupported/include
27390 /usr/athena/include
27391 /usr/local/x11r5/include
27392 /usr/lpp/Xamples/include
27393
27394 /usr/openwin/include
27395 /usr/openwin/share/include'
27396
27397 if test "$ac_x_includes" = no; then
27398 # Guess where to find include files, by looking for a specified header file.
27399 # First, try using that file with no special directory specified.
27400 cat >conftest.$ac_ext <<_ACEOF
27401 /* confdefs.h. */
27402 _ACEOF
27403 cat confdefs.h >>conftest.$ac_ext
27404 cat >>conftest.$ac_ext <<_ACEOF
27405 /* end confdefs.h. */
27406 #include <X11/Intrinsic.h>
27407 _ACEOF
27408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27410 ac_status=$?
27411 grep -v '^ *+' conftest.er1 >conftest.err
27412 rm -f conftest.er1
27413 cat conftest.err >&5
27414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); } >/dev/null; then
27416 if test -s conftest.err; then
27417 ac_cpp_err=$ac_c_preproc_warn_flag
27418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27419 else
27420 ac_cpp_err=
27421 fi
27422 else
27423 ac_cpp_err=yes
27424 fi
27425 if test -z "$ac_cpp_err"; then
27426 # We can compile using X headers with no special include directory.
27427 ac_x_includes=
27428 else
27429 echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27431
27432 for ac_dir in $ac_x_header_dirs; do
27433 if test -r "$ac_dir/X11/Intrinsic.h"; then
27434 ac_x_includes=$ac_dir
27435 break
27436 fi
27437 done
27438 fi
27439 rm -f conftest.err conftest.$ac_ext
27440 fi # $ac_x_includes = no
27441
27442 if test "$ac_x_libraries" = no; then
27443 # Check for the libraries.
27444 # See if we find them without any special options.
27445 # Don't add to $LIBS permanently.
27446 ac_save_LIBS=$LIBS
27447 LIBS="-lXt $LIBS"
27448 cat >conftest.$ac_ext <<_ACEOF
27449 /* confdefs.h. */
27450 _ACEOF
27451 cat confdefs.h >>conftest.$ac_ext
27452 cat >>conftest.$ac_ext <<_ACEOF
27453 /* end confdefs.h. */
27454 #include <X11/Intrinsic.h>
27455 int
27456 main ()
27457 {
27458 XtMalloc (0)
27459 ;
27460 return 0;
27461 }
27462 _ACEOF
27463 rm -f conftest.$ac_objext conftest$ac_exeext
27464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27465 (eval $ac_link) 2>conftest.er1
27466 ac_status=$?
27467 grep -v '^ *+' conftest.er1 >conftest.err
27468 rm -f conftest.er1
27469 cat conftest.err >&5
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); } &&
27472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27474 (eval $ac_try) 2>&5
27475 ac_status=$?
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); }; } &&
27478 { ac_try='test -s conftest$ac_exeext'
27479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27480 (eval $ac_try) 2>&5
27481 ac_status=$?
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); }; }; then
27484 LIBS=$ac_save_LIBS
27485 # We can link X programs with no special library path.
27486 ac_x_libraries=
27487 else
27488 echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27490
27491 LIBS=$ac_save_LIBS
27492 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27493 do
27494 # Don't even attempt the hair of trying to link an X program!
27495 for ac_extension in a so sl; do
27496 if test -r $ac_dir/libXt.$ac_extension; then
27497 ac_x_libraries=$ac_dir
27498 break 2
27499 fi
27500 done
27501 done
27502 fi
27503 rm -f conftest.err conftest.$ac_objext \
27504 conftest$ac_exeext conftest.$ac_ext
27505 fi # $ac_x_libraries = no
27506
27507 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27508 # Didn't find X anywhere. Cache the known absence of X.
27509 ac_cv_have_x="have_x=no"
27510 else
27511 # Record where we found X for the cache.
27512 ac_cv_have_x="have_x=yes \
27513 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
27514 fi
27515 fi
27516
27517 fi
27518 eval "$ac_cv_have_x"
27519 fi # $with_x != no
27520
27521 if test "$have_x" != yes; then
27522 echo "$as_me:$LINENO: result: $have_x" >&5
27523 echo "${ECHO_T}$have_x" >&6
27524 no_x=yes
27525 else
27526 # If each of the values was on the command line, it overrides each guess.
27527 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27528 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27529 # Update the cache value to reflect the command line values.
27530 ac_cv_have_x="have_x=yes \
27531 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
27532 # It might be that x_includes is empty (headers are found in the
27533 # standard search path. Then output the corresponding message
27534 ac_out_x_includes=$x_includes
27535 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
27536 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
27537 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
27538 fi
27539
27540 fi
27541 if test "$no_x" = yes; then
27542 # Not all programs may use this symbol, but it does not hurt to define it.
27543
27544 cat >>confdefs.h <<\_ACEOF
27545 #define X_DISPLAY_MISSING 1
27546 _ACEOF
27547
27548 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27549 else
27550 if test -n "$x_includes"; then
27551 X_CFLAGS="$X_CFLAGS -I$x_includes"
27552 fi
27553
27554 # It would also be nice to do this for all -L options, not just this one.
27555 if test -n "$x_libraries"; then
27556 X_LIBS="$X_LIBS -L$x_libraries"
27557 # For Solaris; some versions of Sun CC require a space after -R and
27558 # others require no space. Words are not sufficient . . . .
27559 case `(uname -sr) 2>/dev/null` in
27560 "SunOS 5"*)
27561 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27562 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27563 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27564 cat >conftest.$ac_ext <<_ACEOF
27565 /* confdefs.h. */
27566 _ACEOF
27567 cat confdefs.h >>conftest.$ac_ext
27568 cat >>conftest.$ac_ext <<_ACEOF
27569 /* end confdefs.h. */
27570
27571 int
27572 main ()
27573 {
27574
27575 ;
27576 return 0;
27577 }
27578 _ACEOF
27579 rm -f conftest.$ac_objext conftest$ac_exeext
27580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27581 (eval $ac_link) 2>conftest.er1
27582 ac_status=$?
27583 grep -v '^ *+' conftest.er1 >conftest.err
27584 rm -f conftest.er1
27585 cat conftest.err >&5
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); } &&
27588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27590 (eval $ac_try) 2>&5
27591 ac_status=$?
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); }; } &&
27594 { ac_try='test -s conftest$ac_exeext'
27595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596 (eval $ac_try) 2>&5
27597 ac_status=$?
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); }; }; then
27600 ac_R_nospace=yes
27601 else
27602 echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27604
27605 ac_R_nospace=no
27606 fi
27607 rm -f conftest.err conftest.$ac_objext \
27608 conftest$ac_exeext conftest.$ac_ext
27609 if test $ac_R_nospace = yes; then
27610 echo "$as_me:$LINENO: result: no" >&5
27611 echo "${ECHO_T}no" >&6
27612 X_LIBS="$X_LIBS -R$x_libraries"
27613 else
27614 LIBS="$ac_xsave_LIBS -R $x_libraries"
27615 cat >conftest.$ac_ext <<_ACEOF
27616 /* confdefs.h. */
27617 _ACEOF
27618 cat confdefs.h >>conftest.$ac_ext
27619 cat >>conftest.$ac_ext <<_ACEOF
27620 /* end confdefs.h. */
27621
27622 int
27623 main ()
27624 {
27625
27626 ;
27627 return 0;
27628 }
27629 _ACEOF
27630 rm -f conftest.$ac_objext conftest$ac_exeext
27631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27632 (eval $ac_link) 2>conftest.er1
27633 ac_status=$?
27634 grep -v '^ *+' conftest.er1 >conftest.err
27635 rm -f conftest.er1
27636 cat conftest.err >&5
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); } &&
27639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27641 (eval $ac_try) 2>&5
27642 ac_status=$?
27643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644 (exit $ac_status); }; } &&
27645 { ac_try='test -s conftest$ac_exeext'
27646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27647 (eval $ac_try) 2>&5
27648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; }; then
27651 ac_R_space=yes
27652 else
27653 echo "$as_me: failed program was:" >&5
27654 sed 's/^/| /' conftest.$ac_ext >&5
27655
27656 ac_R_space=no
27657 fi
27658 rm -f conftest.err conftest.$ac_objext \
27659 conftest$ac_exeext conftest.$ac_ext
27660 if test $ac_R_space = yes; then
27661 echo "$as_me:$LINENO: result: yes" >&5
27662 echo "${ECHO_T}yes" >&6
27663 X_LIBS="$X_LIBS -R $x_libraries"
27664 else
27665 echo "$as_me:$LINENO: result: neither works" >&5
27666 echo "${ECHO_T}neither works" >&6
27667 fi
27668 fi
27669 LIBS=$ac_xsave_LIBS
27670 esac
27671 fi
27672
27673 # Check for system-dependent libraries X programs must link with.
27674 # Do this before checking for the system-independent R6 libraries
27675 # (-lICE), since we may need -lsocket or whatever for X linking.
27676
27677 if test "$ISC" = yes; then
27678 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27679 else
27680 # Martyn Johnson says this is needed for Ultrix, if the X
27681 # libraries were built with DECnet support. And Karl Berry says
27682 # the Alpha needs dnet_stub (dnet does not exist).
27683 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27684 cat >conftest.$ac_ext <<_ACEOF
27685 /* confdefs.h. */
27686 _ACEOF
27687 cat confdefs.h >>conftest.$ac_ext
27688 cat >>conftest.$ac_ext <<_ACEOF
27689 /* end confdefs.h. */
27690
27691 /* Override any gcc2 internal prototype to avoid an error. */
27692 #ifdef __cplusplus
27693 extern "C"
27694 #endif
27695 /* We use char because int might match the return type of a gcc2
27696 builtin and then its argument prototype would still apply. */
27697 char XOpenDisplay ();
27698 int
27699 main ()
27700 {
27701 XOpenDisplay ();
27702 ;
27703 return 0;
27704 }
27705 _ACEOF
27706 rm -f conftest.$ac_objext conftest$ac_exeext
27707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27708 (eval $ac_link) 2>conftest.er1
27709 ac_status=$?
27710 grep -v '^ *+' conftest.er1 >conftest.err
27711 rm -f conftest.er1
27712 cat conftest.err >&5
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); } &&
27715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27717 (eval $ac_try) 2>&5
27718 ac_status=$?
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); }; } &&
27721 { ac_try='test -s conftest$ac_exeext'
27722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27723 (eval $ac_try) 2>&5
27724 ac_status=$?
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); }; }; then
27727 :
27728 else
27729 echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27731
27732 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27733 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27734 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27735 echo $ECHO_N "(cached) $ECHO_C" >&6
27736 else
27737 ac_check_lib_save_LIBS=$LIBS
27738 LIBS="-ldnet $LIBS"
27739 cat >conftest.$ac_ext <<_ACEOF
27740 /* confdefs.h. */
27741 _ACEOF
27742 cat confdefs.h >>conftest.$ac_ext
27743 cat >>conftest.$ac_ext <<_ACEOF
27744 /* end confdefs.h. */
27745
27746 /* Override any gcc2 internal prototype to avoid an error. */
27747 #ifdef __cplusplus
27748 extern "C"
27749 #endif
27750 /* We use char because int might match the return type of a gcc2
27751 builtin and then its argument prototype would still apply. */
27752 char dnet_ntoa ();
27753 int
27754 main ()
27755 {
27756 dnet_ntoa ();
27757 ;
27758 return 0;
27759 }
27760 _ACEOF
27761 rm -f conftest.$ac_objext conftest$ac_exeext
27762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27763 (eval $ac_link) 2>conftest.er1
27764 ac_status=$?
27765 grep -v '^ *+' conftest.er1 >conftest.err
27766 rm -f conftest.er1
27767 cat conftest.err >&5
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); } &&
27770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772 (eval $ac_try) 2>&5
27773 ac_status=$?
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; } &&
27776 { ac_try='test -s conftest$ac_exeext'
27777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27778 (eval $ac_try) 2>&5
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; }; then
27782 ac_cv_lib_dnet_dnet_ntoa=yes
27783 else
27784 echo "$as_me: failed program was:" >&5
27785 sed 's/^/| /' conftest.$ac_ext >&5
27786
27787 ac_cv_lib_dnet_dnet_ntoa=no
27788 fi
27789 rm -f conftest.err conftest.$ac_objext \
27790 conftest$ac_exeext conftest.$ac_ext
27791 LIBS=$ac_check_lib_save_LIBS
27792 fi
27793 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27794 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27795 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27796 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27797 fi
27798
27799 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27800 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27801 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27802 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27803 echo $ECHO_N "(cached) $ECHO_C" >&6
27804 else
27805 ac_check_lib_save_LIBS=$LIBS
27806 LIBS="-ldnet_stub $LIBS"
27807 cat >conftest.$ac_ext <<_ACEOF
27808 /* confdefs.h. */
27809 _ACEOF
27810 cat confdefs.h >>conftest.$ac_ext
27811 cat >>conftest.$ac_ext <<_ACEOF
27812 /* end confdefs.h. */
27813
27814 /* Override any gcc2 internal prototype to avoid an error. */
27815 #ifdef __cplusplus
27816 extern "C"
27817 #endif
27818 /* We use char because int might match the return type of a gcc2
27819 builtin and then its argument prototype would still apply. */
27820 char dnet_ntoa ();
27821 int
27822 main ()
27823 {
27824 dnet_ntoa ();
27825 ;
27826 return 0;
27827 }
27828 _ACEOF
27829 rm -f conftest.$ac_objext conftest$ac_exeext
27830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27831 (eval $ac_link) 2>conftest.er1
27832 ac_status=$?
27833 grep -v '^ *+' conftest.er1 >conftest.err
27834 rm -f conftest.er1
27835 cat conftest.err >&5
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); } &&
27838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840 (eval $ac_try) 2>&5
27841 ac_status=$?
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; } &&
27844 { ac_try='test -s conftest$ac_exeext'
27845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846 (eval $ac_try) 2>&5
27847 ac_status=$?
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; }; then
27850 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27851 else
27852 echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27854
27855 ac_cv_lib_dnet_stub_dnet_ntoa=no
27856 fi
27857 rm -f conftest.err conftest.$ac_objext \
27858 conftest$ac_exeext conftest.$ac_ext
27859 LIBS=$ac_check_lib_save_LIBS
27860 fi
27861 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27862 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27863 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27864 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27865 fi
27866
27867 fi
27868 fi
27869 rm -f conftest.err conftest.$ac_objext \
27870 conftest$ac_exeext conftest.$ac_ext
27871 LIBS="$ac_xsave_LIBS"
27872
27873 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27874 # to get the SysV transport functions.
27875 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27876 # needs -lnsl.
27877 # The nsl library prevents programs from opening the X display
27878 # on Irix 5.2, according to T.E. Dickey.
27879 # The functions gethostbyname, getservbyname, and inet_addr are
27880 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27881 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27882 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27883 if test "${ac_cv_func_gethostbyname+set}" = set; then
27884 echo $ECHO_N "(cached) $ECHO_C" >&6
27885 else
27886 cat >conftest.$ac_ext <<_ACEOF
27887 /* confdefs.h. */
27888 _ACEOF
27889 cat confdefs.h >>conftest.$ac_ext
27890 cat >>conftest.$ac_ext <<_ACEOF
27891 /* end confdefs.h. */
27892 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27894 #define gethostbyname innocuous_gethostbyname
27895
27896 /* System header to define __stub macros and hopefully few prototypes,
27897 which can conflict with char gethostbyname (); below.
27898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27899 <limits.h> exists even on freestanding compilers. */
27900
27901 #ifdef __STDC__
27902 # include <limits.h>
27903 #else
27904 # include <assert.h>
27905 #endif
27906
27907 #undef gethostbyname
27908
27909 /* Override any gcc2 internal prototype to avoid an error. */
27910 #ifdef __cplusplus
27911 extern "C"
27912 {
27913 #endif
27914 /* We use char because int might match the return type of a gcc2
27915 builtin and then its argument prototype would still apply. */
27916 char gethostbyname ();
27917 /* The GNU C library defines this for functions which it implements
27918 to always fail with ENOSYS. Some functions are actually named
27919 something starting with __ and the normal name is an alias. */
27920 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27921 choke me
27922 #else
27923 char (*f) () = gethostbyname;
27924 #endif
27925 #ifdef __cplusplus
27926 }
27927 #endif
27928
27929 int
27930 main ()
27931 {
27932 return f != gethostbyname;
27933 ;
27934 return 0;
27935 }
27936 _ACEOF
27937 rm -f conftest.$ac_objext conftest$ac_exeext
27938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27939 (eval $ac_link) 2>conftest.er1
27940 ac_status=$?
27941 grep -v '^ *+' conftest.er1 >conftest.err
27942 rm -f conftest.er1
27943 cat conftest.err >&5
27944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945 (exit $ac_status); } &&
27946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948 (eval $ac_try) 2>&5
27949 ac_status=$?
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); }; } &&
27952 { ac_try='test -s conftest$ac_exeext'
27953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954 (eval $ac_try) 2>&5
27955 ac_status=$?
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; }; then
27958 ac_cv_func_gethostbyname=yes
27959 else
27960 echo "$as_me: failed program was:" >&5
27961 sed 's/^/| /' conftest.$ac_ext >&5
27962
27963 ac_cv_func_gethostbyname=no
27964 fi
27965 rm -f conftest.err conftest.$ac_objext \
27966 conftest$ac_exeext conftest.$ac_ext
27967 fi
27968 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27969 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
27970
27971 if test $ac_cv_func_gethostbyname = no; then
27972 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27973 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27974 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27975 echo $ECHO_N "(cached) $ECHO_C" >&6
27976 else
27977 ac_check_lib_save_LIBS=$LIBS
27978 LIBS="-lnsl $LIBS"
27979 cat >conftest.$ac_ext <<_ACEOF
27980 /* confdefs.h. */
27981 _ACEOF
27982 cat confdefs.h >>conftest.$ac_ext
27983 cat >>conftest.$ac_ext <<_ACEOF
27984 /* end confdefs.h. */
27985
27986 /* Override any gcc2 internal prototype to avoid an error. */
27987 #ifdef __cplusplus
27988 extern "C"
27989 #endif
27990 /* We use char because int might match the return type of a gcc2
27991 builtin and then its argument prototype would still apply. */
27992 char gethostbyname ();
27993 int
27994 main ()
27995 {
27996 gethostbyname ();
27997 ;
27998 return 0;
27999 }
28000 _ACEOF
28001 rm -f conftest.$ac_objext conftest$ac_exeext
28002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28003 (eval $ac_link) 2>conftest.er1
28004 ac_status=$?
28005 grep -v '^ *+' conftest.er1 >conftest.err
28006 rm -f conftest.er1
28007 cat conftest.err >&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); } &&
28010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012 (eval $ac_try) 2>&5
28013 ac_status=$?
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; } &&
28016 { ac_try='test -s conftest$ac_exeext'
28017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28018 (eval $ac_try) 2>&5
28019 ac_status=$?
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); }; }; then
28022 ac_cv_lib_nsl_gethostbyname=yes
28023 else
28024 echo "$as_me: failed program was:" >&5
28025 sed 's/^/| /' conftest.$ac_ext >&5
28026
28027 ac_cv_lib_nsl_gethostbyname=no
28028 fi
28029 rm -f conftest.err conftest.$ac_objext \
28030 conftest$ac_exeext conftest.$ac_ext
28031 LIBS=$ac_check_lib_save_LIBS
28032 fi
28033 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28034 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28035 if test $ac_cv_lib_nsl_gethostbyname = yes; then
28036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28037 fi
28038
28039 if test $ac_cv_lib_nsl_gethostbyname = no; then
28040 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28041 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28042 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28043 echo $ECHO_N "(cached) $ECHO_C" >&6
28044 else
28045 ac_check_lib_save_LIBS=$LIBS
28046 LIBS="-lbsd $LIBS"
28047 cat >conftest.$ac_ext <<_ACEOF
28048 /* confdefs.h. */
28049 _ACEOF
28050 cat confdefs.h >>conftest.$ac_ext
28051 cat >>conftest.$ac_ext <<_ACEOF
28052 /* end confdefs.h. */
28053
28054 /* Override any gcc2 internal prototype to avoid an error. */
28055 #ifdef __cplusplus
28056 extern "C"
28057 #endif
28058 /* We use char because int might match the return type of a gcc2
28059 builtin and then its argument prototype would still apply. */
28060 char gethostbyname ();
28061 int
28062 main ()
28063 {
28064 gethostbyname ();
28065 ;
28066 return 0;
28067 }
28068 _ACEOF
28069 rm -f conftest.$ac_objext conftest$ac_exeext
28070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28071 (eval $ac_link) 2>conftest.er1
28072 ac_status=$?
28073 grep -v '^ *+' conftest.er1 >conftest.err
28074 rm -f conftest.er1
28075 cat conftest.err >&5
28076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); } &&
28078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28080 (eval $ac_try) 2>&5
28081 ac_status=$?
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); }; } &&
28084 { ac_try='test -s conftest$ac_exeext'
28085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28086 (eval $ac_try) 2>&5
28087 ac_status=$?
28088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); }; }; then
28090 ac_cv_lib_bsd_gethostbyname=yes
28091 else
28092 echo "$as_me: failed program was:" >&5
28093 sed 's/^/| /' conftest.$ac_ext >&5
28094
28095 ac_cv_lib_bsd_gethostbyname=no
28096 fi
28097 rm -f conftest.err conftest.$ac_objext \
28098 conftest$ac_exeext conftest.$ac_ext
28099 LIBS=$ac_check_lib_save_LIBS
28100 fi
28101 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28102 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28103 if test $ac_cv_lib_bsd_gethostbyname = yes; then
28104 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28105 fi
28106
28107 fi
28108 fi
28109
28110 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28111 # socket/setsockopt and other routines are undefined under SCO ODT
28112 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28113 # on later versions), says Simon Leinen: it contains gethostby*
28114 # variants that don't use the name server (or something). -lsocket
28115 # must be given before -lnsl if both are needed. We assume that
28116 # if connect needs -lnsl, so does gethostbyname.
28117 echo "$as_me:$LINENO: checking for connect" >&5
28118 echo $ECHO_N "checking for connect... $ECHO_C" >&6
28119 if test "${ac_cv_func_connect+set}" = set; then
28120 echo $ECHO_N "(cached) $ECHO_C" >&6
28121 else
28122 cat >conftest.$ac_ext <<_ACEOF
28123 /* confdefs.h. */
28124 _ACEOF
28125 cat confdefs.h >>conftest.$ac_ext
28126 cat >>conftest.$ac_ext <<_ACEOF
28127 /* end confdefs.h. */
28128 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
28129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28130 #define connect innocuous_connect
28131
28132 /* System header to define __stub macros and hopefully few prototypes,
28133 which can conflict with char connect (); below.
28134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28135 <limits.h> exists even on freestanding compilers. */
28136
28137 #ifdef __STDC__
28138 # include <limits.h>
28139 #else
28140 # include <assert.h>
28141 #endif
28142
28143 #undef connect
28144
28145 /* Override any gcc2 internal prototype to avoid an error. */
28146 #ifdef __cplusplus
28147 extern "C"
28148 {
28149 #endif
28150 /* We use char because int might match the return type of a gcc2
28151 builtin and then its argument prototype would still apply. */
28152 char connect ();
28153 /* The GNU C library defines this for functions which it implements
28154 to always fail with ENOSYS. Some functions are actually named
28155 something starting with __ and the normal name is an alias. */
28156 #if defined (__stub_connect) || defined (__stub___connect)
28157 choke me
28158 #else
28159 char (*f) () = connect;
28160 #endif
28161 #ifdef __cplusplus
28162 }
28163 #endif
28164
28165 int
28166 main ()
28167 {
28168 return f != connect;
28169 ;
28170 return 0;
28171 }
28172 _ACEOF
28173 rm -f conftest.$ac_objext conftest$ac_exeext
28174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28175 (eval $ac_link) 2>conftest.er1
28176 ac_status=$?
28177 grep -v '^ *+' conftest.er1 >conftest.err
28178 rm -f conftest.er1
28179 cat conftest.err >&5
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); } &&
28182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28184 (eval $ac_try) 2>&5
28185 ac_status=$?
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); }; } &&
28188 { ac_try='test -s conftest$ac_exeext'
28189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28190 (eval $ac_try) 2>&5
28191 ac_status=$?
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); }; }; then
28194 ac_cv_func_connect=yes
28195 else
28196 echo "$as_me: failed program was:" >&5
28197 sed 's/^/| /' conftest.$ac_ext >&5
28198
28199 ac_cv_func_connect=no
28200 fi
28201 rm -f conftest.err conftest.$ac_objext \
28202 conftest$ac_exeext conftest.$ac_ext
28203 fi
28204 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28205 echo "${ECHO_T}$ac_cv_func_connect" >&6
28206
28207 if test $ac_cv_func_connect = no; then
28208 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28209 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28210 if test "${ac_cv_lib_socket_connect+set}" = set; then
28211 echo $ECHO_N "(cached) $ECHO_C" >&6
28212 else
28213 ac_check_lib_save_LIBS=$LIBS
28214 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28215 cat >conftest.$ac_ext <<_ACEOF
28216 /* confdefs.h. */
28217 _ACEOF
28218 cat confdefs.h >>conftest.$ac_ext
28219 cat >>conftest.$ac_ext <<_ACEOF
28220 /* end confdefs.h. */
28221
28222 /* Override any gcc2 internal prototype to avoid an error. */
28223 #ifdef __cplusplus
28224 extern "C"
28225 #endif
28226 /* We use char because int might match the return type of a gcc2
28227 builtin and then its argument prototype would still apply. */
28228 char connect ();
28229 int
28230 main ()
28231 {
28232 connect ();
28233 ;
28234 return 0;
28235 }
28236 _ACEOF
28237 rm -f conftest.$ac_objext conftest$ac_exeext
28238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28239 (eval $ac_link) 2>conftest.er1
28240 ac_status=$?
28241 grep -v '^ *+' conftest.er1 >conftest.err
28242 rm -f conftest.er1
28243 cat conftest.err >&5
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); } &&
28246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28248 (eval $ac_try) 2>&5
28249 ac_status=$?
28250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251 (exit $ac_status); }; } &&
28252 { ac_try='test -s conftest$ac_exeext'
28253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28254 (eval $ac_try) 2>&5
28255 ac_status=$?
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); }; }; then
28258 ac_cv_lib_socket_connect=yes
28259 else
28260 echo "$as_me: failed program was:" >&5
28261 sed 's/^/| /' conftest.$ac_ext >&5
28262
28263 ac_cv_lib_socket_connect=no
28264 fi
28265 rm -f conftest.err conftest.$ac_objext \
28266 conftest$ac_exeext conftest.$ac_ext
28267 LIBS=$ac_check_lib_save_LIBS
28268 fi
28269 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28270 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28271 if test $ac_cv_lib_socket_connect = yes; then
28272 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28273 fi
28274
28275 fi
28276
28277 # Guillermo Gomez says -lposix is necessary on A/UX.
28278 echo "$as_me:$LINENO: checking for remove" >&5
28279 echo $ECHO_N "checking for remove... $ECHO_C" >&6
28280 if test "${ac_cv_func_remove+set}" = set; then
28281 echo $ECHO_N "(cached) $ECHO_C" >&6
28282 else
28283 cat >conftest.$ac_ext <<_ACEOF
28284 /* confdefs.h. */
28285 _ACEOF
28286 cat confdefs.h >>conftest.$ac_ext
28287 cat >>conftest.$ac_ext <<_ACEOF
28288 /* end confdefs.h. */
28289 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
28290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28291 #define remove innocuous_remove
28292
28293 /* System header to define __stub macros and hopefully few prototypes,
28294 which can conflict with char remove (); below.
28295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28296 <limits.h> exists even on freestanding compilers. */
28297
28298 #ifdef __STDC__
28299 # include <limits.h>
28300 #else
28301 # include <assert.h>
28302 #endif
28303
28304 #undef remove
28305
28306 /* Override any gcc2 internal prototype to avoid an error. */
28307 #ifdef __cplusplus
28308 extern "C"
28309 {
28310 #endif
28311 /* We use char because int might match the return type of a gcc2
28312 builtin and then its argument prototype would still apply. */
28313 char remove ();
28314 /* The GNU C library defines this for functions which it implements
28315 to always fail with ENOSYS. Some functions are actually named
28316 something starting with __ and the normal name is an alias. */
28317 #if defined (__stub_remove) || defined (__stub___remove)
28318 choke me
28319 #else
28320 char (*f) () = remove;
28321 #endif
28322 #ifdef __cplusplus
28323 }
28324 #endif
28325
28326 int
28327 main ()
28328 {
28329 return f != remove;
28330 ;
28331 return 0;
28332 }
28333 _ACEOF
28334 rm -f conftest.$ac_objext conftest$ac_exeext
28335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28336 (eval $ac_link) 2>conftest.er1
28337 ac_status=$?
28338 grep -v '^ *+' conftest.er1 >conftest.err
28339 rm -f conftest.er1
28340 cat conftest.err >&5
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); } &&
28343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28345 (eval $ac_try) 2>&5
28346 ac_status=$?
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); }; } &&
28349 { ac_try='test -s conftest$ac_exeext'
28350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28351 (eval $ac_try) 2>&5
28352 ac_status=$?
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); }; }; then
28355 ac_cv_func_remove=yes
28356 else
28357 echo "$as_me: failed program was:" >&5
28358 sed 's/^/| /' conftest.$ac_ext >&5
28359
28360 ac_cv_func_remove=no
28361 fi
28362 rm -f conftest.err conftest.$ac_objext \
28363 conftest$ac_exeext conftest.$ac_ext
28364 fi
28365 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28366 echo "${ECHO_T}$ac_cv_func_remove" >&6
28367
28368 if test $ac_cv_func_remove = no; then
28369 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28370 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28371 if test "${ac_cv_lib_posix_remove+set}" = set; then
28372 echo $ECHO_N "(cached) $ECHO_C" >&6
28373 else
28374 ac_check_lib_save_LIBS=$LIBS
28375 LIBS="-lposix $LIBS"
28376 cat >conftest.$ac_ext <<_ACEOF
28377 /* confdefs.h. */
28378 _ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h. */
28382
28383 /* Override any gcc2 internal prototype to avoid an error. */
28384 #ifdef __cplusplus
28385 extern "C"
28386 #endif
28387 /* We use char because int might match the return type of a gcc2
28388 builtin and then its argument prototype would still apply. */
28389 char remove ();
28390 int
28391 main ()
28392 {
28393 remove ();
28394 ;
28395 return 0;
28396 }
28397 _ACEOF
28398 rm -f conftest.$ac_objext conftest$ac_exeext
28399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28400 (eval $ac_link) 2>conftest.er1
28401 ac_status=$?
28402 grep -v '^ *+' conftest.er1 >conftest.err
28403 rm -f conftest.er1
28404 cat conftest.err >&5
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); } &&
28407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28409 (eval $ac_try) 2>&5
28410 ac_status=$?
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); }; } &&
28413 { ac_try='test -s conftest$ac_exeext'
28414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28415 (eval $ac_try) 2>&5
28416 ac_status=$?
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); }; }; then
28419 ac_cv_lib_posix_remove=yes
28420 else
28421 echo "$as_me: failed program was:" >&5
28422 sed 's/^/| /' conftest.$ac_ext >&5
28423
28424 ac_cv_lib_posix_remove=no
28425 fi
28426 rm -f conftest.err conftest.$ac_objext \
28427 conftest$ac_exeext conftest.$ac_ext
28428 LIBS=$ac_check_lib_save_LIBS
28429 fi
28430 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28431 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28432 if test $ac_cv_lib_posix_remove = yes; then
28433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28434 fi
28435
28436 fi
28437
28438 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28439 echo "$as_me:$LINENO: checking for shmat" >&5
28440 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28441 if test "${ac_cv_func_shmat+set}" = set; then
28442 echo $ECHO_N "(cached) $ECHO_C" >&6
28443 else
28444 cat >conftest.$ac_ext <<_ACEOF
28445 /* confdefs.h. */
28446 _ACEOF
28447 cat confdefs.h >>conftest.$ac_ext
28448 cat >>conftest.$ac_ext <<_ACEOF
28449 /* end confdefs.h. */
28450 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28452 #define shmat innocuous_shmat
28453
28454 /* System header to define __stub macros and hopefully few prototypes,
28455 which can conflict with char shmat (); below.
28456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28457 <limits.h> exists even on freestanding compilers. */
28458
28459 #ifdef __STDC__
28460 # include <limits.h>
28461 #else
28462 # include <assert.h>
28463 #endif
28464
28465 #undef shmat
28466
28467 /* Override any gcc2 internal prototype to avoid an error. */
28468 #ifdef __cplusplus
28469 extern "C"
28470 {
28471 #endif
28472 /* We use char because int might match the return type of a gcc2
28473 builtin and then its argument prototype would still apply. */
28474 char shmat ();
28475 /* The GNU C library defines this for functions which it implements
28476 to always fail with ENOSYS. Some functions are actually named
28477 something starting with __ and the normal name is an alias. */
28478 #if defined (__stub_shmat) || defined (__stub___shmat)
28479 choke me
28480 #else
28481 char (*f) () = shmat;
28482 #endif
28483 #ifdef __cplusplus
28484 }
28485 #endif
28486
28487 int
28488 main ()
28489 {
28490 return f != shmat;
28491 ;
28492 return 0;
28493 }
28494 _ACEOF
28495 rm -f conftest.$ac_objext conftest$ac_exeext
28496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28497 (eval $ac_link) 2>conftest.er1
28498 ac_status=$?
28499 grep -v '^ *+' conftest.er1 >conftest.err
28500 rm -f conftest.er1
28501 cat conftest.err >&5
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); } &&
28504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28506 (eval $ac_try) 2>&5
28507 ac_status=$?
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); }; } &&
28510 { ac_try='test -s conftest$ac_exeext'
28511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28512 (eval $ac_try) 2>&5
28513 ac_status=$?
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); }; }; then
28516 ac_cv_func_shmat=yes
28517 else
28518 echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.$ac_ext >&5
28520
28521 ac_cv_func_shmat=no
28522 fi
28523 rm -f conftest.err conftest.$ac_objext \
28524 conftest$ac_exeext conftest.$ac_ext
28525 fi
28526 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28527 echo "${ECHO_T}$ac_cv_func_shmat" >&6
28528
28529 if test $ac_cv_func_shmat = no; then
28530 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28531 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28532 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28533 echo $ECHO_N "(cached) $ECHO_C" >&6
28534 else
28535 ac_check_lib_save_LIBS=$LIBS
28536 LIBS="-lipc $LIBS"
28537 cat >conftest.$ac_ext <<_ACEOF
28538 /* confdefs.h. */
28539 _ACEOF
28540 cat confdefs.h >>conftest.$ac_ext
28541 cat >>conftest.$ac_ext <<_ACEOF
28542 /* end confdefs.h. */
28543
28544 /* Override any gcc2 internal prototype to avoid an error. */
28545 #ifdef __cplusplus
28546 extern "C"
28547 #endif
28548 /* We use char because int might match the return type of a gcc2
28549 builtin and then its argument prototype would still apply. */
28550 char shmat ();
28551 int
28552 main ()
28553 {
28554 shmat ();
28555 ;
28556 return 0;
28557 }
28558 _ACEOF
28559 rm -f conftest.$ac_objext conftest$ac_exeext
28560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28561 (eval $ac_link) 2>conftest.er1
28562 ac_status=$?
28563 grep -v '^ *+' conftest.er1 >conftest.err
28564 rm -f conftest.er1
28565 cat conftest.err >&5
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); } &&
28568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570 (eval $ac_try) 2>&5
28571 ac_status=$?
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; } &&
28574 { ac_try='test -s conftest$ac_exeext'
28575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576 (eval $ac_try) 2>&5
28577 ac_status=$?
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); }; }; then
28580 ac_cv_lib_ipc_shmat=yes
28581 else
28582 echo "$as_me: failed program was:" >&5
28583 sed 's/^/| /' conftest.$ac_ext >&5
28584
28585 ac_cv_lib_ipc_shmat=no
28586 fi
28587 rm -f conftest.err conftest.$ac_objext \
28588 conftest$ac_exeext conftest.$ac_ext
28589 LIBS=$ac_check_lib_save_LIBS
28590 fi
28591 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28592 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28593 if test $ac_cv_lib_ipc_shmat = yes; then
28594 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28595 fi
28596
28597 fi
28598 fi
28599
28600 # Check for libraries that X11R6 Xt/Xaw programs need.
28601 ac_save_LDFLAGS=$LDFLAGS
28602 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28603 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28604 # check for ICE first), but we must link in the order -lSM -lICE or
28605 # we get undefined symbols. So assume we have SM if we have ICE.
28606 # These have to be linked with before -lX11, unlike the other
28607 # libraries we check for below, so use a different variable.
28608 # John Interrante, Karl Berry
28609 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28610 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28611 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28612 echo $ECHO_N "(cached) $ECHO_C" >&6
28613 else
28614 ac_check_lib_save_LIBS=$LIBS
28615 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28616 cat >conftest.$ac_ext <<_ACEOF
28617 /* confdefs.h. */
28618 _ACEOF
28619 cat confdefs.h >>conftest.$ac_ext
28620 cat >>conftest.$ac_ext <<_ACEOF
28621 /* end confdefs.h. */
28622
28623 /* Override any gcc2 internal prototype to avoid an error. */
28624 #ifdef __cplusplus
28625 extern "C"
28626 #endif
28627 /* We use char because int might match the return type of a gcc2
28628 builtin and then its argument prototype would still apply. */
28629 char IceConnectionNumber ();
28630 int
28631 main ()
28632 {
28633 IceConnectionNumber ();
28634 ;
28635 return 0;
28636 }
28637 _ACEOF
28638 rm -f conftest.$ac_objext conftest$ac_exeext
28639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28640 (eval $ac_link) 2>conftest.er1
28641 ac_status=$?
28642 grep -v '^ *+' conftest.er1 >conftest.err
28643 rm -f conftest.er1
28644 cat conftest.err >&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); } &&
28647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28649 (eval $ac_try) 2>&5
28650 ac_status=$?
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); }; } &&
28653 { ac_try='test -s conftest$ac_exeext'
28654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655 (eval $ac_try) 2>&5
28656 ac_status=$?
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); }; }; then
28659 ac_cv_lib_ICE_IceConnectionNumber=yes
28660 else
28661 echo "$as_me: failed program was:" >&5
28662 sed 's/^/| /' conftest.$ac_ext >&5
28663
28664 ac_cv_lib_ICE_IceConnectionNumber=no
28665 fi
28666 rm -f conftest.err conftest.$ac_objext \
28667 conftest$ac_exeext conftest.$ac_ext
28668 LIBS=$ac_check_lib_save_LIBS
28669 fi
28670 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28671 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28672 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28673 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28674 fi
28675
28676 LDFLAGS=$ac_save_LDFLAGS
28677
28678 fi
28679
28680
28681 if test "$no_x" = "yes"; then
28682 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
28683 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
28684 { (exit 1); exit 1; }; }
28685 fi
28686
28687 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28688 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
28689 AFMINSTALL=afminstall
28690 COMPILED_X_PROGRAM=0
28691
28692 fi
28693
28694 if test "$wxUSE_X11" = 1; then
28695 if test "$wxUSE_NANOX" = "yes"; then
28696 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28697 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28698 if test "x$MICROWIN" = x ; then
28699 echo "$as_me:$LINENO: result: not found" >&5
28700 echo "${ECHO_T}not found" >&6
28701 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28702 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28703 { (exit 1); exit 1; }; }
28704 else
28705 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28706 echo "${ECHO_T}$MICROWIN" >&6
28707 cat >>confdefs.h <<\_ACEOF
28708 #define wxUSE_NANOX 1
28709 _ACEOF
28710
28711 fi
28712 fi
28713
28714 if test "$wxUSE_UNICODE" = "yes"; then
28715
28716 succeeded=no
28717
28718 if test -z "$PKG_CONFIG"; then
28719 # Extract the first word of "pkg-config", so it can be a program name with args.
28720 set dummy pkg-config; ac_word=$2
28721 echo "$as_me:$LINENO: checking for $ac_word" >&5
28722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28723 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28724 echo $ECHO_N "(cached) $ECHO_C" >&6
28725 else
28726 case $PKG_CONFIG in
28727 [\\/]* | ?:[\\/]*)
28728 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28729 ;;
28730 *)
28731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28732 for as_dir in $PATH
28733 do
28734 IFS=$as_save_IFS
28735 test -z "$as_dir" && as_dir=.
28736 for ac_exec_ext in '' $ac_executable_extensions; do
28737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28738 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28740 break 2
28741 fi
28742 done
28743 done
28744
28745 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28746 ;;
28747 esac
28748 fi
28749 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28750
28751 if test -n "$PKG_CONFIG"; then
28752 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28753 echo "${ECHO_T}$PKG_CONFIG" >&6
28754 else
28755 echo "$as_me:$LINENO: result: no" >&5
28756 echo "${ECHO_T}no" >&6
28757 fi
28758
28759 fi
28760
28761 if test "$PKG_CONFIG" = "no" ; then
28762 echo "*** The pkg-config script could not be found. Make sure it is"
28763 echo "*** in your path, or set the PKG_CONFIG environment variable"
28764 echo "*** to the full path to pkg-config."
28765 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28766 else
28767 PKG_CONFIG_MIN_VERSION=0.9.0
28768 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28769 echo "$as_me:$LINENO: checking for pangox" >&5
28770 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28771
28772 if $PKG_CONFIG --exists "pangox" ; then
28773 echo "$as_me:$LINENO: result: yes" >&5
28774 echo "${ECHO_T}yes" >&6
28775 succeeded=yes
28776
28777 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28778 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28779 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28780 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28781 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28782
28783 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28784 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28785 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28786 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28787 echo "${ECHO_T}$PANGOX_LIBS" >&6
28788 else
28789 PANGOX_CFLAGS=""
28790 PANGOX_LIBS=""
28791 ## If we have a custom action on failure, don't print errors, but
28792 ## do set a variable so people can do so.
28793 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28794
28795 fi
28796
28797
28798
28799 else
28800 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28801 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28802 fi
28803 fi
28804
28805 if test $succeeded = yes; then
28806
28807 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28808 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28809
28810 else
28811
28812 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28813 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28814 { (exit 1); exit 1; }; }
28815
28816
28817 fi
28818
28819
28820 succeeded=no
28821
28822 if test -z "$PKG_CONFIG"; then
28823 # Extract the first word of "pkg-config", so it can be a program name with args.
28824 set dummy pkg-config; ac_word=$2
28825 echo "$as_me:$LINENO: checking for $ac_word" >&5
28826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28827 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28828 echo $ECHO_N "(cached) $ECHO_C" >&6
28829 else
28830 case $PKG_CONFIG in
28831 [\\/]* | ?:[\\/]*)
28832 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28833 ;;
28834 *)
28835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28836 for as_dir in $PATH
28837 do
28838 IFS=$as_save_IFS
28839 test -z "$as_dir" && as_dir=.
28840 for ac_exec_ext in '' $ac_executable_extensions; do
28841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28842 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28844 break 2
28845 fi
28846 done
28847 done
28848
28849 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28850 ;;
28851 esac
28852 fi
28853 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28854
28855 if test -n "$PKG_CONFIG"; then
28856 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28857 echo "${ECHO_T}$PKG_CONFIG" >&6
28858 else
28859 echo "$as_me:$LINENO: result: no" >&5
28860 echo "${ECHO_T}no" >&6
28861 fi
28862
28863 fi
28864
28865 if test "$PKG_CONFIG" = "no" ; then
28866 echo "*** The pkg-config script could not be found. Make sure it is"
28867 echo "*** in your path, or set the PKG_CONFIG environment variable"
28868 echo "*** to the full path to pkg-config."
28869 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28870 else
28871 PKG_CONFIG_MIN_VERSION=0.9.0
28872 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28873 echo "$as_me:$LINENO: checking for pangoft2" >&5
28874 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28875
28876 if $PKG_CONFIG --exists "pangoft2" ; then
28877 echo "$as_me:$LINENO: result: yes" >&5
28878 echo "${ECHO_T}yes" >&6
28879 succeeded=yes
28880
28881 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28882 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28883 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28884 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28885 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28886
28887 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28888 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28889 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28890 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28891 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28892 else
28893 PANGOFT2_CFLAGS=""
28894 PANGOFT2_LIBS=""
28895 ## If we have a custom action on failure, don't print errors, but
28896 ## do set a variable so people can do so.
28897 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28898
28899 fi
28900
28901
28902
28903 else
28904 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28905 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28906 fi
28907 fi
28908
28909 if test $succeeded = yes; then
28910
28911 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28912 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28913
28914 else
28915
28916 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28917 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28918 wxUSE_PRINTING_ARCHITECTURE="no"
28919
28920
28921 fi
28922
28923
28924 succeeded=no
28925
28926 if test -z "$PKG_CONFIG"; then
28927 # Extract the first word of "pkg-config", so it can be a program name with args.
28928 set dummy pkg-config; ac_word=$2
28929 echo "$as_me:$LINENO: checking for $ac_word" >&5
28930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28931 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28932 echo $ECHO_N "(cached) $ECHO_C" >&6
28933 else
28934 case $PKG_CONFIG in
28935 [\\/]* | ?:[\\/]*)
28936 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28937 ;;
28938 *)
28939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28940 for as_dir in $PATH
28941 do
28942 IFS=$as_save_IFS
28943 test -z "$as_dir" && as_dir=.
28944 for ac_exec_ext in '' $ac_executable_extensions; do
28945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28946 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28948 break 2
28949 fi
28950 done
28951 done
28952
28953 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28954 ;;
28955 esac
28956 fi
28957 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28958
28959 if test -n "$PKG_CONFIG"; then
28960 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28961 echo "${ECHO_T}$PKG_CONFIG" >&6
28962 else
28963 echo "$as_me:$LINENO: result: no" >&5
28964 echo "${ECHO_T}no" >&6
28965 fi
28966
28967 fi
28968
28969 if test "$PKG_CONFIG" = "no" ; then
28970 echo "*** The pkg-config script could not be found. Make sure it is"
28971 echo "*** in your path, or set the PKG_CONFIG environment variable"
28972 echo "*** to the full path to pkg-config."
28973 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28974 else
28975 PKG_CONFIG_MIN_VERSION=0.9.0
28976 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28977 echo "$as_me:$LINENO: checking for pangoxft" >&5
28978 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
28979
28980 if $PKG_CONFIG --exists "pangoxft" ; then
28981 echo "$as_me:$LINENO: result: yes" >&5
28982 echo "${ECHO_T}yes" >&6
28983 succeeded=yes
28984
28985 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
28986 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
28987 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
28988 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
28989 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
28990
28991 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
28992 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
28993 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
28994 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
28995 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
28996 else
28997 PANGOXFT_CFLAGS=""
28998 PANGOXFT_LIBS=""
28999 ## If we have a custom action on failure, don't print errors, but
29000 ## do set a variable so people can do so.
29001 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29002
29003 fi
29004
29005
29006
29007 else
29008 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29009 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29010 fi
29011 fi
29012
29013 if test $succeeded = yes; then
29014
29015 cat >>confdefs.h <<\_ACEOF
29016 #define HAVE_PANGO_XFT 1
29017 _ACEOF
29018
29019 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
29020 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29021
29022 else
29023
29024 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29025 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29026
29027
29028 fi
29029
29030 save_CFLAGS="$CFLAGS"
29031 save_LIBS="$LIBS"
29032 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
29033 LIBS="$LIBS $PANGOX_LIBS"
29034
29035 for ac_func in pango_font_family_is_monospace
29036 do
29037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29038 echo "$as_me:$LINENO: checking for $ac_func" >&5
29039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29040 if eval "test \"\${$as_ac_var+set}\" = set"; then
29041 echo $ECHO_N "(cached) $ECHO_C" >&6
29042 else
29043 cat >conftest.$ac_ext <<_ACEOF
29044 /* confdefs.h. */
29045 _ACEOF
29046 cat confdefs.h >>conftest.$ac_ext
29047 cat >>conftest.$ac_ext <<_ACEOF
29048 /* end confdefs.h. */
29049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29051 #define $ac_func innocuous_$ac_func
29052
29053 /* System header to define __stub macros and hopefully few prototypes,
29054 which can conflict with char $ac_func (); below.
29055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29056 <limits.h> exists even on freestanding compilers. */
29057
29058 #ifdef __STDC__
29059 # include <limits.h>
29060 #else
29061 # include <assert.h>
29062 #endif
29063
29064 #undef $ac_func
29065
29066 /* Override any gcc2 internal prototype to avoid an error. */
29067 #ifdef __cplusplus
29068 extern "C"
29069 {
29070 #endif
29071 /* We use char because int might match the return type of a gcc2
29072 builtin and then its argument prototype would still apply. */
29073 char $ac_func ();
29074 /* The GNU C library defines this for functions which it implements
29075 to always fail with ENOSYS. Some functions are actually named
29076 something starting with __ and the normal name is an alias. */
29077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29078 choke me
29079 #else
29080 char (*f) () = $ac_func;
29081 #endif
29082 #ifdef __cplusplus
29083 }
29084 #endif
29085
29086 int
29087 main ()
29088 {
29089 return f != $ac_func;
29090 ;
29091 return 0;
29092 }
29093 _ACEOF
29094 rm -f conftest.$ac_objext conftest$ac_exeext
29095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29096 (eval $ac_link) 2>conftest.er1
29097 ac_status=$?
29098 grep -v '^ *+' conftest.er1 >conftest.err
29099 rm -f conftest.er1
29100 cat conftest.err >&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); } &&
29103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29105 (eval $ac_try) 2>&5
29106 ac_status=$?
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; } &&
29109 { ac_try='test -s conftest$ac_exeext'
29110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29111 (eval $ac_try) 2>&5
29112 ac_status=$?
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); }; }; then
29115 eval "$as_ac_var=yes"
29116 else
29117 echo "$as_me: failed program was:" >&5
29118 sed 's/^/| /' conftest.$ac_ext >&5
29119
29120 eval "$as_ac_var=no"
29121 fi
29122 rm -f conftest.err conftest.$ac_objext \
29123 conftest$ac_exeext conftest.$ac_ext
29124 fi
29125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29127 if test `eval echo '${'$as_ac_var'}'` = yes; then
29128 cat >>confdefs.h <<_ACEOF
29129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29130 _ACEOF
29131
29132 fi
29133 done
29134
29135 CFLAGS="$save_CFLAGS"
29136 LIBS="$save_LIBS"
29137 fi
29138
29139 wxUSE_UNIVERSAL="yes"
29140
29141 if test "$wxUSE_NANOX" = "yes"; then
29142 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29143 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"
29144 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29145 else
29146 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29147 fi
29148
29149 TOOLKIT=X11
29150 GUIDIST=X11_DIST
29151 fi
29152
29153 if test "$wxUSE_MOTIF" = 1; then
29154 if test "$wxUSE_UNICODE" = "yes"; then
29155 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29156 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29157 { (exit 1); exit 1; }; }
29158 fi
29159
29160 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29161 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
29162
29163 ac_find_includes=
29164 for ac_dir in $SEARCH_INCLUDE /usr/include;
29165 do
29166 if test -f "$ac_dir/Xm/Xm.h"; then
29167 ac_find_includes=$ac_dir
29168 break
29169 fi
29170 done
29171
29172 if test "$ac_find_includes" != "" ; then
29173 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29174 echo "${ECHO_T}found in $ac_find_includes" >&6
29175
29176 if test "x$ac_find_includes" = "x/usr/include"; then
29177 ac_path_to_include=""
29178 else
29179 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29180 result=$?
29181 if test $result = 0; then
29182 ac_path_to_include=""
29183 else
29184 ac_path_to_include=" -I$ac_find_includes"
29185 fi
29186 fi
29187
29188 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29189 else
29190 save_CFLAGS=$CFLAGS
29191 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29192
29193 cat >conftest.$ac_ext <<_ACEOF
29194 /* confdefs.h. */
29195 _ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h. */
29199
29200 #include <Xm/Xm.h>
29201
29202 int
29203 main ()
29204 {
29205
29206 int version;
29207 version = xmUseVersion;
29208
29209 ;
29210 return 0;
29211 }
29212 _ACEOF
29213 rm -f conftest.$ac_objext
29214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29215 (eval $ac_compile) 2>conftest.er1
29216 ac_status=$?
29217 grep -v '^ *+' conftest.er1 >conftest.err
29218 rm -f conftest.er1
29219 cat conftest.err >&5
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); } &&
29222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224 (eval $ac_try) 2>&5
29225 ac_status=$?
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; } &&
29228 { ac_try='test -s conftest.$ac_objext'
29229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29230 (eval $ac_try) 2>&5
29231 ac_status=$?
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; }; then
29234
29235 echo "$as_me:$LINENO: result: found in default search path" >&5
29236 echo "${ECHO_T}found in default search path" >&6
29237 COMPILED_X_PROGRAM=1
29238
29239 else
29240 echo "$as_me: failed program was:" >&5
29241 sed 's/^/| /' conftest.$ac_ext >&5
29242
29243
29244 echo "$as_me:$LINENO: result: no" >&5
29245 echo "${ECHO_T}no" >&6
29246 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29247 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
29248 { (exit 1); exit 1; }; }
29249
29250
29251 fi
29252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29253
29254 CFLAGS=$save_CFLAGS
29255 fi
29256
29257
29258 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
29259 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29260
29261 ac_find_libraries=
29262 for ac_dir in $SEARCH_LIB;
29263 do
29264 for ac_extension in a so sl dylib dll.a; do
29265 if test -f "$ac_dir/libXm.$ac_extension"; then
29266 ac_find_libraries=$ac_dir
29267 break 2
29268 fi
29269 done
29270 done
29271
29272
29273 if test "x$ac_find_libraries" != "x" ; then
29274 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29275 echo "${ECHO_T}found in $ac_find_libraries" >&6
29276
29277
29278 if test "$ac_find_libraries" = "default location"; then
29279 ac_path_to_link=""
29280 else
29281 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29282 result=$?
29283 if test $result = 0; then
29284 ac_path_to_link=""
29285 else
29286 ac_path_to_link=" -L$ac_find_libraries"
29287 fi
29288 fi
29289
29290 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29291 else
29292 save_CFLAGS=$CFLAGS
29293 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29294 save_LIBS="$LIBS"
29295 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
29296
29297 cat >conftest.$ac_ext <<_ACEOF
29298 /* confdefs.h. */
29299 _ACEOF
29300 cat confdefs.h >>conftest.$ac_ext
29301 cat >>conftest.$ac_ext <<_ACEOF
29302 /* end confdefs.h. */
29303
29304 #include <Xm/Xm.h>
29305
29306 int
29307 main ()
29308 {
29309
29310 int version;
29311 version = xmUseVersion;
29312
29313 ;
29314 return 0;
29315 }
29316 _ACEOF
29317 rm -f conftest.$ac_objext conftest$ac_exeext
29318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29319 (eval $ac_link) 2>conftest.er1
29320 ac_status=$?
29321 grep -v '^ *+' conftest.er1 >conftest.err
29322 rm -f conftest.er1
29323 cat conftest.err >&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } &&
29326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29328 (eval $ac_try) 2>&5
29329 ac_status=$?
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); }; } &&
29332 { ac_try='test -s conftest$ac_exeext'
29333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29334 (eval $ac_try) 2>&5
29335 ac_status=$?
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337 (exit $ac_status); }; }; then
29338
29339 echo "$as_me:$LINENO: result: found in default search path" >&5
29340 echo "${ECHO_T}found in default search path" >&6
29341 COMPILED_X_PROGRAM=1
29342
29343 else
29344 echo "$as_me: failed program was:" >&5
29345 sed 's/^/| /' conftest.$ac_ext >&5
29346
29347
29348 echo "$as_me:$LINENO: result: no" >&5
29349 echo "${ECHO_T}no" >&6
29350 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
29351 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29352 { (exit 1); exit 1; }; }
29353
29354
29355 fi
29356 rm -f conftest.err conftest.$ac_objext \
29357 conftest$ac_exeext conftest.$ac_ext
29358
29359 CFLAGS=$save_CFLAGS
29360 LIBS="$save_LIBS"
29361 fi
29362
29363 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29364 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29365 libp_link=""
29366 libsm_ice_link=""
29367 libs_found=0
29368 for libp in "" " -lXp"; do
29369 if test "$libs_found" = "0"; then
29370 for libsm_ice in "" " -lSM -lICE"; do
29371 if test "$libs_found" = "0"; then
29372 save_LIBS="$LIBS"
29373 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29374 save_CFLAGS=$CFLAGS
29375 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29376
29377 cat >conftest.$ac_ext <<_ACEOF
29378 /* confdefs.h. */
29379 _ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h. */
29383
29384 #include <Xm/Xm.h>
29385 #include <Xm/List.h>
29386
29387 int
29388 main ()
29389 {
29390
29391 XmString string = NULL;
29392 Widget w = NULL;
29393 int position = 0;
29394 XmListAddItem(w, string, position);
29395
29396 ;
29397 return 0;
29398 }
29399 _ACEOF
29400 rm -f conftest.$ac_objext conftest$ac_exeext
29401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29402 (eval $ac_link) 2>conftest.er1
29403 ac_status=$?
29404 grep -v '^ *+' conftest.er1 >conftest.err
29405 rm -f conftest.er1
29406 cat conftest.err >&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); } &&
29409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29412 ac_status=$?
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; } &&
29415 { ac_try='test -s conftest$ac_exeext'
29416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29417 (eval $ac_try) 2>&5
29418 ac_status=$?
29419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420 (exit $ac_status); }; }; then
29421
29422 libp_link="$libp"
29423 libsm_ice_link="$libsm_ice"
29424 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29425 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29426 libs_found=1
29427
29428 else
29429 echo "$as_me: failed program was:" >&5
29430 sed 's/^/| /' conftest.$ac_ext >&5
29431
29432
29433
29434 fi
29435 rm -f conftest.err conftest.$ac_objext \
29436 conftest$ac_exeext conftest.$ac_ext
29437
29438 LIBS="$save_LIBS"
29439 CFLAGS=$save_CFLAGS
29440 fi
29441 done
29442 fi
29443 done
29444
29445 if test "$libs_found" = "0"; then
29446 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29447 echo "${ECHO_T}can't find the right libraries" >&6
29448 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29449 echo "$as_me: error: can't link a simple motif program" >&2;}
29450 { (exit 1); exit 1; }; }
29451 fi
29452
29453 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29454 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29455 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29456 echo $ECHO_N "(cached) $ECHO_C" >&6
29457 else
29458 ac_check_lib_save_LIBS=$LIBS
29459 LIBS="-lSgm $LIBS"
29460 cat >conftest.$ac_ext <<_ACEOF
29461 /* confdefs.h. */
29462 _ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h. */
29466
29467 /* Override any gcc2 internal prototype to avoid an error. */
29468 #ifdef __cplusplus
29469 extern "C"
29470 #endif
29471 /* We use char because int might match the return type of a gcc2
29472 builtin and then its argument prototype would still apply. */
29473 char SgCreateList ();
29474 int
29475 main ()
29476 {
29477 SgCreateList ();
29478 ;
29479 return 0;
29480 }
29481 _ACEOF
29482 rm -f conftest.$ac_objext conftest$ac_exeext
29483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29484 (eval $ac_link) 2>conftest.er1
29485 ac_status=$?
29486 grep -v '^ *+' conftest.er1 >conftest.err
29487 rm -f conftest.er1
29488 cat conftest.err >&5
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); } &&
29491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29493 (eval $ac_try) 2>&5
29494 ac_status=$?
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; } &&
29497 { ac_try='test -s conftest$ac_exeext'
29498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29499 (eval $ac_try) 2>&5
29500 ac_status=$?
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); }; }; then
29503 ac_cv_lib_Sgm_SgCreateList=yes
29504 else
29505 echo "$as_me: failed program was:" >&5
29506 sed 's/^/| /' conftest.$ac_ext >&5
29507
29508 ac_cv_lib_Sgm_SgCreateList=no
29509 fi
29510 rm -f conftest.err conftest.$ac_objext \
29511 conftest$ac_exeext conftest.$ac_ext
29512 LIBS=$ac_check_lib_save_LIBS
29513 fi
29514 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29515 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29516 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29517 libsgm_link=" -lSgm"
29518 fi
29519
29520
29521 save_CFLAGS=$CFLAGS
29522 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29523
29524 echo "$as_me:$LINENO: checking for Motif 2" >&5
29525 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
29526 if test "${wx_cv_lib_motif2+set}" = set; then
29527 echo $ECHO_N "(cached) $ECHO_C" >&6
29528 else
29529 cat >conftest.$ac_ext <<_ACEOF
29530 /* confdefs.h. */
29531 _ACEOF
29532 cat confdefs.h >>conftest.$ac_ext
29533 cat >>conftest.$ac_ext <<_ACEOF
29534 /* end confdefs.h. */
29535
29536 #include <Xm/Xm.h>
29537
29538 int
29539 main ()
29540 {
29541
29542 #if XmVersion < 2000
29543 Not Motif 2
29544 #endif
29545
29546 ;
29547 return 0;
29548 }
29549 _ACEOF
29550 rm -f conftest.$ac_objext
29551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29552 (eval $ac_compile) 2>conftest.er1
29553 ac_status=$?
29554 grep -v '^ *+' conftest.er1 >conftest.err
29555 rm -f conftest.er1
29556 cat conftest.err >&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } &&
29559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29561 (eval $ac_try) 2>&5
29562 ac_status=$?
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); }; } &&
29565 { ac_try='test -s conftest.$ac_objext'
29566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29567 (eval $ac_try) 2>&5
29568 ac_status=$?
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; }; then
29571 wx_cv_lib_motif2="yes"
29572 else
29573 echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29575
29576 wx_cv_lib_motif2="no"
29577 fi
29578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29579 fi
29580 echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29581 echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29582 if test "$wx_cv_lib_motif2" = "yes"; then
29583 cat >>confdefs.h <<\_ACEOF
29584 #define __WXMOTIF20__ 1
29585 _ACEOF
29586
29587 else
29588 cat >>confdefs.h <<\_ACEOF
29589 #define __WXMOTIF20__ 0
29590 _ACEOF
29591
29592 fi
29593
29594 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29595 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
29596 if test "${wx_cv_lib_lesstif+set}" = set; then
29597 echo $ECHO_N "(cached) $ECHO_C" >&6
29598 else
29599 cat >conftest.$ac_ext <<_ACEOF
29600 /* confdefs.h. */
29601 _ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h. */
29605
29606 #include <Xm/Xm.h>
29607
29608 int
29609 main ()
29610 {
29611
29612 #if !defined(LesstifVersion) || LesstifVersion <= 0
29613 Not Lesstif
29614 #endif
29615
29616 ;
29617 return 0;
29618 }
29619 _ACEOF
29620 rm -f conftest.$ac_objext
29621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29622 (eval $ac_compile) 2>conftest.er1
29623 ac_status=$?
29624 grep -v '^ *+' conftest.er1 >conftest.err
29625 rm -f conftest.er1
29626 cat conftest.err >&5
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); } &&
29629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29631 (eval $ac_try) 2>&5
29632 ac_status=$?
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); }; } &&
29635 { ac_try='test -s conftest.$ac_objext'
29636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29637 (eval $ac_try) 2>&5
29638 ac_status=$?
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); }; }; then
29641 wx_cv_lib_lesstif="yes"
29642 else
29643 echo "$as_me: failed program was:" >&5
29644 sed 's/^/| /' conftest.$ac_ext >&5
29645
29646 wx_cv_lib_lesstif="no"
29647 fi
29648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29649
29650 fi
29651 echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29652 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29653 if test "$wx_cv_lib_lesstif" = "yes"; then
29654 cat >>confdefs.h <<\_ACEOF
29655 #define __WXLESSTIF__ 1
29656 _ACEOF
29657
29658 else
29659 cat >>confdefs.h <<\_ACEOF
29660 #define __WXLESSTIF__ 0
29661 _ACEOF
29662
29663 fi
29664
29665 CFLAGS=$save_CFLAGS
29666
29667 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
29668 TOOLKIT=MOTIF
29669 GUIDIST=MOTIF_DIST
29670 fi
29671
29672 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29673 if test "$wxUSE_LIBXPM" = "sys"; then
29674 echo "$as_me:$LINENO: checking for Xpm library" >&5
29675 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29676
29677 ac_find_libraries=
29678 for ac_dir in $SEARCH_LIB;
29679 do
29680 for ac_extension in a so sl dylib dll.a; do
29681 if test -f "$ac_dir/libXpm.$ac_extension"; then
29682 ac_find_libraries=$ac_dir
29683 break 2
29684 fi
29685 done
29686 done
29687
29688 if test "$ac_find_libraries" != "" ; then
29689
29690 if test "$ac_find_libraries" = "default location"; then
29691 ac_path_to_link=""
29692 else
29693 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29694 result=$?
29695 if test $result = 0; then
29696 ac_path_to_link=""
29697 else
29698 ac_path_to_link=" -L$ac_find_libraries"
29699 fi
29700 fi
29701
29702 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29703 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29704 echo "${ECHO_T}found in $ac_find_libraries" >&6
29705
29706 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29707 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29708 if test "${wx_cv_x11_xpm_h+set}" = set; then
29709 echo $ECHO_N "(cached) $ECHO_C" >&6
29710 else
29711
29712 save_CFLAGS=$CFLAGS
29713 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29714
29715 cat >conftest.$ac_ext <<_ACEOF
29716 /* confdefs.h. */
29717 _ACEOF
29718 cat confdefs.h >>conftest.$ac_ext
29719 cat >>conftest.$ac_ext <<_ACEOF
29720 /* end confdefs.h. */
29721
29722 #include <X11/xpm.h>
29723
29724 int
29725 main ()
29726 {
29727
29728 int version;
29729 version = XpmLibraryVersion();
29730
29731 ;
29732 return 0;
29733 }
29734 _ACEOF
29735 rm -f conftest.$ac_objext
29736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29737 (eval $ac_compile) 2>conftest.er1
29738 ac_status=$?
29739 grep -v '^ *+' conftest.er1 >conftest.err
29740 rm -f conftest.er1
29741 cat conftest.err >&5
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); } &&
29744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29746 (eval $ac_try) 2>&5
29747 ac_status=$?
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); }; } &&
29750 { ac_try='test -s conftest.$ac_objext'
29751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29752 (eval $ac_try) 2>&5
29753 ac_status=$?
29754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755 (exit $ac_status); }; }; then
29756 wx_cv_x11_xpm_h=yes
29757 else
29758 echo "$as_me: failed program was:" >&5
29759 sed 's/^/| /' conftest.$ac_ext >&5
29760
29761 wx_cv_x11_xpm_h=no
29762
29763 fi
29764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29765
29766 CFLAGS=$save_CFLAGS
29767
29768
29769 fi
29770 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29771 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29772
29773 if test $wx_cv_x11_xpm_h = "yes"; then
29774 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29775 cat >>confdefs.h <<\_ACEOF
29776 #define wxHAVE_LIB_XPM 1
29777 _ACEOF
29778
29779 else
29780 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29781 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29782 fi
29783 fi
29784
29785 fi
29786
29787 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29788 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29789 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29790 echo $ECHO_N "(cached) $ECHO_C" >&6
29791 else
29792 ac_check_lib_save_LIBS=$LIBS
29793 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29794 cat >conftest.$ac_ext <<_ACEOF
29795 /* confdefs.h. */
29796 _ACEOF
29797 cat confdefs.h >>conftest.$ac_ext
29798 cat >>conftest.$ac_ext <<_ACEOF
29799 /* end confdefs.h. */
29800
29801 /* Override any gcc2 internal prototype to avoid an error. */
29802 #ifdef __cplusplus
29803 extern "C"
29804 #endif
29805 /* We use char because int might match the return type of a gcc2
29806 builtin and then its argument prototype would still apply. */
29807 char XShapeQueryExtension ();
29808 int
29809 main ()
29810 {
29811 XShapeQueryExtension ();
29812 ;
29813 return 0;
29814 }
29815 _ACEOF
29816 rm -f conftest.$ac_objext conftest$ac_exeext
29817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29818 (eval $ac_link) 2>conftest.er1
29819 ac_status=$?
29820 grep -v '^ *+' conftest.er1 >conftest.err
29821 rm -f conftest.er1
29822 cat conftest.err >&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } &&
29825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827 (eval $ac_try) 2>&5
29828 ac_status=$?
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); }; } &&
29831 { ac_try='test -s conftest$ac_exeext'
29832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29833 (eval $ac_try) 2>&5
29834 ac_status=$?
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); }; }; then
29837 ac_cv_lib_Xext_XShapeQueryExtension=yes
29838 else
29839 echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.$ac_ext >&5
29841
29842 ac_cv_lib_Xext_XShapeQueryExtension=no
29843 fi
29844 rm -f conftest.err conftest.$ac_objext \
29845 conftest$ac_exeext conftest.$ac_ext
29846 LIBS=$ac_check_lib_save_LIBS
29847 fi
29848 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29849 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29850 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29851
29852 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29853 wxHAVE_XEXT_LIB=1
29854
29855 fi
29856
29857
29858 if test "$wxHAVE_XEXT_LIB" = 1; then
29859 save_CFLAGS="$CFLAGS"
29860 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29861
29862 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29863 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29864 cat >conftest.$ac_ext <<_ACEOF
29865 /* confdefs.h. */
29866 _ACEOF
29867 cat confdefs.h >>conftest.$ac_ext
29868 cat >>conftest.$ac_ext <<_ACEOF
29869 /* end confdefs.h. */
29870
29871 #include <X11/Xlib.h>
29872 #include <X11/extensions/shape.h>
29873
29874 int
29875 main ()
29876 {
29877
29878 int dummy1, dummy2;
29879 XShapeQueryExtension((Display*)NULL,
29880 (int*)NULL, (int*)NULL);
29881
29882 ;
29883 return 0;
29884 }
29885 _ACEOF
29886 rm -f conftest.$ac_objext
29887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29888 (eval $ac_compile) 2>conftest.er1
29889 ac_status=$?
29890 grep -v '^ *+' conftest.er1 >conftest.err
29891 rm -f conftest.er1
29892 cat conftest.err >&5
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); } &&
29895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29897 (eval $ac_try) 2>&5
29898 ac_status=$?
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); }; } &&
29901 { ac_try='test -s conftest.$ac_objext'
29902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29903 (eval $ac_try) 2>&5
29904 ac_status=$?
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); }; }; then
29907
29908 cat >>confdefs.h <<\_ACEOF
29909 #define HAVE_XSHAPE 1
29910 _ACEOF
29911
29912 echo "$as_me:$LINENO: result: found" >&5
29913 echo "${ECHO_T}found" >&6
29914
29915 else
29916 echo "$as_me: failed program was:" >&5
29917 sed 's/^/| /' conftest.$ac_ext >&5
29918
29919
29920 echo "$as_me:$LINENO: result: not found" >&5
29921 echo "${ECHO_T}not found" >&6
29922
29923 fi
29924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29925 CFLAGS="$save_CFLAGS"
29926
29927 fi
29928 fi
29929
29930 if test "$wxUSE_MAC" = 1; then
29931 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
29932 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
29933 if test "$GCC" = yes; then
29934 echo "$as_me:$LINENO: result: gcc" >&5
29935 echo "${ECHO_T}gcc" >&6
29936 CPPFLAGS_PASCAL="-fpascal-strings"
29937 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
29938 echo "$as_me:$LINENO: result: xlc" >&5
29939 echo "${ECHO_T}xlc" >&6
29940 CPPFLAGS_PASCAL="-qmacpstr"
29941 else
29942 echo "$as_me:$LINENO: result: none" >&5
29943 echo "${ECHO_T}none" >&6
29944 fi
29945
29946 if test "x$wxUSE_UNIX" = "xyes"; then
29947 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
29948 else
29949 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
29950 fi
29951
29952 TOOLKIT=MAC
29953 GUIDIST=MACX_DIST
29954 WXBASEPORT="_carbon"
29955 fi
29956
29957 if test "$wxUSE_COCOA" = 1; then
29958 TOOLKIT=COCOA
29959 GUIDIST=COCOA_DIST
29960 fi
29961
29962 if test "$wxUSE_PM" = 1; then
29963 TOOLKIT=PM
29964 GUIDIST=PM_DIST
29965 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
29966 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
29967 if test "${wx_cv_spbcdata+set}" = set; then
29968 echo $ECHO_N "(cached) $ECHO_C" >&6
29969 else
29970
29971 cat >conftest.$ac_ext <<_ACEOF
29972 /* confdefs.h. */
29973 _ACEOF
29974 cat confdefs.h >>conftest.$ac_ext
29975 cat >>conftest.$ac_ext <<_ACEOF
29976 /* end confdefs.h. */
29977
29978 #define INCL_PM
29979 #include <os2.h>
29980
29981 int
29982 main ()
29983 {
29984
29985 SPBCDATA test;
29986
29987 ;
29988 return 0;
29989 }
29990 _ACEOF
29991 rm -f conftest.$ac_objext
29992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29993 (eval $ac_compile) 2>conftest.er1
29994 ac_status=$?
29995 grep -v '^ *+' conftest.er1 >conftest.err
29996 rm -f conftest.er1
29997 cat conftest.err >&5
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); } &&
30000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002 (eval $ac_try) 2>&5
30003 ac_status=$?
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); }; } &&
30006 { ac_try='test -s conftest.$ac_objext'
30007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30008 (eval $ac_try) 2>&5
30009 ac_status=$?
30010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011 (exit $ac_status); }; }; then
30012 wx_cv_spbcdata=yes
30013 else
30014 echo "$as_me: failed program was:" >&5
30015 sed 's/^/| /' conftest.$ac_ext >&5
30016
30017 wx_cv_spbcdata=no
30018
30019 fi
30020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30021
30022
30023 fi
30024 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30025 echo "${ECHO_T}$wx_cv_spbcdata" >&6
30026
30027 if test $wx_cv_spbcdata = "yes"; then
30028 cat >>confdefs.h <<\_ACEOF
30029 #define HAVE_SPBCDATA 1
30030 _ACEOF
30031
30032 fi
30033 fi
30034
30035 if test "$TOOLKIT" = "PM" ; then
30036 TOOLKIT_DIR="os2"
30037 else
30038 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30039 fi
30040
30041 if test "$wxUSE_UNIVERSAL" = "yes"; then
30042 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30043 WIDGET_SET=univ
30044 fi
30045
30046 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30047 DISTDIR="wx\$(TOOLKIT)"
30048 else
30049 USE_GUI=0
30050
30051 TOOLKIT_DIR="base"
30052
30053 if test "$USE_WIN32" = 1 ; then
30054 TOOLKIT="MSW"
30055 fi
30056
30057 GUIDIST="BASE_DIST"
30058 DISTDIR="wxBase"
30059 fi
30060
30061
30062 if test "$wxUSE_GUI" = "yes"; then
30063 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30064
30065 for ac_header in X11/Xlib.h
30066 do
30067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30069 echo "$as_me:$LINENO: checking for $ac_header" >&5
30070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30072 echo $ECHO_N "(cached) $ECHO_C" >&6
30073 fi
30074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30076 else
30077 # Is the header compilable?
30078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30080 cat >conftest.$ac_ext <<_ACEOF
30081 /* confdefs.h. */
30082 _ACEOF
30083 cat confdefs.h >>conftest.$ac_ext
30084 cat >>conftest.$ac_ext <<_ACEOF
30085 /* end confdefs.h. */
30086 $ac_includes_default
30087 #include <$ac_header>
30088 _ACEOF
30089 rm -f conftest.$ac_objext
30090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30091 (eval $ac_compile) 2>conftest.er1
30092 ac_status=$?
30093 grep -v '^ *+' conftest.er1 >conftest.err
30094 rm -f conftest.er1
30095 cat conftest.err >&5
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); } &&
30098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30100 (eval $ac_try) 2>&5
30101 ac_status=$?
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); }; } &&
30104 { ac_try='test -s conftest.$ac_objext'
30105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30106 (eval $ac_try) 2>&5
30107 ac_status=$?
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); }; }; then
30110 ac_header_compiler=yes
30111 else
30112 echo "$as_me: failed program was:" >&5
30113 sed 's/^/| /' conftest.$ac_ext >&5
30114
30115 ac_header_compiler=no
30116 fi
30117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30119 echo "${ECHO_T}$ac_header_compiler" >&6
30120
30121 # Is the header present?
30122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30124 cat >conftest.$ac_ext <<_ACEOF
30125 /* confdefs.h. */
30126 _ACEOF
30127 cat confdefs.h >>conftest.$ac_ext
30128 cat >>conftest.$ac_ext <<_ACEOF
30129 /* end confdefs.h. */
30130 #include <$ac_header>
30131 _ACEOF
30132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30134 ac_status=$?
30135 grep -v '^ *+' conftest.er1 >conftest.err
30136 rm -f conftest.er1
30137 cat conftest.err >&5
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); } >/dev/null; then
30140 if test -s conftest.err; then
30141 ac_cpp_err=$ac_c_preproc_warn_flag
30142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30143 else
30144 ac_cpp_err=
30145 fi
30146 else
30147 ac_cpp_err=yes
30148 fi
30149 if test -z "$ac_cpp_err"; then
30150 ac_header_preproc=yes
30151 else
30152 echo "$as_me: failed program was:" >&5
30153 sed 's/^/| /' conftest.$ac_ext >&5
30154
30155 ac_header_preproc=no
30156 fi
30157 rm -f conftest.err conftest.$ac_ext
30158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30159 echo "${ECHO_T}$ac_header_preproc" >&6
30160
30161 # So? What about this header?
30162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30163 yes:no: )
30164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30168 ac_header_preproc=yes
30169 ;;
30170 no:yes:* )
30171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30183 (
30184 cat <<\_ASBOX
30185 ## ----------------------------------------- ##
30186 ## Report this to wx-dev@lists.wxwidgets.org ##
30187 ## ----------------------------------------- ##
30188 _ASBOX
30189 ) |
30190 sed "s/^/$as_me: WARNING: /" >&2
30191 ;;
30192 esac
30193 echo "$as_me:$LINENO: checking for $ac_header" >&5
30194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30196 echo $ECHO_N "(cached) $ECHO_C" >&6
30197 else
30198 eval "$as_ac_Header=\$ac_header_preproc"
30199 fi
30200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30202
30203 fi
30204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30205 cat >>confdefs.h <<_ACEOF
30206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30207 _ACEOF
30208
30209 fi
30210
30211 done
30212
30213
30214 for ac_header in X11/XKBlib.h
30215 do
30216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30217 echo "$as_me:$LINENO: checking for $ac_header" >&5
30218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30220 echo $ECHO_N "(cached) $ECHO_C" >&6
30221 else
30222 cat >conftest.$ac_ext <<_ACEOF
30223 /* confdefs.h. */
30224 _ACEOF
30225 cat confdefs.h >>conftest.$ac_ext
30226 cat >>conftest.$ac_ext <<_ACEOF
30227 /* end confdefs.h. */
30228
30229 #if HAVE_X11_XLIB_H
30230 #include <X11/Xlib.h>
30231 #endif
30232
30233
30234 #include <$ac_header>
30235 _ACEOF
30236 rm -f conftest.$ac_objext
30237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30238 (eval $ac_compile) 2>conftest.er1
30239 ac_status=$?
30240 grep -v '^ *+' conftest.er1 >conftest.err
30241 rm -f conftest.er1
30242 cat conftest.err >&5
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); } &&
30245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30247 (eval $ac_try) 2>&5
30248 ac_status=$?
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250 (exit $ac_status); }; } &&
30251 { ac_try='test -s conftest.$ac_objext'
30252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253 (eval $ac_try) 2>&5
30254 ac_status=$?
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); }; }; then
30257 eval "$as_ac_Header=yes"
30258 else
30259 echo "$as_me: failed program was:" >&5
30260 sed 's/^/| /' conftest.$ac_ext >&5
30261
30262 eval "$as_ac_Header=no"
30263 fi
30264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30265 fi
30266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30269 cat >>confdefs.h <<_ACEOF
30270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30271 _ACEOF
30272
30273 fi
30274
30275 done
30276
30277 fi
30278 fi
30279
30280
30281
30282 IODBC_C_SRC=""
30283
30284
30285 if test "$TOOLKIT" != "MSW" ; then
30286
30287 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30288
30289 if test "${ac_cv_header_sql_h+set}" = set; then
30290 echo "$as_me:$LINENO: checking for sql.h" >&5
30291 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30292 if test "${ac_cv_header_sql_h+set}" = set; then
30293 echo $ECHO_N "(cached) $ECHO_C" >&6
30294 fi
30295 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30296 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30297 else
30298 # Is the header compilable?
30299 echo "$as_me:$LINENO: checking sql.h usability" >&5
30300 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30301 cat >conftest.$ac_ext <<_ACEOF
30302 /* confdefs.h. */
30303 _ACEOF
30304 cat confdefs.h >>conftest.$ac_ext
30305 cat >>conftest.$ac_ext <<_ACEOF
30306 /* end confdefs.h. */
30307 $ac_includes_default
30308 #include <sql.h>
30309 _ACEOF
30310 rm -f conftest.$ac_objext
30311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30312 (eval $ac_compile) 2>conftest.er1
30313 ac_status=$?
30314 grep -v '^ *+' conftest.er1 >conftest.err
30315 rm -f conftest.er1
30316 cat conftest.err >&5
30317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318 (exit $ac_status); } &&
30319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30321 (eval $ac_try) 2>&5
30322 ac_status=$?
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); }; } &&
30325 { ac_try='test -s conftest.$ac_objext'
30326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30327 (eval $ac_try) 2>&5
30328 ac_status=$?
30329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); }; }; then
30331 ac_header_compiler=yes
30332 else
30333 echo "$as_me: failed program was:" >&5
30334 sed 's/^/| /' conftest.$ac_ext >&5
30335
30336 ac_header_compiler=no
30337 fi
30338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30340 echo "${ECHO_T}$ac_header_compiler" >&6
30341
30342 # Is the header present?
30343 echo "$as_me:$LINENO: checking sql.h presence" >&5
30344 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30345 cat >conftest.$ac_ext <<_ACEOF
30346 /* confdefs.h. */
30347 _ACEOF
30348 cat confdefs.h >>conftest.$ac_ext
30349 cat >>conftest.$ac_ext <<_ACEOF
30350 /* end confdefs.h. */
30351 #include <sql.h>
30352 _ACEOF
30353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30355 ac_status=$?
30356 grep -v '^ *+' conftest.er1 >conftest.err
30357 rm -f conftest.er1
30358 cat conftest.err >&5
30359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360 (exit $ac_status); } >/dev/null; then
30361 if test -s conftest.err; then
30362 ac_cpp_err=$ac_c_preproc_warn_flag
30363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30364 else
30365 ac_cpp_err=
30366 fi
30367 else
30368 ac_cpp_err=yes
30369 fi
30370 if test -z "$ac_cpp_err"; then
30371 ac_header_preproc=yes
30372 else
30373 echo "$as_me: failed program was:" >&5
30374 sed 's/^/| /' conftest.$ac_ext >&5
30375
30376 ac_header_preproc=no
30377 fi
30378 rm -f conftest.err conftest.$ac_ext
30379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30380 echo "${ECHO_T}$ac_header_preproc" >&6
30381
30382 # So? What about this header?
30383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30384 yes:no: )
30385 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30386 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30387 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30388 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30389 ac_header_preproc=yes
30390 ;;
30391 no:yes:* )
30392 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30393 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
30394 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30395 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30396 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30397 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30398 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30399 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
30400 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30401 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
30402 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30403 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
30404 (
30405 cat <<\_ASBOX
30406 ## ----------------------------------------- ##
30407 ## Report this to wx-dev@lists.wxwidgets.org ##
30408 ## ----------------------------------------- ##
30409 _ASBOX
30410 ) |
30411 sed "s/^/$as_me: WARNING: /" >&2
30412 ;;
30413 esac
30414 echo "$as_me:$LINENO: checking for sql.h" >&5
30415 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30416 if test "${ac_cv_header_sql_h+set}" = set; then
30417 echo $ECHO_N "(cached) $ECHO_C" >&6
30418 else
30419 ac_cv_header_sql_h=$ac_header_preproc
30420 fi
30421 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30422 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30423
30424 fi
30425 if test $ac_cv_header_sql_h = yes; then
30426 found_sql_h=1
30427 fi
30428
30429
30430 if test "x$found_sql_h" = "x1" ; then
30431 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30432 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30433 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30434 echo $ECHO_N "(cached) $ECHO_C" >&6
30435 else
30436 ac_check_lib_save_LIBS=$LIBS
30437 LIBS="-liodbc $LIBS"
30438 cat >conftest.$ac_ext <<_ACEOF
30439 /* confdefs.h. */
30440 _ACEOF
30441 cat confdefs.h >>conftest.$ac_ext
30442 cat >>conftest.$ac_ext <<_ACEOF
30443 /* end confdefs.h. */
30444
30445 /* Override any gcc2 internal prototype to avoid an error. */
30446 #ifdef __cplusplus
30447 extern "C"
30448 #endif
30449 /* We use char because int might match the return type of a gcc2
30450 builtin and then its argument prototype would still apply. */
30451 char SQLAllocEnv ();
30452 int
30453 main ()
30454 {
30455 SQLAllocEnv ();
30456 ;
30457 return 0;
30458 }
30459 _ACEOF
30460 rm -f conftest.$ac_objext conftest$ac_exeext
30461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30462 (eval $ac_link) 2>conftest.er1
30463 ac_status=$?
30464 grep -v '^ *+' conftest.er1 >conftest.err
30465 rm -f conftest.er1
30466 cat conftest.err >&5
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); } &&
30469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30471 (eval $ac_try) 2>&5
30472 ac_status=$?
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); }; } &&
30475 { ac_try='test -s conftest$ac_exeext'
30476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30477 (eval $ac_try) 2>&5
30478 ac_status=$?
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); }; }; then
30481 ac_cv_lib_iodbc_SQLAllocEnv=yes
30482 else
30483 echo "$as_me: failed program was:" >&5
30484 sed 's/^/| /' conftest.$ac_ext >&5
30485
30486 ac_cv_lib_iodbc_SQLAllocEnv=no
30487 fi
30488 rm -f conftest.err conftest.$ac_objext \
30489 conftest$ac_exeext conftest.$ac_ext
30490 LIBS=$ac_check_lib_save_LIBS
30491 fi
30492 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30493 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30494 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30495 ODBC_LINK=" -liodbc"
30496 else
30497
30498 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30499 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30500 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30501 echo $ECHO_N "(cached) $ECHO_C" >&6
30502 else
30503 ac_check_lib_save_LIBS=$LIBS
30504 LIBS="-lunixodbc $LIBS"
30505 cat >conftest.$ac_ext <<_ACEOF
30506 /* confdefs.h. */
30507 _ACEOF
30508 cat confdefs.h >>conftest.$ac_ext
30509 cat >>conftest.$ac_ext <<_ACEOF
30510 /* end confdefs.h. */
30511
30512 /* Override any gcc2 internal prototype to avoid an error. */
30513 #ifdef __cplusplus
30514 extern "C"
30515 #endif
30516 /* We use char because int might match the return type of a gcc2
30517 builtin and then its argument prototype would still apply. */
30518 char SQLAllocEnv ();
30519 int
30520 main ()
30521 {
30522 SQLAllocEnv ();
30523 ;
30524 return 0;
30525 }
30526 _ACEOF
30527 rm -f conftest.$ac_objext conftest$ac_exeext
30528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30529 (eval $ac_link) 2>conftest.er1
30530 ac_status=$?
30531 grep -v '^ *+' conftest.er1 >conftest.err
30532 rm -f conftest.er1
30533 cat conftest.err >&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } &&
30536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30538 (eval $ac_try) 2>&5
30539 ac_status=$?
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); }; } &&
30542 { ac_try='test -s conftest$ac_exeext'
30543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30544 (eval $ac_try) 2>&5
30545 ac_status=$?
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; }; then
30548 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30549 else
30550 echo "$as_me: failed program was:" >&5
30551 sed 's/^/| /' conftest.$ac_ext >&5
30552
30553 ac_cv_lib_unixodbc_SQLAllocEnv=no
30554 fi
30555 rm -f conftest.err conftest.$ac_objext \
30556 conftest$ac_exeext conftest.$ac_ext
30557 LIBS=$ac_check_lib_save_LIBS
30558 fi
30559 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30560 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30561 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30562 ODBC_LINK=" -lunixodbc"
30563 else
30564
30565 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30566 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30567 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30568 echo $ECHO_N "(cached) $ECHO_C" >&6
30569 else
30570 ac_check_lib_save_LIBS=$LIBS
30571 LIBS="-lodbc $LIBS"
30572 cat >conftest.$ac_ext <<_ACEOF
30573 /* confdefs.h. */
30574 _ACEOF
30575 cat confdefs.h >>conftest.$ac_ext
30576 cat >>conftest.$ac_ext <<_ACEOF
30577 /* end confdefs.h. */
30578
30579 /* Override any gcc2 internal prototype to avoid an error. */
30580 #ifdef __cplusplus
30581 extern "C"
30582 #endif
30583 /* We use char because int might match the return type of a gcc2
30584 builtin and then its argument prototype would still apply. */
30585 char SQLAllocEnv ();
30586 int
30587 main ()
30588 {
30589 SQLAllocEnv ();
30590 ;
30591 return 0;
30592 }
30593 _ACEOF
30594 rm -f conftest.$ac_objext conftest$ac_exeext
30595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30596 (eval $ac_link) 2>conftest.er1
30597 ac_status=$?
30598 grep -v '^ *+' conftest.er1 >conftest.err
30599 rm -f conftest.er1
30600 cat conftest.err >&5
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); } &&
30603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30605 (eval $ac_try) 2>&5
30606 ac_status=$?
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); }; } &&
30609 { ac_try='test -s conftest$ac_exeext'
30610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30611 (eval $ac_try) 2>&5
30612 ac_status=$?
30613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30614 (exit $ac_status); }; }; then
30615 ac_cv_lib_odbc_SQLAllocEnv=yes
30616 else
30617 echo "$as_me: failed program was:" >&5
30618 sed 's/^/| /' conftest.$ac_ext >&5
30619
30620 ac_cv_lib_odbc_SQLAllocEnv=no
30621 fi
30622 rm -f conftest.err conftest.$ac_objext \
30623 conftest$ac_exeext conftest.$ac_ext
30624 LIBS=$ac_check_lib_save_LIBS
30625 fi
30626 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30627 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30628 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30629 ODBC_LINK=" -lodbc"
30630 fi
30631
30632
30633 fi
30634
30635
30636 fi
30637
30638 fi
30639 if test "x$ODBC_LINK" = "x" ; then
30640 if test "$wxUSE_ODBC" = "sys" ; then
30641 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30642 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30643 { (exit 1); exit 1; }; }
30644 else
30645 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30646 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30647 wxUSE_ODBC=builtin
30648 fi
30649 else
30650 wxUSE_ODBC=sys
30651 fi
30652 fi
30653
30654 if test "$wxUSE_ODBC" = "builtin" ; then
30655 cat >>confdefs.h <<\_ACEOF
30656 #define wxUSE_BUILTIN_IODBC 1
30657 _ACEOF
30658
30659 fi
30660 fi
30661
30662 if test "$wxUSE_ODBC" != "no" ; then
30663 cat >>confdefs.h <<\_ACEOF
30664 #define wxUSE_ODBC 1
30665 _ACEOF
30666
30667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30668
30669 WXODBCFLAG="-D_IODBC_"
30670 fi
30671
30672
30673 if test "$wxUSE_DISPLAY" = "yes"; then
30674 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
30675 echo "$as_me:$LINENO: checking for Xinerama" >&5
30676 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30677
30678 ac_find_libraries=
30679 for ac_dir in $SEARCH_LIB;
30680 do
30681 for ac_extension in a so sl dylib dll.a; do
30682 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30683 ac_find_libraries=$ac_dir
30684 break 2
30685 fi
30686 done
30687 done
30688
30689 if test "$ac_find_libraries" != "" ; then
30690
30691 if test "$ac_find_libraries" = "default location"; then
30692 ac_path_to_link=""
30693 else
30694 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30695 result=$?
30696 if test $result = 0; then
30697 ac_path_to_link=""
30698 else
30699 ac_path_to_link=" -L$ac_find_libraries"
30700 fi
30701 fi
30702
30703 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30704 LDFLAGS="$LDFLAGS $ac_path_to_link"
30705 fi
30706 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30707 echo "$as_me:$LINENO: result: yes" >&5
30708 echo "${ECHO_T}yes" >&6
30709
30710 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30711 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30712
30713 ac_find_libraries=
30714 for ac_dir in $SEARCH_LIB;
30715 do
30716 for ac_extension in a so sl dylib dll.a; do
30717 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30718 ac_find_libraries=$ac_dir
30719 break 2
30720 fi
30721 done
30722 done
30723
30724 if test "$ac_find_libraries" != "" ; then
30725 echo "$as_me:$LINENO: result: yes" >&5
30726 echo "${ECHO_T}yes" >&6
30727
30728 for ac_header in X11/extensions/xf86vmode.h
30729 do
30730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30731 echo "$as_me:$LINENO: checking for $ac_header" >&5
30732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30734 echo $ECHO_N "(cached) $ECHO_C" >&6
30735 else
30736 cat >conftest.$ac_ext <<_ACEOF
30737 /* confdefs.h. */
30738 _ACEOF
30739 cat confdefs.h >>conftest.$ac_ext
30740 cat >>conftest.$ac_ext <<_ACEOF
30741 /* end confdefs.h. */
30742
30743 #if HAVE_X11_XLIB_H
30744 #include <X11/Xlib.h>
30745 #endif
30746
30747
30748 #include <$ac_header>
30749 _ACEOF
30750 rm -f conftest.$ac_objext
30751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30752 (eval $ac_compile) 2>conftest.er1
30753 ac_status=$?
30754 grep -v '^ *+' conftest.er1 >conftest.err
30755 rm -f conftest.er1
30756 cat conftest.err >&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } &&
30759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30761 (eval $ac_try) 2>&5
30762 ac_status=$?
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); }; } &&
30765 { ac_try='test -s conftest.$ac_objext'
30766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30767 (eval $ac_try) 2>&5
30768 ac_status=$?
30769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770 (exit $ac_status); }; }; then
30771 eval "$as_ac_Header=yes"
30772 else
30773 echo "$as_me: failed program was:" >&5
30774 sed 's/^/| /' conftest.$ac_ext >&5
30775
30776 eval "$as_ac_Header=no"
30777 fi
30778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30779 fi
30780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30783 cat >>confdefs.h <<_ACEOF
30784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30785 _ACEOF
30786
30787 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30788
30789 fi
30790
30791 done
30792
30793 else
30794 echo "$as_me:$LINENO: result: no" >&5
30795 echo "${ECHO_T}no" >&6
30796 fi
30797
30798 else
30799 echo "$as_me:$LINENO: result: no" >&5
30800 echo "${ECHO_T}no" >&6
30801 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30802 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
30803 wxUSE_DISPLAY="no"
30804 fi
30805 elif test "$wxUSE_MSW" = 1; then
30806
30807
30808 for ac_header in multimon.h ddraw.h
30809 do
30810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30811 echo "$as_me:$LINENO: checking for $ac_header" >&5
30812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30814 echo $ECHO_N "(cached) $ECHO_C" >&6
30815 else
30816 cat >conftest.$ac_ext <<_ACEOF
30817 /* confdefs.h. */
30818 _ACEOF
30819 cat confdefs.h >>conftest.$ac_ext
30820 cat >>conftest.$ac_ext <<_ACEOF
30821 /* end confdefs.h. */
30822 #include <windows.h>
30823
30824 #include <$ac_header>
30825 _ACEOF
30826 rm -f conftest.$ac_objext
30827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30828 (eval $ac_compile) 2>conftest.er1
30829 ac_status=$?
30830 grep -v '^ *+' conftest.er1 >conftest.err
30831 rm -f conftest.er1
30832 cat conftest.err >&5
30833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); } &&
30835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30837 (eval $ac_try) 2>&5
30838 ac_status=$?
30839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840 (exit $ac_status); }; } &&
30841 { ac_try='test -s conftest.$ac_objext'
30842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30843 (eval $ac_try) 2>&5
30844 ac_status=$?
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); }; }; then
30847 eval "$as_ac_Header=yes"
30848 else
30849 echo "$as_me: failed program was:" >&5
30850 sed 's/^/| /' conftest.$ac_ext >&5
30851
30852 eval "$as_ac_Header=no"
30853 fi
30854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30855 fi
30856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30859 cat >>confdefs.h <<_ACEOF
30860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30861 _ACEOF
30862
30863 else
30864
30865 wxUSE_DISPLAY="no"
30866 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
30867 echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
30868
30869 fi
30870
30871 done
30872
30873 fi
30874 fi
30875
30876
30877 USE_OPENGL=0
30878 if test "$wxUSE_OPENGL" = "yes"; then
30879 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30880 OPENGL_LIBS="-framework OpenGL -framework AGL"
30881 elif test "$wxUSE_MSW" = 1; then
30882 OPENGL_LIBS="-lopengl32 -lglu32"
30883 else
30884
30885
30886 ac_find_includes=
30887 for ac_dir in $SEARCH_INCLUDE /usr/include;
30888 do
30889 if test -f "$ac_dir/GL/gl.h"; then
30890 ac_find_includes=$ac_dir
30891 break
30892 fi
30893 done
30894
30895 if test "$ac_find_includes" != "" ; then
30896 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30897 echo "${ECHO_T}found in $ac_find_includes" >&6
30898
30899 if test "x$ac_find_includes" = "x/usr/include"; then
30900 ac_path_to_include=""
30901 else
30902 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30903 result=$?
30904 if test $result = 0; then
30905 ac_path_to_include=""
30906 else
30907 ac_path_to_include=" -I$ac_find_includes"
30908 fi
30909 fi
30910
30911 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30912 fi
30913
30914 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30915 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30916 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30917 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30918 echo $ECHO_N "(cached) $ECHO_C" >&6
30919 fi
30920 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30921 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30922 else
30923 # Is the header compilable?
30924 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
30925 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
30926 cat >conftest.$ac_ext <<_ACEOF
30927 /* confdefs.h. */
30928 _ACEOF
30929 cat confdefs.h >>conftest.$ac_ext
30930 cat >>conftest.$ac_ext <<_ACEOF
30931 /* end confdefs.h. */
30932 $ac_includes_default
30933 #include <GL/gl.h>
30934 _ACEOF
30935 rm -f conftest.$ac_objext
30936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30937 (eval $ac_compile) 2>conftest.er1
30938 ac_status=$?
30939 grep -v '^ *+' conftest.er1 >conftest.err
30940 rm -f conftest.er1
30941 cat conftest.err >&5
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); } &&
30944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30946 (eval $ac_try) 2>&5
30947 ac_status=$?
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; } &&
30950 { ac_try='test -s conftest.$ac_objext'
30951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30952 (eval $ac_try) 2>&5
30953 ac_status=$?
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); }; }; then
30956 ac_header_compiler=yes
30957 else
30958 echo "$as_me: failed program was:" >&5
30959 sed 's/^/| /' conftest.$ac_ext >&5
30960
30961 ac_header_compiler=no
30962 fi
30963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30965 echo "${ECHO_T}$ac_header_compiler" >&6
30966
30967 # Is the header present?
30968 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
30969 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
30970 cat >conftest.$ac_ext <<_ACEOF
30971 /* confdefs.h. */
30972 _ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h. */
30976 #include <GL/gl.h>
30977 _ACEOF
30978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30980 ac_status=$?
30981 grep -v '^ *+' conftest.er1 >conftest.err
30982 rm -f conftest.er1
30983 cat conftest.err >&5
30984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); } >/dev/null; then
30986 if test -s conftest.err; then
30987 ac_cpp_err=$ac_c_preproc_warn_flag
30988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30989 else
30990 ac_cpp_err=
30991 fi
30992 else
30993 ac_cpp_err=yes
30994 fi
30995 if test -z "$ac_cpp_err"; then
30996 ac_header_preproc=yes
30997 else
30998 echo "$as_me: failed program was:" >&5
30999 sed 's/^/| /' conftest.$ac_ext >&5
31000
31001 ac_header_preproc=no
31002 fi
31003 rm -f conftest.err conftest.$ac_ext
31004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31005 echo "${ECHO_T}$ac_header_preproc" >&6
31006
31007 # So? What about this header?
31008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31009 yes:no: )
31010 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31011 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31012 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31013 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31014 ac_header_preproc=yes
31015 ;;
31016 no:yes:* )
31017 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31018 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
31019 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31020 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31021 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31022 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31023 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31024 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
31025 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31026 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
31027 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31028 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
31029 (
31030 cat <<\_ASBOX
31031 ## ----------------------------------------- ##
31032 ## Report this to wx-dev@lists.wxwidgets.org ##
31033 ## ----------------------------------------- ##
31034 _ASBOX
31035 ) |
31036 sed "s/^/$as_me: WARNING: /" >&2
31037 ;;
31038 esac
31039 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31040 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31041 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31042 echo $ECHO_N "(cached) $ECHO_C" >&6
31043 else
31044 ac_cv_header_GL_gl_h=$ac_header_preproc
31045 fi
31046 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31047 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31048
31049 fi
31050 if test $ac_cv_header_GL_gl_h = yes; then
31051
31052 found_gl=0
31053
31054 echo "$as_me:$LINENO: checking for -lGL" >&5
31055 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31056
31057 ac_find_libraries=
31058 for ac_dir in $SEARCH_LIB;
31059 do
31060 for ac_extension in a so sl dylib dll.a; do
31061 if test -f "$ac_dir/libGL.$ac_extension"; then
31062 ac_find_libraries=$ac_dir
31063 break 2
31064 fi
31065 done
31066 done
31067
31068 if test "$ac_find_libraries" != "" ; then
31069 echo "$as_me:$LINENO: result: yes" >&5
31070 echo "${ECHO_T}yes" >&6
31071
31072
31073 if test "$ac_find_libraries" = "default location"; then
31074 ac_path_to_link=""
31075 else
31076 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31077 result=$?
31078 if test $result = 0; then
31079 ac_path_to_link=""
31080 else
31081 ac_path_to_link=" -L$ac_find_libraries"
31082 fi
31083 fi
31084
31085 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31086 LDFLAGS_GL="$ac_path_to_link"
31087 fi
31088
31089 echo "$as_me:$LINENO: checking for -lGLU" >&5
31090 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
31091
31092 ac_find_libraries=
31093 for ac_dir in $SEARCH_LIB;
31094 do
31095 for ac_extension in a so sl dylib dll.a; do
31096 if test -f "$ac_dir/libGLU.$ac_extension"; then
31097 ac_find_libraries=$ac_dir
31098 break 2
31099 fi
31100 done
31101 done
31102
31103 if test "$ac_find_libraries" != "" ; then
31104
31105 if test "$ac_find_libraries" = "default location"; then
31106 ac_path_to_link=""
31107 else
31108 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31109 result=$?
31110 if test $result = 0; then
31111 ac_path_to_link=""
31112 else
31113 ac_path_to_link=" -L$ac_find_libraries"
31114 fi
31115 fi
31116
31117 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31118 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31119 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31120 fi
31121
31122 found_gl=1
31123 OPENGL_LIBS="-lGL -lGLU"
31124 echo "$as_me:$LINENO: result: yes" >&5
31125 echo "${ECHO_T}yes" >&6
31126 else
31127 echo "$as_me:$LINENO: result: no" >&5
31128 echo "${ECHO_T}no" >&6
31129 fi
31130 else
31131 echo "$as_me:$LINENO: result: no" >&5
31132 echo "${ECHO_T}no" >&6
31133 fi
31134
31135 if test "$found_gl" != 1; then
31136 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31137 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31138
31139 ac_find_libraries=
31140 for ac_dir in $SEARCH_LIB;
31141 do
31142 for ac_extension in a so sl dylib dll.a; do
31143 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31144 ac_find_libraries=$ac_dir
31145 break 2
31146 fi
31147 done
31148 done
31149
31150 if test "$ac_find_libraries" != "" ; then
31151
31152 if test "$ac_find_libraries" = "default location"; then
31153 ac_path_to_link=""
31154 else
31155 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31156 result=$?
31157 if test $result = 0; then
31158 ac_path_to_link=""
31159 else
31160 ac_path_to_link=" -L$ac_find_libraries"
31161 fi
31162 fi
31163
31164 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31165 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31166 echo "$as_me:$LINENO: result: yes" >&5
31167 echo "${ECHO_T}yes" >&6
31168 else
31169 echo "$as_me:$LINENO: result: no" >&5
31170 echo "${ECHO_T}no" >&6
31171 fi
31172 fi
31173
31174 fi
31175
31176
31177
31178 if test "x$OPENGL_LIBS" = "x"; then
31179 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31180 echo "$as_me: error: OpenGL libraries not available" >&2;}
31181 { (exit 1); exit 1; }; }
31182 fi
31183 fi
31184
31185 if test "$wxUSE_OPENGL" = "yes"; then
31186 USE_OPENGL=1
31187 cat >>confdefs.h <<\_ACEOF
31188 #define wxUSE_OPENGL 1
31189 _ACEOF
31190
31191 cat >>confdefs.h <<\_ACEOF
31192 #define wxUSE_GLCANVAS 1
31193 _ACEOF
31194
31195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31196 fi
31197 fi
31198
31199
31200 if test -n "$TOOLKIT" ; then
31201 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31202 fi
31203
31204
31205
31206 if test "$wxUSE_SHARED" = "yes"; then
31207 case "${host}" in
31208 *-pc-msdosdjgpp )
31209 wxUSE_SHARED=no
31210 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31211 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31212 ;;
31213 esac
31214 fi
31215
31216 if test "$wxUSE_SHARED" = "yes"; then
31217
31218
31219 found_versioning=no
31220
31221
31222 if test $found_versioning = no ; then
31223 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31224 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31225 if test "${wx_cv_version_script+set}" = set; then
31226 echo $ECHO_N "(cached) $ECHO_C" >&6
31227 else
31228
31229 echo "VER_1 { *; };" >conftest.sym
31230 echo "int main() { return 0; }" >conftest.cpp
31231
31232 if { ac_try='
31233 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31234 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31236 (eval $ac_try) 2>&5
31237 ac_status=$?
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); }; } ; then
31240 if test -s conftest.stderr ; then
31241 wx_cv_version_script=no
31242 else
31243 wx_cv_version_script=yes
31244 fi
31245 else
31246 wx_cv_version_script=no
31247 fi
31248
31249 if test $wx_cv_version_script = yes
31250 then
31251 echo "struct B { virtual ~B() { } }; \
31252 struct D : public B { }; \
31253 void F() { D d; }" > conftest.cpp
31254
31255 if { ac_try='
31256 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31257 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31259 (eval $ac_try) 2>&5
31260 ac_status=$?
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); }; } &&
31263 { ac_try='
31264 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31265 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31267 (eval $ac_try) 2>&5
31268 ac_status=$?
31269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270 (exit $ac_status); }; }
31271 then
31272 if { ac_try='
31273 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31274 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31276 (eval $ac_try) 2>&5
31277 ac_status=$?
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); }; }
31280 then
31281 wx_cv_version_script=yes
31282 else
31283 wx_cv_version_script=no
31284 fi
31285 fi
31286 fi
31287
31288 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
31289 rm -f conftest1.output conftest2.output conftest3.output
31290
31291 fi
31292 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31293 echo "${ECHO_T}$wx_cv_version_script" >&6
31294 if test $wx_cv_version_script = yes ; then
31295 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31296 fi
31297 fi
31298
31299
31300 case "${host}" in
31301 *-*-linux* | *-*-gnu* )
31302 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
31303 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
31304 ;;
31305
31306 *-*-solaris2* )
31307 if test "$GCC" = yes ; then
31308 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
31309
31310 saveLdflags="$LDFLAGS"
31311 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31312 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31313 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31314 cat >conftest.$ac_ext <<_ACEOF
31315 /* confdefs.h. */
31316 _ACEOF
31317 cat confdefs.h >>conftest.$ac_ext
31318 cat >>conftest.$ac_ext <<_ACEOF
31319 /* end confdefs.h. */
31320
31321 int
31322 main ()
31323 {
31324
31325 ;
31326 return 0;
31327 }
31328 _ACEOF
31329 rm -f conftest.$ac_objext conftest$ac_exeext
31330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31331 (eval $ac_link) 2>conftest.er1
31332 ac_status=$?
31333 grep -v '^ *+' conftest.er1 >conftest.err
31334 rm -f conftest.er1
31335 cat conftest.err >&5
31336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337 (exit $ac_status); } &&
31338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340 (eval $ac_try) 2>&5
31341 ac_status=$?
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; } &&
31344 { ac_try='test -s conftest$ac_exeext'
31345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346 (eval $ac_try) 2>&5
31347 ac_status=$?
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; }; then
31350
31351 echo "$as_me:$LINENO: result: yes" >&5
31352 echo "${ECHO_T}yes" >&6
31353 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
31354 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
31355
31356 else
31357 echo "$as_me: failed program was:" >&5
31358 sed 's/^/| /' conftest.$ac_ext >&5
31359
31360
31361 echo "$as_me:$LINENO: result: no" >&5
31362 echo "${ECHO_T}no" >&6
31363 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31364 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31365 LDFLAGS="$saveLdflags -Wl,-R,/"
31366 cat >conftest.$ac_ext <<_ACEOF
31367 /* confdefs.h. */
31368 _ACEOF
31369 cat confdefs.h >>conftest.$ac_ext
31370 cat >>conftest.$ac_ext <<_ACEOF
31371 /* end confdefs.h. */
31372
31373 int
31374 main ()
31375 {
31376
31377 ;
31378 return 0;
31379 }
31380 _ACEOF
31381 rm -f conftest.$ac_objext conftest$ac_exeext
31382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31383 (eval $ac_link) 2>conftest.er1
31384 ac_status=$?
31385 grep -v '^ *+' conftest.er1 >conftest.err
31386 rm -f conftest.er1
31387 cat conftest.err >&5
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); } &&
31390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392 (eval $ac_try) 2>&5
31393 ac_status=$?
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; } &&
31396 { ac_try='test -s conftest$ac_exeext'
31397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398 (eval $ac_try) 2>&5
31399 ac_status=$?
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; }; then
31402
31403 echo "$as_me:$LINENO: result: yes" >&5
31404 echo "${ECHO_T}yes" >&6
31405 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31406 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31407
31408 else
31409 echo "$as_me: failed program was:" >&5
31410 sed 's/^/| /' conftest.$ac_ext >&5
31411
31412
31413 echo "$as_me:$LINENO: result: no" >&5
31414 echo "${ECHO_T}no" >&6
31415
31416 fi
31417 rm -f conftest.err conftest.$ac_objext \
31418 conftest$ac_exeext conftest.$ac_ext
31419
31420 fi
31421 rm -f conftest.err conftest.$ac_objext \
31422 conftest$ac_exeext conftest.$ac_ext
31423 LDFLAGS="$saveLdflags"
31424 else
31425 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
31426 WXCONFIG_RPATH="-R\$libdir"
31427 fi
31428 ;;
31429
31430 *-*-darwin* )
31431 install_name_tool=`which install_name_tool`
31432 if test "$install_name_tool" -a -x "$install_name_tool"; then
31433 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31434 cat <<EOF >change-install-names
31435 #!/bin/sh
31436 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31437 inst_cmd="install_name_tool "
31438 for i in \${libnames} ; do
31439 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31440 done
31441 \${inst_cmd} \${3}
31442 EOF
31443 chmod +x change-install-names
31444 fi
31445 ;;
31446
31447 *-*-cygwin* | *-*-mingw32* )
31448 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
31449 ;;
31450
31451 *-*-hpux* )
31452 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31453 WXCONFIG_RPATH="-Wl,+b,\$libdir"
31454 ;;
31455
31456 esac
31457
31458 if test $wxUSE_RPATH = "no"; then
31459 SAMPLES_RPATH_FLAG=''
31460 SAMPLES_RPATH_POSTLINK=''
31461 WXCONFIG_RPATH=''
31462 fi
31463
31464 SHARED=1
31465
31466 else
31467
31468 config_linkage_component="-static"
31469 SHARED=0
31470
31471 fi
31472
31473
31474 UNICODE=0
31475 lib_unicode_suffix=
31476 WX_CHARTYPE="ansi"
31477 if test "$wxUSE_UNICODE" = "yes"; then
31478 lib_unicode_suffix=u
31479 WX_CHARTYPE="unicode"
31480 UNICODE=1
31481 fi
31482
31483 lib_debug_suffix=
31484 WX_DEBUGTYPE="release"
31485 DEBUG_FLAG=0
31486 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31487 lib_debug_suffix=d
31488 WX_DEBUGTYPE="debug"
31489 DEBUG_FLAG=1
31490 fi
31491
31492 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31493 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
31494
31495 DEBUG_INFO=0
31496 if test "$wxUSE_DEBUG_INFO" = "yes"; then
31497 DEBUG_INFO=1
31498 fi
31499
31500 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
31501
31502 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
31503
31504 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
31505
31506 if test "$cross_compiling" = "yes"; then
31507 HOST_SUFFIX="-$host_alias"
31508 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31509 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
31510 fi
31511
31512 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31513 if test "${TOOLKIT_DIR}" = "os2"; then
31514 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31515 else
31516 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31517 fi
31518
31519
31520
31521 if test "$wxUSE_COCOA" = 1; then
31522
31523
31524 ac_ext=c
31525 ac_cpp='$CPP $CPPFLAGS'
31526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31529
31530 ac_ext=m
31531
31532 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31533 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31534 cat >conftest.$ac_ext <<_ACEOF
31535 /* confdefs.h. */
31536 _ACEOF
31537 cat confdefs.h >>conftest.$ac_ext
31538 cat >>conftest.$ac_ext <<_ACEOF
31539 /* end confdefs.h. */
31540 #include <AppKit/NSEvent.h>
31541 #include <CoreFoundation/CoreFoundation.h>
31542
31543 int
31544 main ()
31545 {
31546
31547 ;
31548 return 0;
31549 }
31550 _ACEOF
31551 rm -f conftest.$ac_objext
31552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31553 (eval $ac_compile) 2>conftest.er1
31554 ac_status=$?
31555 grep -v '^ *+' conftest.er1 >conftest.err
31556 rm -f conftest.er1
31557 cat conftest.err >&5
31558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559 (exit $ac_status); } &&
31560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31562 (eval $ac_try) 2>&5
31563 ac_status=$?
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); }; } &&
31566 { ac_try='test -s conftest.$ac_objext'
31567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31568 (eval $ac_try) 2>&5
31569 ac_status=$?
31570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571 (exit $ac_status); }; }; then
31572 echo "$as_me:$LINENO: result: no" >&5
31573 echo "${ECHO_T}no" >&6
31574 else
31575 echo "$as_me: failed program was:" >&5
31576 sed 's/^/| /' conftest.$ac_ext >&5
31577
31578 echo "$as_me:$LINENO: result: yes" >&5
31579 echo "${ECHO_T}yes" >&6
31580 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31581 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31582 cat >conftest.$ac_ext <<_ACEOF
31583 /* confdefs.h. */
31584 _ACEOF
31585 cat confdefs.h >>conftest.$ac_ext
31586 cat >>conftest.$ac_ext <<_ACEOF
31587 /* end confdefs.h. */
31588 #define __Point__ 1
31589 #include <AppKit/NSEvent.h>
31590 #include <CoreFoundation/CoreFoundation.h>
31591
31592 int
31593 main ()
31594 {
31595
31596 ;
31597 return 0;
31598 }
31599 _ACEOF
31600 rm -f conftest.$ac_objext
31601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31602 (eval $ac_compile) 2>conftest.er1
31603 ac_status=$?
31604 grep -v '^ *+' conftest.er1 >conftest.err
31605 rm -f conftest.er1
31606 cat conftest.err >&5
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); } &&
31609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31611 (eval $ac_try) 2>&5
31612 ac_status=$?
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); }; } &&
31615 { ac_try='test -s conftest.$ac_objext'
31616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31617 (eval $ac_try) 2>&5
31618 ac_status=$?
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); }; }; then
31621 echo "$as_me:$LINENO: result: yes" >&5
31622 echo "${ECHO_T}yes" >&6
31623 cat >>confdefs.h <<\_ACEOF
31624 #define __Point__ 1
31625 _ACEOF
31626
31627
31628 else
31629 echo "$as_me: failed program was:" >&5
31630 sed 's/^/| /' conftest.$ac_ext >&5
31631
31632 { { echo "$as_me:$LINENO: error: no
31633 See \`config.log' for more details." >&5
31634 echo "$as_me: error: no
31635 See \`config.log' for more details." >&2;}
31636 { (exit 1); exit 1; }; }
31637
31638 fi
31639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31640
31641 fi
31642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31643 ac_ext=c
31644 ac_cpp='$CPP $CPPFLAGS'
31645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31648
31649 fi
31650
31651 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
31652 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31653 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
31654
31655 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
31656
31657 # Extract the first word of "Rez", so it can be a program name with args.
31658 set dummy Rez; ac_word=$2
31659 echo "$as_me:$LINENO: checking for $ac_word" >&5
31660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31661 if test "${ac_cv_prog_RESCOMP+set}" = set; then
31662 echo $ECHO_N "(cached) $ECHO_C" >&6
31663 else
31664 if test -n "$RESCOMP"; then
31665 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31666 else
31667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31668 for as_dir in $PATH
31669 do
31670 IFS=$as_save_IFS
31671 test -z "$as_dir" && as_dir=.
31672 for ac_exec_ext in '' $ac_executable_extensions; do
31673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31674 ac_cv_prog_RESCOMP="Rez"
31675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31676 break 2
31677 fi
31678 done
31679 done
31680
31681 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31682 fi
31683 fi
31684 RESCOMP=$ac_cv_prog_RESCOMP
31685 if test -n "$RESCOMP"; then
31686 echo "$as_me:$LINENO: result: $RESCOMP" >&5
31687 echo "${ECHO_T}$RESCOMP" >&6
31688 else
31689 echo "$as_me:$LINENO: result: no" >&5
31690 echo "${ECHO_T}no" >&6
31691 fi
31692
31693 # Extract the first word of "DeRez", so it can be a program name with args.
31694 set dummy DeRez; ac_word=$2
31695 echo "$as_me:$LINENO: checking for $ac_word" >&5
31696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31697 if test "${ac_cv_prog_DEREZ+set}" = set; then
31698 echo $ECHO_N "(cached) $ECHO_C" >&6
31699 else
31700 if test -n "$DEREZ"; then
31701 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31702 else
31703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31704 for as_dir in $PATH
31705 do
31706 IFS=$as_save_IFS
31707 test -z "$as_dir" && as_dir=.
31708 for ac_exec_ext in '' $ac_executable_extensions; do
31709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31710 ac_cv_prog_DEREZ="DeRez"
31711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31712 break 2
31713 fi
31714 done
31715 done
31716
31717 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31718 fi
31719 fi
31720 DEREZ=$ac_cv_prog_DEREZ
31721 if test -n "$DEREZ"; then
31722 echo "$as_me:$LINENO: result: $DEREZ" >&5
31723 echo "${ECHO_T}$DEREZ" >&6
31724 else
31725 echo "$as_me:$LINENO: result: no" >&5
31726 echo "${ECHO_T}no" >&6
31727 fi
31728
31729 # Extract the first word of "SetFile", so it can be a program name with args.
31730 set dummy SetFile; ac_word=$2
31731 echo "$as_me:$LINENO: checking for $ac_word" >&5
31732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31733 if test "${ac_cv_prog_SETFILE+set}" = set; then
31734 echo $ECHO_N "(cached) $ECHO_C" >&6
31735 else
31736 if test -n "$SETFILE"; then
31737 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31738 else
31739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31740 for as_dir in $PATH
31741 do
31742 IFS=$as_save_IFS
31743 test -z "$as_dir" && as_dir=.
31744 for ac_exec_ext in '' $ac_executable_extensions; do
31745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31746 ac_cv_prog_SETFILE="SetFile"
31747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31748 break 2
31749 fi
31750 done
31751 done
31752
31753 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31754 fi
31755 fi
31756 SETFILE=$ac_cv_prog_SETFILE
31757 if test -n "$SETFILE"; then
31758 echo "$as_me:$LINENO: result: $SETFILE" >&5
31759 echo "${ECHO_T}$SETFILE" >&6
31760 else
31761 echo "$as_me:$LINENO: result: no" >&5
31762 echo "${ECHO_T}no" >&6
31763 fi
31764
31765
31766 MACSETFILE="\$(SETFILE)"
31767
31768 if test "$wxUSE_MAC" = 1; then
31769 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
31770
31771 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
31772 else
31773 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31774 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
31775 fi
31776 else
31777 MACSETFILE="@true"
31778 MACRESWXCONFIG="@true"
31779
31780 if test "$wxUSE_PM" = 1; then
31781 MACRESCOMP="emxbind -ep"
31782 else
31783 MACRESCOMP="@true"
31784 fi
31785 fi
31786
31787
31788
31789 echo "$as_me:$LINENO: checking for mode_t" >&5
31790 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31791 if test "${ac_cv_type_mode_t+set}" = set; then
31792 echo $ECHO_N "(cached) $ECHO_C" >&6
31793 else
31794 cat >conftest.$ac_ext <<_ACEOF
31795 /* confdefs.h. */
31796 _ACEOF
31797 cat confdefs.h >>conftest.$ac_ext
31798 cat >>conftest.$ac_ext <<_ACEOF
31799 /* end confdefs.h. */
31800 $ac_includes_default
31801 int
31802 main ()
31803 {
31804 if ((mode_t *) 0)
31805 return 0;
31806 if (sizeof (mode_t))
31807 return 0;
31808 ;
31809 return 0;
31810 }
31811 _ACEOF
31812 rm -f conftest.$ac_objext
31813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31814 (eval $ac_compile) 2>conftest.er1
31815 ac_status=$?
31816 grep -v '^ *+' conftest.er1 >conftest.err
31817 rm -f conftest.er1
31818 cat conftest.err >&5
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); } &&
31821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31823 (eval $ac_try) 2>&5
31824 ac_status=$?
31825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826 (exit $ac_status); }; } &&
31827 { ac_try='test -s conftest.$ac_objext'
31828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31829 (eval $ac_try) 2>&5
31830 ac_status=$?
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; }; then
31833 ac_cv_type_mode_t=yes
31834 else
31835 echo "$as_me: failed program was:" >&5
31836 sed 's/^/| /' conftest.$ac_ext >&5
31837
31838 ac_cv_type_mode_t=no
31839 fi
31840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31841 fi
31842 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31843 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31844 if test $ac_cv_type_mode_t = yes; then
31845 :
31846 else
31847
31848 cat >>confdefs.h <<_ACEOF
31849 #define mode_t int
31850 _ACEOF
31851
31852 fi
31853
31854 echo "$as_me:$LINENO: checking for off_t" >&5
31855 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31856 if test "${ac_cv_type_off_t+set}" = set; then
31857 echo $ECHO_N "(cached) $ECHO_C" >&6
31858 else
31859 cat >conftest.$ac_ext <<_ACEOF
31860 /* confdefs.h. */
31861 _ACEOF
31862 cat confdefs.h >>conftest.$ac_ext
31863 cat >>conftest.$ac_ext <<_ACEOF
31864 /* end confdefs.h. */
31865 $ac_includes_default
31866 int
31867 main ()
31868 {
31869 if ((off_t *) 0)
31870 return 0;
31871 if (sizeof (off_t))
31872 return 0;
31873 ;
31874 return 0;
31875 }
31876 _ACEOF
31877 rm -f conftest.$ac_objext
31878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31879 (eval $ac_compile) 2>conftest.er1
31880 ac_status=$?
31881 grep -v '^ *+' conftest.er1 >conftest.err
31882 rm -f conftest.er1
31883 cat conftest.err >&5
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); } &&
31886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888 (eval $ac_try) 2>&5
31889 ac_status=$?
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); }; } &&
31892 { ac_try='test -s conftest.$ac_objext'
31893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894 (eval $ac_try) 2>&5
31895 ac_status=$?
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; }; then
31898 ac_cv_type_off_t=yes
31899 else
31900 echo "$as_me: failed program was:" >&5
31901 sed 's/^/| /' conftest.$ac_ext >&5
31902
31903 ac_cv_type_off_t=no
31904 fi
31905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31906 fi
31907 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31908 echo "${ECHO_T}$ac_cv_type_off_t" >&6
31909 if test $ac_cv_type_off_t = yes; then
31910 :
31911 else
31912
31913 cat >>confdefs.h <<_ACEOF
31914 #define off_t long
31915 _ACEOF
31916
31917 fi
31918
31919 echo "$as_me:$LINENO: checking for pid_t" >&5
31920 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31921 if test "${ac_cv_type_pid_t+set}" = set; then
31922 echo $ECHO_N "(cached) $ECHO_C" >&6
31923 else
31924 cat >conftest.$ac_ext <<_ACEOF
31925 /* confdefs.h. */
31926 _ACEOF
31927 cat confdefs.h >>conftest.$ac_ext
31928 cat >>conftest.$ac_ext <<_ACEOF
31929 /* end confdefs.h. */
31930 $ac_includes_default
31931 int
31932 main ()
31933 {
31934 if ((pid_t *) 0)
31935 return 0;
31936 if (sizeof (pid_t))
31937 return 0;
31938 ;
31939 return 0;
31940 }
31941 _ACEOF
31942 rm -f conftest.$ac_objext
31943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31944 (eval $ac_compile) 2>conftest.er1
31945 ac_status=$?
31946 grep -v '^ *+' conftest.er1 >conftest.err
31947 rm -f conftest.er1
31948 cat conftest.err >&5
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); } &&
31951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31953 (eval $ac_try) 2>&5
31954 ac_status=$?
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); }; } &&
31957 { ac_try='test -s conftest.$ac_objext'
31958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31959 (eval $ac_try) 2>&5
31960 ac_status=$?
31961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962 (exit $ac_status); }; }; then
31963 ac_cv_type_pid_t=yes
31964 else
31965 echo "$as_me: failed program was:" >&5
31966 sed 's/^/| /' conftest.$ac_ext >&5
31967
31968 ac_cv_type_pid_t=no
31969 fi
31970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31971 fi
31972 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31973 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31974 if test $ac_cv_type_pid_t = yes; then
31975 :
31976 else
31977
31978 cat >>confdefs.h <<_ACEOF
31979 #define pid_t int
31980 _ACEOF
31981
31982 fi
31983
31984 echo "$as_me:$LINENO: checking for size_t" >&5
31985 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31986 if test "${ac_cv_type_size_t+set}" = set; then
31987 echo $ECHO_N "(cached) $ECHO_C" >&6
31988 else
31989 cat >conftest.$ac_ext <<_ACEOF
31990 /* confdefs.h. */
31991 _ACEOF
31992 cat confdefs.h >>conftest.$ac_ext
31993 cat >>conftest.$ac_ext <<_ACEOF
31994 /* end confdefs.h. */
31995 $ac_includes_default
31996 int
31997 main ()
31998 {
31999 if ((size_t *) 0)
32000 return 0;
32001 if (sizeof (size_t))
32002 return 0;
32003 ;
32004 return 0;
32005 }
32006 _ACEOF
32007 rm -f conftest.$ac_objext
32008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32009 (eval $ac_compile) 2>conftest.er1
32010 ac_status=$?
32011 grep -v '^ *+' conftest.er1 >conftest.err
32012 rm -f conftest.er1
32013 cat conftest.err >&5
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015 (exit $ac_status); } &&
32016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32018 (eval $ac_try) 2>&5
32019 ac_status=$?
32020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); }; } &&
32022 { ac_try='test -s conftest.$ac_objext'
32023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32024 (eval $ac_try) 2>&5
32025 ac_status=$?
32026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027 (exit $ac_status); }; }; then
32028 ac_cv_type_size_t=yes
32029 else
32030 echo "$as_me: failed program was:" >&5
32031 sed 's/^/| /' conftest.$ac_ext >&5
32032
32033 ac_cv_type_size_t=no
32034 fi
32035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32036 fi
32037 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32038 echo "${ECHO_T}$ac_cv_type_size_t" >&6
32039 if test $ac_cv_type_size_t = yes; then
32040 :
32041 else
32042
32043 cat >>confdefs.h <<_ACEOF
32044 #define size_t unsigned
32045 _ACEOF
32046
32047 fi
32048
32049 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32050 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32051 if test "${ac_cv_type_uid_t+set}" = set; then
32052 echo $ECHO_N "(cached) $ECHO_C" >&6
32053 else
32054 cat >conftest.$ac_ext <<_ACEOF
32055 /* confdefs.h. */
32056 _ACEOF
32057 cat confdefs.h >>conftest.$ac_ext
32058 cat >>conftest.$ac_ext <<_ACEOF
32059 /* end confdefs.h. */
32060 #include <sys/types.h>
32061
32062 _ACEOF
32063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32064 $EGREP "uid_t" >/dev/null 2>&1; then
32065 ac_cv_type_uid_t=yes
32066 else
32067 ac_cv_type_uid_t=no
32068 fi
32069 rm -f conftest*
32070
32071 fi
32072 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32073 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32074 if test $ac_cv_type_uid_t = no; then
32075
32076 cat >>confdefs.h <<\_ACEOF
32077 #define uid_t int
32078 _ACEOF
32079
32080
32081 cat >>confdefs.h <<\_ACEOF
32082 #define gid_t int
32083 _ACEOF
32084
32085 fi
32086
32087
32088 echo "$as_me:$LINENO: checking for ssize_t" >&5
32089 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32090 if test "${ac_cv_type_ssize_t+set}" = set; then
32091 echo $ECHO_N "(cached) $ECHO_C" >&6
32092 else
32093 cat >conftest.$ac_ext <<_ACEOF
32094 /* confdefs.h. */
32095 _ACEOF
32096 cat confdefs.h >>conftest.$ac_ext
32097 cat >>conftest.$ac_ext <<_ACEOF
32098 /* end confdefs.h. */
32099 $ac_includes_default
32100 int
32101 main ()
32102 {
32103 if ((ssize_t *) 0)
32104 return 0;
32105 if (sizeof (ssize_t))
32106 return 0;
32107 ;
32108 return 0;
32109 }
32110 _ACEOF
32111 rm -f conftest.$ac_objext
32112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32113 (eval $ac_compile) 2>conftest.er1
32114 ac_status=$?
32115 grep -v '^ *+' conftest.er1 >conftest.err
32116 rm -f conftest.er1
32117 cat conftest.err >&5
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); } &&
32120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
32126 { ac_try='test -s conftest.$ac_objext'
32127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128 (eval $ac_try) 2>&5
32129 ac_status=$?
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; }; then
32132 ac_cv_type_ssize_t=yes
32133 else
32134 echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32136
32137 ac_cv_type_ssize_t=no
32138 fi
32139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32140 fi
32141 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32142 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32143 if test $ac_cv_type_ssize_t = yes; then
32144
32145 cat >>confdefs.h <<_ACEOF
32146 #define HAVE_SSIZE_T 1
32147 _ACEOF
32148
32149
32150 fi
32151
32152
32153
32154
32155 ac_ext=cc
32156 ac_cpp='$CXXCPP $CPPFLAGS'
32157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32160
32161 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32162 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32163 if test "${wx_cv_size_t_is_uint+set}" = set; then
32164 echo $ECHO_N "(cached) $ECHO_C" >&6
32165 else
32166
32167 cat >conftest.$ac_ext <<_ACEOF
32168 /* confdefs.h. */
32169 _ACEOF
32170 cat confdefs.h >>conftest.$ac_ext
32171 cat >>conftest.$ac_ext <<_ACEOF
32172 /* end confdefs.h. */
32173 #include <stddef.h>
32174 int
32175 main ()
32176 {
32177
32178 return 0; }
32179
32180 struct Foo { void foo(size_t); void foo(unsigned int); };
32181
32182 int bar() {
32183
32184 ;
32185 return 0;
32186 }
32187 _ACEOF
32188 rm -f conftest.$ac_objext
32189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32190 (eval $ac_compile) 2>conftest.er1
32191 ac_status=$?
32192 grep -v '^ *+' conftest.er1 >conftest.err
32193 rm -f conftest.er1
32194 cat conftest.err >&5
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); } &&
32197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32199 (eval $ac_try) 2>&5
32200 ac_status=$?
32201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202 (exit $ac_status); }; } &&
32203 { ac_try='test -s conftest.$ac_objext'
32204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32205 (eval $ac_try) 2>&5
32206 ac_status=$?
32207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208 (exit $ac_status); }; }; then
32209 wx_cv_size_t_is_uint=no
32210 else
32211 echo "$as_me: failed program was:" >&5
32212 sed 's/^/| /' conftest.$ac_ext >&5
32213
32214 wx_cv_size_t_is_uint=yes
32215
32216 fi
32217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32218
32219
32220 fi
32221 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32222 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32223
32224 if test "$wx_cv_size_t_is_uint" = "yes"; then
32225 cat >>confdefs.h <<\_ACEOF
32226 #define wxSIZE_T_IS_UINT 1
32227 _ACEOF
32228
32229 else
32230 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32231 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32232 if test "${wx_cv_size_t_is_ulong+set}" = set; then
32233 echo $ECHO_N "(cached) $ECHO_C" >&6
32234 else
32235 cat >conftest.$ac_ext <<_ACEOF
32236 /* confdefs.h. */
32237 _ACEOF
32238 cat confdefs.h >>conftest.$ac_ext
32239 cat >>conftest.$ac_ext <<_ACEOF
32240 /* end confdefs.h. */
32241 #include <stddef.h>
32242 int
32243 main ()
32244 {
32245
32246 return 0; }
32247
32248 struct Foo { void foo(size_t); void foo(unsigned long); };
32249
32250 int bar() {
32251
32252 ;
32253 return 0;
32254 }
32255 _ACEOF
32256 rm -f conftest.$ac_objext
32257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32258 (eval $ac_compile) 2>conftest.er1
32259 ac_status=$?
32260 grep -v '^ *+' conftest.er1 >conftest.err
32261 rm -f conftest.er1
32262 cat conftest.err >&5
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); } &&
32265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32267 (eval $ac_try) 2>&5
32268 ac_status=$?
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); }; } &&
32271 { ac_try='test -s conftest.$ac_objext'
32272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32273 (eval $ac_try) 2>&5
32274 ac_status=$?
32275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32276 (exit $ac_status); }; }; then
32277 wx_cv_size_t_is_ulong=no
32278 else
32279 echo "$as_me: failed program was:" >&5
32280 sed 's/^/| /' conftest.$ac_ext >&5
32281
32282 wx_cv_size_t_is_ulong=yes
32283
32284 fi
32285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32286
32287 fi
32288 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32289 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32290
32291 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32292 cat >>confdefs.h <<\_ACEOF
32293 #define wxSIZE_T_IS_ULONG 1
32294 _ACEOF
32295
32296 fi
32297 fi
32298
32299 ac_ext=c
32300 ac_cpp='$CPP $CPPFLAGS'
32301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32304
32305
32306
32307 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32308 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32309 if test "${wx_cv_struct_pw_gecos+set}" = set; then
32310 echo $ECHO_N "(cached) $ECHO_C" >&6
32311 else
32312
32313 cat >conftest.$ac_ext <<_ACEOF
32314 /* confdefs.h. */
32315 _ACEOF
32316 cat confdefs.h >>conftest.$ac_ext
32317 cat >>conftest.$ac_ext <<_ACEOF
32318 /* end confdefs.h. */
32319 #include <pwd.h>
32320 int
32321 main ()
32322 {
32323
32324 char *p;
32325 struct passwd *pw;
32326 p = pw->pw_gecos;
32327
32328 ;
32329 return 0;
32330 }
32331 _ACEOF
32332 rm -f conftest.$ac_objext
32333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32334 (eval $ac_compile) 2>conftest.er1
32335 ac_status=$?
32336 grep -v '^ *+' conftest.er1 >conftest.err
32337 rm -f conftest.er1
32338 cat conftest.err >&5
32339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340 (exit $ac_status); } &&
32341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32343 (eval $ac_try) 2>&5
32344 ac_status=$?
32345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346 (exit $ac_status); }; } &&
32347 { ac_try='test -s conftest.$ac_objext'
32348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32349 (eval $ac_try) 2>&5
32350 ac_status=$?
32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352 (exit $ac_status); }; }; then
32353
32354 wx_cv_struct_pw_gecos=yes
32355
32356 else
32357 echo "$as_me: failed program was:" >&5
32358 sed 's/^/| /' conftest.$ac_ext >&5
32359
32360
32361 wx_cv_struct_pw_gecos=no
32362
32363
32364 fi
32365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32366
32367
32368 fi
32369 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32370 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32371
32372 if test "$wx_cv_struct_pw_gecos" = "yes"; then
32373 cat >>confdefs.h <<\_ACEOF
32374 #define HAVE_PW_GECOS 1
32375 _ACEOF
32376
32377 fi
32378
32379
32380 if test "$wxUSE_WCHAR_T" = "yes"; then
32381 cat >>confdefs.h <<\_ACEOF
32382 #define wxUSE_WCHAR_T 1
32383 _ACEOF
32384
32385
32386 WCSLEN_FOUND=0
32387 WCHAR_LINK=
32388
32389 for ac_func in wcslen
32390 do
32391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32392 echo "$as_me:$LINENO: checking for $ac_func" >&5
32393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32394 if eval "test \"\${$as_ac_var+set}\" = set"; then
32395 echo $ECHO_N "(cached) $ECHO_C" >&6
32396 else
32397 cat >conftest.$ac_ext <<_ACEOF
32398 /* confdefs.h. */
32399 _ACEOF
32400 cat confdefs.h >>conftest.$ac_ext
32401 cat >>conftest.$ac_ext <<_ACEOF
32402 /* end confdefs.h. */
32403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32405 #define $ac_func innocuous_$ac_func
32406
32407 /* System header to define __stub macros and hopefully few prototypes,
32408 which can conflict with char $ac_func (); below.
32409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32410 <limits.h> exists even on freestanding compilers. */
32411
32412 #ifdef __STDC__
32413 # include <limits.h>
32414 #else
32415 # include <assert.h>
32416 #endif
32417
32418 #undef $ac_func
32419
32420 /* Override any gcc2 internal prototype to avoid an error. */
32421 #ifdef __cplusplus
32422 extern "C"
32423 {
32424 #endif
32425 /* We use char because int might match the return type of a gcc2
32426 builtin and then its argument prototype would still apply. */
32427 char $ac_func ();
32428 /* The GNU C library defines this for functions which it implements
32429 to always fail with ENOSYS. Some functions are actually named
32430 something starting with __ and the normal name is an alias. */
32431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32432 choke me
32433 #else
32434 char (*f) () = $ac_func;
32435 #endif
32436 #ifdef __cplusplus
32437 }
32438 #endif
32439
32440 int
32441 main ()
32442 {
32443 return f != $ac_func;
32444 ;
32445 return 0;
32446 }
32447 _ACEOF
32448 rm -f conftest.$ac_objext conftest$ac_exeext
32449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32450 (eval $ac_link) 2>conftest.er1
32451 ac_status=$?
32452 grep -v '^ *+' conftest.er1 >conftest.err
32453 rm -f conftest.er1
32454 cat conftest.err >&5
32455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456 (exit $ac_status); } &&
32457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32459 (eval $ac_try) 2>&5
32460 ac_status=$?
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); }; } &&
32463 { ac_try='test -s conftest$ac_exeext'
32464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32465 (eval $ac_try) 2>&5
32466 ac_status=$?
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); }; }; then
32469 eval "$as_ac_var=yes"
32470 else
32471 echo "$as_me: failed program was:" >&5
32472 sed 's/^/| /' conftest.$ac_ext >&5
32473
32474 eval "$as_ac_var=no"
32475 fi
32476 rm -f conftest.err conftest.$ac_objext \
32477 conftest$ac_exeext conftest.$ac_ext
32478 fi
32479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32481 if test `eval echo '${'$as_ac_var'}'` = yes; then
32482 cat >>confdefs.h <<_ACEOF
32483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32484 _ACEOF
32485 WCSLEN_FOUND=1
32486 fi
32487 done
32488
32489
32490 if test "$WCSLEN_FOUND" = 0; then
32491 if test "$TOOLKIT" = "MSW"; then
32492 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32493 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32494 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32495 echo $ECHO_N "(cached) $ECHO_C" >&6
32496 else
32497 ac_check_lib_save_LIBS=$LIBS
32498 LIBS="-lmsvcrt $LIBS"
32499 cat >conftest.$ac_ext <<_ACEOF
32500 /* confdefs.h. */
32501 _ACEOF
32502 cat confdefs.h >>conftest.$ac_ext
32503 cat >>conftest.$ac_ext <<_ACEOF
32504 /* end confdefs.h. */
32505
32506 /* Override any gcc2 internal prototype to avoid an error. */
32507 #ifdef __cplusplus
32508 extern "C"
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 wcslen ();
32513 int
32514 main ()
32515 {
32516 wcslen ();
32517 ;
32518 return 0;
32519 }
32520 _ACEOF
32521 rm -f conftest.$ac_objext conftest$ac_exeext
32522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32523 (eval $ac_link) 2>conftest.er1
32524 ac_status=$?
32525 grep -v '^ *+' conftest.er1 >conftest.err
32526 rm -f conftest.er1
32527 cat conftest.err >&5
32528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529 (exit $ac_status); } &&
32530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32532 (eval $ac_try) 2>&5
32533 ac_status=$?
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); }; } &&
32536 { ac_try='test -s conftest$ac_exeext'
32537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32538 (eval $ac_try) 2>&5
32539 ac_status=$?
32540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); }; }; then
32542 ac_cv_lib_msvcrt_wcslen=yes
32543 else
32544 echo "$as_me: failed program was:" >&5
32545 sed 's/^/| /' conftest.$ac_ext >&5
32546
32547 ac_cv_lib_msvcrt_wcslen=no
32548 fi
32549 rm -f conftest.err conftest.$ac_objext \
32550 conftest$ac_exeext conftest.$ac_ext
32551 LIBS=$ac_check_lib_save_LIBS
32552 fi
32553 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32554 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32555 if test $ac_cv_lib_msvcrt_wcslen = yes; then
32556 WCHAR_OK=1
32557 fi
32558
32559 else
32560 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32561 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32562 if test "${ac_cv_lib_w_wcslen+set}" = set; then
32563 echo $ECHO_N "(cached) $ECHO_C" >&6
32564 else
32565 ac_check_lib_save_LIBS=$LIBS
32566 LIBS="-lw $LIBS"
32567 cat >conftest.$ac_ext <<_ACEOF
32568 /* confdefs.h. */
32569 _ACEOF
32570 cat confdefs.h >>conftest.$ac_ext
32571 cat >>conftest.$ac_ext <<_ACEOF
32572 /* end confdefs.h. */
32573
32574 /* Override any gcc2 internal prototype to avoid an error. */
32575 #ifdef __cplusplus
32576 extern "C"
32577 #endif
32578 /* We use char because int might match the return type of a gcc2
32579 builtin and then its argument prototype would still apply. */
32580 char wcslen ();
32581 int
32582 main ()
32583 {
32584 wcslen ();
32585 ;
32586 return 0;
32587 }
32588 _ACEOF
32589 rm -f conftest.$ac_objext conftest$ac_exeext
32590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32591 (eval $ac_link) 2>conftest.er1
32592 ac_status=$?
32593 grep -v '^ *+' conftest.er1 >conftest.err
32594 rm -f conftest.er1
32595 cat conftest.err >&5
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 (exit $ac_status); } &&
32598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32600 (eval $ac_try) 2>&5
32601 ac_status=$?
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); }; } &&
32604 { ac_try='test -s conftest$ac_exeext'
32605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32606 (eval $ac_try) 2>&5
32607 ac_status=$?
32608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); }; }; then
32610 ac_cv_lib_w_wcslen=yes
32611 else
32612 echo "$as_me: failed program was:" >&5
32613 sed 's/^/| /' conftest.$ac_ext >&5
32614
32615 ac_cv_lib_w_wcslen=no
32616 fi
32617 rm -f conftest.err conftest.$ac_objext \
32618 conftest$ac_exeext conftest.$ac_ext
32619 LIBS=$ac_check_lib_save_LIBS
32620 fi
32621 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32622 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32623 if test $ac_cv_lib_w_wcslen = yes; then
32624
32625 WCHAR_LINK=" -lw"
32626 WCSLEN_FOUND=1
32627
32628 fi
32629
32630 fi
32631 fi
32632
32633 if test "$WCSLEN_FOUND" = 1; then
32634 cat >>confdefs.h <<\_ACEOF
32635 #define HAVE_WCSLEN 1
32636 _ACEOF
32637
32638 fi
32639
32640 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
32641 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32642 fi
32643
32644 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32645 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32646 if test "${ac_cv_type_mbstate_t+set}" = set; then
32647 echo $ECHO_N "(cached) $ECHO_C" >&6
32648 else
32649 cat >conftest.$ac_ext <<_ACEOF
32650 /* confdefs.h. */
32651 _ACEOF
32652 cat confdefs.h >>conftest.$ac_ext
32653 cat >>conftest.$ac_ext <<_ACEOF
32654 /* end confdefs.h. */
32655 #include <wchar.h>
32656
32657 int
32658 main ()
32659 {
32660 if ((mbstate_t *) 0)
32661 return 0;
32662 if (sizeof (mbstate_t))
32663 return 0;
32664 ;
32665 return 0;
32666 }
32667 _ACEOF
32668 rm -f conftest.$ac_objext
32669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32670 (eval $ac_compile) 2>conftest.er1
32671 ac_status=$?
32672 grep -v '^ *+' conftest.er1 >conftest.err
32673 rm -f conftest.er1
32674 cat conftest.err >&5
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); } &&
32677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32679 (eval $ac_try) 2>&5
32680 ac_status=$?
32681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682 (exit $ac_status); }; } &&
32683 { ac_try='test -s conftest.$ac_objext'
32684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32685 (eval $ac_try) 2>&5
32686 ac_status=$?
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); }; }; then
32689 ac_cv_type_mbstate_t=yes
32690 else
32691 echo "$as_me: failed program was:" >&5
32692 sed 's/^/| /' conftest.$ac_ext >&5
32693
32694 ac_cv_type_mbstate_t=no
32695 fi
32696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32697 fi
32698 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32699 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32700 if test $ac_cv_type_mbstate_t = yes; then
32701
32702 cat >>confdefs.h <<_ACEOF
32703 #define HAVE_MBSTATE_T 1
32704 _ACEOF
32705
32706
32707 for ac_func in wcsrtombs
32708 do
32709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32710 echo "$as_me:$LINENO: checking for $ac_func" >&5
32711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32712 if eval "test \"\${$as_ac_var+set}\" = set"; then
32713 echo $ECHO_N "(cached) $ECHO_C" >&6
32714 else
32715 cat >conftest.$ac_ext <<_ACEOF
32716 /* confdefs.h. */
32717 _ACEOF
32718 cat confdefs.h >>conftest.$ac_ext
32719 cat >>conftest.$ac_ext <<_ACEOF
32720 /* end confdefs.h. */
32721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32723 #define $ac_func innocuous_$ac_func
32724
32725 /* System header to define __stub macros and hopefully few prototypes,
32726 which can conflict with char $ac_func (); below.
32727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32728 <limits.h> exists even on freestanding compilers. */
32729
32730 #ifdef __STDC__
32731 # include <limits.h>
32732 #else
32733 # include <assert.h>
32734 #endif
32735
32736 #undef $ac_func
32737
32738 /* Override any gcc2 internal prototype to avoid an error. */
32739 #ifdef __cplusplus
32740 extern "C"
32741 {
32742 #endif
32743 /* We use char because int might match the return type of a gcc2
32744 builtin and then its argument prototype would still apply. */
32745 char $ac_func ();
32746 /* The GNU C library defines this for functions which it implements
32747 to always fail with ENOSYS. Some functions are actually named
32748 something starting with __ and the normal name is an alias. */
32749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32750 choke me
32751 #else
32752 char (*f) () = $ac_func;
32753 #endif
32754 #ifdef __cplusplus
32755 }
32756 #endif
32757
32758 int
32759 main ()
32760 {
32761 return f != $ac_func;
32762 ;
32763 return 0;
32764 }
32765 _ACEOF
32766 rm -f conftest.$ac_objext conftest$ac_exeext
32767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32768 (eval $ac_link) 2>conftest.er1
32769 ac_status=$?
32770 grep -v '^ *+' conftest.er1 >conftest.err
32771 rm -f conftest.er1
32772 cat conftest.err >&5
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); } &&
32775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777 (eval $ac_try) 2>&5
32778 ac_status=$?
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; } &&
32781 { ac_try='test -s conftest$ac_exeext'
32782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32783 (eval $ac_try) 2>&5
32784 ac_status=$?
32785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786 (exit $ac_status); }; }; then
32787 eval "$as_ac_var=yes"
32788 else
32789 echo "$as_me: failed program was:" >&5
32790 sed 's/^/| /' conftest.$ac_ext >&5
32791
32792 eval "$as_ac_var=no"
32793 fi
32794 rm -f conftest.err conftest.$ac_objext \
32795 conftest$ac_exeext conftest.$ac_ext
32796 fi
32797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32798 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32799 if test `eval echo '${'$as_ac_var'}'` = yes; then
32800 cat >>confdefs.h <<_ACEOF
32801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32802 _ACEOF
32803
32804 fi
32805 done
32806
32807 fi
32808
32809 else
32810 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32811 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32812 fi
32813
32814
32815
32816 ac_ext=cc
32817 ac_cpp='$CXXCPP $CPPFLAGS'
32818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32821
32822
32823
32824
32825 for ac_func in snprintf vsnprintf
32826 do
32827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32828 echo "$as_me:$LINENO: checking for $ac_func" >&5
32829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32830 if eval "test \"\${$as_ac_var+set}\" = set"; then
32831 echo $ECHO_N "(cached) $ECHO_C" >&6
32832 else
32833 cat >conftest.$ac_ext <<_ACEOF
32834 /* confdefs.h. */
32835 _ACEOF
32836 cat confdefs.h >>conftest.$ac_ext
32837 cat >>conftest.$ac_ext <<_ACEOF
32838 /* end confdefs.h. */
32839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32841 #define $ac_func innocuous_$ac_func
32842
32843 /* System header to define __stub macros and hopefully few prototypes,
32844 which can conflict with char $ac_func (); below.
32845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32846 <limits.h> exists even on freestanding compilers. */
32847
32848 #ifdef __STDC__
32849 # include <limits.h>
32850 #else
32851 # include <assert.h>
32852 #endif
32853
32854 #undef $ac_func
32855
32856 /* Override any gcc2 internal prototype to avoid an error. */
32857 #ifdef __cplusplus
32858 extern "C"
32859 {
32860 #endif
32861 /* We use char because int might match the return type of a gcc2
32862 builtin and then its argument prototype would still apply. */
32863 char $ac_func ();
32864 /* The GNU C library defines this for functions which it implements
32865 to always fail with ENOSYS. Some functions are actually named
32866 something starting with __ and the normal name is an alias. */
32867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32868 choke me
32869 #else
32870 char (*f) () = $ac_func;
32871 #endif
32872 #ifdef __cplusplus
32873 }
32874 #endif
32875
32876 int
32877 main ()
32878 {
32879 return f != $ac_func;
32880 ;
32881 return 0;
32882 }
32883 _ACEOF
32884 rm -f conftest.$ac_objext conftest$ac_exeext
32885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32886 (eval $ac_link) 2>conftest.er1
32887 ac_status=$?
32888 grep -v '^ *+' conftest.er1 >conftest.err
32889 rm -f conftest.er1
32890 cat conftest.err >&5
32891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892 (exit $ac_status); } &&
32893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32895 (eval $ac_try) 2>&5
32896 ac_status=$?
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); }; } &&
32899 { ac_try='test -s conftest$ac_exeext'
32900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32901 (eval $ac_try) 2>&5
32902 ac_status=$?
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; }; then
32905 eval "$as_ac_var=yes"
32906 else
32907 echo "$as_me: failed program was:" >&5
32908 sed 's/^/| /' conftest.$ac_ext >&5
32909
32910 eval "$as_ac_var=no"
32911 fi
32912 rm -f conftest.err conftest.$ac_objext \
32913 conftest$ac_exeext conftest.$ac_ext
32914 fi
32915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32917 if test `eval echo '${'$as_ac_var'}'` = yes; then
32918 cat >>confdefs.h <<_ACEOF
32919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32920 _ACEOF
32921
32922 fi
32923 done
32924
32925
32926 if test "$ac_cv_func_vsnprintf" = "yes"; then
32927 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
32928 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
32929 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
32930 echo $ECHO_N "(cached) $ECHO_C" >&6
32931 else
32932
32933 cat >conftest.$ac_ext <<_ACEOF
32934 /* confdefs.h. */
32935 _ACEOF
32936 cat confdefs.h >>conftest.$ac_ext
32937 cat >>conftest.$ac_ext <<_ACEOF
32938 /* end confdefs.h. */
32939
32940 #include <stdio.h>
32941 #include <stdarg.h>
32942 #ifdef __MSL__
32943 #if __MSL__ >= 0x6000
32944 namespace std {}
32945 using namespace std;
32946 #endif
32947 #endif
32948
32949 int
32950 main ()
32951 {
32952
32953 char *buf;
32954 va_list ap;
32955 vsnprintf(buf, 10u, "%s", ap);
32956
32957 ;
32958 return 0;
32959 }
32960 _ACEOF
32961 rm -f conftest.$ac_objext
32962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32963 (eval $ac_compile) 2>conftest.er1
32964 ac_status=$?
32965 grep -v '^ *+' conftest.er1 >conftest.err
32966 rm -f conftest.er1
32967 cat conftest.err >&5
32968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969 (exit $ac_status); } &&
32970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32972 (eval $ac_try) 2>&5
32973 ac_status=$?
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); }; } &&
32976 { ac_try='test -s conftest.$ac_objext'
32977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32978 (eval $ac_try) 2>&5
32979 ac_status=$?
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); }; }; then
32982 wx_cv_func_vsnprintf_decl=yes
32983 else
32984 echo "$as_me: failed program was:" >&5
32985 sed 's/^/| /' conftest.$ac_ext >&5
32986
32987 wx_cv_func_vsnprintf_decl=no
32988
32989 fi
32990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32991
32992
32993 fi
32994 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
32995 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
32996
32997 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
32998 cat >>confdefs.h <<\_ACEOF
32999 #define HAVE_VSNPRINTF_DECL 1
33000 _ACEOF
33001
33002
33003 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33004 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33005 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33006 echo $ECHO_N "(cached) $ECHO_C" >&6
33007 else
33008
33009 cat >conftest.$ac_ext <<_ACEOF
33010 /* confdefs.h. */
33011 _ACEOF
33012 cat confdefs.h >>conftest.$ac_ext
33013 cat >>conftest.$ac_ext <<_ACEOF
33014 /* end confdefs.h. */
33015
33016 #include <stdio.h>
33017 #include <stdarg.h>
33018 #ifdef __MSL__
33019 #if __MSL__ >= 0x6000
33020 namespace std {}
33021 using namespace std;
33022 #endif
33023 #endif
33024
33025 int
33026 main ()
33027 {
33028
33029 char *buf;
33030 va_list ap;
33031 const char *fmt = "%s";
33032 vsnprintf(buf, 10u, fmt, ap);
33033
33034 ;
33035 return 0;
33036 }
33037 _ACEOF
33038 rm -f conftest.$ac_objext
33039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33040 (eval $ac_compile) 2>conftest.er1
33041 ac_status=$?
33042 grep -v '^ *+' conftest.er1 >conftest.err
33043 rm -f conftest.er1
33044 cat conftest.err >&5
33045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); } &&
33047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33049 (eval $ac_try) 2>&5
33050 ac_status=$?
33051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052 (exit $ac_status); }; } &&
33053 { ac_try='test -s conftest.$ac_objext'
33054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33055 (eval $ac_try) 2>&5
33056 ac_status=$?
33057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058 (exit $ac_status); }; }; then
33059 wx_cv_func_broken_vsnprintf_decl=no
33060 else
33061 echo "$as_me: failed program was:" >&5
33062 sed 's/^/| /' conftest.$ac_ext >&5
33063
33064 wx_cv_func_broken_vsnprintf_decl=yes
33065
33066 fi
33067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33068
33069
33070 fi
33071 echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33072 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33073
33074 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33075 cat >>confdefs.h <<\_ACEOF
33076 #define HAVE_BROKEN_VSNPRINTF_DECL 1
33077 _ACEOF
33078
33079 fi
33080 fi
33081 fi
33082
33083 if test "$ac_cv_func_snprintf" = "yes"; then
33084 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33085 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33086 if test "${wx_cv_func_snprintf_decl+set}" = set; then
33087 echo $ECHO_N "(cached) $ECHO_C" >&6
33088 else
33089
33090 cat >conftest.$ac_ext <<_ACEOF
33091 /* confdefs.h. */
33092 _ACEOF
33093 cat confdefs.h >>conftest.$ac_ext
33094 cat >>conftest.$ac_ext <<_ACEOF
33095 /* end confdefs.h. */
33096
33097 #include <stdio.h>
33098 #include <stdarg.h>
33099 #ifdef __MSL__
33100 #if __MSL__ >= 0x6000
33101 namespace std {}
33102 using namespace std;
33103 #endif
33104 #endif
33105
33106 int
33107 main ()
33108 {
33109
33110 char *buf;
33111 snprintf(buf, 10u, "%s", "wx");
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_cxx_werror_flag" || test ! -s conftest.err'
33127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33128 (eval $ac_try) 2>&5
33129 ac_status=$?
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; } &&
33132 { ac_try='test -s conftest.$ac_objext'
33133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33134 (eval $ac_try) 2>&5
33135 ac_status=$?
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); }; }; then
33138 wx_cv_func_snprintf_decl=yes
33139 else
33140 echo "$as_me: failed program was:" >&5
33141 sed 's/^/| /' conftest.$ac_ext >&5
33142
33143 wx_cv_func_snprintf_decl=no
33144
33145 fi
33146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33147
33148
33149 fi
33150 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33151 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33152
33153 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33154 cat >>confdefs.h <<\_ACEOF
33155 #define HAVE_SNPRINTF_DECL 1
33156 _ACEOF
33157
33158
33159 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33160 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33161 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33162 echo $ECHO_N "(cached) $ECHO_C" >&6
33163 else
33164
33165 cat >conftest.$ac_ext <<_ACEOF
33166 /* confdefs.h. */
33167 _ACEOF
33168 cat confdefs.h >>conftest.$ac_ext
33169 cat >>conftest.$ac_ext <<_ACEOF
33170 /* end confdefs.h. */
33171
33172 #include <stdio.h>
33173 #include <stdarg.h>
33174 #ifdef __MSL__
33175 #if __MSL__ >= 0x6000
33176 namespace std {}
33177 using namespace std;
33178 #endif
33179 #endif
33180
33181 int
33182 main ()
33183 {
33184
33185 char *buf;
33186 const char *fmt = "%s";
33187 snprintf(buf, 10u, fmt, "wx");
33188
33189 ;
33190 return 0;
33191 }
33192 _ACEOF
33193 rm -f conftest.$ac_objext
33194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33195 (eval $ac_compile) 2>conftest.er1
33196 ac_status=$?
33197 grep -v '^ *+' conftest.er1 >conftest.err
33198 rm -f conftest.er1
33199 cat conftest.err >&5
33200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201 (exit $ac_status); } &&
33202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33204 (eval $ac_try) 2>&5
33205 ac_status=$?
33206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207 (exit $ac_status); }; } &&
33208 { ac_try='test -s conftest.$ac_objext'
33209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33210 (eval $ac_try) 2>&5
33211 ac_status=$?
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); }; }; then
33214 wx_cv_func_broken_snprintf_decl=no
33215 else
33216 echo "$as_me: failed program was:" >&5
33217 sed 's/^/| /' conftest.$ac_ext >&5
33218
33219 wx_cv_func_broken_snprintf_decl=yes
33220
33221 fi
33222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33223
33224
33225 fi
33226 echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33227 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33228
33229 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33230 cat >>confdefs.h <<\_ACEOF
33231 #define HAVE_BROKEN_SNPRINTF_DECL 1
33232 _ACEOF
33233
33234 fi
33235 fi
33236 fi
33237
33238 if test "$wxUSE_UNICODE" = yes; then
33239
33240
33241
33242
33243
33244
33245 for ac_func in wputc wputchar putws fputws wprintf vswprintf
33246 do
33247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33248 echo "$as_me:$LINENO: checking for $ac_func" >&5
33249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33250 if eval "test \"\${$as_ac_var+set}\" = set"; then
33251 echo $ECHO_N "(cached) $ECHO_C" >&6
33252 else
33253 cat >conftest.$ac_ext <<_ACEOF
33254 /* confdefs.h. */
33255 _ACEOF
33256 cat confdefs.h >>conftest.$ac_ext
33257 cat >>conftest.$ac_ext <<_ACEOF
33258 /* end confdefs.h. */
33259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33261 #define $ac_func innocuous_$ac_func
33262
33263 /* System header to define __stub macros and hopefully few prototypes,
33264 which can conflict with char $ac_func (); below.
33265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33266 <limits.h> exists even on freestanding compilers. */
33267
33268 #ifdef __STDC__
33269 # include <limits.h>
33270 #else
33271 # include <assert.h>
33272 #endif
33273
33274 #undef $ac_func
33275
33276 /* Override any gcc2 internal prototype to avoid an error. */
33277 #ifdef __cplusplus
33278 extern "C"
33279 {
33280 #endif
33281 /* We use char because int might match the return type of a gcc2
33282 builtin and then its argument prototype would still apply. */
33283 char $ac_func ();
33284 /* The GNU C library defines this for functions which it implements
33285 to always fail with ENOSYS. Some functions are actually named
33286 something starting with __ and the normal name is an alias. */
33287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33288 choke me
33289 #else
33290 char (*f) () = $ac_func;
33291 #endif
33292 #ifdef __cplusplus
33293 }
33294 #endif
33295
33296 int
33297 main ()
33298 {
33299 return f != $ac_func;
33300 ;
33301 return 0;
33302 }
33303 _ACEOF
33304 rm -f conftest.$ac_objext conftest$ac_exeext
33305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33306 (eval $ac_link) 2>conftest.er1
33307 ac_status=$?
33308 grep -v '^ *+' conftest.er1 >conftest.err
33309 rm -f conftest.er1
33310 cat conftest.err >&5
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); } &&
33313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33315 (eval $ac_try) 2>&5
33316 ac_status=$?
33317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318 (exit $ac_status); }; } &&
33319 { ac_try='test -s conftest$ac_exeext'
33320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33321 (eval $ac_try) 2>&5
33322 ac_status=$?
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); }; }; then
33325 eval "$as_ac_var=yes"
33326 else
33327 echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33329
33330 eval "$as_ac_var=no"
33331 fi
33332 rm -f conftest.err conftest.$ac_objext \
33333 conftest$ac_exeext conftest.$ac_ext
33334 fi
33335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33337 if test `eval echo '${'$as_ac_var'}'` = yes; then
33338 cat >>confdefs.h <<_ACEOF
33339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33340 _ACEOF
33341
33342 fi
33343 done
33344
33345
33346 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33347 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33348 cat >conftest.$ac_ext <<_ACEOF
33349 /* confdefs.h. */
33350 _ACEOF
33351 cat confdefs.h >>conftest.$ac_ext
33352 cat >>conftest.$ac_ext <<_ACEOF
33353 /* end confdefs.h. */
33354 #include <wchar.h>
33355 int
33356 main ()
33357 {
33358 &_vsnwprintf;
33359 ;
33360 return 0;
33361 }
33362 _ACEOF
33363 rm -f conftest.$ac_objext
33364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33365 (eval $ac_compile) 2>conftest.er1
33366 ac_status=$?
33367 grep -v '^ *+' conftest.er1 >conftest.err
33368 rm -f conftest.er1
33369 cat conftest.err >&5
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); } &&
33372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374 (eval $ac_try) 2>&5
33375 ac_status=$?
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; } &&
33378 { ac_try='test -s conftest.$ac_objext'
33379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33380 (eval $ac_try) 2>&5
33381 ac_status=$?
33382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383 (exit $ac_status); }; }; then
33384 echo "$as_me:$LINENO: result: yes" >&5
33385 echo "${ECHO_T}yes" >&6
33386 cat >>confdefs.h <<\_ACEOF
33387 #define HAVE__VSNWPRINTF 1
33388 _ACEOF
33389
33390 else
33391 echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33393
33394 echo "$as_me:$LINENO: result: no" >&5
33395 echo "${ECHO_T}no" >&6
33396 fi
33397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
33398 fi
33399
33400 ac_ext=c
33401 ac_cpp='$CPP $CPPFLAGS'
33402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33405
33406
33407 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33408
33409 for ac_func in fnmatch
33410 do
33411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33412 echo "$as_me:$LINENO: checking for $ac_func" >&5
33413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33414 if eval "test \"\${$as_ac_var+set}\" = set"; then
33415 echo $ECHO_N "(cached) $ECHO_C" >&6
33416 else
33417 cat >conftest.$ac_ext <<_ACEOF
33418 /* confdefs.h. */
33419 _ACEOF
33420 cat confdefs.h >>conftest.$ac_ext
33421 cat >>conftest.$ac_ext <<_ACEOF
33422 /* end confdefs.h. */
33423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33425 #define $ac_func innocuous_$ac_func
33426
33427 /* System header to define __stub macros and hopefully few prototypes,
33428 which can conflict with char $ac_func (); below.
33429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33430 <limits.h> exists even on freestanding compilers. */
33431
33432 #ifdef __STDC__
33433 # include <limits.h>
33434 #else
33435 # include <assert.h>
33436 #endif
33437
33438 #undef $ac_func
33439
33440 /* Override any gcc2 internal prototype to avoid an error. */
33441 #ifdef __cplusplus
33442 extern "C"
33443 {
33444 #endif
33445 /* We use char because int might match the return type of a gcc2
33446 builtin and then its argument prototype would still apply. */
33447 char $ac_func ();
33448 /* The GNU C library defines this for functions which it implements
33449 to always fail with ENOSYS. Some functions are actually named
33450 something starting with __ and the normal name is an alias. */
33451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33452 choke me
33453 #else
33454 char (*f) () = $ac_func;
33455 #endif
33456 #ifdef __cplusplus
33457 }
33458 #endif
33459
33460 int
33461 main ()
33462 {
33463 return f != $ac_func;
33464 ;
33465 return 0;
33466 }
33467 _ACEOF
33468 rm -f conftest.$ac_objext conftest$ac_exeext
33469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33470 (eval $ac_link) 2>conftest.er1
33471 ac_status=$?
33472 grep -v '^ *+' conftest.er1 >conftest.err
33473 rm -f conftest.er1
33474 cat conftest.err >&5
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); } &&
33477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33479 (eval $ac_try) 2>&5
33480 ac_status=$?
33481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482 (exit $ac_status); }; } &&
33483 { ac_try='test -s conftest$ac_exeext'
33484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33485 (eval $ac_try) 2>&5
33486 ac_status=$?
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); }; }; then
33489 eval "$as_ac_var=yes"
33490 else
33491 echo "$as_me: failed program was:" >&5
33492 sed 's/^/| /' conftest.$ac_ext >&5
33493
33494 eval "$as_ac_var=no"
33495 fi
33496 rm -f conftest.err conftest.$ac_objext \
33497 conftest$ac_exeext conftest.$ac_ext
33498 fi
33499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33501 if test `eval echo '${'$as_ac_var'}'` = yes; then
33502 cat >>confdefs.h <<_ACEOF
33503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33504 _ACEOF
33505
33506 fi
33507 done
33508
33509 fi
33510
33511 if test "$wxUSE_FILE" = "yes"; then
33512
33513 for ac_func in fsync
33514 do
33515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33516 echo "$as_me:$LINENO: checking for $ac_func" >&5
33517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33518 if eval "test \"\${$as_ac_var+set}\" = set"; then
33519 echo $ECHO_N "(cached) $ECHO_C" >&6
33520 else
33521 cat >conftest.$ac_ext <<_ACEOF
33522 /* confdefs.h. */
33523 _ACEOF
33524 cat confdefs.h >>conftest.$ac_ext
33525 cat >>conftest.$ac_ext <<_ACEOF
33526 /* end confdefs.h. */
33527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33529 #define $ac_func innocuous_$ac_func
33530
33531 /* System header to define __stub macros and hopefully few prototypes,
33532 which can conflict with char $ac_func (); below.
33533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33534 <limits.h> exists even on freestanding compilers. */
33535
33536 #ifdef __STDC__
33537 # include <limits.h>
33538 #else
33539 # include <assert.h>
33540 #endif
33541
33542 #undef $ac_func
33543
33544 /* Override any gcc2 internal prototype to avoid an error. */
33545 #ifdef __cplusplus
33546 extern "C"
33547 {
33548 #endif
33549 /* We use char because int might match the return type of a gcc2
33550 builtin and then its argument prototype would still apply. */
33551 char $ac_func ();
33552 /* The GNU C library defines this for functions which it implements
33553 to always fail with ENOSYS. Some functions are actually named
33554 something starting with __ and the normal name is an alias. */
33555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33556 choke me
33557 #else
33558 char (*f) () = $ac_func;
33559 #endif
33560 #ifdef __cplusplus
33561 }
33562 #endif
33563
33564 int
33565 main ()
33566 {
33567 return f != $ac_func;
33568 ;
33569 return 0;
33570 }
33571 _ACEOF
33572 rm -f conftest.$ac_objext conftest$ac_exeext
33573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33574 (eval $ac_link) 2>conftest.er1
33575 ac_status=$?
33576 grep -v '^ *+' conftest.er1 >conftest.err
33577 rm -f conftest.er1
33578 cat conftest.err >&5
33579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580 (exit $ac_status); } &&
33581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33583 (eval $ac_try) 2>&5
33584 ac_status=$?
33585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586 (exit $ac_status); }; } &&
33587 { ac_try='test -s conftest$ac_exeext'
33588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33589 (eval $ac_try) 2>&5
33590 ac_status=$?
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); }; }; then
33593 eval "$as_ac_var=yes"
33594 else
33595 echo "$as_me: failed program was:" >&5
33596 sed 's/^/| /' conftest.$ac_ext >&5
33597
33598 eval "$as_ac_var=no"
33599 fi
33600 rm -f conftest.err conftest.$ac_objext \
33601 conftest$ac_exeext conftest.$ac_ext
33602 fi
33603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33605 if test `eval echo '${'$as_ac_var'}'` = yes; then
33606 cat >>confdefs.h <<_ACEOF
33607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33608 _ACEOF
33609
33610 fi
33611 done
33612
33613 fi
33614
33615
33616 if test "$TOOLKIT" != "MSW"; then
33617
33618
33619
33620
33621 ac_ext=cc
33622 ac_cpp='$CXXCPP $CPPFLAGS'
33623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33626
33627
33628
33629
33630 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33631 if test "${with_libiconv_prefix+set}" = set; then
33632 withval="$with_libiconv_prefix"
33633
33634 for dir in `echo "$withval" | tr : ' '`; do
33635 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33636 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33637 done
33638
33639 fi;
33640
33641 echo "$as_me:$LINENO: checking for iconv" >&5
33642 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33643 if test "${am_cv_func_iconv+set}" = set; then
33644 echo $ECHO_N "(cached) $ECHO_C" >&6
33645 else
33646
33647 am_cv_func_iconv="no, consider installing GNU libiconv"
33648 am_cv_lib_iconv=no
33649 cat >conftest.$ac_ext <<_ACEOF
33650 /* confdefs.h. */
33651 _ACEOF
33652 cat confdefs.h >>conftest.$ac_ext
33653 cat >>conftest.$ac_ext <<_ACEOF
33654 /* end confdefs.h. */
33655 #include <stdlib.h>
33656 #include <iconv.h>
33657 int
33658 main ()
33659 {
33660 iconv_t cd = iconv_open("","");
33661 iconv(cd,NULL,NULL,NULL,NULL);
33662 iconv_close(cd);
33663 ;
33664 return 0;
33665 }
33666 _ACEOF
33667 rm -f conftest.$ac_objext conftest$ac_exeext
33668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33669 (eval $ac_link) 2>conftest.er1
33670 ac_status=$?
33671 grep -v '^ *+' conftest.er1 >conftest.err
33672 rm -f conftest.er1
33673 cat conftest.err >&5
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); } &&
33676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33678 (eval $ac_try) 2>&5
33679 ac_status=$?
33680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681 (exit $ac_status); }; } &&
33682 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
33688 am_cv_func_iconv=yes
33689 else
33690 echo "$as_me: failed program was:" >&5
33691 sed 's/^/| /' conftest.$ac_ext >&5
33692
33693 fi
33694 rm -f conftest.err conftest.$ac_objext \
33695 conftest$ac_exeext conftest.$ac_ext
33696 if test "$am_cv_func_iconv" != yes; then
33697 am_save_LIBS="$LIBS"
33698 LIBS="$LIBS -liconv"
33699 cat >conftest.$ac_ext <<_ACEOF
33700 /* confdefs.h. */
33701 _ACEOF
33702 cat confdefs.h >>conftest.$ac_ext
33703 cat >>conftest.$ac_ext <<_ACEOF
33704 /* end confdefs.h. */
33705 #include <stdlib.h>
33706 #include <iconv.h>
33707 int
33708 main ()
33709 {
33710 iconv_t cd = iconv_open("","");
33711 iconv(cd,NULL,NULL,NULL,NULL);
33712 iconv_close(cd);
33713 ;
33714 return 0;
33715 }
33716 _ACEOF
33717 rm -f conftest.$ac_objext conftest$ac_exeext
33718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33719 (eval $ac_link) 2>conftest.er1
33720 ac_status=$?
33721 grep -v '^ *+' conftest.er1 >conftest.err
33722 rm -f conftest.er1
33723 cat conftest.err >&5
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); } &&
33726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33728 (eval $ac_try) 2>&5
33729 ac_status=$?
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); }; } &&
33732 { ac_try='test -s conftest$ac_exeext'
33733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33734 (eval $ac_try) 2>&5
33735 ac_status=$?
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); }; }; then
33738 am_cv_lib_iconv=yes
33739 am_cv_func_iconv=yes
33740 else
33741 echo "$as_me: failed program was:" >&5
33742 sed 's/^/| /' conftest.$ac_ext >&5
33743
33744 fi
33745 rm -f conftest.err conftest.$ac_objext \
33746 conftest$ac_exeext conftest.$ac_ext
33747 LIBS="$am_save_LIBS"
33748 fi
33749
33750 fi
33751 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33752 echo "${ECHO_T}$am_cv_func_iconv" >&6
33753 if test "$am_cv_func_iconv" = yes; then
33754
33755 cat >>confdefs.h <<\_ACEOF
33756 #define HAVE_ICONV 1
33757 _ACEOF
33758
33759 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33760 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33761 if test "${wx_cv_func_iconv_const+set}" = set; then
33762 echo $ECHO_N "(cached) $ECHO_C" >&6
33763 else
33764 cat >conftest.$ac_ext <<_ACEOF
33765 /* confdefs.h. */
33766 _ACEOF
33767 cat confdefs.h >>conftest.$ac_ext
33768 cat >>conftest.$ac_ext <<_ACEOF
33769 /* end confdefs.h. */
33770
33771 #include <stdlib.h>
33772 #include <iconv.h>
33773 extern
33774 #ifdef __cplusplus
33775 "C"
33776 #endif
33777 #if defined(__STDC__) || defined(__cplusplus)
33778 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33779 #else
33780 size_t iconv();
33781 #endif
33782
33783 int
33784 main ()
33785 {
33786
33787 ;
33788 return 0;
33789 }
33790 _ACEOF
33791 rm -f conftest.$ac_objext
33792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33793 (eval $ac_compile) 2>conftest.er1
33794 ac_status=$?
33795 grep -v '^ *+' conftest.er1 >conftest.err
33796 rm -f conftest.er1
33797 cat conftest.err >&5
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); } &&
33800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802 (eval $ac_try) 2>&5
33803 ac_status=$?
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); }; } &&
33806 { ac_try='test -s conftest.$ac_objext'
33807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808 (eval $ac_try) 2>&5
33809 ac_status=$?
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; }; then
33812 wx_cv_func_iconv_const="no"
33813 else
33814 echo "$as_me: failed program was:" >&5
33815 sed 's/^/| /' conftest.$ac_ext >&5
33816
33817 wx_cv_func_iconv_const="yes"
33818
33819 fi
33820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33821
33822 fi
33823 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33824 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33825
33826 iconv_const=
33827 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33828 iconv_const="const"
33829 fi
33830
33831
33832 cat >>confdefs.h <<_ACEOF
33833 #define ICONV_CONST $iconv_const
33834 _ACEOF
33835
33836 fi
33837 LIBICONV=
33838 if test "$am_cv_lib_iconv" = yes; then
33839 LIBICONV="-liconv"
33840 fi
33841
33842
33843 LIBS="$LIBICONV $LIBS"
33844 ac_ext=c
33845 ac_cpp='$CPP $CPPFLAGS'
33846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33849
33850
33851 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33852
33853 for ac_func in sigaction
33854 do
33855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33856 echo "$as_me:$LINENO: checking for $ac_func" >&5
33857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33858 if eval "test \"\${$as_ac_var+set}\" = set"; then
33859 echo $ECHO_N "(cached) $ECHO_C" >&6
33860 else
33861 cat >conftest.$ac_ext <<_ACEOF
33862 /* confdefs.h. */
33863 _ACEOF
33864 cat confdefs.h >>conftest.$ac_ext
33865 cat >>conftest.$ac_ext <<_ACEOF
33866 /* end confdefs.h. */
33867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33869 #define $ac_func innocuous_$ac_func
33870
33871 /* System header to define __stub macros and hopefully few prototypes,
33872 which can conflict with char $ac_func (); below.
33873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33874 <limits.h> exists even on freestanding compilers. */
33875
33876 #ifdef __STDC__
33877 # include <limits.h>
33878 #else
33879 # include <assert.h>
33880 #endif
33881
33882 #undef $ac_func
33883
33884 /* Override any gcc2 internal prototype to avoid an error. */
33885 #ifdef __cplusplus
33886 extern "C"
33887 {
33888 #endif
33889 /* We use char because int might match the return type of a gcc2
33890 builtin and then its argument prototype would still apply. */
33891 char $ac_func ();
33892 /* The GNU C library defines this for functions which it implements
33893 to always fail with ENOSYS. Some functions are actually named
33894 something starting with __ and the normal name is an alias. */
33895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33896 choke me
33897 #else
33898 char (*f) () = $ac_func;
33899 #endif
33900 #ifdef __cplusplus
33901 }
33902 #endif
33903
33904 int
33905 main ()
33906 {
33907 return f != $ac_func;
33908 ;
33909 return 0;
33910 }
33911 _ACEOF
33912 rm -f conftest.$ac_objext conftest$ac_exeext
33913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33914 (eval $ac_link) 2>conftest.er1
33915 ac_status=$?
33916 grep -v '^ *+' conftest.er1 >conftest.err
33917 rm -f conftest.er1
33918 cat conftest.err >&5
33919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); } &&
33921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33923 (eval $ac_try) 2>&5
33924 ac_status=$?
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; } &&
33927 { ac_try='test -s conftest$ac_exeext'
33928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33929 (eval $ac_try) 2>&5
33930 ac_status=$?
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; }; then
33933 eval "$as_ac_var=yes"
33934 else
33935 echo "$as_me: failed program was:" >&5
33936 sed 's/^/| /' conftest.$ac_ext >&5
33937
33938 eval "$as_ac_var=no"
33939 fi
33940 rm -f conftest.err conftest.$ac_objext \
33941 conftest$ac_exeext conftest.$ac_ext
33942 fi
33943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33945 if test `eval echo '${'$as_ac_var'}'` = yes; then
33946 cat >>confdefs.h <<_ACEOF
33947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33948 _ACEOF
33949
33950 fi
33951 done
33952
33953
33954 if test "$ac_cv_func_sigaction" = "no"; then
33955 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
33956 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
33957 wxUSE_ON_FATAL_EXCEPTION=no
33958 fi
33959
33960 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
33961
33962
33963 ac_ext=cc
33964 ac_cpp='$CXXCPP $CPPFLAGS'
33965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33968
33969
33970 echo "$as_me:$LINENO: checking for sa_handler type" >&5
33971 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
33972 if test "${wx_cv_type_sa_handler+set}" = set; then
33973 echo $ECHO_N "(cached) $ECHO_C" >&6
33974 else
33975
33976 cat >conftest.$ac_ext <<_ACEOF
33977 /* confdefs.h. */
33978 _ACEOF
33979 cat confdefs.h >>conftest.$ac_ext
33980 cat >>conftest.$ac_ext <<_ACEOF
33981 /* end confdefs.h. */
33982 #include <signal.h>
33983 int
33984 main ()
33985 {
33986
33987 extern void testSigHandler(int);
33988
33989 struct sigaction sa;
33990 sa.sa_handler = testSigHandler;
33991
33992 ;
33993 return 0;
33994 }
33995 _ACEOF
33996 rm -f conftest.$ac_objext
33997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33998 (eval $ac_compile) 2>conftest.er1
33999 ac_status=$?
34000 grep -v '^ *+' conftest.er1 >conftest.err
34001 rm -f conftest.er1
34002 cat conftest.err >&5
34003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34004 (exit $ac_status); } &&
34005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34007 (eval $ac_try) 2>&5
34008 ac_status=$?
34009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010 (exit $ac_status); }; } &&
34011 { ac_try='test -s conftest.$ac_objext'
34012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34013 (eval $ac_try) 2>&5
34014 ac_status=$?
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); }; }; then
34017
34018 wx_cv_type_sa_handler=int
34019
34020 else
34021 echo "$as_me: failed program was:" >&5
34022 sed 's/^/| /' conftest.$ac_ext >&5
34023
34024
34025 wx_cv_type_sa_handler=void
34026
34027 fi
34028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34029
34030 fi
34031 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34032 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34033
34034 ac_ext=c
34035 ac_cpp='$CPP $CPPFLAGS'
34036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34039
34040
34041 cat >>confdefs.h <<_ACEOF
34042 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34043 _ACEOF
34044
34045 fi
34046 fi
34047
34048 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34049
34050
34051 ac_ext=cc
34052 ac_cpp='$CXXCPP $CPPFLAGS'
34053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34056
34057
34058 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34059 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34060 if test "${wx_cv_func_backtrace+set}" = set; then
34061 echo $ECHO_N "(cached) $ECHO_C" >&6
34062 else
34063
34064 cat >conftest.$ac_ext <<_ACEOF
34065 /* confdefs.h. */
34066 _ACEOF
34067 cat confdefs.h >>conftest.$ac_ext
34068 cat >>conftest.$ac_ext <<_ACEOF
34069 /* end confdefs.h. */
34070 #include <execinfo.h>
34071 int
34072 main ()
34073 {
34074
34075 void *trace[1];
34076 char **messages;
34077
34078 backtrace(trace, 1);
34079 messages = backtrace_symbols(trace, 1);
34080
34081 ;
34082 return 0;
34083 }
34084 _ACEOF
34085 rm -f conftest.$ac_objext
34086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34087 (eval $ac_compile) 2>conftest.er1
34088 ac_status=$?
34089 grep -v '^ *+' conftest.er1 >conftest.err
34090 rm -f conftest.er1
34091 cat conftest.err >&5
34092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093 (exit $ac_status); } &&
34094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34096 (eval $ac_try) 2>&5
34097 ac_status=$?
34098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34099 (exit $ac_status); }; } &&
34100 { ac_try='test -s conftest.$ac_objext'
34101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34102 (eval $ac_try) 2>&5
34103 ac_status=$?
34104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105 (exit $ac_status); }; }; then
34106 wx_cv_func_backtrace=yes
34107 else
34108 echo "$as_me: failed program was:" >&5
34109 sed 's/^/| /' conftest.$ac_ext >&5
34110
34111 wx_cv_func_backtrace=no
34112
34113 fi
34114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34115
34116
34117 fi
34118 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34119 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34120
34121
34122 if test "$wx_cv_func_backtrace" = "no"; then
34123 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34124 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34125 wxUSE_STACKWALKER=no
34126 else
34127 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34128 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34129 if test "${wx_cv_func_cxa_demangle+set}" = set; then
34130 echo $ECHO_N "(cached) $ECHO_C" >&6
34131 else
34132
34133 cat >conftest.$ac_ext <<_ACEOF
34134 /* confdefs.h. */
34135 _ACEOF
34136 cat confdefs.h >>conftest.$ac_ext
34137 cat >>conftest.$ac_ext <<_ACEOF
34138 /* end confdefs.h. */
34139 #include <cxxabi.h>
34140 int
34141 main ()
34142 {
34143
34144 int rc;
34145 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34146
34147 ;
34148 return 0;
34149 }
34150 _ACEOF
34151 rm -f conftest.$ac_objext conftest$ac_exeext
34152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34153 (eval $ac_link) 2>conftest.er1
34154 ac_status=$?
34155 grep -v '^ *+' conftest.er1 >conftest.err
34156 rm -f conftest.er1
34157 cat conftest.err >&5
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); } &&
34160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34162 (eval $ac_try) 2>&5
34163 ac_status=$?
34164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165 (exit $ac_status); }; } &&
34166 { ac_try='test -s conftest$ac_exeext'
34167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34168 (eval $ac_try) 2>&5
34169 ac_status=$?
34170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171 (exit $ac_status); }; }; then
34172 wx_cv_func_cxa_demangle=yes
34173 else
34174 echo "$as_me: failed program was:" >&5
34175 sed 's/^/| /' conftest.$ac_ext >&5
34176
34177 wx_cv_func_cxa_demangle=no
34178
34179 fi
34180 rm -f conftest.err conftest.$ac_objext \
34181 conftest$ac_exeext conftest.$ac_ext
34182
34183
34184 fi
34185 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34186 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34187
34188 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34189 cat >>confdefs.h <<\_ACEOF
34190 #define HAVE_CXA_DEMANGLE 1
34191 _ACEOF
34192
34193 fi
34194 fi
34195
34196 ac_ext=c
34197 ac_cpp='$CPP $CPPFLAGS'
34198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34201
34202 fi
34203
34204 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34205 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34206 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34207 wxUSE_STACKWALKER=no
34208 fi
34209
34210
34211
34212
34213 for ac_func in mkstemp mktemp
34214 do
34215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34216 echo "$as_me:$LINENO: checking for $ac_func" >&5
34217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34218 if eval "test \"\${$as_ac_var+set}\" = set"; then
34219 echo $ECHO_N "(cached) $ECHO_C" >&6
34220 else
34221 cat >conftest.$ac_ext <<_ACEOF
34222 /* confdefs.h. */
34223 _ACEOF
34224 cat confdefs.h >>conftest.$ac_ext
34225 cat >>conftest.$ac_ext <<_ACEOF
34226 /* end confdefs.h. */
34227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34229 #define $ac_func innocuous_$ac_func
34230
34231 /* System header to define __stub macros and hopefully few prototypes,
34232 which can conflict with char $ac_func (); below.
34233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34234 <limits.h> exists even on freestanding compilers. */
34235
34236 #ifdef __STDC__
34237 # include <limits.h>
34238 #else
34239 # include <assert.h>
34240 #endif
34241
34242 #undef $ac_func
34243
34244 /* Override any gcc2 internal prototype to avoid an error. */
34245 #ifdef __cplusplus
34246 extern "C"
34247 {
34248 #endif
34249 /* We use char because int might match the return type of a gcc2
34250 builtin and then its argument prototype would still apply. */
34251 char $ac_func ();
34252 /* The GNU C library defines this for functions which it implements
34253 to always fail with ENOSYS. Some functions are actually named
34254 something starting with __ and the normal name is an alias. */
34255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34256 choke me
34257 #else
34258 char (*f) () = $ac_func;
34259 #endif
34260 #ifdef __cplusplus
34261 }
34262 #endif
34263
34264 int
34265 main ()
34266 {
34267 return f != $ac_func;
34268 ;
34269 return 0;
34270 }
34271 _ACEOF
34272 rm -f conftest.$ac_objext conftest$ac_exeext
34273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34274 (eval $ac_link) 2>conftest.er1
34275 ac_status=$?
34276 grep -v '^ *+' conftest.er1 >conftest.err
34277 rm -f conftest.er1
34278 cat conftest.err >&5
34279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280 (exit $ac_status); } &&
34281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34283 (eval $ac_try) 2>&5
34284 ac_status=$?
34285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34286 (exit $ac_status); }; } &&
34287 { ac_try='test -s conftest$ac_exeext'
34288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34289 (eval $ac_try) 2>&5
34290 ac_status=$?
34291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292 (exit $ac_status); }; }; then
34293 eval "$as_ac_var=yes"
34294 else
34295 echo "$as_me: failed program was:" >&5
34296 sed 's/^/| /' conftest.$ac_ext >&5
34297
34298 eval "$as_ac_var=no"
34299 fi
34300 rm -f conftest.err conftest.$ac_objext \
34301 conftest$ac_exeext conftest.$ac_ext
34302 fi
34303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34305 if test `eval echo '${'$as_ac_var'}'` = yes; then
34306 cat >>confdefs.h <<_ACEOF
34307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34308 _ACEOF
34309 break
34310 fi
34311 done
34312
34313
34314 echo "$as_me:$LINENO: checking for statfs" >&5
34315 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34316 if test "${wx_cv_func_statfs+set}" = set; then
34317 echo $ECHO_N "(cached) $ECHO_C" >&6
34318 else
34319 cat >conftest.$ac_ext <<_ACEOF
34320 /* confdefs.h. */
34321 _ACEOF
34322 cat confdefs.h >>conftest.$ac_ext
34323 cat >>conftest.$ac_ext <<_ACEOF
34324 /* end confdefs.h. */
34325
34326 #if defined(__BSD__)
34327 #include <sys/param.h>
34328 #include <sys/mount.h>
34329 #else
34330 #include <sys/vfs.h>
34331 #endif
34332
34333 int
34334 main ()
34335 {
34336
34337 long l;
34338 struct statfs fs;
34339 statfs("/", &fs);
34340 l = fs.f_bsize;
34341 l += fs.f_blocks;
34342 l += fs.f_bavail;
34343
34344 ;
34345 return 0;
34346 }
34347 _ACEOF
34348 rm -f conftest.$ac_objext
34349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34350 (eval $ac_compile) 2>conftest.er1
34351 ac_status=$?
34352 grep -v '^ *+' conftest.er1 >conftest.err
34353 rm -f conftest.er1
34354 cat conftest.err >&5
34355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356 (exit $ac_status); } &&
34357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34359 (eval $ac_try) 2>&5
34360 ac_status=$?
34361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34362 (exit $ac_status); }; } &&
34363 { ac_try='test -s conftest.$ac_objext'
34364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34365 (eval $ac_try) 2>&5
34366 ac_status=$?
34367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368 (exit $ac_status); }; }; then
34369 wx_cv_func_statfs=yes
34370 else
34371 echo "$as_me: failed program was:" >&5
34372 sed 's/^/| /' conftest.$ac_ext >&5
34373
34374 wx_cv_func_statfs=no
34375
34376 fi
34377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34378
34379 fi
34380 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34381 echo "${ECHO_T}$wx_cv_func_statfs" >&6
34382
34383 if test "$wx_cv_func_statfs" = "yes"; then
34384
34385
34386 ac_ext=cc
34387 ac_cpp='$CXXCPP $CPPFLAGS'
34388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34391
34392 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34393 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34394 if test "${wx_cv_func_statfs_decl+set}" = set; then
34395 echo $ECHO_N "(cached) $ECHO_C" >&6
34396 else
34397 cat >conftest.$ac_ext <<_ACEOF
34398 /* confdefs.h. */
34399 _ACEOF
34400 cat confdefs.h >>conftest.$ac_ext
34401 cat >>conftest.$ac_ext <<_ACEOF
34402 /* end confdefs.h. */
34403
34404 #if defined(__BSD__)
34405 #include <sys/param.h>
34406 #include <sys/mount.h>
34407 #else
34408 #include <sys/vfs.h>
34409 #endif
34410
34411 int
34412 main ()
34413 {
34414
34415 struct statfs fs;
34416 statfs("", &fs);
34417
34418 ;
34419 return 0;
34420 }
34421 _ACEOF
34422 rm -f conftest.$ac_objext
34423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34424 (eval $ac_compile) 2>conftest.er1
34425 ac_status=$?
34426 grep -v '^ *+' conftest.er1 >conftest.err
34427 rm -f conftest.er1
34428 cat conftest.err >&5
34429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34430 (exit $ac_status); } &&
34431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34433 (eval $ac_try) 2>&5
34434 ac_status=$?
34435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34436 (exit $ac_status); }; } &&
34437 { ac_try='test -s conftest.$ac_objext'
34438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34439 (eval $ac_try) 2>&5
34440 ac_status=$?
34441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 (exit $ac_status); }; }; then
34443 wx_cv_func_statfs_decl=yes
34444 else
34445 echo "$as_me: failed program was:" >&5
34446 sed 's/^/| /' conftest.$ac_ext >&5
34447
34448 wx_cv_func_statfs_decl=no
34449
34450 fi
34451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34452
34453 fi
34454 echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34455 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34456 ac_ext=c
34457 ac_cpp='$CPP $CPPFLAGS'
34458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34461
34462
34463 if test "$wx_cv_func_statfs_decl" = "yes"; then
34464 cat >>confdefs.h <<\_ACEOF
34465 #define HAVE_STATFS_DECL 1
34466 _ACEOF
34467
34468 fi
34469
34470 wx_cv_type_statvfs_t="struct statfs"
34471 cat >>confdefs.h <<\_ACEOF
34472 #define HAVE_STATFS 1
34473 _ACEOF
34474
34475 else
34476 echo "$as_me:$LINENO: checking for statvfs" >&5
34477 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34478 if test "${wx_cv_func_statvfs+set}" = set; then
34479 echo $ECHO_N "(cached) $ECHO_C" >&6
34480 else
34481 cat >conftest.$ac_ext <<_ACEOF
34482 /* confdefs.h. */
34483 _ACEOF
34484 cat confdefs.h >>conftest.$ac_ext
34485 cat >>conftest.$ac_ext <<_ACEOF
34486 /* end confdefs.h. */
34487
34488 #include <stddef.h>
34489 #include <sys/statvfs.h>
34490
34491 int
34492 main ()
34493 {
34494
34495 statvfs("/", NULL);
34496
34497 ;
34498 return 0;
34499 }
34500 _ACEOF
34501 rm -f conftest.$ac_objext
34502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34503 (eval $ac_compile) 2>conftest.er1
34504 ac_status=$?
34505 grep -v '^ *+' conftest.er1 >conftest.err
34506 rm -f conftest.er1
34507 cat conftest.err >&5
34508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34509 (exit $ac_status); } &&
34510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34512 (eval $ac_try) 2>&5
34513 ac_status=$?
34514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515 (exit $ac_status); }; } &&
34516 { ac_try='test -s conftest.$ac_objext'
34517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34518 (eval $ac_try) 2>&5
34519 ac_status=$?
34520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521 (exit $ac_status); }; }; then
34522 wx_cv_func_statvfs=yes
34523 else
34524 echo "$as_me: failed program was:" >&5
34525 sed 's/^/| /' conftest.$ac_ext >&5
34526
34527 wx_cv_func_statvfs=no
34528
34529 fi
34530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34531
34532 fi
34533 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34534 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34535
34536 if test "$wx_cv_func_statvfs" = "yes"; then
34537
34538
34539 ac_ext=cc
34540 ac_cpp='$CXXCPP $CPPFLAGS'
34541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34544
34545
34546 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34547 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34548 if test "${wx_cv_type_statvfs_t+set}" = set; then
34549 echo $ECHO_N "(cached) $ECHO_C" >&6
34550 else
34551 cat >conftest.$ac_ext <<_ACEOF
34552 /* confdefs.h. */
34553 _ACEOF
34554 cat confdefs.h >>conftest.$ac_ext
34555 cat >>conftest.$ac_ext <<_ACEOF
34556 /* end confdefs.h. */
34557
34558 #include <sys/statvfs.h>
34559
34560 int
34561 main ()
34562 {
34563
34564 long l;
34565 statvfs_t fs;
34566 statvfs("/", &fs);
34567 l = fs.f_bsize;
34568 l += fs.f_blocks;
34569 l += fs.f_bavail;
34570
34571 ;
34572 return 0;
34573 }
34574 _ACEOF
34575 rm -f conftest.$ac_objext
34576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34577 (eval $ac_compile) 2>conftest.er1
34578 ac_status=$?
34579 grep -v '^ *+' conftest.er1 >conftest.err
34580 rm -f conftest.er1
34581 cat conftest.err >&5
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); } &&
34584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34586 (eval $ac_try) 2>&5
34587 ac_status=$?
34588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34589 (exit $ac_status); }; } &&
34590 { ac_try='test -s conftest.$ac_objext'
34591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34592 (eval $ac_try) 2>&5
34593 ac_status=$?
34594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34595 (exit $ac_status); }; }; then
34596 wx_cv_type_statvfs_t=statvfs_t
34597 else
34598 echo "$as_me: failed program was:" >&5
34599 sed 's/^/| /' conftest.$ac_ext >&5
34600
34601
34602 cat >conftest.$ac_ext <<_ACEOF
34603 /* confdefs.h. */
34604 _ACEOF
34605 cat confdefs.h >>conftest.$ac_ext
34606 cat >>conftest.$ac_ext <<_ACEOF
34607 /* end confdefs.h. */
34608
34609 #include <sys/statvfs.h>
34610
34611 int
34612 main ()
34613 {
34614
34615 long l;
34616 struct statvfs fs;
34617 statvfs("/", &fs);
34618 l = fs.f_bsize;
34619 l += fs.f_blocks;
34620 l += fs.f_bavail;
34621
34622 ;
34623 return 0;
34624 }
34625 _ACEOF
34626 rm -f conftest.$ac_objext
34627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34628 (eval $ac_compile) 2>conftest.er1
34629 ac_status=$?
34630 grep -v '^ *+' conftest.er1 >conftest.err
34631 rm -f conftest.er1
34632 cat conftest.err >&5
34633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34634 (exit $ac_status); } &&
34635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34637 (eval $ac_try) 2>&5
34638 ac_status=$?
34639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640 (exit $ac_status); }; } &&
34641 { ac_try='test -s conftest.$ac_objext'
34642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34643 (eval $ac_try) 2>&5
34644 ac_status=$?
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); }; }; then
34647 wx_cv_type_statvfs_t="struct statvfs"
34648 else
34649 echo "$as_me: failed program was:" >&5
34650 sed 's/^/| /' conftest.$ac_ext >&5
34651
34652 wx_cv_type_statvfs_t="unknown"
34653
34654 fi
34655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34656
34657
34658 fi
34659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34660
34661 fi
34662 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34663 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34664
34665 ac_ext=c
34666 ac_cpp='$CPP $CPPFLAGS'
34667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34670
34671
34672 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34673 cat >>confdefs.h <<\_ACEOF
34674 #define HAVE_STATVFS 1
34675 _ACEOF
34676
34677 fi
34678 else
34679 wx_cv_type_statvfs_t="unknown"
34680 fi
34681 fi
34682
34683 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34684 cat >>confdefs.h <<_ACEOF
34685 #define WX_STATFS_T $wx_cv_type_statvfs_t
34686 _ACEOF
34687
34688 else
34689 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34690 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34691 fi
34692
34693 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34694
34695
34696 for ac_func in fcntl flock
34697 do
34698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34699 echo "$as_me:$LINENO: checking for $ac_func" >&5
34700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34701 if eval "test \"\${$as_ac_var+set}\" = set"; then
34702 echo $ECHO_N "(cached) $ECHO_C" >&6
34703 else
34704 cat >conftest.$ac_ext <<_ACEOF
34705 /* confdefs.h. */
34706 _ACEOF
34707 cat confdefs.h >>conftest.$ac_ext
34708 cat >>conftest.$ac_ext <<_ACEOF
34709 /* end confdefs.h. */
34710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34712 #define $ac_func innocuous_$ac_func
34713
34714 /* System header to define __stub macros and hopefully few prototypes,
34715 which can conflict with char $ac_func (); below.
34716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34717 <limits.h> exists even on freestanding compilers. */
34718
34719 #ifdef __STDC__
34720 # include <limits.h>
34721 #else
34722 # include <assert.h>
34723 #endif
34724
34725 #undef $ac_func
34726
34727 /* Override any gcc2 internal prototype to avoid an error. */
34728 #ifdef __cplusplus
34729 extern "C"
34730 {
34731 #endif
34732 /* We use char because int might match the return type of a gcc2
34733 builtin and then its argument prototype would still apply. */
34734 char $ac_func ();
34735 /* The GNU C library defines this for functions which it implements
34736 to always fail with ENOSYS. Some functions are actually named
34737 something starting with __ and the normal name is an alias. */
34738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34739 choke me
34740 #else
34741 char (*f) () = $ac_func;
34742 #endif
34743 #ifdef __cplusplus
34744 }
34745 #endif
34746
34747 int
34748 main ()
34749 {
34750 return f != $ac_func;
34751 ;
34752 return 0;
34753 }
34754 _ACEOF
34755 rm -f conftest.$ac_objext conftest$ac_exeext
34756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34757 (eval $ac_link) 2>conftest.er1
34758 ac_status=$?
34759 grep -v '^ *+' conftest.er1 >conftest.err
34760 rm -f conftest.er1
34761 cat conftest.err >&5
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); } &&
34764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34766 (eval $ac_try) 2>&5
34767 ac_status=$?
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); }; } &&
34770 { ac_try='test -s conftest$ac_exeext'
34771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34772 (eval $ac_try) 2>&5
34773 ac_status=$?
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); }; }; then
34776 eval "$as_ac_var=yes"
34777 else
34778 echo "$as_me: failed program was:" >&5
34779 sed 's/^/| /' conftest.$ac_ext >&5
34780
34781 eval "$as_ac_var=no"
34782 fi
34783 rm -f conftest.err conftest.$ac_objext \
34784 conftest$ac_exeext conftest.$ac_ext
34785 fi
34786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34788 if test `eval echo '${'$as_ac_var'}'` = yes; then
34789 cat >>confdefs.h <<_ACEOF
34790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34791 _ACEOF
34792 break
34793 fi
34794 done
34795
34796
34797 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34798 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34799 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34800 wxUSE_SNGLINST_CHECKER=no
34801 fi
34802 fi
34803
34804
34805 for ac_func in timegm
34806 do
34807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34808 echo "$as_me:$LINENO: checking for $ac_func" >&5
34809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34810 if eval "test \"\${$as_ac_var+set}\" = set"; then
34811 echo $ECHO_N "(cached) $ECHO_C" >&6
34812 else
34813 cat >conftest.$ac_ext <<_ACEOF
34814 /* confdefs.h. */
34815 _ACEOF
34816 cat confdefs.h >>conftest.$ac_ext
34817 cat >>conftest.$ac_ext <<_ACEOF
34818 /* end confdefs.h. */
34819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34821 #define $ac_func innocuous_$ac_func
34822
34823 /* System header to define __stub macros and hopefully few prototypes,
34824 which can conflict with char $ac_func (); below.
34825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34826 <limits.h> exists even on freestanding compilers. */
34827
34828 #ifdef __STDC__
34829 # include <limits.h>
34830 #else
34831 # include <assert.h>
34832 #endif
34833
34834 #undef $ac_func
34835
34836 /* Override any gcc2 internal prototype to avoid an error. */
34837 #ifdef __cplusplus
34838 extern "C"
34839 {
34840 #endif
34841 /* We use char because int might match the return type of a gcc2
34842 builtin and then its argument prototype would still apply. */
34843 char $ac_func ();
34844 /* The GNU C library defines this for functions which it implements
34845 to always fail with ENOSYS. Some functions are actually named
34846 something starting with __ and the normal name is an alias. */
34847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34848 choke me
34849 #else
34850 char (*f) () = $ac_func;
34851 #endif
34852 #ifdef __cplusplus
34853 }
34854 #endif
34855
34856 int
34857 main ()
34858 {
34859 return f != $ac_func;
34860 ;
34861 return 0;
34862 }
34863 _ACEOF
34864 rm -f conftest.$ac_objext conftest$ac_exeext
34865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34866 (eval $ac_link) 2>conftest.er1
34867 ac_status=$?
34868 grep -v '^ *+' conftest.er1 >conftest.err
34869 rm -f conftest.er1
34870 cat conftest.err >&5
34871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34872 (exit $ac_status); } &&
34873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34875 (eval $ac_try) 2>&5
34876 ac_status=$?
34877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34878 (exit $ac_status); }; } &&
34879 { ac_try='test -s conftest$ac_exeext'
34880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34881 (eval $ac_try) 2>&5
34882 ac_status=$?
34883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34884 (exit $ac_status); }; }; then
34885 eval "$as_ac_var=yes"
34886 else
34887 echo "$as_me: failed program was:" >&5
34888 sed 's/^/| /' conftest.$ac_ext >&5
34889
34890 eval "$as_ac_var=no"
34891 fi
34892 rm -f conftest.err conftest.$ac_objext \
34893 conftest$ac_exeext conftest.$ac_ext
34894 fi
34895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34897 if test `eval echo '${'$as_ac_var'}'` = yes; then
34898 cat >>confdefs.h <<_ACEOF
34899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34900 _ACEOF
34901
34902 fi
34903 done
34904
34905
34906
34907
34908 for ac_func in putenv setenv
34909 do
34910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34911 echo "$as_me:$LINENO: checking for $ac_func" >&5
34912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34913 if eval "test \"\${$as_ac_var+set}\" = set"; then
34914 echo $ECHO_N "(cached) $ECHO_C" >&6
34915 else
34916 cat >conftest.$ac_ext <<_ACEOF
34917 /* confdefs.h. */
34918 _ACEOF
34919 cat confdefs.h >>conftest.$ac_ext
34920 cat >>conftest.$ac_ext <<_ACEOF
34921 /* end confdefs.h. */
34922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34924 #define $ac_func innocuous_$ac_func
34925
34926 /* System header to define __stub macros and hopefully few prototypes,
34927 which can conflict with char $ac_func (); below.
34928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34929 <limits.h> exists even on freestanding compilers. */
34930
34931 #ifdef __STDC__
34932 # include <limits.h>
34933 #else
34934 # include <assert.h>
34935 #endif
34936
34937 #undef $ac_func
34938
34939 /* Override any gcc2 internal prototype to avoid an error. */
34940 #ifdef __cplusplus
34941 extern "C"
34942 {
34943 #endif
34944 /* We use char because int might match the return type of a gcc2
34945 builtin and then its argument prototype would still apply. */
34946 char $ac_func ();
34947 /* The GNU C library defines this for functions which it implements
34948 to always fail with ENOSYS. Some functions are actually named
34949 something starting with __ and the normal name is an alias. */
34950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34951 choke me
34952 #else
34953 char (*f) () = $ac_func;
34954 #endif
34955 #ifdef __cplusplus
34956 }
34957 #endif
34958
34959 int
34960 main ()
34961 {
34962 return f != $ac_func;
34963 ;
34964 return 0;
34965 }
34966 _ACEOF
34967 rm -f conftest.$ac_objext conftest$ac_exeext
34968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34969 (eval $ac_link) 2>conftest.er1
34970 ac_status=$?
34971 grep -v '^ *+' conftest.er1 >conftest.err
34972 rm -f conftest.er1
34973 cat conftest.err >&5
34974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975 (exit $ac_status); } &&
34976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34978 (eval $ac_try) 2>&5
34979 ac_status=$?
34980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981 (exit $ac_status); }; } &&
34982 { ac_try='test -s conftest$ac_exeext'
34983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34984 (eval $ac_try) 2>&5
34985 ac_status=$?
34986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987 (exit $ac_status); }; }; then
34988 eval "$as_ac_var=yes"
34989 else
34990 echo "$as_me: failed program was:" >&5
34991 sed 's/^/| /' conftest.$ac_ext >&5
34992
34993 eval "$as_ac_var=no"
34994 fi
34995 rm -f conftest.err conftest.$ac_objext \
34996 conftest$ac_exeext conftest.$ac_ext
34997 fi
34998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35000 if test `eval echo '${'$as_ac_var'}'` = yes; then
35001 cat >>confdefs.h <<_ACEOF
35002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35003 _ACEOF
35004 break
35005 fi
35006 done
35007
35008
35009 HAVE_SOME_SLEEP_FUNC=0
35010 if test "$USE_BEOS" = 1; then
35011 cat >>confdefs.h <<\_ACEOF
35012 #define HAVE_SLEEP 1
35013 _ACEOF
35014
35015 HAVE_SOME_SLEEP_FUNC=1
35016 fi
35017
35018 if test "$USE_DARWIN" = 1; then
35019 cat >>confdefs.h <<\_ACEOF
35020 #define HAVE_USLEEP 1
35021 _ACEOF
35022
35023 HAVE_SOME_SLEEP_FUNC=1
35024 fi
35025
35026 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35027 POSIX4_LINK=
35028
35029 for ac_func in nanosleep
35030 do
35031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35032 echo "$as_me:$LINENO: checking for $ac_func" >&5
35033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35034 if eval "test \"\${$as_ac_var+set}\" = set"; then
35035 echo $ECHO_N "(cached) $ECHO_C" >&6
35036 else
35037 cat >conftest.$ac_ext <<_ACEOF
35038 /* confdefs.h. */
35039 _ACEOF
35040 cat confdefs.h >>conftest.$ac_ext
35041 cat >>conftest.$ac_ext <<_ACEOF
35042 /* end confdefs.h. */
35043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35045 #define $ac_func innocuous_$ac_func
35046
35047 /* System header to define __stub macros and hopefully few prototypes,
35048 which can conflict with char $ac_func (); below.
35049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35050 <limits.h> exists even on freestanding compilers. */
35051
35052 #ifdef __STDC__
35053 # include <limits.h>
35054 #else
35055 # include <assert.h>
35056 #endif
35057
35058 #undef $ac_func
35059
35060 /* Override any gcc2 internal prototype to avoid an error. */
35061 #ifdef __cplusplus
35062 extern "C"
35063 {
35064 #endif
35065 /* We use char because int might match the return type of a gcc2
35066 builtin and then its argument prototype would still apply. */
35067 char $ac_func ();
35068 /* The GNU C library defines this for functions which it implements
35069 to always fail with ENOSYS. Some functions are actually named
35070 something starting with __ and the normal name is an alias. */
35071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35072 choke me
35073 #else
35074 char (*f) () = $ac_func;
35075 #endif
35076 #ifdef __cplusplus
35077 }
35078 #endif
35079
35080 int
35081 main ()
35082 {
35083 return f != $ac_func;
35084 ;
35085 return 0;
35086 }
35087 _ACEOF
35088 rm -f conftest.$ac_objext conftest$ac_exeext
35089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35090 (eval $ac_link) 2>conftest.er1
35091 ac_status=$?
35092 grep -v '^ *+' conftest.er1 >conftest.err
35093 rm -f conftest.er1
35094 cat conftest.err >&5
35095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096 (exit $ac_status); } &&
35097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35099 (eval $ac_try) 2>&5
35100 ac_status=$?
35101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102 (exit $ac_status); }; } &&
35103 { ac_try='test -s conftest$ac_exeext'
35104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35105 (eval $ac_try) 2>&5
35106 ac_status=$?
35107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108 (exit $ac_status); }; }; then
35109 eval "$as_ac_var=yes"
35110 else
35111 echo "$as_me: failed program was:" >&5
35112 sed 's/^/| /' conftest.$ac_ext >&5
35113
35114 eval "$as_ac_var=no"
35115 fi
35116 rm -f conftest.err conftest.$ac_objext \
35117 conftest$ac_exeext conftest.$ac_ext
35118 fi
35119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35121 if test `eval echo '${'$as_ac_var'}'` = yes; then
35122 cat >>confdefs.h <<_ACEOF
35123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35124 _ACEOF
35125 cat >>confdefs.h <<\_ACEOF
35126 #define HAVE_NANOSLEEP 1
35127 _ACEOF
35128
35129 else
35130
35131 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35132 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35133 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35134 echo $ECHO_N "(cached) $ECHO_C" >&6
35135 else
35136 ac_check_lib_save_LIBS=$LIBS
35137 LIBS="-lposix4 $LIBS"
35138 cat >conftest.$ac_ext <<_ACEOF
35139 /* confdefs.h. */
35140 _ACEOF
35141 cat confdefs.h >>conftest.$ac_ext
35142 cat >>conftest.$ac_ext <<_ACEOF
35143 /* end confdefs.h. */
35144
35145 /* Override any gcc2 internal prototype to avoid an error. */
35146 #ifdef __cplusplus
35147 extern "C"
35148 #endif
35149 /* We use char because int might match the return type of a gcc2
35150 builtin and then its argument prototype would still apply. */
35151 char nanosleep ();
35152 int
35153 main ()
35154 {
35155 nanosleep ();
35156 ;
35157 return 0;
35158 }
35159 _ACEOF
35160 rm -f conftest.$ac_objext conftest$ac_exeext
35161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35162 (eval $ac_link) 2>conftest.er1
35163 ac_status=$?
35164 grep -v '^ *+' conftest.er1 >conftest.err
35165 rm -f conftest.er1
35166 cat conftest.err >&5
35167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168 (exit $ac_status); } &&
35169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35171 (eval $ac_try) 2>&5
35172 ac_status=$?
35173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174 (exit $ac_status); }; } &&
35175 { ac_try='test -s conftest$ac_exeext'
35176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35177 (eval $ac_try) 2>&5
35178 ac_status=$?
35179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 (exit $ac_status); }; }; then
35181 ac_cv_lib_posix4_nanosleep=yes
35182 else
35183 echo "$as_me: failed program was:" >&5
35184 sed 's/^/| /' conftest.$ac_ext >&5
35185
35186 ac_cv_lib_posix4_nanosleep=no
35187 fi
35188 rm -f conftest.err conftest.$ac_objext \
35189 conftest$ac_exeext conftest.$ac_ext
35190 LIBS=$ac_check_lib_save_LIBS
35191 fi
35192 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35193 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35194 if test $ac_cv_lib_posix4_nanosleep = yes; then
35195
35196 cat >>confdefs.h <<\_ACEOF
35197 #define HAVE_NANOSLEEP 1
35198 _ACEOF
35199
35200 POSIX4_LINK=" -lposix4"
35201
35202 else
35203
35204
35205 for ac_func in usleep
35206 do
35207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35208 echo "$as_me:$LINENO: checking for $ac_func" >&5
35209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35210 if eval "test \"\${$as_ac_var+set}\" = set"; then
35211 echo $ECHO_N "(cached) $ECHO_C" >&6
35212 else
35213 cat >conftest.$ac_ext <<_ACEOF
35214 /* confdefs.h. */
35215 _ACEOF
35216 cat confdefs.h >>conftest.$ac_ext
35217 cat >>conftest.$ac_ext <<_ACEOF
35218 /* end confdefs.h. */
35219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35221 #define $ac_func innocuous_$ac_func
35222
35223 /* System header to define __stub macros and hopefully few prototypes,
35224 which can conflict with char $ac_func (); below.
35225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35226 <limits.h> exists even on freestanding compilers. */
35227
35228 #ifdef __STDC__
35229 # include <limits.h>
35230 #else
35231 # include <assert.h>
35232 #endif
35233
35234 #undef $ac_func
35235
35236 /* Override any gcc2 internal prototype to avoid an error. */
35237 #ifdef __cplusplus
35238 extern "C"
35239 {
35240 #endif
35241 /* We use char because int might match the return type of a gcc2
35242 builtin and then its argument prototype would still apply. */
35243 char $ac_func ();
35244 /* The GNU C library defines this for functions which it implements
35245 to always fail with ENOSYS. Some functions are actually named
35246 something starting with __ and the normal name is an alias. */
35247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35248 choke me
35249 #else
35250 char (*f) () = $ac_func;
35251 #endif
35252 #ifdef __cplusplus
35253 }
35254 #endif
35255
35256 int
35257 main ()
35258 {
35259 return f != $ac_func;
35260 ;
35261 return 0;
35262 }
35263 _ACEOF
35264 rm -f conftest.$ac_objext conftest$ac_exeext
35265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35266 (eval $ac_link) 2>conftest.er1
35267 ac_status=$?
35268 grep -v '^ *+' conftest.er1 >conftest.err
35269 rm -f conftest.er1
35270 cat conftest.err >&5
35271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272 (exit $ac_status); } &&
35273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35275 (eval $ac_try) 2>&5
35276 ac_status=$?
35277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278 (exit $ac_status); }; } &&
35279 { ac_try='test -s conftest$ac_exeext'
35280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35281 (eval $ac_try) 2>&5
35282 ac_status=$?
35283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284 (exit $ac_status); }; }; then
35285 eval "$as_ac_var=yes"
35286 else
35287 echo "$as_me: failed program was:" >&5
35288 sed 's/^/| /' conftest.$ac_ext >&5
35289
35290 eval "$as_ac_var=no"
35291 fi
35292 rm -f conftest.err conftest.$ac_objext \
35293 conftest$ac_exeext conftest.$ac_ext
35294 fi
35295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35297 if test `eval echo '${'$as_ac_var'}'` = yes; then
35298 cat >>confdefs.h <<_ACEOF
35299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35300 _ACEOF
35301 cat >>confdefs.h <<\_ACEOF
35302 #define HAVE_USLEEP 1
35303 _ACEOF
35304
35305 else
35306 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35307 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35308
35309 fi
35310 done
35311
35312
35313
35314 fi
35315
35316
35317
35318 fi
35319 done
35320
35321 fi
35322
35323
35324
35325 for ac_func in uname gethostname
35326 do
35327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35328 echo "$as_me:$LINENO: checking for $ac_func" >&5
35329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35330 if eval "test \"\${$as_ac_var+set}\" = set"; then
35331 echo $ECHO_N "(cached) $ECHO_C" >&6
35332 else
35333 cat >conftest.$ac_ext <<_ACEOF
35334 /* confdefs.h. */
35335 _ACEOF
35336 cat confdefs.h >>conftest.$ac_ext
35337 cat >>conftest.$ac_ext <<_ACEOF
35338 /* end confdefs.h. */
35339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35341 #define $ac_func innocuous_$ac_func
35342
35343 /* System header to define __stub macros and hopefully few prototypes,
35344 which can conflict with char $ac_func (); below.
35345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35346 <limits.h> exists even on freestanding compilers. */
35347
35348 #ifdef __STDC__
35349 # include <limits.h>
35350 #else
35351 # include <assert.h>
35352 #endif
35353
35354 #undef $ac_func
35355
35356 /* Override any gcc2 internal prototype to avoid an error. */
35357 #ifdef __cplusplus
35358 extern "C"
35359 {
35360 #endif
35361 /* We use char because int might match the return type of a gcc2
35362 builtin and then its argument prototype would still apply. */
35363 char $ac_func ();
35364 /* The GNU C library defines this for functions which it implements
35365 to always fail with ENOSYS. Some functions are actually named
35366 something starting with __ and the normal name is an alias. */
35367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35368 choke me
35369 #else
35370 char (*f) () = $ac_func;
35371 #endif
35372 #ifdef __cplusplus
35373 }
35374 #endif
35375
35376 int
35377 main ()
35378 {
35379 return f != $ac_func;
35380 ;
35381 return 0;
35382 }
35383 _ACEOF
35384 rm -f conftest.$ac_objext conftest$ac_exeext
35385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35386 (eval $ac_link) 2>conftest.er1
35387 ac_status=$?
35388 grep -v '^ *+' conftest.er1 >conftest.err
35389 rm -f conftest.er1
35390 cat conftest.err >&5
35391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35392 (exit $ac_status); } &&
35393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35395 (eval $ac_try) 2>&5
35396 ac_status=$?
35397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398 (exit $ac_status); }; } &&
35399 { ac_try='test -s conftest$ac_exeext'
35400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35401 (eval $ac_try) 2>&5
35402 ac_status=$?
35403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35404 (exit $ac_status); }; }; then
35405 eval "$as_ac_var=yes"
35406 else
35407 echo "$as_me: failed program was:" >&5
35408 sed 's/^/| /' conftest.$ac_ext >&5
35409
35410 eval "$as_ac_var=no"
35411 fi
35412 rm -f conftest.err conftest.$ac_objext \
35413 conftest$ac_exeext conftest.$ac_ext
35414 fi
35415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35417 if test `eval echo '${'$as_ac_var'}'` = yes; then
35418 cat >>confdefs.h <<_ACEOF
35419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35420 _ACEOF
35421 break
35422 fi
35423 done
35424
35425
35426
35427
35428 ac_ext=cc
35429 ac_cpp='$CXXCPP $CPPFLAGS'
35430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35433
35434
35435
35436 for ac_func in strtok_r
35437 do
35438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35439 echo "$as_me:$LINENO: checking for $ac_func" >&5
35440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35441 if eval "test \"\${$as_ac_var+set}\" = set"; then
35442 echo $ECHO_N "(cached) $ECHO_C" >&6
35443 else
35444 cat >conftest.$ac_ext <<_ACEOF
35445 /* confdefs.h. */
35446 _ACEOF
35447 cat confdefs.h >>conftest.$ac_ext
35448 cat >>conftest.$ac_ext <<_ACEOF
35449 /* end confdefs.h. */
35450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35452 #define $ac_func innocuous_$ac_func
35453
35454 /* System header to define __stub macros and hopefully few prototypes,
35455 which can conflict with char $ac_func (); below.
35456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35457 <limits.h> exists even on freestanding compilers. */
35458
35459 #ifdef __STDC__
35460 # include <limits.h>
35461 #else
35462 # include <assert.h>
35463 #endif
35464
35465 #undef $ac_func
35466
35467 /* Override any gcc2 internal prototype to avoid an error. */
35468 #ifdef __cplusplus
35469 extern "C"
35470 {
35471 #endif
35472 /* We use char because int might match the return type of a gcc2
35473 builtin and then its argument prototype would still apply. */
35474 char $ac_func ();
35475 /* The GNU C library defines this for functions which it implements
35476 to always fail with ENOSYS. Some functions are actually named
35477 something starting with __ and the normal name is an alias. */
35478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35479 choke me
35480 #else
35481 char (*f) () = $ac_func;
35482 #endif
35483 #ifdef __cplusplus
35484 }
35485 #endif
35486
35487 int
35488 main ()
35489 {
35490 return f != $ac_func;
35491 ;
35492 return 0;
35493 }
35494 _ACEOF
35495 rm -f conftest.$ac_objext conftest$ac_exeext
35496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35497 (eval $ac_link) 2>conftest.er1
35498 ac_status=$?
35499 grep -v '^ *+' conftest.er1 >conftest.err
35500 rm -f conftest.er1
35501 cat conftest.err >&5
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); } &&
35504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35506 (eval $ac_try) 2>&5
35507 ac_status=$?
35508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509 (exit $ac_status); }; } &&
35510 { ac_try='test -s conftest$ac_exeext'
35511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35512 (eval $ac_try) 2>&5
35513 ac_status=$?
35514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35515 (exit $ac_status); }; }; then
35516 eval "$as_ac_var=yes"
35517 else
35518 echo "$as_me: failed program was:" >&5
35519 sed 's/^/| /' conftest.$ac_ext >&5
35520
35521 eval "$as_ac_var=no"
35522 fi
35523 rm -f conftest.err conftest.$ac_objext \
35524 conftest$ac_exeext conftest.$ac_ext
35525 fi
35526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35528 if test `eval echo '${'$as_ac_var'}'` = yes; then
35529 cat >>confdefs.h <<_ACEOF
35530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35531 _ACEOF
35532
35533 fi
35534 done
35535
35536
35537 ac_ext=c
35538 ac_cpp='$CPP $CPPFLAGS'
35539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35542
35543
35544 INET_LINK=
35545
35546 for ac_func in inet_addr
35547 do
35548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35549 echo "$as_me:$LINENO: checking for $ac_func" >&5
35550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35551 if eval "test \"\${$as_ac_var+set}\" = set"; then
35552 echo $ECHO_N "(cached) $ECHO_C" >&6
35553 else
35554 cat >conftest.$ac_ext <<_ACEOF
35555 /* confdefs.h. */
35556 _ACEOF
35557 cat confdefs.h >>conftest.$ac_ext
35558 cat >>conftest.$ac_ext <<_ACEOF
35559 /* end confdefs.h. */
35560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35562 #define $ac_func innocuous_$ac_func
35563
35564 /* System header to define __stub macros and hopefully few prototypes,
35565 which can conflict with char $ac_func (); below.
35566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35567 <limits.h> exists even on freestanding compilers. */
35568
35569 #ifdef __STDC__
35570 # include <limits.h>
35571 #else
35572 # include <assert.h>
35573 #endif
35574
35575 #undef $ac_func
35576
35577 /* Override any gcc2 internal prototype to avoid an error. */
35578 #ifdef __cplusplus
35579 extern "C"
35580 {
35581 #endif
35582 /* We use char because int might match the return type of a gcc2
35583 builtin and then its argument prototype would still apply. */
35584 char $ac_func ();
35585 /* The GNU C library defines this for functions which it implements
35586 to always fail with ENOSYS. Some functions are actually named
35587 something starting with __ and the normal name is an alias. */
35588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35589 choke me
35590 #else
35591 char (*f) () = $ac_func;
35592 #endif
35593 #ifdef __cplusplus
35594 }
35595 #endif
35596
35597 int
35598 main ()
35599 {
35600 return f != $ac_func;
35601 ;
35602 return 0;
35603 }
35604 _ACEOF
35605 rm -f conftest.$ac_objext conftest$ac_exeext
35606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35607 (eval $ac_link) 2>conftest.er1
35608 ac_status=$?
35609 grep -v '^ *+' conftest.er1 >conftest.err
35610 rm -f conftest.er1
35611 cat conftest.err >&5
35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613 (exit $ac_status); } &&
35614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35616 (eval $ac_try) 2>&5
35617 ac_status=$?
35618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35619 (exit $ac_status); }; } &&
35620 { ac_try='test -s conftest$ac_exeext'
35621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35622 (eval $ac_try) 2>&5
35623 ac_status=$?
35624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625 (exit $ac_status); }; }; then
35626 eval "$as_ac_var=yes"
35627 else
35628 echo "$as_me: failed program was:" >&5
35629 sed 's/^/| /' conftest.$ac_ext >&5
35630
35631 eval "$as_ac_var=no"
35632 fi
35633 rm -f conftest.err conftest.$ac_objext \
35634 conftest$ac_exeext conftest.$ac_ext
35635 fi
35636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35638 if test `eval echo '${'$as_ac_var'}'` = yes; then
35639 cat >>confdefs.h <<_ACEOF
35640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35641 _ACEOF
35642 cat >>confdefs.h <<\_ACEOF
35643 #define HAVE_INET_ADDR 1
35644 _ACEOF
35645
35646 else
35647
35648 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35649 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35650 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35651 echo $ECHO_N "(cached) $ECHO_C" >&6
35652 else
35653 ac_check_lib_save_LIBS=$LIBS
35654 LIBS="-lnsl $LIBS"
35655 cat >conftest.$ac_ext <<_ACEOF
35656 /* confdefs.h. */
35657 _ACEOF
35658 cat confdefs.h >>conftest.$ac_ext
35659 cat >>conftest.$ac_ext <<_ACEOF
35660 /* end confdefs.h. */
35661
35662 /* Override any gcc2 internal prototype to avoid an error. */
35663 #ifdef __cplusplus
35664 extern "C"
35665 #endif
35666 /* We use char because int might match the return type of a gcc2
35667 builtin and then its argument prototype would still apply. */
35668 char inet_addr ();
35669 int
35670 main ()
35671 {
35672 inet_addr ();
35673 ;
35674 return 0;
35675 }
35676 _ACEOF
35677 rm -f conftest.$ac_objext conftest$ac_exeext
35678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35679 (eval $ac_link) 2>conftest.er1
35680 ac_status=$?
35681 grep -v '^ *+' conftest.er1 >conftest.err
35682 rm -f conftest.er1
35683 cat conftest.err >&5
35684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 (exit $ac_status); } &&
35686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688 (eval $ac_try) 2>&5
35689 ac_status=$?
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); }; } &&
35692 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
35698 ac_cv_lib_nsl_inet_addr=yes
35699 else
35700 echo "$as_me: failed program was:" >&5
35701 sed 's/^/| /' conftest.$ac_ext >&5
35702
35703 ac_cv_lib_nsl_inet_addr=no
35704 fi
35705 rm -f conftest.err conftest.$ac_objext \
35706 conftest$ac_exeext conftest.$ac_ext
35707 LIBS=$ac_check_lib_save_LIBS
35708 fi
35709 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35710 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35711 if test $ac_cv_lib_nsl_inet_addr = yes; then
35712 INET_LINK="nsl"
35713 else
35714
35715 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35716 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35717 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35718 echo $ECHO_N "(cached) $ECHO_C" >&6
35719 else
35720 ac_check_lib_save_LIBS=$LIBS
35721 LIBS="-lresolv $LIBS"
35722 cat >conftest.$ac_ext <<_ACEOF
35723 /* confdefs.h. */
35724 _ACEOF
35725 cat confdefs.h >>conftest.$ac_ext
35726 cat >>conftest.$ac_ext <<_ACEOF
35727 /* end confdefs.h. */
35728
35729 /* Override any gcc2 internal prototype to avoid an error. */
35730 #ifdef __cplusplus
35731 extern "C"
35732 #endif
35733 /* We use char because int might match the return type of a gcc2
35734 builtin and then its argument prototype would still apply. */
35735 char inet_addr ();
35736 int
35737 main ()
35738 {
35739 inet_addr ();
35740 ;
35741 return 0;
35742 }
35743 _ACEOF
35744 rm -f conftest.$ac_objext conftest$ac_exeext
35745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35746 (eval $ac_link) 2>conftest.er1
35747 ac_status=$?
35748 grep -v '^ *+' conftest.er1 >conftest.err
35749 rm -f conftest.er1
35750 cat conftest.err >&5
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); } &&
35753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35755 (eval $ac_try) 2>&5
35756 ac_status=$?
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); }; } &&
35759 { ac_try='test -s conftest$ac_exeext'
35760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35761 (eval $ac_try) 2>&5
35762 ac_status=$?
35763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764 (exit $ac_status); }; }; then
35765 ac_cv_lib_resolv_inet_addr=yes
35766 else
35767 echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35769
35770 ac_cv_lib_resolv_inet_addr=no
35771 fi
35772 rm -f conftest.err conftest.$ac_objext \
35773 conftest$ac_exeext conftest.$ac_ext
35774 LIBS=$ac_check_lib_save_LIBS
35775 fi
35776 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35777 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35778 if test $ac_cv_lib_resolv_inet_addr = yes; then
35779 INET_LINK="resolv"
35780 else
35781
35782 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35783 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35784 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35785 echo $ECHO_N "(cached) $ECHO_C" >&6
35786 else
35787 ac_check_lib_save_LIBS=$LIBS
35788 LIBS="-lsocket $LIBS"
35789 cat >conftest.$ac_ext <<_ACEOF
35790 /* confdefs.h. */
35791 _ACEOF
35792 cat confdefs.h >>conftest.$ac_ext
35793 cat >>conftest.$ac_ext <<_ACEOF
35794 /* end confdefs.h. */
35795
35796 /* Override any gcc2 internal prototype to avoid an error. */
35797 #ifdef __cplusplus
35798 extern "C"
35799 #endif
35800 /* We use char because int might match the return type of a gcc2
35801 builtin and then its argument prototype would still apply. */
35802 char inet_addr ();
35803 int
35804 main ()
35805 {
35806 inet_addr ();
35807 ;
35808 return 0;
35809 }
35810 _ACEOF
35811 rm -f conftest.$ac_objext conftest$ac_exeext
35812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35813 (eval $ac_link) 2>conftest.er1
35814 ac_status=$?
35815 grep -v '^ *+' conftest.er1 >conftest.err
35816 rm -f conftest.er1
35817 cat conftest.err >&5
35818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35819 (exit $ac_status); } &&
35820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35822 (eval $ac_try) 2>&5
35823 ac_status=$?
35824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825 (exit $ac_status); }; } &&
35826 { ac_try='test -s conftest$ac_exeext'
35827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35828 (eval $ac_try) 2>&5
35829 ac_status=$?
35830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35831 (exit $ac_status); }; }; then
35832 ac_cv_lib_socket_inet_addr=yes
35833 else
35834 echo "$as_me: failed program was:" >&5
35835 sed 's/^/| /' conftest.$ac_ext >&5
35836
35837 ac_cv_lib_socket_inet_addr=no
35838 fi
35839 rm -f conftest.err conftest.$ac_objext \
35840 conftest$ac_exeext conftest.$ac_ext
35841 LIBS=$ac_check_lib_save_LIBS
35842 fi
35843 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35844 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35845 if test $ac_cv_lib_socket_inet_addr = yes; then
35846 INET_LINK="socket"
35847
35848 fi
35849
35850
35851
35852 fi
35853
35854
35855
35856 fi
35857
35858
35859
35860 fi
35861 done
35862
35863
35864
35865 for ac_func in inet_aton
35866 do
35867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35868 echo "$as_me:$LINENO: checking for $ac_func" >&5
35869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35870 if eval "test \"\${$as_ac_var+set}\" = set"; then
35871 echo $ECHO_N "(cached) $ECHO_C" >&6
35872 else
35873 cat >conftest.$ac_ext <<_ACEOF
35874 /* confdefs.h. */
35875 _ACEOF
35876 cat confdefs.h >>conftest.$ac_ext
35877 cat >>conftest.$ac_ext <<_ACEOF
35878 /* end confdefs.h. */
35879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35881 #define $ac_func innocuous_$ac_func
35882
35883 /* System header to define __stub macros and hopefully few prototypes,
35884 which can conflict with char $ac_func (); below.
35885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35886 <limits.h> exists even on freestanding compilers. */
35887
35888 #ifdef __STDC__
35889 # include <limits.h>
35890 #else
35891 # include <assert.h>
35892 #endif
35893
35894 #undef $ac_func
35895
35896 /* Override any gcc2 internal prototype to avoid an error. */
35897 #ifdef __cplusplus
35898 extern "C"
35899 {
35900 #endif
35901 /* We use char because int might match the return type of a gcc2
35902 builtin and then its argument prototype would still apply. */
35903 char $ac_func ();
35904 /* The GNU C library defines this for functions which it implements
35905 to always fail with ENOSYS. Some functions are actually named
35906 something starting with __ and the normal name is an alias. */
35907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35908 choke me
35909 #else
35910 char (*f) () = $ac_func;
35911 #endif
35912 #ifdef __cplusplus
35913 }
35914 #endif
35915
35916 int
35917 main ()
35918 {
35919 return f != $ac_func;
35920 ;
35921 return 0;
35922 }
35923 _ACEOF
35924 rm -f conftest.$ac_objext conftest$ac_exeext
35925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35926 (eval $ac_link) 2>conftest.er1
35927 ac_status=$?
35928 grep -v '^ *+' conftest.er1 >conftest.err
35929 rm -f conftest.er1
35930 cat conftest.err >&5
35931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932 (exit $ac_status); } &&
35933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35935 (eval $ac_try) 2>&5
35936 ac_status=$?
35937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938 (exit $ac_status); }; } &&
35939 { ac_try='test -s conftest$ac_exeext'
35940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35941 (eval $ac_try) 2>&5
35942 ac_status=$?
35943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35944 (exit $ac_status); }; }; then
35945 eval "$as_ac_var=yes"
35946 else
35947 echo "$as_me: failed program was:" >&5
35948 sed 's/^/| /' conftest.$ac_ext >&5
35949
35950 eval "$as_ac_var=no"
35951 fi
35952 rm -f conftest.err conftest.$ac_objext \
35953 conftest$ac_exeext conftest.$ac_ext
35954 fi
35955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35957 if test `eval echo '${'$as_ac_var'}'` = yes; then
35958 cat >>confdefs.h <<_ACEOF
35959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35960 _ACEOF
35961 cat >>confdefs.h <<\_ACEOF
35962 #define HAVE_INET_ATON 1
35963 _ACEOF
35964
35965 else
35966
35967 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
35968 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
35969 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
35970 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
35971 echo $ECHO_N "(cached) $ECHO_C" >&6
35972 else
35973 ac_check_lib_save_LIBS=$LIBS
35974 LIBS="-l$INET_LINK $LIBS"
35975 cat >conftest.$ac_ext <<_ACEOF
35976 /* confdefs.h. */
35977 _ACEOF
35978 cat confdefs.h >>conftest.$ac_ext
35979 cat >>conftest.$ac_ext <<_ACEOF
35980 /* end confdefs.h. */
35981
35982 /* Override any gcc2 internal prototype to avoid an error. */
35983 #ifdef __cplusplus
35984 extern "C"
35985 #endif
35986 /* We use char because int might match the return type of a gcc2
35987 builtin and then its argument prototype would still apply. */
35988 char inet_aton ();
35989 int
35990 main ()
35991 {
35992 inet_aton ();
35993 ;
35994 return 0;
35995 }
35996 _ACEOF
35997 rm -f conftest.$ac_objext conftest$ac_exeext
35998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35999 (eval $ac_link) 2>conftest.er1
36000 ac_status=$?
36001 grep -v '^ *+' conftest.er1 >conftest.err
36002 rm -f conftest.er1
36003 cat conftest.err >&5
36004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36005 (exit $ac_status); } &&
36006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36008 (eval $ac_try) 2>&5
36009 ac_status=$?
36010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36011 (exit $ac_status); }; } &&
36012 { ac_try='test -s conftest$ac_exeext'
36013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36014 (eval $ac_try) 2>&5
36015 ac_status=$?
36016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36017 (exit $ac_status); }; }; then
36018 eval "$as_ac_Lib=yes"
36019 else
36020 echo "$as_me: failed program was:" >&5
36021 sed 's/^/| /' conftest.$ac_ext >&5
36022
36023 eval "$as_ac_Lib=no"
36024 fi
36025 rm -f conftest.err conftest.$ac_objext \
36026 conftest$ac_exeext conftest.$ac_ext
36027 LIBS=$ac_check_lib_save_LIBS
36028 fi
36029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36030 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36031 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36032 cat >>confdefs.h <<\_ACEOF
36033 #define HAVE_INET_ATON 1
36034 _ACEOF
36035
36036 fi
36037
36038
36039 fi
36040 done
36041
36042
36043 if test "x$INET_LINK" != "x"; then
36044 cat >>confdefs.h <<\_ACEOF
36045 #define HAVE_INET_ADDR 1
36046 _ACEOF
36047
36048 INET_LINK=" -l$INET_LINK"
36049 fi
36050
36051 fi
36052
36053
36054
36055 EXTRALIBS_ESD=
36056 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36057 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36058 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36059 echo $ECHO_N "(cached) $ECHO_C" >&6
36060 else
36061 ac_check_lib_save_LIBS=$LIBS
36062 LIBS="-lesd $LIBS"
36063 cat >conftest.$ac_ext <<_ACEOF
36064 /* confdefs.h. */
36065 _ACEOF
36066 cat confdefs.h >>conftest.$ac_ext
36067 cat >>conftest.$ac_ext <<_ACEOF
36068 /* end confdefs.h. */
36069
36070 /* Override any gcc2 internal prototype to avoid an error. */
36071 #ifdef __cplusplus
36072 extern "C"
36073 #endif
36074 /* We use char because int might match the return type of a gcc2
36075 builtin and then its argument prototype would still apply. */
36076 char esd_close ();
36077 int
36078 main ()
36079 {
36080 esd_close ();
36081 ;
36082 return 0;
36083 }
36084 _ACEOF
36085 rm -f conftest.$ac_objext conftest$ac_exeext
36086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36087 (eval $ac_link) 2>conftest.er1
36088 ac_status=$?
36089 grep -v '^ *+' conftest.er1 >conftest.err
36090 rm -f conftest.er1
36091 cat conftest.err >&5
36092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093 (exit $ac_status); } &&
36094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36096 (eval $ac_try) 2>&5
36097 ac_status=$?
36098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099 (exit $ac_status); }; } &&
36100 { ac_try='test -s conftest$ac_exeext'
36101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36102 (eval $ac_try) 2>&5
36103 ac_status=$?
36104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36105 (exit $ac_status); }; }; then
36106 ac_cv_lib_esd_esd_close=yes
36107 else
36108 echo "$as_me: failed program was:" >&5
36109 sed 's/^/| /' conftest.$ac_ext >&5
36110
36111 ac_cv_lib_esd_esd_close=no
36112 fi
36113 rm -f conftest.err conftest.$ac_objext \
36114 conftest$ac_exeext conftest.$ac_ext
36115 LIBS=$ac_check_lib_save_LIBS
36116 fi
36117 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36118 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36119 if test $ac_cv_lib_esd_esd_close = yes; then
36120
36121
36122 for ac_header in esd.h
36123 do
36124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36126 echo "$as_me:$LINENO: checking for $ac_header" >&5
36127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36129 echo $ECHO_N "(cached) $ECHO_C" >&6
36130 fi
36131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36133 else
36134 # Is the header compilable?
36135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36137 cat >conftest.$ac_ext <<_ACEOF
36138 /* confdefs.h. */
36139 _ACEOF
36140 cat confdefs.h >>conftest.$ac_ext
36141 cat >>conftest.$ac_ext <<_ACEOF
36142 /* end confdefs.h. */
36143 $ac_includes_default
36144 #include <$ac_header>
36145 _ACEOF
36146 rm -f conftest.$ac_objext
36147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36148 (eval $ac_compile) 2>conftest.er1
36149 ac_status=$?
36150 grep -v '^ *+' conftest.er1 >conftest.err
36151 rm -f conftest.er1
36152 cat conftest.err >&5
36153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36154 (exit $ac_status); } &&
36155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36157 (eval $ac_try) 2>&5
36158 ac_status=$?
36159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); }; } &&
36161 { ac_try='test -s conftest.$ac_objext'
36162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36163 (eval $ac_try) 2>&5
36164 ac_status=$?
36165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166 (exit $ac_status); }; }; then
36167 ac_header_compiler=yes
36168 else
36169 echo "$as_me: failed program was:" >&5
36170 sed 's/^/| /' conftest.$ac_ext >&5
36171
36172 ac_header_compiler=no
36173 fi
36174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36176 echo "${ECHO_T}$ac_header_compiler" >&6
36177
36178 # Is the header present?
36179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36181 cat >conftest.$ac_ext <<_ACEOF
36182 /* confdefs.h. */
36183 _ACEOF
36184 cat confdefs.h >>conftest.$ac_ext
36185 cat >>conftest.$ac_ext <<_ACEOF
36186 /* end confdefs.h. */
36187 #include <$ac_header>
36188 _ACEOF
36189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36191 ac_status=$?
36192 grep -v '^ *+' conftest.er1 >conftest.err
36193 rm -f conftest.er1
36194 cat conftest.err >&5
36195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 (exit $ac_status); } >/dev/null; then
36197 if test -s conftest.err; then
36198 ac_cpp_err=$ac_c_preproc_warn_flag
36199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36200 else
36201 ac_cpp_err=
36202 fi
36203 else
36204 ac_cpp_err=yes
36205 fi
36206 if test -z "$ac_cpp_err"; then
36207 ac_header_preproc=yes
36208 else
36209 echo "$as_me: failed program was:" >&5
36210 sed 's/^/| /' conftest.$ac_ext >&5
36211
36212 ac_header_preproc=no
36213 fi
36214 rm -f conftest.err conftest.$ac_ext
36215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36216 echo "${ECHO_T}$ac_header_preproc" >&6
36217
36218 # So? What about this header?
36219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36220 yes:no: )
36221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36225 ac_header_preproc=yes
36226 ;;
36227 no:yes:* )
36228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36240 (
36241 cat <<\_ASBOX
36242 ## ----------------------------------------- ##
36243 ## Report this to wx-dev@lists.wxwidgets.org ##
36244 ## ----------------------------------------- ##
36245 _ASBOX
36246 ) |
36247 sed "s/^/$as_me: WARNING: /" >&2
36248 ;;
36249 esac
36250 echo "$as_me:$LINENO: checking for $ac_header" >&5
36251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36253 echo $ECHO_N "(cached) $ECHO_C" >&6
36254 else
36255 eval "$as_ac_Header=\$ac_header_preproc"
36256 fi
36257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36259
36260 fi
36261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36262 cat >>confdefs.h <<_ACEOF
36263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36264 _ACEOF
36265
36266 EXTRALIBS_ESD="-lesd"
36267
36268 fi
36269
36270 done
36271
36272
36273 fi
36274
36275
36276
36277 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36278 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36279 cat >conftest.$ac_ext <<_ACEOF
36280 /* confdefs.h. */
36281 _ACEOF
36282 cat confdefs.h >>conftest.$ac_ext
36283 cat >>conftest.$ac_ext <<_ACEOF
36284 /* end confdefs.h. */
36285 #ifdef __linux__
36286 #include <linux/cdrom.h>
36287 #else
36288 /* For Solaris */
36289 #include <sys/cdio.h>
36290 #endif
36291
36292 int
36293 main ()
36294 {
36295 struct cdrom_tocentry entry, old_entry;
36296 ;
36297 return 0;
36298 }
36299 _ACEOF
36300 rm -f conftest.$ac_objext
36301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36302 (eval $ac_compile) 2>conftest.er1
36303 ac_status=$?
36304 grep -v '^ *+' conftest.er1 >conftest.err
36305 rm -f conftest.er1
36306 cat conftest.err >&5
36307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308 (exit $ac_status); } &&
36309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36311 (eval $ac_try) 2>&5
36312 ac_status=$?
36313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314 (exit $ac_status); }; } &&
36315 { ac_try='test -s conftest.$ac_objext'
36316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36317 (eval $ac_try) 2>&5
36318 ac_status=$?
36319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320 (exit $ac_status); }; }; then
36321 echo "$as_me:$LINENO: result: yes" >&5
36322 echo "${ECHO_T}yes" >&6
36323 cat >>confdefs.h <<\_ACEOF
36324 #define HAVE_KNOWN_CDROM_INTERFACE 1
36325 _ACEOF
36326
36327 else
36328 echo "$as_me: failed program was:" >&5
36329 sed 's/^/| /' conftest.$ac_ext >&5
36330
36331 echo "$as_me:$LINENO: result: no" >&5
36332 echo "${ECHO_T}no" >&6
36333 fi
36334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36335
36336
36337 cat >confcache <<\_ACEOF
36338 # This file is a shell script that caches the results of configure
36339 # tests run on this system so they can be shared between configure
36340 # scripts and configure runs, see configure's option --config-cache.
36341 # It is not useful on other systems. If it contains results you don't
36342 # want to keep, you may remove or edit it.
36343 #
36344 # config.status only pays attention to the cache file if you give it
36345 # the --recheck option to rerun configure.
36346 #
36347 # `ac_cv_env_foo' variables (set or unset) will be overridden when
36348 # loading this file, other *unset* `ac_cv_foo' will be assigned the
36349 # following values.
36350
36351 _ACEOF
36352
36353 # The following way of writing the cache mishandles newlines in values,
36354 # but we know of no workaround that is simple, portable, and efficient.
36355 # So, don't put newlines in cache variables' values.
36356 # Ultrix sh set writes to stderr and can't be redirected directly,
36357 # and sets the high bit in the cache file unless we assign to the vars.
36358 {
36359 (set) 2>&1 |
36360 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36361 *ac_space=\ *)
36362 # `set' does not quote correctly, so add quotes (double-quote
36363 # substitution turns \\\\ into \\, and sed turns \\ into \).
36364 sed -n \
36365 "s/'/'\\\\''/g;
36366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36367 ;;
36368 *)
36369 # `set' quotes correctly as required by POSIX, so do not add quotes.
36370 sed -n \
36371 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
36372 ;;
36373 esac;
36374 } |
36375 sed '
36376 t clear
36377 : clear
36378 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36379 t end
36380 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36381 : end' >>confcache
36382 if diff $cache_file confcache >/dev/null 2>&1; then :; else
36383 if test -w $cache_file; then
36384 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36385 cat confcache >$cache_file
36386 else
36387 echo "not updating unwritable cache $cache_file"
36388 fi
36389 fi
36390 rm -f confcache
36391
36392
36393 CPP_MT_FLAG=
36394 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36395
36396
36397 THREADS_LINK=
36398 THREADS_CFLAGS=
36399
36400 if test "$wxUSE_THREADS" = "yes" ; then
36401 if test "$USE_BEOS" = 1; then
36402 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36403 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36404 wxUSE_THREADS="no"
36405 fi
36406 fi
36407
36408 if test "$wxUSE_THREADS" = "yes" ; then
36409
36410
36411 THREAD_OPTS="-pthread"
36412 case "${host}" in
36413 *-*-solaris2* | *-*-sunos4* )
36414 if test "x$GCC" = "xyes"; then
36415 THREAD_OPTS="-pthreads $THREAD_OPTS"
36416 else
36417 THREAD_OPTS="-mt $THREAD_OPTS"
36418 fi
36419 ;;
36420 *-*-freebsd*)
36421 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36422 ;;
36423 *-*-darwin* | *-*-cygwin* )
36424 THREAD_OPTS=""
36425 ;;
36426 *-*-aix*)
36427 THREAD_OPTS="pthreads"
36428 ;;
36429 *-hp-hpux* )
36430 if test "x$GCC" = "xyes"; then
36431 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36432 THREAD_OPTS=""
36433 else
36434 THREAD_OPTS="-mt"
36435 fi
36436 ;;
36437
36438 *-*-irix* )
36439 if test "x$GCC" = "xyes"; then
36440 THREAD_OPTS=""
36441 fi
36442 ;;
36443
36444 *-*-*UnixWare*)
36445 if test "x$GCC" != "xyes"; then
36446 THREAD_OPTS="-Ethread"
36447 fi
36448 ;;
36449 esac
36450
36451 THREAD_OPTS="$THREAD_OPTS pthread none"
36452
36453 THREADS_OK=no
36454 for flag in $THREAD_OPTS; do
36455 case $flag in
36456 none)
36457 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36458 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36459 ;;
36460
36461 -*)
36462 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36463 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36464 THREADS_CFLAGS="$flag"
36465 ;;
36466
36467 *)
36468 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36469 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36470 THREADS_LINK="-l$flag"
36471 ;;
36472 esac
36473
36474 save_LIBS="$LIBS"
36475 save_CFLAGS="$CFLAGS"
36476 LIBS="$THREADS_LINK $LIBS"
36477 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36478
36479 cat >conftest.$ac_ext <<_ACEOF
36480 /* confdefs.h. */
36481 _ACEOF
36482 cat confdefs.h >>conftest.$ac_ext
36483 cat >>conftest.$ac_ext <<_ACEOF
36484 /* end confdefs.h. */
36485 #include <pthread.h>
36486 int
36487 main ()
36488 {
36489 pthread_create(0,0,0,0);
36490 ;
36491 return 0;
36492 }
36493 _ACEOF
36494 rm -f conftest.$ac_objext conftest$ac_exeext
36495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36496 (eval $ac_link) 2>conftest.er1
36497 ac_status=$?
36498 grep -v '^ *+' conftest.er1 >conftest.err
36499 rm -f conftest.er1
36500 cat conftest.err >&5
36501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36502 (exit $ac_status); } &&
36503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36505 (eval $ac_try) 2>&5
36506 ac_status=$?
36507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36508 (exit $ac_status); }; } &&
36509 { ac_try='test -s conftest$ac_exeext'
36510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36511 (eval $ac_try) 2>&5
36512 ac_status=$?
36513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514 (exit $ac_status); }; }; then
36515 THREADS_OK=yes
36516 else
36517 echo "$as_me: failed program was:" >&5
36518 sed 's/^/| /' conftest.$ac_ext >&5
36519
36520 fi
36521 rm -f conftest.err conftest.$ac_objext \
36522 conftest$ac_exeext conftest.$ac_ext
36523
36524 LIBS="$save_LIBS"
36525 CFLAGS="$save_CFLAGS"
36526
36527 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36528 echo "${ECHO_T}$THREADS_OK" >&6
36529 if test "x$THREADS_OK" = "xyes"; then
36530 break;
36531 fi
36532
36533 THREADS_LINK=""
36534 THREADS_CFLAGS=""
36535 done
36536
36537 if test "x$THREADS_OK" != "xyes"; then
36538 wxUSE_THREADS=no
36539 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36540 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36541 else
36542 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36543 LIBS="$THREADS_LINK $LIBS"
36544
36545 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36546 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36547 flag=no
36548 case "${host}" in
36549 *-aix*)
36550 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
36551 flag="-D_THREAD_SAFE"
36552 ;;
36553 *-freebsd*)
36554 flag="-D_THREAD_SAFE"
36555 ;;
36556 *-hp-hpux* )
36557 flag="-D_REENTRANT"
36558 if test "x$GCC" != "xyes"; then
36559 flag="$flag -D_RWSTD_MULTI_THREAD"
36560 fi
36561 ;;
36562 *solaris* | alpha*-osf*)
36563 flag="-D_REENTRANT"
36564 ;;
36565 esac
36566 echo "$as_me:$LINENO: result: ${flag}" >&5
36567 echo "${ECHO_T}${flag}" >&6
36568 if test "x$flag" != xno; then
36569 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
36570 fi
36571
36572 if test "x$THREADS_CFLAGS" != "x"; then
36573 CFLAGS="$CFLAGS $THREADS_CFLAGS"
36574 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
36575 fi
36576 fi
36577 fi
36578
36579 if test "$wxUSE_THREADS" = "yes" ; then
36580
36581 for ac_func in thr_setconcurrency
36582 do
36583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36584 echo "$as_me:$LINENO: checking for $ac_func" >&5
36585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36586 if eval "test \"\${$as_ac_var+set}\" = set"; then
36587 echo $ECHO_N "(cached) $ECHO_C" >&6
36588 else
36589 cat >conftest.$ac_ext <<_ACEOF
36590 /* confdefs.h. */
36591 _ACEOF
36592 cat confdefs.h >>conftest.$ac_ext
36593 cat >>conftest.$ac_ext <<_ACEOF
36594 /* end confdefs.h. */
36595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36597 #define $ac_func innocuous_$ac_func
36598
36599 /* System header to define __stub macros and hopefully few prototypes,
36600 which can conflict with char $ac_func (); below.
36601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36602 <limits.h> exists even on freestanding compilers. */
36603
36604 #ifdef __STDC__
36605 # include <limits.h>
36606 #else
36607 # include <assert.h>
36608 #endif
36609
36610 #undef $ac_func
36611
36612 /* Override any gcc2 internal prototype to avoid an error. */
36613 #ifdef __cplusplus
36614 extern "C"
36615 {
36616 #endif
36617 /* We use char because int might match the return type of a gcc2
36618 builtin and then its argument prototype would still apply. */
36619 char $ac_func ();
36620 /* The GNU C library defines this for functions which it implements
36621 to always fail with ENOSYS. Some functions are actually named
36622 something starting with __ and the normal name is an alias. */
36623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36624 choke me
36625 #else
36626 char (*f) () = $ac_func;
36627 #endif
36628 #ifdef __cplusplus
36629 }
36630 #endif
36631
36632 int
36633 main ()
36634 {
36635 return f != $ac_func;
36636 ;
36637 return 0;
36638 }
36639 _ACEOF
36640 rm -f conftest.$ac_objext conftest$ac_exeext
36641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36642 (eval $ac_link) 2>conftest.er1
36643 ac_status=$?
36644 grep -v '^ *+' conftest.er1 >conftest.err
36645 rm -f conftest.er1
36646 cat conftest.err >&5
36647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36648 (exit $ac_status); } &&
36649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36651 (eval $ac_try) 2>&5
36652 ac_status=$?
36653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654 (exit $ac_status); }; } &&
36655 { ac_try='test -s conftest$ac_exeext'
36656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36657 (eval $ac_try) 2>&5
36658 ac_status=$?
36659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36660 (exit $ac_status); }; }; then
36661 eval "$as_ac_var=yes"
36662 else
36663 echo "$as_me: failed program was:" >&5
36664 sed 's/^/| /' conftest.$ac_ext >&5
36665
36666 eval "$as_ac_var=no"
36667 fi
36668 rm -f conftest.err conftest.$ac_objext \
36669 conftest$ac_exeext conftest.$ac_ext
36670 fi
36671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36673 if test `eval echo '${'$as_ac_var'}'` = yes; then
36674 cat >>confdefs.h <<_ACEOF
36675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36676 _ACEOF
36677
36678 fi
36679 done
36680
36681
36682 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36683 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36684 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36685 echo $ECHO_N "(cached) $ECHO_C" >&6
36686 else
36687
36688 cat >conftest.$ac_ext <<_ACEOF
36689 /* confdefs.h. */
36690 _ACEOF
36691 cat confdefs.h >>conftest.$ac_ext
36692 cat >>conftest.$ac_ext <<_ACEOF
36693 /* end confdefs.h. */
36694 #include <pthread.h>
36695 void ThreadCleanupFunc(void *p);
36696
36697 int
36698 main ()
36699 {
36700
36701 void *p;
36702 pthread_cleanup_push(ThreadCleanupFunc, p);
36703 pthread_cleanup_pop(0);
36704
36705 ;
36706 return 0;
36707 }
36708 _ACEOF
36709 rm -f conftest.$ac_objext
36710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36711 (eval $ac_compile) 2>conftest.er1
36712 ac_status=$?
36713 grep -v '^ *+' conftest.er1 >conftest.err
36714 rm -f conftest.er1
36715 cat conftest.err >&5
36716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36717 (exit $ac_status); } &&
36718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36720 (eval $ac_try) 2>&5
36721 ac_status=$?
36722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36723 (exit $ac_status); }; } &&
36724 { ac_try='test -s conftest.$ac_objext'
36725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36726 (eval $ac_try) 2>&5
36727 ac_status=$?
36728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36729 (exit $ac_status); }; }; then
36730
36731 wx_cv_func_pthread_cleanup=yes
36732
36733 else
36734 echo "$as_me: failed program was:" >&5
36735 sed 's/^/| /' conftest.$ac_ext >&5
36736
36737
36738 wx_cv_func_pthread_cleanup=no
36739
36740
36741 fi
36742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36743
36744 fi
36745 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36746 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36747 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36748 cat >>confdefs.h <<\_ACEOF
36749 #define wxHAVE_PTHREAD_CLEANUP 1
36750 _ACEOF
36751
36752 fi
36753
36754
36755 for ac_header in sched.h
36756 do
36757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36759 echo "$as_me:$LINENO: checking for $ac_header" >&5
36760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36762 echo $ECHO_N "(cached) $ECHO_C" >&6
36763 fi
36764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36766 else
36767 # Is the header compilable?
36768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36770 cat >conftest.$ac_ext <<_ACEOF
36771 /* confdefs.h. */
36772 _ACEOF
36773 cat confdefs.h >>conftest.$ac_ext
36774 cat >>conftest.$ac_ext <<_ACEOF
36775 /* end confdefs.h. */
36776 $ac_includes_default
36777 #include <$ac_header>
36778 _ACEOF
36779 rm -f conftest.$ac_objext
36780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36781 (eval $ac_compile) 2>conftest.er1
36782 ac_status=$?
36783 grep -v '^ *+' conftest.er1 >conftest.err
36784 rm -f conftest.er1
36785 cat conftest.err >&5
36786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36787 (exit $ac_status); } &&
36788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36790 (eval $ac_try) 2>&5
36791 ac_status=$?
36792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36793 (exit $ac_status); }; } &&
36794 { ac_try='test -s conftest.$ac_objext'
36795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36796 (eval $ac_try) 2>&5
36797 ac_status=$?
36798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36799 (exit $ac_status); }; }; then
36800 ac_header_compiler=yes
36801 else
36802 echo "$as_me: failed program was:" >&5
36803 sed 's/^/| /' conftest.$ac_ext >&5
36804
36805 ac_header_compiler=no
36806 fi
36807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36809 echo "${ECHO_T}$ac_header_compiler" >&6
36810
36811 # Is the header present?
36812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36814 cat >conftest.$ac_ext <<_ACEOF
36815 /* confdefs.h. */
36816 _ACEOF
36817 cat confdefs.h >>conftest.$ac_ext
36818 cat >>conftest.$ac_ext <<_ACEOF
36819 /* end confdefs.h. */
36820 #include <$ac_header>
36821 _ACEOF
36822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36824 ac_status=$?
36825 grep -v '^ *+' conftest.er1 >conftest.err
36826 rm -f conftest.er1
36827 cat conftest.err >&5
36828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829 (exit $ac_status); } >/dev/null; then
36830 if test -s conftest.err; then
36831 ac_cpp_err=$ac_c_preproc_warn_flag
36832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36833 else
36834 ac_cpp_err=
36835 fi
36836 else
36837 ac_cpp_err=yes
36838 fi
36839 if test -z "$ac_cpp_err"; then
36840 ac_header_preproc=yes
36841 else
36842 echo "$as_me: failed program was:" >&5
36843 sed 's/^/| /' conftest.$ac_ext >&5
36844
36845 ac_header_preproc=no
36846 fi
36847 rm -f conftest.err conftest.$ac_ext
36848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36849 echo "${ECHO_T}$ac_header_preproc" >&6
36850
36851 # So? What about this header?
36852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36853 yes:no: )
36854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36858 ac_header_preproc=yes
36859 ;;
36860 no:yes:* )
36861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36873 (
36874 cat <<\_ASBOX
36875 ## ----------------------------------------- ##
36876 ## Report this to wx-dev@lists.wxwidgets.org ##
36877 ## ----------------------------------------- ##
36878 _ASBOX
36879 ) |
36880 sed "s/^/$as_me: WARNING: /" >&2
36881 ;;
36882 esac
36883 echo "$as_me:$LINENO: checking for $ac_header" >&5
36884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36886 echo $ECHO_N "(cached) $ECHO_C" >&6
36887 else
36888 eval "$as_ac_Header=\$ac_header_preproc"
36889 fi
36890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36892
36893 fi
36894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36895 cat >>confdefs.h <<_ACEOF
36896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36897 _ACEOF
36898
36899 fi
36900
36901 done
36902
36903 if test "$ac_cv_header_sched_h" = "yes"; then
36904 echo "$as_me:$LINENO: checking for sched_yield" >&5
36905 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36906 if test "${ac_cv_func_sched_yield+set}" = set; then
36907 echo $ECHO_N "(cached) $ECHO_C" >&6
36908 else
36909 cat >conftest.$ac_ext <<_ACEOF
36910 /* confdefs.h. */
36911 _ACEOF
36912 cat confdefs.h >>conftest.$ac_ext
36913 cat >>conftest.$ac_ext <<_ACEOF
36914 /* end confdefs.h. */
36915 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36917 #define sched_yield innocuous_sched_yield
36918
36919 /* System header to define __stub macros and hopefully few prototypes,
36920 which can conflict with char sched_yield (); below.
36921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36922 <limits.h> exists even on freestanding compilers. */
36923
36924 #ifdef __STDC__
36925 # include <limits.h>
36926 #else
36927 # include <assert.h>
36928 #endif
36929
36930 #undef sched_yield
36931
36932 /* Override any gcc2 internal prototype to avoid an error. */
36933 #ifdef __cplusplus
36934 extern "C"
36935 {
36936 #endif
36937 /* We use char because int might match the return type of a gcc2
36938 builtin and then its argument prototype would still apply. */
36939 char sched_yield ();
36940 /* The GNU C library defines this for functions which it implements
36941 to always fail with ENOSYS. Some functions are actually named
36942 something starting with __ and the normal name is an alias. */
36943 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
36944 choke me
36945 #else
36946 char (*f) () = sched_yield;
36947 #endif
36948 #ifdef __cplusplus
36949 }
36950 #endif
36951
36952 int
36953 main ()
36954 {
36955 return f != sched_yield;
36956 ;
36957 return 0;
36958 }
36959 _ACEOF
36960 rm -f conftest.$ac_objext conftest$ac_exeext
36961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36962 (eval $ac_link) 2>conftest.er1
36963 ac_status=$?
36964 grep -v '^ *+' conftest.er1 >conftest.err
36965 rm -f conftest.er1
36966 cat conftest.err >&5
36967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); } &&
36969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36971 (eval $ac_try) 2>&5
36972 ac_status=$?
36973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974 (exit $ac_status); }; } &&
36975 { ac_try='test -s conftest$ac_exeext'
36976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36977 (eval $ac_try) 2>&5
36978 ac_status=$?
36979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980 (exit $ac_status); }; }; then
36981 ac_cv_func_sched_yield=yes
36982 else
36983 echo "$as_me: failed program was:" >&5
36984 sed 's/^/| /' conftest.$ac_ext >&5
36985
36986 ac_cv_func_sched_yield=no
36987 fi
36988 rm -f conftest.err conftest.$ac_objext \
36989 conftest$ac_exeext conftest.$ac_ext
36990 fi
36991 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
36992 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
36993 if test $ac_cv_func_sched_yield = yes; then
36994 cat >>confdefs.h <<\_ACEOF
36995 #define HAVE_SCHED_YIELD 1
36996 _ACEOF
36997
36998 else
36999
37000 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37001 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37002 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37003 echo $ECHO_N "(cached) $ECHO_C" >&6
37004 else
37005 ac_check_lib_save_LIBS=$LIBS
37006 LIBS="-lposix4 $LIBS"
37007 cat >conftest.$ac_ext <<_ACEOF
37008 /* confdefs.h. */
37009 _ACEOF
37010 cat confdefs.h >>conftest.$ac_ext
37011 cat >>conftest.$ac_ext <<_ACEOF
37012 /* end confdefs.h. */
37013
37014 /* Override any gcc2 internal prototype to avoid an error. */
37015 #ifdef __cplusplus
37016 extern "C"
37017 #endif
37018 /* We use char because int might match the return type of a gcc2
37019 builtin and then its argument prototype would still apply. */
37020 char sched_yield ();
37021 int
37022 main ()
37023 {
37024 sched_yield ();
37025 ;
37026 return 0;
37027 }
37028 _ACEOF
37029 rm -f conftest.$ac_objext conftest$ac_exeext
37030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37031 (eval $ac_link) 2>conftest.er1
37032 ac_status=$?
37033 grep -v '^ *+' conftest.er1 >conftest.err
37034 rm -f conftest.er1
37035 cat conftest.err >&5
37036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37037 (exit $ac_status); } &&
37038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37040 (eval $ac_try) 2>&5
37041 ac_status=$?
37042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); }; } &&
37044 { ac_try='test -s conftest$ac_exeext'
37045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37046 (eval $ac_try) 2>&5
37047 ac_status=$?
37048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049 (exit $ac_status); }; }; then
37050 ac_cv_lib_posix4_sched_yield=yes
37051 else
37052 echo "$as_me: failed program was:" >&5
37053 sed 's/^/| /' conftest.$ac_ext >&5
37054
37055 ac_cv_lib_posix4_sched_yield=no
37056 fi
37057 rm -f conftest.err conftest.$ac_objext \
37058 conftest$ac_exeext conftest.$ac_ext
37059 LIBS=$ac_check_lib_save_LIBS
37060 fi
37061 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37062 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37063 if test $ac_cv_lib_posix4_sched_yield = yes; then
37064 cat >>confdefs.h <<\_ACEOF
37065 #define HAVE_SCHED_YIELD 1
37066 _ACEOF
37067 POSIX4_LINK=" -lposix4"
37068 else
37069 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37070 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37071
37072 fi
37073
37074
37075
37076 fi
37077
37078 fi
37079
37080 HAVE_PRIOR_FUNCS=0
37081 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37082 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37083 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37084 echo $ECHO_N "(cached) $ECHO_C" >&6
37085 else
37086 cat >conftest.$ac_ext <<_ACEOF
37087 /* confdefs.h. */
37088 _ACEOF
37089 cat confdefs.h >>conftest.$ac_ext
37090 cat >>conftest.$ac_ext <<_ACEOF
37091 /* end confdefs.h. */
37092 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37094 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37095
37096 /* System header to define __stub macros and hopefully few prototypes,
37097 which can conflict with char pthread_attr_getschedpolicy (); below.
37098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37099 <limits.h> exists even on freestanding compilers. */
37100
37101 #ifdef __STDC__
37102 # include <limits.h>
37103 #else
37104 # include <assert.h>
37105 #endif
37106
37107 #undef pthread_attr_getschedpolicy
37108
37109 /* Override any gcc2 internal prototype to avoid an error. */
37110 #ifdef __cplusplus
37111 extern "C"
37112 {
37113 #endif
37114 /* We use char because int might match the return type of a gcc2
37115 builtin and then its argument prototype would still apply. */
37116 char pthread_attr_getschedpolicy ();
37117 /* The GNU C library defines this for functions which it implements
37118 to always fail with ENOSYS. Some functions are actually named
37119 something starting with __ and the normal name is an alias. */
37120 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37121 choke me
37122 #else
37123 char (*f) () = pthread_attr_getschedpolicy;
37124 #endif
37125 #ifdef __cplusplus
37126 }
37127 #endif
37128
37129 int
37130 main ()
37131 {
37132 return f != pthread_attr_getschedpolicy;
37133 ;
37134 return 0;
37135 }
37136 _ACEOF
37137 rm -f conftest.$ac_objext conftest$ac_exeext
37138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37139 (eval $ac_link) 2>conftest.er1
37140 ac_status=$?
37141 grep -v '^ *+' conftest.er1 >conftest.err
37142 rm -f conftest.er1
37143 cat conftest.err >&5
37144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37145 (exit $ac_status); } &&
37146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37148 (eval $ac_try) 2>&5
37149 ac_status=$?
37150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151 (exit $ac_status); }; } &&
37152 { ac_try='test -s conftest$ac_exeext'
37153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37154 (eval $ac_try) 2>&5
37155 ac_status=$?
37156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157 (exit $ac_status); }; }; then
37158 ac_cv_func_pthread_attr_getschedpolicy=yes
37159 else
37160 echo "$as_me: failed program was:" >&5
37161 sed 's/^/| /' conftest.$ac_ext >&5
37162
37163 ac_cv_func_pthread_attr_getschedpolicy=no
37164 fi
37165 rm -f conftest.err conftest.$ac_objext \
37166 conftest$ac_exeext conftest.$ac_ext
37167 fi
37168 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37169 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37170 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37171 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37172 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37173 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37174 echo $ECHO_N "(cached) $ECHO_C" >&6
37175 else
37176 cat >conftest.$ac_ext <<_ACEOF
37177 /* confdefs.h. */
37178 _ACEOF
37179 cat confdefs.h >>conftest.$ac_ext
37180 cat >>conftest.$ac_ext <<_ACEOF
37181 /* end confdefs.h. */
37182 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37184 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37185
37186 /* System header to define __stub macros and hopefully few prototypes,
37187 which can conflict with char pthread_attr_setschedparam (); below.
37188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37189 <limits.h> exists even on freestanding compilers. */
37190
37191 #ifdef __STDC__
37192 # include <limits.h>
37193 #else
37194 # include <assert.h>
37195 #endif
37196
37197 #undef pthread_attr_setschedparam
37198
37199 /* Override any gcc2 internal prototype to avoid an error. */
37200 #ifdef __cplusplus
37201 extern "C"
37202 {
37203 #endif
37204 /* We use char because int might match the return type of a gcc2
37205 builtin and then its argument prototype would still apply. */
37206 char pthread_attr_setschedparam ();
37207 /* The GNU C library defines this for functions which it implements
37208 to always fail with ENOSYS. Some functions are actually named
37209 something starting with __ and the normal name is an alias. */
37210 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37211 choke me
37212 #else
37213 char (*f) () = pthread_attr_setschedparam;
37214 #endif
37215 #ifdef __cplusplus
37216 }
37217 #endif
37218
37219 int
37220 main ()
37221 {
37222 return f != pthread_attr_setschedparam;
37223 ;
37224 return 0;
37225 }
37226 _ACEOF
37227 rm -f conftest.$ac_objext conftest$ac_exeext
37228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37229 (eval $ac_link) 2>conftest.er1
37230 ac_status=$?
37231 grep -v '^ *+' conftest.er1 >conftest.err
37232 rm -f conftest.er1
37233 cat conftest.err >&5
37234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37235 (exit $ac_status); } &&
37236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37238 (eval $ac_try) 2>&5
37239 ac_status=$?
37240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241 (exit $ac_status); }; } &&
37242 { ac_try='test -s conftest$ac_exeext'
37243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244 (eval $ac_try) 2>&5
37245 ac_status=$?
37246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247 (exit $ac_status); }; }; then
37248 ac_cv_func_pthread_attr_setschedparam=yes
37249 else
37250 echo "$as_me: failed program was:" >&5
37251 sed 's/^/| /' conftest.$ac_ext >&5
37252
37253 ac_cv_func_pthread_attr_setschedparam=no
37254 fi
37255 rm -f conftest.err conftest.$ac_objext \
37256 conftest$ac_exeext conftest.$ac_ext
37257 fi
37258 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37259 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37260 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37261 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37262 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37263 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37264 echo $ECHO_N "(cached) $ECHO_C" >&6
37265 else
37266 cat >conftest.$ac_ext <<_ACEOF
37267 /* confdefs.h. */
37268 _ACEOF
37269 cat confdefs.h >>conftest.$ac_ext
37270 cat >>conftest.$ac_ext <<_ACEOF
37271 /* end confdefs.h. */
37272 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37274 #define sched_get_priority_max innocuous_sched_get_priority_max
37275
37276 /* System header to define __stub macros and hopefully few prototypes,
37277 which can conflict with char sched_get_priority_max (); below.
37278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37279 <limits.h> exists even on freestanding compilers. */
37280
37281 #ifdef __STDC__
37282 # include <limits.h>
37283 #else
37284 # include <assert.h>
37285 #endif
37286
37287 #undef sched_get_priority_max
37288
37289 /* Override any gcc2 internal prototype to avoid an error. */
37290 #ifdef __cplusplus
37291 extern "C"
37292 {
37293 #endif
37294 /* We use char because int might match the return type of a gcc2
37295 builtin and then its argument prototype would still apply. */
37296 char sched_get_priority_max ();
37297 /* The GNU C library defines this for functions which it implements
37298 to always fail with ENOSYS. Some functions are actually named
37299 something starting with __ and the normal name is an alias. */
37300 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37301 choke me
37302 #else
37303 char (*f) () = sched_get_priority_max;
37304 #endif
37305 #ifdef __cplusplus
37306 }
37307 #endif
37308
37309 int
37310 main ()
37311 {
37312 return f != sched_get_priority_max;
37313 ;
37314 return 0;
37315 }
37316 _ACEOF
37317 rm -f conftest.$ac_objext conftest$ac_exeext
37318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37319 (eval $ac_link) 2>conftest.er1
37320 ac_status=$?
37321 grep -v '^ *+' conftest.er1 >conftest.err
37322 rm -f conftest.er1
37323 cat conftest.err >&5
37324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37325 (exit $ac_status); } &&
37326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37328 (eval $ac_try) 2>&5
37329 ac_status=$?
37330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37331 (exit $ac_status); }; } &&
37332 { ac_try='test -s conftest$ac_exeext'
37333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37334 (eval $ac_try) 2>&5
37335 ac_status=$?
37336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37337 (exit $ac_status); }; }; then
37338 ac_cv_func_sched_get_priority_max=yes
37339 else
37340 echo "$as_me: failed program was:" >&5
37341 sed 's/^/| /' conftest.$ac_ext >&5
37342
37343 ac_cv_func_sched_get_priority_max=no
37344 fi
37345 rm -f conftest.err conftest.$ac_objext \
37346 conftest$ac_exeext conftest.$ac_ext
37347 fi
37348 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37349 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37350 if test $ac_cv_func_sched_get_priority_max = yes; then
37351 HAVE_PRIOR_FUNCS=1
37352 else
37353 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37354 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37355 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37356 echo $ECHO_N "(cached) $ECHO_C" >&6
37357 else
37358 ac_check_lib_save_LIBS=$LIBS
37359 LIBS="-lposix4 $LIBS"
37360 cat >conftest.$ac_ext <<_ACEOF
37361 /* confdefs.h. */
37362 _ACEOF
37363 cat confdefs.h >>conftest.$ac_ext
37364 cat >>conftest.$ac_ext <<_ACEOF
37365 /* end confdefs.h. */
37366
37367 /* Override any gcc2 internal prototype to avoid an error. */
37368 #ifdef __cplusplus
37369 extern "C"
37370 #endif
37371 /* We use char because int might match the return type of a gcc2
37372 builtin and then its argument prototype would still apply. */
37373 char sched_get_priority_max ();
37374 int
37375 main ()
37376 {
37377 sched_get_priority_max ();
37378 ;
37379 return 0;
37380 }
37381 _ACEOF
37382 rm -f conftest.$ac_objext conftest$ac_exeext
37383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37384 (eval $ac_link) 2>conftest.er1
37385 ac_status=$?
37386 grep -v '^ *+' conftest.er1 >conftest.err
37387 rm -f conftest.er1
37388 cat conftest.err >&5
37389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390 (exit $ac_status); } &&
37391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37393 (eval $ac_try) 2>&5
37394 ac_status=$?
37395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37396 (exit $ac_status); }; } &&
37397 { ac_try='test -s conftest$ac_exeext'
37398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37399 (eval $ac_try) 2>&5
37400 ac_status=$?
37401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37402 (exit $ac_status); }; }; then
37403 ac_cv_lib_posix4_sched_get_priority_max=yes
37404 else
37405 echo "$as_me: failed program was:" >&5
37406 sed 's/^/| /' conftest.$ac_ext >&5
37407
37408 ac_cv_lib_posix4_sched_get_priority_max=no
37409 fi
37410 rm -f conftest.err conftest.$ac_objext \
37411 conftest$ac_exeext conftest.$ac_ext
37412 LIBS=$ac_check_lib_save_LIBS
37413 fi
37414 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37415 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37416 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37417
37418 HAVE_PRIOR_FUNCS=1
37419 POSIX4_LINK=" -lposix4"
37420
37421 fi
37422
37423
37424 fi
37425
37426
37427 fi
37428
37429
37430 fi
37431
37432
37433 if test "$HAVE_PRIOR_FUNCS" = 1; then
37434 cat >>confdefs.h <<\_ACEOF
37435 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37436 _ACEOF
37437
37438 else
37439 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37440 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37441 fi
37442
37443 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37444 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37445 if test "${ac_cv_func_pthread_cancel+set}" = set; then
37446 echo $ECHO_N "(cached) $ECHO_C" >&6
37447 else
37448 cat >conftest.$ac_ext <<_ACEOF
37449 /* confdefs.h. */
37450 _ACEOF
37451 cat confdefs.h >>conftest.$ac_ext
37452 cat >>conftest.$ac_ext <<_ACEOF
37453 /* end confdefs.h. */
37454 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37456 #define pthread_cancel innocuous_pthread_cancel
37457
37458 /* System header to define __stub macros and hopefully few prototypes,
37459 which can conflict with char pthread_cancel (); below.
37460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37461 <limits.h> exists even on freestanding compilers. */
37462
37463 #ifdef __STDC__
37464 # include <limits.h>
37465 #else
37466 # include <assert.h>
37467 #endif
37468
37469 #undef pthread_cancel
37470
37471 /* Override any gcc2 internal prototype to avoid an error. */
37472 #ifdef __cplusplus
37473 extern "C"
37474 {
37475 #endif
37476 /* We use char because int might match the return type of a gcc2
37477 builtin and then its argument prototype would still apply. */
37478 char pthread_cancel ();
37479 /* The GNU C library defines this for functions which it implements
37480 to always fail with ENOSYS. Some functions are actually named
37481 something starting with __ and the normal name is an alias. */
37482 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37483 choke me
37484 #else
37485 char (*f) () = pthread_cancel;
37486 #endif
37487 #ifdef __cplusplus
37488 }
37489 #endif
37490
37491 int
37492 main ()
37493 {
37494 return f != pthread_cancel;
37495 ;
37496 return 0;
37497 }
37498 _ACEOF
37499 rm -f conftest.$ac_objext conftest$ac_exeext
37500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37501 (eval $ac_link) 2>conftest.er1
37502 ac_status=$?
37503 grep -v '^ *+' conftest.er1 >conftest.err
37504 rm -f conftest.er1
37505 cat conftest.err >&5
37506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37507 (exit $ac_status); } &&
37508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37510 (eval $ac_try) 2>&5
37511 ac_status=$?
37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); }; } &&
37514 { ac_try='test -s conftest$ac_exeext'
37515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37516 (eval $ac_try) 2>&5
37517 ac_status=$?
37518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37519 (exit $ac_status); }; }; then
37520 ac_cv_func_pthread_cancel=yes
37521 else
37522 echo "$as_me: failed program was:" >&5
37523 sed 's/^/| /' conftest.$ac_ext >&5
37524
37525 ac_cv_func_pthread_cancel=no
37526 fi
37527 rm -f conftest.err conftest.$ac_objext \
37528 conftest$ac_exeext conftest.$ac_ext
37529 fi
37530 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37531 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37532 if test $ac_cv_func_pthread_cancel = yes; then
37533 cat >>confdefs.h <<\_ACEOF
37534 #define HAVE_PTHREAD_CANCEL 1
37535 _ACEOF
37536
37537 else
37538 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37539 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37540 fi
37541
37542
37543 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
37544 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
37545 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
37546 echo $ECHO_N "(cached) $ECHO_C" >&6
37547 else
37548 cat >conftest.$ac_ext <<_ACEOF
37549 /* confdefs.h. */
37550 _ACEOF
37551 cat confdefs.h >>conftest.$ac_ext
37552 cat >>conftest.$ac_ext <<_ACEOF
37553 /* end confdefs.h. */
37554 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
37555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37556 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
37557
37558 /* System header to define __stub macros and hopefully few prototypes,
37559 which can conflict with char pthread_attr_setstacksize (); below.
37560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37561 <limits.h> exists even on freestanding compilers. */
37562
37563 #ifdef __STDC__
37564 # include <limits.h>
37565 #else
37566 # include <assert.h>
37567 #endif
37568
37569 #undef pthread_attr_setstacksize
37570
37571 /* Override any gcc2 internal prototype to avoid an error. */
37572 #ifdef __cplusplus
37573 extern "C"
37574 {
37575 #endif
37576 /* We use char because int might match the return type of a gcc2
37577 builtin and then its argument prototype would still apply. */
37578 char pthread_attr_setstacksize ();
37579 /* The GNU C library defines this for functions which it implements
37580 to always fail with ENOSYS. Some functions are actually named
37581 something starting with __ and the normal name is an alias. */
37582 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
37583 choke me
37584 #else
37585 char (*f) () = pthread_attr_setstacksize;
37586 #endif
37587 #ifdef __cplusplus
37588 }
37589 #endif
37590
37591 int
37592 main ()
37593 {
37594 return f != pthread_attr_setstacksize;
37595 ;
37596 return 0;
37597 }
37598 _ACEOF
37599 rm -f conftest.$ac_objext conftest$ac_exeext
37600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37601 (eval $ac_link) 2>conftest.er1
37602 ac_status=$?
37603 grep -v '^ *+' conftest.er1 >conftest.err
37604 rm -f conftest.er1
37605 cat conftest.err >&5
37606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37607 (exit $ac_status); } &&
37608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37610 (eval $ac_try) 2>&5
37611 ac_status=$?
37612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613 (exit $ac_status); }; } &&
37614 { ac_try='test -s conftest$ac_exeext'
37615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37616 (eval $ac_try) 2>&5
37617 ac_status=$?
37618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619 (exit $ac_status); }; }; then
37620 ac_cv_func_pthread_attr_setstacksize=yes
37621 else
37622 echo "$as_me: failed program was:" >&5
37623 sed 's/^/| /' conftest.$ac_ext >&5
37624
37625 ac_cv_func_pthread_attr_setstacksize=no
37626 fi
37627 rm -f conftest.err conftest.$ac_objext \
37628 conftest$ac_exeext conftest.$ac_ext
37629 fi
37630 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37631 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37632 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37633 cat >>confdefs.h <<\_ACEOF
37634 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37635 _ACEOF
37636
37637 fi
37638
37639
37640
37641 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37642 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37643 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37644 echo $ECHO_N "(cached) $ECHO_C" >&6
37645 else
37646
37647 cat >conftest.$ac_ext <<_ACEOF
37648 /* confdefs.h. */
37649 _ACEOF
37650 cat confdefs.h >>conftest.$ac_ext
37651 cat >>conftest.$ac_ext <<_ACEOF
37652 /* end confdefs.h. */
37653 #include <pthread.h>
37654 int
37655 main ()
37656 {
37657
37658 pthread_mutexattr_t attr;
37659 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37660
37661 ;
37662 return 0;
37663 }
37664 _ACEOF
37665 rm -f conftest.$ac_objext
37666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37667 (eval $ac_compile) 2>conftest.er1
37668 ac_status=$?
37669 grep -v '^ *+' conftest.er1 >conftest.err
37670 rm -f conftest.er1
37671 cat conftest.err >&5
37672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37673 (exit $ac_status); } &&
37674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37676 (eval $ac_try) 2>&5
37677 ac_status=$?
37678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679 (exit $ac_status); }; } &&
37680 { ac_try='test -s conftest.$ac_objext'
37681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37682 (eval $ac_try) 2>&5
37683 ac_status=$?
37684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685 (exit $ac_status); }; }; then
37686 wx_cv_type_pthread_mutexattr_t=yes
37687 else
37688 echo "$as_me: failed program was:" >&5
37689 sed 's/^/| /' conftest.$ac_ext >&5
37690
37691 wx_cv_type_pthread_mutexattr_t=no
37692
37693 fi
37694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37695
37696 fi
37697 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37698 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37699
37700 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37701 cat >>confdefs.h <<\_ACEOF
37702 #define HAVE_PTHREAD_MUTEXATTR_T 1
37703 _ACEOF
37704
37705
37706 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
37707 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
37708 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
37709 echo $ECHO_N "(cached) $ECHO_C" >&6
37710 else
37711
37712 cat >conftest.$ac_ext <<_ACEOF
37713 /* confdefs.h. */
37714 _ACEOF
37715 cat confdefs.h >>conftest.$ac_ext
37716 cat >>conftest.$ac_ext <<_ACEOF
37717 /* end confdefs.h. */
37718 #include <pthread.h>
37719 int
37720 main ()
37721 {
37722
37723 pthread_mutexattr_t attr;
37724 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37725
37726 ;
37727 return 0;
37728 }
37729 _ACEOF
37730 rm -f conftest.$ac_objext
37731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37732 (eval $ac_compile) 2>conftest.er1
37733 ac_status=$?
37734 grep -v '^ *+' conftest.er1 >conftest.err
37735 rm -f conftest.er1
37736 cat conftest.err >&5
37737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738 (exit $ac_status); } &&
37739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37741 (eval $ac_try) 2>&5
37742 ac_status=$?
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); }; } &&
37745 { ac_try='test -s conftest.$ac_objext'
37746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37747 (eval $ac_try) 2>&5
37748 ac_status=$?
37749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37750 (exit $ac_status); }; }; then
37751 wx_cv_func_pthread_mutexattr_settype_decl=yes
37752 else
37753 echo "$as_me: failed program was:" >&5
37754 sed 's/^/| /' conftest.$ac_ext >&5
37755
37756 wx_cv_func_pthread_mutexattr_settype_decl=no
37757
37758 fi
37759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37760
37761 fi
37762 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
37763 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
37764 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
37765 cat >>confdefs.h <<\_ACEOF
37766 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
37767 _ACEOF
37768
37769 fi
37770 else
37771 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37772 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37773 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37774 echo $ECHO_N "(cached) $ECHO_C" >&6
37775 else
37776
37777 cat >conftest.$ac_ext <<_ACEOF
37778 /* confdefs.h. */
37779 _ACEOF
37780 cat confdefs.h >>conftest.$ac_ext
37781 cat >>conftest.$ac_ext <<_ACEOF
37782 /* end confdefs.h. */
37783 #include <pthread.h>
37784 int
37785 main ()
37786 {
37787
37788 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37789
37790 ;
37791 return 0;
37792 }
37793 _ACEOF
37794 rm -f conftest.$ac_objext
37795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37796 (eval $ac_compile) 2>conftest.er1
37797 ac_status=$?
37798 grep -v '^ *+' conftest.er1 >conftest.err
37799 rm -f conftest.er1
37800 cat conftest.err >&5
37801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802 (exit $ac_status); } &&
37803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37805 (eval $ac_try) 2>&5
37806 ac_status=$?
37807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808 (exit $ac_status); }; } &&
37809 { ac_try='test -s conftest.$ac_objext'
37810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37811 (eval $ac_try) 2>&5
37812 ac_status=$?
37813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814 (exit $ac_status); }; }; then
37815
37816 wx_cv_type_pthread_rec_mutex_init=yes
37817
37818 else
37819 echo "$as_me: failed program was:" >&5
37820 sed 's/^/| /' conftest.$ac_ext >&5
37821
37822
37823 wx_cv_type_pthread_rec_mutex_init=no
37824
37825
37826 fi
37827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37828
37829 fi
37830 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37831 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37832 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37833 cat >>confdefs.h <<\_ACEOF
37834 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37835 _ACEOF
37836
37837 else
37838 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37839 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37840 fi
37841 fi
37842 fi
37843
37844 else
37845 if test "$wxUSE_THREADS" = "yes" ; then
37846 case "${host}" in
37847 *-*-mingw32* )
37848 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37849 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37850 if test "${wx_cv_cflags_mthread+set}" = set; then
37851 echo $ECHO_N "(cached) $ECHO_C" >&6
37852 else
37853
37854 CFLAGS_OLD="$CFLAGS"
37855 CFLAGS="$CFLAGS -mthreads"
37856 cat >conftest.$ac_ext <<_ACEOF
37857 /* confdefs.h. */
37858 _ACEOF
37859 cat confdefs.h >>conftest.$ac_ext
37860 cat >>conftest.$ac_ext <<_ACEOF
37861 /* end confdefs.h. */
37862
37863 int
37864 main ()
37865 {
37866
37867 ;
37868 return 0;
37869 }
37870 _ACEOF
37871 rm -f conftest.$ac_objext
37872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37873 (eval $ac_compile) 2>conftest.er1
37874 ac_status=$?
37875 grep -v '^ *+' conftest.er1 >conftest.err
37876 rm -f conftest.er1
37877 cat conftest.err >&5
37878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37879 (exit $ac_status); } &&
37880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37882 (eval $ac_try) 2>&5
37883 ac_status=$?
37884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37885 (exit $ac_status); }; } &&
37886 { ac_try='test -s conftest.$ac_objext'
37887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37888 (eval $ac_try) 2>&5
37889 ac_status=$?
37890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37891 (exit $ac_status); }; }; then
37892 wx_cv_cflags_mthread=yes
37893 else
37894 echo "$as_me: failed program was:" >&5
37895 sed 's/^/| /' conftest.$ac_ext >&5
37896
37897 wx_cv_cflags_mthread=no
37898
37899 fi
37900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37901
37902
37903 fi
37904 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37905 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37906
37907 if test "$wx_cv_cflags_mthread" = "yes"; then
37908 CXXFLAGS="$CXXFLAGS -mthreads"
37909 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
37910 LDFLAGS="$LDFLAGS -mthreads"
37911 else
37912 CFLAGS="$CFLAGS_OLD"
37913 fi
37914 ;;
37915 *-pc-os2*emx )
37916 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
37917 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
37918 LDFLAGS="$LDFLAGS -Zmt"
37919 ;;
37920 esac
37921 fi
37922 fi
37923
37924 if test "$wxUSE_THREADS" = "yes"; then
37925 cat >>confdefs.h <<\_ACEOF
37926 #define wxUSE_THREADS 1
37927 _ACEOF
37928
37929
37930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
37931 else
37932 if test "$ac_cv_func_strtok_r" = "yes"; then
37933 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
37934 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
37935 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
37936 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
37937 echo "$as_me:$LINENO: result: yes" >&5
37938 echo "${ECHO_T}yes" >&6
37939 else
37940 echo "$as_me:$LINENO: result: no" >&5
37941 echo "${ECHO_T}no" >&6
37942 fi
37943 fi
37944 fi
37945
37946 if test "$WXGTK20" = 1 ; then
37947 cat >>confdefs.h <<_ACEOF
37948 #define __WXGTK20__ $WXGTK20
37949 _ACEOF
37950
37951 WXGTK12=1
37952 fi
37953
37954 if test "$WXGTK12" = 1 ; then
37955 cat >>confdefs.h <<_ACEOF
37956 #define __WXGTK12__ $WXGTK12
37957 _ACEOF
37958
37959 fi
37960
37961 if test "$WXGTK127" = 1 ; then
37962 cat >>confdefs.h <<_ACEOF
37963 #define __WXGTK127__ $WXGTK127
37964 _ACEOF
37965
37966 fi
37967
37968 if test "$WXGPE" = 1 ; then
37969 cat >>confdefs.h <<_ACEOF
37970 #define __WXGPE__ $WXGPE
37971 _ACEOF
37972
37973 fi
37974
37975 WXDEBUG=
37976
37977 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
37978 WXDEBUG="-g"
37979 wxUSE_OPTIMISE=no
37980 fi
37981
37982 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
37983 wxUSE_DEBUG_INFO=yes
37984 if test "$GCC" = yes; then
37985 WXDEBUG="-ggdb"
37986 fi
37987 fi
37988
37989 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
37990 cat >>confdefs.h <<\_ACEOF
37991 #define WXDEBUG 1
37992 _ACEOF
37993
37994 WXDEBUG_DEFINE="-D__WXDEBUG__"
37995 else
37996 if test "$wxUSE_GTK" = 1 ; then
37997 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
37998 fi
37999 fi
38000
38001 if test "$wxUSE_MEM_TRACING" = "yes" ; then
38002 cat >>confdefs.h <<\_ACEOF
38003 #define wxUSE_MEMORY_TRACING 1
38004 _ACEOF
38005
38006 cat >>confdefs.h <<\_ACEOF
38007 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
38008 _ACEOF
38009
38010 cat >>confdefs.h <<\_ACEOF
38011 #define wxUSE_DEBUG_NEW_ALWAYS 1
38012 _ACEOF
38013
38014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
38015 fi
38016
38017 if test "$wxUSE_DMALLOC" = "yes" ; then
38018 DMALLOC_LIBS="-ldmallocthcxx"
38019 fi
38020
38021 PROFILE=
38022 if test "$wxUSE_PROFILE" = "yes" ; then
38023 PROFILE=" -pg"
38024 fi
38025
38026 CODE_GEN_FLAGS=
38027 CODE_GEN_FLAGS_CXX=
38028 if test "$GCC" = "yes" ; then
38029 if test "$wxUSE_NO_RTTI" = "yes" ; then
38030 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
38031 fi
38032 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38033 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
38034 fi
38035 if test "$wxUSE_PERMISSIVE" = "yes" ; then
38036 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
38037 fi
38038
38039 case "${host}" in
38040 powerpc*-*-aix* )
38041 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
38042 ;;
38043 *-hppa* )
38044 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
38045 ;;
38046 esac
38047 fi
38048
38049 OPTIMISE=
38050 if test "$wxUSE_OPTIMISE" = "no" ; then
38051 if test "$GCC" = yes ; then
38052 OPTIMISE="-O0"
38053 fi
38054 else
38055 if test "$GCC" = yes ; then
38056 OPTIMISE="-O2"
38057
38058 case "${host}" in
38059 i586-*-*|i686-*-* )
38060 OPTIMISE="${OPTIMISE} "
38061 ;;
38062 esac
38063 else
38064 OPTIMISE="-O"
38065 fi
38066 fi
38067
38068
38069 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
38070 cat >>confdefs.h <<\_ACEOF
38071 #define WXWIN_COMPATIBILITY_2_4 1
38072 _ACEOF
38073
38074
38075 WXWIN_COMPATIBILITY_2_6="yes"
38076 fi
38077
38078 if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
38079 cat >>confdefs.h <<\_ACEOF
38080 #define WXWIN_COMPATIBILITY_2_6 1
38081 _ACEOF
38082
38083 fi
38084
38085
38086 if test "$wxUSE_GUI" = "yes"; then
38087 cat >>confdefs.h <<\_ACEOF
38088 #define wxUSE_GUI 1
38089 _ACEOF
38090
38091
38092 fi
38093
38094
38095 if test "$wxUSE_UNIX" = "yes"; then
38096 cat >>confdefs.h <<\_ACEOF
38097 #define wxUSE_UNIX 1
38098 _ACEOF
38099
38100 fi
38101
38102
38103 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38104
38105 HAVE_DL_FUNCS=0
38106 HAVE_SHL_FUNCS=0
38107 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38108 if test "$USE_DARWIN" = 1; then
38109 HAVE_DL_FUNCS=1
38110 elif test "$USE_DOS" = 1; then
38111 HAVE_DL_FUNCS=0
38112 else
38113
38114 for ac_func in dlopen
38115 do
38116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38117 echo "$as_me:$LINENO: checking for $ac_func" >&5
38118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38119 if eval "test \"\${$as_ac_var+set}\" = set"; then
38120 echo $ECHO_N "(cached) $ECHO_C" >&6
38121 else
38122 cat >conftest.$ac_ext <<_ACEOF
38123 /* confdefs.h. */
38124 _ACEOF
38125 cat confdefs.h >>conftest.$ac_ext
38126 cat >>conftest.$ac_ext <<_ACEOF
38127 /* end confdefs.h. */
38128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38130 #define $ac_func innocuous_$ac_func
38131
38132 /* System header to define __stub macros and hopefully few prototypes,
38133 which can conflict with char $ac_func (); below.
38134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38135 <limits.h> exists even on freestanding compilers. */
38136
38137 #ifdef __STDC__
38138 # include <limits.h>
38139 #else
38140 # include <assert.h>
38141 #endif
38142
38143 #undef $ac_func
38144
38145 /* Override any gcc2 internal prototype to avoid an error. */
38146 #ifdef __cplusplus
38147 extern "C"
38148 {
38149 #endif
38150 /* We use char because int might match the return type of a gcc2
38151 builtin and then its argument prototype would still apply. */
38152 char $ac_func ();
38153 /* The GNU C library defines this for functions which it implements
38154 to always fail with ENOSYS. Some functions are actually named
38155 something starting with __ and the normal name is an alias. */
38156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38157 choke me
38158 #else
38159 char (*f) () = $ac_func;
38160 #endif
38161 #ifdef __cplusplus
38162 }
38163 #endif
38164
38165 int
38166 main ()
38167 {
38168 return f != $ac_func;
38169 ;
38170 return 0;
38171 }
38172 _ACEOF
38173 rm -f conftest.$ac_objext conftest$ac_exeext
38174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38175 (eval $ac_link) 2>conftest.er1
38176 ac_status=$?
38177 grep -v '^ *+' conftest.er1 >conftest.err
38178 rm -f conftest.er1
38179 cat conftest.err >&5
38180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); } &&
38182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38184 (eval $ac_try) 2>&5
38185 ac_status=$?
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); }; } &&
38188 { ac_try='test -s conftest$ac_exeext'
38189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38190 (eval $ac_try) 2>&5
38191 ac_status=$?
38192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38193 (exit $ac_status); }; }; then
38194 eval "$as_ac_var=yes"
38195 else
38196 echo "$as_me: failed program was:" >&5
38197 sed 's/^/| /' conftest.$ac_ext >&5
38198
38199 eval "$as_ac_var=no"
38200 fi
38201 rm -f conftest.err conftest.$ac_objext \
38202 conftest$ac_exeext conftest.$ac_ext
38203 fi
38204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38206 if test `eval echo '${'$as_ac_var'}'` = yes; then
38207 cat >>confdefs.h <<_ACEOF
38208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38209 _ACEOF
38210
38211 cat >>confdefs.h <<\_ACEOF
38212 #define HAVE_DLOPEN 1
38213 _ACEOF
38214
38215 HAVE_DL_FUNCS=1
38216
38217 else
38218
38219 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
38220 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
38221 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
38222 echo $ECHO_N "(cached) $ECHO_C" >&6
38223 else
38224 ac_check_lib_save_LIBS=$LIBS
38225 LIBS="-ldl $LIBS"
38226 cat >conftest.$ac_ext <<_ACEOF
38227 /* confdefs.h. */
38228 _ACEOF
38229 cat confdefs.h >>conftest.$ac_ext
38230 cat >>conftest.$ac_ext <<_ACEOF
38231 /* end confdefs.h. */
38232
38233 /* Override any gcc2 internal prototype to avoid an error. */
38234 #ifdef __cplusplus
38235 extern "C"
38236 #endif
38237 /* We use char because int might match the return type of a gcc2
38238 builtin and then its argument prototype would still apply. */
38239 char dlopen ();
38240 int
38241 main ()
38242 {
38243 dlopen ();
38244 ;
38245 return 0;
38246 }
38247 _ACEOF
38248 rm -f conftest.$ac_objext conftest$ac_exeext
38249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38250 (eval $ac_link) 2>conftest.er1
38251 ac_status=$?
38252 grep -v '^ *+' conftest.er1 >conftest.err
38253 rm -f conftest.er1
38254 cat conftest.err >&5
38255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38256 (exit $ac_status); } &&
38257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38259 (eval $ac_try) 2>&5
38260 ac_status=$?
38261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262 (exit $ac_status); }; } &&
38263 { ac_try='test -s conftest$ac_exeext'
38264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38265 (eval $ac_try) 2>&5
38266 ac_status=$?
38267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38268 (exit $ac_status); }; }; then
38269 ac_cv_lib_dl_dlopen=yes
38270 else
38271 echo "$as_me: failed program was:" >&5
38272 sed 's/^/| /' conftest.$ac_ext >&5
38273
38274 ac_cv_lib_dl_dlopen=no
38275 fi
38276 rm -f conftest.err conftest.$ac_objext \
38277 conftest$ac_exeext conftest.$ac_ext
38278 LIBS=$ac_check_lib_save_LIBS
38279 fi
38280 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
38281 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
38282 if test $ac_cv_lib_dl_dlopen = yes; then
38283
38284 cat >>confdefs.h <<\_ACEOF
38285 #define HAVE_DLOPEN 1
38286 _ACEOF
38287
38288 HAVE_DL_FUNCS=1
38289 DL_LINK=" -ldl$DL_LINK"
38290
38291 else
38292
38293
38294 for ac_func in shl_load
38295 do
38296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38297 echo "$as_me:$LINENO: checking for $ac_func" >&5
38298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38299 if eval "test \"\${$as_ac_var+set}\" = set"; then
38300 echo $ECHO_N "(cached) $ECHO_C" >&6
38301 else
38302 cat >conftest.$ac_ext <<_ACEOF
38303 /* confdefs.h. */
38304 _ACEOF
38305 cat confdefs.h >>conftest.$ac_ext
38306 cat >>conftest.$ac_ext <<_ACEOF
38307 /* end confdefs.h. */
38308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38310 #define $ac_func innocuous_$ac_func
38311
38312 /* System header to define __stub macros and hopefully few prototypes,
38313 which can conflict with char $ac_func (); below.
38314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38315 <limits.h> exists even on freestanding compilers. */
38316
38317 #ifdef __STDC__
38318 # include <limits.h>
38319 #else
38320 # include <assert.h>
38321 #endif
38322
38323 #undef $ac_func
38324
38325 /* Override any gcc2 internal prototype to avoid an error. */
38326 #ifdef __cplusplus
38327 extern "C"
38328 {
38329 #endif
38330 /* We use char because int might match the return type of a gcc2
38331 builtin and then its argument prototype would still apply. */
38332 char $ac_func ();
38333 /* The GNU C library defines this for functions which it implements
38334 to always fail with ENOSYS. Some functions are actually named
38335 something starting with __ and the normal name is an alias. */
38336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38337 choke me
38338 #else
38339 char (*f) () = $ac_func;
38340 #endif
38341 #ifdef __cplusplus
38342 }
38343 #endif
38344
38345 int
38346 main ()
38347 {
38348 return f != $ac_func;
38349 ;
38350 return 0;
38351 }
38352 _ACEOF
38353 rm -f conftest.$ac_objext conftest$ac_exeext
38354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38355 (eval $ac_link) 2>conftest.er1
38356 ac_status=$?
38357 grep -v '^ *+' conftest.er1 >conftest.err
38358 rm -f conftest.er1
38359 cat conftest.err >&5
38360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38361 (exit $ac_status); } &&
38362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38364 (eval $ac_try) 2>&5
38365 ac_status=$?
38366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38367 (exit $ac_status); }; } &&
38368 { ac_try='test -s conftest$ac_exeext'
38369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38370 (eval $ac_try) 2>&5
38371 ac_status=$?
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); }; }; then
38374 eval "$as_ac_var=yes"
38375 else
38376 echo "$as_me: failed program was:" >&5
38377 sed 's/^/| /' conftest.$ac_ext >&5
38378
38379 eval "$as_ac_var=no"
38380 fi
38381 rm -f conftest.err conftest.$ac_objext \
38382 conftest$ac_exeext conftest.$ac_ext
38383 fi
38384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38386 if test `eval echo '${'$as_ac_var'}'` = yes; then
38387 cat >>confdefs.h <<_ACEOF
38388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38389 _ACEOF
38390
38391 cat >>confdefs.h <<\_ACEOF
38392 #define HAVE_SHL_LOAD 1
38393 _ACEOF
38394
38395 HAVE_SHL_FUNCS=1
38396
38397 else
38398
38399 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
38400 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
38401 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
38402 echo $ECHO_N "(cached) $ECHO_C" >&6
38403 else
38404 ac_check_lib_save_LIBS=$LIBS
38405 LIBS="-lshl_load $LIBS"
38406 cat >conftest.$ac_ext <<_ACEOF
38407 /* confdefs.h. */
38408 _ACEOF
38409 cat confdefs.h >>conftest.$ac_ext
38410 cat >>conftest.$ac_ext <<_ACEOF
38411 /* end confdefs.h. */
38412
38413 /* Override any gcc2 internal prototype to avoid an error. */
38414 #ifdef __cplusplus
38415 extern "C"
38416 #endif
38417 /* We use char because int might match the return type of a gcc2
38418 builtin and then its argument prototype would still apply. */
38419 char dld ();
38420 int
38421 main ()
38422 {
38423 dld ();
38424 ;
38425 return 0;
38426 }
38427 _ACEOF
38428 rm -f conftest.$ac_objext conftest$ac_exeext
38429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38430 (eval $ac_link) 2>conftest.er1
38431 ac_status=$?
38432 grep -v '^ *+' conftest.er1 >conftest.err
38433 rm -f conftest.er1
38434 cat conftest.err >&5
38435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38436 (exit $ac_status); } &&
38437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38439 (eval $ac_try) 2>&5
38440 ac_status=$?
38441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442 (exit $ac_status); }; } &&
38443 { ac_try='test -s conftest$ac_exeext'
38444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38445 (eval $ac_try) 2>&5
38446 ac_status=$?
38447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38448 (exit $ac_status); }; }; then
38449 ac_cv_lib_shl_load_dld=yes
38450 else
38451 echo "$as_me: failed program was:" >&5
38452 sed 's/^/| /' conftest.$ac_ext >&5
38453
38454 ac_cv_lib_shl_load_dld=no
38455 fi
38456 rm -f conftest.err conftest.$ac_objext \
38457 conftest$ac_exeext conftest.$ac_ext
38458 LIBS=$ac_check_lib_save_LIBS
38459 fi
38460 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
38461 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
38462 if test $ac_cv_lib_shl_load_dld = yes; then
38463
38464 HAVE_SHL_FUNCS=1
38465 DL_LINK=" -ldld$DL_LINK"
38466
38467 fi
38468
38469
38470 fi
38471 done
38472
38473
38474 fi
38475
38476
38477 fi
38478 done
38479
38480
38481 if test "$HAVE_DL_FUNCS" = 1; then
38482
38483 for ac_func in dlerror
38484 do
38485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38486 echo "$as_me:$LINENO: checking for $ac_func" >&5
38487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38488 if eval "test \"\${$as_ac_var+set}\" = set"; then
38489 echo $ECHO_N "(cached) $ECHO_C" >&6
38490 else
38491 cat >conftest.$ac_ext <<_ACEOF
38492 /* confdefs.h. */
38493 _ACEOF
38494 cat confdefs.h >>conftest.$ac_ext
38495 cat >>conftest.$ac_ext <<_ACEOF
38496 /* end confdefs.h. */
38497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38499 #define $ac_func innocuous_$ac_func
38500
38501 /* System header to define __stub macros and hopefully few prototypes,
38502 which can conflict with char $ac_func (); below.
38503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38504 <limits.h> exists even on freestanding compilers. */
38505
38506 #ifdef __STDC__
38507 # include <limits.h>
38508 #else
38509 # include <assert.h>
38510 #endif
38511
38512 #undef $ac_func
38513
38514 /* Override any gcc2 internal prototype to avoid an error. */
38515 #ifdef __cplusplus
38516 extern "C"
38517 {
38518 #endif
38519 /* We use char because int might match the return type of a gcc2
38520 builtin and then its argument prototype would still apply. */
38521 char $ac_func ();
38522 /* The GNU C library defines this for functions which it implements
38523 to always fail with ENOSYS. Some functions are actually named
38524 something starting with __ and the normal name is an alias. */
38525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38526 choke me
38527 #else
38528 char (*f) () = $ac_func;
38529 #endif
38530 #ifdef __cplusplus
38531 }
38532 #endif
38533
38534 int
38535 main ()
38536 {
38537 return f != $ac_func;
38538 ;
38539 return 0;
38540 }
38541 _ACEOF
38542 rm -f conftest.$ac_objext conftest$ac_exeext
38543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38544 (eval $ac_link) 2>conftest.er1
38545 ac_status=$?
38546 grep -v '^ *+' conftest.er1 >conftest.err
38547 rm -f conftest.er1
38548 cat conftest.err >&5
38549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38550 (exit $ac_status); } &&
38551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38553 (eval $ac_try) 2>&5
38554 ac_status=$?
38555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38556 (exit $ac_status); }; } &&
38557 { ac_try='test -s conftest$ac_exeext'
38558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38559 (eval $ac_try) 2>&5
38560 ac_status=$?
38561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38562 (exit $ac_status); }; }; then
38563 eval "$as_ac_var=yes"
38564 else
38565 echo "$as_me: failed program was:" >&5
38566 sed 's/^/| /' conftest.$ac_ext >&5
38567
38568 eval "$as_ac_var=no"
38569 fi
38570 rm -f conftest.err conftest.$ac_objext \
38571 conftest$ac_exeext conftest.$ac_ext
38572 fi
38573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38575 if test `eval echo '${'$as_ac_var'}'` = yes; then
38576 cat >>confdefs.h <<_ACEOF
38577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38578 _ACEOF
38579 cat >>confdefs.h <<\_ACEOF
38580 #define HAVE_DLERROR 1
38581 _ACEOF
38582
38583 else
38584
38585 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
38586 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
38587 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
38588 echo $ECHO_N "(cached) $ECHO_C" >&6
38589 else
38590 ac_check_lib_save_LIBS=$LIBS
38591 LIBS="-ldl $LIBS"
38592 cat >conftest.$ac_ext <<_ACEOF
38593 /* confdefs.h. */
38594 _ACEOF
38595 cat confdefs.h >>conftest.$ac_ext
38596 cat >>conftest.$ac_ext <<_ACEOF
38597 /* end confdefs.h. */
38598
38599 /* Override any gcc2 internal prototype to avoid an error. */
38600 #ifdef __cplusplus
38601 extern "C"
38602 #endif
38603 /* We use char because int might match the return type of a gcc2
38604 builtin and then its argument prototype would still apply. */
38605 char dlerror ();
38606 int
38607 main ()
38608 {
38609 dlerror ();
38610 ;
38611 return 0;
38612 }
38613 _ACEOF
38614 rm -f conftest.$ac_objext conftest$ac_exeext
38615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38616 (eval $ac_link) 2>conftest.er1
38617 ac_status=$?
38618 grep -v '^ *+' conftest.er1 >conftest.err
38619 rm -f conftest.er1
38620 cat conftest.err >&5
38621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622 (exit $ac_status); } &&
38623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38625 (eval $ac_try) 2>&5
38626 ac_status=$?
38627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38628 (exit $ac_status); }; } &&
38629 { ac_try='test -s conftest$ac_exeext'
38630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38631 (eval $ac_try) 2>&5
38632 ac_status=$?
38633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38634 (exit $ac_status); }; }; then
38635 ac_cv_lib_dl_dlerror=yes
38636 else
38637 echo "$as_me: failed program was:" >&5
38638 sed 's/^/| /' conftest.$ac_ext >&5
38639
38640 ac_cv_lib_dl_dlerror=no
38641 fi
38642 rm -f conftest.err conftest.$ac_objext \
38643 conftest$ac_exeext conftest.$ac_ext
38644 LIBS=$ac_check_lib_save_LIBS
38645 fi
38646 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
38647 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
38648 if test $ac_cv_lib_dl_dlerror = yes; then
38649 cat >>confdefs.h <<\_ACEOF
38650 #define HAVE_DLERROR 1
38651 _ACEOF
38652
38653 fi
38654
38655
38656
38657 fi
38658 done
38659
38660 fi
38661 fi
38662
38663 if test "$HAVE_DL_FUNCS" = 0; then
38664 if test "$HAVE_SHL_FUNCS" = 0; then
38665 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
38666 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
38667 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
38668 wxUSE_DYNAMIC_LOADER=no
38669 wxUSE_DYNLIB_CLASS=no
38670 else
38671 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
38672 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
38673 fi
38674 fi
38675 fi
38676 fi
38677 fi
38678
38679 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
38680 cat >>confdefs.h <<\_ACEOF
38681 #define wxUSE_DYNAMIC_LOADER 1
38682 _ACEOF
38683
38684 fi
38685 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38686 cat >>confdefs.h <<\_ACEOF
38687 #define wxUSE_DYNLIB_CLASS 1
38688 _ACEOF
38689
38690 fi
38691
38692
38693
38694 if test "$wxUSE_PLUGINS" = "yes" ; then
38695 if test "$wxUSE_SHARED" = "no" ; then
38696 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
38697 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
38698 wxUSE_PLUGINS=no
38699 fi
38700 if test "$wxUSE_MONOLITHIC" = "yes" ; then
38701 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
38702 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
38703 wxUSE_PLUGINS=no
38704 fi
38705 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
38706 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
38707 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
38708 wxUSE_PLUGINS=no
38709 fi
38710 if test "$wxUSE_PLUGINS" = "yes" ; then
38711 cat >>confdefs.h <<\_ACEOF
38712 #define wxUSE_PLUGINS 1
38713 _ACEOF
38714
38715 fi
38716 fi
38717
38718
38719 if test "$wxUSE_STL" = "yes"; then
38720 cat >>confdefs.h <<\_ACEOF
38721 #define wxUSE_STL 1
38722 _ACEOF
38723
38724 fi
38725
38726 if test "$wxUSE_APPLE_IEEE" = "yes"; then
38727 cat >>confdefs.h <<\_ACEOF
38728 #define wxUSE_APPLE_IEEE 1
38729 _ACEOF
38730
38731 fi
38732
38733 if test "$wxUSE_TIMER" = "yes"; then
38734 cat >>confdefs.h <<\_ACEOF
38735 #define wxUSE_TIMER 1
38736 _ACEOF
38737
38738 fi
38739
38740 if test "$USE_UNIX" = "1" ; then
38741 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38742 echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38743 if test "${ac_cv_header_sys_soundcard+set}" = set; then
38744 echo $ECHO_N "(cached) $ECHO_C" >&6
38745 else
38746
38747 cat >conftest.$ac_ext <<_ACEOF
38748 /* confdefs.h. */
38749 _ACEOF
38750 cat confdefs.h >>conftest.$ac_ext
38751 cat >>conftest.$ac_ext <<_ACEOF
38752 /* end confdefs.h. */
38753
38754 #include <sys/soundcard.h>
38755
38756 int
38757 main ()
38758 {
38759
38760 ioctl(0, SNDCTL_DSP_SYNC, 0);
38761
38762 ;
38763 return 0;
38764 }
38765 _ACEOF
38766 rm -f conftest.$ac_objext conftest$ac_exeext
38767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38768 (eval $ac_link) 2>conftest.er1
38769 ac_status=$?
38770 grep -v '^ *+' conftest.er1 >conftest.err
38771 rm -f conftest.er1
38772 cat conftest.err >&5
38773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38774 (exit $ac_status); } &&
38775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38777 (eval $ac_try) 2>&5
38778 ac_status=$?
38779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780 (exit $ac_status); }; } &&
38781 { ac_try='test -s conftest$ac_exeext'
38782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38783 (eval $ac_try) 2>&5
38784 ac_status=$?
38785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38786 (exit $ac_status); }; }; then
38787 ac_cv_header_sys_soundcard=yes
38788 else
38789 echo "$as_me: failed program was:" >&5
38790 sed 's/^/| /' conftest.$ac_ext >&5
38791
38792
38793 saveLibs="$LIBS"
38794 LIBS="$saveLibs -lossaudio"
38795 cat >conftest.$ac_ext <<_ACEOF
38796 /* confdefs.h. */
38797 _ACEOF
38798 cat confdefs.h >>conftest.$ac_ext
38799 cat >>conftest.$ac_ext <<_ACEOF
38800 /* end confdefs.h. */
38801
38802 #include <sys/soundcard.h>
38803
38804 int
38805 main ()
38806 {
38807
38808 ioctl(0, SNDCTL_DSP_SYNC, 0);
38809
38810 ;
38811 return 0;
38812 }
38813 _ACEOF
38814 rm -f conftest.$ac_objext conftest$ac_exeext
38815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38816 (eval $ac_link) 2>conftest.er1
38817 ac_status=$?
38818 grep -v '^ *+' conftest.er1 >conftest.err
38819 rm -f conftest.er1
38820 cat conftest.err >&5
38821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822 (exit $ac_status); } &&
38823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38825 (eval $ac_try) 2>&5
38826 ac_status=$?
38827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828 (exit $ac_status); }; } &&
38829 { ac_try='test -s conftest$ac_exeext'
38830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38831 (eval $ac_try) 2>&5
38832 ac_status=$?
38833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834 (exit $ac_status); }; }; then
38835 ac_cv_header_sys_soundcard=yes
38836 else
38837 echo "$as_me: failed program was:" >&5
38838 sed 's/^/| /' conftest.$ac_ext >&5
38839
38840
38841 LIBS="$saveLibs"
38842 ac_cv_header_sys_soundcard=no
38843
38844
38845 fi
38846 rm -f conftest.err conftest.$ac_objext \
38847 conftest$ac_exeext conftest.$ac_ext
38848
38849
38850 fi
38851 rm -f conftest.err conftest.$ac_objext \
38852 conftest$ac_exeext conftest.$ac_ext
38853
38854 fi
38855 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38856 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
38857
38858 if test "$ac_cv_header_sys_soundcard" = "yes"; then
38859 cat >>confdefs.h <<\_ACEOF
38860 #define HAVE_SYS_SOUNDCARD_H 1
38861 _ACEOF
38862
38863 else
38864 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38865 fi
38866 fi
38867 WITH_PLUGIN_SDL=0
38868 if test "$wxUSE_SOUND" = "yes"; then
38869 if test "$USE_UNIX" = "1" ; then
38870 if test "$wxUSE_LIBSDL" != "no"; then
38871
38872 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38873 if test "${with_sdl_prefix+set}" = set; then
38874 withval="$with_sdl_prefix"
38875 sdl_prefix="$withval"
38876 else
38877 sdl_prefix=""
38878 fi;
38879
38880 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38881 if test "${with_sdl_exec_prefix+set}" = set; then
38882 withval="$with_sdl_exec_prefix"
38883 sdl_exec_prefix="$withval"
38884 else
38885 sdl_exec_prefix=""
38886 fi;
38887 # Check whether --enable-sdltest or --disable-sdltest was given.
38888 if test "${enable_sdltest+set}" = set; then
38889 enableval="$enable_sdltest"
38890
38891 else
38892 enable_sdltest=yes
38893 fi;
38894
38895 if test x$sdl_exec_prefix != x ; then
38896 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38897 if test x${SDL_CONFIG+set} != xset ; then
38898 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38899 fi
38900 fi
38901 if test x$sdl_prefix != x ; then
38902 sdl_args="$sdl_args --prefix=$sdl_prefix"
38903 if test x${SDL_CONFIG+set} != xset ; then
38904 SDL_CONFIG=$sdl_prefix/bin/sdl-config
38905 fi
38906 fi
38907
38908
38909 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38910 # Extract the first word of "sdl-config", so it can be a program name with args.
38911 set dummy sdl-config; ac_word=$2
38912 echo "$as_me:$LINENO: checking for $ac_word" >&5
38913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38914 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38915 echo $ECHO_N "(cached) $ECHO_C" >&6
38916 else
38917 case $SDL_CONFIG in
38918 [\\/]* | ?:[\\/]*)
38919 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38920 ;;
38921 *)
38922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38923 for as_dir in $PATH
38924 do
38925 IFS=$as_save_IFS
38926 test -z "$as_dir" && as_dir=.
38927 for ac_exec_ext in '' $ac_executable_extensions; do
38928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38929 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38931 break 2
38932 fi
38933 done
38934 done
38935
38936 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
38937 ;;
38938 esac
38939 fi
38940 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
38941
38942 if test -n "$SDL_CONFIG"; then
38943 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
38944 echo "${ECHO_T}$SDL_CONFIG" >&6
38945 else
38946 echo "$as_me:$LINENO: result: no" >&5
38947 echo "${ECHO_T}no" >&6
38948 fi
38949
38950 min_sdl_version=1.2.0
38951 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
38952 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
38953 no_sdl=""
38954 if test "$SDL_CONFIG" = "no" ; then
38955 no_sdl=yes
38956 else
38957 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
38958 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
38959
38960 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
38961 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38962 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
38963 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38964 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
38965 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38966 if test "x$enable_sdltest" = "xyes" ; then
38967 ac_save_CFLAGS="$CFLAGS"
38968 ac_save_CXXFLAGS="$CXXFLAGS"
38969 ac_save_LIBS="$LIBS"
38970 CFLAGS="$CFLAGS $SDL_CFLAGS"
38971 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
38972 LIBS="$LIBS $SDL_LIBS"
38973 rm -f conf.sdltest
38974 if test "$cross_compiling" = yes; then
38975 echo $ac_n "cross compiling; assumed OK... $ac_c"
38976 else
38977 cat >conftest.$ac_ext <<_ACEOF
38978 /* confdefs.h. */
38979 _ACEOF
38980 cat confdefs.h >>conftest.$ac_ext
38981 cat >>conftest.$ac_ext <<_ACEOF
38982 /* end confdefs.h. */
38983
38984 #include <stdio.h>
38985 #include <stdlib.h>
38986 #include <string.h>
38987 #include "SDL.h"
38988
38989 char*
38990 my_strdup (char *str)
38991 {
38992 char *new_str;
38993
38994 if (str)
38995 {
38996 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
38997 strcpy (new_str, str);
38998 }
38999 else
39000 new_str = NULL;
39001
39002 return new_str;
39003 }
39004
39005 int main (int argc, char *argv[])
39006 {
39007 int major, minor, micro;
39008 char *tmp_version;
39009
39010 /* This hangs on some systems (?)
39011 system ("touch conf.sdltest");
39012 */
39013 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
39014
39015 /* HP/UX 9 (%@#!) writes to sscanf strings */
39016 tmp_version = my_strdup("$min_sdl_version");
39017 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
39018 printf("%s, bad version string\n", "$min_sdl_version");
39019 exit(1);
39020 }
39021
39022 if (($sdl_major_version > major) ||
39023 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
39024 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
39025 {
39026 return 0;
39027 }
39028 else
39029 {
39030 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
39031 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
39032 printf("*** best to upgrade to the required version.\n");
39033 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
39034 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
39035 printf("*** config.cache before re-running configure\n");
39036 return 1;
39037 }
39038 }
39039
39040
39041 _ACEOF
39042 rm -f conftest$ac_exeext
39043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39044 (eval $ac_link) 2>&5
39045 ac_status=$?
39046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39049 (eval $ac_try) 2>&5
39050 ac_status=$?
39051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39052 (exit $ac_status); }; }; then
39053 :
39054 else
39055 echo "$as_me: program exited with status $ac_status" >&5
39056 echo "$as_me: failed program was:" >&5
39057 sed 's/^/| /' conftest.$ac_ext >&5
39058
39059 ( exit $ac_status )
39060 no_sdl=yes
39061 fi
39062 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39063 fi
39064 CFLAGS="$ac_save_CFLAGS"
39065 CXXFLAGS="$ac_save_CXXFLAGS"
39066 LIBS="$ac_save_LIBS"
39067 fi
39068 fi
39069 if test "x$no_sdl" = x ; then
39070 echo "$as_me:$LINENO: result: yes" >&5
39071 echo "${ECHO_T}yes" >&6
39072
39073 EXTRALIBS_SDL="$SDL_LIBS"
39074 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
39075 cat >>confdefs.h <<\_ACEOF
39076 #define wxUSE_LIBSDL 1
39077 _ACEOF
39078
39079
39080 else
39081 echo "$as_me:$LINENO: result: no" >&5
39082 echo "${ECHO_T}no" >&6
39083 if test "$SDL_CONFIG" = "no" ; then
39084 echo "*** The sdl-config script installed by SDL could not be found"
39085 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
39086 echo "*** your path, or set the SDL_CONFIG environment variable to the"
39087 echo "*** full path to sdl-config."
39088 else
39089 if test -f conf.sdltest ; then
39090 :
39091 else
39092 echo "*** Could not run SDL test program, checking why..."
39093 CFLAGS="$CFLAGS $SDL_CFLAGS"
39094 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
39095 LIBS="$LIBS $SDL_LIBS"
39096 cat >conftest.$ac_ext <<_ACEOF
39097 /* confdefs.h. */
39098 _ACEOF
39099 cat confdefs.h >>conftest.$ac_ext
39100 cat >>conftest.$ac_ext <<_ACEOF
39101 /* end confdefs.h. */
39102
39103 #include <stdio.h>
39104 #include "SDL.h"
39105
39106 int main(int argc, char *argv[])
39107 { return 0; }
39108 #undef main
39109 #define main K_and_R_C_main
39110
39111 int
39112 main ()
39113 {
39114 return 0;
39115 ;
39116 return 0;
39117 }
39118 _ACEOF
39119 rm -f conftest.$ac_objext conftest$ac_exeext
39120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39121 (eval $ac_link) 2>conftest.er1
39122 ac_status=$?
39123 grep -v '^ *+' conftest.er1 >conftest.err
39124 rm -f conftest.er1
39125 cat conftest.err >&5
39126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39127 (exit $ac_status); } &&
39128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39130 (eval $ac_try) 2>&5
39131 ac_status=$?
39132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39133 (exit $ac_status); }; } &&
39134 { ac_try='test -s conftest$ac_exeext'
39135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39136 (eval $ac_try) 2>&5
39137 ac_status=$?
39138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39139 (exit $ac_status); }; }; then
39140 echo "*** The test program compiled, but did not run. This usually means"
39141 echo "*** that the run-time linker is not finding SDL or finding the wrong"
39142 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
39143 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
39144 echo "*** to the installed location Also, make sure you have run ldconfig if that"
39145 echo "*** is required on your system"
39146 echo "***"
39147 echo "*** If you have an old version installed, it is best to remove it, although"
39148 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
39149 else
39150 echo "$as_me: failed program was:" >&5
39151 sed 's/^/| /' conftest.$ac_ext >&5
39152
39153 echo "*** The test program failed to compile or link. See the file config.log for the"
39154 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
39155 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
39156 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
39157 fi
39158 rm -f conftest.err conftest.$ac_objext \
39159 conftest$ac_exeext conftest.$ac_ext
39160 CFLAGS="$ac_save_CFLAGS"
39161 CXXFLAGS="$ac_save_CXXFLAGS"
39162 LIBS="$ac_save_LIBS"
39163 fi
39164 fi
39165 SDL_CFLAGS=""
39166 SDL_LIBS=""
39167 wxUSE_LIBSDL="no"
39168 fi
39169
39170
39171 rm -f conf.sdltest
39172
39173 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
39174 WITH_PLUGIN_SDL=1
39175 fi
39176 fi
39177 fi
39178
39179 cat >>confdefs.h <<\_ACEOF
39180 #define wxUSE_SOUND 1
39181 _ACEOF
39182
39183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
39184 fi
39185
39186 if test "$WXGTK20" = 1; then
39187 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39188 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
39189
39190
39191 succeeded=no
39192
39193 if test -z "$PKG_CONFIG"; then
39194 # Extract the first word of "pkg-config", so it can be a program name with args.
39195 set dummy pkg-config; ac_word=$2
39196 echo "$as_me:$LINENO: checking for $ac_word" >&5
39197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39198 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39199 echo $ECHO_N "(cached) $ECHO_C" >&6
39200 else
39201 case $PKG_CONFIG in
39202 [\\/]* | ?:[\\/]*)
39203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39204 ;;
39205 *)
39206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39207 for as_dir in $PATH
39208 do
39209 IFS=$as_save_IFS
39210 test -z "$as_dir" && as_dir=.
39211 for ac_exec_ext in '' $ac_executable_extensions; do
39212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39215 break 2
39216 fi
39217 done
39218 done
39219
39220 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39221 ;;
39222 esac
39223 fi
39224 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39225
39226 if test -n "$PKG_CONFIG"; then
39227 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39228 echo "${ECHO_T}$PKG_CONFIG" >&6
39229 else
39230 echo "$as_me:$LINENO: result: no" >&5
39231 echo "${ECHO_T}no" >&6
39232 fi
39233
39234 fi
39235
39236 if test "$PKG_CONFIG" = "no" ; then
39237 echo "*** The pkg-config script could not be found. Make sure it is"
39238 echo "*** in your path, or set the PKG_CONFIG environment variable"
39239 echo "*** to the full path to pkg-config."
39240 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39241 else
39242 PKG_CONFIG_MIN_VERSION=0.9.0
39243 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39244 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
39245 echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
39246
39247 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
39248 echo "$as_me:$LINENO: result: yes" >&5
39249 echo "${ECHO_T}yes" >&6
39250 succeeded=yes
39251
39252 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
39253 echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
39254 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
39255 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
39256 echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
39257
39258 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
39259 echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
39260 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
39261 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
39262 echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
39263 else
39264 LIBGNOMEPRINTUI_CFLAGS=""
39265 LIBGNOMEPRINTUI_LIBS=""
39266 ## If we have a custom action on failure, don't print errors, but
39267 ## do set a variable so people can do so.
39268 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
39269
39270 fi
39271
39272
39273
39274 else
39275 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39276 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39277 fi
39278 fi
39279
39280 if test $succeeded = yes; then
39281
39282 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
39283 cat >>confdefs.h <<\_ACEOF
39284 #define wxUSE_LIBGNOMEPRINT 1
39285 _ACEOF
39286
39287
39288 else
39289
39290 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
39291 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
39292 wxUSE_LIBGNOMEPRINT="no"
39293
39294
39295 fi
39296
39297 fi
39298 fi
39299 fi
39300
39301
39302 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
39303 cat >>confdefs.h <<\_ACEOF
39304 #define wxUSE_CMDLINE_PARSER 1
39305 _ACEOF
39306
39307 fi
39308
39309 if test "$wxUSE_STOPWATCH" = "yes"; then
39310 cat >>confdefs.h <<\_ACEOF
39311 #define wxUSE_STOPWATCH 1
39312 _ACEOF
39313
39314 fi
39315
39316 if test "$wxUSE_DATETIME" = "yes"; then
39317 cat >>confdefs.h <<\_ACEOF
39318 #define wxUSE_DATETIME 1
39319 _ACEOF
39320
39321 fi
39322
39323 if test "$wxUSE_FILE" = "yes"; then
39324 cat >>confdefs.h <<\_ACEOF
39325 #define wxUSE_FILE 1
39326 _ACEOF
39327
39328 fi
39329
39330 if test "$wxUSE_FFILE" = "yes"; then
39331 cat >>confdefs.h <<\_ACEOF
39332 #define wxUSE_FFILE 1
39333 _ACEOF
39334
39335 fi
39336
39337 if test "$wxUSE_FILESYSTEM" = "yes"; then
39338 cat >>confdefs.h <<\_ACEOF
39339 #define wxUSE_FILESYSTEM 1
39340 _ACEOF
39341
39342 fi
39343
39344 if test "$wxUSE_FS_ZIP" = "yes"; then
39345 cat >>confdefs.h <<\_ACEOF
39346 #define wxUSE_FS_ZIP 1
39347 _ACEOF
39348
39349 fi
39350
39351 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
39352 cat >>confdefs.h <<\_ACEOF
39353 #define wxUSE_ARCHIVE_STREAMS 1
39354 _ACEOF
39355
39356 fi
39357
39358 if test "$wxUSE_ZIPSTREAM" = "yes"; then
39359 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
39360 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
39361 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
39362 elif test "$wxUSE_ZLIB" = "no"; then
39363 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
39364 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
39365 else
39366 cat >>confdefs.h <<\_ACEOF
39367 #define wxUSE_ZIPSTREAM 1
39368 _ACEOF
39369
39370 fi
39371 fi
39372
39373 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39374 if test "$USE_UNIX" != 1; then
39375 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
39376 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
39377 wxUSE_ON_FATAL_EXCEPTION=no
39378 else
39379 cat >>confdefs.h <<\_ACEOF
39380 #define wxUSE_ON_FATAL_EXCEPTION 1
39381 _ACEOF
39382
39383 fi
39384 fi
39385
39386 if test "$wxUSE_STACKWALKER" = "yes"; then
39387 cat >>confdefs.h <<\_ACEOF
39388 #define wxUSE_STACKWALKER 1
39389 _ACEOF
39390
39391 fi
39392
39393 if test "$wxUSE_DEBUGREPORT" = "yes"; then
39394 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
39395 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
39396 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
39397 wxUSE_DEBUGREPORT=no
39398 else
39399 cat >>confdefs.h <<\_ACEOF
39400 #define wxUSE_DEBUGREPORT 1
39401 _ACEOF
39402
39403 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
39405 fi
39406 fi
39407 fi
39408
39409 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39410 cat >>confdefs.h <<\_ACEOF
39411 #define wxUSE_SNGLINST_CHECKER 1
39412 _ACEOF
39413
39414 fi
39415
39416 if test "$wxUSE_BUSYINFO" = "yes"; then
39417 cat >>confdefs.h <<\_ACEOF
39418 #define wxUSE_BUSYINFO 1
39419 _ACEOF
39420
39421 fi
39422
39423 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
39424 cat >>confdefs.h <<\_ACEOF
39425 #define wxUSE_STD_IOSTREAM 1
39426 _ACEOF
39427
39428 fi
39429
39430 if test "$wxUSE_STD_STRING" = "yes"; then
39431 cat >>confdefs.h <<\_ACEOF
39432 #define wxUSE_STD_STRING 1
39433 _ACEOF
39434
39435 fi
39436
39437 if test "$wxUSE_STDPATHS" = "yes"; then
39438 cat >>confdefs.h <<\_ACEOF
39439 #define wxUSE_STDPATHS 1
39440 _ACEOF
39441
39442 fi
39443
39444 if test "$wxUSE_TEXTBUFFER" = "yes"; then
39445 cat >>confdefs.h <<\_ACEOF
39446 #define wxUSE_TEXTBUFFER 1
39447 _ACEOF
39448
39449 fi
39450
39451 if test "$wxUSE_TEXTFILE" = "yes"; then
39452 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
39453 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
39454 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
39455 else
39456 cat >>confdefs.h <<\_ACEOF
39457 #define wxUSE_TEXTFILE 1
39458 _ACEOF
39459
39460 fi
39461 fi
39462
39463 if test "$wxUSE_CONFIG" = "yes" ; then
39464 if test "$wxUSE_TEXTFILE" != "yes"; then
39465 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
39466 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
39467 else
39468 cat >>confdefs.h <<\_ACEOF
39469 #define wxUSE_CONFIG 1
39470 _ACEOF
39471
39472 cat >>confdefs.h <<\_ACEOF
39473 #define wxUSE_CONFIG_NATIVE 1
39474 _ACEOF
39475
39476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
39477 fi
39478 fi
39479
39480 if test "$wxUSE_INTL" = "yes" ; then
39481 if test "$wxUSE_FILE" != "yes"; then
39482 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
39483 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
39484 else
39485 cat >>confdefs.h <<\_ACEOF
39486 #define wxUSE_INTL 1
39487 _ACEOF
39488
39489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
39490 GUIDIST="$GUIDIST INTL_DIST"
39491 fi
39492 fi
39493
39494 if test "$wxUSE_LOG" = "yes"; then
39495 cat >>confdefs.h <<\_ACEOF
39496 #define wxUSE_LOG 1
39497 _ACEOF
39498
39499
39500 if test "$wxUSE_LOGGUI" = "yes"; then
39501 cat >>confdefs.h <<\_ACEOF
39502 #define wxUSE_LOGGUI 1
39503 _ACEOF
39504
39505 fi
39506
39507 if test "$wxUSE_LOGWINDOW" = "yes"; then
39508 cat >>confdefs.h <<\_ACEOF
39509 #define wxUSE_LOGWINDOW 1
39510 _ACEOF
39511
39512 fi
39513
39514 if test "$wxUSE_LOGDIALOG" = "yes"; then
39515 cat >>confdefs.h <<\_ACEOF
39516 #define wxUSE_LOG_DIALOG 1
39517 _ACEOF
39518
39519 fi
39520
39521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
39522 fi
39523
39524 if test "$wxUSE_LONGLONG" = "yes"; then
39525 cat >>confdefs.h <<\_ACEOF
39526 #define wxUSE_LONGLONG 1
39527 _ACEOF
39528
39529 fi
39530
39531 if test "$wxUSE_GEOMETRY" = "yes"; then
39532 cat >>confdefs.h <<\_ACEOF
39533 #define wxUSE_GEOMETRY 1
39534 _ACEOF
39535
39536 fi
39537
39538 if test "$wxUSE_STREAMS" = "yes" ; then
39539 cat >>confdefs.h <<\_ACEOF
39540 #define wxUSE_STREAMS 1
39541 _ACEOF
39542
39543 fi
39544
39545
39546 if test "$wxUSE_DATETIME" = "yes"; then
39547
39548 for ac_func in strptime
39549 do
39550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39551 echo "$as_me:$LINENO: checking for $ac_func" >&5
39552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39553 if eval "test \"\${$as_ac_var+set}\" = set"; then
39554 echo $ECHO_N "(cached) $ECHO_C" >&6
39555 else
39556 cat >conftest.$ac_ext <<_ACEOF
39557 /* confdefs.h. */
39558 _ACEOF
39559 cat confdefs.h >>conftest.$ac_ext
39560 cat >>conftest.$ac_ext <<_ACEOF
39561 /* end confdefs.h. */
39562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39564 #define $ac_func innocuous_$ac_func
39565
39566 /* System header to define __stub macros and hopefully few prototypes,
39567 which can conflict with char $ac_func (); below.
39568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39569 <limits.h> exists even on freestanding compilers. */
39570
39571 #ifdef __STDC__
39572 # include <limits.h>
39573 #else
39574 # include <assert.h>
39575 #endif
39576
39577 #undef $ac_func
39578
39579 /* Override any gcc2 internal prototype to avoid an error. */
39580 #ifdef __cplusplus
39581 extern "C"
39582 {
39583 #endif
39584 /* We use char because int might match the return type of a gcc2
39585 builtin and then its argument prototype would still apply. */
39586 char $ac_func ();
39587 /* The GNU C library defines this for functions which it implements
39588 to always fail with ENOSYS. Some functions are actually named
39589 something starting with __ and the normal name is an alias. */
39590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39591 choke me
39592 #else
39593 char (*f) () = $ac_func;
39594 #endif
39595 #ifdef __cplusplus
39596 }
39597 #endif
39598
39599 int
39600 main ()
39601 {
39602 return f != $ac_func;
39603 ;
39604 return 0;
39605 }
39606 _ACEOF
39607 rm -f conftest.$ac_objext conftest$ac_exeext
39608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39609 (eval $ac_link) 2>conftest.er1
39610 ac_status=$?
39611 grep -v '^ *+' conftest.er1 >conftest.err
39612 rm -f conftest.er1
39613 cat conftest.err >&5
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); } &&
39616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39618 (eval $ac_try) 2>&5
39619 ac_status=$?
39620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39621 (exit $ac_status); }; } &&
39622 { ac_try='test -s conftest$ac_exeext'
39623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39624 (eval $ac_try) 2>&5
39625 ac_status=$?
39626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39627 (exit $ac_status); }; }; then
39628 eval "$as_ac_var=yes"
39629 else
39630 echo "$as_me: failed program was:" >&5
39631 sed 's/^/| /' conftest.$ac_ext >&5
39632
39633 eval "$as_ac_var=no"
39634 fi
39635 rm -f conftest.err conftest.$ac_objext \
39636 conftest$ac_exeext conftest.$ac_ext
39637 fi
39638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39640 if test `eval echo '${'$as_ac_var'}'` = yes; then
39641 cat >>confdefs.h <<_ACEOF
39642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39643 _ACEOF
39644
39645 fi
39646 done
39647
39648 if test "$ac_cv_func_strptime" = "yes"; then
39649 echo "$as_me:$LINENO: checking for strptime declaration" >&5
39650 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
39651 if test "${wx_cv_func_strptime_decl+set}" = set; then
39652 echo $ECHO_N "(cached) $ECHO_C" >&6
39653 else
39654
39655
39656
39657 ac_ext=cc
39658 ac_cpp='$CXXCPP $CPPFLAGS'
39659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39662
39663 cat >conftest.$ac_ext <<_ACEOF
39664 /* confdefs.h. */
39665 _ACEOF
39666 cat confdefs.h >>conftest.$ac_ext
39667 cat >>conftest.$ac_ext <<_ACEOF
39668 /* end confdefs.h. */
39669
39670 #include <time.h>
39671
39672 int
39673 main ()
39674 {
39675
39676 struct tm t;
39677 strptime("foo", "bar", &t);
39678
39679 ;
39680 return 0;
39681 }
39682 _ACEOF
39683 rm -f conftest.$ac_objext
39684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39685 (eval $ac_compile) 2>conftest.er1
39686 ac_status=$?
39687 grep -v '^ *+' conftest.er1 >conftest.err
39688 rm -f conftest.er1
39689 cat conftest.err >&5
39690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39691 (exit $ac_status); } &&
39692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39694 (eval $ac_try) 2>&5
39695 ac_status=$?
39696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39697 (exit $ac_status); }; } &&
39698 { ac_try='test -s conftest.$ac_objext'
39699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39700 (eval $ac_try) 2>&5
39701 ac_status=$?
39702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703 (exit $ac_status); }; }; then
39704 wx_cv_func_strptime_decl=yes
39705 else
39706 echo "$as_me: failed program was:" >&5
39707 sed 's/^/| /' conftest.$ac_ext >&5
39708
39709 wx_cv_func_strptime_decl=no
39710
39711 fi
39712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39713 ac_ext=c
39714 ac_cpp='$CPP $CPPFLAGS'
39715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39718
39719
39720
39721 fi
39722 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
39723 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
39724 fi
39725 if test "$wx_cv_func_strptime_decl" = "yes"; then
39726 cat >>confdefs.h <<\_ACEOF
39727 #define HAVE_STRPTIME_DECL 1
39728 _ACEOF
39729
39730 fi
39731
39732 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
39733 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
39734 if test "${wx_cv_var_timezone+set}" = set; then
39735 echo $ECHO_N "(cached) $ECHO_C" >&6
39736 else
39737
39738 cat >conftest.$ac_ext <<_ACEOF
39739 /* confdefs.h. */
39740 _ACEOF
39741 cat confdefs.h >>conftest.$ac_ext
39742 cat >>conftest.$ac_ext <<_ACEOF
39743 /* end confdefs.h. */
39744
39745 #include <time.h>
39746
39747 int
39748 main ()
39749 {
39750
39751 int tz;
39752 tz = timezone;
39753
39754 ;
39755 return 0;
39756 }
39757 _ACEOF
39758 rm -f conftest.$ac_objext
39759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39760 (eval $ac_compile) 2>conftest.er1
39761 ac_status=$?
39762 grep -v '^ *+' conftest.er1 >conftest.err
39763 rm -f conftest.er1
39764 cat conftest.err >&5
39765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766 (exit $ac_status); } &&
39767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39769 (eval $ac_try) 2>&5
39770 ac_status=$?
39771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39772 (exit $ac_status); }; } &&
39773 { ac_try='test -s conftest.$ac_objext'
39774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39775 (eval $ac_try) 2>&5
39776 ac_status=$?
39777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39778 (exit $ac_status); }; }; then
39779
39780 wx_cv_var_timezone=timezone
39781
39782 else
39783 echo "$as_me: failed program was:" >&5
39784 sed 's/^/| /' conftest.$ac_ext >&5
39785
39786
39787 cat >conftest.$ac_ext <<_ACEOF
39788 /* confdefs.h. */
39789 _ACEOF
39790 cat confdefs.h >>conftest.$ac_ext
39791 cat >>conftest.$ac_ext <<_ACEOF
39792 /* end confdefs.h. */
39793
39794 #include <time.h>
39795
39796 int
39797 main ()
39798 {
39799
39800 int tz;
39801 tz = _timezone;
39802
39803 ;
39804 return 0;
39805 }
39806 _ACEOF
39807 rm -f conftest.$ac_objext
39808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39809 (eval $ac_compile) 2>conftest.er1
39810 ac_status=$?
39811 grep -v '^ *+' conftest.er1 >conftest.err
39812 rm -f conftest.er1
39813 cat conftest.err >&5
39814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39815 (exit $ac_status); } &&
39816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39818 (eval $ac_try) 2>&5
39819 ac_status=$?
39820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39821 (exit $ac_status); }; } &&
39822 { ac_try='test -s conftest.$ac_objext'
39823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39824 (eval $ac_try) 2>&5
39825 ac_status=$?
39826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39827 (exit $ac_status); }; }; then
39828
39829 wx_cv_var_timezone=_timezone
39830
39831 else
39832 echo "$as_me: failed program was:" >&5
39833 sed 's/^/| /' conftest.$ac_ext >&5
39834
39835
39836 cat >conftest.$ac_ext <<_ACEOF
39837 /* confdefs.h. */
39838 _ACEOF
39839 cat confdefs.h >>conftest.$ac_ext
39840 cat >>conftest.$ac_ext <<_ACEOF
39841 /* end confdefs.h. */
39842
39843 #include <time.h>
39844
39845 int
39846 main ()
39847 {
39848
39849 int tz;
39850 tz = __timezone;
39851
39852 ;
39853 return 0;
39854 }
39855 _ACEOF
39856 rm -f conftest.$ac_objext
39857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39858 (eval $ac_compile) 2>conftest.er1
39859 ac_status=$?
39860 grep -v '^ *+' conftest.er1 >conftest.err
39861 rm -f conftest.er1
39862 cat conftest.err >&5
39863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39864 (exit $ac_status); } &&
39865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39867 (eval $ac_try) 2>&5
39868 ac_status=$?
39869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39870 (exit $ac_status); }; } &&
39871 { ac_try='test -s conftest.$ac_objext'
39872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39873 (eval $ac_try) 2>&5
39874 ac_status=$?
39875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39876 (exit $ac_status); }; }; then
39877
39878 wx_cv_var_timezone=__timezone
39879
39880 else
39881 echo "$as_me: failed program was:" >&5
39882 sed 's/^/| /' conftest.$ac_ext >&5
39883
39884
39885 if test "$USE_DOS" = 0 ; then
39886 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39887 echo "$as_me: WARNING: no timezone variable" >&2;}
39888 fi
39889
39890
39891 fi
39892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39893
39894
39895 fi
39896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39897
39898
39899 fi
39900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39901
39902
39903 fi
39904 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39905 echo "${ECHO_T}$wx_cv_var_timezone" >&6
39906
39907 if test "x$wx_cv_var_timezone" != x ; then
39908 cat >>confdefs.h <<_ACEOF
39909 #define WX_TIMEZONE $wx_cv_var_timezone
39910 _ACEOF
39911
39912 fi
39913
39914
39915 for ac_func in localtime
39916 do
39917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39918 echo "$as_me:$LINENO: checking for $ac_func" >&5
39919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39920 if eval "test \"\${$as_ac_var+set}\" = set"; then
39921 echo $ECHO_N "(cached) $ECHO_C" >&6
39922 else
39923 cat >conftest.$ac_ext <<_ACEOF
39924 /* confdefs.h. */
39925 _ACEOF
39926 cat confdefs.h >>conftest.$ac_ext
39927 cat >>conftest.$ac_ext <<_ACEOF
39928 /* end confdefs.h. */
39929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39931 #define $ac_func innocuous_$ac_func
39932
39933 /* System header to define __stub macros and hopefully few prototypes,
39934 which can conflict with char $ac_func (); below.
39935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39936 <limits.h> exists even on freestanding compilers. */
39937
39938 #ifdef __STDC__
39939 # include <limits.h>
39940 #else
39941 # include <assert.h>
39942 #endif
39943
39944 #undef $ac_func
39945
39946 /* Override any gcc2 internal prototype to avoid an error. */
39947 #ifdef __cplusplus
39948 extern "C"
39949 {
39950 #endif
39951 /* We use char because int might match the return type of a gcc2
39952 builtin and then its argument prototype would still apply. */
39953 char $ac_func ();
39954 /* The GNU C library defines this for functions which it implements
39955 to always fail with ENOSYS. Some functions are actually named
39956 something starting with __ and the normal name is an alias. */
39957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39958 choke me
39959 #else
39960 char (*f) () = $ac_func;
39961 #endif
39962 #ifdef __cplusplus
39963 }
39964 #endif
39965
39966 int
39967 main ()
39968 {
39969 return f != $ac_func;
39970 ;
39971 return 0;
39972 }
39973 _ACEOF
39974 rm -f conftest.$ac_objext conftest$ac_exeext
39975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39976 (eval $ac_link) 2>conftest.er1
39977 ac_status=$?
39978 grep -v '^ *+' conftest.er1 >conftest.err
39979 rm -f conftest.er1
39980 cat conftest.err >&5
39981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39982 (exit $ac_status); } &&
39983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39985 (eval $ac_try) 2>&5
39986 ac_status=$?
39987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39988 (exit $ac_status); }; } &&
39989 { ac_try='test -s conftest$ac_exeext'
39990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39991 (eval $ac_try) 2>&5
39992 ac_status=$?
39993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39994 (exit $ac_status); }; }; then
39995 eval "$as_ac_var=yes"
39996 else
39997 echo "$as_me: failed program was:" >&5
39998 sed 's/^/| /' conftest.$ac_ext >&5
39999
40000 eval "$as_ac_var=no"
40001 fi
40002 rm -f conftest.err conftest.$ac_objext \
40003 conftest$ac_exeext conftest.$ac_ext
40004 fi
40005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40007 if test `eval echo '${'$as_ac_var'}'` = yes; then
40008 cat >>confdefs.h <<_ACEOF
40009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40010 _ACEOF
40011
40012 fi
40013 done
40014
40015
40016 if test "$ac_cv_func_localtime" = "yes"; then
40017 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
40018 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
40019 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
40020 echo $ECHO_N "(cached) $ECHO_C" >&6
40021 else
40022
40023 cat >conftest.$ac_ext <<_ACEOF
40024 /* confdefs.h. */
40025 _ACEOF
40026 cat confdefs.h >>conftest.$ac_ext
40027 cat >>conftest.$ac_ext <<_ACEOF
40028 /* end confdefs.h. */
40029
40030 #include <time.h>
40031
40032 int
40033 main ()
40034 {
40035
40036 struct tm tm;
40037 tm.tm_gmtoff++;
40038
40039 ;
40040 return 0;
40041 }
40042 _ACEOF
40043 rm -f conftest.$ac_objext
40044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40045 (eval $ac_compile) 2>conftest.er1
40046 ac_status=$?
40047 grep -v '^ *+' conftest.er1 >conftest.err
40048 rm -f conftest.er1
40049 cat conftest.err >&5
40050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40051 (exit $ac_status); } &&
40052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40054 (eval $ac_try) 2>&5
40055 ac_status=$?
40056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40057 (exit $ac_status); }; } &&
40058 { ac_try='test -s conftest.$ac_objext'
40059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40060 (eval $ac_try) 2>&5
40061 ac_status=$?
40062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40063 (exit $ac_status); }; }; then
40064
40065 wx_cv_struct_tm_has_gmtoff=yes
40066
40067 else
40068 echo "$as_me: failed program was:" >&5
40069 sed 's/^/| /' conftest.$ac_ext >&5
40070
40071 wx_cv_struct_tm_has_gmtoff=no
40072
40073 fi
40074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40075
40076 fi
40077 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
40078 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
40079 fi
40080
40081 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
40082 cat >>confdefs.h <<\_ACEOF
40083 #define WX_GMTOFF_IN_TM 1
40084 _ACEOF
40085
40086 fi
40087
40088
40089
40090 for ac_func in gettimeofday ftime
40091 do
40092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40093 echo "$as_me:$LINENO: checking for $ac_func" >&5
40094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40095 if eval "test \"\${$as_ac_var+set}\" = set"; then
40096 echo $ECHO_N "(cached) $ECHO_C" >&6
40097 else
40098 cat >conftest.$ac_ext <<_ACEOF
40099 /* confdefs.h. */
40100 _ACEOF
40101 cat confdefs.h >>conftest.$ac_ext
40102 cat >>conftest.$ac_ext <<_ACEOF
40103 /* end confdefs.h. */
40104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40106 #define $ac_func innocuous_$ac_func
40107
40108 /* System header to define __stub macros and hopefully few prototypes,
40109 which can conflict with char $ac_func (); below.
40110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40111 <limits.h> exists even on freestanding compilers. */
40112
40113 #ifdef __STDC__
40114 # include <limits.h>
40115 #else
40116 # include <assert.h>
40117 #endif
40118
40119 #undef $ac_func
40120
40121 /* Override any gcc2 internal prototype to avoid an error. */
40122 #ifdef __cplusplus
40123 extern "C"
40124 {
40125 #endif
40126 /* We use char because int might match the return type of a gcc2
40127 builtin and then its argument prototype would still apply. */
40128 char $ac_func ();
40129 /* The GNU C library defines this for functions which it implements
40130 to always fail with ENOSYS. Some functions are actually named
40131 something starting with __ and the normal name is an alias. */
40132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40133 choke me
40134 #else
40135 char (*f) () = $ac_func;
40136 #endif
40137 #ifdef __cplusplus
40138 }
40139 #endif
40140
40141 int
40142 main ()
40143 {
40144 return f != $ac_func;
40145 ;
40146 return 0;
40147 }
40148 _ACEOF
40149 rm -f conftest.$ac_objext conftest$ac_exeext
40150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40151 (eval $ac_link) 2>conftest.er1
40152 ac_status=$?
40153 grep -v '^ *+' conftest.er1 >conftest.err
40154 rm -f conftest.er1
40155 cat conftest.err >&5
40156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40157 (exit $ac_status); } &&
40158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40160 (eval $ac_try) 2>&5
40161 ac_status=$?
40162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40163 (exit $ac_status); }; } &&
40164 { ac_try='test -s conftest$ac_exeext'
40165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40166 (eval $ac_try) 2>&5
40167 ac_status=$?
40168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40169 (exit $ac_status); }; }; then
40170 eval "$as_ac_var=yes"
40171 else
40172 echo "$as_me: failed program was:" >&5
40173 sed 's/^/| /' conftest.$ac_ext >&5
40174
40175 eval "$as_ac_var=no"
40176 fi
40177 rm -f conftest.err conftest.$ac_objext \
40178 conftest$ac_exeext conftest.$ac_ext
40179 fi
40180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40182 if test `eval echo '${'$as_ac_var'}'` = yes; then
40183 cat >>confdefs.h <<_ACEOF
40184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40185 _ACEOF
40186 break
40187 fi
40188 done
40189
40190
40191 if test "$ac_cv_func_gettimeofday" = "yes"; then
40192 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
40193 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
40194 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
40195 echo $ECHO_N "(cached) $ECHO_C" >&6
40196 else
40197
40198
40199
40200 ac_ext=cc
40201 ac_cpp='$CXXCPP $CPPFLAGS'
40202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40205
40206
40207 cat >conftest.$ac_ext <<_ACEOF
40208 /* confdefs.h. */
40209 _ACEOF
40210 cat confdefs.h >>conftest.$ac_ext
40211 cat >>conftest.$ac_ext <<_ACEOF
40212 /* end confdefs.h. */
40213
40214 #include <sys/time.h>
40215 #include <unistd.h>
40216
40217 int
40218 main ()
40219 {
40220
40221 struct timeval tv;
40222 gettimeofday(&tv, NULL);
40223
40224 ;
40225 return 0;
40226 }
40227 _ACEOF
40228 rm -f conftest.$ac_objext
40229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40230 (eval $ac_compile) 2>conftest.er1
40231 ac_status=$?
40232 grep -v '^ *+' conftest.er1 >conftest.err
40233 rm -f conftest.er1
40234 cat conftest.err >&5
40235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236 (exit $ac_status); } &&
40237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40239 (eval $ac_try) 2>&5
40240 ac_status=$?
40241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40242 (exit $ac_status); }; } &&
40243 { ac_try='test -s conftest.$ac_objext'
40244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40245 (eval $ac_try) 2>&5
40246 ac_status=$?
40247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40248 (exit $ac_status); }; }; then
40249 wx_cv_func_gettimeofday_has_2_args=yes
40250 else
40251 echo "$as_me: failed program was:" >&5
40252 sed 's/^/| /' conftest.$ac_ext >&5
40253
40254 cat >conftest.$ac_ext <<_ACEOF
40255 /* confdefs.h. */
40256 _ACEOF
40257 cat confdefs.h >>conftest.$ac_ext
40258 cat >>conftest.$ac_ext <<_ACEOF
40259 /* end confdefs.h. */
40260
40261 #include <sys/time.h>
40262 #include <unistd.h>
40263
40264 int
40265 main ()
40266 {
40267
40268 struct timeval tv;
40269 gettimeofday(&tv);
40270
40271 ;
40272 return 0;
40273 }
40274 _ACEOF
40275 rm -f conftest.$ac_objext
40276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40277 (eval $ac_compile) 2>conftest.er1
40278 ac_status=$?
40279 grep -v '^ *+' conftest.er1 >conftest.err
40280 rm -f conftest.er1
40281 cat conftest.err >&5
40282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40283 (exit $ac_status); } &&
40284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40286 (eval $ac_try) 2>&5
40287 ac_status=$?
40288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289 (exit $ac_status); }; } &&
40290 { ac_try='test -s conftest.$ac_objext'
40291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40292 (eval $ac_try) 2>&5
40293 ac_status=$?
40294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40295 (exit $ac_status); }; }; then
40296 wx_cv_func_gettimeofday_has_2_args=no
40297 else
40298 echo "$as_me: failed program was:" >&5
40299 sed 's/^/| /' conftest.$ac_ext >&5
40300
40301
40302 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
40303 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
40304 wx_cv_func_gettimeofday_has_2_args=unknown
40305
40306
40307 fi
40308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40309
40310 fi
40311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40312 ac_ext=c
40313 ac_cpp='$CPP $CPPFLAGS'
40314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40317
40318
40319 fi
40320 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
40321 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
40322
40323 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
40324 cat >>confdefs.h <<\_ACEOF
40325 #define WX_GETTIMEOFDAY_NO_TZ 1
40326 _ACEOF
40327
40328 fi
40329 fi
40330
40331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
40332 fi
40333
40334
40335 if test "$wxUSE_SOCKETS" = "yes"; then
40336 if test "$wxUSE_MGL" = "1"; then
40337 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
40338 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
40339 wxUSE_SOCKETS="no"
40340 fi
40341 fi
40342
40343 if test "$wxUSE_SOCKETS" = "yes"; then
40344 if test "$TOOLKIT" != "MSW"; then
40345 echo "$as_me:$LINENO: checking for socket" >&5
40346 echo $ECHO_N "checking for socket... $ECHO_C" >&6
40347 if test "${ac_cv_func_socket+set}" = set; then
40348 echo $ECHO_N "(cached) $ECHO_C" >&6
40349 else
40350 cat >conftest.$ac_ext <<_ACEOF
40351 /* confdefs.h. */
40352 _ACEOF
40353 cat confdefs.h >>conftest.$ac_ext
40354 cat >>conftest.$ac_ext <<_ACEOF
40355 /* end confdefs.h. */
40356 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
40357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40358 #define socket innocuous_socket
40359
40360 /* System header to define __stub macros and hopefully few prototypes,
40361 which can conflict with char socket (); below.
40362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40363 <limits.h> exists even on freestanding compilers. */
40364
40365 #ifdef __STDC__
40366 # include <limits.h>
40367 #else
40368 # include <assert.h>
40369 #endif
40370
40371 #undef socket
40372
40373 /* Override any gcc2 internal prototype to avoid an error. */
40374 #ifdef __cplusplus
40375 extern "C"
40376 {
40377 #endif
40378 /* We use char because int might match the return type of a gcc2
40379 builtin and then its argument prototype would still apply. */
40380 char socket ();
40381 /* The GNU C library defines this for functions which it implements
40382 to always fail with ENOSYS. Some functions are actually named
40383 something starting with __ and the normal name is an alias. */
40384 #if defined (__stub_socket) || defined (__stub___socket)
40385 choke me
40386 #else
40387 char (*f) () = socket;
40388 #endif
40389 #ifdef __cplusplus
40390 }
40391 #endif
40392
40393 int
40394 main ()
40395 {
40396 return f != socket;
40397 ;
40398 return 0;
40399 }
40400 _ACEOF
40401 rm -f conftest.$ac_objext conftest$ac_exeext
40402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40403 (eval $ac_link) 2>conftest.er1
40404 ac_status=$?
40405 grep -v '^ *+' conftest.er1 >conftest.err
40406 rm -f conftest.er1
40407 cat conftest.err >&5
40408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40409 (exit $ac_status); } &&
40410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40412 (eval $ac_try) 2>&5
40413 ac_status=$?
40414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40415 (exit $ac_status); }; } &&
40416 { ac_try='test -s conftest$ac_exeext'
40417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40418 (eval $ac_try) 2>&5
40419 ac_status=$?
40420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40421 (exit $ac_status); }; }; then
40422 ac_cv_func_socket=yes
40423 else
40424 echo "$as_me: failed program was:" >&5
40425 sed 's/^/| /' conftest.$ac_ext >&5
40426
40427 ac_cv_func_socket=no
40428 fi
40429 rm -f conftest.err conftest.$ac_objext \
40430 conftest$ac_exeext conftest.$ac_ext
40431 fi
40432 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
40433 echo "${ECHO_T}$ac_cv_func_socket" >&6
40434 if test $ac_cv_func_socket = yes; then
40435 :
40436 else
40437
40438 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
40439 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
40440 if test "${ac_cv_lib_socket_socket+set}" = set; then
40441 echo $ECHO_N "(cached) $ECHO_C" >&6
40442 else
40443 ac_check_lib_save_LIBS=$LIBS
40444 LIBS="-lsocket $LIBS"
40445 cat >conftest.$ac_ext <<_ACEOF
40446 /* confdefs.h. */
40447 _ACEOF
40448 cat confdefs.h >>conftest.$ac_ext
40449 cat >>conftest.$ac_ext <<_ACEOF
40450 /* end confdefs.h. */
40451
40452 /* Override any gcc2 internal prototype to avoid an error. */
40453 #ifdef __cplusplus
40454 extern "C"
40455 #endif
40456 /* We use char because int might match the return type of a gcc2
40457 builtin and then its argument prototype would still apply. */
40458 char socket ();
40459 int
40460 main ()
40461 {
40462 socket ();
40463 ;
40464 return 0;
40465 }
40466 _ACEOF
40467 rm -f conftest.$ac_objext conftest$ac_exeext
40468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40469 (eval $ac_link) 2>conftest.er1
40470 ac_status=$?
40471 grep -v '^ *+' conftest.er1 >conftest.err
40472 rm -f conftest.er1
40473 cat conftest.err >&5
40474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40475 (exit $ac_status); } &&
40476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40478 (eval $ac_try) 2>&5
40479 ac_status=$?
40480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40481 (exit $ac_status); }; } &&
40482 { ac_try='test -s conftest$ac_exeext'
40483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40484 (eval $ac_try) 2>&5
40485 ac_status=$?
40486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40487 (exit $ac_status); }; }; then
40488 ac_cv_lib_socket_socket=yes
40489 else
40490 echo "$as_me: failed program was:" >&5
40491 sed 's/^/| /' conftest.$ac_ext >&5
40492
40493 ac_cv_lib_socket_socket=no
40494 fi
40495 rm -f conftest.err conftest.$ac_objext \
40496 conftest$ac_exeext conftest.$ac_ext
40497 LIBS=$ac_check_lib_save_LIBS
40498 fi
40499 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
40500 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
40501 if test $ac_cv_lib_socket_socket = yes; then
40502 if test "$INET_LINK" != " -lsocket"; then
40503 INET_LINK="$INET_LINK -lsocket"
40504 fi
40505 else
40506
40507 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
40508 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
40509 wxUSE_SOCKETS=no
40510
40511
40512 fi
40513
40514
40515
40516 fi
40517
40518 fi
40519 fi
40520
40521 if test "$wxUSE_SOCKETS" = "yes" ; then
40522 if test "$TOOLKIT" != "MSW"; then
40523 ac_ext=cc
40524 ac_cpp='$CXXCPP $CPPFLAGS'
40525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40528
40529 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
40530 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
40531 if test "${wx_cv_type_getsockname3+set}" = set; then
40532 echo $ECHO_N "(cached) $ECHO_C" >&6
40533 else
40534
40535 cat >conftest.$ac_ext <<_ACEOF
40536 /* confdefs.h. */
40537 _ACEOF
40538 cat confdefs.h >>conftest.$ac_ext
40539 cat >>conftest.$ac_ext <<_ACEOF
40540 /* end confdefs.h. */
40541
40542 #include <sys/types.h>
40543 #include <sys/socket.h>
40544
40545 int
40546 main ()
40547 {
40548
40549 socklen_t len;
40550 getsockname(0, 0, &len);
40551
40552 ;
40553 return 0;
40554 }
40555 _ACEOF
40556 rm -f conftest.$ac_objext
40557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40558 (eval $ac_compile) 2>conftest.er1
40559 ac_status=$?
40560 grep -v '^ *+' conftest.er1 >conftest.err
40561 rm -f conftest.er1
40562 cat conftest.err >&5
40563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40564 (exit $ac_status); } &&
40565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40567 (eval $ac_try) 2>&5
40568 ac_status=$?
40569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570 (exit $ac_status); }; } &&
40571 { ac_try='test -s conftest.$ac_objext'
40572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40573 (eval $ac_try) 2>&5
40574 ac_status=$?
40575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576 (exit $ac_status); }; }; then
40577 wx_cv_type_getsockname3=socklen_t
40578 else
40579 echo "$as_me: failed program was:" >&5
40580 sed 's/^/| /' conftest.$ac_ext >&5
40581
40582
40583 CXXFLAGS_OLD="$CXXFLAGS"
40584 if test "$GCC" = yes ; then
40585 CXXFLAGS="$CXXFLAGS -Werror"
40586 fi
40587
40588 cat >conftest.$ac_ext <<_ACEOF
40589 /* confdefs.h. */
40590 _ACEOF
40591 cat confdefs.h >>conftest.$ac_ext
40592 cat >>conftest.$ac_ext <<_ACEOF
40593 /* end confdefs.h. */
40594
40595 #include <sys/types.h>
40596 #include <sys/socket.h>
40597
40598 int
40599 main ()
40600 {
40601
40602 size_t len;
40603 getsockname(0, 0, &len);
40604
40605 ;
40606 return 0;
40607 }
40608 _ACEOF
40609 rm -f conftest.$ac_objext
40610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40611 (eval $ac_compile) 2>conftest.er1
40612 ac_status=$?
40613 grep -v '^ *+' conftest.er1 >conftest.err
40614 rm -f conftest.er1
40615 cat conftest.err >&5
40616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40617 (exit $ac_status); } &&
40618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40620 (eval $ac_try) 2>&5
40621 ac_status=$?
40622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40623 (exit $ac_status); }; } &&
40624 { ac_try='test -s conftest.$ac_objext'
40625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40626 (eval $ac_try) 2>&5
40627 ac_status=$?
40628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40629 (exit $ac_status); }; }; then
40630 wx_cv_type_getsockname3=size_t
40631 else
40632 echo "$as_me: failed program was:" >&5
40633 sed 's/^/| /' conftest.$ac_ext >&5
40634
40635 cat >conftest.$ac_ext <<_ACEOF
40636 /* confdefs.h. */
40637 _ACEOF
40638 cat confdefs.h >>conftest.$ac_ext
40639 cat >>conftest.$ac_ext <<_ACEOF
40640 /* end confdefs.h. */
40641
40642 #include <sys/types.h>
40643 #include <sys/socket.h>
40644
40645 int
40646 main ()
40647 {
40648
40649 int len;
40650 getsockname(0, 0, &len);
40651
40652 ;
40653 return 0;
40654 }
40655 _ACEOF
40656 rm -f conftest.$ac_objext
40657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40658 (eval $ac_compile) 2>conftest.er1
40659 ac_status=$?
40660 grep -v '^ *+' conftest.er1 >conftest.err
40661 rm -f conftest.er1
40662 cat conftest.err >&5
40663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664 (exit $ac_status); } &&
40665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40667 (eval $ac_try) 2>&5
40668 ac_status=$?
40669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670 (exit $ac_status); }; } &&
40671 { ac_try='test -s conftest.$ac_objext'
40672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40673 (eval $ac_try) 2>&5
40674 ac_status=$?
40675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40676 (exit $ac_status); }; }; then
40677 wx_cv_type_getsockname3=int
40678 else
40679 echo "$as_me: failed program was:" >&5
40680 sed 's/^/| /' conftest.$ac_ext >&5
40681
40682 wx_cv_type_getsockname3=unknown
40683
40684 fi
40685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40686
40687 fi
40688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40689
40690 CXXFLAGS="$CXXFLAGS_OLD"
40691
40692
40693 fi
40694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40695
40696 fi
40697 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
40698 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
40699
40700 if test "$wx_cv_type_getsockname3" = "unknown"; then
40701 wxUSE_SOCKETS=no
40702 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40703 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40704 else
40705 cat >>confdefs.h <<_ACEOF
40706 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
40707 _ACEOF
40708
40709 fi
40710 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
40711 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
40712 if test "${wx_cv_type_getsockopt5+set}" = set; then
40713 echo $ECHO_N "(cached) $ECHO_C" >&6
40714 else
40715
40716 cat >conftest.$ac_ext <<_ACEOF
40717 /* confdefs.h. */
40718 _ACEOF
40719 cat confdefs.h >>conftest.$ac_ext
40720 cat >>conftest.$ac_ext <<_ACEOF
40721 /* end confdefs.h. */
40722
40723 #include <sys/types.h>
40724 #include <sys/socket.h>
40725
40726 int
40727 main ()
40728 {
40729
40730 socklen_t len;
40731 getsockopt(0, 0, 0, 0, &len);
40732
40733 ;
40734 return 0;
40735 }
40736 _ACEOF
40737 rm -f conftest.$ac_objext
40738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40739 (eval $ac_compile) 2>conftest.er1
40740 ac_status=$?
40741 grep -v '^ *+' conftest.er1 >conftest.err
40742 rm -f conftest.er1
40743 cat conftest.err >&5
40744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40745 (exit $ac_status); } &&
40746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40748 (eval $ac_try) 2>&5
40749 ac_status=$?
40750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751 (exit $ac_status); }; } &&
40752 { ac_try='test -s conftest.$ac_objext'
40753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40754 (eval $ac_try) 2>&5
40755 ac_status=$?
40756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40757 (exit $ac_status); }; }; then
40758 wx_cv_type_getsockopt5=socklen_t
40759 else
40760 echo "$as_me: failed program was:" >&5
40761 sed 's/^/| /' conftest.$ac_ext >&5
40762
40763
40764 CXXFLAGS_OLD="$CXXFLAGS"
40765 if test "$GCC" = yes ; then
40766 CXXFLAGS="$CXXFLAGS -Werror"
40767 fi
40768
40769 cat >conftest.$ac_ext <<_ACEOF
40770 /* confdefs.h. */
40771 _ACEOF
40772 cat confdefs.h >>conftest.$ac_ext
40773 cat >>conftest.$ac_ext <<_ACEOF
40774 /* end confdefs.h. */
40775
40776 #include <sys/types.h>
40777 #include <sys/socket.h>
40778
40779 int
40780 main ()
40781 {
40782
40783 size_t len;
40784 getsockopt(0, 0, 0, 0, &len);
40785
40786 ;
40787 return 0;
40788 }
40789 _ACEOF
40790 rm -f conftest.$ac_objext
40791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40792 (eval $ac_compile) 2>conftest.er1
40793 ac_status=$?
40794 grep -v '^ *+' conftest.er1 >conftest.err
40795 rm -f conftest.er1
40796 cat conftest.err >&5
40797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40798 (exit $ac_status); } &&
40799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40801 (eval $ac_try) 2>&5
40802 ac_status=$?
40803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40804 (exit $ac_status); }; } &&
40805 { ac_try='test -s conftest.$ac_objext'
40806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40807 (eval $ac_try) 2>&5
40808 ac_status=$?
40809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40810 (exit $ac_status); }; }; then
40811 wx_cv_type_getsockopt5=size_t
40812 else
40813 echo "$as_me: failed program was:" >&5
40814 sed 's/^/| /' conftest.$ac_ext >&5
40815
40816 cat >conftest.$ac_ext <<_ACEOF
40817 /* confdefs.h. */
40818 _ACEOF
40819 cat confdefs.h >>conftest.$ac_ext
40820 cat >>conftest.$ac_ext <<_ACEOF
40821 /* end confdefs.h. */
40822
40823 #include <sys/types.h>
40824 #include <sys/socket.h>
40825
40826 int
40827 main ()
40828 {
40829
40830 int len;
40831 getsockopt(0, 0, 0, 0, &len);
40832
40833 ;
40834 return 0;
40835 }
40836 _ACEOF
40837 rm -f conftest.$ac_objext
40838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40839 (eval $ac_compile) 2>conftest.er1
40840 ac_status=$?
40841 grep -v '^ *+' conftest.er1 >conftest.err
40842 rm -f conftest.er1
40843 cat conftest.err >&5
40844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40845 (exit $ac_status); } &&
40846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40848 (eval $ac_try) 2>&5
40849 ac_status=$?
40850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40851 (exit $ac_status); }; } &&
40852 { ac_try='test -s conftest.$ac_objext'
40853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40854 (eval $ac_try) 2>&5
40855 ac_status=$?
40856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40857 (exit $ac_status); }; }; then
40858 wx_cv_type_getsockopt5=int
40859 else
40860 echo "$as_me: failed program was:" >&5
40861 sed 's/^/| /' conftest.$ac_ext >&5
40862
40863 wx_cv_type_getsockopt5=unknown
40864
40865 fi
40866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40867
40868 fi
40869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40870
40871 CXXFLAGS="$CXXFLAGS_OLD"
40872
40873
40874 fi
40875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40876
40877 fi
40878 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40879 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40880
40881 if test "$wx_cv_type_getsockopt5" = "unknown"; then
40882 wxUSE_SOCKETS=no
40883 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40884 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40885 else
40886 cat >>confdefs.h <<_ACEOF
40887 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
40888 _ACEOF
40889
40890 fi
40891 ac_ext=c
40892 ac_cpp='$CPP $CPPFLAGS'
40893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40896
40897 fi
40898 fi
40899
40900 if test "$wxUSE_SOCKETS" = "yes" ; then
40901 cat >>confdefs.h <<\_ACEOF
40902 #define wxUSE_SOCKETS 1
40903 _ACEOF
40904
40905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40906 fi
40907
40908 if test "$wxUSE_PROTOCOL" = "yes"; then
40909 if test "$wxUSE_SOCKETS" != "yes"; then
40910 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
40911 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
40912 wxUSE_PROTOCOL=no
40913 fi
40914 fi
40915
40916 if test "$wxUSE_PROTOCOL" = "yes"; then
40917 cat >>confdefs.h <<\_ACEOF
40918 #define wxUSE_PROTOCOL 1
40919 _ACEOF
40920
40921
40922 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
40923 cat >>confdefs.h <<\_ACEOF
40924 #define wxUSE_PROTOCOL_HTTP 1
40925 _ACEOF
40926
40927 fi
40928 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
40929 cat >>confdefs.h <<\_ACEOF
40930 #define wxUSE_PROTOCOL_FTP 1
40931 _ACEOF
40932
40933 fi
40934 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
40935 cat >>confdefs.h <<\_ACEOF
40936 #define wxUSE_PROTOCOL_FILE 1
40937 _ACEOF
40938
40939 fi
40940 else
40941 if test "$wxUSE_FS_INET" = "yes"; then
40942 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
40943 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
40944 wxUSE_FS_INET="no"
40945 fi
40946 fi
40947
40948 if test "$wxUSE_URL" = "yes"; then
40949 if test "$wxUSE_PROTOCOL" != "yes"; then
40950 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
40951 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
40952 wxUSE_URL=no
40953 fi
40954 if test "$wxUSE_URL" = "yes"; then
40955 cat >>confdefs.h <<\_ACEOF
40956 #define wxUSE_URL 1
40957 _ACEOF
40958
40959 fi
40960 fi
40961
40962 if test "$wxUSE_FS_INET" = "yes"; then
40963 cat >>confdefs.h <<\_ACEOF
40964 #define wxUSE_FS_INET 1
40965 _ACEOF
40966
40967 fi
40968
40969
40970 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
40971 wxUSE_JOYSTICK=no
40972
40973 if test "$TOOLKIT" = "MSW"; then
40974 wxUSE_JOYSTICK=yes
40975
40976 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
40977 if test "$USE_DARWIN" = 1; then
40978 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
40979 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
40980 ac_ext=cc
40981 ac_cpp='$CXXCPP $CPPFLAGS'
40982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40985
40986 cat >conftest.$ac_ext <<_ACEOF
40987 /* confdefs.h. */
40988 _ACEOF
40989 cat confdefs.h >>conftest.$ac_ext
40990 cat >>conftest.$ac_ext <<_ACEOF
40991 /* end confdefs.h. */
40992 #include <IOKit/hid/IOHIDLib.h>
40993 int
40994 main ()
40995 {
40996 IOHIDQueueInterface *qi = NULL;
40997 IOHIDCallbackFunction cb = NULL;
40998 qi->setEventCallout(NULL, cb, NULL, NULL);
40999 ;
41000 return 0;
41001 }
41002 _ACEOF
41003 rm -f conftest.$ac_objext
41004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41005 (eval $ac_compile) 2>conftest.er1
41006 ac_status=$?
41007 grep -v '^ *+' conftest.er1 >conftest.err
41008 rm -f conftest.er1
41009 cat conftest.err >&5
41010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41011 (exit $ac_status); } &&
41012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41014 (eval $ac_try) 2>&5
41015 ac_status=$?
41016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41017 (exit $ac_status); }; } &&
41018 { ac_try='test -s conftest.$ac_objext'
41019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41020 (eval $ac_try) 2>&5
41021 ac_status=$?
41022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41023 (exit $ac_status); }; }; then
41024 wxUSE_JOYSTICK=yes
41025
41026 else
41027 echo "$as_me: failed program was:" >&5
41028 sed 's/^/| /' conftest.$ac_ext >&5
41029
41030 fi
41031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41032 ac_ext=c
41033 ac_cpp='$CPP $CPPFLAGS'
41034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41037
41038 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
41039 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
41040 fi
41041
41042 else
41043
41044 for ac_header in linux/joystick.h
41045 do
41046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41048 echo "$as_me:$LINENO: checking for $ac_header" >&5
41049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41051 echo $ECHO_N "(cached) $ECHO_C" >&6
41052 fi
41053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41055 else
41056 # Is the header compilable?
41057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41059 cat >conftest.$ac_ext <<_ACEOF
41060 /* confdefs.h. */
41061 _ACEOF
41062 cat confdefs.h >>conftest.$ac_ext
41063 cat >>conftest.$ac_ext <<_ACEOF
41064 /* end confdefs.h. */
41065 $ac_includes_default
41066 #include <$ac_header>
41067 _ACEOF
41068 rm -f conftest.$ac_objext
41069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41070 (eval $ac_compile) 2>conftest.er1
41071 ac_status=$?
41072 grep -v '^ *+' conftest.er1 >conftest.err
41073 rm -f conftest.er1
41074 cat conftest.err >&5
41075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41076 (exit $ac_status); } &&
41077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41079 (eval $ac_try) 2>&5
41080 ac_status=$?
41081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41082 (exit $ac_status); }; } &&
41083 { ac_try='test -s conftest.$ac_objext'
41084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41085 (eval $ac_try) 2>&5
41086 ac_status=$?
41087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41088 (exit $ac_status); }; }; then
41089 ac_header_compiler=yes
41090 else
41091 echo "$as_me: failed program was:" >&5
41092 sed 's/^/| /' conftest.$ac_ext >&5
41093
41094 ac_header_compiler=no
41095 fi
41096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41098 echo "${ECHO_T}$ac_header_compiler" >&6
41099
41100 # Is the header present?
41101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41103 cat >conftest.$ac_ext <<_ACEOF
41104 /* confdefs.h. */
41105 _ACEOF
41106 cat confdefs.h >>conftest.$ac_ext
41107 cat >>conftest.$ac_ext <<_ACEOF
41108 /* end confdefs.h. */
41109 #include <$ac_header>
41110 _ACEOF
41111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41113 ac_status=$?
41114 grep -v '^ *+' conftest.er1 >conftest.err
41115 rm -f conftest.er1
41116 cat conftest.err >&5
41117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41118 (exit $ac_status); } >/dev/null; then
41119 if test -s conftest.err; then
41120 ac_cpp_err=$ac_c_preproc_warn_flag
41121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41122 else
41123 ac_cpp_err=
41124 fi
41125 else
41126 ac_cpp_err=yes
41127 fi
41128 if test -z "$ac_cpp_err"; then
41129 ac_header_preproc=yes
41130 else
41131 echo "$as_me: failed program was:" >&5
41132 sed 's/^/| /' conftest.$ac_ext >&5
41133
41134 ac_header_preproc=no
41135 fi
41136 rm -f conftest.err conftest.$ac_ext
41137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41138 echo "${ECHO_T}$ac_header_preproc" >&6
41139
41140 # So? What about this header?
41141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41142 yes:no: )
41143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41147 ac_header_preproc=yes
41148 ;;
41149 no:yes:* )
41150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41162 (
41163 cat <<\_ASBOX
41164 ## ----------------------------------------- ##
41165 ## Report this to wx-dev@lists.wxwidgets.org ##
41166 ## ----------------------------------------- ##
41167 _ASBOX
41168 ) |
41169 sed "s/^/$as_me: WARNING: /" >&2
41170 ;;
41171 esac
41172 echo "$as_me:$LINENO: checking for $ac_header" >&5
41173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41175 echo $ECHO_N "(cached) $ECHO_C" >&6
41176 else
41177 eval "$as_ac_Header=\$ac_header_preproc"
41178 fi
41179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41181
41182 fi
41183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41184 cat >>confdefs.h <<_ACEOF
41185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41186 _ACEOF
41187 wxUSE_JOYSTICK=yes
41188 fi
41189
41190 done
41191
41192 fi
41193
41194 if test "$wxUSE_JOYSTICK" = "yes"; then
41195 cat >>confdefs.h <<\_ACEOF
41196 #define wxUSE_JOYSTICK 1
41197 _ACEOF
41198
41199 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
41200 else
41201 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
41202 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
41203 fi
41204 fi
41205
41206
41207
41208 if test "$wxUSE_FONTMAP" = "yes" ; then
41209 cat >>confdefs.h <<\_ACEOF
41210 #define wxUSE_FONTMAP 1
41211 _ACEOF
41212
41213 fi
41214
41215 if test "$wxUSE_UNICODE" = "yes" ; then
41216 cat >>confdefs.h <<\_ACEOF
41217 #define wxUSE_UNICODE 1
41218 _ACEOF
41219
41220
41221 if test "$USE_WIN32" != 1; then
41222 wxUSE_UNICODE_MSLU=no
41223 fi
41224
41225 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
41226 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
41227 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
41228 if test "${ac_cv_lib_unicows_main+set}" = set; then
41229 echo $ECHO_N "(cached) $ECHO_C" >&6
41230 else
41231 ac_check_lib_save_LIBS=$LIBS
41232 LIBS="-lunicows $LIBS"
41233 cat >conftest.$ac_ext <<_ACEOF
41234 /* confdefs.h. */
41235 _ACEOF
41236 cat confdefs.h >>conftest.$ac_ext
41237 cat >>conftest.$ac_ext <<_ACEOF
41238 /* end confdefs.h. */
41239
41240
41241 int
41242 main ()
41243 {
41244 main ();
41245 ;
41246 return 0;
41247 }
41248 _ACEOF
41249 rm -f conftest.$ac_objext conftest$ac_exeext
41250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41251 (eval $ac_link) 2>conftest.er1
41252 ac_status=$?
41253 grep -v '^ *+' conftest.er1 >conftest.err
41254 rm -f conftest.er1
41255 cat conftest.err >&5
41256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41257 (exit $ac_status); } &&
41258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41260 (eval $ac_try) 2>&5
41261 ac_status=$?
41262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41263 (exit $ac_status); }; } &&
41264 { ac_try='test -s conftest$ac_exeext'
41265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41266 (eval $ac_try) 2>&5
41267 ac_status=$?
41268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41269 (exit $ac_status); }; }; then
41270 ac_cv_lib_unicows_main=yes
41271 else
41272 echo "$as_me: failed program was:" >&5
41273 sed 's/^/| /' conftest.$ac_ext >&5
41274
41275 ac_cv_lib_unicows_main=no
41276 fi
41277 rm -f conftest.err conftest.$ac_objext \
41278 conftest$ac_exeext conftest.$ac_ext
41279 LIBS=$ac_check_lib_save_LIBS
41280 fi
41281 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
41282 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
41283 if test $ac_cv_lib_unicows_main = yes; then
41284
41285 cat >>confdefs.h <<\_ACEOF
41286 #define wxUSE_UNICODE_MSLU 1
41287 _ACEOF
41288
41289
41290 else
41291
41292 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41293 Applications will only run on Windows NT/2000/XP!" >&5
41294 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41295 Applications will only run on Windows NT/2000/XP!" >&2;}
41296 wxUSE_UNICODE_MSLU=no
41297
41298 fi
41299
41300 fi
41301 fi
41302
41303 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
41304 cat >>confdefs.h <<\_ACEOF
41305 #define wxUSE_EXPERIMENTAL_PRINTF 1
41306 _ACEOF
41307
41308 fi
41309
41310
41311 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
41312 cat >>confdefs.h <<\_ACEOF
41313 #define wxUSE_POSTSCRIPT 1
41314 _ACEOF
41315
41316 fi
41317
41318 cat >>confdefs.h <<\_ACEOF
41319 #define wxUSE_AFM_FOR_POSTSCRIPT 1
41320 _ACEOF
41321
41322
41323 cat >>confdefs.h <<\_ACEOF
41324 #define wxUSE_NORMALIZED_PS_FONTS 1
41325 _ACEOF
41326
41327
41328
41329 if test "$wxUSE_CONSTRAINTS" = "yes"; then
41330 cat >>confdefs.h <<\_ACEOF
41331 #define wxUSE_CONSTRAINTS 1
41332 _ACEOF
41333
41334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
41335 fi
41336
41337 if test "$wxUSE_MDI" = "yes"; then
41338 cat >>confdefs.h <<\_ACEOF
41339 #define wxUSE_MDI 1
41340 _ACEOF
41341
41342
41343 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41344 cat >>confdefs.h <<\_ACEOF
41345 #define wxUSE_MDI_ARCHITECTURE 1
41346 _ACEOF
41347
41348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
41349 fi
41350 fi
41351
41352 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
41353 cat >>confdefs.h <<\_ACEOF
41354 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
41355 _ACEOF
41356
41357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
41358 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
41360 fi
41361 fi
41362
41363 if test "$wxUSE_HELP" = "yes"; then
41364 cat >>confdefs.h <<\_ACEOF
41365 #define wxUSE_HELP 1
41366 _ACEOF
41367
41368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
41369
41370 if test "$wxUSE_MSW" = 1; then
41371 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
41372 cat >>confdefs.h <<\_ACEOF
41373 #define wxUSE_MS_HTML_HELP 1
41374 _ACEOF
41375
41376 fi
41377 fi
41378
41379 if test "$wxUSE_WXHTML_HELP" = "yes"; then
41380 if test "$wxUSE_HTML" = "yes"; then
41381 cat >>confdefs.h <<\_ACEOF
41382 #define wxUSE_WXHTML_HELP 1
41383 _ACEOF
41384
41385 else
41386 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
41387 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
41388 wxUSE_WXHTML_HELP=no
41389 fi
41390 fi
41391 fi
41392
41393 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41394 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41395 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
41396 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
41397 else
41398 cat >>confdefs.h <<\_ACEOF
41399 #define wxUSE_PRINTING_ARCHITECTURE 1
41400 _ACEOF
41401
41402 fi
41403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
41404 fi
41405
41406 if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
41407 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
41408 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
41409 { (exit 1); exit 1; }; }
41410 fi
41411
41412
41413 if test "$wxUSE_METAFILE" = "yes"; then
41414 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
41415 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
41416 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
41417 wxUSE_METAFILE=no
41418 fi
41419 fi
41420
41421
41422 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
41423 -o "$wxUSE_CLIPBOARD" = "yes" \
41424 -o "$wxUSE_OLE" = "yes" \
41425 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
41426
41427 for ac_header in ole2.h
41428 do
41429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41431 echo "$as_me:$LINENO: checking for $ac_header" >&5
41432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41434 echo $ECHO_N "(cached) $ECHO_C" >&6
41435 fi
41436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41438 else
41439 # Is the header compilable?
41440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41442 cat >conftest.$ac_ext <<_ACEOF
41443 /* confdefs.h. */
41444 _ACEOF
41445 cat confdefs.h >>conftest.$ac_ext
41446 cat >>conftest.$ac_ext <<_ACEOF
41447 /* end confdefs.h. */
41448 $ac_includes_default
41449 #include <$ac_header>
41450 _ACEOF
41451 rm -f conftest.$ac_objext
41452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41453 (eval $ac_compile) 2>conftest.er1
41454 ac_status=$?
41455 grep -v '^ *+' conftest.er1 >conftest.err
41456 rm -f conftest.er1
41457 cat conftest.err >&5
41458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41459 (exit $ac_status); } &&
41460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41462 (eval $ac_try) 2>&5
41463 ac_status=$?
41464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41465 (exit $ac_status); }; } &&
41466 { ac_try='test -s conftest.$ac_objext'
41467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41468 (eval $ac_try) 2>&5
41469 ac_status=$?
41470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41471 (exit $ac_status); }; }; then
41472 ac_header_compiler=yes
41473 else
41474 echo "$as_me: failed program was:" >&5
41475 sed 's/^/| /' conftest.$ac_ext >&5
41476
41477 ac_header_compiler=no
41478 fi
41479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41481 echo "${ECHO_T}$ac_header_compiler" >&6
41482
41483 # Is the header present?
41484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41486 cat >conftest.$ac_ext <<_ACEOF
41487 /* confdefs.h. */
41488 _ACEOF
41489 cat confdefs.h >>conftest.$ac_ext
41490 cat >>conftest.$ac_ext <<_ACEOF
41491 /* end confdefs.h. */
41492 #include <$ac_header>
41493 _ACEOF
41494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41496 ac_status=$?
41497 grep -v '^ *+' conftest.er1 >conftest.err
41498 rm -f conftest.er1
41499 cat conftest.err >&5
41500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41501 (exit $ac_status); } >/dev/null; then
41502 if test -s conftest.err; then
41503 ac_cpp_err=$ac_c_preproc_warn_flag
41504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41505 else
41506 ac_cpp_err=
41507 fi
41508 else
41509 ac_cpp_err=yes
41510 fi
41511 if test -z "$ac_cpp_err"; then
41512 ac_header_preproc=yes
41513 else
41514 echo "$as_me: failed program was:" >&5
41515 sed 's/^/| /' conftest.$ac_ext >&5
41516
41517 ac_header_preproc=no
41518 fi
41519 rm -f conftest.err conftest.$ac_ext
41520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41521 echo "${ECHO_T}$ac_header_preproc" >&6
41522
41523 # So? What about this header?
41524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41525 yes:no: )
41526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41530 ac_header_preproc=yes
41531 ;;
41532 no:yes:* )
41533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41545 (
41546 cat <<\_ASBOX
41547 ## ----------------------------------------- ##
41548 ## Report this to wx-dev@lists.wxwidgets.org ##
41549 ## ----------------------------------------- ##
41550 _ASBOX
41551 ) |
41552 sed "s/^/$as_me: WARNING: /" >&2
41553 ;;
41554 esac
41555 echo "$as_me:$LINENO: checking for $ac_header" >&5
41556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41558 echo $ECHO_N "(cached) $ECHO_C" >&6
41559 else
41560 eval "$as_ac_Header=\$ac_header_preproc"
41561 fi
41562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41564
41565 fi
41566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41567 cat >>confdefs.h <<_ACEOF
41568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41569 _ACEOF
41570
41571 fi
41572
41573 done
41574
41575
41576 if test "$ac_cv_header_ole2_h" = "yes" ; then
41577 if test "$GCC" = yes ; then
41578
41579
41580 ac_ext=cc
41581 ac_cpp='$CXXCPP $CPPFLAGS'
41582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41585
41586
41587 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
41588 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
41589 cat >conftest.$ac_ext <<_ACEOF
41590 /* confdefs.h. */
41591 _ACEOF
41592 cat confdefs.h >>conftest.$ac_ext
41593 cat >>conftest.$ac_ext <<_ACEOF
41594 /* end confdefs.h. */
41595 #include <windows.h>
41596 #include <ole2.h>
41597 int
41598 main ()
41599 {
41600
41601 ;
41602 return 0;
41603 }
41604 _ACEOF
41605 rm -f conftest.$ac_objext
41606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41607 (eval $ac_compile) 2>conftest.er1
41608 ac_status=$?
41609 grep -v '^ *+' conftest.er1 >conftest.err
41610 rm -f conftest.er1
41611 cat conftest.err >&5
41612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613 (exit $ac_status); } &&
41614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41616 (eval $ac_try) 2>&5
41617 ac_status=$?
41618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41619 (exit $ac_status); }; } &&
41620 { ac_try='test -s conftest.$ac_objext'
41621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41622 (eval $ac_try) 2>&5
41623 ac_status=$?
41624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625 (exit $ac_status); }; }; then
41626 echo "$as_me:$LINENO: result: no" >&5
41627 echo "${ECHO_T}no" >&6
41628 else
41629 echo "$as_me: failed program was:" >&5
41630 sed 's/^/| /' conftest.$ac_ext >&5
41631
41632 echo "$as_me:$LINENO: result: yes" >&5
41633 echo "${ECHO_T}yes" >&6
41634 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
41635 fi
41636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41637 ac_ext=c
41638 ac_cpp='$CPP $CPPFLAGS'
41639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41642
41643 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
41644 if test "$wxUSE_OLE" = "yes" ; then
41645 cat >>confdefs.h <<\_ACEOF
41646 #define wxUSE_OLE 1
41647 _ACEOF
41648
41649 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
41650 fi
41651 fi
41652
41653 if test "$wxUSE_DATAOBJ" = "yes" ; then
41654 cat >>confdefs.h <<\_ACEOF
41655 #define wxUSE_DATAOBJ 1
41656 _ACEOF
41657
41658 fi
41659 else
41660 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
41661 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
41662
41663 wxUSE_CLIPBOARD=no
41664 wxUSE_DRAG_AND_DROP=no
41665 wxUSE_DATAOBJ=no
41666 wxUSE_OLE=no
41667 fi
41668
41669 if test "$wxUSE_METAFILE" = "yes"; then
41670 cat >>confdefs.h <<\_ACEOF
41671 #define wxUSE_METAFILE 1
41672 _ACEOF
41673
41674
41675 cat >>confdefs.h <<\_ACEOF
41676 #define wxUSE_ENH_METAFILE 1
41677 _ACEOF
41678
41679 fi
41680 fi
41681
41682 if test "$wxUSE_IPC" = "yes"; then
41683 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
41684 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
41685 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
41686 wxUSE_IPC=no
41687 fi
41688
41689 if test "$wxUSE_IPC" = "yes"; then
41690 cat >>confdefs.h <<\_ACEOF
41691 #define wxUSE_IPC 1
41692 _ACEOF
41693
41694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
41695 fi
41696 fi
41697
41698 if test "$wxUSE_DATAOBJ" = "yes"; then
41699 if test "$wxUSE_MGL" = 1; then
41700 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
41701 echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
41702 wxUSE_DATAOBJ=no
41703 else
41704 cat >>confdefs.h <<\_ACEOF
41705 #define wxUSE_DATAOBJ 1
41706 _ACEOF
41707
41708 fi
41709 else
41710 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
41711 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
41712 wxUSE_CLIPBOARD=no
41713 wxUSE_DRAG_AND_DROP=no
41714 fi
41715
41716 if test "$wxUSE_CLIPBOARD" = "yes"; then
41717 if test "$wxUSE_MGL" = 1; then
41718 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
41719 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
41720 wxUSE_CLIPBOARD=no
41721 fi
41722
41723 if test "$wxUSE_CLIPBOARD" = "yes"; then
41724 cat >>confdefs.h <<\_ACEOF
41725 #define wxUSE_CLIPBOARD 1
41726 _ACEOF
41727
41728 fi
41729 fi
41730
41731 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
41732 if test "$wxUSE_GTK" = 1; then
41733 if test "$WXGTK12" != 1; then
41734 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
41735 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
41736 wxUSE_DRAG_AND_DROP=no
41737 fi
41738 fi
41739
41740 if test "$wxUSE_MOTIF" = 1; then
41741 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
41742 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
41743 wxUSE_DRAG_AND_DROP=no
41744 fi
41745
41746 if test "$wxUSE_X11" = 1; then
41747 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
41748 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
41749 wxUSE_DRAG_AND_DROP=no
41750 fi
41751
41752 if test "$wxUSE_MGL" = 1; then
41753 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
41754 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
41755 wxUSE_DRAG_AND_DROP=no
41756 fi
41757
41758 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
41759 cat >>confdefs.h <<\_ACEOF
41760 #define wxUSE_DRAG_AND_DROP 1
41761 _ACEOF
41762
41763 fi
41764
41765 fi
41766
41767 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
41768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
41769 fi
41770
41771 if test "$wxUSE_SPLINES" = "yes" ; then
41772 cat >>confdefs.h <<\_ACEOF
41773 #define wxUSE_SPLINES 1
41774 _ACEOF
41775
41776 fi
41777
41778 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
41779 cat >>confdefs.h <<\_ACEOF
41780 #define wxUSE_MOUSEWHEEL 1
41781 _ACEOF
41782
41783 fi
41784
41785
41786 USES_CONTROLS=0
41787 if test "$wxUSE_CONTROLS" = "yes"; then
41788 USES_CONTROLS=1
41789 fi
41790
41791 if test "$wxUSE_ACCEL" = "yes"; then
41792 cat >>confdefs.h <<\_ACEOF
41793 #define wxUSE_ACCEL 1
41794 _ACEOF
41795
41796 USES_CONTROLS=1
41797 fi
41798
41799 if test "$wxUSE_BUTTON" = "yes"; then
41800 cat >>confdefs.h <<\_ACEOF
41801 #define wxUSE_BUTTON 1
41802 _ACEOF
41803
41804 USES_CONTROLS=1
41805 fi
41806
41807 if test "$wxUSE_BMPBUTTON" = "yes"; then
41808 cat >>confdefs.h <<\_ACEOF
41809 #define wxUSE_BMPBUTTON 1
41810 _ACEOF
41811
41812 USES_CONTROLS=1
41813 fi
41814
41815 if test "$wxUSE_CALCTRL" = "yes"; then
41816 cat >>confdefs.h <<\_ACEOF
41817 #define wxUSE_CALENDARCTRL 1
41818 _ACEOF
41819
41820 USES_CONTROLS=1
41821 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41822 fi
41823
41824 if test "$wxUSE_CARET" = "yes"; then
41825 cat >>confdefs.h <<\_ACEOF
41826 #define wxUSE_CARET 1
41827 _ACEOF
41828
41829 USES_CONTROLS=1
41830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41831 fi
41832
41833 if test "$wxUSE_COMBOBOX" = "yes"; then
41834 cat >>confdefs.h <<\_ACEOF
41835 #define wxUSE_COMBOBOX 1
41836 _ACEOF
41837
41838 USES_CONTROLS=1
41839 fi
41840
41841 if test "$wxUSE_CHOICE" = "yes"; then
41842 cat >>confdefs.h <<\_ACEOF
41843 #define wxUSE_CHOICE 1
41844 _ACEOF
41845
41846 USES_CONTROLS=1
41847 fi
41848
41849 if test "$wxUSE_CHOICEBOOK" = "yes"; then
41850 cat >>confdefs.h <<\_ACEOF
41851 #define wxUSE_CHOICEBOOK 1
41852 _ACEOF
41853
41854 USES_CONTROLS=1
41855 fi
41856
41857 if test "$wxUSE_CHECKBOX" = "yes"; then
41858 cat >>confdefs.h <<\_ACEOF
41859 #define wxUSE_CHECKBOX 1
41860 _ACEOF
41861
41862 USES_CONTROLS=1
41863 fi
41864
41865 if test "$wxUSE_CHECKLST" = "yes"; then
41866 cat >>confdefs.h <<\_ACEOF
41867 #define wxUSE_CHECKLISTBOX 1
41868 _ACEOF
41869
41870 USES_CONTROLS=1
41871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41872 fi
41873
41874 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41875 cat >>confdefs.h <<\_ACEOF
41876 #define wxUSE_DATEPICKCTRL 1
41877 _ACEOF
41878
41879 USES_CONTROLS=1
41880 fi
41881
41882 if test "$wxUSE_DISPLAY" = "yes"; then
41883 cat >>confdefs.h <<\_ACEOF
41884 #define wxUSE_DISPLAY 1
41885 _ACEOF
41886
41887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
41888 fi
41889
41890 if test "$wxUSE_GAUGE" = "yes"; then
41891 cat >>confdefs.h <<\_ACEOF
41892 #define wxUSE_GAUGE 1
41893 _ACEOF
41894
41895 USES_CONTROLS=1
41896 fi
41897
41898 if test "$wxUSE_GRID" = "yes"; then
41899 cat >>confdefs.h <<\_ACEOF
41900 #define wxUSE_GRID 1
41901 _ACEOF
41902
41903 USES_CONTROLS=1
41904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
41905 fi
41906
41907 if test "$wxUSE_IMAGLIST" = "yes"; then
41908 cat >>confdefs.h <<\_ACEOF
41909 #define wxUSE_IMAGLIST 1
41910 _ACEOF
41911
41912 fi
41913
41914 if test "$wxUSE_LISTBOOK" = "yes"; then
41915 cat >>confdefs.h <<\_ACEOF
41916 #define wxUSE_LISTBOOK 1
41917 _ACEOF
41918
41919 USES_CONTROLS=1
41920 fi
41921
41922 if test "$wxUSE_LISTBOX" = "yes"; then
41923 cat >>confdefs.h <<\_ACEOF
41924 #define wxUSE_LISTBOX 1
41925 _ACEOF
41926
41927 USES_CONTROLS=1
41928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
41929 fi
41930
41931 if test "$wxUSE_LISTCTRL" = "yes"; then
41932 if test "$wxUSE_IMAGLIST" = "yes"; then
41933 cat >>confdefs.h <<\_ACEOF
41934 #define wxUSE_LISTCTRL 1
41935 _ACEOF
41936
41937 USES_CONTROLS=1
41938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
41939 else
41940 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
41941 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
41942 fi
41943 fi
41944
41945 if test "$wxUSE_NOTEBOOK" = "yes"; then
41946 cat >>confdefs.h <<\_ACEOF
41947 #define wxUSE_NOTEBOOK 1
41948 _ACEOF
41949
41950 USES_CONTROLS=1
41951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
41952 fi
41953
41954
41955 if test "$wxUSE_RADIOBOX" = "yes"; then
41956 cat >>confdefs.h <<\_ACEOF
41957 #define wxUSE_RADIOBOX 1
41958 _ACEOF
41959
41960 USES_CONTROLS=1
41961 fi
41962
41963 if test "$wxUSE_RADIOBTN" = "yes"; then
41964 cat >>confdefs.h <<\_ACEOF
41965 #define wxUSE_RADIOBTN 1
41966 _ACEOF
41967
41968 USES_CONTROLS=1
41969 fi
41970
41971 if test "$wxUSE_SASH" = "yes"; then
41972 cat >>confdefs.h <<\_ACEOF
41973 #define wxUSE_SASH 1
41974 _ACEOF
41975
41976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
41977 fi
41978
41979 if test "$wxUSE_SCROLLBAR" = "yes"; then
41980 cat >>confdefs.h <<\_ACEOF
41981 #define wxUSE_SCROLLBAR 1
41982 _ACEOF
41983
41984 USES_CONTROLS=1
41985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
41986 fi
41987
41988 if test "$wxUSE_SLIDER" = "yes"; then
41989 cat >>confdefs.h <<\_ACEOF
41990 #define wxUSE_SLIDER 1
41991 _ACEOF
41992
41993 USES_CONTROLS=1
41994 fi
41995
41996 if test "$wxUSE_SPINBTN" = "yes"; then
41997 cat >>confdefs.h <<\_ACEOF
41998 #define wxUSE_SPINBTN 1
41999 _ACEOF
42000
42001 USES_CONTROLS=1
42002 fi
42003
42004 if test "$wxUSE_SPINCTRL" = "yes"; then
42005 cat >>confdefs.h <<\_ACEOF
42006 #define wxUSE_SPINCTRL 1
42007 _ACEOF
42008
42009 USES_CONTROLS=1
42010 fi
42011
42012 if test "$wxUSE_SPLITTER" = "yes"; then
42013 cat >>confdefs.h <<\_ACEOF
42014 #define wxUSE_SPLITTER 1
42015 _ACEOF
42016
42017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
42018 fi
42019
42020 if test "$wxUSE_STATBMP" = "yes"; then
42021 cat >>confdefs.h <<\_ACEOF
42022 #define wxUSE_STATBMP 1
42023 _ACEOF
42024
42025 USES_CONTROLS=1
42026 fi
42027
42028 if test "$wxUSE_STATBOX" = "yes"; then
42029 cat >>confdefs.h <<\_ACEOF
42030 #define wxUSE_STATBOX 1
42031 _ACEOF
42032
42033 USES_CONTROLS=1
42034 fi
42035
42036 if test "$wxUSE_STATTEXT" = "yes"; then
42037 cat >>confdefs.h <<\_ACEOF
42038 #define wxUSE_STATTEXT 1
42039 _ACEOF
42040
42041 USES_CONTROLS=1
42042 fi
42043
42044 if test "$wxUSE_STATLINE" = "yes"; then
42045 cat >>confdefs.h <<\_ACEOF
42046 #define wxUSE_STATLINE 1
42047 _ACEOF
42048
42049 USES_CONTROLS=1
42050 fi
42051
42052 if test "$wxUSE_STATUSBAR" = "yes"; then
42053 cat >>confdefs.h <<\_ACEOF
42054 #define wxUSE_NATIVE_STATUSBAR 1
42055 _ACEOF
42056
42057 cat >>confdefs.h <<\_ACEOF
42058 #define wxUSE_STATUSBAR 1
42059 _ACEOF
42060
42061 USES_CONTROLS=1
42062
42063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
42064 fi
42065
42066 if test "$wxUSE_TABDIALOG" = "yes"; then
42067 cat >>confdefs.h <<\_ACEOF
42068 #define wxUSE_TAB_DIALOG 1
42069 _ACEOF
42070
42071 fi
42072
42073 if test "$wxUSE_TEXTCTRL" = "yes"; then
42074 cat >>confdefs.h <<\_ACEOF
42075 #define wxUSE_TEXTCTRL 1
42076 _ACEOF
42077
42078 USES_CONTROLS=1
42079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
42080 fi
42081
42082 if test "$wxUSE_TOGGLEBTN" = "yes"; then
42083 if test "$wxUSE_COCOA" = 1 ; then
42084 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
42085 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
42086 wxUSE_TOGGLEBTN=no
42087 fi
42088 if test "$wxUSE_UNIVERSAL" = "yes"; then
42089 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
42090 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
42091 wxUSE_TOGGLEBTN=no
42092 fi
42093
42094 if test "$wxUSE_TOGGLEBTN" = "yes"; then
42095 cat >>confdefs.h <<\_ACEOF
42096 #define wxUSE_TOGGLEBTN 1
42097 _ACEOF
42098
42099 USES_CONTROLS=1
42100 fi
42101 fi
42102
42103 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
42104 cat >>confdefs.h <<\_ACEOF
42105 #define wxUSE_TOOLBAR_SIMPLE 1
42106 _ACEOF
42107
42108 wxUSE_TOOLBAR="yes"
42109 USES_CONTROLS=1
42110 fi
42111
42112 if test "$wxUSE_TOOLBAR" = "yes"; then
42113 cat >>confdefs.h <<\_ACEOF
42114 #define wxUSE_TOOLBAR 1
42115 _ACEOF
42116
42117 USES_CONTROLS=1
42118
42119 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
42120 wxUSE_TOOLBAR_NATIVE="yes"
42121 fi
42122
42123 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
42124 cat >>confdefs.h <<\_ACEOF
42125 #define wxUSE_TOOLBAR_NATIVE 1
42126 _ACEOF
42127
42128 USES_CONTROLS=1
42129 fi
42130
42131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
42132 fi
42133
42134 if test "$wxUSE_TOOLTIPS" = "yes"; then
42135 if test "$wxUSE_MOTIF" = 1; then
42136 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
42137 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
42138 else
42139 if test "$wxUSE_UNIVERSAL" = "yes"; then
42140 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
42141 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
42142 else
42143 cat >>confdefs.h <<\_ACEOF
42144 #define wxUSE_TOOLTIPS 1
42145 _ACEOF
42146
42147 fi
42148 fi
42149 fi
42150
42151 if test "$wxUSE_TREEBOOK" = "yes"; then
42152 cat >>confdefs.h <<\_ACEOF
42153 #define wxUSE_TREEBOOK 1
42154 _ACEOF
42155
42156 USES_CONTROLS=1
42157 fi
42158
42159 if test "$wxUSE_TREECTRL" = "yes"; then
42160 if test "$wxUSE_IMAGLIST" = "yes"; then
42161 cat >>confdefs.h <<\_ACEOF
42162 #define wxUSE_TREECTRL 1
42163 _ACEOF
42164
42165 USES_CONTROLS=1
42166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
42167 else
42168 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
42169 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
42170 fi
42171 fi
42172
42173 if test "$wxUSE_POPUPWIN" = "yes"; then
42174 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42175 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
42176 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
42177 else
42178 if test "$wxUSE_PM" = 1; then
42179 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
42180 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
42181 else
42182 cat >>confdefs.h <<\_ACEOF
42183 #define wxUSE_POPUPWIN 1
42184 _ACEOF
42185
42186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
42187
42188 USES_CONTROLS=1
42189 fi
42190 fi
42191 fi
42192
42193 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
42194 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42195 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
42196 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
42197 else
42198 cat >>confdefs.h <<\_ACEOF
42199 #define wxUSE_DIALUP_MANAGER 1
42200 _ACEOF
42201
42202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
42203 fi
42204 fi
42205
42206 if test "$wxUSE_TIPWINDOW" = "yes"; then
42207 if test "$wxUSE_PM" = 1; then
42208 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
42209 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
42210 else
42211 cat >>confdefs.h <<\_ACEOF
42212 #define wxUSE_TIPWINDOW 1
42213 _ACEOF
42214
42215 fi
42216 fi
42217
42218 if test "$USES_CONTROLS" = 1; then
42219 cat >>confdefs.h <<\_ACEOF
42220 #define wxUSE_CONTROLS 1
42221 _ACEOF
42222
42223 fi
42224
42225
42226 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
42227 cat >>confdefs.h <<\_ACEOF
42228 #define wxUSE_ACCESSIBILITY 1
42229 _ACEOF
42230
42231 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
42232 fi
42233
42234 if test "$wxUSE_DC_CACHEING" = "yes"; then
42235 cat >>confdefs.h <<\_ACEOF
42236 #define wxUSE_DC_CACHEING 1
42237 _ACEOF
42238
42239 fi
42240
42241 if test "$wxUSE_DRAGIMAGE" = "yes"; then
42242 cat >>confdefs.h <<\_ACEOF
42243 #define wxUSE_DRAGIMAGE 1
42244 _ACEOF
42245
42246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
42247 fi
42248
42249 if test "$wxUSE_EXCEPTIONS" = "yes"; then
42250 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42251 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
42252 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
42253 else
42254 cat >>confdefs.h <<\_ACEOF
42255 #define wxUSE_EXCEPTIONS 1
42256 _ACEOF
42257
42258 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
42259 fi
42260 fi
42261
42262 USE_HTML=0
42263 if test "$wxUSE_HTML" = "yes"; then
42264 cat >>confdefs.h <<\_ACEOF
42265 #define wxUSE_HTML 1
42266 _ACEOF
42267
42268 USE_HTML=1
42269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
42270 if test "$wxUSE_MAC" = 1; then
42271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
42272 fi
42273 fi
42274 if test "$wxUSE_WEBKIT" = "yes"; then
42275 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
42276 old_CPPFLAGS="$CPPFLAGS"
42277 CPPFLAGS="$CPPFLAGS -x objective-c++"
42278 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
42279 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
42280 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
42281 echo $ECHO_N "(cached) $ECHO_C" >&6
42282 else
42283 cat >conftest.$ac_ext <<_ACEOF
42284 /* confdefs.h. */
42285 _ACEOF
42286 cat confdefs.h >>conftest.$ac_ext
42287 cat >>conftest.$ac_ext <<_ACEOF
42288 /* end confdefs.h. */
42289 #include <Carbon/Carbon.h>
42290
42291 #include <WebKit/HIWebView.h>
42292 _ACEOF
42293 rm -f conftest.$ac_objext
42294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42295 (eval $ac_compile) 2>conftest.er1
42296 ac_status=$?
42297 grep -v '^ *+' conftest.er1 >conftest.err
42298 rm -f conftest.er1
42299 cat conftest.err >&5
42300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42301 (exit $ac_status); } &&
42302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42304 (eval $ac_try) 2>&5
42305 ac_status=$?
42306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42307 (exit $ac_status); }; } &&
42308 { ac_try='test -s conftest.$ac_objext'
42309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42310 (eval $ac_try) 2>&5
42311 ac_status=$?
42312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42313 (exit $ac_status); }; }; then
42314 ac_cv_header_WebKit_HIWebView_h=yes
42315 else
42316 echo "$as_me: failed program was:" >&5
42317 sed 's/^/| /' conftest.$ac_ext >&5
42318
42319 ac_cv_header_WebKit_HIWebView_h=no
42320 fi
42321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42322 fi
42323 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
42324 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
42325 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
42326
42327 cat >>confdefs.h <<\_ACEOF
42328 #define wxUSE_WEBKIT 1
42329 _ACEOF
42330
42331 WEBKIT_LINK="-framework WebKit"
42332
42333 else
42334
42335 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
42336 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
42337 wxUSE_WEBKIT=no
42338
42339 fi
42340
42341
42342 CPPFLAGS="$old_CPPFLAGS"
42343 elif test "$wxUSE_COCOA" = 1; then
42344 cat >>confdefs.h <<\_ACEOF
42345 #define wxUSE_WEBKIT 1
42346 _ACEOF
42347
42348 else
42349 wxUSE_WEBKIT=no
42350 fi
42351 fi
42352
42353 USE_XRC=0
42354 if test "$wxUSE_XRC" = "yes"; then
42355 if test "$wxUSE_XML" != "yes"; then
42356 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
42357 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
42358 wxUSE_XRC=no
42359 else
42360 cat >>confdefs.h <<\_ACEOF
42361 #define wxUSE_XRC 1
42362 _ACEOF
42363
42364 USE_XRC=1
42365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
42366 fi
42367 fi
42368
42369 if test "$wxUSE_MENUS" = "yes"; then
42370 cat >>confdefs.h <<\_ACEOF
42371 #define wxUSE_MENUS 1
42372 _ACEOF
42373
42374 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
42375 fi
42376
42377 if test "$wxUSE_METAFILE" = "yes"; then
42378 cat >>confdefs.h <<\_ACEOF
42379 #define wxUSE_METAFILE 1
42380 _ACEOF
42381
42382 fi
42383
42384 if test "$wxUSE_MIMETYPE" = "yes"; then
42385 cat >>confdefs.h <<\_ACEOF
42386 #define wxUSE_MIMETYPE 1
42387 _ACEOF
42388
42389 fi
42390
42391 if test "$wxUSE_MINIFRAME" = "yes"; then
42392 cat >>confdefs.h <<\_ACEOF
42393 #define wxUSE_MINIFRAME 1
42394 _ACEOF
42395
42396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
42397 fi
42398
42399 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
42400 cat >>confdefs.h <<\_ACEOF
42401 #define wxUSE_SYSTEM_OPTIONS 1
42402 _ACEOF
42403
42404 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
42405 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
42406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
42407 fi
42408 fi
42409
42410
42411 if test "$wxUSE_VALIDATORS" = "yes"; then
42412 cat >>confdefs.h <<\_ACEOF
42413 #define wxUSE_VALIDATORS 1
42414 _ACEOF
42415
42416 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
42417 fi
42418
42419 if test "$wxUSE_PALETTE" = "yes" ; then
42420 cat >>confdefs.h <<\_ACEOF
42421 #define wxUSE_PALETTE 1
42422 _ACEOF
42423
42424 fi
42425
42426 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
42427 LIBS=" -lunicows $LIBS"
42428 fi
42429
42430
42431 if test "$wxUSE_IMAGE" = "yes" ; then
42432 cat >>confdefs.h <<\_ACEOF
42433 #define wxUSE_IMAGE 1
42434 _ACEOF
42435
42436
42437 if test "$wxUSE_GIF" = "yes" ; then
42438 cat >>confdefs.h <<\_ACEOF
42439 #define wxUSE_GIF 1
42440 _ACEOF
42441
42442 fi
42443
42444 if test "$wxUSE_PCX" = "yes" ; then
42445 cat >>confdefs.h <<\_ACEOF
42446 #define wxUSE_PCX 1
42447 _ACEOF
42448
42449 fi
42450
42451 if test "$wxUSE_IFF" = "yes" ; then
42452 cat >>confdefs.h <<\_ACEOF
42453 #define wxUSE_IFF 1
42454 _ACEOF
42455
42456 fi
42457
42458 if test "$wxUSE_PNM" = "yes" ; then
42459 cat >>confdefs.h <<\_ACEOF
42460 #define wxUSE_PNM 1
42461 _ACEOF
42462
42463 fi
42464
42465 if test "$wxUSE_XPM" = "yes" ; then
42466 cat >>confdefs.h <<\_ACEOF
42467 #define wxUSE_XPM 1
42468 _ACEOF
42469
42470 fi
42471
42472 if test "$wxUSE_ICO_CUR" = "yes" ; then
42473 cat >>confdefs.h <<\_ACEOF
42474 #define wxUSE_ICO_CUR 1
42475 _ACEOF
42476
42477 fi
42478 fi
42479
42480
42481 if test "$wxUSE_CHOICEDLG" = "yes"; then
42482 cat >>confdefs.h <<\_ACEOF
42483 #define wxUSE_CHOICEDLG 1
42484 _ACEOF
42485
42486 fi
42487
42488 if test "$wxUSE_COLOURDLG" = "yes"; then
42489 cat >>confdefs.h <<\_ACEOF
42490 #define wxUSE_COLOURDLG 1
42491 _ACEOF
42492
42493 fi
42494
42495 if test "$wxUSE_FILEDLG" = "yes"; then
42496 cat >>confdefs.h <<\_ACEOF
42497 #define wxUSE_FILEDLG 1
42498 _ACEOF
42499
42500 fi
42501
42502 if test "$wxUSE_FINDREPLDLG" = "yes"; then
42503 cat >>confdefs.h <<\_ACEOF
42504 #define wxUSE_FINDREPLDLG 1
42505 _ACEOF
42506
42507 fi
42508
42509 if test "$wxUSE_FONTDLG" = "yes"; then
42510 cat >>confdefs.h <<\_ACEOF
42511 #define wxUSE_FONTDLG 1
42512 _ACEOF
42513
42514 fi
42515
42516 if test "$wxUSE_DIRDLG" = "yes"; then
42517 if test "$wxUSE_TREECTRL" != "yes"; then
42518 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
42519 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
42520 else
42521 cat >>confdefs.h <<\_ACEOF
42522 #define wxUSE_DIRDLG 1
42523 _ACEOF
42524
42525 fi
42526 fi
42527
42528 if test "$wxUSE_MSGDLG" = "yes"; then
42529 cat >>confdefs.h <<\_ACEOF
42530 #define wxUSE_MSGDLG 1
42531 _ACEOF
42532
42533 fi
42534
42535 if test "$wxUSE_NUMBERDLG" = "yes"; then
42536 cat >>confdefs.h <<\_ACEOF
42537 #define wxUSE_NUMBERDLG 1
42538 _ACEOF
42539
42540 fi
42541
42542 if test "$wxUSE_PROGRESSDLG" = "yes"; then
42543 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42544 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
42545 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
42546 else
42547 cat >>confdefs.h <<\_ACEOF
42548 #define wxUSE_PROGRESSDLG 1
42549 _ACEOF
42550
42551 fi
42552 fi
42553
42554 if test "$wxUSE_SPLASH" = "yes"; then
42555 cat >>confdefs.h <<\_ACEOF
42556 #define wxUSE_SPLASH 1
42557 _ACEOF
42558
42559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
42560 fi
42561
42562 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
42563 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42564 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
42565 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
42566 else
42567 cat >>confdefs.h <<\_ACEOF
42568 #define wxUSE_STARTUP_TIPS 1
42569 _ACEOF
42570
42571 fi
42572 fi
42573
42574 if test "$wxUSE_TEXTDLG" = "yes"; then
42575 cat >>confdefs.h <<\_ACEOF
42576 #define wxUSE_TEXTDLG 1
42577 _ACEOF
42578
42579 fi
42580
42581 if test "$wxUSE_WIZARDDLG" = "yes"; then
42582 cat >>confdefs.h <<\_ACEOF
42583 #define wxUSE_WIZARDDLG 1
42584 _ACEOF
42585
42586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
42587 fi
42588
42589
42590 if test "$wxUSE_MEDIACTRL" = "yes"; then
42591 if test "$wxUSE_GTK" = 1; then
42592 wxUSE_GSTREAMER="yes"
42593
42594
42595 succeeded=no
42596
42597 if test -z "$PKG_CONFIG"; then
42598 # Extract the first word of "pkg-config", so it can be a program name with args.
42599 set dummy pkg-config; ac_word=$2
42600 echo "$as_me:$LINENO: checking for $ac_word" >&5
42601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42602 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42603 echo $ECHO_N "(cached) $ECHO_C" >&6
42604 else
42605 case $PKG_CONFIG in
42606 [\\/]* | ?:[\\/]*)
42607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42608 ;;
42609 *)
42610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42611 for as_dir in $PATH
42612 do
42613 IFS=$as_save_IFS
42614 test -z "$as_dir" && as_dir=.
42615 for ac_exec_ext in '' $ac_executable_extensions; do
42616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42617 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42619 break 2
42620 fi
42621 done
42622 done
42623
42624 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
42625 ;;
42626 esac
42627 fi
42628 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42629
42630 if test -n "$PKG_CONFIG"; then
42631 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42632 echo "${ECHO_T}$PKG_CONFIG" >&6
42633 else
42634 echo "$as_me:$LINENO: result: no" >&5
42635 echo "${ECHO_T}no" >&6
42636 fi
42637
42638 fi
42639
42640 if test "$PKG_CONFIG" = "no" ; then
42641 echo "*** The pkg-config script could not be found. Make sure it is"
42642 echo "*** in your path, or set the PKG_CONFIG environment variable"
42643 echo "*** to the full path to pkg-config."
42644 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
42645 else
42646 PKG_CONFIG_MIN_VERSION=0.9.0
42647 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
42648 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
42649 echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
42650
42651 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
42652 echo "$as_me:$LINENO: result: yes" >&5
42653 echo "${ECHO_T}yes" >&6
42654 succeeded=yes
42655
42656 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
42657 echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
42658 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
42659 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
42660 echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
42661
42662 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
42663 echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
42664 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
42665 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
42666 echo "${ECHO_T}$GSTREAMER_LIBS" >&6
42667 else
42668 GSTREAMER_CFLAGS=""
42669 GSTREAMER_LIBS=""
42670 ## If we have a custom action on failure, don't print errors, but
42671 ## do set a variable so people can do so.
42672 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
42673
42674 fi
42675
42676
42677
42678 else
42679 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
42680 echo "*** See http://www.freedesktop.org/software/pkgconfig"
42681 fi
42682 fi
42683
42684 if test $succeeded = yes; then
42685
42686 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
42687 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
42688
42689 else
42690
42691 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
42692 echo "$as_me: WARNING: GStreamer installation not found" >&2;}
42693 wxUSE_GSTREAMER="no"
42694
42695 fi
42696
42697
42698
42699
42700
42701 if test "x$GST_INSPECT" == "x"; then
42702 # Extract the first word of "gst-inspect", so it can be a program name with args.
42703 set dummy gst-inspect; ac_word=$2
42704 echo "$as_me:$LINENO: checking for $ac_word" >&5
42705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42706 if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
42707 echo $ECHO_N "(cached) $ECHO_C" >&6
42708 else
42709 if test -n "$GST_INSPECT"; then
42710 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
42711 else
42712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42713 for as_dir in $PATH
42714 do
42715 IFS=$as_save_IFS
42716 test -z "$as_dir" && as_dir=.
42717 for ac_exec_ext in '' $ac_executable_extensions; do
42718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42719 ac_cv_prog_GST_INSPECT="gst-inspect"
42720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42721 break 2
42722 fi
42723 done
42724 done
42725
42726 fi
42727 fi
42728 GST_INSPECT=$ac_cv_prog_GST_INSPECT
42729 if test -n "$GST_INSPECT"; then
42730 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
42731 echo "${ECHO_T}$GST_INSPECT" >&6
42732 else
42733 echo "$as_me:$LINENO: result: no" >&5
42734 echo "${ECHO_T}no" >&6
42735 fi
42736
42737 fi
42738
42739 if test "x$GST_INSPECT" != "x"; then
42740 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
42741 echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
42742 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
42743 echo "$as_me:$LINENO: result: found." >&5
42744 echo "${ECHO_T}found." >&6
42745
42746 else
42747 echo "$as_me:$LINENO: result: not found." >&5
42748 echo "${ECHO_T}not found." >&6
42749
42750 wxUSE_GSTREAMER="no"
42751 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
42752 echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
42753
42754 fi
42755 fi
42756
42757
42758 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
42759 echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
42760 if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
42761 echo $ECHO_N "(cached) $ECHO_C" >&6
42762 else
42763 cat >conftest.$ac_ext <<_ACEOF
42764 /* confdefs.h. */
42765 _ACEOF
42766 cat confdefs.h >>conftest.$ac_ext
42767 cat >>conftest.$ac_ext <<_ACEOF
42768 /* end confdefs.h. */
42769 #include <gst/gst.h>
42770
42771 #include <gst/xoverlay/xoverlay.h>
42772 _ACEOF
42773 rm -f conftest.$ac_objext
42774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42775 (eval $ac_compile) 2>conftest.er1
42776 ac_status=$?
42777 grep -v '^ *+' conftest.er1 >conftest.err
42778 rm -f conftest.er1
42779 cat conftest.err >&5
42780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42781 (exit $ac_status); } &&
42782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42784 (eval $ac_try) 2>&5
42785 ac_status=$?
42786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42787 (exit $ac_status); }; } &&
42788 { ac_try='test -s conftest.$ac_objext'
42789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42790 (eval $ac_try) 2>&5
42791 ac_status=$?
42792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42793 (exit $ac_status); }; }; then
42794 ac_cv_header_gst_xoverlay_xoverlay_h=yes
42795 else
42796 echo "$as_me: failed program was:" >&5
42797 sed 's/^/| /' conftest.$ac_ext >&5
42798
42799 ac_cv_header_gst_xoverlay_xoverlay_h=no
42800 fi
42801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42802 fi
42803 echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
42804 echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42805 if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42806 :
42807 else
42808
42809 wxUSE_GSTREAMER="no"
42810 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42811 echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
42812
42813 fi
42814
42815
42816
42817 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
42818 echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42819
42820 ac_find_libraries=
42821 for ac_dir in $SEARCH_LIB;
42822 do
42823 for ac_extension in a so sl dylib dll.a; do
42824 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42825 ac_find_libraries=$ac_dir
42826 break 2
42827 fi
42828 done
42829 done
42830
42831
42832 if test "$ac_find_libraries" = "" ; then
42833 echo "$as_me:$LINENO: result: no" >&5
42834 echo "${ECHO_T}no" >&6
42835 wxUSE_GSTREAMER="no"
42836 else
42837 echo "$as_me:$LINENO: result: yes" >&5
42838 echo "${ECHO_T}yes" >&6
42839 fi
42840
42841 if test "$wxUSE_GSTREAMER" = "yes"; then
42842 cat >>confdefs.h <<\_ACEOF
42843 #define wxUSE_GSTREAMER 1
42844 _ACEOF
42845
42846 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42847 echo "${ECHO_T}GStreamer detection successful" >&6
42848 fi
42849 fi
42850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42851 cat >>confdefs.h <<\_ACEOF
42852 #define wxUSE_MEDIACTRL 1
42853 _ACEOF
42854
42855 fi
42856
42857
42858 if test "$cross_compiling" = "yes"; then
42859 OSINFO="\"$host\""
42860 else
42861 OSINFO=`uname -s -r -m`
42862 OSINFO="\"$OSINFO\""
42863 fi
42864
42865 cat >>confdefs.h <<_ACEOF
42866 #define WXWIN_OS_DESCRIPTION $OSINFO
42867 _ACEOF
42868
42869
42870
42871 if test "x$prefix" != "xNONE"; then
42872 wxPREFIX=$prefix
42873 else
42874 wxPREFIX=$ac_default_prefix
42875 fi
42876
42877 cat >>confdefs.h <<_ACEOF
42878 #define wxINSTALL_PREFIX "$wxPREFIX"
42879 _ACEOF
42880
42881
42882
42883
42884 CORE_BASE_LIBS="net base"
42885 CORE_GUI_LIBS="adv core"
42886
42887 if test "$wxUSE_XML" = "yes" ; then
42888 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42889 fi
42890 if test "$wxUSE_ODBC" != "no" ; then
42891 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42892 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42893 fi
42894 if test "$wxUSE_HTML" = "yes" ; then
42895 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42896 fi
42897 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42898 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42899 fi
42900 if test "$wxUSE_XRC" = "yes" ; then
42901 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42902 fi
42903
42904 if test "$wxUSE_GUI" != "yes"; then
42905 CORE_GUI_LIBS=""
42906 fi
42907
42908
42909
42910
42911
42912
42913
42914
42915 if test "$wxUSE_MAC" = 1 ; then
42916 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
42917 if test "$USE_DARWIN" = 1; then
42918 LDFLAGS="$LDFLAGS -framework QuickTime"
42919 else
42920 LDFLAGS="$LDFLAGS -lQuickTimeLib"
42921 fi
42922 fi
42923 if test "$USE_DARWIN" = 1; then
42924 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
42925 else
42926 LDFLAGS="$LDFLAGS -lCarbonLib"
42927 fi
42928 fi
42929 if test "$wxUSE_COCOA" = 1 ; then
42930 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
42931 if test "$wxUSE_MEDIACTRL" = "yes"; then
42932 LDFLAGS="$LDFLAGS -framework QuickTime"
42933 fi
42934 fi
42935 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
42936 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
42937 fi
42938
42939
42940 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
42941
42942 have_cos=0
42943 have_floor=0
42944
42945 for ac_func in cos
42946 do
42947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42948 echo "$as_me:$LINENO: checking for $ac_func" >&5
42949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42950 if eval "test \"\${$as_ac_var+set}\" = set"; then
42951 echo $ECHO_N "(cached) $ECHO_C" >&6
42952 else
42953 cat >conftest.$ac_ext <<_ACEOF
42954 /* confdefs.h. */
42955 _ACEOF
42956 cat confdefs.h >>conftest.$ac_ext
42957 cat >>conftest.$ac_ext <<_ACEOF
42958 /* end confdefs.h. */
42959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42961 #define $ac_func innocuous_$ac_func
42962
42963 /* System header to define __stub macros and hopefully few prototypes,
42964 which can conflict with char $ac_func (); below.
42965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42966 <limits.h> exists even on freestanding compilers. */
42967
42968 #ifdef __STDC__
42969 # include <limits.h>
42970 #else
42971 # include <assert.h>
42972 #endif
42973
42974 #undef $ac_func
42975
42976 /* Override any gcc2 internal prototype to avoid an error. */
42977 #ifdef __cplusplus
42978 extern "C"
42979 {
42980 #endif
42981 /* We use char because int might match the return type of a gcc2
42982 builtin and then its argument prototype would still apply. */
42983 char $ac_func ();
42984 /* The GNU C library defines this for functions which it implements
42985 to always fail with ENOSYS. Some functions are actually named
42986 something starting with __ and the normal name is an alias. */
42987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42988 choke me
42989 #else
42990 char (*f) () = $ac_func;
42991 #endif
42992 #ifdef __cplusplus
42993 }
42994 #endif
42995
42996 int
42997 main ()
42998 {
42999 return f != $ac_func;
43000 ;
43001 return 0;
43002 }
43003 _ACEOF
43004 rm -f conftest.$ac_objext conftest$ac_exeext
43005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43006 (eval $ac_link) 2>conftest.er1
43007 ac_status=$?
43008 grep -v '^ *+' conftest.er1 >conftest.err
43009 rm -f conftest.er1
43010 cat conftest.err >&5
43011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43012 (exit $ac_status); } &&
43013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43015 (eval $ac_try) 2>&5
43016 ac_status=$?
43017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43018 (exit $ac_status); }; } &&
43019 { ac_try='test -s conftest$ac_exeext'
43020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43021 (eval $ac_try) 2>&5
43022 ac_status=$?
43023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43024 (exit $ac_status); }; }; then
43025 eval "$as_ac_var=yes"
43026 else
43027 echo "$as_me: failed program was:" >&5
43028 sed 's/^/| /' conftest.$ac_ext >&5
43029
43030 eval "$as_ac_var=no"
43031 fi
43032 rm -f conftest.err conftest.$ac_objext \
43033 conftest$ac_exeext conftest.$ac_ext
43034 fi
43035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43037 if test `eval echo '${'$as_ac_var'}'` = yes; then
43038 cat >>confdefs.h <<_ACEOF
43039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43040 _ACEOF
43041 have_cos=1
43042 fi
43043 done
43044
43045
43046 for ac_func in floor
43047 do
43048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43049 echo "$as_me:$LINENO: checking for $ac_func" >&5
43050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43051 if eval "test \"\${$as_ac_var+set}\" = set"; then
43052 echo $ECHO_N "(cached) $ECHO_C" >&6
43053 else
43054 cat >conftest.$ac_ext <<_ACEOF
43055 /* confdefs.h. */
43056 _ACEOF
43057 cat confdefs.h >>conftest.$ac_ext
43058 cat >>conftest.$ac_ext <<_ACEOF
43059 /* end confdefs.h. */
43060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43062 #define $ac_func innocuous_$ac_func
43063
43064 /* System header to define __stub macros and hopefully few prototypes,
43065 which can conflict with char $ac_func (); below.
43066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43067 <limits.h> exists even on freestanding compilers. */
43068
43069 #ifdef __STDC__
43070 # include <limits.h>
43071 #else
43072 # include <assert.h>
43073 #endif
43074
43075 #undef $ac_func
43076
43077 /* Override any gcc2 internal prototype to avoid an error. */
43078 #ifdef __cplusplus
43079 extern "C"
43080 {
43081 #endif
43082 /* We use char because int might match the return type of a gcc2
43083 builtin and then its argument prototype would still apply. */
43084 char $ac_func ();
43085 /* The GNU C library defines this for functions which it implements
43086 to always fail with ENOSYS. Some functions are actually named
43087 something starting with __ and the normal name is an alias. */
43088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43089 choke me
43090 #else
43091 char (*f) () = $ac_func;
43092 #endif
43093 #ifdef __cplusplus
43094 }
43095 #endif
43096
43097 int
43098 main ()
43099 {
43100 return f != $ac_func;
43101 ;
43102 return 0;
43103 }
43104 _ACEOF
43105 rm -f conftest.$ac_objext conftest$ac_exeext
43106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43107 (eval $ac_link) 2>conftest.er1
43108 ac_status=$?
43109 grep -v '^ *+' conftest.er1 >conftest.err
43110 rm -f conftest.er1
43111 cat conftest.err >&5
43112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43113 (exit $ac_status); } &&
43114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43116 (eval $ac_try) 2>&5
43117 ac_status=$?
43118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43119 (exit $ac_status); }; } &&
43120 { ac_try='test -s conftest$ac_exeext'
43121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43122 (eval $ac_try) 2>&5
43123 ac_status=$?
43124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125 (exit $ac_status); }; }; then
43126 eval "$as_ac_var=yes"
43127 else
43128 echo "$as_me: failed program was:" >&5
43129 sed 's/^/| /' conftest.$ac_ext >&5
43130
43131 eval "$as_ac_var=no"
43132 fi
43133 rm -f conftest.err conftest.$ac_objext \
43134 conftest$ac_exeext conftest.$ac_ext
43135 fi
43136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43138 if test `eval echo '${'$as_ac_var'}'` = yes; then
43139 cat >>confdefs.h <<_ACEOF
43140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43141 _ACEOF
43142 have_floor=1
43143 fi
43144 done
43145
43146 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
43147 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
43148 if test "$have_cos" = 1 -a "$have_floor" = 1; then
43149 echo "$as_me:$LINENO: result: yes" >&5
43150 echo "${ECHO_T}yes" >&6
43151 else
43152 echo "$as_me:$LINENO: result: no" >&5
43153 echo "${ECHO_T}no" >&6
43154 LIBS="$LIBS -lm"
43155 # use different functions to avoid configure caching
43156 have_sin=0
43157 have_ceil=0
43158
43159 for ac_func in sin
43160 do
43161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43162 echo "$as_me:$LINENO: checking for $ac_func" >&5
43163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43164 if eval "test \"\${$as_ac_var+set}\" = set"; then
43165 echo $ECHO_N "(cached) $ECHO_C" >&6
43166 else
43167 cat >conftest.$ac_ext <<_ACEOF
43168 /* confdefs.h. */
43169 _ACEOF
43170 cat confdefs.h >>conftest.$ac_ext
43171 cat >>conftest.$ac_ext <<_ACEOF
43172 /* end confdefs.h. */
43173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43175 #define $ac_func innocuous_$ac_func
43176
43177 /* System header to define __stub macros and hopefully few prototypes,
43178 which can conflict with char $ac_func (); below.
43179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43180 <limits.h> exists even on freestanding compilers. */
43181
43182 #ifdef __STDC__
43183 # include <limits.h>
43184 #else
43185 # include <assert.h>
43186 #endif
43187
43188 #undef $ac_func
43189
43190 /* Override any gcc2 internal prototype to avoid an error. */
43191 #ifdef __cplusplus
43192 extern "C"
43193 {
43194 #endif
43195 /* We use char because int might match the return type of a gcc2
43196 builtin and then its argument prototype would still apply. */
43197 char $ac_func ();
43198 /* The GNU C library defines this for functions which it implements
43199 to always fail with ENOSYS. Some functions are actually named
43200 something starting with __ and the normal name is an alias. */
43201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43202 choke me
43203 #else
43204 char (*f) () = $ac_func;
43205 #endif
43206 #ifdef __cplusplus
43207 }
43208 #endif
43209
43210 int
43211 main ()
43212 {
43213 return f != $ac_func;
43214 ;
43215 return 0;
43216 }
43217 _ACEOF
43218 rm -f conftest.$ac_objext conftest$ac_exeext
43219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43220 (eval $ac_link) 2>conftest.er1
43221 ac_status=$?
43222 grep -v '^ *+' conftest.er1 >conftest.err
43223 rm -f conftest.er1
43224 cat conftest.err >&5
43225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43226 (exit $ac_status); } &&
43227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43229 (eval $ac_try) 2>&5
43230 ac_status=$?
43231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43232 (exit $ac_status); }; } &&
43233 { ac_try='test -s conftest$ac_exeext'
43234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43235 (eval $ac_try) 2>&5
43236 ac_status=$?
43237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43238 (exit $ac_status); }; }; then
43239 eval "$as_ac_var=yes"
43240 else
43241 echo "$as_me: failed program was:" >&5
43242 sed 's/^/| /' conftest.$ac_ext >&5
43243
43244 eval "$as_ac_var=no"
43245 fi
43246 rm -f conftest.err conftest.$ac_objext \
43247 conftest$ac_exeext conftest.$ac_ext
43248 fi
43249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43251 if test `eval echo '${'$as_ac_var'}'` = yes; then
43252 cat >>confdefs.h <<_ACEOF
43253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43254 _ACEOF
43255 have_sin=1
43256 fi
43257 done
43258
43259
43260 for ac_func in ceil
43261 do
43262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43263 echo "$as_me:$LINENO: checking for $ac_func" >&5
43264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43265 if eval "test \"\${$as_ac_var+set}\" = set"; then
43266 echo $ECHO_N "(cached) $ECHO_C" >&6
43267 else
43268 cat >conftest.$ac_ext <<_ACEOF
43269 /* confdefs.h. */
43270 _ACEOF
43271 cat confdefs.h >>conftest.$ac_ext
43272 cat >>conftest.$ac_ext <<_ACEOF
43273 /* end confdefs.h. */
43274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43276 #define $ac_func innocuous_$ac_func
43277
43278 /* System header to define __stub macros and hopefully few prototypes,
43279 which can conflict with char $ac_func (); below.
43280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43281 <limits.h> exists even on freestanding compilers. */
43282
43283 #ifdef __STDC__
43284 # include <limits.h>
43285 #else
43286 # include <assert.h>
43287 #endif
43288
43289 #undef $ac_func
43290
43291 /* Override any gcc2 internal prototype to avoid an error. */
43292 #ifdef __cplusplus
43293 extern "C"
43294 {
43295 #endif
43296 /* We use char because int might match the return type of a gcc2
43297 builtin and then its argument prototype would still apply. */
43298 char $ac_func ();
43299 /* The GNU C library defines this for functions which it implements
43300 to always fail with ENOSYS. Some functions are actually named
43301 something starting with __ and the normal name is an alias. */
43302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43303 choke me
43304 #else
43305 char (*f) () = $ac_func;
43306 #endif
43307 #ifdef __cplusplus
43308 }
43309 #endif
43310
43311 int
43312 main ()
43313 {
43314 return f != $ac_func;
43315 ;
43316 return 0;
43317 }
43318 _ACEOF
43319 rm -f conftest.$ac_objext conftest$ac_exeext
43320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43321 (eval $ac_link) 2>conftest.er1
43322 ac_status=$?
43323 grep -v '^ *+' conftest.er1 >conftest.err
43324 rm -f conftest.er1
43325 cat conftest.err >&5
43326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43327 (exit $ac_status); } &&
43328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43330 (eval $ac_try) 2>&5
43331 ac_status=$?
43332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333 (exit $ac_status); }; } &&
43334 { ac_try='test -s conftest$ac_exeext'
43335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43336 (eval $ac_try) 2>&5
43337 ac_status=$?
43338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43339 (exit $ac_status); }; }; then
43340 eval "$as_ac_var=yes"
43341 else
43342 echo "$as_me: failed program was:" >&5
43343 sed 's/^/| /' conftest.$ac_ext >&5
43344
43345 eval "$as_ac_var=no"
43346 fi
43347 rm -f conftest.err conftest.$ac_objext \
43348 conftest$ac_exeext conftest.$ac_ext
43349 fi
43350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43352 if test `eval echo '${'$as_ac_var'}'` = yes; then
43353 cat >>confdefs.h <<_ACEOF
43354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43355 _ACEOF
43356 have_ceil=1
43357 fi
43358 done
43359
43360 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
43361 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
43362 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
43363 echo "$as_me:$LINENO: result: yes" >&5
43364 echo "${ECHO_T}yes" >&6
43365 else
43366 echo "$as_me:$LINENO: result: no" >&5
43367 echo "${ECHO_T}no" >&6
43368 # not sure we should warn the user, crash, etc.
43369 fi
43370 fi
43371
43372 if test "$wxUSE_GUI" = "yes"; then
43373
43374
43375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
43376 dynamic erase event exec font image minimal mobile \
43377 mobile/wxedit mobile/styles propsize render \
43378 richedit rotate shaped vscroll widgets"
43379
43380 if test "$wxUSE_MONOLITHIC" != "yes"; then
43381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
43382 fi
43383 if test "$TOOLKIT" = "MSW"; then
43384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
43385 if test "$wxUSE_UNIVERSAL" != "yes"; then
43386 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
43387 fi
43388 fi
43389 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
43390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
43391 fi
43392 else
43393 SAMPLES_SUBDIRS="console"
43394 fi
43395
43396
43397 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
43398 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
43399
43400 if test "x$INTELCC" = "xyes" ; then
43401 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
43402 elif test "$GCC" = yes ; then
43403 CWARNINGS="-Wall -Wundef"
43404 fi
43405
43406 if test "x$INTELCXX" = "xyes" ; then
43407 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
43408 elif test "$GXX" = yes ; then
43409 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
43410 fi
43411
43412 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
43413
43414 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
43415 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
43416 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
43417
43418 if test "x$MWCC" = "xyes"; then
43419
43420 CC="$CC -cwd source -I-"
43421 CXX="$CXX -cwd source -I-"
43422 fi
43423
43424
43425 LIBS=`echo $LIBS`
43426 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
43427 EXTRALIBS_XML="$EXPAT_LINK"
43428 EXTRALIBS_HTML="$MSPACK_LINK"
43429 EXTRALIBS_ODBC="$ODBC_LINK"
43430 if test "$wxUSE_GUI" = "yes"; then
43431 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
43432 fi
43433 if test "$wxUSE_OPENGL" = "yes"; then
43434 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
43435 fi
43436
43437 LDFLAGS="$LDFLAGS $PROFILE"
43438
43439 if test "$wxUSE_GTK" = 1; then
43440 WXCONFIG_INCLUDE=
43441 else
43442 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
43443 fi
43444
43445 WXCONFIG_EXTRALIBS="$LIBS"
43446
43447 if test "$wxUSE_REGEX" = "builtin" ; then
43448 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
43449 fi
43450 if test "$wxUSE_EXPAT" = "builtin" ; then
43451 wxconfig_3rdparty="expat $wxconfig_3rdparty"
43452 fi
43453 if test "$wxUSE_ODBC" = "builtin" ; then
43454 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
43455 fi
43456 if test "$wxUSE_LIBTIFF" = "builtin" ; then
43457 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
43458 fi
43459 if test "$wxUSE_LIBJPEG" = "builtin" ; then
43460 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
43461 fi
43462 if test "$wxUSE_LIBPNG" = "builtin" ; then
43463 wxconfig_3rdparty="png $wxconfig_3rdparty"
43464 fi
43465 if test "$wxUSE_ZLIB" = "builtin" ; then
43466 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
43467 fi
43468
43469 for i in $wxconfig_3rdparty ; do
43470 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
43471 done
43472
43473
43474 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
43475 WXUNIV=1
43476 else
43477 WXUNIV=0
43478 fi
43479
43480
43481
43482
43483
43484
43485
43486
43487
43488 if test $wxUSE_MONOLITHIC = "yes" ; then
43489 MONOLITHIC=1
43490 else
43491 MONOLITHIC=0
43492 fi
43493
43494 if test $wxUSE_PLUGINS = "yes" ; then
43495 USE_PLUGINS=1
43496 else
43497 USE_PLUGINS=0
43498 fi
43499
43500 if test $wxUSE_ODBC != "no" ; then
43501 USE_ODBC=1
43502 else
43503 USE_ODBC=0
43504 fi
43505
43506 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
43507 USE_QA=1
43508 else
43509 USE_QA=0
43510 fi
43511
43512 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
43513 OFFICIAL_BUILD=1
43514 else
43515 OFFICIAL_BUILD=0
43516 fi
43517
43518
43519
43520
43521
43522
43523
43524
43525
43526
43527
43528
43529
43530
43531
43532
43533
43534
43535
43536
43537
43538
43539
43540 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
43541
43542
43543
43544
43545
43546
43547
43548
43549 case "$TOOLKIT" in
43550 GTK)
43551 TOOLKIT_USER="GTK+"
43552 if test "$WXGTK20" = 1; then
43553 TOOLKIT_USER="$TOOLKIT_USER 2"
43554 fi
43555 ;;
43556
43557 *)
43558 TOOLKIT_USER=$TOOLKIT_LOWERCASE
43559 ;;
43560 esac
43561
43562 if test "$wxUSE_WINE" = "yes"; then
43563 BAKEFILE_FORCE_PLATFORM=win32
43564 fi
43565
43566
43567
43568
43569 if test "x$BAKEFILE_HOST" = "x"; then
43570 BAKEFILE_HOST="${host}"
43571 fi
43572
43573 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
43574
43575 if test -n "$ac_tool_prefix"; then
43576 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
43577 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
43578 echo "$as_me:$LINENO: checking for $ac_word" >&5
43579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43580 if test "${ac_cv_prog_RANLIB+set}" = set; then
43581 echo $ECHO_N "(cached) $ECHO_C" >&6
43582 else
43583 if test -n "$RANLIB"; then
43584 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
43585 else
43586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43587 for as_dir in $PATH
43588 do
43589 IFS=$as_save_IFS
43590 test -z "$as_dir" && as_dir=.
43591 for ac_exec_ext in '' $ac_executable_extensions; do
43592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43593 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
43594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43595 break 2
43596 fi
43597 done
43598 done
43599
43600 fi
43601 fi
43602 RANLIB=$ac_cv_prog_RANLIB
43603 if test -n "$RANLIB"; then
43604 echo "$as_me:$LINENO: result: $RANLIB" >&5
43605 echo "${ECHO_T}$RANLIB" >&6
43606 else
43607 echo "$as_me:$LINENO: result: no" >&5
43608 echo "${ECHO_T}no" >&6
43609 fi
43610
43611 fi
43612 if test -z "$ac_cv_prog_RANLIB"; then
43613 ac_ct_RANLIB=$RANLIB
43614 # Extract the first word of "ranlib", so it can be a program name with args.
43615 set dummy ranlib; ac_word=$2
43616 echo "$as_me:$LINENO: checking for $ac_word" >&5
43617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43618 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
43619 echo $ECHO_N "(cached) $ECHO_C" >&6
43620 else
43621 if test -n "$ac_ct_RANLIB"; then
43622 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
43623 else
43624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43625 for as_dir in $PATH
43626 do
43627 IFS=$as_save_IFS
43628 test -z "$as_dir" && as_dir=.
43629 for ac_exec_ext in '' $ac_executable_extensions; do
43630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43631 ac_cv_prog_ac_ct_RANLIB="ranlib"
43632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43633 break 2
43634 fi
43635 done
43636 done
43637
43638 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
43639 fi
43640 fi
43641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
43642 if test -n "$ac_ct_RANLIB"; then
43643 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
43644 echo "${ECHO_T}$ac_ct_RANLIB" >&6
43645 else
43646 echo "$as_me:$LINENO: result: no" >&5
43647 echo "${ECHO_T}no" >&6
43648 fi
43649
43650 RANLIB=$ac_ct_RANLIB
43651 else
43652 RANLIB="$ac_cv_prog_RANLIB"
43653 fi
43654
43655 # Find a good install program. We prefer a C program (faster),
43656 # so one script is as good as another. But avoid the broken or
43657 # incompatible versions:
43658 # SysV /etc/install, /usr/sbin/install
43659 # SunOS /usr/etc/install
43660 # IRIX /sbin/install
43661 # AIX /bin/install
43662 # AmigaOS /C/install, which installs bootblocks on floppy discs
43663 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
43664 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
43665 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
43666 # OS/2's system install, which has a completely different semantic
43667 # ./install, which can be erroneously created by make from ./install.sh.
43668 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
43669 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
43670 if test -z "$INSTALL"; then
43671 if test "${ac_cv_path_install+set}" = set; then
43672 echo $ECHO_N "(cached) $ECHO_C" >&6
43673 else
43674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43675 for as_dir in $PATH
43676 do
43677 IFS=$as_save_IFS
43678 test -z "$as_dir" && as_dir=.
43679 # Account for people who put trailing slashes in PATH elements.
43680 case $as_dir/ in
43681 ./ | .// | /cC/* | \
43682 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
43683 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
43684 /usr/ucb/* ) ;;
43685 *)
43686 # OSF1 and SCO ODT 3.0 have their own names for install.
43687 # Don't use installbsd from OSF since it installs stuff as root
43688 # by default.
43689 for ac_prog in ginstall scoinst install; do
43690 for ac_exec_ext in '' $ac_executable_extensions; do
43691 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
43692 if test $ac_prog = install &&
43693 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43694 # AIX install. It has an incompatible calling convention.
43695 :
43696 elif test $ac_prog = install &&
43697 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43698 # program-specific install script used by HP pwplus--don't use.
43699 :
43700 else
43701 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
43702 break 3
43703 fi
43704 fi
43705 done
43706 done
43707 ;;
43708 esac
43709 done
43710
43711
43712 fi
43713 if test "${ac_cv_path_install+set}" = set; then
43714 INSTALL=$ac_cv_path_install
43715 else
43716 # As a last resort, use the slow shell script. We don't cache a
43717 # path for INSTALL within a source directory, because that will
43718 # break other packages using the cache if that directory is
43719 # removed, or if the path is relative.
43720 INSTALL=$ac_install_sh
43721 fi
43722 fi
43723 echo "$as_me:$LINENO: result: $INSTALL" >&5
43724 echo "${ECHO_T}$INSTALL" >&6
43725
43726 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
43727 # It thinks the first close brace ends the variable substitution.
43728 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
43729
43730 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
43731
43732 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
43733
43734 echo "$as_me:$LINENO: checking whether ln -s works" >&5
43735 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
43736 LN_S=$as_ln_s
43737 if test "$LN_S" = "ln -s"; then
43738 echo "$as_me:$LINENO: result: yes" >&5
43739 echo "${ECHO_T}yes" >&6
43740 else
43741 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
43742 echo "${ECHO_T}no, using $LN_S" >&6
43743 fi
43744
43745
43746 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43747 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
43748 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
43749 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43750 echo $ECHO_N "(cached) $ECHO_C" >&6
43751 else
43752 cat >conftest.make <<\_ACEOF
43753 all:
43754 @echo 'ac_maketemp="$(MAKE)"'
43755 _ACEOF
43756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43757 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43758 if test -n "$ac_maketemp"; then
43759 eval ac_cv_prog_make_${ac_make}_set=yes
43760 else
43761 eval ac_cv_prog_make_${ac_make}_set=no
43762 fi
43763 rm -f conftest.make
43764 fi
43765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43766 echo "$as_me:$LINENO: result: yes" >&5
43767 echo "${ECHO_T}yes" >&6
43768 SET_MAKE=
43769 else
43770 echo "$as_me:$LINENO: result: no" >&5
43771 echo "${ECHO_T}no" >&6
43772 SET_MAKE="MAKE=${MAKE-make}"
43773 fi
43774
43775
43776
43777 if test -n "$ac_tool_prefix"; then
43778 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43779 set dummy ${ac_tool_prefix}ar; ac_word=$2
43780 echo "$as_me:$LINENO: checking for $ac_word" >&5
43781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43782 if test "${ac_cv_prog_AR+set}" = set; then
43783 echo $ECHO_N "(cached) $ECHO_C" >&6
43784 else
43785 if test -n "$AR"; then
43786 ac_cv_prog_AR="$AR" # Let the user override the test.
43787 else
43788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43789 for as_dir in $PATH
43790 do
43791 IFS=$as_save_IFS
43792 test -z "$as_dir" && as_dir=.
43793 for ac_exec_ext in '' $ac_executable_extensions; do
43794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43795 ac_cv_prog_AR="${ac_tool_prefix}ar"
43796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43797 break 2
43798 fi
43799 done
43800 done
43801
43802 fi
43803 fi
43804 AR=$ac_cv_prog_AR
43805 if test -n "$AR"; then
43806 echo "$as_me:$LINENO: result: $AR" >&5
43807 echo "${ECHO_T}$AR" >&6
43808 else
43809 echo "$as_me:$LINENO: result: no" >&5
43810 echo "${ECHO_T}no" >&6
43811 fi
43812
43813 fi
43814 if test -z "$ac_cv_prog_AR"; then
43815 ac_ct_AR=$AR
43816 # Extract the first word of "ar", so it can be a program name with args.
43817 set dummy ar; ac_word=$2
43818 echo "$as_me:$LINENO: checking for $ac_word" >&5
43819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43820 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43821 echo $ECHO_N "(cached) $ECHO_C" >&6
43822 else
43823 if test -n "$ac_ct_AR"; then
43824 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43825 else
43826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43827 for as_dir in $PATH
43828 do
43829 IFS=$as_save_IFS
43830 test -z "$as_dir" && as_dir=.
43831 for ac_exec_ext in '' $ac_executable_extensions; do
43832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43833 ac_cv_prog_ac_ct_AR="ar"
43834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43835 break 2
43836 fi
43837 done
43838 done
43839
43840 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43841 fi
43842 fi
43843 ac_ct_AR=$ac_cv_prog_ac_ct_AR
43844 if test -n "$ac_ct_AR"; then
43845 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43846 echo "${ECHO_T}$ac_ct_AR" >&6
43847 else
43848 echo "$as_me:$LINENO: result: no" >&5
43849 echo "${ECHO_T}no" >&6
43850 fi
43851
43852 AR=$ac_ct_AR
43853 else
43854 AR="$ac_cv_prog_AR"
43855 fi
43856
43857 if test -n "$ac_tool_prefix"; then
43858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43859 set dummy ${ac_tool_prefix}strip; ac_word=$2
43860 echo "$as_me:$LINENO: checking for $ac_word" >&5
43861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43862 if test "${ac_cv_prog_STRIP+set}" = set; then
43863 echo $ECHO_N "(cached) $ECHO_C" >&6
43864 else
43865 if test -n "$STRIP"; then
43866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43867 else
43868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43869 for as_dir in $PATH
43870 do
43871 IFS=$as_save_IFS
43872 test -z "$as_dir" && as_dir=.
43873 for ac_exec_ext in '' $ac_executable_extensions; do
43874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43877 break 2
43878 fi
43879 done
43880 done
43881
43882 fi
43883 fi
43884 STRIP=$ac_cv_prog_STRIP
43885 if test -n "$STRIP"; then
43886 echo "$as_me:$LINENO: result: $STRIP" >&5
43887 echo "${ECHO_T}$STRIP" >&6
43888 else
43889 echo "$as_me:$LINENO: result: no" >&5
43890 echo "${ECHO_T}no" >&6
43891 fi
43892
43893 fi
43894 if test -z "$ac_cv_prog_STRIP"; then
43895 ac_ct_STRIP=$STRIP
43896 # Extract the first word of "strip", so it can be a program name with args.
43897 set dummy strip; ac_word=$2
43898 echo "$as_me:$LINENO: checking for $ac_word" >&5
43899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43900 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43901 echo $ECHO_N "(cached) $ECHO_C" >&6
43902 else
43903 if test -n "$ac_ct_STRIP"; then
43904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43905 else
43906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43907 for as_dir in $PATH
43908 do
43909 IFS=$as_save_IFS
43910 test -z "$as_dir" && as_dir=.
43911 for ac_exec_ext in '' $ac_executable_extensions; do
43912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43913 ac_cv_prog_ac_ct_STRIP="strip"
43914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43915 break 2
43916 fi
43917 done
43918 done
43919
43920 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
43921 fi
43922 fi
43923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
43924 if test -n "$ac_ct_STRIP"; then
43925 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
43926 echo "${ECHO_T}$ac_ct_STRIP" >&6
43927 else
43928 echo "$as_me:$LINENO: result: no" >&5
43929 echo "${ECHO_T}no" >&6
43930 fi
43931
43932 STRIP=$ac_ct_STRIP
43933 else
43934 STRIP="$ac_cv_prog_STRIP"
43935 fi
43936
43937 if test -n "$ac_tool_prefix"; then
43938 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
43939 set dummy ${ac_tool_prefix}nm; ac_word=$2
43940 echo "$as_me:$LINENO: checking for $ac_word" >&5
43941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43942 if test "${ac_cv_prog_NM+set}" = set; then
43943 echo $ECHO_N "(cached) $ECHO_C" >&6
43944 else
43945 if test -n "$NM"; then
43946 ac_cv_prog_NM="$NM" # Let the user override the test.
43947 else
43948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43949 for as_dir in $PATH
43950 do
43951 IFS=$as_save_IFS
43952 test -z "$as_dir" && as_dir=.
43953 for ac_exec_ext in '' $ac_executable_extensions; do
43954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43955 ac_cv_prog_NM="${ac_tool_prefix}nm"
43956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43957 break 2
43958 fi
43959 done
43960 done
43961
43962 fi
43963 fi
43964 NM=$ac_cv_prog_NM
43965 if test -n "$NM"; then
43966 echo "$as_me:$LINENO: result: $NM" >&5
43967 echo "${ECHO_T}$NM" >&6
43968 else
43969 echo "$as_me:$LINENO: result: no" >&5
43970 echo "${ECHO_T}no" >&6
43971 fi
43972
43973 fi
43974 if test -z "$ac_cv_prog_NM"; then
43975 ac_ct_NM=$NM
43976 # Extract the first word of "nm", so it can be a program name with args.
43977 set dummy nm; ac_word=$2
43978 echo "$as_me:$LINENO: checking for $ac_word" >&5
43979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43980 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
43981 echo $ECHO_N "(cached) $ECHO_C" >&6
43982 else
43983 if test -n "$ac_ct_NM"; then
43984 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
43985 else
43986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43987 for as_dir in $PATH
43988 do
43989 IFS=$as_save_IFS
43990 test -z "$as_dir" && as_dir=.
43991 for ac_exec_ext in '' $ac_executable_extensions; do
43992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43993 ac_cv_prog_ac_ct_NM="nm"
43994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43995 break 2
43996 fi
43997 done
43998 done
43999
44000 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
44001 fi
44002 fi
44003 ac_ct_NM=$ac_cv_prog_ac_ct_NM
44004 if test -n "$ac_ct_NM"; then
44005 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
44006 echo "${ECHO_T}$ac_ct_NM" >&6
44007 else
44008 echo "$as_me:$LINENO: result: no" >&5
44009 echo "${ECHO_T}no" >&6
44010 fi
44011
44012 NM=$ac_ct_NM
44013 else
44014 NM="$ac_cv_prog_NM"
44015 fi
44016
44017
44018 case ${BAKEFILE_HOST} in
44019 *-hp-hpux* )
44020 INSTALL_DIR="mkdir -p"
44021 ;;
44022 *) INSTALL_DIR="$INSTALL -d"
44023 ;;
44024 esac
44025
44026
44027 LDFLAGS_GUI=
44028 case ${BAKEFILE_HOST} in
44029 *-*-cygwin* | *-*-mingw32* )
44030 LDFLAGS_GUI="-mwindows"
44031 esac
44032
44033
44034 fi
44035
44036 echo "$as_me:$LINENO: checking if make is GNU make" >&5
44037 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
44038 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
44039 echo $ECHO_N "(cached) $ECHO_C" >&6
44040 else
44041
44042 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
44043 egrep -s GNU > /dev/null); then
44044 bakefile_cv_prog_makeisgnu="yes"
44045 else
44046 bakefile_cv_prog_makeisgnu="no"
44047 fi
44048
44049 fi
44050 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
44051 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
44052
44053 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
44054 IF_GNU_MAKE=""
44055 else
44056 IF_GNU_MAKE="#"
44057 fi
44058
44059
44060
44061 PLATFORM_UNIX=0
44062 PLATFORM_WIN32=0
44063 PLATFORM_MSDOS=0
44064 PLATFORM_MAC=0
44065 PLATFORM_MACOS=0
44066 PLATFORM_MACOSX=0
44067 PLATFORM_OS2=0
44068 PLATFORM_BEOS=0
44069
44070 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
44071 case "${BAKEFILE_HOST}" in
44072 *-*-mingw32* )
44073 PLATFORM_WIN32=1
44074 ;;
44075 *-pc-msdosdjgpp )
44076 PLATFORM_MSDOS=1
44077 ;;
44078 *-pc-os2_emx | *-pc-os2-emx )
44079 PLATFORM_OS2=1
44080 ;;
44081 *-*-darwin* )
44082 PLATFORM_MAC=1
44083 PLATFORM_MACOSX=1
44084 ;;
44085 *-*-beos* )
44086 PLATFORM_BEOS=1
44087 ;;
44088 powerpc-apple-macos* )
44089 PLATFORM_MAC=1
44090 PLATFORM_MACOS=1
44091 ;;
44092 * )
44093 PLATFORM_UNIX=1
44094 ;;
44095 esac
44096 else
44097 case "$BAKEFILE_FORCE_PLATFORM" in
44098 win32 )
44099 PLATFORM_WIN32=1
44100 ;;
44101 msdos )
44102 PLATFORM_MSDOS=1
44103 ;;
44104 os2 )
44105 PLATFORM_OS2=1
44106 ;;
44107 darwin )
44108 PLATFORM_MAC=1
44109 PLATFORM_MACOSX=1
44110 ;;
44111 unix )
44112 PLATFORM_UNIX=1
44113 ;;
44114 beos )
44115 PLATFORM_BEOS=1
44116 ;;
44117 * )
44118 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
44119 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
44120 { (exit 1); exit 1; }; }
44121 ;;
44122 esac
44123 fi
44124
44125
44126
44127
44128
44129
44130
44131
44132
44133
44134
44135 # Check whether --enable-omf or --disable-omf was given.
44136 if test "${enable_omf+set}" = set; then
44137 enableval="$enable_omf"
44138 bk_os2_use_omf="$enableval"
44139 fi;
44140
44141 case "${BAKEFILE_HOST}" in
44142 *-*-darwin* )
44143 if test "x$GCC" = "xyes"; then
44144 CFLAGS="$CFLAGS -fno-common"
44145 CXXFLAGS="$CXXFLAGS -fno-common"
44146 fi
44147 if test "x$XLCC" = "xyes"; then
44148 CFLAGS="$CFLAGS -qnocommon"
44149 CXXFLAGS="$CXXFLAGS -qnocommon"
44150 fi
44151 ;;
44152
44153 *-pc-os2_emx | *-pc-os2-emx )
44154 if test "x$bk_os2_use_omf" = "xyes" ; then
44155 AR=emxomfar
44156 RANLIB=:
44157 LDFLAGS="-Zomf $LDFLAGS"
44158 CFLAGS="-Zomf $CFLAGS"
44159 CXXFLAGS="-Zomf $CXXFLAGS"
44160 OS2_LIBEXT="lib"
44161 else
44162 OS2_LIBEXT="a"
44163 fi
44164 ;;
44165
44166 i*86-*-beos* )
44167 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
44168 ;;
44169 esac
44170
44171
44172 SO_SUFFIX="so"
44173 SO_SUFFIX_MODULE="so"
44174 EXEEXT=""
44175 LIBPREFIX="lib"
44176 LIBEXT=".a"
44177 DLLPREFIX="lib"
44178 DLLPREFIX_MODULE=""
44179 DLLIMP_SUFFIX=""
44180 dlldir="$libdir"
44181
44182 case "${BAKEFILE_HOST}" in
44183 *-hp-hpux* )
44184 SO_SUFFIX="sl"
44185 SO_SUFFIX_MODULE="sl"
44186 ;;
44187 *-*-aix* )
44188 SO_SUFFIX="a"
44189 SO_SUFFIX_MODULE="a"
44190 ;;
44191 *-*-cygwin* )
44192 SO_SUFFIX="dll"
44193 SO_SUFFIX_MODULE="dll"
44194 DLLIMP_SUFFIX="dll.a"
44195 EXEEXT=".exe"
44196 DLLPREFIX="cyg"
44197 dlldir="$bindir"
44198 ;;
44199 *-*-mingw32* )
44200 SO_SUFFIX="dll"
44201 SO_SUFFIX_MODULE="dll"
44202 DLLIMP_SUFFIX="dll.a"
44203 EXEEXT=".exe"
44204 DLLPREFIX=""
44205 dlldir="$bindir"
44206 ;;
44207 *-pc-msdosdjgpp )
44208 EXEEXT=".exe"
44209 DLLPREFIX=""
44210 dlldir="$bindir"
44211 ;;
44212 *-pc-os2_emx | *-pc-os2-emx )
44213 SO_SUFFIX="dll"
44214 SO_SUFFIX_MODULE="dll"
44215 DLLIMP_SUFFIX=$OS2_LIBEXT
44216 EXEEXT=".exe"
44217 DLLPREFIX=""
44218 LIBPREFIX=""
44219 LIBEXT=".$OS2_LIBEXT"
44220 dlldir="$bindir"
44221 ;;
44222 *-*-darwin* )
44223 SO_SUFFIX="dylib"
44224 SO_SUFFIX_MODULE="bundle"
44225 ;;
44226 esac
44227
44228 if test "x$DLLIMP_SUFFIX" = "x" ; then
44229 DLLIMP_SUFFIX="$SO_SUFFIX"
44230 fi
44231
44232
44233
44234
44235
44236
44237
44238
44239
44240
44241
44242
44243 PIC_FLAG=""
44244 if test "x$GCC" = "xyes"; then
44245 PIC_FLAG="-fPIC"
44246 fi
44247
44248 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
44249 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
44250 WINDOWS_IMPLIB=0
44251
44252 case "${BAKEFILE_HOST}" in
44253 *-hp-hpux* )
44254 if test "x$GCC" != "xyes"; then
44255 LDFLAGS="$LDFLAGS -L/usr/lib"
44256
44257 SHARED_LD_CC="${CC} -b -o"
44258 SHARED_LD_CXX="${CXX} -b -o"
44259 PIC_FLAG="+Z"
44260 fi
44261 ;;
44262
44263 *-*-linux* )
44264 if test "x$GCC" != "xyes"; then
44265 echo "$as_me:$LINENO: checking for Intel compiler" >&5
44266 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
44267 if test "${bakefile_cv_prog_icc+set}" = set; then
44268 echo $ECHO_N "(cached) $ECHO_C" >&6
44269 else
44270
44271 cat >conftest.$ac_ext <<_ACEOF
44272 /* confdefs.h. */
44273 _ACEOF
44274 cat confdefs.h >>conftest.$ac_ext
44275 cat >>conftest.$ac_ext <<_ACEOF
44276 /* end confdefs.h. */
44277
44278 int
44279 main ()
44280 {
44281
44282 #ifndef __INTEL_COMPILER
44283 #error Not icc
44284 #endif
44285
44286 ;
44287 return 0;
44288 }
44289 _ACEOF
44290 rm -f conftest.$ac_objext
44291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44292 (eval $ac_compile) 2>conftest.er1
44293 ac_status=$?
44294 grep -v '^ *+' conftest.er1 >conftest.err
44295 rm -f conftest.er1
44296 cat conftest.err >&5
44297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44298 (exit $ac_status); } &&
44299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44301 (eval $ac_try) 2>&5
44302 ac_status=$?
44303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44304 (exit $ac_status); }; } &&
44305 { ac_try='test -s conftest.$ac_objext'
44306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44307 (eval $ac_try) 2>&5
44308 ac_status=$?
44309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44310 (exit $ac_status); }; }; then
44311 bakefile_cv_prog_icc=yes
44312 else
44313 echo "$as_me: failed program was:" >&5
44314 sed 's/^/| /' conftest.$ac_ext >&5
44315
44316 bakefile_cv_prog_icc=no
44317
44318 fi
44319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44320
44321 fi
44322 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
44323 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
44324 if test "$bakefile_cv_prog_icc" = "yes"; then
44325 PIC_FLAG="-KPIC"
44326 fi
44327 fi
44328 ;;
44329
44330 *-*-solaris2* )
44331 if test "x$GCC" != xyes ; then
44332 SHARED_LD_CC="${CC} -G -o"
44333 SHARED_LD_CXX="${CXX} -G -o"
44334 PIC_FLAG="-KPIC"
44335 fi
44336 ;;
44337
44338 *-*-darwin* )
44339
44340 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
44341 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
44342
44343 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
44344 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
44345 if test "${bakefile_cv_gcc31+set}" = set; then
44346 echo $ECHO_N "(cached) $ECHO_C" >&6
44347 else
44348
44349 cat >conftest.$ac_ext <<_ACEOF
44350 /* confdefs.h. */
44351 _ACEOF
44352 cat confdefs.h >>conftest.$ac_ext
44353 cat >>conftest.$ac_ext <<_ACEOF
44354 /* end confdefs.h. */
44355
44356 int
44357 main ()
44358 {
44359
44360 #if (__GNUC__ < 3) || \
44361 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
44362 #error old gcc
44363 #endif
44364
44365 ;
44366 return 0;
44367 }
44368 _ACEOF
44369 rm -f conftest.$ac_objext
44370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44371 (eval $ac_compile) 2>conftest.er1
44372 ac_status=$?
44373 grep -v '^ *+' conftest.er1 >conftest.err
44374 rm -f conftest.er1
44375 cat conftest.err >&5
44376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44377 (exit $ac_status); } &&
44378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44380 (eval $ac_try) 2>&5
44381 ac_status=$?
44382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44383 (exit $ac_status); }; } &&
44384 { ac_try='test -s conftest.$ac_objext'
44385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44386 (eval $ac_try) 2>&5
44387 ac_status=$?
44388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44389 (exit $ac_status); }; }; then
44390
44391 bakefile_cv_gcc31=yes
44392
44393 else
44394 echo "$as_me: failed program was:" >&5
44395 sed 's/^/| /' conftest.$ac_ext >&5
44396
44397
44398 bakefile_cv_gcc31=no
44399
44400
44401 fi
44402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44403
44404 fi
44405 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
44406 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
44407 if test "$bakefile_cv_gcc31" = "no"; then
44408
44409 D='$'
44410 cat <<EOF >shared-ld-sh
44411 #!/bin/sh
44412 #-----------------------------------------------------------------------------
44413 #-- Name: distrib/mac/shared-ld-sh
44414 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
44415 #-- Author: Gilles Depeyrot
44416 #-- Copyright: (c) 2002 Gilles Depeyrot
44417 #-- Licence: any use permitted
44418 #-----------------------------------------------------------------------------
44419
44420 verbose=0
44421 args=""
44422 objects=""
44423 linking_flag="-dynamiclib"
44424 ldargs="-r -keep_private_externs -nostdlib"
44425
44426 while test ${D}# -gt 0; do
44427 case ${D}1 in
44428
44429 -v)
44430 verbose=1
44431 ;;
44432
44433 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
44434 # collect these options and values
44435 args="${D}{args} ${D}1 ${D}2"
44436 shift
44437 ;;
44438
44439 -s|-Wl,*)
44440 # collect these load args
44441 ldargs="${D}{ldargs} ${D}1"
44442 ;;
44443
44444 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
44445 # collect these options
44446 args="${D}{args} ${D}1"
44447 ;;
44448
44449 -dynamiclib|-bundle)
44450 linking_flag="${D}1"
44451 ;;
44452
44453 -*)
44454 echo "shared-ld: unhandled option '${D}1'"
44455 exit 1
44456 ;;
44457
44458 *.o | *.a | *.dylib)
44459 # collect object files
44460 objects="${D}{objects} ${D}1"
44461 ;;
44462
44463 *)
44464 echo "shared-ld: unhandled argument '${D}1'"
44465 exit 1
44466 ;;
44467
44468 esac
44469 shift
44470 done
44471
44472 status=0
44473
44474 #
44475 # Link one module containing all the others
44476 #
44477 if test ${D}{verbose} = 1; then
44478 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
44479 fi
44480 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
44481 status=${D}?
44482
44483 #
44484 # Link the shared library from the single module created, but only if the
44485 # previous command didn't fail:
44486 #
44487 if test ${D}{status} = 0; then
44488 if test ${D}{verbose} = 1; then
44489 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
44490 fi
44491 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
44492 status=${D}?
44493 fi
44494
44495 #
44496 # Remove intermediate module
44497 #
44498 rm -f master.${D}${D}.o
44499
44500 exit ${D}status
44501 EOF
44502
44503 chmod +x shared-ld-sh
44504
44505 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
44506 SHARED_LD_CXX="$SHARED_LD_CC"
44507 else
44508 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
44509 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
44510 fi
44511
44512 if test "x$GCC" == "xyes"; then
44513 PIC_FLAG="-dynamic -fPIC"
44514 fi
44515 if test "x$XLCC" = "xyes"; then
44516 PIC_FLAG="-dynamic -DPIC"
44517 fi
44518 ;;
44519
44520 *-*-aix* )
44521 if test "x$GCC" = "xyes"; then
44522 PIC_FLAG=""
44523
44524 case "${BAKEFILE_HOST}" in
44525 *-*-aix5* )
44526 LD_EXPFULL="-Wl,-bexpfull"
44527 ;;
44528 esac
44529
44530 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
44531 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
44532 else
44533 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
44534 set dummy makeC++SharedLib; ac_word=$2
44535 echo "$as_me:$LINENO: checking for $ac_word" >&5
44536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44537 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
44538 echo $ECHO_N "(cached) $ECHO_C" >&6
44539 else
44540 if test -n "$AIX_CXX_LD"; then
44541 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
44542 else
44543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44544 for as_dir in $PATH
44545 do
44546 IFS=$as_save_IFS
44547 test -z "$as_dir" && as_dir=.
44548 for ac_exec_ext in '' $ac_executable_extensions; do
44549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44550 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
44551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44552 break 2
44553 fi
44554 done
44555 done
44556
44557 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
44558 fi
44559 fi
44560 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
44561 if test -n "$AIX_CXX_LD"; then
44562 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
44563 echo "${ECHO_T}$AIX_CXX_LD" >&6
44564 else
44565 echo "$as_me:$LINENO: result: no" >&5
44566 echo "${ECHO_T}no" >&6
44567 fi
44568
44569 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
44570 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
44571 fi
44572 ;;
44573
44574 *-*-beos* )
44575 SHARED_LD_CC="${LD} -nostart -o"
44576 SHARED_LD_CXX="${LD} -nostart -o"
44577 ;;
44578
44579 *-*-irix* )
44580 if test "x$GCC" != "xyes"; then
44581 PIC_FLAG="-KPIC"
44582 fi
44583 ;;
44584
44585 *-*-cygwin* | *-*-mingw32* )
44586 PIC_FLAG=""
44587 SHARED_LD_CC="\$(CC) -shared -o"
44588 SHARED_LD_CXX="\$(CXX) -shared -o"
44589 WINDOWS_IMPLIB=1
44590 ;;
44591
44592 *-pc-os2_emx | *-pc-os2-emx )
44593 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44594 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44595 PIC_FLAG=""
44596
44597 D='$'
44598 cat <<EOF >dllar.sh
44599 #!/bin/sh
44600 #
44601 # dllar - a tool to build both a .dll and an .a file
44602 # from a set of object (.o) files for EMX/OS2.
44603 #
44604 # Written by Andrew Zabolotny, bit@freya.etu.ru
44605 # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
44606 #
44607 # This script will accept a set of files on the command line.
44608 # All the public symbols from the .o files will be exported into
44609 # a .DEF file, then linker will be run (through gcc) against them to
44610 # build a shared library consisting of all given .o files. All libraries
44611 # (.a) will be first decompressed into component .o files then act as
44612 # described above. You can optionally give a description (-d "description")
44613 # which will be put into .DLL. To see the list of accepted options (as well
44614 # as command-line format) simply run this program without options. The .DLL
44615 # is built to be imported by name (there is no guarantee that new versions
44616 # of the library you build will have same ordinals for same symbols).
44617 #
44618 # dllar is free software; you can redistribute it and/or modify
44619 # it under the terms of the GNU General Public License as published by
44620 # the Free Software Foundation; either version 2, or (at your option)
44621 # any later version.
44622 #
44623 # dllar is distributed in the hope that it will be useful,
44624 # but WITHOUT ANY WARRANTY; without even the implied warranty of
44625 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44626 # GNU General Public License for more details.
44627 #
44628 # You should have received a copy of the GNU General Public License
44629 # along with dllar; see the file COPYING. If not, write to the Free
44630 # Software Foundation, 59 Temple Place - Suite 330, Boston, MA
44631 # 02111-1307, USA.
44632
44633 # To successfuly run this program you will need:
44634 # - Current drive should have LFN support (HPFS, ext2, network, etc)
44635 # (Sometimes dllar generates filenames which won't fit 8.3 scheme)
44636 # - gcc
44637 # (used to build the .dll)
44638 # - emxexp
44639 # (used to create .def file from .o files)
44640 # - emximp
44641 # (used to create .a file from .def file)
44642 # - GNU text utilites (cat, sort, uniq)
44643 # used to process emxexp output
44644 # - GNU file utilities (mv, rm)
44645 # - GNU sed
44646 # - lxlite (optional, see flag below)
44647 # (used for general .dll cleanup)
44648 #
44649
44650 flag_USE_LXLITE=1;
44651
44652 #
44653 # helper functions
44654 # basnam, variant of basename, which does _not_ remove the path, _iff_
44655 # second argument (suffix to remove) is given
44656 basnam(){
44657 case ${D}# in
44658 1)
44659 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
44660 ;;
44661 2)
44662 echo ${D}1 | sed 's/'${D}2'${D}//'
44663 ;;
44664 *)
44665 echo "error in basnam ${D}*"
44666 exit 8
44667 ;;
44668 esac
44669 }
44670
44671 # Cleanup temporary files and output
44672 CleanUp() {
44673 cd ${D}curDir
44674 for i in ${D}inputFiles ; do
44675 case ${D}i in
44676 *!)
44677 rm -rf \`basnam ${D}i !\`
44678 ;;
44679 *)
44680 ;;
44681 esac
44682 done
44683
44684 # Kill result in case of failure as there is just to many stupid make/nmake
44685 # things out there which doesn't do this.
44686 if [ ${D}# -eq 0 ]; then
44687 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
44688 fi
44689 }
44690
44691 # Print usage and exit script with rc=1.
44692 PrintHelp() {
44693 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
44694 echo ' [-name-mangler-script script.sh]'
44695 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
44696 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
44697 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
44698 echo ' [*.o] [*.a]'
44699 echo '*> "output_file" should have no extension.'
44700 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
44701 echo ' The import library name is derived from this and is set to "name".a,'
44702 echo ' unless overridden by -import'
44703 echo '*> "importlib_name" should have no extension.'
44704 echo ' If it has the .o, or .a extension, it is automatically removed.'
44705 echo ' This name is used as the import library name and may be longer and'
44706 echo ' more descriptive than the DLL name which has to follow the old '
44707 echo ' 8.3 convention of FAT.'
44708 echo '*> "script.sh may be given to override the output_file name by a'
44709 echo ' different name. It is mainly useful if the regular make process'
44710 echo ' of some package does not take into account OS/2 restriction of'
44711 echo ' DLL name lengths. It takes the importlib name as input and is'
44712 echo ' supposed to procude a shorter name as output. The script should'
44713 echo ' expect to get importlib_name without extension and should produce'
44714 echo ' a (max.) 8 letter name without extension.'
44715 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
44716 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
44717 echo ' These flags will be put at the start of GCC command line.'
44718 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
44719 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
44720 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
44721 echo ' If the last character of a symbol is "*", all symbols beginning'
44722 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
44723 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
44724 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
44725 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
44726 echo ' C runtime DLLs.'
44727 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
44728 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
44729 echo ' unchanged to GCC at the end of command line.'
44730 echo '*> If you create a DLL from a library and you do not specify -o,'
44731 echo ' the basename for DLL and import library will be set to library name,'
44732 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
44733 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
44734 echo ' library will be renamed into gcc_s.a.'
44735 echo '--------'
44736 echo 'Example:'
44737 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
44738 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
44739 CleanUp
44740 exit 1
44741 }
44742
44743 # Execute a command.
44744 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
44745 # @Uses Whatever CleanUp() uses.
44746 doCommand() {
44747 echo "${D}*"
44748 eval ${D}*
44749 rcCmd=${D}?
44750
44751 if [ ${D}rcCmd -ne 0 ]; then
44752 echo "command failed, exit code="${D}rcCmd
44753 CleanUp
44754 exit ${D}rcCmd
44755 fi
44756 }
44757
44758 # main routine
44759 # setup globals
44760 cmdLine=${D}*
44761 outFile=""
44762 outimpFile=""
44763 inputFiles=""
44764 renameScript=""
44765 description=""
44766 CC=gcc.exe
44767 CFLAGS="-s -Zcrtdll"
44768 EXTRA_CFLAGS=""
44769 EXPORT_BY_ORDINALS=0
44770 exclude_symbols=""
44771 library_flags=""
44772 curDir=\`pwd\`
44773 curDirS=curDir
44774 case ${D}curDirS in
44775 */)
44776 ;;
44777 *)
44778 curDirS=${D}{curDirS}"/"
44779 ;;
44780 esac
44781 # Parse commandline
44782 libsToLink=0
44783 omfLinking=0
44784 while [ ${D}1 ]; do
44785 case ${D}1 in
44786 -ord*)
44787 EXPORT_BY_ORDINALS=1;
44788 ;;
44789 -o*)
44790 shift
44791 outFile=${D}1
44792 ;;
44793 -i*)
44794 shift
44795 outimpFile=${D}1
44796 ;;
44797 -name-mangler-script)
44798 shift
44799 renameScript=${D}1
44800 ;;
44801 -d*)
44802 shift
44803 description=${D}1
44804 ;;
44805 -f*)
44806 shift
44807 CFLAGS=${D}1
44808 ;;
44809 -c*)
44810 shift
44811 CC=${D}1
44812 ;;
44813 -h*)
44814 PrintHelp
44815 ;;
44816 -ex*)
44817 shift
44818 exclude_symbols=${D}{exclude_symbols}${D}1" "
44819 ;;
44820 -libf*)
44821 shift
44822 library_flags=${D}{library_flags}${D}1" "
44823 ;;
44824 -nocrt*)
44825 CFLAGS="-s"
44826 ;;
44827 -nolxl*)
44828 flag_USE_LXLITE=0
44829 ;;
44830 -* | /*)
44831 case ${D}1 in
44832 -L* | -l*)
44833 libsToLink=1
44834 ;;
44835 -Zomf)
44836 omfLinking=1
44837 ;;
44838 *)
44839 ;;
44840 esac
44841 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44842 ;;
44843 *.dll)
44844 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44845 if [ ${D}omfLinking -eq 1 ]; then
44846 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44847 else
44848 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44849 fi
44850 ;;
44851 *)
44852 found=0;
44853 if [ ${D}libsToLink -ne 0 ]; then
44854 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44855 else
44856 for file in ${D}1 ; do
44857 if [ -f ${D}file ]; then
44858 inputFiles="${D}{inputFiles} ${D}file"
44859 found=1
44860 fi
44861 done
44862 if [ ${D}found -eq 0 ]; then
44863 echo "ERROR: No file(s) found: "${D}1
44864 exit 8
44865 fi
44866 fi
44867 ;;
44868 esac
44869 shift
44870 done # iterate cmdline words
44871
44872 #
44873 if [ -z "${D}inputFiles" ]; then
44874 echo "dllar: no input files"
44875 PrintHelp
44876 fi
44877
44878 # Now extract all .o files from .a files
44879 newInputFiles=""
44880 for file in ${D}inputFiles ; do
44881 case ${D}file in
44882 *.a | *.lib)
44883 case ${D}file in
44884 *.a)
44885 suffix=".a"
44886 AR="ar"
44887 ;;
44888 *.lib)
44889 suffix=".lib"
44890 AR="emxomfar"
44891 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44892 ;;
44893 *)
44894 ;;
44895 esac
44896 dirname=\`basnam ${D}file ${D}suffix\`"_%"
44897 mkdir ${D}dirname
44898 if [ ${D}? -ne 0 ]; then
44899 echo "Failed to create subdirectory ./${D}dirname"
44900 CleanUp
44901 exit 8;
44902 fi
44903 # Append '!' to indicate archive
44904 newInputFiles="${D}newInputFiles ${D}{dirname}!"
44905 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
44906 cd ${D}curDir
44907 found=0;
44908 for subfile in ${D}dirname/*.o* ; do
44909 if [ -f ${D}subfile ]; then
44910 found=1
44911 if [ -s ${D}subfile ]; then
44912 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
44913 newInputFiles="${D}newInputFiles ${D}subfile"
44914 fi
44915 fi
44916 done
44917 if [ ${D}found -eq 0 ]; then
44918 echo "WARNING: there are no files in archive \\'${D}file\\'"
44919 fi
44920 ;;
44921 *)
44922 newInputFiles="${D}{newInputFiles} ${D}file"
44923 ;;
44924 esac
44925 done
44926 inputFiles="${D}newInputFiles"
44927
44928 # Output filename(s).
44929 do_backup=0;
44930 if [ -z ${D}outFile ]; then
44931 do_backup=1;
44932 set outFile ${D}inputFiles; outFile=${D}2
44933 fi
44934
44935 # If it is an archive, remove the '!' and the '_%' suffixes
44936 case ${D}outFile in
44937 *_%!)
44938 outFile=\`basnam ${D}outFile _%!\`
44939 ;;
44940 *)
44941 ;;
44942 esac
44943 case ${D}outFile in
44944 *.dll)
44945 outFile=\`basnam ${D}outFile .dll\`
44946 ;;
44947 *.DLL)
44948 outFile=\`basnam ${D}outFile .DLL\`
44949 ;;
44950 *.o)
44951 outFile=\`basnam ${D}outFile .o\`
44952 ;;
44953 *.obj)
44954 outFile=\`basnam ${D}outFile .obj\`
44955 ;;
44956 *.a)
44957 outFile=\`basnam ${D}outFile .a\`
44958 ;;
44959 *.lib)
44960 outFile=\`basnam ${D}outFile .lib\`
44961 ;;
44962 *)
44963 ;;
44964 esac
44965 case ${D}outimpFile in
44966 *.a)
44967 outimpFile=\`basnam ${D}outimpFile .a\`
44968 ;;
44969 *.lib)
44970 outimpFile=\`basnam ${D}outimpFile .lib\`
44971 ;;
44972 *)
44973 ;;
44974 esac
44975 if [ -z ${D}outimpFile ]; then
44976 outimpFile=${D}outFile
44977 fi
44978 defFile="${D}{outFile}.def"
44979 arcFile="${D}{outimpFile}.a"
44980 arcFile2="${D}{outimpFile}.lib"
44981
44982 #create ${D}dllFile as something matching 8.3 restrictions,
44983 if [ -z ${D}renameScript ] ; then
44984 dllFile="${D}outFile"
44985 else
44986 dllFile=\`${D}renameScript ${D}outimpFile\`
44987 fi
44988
44989 if [ ${D}do_backup -ne 0 ] ; then
44990 if [ -f ${D}arcFile ] ; then
44991 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
44992 fi
44993 if [ -f ${D}arcFile2 ] ; then
44994 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
44995 fi
44996 fi
44997
44998 # Extract public symbols from all the object files.
44999 tmpdefFile=${D}{defFile}_%
45000 rm -f ${D}tmpdefFile
45001 for file in ${D}inputFiles ; do
45002 case ${D}file in
45003 *!)
45004 ;;
45005 *)
45006 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
45007 ;;
45008 esac
45009 done
45010
45011 # Create the def file.
45012 rm -f ${D}defFile
45013 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
45014 dllFile="${D}{dllFile}.dll"
45015 if [ ! -z ${D}description ]; then
45016 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
45017 fi
45018 echo "EXPORTS" >> ${D}defFile
45019
45020 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
45021 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
45022
45023 # Checks if the export is ok or not.
45024 for word in ${D}exclude_symbols; do
45025 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
45026 mv ${D}{tmpdefFile}% ${D}tmpdefFile
45027 done
45028
45029
45030 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
45031 sed "=" < ${D}tmpdefFile | \\
45032 sed '
45033 N
45034 : loop
45035 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
45036 t loop
45037 ' > ${D}{tmpdefFile}%
45038 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
45039 else
45040 rm -f ${D}{tmpdefFile}%
45041 fi
45042 cat ${D}tmpdefFile >> ${D}defFile
45043 rm -f ${D}tmpdefFile
45044
45045 # Do linking, create implib, and apply lxlite.
45046 gccCmdl="";
45047 for file in ${D}inputFiles ; do
45048 case ${D}file in
45049 *!)
45050 ;;
45051 *)
45052 gccCmdl="${D}gccCmdl ${D}file"
45053 ;;
45054 esac
45055 done
45056 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
45057 touch "${D}{outFile}.dll"
45058
45059 doCommand "emximp -o ${D}arcFile ${D}defFile"
45060 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
45061 add_flags="";
45062 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
45063 add_flags="-ynd"
45064 fi
45065 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
45066 fi
45067 doCommand "emxomf -s -l ${D}arcFile"
45068
45069 # Successful exit.
45070 CleanUp 1
45071 exit 0
45072 EOF
45073
45074 chmod +x dllar.sh
45075 ;;
45076
45077 powerpc-apple-macos* | \
45078 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
45079 *-*-sunos4* | \
45080 *-*-osf* | \
45081 *-*-dgux5* | \
45082 *-*-sysv5* | \
45083 *-pc-msdosdjgpp )
45084 ;;
45085
45086 *)
45087 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
45088 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
45089 { (exit 1); exit 1; }; }
45090 esac
45091
45092 if test "x$PIC_FLAG" != "x" ; then
45093 PIC_FLAG="$PIC_FLAG -DPIC"
45094 fi
45095
45096 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
45097 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
45098 fi
45099 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
45100 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
45101 fi
45102
45103
45104
45105
45106
45107
45108
45109
45110
45111 USE_SOVERSION=0
45112 USE_SOVERLINUX=0
45113 USE_SOVERSOLARIS=0
45114 USE_SOVERCYGWIN=0
45115 USE_SOSYMLINKS=0
45116 USE_MACVERSION=0
45117 SONAME_FLAG=
45118
45119 case "${BAKEFILE_HOST}" in
45120 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
45121 SONAME_FLAG="-Wl,-soname,"
45122 USE_SOVERSION=1
45123 USE_SOVERLINUX=1
45124 USE_SOSYMLINKS=1
45125 ;;
45126
45127 *-*-solaris2* )
45128 SONAME_FLAG="-h "
45129 USE_SOVERSION=1
45130 USE_SOVERSOLARIS=1
45131 USE_SOSYMLINKS=1
45132 ;;
45133
45134 *-*-darwin* )
45135 USE_MACVERSION=1
45136 USE_SOVERSION=1
45137 USE_SOSYMLINKS=1
45138 ;;
45139
45140 *-*-cygwin* )
45141 USE_SOVERSION=1
45142 USE_SOVERCYGWIN=1
45143 ;;
45144 esac
45145
45146
45147
45148
45149
45150
45151
45152
45153
45154
45155 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
45156 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
45157 DEPS_TRACKING=1
45158
45159 if test "x$GCC" = "xyes"; then
45160 DEPSMODE=gcc
45161 case "${BAKEFILE_HOST}" in
45162 *-*-darwin* )
45163 DEPSFLAG="-no-cpp-precomp -MMD"
45164 ;;
45165 * )
45166 DEPSFLAG="-MMD"
45167 ;;
45168 esac
45169 echo "$as_me:$LINENO: result: gcc" >&5
45170 echo "${ECHO_T}gcc" >&6
45171 elif test "x$MWCC" = "xyes"; then
45172 DEPSMODE=mwcc
45173 DEPSFLAG="-MM"
45174 echo "$as_me:$LINENO: result: mwcc" >&5
45175 echo "${ECHO_T}mwcc" >&6
45176 elif test "x$SUNCC" = "xyes"; then
45177 DEPSMODE=unixcc
45178 DEPSFLAG="-xM1"
45179 echo "$as_me:$LINENO: result: Sun cc" >&5
45180 echo "${ECHO_T}Sun cc" >&6
45181 elif test "x$SGICC" = "xyes"; then
45182 DEPSMODE=unixcc
45183 DEPSFLAG="-M"
45184 echo "$as_me:$LINENO: result: SGI cc" >&5
45185 echo "${ECHO_T}SGI cc" >&6
45186 elif test "x$HPCC" = "xyes"; then
45187 DEPSMODE=unixcc
45188 DEPSFLAG="+make"
45189 echo "$as_me:$LINENO: result: HP cc" >&5
45190 echo "${ECHO_T}HP cc" >&6
45191 elif test "x$COMPAQCC" = "xyes"; then
45192 DEPSMODE=gcc
45193 DEPSFLAG="-MD"
45194 echo "$as_me:$LINENO: result: Compaq cc" >&5
45195 echo "${ECHO_T}Compaq cc" >&6
45196 else
45197 DEPS_TRACKING=0
45198 echo "$as_me:$LINENO: result: none" >&5
45199 echo "${ECHO_T}none" >&6
45200 fi
45201
45202 if test $DEPS_TRACKING = 1 ; then
45203
45204 D='$'
45205 cat <<EOF >bk-deps
45206 #!/bin/sh
45207
45208 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45209 # script. It is used to track C/C++ files dependencies in portable way.
45210 #
45211 # Permission is given to use this file in any way.
45212
45213 DEPSMODE=${DEPSMODE}
45214 DEPSDIR=.deps
45215 DEPSFLAG="${DEPSFLAG}"
45216
45217 mkdir -p ${D}DEPSDIR
45218
45219 if test ${D}DEPSMODE = gcc ; then
45220 ${D}* ${D}{DEPSFLAG}
45221 status=${D}?
45222 if test ${D}{status} != 0 ; then
45223 exit ${D}{status}
45224 fi
45225 # move created file to the location we want it in:
45226 while test ${D}# -gt 0; do
45227 case "${D}1" in
45228 -o )
45229 shift
45230 objfile=${D}1
45231 ;;
45232 -* )
45233 ;;
45234 * )
45235 srcfile=${D}1
45236 ;;
45237 esac
45238 shift
45239 done
45240 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
45241 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
45242 if test -f ${D}depfile ; then
45243 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45244 rm -f ${D}depfile
45245 else
45246 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
45247 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
45248 if test ! -f ${D}depfile ; then
45249 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
45250 depfile="${D}objfile.d"
45251 fi
45252 if test -f ${D}depfile ; then
45253 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45254 rm -f ${D}depfile
45255 fi
45256 fi
45257 exit 0
45258 elif test ${D}DEPSMODE = mwcc ; then
45259 ${D}* || exit ${D}?
45260 # Run mwcc again with -MM and redirect into the dep file we want
45261 # NOTE: We can't use shift here because we need ${D}* to be valid
45262 prevarg=
45263 for arg in ${D}* ; do
45264 if test "${D}prevarg" = "-o"; then
45265 objfile=${D}arg
45266 else
45267 case "${D}arg" in
45268 -* )
45269 ;;
45270 * )
45271 srcfile=${D}arg
45272 ;;
45273 esac
45274 fi
45275 prevarg="${D}arg"
45276 done
45277 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
45278 exit 0
45279 elif test ${D}DEPSMODE = unixcc; then
45280 ${D}* || exit ${D}?
45281 # Run compiler again with deps flag and redirect into the dep file.
45282 # It doesn't work if the '-o FILE' option is used, but without it the
45283 # dependency file will contain the wrong name for the object. So it is
45284 # removed from the command line, and the dep file is fixed with sed.
45285 cmd=""
45286 while test ${D}# -gt 0; do
45287 case "${D}1" in
45288 -o )
45289 shift
45290 objfile=${D}1
45291 ;;
45292 * )
45293 eval arg${D}#=\\${D}1
45294 cmd="${D}cmd \\${D}arg${D}#"
45295 ;;
45296 esac
45297 shift
45298 done
45299 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
45300 exit 0
45301 else
45302 ${D}*
45303 exit ${D}?
45304 fi
45305 EOF
45306
45307 chmod +x bk-deps
45308 fi
45309
45310
45311
45312
45313 RESCOMP=
45314 SETFILE=
45315
45316 case ${BAKEFILE_HOST} in
45317 *-*-cygwin* | *-*-mingw32* )
45318 if test "$build" != "$host" ; then
45319 RESCOMP=$host_alias-windres
45320 else
45321 # Extract the first word of "windres", so it can be a program name with args.
45322 set dummy windres; ac_word=$2
45323 echo "$as_me:$LINENO: checking for $ac_word" >&5
45324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45325 if test "${ac_cv_prog_RESCOMP+set}" = set; then
45326 echo $ECHO_N "(cached) $ECHO_C" >&6
45327 else
45328 if test -n "$RESCOMP"; then
45329 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45330 else
45331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45332 for as_dir in $PATH
45333 do
45334 IFS=$as_save_IFS
45335 test -z "$as_dir" && as_dir=.
45336 for ac_exec_ext in '' $ac_executable_extensions; do
45337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45338 ac_cv_prog_RESCOMP="windres"
45339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45340 break 2
45341 fi
45342 done
45343 done
45344
45345 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
45346 fi
45347 fi
45348 RESCOMP=$ac_cv_prog_RESCOMP
45349 if test -n "$RESCOMP"; then
45350 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45351 echo "${ECHO_T}$RESCOMP" >&6
45352 else
45353 echo "$as_me:$LINENO: result: no" >&5
45354 echo "${ECHO_T}no" >&6
45355 fi
45356
45357 fi
45358 ;;
45359
45360 *-*-darwin* | powerpc-apple-macos* )
45361 # Extract the first word of "Rez", so it can be a program name with args.
45362 set dummy Rez; ac_word=$2
45363 echo "$as_me:$LINENO: checking for $ac_word" >&5
45364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45365 if test "${ac_cv_prog_RESCOMP+set}" = set; then
45366 echo $ECHO_N "(cached) $ECHO_C" >&6
45367 else
45368 if test -n "$RESCOMP"; then
45369 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45370 else
45371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45372 for as_dir in $PATH
45373 do
45374 IFS=$as_save_IFS
45375 test -z "$as_dir" && as_dir=.
45376 for ac_exec_ext in '' $ac_executable_extensions; do
45377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45378 ac_cv_prog_RESCOMP="Rez"
45379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45380 break 2
45381 fi
45382 done
45383 done
45384
45385 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
45386 fi
45387 fi
45388 RESCOMP=$ac_cv_prog_RESCOMP
45389 if test -n "$RESCOMP"; then
45390 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45391 echo "${ECHO_T}$RESCOMP" >&6
45392 else
45393 echo "$as_me:$LINENO: result: no" >&5
45394 echo "${ECHO_T}no" >&6
45395 fi
45396
45397 # Extract the first word of "SetFile", so it can be a program name with args.
45398 set dummy SetFile; ac_word=$2
45399 echo "$as_me:$LINENO: checking for $ac_word" >&5
45400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45401 if test "${ac_cv_prog_SETFILE+set}" = set; then
45402 echo $ECHO_N "(cached) $ECHO_C" >&6
45403 else
45404 if test -n "$SETFILE"; then
45405 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
45406 else
45407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45408 for as_dir in $PATH
45409 do
45410 IFS=$as_save_IFS
45411 test -z "$as_dir" && as_dir=.
45412 for ac_exec_ext in '' $ac_executable_extensions; do
45413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45414 ac_cv_prog_SETFILE="SetFile"
45415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45416 break 2
45417 fi
45418 done
45419 done
45420
45421 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
45422 fi
45423 fi
45424 SETFILE=$ac_cv_prog_SETFILE
45425 if test -n "$SETFILE"; then
45426 echo "$as_me:$LINENO: result: $SETFILE" >&5
45427 echo "${ECHO_T}$SETFILE" >&6
45428 else
45429 echo "$as_me:$LINENO: result: no" >&5
45430 echo "${ECHO_T}no" >&6
45431 fi
45432
45433 ;;
45434 esac
45435
45436
45437
45438
45439
45440 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
45441
45442
45443 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
45444
45445
45446
45447 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
45448 if test "${enable_precomp_headers+set}" = set; then
45449 enableval="$enable_precomp_headers"
45450 bk_use_pch="$enableval"
45451 fi;
45452
45453 GCC_PCH=0
45454
45455 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
45456 if test "x$GCC" = "xyes"; then
45457 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
45458 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
45459 cat >conftest.$ac_ext <<_ACEOF
45460 /* confdefs.h. */
45461 _ACEOF
45462 cat confdefs.h >>conftest.$ac_ext
45463 cat >>conftest.$ac_ext <<_ACEOF
45464 /* end confdefs.h. */
45465
45466 int
45467 main ()
45468 {
45469
45470 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
45471 #error "no pch support"
45472 #endif
45473 #if (__GNUC__ < 3)
45474 #error "no pch support"
45475 #endif
45476 #if (__GNUC__ == 3) && \
45477 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
45478 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
45479 #error "no pch support"
45480 #endif
45481
45482 ;
45483 return 0;
45484 }
45485 _ACEOF
45486 rm -f conftest.$ac_objext
45487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45488 (eval $ac_compile) 2>conftest.er1
45489 ac_status=$?
45490 grep -v '^ *+' conftest.er1 >conftest.err
45491 rm -f conftest.er1
45492 cat conftest.err >&5
45493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45494 (exit $ac_status); } &&
45495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45497 (eval $ac_try) 2>&5
45498 ac_status=$?
45499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45500 (exit $ac_status); }; } &&
45501 { ac_try='test -s conftest.$ac_objext'
45502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45503 (eval $ac_try) 2>&5
45504 ac_status=$?
45505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45506 (exit $ac_status); }; }; then
45507
45508 echo "$as_me:$LINENO: result: yes" >&5
45509 echo "${ECHO_T}yes" >&6
45510 GCC_PCH=1
45511
45512 else
45513 echo "$as_me: failed program was:" >&5
45514 sed 's/^/| /' conftest.$ac_ext >&5
45515
45516
45517 echo "$as_me:$LINENO: result: no" >&5
45518 echo "${ECHO_T}no" >&6
45519
45520 fi
45521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45522 if test $GCC_PCH = 1 ; then
45523
45524 D='$'
45525 cat <<EOF >bk-make-pch
45526 #!/bin/sh
45527
45528 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45529 # script. It is used to generated precompiled headers.
45530 #
45531 # Permission is given to use this file in any way.
45532
45533 outfile="${D}{1}"
45534 header="${D}{2}"
45535 shift
45536 shift
45537
45538 compiler=
45539 headerfile=
45540 while test ${D}{#} -gt 0; do
45541 case "${D}{1}" in
45542 -I* )
45543 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
45544 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
45545 headerfile="${D}{incdir}/${D}{header}"
45546 fi
45547 ;;
45548 esac
45549 compiler="${D}{compiler} ${D}{1}"
45550 shift
45551 done
45552
45553 if test "x${D}{headerfile}" = "x" ; then
45554 echo "error: can't find header ${D}{header} in include paths" >2
45555 else
45556 if test -f ${D}{outfile} ; then
45557 rm -f ${D}{outfile}
45558 else
45559 mkdir -p \`dirname ${D}{outfile}\`
45560 fi
45561 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
45562 mkdir -p .deps
45563 # can do this because gcc is >= 3.4:
45564 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
45565 exit ${D}{?}
45566 fi
45567 EOF
45568
45569 chmod +x bk-make-pch
45570 fi
45571 fi
45572 fi
45573
45574
45575
45576 COND_BUILD_DEBUG="#"
45577 if test "x$BUILD" = "xdebug" ; then
45578 COND_BUILD_DEBUG=""
45579 fi
45580
45581 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
45582 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
45583 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
45584 fi
45585
45586 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
45587 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
45588 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
45589 fi
45590
45591 COND_BUILD_DEBUG_UNICODE_0="#"
45592 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
45593 COND_BUILD_DEBUG_UNICODE_0=""
45594 fi
45595
45596 COND_BUILD_DEBUG_UNICODE_1="#"
45597 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
45598 COND_BUILD_DEBUG_UNICODE_1=""
45599 fi
45600
45601 COND_BUILD_RELEASE="#"
45602 if test "x$BUILD" = "xrelease" ; then
45603 COND_BUILD_RELEASE=""
45604 fi
45605
45606 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
45607 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
45608 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
45609 fi
45610
45611 COND_BUILD_RELEASE_UNICODE_0="#"
45612 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
45613 COND_BUILD_RELEASE_UNICODE_0=""
45614 fi
45615
45616 COND_BUILD_RELEASE_UNICODE_1="#"
45617 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
45618 COND_BUILD_RELEASE_UNICODE_1=""
45619 fi
45620
45621 COND_DEBUG_FLAG_1="#"
45622 if test "x$DEBUG_FLAG" = "x1" ; then
45623 COND_DEBUG_FLAG_1=""
45624 fi
45625
45626 COND_DEBUG_INFO_0="#"
45627 if test "x$DEBUG_INFO" = "x0" ; then
45628 COND_DEBUG_INFO_0=""
45629 fi
45630
45631 COND_DEBUG_INFO_1="#"
45632 if test "x$DEBUG_INFO" = "x1" ; then
45633 COND_DEBUG_INFO_1=""
45634 fi
45635
45636 COND_DEPS_TRACKING_0="#"
45637 if test "x$DEPS_TRACKING" = "x0" ; then
45638 COND_DEPS_TRACKING_0=""
45639 fi
45640
45641 COND_DEPS_TRACKING_1="#"
45642 if test "x$DEPS_TRACKING" = "x1" ; then
45643 COND_DEPS_TRACKING_1=""
45644 fi
45645
45646 COND_GCC_PCH_1="#"
45647 if test "x$GCC_PCH" = "x1" ; then
45648 COND_GCC_PCH_1=""
45649 fi
45650
45651 COND_MONOLITHIC_0="#"
45652 if test "x$MONOLITHIC" = "x0" ; then
45653 COND_MONOLITHIC_0=""
45654 fi
45655
45656 COND_MONOLITHIC_0_SHARED_0="#"
45657 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
45658 COND_MONOLITHIC_0_SHARED_0=""
45659 fi
45660
45661 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
45662 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
45663 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
45664 fi
45665
45666 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
45667 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45668 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
45669 fi
45670
45671 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
45672 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45673 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
45674 fi
45675
45676 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
45677 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45678 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
45679 fi
45680
45681 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
45682 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
45683 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
45684 fi
45685
45686 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
45687 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45688 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
45689 fi
45690
45691 COND_MONOLITHIC_0_SHARED_1="#"
45692 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
45693 COND_MONOLITHIC_0_SHARED_1=""
45694 fi
45695
45696 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
45697 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
45698 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
45699 fi
45700
45701 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
45702 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45703 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
45704 fi
45705
45706 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
45707 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45708 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
45709 fi
45710
45711 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
45712 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45713 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
45714 fi
45715
45716 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
45717 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
45718 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
45719 fi
45720
45721 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
45722 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45723 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
45724 fi
45725
45726 COND_MONOLITHIC_0_USE_ODBC_1="#"
45727 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
45728 COND_MONOLITHIC_0_USE_ODBC_1=""
45729 fi
45730
45731 COND_MONOLITHIC_1="#"
45732 if test "x$MONOLITHIC" = "x1" ; then
45733 COND_MONOLITHIC_1=""
45734 fi
45735
45736 COND_MONOLITHIC_1_SHARED_0="#"
45737 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
45738 COND_MONOLITHIC_1_SHARED_0=""
45739 fi
45740
45741 COND_MONOLITHIC_1_SHARED_1="#"
45742 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
45743 COND_MONOLITHIC_1_SHARED_1=""
45744 fi
45745
45746 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
45747 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
45748 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
45749 fi
45750
45751 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
45752 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
45753 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
45754 fi
45755
45756 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
45757 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45758 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
45759 fi
45760
45761 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
45762 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45763 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
45764 fi
45765
45766 COND_PLATFORM_MACOSX_1="#"
45767 if test "x$PLATFORM_MACOSX" = "x1" ; then
45768 COND_PLATFORM_MACOSX_1=""
45769 fi
45770
45771 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
45772 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
45773 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
45774 fi
45775
45776 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
45777 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
45778 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
45779 fi
45780
45781 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
45782 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
45783 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
45784 fi
45785
45786 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
45787 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
45788 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
45789 fi
45790
45791 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
45792 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45793 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
45794 fi
45795
45796 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45797 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45798 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45799 fi
45800
45801 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
45802 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
45803 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
45804 fi
45805
45806 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45807 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45808 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45809 fi
45810
45811 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45812 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45813 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45814 fi
45815
45816 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45817 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45818 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45819 fi
45820
45821 COND_PLATFORM_MACOS_1="#"
45822 if test "x$PLATFORM_MACOS" = "x1" ; then
45823 COND_PLATFORM_MACOS_1=""
45824 fi
45825
45826 COND_PLATFORM_MAC_1="#"
45827 if test "x$PLATFORM_MAC" = "x1" ; then
45828 COND_PLATFORM_MAC_1=""
45829 fi
45830
45831 COND_PLATFORM_MSDOS_1="#"
45832 if test "x$PLATFORM_MSDOS" = "x1" ; then
45833 COND_PLATFORM_MSDOS_1=""
45834 fi
45835
45836 COND_PLATFORM_OS2_1="#"
45837 if test "x$PLATFORM_OS2" = "x1" ; then
45838 COND_PLATFORM_OS2_1=""
45839 fi
45840
45841 COND_PLATFORM_UNIX_0="#"
45842 if test "x$PLATFORM_UNIX" = "x0" ; then
45843 COND_PLATFORM_UNIX_0=""
45844 fi
45845
45846 COND_PLATFORM_UNIX_1="#"
45847 if test "x$PLATFORM_UNIX" = "x1" ; then
45848 COND_PLATFORM_UNIX_1=""
45849 fi
45850
45851 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45852 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45853 COND_PLATFORM_UNIX_1_USE_GUI_1=""
45854 fi
45855
45856 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45857 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45858 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45859 fi
45860
45861 COND_PLATFORM_WIN32_0="#"
45862 if test "x$PLATFORM_WIN32" = "x0" ; then
45863 COND_PLATFORM_WIN32_0=""
45864 fi
45865
45866 COND_PLATFORM_WIN32_1="#"
45867 if test "x$PLATFORM_WIN32" = "x1" ; then
45868 COND_PLATFORM_WIN32_1=""
45869 fi
45870
45871 COND_SHARED_0="#"
45872 if test "x$SHARED" = "x0" ; then
45873 COND_SHARED_0=""
45874 fi
45875
45876 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45877 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45878 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45879 fi
45880
45881 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45882 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45883 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45884 fi
45885
45886 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45887 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45888 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45889 fi
45890
45891 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45892 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45893 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45894 fi
45895
45896 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45897 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45898 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45899 fi
45900
45901 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45902 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45903 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45904 fi
45905
45906 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45907 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45908 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45909 fi
45910
45911 COND_SHARED_0_USE_XRC_1="#"
45912 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45913 COND_SHARED_0_USE_XRC_1=""
45914 fi
45915
45916 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
45917 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
45918 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
45919 fi
45920
45921 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
45922 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
45923 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
45924 fi
45925
45926 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
45927 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
45928 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
45929 fi
45930
45931 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
45932 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
45933 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
45934 fi
45935
45936 COND_SHARED_1="#"
45937 if test "x$SHARED" = "x1" ; then
45938 COND_SHARED_1=""
45939 fi
45940
45941 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
45942 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45943 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
45944 fi
45945
45946 COND_SHARED_1_USE_XRC_1="#"
45947 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45948 COND_SHARED_1_USE_XRC_1=""
45949 fi
45950
45951 COND_TOOLKIT_="#"
45952 if test "x$TOOLKIT" = "x" ; then
45953 COND_TOOLKIT_=""
45954 fi
45955
45956 COND_TOOLKIT_COCOA="#"
45957 if test "x$TOOLKIT" = "xCOCOA" ; then
45958 COND_TOOLKIT_COCOA=""
45959 fi
45960
45961 COND_TOOLKIT_COCOA_USE_GUI_1="#"
45962 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
45963 COND_TOOLKIT_COCOA_USE_GUI_1=""
45964 fi
45965
45966 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
45967 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45968 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
45969 fi
45970
45971 COND_TOOLKIT_GTK="#"
45972 if test "x$TOOLKIT" = "xGTK" ; then
45973 COND_TOOLKIT_GTK=""
45974 fi
45975
45976 COND_TOOLKIT_GTK_USE_GUI_1="#"
45977 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
45978 COND_TOOLKIT_GTK_USE_GUI_1=""
45979 fi
45980
45981 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
45982 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45983 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
45984 fi
45985
45986 COND_TOOLKIT_MAC="#"
45987 if test "x$TOOLKIT" = "xMAC" ; then
45988 COND_TOOLKIT_MAC=""
45989 fi
45990
45991 COND_TOOLKIT_MAC_USE_GUI_1="#"
45992 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45993 COND_TOOLKIT_MAC_USE_GUI_1=""
45994 fi
45995
45996 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45997 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45998 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45999 fi
46000
46001 COND_TOOLKIT_MGL="#"
46002 if test "x$TOOLKIT" = "xMGL" ; then
46003 COND_TOOLKIT_MGL=""
46004 fi
46005
46006 COND_TOOLKIT_MGL_USE_GUI_1="#"
46007 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
46008 COND_TOOLKIT_MGL_USE_GUI_1=""
46009 fi
46010
46011 COND_TOOLKIT_MOTIF="#"
46012 if test "x$TOOLKIT" = "xMOTIF" ; then
46013 COND_TOOLKIT_MOTIF=""
46014 fi
46015
46016 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
46017 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
46018 COND_TOOLKIT_MOTIF_USE_GUI_1=""
46019 fi
46020
46021 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
46022 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46023 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
46024 fi
46025
46026 COND_TOOLKIT_MSW="#"
46027 if test "x$TOOLKIT" = "xMSW" ; then
46028 COND_TOOLKIT_MSW=""
46029 fi
46030
46031 COND_TOOLKIT_MSW_USE_GUI_1="#"
46032 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
46033 COND_TOOLKIT_MSW_USE_GUI_1=""
46034 fi
46035
46036 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
46037 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46038 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
46039 fi
46040
46041 COND_TOOLKIT_MSW_WXUNIV_0="#"
46042 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
46043 COND_TOOLKIT_MSW_WXUNIV_0=""
46044 fi
46045
46046 COND_TOOLKIT_PM="#"
46047 if test "x$TOOLKIT" = "xPM" ; then
46048 COND_TOOLKIT_PM=""
46049 fi
46050
46051 COND_TOOLKIT_PM_USE_GUI_1="#"
46052 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
46053 COND_TOOLKIT_PM_USE_GUI_1=""
46054 fi
46055
46056 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
46057 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46058 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
46059 fi
46060
46061 COND_TOOLKIT_WINCE="#"
46062 if test "x$TOOLKIT" = "xWINCE" ; then
46063 COND_TOOLKIT_WINCE=""
46064 fi
46065
46066 COND_TOOLKIT_WINCE_USE_GUI_1="#"
46067 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
46068 COND_TOOLKIT_WINCE_USE_GUI_1=""
46069 fi
46070
46071 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
46072 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46073 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
46074 fi
46075
46076 COND_TOOLKIT_WINCE_WXUNIV_0="#"
46077 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
46078 COND_TOOLKIT_WINCE_WXUNIV_0=""
46079 fi
46080
46081 COND_TOOLKIT_X11="#"
46082 if test "x$TOOLKIT" = "xX11" ; then
46083 COND_TOOLKIT_X11=""
46084 fi
46085
46086 COND_TOOLKIT_X11_USE_GUI_1="#"
46087 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
46088 COND_TOOLKIT_X11_USE_GUI_1=""
46089 fi
46090
46091 COND_UNICODE_1="#"
46092 if test "x$UNICODE" = "x1" ; then
46093 COND_UNICODE_1=""
46094 fi
46095
46096 COND_USE_EXCEPTIONS_0="#"
46097 if test "x$USE_EXCEPTIONS" = "x0" ; then
46098 COND_USE_EXCEPTIONS_0=""
46099 fi
46100
46101 COND_USE_EXCEPTIONS_1="#"
46102 if test "x$USE_EXCEPTIONS" = "x1" ; then
46103 COND_USE_EXCEPTIONS_1=""
46104 fi
46105
46106 COND_USE_GUI_0="#"
46107 if test "x$USE_GUI" = "x0" ; then
46108 COND_USE_GUI_0=""
46109 fi
46110
46111 COND_USE_GUI_1="#"
46112 if test "x$USE_GUI" = "x1" ; then
46113 COND_USE_GUI_1=""
46114 fi
46115
46116 COND_USE_GUI_1_WXUNIV_0="#"
46117 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46118 COND_USE_GUI_1_WXUNIV_0=""
46119 fi
46120
46121 COND_USE_GUI_1_WXUNIV_1="#"
46122 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
46123 COND_USE_GUI_1_WXUNIV_1=""
46124 fi
46125
46126 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
46127 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46128 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
46129 fi
46130
46131 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
46132 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46133 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
46134 fi
46135
46136 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
46137 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46138 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
46139 fi
46140
46141 COND_USE_ODBC_1="#"
46142 if test "x$USE_ODBC" = "x1" ; then
46143 COND_USE_ODBC_1=""
46144 fi
46145
46146 COND_USE_OPENGL_1="#"
46147 if test "x$USE_OPENGL" = "x1" ; then
46148 COND_USE_OPENGL_1=""
46149 fi
46150
46151 COND_USE_PLUGINS_0="#"
46152 if test "x$USE_PLUGINS" = "x0" ; then
46153 COND_USE_PLUGINS_0=""
46154 fi
46155
46156 COND_USE_RTTI_0="#"
46157 if test "x$USE_RTTI" = "x0" ; then
46158 COND_USE_RTTI_0=""
46159 fi
46160
46161 COND_USE_RTTI_1="#"
46162 if test "x$USE_RTTI" = "x1" ; then
46163 COND_USE_RTTI_1=""
46164 fi
46165
46166 COND_USE_SOSYMLINKS_1="#"
46167 if test "x$USE_SOSYMLINKS" = "x1" ; then
46168 COND_USE_SOSYMLINKS_1=""
46169 fi
46170
46171 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
46172 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
46173 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
46174 fi
46175
46176 COND_USE_SOVERLINUX_1="#"
46177 if test "x$USE_SOVERLINUX" = "x1" ; then
46178 COND_USE_SOVERLINUX_1=""
46179 fi
46180
46181 COND_USE_SOVERSION_0="#"
46182 if test "x$USE_SOVERSION" = "x0" ; then
46183 COND_USE_SOVERSION_0=""
46184 fi
46185
46186 COND_USE_SOVERSOLARIS_1="#"
46187 if test "x$USE_SOVERSOLARIS" = "x1" ; then
46188 COND_USE_SOVERSOLARIS_1=""
46189 fi
46190
46191 COND_USE_THREADS_0="#"
46192 if test "x$USE_THREADS" = "x0" ; then
46193 COND_USE_THREADS_0=""
46194 fi
46195
46196 COND_USE_THREADS_1="#"
46197 if test "x$USE_THREADS" = "x1" ; then
46198 COND_USE_THREADS_1=""
46199 fi
46200
46201 COND_USE_XRC_1="#"
46202 if test "x$USE_XRC" = "x1" ; then
46203 COND_USE_XRC_1=""
46204 fi
46205
46206 COND_WINDOWS_IMPLIB_1="#"
46207 if test "x$WINDOWS_IMPLIB" = "x1" ; then
46208 COND_WINDOWS_IMPLIB_1=""
46209 fi
46210
46211 COND_WITH_PLUGIN_SDL_1="#"
46212 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
46213 COND_WITH_PLUGIN_SDL_1=""
46214 fi
46215
46216 COND_WXUNIV_0="#"
46217 if test "x$WXUNIV" = "x0" ; then
46218 COND_WXUNIV_0=""
46219 fi
46220
46221 COND_WXUNIV_1="#"
46222 if test "x$WXUNIV" = "x1" ; then
46223 COND_WXUNIV_1=""
46224 fi
46225
46226 COND_WXUSE_EXPAT_BUILTIN="#"
46227 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
46228 COND_WXUSE_EXPAT_BUILTIN=""
46229 fi
46230
46231 COND_WXUSE_LIBJPEG_BUILTIN="#"
46232 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46233 COND_WXUSE_LIBJPEG_BUILTIN=""
46234 fi
46235
46236 COND_WXUSE_LIBPNG_BUILTIN="#"
46237 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46238 COND_WXUSE_LIBPNG_BUILTIN=""
46239 fi
46240
46241 COND_WXUSE_LIBTIFF_BUILTIN="#"
46242 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46243 COND_WXUSE_LIBTIFF_BUILTIN=""
46244 fi
46245
46246 COND_WXUSE_ODBC_BUILTIN="#"
46247 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
46248 COND_WXUSE_ODBC_BUILTIN=""
46249 fi
46250
46251 COND_WXUSE_REGEX_BUILTIN="#"
46252 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
46253 COND_WXUSE_REGEX_BUILTIN=""
46254 fi
46255
46256 COND_WXUSE_ZLIB_BUILTIN="#"
46257 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
46258 COND_WXUSE_ZLIB_BUILTIN=""
46259 fi
46260
46261
46262
46263 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
46264 { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
46265 echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
46266 { (exit 1); exit 1; }; }
46267 fi
46268
46269 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
46270 { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5
46271 echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;}
46272 { (exit 1); exit 1; }; }
46273 fi
46274
46275
46276 if test "$wxUSE_SHARED" = "yes"; then
46277
46278 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
46279 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
46280
46281 case "${host}" in
46282 *-pc-os2_emx | *-pc-os2-emx )
46283 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46284 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46285 cp -p ${srcdir}/src/os2/dllnames.sh .
46286 cp -p ${srcdir}/src/os2/dllar.sh .
46287 ;;
46288 esac
46289 else
46290
46291 EXE_LINKER="$CXX -o"
46292
46293 fi
46294 if test "$wxUSE_OMF" = "yes"; then
46295 case "${host}" in
46296 *-pc-os2_emx | *-pc-os2-emx )
46297 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
46298 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46299 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46300 ;;
46301 esac
46302 fi
46303
46304 if test $GCC_PCH = 1 ; then
46305 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
46306 fi
46307
46308 CPPFLAGS="$CPPFLAGS $TOOLCHAIN_DEFS"
46309
46310 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
46311
46312
46313
46314
46315
46316
46317
46318
46319
46320
46321
46322
46323
46324
46325
46326
46327
46328
46329
46330
46331
46332
46333
46334
46335
46336
46337
46338
46339
46340
46341
46342
46343
46344
46345
46346
46347
46348
46349
46350
46351
46352
46353
46354
46355
46356
46357
46358
46359
46360
46361
46362
46363
46364
46365
46366
46367
46368
46369
46370
46371
46372
46373
46374 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46375 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
46376 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
46377 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46378 echo $ECHO_N "(cached) $ECHO_C" >&6
46379 else
46380 cat >conftest.make <<\_ACEOF
46381 all:
46382 @echo 'ac_maketemp="$(MAKE)"'
46383 _ACEOF
46384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46385 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46386 if test -n "$ac_maketemp"; then
46387 eval ac_cv_prog_make_${ac_make}_set=yes
46388 else
46389 eval ac_cv_prog_make_${ac_make}_set=no
46390 fi
46391 rm -f conftest.make
46392 fi
46393 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46394 echo "$as_me:$LINENO: result: yes" >&5
46395 echo "${ECHO_T}yes" >&6
46396 SET_MAKE=
46397 else
46398 echo "$as_me:$LINENO: result: no" >&5
46399 echo "${ECHO_T}no" >&6
46400 SET_MAKE="MAKE=${MAKE-make}"
46401 fi
46402
46403
46404
46405 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
46406
46407
46408 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
46409
46410
46411 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
46412
46413
46414 ac_config_files="$ac_config_files version-script Makefile"
46415
46416
46417 ac_config_commands="$ac_config_commands wx-config
46418 "
46419
46420
46421
46422 if test "$wxWITH_SUBDIRS" != "no"; then
46423 if test "$wxUSE_GUI" = "yes"; then
46424 SUBDIRS="samples demos utils contrib"
46425 else SUBDIRS="samples utils"
46426 fi
46427
46428
46429
46430 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
46431 if test "${with_cppunit_prefix+set}" = set; then
46432 withval="$with_cppunit_prefix"
46433 cppunit_config_prefix="$withval"
46434 else
46435 cppunit_config_prefix=""
46436 fi;
46437
46438 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
46439 if test "${with_cppunit_exec_prefix+set}" = set; then
46440 withval="$with_cppunit_exec_prefix"
46441 cppunit_config_exec_prefix="$withval"
46442 else
46443 cppunit_config_exec_prefix=""
46444 fi;
46445
46446 if test x$cppunit_config_exec_prefix != x ; then
46447 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
46448 if test x${CPPUNIT_CONFIG+set} != xset ; then
46449 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
46450 fi
46451 fi
46452 if test x$cppunit_config_prefix != x ; then
46453 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
46454 if test x${CPPUNIT_CONFIG+set} != xset ; then
46455 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
46456 fi
46457 fi
46458
46459 # Extract the first word of "cppunit-config", so it can be a program name with args.
46460 set dummy cppunit-config; ac_word=$2
46461 echo "$as_me:$LINENO: checking for $ac_word" >&5
46462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46463 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
46464 echo $ECHO_N "(cached) $ECHO_C" >&6
46465 else
46466 case $CPPUNIT_CONFIG in
46467 [\\/]* | ?:[\\/]*)
46468 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
46469 ;;
46470 *)
46471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46472 for as_dir in $PATH
46473 do
46474 IFS=$as_save_IFS
46475 test -z "$as_dir" && as_dir=.
46476 for ac_exec_ext in '' $ac_executable_extensions; do
46477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46478 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46480 break 2
46481 fi
46482 done
46483 done
46484
46485 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
46486 ;;
46487 esac
46488 fi
46489 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
46490
46491 if test -n "$CPPUNIT_CONFIG"; then
46492 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
46493 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
46494 else
46495 echo "$as_me:$LINENO: result: no" >&5
46496 echo "${ECHO_T}no" >&6
46497 fi
46498
46499 cppunit_version_min=1.8.0
46500
46501 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
46502 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
46503 no_cppunit=""
46504 if test "$CPPUNIT_CONFIG" = "no" ; then
46505 no_cppunit=yes
46506 else
46507 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
46508 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
46509 cppunit_version=`$CPPUNIT_CONFIG --version`
46510
46511 cppunit_major_version=`echo $cppunit_version | \
46512 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46513 cppunit_minor_version=`echo $cppunit_version | \
46514 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46515 cppunit_micro_version=`echo $cppunit_version | \
46516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46517
46518 cppunit_major_min=`echo $cppunit_version_min | \
46519 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46520 cppunit_minor_min=`echo $cppunit_version_min | \
46521 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46522 cppunit_micro_min=`echo $cppunit_version_min | \
46523 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46524
46525 cppunit_version_proper=`expr \
46526 $cppunit_major_version \> $cppunit_major_min \| \
46527 $cppunit_major_version \= $cppunit_major_min \& \
46528 $cppunit_minor_version \> $cppunit_minor_min \| \
46529 $cppunit_major_version \= $cppunit_major_min \& \
46530 $cppunit_minor_version \= $cppunit_minor_min \& \
46531 $cppunit_micro_version \>= $cppunit_micro_min `
46532
46533 if test "$cppunit_version_proper" = "1" ; then
46534 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
46535 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
46536 else
46537 echo "$as_me:$LINENO: result: no" >&5
46538 echo "${ECHO_T}no" >&6
46539 no_cppunit=yes
46540 fi
46541 fi
46542
46543 if test "x$no_cppunit" = x ; then
46544 SUBDIRS="$SUBDIRS tests"
46545 else
46546 CPPUNIT_CFLAGS=""
46547 CPPUNIT_LIBS=""
46548 :
46549 fi
46550
46551
46552
46553
46554
46555 for subdir in `echo $SUBDIRS`; do
46556 if test -d ${srcdir}/${subdir} ; then
46557 if test "$wxUSE_GUI" = "yes"; then
46558 if test ${subdir} = "samples"; then
46559 makefiles="samples/Makefile.in $makefiles"
46560 for sample in `echo $SAMPLES_SUBDIRS`; do
46561 if test -d $srcdir/samples/$sample; then
46562 makefiles="samples/$sample/Makefile.in $makefiles"
46563 fi
46564 done
46565 else
46566 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
46567 eval "disabled=\$$disabled_var"
46568 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
46569 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
46570 fi
46571 else if test ${subdir} = "samples"; then
46572 makefiles="samples/Makefile.in samples/console/Makefile.in"
46573 elif test ${subdir} = "utils"; then
46574 makefiles=""
46575 for util in HelpGen tex2rtf ; do
46576 if test -d $srcdir/utils/$util ; then
46577 makefiles="utils/$util/Makefile.in \
46578 utils/$util/src/Makefile.in \
46579 $makefiles"
46580 fi
46581 done
46582 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
46583 fi
46584 fi
46585
46586 for mkin in $makefiles ; do
46587 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
46588 ac_config_files="$ac_config_files $mk"
46589
46590 done
46591 fi
46592 done
46593 fi
46594 cat >confcache <<\_ACEOF
46595 # This file is a shell script that caches the results of configure
46596 # tests run on this system so they can be shared between configure
46597 # scripts and configure runs, see configure's option --config-cache.
46598 # It is not useful on other systems. If it contains results you don't
46599 # want to keep, you may remove or edit it.
46600 #
46601 # config.status only pays attention to the cache file if you give it
46602 # the --recheck option to rerun configure.
46603 #
46604 # `ac_cv_env_foo' variables (set or unset) will be overridden when
46605 # loading this file, other *unset* `ac_cv_foo' will be assigned the
46606 # following values.
46607
46608 _ACEOF
46609
46610 # The following way of writing the cache mishandles newlines in values,
46611 # but we know of no workaround that is simple, portable, and efficient.
46612 # So, don't put newlines in cache variables' values.
46613 # Ultrix sh set writes to stderr and can't be redirected directly,
46614 # and sets the high bit in the cache file unless we assign to the vars.
46615 {
46616 (set) 2>&1 |
46617 case `(ac_space=' '; set | grep ac_space) 2>&1` in
46618 *ac_space=\ *)
46619 # `set' does not quote correctly, so add quotes (double-quote
46620 # substitution turns \\\\ into \\, and sed turns \\ into \).
46621 sed -n \
46622 "s/'/'\\\\''/g;
46623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46624 ;;
46625 *)
46626 # `set' quotes correctly as required by POSIX, so do not add quotes.
46627 sed -n \
46628 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
46629 ;;
46630 esac;
46631 } |
46632 sed '
46633 t clear
46634 : clear
46635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46636 t end
46637 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46638 : end' >>confcache
46639 if diff $cache_file confcache >/dev/null 2>&1; then :; else
46640 if test -w $cache_file; then
46641 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46642 cat confcache >$cache_file
46643 else
46644 echo "not updating unwritable cache $cache_file"
46645 fi
46646 fi
46647 rm -f confcache
46648
46649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
46650 # Let make expand exec_prefix.
46651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46652
46653 # VPATH may cause trouble with some makes, so we remove $(srcdir),
46654 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46655 # trailing colons and then remove the whole line if VPATH becomes empty
46656 # (actually we leave an empty line to preserve line numbers).
46657 if test "x$srcdir" = x.; then
46658 ac_vpsub='/^[ ]*VPATH[ ]*=/{
46659 s/:*\$(srcdir):*/:/;
46660 s/:*\${srcdir}:*/:/;
46661 s/:*@srcdir@:*/:/;
46662 s/^\([^=]*=[ ]*\):*/\1/;
46663 s/:*$//;
46664 s/^[^=]*=[ ]*$//;
46665 }'
46666 fi
46667
46668 DEFS=-DHAVE_CONFIG_H
46669
46670 ac_libobjs=
46671 ac_ltlibobjs=
46672 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46673 # 1. Remove the extension, and $U if already installed.
46674 ac_i=`echo "$ac_i" |
46675 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
46676 # 2. Add them.
46677 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46678 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46679 done
46680 LIBOBJS=$ac_libobjs
46681
46682 LTLIBOBJS=$ac_ltlibobjs
46683
46684
46685
46686 : ${CONFIG_STATUS=./config.status}
46687 ac_clean_files_save=$ac_clean_files
46688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46689 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46690 echo "$as_me: creating $CONFIG_STATUS" >&6;}
46691 cat >$CONFIG_STATUS <<_ACEOF
46692 #! $SHELL
46693 # Generated by $as_me.
46694 # Run this file to recreate the current configuration.
46695 # Compiler output produced by configure, useful for debugging
46696 # configure, is in config.log if it exists.
46697
46698 debug=false
46699 ac_cs_recheck=false
46700 ac_cs_silent=false
46701 SHELL=\${CONFIG_SHELL-$SHELL}
46702 _ACEOF
46703
46704 cat >>$CONFIG_STATUS <<\_ACEOF
46705 ## --------------------- ##
46706 ## M4sh Initialization. ##
46707 ## --------------------- ##
46708
46709 # Be Bourne compatible
46710 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46711 emulate sh
46712 NULLCMD=:
46713 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46714 # is contrary to our usage. Disable this feature.
46715 alias -g '${1+"$@"}'='"$@"'
46716 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46717 set -o posix
46718 fi
46719 DUALCASE=1; export DUALCASE # for MKS sh
46720
46721 # Support unset when possible.
46722 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46723 as_unset=unset
46724 else
46725 as_unset=false
46726 fi
46727
46728
46729 # Work around bugs in pre-3.0 UWIN ksh.
46730 $as_unset ENV MAIL MAILPATH
46731 PS1='$ '
46732 PS2='> '
46733 PS4='+ '
46734
46735 # NLS nuisances.
46736 for as_var in \
46737 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46738 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46739 LC_TELEPHONE LC_TIME
46740 do
46741 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46742 eval $as_var=C; export $as_var
46743 else
46744 $as_unset $as_var
46745 fi
46746 done
46747
46748 # Required to use basename.
46749 if expr a : '\(a\)' >/dev/null 2>&1; then
46750 as_expr=expr
46751 else
46752 as_expr=false
46753 fi
46754
46755 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46756 as_basename=basename
46757 else
46758 as_basename=false
46759 fi
46760
46761
46762 # Name of the executable.
46763 as_me=`$as_basename "$0" ||
46764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46765 X"$0" : 'X\(//\)$' \| \
46766 X"$0" : 'X\(/\)$' \| \
46767 . : '\(.\)' 2>/dev/null ||
46768 echo X/"$0" |
46769 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46770 /^X\/\(\/\/\)$/{ s//\1/; q; }
46771 /^X\/\(\/\).*/{ s//\1/; q; }
46772 s/.*/./; q'`
46773
46774
46775 # PATH needs CR, and LINENO needs CR and PATH.
46776 # Avoid depending upon Character Ranges.
46777 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46778 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46779 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46780 as_cr_digits='0123456789'
46781 as_cr_alnum=$as_cr_Letters$as_cr_digits
46782
46783 # The user is always right.
46784 if test "${PATH_SEPARATOR+set}" != set; then
46785 echo "#! /bin/sh" >conf$$.sh
46786 echo "exit 0" >>conf$$.sh
46787 chmod +x conf$$.sh
46788 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46789 PATH_SEPARATOR=';'
46790 else
46791 PATH_SEPARATOR=:
46792 fi
46793 rm -f conf$$.sh
46794 fi
46795
46796
46797 as_lineno_1=$LINENO
46798 as_lineno_2=$LINENO
46799 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46800 test "x$as_lineno_1" != "x$as_lineno_2" &&
46801 test "x$as_lineno_3" = "x$as_lineno_2" || {
46802 # Find who we are. Look in the path if we contain no path at all
46803 # relative or not.
46804 case $0 in
46805 *[\\/]* ) as_myself=$0 ;;
46806 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46807 for as_dir in $PATH
46808 do
46809 IFS=$as_save_IFS
46810 test -z "$as_dir" && as_dir=.
46811 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46812 done
46813
46814 ;;
46815 esac
46816 # We did not find ourselves, most probably we were run as `sh COMMAND'
46817 # in which case we are not to be found in the path.
46818 if test "x$as_myself" = x; then
46819 as_myself=$0
46820 fi
46821 if test ! -f "$as_myself"; then
46822 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46823 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46824 { (exit 1); exit 1; }; }
46825 fi
46826 case $CONFIG_SHELL in
46827 '')
46828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46829 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46830 do
46831 IFS=$as_save_IFS
46832 test -z "$as_dir" && as_dir=.
46833 for as_base in sh bash ksh sh5; do
46834 case $as_dir in
46835 /*)
46836 if ("$as_dir/$as_base" -c '
46837 as_lineno_1=$LINENO
46838 as_lineno_2=$LINENO
46839 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46840 test "x$as_lineno_1" != "x$as_lineno_2" &&
46841 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46842 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46843 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46844 CONFIG_SHELL=$as_dir/$as_base
46845 export CONFIG_SHELL
46846 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46847 fi;;
46848 esac
46849 done
46850 done
46851 ;;
46852 esac
46853
46854 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46855 # uniformly replaced by the line number. The first 'sed' inserts a
46856 # line-number line before each line; the second 'sed' does the real
46857 # work. The second script uses 'N' to pair each line-number line
46858 # with the numbered line, and appends trailing '-' during
46859 # substitution so that $LINENO is not a special case at line end.
46860 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46861 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46862 sed '=' <$as_myself |
46863 sed '
46864 N
46865 s,$,-,
46866 : loop
46867 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46868 t loop
46869 s,-$,,
46870 s,^['$as_cr_digits']*\n,,
46871 ' >$as_me.lineno &&
46872 chmod +x $as_me.lineno ||
46873 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46874 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46875 { (exit 1); exit 1; }; }
46876
46877 # Don't try to exec as it changes $[0], causing all sort of problems
46878 # (the dirname of $[0] is not the place where we might find the
46879 # original and so on. Autoconf is especially sensible to this).
46880 . ./$as_me.lineno
46881 # Exit status is that of the last command.
46882 exit
46883 }
46884
46885
46886 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46887 *c*,-n*) ECHO_N= ECHO_C='
46888 ' ECHO_T=' ' ;;
46889 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46890 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46891 esac
46892
46893 if expr a : '\(a\)' >/dev/null 2>&1; then
46894 as_expr=expr
46895 else
46896 as_expr=false
46897 fi
46898
46899 rm -f conf$$ conf$$.exe conf$$.file
46900 echo >conf$$.file
46901 if ln -s conf$$.file conf$$ 2>/dev/null; then
46902 # We could just check for DJGPP; but this test a) works b) is more generic
46903 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46904 if test -f conf$$.exe; then
46905 # Don't use ln at all; we don't have any links
46906 as_ln_s='cp -p'
46907 else
46908 as_ln_s='ln -s'
46909 fi
46910 elif ln conf$$.file conf$$ 2>/dev/null; then
46911 as_ln_s=ln
46912 else
46913 as_ln_s='cp -p'
46914 fi
46915 rm -f conf$$ conf$$.exe conf$$.file
46916
46917 if mkdir -p . 2>/dev/null; then
46918 as_mkdir_p=:
46919 else
46920 test -d ./-p && rmdir ./-p
46921 as_mkdir_p=false
46922 fi
46923
46924 as_executable_p="test -f"
46925
46926 # Sed expression to map a string onto a valid CPP name.
46927 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46928
46929 # Sed expression to map a string onto a valid variable name.
46930 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46931
46932
46933 # IFS
46934 # We need space, tab and new line, in precisely that order.
46935 as_nl='
46936 '
46937 IFS=" $as_nl"
46938
46939 # CDPATH.
46940 $as_unset CDPATH
46941
46942 exec 6>&1
46943
46944 # Open the log real soon, to keep \$[0] and so on meaningful, and to
46945 # report actual input values of CONFIG_FILES etc. instead of their
46946 # values after options handling. Logging --version etc. is OK.
46947 exec 5>>config.log
46948 {
46949 echo
46950 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46951 ## Running $as_me. ##
46952 _ASBOX
46953 } >&5
46954 cat >&5 <<_CSEOF
46955
46956 This file was extended by wxWidgets $as_me 2.7.0, which was
46957 generated by GNU Autoconf 2.59. Invocation command line was
46958
46959 CONFIG_FILES = $CONFIG_FILES
46960 CONFIG_HEADERS = $CONFIG_HEADERS
46961 CONFIG_LINKS = $CONFIG_LINKS
46962 CONFIG_COMMANDS = $CONFIG_COMMANDS
46963 $ $0 $@
46964
46965 _CSEOF
46966 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
46967 echo >&5
46968 _ACEOF
46969
46970 # Files that config.status was made for.
46971 if test -n "$ac_config_files"; then
46972 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
46973 fi
46974
46975 if test -n "$ac_config_headers"; then
46976 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
46977 fi
46978
46979 if test -n "$ac_config_links"; then
46980 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
46981 fi
46982
46983 if test -n "$ac_config_commands"; then
46984 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
46985 fi
46986
46987 cat >>$CONFIG_STATUS <<\_ACEOF
46988
46989 ac_cs_usage="\
46990 \`$as_me' instantiates files from templates according to the
46991 current configuration.
46992
46993 Usage: $0 [OPTIONS] [FILE]...
46994
46995 -h, --help print this help, then exit
46996 -V, --version print version number, then exit
46997 -q, --quiet do not print progress messages
46998 -d, --debug don't remove temporary files
46999 --recheck update $as_me by reconfiguring in the same conditions
47000 --file=FILE[:TEMPLATE]
47001 instantiate the configuration file FILE
47002 --header=FILE[:TEMPLATE]
47003 instantiate the configuration header FILE
47004
47005 Configuration files:
47006 $config_files
47007
47008 Configuration headers:
47009 $config_headers
47010
47011 Configuration commands:
47012 $config_commands
47013
47014 Report bugs to <bug-autoconf@gnu.org>."
47015 _ACEOF
47016
47017 cat >>$CONFIG_STATUS <<_ACEOF
47018 ac_cs_version="\\
47019 wxWidgets config.status 2.7.0
47020 configured by $0, generated by GNU Autoconf 2.59,
47021 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
47022
47023 Copyright (C) 2003 Free Software Foundation, Inc.
47024 This config.status script is free software; the Free Software Foundation
47025 gives unlimited permission to copy, distribute and modify it."
47026 srcdir=$srcdir
47027 INSTALL="$INSTALL"
47028 _ACEOF
47029
47030 cat >>$CONFIG_STATUS <<\_ACEOF
47031 # If no file are specified by the user, then we need to provide default
47032 # value. By we need to know if files were specified by the user.
47033 ac_need_defaults=:
47034 while test $# != 0
47035 do
47036 case $1 in
47037 --*=*)
47038 ac_option=`expr "x$1" : 'x\([^=]*\)='`
47039 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
47040 ac_shift=:
47041 ;;
47042 -*)
47043 ac_option=$1
47044 ac_optarg=$2
47045 ac_shift=shift
47046 ;;
47047 *) # This is not an option, so the user has probably given explicit
47048 # arguments.
47049 ac_option=$1
47050 ac_need_defaults=false;;
47051 esac
47052
47053 case $ac_option in
47054 # Handling of the options.
47055 _ACEOF
47056 cat >>$CONFIG_STATUS <<\_ACEOF
47057 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47058 ac_cs_recheck=: ;;
47059 --version | --vers* | -V )
47060 echo "$ac_cs_version"; exit 0 ;;
47061 --he | --h)
47062 # Conflict between --help and --header
47063 { { echo "$as_me:$LINENO: error: ambiguous option: $1
47064 Try \`$0 --help' for more information." >&5
47065 echo "$as_me: error: ambiguous option: $1
47066 Try \`$0 --help' for more information." >&2;}
47067 { (exit 1); exit 1; }; };;
47068 --help | --hel | -h )
47069 echo "$ac_cs_usage"; exit 0 ;;
47070 --debug | --d* | -d )
47071 debug=: ;;
47072 --file | --fil | --fi | --f )
47073 $ac_shift
47074 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
47075 ac_need_defaults=false;;
47076 --header | --heade | --head | --hea )
47077 $ac_shift
47078 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
47079 ac_need_defaults=false;;
47080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47081 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47082 ac_cs_silent=: ;;
47083
47084 # This is an error.
47085 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
47086 Try \`$0 --help' for more information." >&5
47087 echo "$as_me: error: unrecognized option: $1
47088 Try \`$0 --help' for more information." >&2;}
47089 { (exit 1); exit 1; }; } ;;
47090
47091 *) ac_config_targets="$ac_config_targets $1" ;;
47092
47093 esac
47094 shift
47095 done
47096
47097 ac_configure_extra_args=
47098
47099 if $ac_cs_silent; then
47100 exec 6>/dev/null
47101 ac_configure_extra_args="$ac_configure_extra_args --silent"
47102 fi
47103
47104 _ACEOF
47105 cat >>$CONFIG_STATUS <<_ACEOF
47106 if \$ac_cs_recheck; then
47107 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
47108 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47109 fi
47110
47111 _ACEOF
47112
47113 cat >>$CONFIG_STATUS <<_ACEOF
47114 #
47115 # INIT-COMMANDS section.
47116 #
47117
47118 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47119 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47120 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47121 LN_S="${LN_S}"
47122
47123
47124 _ACEOF
47125
47126
47127
47128 cat >>$CONFIG_STATUS <<\_ACEOF
47129 for ac_config_target in $ac_config_targets
47130 do
47131 case "$ac_config_target" in
47132 # Handling of arguments.
47133 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
47134 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
47135 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
47136 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47137 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
47138 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
47139 "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
47140 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47141 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47142 { (exit 1); exit 1; }; };;
47143 esac
47144 done
47145
47146 # If the user did not use the arguments to specify the items to instantiate,
47147 # then the envvar interface is used. Set only those that are not.
47148 # We use the long form for the default assignment because of an extremely
47149 # bizarre bug on SunOS 4.1.3.
47150 if $ac_need_defaults; then
47151 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47152 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47153 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47154 fi
47155
47156 # Have a temporary directory for convenience. Make it in the build tree
47157 # simply because there is no reason to put it here, and in addition,
47158 # creating and moving files from /tmp can sometimes cause problems.
47159 # Create a temporary directory, and hook for its removal unless debugging.
47160 $debug ||
47161 {
47162 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
47163 trap '{ (exit 1); exit 1; }' 1 2 13 15
47164 }
47165
47166 # Create a (secure) tmp directory for tmp files.
47167
47168 {
47169 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
47170 test -n "$tmp" && test -d "$tmp"
47171 } ||
47172 {
47173 tmp=./confstat$$-$RANDOM
47174 (umask 077 && mkdir $tmp)
47175 } ||
47176 {
47177 echo "$me: cannot create a temporary directory in ." >&2
47178 { (exit 1); exit 1; }
47179 }
47180
47181 _ACEOF
47182
47183 cat >>$CONFIG_STATUS <<_ACEOF
47184
47185 #
47186 # CONFIG_FILES section.
47187 #
47188
47189 # No need to generate the scripts if there are no CONFIG_FILES.
47190 # This happens for instance when ./config.status config.h
47191 if test -n "\$CONFIG_FILES"; then
47192 # Protect against being on the right side of a sed subst in config.status.
47193 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
47194 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
47195 s,@SHELL@,$SHELL,;t t
47196 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
47197 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
47198 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
47199 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
47200 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
47201 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
47202 s,@exec_prefix@,$exec_prefix,;t t
47203 s,@prefix@,$prefix,;t t
47204 s,@program_transform_name@,$program_transform_name,;t t
47205 s,@bindir@,$bindir,;t t
47206 s,@sbindir@,$sbindir,;t t
47207 s,@libexecdir@,$libexecdir,;t t
47208 s,@datadir@,$datadir,;t t
47209 s,@sysconfdir@,$sysconfdir,;t t
47210 s,@sharedstatedir@,$sharedstatedir,;t t
47211 s,@localstatedir@,$localstatedir,;t t
47212 s,@libdir@,$libdir,;t t
47213 s,@includedir@,$includedir,;t t
47214 s,@oldincludedir@,$oldincludedir,;t t
47215 s,@infodir@,$infodir,;t t
47216 s,@mandir@,$mandir,;t t
47217 s,@build_alias@,$build_alias,;t t
47218 s,@host_alias@,$host_alias,;t t
47219 s,@target_alias@,$target_alias,;t t
47220 s,@DEFS@,$DEFS,;t t
47221 s,@ECHO_C@,$ECHO_C,;t t
47222 s,@ECHO_N@,$ECHO_N,;t t
47223 s,@ECHO_T@,$ECHO_T,;t t
47224 s,@LIBS@,$LIBS,;t t
47225 s,@build@,$build,;t t
47226 s,@build_cpu@,$build_cpu,;t t
47227 s,@build_vendor@,$build_vendor,;t t
47228 s,@build_os@,$build_os,;t t
47229 s,@host@,$host,;t t
47230 s,@host_cpu@,$host_cpu,;t t
47231 s,@host_vendor@,$host_vendor,;t t
47232 s,@host_os@,$host_os,;t t
47233 s,@target@,$target,;t t
47234 s,@target_cpu@,$target_cpu,;t t
47235 s,@target_vendor@,$target_vendor,;t t
47236 s,@target_os@,$target_os,;t t
47237 s,@CC@,$CC,;t t
47238 s,@CFLAGS@,$CFLAGS,;t t
47239 s,@LDFLAGS@,$LDFLAGS,;t t
47240 s,@CPPFLAGS@,$CPPFLAGS,;t t
47241 s,@ac_ct_CC@,$ac_ct_CC,;t t
47242 s,@EXEEXT@,$EXEEXT,;t t
47243 s,@OBJEXT@,$OBJEXT,;t t
47244 s,@CPP@,$CPP,;t t
47245 s,@EGREP@,$EGREP,;t t
47246 s,@CXX@,$CXX,;t t
47247 s,@CXXFLAGS@,$CXXFLAGS,;t t
47248 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
47249 s,@RANLIB@,$RANLIB,;t t
47250 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
47251 s,@AR@,$AR,;t t
47252 s,@ac_ct_AR@,$ac_ct_AR,;t t
47253 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
47254 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
47255 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
47256 s,@STRIP@,$STRIP,;t t
47257 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
47258 s,@RESCOMP@,$RESCOMP,;t t
47259 s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
47260 s,@DLLTOOL@,$DLLTOOL,;t t
47261 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
47262 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
47263 s,@LN_S@,$LN_S,;t t
47264 s,@CXXCPP@,$CXXCPP,;t t
47265 s,@subdirs@,$subdirs,;t t
47266 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
47267 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
47268 s,@GTK_LIBS@,$GTK_LIBS,;t t
47269 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
47270 s,@X_CFLAGS@,$X_CFLAGS,;t t
47271 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
47272 s,@X_LIBS@,$X_LIBS,;t t
47273 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
47274 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
47275 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
47276 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
47277 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
47278 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
47279 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
47280 s,@DEREZ@,$DEREZ,;t t
47281 s,@SETFILE@,$SETFILE,;t t
47282 s,@LIBICONV@,$LIBICONV,;t t
47283 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
47284 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
47285 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
47286 s,@SDL_LIBS@,$SDL_LIBS,;t t
47287 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
47288 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
47289 s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
47290 s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
47291 s,@GST_INSPECT@,$GST_INSPECT,;t t
47292 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
47293 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
47294 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
47295 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
47296 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
47297 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
47298 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
47299 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
47300 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
47301 s,@VENDOR@,$VENDOR,;t t
47302 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
47303 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
47304 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
47305 s,@WXUNIV@,$WXUNIV,;t t
47306 s,@MONOLITHIC@,$MONOLITHIC,;t t
47307 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
47308 s,@EXTRALIBS@,$EXTRALIBS,;t t
47309 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
47310 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
47311 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
47312 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
47313 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
47314 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
47315 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
47316 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
47317 s,@UNICODE@,$UNICODE,;t t
47318 s,@BUILD@,$BUILD,;t t
47319 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
47320 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
47321 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
47322 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
47323 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
47324 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
47325 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
47326 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
47327 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
47328 s,@SET_MAKE@,$SET_MAKE,;t t
47329 s,@MAKE_SET@,$MAKE_SET,;t t
47330 s,@NM@,$NM,;t t
47331 s,@ac_ct_NM@,$ac_ct_NM,;t t
47332 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
47333 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
47334 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
47335 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
47336 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
47337 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
47338 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
47339 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
47340 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
47341 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
47342 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
47343 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
47344 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
47345 s,@LIBPREFIX@,$LIBPREFIX,;t t
47346 s,@LIBEXT@,$LIBEXT,;t t
47347 s,@DLLPREFIX@,$DLLPREFIX,;t t
47348 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
47349 s,@dlldir@,$dlldir,;t t
47350 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
47351 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
47352 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
47353 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
47354 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
47355 s,@PIC_FLAG@,$PIC_FLAG,;t t
47356 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
47357 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
47358 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
47359 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
47360 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
47361 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
47362 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
47363 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
47364 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
47365 s,@GCC_PCH@,$GCC_PCH,;t t
47366 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
47367 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
47368 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
47369 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
47370 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
47371 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
47372 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
47373 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
47374 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
47375 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
47376 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
47377 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
47378 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
47379 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
47380 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
47381 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
47382 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
47383 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
47384 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
47385 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
47386 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
47387 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
47388 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
47389 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
47390 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
47391 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
47392 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
47393 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
47394 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
47395 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
47396 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
47397 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
47398 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
47399 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
47400 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
47401 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
47402 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
47403 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
47404 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
47405 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
47406 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
47407 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
47408 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
47409 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
47410 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
47411 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
47412 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
47413 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
47414 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
47415 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
47416 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
47417 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
47418 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
47419 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
47420 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
47421 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
47422 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
47423 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
47424 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
47425 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
47426 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
47427 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
47428 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
47429 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
47430 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47431 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47432 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
47433 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
47434 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
47435 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
47436 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
47437 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
47438 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
47439 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
47440 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
47441 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
47442 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
47443 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
47444 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
47445 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
47446 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
47447 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
47448 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
47449 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
47450 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
47451 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
47452 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
47453 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
47454 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
47455 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
47456 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
47457 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
47458 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
47459 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
47460 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
47461 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
47462 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
47463 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
47464 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
47465 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
47466 s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
47467 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
47468 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
47469 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
47470 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
47471 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
47472 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
47473 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
47474 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
47475 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
47476 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47477 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47478 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
47479 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
47480 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
47481 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
47482 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
47483 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
47484 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
47485 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
47486 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
47487 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
47488 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
47489 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
47490 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
47491 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
47492 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
47493 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
47494 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
47495 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
47496 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
47497 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
47498 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
47499 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
47500 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
47501 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
47502 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
47503 s,@SHARED@,$SHARED,;t t
47504 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
47505 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
47506 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
47507 s,@USE_GUI@,$USE_GUI,;t t
47508 s,@AFMINSTALL@,$AFMINSTALL,;t t
47509 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
47510 s,@TOOLKIT@,$TOOLKIT,;t t
47511 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
47512 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
47513 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
47514 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
47515 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
47516 s,@cross_compiling@,$cross_compiling,;t t
47517 s,@WIDGET_SET@,$WIDGET_SET,;t t
47518 s,@WX_RELEASE@,$WX_RELEASE,;t t
47519 s,@WX_VERSION@,$WX_VERSION,;t t
47520 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
47521 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
47522 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
47523 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
47524 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
47525 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
47526 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
47527 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
47528 s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
47529 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
47530 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
47531 s,@EXE_LINKER@,$EXE_LINKER,;t t
47532 s,@GUIDIST@,$GUIDIST,;t t
47533 s,@DISTDIR@,$DISTDIR,;t t
47534 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
47535 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
47536 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
47537 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
47538 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
47539 s,@RESFLAGS@,$RESFLAGS,;t t
47540 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
47541 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
47542 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
47543 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
47544 s,@MACRESCOMP@,$MACRESCOMP,;t t
47545 s,@MACSETFILE@,$MACSETFILE,;t t
47546 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
47547 s,@GCC@,$GCC,;t t
47548 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
47549 s,@LIBOBJS@,$LIBOBJS,;t t
47550 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
47551 CEOF
47552
47553 _ACEOF
47554
47555 cat >>$CONFIG_STATUS <<\_ACEOF
47556 # Split the substitutions into bite-sized pieces for seds with
47557 # small command number limits, like on Digital OSF/1 and HP-UX.
47558 ac_max_sed_lines=48
47559 ac_sed_frag=1 # Number of current file.
47560 ac_beg=1 # First line for current file.
47561 ac_end=$ac_max_sed_lines # Line after last line for current file.
47562 ac_more_lines=:
47563 ac_sed_cmds=
47564 while $ac_more_lines; do
47565 if test $ac_beg -gt 1; then
47566 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47567 else
47568 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47569 fi
47570 if test ! -s $tmp/subs.frag; then
47571 ac_more_lines=false
47572 else
47573 # The purpose of the label and of the branching condition is to
47574 # speed up the sed processing (if there are no `@' at all, there
47575 # is no need to browse any of the substitutions).
47576 # These are the two extra sed commands mentioned above.
47577 (echo ':t
47578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
47579 if test -z "$ac_sed_cmds"; then
47580 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
47581 else
47582 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
47583 fi
47584 ac_sed_frag=`expr $ac_sed_frag + 1`
47585 ac_beg=$ac_end
47586 ac_end=`expr $ac_end + $ac_max_sed_lines`
47587 fi
47588 done
47589 if test -z "$ac_sed_cmds"; then
47590 ac_sed_cmds=cat
47591 fi
47592 fi # test -n "$CONFIG_FILES"
47593
47594 _ACEOF
47595 cat >>$CONFIG_STATUS <<\_ACEOF
47596 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
47597 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47598 case $ac_file in
47599 - | *:- | *:-:* ) # input from stdin
47600 cat >$tmp/stdin
47601 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47603 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47604 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47605 * ) ac_file_in=$ac_file.in ;;
47606 esac
47607
47608 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
47609 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47611 X"$ac_file" : 'X\(//\)[^/]' \| \
47612 X"$ac_file" : 'X\(//\)$' \| \
47613 X"$ac_file" : 'X\(/\)' \| \
47614 . : '\(.\)' 2>/dev/null ||
47615 echo X"$ac_file" |
47616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47618 /^X\(\/\/\)$/{ s//\1/; q; }
47619 /^X\(\/\).*/{ s//\1/; q; }
47620 s/.*/./; q'`
47621 { if $as_mkdir_p; then
47622 mkdir -p "$ac_dir"
47623 else
47624 as_dir="$ac_dir"
47625 as_dirs=
47626 while test ! -d "$as_dir"; do
47627 as_dirs="$as_dir $as_dirs"
47628 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47630 X"$as_dir" : 'X\(//\)[^/]' \| \
47631 X"$as_dir" : 'X\(//\)$' \| \
47632 X"$as_dir" : 'X\(/\)' \| \
47633 . : '\(.\)' 2>/dev/null ||
47634 echo X"$as_dir" |
47635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47637 /^X\(\/\/\)$/{ s//\1/; q; }
47638 /^X\(\/\).*/{ s//\1/; q; }
47639 s/.*/./; q'`
47640 done
47641 test ! -n "$as_dirs" || mkdir $as_dirs
47642 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47643 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47644 { (exit 1); exit 1; }; }; }
47645
47646 ac_builddir=.
47647
47648 if test "$ac_dir" != .; then
47649 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47650 # A "../" for each directory in $ac_dir_suffix.
47651 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47652 else
47653 ac_dir_suffix= ac_top_builddir=
47654 fi
47655
47656 case $srcdir in
47657 .) # No --srcdir option. We are building in place.
47658 ac_srcdir=.
47659 if test -z "$ac_top_builddir"; then
47660 ac_top_srcdir=.
47661 else
47662 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47663 fi ;;
47664 [\\/]* | ?:[\\/]* ) # Absolute path.
47665 ac_srcdir=$srcdir$ac_dir_suffix;
47666 ac_top_srcdir=$srcdir ;;
47667 *) # Relative path.
47668 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47669 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47670 esac
47671
47672 # Do not use `cd foo && pwd` to compute absolute paths, because
47673 # the directories may not exist.
47674 case `pwd` in
47675 .) ac_abs_builddir="$ac_dir";;
47676 *)
47677 case "$ac_dir" in
47678 .) ac_abs_builddir=`pwd`;;
47679 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47680 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47681 esac;;
47682 esac
47683 case $ac_abs_builddir in
47684 .) ac_abs_top_builddir=${ac_top_builddir}.;;
47685 *)
47686 case ${ac_top_builddir}. in
47687 .) ac_abs_top_builddir=$ac_abs_builddir;;
47688 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47689 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47690 esac;;
47691 esac
47692 case $ac_abs_builddir in
47693 .) ac_abs_srcdir=$ac_srcdir;;
47694 *)
47695 case $ac_srcdir in
47696 .) ac_abs_srcdir=$ac_abs_builddir;;
47697 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47698 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47699 esac;;
47700 esac
47701 case $ac_abs_builddir in
47702 .) ac_abs_top_srcdir=$ac_top_srcdir;;
47703 *)
47704 case $ac_top_srcdir in
47705 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47706 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47707 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47708 esac;;
47709 esac
47710
47711
47712 case $INSTALL in
47713 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47714 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47715 esac
47716
47717 # Let's still pretend it is `configure' which instantiates (i.e., don't
47718 # use $as_me), people would be surprised to read:
47719 # /* config.h. Generated by config.status. */
47720 if test x"$ac_file" = x-; then
47721 configure_input=
47722 else
47723 configure_input="$ac_file. "
47724 fi
47725 configure_input=$configure_input"Generated from `echo $ac_file_in |
47726 sed 's,.*/,,'` by configure."
47727
47728 # First look for the input files in the build tree, otherwise in the
47729 # src tree.
47730 ac_file_inputs=`IFS=:
47731 for f in $ac_file_in; do
47732 case $f in
47733 -) echo $tmp/stdin ;;
47734 [\\/$]*)
47735 # Absolute (can't be DOS-style, as IFS=:)
47736 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47737 echo "$as_me: error: cannot find input file: $f" >&2;}
47738 { (exit 1); exit 1; }; }
47739 echo "$f";;
47740 *) # Relative
47741 if test -f "$f"; then
47742 # Build tree
47743 echo "$f"
47744 elif test -f "$srcdir/$f"; then
47745 # Source tree
47746 echo "$srcdir/$f"
47747 else
47748 # /dev/null tree
47749 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47750 echo "$as_me: error: cannot find input file: $f" >&2;}
47751 { (exit 1); exit 1; }; }
47752 fi;;
47753 esac
47754 done` || { (exit 1); exit 1; }
47755
47756 if test x"$ac_file" != x-; then
47757 { echo "$as_me:$LINENO: creating $ac_file" >&5
47758 echo "$as_me: creating $ac_file" >&6;}
47759 rm -f "$ac_file"
47760 fi
47761 _ACEOF
47762 cat >>$CONFIG_STATUS <<_ACEOF
47763 sed "$ac_vpsub
47764 $extrasub
47765 _ACEOF
47766 cat >>$CONFIG_STATUS <<\_ACEOF
47767 :t
47768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47769 s,@configure_input@,$configure_input,;t t
47770 s,@srcdir@,$ac_srcdir,;t t
47771 s,@abs_srcdir@,$ac_abs_srcdir,;t t
47772 s,@top_srcdir@,$ac_top_srcdir,;t t
47773 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47774 s,@builddir@,$ac_builddir,;t t
47775 s,@abs_builddir@,$ac_abs_builddir,;t t
47776 s,@top_builddir@,$ac_top_builddir,;t t
47777 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47778 s,@INSTALL@,$ac_INSTALL,;t t
47779 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47780 rm -f $tmp/stdin
47781 if test x"$ac_file" != x-; then
47782 mv $tmp/out $ac_file
47783 else
47784 cat $tmp/out
47785 rm -f $tmp/out
47786 fi
47787
47788 # Run the commands associated with the file.
47789 case $ac_file in
47790 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
47791 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
47792 esac
47793 done
47794 _ACEOF
47795 cat >>$CONFIG_STATUS <<\_ACEOF
47796
47797 #
47798 # CONFIG_HEADER section.
47799 #
47800
47801 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47802 # NAME is the cpp macro being defined and VALUE is the value it is being given.
47803 #
47804 # ac_d sets the value in "#define NAME VALUE" lines.
47805 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47806 ac_dB='[ ].*$,\1#\2'
47807 ac_dC=' '
47808 ac_dD=',;t'
47809 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
47810 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
47811 ac_uB='$,\1#\2define\3'
47812 ac_uC=' '
47813 ac_uD=',;t'
47814
47815 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47817 case $ac_file in
47818 - | *:- | *:-:* ) # input from stdin
47819 cat >$tmp/stdin
47820 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47821 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47822 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47823 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47824 * ) ac_file_in=$ac_file.in ;;
47825 esac
47826
47827 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47828 echo "$as_me: creating $ac_file" >&6;}
47829
47830 # First look for the input files in the build tree, otherwise in the
47831 # src tree.
47832 ac_file_inputs=`IFS=:
47833 for f in $ac_file_in; do
47834 case $f in
47835 -) echo $tmp/stdin ;;
47836 [\\/$]*)
47837 # Absolute (can't be DOS-style, as IFS=:)
47838 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47839 echo "$as_me: error: cannot find input file: $f" >&2;}
47840 { (exit 1); exit 1; }; }
47841 # Do quote $f, to prevent DOS paths from being IFS'd.
47842 echo "$f";;
47843 *) # Relative
47844 if test -f "$f"; then
47845 # Build tree
47846 echo "$f"
47847 elif test -f "$srcdir/$f"; then
47848 # Source tree
47849 echo "$srcdir/$f"
47850 else
47851 # /dev/null tree
47852 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47853 echo "$as_me: error: cannot find input file: $f" >&2;}
47854 { (exit 1); exit 1; }; }
47855 fi;;
47856 esac
47857 done` || { (exit 1); exit 1; }
47858 # Remove the trailing spaces.
47859 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
47860
47861 _ACEOF
47862
47863 # Transform confdefs.h into two sed scripts, `conftest.defines' and
47864 # `conftest.undefs', that substitutes the proper values into
47865 # config.h.in to produce config.h. The first handles `#define'
47866 # templates, and the second `#undef' templates.
47867 # And first: Protect against being on the right side of a sed subst in
47868 # config.status. Protect against being in an unquoted here document
47869 # in config.status.
47870 rm -f conftest.defines conftest.undefs
47871 # Using a here document instead of a string reduces the quoting nightmare.
47872 # Putting comments in sed scripts is not portable.
47873 #
47874 # `end' is used to avoid that the second main sed command (meant for
47875 # 0-ary CPP macros) applies to n-ary macro definitions.
47876 # See the Autoconf documentation for `clear'.
47877 cat >confdef2sed.sed <<\_ACEOF
47878 s/[\\&,]/\\&/g
47879 s,[\\$`],\\&,g
47880 t clear
47881 : clear
47882 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
47883 t end
47884 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
47885 : end
47886 _ACEOF
47887 # If some macros were called several times there might be several times
47888 # the same #defines, which is useless. Nevertheless, we may not want to
47889 # sort them, since we want the *last* AC-DEFINE to be honored.
47890 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47891 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47892 rm -f confdef2sed.sed
47893
47894 # This sed command replaces #undef with comments. This is necessary, for
47895 # example, in the case of _POSIX_SOURCE, which is predefined and required
47896 # on some systems where configure will not decide to define it.
47897 cat >>conftest.undefs <<\_ACEOF
47898 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
47899 _ACEOF
47900
47901 # Break up conftest.defines because some shells have a limit on the size
47902 # of here documents, and old seds have small limits too (100 cmds).
47903 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
47904 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
47905 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47906 echo ' :' >>$CONFIG_STATUS
47907 rm -f conftest.tail
47908 while grep . conftest.defines >/dev/null
47909 do
47910 # Write a limited-size here document to $tmp/defines.sed.
47911 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47912 # Speed up: don't consider the non `#define' lines.
47913 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
47914 # Work around the forget-to-reset-the-flag bug.
47915 echo 't clr' >>$CONFIG_STATUS
47916 echo ': clr' >>$CONFIG_STATUS
47917 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47918 echo 'CEOF
47919 sed -f $tmp/defines.sed $tmp/in >$tmp/out
47920 rm -f $tmp/in
47921 mv $tmp/out $tmp/in
47922 ' >>$CONFIG_STATUS
47923 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47924 rm -f conftest.defines
47925 mv conftest.tail conftest.defines
47926 done
47927 rm -f conftest.defines
47928 echo ' fi # grep' >>$CONFIG_STATUS
47929 echo >>$CONFIG_STATUS
47930
47931 # Break up conftest.undefs because some shells have a limit on the size
47932 # of here documents, and old seds have small limits too (100 cmds).
47933 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47934 rm -f conftest.tail
47935 while grep . conftest.undefs >/dev/null
47936 do
47937 # Write a limited-size here document to $tmp/undefs.sed.
47938 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47939 # Speed up: don't consider the non `#undef'
47940 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
47941 # Work around the forget-to-reset-the-flag bug.
47942 echo 't clr' >>$CONFIG_STATUS
47943 echo ': clr' >>$CONFIG_STATUS
47944 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47945 echo 'CEOF
47946 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47947 rm -f $tmp/in
47948 mv $tmp/out $tmp/in
47949 ' >>$CONFIG_STATUS
47950 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47951 rm -f conftest.undefs
47952 mv conftest.tail conftest.undefs
47953 done
47954 rm -f conftest.undefs
47955
47956 cat >>$CONFIG_STATUS <<\_ACEOF
47957 # Let's still pretend it is `configure' which instantiates (i.e., don't
47958 # use $as_me), people would be surprised to read:
47959 # /* config.h. Generated by config.status. */
47960 if test x"$ac_file" = x-; then
47961 echo "/* Generated by configure. */" >$tmp/config.h
47962 else
47963 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
47964 fi
47965 cat $tmp/in >>$tmp/config.h
47966 rm -f $tmp/in
47967 if test x"$ac_file" != x-; then
47968 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47969 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47970 echo "$as_me: $ac_file is unchanged" >&6;}
47971 else
47972 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47973 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47974 X"$ac_file" : 'X\(//\)[^/]' \| \
47975 X"$ac_file" : 'X\(//\)$' \| \
47976 X"$ac_file" : 'X\(/\)' \| \
47977 . : '\(.\)' 2>/dev/null ||
47978 echo X"$ac_file" |
47979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47981 /^X\(\/\/\)$/{ s//\1/; q; }
47982 /^X\(\/\).*/{ s//\1/; q; }
47983 s/.*/./; q'`
47984 { if $as_mkdir_p; then
47985 mkdir -p "$ac_dir"
47986 else
47987 as_dir="$ac_dir"
47988 as_dirs=
47989 while test ! -d "$as_dir"; do
47990 as_dirs="$as_dir $as_dirs"
47991 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47993 X"$as_dir" : 'X\(//\)[^/]' \| \
47994 X"$as_dir" : 'X\(//\)$' \| \
47995 X"$as_dir" : 'X\(/\)' \| \
47996 . : '\(.\)' 2>/dev/null ||
47997 echo X"$as_dir" |
47998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48000 /^X\(\/\/\)$/{ s//\1/; q; }
48001 /^X\(\/\).*/{ s//\1/; q; }
48002 s/.*/./; q'`
48003 done
48004 test ! -n "$as_dirs" || mkdir $as_dirs
48005 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48006 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48007 { (exit 1); exit 1; }; }; }
48008
48009 rm -f $ac_file
48010 mv $tmp/config.h $ac_file
48011 fi
48012 else
48013 cat $tmp/config.h
48014 rm -f $tmp/config.h
48015 fi
48016 done
48017 _ACEOF
48018 cat >>$CONFIG_STATUS <<\_ACEOF
48019
48020 #
48021 # CONFIG_COMMANDS section.
48022 #
48023 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
48024 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
48025 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
48026 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
48027 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48028 X"$ac_dest" : 'X\(//\)[^/]' \| \
48029 X"$ac_dest" : 'X\(//\)$' \| \
48030 X"$ac_dest" : 'X\(/\)' \| \
48031 . : '\(.\)' 2>/dev/null ||
48032 echo X"$ac_dest" |
48033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48034 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48035 /^X\(\/\/\)$/{ s//\1/; q; }
48036 /^X\(\/\).*/{ s//\1/; q; }
48037 s/.*/./; q'`
48038 { if $as_mkdir_p; then
48039 mkdir -p "$ac_dir"
48040 else
48041 as_dir="$ac_dir"
48042 as_dirs=
48043 while test ! -d "$as_dir"; do
48044 as_dirs="$as_dir $as_dirs"
48045 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48046 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48047 X"$as_dir" : 'X\(//\)[^/]' \| \
48048 X"$as_dir" : 'X\(//\)$' \| \
48049 X"$as_dir" : 'X\(/\)' \| \
48050 . : '\(.\)' 2>/dev/null ||
48051 echo X"$as_dir" |
48052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48053 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48054 /^X\(\/\/\)$/{ s//\1/; q; }
48055 /^X\(\/\).*/{ s//\1/; q; }
48056 s/.*/./; q'`
48057 done
48058 test ! -n "$as_dirs" || mkdir $as_dirs
48059 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48060 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48061 { (exit 1); exit 1; }; }; }
48062
48063 ac_builddir=.
48064
48065 if test "$ac_dir" != .; then
48066 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48067 # A "../" for each directory in $ac_dir_suffix.
48068 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48069 else
48070 ac_dir_suffix= ac_top_builddir=
48071 fi
48072
48073 case $srcdir in
48074 .) # No --srcdir option. We are building in place.
48075 ac_srcdir=.
48076 if test -z "$ac_top_builddir"; then
48077 ac_top_srcdir=.
48078 else
48079 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48080 fi ;;
48081 [\\/]* | ?:[\\/]* ) # Absolute path.
48082 ac_srcdir=$srcdir$ac_dir_suffix;
48083 ac_top_srcdir=$srcdir ;;
48084 *) # Relative path.
48085 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48086 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48087 esac
48088
48089 # Do not use `cd foo && pwd` to compute absolute paths, because
48090 # the directories may not exist.
48091 case `pwd` in
48092 .) ac_abs_builddir="$ac_dir";;
48093 *)
48094 case "$ac_dir" in
48095 .) ac_abs_builddir=`pwd`;;
48096 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48097 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48098 esac;;
48099 esac
48100 case $ac_abs_builddir in
48101 .) ac_abs_top_builddir=${ac_top_builddir}.;;
48102 *)
48103 case ${ac_top_builddir}. in
48104 .) ac_abs_top_builddir=$ac_abs_builddir;;
48105 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48106 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48107 esac;;
48108 esac
48109 case $ac_abs_builddir in
48110 .) ac_abs_srcdir=$ac_srcdir;;
48111 *)
48112 case $ac_srcdir in
48113 .) ac_abs_srcdir=$ac_abs_builddir;;
48114 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48115 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48116 esac;;
48117 esac
48118 case $ac_abs_builddir in
48119 .) ac_abs_top_srcdir=$ac_top_srcdir;;
48120 *)
48121 case $ac_top_srcdir in
48122 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48123 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48124 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48125 esac;;
48126 esac
48127
48128
48129 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
48130 echo "$as_me: executing $ac_dest commands" >&6;}
48131 case $ac_dest in
48132 wx-config ) rm -f wx-config
48133 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
48134 ;;
48135 esac
48136 done
48137 _ACEOF
48138
48139 cat >>$CONFIG_STATUS <<\_ACEOF
48140
48141 { (exit 0); exit 0; }
48142 _ACEOF
48143 chmod +x $CONFIG_STATUS
48144 ac_clean_files=$ac_clean_files_save
48145
48146
48147 # configure is writing to config.log, and then calls config.status.
48148 # config.status does its own redirection, appending to config.log.
48149 # Unfortunately, on DOS this fails, as config.log is still kept open
48150 # by configure, so config.status won't be able to write to it; its
48151 # output is simply discarded. So we exec the FD to /dev/null,
48152 # effectively closing config.log, so it can be properly (re)opened and
48153 # appended to by config.status. When coming back to configure, we
48154 # need to make the FD available again.
48155 if test "$no_create" != yes; then
48156 ac_cs_success=:
48157 ac_config_status_args=
48158 test "$silent" = yes &&
48159 ac_config_status_args="$ac_config_status_args --quiet"
48160 exec 5>/dev/null
48161 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48162 exec 5>>config.log
48163 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48164 # would make configure fail if this is the last instruction.
48165 $ac_cs_success || { (exit 1); exit 1; }
48166 fi
48167
48168 #
48169 # CONFIG_SUBDIRS section.
48170 #
48171 if test "$no_recursion" != yes; then
48172
48173 # Remove --cache-file and --srcdir arguments so they do not pile up.
48174 ac_sub_configure_args=
48175 ac_prev=
48176 for ac_arg in $ac_configure_args; do
48177 if test -n "$ac_prev"; then
48178 ac_prev=
48179 continue
48180 fi
48181 case $ac_arg in
48182 -cache-file | --cache-file | --cache-fil | --cache-fi \
48183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
48184 ac_prev=cache_file ;;
48185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
48186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
48187 | --c=*)
48188 ;;
48189 --config-cache | -C)
48190 ;;
48191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
48192 ac_prev=srcdir ;;
48193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
48194 ;;
48195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
48196 ac_prev=prefix ;;
48197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
48198 ;;
48199 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
48200 esac
48201 done
48202
48203 # Always prepend --prefix to ensure using the same prefix
48204 # in subdir configurations.
48205 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
48206
48207 ac_popdir=`pwd`
48208 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
48209
48210 # Do not complain, so a configure script can configure whichever
48211 # parts of a large source tree are present.
48212 test -d $srcdir/$ac_dir || continue
48213
48214 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
48215 echo "$as_me: configuring in $ac_dir" >&6;}
48216 { if $as_mkdir_p; then
48217 mkdir -p "$ac_dir"
48218 else
48219 as_dir="$ac_dir"
48220 as_dirs=
48221 while test ! -d "$as_dir"; do
48222 as_dirs="$as_dir $as_dirs"
48223 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48225 X"$as_dir" : 'X\(//\)[^/]' \| \
48226 X"$as_dir" : 'X\(//\)$' \| \
48227 X"$as_dir" : 'X\(/\)' \| \
48228 . : '\(.\)' 2>/dev/null ||
48229 echo X"$as_dir" |
48230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48232 /^X\(\/\/\)$/{ s//\1/; q; }
48233 /^X\(\/\).*/{ s//\1/; q; }
48234 s/.*/./; q'`
48235 done
48236 test ! -n "$as_dirs" || mkdir $as_dirs
48237 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48238 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48239 { (exit 1); exit 1; }; }; }
48240
48241 ac_builddir=.
48242
48243 if test "$ac_dir" != .; then
48244 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48245 # A "../" for each directory in $ac_dir_suffix.
48246 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48247 else
48248 ac_dir_suffix= ac_top_builddir=
48249 fi
48250
48251 case $srcdir in
48252 .) # No --srcdir option. We are building in place.
48253 ac_srcdir=.
48254 if test -z "$ac_top_builddir"; then
48255 ac_top_srcdir=.
48256 else
48257 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48258 fi ;;
48259 [\\/]* | ?:[\\/]* ) # Absolute path.
48260 ac_srcdir=$srcdir$ac_dir_suffix;
48261 ac_top_srcdir=$srcdir ;;
48262 *) # Relative path.
48263 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48264 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48265 esac
48266
48267 # Do not use `cd foo && pwd` to compute absolute paths, because
48268 # the directories may not exist.
48269 case `pwd` in
48270 .) ac_abs_builddir="$ac_dir";;
48271 *)
48272 case "$ac_dir" in
48273 .) ac_abs_builddir=`pwd`;;
48274 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48275 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48276 esac;;
48277 esac
48278 case $ac_abs_builddir in
48279 .) ac_abs_top_builddir=${ac_top_builddir}.;;
48280 *)
48281 case ${ac_top_builddir}. in
48282 .) ac_abs_top_builddir=$ac_abs_builddir;;
48283 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48284 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48285 esac;;
48286 esac
48287 case $ac_abs_builddir in
48288 .) ac_abs_srcdir=$ac_srcdir;;
48289 *)
48290 case $ac_srcdir in
48291 .) ac_abs_srcdir=$ac_abs_builddir;;
48292 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48293 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48294 esac;;
48295 esac
48296 case $ac_abs_builddir in
48297 .) ac_abs_top_srcdir=$ac_top_srcdir;;
48298 *)
48299 case $ac_top_srcdir in
48300 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48301 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48302 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48303 esac;;
48304 esac
48305
48306
48307 cd $ac_dir
48308
48309 # Check for guested configure; otherwise get Cygnus style configure.
48310 if test -f $ac_srcdir/configure.gnu; then
48311 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
48312 elif test -f $ac_srcdir/configure; then
48313 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
48314 elif test -f $ac_srcdir/configure.in; then
48315 ac_sub_configure=$ac_configure
48316 else
48317 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
48318 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
48319 ac_sub_configure=
48320 fi
48321
48322 # The recursion is here.
48323 if test -n "$ac_sub_configure"; then
48324 # Make the cache file name correct relative to the subdirectory.
48325 case $cache_file in
48326 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
48327 *) # Relative path.
48328 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
48329 esac
48330
48331 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
48332 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
48333 # The eval makes quoting arguments work.
48334 eval $ac_sub_configure $ac_sub_configure_args \
48335 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
48336 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
48337 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
48338 { (exit 1); exit 1; }; }
48339 fi
48340
48341 cd "$ac_popdir"
48342 done
48343 fi
48344
48345
48346 echo
48347 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
48348 echo ""
48349 echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
48350 echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
48351
48352 echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
48353 echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
48354 echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
48355
48356 echo " What level of wxWidgets compatibility should be enabled?"
48357 echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
48358 echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
48359
48360 echo " Which libraries should wxWidgets use?"
48361 echo " jpeg ${wxUSE_LIBJPEG-none}"
48362 echo " png ${wxUSE_LIBPNG-none}"
48363 echo " regex ${wxUSE_REGEX}"
48364 echo " tiff ${wxUSE_LIBTIFF-none}"
48365 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
48366 echo " xpm ${wxUSE_LIBXPM-none}"
48367 fi
48368 echo " zlib ${wxUSE_ZLIB}"
48369 echo " odbc ${wxUSE_ODBC}"
48370 echo " expat ${wxUSE_EXPAT}"
48371 echo " libmspack ${wxUSE_LIBMSPACK}"
48372 echo " sdl ${wxUSE_LIBSDL}"
48373 echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
48374
48375 echo ""
48376