]> git.saurik.com Git - wxWidgets.git/blame - configure
Fix
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
81f90336 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.4.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
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
16if 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+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for 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
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo 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.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if 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
100fi
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
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
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
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
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
155done
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
190case `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= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if 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
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $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.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${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.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
81f90336
MW
273PACKAGE_VERSION='2.5.4'
274PACKAGE_STRING='wxWidgets 2.5.4'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_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
315ac_subdirs_all="$ac_subdirs_all src/expat"
0b78747f 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP 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 ac_ct_AR ac_ct_STRIP 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 AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_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_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_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_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_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ 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_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_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_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_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 DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_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.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
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
631Try \`$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
654done
655
656if 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; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
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
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
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
683done
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.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if 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
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo 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
729else
730 ac_srcdir_defaulted=no
731fi
732if 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
740fi
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; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if 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
81f90336 797\`configure' configures wxWidgets 2.5.4 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
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
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine 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
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System 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
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
81f90336 863 short | recursive ) echo "Configuration of wxWidgets 2.5.4:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional 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
77ffb593
JS
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
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
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
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
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
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
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
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
07158944 929 --enable-stdpaths use wxStandardPaths class
a848cd7e 930 --enable-stopwatch use wxStopWatch class
07158944 931 --enable-streams use wxStream etc classes
a848cd7e
SC
932 --enable-sysoptions use wxSystemOptions
933 --enable-textbuf use wxTextBuffer class
934 --enable-textfile use wxTextFile class
935 --enable-timer use wxTimer class
936 --enable-unicode compile wxString with Unicode support
937 --enable-sound use wxSound class
3b57de8b 938 --enable-mediactrl use wxMediaCtrl class
77ffb593 939 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 940 --enable-zipstream use wxZip streams
a848cd7e
SC
941 --enable-url use wxURL class
942 --enable-protocol use wxProtocol class
943 --enable-protocol-http HTTP support in wxProtocol
944 --enable-protocol-ftp FTP support in wxProtocol
945 --enable-protocol-file FILE support in wxProtocol
946 --enable-threads use threads
947 --enable-docview use document view architecture
948 --enable-help use help subsystem
949 --enable-mshtmlhelp use MS HTML Help (win32)
950 --enable-html use wxHTML sub-library
951 --enable-htmlhelp use wxHTML-based help
9a8f0513 952 --enable-xrc use XRC resources sub-library
a848cd7e
SC
953 --enable-constraints use layout-constraints system
954 --enable-printarch use printing architecture
955 --enable-mdi use multiple document interface architecture
8a7b1113 956 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
957 --enable-loggui use standard GUI logger
958 --enable-logwin use wxLogWindow
959 --enable-logdialog use wxLogDialog
646b6ec1 960 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
961 --enable-postscript use wxPostscriptDC device context (default for gtk+)
962 --enable-prologio not available; see contrib
963 --enable-resources not available; see contrib
964 --enable-clipboard use wxClipboard class
965 --enable-dnd use Drag'n'Drop classes
966 --enable-metafile use win32 metafiles
967 --enable-controls use all usual controls
968 --enable-accel use accelerators
969 --enable-button use wxButton class
970 --enable-bmpbutton use wxBitmapButton class
971 --enable-calendar use wxCalendarCtrl class
972 --enable-caret use wxCaret class
973 --enable-checkbox use wxCheckBox class
974 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
975 --enable-choice use wxChoice class
92bbdbcd 976 --enable-choicebook use wxChoicebook class
a848cd7e 977 --enable-combobox use wxComboBox class
da98e9be 978 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
979 --enable-display use wxDisplay class
980 --enable-gauge use wxGauge class
981 --enable-grid use wxGrid class
982 --enable-imaglist use wxImageList class
983 --enable-listbook use wxListbook class
984 --enable-listbox use wxListBox class
985 --enable-listctrl use wxListCtrl class
986 --enable-notebook use wxNotebook class
987 --enable-radiobox use wxRadioBox class
988 --enable-radiobtn use wxRadioButton class
989 --enable-sash use wxSashWindow class
990 --enable-scrollbar use wxScrollBar class and scrollable windows
991 --enable-slider use wxSlider class
992 --enable-spinbtn use wxSpinButton class
993 --enable-spinctrl use wxSpinCtrl class
994 --enable-splitter use wxSplitterWindow class
995 --enable-statbmp use wxStaticBitmap class
996 --enable-statbox use wxStaticBox class
997 --enable-statline use wxStaticLine class
998 --enable-stattext use wxStaticText class
999 --enable-statusbar use wxStatusBar class
1000 --enable-tabdialog use wxTabControl class
1001 --enable-textctrl use wxTextCtrl class
1002 --enable-togglebtn use wxToggleButton class
1003 --enable-toolbar use wxToolBar class
1004 --enable-tbarnative use native wxToolBar class
1005 --enable-tbarsmpl use wxToolBarSimple class
1006 --enable-treectrl use wxTreeCtrl class
1007 --enable-tipwindow use wxTipWindow class
1008 --enable-popupwin use wxPopUpWindow class
1009 --enable-commondlg use all common dialogs
1010 --enable-choicedlg use wxChoiceDialog
1011 --enable-coldlg use wxColourDialog
1012 --enable-filedlg use wxFileDialog
1013 --enable-finddlg use wxFindReplaceDialog
1014 --enable-fontdlg use wxFontDialog
1015 --enable-dirdlg use wxDirDialog
1016 --enable-msgdlg use wxMessageDialog
1017 --enable-numberdlg use wxNumberEntryDialog
1018 --enable-splash use wxSplashScreen
1019 --enable-textdlg use wxTextDialog
1020 --enable-tipdlg use startup tips
1021 --enable-progressdlg use wxProgressDialog
1022 --enable-wizarddlg use wxWizard
1023 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1024 --enable-miniframe use wxMiniFrame class
1025 --enable-tooltips use wxToolTip class
1026 --enable-splines use spline drawing code
1027 --enable-validators use wxValidator and derived classes
1028 --enable-busyinfo use wxBusyInfo
4cb1d3da 1029 --enable-joystick use wxJoystick
a848cd7e
SC
1030 --enable-metafiles use wxMetaFile (Windows only)
1031 --enable-dragimage use wxDragImage
1032 --enable-accessibility enable accessibility support
1033 --enable-palette use wxPalette class
1034 --enable-image use wxImage class
1035 --enable-gif use gif images (GIF file format)
1036 --enable-pcx use pcx images (PCX file format)
1037 --enable-iff use iff images (IFF file format)
1038 --enable-pnm use pnm images (PNM file format)
1039 --enable-xpm use xpm images (XPM file format)
1040 --enable-icocur use Windows ICO and CUR formats
77ffb593 1041 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1042 --enable-vendor=VENDOR vendor name (win32 DLL only)
1043 --disable-largefile omit support for large files
1044 --disable-gtktest do not try to compile and run a test GTK+ program
1045 --disable-gtktest Do not try to compile and run a test GTK program
1046 --disable-sdltest Do not try to compile and run a test SDL program
1047 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1048 --disable-precomp-headers
1049 don't use precompiled headers even if compiler can
a848cd7e
SC
1050
1051Optional Packages:
1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1054 --with-gtk use GTK+
1055 --with-motif use Motif/Lesstif
1056 --with-mac use Mac OS X
1057 --with-cocoa use Cocoa
1058 --with-wine use Wine
1059 --with-msw use MS-Windows
1060 --with-pm use OS/2 Presentation Manager
1061 --with-mgl use SciTech MGL
1062 --with-microwin use MicroWindows
1063 --with-x11 use X11
1064 --with-libpng use libpng (PNG image format)
1065 --with-libjpeg use libjpeg (JPEG file format)
1066 --with-libtiff use libtiff (TIFF file format)
1067 --with-libxpm use libxpm (XPM file format)
1068 --with-libmspack use libmspack (CHM help files loading)
1069 --with-sdl use SDL for audio on Unix
d51253e8 1070 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1071 --with-opengl use OpenGL (or Mesa)
1072 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1073 --with-regex enable support for wxRegEx class
1074 --with-zlib use zlib for LZW compression
1075 --with-odbc use the IODBC and wxODBC classes
1076 --with-expat enable XML support using expat parser
ceec2216 1077 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1078 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1079 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1080 --with-x use the X Window System
1081 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1082 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1083 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1084 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1085 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1086
1087Some influential environment variables:
dcc1b6ad
VS
1088 CC C compiler command
1089 CFLAGS C compiler flags
1090 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1091 nonstandard directory <lib dir>
1092 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1093 headers in a nonstandard directory <include dir>
1094 CPP C preprocessor
1095 CXX C++ compiler command
1096 CXXFLAGS C++ compiler flags
1097 CXXCPP C++ preprocessor
a848cd7e
SC
1098
1099Use these variables to override the choices made by `configure' or to help
1100it to find libraries and programs with nonstandard names/locations.
1101
77ffb593 1102Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1103_ACEOF
1104fi
1105
1106if test "$ac_init_help" = "recursive"; then
1107 # If there are subdirs, report their specific --help.
1108 ac_popdir=`pwd`
1109 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1110 test -d $ac_dir || continue
1111 ac_builddir=.
1112
1113if test "$ac_dir" != .; then
1114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1115 # A "../" for each directory in $ac_dir_suffix.
1116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1117else
1118 ac_dir_suffix= ac_top_builddir=
1119fi
1120
1121case $srcdir in
1122 .) # No --srcdir option. We are building in place.
1123 ac_srcdir=.
1124 if test -z "$ac_top_builddir"; then
1125 ac_top_srcdir=.
1126 else
1127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1128 fi ;;
1129 [\\/]* | ?:[\\/]* ) # Absolute path.
1130 ac_srcdir=$srcdir$ac_dir_suffix;
1131 ac_top_srcdir=$srcdir ;;
1132 *) # Relative path.
1133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1134 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1135esac
ac1cb8d3
VS
1136
1137# Do not use `cd foo && pwd` to compute absolute paths, because
1138# the directories may not exist.
1139case `pwd` in
1140.) ac_abs_builddir="$ac_dir";;
1141*)
1142 case "$ac_dir" in
1143 .) ac_abs_builddir=`pwd`;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1145 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1146 esac;;
1147esac
1148case $ac_abs_builddir in
1149.) ac_abs_top_builddir=${ac_top_builddir}.;;
1150*)
1151 case ${ac_top_builddir}. in
1152 .) ac_abs_top_builddir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1155 esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_srcdir=$ac_srcdir;;
1159*)
1160 case $ac_srcdir in
1161 .) ac_abs_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1164 esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_top_srcdir=$ac_top_srcdir;;
1168*)
1169 case $ac_top_srcdir in
1170 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1173 esac;;
1174esac
a848cd7e
SC
1175
1176 cd $ac_dir
1177 # Check for guested configure; otherwise get Cygnus style configure.
1178 if test -f $ac_srcdir/configure.gnu; then
1179 echo
1180 $SHELL $ac_srcdir/configure.gnu --help=recursive
1181 elif test -f $ac_srcdir/configure; then
1182 echo
1183 $SHELL $ac_srcdir/configure --help=recursive
1184 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1185 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1186 echo
1187 $ac_configure --help
1188 else
1189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1190 fi
07158944 1191 cd "$ac_popdir"
a848cd7e
SC
1192 done
1193fi
1194
1195test -n "$ac_init_help" && exit 0
1196if $ac_init_version; then
1197 cat <<\_ACEOF
81f90336 1198wxWidgets configure 2.5.4
ac1cb8d3 1199generated by GNU Autoconf 2.59
a848cd7e 1200
ac1cb8d3 1201Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1202This configure script is free software; the Free Software Foundation
1203gives unlimited permission to copy, distribute and modify it.
1204_ACEOF
1205 exit 0
1206fi
1207exec 5>config.log
1208cat >&5 <<_ACEOF
1209This file contains any messages produced by compilers while
1210running configure, to aid debugging if configure makes a mistake.
1211
81f90336 1212It was created by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 1213generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1214
1215 $ $0 $@
1216
1217_ACEOF
1218{
1219cat <<_ASUNAME
1220## --------- ##
1221## Platform. ##
1222## --------- ##
1223
1224hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1225uname -m = `(uname -m) 2>/dev/null || echo unknown`
1226uname -r = `(uname -r) 2>/dev/null || echo unknown`
1227uname -s = `(uname -s) 2>/dev/null || echo unknown`
1228uname -v = `(uname -v) 2>/dev/null || echo unknown`
1229
1230/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1231/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1232
1233/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1234/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1235/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1236hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1237/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1238/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1239/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1240
1241_ASUNAME
1242
1243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1244for as_dir in $PATH
1245do
1246 IFS=$as_save_IFS
1247 test -z "$as_dir" && as_dir=.
1248 echo "PATH: $as_dir"
1249done
1250
1251} >&5
1252
1253cat >&5 <<_ACEOF
1254
1255
1256## ----------- ##
1257## Core tests. ##
1258## ----------- ##
1259
1260_ACEOF
1261
1262
1263# Keep a trace of the command line.
1264# Strip out --no-create and --no-recursion so they do not pile up.
1265# Strip out --silent because we don't want to record it for future runs.
1266# Also quote any args containing shell meta-characters.
1267# Make two passes to allow for proper duplicate-argument suppression.
1268ac_configure_args=
1269ac_configure_args0=
1270ac_configure_args1=
1271ac_sep=
1272ac_must_keep_next=false
1273for ac_pass in 1 2
1274do
1275 for ac_arg
1276 do
1277 case $ac_arg in
1278 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 continue ;;
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 esac
1285 case $ac_pass in
1286 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1287 2)
1288 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1289 if test $ac_must_keep_next = true; then
ac1cb8d3 1290 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1291 else
ac1cb8d3
VS
1292 case $ac_arg in
1293 *=* | --config-cache | -C | -disable-* | --disable-* \
1294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1296 | -with-* | --with-* | -without-* | --without-* | --x)
1297 case "$ac_configure_args0 " in
1298 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1299 esac
1300 ;;
1301 -* ) ac_must_keep_next=true ;;
1302 esac
a848cd7e
SC
1303 fi
1304 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1305 # Get rid of the leading space.
1306 ac_sep=" "
1307 ;;
1308 esac
1309 done
1310done
1311$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1312$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1313
1314# When interrupted or exit'd, cleanup temporary files, and complete
1315# config.log. We remove comments because anyway the quotes in there
1316# would cause problems or look ugly.
1317# WARNING: Be sure not to use single quotes in there, as some shells,
1318# such as our DU 5.0 friend, will then `close' the trap.
1319trap 'exit_status=$?
1320 # Save into config.log some information that might help in debugging.
1321 {
1322 echo
1323
1324 cat <<\_ASBOX
1325## ---------------- ##
1326## Cache variables. ##
1327## ---------------- ##
1328_ASBOX
1329 echo
1330 # The following way of writing the cache mishandles newlines in values,
1331{
1332 (set) 2>&1 |
1333 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1334 *ac_space=\ *)
1335 sed -n \
ac1cb8d3
VS
1336 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1338 ;;
1339 *)
1340 sed -n \
ac1cb8d3 1341 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1342 ;;
1343 esac;
1344}
1345 echo
1346
1347 cat <<\_ASBOX
1348## ----------------- ##
1349## Output variables. ##
1350## ----------------- ##
1351_ASBOX
1352 echo
1353 for ac_var in $ac_subst_vars
1354 do
1355 eval ac_val=$`echo $ac_var`
1356 echo "$ac_var='"'"'$ac_val'"'"'"
1357 done | sort
1358 echo
1359
1360 if test -n "$ac_subst_files"; then
1361 cat <<\_ASBOX
1362## ------------- ##
1363## Output files. ##
1364## ------------- ##
1365_ASBOX
1366 echo
1367 for ac_var in $ac_subst_files
1368 do
1369 eval ac_val=$`echo $ac_var`
ac1cb8d3 1370 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1371 done | sort
1372 echo
1373 fi
1374
1375 if test -s confdefs.h; then
1376 cat <<\_ASBOX
1377## ----------- ##
1378## confdefs.h. ##
1379## ----------- ##
1380_ASBOX
1381 echo
1382 sed "/^$/d" confdefs.h | sort
1383 echo
1384 fi
1385 test "$ac_signal" != 0 &&
1386 echo "$as_me: caught signal $ac_signal"
1387 echo "$as_me: exit $exit_status"
1388 } >&5
ac1cb8d3 1389 rm -f core *.core &&
a848cd7e
SC
1390 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1391 exit $exit_status
1392 ' 0
1393for ac_signal in 1 2 13 15; do
1394 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1395done
1396ac_signal=0
1397
1398# confdefs.h avoids OS command line length limits that DEFS can exceed.
1399rm -rf conftest* confdefs.h
1400# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1401echo >confdefs.h
1402
1403# Predefined preprocessor variables.
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_NAME "$PACKAGE_NAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_VERSION "$PACKAGE_VERSION"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_STRING "$PACKAGE_STRING"
1422_ACEOF
1423
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1427_ACEOF
1428
1429
1430# Let the site file select an alternate cache file if it wants to.
1431# Prefer explicitly selected file to automatically selected ones.
1432if test -z "$CONFIG_SITE"; then
1433 if test "x$prefix" != xNONE; then
1434 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1435 else
1436 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1437 fi
1438fi
1439for ac_site_file in $CONFIG_SITE; do
1440 if test -r "$ac_site_file"; then
1441 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1442echo "$as_me: loading site script $ac_site_file" >&6;}
1443 sed 's/^/| /' "$ac_site_file" >&5
1444 . "$ac_site_file"
1445 fi
1446done
1447
1448if test -r "$cache_file"; then
1449 # Some versions of bash will fail to source /dev/null (special
1450 # files actually), so we avoid doing that.
1451 if test -f "$cache_file"; then
1452 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1453echo "$as_me: loading cache $cache_file" >&6;}
1454 case $cache_file in
1455 [\\/]* | ?:[\\/]* ) . $cache_file;;
1456 *) . ./$cache_file;;
1457 esac
1458 fi
1459else
1460 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1461echo "$as_me: creating cache $cache_file" >&6;}
1462 >$cache_file
1463fi
1464
1465# Check that the precious variables saved in the cache have kept the same
1466# value.
1467ac_cache_corrupted=false
1468for ac_var in `(set) 2>&1 |
ac1cb8d3 1469 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1471 eval ac_new_set=\$ac_env_${ac_var}_set
1472 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1473 eval ac_new_val="\$ac_env_${ac_var}_value"
1474 case $ac_old_set,$ac_new_set in
1475 set,)
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1477echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1479 ,set)
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1481echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1483 ,);;
1484 *)
1485 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1486 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1487echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1488 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1489echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1490 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1491echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1492 ac_cache_corrupted=:
a848cd7e
SC
1493 fi;;
1494 esac
1495 # Pass precious variables to config.status.
1496 if test "$ac_new_set" = set; then
1497 case $ac_new_val in
1498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1499 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1500 *) ac_arg=$ac_var=$ac_new_val ;;
1501 esac
1502 case " $ac_configure_args " in
1503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1504 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1505 esac
1506 fi
1507done
1508if $ac_cache_corrupted; then
1509 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1510echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1511 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1512echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1513 { (exit 1); exit 1; }; }
1514fi
1515
1516ac_ext=c
1517ac_cpp='$CPP $CPPFLAGS'
1518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1520ac_compiler_gnu=$ac_cv_c_compiler_gnu
1521
1522
1523
1524
1525
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
1551ac_aux_dir=
1552for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1553 if test -f $ac_dir/install-sh; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/install-sh -c"
1556 break
1557 elif test -f $ac_dir/install.sh; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/install.sh -c"
1560 break
1561 elif test -f $ac_dir/shtool; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/shtool install -c"
1564 break
1565 fi
1566done
1567if test -z "$ac_aux_dir"; then
1568 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1569echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1570 { (exit 1); exit 1; }; }
1571fi
1572ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1573ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1574ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1575
1576# Make sure we can run config.sub.
1577$ac_config_sub sun4 >/dev/null 2>&1 ||
1578 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1579echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1580 { (exit 1); exit 1; }; }
1581
1582echo "$as_me:$LINENO: checking build system type" >&5
1583echo $ECHO_N "checking build system type... $ECHO_C" >&6
1584if test "${ac_cv_build+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586else
1587 ac_cv_build_alias=$build_alias
1588test -z "$ac_cv_build_alias" &&
1589 ac_cv_build_alias=`$ac_config_guess`
1590test -z "$ac_cv_build_alias" &&
1591 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1592echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1593 { (exit 1); exit 1; }; }
1594ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1596echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1598
1599fi
1600echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1601echo "${ECHO_T}$ac_cv_build" >&6
1602build=$ac_cv_build
1603build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608echo "$as_me:$LINENO: checking host system type" >&5
1609echo $ECHO_N "checking host system type... $ECHO_C" >&6
1610if test "${ac_cv_host+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613 ac_cv_host_alias=$host_alias
1614test -z "$ac_cv_host_alias" &&
1615 ac_cv_host_alias=$ac_cv_build_alias
1616ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1618echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621fi
1622echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1623echo "${ECHO_T}$ac_cv_host" >&6
1624host=$ac_cv_host
1625host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630echo "$as_me:$LINENO: checking target system type" >&5
1631echo $ECHO_N "checking target system type... $ECHO_C" >&6
1632if test "${ac_cv_target+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 ac_cv_target_alias=$target_alias
1636test "x$ac_cv_target_alias" = "x" &&
1637 ac_cv_target_alias=$ac_cv_host_alias
1638ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1640echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1642
1643fi
1644echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1645echo "${ECHO_T}$ac_cv_target" >&6
1646target=$ac_cv_target
1647target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652# The aliases save the names the user supplied, while $host etc.
1653# will get canonicalized.
1654test -n "$target_alias" &&
1655 test "$program_prefix$program_suffix$program_transform_name" = \
1656 NONENONEs,x,x, &&
1657 program_prefix=${target_alias}-
1658
1659
1660
ceec2216
RL
1661wx_major_version_number=2
1662wx_minor_version_number=5
e41c39d6 1663wx_release_number=4
2da0c077 1664wx_subrelease_number=1
a848cd7e 1665
ceec2216
RL
1666WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1667WX_VERSION=$WX_RELEASE.$wx_release_number
1668WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1669
ceec2216 1670WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1671
e41c39d6 1672WX_CURRENT=4
a848cd7e 1673WX_REVISION=0
e41c39d6 1674WX_AGE=4
a848cd7e
SC
1675
1676
1677
1678USE_UNIX=1
1679USE_OS2=0
1680USE_WIN32=0
1681USE_DOS=0
1682USE_BEOS=0
1683USE_MAC=0
1684
1685USE_AIX=
1686USE_BSD= USE_DARWIN= USE_FREEBSD=
1687USE_GNU= USE_HPUX=
1688USE_LINUX=
1689USE_NETBSD=
1690USE_OPENBSD=
1691USE_OSF= USE_SGI=
1692USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1693USE_ULTRIX=
1694USE_UNIXWARE=
1695
1696USE_ALPHA=
1697
1698NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1699
1700ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1701
1702DEFAULT_wxUSE_COCOA=0
1703DEFAULT_wxUSE_GTK=0
1704DEFAULT_wxUSE_MAC=0
1705DEFAULT_wxUSE_MGL=0
1706DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_wxUSE_MSW=0
1709DEFAULT_wxUSE_PM=0
1710DEFAULT_wxUSE_X11=0
1711
1712DEFAULT_DEFAULT_wxUSE_COCOA=0
1713DEFAULT_DEFAULT_wxUSE_GTK=0
1714DEFAULT_DEFAULT_wxUSE_MAC=0
1715DEFAULT_DEFAULT_wxUSE_MGL=0
1716DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1717DEFAULT_DEFAULT_wxUSE_MOTIF=0
1718DEFAULT_DEFAULT_wxUSE_MSW=0
1719DEFAULT_DEFAULT_wxUSE_PM=0
1720DEFAULT_DEFAULT_wxUSE_X11=0
1721
1722PROGRAM_EXT=
1723SO_SUFFIX=so
1724SAMPLES_RPATH_FLAG=
1725SAMPLES_RPATH_POSTLINK=
1726
1727case "${host}" in
1728 *-hp-hpux* )
1729 USE_HPUX=1
1730 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1731 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1732 SO_SUFFIX=sl
1733 cat >>confdefs.h <<\_ACEOF
1734#define __HPUX__ 1
1735_ACEOF
1736
1737 ;;
1738 *-*-linux* )
1739 USE_LINUX=1
1740 cat >>confdefs.h <<\_ACEOF
1741#define __LINUX__ 1
1742_ACEOF
1743
1744 TMP=`uname -m`
1745 if test "x$TMP" = "xalpha"; then
1746 USE_ALPHA=1
1747 cat >>confdefs.h <<\_ACEOF
1748#define __ALPHA__ 1
1749_ACEOF
1750
1751 fi
1752 DEFAULT_DEFAULT_wxUSE_GTK=1
1753 ;;
1754 *-*-gnu* | *-*-k*bsd*-gnu )
1755 USE_GNU=1
1756 TMP=`uname -m`
1757 if test "x$TMP" = "xalpha"; then
1758 USE_ALPHA=1
1759 cat >>confdefs.h <<\_ACEOF
1760#define __ALPHA__ 1
1761_ACEOF
1762
1763 fi
1764 DEFAULT_DEFAULT_wxUSE_GTK=1
1765 ;;
1766 *-*-irix5* | *-*-irix6* )
1767 USE_SGI=1
1768 USE_SVR4=1
1769 cat >>confdefs.h <<\_ACEOF
1770#define __SGI__ 1
1771_ACEOF
1772
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SVR4__ 1
1775_ACEOF
1776
1777 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1778 ;;
1779 *-*-solaris2* )
1780 USE_SUN=1
1781 USE_SOLARIS=1
1782 USE_SVR4=1
1783 cat >>confdefs.h <<\_ACEOF
1784#define __SUN__ 1
1785_ACEOF
1786
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SOLARIS__ 1
1789_ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SVR4__ 1
1793_ACEOF
1794
1795 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1796 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1797 ;;
1798 *-*-sunos4* )
1799 USE_SUN=1
1800 USE_SUNOS=1
1801 USE_BSD=1
1802 cat >>confdefs.h <<\_ACEOF
1803#define __SUN__ 1
1804_ACEOF
1805
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SUNOS__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __BSD__ 1
1812_ACEOF
1813
1814 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1815 ;;
1816 *-*-freebsd*)
1817 USE_BSD=1
1818 USE_FREEBSD=1
1819 cat >>confdefs.h <<\_ACEOF
1820#define __FREEBSD__ 1
1821_ACEOF
1822
1823 cat >>confdefs.h <<\_ACEOF
1824#define __BSD__ 1
1825_ACEOF
1826
1827 DEFAULT_DEFAULT_wxUSE_GTK=1
1828 ;;
1829 *-*-openbsd*)
1830 USE_BSD=1
1831 USE_OPENBSD=1
1832 cat >>confdefs.h <<\_ACEOF
1833#define __OPENBSD__ 1
1834_ACEOF
1835
1836 cat >>confdefs.h <<\_ACEOF
1837#define __BSD__ 1
1838_ACEOF
1839
1840 DEFAULT_DEFAULT_wxUSE_GTK=1
1841 ;;
1842 *-*-netbsd*)
1843 USE_BSD=1
1844 USE_NETBSD=1
1845 cat >>confdefs.h <<\_ACEOF
1846#define __NETBSD__ 1
1847_ACEOF
1848
1849 cat >>confdefs.h <<\_ACEOF
1850#define __BSD__ 1
1851_ACEOF
1852
1853 DEFAULT_DEFAULT_wxUSE_GTK=1
1854 ;;
1855 *-*-osf* )
1856 USE_ALPHA=1
1857 USE_OSF=1
1858 cat >>confdefs.h <<\_ACEOF
1859#define __ALPHA__ 1
1860_ACEOF
1861
1862 cat >>confdefs.h <<\_ACEOF
1863#define __OSF__ 1
1864_ACEOF
1865
1866 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1867 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1868 ;;
1869 *-*-dgux5* )
1870 USE_ALPHA=1
1871 USE_SVR4=1
1872 cat >>confdefs.h <<\_ACEOF
1873#define __ALPHA__ 1
1874_ACEOF
1875
1876 cat >>confdefs.h <<\_ACEOF
1877#define __SVR4__ 1
1878_ACEOF
1879
1880 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1881 ;;
1882 *-*-sysv5* )
1883 USE_SYSV=1
1884 USE_SVR4=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __SYSV__ 1
1887_ACEOF
1888
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SVR4__ 1
1891_ACEOF
1892
1893 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1894 ;;
1895 *-*-aix* )
1896 USE_AIX=1
1897 USE_SYSV=1
1898 USE_SVR4=1
1899 SO_SUFFIX=a
1900 cat >>confdefs.h <<\_ACEOF
1901#define __AIX__ 1
1902_ACEOF
1903
1904 cat >>confdefs.h <<\_ACEOF
1905#define __SYSV__ 1
1906_ACEOF
1907
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SVR4__ 1
1910_ACEOF
1911
1912 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1913 ;;
1914
1915 *-*-*UnixWare*)
1916 USE_SYSV=1
1917 USE_SVR4=1
1918 USE_UNIXWARE=1
1919 cat >>confdefs.h <<\_ACEOF
1920#define __UNIXWARE__ 1
1921_ACEOF
1922
1923 ;;
1924
1925 *-*-cygwin* | *-*-mingw32* )
1926 SO_SUFFIX=dll
1927 PROGRAM_EXT=".exe"
1928 RESCOMP=windres
1929 DEFAULT_DEFAULT_wxUSE_MSW=1
1930 ;;
1931
1932 *-pc-msdosdjgpp )
1933 USE_UNIX=0
1934 USE_DOS=1
1935 cat >>confdefs.h <<\_ACEOF
1936#define __DOS__ 1
1937_ACEOF
1938
1939 PROGRAM_EXT=".exe"
1940 DEFAULT_DEFAULT_wxUSE_MGL=1
1941 LIBS="$LIBS -lstdc++"
1942 ;;
1943
1944 *-pc-os2_emx | *-pc-os2-emx )
1945 cat >>confdefs.h <<\_ACEOF
1946#define __EMX__ 1
1947_ACEOF
1948
1949 USE_OS2=1
1950 cat >>confdefs.h <<\_ACEOF
1951#define __OS2__ 1
1952_ACEOF
1953
1954 PROGRAM_EXT=".exe"
1955 DEFAULT_DEFAULT_wxUSE_PM=1
1956 CXX=gcc
1957 LDFLAGS="$LDFLAGS -Zcrtdll"
1958 ac_executable_extensions=".exe"
1959 export ac_executable_extensions
1960 ac_save_IFS="$IFS"
1961 IFS='\\'
1962 ac_TEMP_PATH=
1963 for ac_dir in $PATH; do
1964 IFS=$ac_save_IFS
1965 if test -z "$ac_TEMP_PATH"; then
1966 ac_TEMP_PATH="$ac_dir"
1967 else
1968 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1969 fi
1970 done
1971 export PATH="$ac_TEMP_PATH"
1972 unset ac_TEMP_PATH
1973 ;;
1974
1975 powerpc-*-darwin* )
1976 USE_BSD=1
1977 USE_DARWIN=1
1978 SO_SUFFIX=dylib
1979 cat >>confdefs.h <<\_ACEOF
1980#define __BSD__ 1
1981_ACEOF
1982
1983 cat >>confdefs.h <<\_ACEOF
1984#define __DARWIN__ 1
a848cd7e
SC
1985_ACEOF
1986
1987 cat >>confdefs.h <<\_ACEOF
1988#define TARGET_CARBON 1
1989_ACEOF
1990
1991 DEFAULT_DEFAULT_wxUSE_MAC=1
1992 ;;
1e9e8aba
DE
1993 powerpc-apple-macos* )
1994 USE_UNIX=0
1995 ac_cv_c_bigendian=yes
1996 SO_SUFFIX=shlib
1997 DEFAULT_DEFAULT_wxUSE_MAC=1
1998 ;;
a848cd7e
SC
1999
2000 *-*-beos* )
2001 USE_BEOS=1
2002 cat >>confdefs.h <<\_ACEOF
2003#define __BEOS__ 1
2004_ACEOF
2005
2006 ;;
2007
2008 *)
2009 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2010echo "$as_me: error: unknown system type ${host}." >&2;}
2011 { (exit 1); exit 1; }; }
2012esac
2013
2014
2015
2016
2017 wx_arg_cache_file="configarg.cache"
2018 echo "loading argument cache $wx_arg_cache_file"
2019 rm -f ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}.tmp
2021 touch ${wx_arg_cache_file}
2022
2023
2024DEBUG_CONFIGURE=0
2025if test $DEBUG_CONFIGURE = 1; then
2026 DEFAULT_wxUSE_UNIVERSAL=no
2027 DEFAULT_wxUSE_STL=no
2028
2029 DEFAULT_wxUSE_NANOX=no
2030
2031 DEFAULT_wxUSE_THREADS=yes
2032
2033 DEFAULT_wxUSE_SHARED=yes
2034 DEFAULT_wxUSE_OPTIMISE=no
2035 DEFAULT_wxUSE_PROFILE=no
2036 DEFAULT_wxUSE_NO_DEPS=no
2037 DEFAULT_wxUSE_NO_RTTI=no
2038 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2039 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2040 DEFAULT_wxUSE_PERMISSIVE=no
2041 DEFAULT_wxUSE_DEBUG_FLAG=yes
2042 DEFAULT_wxUSE_DEBUG_INFO=yes
2043 DEFAULT_wxUSE_DEBUG_GDB=yes
2044 DEFAULT_wxUSE_MEM_TRACING=no
2045 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2046 DEFAULT_wxUSE_DMALLOC=no
2047 DEFAULT_wxUSE_APPLE_IEEE=no
2048
2049 DEFAULT_wxUSE_EXCEPTIONS=no
2050 DEFAULT_wxUSE_LOG=yes
2051 DEFAULT_wxUSE_LOGWINDOW=no
2052 DEFAULT_wxUSE_LOGGUI=no
2053 DEFAULT_wxUSE_LOGDIALOG=no
2054
2055 DEFAULT_wxUSE_GUI=yes
2056 DEFAULT_wxUSE_CONTROLS=no
2057
2058 DEFAULT_wxUSE_REGEX=no
2059 DEFAULT_wxUSE_XML=no
2060 DEFAULT_wxUSE_EXPAT=no
2061 DEFAULT_wxUSE_ZLIB=no
2062 DEFAULT_wxUSE_LIBPNG=no
2063 DEFAULT_wxUSE_LIBJPEG=no
2064 DEFAULT_wxUSE_LIBTIFF=no
2065 DEFAULT_wxUSE_LIBXPM=no
2066 DEFAULT_wxUSE_LIBMSPACK=no
2067 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2068 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2069 DEFAULT_wxUSE_ODBC=no
2070 DEFAULT_wxUSE_OPENGL=no
2071
2072 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2073 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2074 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2075 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2076 DEFAULT_wxUSE_STD_IOSTREAM=no
2077 DEFAULT_wxUSE_CMDLINE_PARSER=no
2078 DEFAULT_wxUSE_DATETIME=no
2079 DEFAULT_wxUSE_TIMER=no
2080 DEFAULT_wxUSE_STOPWATCH=no
2081 DEFAULT_wxUSE_FILE=no
2082 DEFAULT_wxUSE_FFILE=no
07158944 2083 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2084 DEFAULT_wxUSE_TEXTBUFFER=no
2085 DEFAULT_wxUSE_TEXTFILE=no
2086 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2087 DEFAULT_wxUSE_MEDIACTRL=no
2088 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2089 DEFAULT_wxUSE_INTL=no
2090 DEFAULT_wxUSE_CONFIG=no
2091 DEFAULT_wxUSE_FONTMAP=no
2092 DEFAULT_wxUSE_STREAMS=no
2093 DEFAULT_wxUSE_SOCKETS=no
2094 DEFAULT_wxUSE_OLE=no
2095 DEFAULT_wxUSE_DATAOBJ=no
2096 DEFAULT_wxUSE_DIALUP_MANAGER=no
2097 DEFAULT_wxUSE_JOYSTICK=no
2098 DEFAULT_wxUSE_DYNLIB_CLASS=no
2099 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2100 DEFAULT_wxUSE_LONGLONG=no
2101 DEFAULT_wxUSE_GEOMETRY=no
2102
2103 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2104 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2105 DEFAULT_wxUSE_POSTSCRIPT=no
2106
2107 DEFAULT_wxUSE_CLIPBOARD=no
2108 DEFAULT_wxUSE_TOOLTIPS=no
2109 DEFAULT_wxUSE_DRAG_AND_DROP=no
2110 DEFAULT_wxUSE_DRAGIMAGE=no
2111 DEFAULT_wxUSE_SPLINES=no
2112
8a7b1113 2113 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2114 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2115 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2116 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2117
2118 DEFAULT_wxUSE_RESOURCES=no
2119 DEFAULT_wxUSE_CONSTRAINTS=no
2120 DEFAULT_wxUSE_IPC=no
2121 DEFAULT_wxUSE_HELP=no
2122 DEFAULT_wxUSE_MS_HTML_HELP=no
2123 DEFAULT_wxUSE_WXHTML_HELP=no
2124 DEFAULT_wxUSE_TREELAYOUT=no
2125 DEFAULT_wxUSE_METAFILE=no
2126 DEFAULT_wxUSE_MIMETYPE=no
2127 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2128 DEFAULT_wxUSE_PROTOCOL=no
2129 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2130 DEFAULT_wxUSE_PROTOCOL_FTP=no
2131 DEFAULT_wxUSE_PROTOCOL_FILE=no
2132 DEFAULT_wxUSE_URL=no
2133
2134 DEFAULT_wxUSE_COMMONDLGS=no
2135 DEFAULT_wxUSE_CHOICEDLG=no
2136 DEFAULT_wxUSE_COLOURDLG=no
2137 DEFAULT_wxUSE_DIRDLG=no
2138 DEFAULT_wxUSE_FILEDLG=no
2139 DEFAULT_wxUSE_FINDREPLDLG=no
2140 DEFAULT_wxUSE_FONTDLG=no
2141 DEFAULT_wxUSE_MSGDLG=no
2142 DEFAULT_wxUSE_NUMBERDLG=no
2143 DEFAULT_wxUSE_TEXTDLG=no
2144 DEFAULT_wxUSE_SPLASH=no
2145 DEFAULT_wxUSE_STARTUP_TIPS=no
2146 DEFAULT_wxUSE_PROGRESSDLG=no
2147 DEFAULT_wxUSE_WIZARDDLG=no
2148
2149 DEFAULT_wxUSE_MENUS=no
2150 DEFAULT_wxUSE_MINIFRAME=no
2151 DEFAULT_wxUSE_HTML=no
9a8f0513 2152 DEFAULT_wxUSE_XRC=no
646b6ec1 2153 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2154 DEFAULT_wxUSE_FILESYSTEM=no
2155 DEFAULT_wxUSE_FS_INET=no
2156 DEFAULT_wxUSE_FS_ZIP=no
2157 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2158 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2159 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2160 DEFAULT_wxUSE_VALIDATORS=no
2161
2162 DEFAULT_wxUSE_ACCEL=no
2163 DEFAULT_wxUSE_BUTTON=no
2164 DEFAULT_wxUSE_BMPBUTTON=no
2165 DEFAULT_wxUSE_CALCTRL=no
2166 DEFAULT_wxUSE_CARET=no
2167 DEFAULT_wxUSE_CHECKBOX=no
2168 DEFAULT_wxUSE_CHECKLST=no
2169 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2170 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2171 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2172 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2173 DEFAULT_wxUSE_DISPLAY=no
2174 DEFAULT_wxUSE_GAUGE=no
2175 DEFAULT_wxUSE_GRID=no
2176 DEFAULT_wxUSE_IMAGLIST=no
2177 DEFAULT_wxUSE_LISTBOOK=no
2178 DEFAULT_wxUSE_LISTBOX=no
2179 DEFAULT_wxUSE_LISTCTRL=no
2180 DEFAULT_wxUSE_NOTEBOOK=no
2181 DEFAULT_wxUSE_RADIOBOX=no
2182 DEFAULT_wxUSE_RADIOBTN=no
2183 DEFAULT_wxUSE_SASH=no
2184 DEFAULT_wxUSE_SCROLLBAR=no
2185 DEFAULT_wxUSE_SLIDER=no
2186 DEFAULT_wxUSE_SPINBTN=no
2187 DEFAULT_wxUSE_SPINCTRL=no
2188 DEFAULT_wxUSE_SPLITTER=no
2189 DEFAULT_wxUSE_STATBMP=no
2190 DEFAULT_wxUSE_STATBOX=no
2191 DEFAULT_wxUSE_STATLINE=no
2192 DEFAULT_wxUSE_STATTEXT=no
2193 DEFAULT_wxUSE_STATUSBAR=yes
2194 DEFAULT_wxUSE_TABDIALOG=no
2195 DEFAULT_wxUSE_TEXTCTRL=no
2196 DEFAULT_wxUSE_TOGGLEBTN=no
2197 DEFAULT_wxUSE_TOOLBAR=no
2198 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2199 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2200 DEFAULT_wxUSE_TREECTRL=no
2201 DEFAULT_wxUSE_POPUPWIN=no
2202 DEFAULT_wxUSE_TIPWINDOW=no
2203
2204 DEFAULT_wxUSE_UNICODE=no
2205 DEFAULT_wxUSE_UNICODE_MSLU=no
2206 DEFAULT_wxUSE_WCSRTOMBS=no
2207
2208 DEFAULT_wxUSE_PALETTE=no
2209 DEFAULT_wxUSE_IMAGE=no
2210 DEFAULT_wxUSE_GIF=no
2211 DEFAULT_wxUSE_PCX=no
2212 DEFAULT_wxUSE_PNM=no
2213 DEFAULT_wxUSE_IFF=no
2214 DEFAULT_wxUSE_XPM=no
2215 DEFAULT_wxUSE_ICO_CUR=no
2216 DEFAULT_wxUSE_ACCESSIBILITY=no
2217
2218 DEFAULT_wxUSE_MONOLITHIC=no
2219 DEFAULT_wxUSE_PLUGINS=no
2220 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2221else
2222 DEFAULT_wxUSE_UNIVERSAL=no
2223 DEFAULT_wxUSE_STL=no
2224
2225 DEFAULT_wxUSE_NANOX=no
2226
2227 DEFAULT_wxUSE_THREADS=yes
2228
2229 DEFAULT_wxUSE_SHARED=yes
2230 DEFAULT_wxUSE_OPTIMISE=yes
2231 DEFAULT_wxUSE_PROFILE=no
2232 DEFAULT_wxUSE_NO_DEPS=no
2233 DEFAULT_wxUSE_NO_RTTI=no
2234 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2235 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2236 DEFAULT_wxUSE_PERMISSIVE=no
2237 DEFAULT_wxUSE_DEBUG_FLAG=no
2238 DEFAULT_wxUSE_DEBUG_INFO=no
2239 DEFAULT_wxUSE_DEBUG_GDB=no
2240 DEFAULT_wxUSE_MEM_TRACING=no
2241 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2242 DEFAULT_wxUSE_DMALLOC=no
2243 DEFAULT_wxUSE_APPLE_IEEE=yes
2244
2245 DEFAULT_wxUSE_EXCEPTIONS=yes
2246 DEFAULT_wxUSE_LOG=yes
2247 DEFAULT_wxUSE_LOGWINDOW=yes
2248 DEFAULT_wxUSE_LOGGUI=yes
2249 DEFAULT_wxUSE_LOGDIALOG=yes
2250
2251 DEFAULT_wxUSE_GUI=yes
2252
2253 DEFAULT_wxUSE_REGEX=yes
2254 DEFAULT_wxUSE_XML=yes
2255 DEFAULT_wxUSE_EXPAT=yes
2256 DEFAULT_wxUSE_ZLIB=yes
2257 DEFAULT_wxUSE_LIBPNG=yes
2258 DEFAULT_wxUSE_LIBJPEG=yes
2259 DEFAULT_wxUSE_LIBTIFF=yes
2260 DEFAULT_wxUSE_LIBXPM=yes
2261 DEFAULT_wxUSE_LIBMSPACK=yes
2262 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2263 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2264 DEFAULT_wxUSE_ODBC=no
2265 DEFAULT_wxUSE_OPENGL=no
2266
2267 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2268 DEFAULT_wxUSE_STACKWALKER=yes
1e1ef900 2269 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2270 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2271 DEFAULT_wxUSE_STD_IOSTREAM=no
2272 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2273 DEFAULT_wxUSE_DATETIME=yes
2274 DEFAULT_wxUSE_TIMER=yes
2275 DEFAULT_wxUSE_STOPWATCH=yes
2276 DEFAULT_wxUSE_FILE=yes
2277 DEFAULT_wxUSE_FFILE=yes
07158944 2278 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2279 DEFAULT_wxUSE_TEXTBUFFER=yes
2280 DEFAULT_wxUSE_TEXTFILE=yes
2281 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2282 DEFAULT_wxUSE_MEDIACTRL=no
2283 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2284 DEFAULT_wxUSE_INTL=yes
2285 DEFAULT_wxUSE_CONFIG=yes
2286 DEFAULT_wxUSE_FONTMAP=yes
2287 DEFAULT_wxUSE_STREAMS=yes
2288 DEFAULT_wxUSE_SOCKETS=yes
2289 DEFAULT_wxUSE_OLE=yes
2290 DEFAULT_wxUSE_DATAOBJ=yes
2291 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2292 DEFAULT_wxUSE_JOYSTICK=yes
2293 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2294 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2295 DEFAULT_wxUSE_LONGLONG=yes
2296 DEFAULT_wxUSE_GEOMETRY=yes
2297
2298 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2299 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2300 DEFAULT_wxUSE_POSTSCRIPT=yes
2301
2302 DEFAULT_wxUSE_CLIPBOARD=yes
2303 DEFAULT_wxUSE_TOOLTIPS=yes
2304 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2305 DEFAULT_wxUSE_DRAGIMAGE=yes
2306 DEFAULT_wxUSE_SPLINES=yes
2307
8a7b1113 2308 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2309 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2310 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2311 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2312
2313 DEFAULT_wxUSE_RESOURCES=no
2314 DEFAULT_wxUSE_CONSTRAINTS=yes
2315 DEFAULT_wxUSE_IPC=yes
2316 DEFAULT_wxUSE_HELP=yes
2317 DEFAULT_wxUSE_MS_HTML_HELP=yes
2318 DEFAULT_wxUSE_WXHTML_HELP=yes
2319 DEFAULT_wxUSE_TREELAYOUT=yes
2320 DEFAULT_wxUSE_METAFILE=yes
2321 DEFAULT_wxUSE_MIMETYPE=yes
2322 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2323 DEFAULT_wxUSE_PROTOCOL=yes
2324 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2325 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2326 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2327 DEFAULT_wxUSE_URL=yes
2328
2329 DEFAULT_wxUSE_COMMONDLGS=yes
2330 DEFAULT_wxUSE_CHOICEDLG=yes
2331 DEFAULT_wxUSE_COLOURDLG=yes
2332 DEFAULT_wxUSE_DIRDLG=yes
2333 DEFAULT_wxUSE_FILEDLG=yes
2334 DEFAULT_wxUSE_FINDREPLDLG=yes
2335 DEFAULT_wxUSE_FONTDLG=yes
2336 DEFAULT_wxUSE_MSGDLG=yes
2337 DEFAULT_wxUSE_NUMBERDLG=yes
2338 DEFAULT_wxUSE_TEXTDLG=yes
2339 DEFAULT_wxUSE_SPLASH=yes
2340 DEFAULT_wxUSE_STARTUP_TIPS=yes
2341 DEFAULT_wxUSE_PROGRESSDLG=yes
2342 DEFAULT_wxUSE_WIZARDDLG=yes
2343
2344 DEFAULT_wxUSE_MENUS=yes
2345 DEFAULT_wxUSE_MINIFRAME=yes
2346 DEFAULT_wxUSE_HTML=yes
9a8f0513 2347 DEFAULT_wxUSE_XRC=yes
646b6ec1 2348 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2349 DEFAULT_wxUSE_FILESYSTEM=yes
2350 DEFAULT_wxUSE_FS_INET=yes
2351 DEFAULT_wxUSE_FS_ZIP=yes
2352 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2353 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2354 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2355 DEFAULT_wxUSE_VALIDATORS=yes
2356
2357 DEFAULT_wxUSE_ACCEL=yes
2358 DEFAULT_wxUSE_BUTTON=yes
2359 DEFAULT_wxUSE_BMPBUTTON=yes
2360 DEFAULT_wxUSE_CALCTRL=yes
2361 DEFAULT_wxUSE_CARET=yes
2362 DEFAULT_wxUSE_CHECKBOX=yes
2363 DEFAULT_wxUSE_CHECKLST=yes
2364 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2365 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2366 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2367 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2368 DEFAULT_wxUSE_DISPLAY=yes
2369 DEFAULT_wxUSE_GAUGE=yes
2370 DEFAULT_wxUSE_GRID=yes
2371 DEFAULT_wxUSE_IMAGLIST=yes
2372 DEFAULT_wxUSE_LISTBOOK=yes
2373 DEFAULT_wxUSE_LISTBOX=yes
2374 DEFAULT_wxUSE_LISTCTRL=yes
2375 DEFAULT_wxUSE_NOTEBOOK=yes
2376 DEFAULT_wxUSE_RADIOBOX=yes
2377 DEFAULT_wxUSE_RADIOBTN=yes
2378 DEFAULT_wxUSE_SASH=yes
2379 DEFAULT_wxUSE_SCROLLBAR=yes
2380 DEFAULT_wxUSE_SLIDER=yes
2381 DEFAULT_wxUSE_SPINBTN=yes
2382 DEFAULT_wxUSE_SPINCTRL=yes
2383 DEFAULT_wxUSE_SPLITTER=yes
2384 DEFAULT_wxUSE_STATBMP=yes
2385 DEFAULT_wxUSE_STATBOX=yes
2386 DEFAULT_wxUSE_STATLINE=yes
2387 DEFAULT_wxUSE_STATTEXT=yes
2388 DEFAULT_wxUSE_STATUSBAR=yes
2389 DEFAULT_wxUSE_TABDIALOG=no
2390 DEFAULT_wxUSE_TEXTCTRL=yes
2391 DEFAULT_wxUSE_TOGGLEBTN=yes
2392 DEFAULT_wxUSE_TOOLBAR=yes
2393 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2394 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2395 DEFAULT_wxUSE_TREECTRL=yes
2396 DEFAULT_wxUSE_POPUPWIN=yes
2397 DEFAULT_wxUSE_TIPWINDOW=yes
2398
2399 DEFAULT_wxUSE_UNICODE=no
2400 DEFAULT_wxUSE_UNICODE_MSLU=yes
2401 DEFAULT_wxUSE_WCSRTOMBS=no
2402
2403 DEFAULT_wxUSE_PALETTE=yes
2404 DEFAULT_wxUSE_IMAGE=yes
2405 DEFAULT_wxUSE_GIF=yes
2406 DEFAULT_wxUSE_PCX=yes
2407 DEFAULT_wxUSE_IFF=no
2408 DEFAULT_wxUSE_PNM=yes
2409 DEFAULT_wxUSE_XPM=yes
2410 DEFAULT_wxUSE_ICO_CUR=yes
2411 DEFAULT_wxUSE_ACCESSIBILITY=no
2412
2413 DEFAULT_wxUSE_MONOLITHIC=no
2414 DEFAULT_wxUSE_PLUGINS=no
2415 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2416
2417 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2418fi
2419
2420
2421
2422for toolkit in `echo $ALL_TOOLKITS`; do
2423 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2424 if test "x$LINE" != "x" ; then
2425 has_toolkit_in_cache=1
2426 eval "DEFAULT_$LINE"
2427 eval "CACHE_$toolkit=1"
2428 fi
2429done
2430
2431
2432
2433 enablestring=
2434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2435echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2436 no_cache=0
2437 # Check whether --enable-gui or --disable-gui was given.
2438if test "${enable_gui+set}" = set; then
2439 enableval="$enable_gui"
2440
2441 if test "$enableval" = yes; then
2442 ac_cv_use_gui='wxUSE_GUI=yes'
2443 else
2444 ac_cv_use_gui='wxUSE_GUI=no'
2445 fi
2446
2447else
2448
2449 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2450 if test "x$LINE" != x ; then
2451 eval "DEFAULT_$LINE"
2452 else
2453 no_cache=1
2454 fi
2455
2456 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2457
2458fi;
2459
2460 eval "$ac_cv_use_gui"
2461 if test "$no_cache" != 1; then
2462 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2463 fi
2464
2465 if test "$wxUSE_GUI" = yes; then
2466 echo "$as_me:$LINENO: result: yes" >&5
2467echo "${ECHO_T}yes" >&6
2468 else
2469 echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6
2471 fi
2472
2473
2474 enablestring=
2475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2476echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2477 no_cache=0
2478 # Check whether --enable-monolithic or --disable-monolithic was given.
2479if test "${enable_monolithic+set}" = set; then
2480 enableval="$enable_monolithic"
2481
2482 if test "$enableval" = yes; then
2483 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2484 else
2485 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2486 fi
2487
2488else
2489
2490 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2491 if test "x$LINE" != x ; then
2492 eval "DEFAULT_$LINE"
2493 else
2494 no_cache=1
2495 fi
2496
2497 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2498
2499fi;
2500
2501 eval "$ac_cv_use_monolithic"
2502 if test "$no_cache" != 1; then
2503 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2504 fi
2505
2506 if test "$wxUSE_MONOLITHIC" = yes; then
2507 echo "$as_me:$LINENO: result: yes" >&5
2508echo "${ECHO_T}yes" >&6
2509 else
2510 echo "$as_me:$LINENO: result: no" >&5
2511echo "${ECHO_T}no" >&6
2512 fi
2513
2514
2515 enablestring=
2516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2517echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2518 no_cache=0
2519 # Check whether --enable-plugins or --disable-plugins was given.
2520if test "${enable_plugins+set}" = set; then
2521 enableval="$enable_plugins"
2522
2523 if test "$enableval" = yes; then
2524 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2525 else
2526 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2527 fi
2528
2529else
2530
2531 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2532 if test "x$LINE" != x ; then
2533 eval "DEFAULT_$LINE"
2534 else
2535 no_cache=1
2536 fi
2537
2538 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2539
2540fi;
2541
2542 eval "$ac_cv_use_plugins"
2543 if test "$no_cache" != 1; then
2544 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2545 fi
2546
2547 if test "$wxUSE_PLUGINS" = yes; then
2548 echo "$as_me:$LINENO: result: yes" >&5
2549echo "${ECHO_T}yes" >&6
2550 else
2551 echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6
2553 fi
2554
2555
2556if test "$wxUSE_GUI" = "yes"; then
2557
2558
2559 enablestring=
2560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2561echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2562 no_cache=0
2563 # Check whether --enable-universal or --disable-universal was given.
2564if test "${enable_universal+set}" = set; then
2565 enableval="$enable_universal"
2566
2567 if test "$enableval" = yes; then
2568 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2569 else
2570 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2571 fi
2572
2573else
2574
2575 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2576 if test "x$LINE" != x ; then
2577 eval "DEFAULT_$LINE"
2578 else
2579 no_cache=1
2580 fi
2581
2582 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2583
2584fi;
2585
2586 eval "$ac_cv_use_universal"
2587 if test "$no_cache" != 1; then
2588 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2589 fi
2590
2591 if test "$wxUSE_UNIVERSAL" = yes; then
2592 echo "$as_me:$LINENO: result: yes" >&5
2593echo "${ECHO_T}yes" >&6
2594 else
2595 echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6
2597 fi
2598
2599
2600# Check whether --with-gtk or --without-gtk was given.
2601if test "${with_gtk+set}" = set; then
2602 withval="$with_gtk"
2603 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-motif or --without-motif was given.
2607if test "${with_motif+set}" = set; then
2608 withval="$with_motif"
2609 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2610fi;
2611
2612# Check whether --with-mac or --without-mac was given.
2613if test "${with_mac+set}" = set; then
2614 withval="$with_mac"
c228d3a4 2615 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2616fi;
2617
2618# Check whether --with-cocoa or --without-cocoa was given.
2619if test "${with_cocoa+set}" = set; then
2620 withval="$with_cocoa"
c228d3a4 2621 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2622fi;
2623
2624# Check whether --with-wine or --without-wine was given.
2625if test "${with_wine+set}" = set; then
2626 withval="$with_wine"
2627 wxUSE_WINE="$withval" CACHE_WINE=1
2628fi;
2629
2630# Check whether --with-msw or --without-msw was given.
2631if test "${with_msw+set}" = set; then
2632 withval="$with_msw"
2633 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2634fi;
2635
2636# Check whether --with-pm or --without-pm was given.
2637if test "${with_pm+set}" = set; then
2638 withval="$with_pm"
2639 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2640fi;
2641
2642# Check whether --with-mgl or --without-mgl was given.
2643if test "${with_mgl+set}" = set; then
2644 withval="$with_mgl"
2645 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-microwin or --without-microwin was given.
2649if test "${with_microwin+set}" = set; then
2650 withval="$with_microwin"
2651 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-x11 or --without-x11 was given.
2655if test "${with_x11+set}" = set; then
2656 withval="$with_x11"
2657 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660 enablestring=
2661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2662echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2663 no_cache=0
2664 # Check whether --enable-nanox or --disable-nanox was given.
2665if test "${enable_nanox+set}" = set; then
2666 enableval="$enable_nanox"
2667
2668 if test "$enableval" = yes; then
2669 ac_cv_use_nanox='wxUSE_NANOX=yes'
2670 else
2671 ac_cv_use_nanox='wxUSE_NANOX=no'
2672 fi
2673
2674else
2675
2676 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2677 if test "x$LINE" != x ; then
2678 eval "DEFAULT_$LINE"
2679 else
2680 no_cache=1
2681 fi
2682
2683 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2684
2685fi;
2686
2687 eval "$ac_cv_use_nanox"
2688 if test "$no_cache" != 1; then
2689 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2690 fi
2691
2692 if test "$wxUSE_NANOX" = yes; then
2693 echo "$as_me:$LINENO: result: yes" >&5
2694echo "${ECHO_T}yes" >&6
2695 else
2696 echo "$as_me:$LINENO: result: no" >&5
2697echo "${ECHO_T}no" >&6
2698 fi
2699
2700
2701
2702 enablestring=
2703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2704echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2705 no_cache=0
2706 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2707if test "${enable_gtk2+set}" = set; then
2708 enableval="$enable_gtk2"
2709
2710 if test "$enableval" = yes; then
2711 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2712 else
2713 ac_cv_use_gtk2='wxUSE_GTK2=no'
2714 fi
2715
2716else
2717
2718 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2719 if test "x$LINE" != x ; then
2720 eval "DEFAULT_$LINE"
2721 else
2722 no_cache=1
2723 fi
2724
2725 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2726
2727fi;
2728
2729 eval "$ac_cv_use_gtk2"
2730 if test "$no_cache" != 1; then
2731 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2732 fi
2733
2734 if test "$wxUSE_GTK2" = yes; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736echo "${ECHO_T}yes" >&6
2737 else
2738 echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6
2740 fi
2741
2742
2743 enablestring=
2744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2745echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2746 no_cache=0
2747 # Check whether --enable-gpe or --disable-gpe was given.
2748if test "${enable_gpe+set}" = set; then
2749 enableval="$enable_gpe"
2750
2751 if test "$enableval" = yes; then
2752 ac_cv_use_gpe='wxUSE_GPE=yes'
2753 else
2754 ac_cv_use_gpe='wxUSE_GPE=no'
2755 fi
2756
2757else
2758
2759 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2760 if test "x$LINE" != x ; then
2761 eval "DEFAULT_$LINE"
2762 else
2763 no_cache=1
2764 fi
2765
2766 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2767
2768fi;
2769
2770 eval "$ac_cv_use_gpe"
2771 if test "$no_cache" != 1; then
2772 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2773 fi
2774
2775 if test "$wxUSE_GPE" = yes; then
2776 echo "$as_me:$LINENO: result: yes" >&5
2777echo "${ECHO_T}yes" >&6
2778 else
2779 echo "$as_me:$LINENO: result: no" >&5
2780echo "${ECHO_T}no" >&6
2781 fi
2782
2783
2784
2785 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2786echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2787 no_cache=0
2788
2789# Check whether --with-libpng or --without-libpng was given.
2790if test "${with_libpng+set}" = set; then
2791 withval="$with_libpng"
2792
2793 if test "$withval" = yes; then
2794 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2795 elif test "$withval" = no; then
2796 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2797 elif test "$withval" = sys; then
2798 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2799 elif test "$withval" = builtin; then
2800 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2801 else
2802 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2803echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2804 { (exit 1); exit 1; }; }
2805 fi
2806
2807else
2808
2809 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2810 if test "x$LINE" != x ; then
2811 eval "DEFAULT_$LINE"
2812 else
2813 no_cache=1
2814 fi
2815
2816 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2817
2818fi;
2819
2820 eval "$ac_cv_use_libpng"
2821 if test "$no_cache" != 1; then
2822 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2823 fi
2824
2825 if test "$wxUSE_LIBPNG" = yes; then
2826 echo "$as_me:$LINENO: result: yes" >&5
2827echo "${ECHO_T}yes" >&6
2828 elif test "$wxUSE_LIBPNG" = no; then
2829 echo "$as_me:$LINENO: result: no" >&5
2830echo "${ECHO_T}no" >&6
2831 elif test "$wxUSE_LIBPNG" = sys; then
2832 echo "$as_me:$LINENO: result: system version" >&5
2833echo "${ECHO_T}system version" >&6
2834 elif test "$wxUSE_LIBPNG" = builtin; then
2835 echo "$as_me:$LINENO: result: builtin version" >&5
2836echo "${ECHO_T}builtin version" >&6
2837 else
2838 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2839echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2840 { (exit 1); exit 1; }; }
2841 fi
2842
2843
2844 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2845echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2846 no_cache=0
2847
2848# Check whether --with-libjpeg or --without-libjpeg was given.
2849if test "${with_libjpeg+set}" = set; then
2850 withval="$with_libjpeg"
2851
2852 if test "$withval" = yes; then
2853 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2854 elif test "$withval" = no; then
2855 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2856 elif test "$withval" = sys; then
2857 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2858 elif test "$withval" = builtin; then
2859 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2860 else
2861 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2862echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2863 { (exit 1); exit 1; }; }
2864 fi
2865
2866else
2867
2868 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2876
2877fi;
2878
2879 eval "$ac_cv_use_libjpeg"
2880 if test "$no_cache" != 1; then
2881 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2882 fi
2883
2884 if test "$wxUSE_LIBJPEG" = yes; then
2885 echo "$as_me:$LINENO: result: yes" >&5
2886echo "${ECHO_T}yes" >&6
2887 elif test "$wxUSE_LIBJPEG" = no; then
2888 echo "$as_me:$LINENO: result: no" >&5
2889echo "${ECHO_T}no" >&6
2890 elif test "$wxUSE_LIBJPEG" = sys; then
2891 echo "$as_me:$LINENO: result: system version" >&5
2892echo "${ECHO_T}system version" >&6
2893 elif test "$wxUSE_LIBJPEG" = builtin; then
2894 echo "$as_me:$LINENO: result: builtin version" >&5
2895echo "${ECHO_T}builtin version" >&6
2896 else
2897 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2898echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2899 { (exit 1); exit 1; }; }
2900 fi
2901
2902
2903 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2904echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2905 no_cache=0
2906
2907# Check whether --with-libtiff or --without-libtiff was given.
2908if test "${with_libtiff+set}" = set; then
2909 withval="$with_libtiff"
2910
2911 if test "$withval" = yes; then
2912 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2913 elif test "$withval" = no; then
2914 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2915 elif test "$withval" = sys; then
2916 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2917 elif test "$withval" = builtin; then
2918 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2919 else
2920 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2921echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2922 { (exit 1); exit 1; }; }
2923 fi
2924
2925else
2926
2927 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2928 if test "x$LINE" != x ; then
2929 eval "DEFAULT_$LINE"
2930 else
2931 no_cache=1
2932 fi
2933
2934 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2935
2936fi;
2937
2938 eval "$ac_cv_use_libtiff"
2939 if test "$no_cache" != 1; then
2940 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2941 fi
2942
2943 if test "$wxUSE_LIBTIFF" = yes; then
2944 echo "$as_me:$LINENO: result: yes" >&5
2945echo "${ECHO_T}yes" >&6
2946 elif test "$wxUSE_LIBTIFF" = no; then
2947 echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6
2949 elif test "$wxUSE_LIBTIFF" = sys; then
2950 echo "$as_me:$LINENO: result: system version" >&5
2951echo "${ECHO_T}system version" >&6
2952 elif test "$wxUSE_LIBTIFF" = builtin; then
2953 echo "$as_me:$LINENO: result: builtin version" >&5
2954echo "${ECHO_T}builtin version" >&6
2955 else
2956 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2957echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2958 { (exit 1); exit 1; }; }
2959 fi
2960
2961
2962 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2963echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2964 no_cache=0
2965
2966# Check whether --with-libxpm or --without-libxpm was given.
2967if test "${with_libxpm+set}" = set; then
2968 withval="$with_libxpm"
2969
2970 if test "$withval" = yes; then
2971 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2972 elif test "$withval" = no; then
2973 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2974 elif test "$withval" = sys; then
2975 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2976 elif test "$withval" = builtin; then
2977 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2978 else
2979 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2980echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2981 { (exit 1); exit 1; }; }
2982 fi
2983
2984else
2985
2986 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2994
2995fi;
2996
2997 eval "$ac_cv_use_libxpm"
2998 if test "$no_cache" != 1; then
2999 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3000 fi
3001
3002 if test "$wxUSE_LIBXPM" = yes; then
3003 echo "$as_me:$LINENO: result: yes" >&5
3004echo "${ECHO_T}yes" >&6
3005 elif test "$wxUSE_LIBXPM" = no; then
3006 echo "$as_me:$LINENO: result: no" >&5
3007echo "${ECHO_T}no" >&6
3008 elif test "$wxUSE_LIBXPM" = sys; then
3009 echo "$as_me:$LINENO: result: system version" >&5
3010echo "${ECHO_T}system version" >&6
3011 elif test "$wxUSE_LIBXPM" = builtin; then
3012 echo "$as_me:$LINENO: result: builtin version" >&5
3013echo "${ECHO_T}builtin version" >&6
3014 else
3015 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3016echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3017 { (exit 1); exit 1; }; }
3018 fi
3019
3020
3021 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3022echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3023 no_cache=0
3024
3025# Check whether --with-libmspack or --without-libmspack was given.
3026if test "${with_libmspack+set}" = set; then
3027 withval="$with_libmspack"
3028
3029 if test "$withval" = yes; then
3030 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3031 else
3032 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3033 fi
3034
3035else
3036
3037 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3038 if test "x$LINE" != x ; then
3039 eval "DEFAULT_$LINE"
3040 else
3041 no_cache=1
3042 fi
3043
3044 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3045
3046fi;
3047
3048 eval "$ac_cv_use_libmspack"
3049 if test "$no_cache" != 1; then
3050 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3051 fi
3052
3053 if test "$wxUSE_LIBMSPACK" = yes; then
3054 echo "$as_me:$LINENO: result: yes" >&5
3055echo "${ECHO_T}yes" >&6
3056 else
3057 echo "$as_me:$LINENO: result: no" >&5
3058echo "${ECHO_T}no" >&6
3059 fi
3060
3061
3062 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3063echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3064 no_cache=0
3065
3066# Check whether --with-sdl or --without-sdl was given.
3067if test "${with_sdl+set}" = set; then
3068 withval="$with_sdl"
3069
3070 if test "$withval" = yes; then
3071 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3072 else
3073 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3074 fi
3075
3076else
3077
3078 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3079 if test "x$LINE" != x ; then
3080 eval "DEFAULT_$LINE"
3081 else
3082 no_cache=1
3083 fi
3084
3085 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3086
3087fi;
3088
3089 eval "$ac_cv_use_sdl"
3090 if test "$no_cache" != 1; then
3091 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3092 fi
3093
3094 if test "$wxUSE_LIBSDL" = yes; then
3095 echo "$as_me:$LINENO: result: yes" >&5
3096echo "${ECHO_T}yes" >&6
3097 else
3098 echo "$as_me:$LINENO: result: no" >&5
3099echo "${ECHO_T}no" >&6
3100 fi
3101
3102
d1c38808
VZ
3103 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3104echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3105 no_cache=0
3106
3107# Check whether --with-gnomeprint or --without-gnomeprint was given.
3108if test "${with_gnomeprint+set}" = set; then
3109 withval="$with_gnomeprint"
3110
3111 if test "$withval" = yes; then
3112 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3113 else
3114 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3115 fi
3116
3117else
3118
3119 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3120 if test "x$LINE" != x ; then
3121 eval "DEFAULT_$LINE"
3122 else
3123 no_cache=1
3124 fi
3125
3126 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3127
3128fi;
3129
3130 eval "$ac_cv_use_gnomeprint"
3131 if test "$no_cache" != 1; then
3132 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3133 fi
3134
3135 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3136 echo "$as_me:$LINENO: result: yes" >&5
3137echo "${ECHO_T}yes" >&6
3138 else
3139 echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6
3141 fi
3142
3143
a848cd7e
SC
3144 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3145echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3146 no_cache=0
3147
3148# Check whether --with-opengl or --without-opengl was given.
3149if test "${with_opengl+set}" = set; then
3150 withval="$with_opengl"
3151
3152 if test "$withval" = yes; then
3153 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3154 else
3155 ac_cv_use_opengl='wxUSE_OPENGL=no'
3156 fi
3157
3158else
3159
3160 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3161 if test "x$LINE" != x ; then
3162 eval "DEFAULT_$LINE"
3163 else
3164 no_cache=1
3165 fi
3166
3167 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3168
3169fi;
3170
3171 eval "$ac_cv_use_opengl"
3172 if test "$no_cache" != 1; then
3173 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3174 fi
3175
3176 if test "$wxUSE_OPENGL" = yes; then
3177 echo "$as_me:$LINENO: result: yes" >&5
3178echo "${ECHO_T}yes" >&6
3179 else
3180 echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
3182 fi
3183
3184
3185fi
3186
3187
3188 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3189echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3190 no_cache=0
3191
3192# Check whether --with-dmalloc or --without-dmalloc was given.
3193if test "${with_dmalloc+set}" = set; then
3194 withval="$with_dmalloc"
3195
3196 if test "$withval" = yes; then
3197 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3198 else
3199 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3200 fi
3201
3202else
3203
3204 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3205 if test "x$LINE" != x ; then
3206 eval "DEFAULT_$LINE"
3207 else
3208 no_cache=1
3209 fi
3210
3211 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3212
3213fi;
3214
3215 eval "$ac_cv_use_dmalloc"
3216 if test "$no_cache" != 1; then
3217 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3218 fi
3219
3220 if test "$wxUSE_DMALLOC" = yes; then
3221 echo "$as_me:$LINENO: result: yes" >&5
3222echo "${ECHO_T}yes" >&6
3223 else
3224 echo "$as_me:$LINENO: result: no" >&5
3225echo "${ECHO_T}no" >&6
3226 fi
3227
3228
3229 echo "$as_me:$LINENO: checking for --with-regex" >&5
3230echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3231 no_cache=0
3232
3233# Check whether --with-regex or --without-regex was given.
3234if test "${with_regex+set}" = set; then
3235 withval="$with_regex"
3236
3237 if test "$withval" = yes; then
3238 ac_cv_use_regex='wxUSE_REGEX=yes'
3239 elif test "$withval" = no; then
3240 ac_cv_use_regex='wxUSE_REGEX=no'
3241 elif test "$withval" = sys; then
3242 ac_cv_use_regex='wxUSE_REGEX=sys'
3243 elif test "$withval" = builtin; then
3244 ac_cv_use_regex='wxUSE_REGEX=builtin'
3245 else
3246 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3247echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3248 { (exit 1); exit 1; }; }
3249 fi
3250
3251else
3252
3253 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3254 if test "x$LINE" != x ; then
3255 eval "DEFAULT_$LINE"
3256 else
3257 no_cache=1
3258 fi
3259
3260 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3261
3262fi;
3263
3264 eval "$ac_cv_use_regex"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_REGEX" = yes; then
3270 echo "$as_me:$LINENO: result: yes" >&5
3271echo "${ECHO_T}yes" >&6
3272 elif test "$wxUSE_REGEX" = no; then
3273 echo "$as_me:$LINENO: result: no" >&5
3274echo "${ECHO_T}no" >&6
3275 elif test "$wxUSE_REGEX" = sys; then
3276 echo "$as_me:$LINENO: result: system version" >&5
3277echo "${ECHO_T}system version" >&6
3278 elif test "$wxUSE_REGEX" = builtin; then
3279 echo "$as_me:$LINENO: result: builtin version" >&5
3280echo "${ECHO_T}builtin version" >&6
3281 else
3282 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3283echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287
3288 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3289echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3290 no_cache=0
3291
3292# Check whether --with-zlib or --without-zlib was given.
3293if test "${with_zlib+set}" = set; then
3294 withval="$with_zlib"
3295
3296 if test "$withval" = yes; then
3297 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3298 elif test "$withval" = no; then
3299 ac_cv_use_zlib='wxUSE_ZLIB=no'
3300 elif test "$withval" = sys; then
3301 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3302 elif test "$withval" = builtin; then
3303 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3304 else
3305 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3306echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3307 { (exit 1); exit 1; }; }
3308 fi
3309
3310else
3311
3312 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3313 if test "x$LINE" != x ; then
3314 eval "DEFAULT_$LINE"
3315 else
3316 no_cache=1
3317 fi
3318
3319 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3320
3321fi;
3322
3323 eval "$ac_cv_use_zlib"
3324 if test "$no_cache" != 1; then
3325 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3326 fi
3327
3328 if test "$wxUSE_ZLIB" = yes; then
3329 echo "$as_me:$LINENO: result: yes" >&5
3330echo "${ECHO_T}yes" >&6
3331 elif test "$wxUSE_ZLIB" = no; then
3332 echo "$as_me:$LINENO: result: no" >&5
3333echo "${ECHO_T}no" >&6
3334 elif test "$wxUSE_ZLIB" = sys; then
3335 echo "$as_me:$LINENO: result: system version" >&5
3336echo "${ECHO_T}system version" >&6
3337 elif test "$wxUSE_ZLIB" = builtin; then
3338 echo "$as_me:$LINENO: result: builtin version" >&5
3339echo "${ECHO_T}builtin version" >&6
3340 else
3341 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3342echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3343 { (exit 1); exit 1; }; }
3344 fi
3345
3346
3347 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3348echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3349 no_cache=0
3350
3351# Check whether --with-odbc or --without-odbc was given.
3352if test "${with_odbc+set}" = set; then
3353 withval="$with_odbc"
3354
3355 if test "$withval" = yes; then
3356 ac_cv_use_odbc='wxUSE_ODBC=yes'
3357 elif test "$withval" = no; then
3358 ac_cv_use_odbc='wxUSE_ODBC=no'
3359 elif test "$withval" = sys; then
3360 ac_cv_use_odbc='wxUSE_ODBC=sys'
3361 elif test "$withval" = builtin; then
3362 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3363 else
3364 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3365echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3366 { (exit 1); exit 1; }; }
3367 fi
3368
3369else
3370
3371 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3379
3380fi;
3381
3382 eval "$ac_cv_use_odbc"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_ODBC" = yes; then
3388 echo "$as_me:$LINENO: result: yes" >&5
3389echo "${ECHO_T}yes" >&6
3390 elif test "$wxUSE_ODBC" = no; then
3391 echo "$as_me:$LINENO: result: no" >&5
3392echo "${ECHO_T}no" >&6
3393 elif test "$wxUSE_ODBC" = sys; then
3394 echo "$as_me:$LINENO: result: system version" >&5
3395echo "${ECHO_T}system version" >&6
3396 elif test "$wxUSE_ODBC" = builtin; then
3397 echo "$as_me:$LINENO: result: builtin version" >&5
3398echo "${ECHO_T}builtin version" >&6
3399 else
3400 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3401echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3402 { (exit 1); exit 1; }; }
3403 fi
3404
3405
3406 echo "$as_me:$LINENO: checking for --with-expat" >&5
3407echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3408 no_cache=0
3409
3410# Check whether --with-expat or --without-expat was given.
3411if test "${with_expat+set}" = set; then
3412 withval="$with_expat"
3413
3414 if test "$withval" = yes; then
3415 ac_cv_use_expat='wxUSE_EXPAT=yes'
3416 elif test "$withval" = no; then
3417 ac_cv_use_expat='wxUSE_EXPAT=no'
3418 elif test "$withval" = sys; then
3419 ac_cv_use_expat='wxUSE_EXPAT=sys'
3420 elif test "$withval" = builtin; then
3421 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3422 else
3423 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3424echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3425 { (exit 1); exit 1; }; }
3426 fi
3427
3428else
3429
3430 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3431 if test "x$LINE" != x ; then
3432 eval "DEFAULT_$LINE"
3433 else
3434 no_cache=1
3435 fi
3436
3437 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3438
3439fi;
3440
3441 eval "$ac_cv_use_expat"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_EXPAT" = yes; then
3447 echo "$as_me:$LINENO: result: yes" >&5
3448echo "${ECHO_T}yes" >&6
3449 elif test "$wxUSE_EXPAT" = no; then
3450 echo "$as_me:$LINENO: result: no" >&5
3451echo "${ECHO_T}no" >&6
3452 elif test "$wxUSE_EXPAT" = sys; then
3453 echo "$as_me:$LINENO: result: system version" >&5
3454echo "${ECHO_T}system version" >&6
3455 elif test "$wxUSE_EXPAT" = builtin; then
3456 echo "$as_me:$LINENO: result: builtin version" >&5
3457echo "${ECHO_T}builtin version" >&6
3458 else
3459 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3460echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3461 { (exit 1); exit 1; }; }
3462 fi
3463
3464
3465
3466
3467 enablestring=
3468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3469echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3470 no_cache=0
3471 # Check whether --enable-shared or --disable-shared was given.
3472if test "${enable_shared+set}" = set; then
3473 enableval="$enable_shared"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_shared='wxUSE_SHARED=yes'
3477 else
3478 ac_cv_use_shared='wxUSE_SHARED=no'
3479 fi
3480
3481else
3482
3483 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3491
3492fi;
3493
3494 eval "$ac_cv_use_shared"
3495 if test "$no_cache" != 1; then
3496 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3497 fi
3498
3499 if test "$wxUSE_SHARED" = yes; then
3500 echo "$as_me:$LINENO: result: yes" >&5
3501echo "${ECHO_T}yes" >&6
3502 else
3503 echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505 fi
3506
3507
3508 enablestring=
3509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3510echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3511 no_cache=0
3512 # Check whether --enable-optimise or --disable-optimise was given.
3513if test "${enable_optimise+set}" = set; then
3514 enableval="$enable_optimise"
3515
3516 if test "$enableval" = yes; then
3517 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3518 else
3519 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3520 fi
3521
3522else
3523
3524 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3532
3533fi;
3534
3535 eval "$ac_cv_use_optimise"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_OPTIMISE" = yes; then
3541 echo "$as_me:$LINENO: result: yes" >&5
3542echo "${ECHO_T}yes" >&6
3543 else
3544 echo "$as_me:$LINENO: result: no" >&5
3545echo "${ECHO_T}no" >&6
3546 fi
3547
3548
3549 enablestring=
3550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3551echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3552 no_cache=0
3553 # Check whether --enable-debug or --disable-debug was given.
3554if test "${enable_debug+set}" = set; then
3555 enableval="$enable_debug"
3556
3557 if test "$enableval" = yes; then
3558 ac_cv_use_debug='wxUSE_DEBUG=yes'
3559 else
3560 ac_cv_use_debug='wxUSE_DEBUG=no'
3561 fi
3562
3563else
3564
3565 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3573
3574fi;
3575
3576 eval "$ac_cv_use_debug"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_DEBUG" = yes; then
3582 echo "$as_me:$LINENO: result: yes" >&5
3583echo "${ECHO_T}yes" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
3587 fi
3588
3589
3590 enablestring=
3591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3592echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3593 no_cache=0
3594 # Check whether --enable-stl or --disable-stl was given.
3595if test "${enable_stl+set}" = set; then
3596 enableval="$enable_stl"
3597
3598 if test "$enableval" = yes; then
3599 ac_cv_use_stl='wxUSE_STL=yes'
3600 else
3601 ac_cv_use_stl='wxUSE_STL=no'
3602 fi
3603
3604else
3605
3606 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3607 if test "x$LINE" != x ; then
3608 eval "DEFAULT_$LINE"
3609 else
3610 no_cache=1
3611 fi
3612
3613 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3614
3615fi;
3616
3617 eval "$ac_cv_use_stl"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_STL" = yes; then
3623 echo "$as_me:$LINENO: result: yes" >&5
3624echo "${ECHO_T}yes" >&6
3625 else
3626 echo "$as_me:$LINENO: result: no" >&5
3627echo "${ECHO_T}no" >&6
3628 fi
3629
3630if test "$USE_OS2" = "1"; then
3631
3632 enablestring=
3633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3634echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3635 no_cache=0
3636 # Check whether --enable-omf or --disable-omf was given.
3637if test "${enable_omf+set}" = set; then
3638 enableval="$enable_omf"
3639
3640 if test "$enableval" = yes; then
3641 ac_cv_use_omf='wxUSE_OMF=yes'
3642 else
3643 ac_cv_use_omf='wxUSE_OMF=no'
3644 fi
3645
3646else
3647
3648 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3649 if test "x$LINE" != x ; then
3650 eval "DEFAULT_$LINE"
3651 else
3652 no_cache=1
3653 fi
3654
3655 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3656
3657fi;
3658
3659 eval "$ac_cv_use_omf"
3660 if test "$no_cache" != 1; then
3661 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3662 fi
3663
3664 if test "$wxUSE_OMF" = yes; then
3665 echo "$as_me:$LINENO: result: yes" >&5
3666echo "${ECHO_T}yes" >&6
3667 else
3668 echo "$as_me:$LINENO: result: no" >&5
3669echo "${ECHO_T}no" >&6
3670 fi
3671
3672fi
3673
3674if test "$wxUSE_DEBUG" = "yes"; then
3675 DEFAULT_wxUSE_DEBUG_FLAG=yes
3676 DEFAULT_wxUSE_DEBUG_INFO=yes
3677 BUILD=debug
3678elif test "$wxUSE_DEBUG" = "no"; then
3679 DEFAULT_wxUSE_DEBUG_FLAG=no
3680 DEFAULT_wxUSE_DEBUG_INFO=no
3681 BUILD=release
3682fi
3683
3684
3685 enablestring=
3686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3687echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3688 no_cache=0
3689 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3690if test "${enable_debug_flag+set}" = set; then
3691 enableval="$enable_debug_flag"
3692
3693 if test "$enableval" = yes; then
3694 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3695 else
3696 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3697 fi
3698
3699else
3700
3701 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3702 if test "x$LINE" != x ; then
3703 eval "DEFAULT_$LINE"
3704 else
3705 no_cache=1
3706 fi
3707
3708 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3709
3710fi;
3711
3712 eval "$ac_cv_use_debug_flag"
3713 if test "$no_cache" != 1; then
3714 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3715 fi
3716
3717 if test "$wxUSE_DEBUG_FLAG" = yes; then
3718 echo "$as_me:$LINENO: result: yes" >&5
3719echo "${ECHO_T}yes" >&6
3720 else
3721 echo "$as_me:$LINENO: result: no" >&5
3722echo "${ECHO_T}no" >&6
3723 fi
3724
3725
3726 enablestring=
3727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3728echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3729 no_cache=0
3730 # Check whether --enable-debug_info or --disable-debug_info was given.
3731if test "${enable_debug_info+set}" = set; then
3732 enableval="$enable_debug_info"
3733
3734 if test "$enableval" = yes; then
3735 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3736 else
3737 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3738 fi
3739
3740else
3741
3742 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3743 if test "x$LINE" != x ; then
3744 eval "DEFAULT_$LINE"
3745 else
3746 no_cache=1
3747 fi
3748
3749 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3750
3751fi;
3752
3753 eval "$ac_cv_use_debug_info"
3754 if test "$no_cache" != 1; then
3755 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3756 fi
3757
3758 if test "$wxUSE_DEBUG_INFO" = yes; then
3759 echo "$as_me:$LINENO: result: yes" >&5
3760echo "${ECHO_T}yes" >&6
3761 else
3762 echo "$as_me:$LINENO: result: no" >&5
3763echo "${ECHO_T}no" >&6
3764 fi
3765
3766
3767 enablestring=
3768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3769echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3770 no_cache=0
3771 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3772if test "${enable_debug_gdb+set}" = set; then
3773 enableval="$enable_debug_gdb"
3774
3775 if test "$enableval" = yes; then
3776 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3777 else
3778 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3779 fi
3780
3781else
3782
3783 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3784 if test "x$LINE" != x ; then
3785 eval "DEFAULT_$LINE"
3786 else
3787 no_cache=1
3788 fi
3789
3790 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3791
3792fi;
3793
3794 eval "$ac_cv_use_debug_gdb"
3795 if test "$no_cache" != 1; then
3796 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3797 fi
3798
3799 if test "$wxUSE_DEBUG_GDB" = yes; then
3800 echo "$as_me:$LINENO: result: yes" >&5
3801echo "${ECHO_T}yes" >&6
3802 else
3803 echo "$as_me:$LINENO: result: no" >&5
3804echo "${ECHO_T}no" >&6
3805 fi
3806
3807
3808 enablestring=
3809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3810echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3811 no_cache=0
3812 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3813if test "${enable_debug_cntxt+set}" = set; then
3814 enableval="$enable_debug_cntxt"
3815
3816 if test "$enableval" = yes; then
3817 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3818 else
3819 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3820 fi
3821
3822else
3823
3824 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3825 if test "x$LINE" != x ; then
3826 eval "DEFAULT_$LINE"
3827 else
3828 no_cache=1
3829 fi
3830
3831 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3832
3833fi;
3834
3835 eval "$ac_cv_use_debug_cntxt"
3836 if test "$no_cache" != 1; then
3837 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3838 fi
3839
3840 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3841 echo "$as_me:$LINENO: result: yes" >&5
3842echo "${ECHO_T}yes" >&6
3843 else
3844 echo "$as_me:$LINENO: result: no" >&5
3845echo "${ECHO_T}no" >&6
3846 fi
3847
3848
3849 enablestring=
3850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3851echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3852 no_cache=0
3853 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3854if test "${enable_mem_tracing+set}" = set; then
3855 enableval="$enable_mem_tracing"
3856
3857 if test "$enableval" = yes; then
3858 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3859 else
3860 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3861 fi
3862
3863else
3864
3865 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3866 if test "x$LINE" != x ; then
3867 eval "DEFAULT_$LINE"
3868 else
3869 no_cache=1
3870 fi
3871
3872 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3873
3874fi;
3875
3876 eval "$ac_cv_use_mem_tracing"
3877 if test "$no_cache" != 1; then
3878 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3879 fi
3880
3881 if test "$wxUSE_MEM_TRACING" = yes; then
3882 echo "$as_me:$LINENO: result: yes" >&5
3883echo "${ECHO_T}yes" >&6
3884 else
3885 echo "$as_me:$LINENO: result: no" >&5
3886echo "${ECHO_T}no" >&6
3887 fi
3888
3889
3890 enablestring=
3891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3892echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3893 no_cache=0
3894 # Check whether --enable-profile or --disable-profile was given.
3895if test "${enable_profile+set}" = set; then
3896 enableval="$enable_profile"
3897
3898 if test "$enableval" = yes; then
3899 ac_cv_use_profile='wxUSE_PROFILE=yes'
3900 else
3901 ac_cv_use_profile='wxUSE_PROFILE=no'
3902 fi
3903
3904else
3905
3906 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3907 if test "x$LINE" != x ; then
3908 eval "DEFAULT_$LINE"
3909 else
3910 no_cache=1
3911 fi
3912
3913 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3914
3915fi;
3916
3917 eval "$ac_cv_use_profile"
3918 if test "$no_cache" != 1; then
3919 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3920 fi
3921
3922 if test "$wxUSE_PROFILE" = yes; then
3923 echo "$as_me:$LINENO: result: yes" >&5
3924echo "${ECHO_T}yes" >&6
3925 else
3926 echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
3928 fi
3929
3930
3931 enablestring=
3932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3933echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3934 no_cache=0
3935 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3936if test "${enable_no_rtti+set}" = set; then
3937 enableval="$enable_no_rtti"
3938
3939 if test "$enableval" = yes; then
3940 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3941 else
3942 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3943 fi
3944
3945else
3946
3947 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3955
3956fi;
3957
3958 eval "$ac_cv_use_no_rtti"
3959 if test "$no_cache" != 1; then
3960 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3961 fi
3962
3963 if test "$wxUSE_NO_RTTI" = yes; then
3964 echo "$as_me:$LINENO: result: yes" >&5
3965echo "${ECHO_T}yes" >&6
3966 else
3967 echo "$as_me:$LINENO: result: no" >&5
3968echo "${ECHO_T}no" >&6
3969 fi
3970
3971
3972 enablestring=
3973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3974echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3975 no_cache=0
3976 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3977if test "${enable_no_exceptions+set}" = set; then
3978 enableval="$enable_no_exceptions"
3979
3980 if test "$enableval" = yes; then
3981 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3982 else
3983 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3984 fi
3985
3986else
3987
3988 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3989 if test "x$LINE" != x ; then
3990 eval "DEFAULT_$LINE"
3991 else
3992 no_cache=1
3993 fi
3994
3995 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3996
3997fi;
3998
3999 eval "$ac_cv_use_no_exceptions"
4000 if test "$no_cache" != 1; then
4001 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4002 fi
4003
4004 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4005 echo "$as_me:$LINENO: result: yes" >&5
4006echo "${ECHO_T}yes" >&6
4007 else
4008 echo "$as_me:$LINENO: result: no" >&5
4009echo "${ECHO_T}no" >&6
4010 fi
4011
4012
4013 enablestring=
4014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4015echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4016 no_cache=0
4017 # Check whether --enable-permissive or --disable-permissive was given.
4018if test "${enable_permissive+set}" = set; then
4019 enableval="$enable_permissive"
4020
4021 if test "$enableval" = yes; then
4022 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4023 else
4024 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4025 fi
4026
4027else
4028
4029 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
4036 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4037
4038fi;
4039
4040 eval "$ac_cv_use_permissive"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$wxUSE_PERMISSIVE" = yes; then
4046 echo "$as_me:$LINENO: result: yes" >&5
4047echo "${ECHO_T}yes" >&6
4048 else
4049 echo "$as_me:$LINENO: result: no" >&5
4050echo "${ECHO_T}no" >&6
4051 fi
4052
4053
4054 enablestring=
4055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4056echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4057 no_cache=0
4058 # Check whether --enable-no_deps or --disable-no_deps was given.
4059if test "${enable_no_deps+set}" = set; then
4060 enableval="$enable_no_deps"
4061
4062 if test "$enableval" = yes; then
4063 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4064 else
4065 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4066 fi
4067
4068else
4069
4070 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4071 if test "x$LINE" != x ; then
4072 eval "DEFAULT_$LINE"
4073 else
4074 no_cache=1
4075 fi
4076
4077 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4078
4079fi;
4080
4081 eval "$ac_cv_use_no_deps"
4082 if test "$no_cache" != 1; then
4083 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4084 fi
4085
4086 if test "$wxUSE_NO_DEPS" = yes; then
4087 echo "$as_me:$LINENO: result: yes" >&5
4088echo "${ECHO_T}yes" >&6
4089 else
4090 echo "$as_me:$LINENO: result: no" >&5
4091echo "${ECHO_T}no" >&6
4092 fi
4093
4094
4095
4096 enablestring=
4097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4098echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4099 no_cache=0
4100 # Check whether --enable-compat22 or --disable-compat22 was given.
4101if test "${enable_compat22+set}" = set; then
4102 enableval="$enable_compat22"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4106 else
4107 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4108 fi
4109
4110else
4111
4112 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4120
4121fi;
4122
4123 eval "$ac_cv_use_compat22"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4129 echo "$as_me:$LINENO: result: yes" >&5
4130echo "${ECHO_T}yes" >&6
4131 else
4132 echo "$as_me:$LINENO: result: no" >&5
4133echo "${ECHO_T}no" >&6
4134 fi
4135
4136
4137 enablestring=disable
4138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4139echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4140 no_cache=0
4141 # Check whether --enable-compat24 or --disable-compat24 was given.
4142if test "${enable_compat24+set}" = set; then
4143 enableval="$enable_compat24"
4144
4145 if test "$enableval" = yes; then
4146 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4147 else
4148 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4149 fi
4150
4151else
4152
4153 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4154 if test "x$LINE" != x ; then
4155 eval "DEFAULT_$LINE"
4156 else
4157 no_cache=1
4158 fi
4159
4160 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4161
4162fi;
4163
4164 eval "$ac_cv_use_compat24"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4170 echo "$as_me:$LINENO: result: yes" >&5
4171echo "${ECHO_T}yes" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174echo "${ECHO_T}no" >&6
4175 fi
4176
4177
ffa0583f
RL
4178
4179 enablestring=
4180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4181echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4182 no_cache=0
4183 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4184if test "${enable_rpath+set}" = set; then
4185 enableval="$enable_rpath"
ffa0583f
RL
4186
4187 if test "$enableval" = yes; then
4188 ac_cv_use_rpath='wxUSE_RPATH=yes'
4189 else
4190 ac_cv_use_rpath='wxUSE_RPATH=no'
4191 fi
4192
4193else
4194
4195 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4196 if test "x$LINE" != x ; then
4197 eval "DEFAULT_$LINE"
4198 else
4199 no_cache=1
4200 fi
4201
4202 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4203
a848cd7e
SC
4204fi;
4205
ffa0583f
RL
4206 eval "$ac_cv_use_rpath"
4207 if test "$no_cache" != 1; then
4208 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4209 fi
4210
4211 if test "$wxUSE_RPATH" = yes; then
4212 echo "$as_me:$LINENO: result: yes" >&5
4213echo "${ECHO_T}yes" >&6
4214 else
4215 echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
4217 fi
4218
a848cd7e
SC
4219
4220
4221
4222
4223 enablestring=
4224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4225echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4226 no_cache=0
4227 # Check whether --enable-intl or --disable-intl was given.
4228if test "${enable_intl+set}" = set; then
4229 enableval="$enable_intl"
4230
4231 if test "$enableval" = yes; then
4232 ac_cv_use_intl='wxUSE_INTL=yes'
4233 else
4234 ac_cv_use_intl='wxUSE_INTL=no'
4235 fi
4236
4237else
4238
4239 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4240 if test "x$LINE" != x ; then
4241 eval "DEFAULT_$LINE"
4242 else
4243 no_cache=1
4244 fi
4245
4246 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4247
4248fi;
4249
4250 eval "$ac_cv_use_intl"
4251 if test "$no_cache" != 1; then
4252 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4253 fi
4254
4255 if test "$wxUSE_INTL" = yes; then
4256 echo "$as_me:$LINENO: result: yes" >&5
4257echo "${ECHO_T}yes" >&6
4258 else
4259 echo "$as_me:$LINENO: result: no" >&5
4260echo "${ECHO_T}no" >&6
4261 fi
4262
4263
4264 enablestring=
4265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4266echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4267 no_cache=0
4268 # Check whether --enable-config or --disable-config was given.
4269if test "${enable_config+set}" = set; then
4270 enableval="$enable_config"
4271
4272 if test "$enableval" = yes; then
4273 ac_cv_use_config='wxUSE_CONFIG=yes'
4274 else
4275 ac_cv_use_config='wxUSE_CONFIG=no'
4276 fi
4277
4278else
4279
4280 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4281 if test "x$LINE" != x ; then
4282 eval "DEFAULT_$LINE"
4283 else
4284 no_cache=1
4285 fi
4286
4287 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4288
4289fi;
4290
4291 eval "$ac_cv_use_config"
4292 if test "$no_cache" != 1; then
4293 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4294 fi
4295
4296 if test "$wxUSE_CONFIG" = yes; then
4297 echo "$as_me:$LINENO: result: yes" >&5
4298echo "${ECHO_T}yes" >&6
4299 else
4300 echo "$as_me:$LINENO: result: no" >&5
4301echo "${ECHO_T}no" >&6
4302 fi
4303
4304
4305
4306 enablestring=
4307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4308echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4309 no_cache=0
4310 # Check whether --enable-protocols or --disable-protocols was given.
4311if test "${enable_protocols+set}" = set; then
4312 enableval="$enable_protocols"
4313
4314 if test "$enableval" = yes; then
4315 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4316 else
4317 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4318 fi
4319
4320else
4321
4322 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4323 if test "x$LINE" != x ; then
4324 eval "DEFAULT_$LINE"
4325 else
4326 no_cache=1
4327 fi
4328
4329 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4330
4331fi;
4332
4333 eval "$ac_cv_use_protocols"
4334 if test "$no_cache" != 1; then
4335 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4336 fi
4337
4338 if test "$wxUSE_PROTOCOL" = yes; then
4339 echo "$as_me:$LINENO: result: yes" >&5
4340echo "${ECHO_T}yes" >&6
4341 else
4342 echo "$as_me:$LINENO: result: no" >&5
4343echo "${ECHO_T}no" >&6
4344 fi
4345
4346
4347 enablestring=
4348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4349echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4350 no_cache=0
4351 # Check whether --enable-ftp or --disable-ftp was given.
4352if test "${enable_ftp+set}" = set; then
4353 enableval="$enable_ftp"
4354
4355 if test "$enableval" = yes; then
4356 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4357 else
4358 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4359 fi
4360
4361else
4362
4363 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4364 if test "x$LINE" != x ; then
4365 eval "DEFAULT_$LINE"
4366 else
4367 no_cache=1
4368 fi
4369
4370 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4371
4372fi;
4373
4374 eval "$ac_cv_use_ftp"
4375 if test "$no_cache" != 1; then
4376 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4377 fi
4378
4379 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4380 echo "$as_me:$LINENO: result: yes" >&5
4381echo "${ECHO_T}yes" >&6
4382 else
4383 echo "$as_me:$LINENO: result: no" >&5
4384echo "${ECHO_T}no" >&6
4385 fi
4386
4387
4388 enablestring=
4389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4390echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4391 no_cache=0
4392 # Check whether --enable-http or --disable-http was given.
4393if test "${enable_http+set}" = set; then
4394 enableval="$enable_http"
4395
4396 if test "$enableval" = yes; then
4397 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4398 else
4399 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4400 fi
4401
4402else
4403
4404 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4405 if test "x$LINE" != x ; then
4406 eval "DEFAULT_$LINE"
4407 else
4408 no_cache=1
4409 fi
4410
4411 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4412
4413fi;
4414
4415 eval "$ac_cv_use_http"
4416 if test "$no_cache" != 1; then
4417 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4418 fi
4419
4420 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4421 echo "$as_me:$LINENO: result: yes" >&5
4422echo "${ECHO_T}yes" >&6
4423 else
4424 echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6
4426 fi
4427
4428
4429 enablestring=
4430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4431echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4432 no_cache=0
4433 # Check whether --enable-fileproto or --disable-fileproto was given.
4434if test "${enable_fileproto+set}" = set; then
4435 enableval="$enable_fileproto"
4436
4437 if test "$enableval" = yes; then
4438 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4439 else
4440 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4441 fi
4442
4443else
4444
4445 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4446 if test "x$LINE" != x ; then
4447 eval "DEFAULT_$LINE"
4448 else
4449 no_cache=1
4450 fi
4451
4452 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4453
4454fi;
4455
4456 eval "$ac_cv_use_fileproto"
4457 if test "$no_cache" != 1; then
4458 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4459 fi
4460
4461 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4462 echo "$as_me:$LINENO: result: yes" >&5
4463echo "${ECHO_T}yes" >&6
4464 else
4465 echo "$as_me:$LINENO: result: no" >&5
4466echo "${ECHO_T}no" >&6
4467 fi
4468
4469
4470 enablestring=
4471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4472echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4473 no_cache=0
4474 # Check whether --enable-sockets or --disable-sockets was given.
4475if test "${enable_sockets+set}" = set; then
4476 enableval="$enable_sockets"
4477
4478 if test "$enableval" = yes; then
4479 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4480 else
4481 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4482 fi
4483
4484else
4485
4486 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4487 if test "x$LINE" != x ; then
4488 eval "DEFAULT_$LINE"
4489 else
4490 no_cache=1
4491 fi
4492
4493 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4494
4495fi;
4496
4497 eval "$ac_cv_use_sockets"
4498 if test "$no_cache" != 1; then
4499 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4500 fi
4501
4502 if test "$wxUSE_SOCKETS" = yes; then
4503 echo "$as_me:$LINENO: result: yes" >&5
4504echo "${ECHO_T}yes" >&6
4505 else
4506 echo "$as_me:$LINENO: result: no" >&5
4507echo "${ECHO_T}no" >&6
4508 fi
4509
4510
4511 enablestring=
4512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4513echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4514 no_cache=0
4515 # Check whether --enable-ole or --disable-ole was given.
4516if test "${enable_ole+set}" = set; then
4517 enableval="$enable_ole"
4518
4519 if test "$enableval" = yes; then
4520 ac_cv_use_ole='wxUSE_OLE=yes'
4521 else
4522 ac_cv_use_ole='wxUSE_OLE=no'
4523 fi
4524
4525else
4526
4527 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4528 if test "x$LINE" != x ; then
4529 eval "DEFAULT_$LINE"
4530 else
4531 no_cache=1
4532 fi
4533
4534 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4535
4536fi;
4537
4538 eval "$ac_cv_use_ole"
4539 if test "$no_cache" != 1; then
4540 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4541 fi
4542
4543 if test "$wxUSE_OLE" = yes; then
4544 echo "$as_me:$LINENO: result: yes" >&5
4545echo "${ECHO_T}yes" >&6
4546 else
4547 echo "$as_me:$LINENO: result: no" >&5
4548echo "${ECHO_T}no" >&6
4549 fi
4550
4551
4552 enablestring=
4553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4554echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4555 no_cache=0
4556 # Check whether --enable-dataobj or --disable-dataobj was given.
4557if test "${enable_dataobj+set}" = set; then
4558 enableval="$enable_dataobj"
4559
4560 if test "$enableval" = yes; then
4561 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4562 else
4563 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4564 fi
4565
4566else
4567
4568 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4569 if test "x$LINE" != x ; then
4570 eval "DEFAULT_$LINE"
4571 else
4572 no_cache=1
4573 fi
4574
4575 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4576
4577fi;
4578
4579 eval "$ac_cv_use_dataobj"
4580 if test "$no_cache" != 1; then
4581 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4582 fi
4583
4584 if test "$wxUSE_DATAOBJ" = yes; then
4585 echo "$as_me:$LINENO: result: yes" >&5
4586echo "${ECHO_T}yes" >&6
4587 else
4588 echo "$as_me:$LINENO: result: no" >&5
4589echo "${ECHO_T}no" >&6
4590 fi
4591
4592
4593
4594 enablestring=
4595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4596echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4597 no_cache=0
4598 # Check whether --enable-ipc or --disable-ipc was given.
4599if test "${enable_ipc+set}" = set; then
4600 enableval="$enable_ipc"
4601
4602 if test "$enableval" = yes; then
4603 ac_cv_use_ipc='wxUSE_IPC=yes'
4604 else
4605 ac_cv_use_ipc='wxUSE_IPC=no'
4606 fi
4607
4608else
4609
4610 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4611 if test "x$LINE" != x ; then
4612 eval "DEFAULT_$LINE"
4613 else
4614 no_cache=1
4615 fi
4616
4617 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4618
4619fi;
4620
4621 eval "$ac_cv_use_ipc"
4622 if test "$no_cache" != 1; then
4623 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4624 fi
4625
4626 if test "$wxUSE_IPC" = yes; then
4627 echo "$as_me:$LINENO: result: yes" >&5
4628echo "${ECHO_T}yes" >&6
4629 else
4630 echo "$as_me:$LINENO: result: no" >&5
4631echo "${ECHO_T}no" >&6
4632 fi
4633
4634
4635
4636 enablestring=
4637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4638echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4639 no_cache=0
4640 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4641if test "${enable_apple_ieee+set}" = set; then
4642 enableval="$enable_apple_ieee"
4643
4644 if test "$enableval" = yes; then
4645 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4646 else
4647 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4648 fi
4649
4650else
4651
4652 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4653 if test "x$LINE" != x ; then
4654 eval "DEFAULT_$LINE"
4655 else
4656 no_cache=1
4657 fi
4658
4659 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4660
4661fi;
4662
4663 eval "$ac_cv_use_apple_ieee"
4664 if test "$no_cache" != 1; then
4665 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4666 fi
4667
4668 if test "$wxUSE_APPLE_IEEE" = yes; then
4669 echo "$as_me:$LINENO: result: yes" >&5
4670echo "${ECHO_T}yes" >&6
4671 else
4672 echo "$as_me:$LINENO: result: no" >&5
4673echo "${ECHO_T}no" >&6
4674 fi
4675
4676
81f90336
MW
4677 enablestring=
4678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4679echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4680 no_cache=0
4681 # Check whether --enable-arcstream or --disable-arcstream was given.
4682if test "${enable_arcstream+set}" = set; then
4683 enableval="$enable_arcstream"
4684
4685 if test "$enableval" = yes; then
9e8e867f 4686 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4687 else
9e8e867f 4688 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4689 fi
4690
4691else
4692
9e8e867f 4693 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4694 if test "x$LINE" != x ; then
4695 eval "DEFAULT_$LINE"
4696 else
4697 no_cache=1
4698 fi
4699
9e8e867f 4700 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4701
4702fi;
4703
4704 eval "$ac_cv_use_arcstream"
4705 if test "$no_cache" != 1; then
4706 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4707 fi
4708
9e8e867f 4709 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4710 echo "$as_me:$LINENO: result: yes" >&5
4711echo "${ECHO_T}yes" >&6
4712 else
4713 echo "$as_me:$LINENO: result: no" >&5
4714echo "${ECHO_T}no" >&6
4715 fi
4716
4717
a848cd7e 4718 enablestring=
36b6448c
VZ
4719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4720echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4721 no_cache=0
36b6448c
VZ
4722 # Check whether --enable-backtrace or --disable-backtrace was given.
4723if test "${enable_backtrace+set}" = set; then
4724 enableval="$enable_backtrace"
a848cd7e
SC
4725
4726 if test "$enableval" = yes; then
36b6448c 4727 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4728 else
36b6448c 4729 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4730 fi
4731
4732else
4733
36b6448c 4734 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4735 if test "x$LINE" != x ; then
4736 eval "DEFAULT_$LINE"
4737 else
4738 no_cache=1
4739 fi
4740
36b6448c 4741 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4742
4743fi;
4744
36b6448c 4745 eval "$ac_cv_use_backtrace"
a848cd7e 4746 if test "$no_cache" != 1; then
36b6448c 4747 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4748 fi
4749
36b6448c 4750 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4751 echo "$as_me:$LINENO: result: yes" >&5
4752echo "${ECHO_T}yes" >&6
4753 else
4754 echo "$as_me:$LINENO: result: no" >&5
4755echo "${ECHO_T}no" >&6
4756 fi
4757
4758
eaff0f0d 4759 enablestring=
36b6448c
VZ
4760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4761echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4762 no_cache=0
36b6448c
VZ
4763 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4764if test "${enable_catch_segvs+set}" = set; then
4765 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4766
4767 if test "$enableval" = yes; then
36b6448c 4768 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4769 else
36b6448c 4770 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4771 fi
4772
4773else
4774
36b6448c 4775 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4776 if test "x$LINE" != x ; then
4777 eval "DEFAULT_$LINE"
4778 else
4779 no_cache=1
4780 fi
4781
36b6448c 4782 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4783
4784fi;
4785
36b6448c 4786 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4787 if test "$no_cache" != 1; then
36b6448c 4788 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4789 fi
4790
36b6448c 4791 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4792 echo "$as_me:$LINENO: result: yes" >&5
4793echo "${ECHO_T}yes" >&6
4794 else
4795 echo "$as_me:$LINENO: result: no" >&5
4796echo "${ECHO_T}no" >&6
4797 fi
4798
4799
a848cd7e
SC
4800 enablestring=
4801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4802echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4803 no_cache=0
4804 # Check whether --enable-cmdline or --disable-cmdline was given.
4805if test "${enable_cmdline+set}" = set; then
4806 enableval="$enable_cmdline"
4807
4808 if test "$enableval" = yes; then
4809 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4810 else
4811 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4812 fi
4813
4814else
4815
4816 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4817 if test "x$LINE" != x ; then
4818 eval "DEFAULT_$LINE"
4819 else
4820 no_cache=1
4821 fi
4822
4823 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4824
4825fi;
4826
4827 eval "$ac_cv_use_cmdline"
4828 if test "$no_cache" != 1; then
4829 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4830 fi
4831
4832 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4833 echo "$as_me:$LINENO: result: yes" >&5
4834echo "${ECHO_T}yes" >&6
4835 else
4836 echo "$as_me:$LINENO: result: no" >&5
4837echo "${ECHO_T}no" >&6
4838 fi
4839
4840
4841 enablestring=
4842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4843echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4844 no_cache=0
4845 # Check whether --enable-datetime or --disable-datetime was given.
4846if test "${enable_datetime+set}" = set; then
4847 enableval="$enable_datetime"
4848
4849 if test "$enableval" = yes; then
4850 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4851 else
4852 ac_cv_use_datetime='wxUSE_DATETIME=no'
4853 fi
4854
4855else
4856
4857 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4858 if test "x$LINE" != x ; then
4859 eval "DEFAULT_$LINE"
4860 else
4861 no_cache=1
4862 fi
4863
4864 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4865
4866fi;
4867
4868 eval "$ac_cv_use_datetime"
4869 if test "$no_cache" != 1; then
4870 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4871 fi
4872
4873 if test "$wxUSE_DATETIME" = yes; then
4874 echo "$as_me:$LINENO: result: yes" >&5
4875echo "${ECHO_T}yes" >&6
4876 else
4877 echo "$as_me:$LINENO: result: no" >&5
4878echo "${ECHO_T}no" >&6
4879 fi
4880
4881
36b6448c
VZ
4882 enablestring=
4883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4884echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4885 no_cache=0
4886 # Check whether --enable-debugreport or --disable-debugreport was given.
4887if test "${enable_debugreport+set}" = set; then
4888 enableval="$enable_debugreport"
4889
4890 if test "$enableval" = yes; then
4891 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4892 else
4893 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4894 fi
4895
4896else
4897
4898 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4899 if test "x$LINE" != x ; then
4900 eval "DEFAULT_$LINE"
4901 else
4902 no_cache=1
4903 fi
4904
4905 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4906
4907fi;
4908
4909 eval "$ac_cv_use_debugreport"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_DEBUGREPORT" = yes; then
4915 echo "$as_me:$LINENO: result: yes" >&5
4916echo "${ECHO_T}yes" >&6
4917 else
4918 echo "$as_me:$LINENO: result: no" >&5
4919echo "${ECHO_T}no" >&6
4920 fi
4921
4922
a848cd7e
SC
4923 enablestring=
4924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4925echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4926 no_cache=0
4927 # Check whether --enable-dialupman or --disable-dialupman was given.
4928if test "${enable_dialupman+set}" = set; then
4929 enableval="$enable_dialupman"
4930
4931 if test "$enableval" = yes; then
4932 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4933 else
4934 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4935 fi
4936
4937else
4938
4939 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4940 if test "x$LINE" != x ; then
4941 eval "DEFAULT_$LINE"
4942 else
4943 no_cache=1
4944 fi
4945
4946 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4947
4948fi;
4949
4950 eval "$ac_cv_use_dialupman"
4951 if test "$no_cache" != 1; then
4952 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4953 fi
4954
4955 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4956 echo "$as_me:$LINENO: result: yes" >&5
4957echo "${ECHO_T}yes" >&6
4958 else
4959 echo "$as_me:$LINENO: result: no" >&5
4960echo "${ECHO_T}no" >&6
4961 fi
4962
4963
4964 enablestring=
4965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4966echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4967 no_cache=0
4968 # Check whether --enable-dynlib or --disable-dynlib was given.
4969if test "${enable_dynlib+set}" = set; then
4970 enableval="$enable_dynlib"
4971
4972 if test "$enableval" = yes; then
4973 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4974 else
4975 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4976 fi
4977
4978else
4979
4980 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4981 if test "x$LINE" != x ; then
4982 eval "DEFAULT_$LINE"
4983 else
4984 no_cache=1
4985 fi
4986
4987 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4988
4989fi;
4990
4991 eval "$ac_cv_use_dynlib"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4997 echo "$as_me:$LINENO: result: yes" >&5
4998echo "${ECHO_T}yes" >&6
4999 else
5000 echo "$as_me:$LINENO: result: no" >&5
5001echo "${ECHO_T}no" >&6
5002 fi
5003
5004
5005 enablestring=
5006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5007echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5008 no_cache=0
5009 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5010if test "${enable_dynamicloader+set}" = set; then
5011 enableval="$enable_dynamicloader"
5012
5013 if test "$enableval" = yes; then
5014 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5015 else
5016 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5017 fi
5018
5019else
5020
5021 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5022 if test "x$LINE" != x ; then
5023 eval "DEFAULT_$LINE"
5024 else
5025 no_cache=1
5026 fi
5027
5028 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5029
5030fi;
5031
5032 eval "$ac_cv_use_dynamicloader"
5033 if test "$no_cache" != 1; then
5034 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5035 fi
5036
5037 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5038 echo "$as_me:$LINENO: result: yes" >&5
5039echo "${ECHO_T}yes" >&6
5040 else
5041 echo "$as_me:$LINENO: result: no" >&5
5042echo "${ECHO_T}no" >&6
5043 fi
5044
5045
5046 enablestring=
5047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5048echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5049 no_cache=0
5050 # Check whether --enable-exceptions or --disable-exceptions was given.
5051if test "${enable_exceptions+set}" = set; then
5052 enableval="$enable_exceptions"
5053
5054 if test "$enableval" = yes; then
5055 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5056 else
5057 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5058 fi
5059
5060else
5061
5062 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5063 if test "x$LINE" != x ; then
5064 eval "DEFAULT_$LINE"
5065 else
5066 no_cache=1
5067 fi
5068
5069 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5070
5071fi;
5072
5073 eval "$ac_cv_use_exceptions"
5074 if test "$no_cache" != 1; then
5075 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5076 fi
5077
5078 if test "$wxUSE_EXCEPTIONS" = yes; then
5079 echo "$as_me:$LINENO: result: yes" >&5
5080echo "${ECHO_T}yes" >&6
5081 else
5082 echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6
5084 fi
5085
5086
5087 enablestring=
5088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5089echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5090 no_cache=0
5091 # Check whether --enable-ffile or --disable-ffile was given.
5092if test "${enable_ffile+set}" = set; then
5093 enableval="$enable_ffile"
5094
5095 if test "$enableval" = yes; then
5096 ac_cv_use_ffile='wxUSE_FFILE=yes'
5097 else
5098 ac_cv_use_ffile='wxUSE_FFILE=no'
5099 fi
5100
5101else
5102
5103 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5104 if test "x$LINE" != x ; then
5105 eval "DEFAULT_$LINE"
5106 else
5107 no_cache=1
5108 fi
5109
5110 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5111
5112fi;
5113
5114 eval "$ac_cv_use_ffile"
5115 if test "$no_cache" != 1; then
5116 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5117 fi
5118
5119 if test "$wxUSE_FFILE" = yes; then
5120 echo "$as_me:$LINENO: result: yes" >&5
5121echo "${ECHO_T}yes" >&6
5122 else
5123 echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6
5125 fi
5126
5127
5128 enablestring=
5129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5130echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5131 no_cache=0
5132 # Check whether --enable-file or --disable-file was given.
5133if test "${enable_file+set}" = set; then
5134 enableval="$enable_file"
5135
5136 if test "$enableval" = yes; then
5137 ac_cv_use_file='wxUSE_FILE=yes'
5138 else
5139 ac_cv_use_file='wxUSE_FILE=no'
5140 fi
5141
5142else
5143
5144 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5145 if test "x$LINE" != x ; then
5146 eval "DEFAULT_$LINE"
5147 else
5148 no_cache=1
5149 fi
5150
5151 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5152
5153fi;
5154
5155 eval "$ac_cv_use_file"
5156 if test "$no_cache" != 1; then
5157 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5158 fi
5159
5160 if test "$wxUSE_FILE" = yes; then
5161 echo "$as_me:$LINENO: result: yes" >&5
5162echo "${ECHO_T}yes" >&6
5163 else
5164 echo "$as_me:$LINENO: result: no" >&5
5165echo "${ECHO_T}no" >&6
5166 fi
5167
5168
5169 enablestring=
5170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5171echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5172 no_cache=0
5173 # Check whether --enable-filesystem or --disable-filesystem was given.
5174if test "${enable_filesystem+set}" = set; then
5175 enableval="$enable_filesystem"
5176
5177 if test "$enableval" = yes; then
5178 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5179 else
5180 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5181 fi
5182
5183else
5184
5185 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5186 if test "x$LINE" != x ; then
5187 eval "DEFAULT_$LINE"
5188 else
5189 no_cache=1
5190 fi
5191
5192 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5193
5194fi;
5195
5196 eval "$ac_cv_use_filesystem"
5197 if test "$no_cache" != 1; then
5198 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5199 fi
5200
5201 if test "$wxUSE_FILESYSTEM" = yes; then
5202 echo "$as_me:$LINENO: result: yes" >&5
5203echo "${ECHO_T}yes" >&6
5204 else
5205 echo "$as_me:$LINENO: result: no" >&5
5206echo "${ECHO_T}no" >&6
5207 fi
5208
5209
5210 enablestring=
5211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5212echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5213 no_cache=0
5214 # Check whether --enable-fontmap or --disable-fontmap was given.
5215if test "${enable_fontmap+set}" = set; then
5216 enableval="$enable_fontmap"
5217
5218 if test "$enableval" = yes; then
5219 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5220 else
5221 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5222 fi
5223
5224else
5225
5226 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5227 if test "x$LINE" != x ; then
5228 eval "DEFAULT_$LINE"
5229 else
5230 no_cache=1
5231 fi
5232
5233 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5234
5235fi;
5236
5237 eval "$ac_cv_use_fontmap"
5238 if test "$no_cache" != 1; then
5239 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5240 fi
5241
5242 if test "$wxUSE_FONTMAP" = yes; then
5243 echo "$as_me:$LINENO: result: yes" >&5
5244echo "${ECHO_T}yes" >&6
5245 else
5246 echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6
5248 fi
5249
5250
5251 enablestring=
5252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5253echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5254 no_cache=0
5255 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5256if test "${enable_fs_inet+set}" = set; then
5257 enableval="$enable_fs_inet"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5261 else
5262 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5263 fi
5264
5265else
5266
5267 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5275
5276fi;
5277
5278 eval "$ac_cv_use_fs_inet"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_FS_INET" = yes; then
5284 echo "$as_me:$LINENO: result: yes" >&5
5285echo "${ECHO_T}yes" >&6
5286 else
5287 echo "$as_me:$LINENO: result: no" >&5
5288echo "${ECHO_T}no" >&6
5289 fi
5290
5291
5292 enablestring=
5293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5294echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5295 no_cache=0
5296 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5297if test "${enable_fs_zip+set}" = set; then
5298 enableval="$enable_fs_zip"
5299
5300 if test "$enableval" = yes; then
5301 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5302 else
5303 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5304 fi
5305
5306else
5307
5308 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5309 if test "x$LINE" != x ; then
5310 eval "DEFAULT_$LINE"
5311 else
5312 no_cache=1
5313 fi
5314
5315 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5316
5317fi;
5318
5319 eval "$ac_cv_use_fs_zip"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_FS_ZIP" = yes; then
5325 echo "$as_me:$LINENO: result: yes" >&5
5326echo "${ECHO_T}yes" >&6
5327 else
5328 echo "$as_me:$LINENO: result: no" >&5
5329echo "${ECHO_T}no" >&6
5330 fi
5331
5332
5333 enablestring=
5334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5335echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5336 no_cache=0
5337 # Check whether --enable-geometry or --disable-geometry was given.
5338if test "${enable_geometry+set}" = set; then
5339 enableval="$enable_geometry"
5340
5341 if test "$enableval" = yes; then
5342 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5343 else
5344 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5345 fi
5346
5347else
5348
5349 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5350 if test "x$LINE" != x ; then
5351 eval "DEFAULT_$LINE"
5352 else
5353 no_cache=1
5354 fi
5355
5356 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5357
5358fi;
5359
5360 eval "$ac_cv_use_geometry"
5361 if test "$no_cache" != 1; then
5362 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5363 fi
5364
5365 if test "$wxUSE_GEOMETRY" = yes; then
5366 echo "$as_me:$LINENO: result: yes" >&5
5367echo "${ECHO_T}yes" >&6
5368 else
5369 echo "$as_me:$LINENO: result: no" >&5
5370echo "${ECHO_T}no" >&6
5371 fi
5372
5373
5374 enablestring=
5375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5376echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5377 no_cache=0
5378 # Check whether --enable-log or --disable-log was given.
5379if test "${enable_log+set}" = set; then
5380 enableval="$enable_log"
5381
5382 if test "$enableval" = yes; then
5383 ac_cv_use_log='wxUSE_LOG=yes'
5384 else
5385 ac_cv_use_log='wxUSE_LOG=no'
5386 fi
5387
5388else
5389
5390 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5391 if test "x$LINE" != x ; then
5392 eval "DEFAULT_$LINE"
5393 else
5394 no_cache=1
5395 fi
5396
5397 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5398
5399fi;
5400
5401 eval "$ac_cv_use_log"
5402 if test "$no_cache" != 1; then
5403 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5404 fi
5405
5406 if test "$wxUSE_LOG" = yes; then
5407 echo "$as_me:$LINENO: result: yes" >&5
5408echo "${ECHO_T}yes" >&6
5409 else
5410 echo "$as_me:$LINENO: result: no" >&5
5411echo "${ECHO_T}no" >&6
5412 fi
5413
5414
5415 enablestring=
5416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5417echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5418 no_cache=0
5419 # Check whether --enable-longlong or --disable-longlong was given.
5420if test "${enable_longlong+set}" = set; then
5421 enableval="$enable_longlong"
5422
5423 if test "$enableval" = yes; then
5424 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5425 else
5426 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5427 fi
5428
5429else
5430
5431 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5432 if test "x$LINE" != x ; then
5433 eval "DEFAULT_$LINE"
5434 else
5435 no_cache=1
5436 fi
5437
5438 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5439
5440fi;
5441
5442 eval "$ac_cv_use_longlong"
5443 if test "$no_cache" != 1; then
5444 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5445 fi
5446
5447 if test "$wxUSE_LONGLONG" = yes; then
5448 echo "$as_me:$LINENO: result: yes" >&5
5449echo "${ECHO_T}yes" >&6
5450 else
5451 echo "$as_me:$LINENO: result: no" >&5
5452echo "${ECHO_T}no" >&6
5453 fi
5454
5455
5456 enablestring=
5457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5458echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5459 no_cache=0
5460 # Check whether --enable-mimetype or --disable-mimetype was given.
5461if test "${enable_mimetype+set}" = set; then
5462 enableval="$enable_mimetype"
5463
5464 if test "$enableval" = yes; then
5465 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5466 else
5467 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5468 fi
5469
5470else
5471
5472 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5473 if test "x$LINE" != x ; then
5474 eval "DEFAULT_$LINE"
5475 else
5476 no_cache=1
5477 fi
5478
5479 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5480
5481fi;
5482
5483 eval "$ac_cv_use_mimetype"
5484 if test "$no_cache" != 1; then
5485 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5486 fi
5487
5488 if test "$wxUSE_MIMETYPE" = yes; then
5489 echo "$as_me:$LINENO: result: yes" >&5
5490echo "${ECHO_T}yes" >&6
5491 else
5492 echo "$as_me:$LINENO: result: no" >&5
5493echo "${ECHO_T}no" >&6
5494 fi
5495
5496
5497 enablestring=
5498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5499echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5500 no_cache=0
5501 # Check whether --enable-mslu or --disable-mslu was given.
5502if test "${enable_mslu+set}" = set; then
5503 enableval="$enable_mslu"
5504
5505 if test "$enableval" = yes; then
5506 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5507 else
5508 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5509 fi
5510
5511else
5512
5513 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5514 if test "x$LINE" != x ; then
5515 eval "DEFAULT_$LINE"
5516 else
5517 no_cache=1
5518 fi
5519
5520 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5521
5522fi;
5523
5524 eval "$ac_cv_use_mslu"
5525 if test "$no_cache" != 1; then
5526 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5527 fi
5528
5529 if test "$wxUSE_UNICODE_MSLU" = yes; then
5530 echo "$as_me:$LINENO: result: yes" >&5
5531echo "${ECHO_T}yes" >&6
5532 else
5533 echo "$as_me:$LINENO: result: no" >&5
5534echo "${ECHO_T}no" >&6
5535 fi
5536
5537
5538 enablestring=
5539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5540echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5541 no_cache=0
5542 # Check whether --enable-snglinst or --disable-snglinst was given.
5543if test "${enable_snglinst+set}" = set; then
5544 enableval="$enable_snglinst"
5545
5546 if test "$enableval" = yes; then
5547 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5548 else
5549 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5550 fi
5551
5552else
5553
5554 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5555 if test "x$LINE" != x ; then
5556 eval "DEFAULT_$LINE"
5557 else
5558 no_cache=1
5559 fi
5560
5561 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5562
5563fi;
5564
5565 eval "$ac_cv_use_snglinst"
5566 if test "$no_cache" != 1; then
5567 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5568 fi
5569
5570 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5571 echo "$as_me:$LINENO: result: yes" >&5
5572echo "${ECHO_T}yes" >&6
5573 else
5574 echo "$as_me:$LINENO: result: no" >&5
5575echo "${ECHO_T}no" >&6
5576 fi
5577
5578
5579 enablestring=
07158944
VZ
5580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5581echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5582 no_cache=0
07158944
VZ
5583 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5584if test "${enable_std_iostreams+set}" = set; then
5585 enableval="$enable_std_iostreams"
a848cd7e
SC
5586
5587 if test "$enableval" = yes; then
07158944 5588 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5589 else
07158944 5590 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5591 fi
5592
5593else
5594
07158944 5595 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5596 if test "x$LINE" != x ; then
5597 eval "DEFAULT_$LINE"
5598 else
5599 no_cache=1
5600 fi
5601
07158944 5602 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5603
5604fi;
5605
07158944 5606 eval "$ac_cv_use_std_iostreams"
a848cd7e 5607 if test "$no_cache" != 1; then
07158944 5608 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5609 fi
5610
07158944 5611 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5612 echo "$as_me:$LINENO: result: yes" >&5
5613echo "${ECHO_T}yes" >&6
5614 else
5615 echo "$as_me:$LINENO: result: no" >&5
5616echo "${ECHO_T}no" >&6
5617 fi
5618
5619
5620 enablestring=
07158944
VZ
5621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5622echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5623 no_cache=0
07158944
VZ
5624 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5625if test "${enable_stdpaths+set}" = set; then
5626 enableval="$enable_stdpaths"
a848cd7e
SC
5627
5628 if test "$enableval" = yes; then
07158944 5629 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5630 else
07158944 5631 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5632 fi
5633
5634else
5635
07158944 5636 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5637 if test "x$LINE" != x ; then
5638 eval "DEFAULT_$LINE"
5639 else
5640 no_cache=1
5641 fi
5642
07158944 5643 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5644
5645fi;
5646
07158944 5647 eval "$ac_cv_use_stdpaths"
a848cd7e 5648 if test "$no_cache" != 1; then
07158944 5649 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5650 fi
5651
07158944 5652 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5653 echo "$as_me:$LINENO: result: yes" >&5
5654echo "${ECHO_T}yes" >&6
5655 else
5656 echo "$as_me:$LINENO: result: no" >&5
5657echo "${ECHO_T}no" >&6
5658 fi
5659
5660
5661 enablestring=
5662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5663echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5664 no_cache=0
5665 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5666if test "${enable_stopwatch+set}" = set; then
5667 enableval="$enable_stopwatch"
5668
5669 if test "$enableval" = yes; then
5670 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5671 else
5672 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5673 fi
5674
5675else
5676
5677 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5678 if test "x$LINE" != x ; then
5679 eval "DEFAULT_$LINE"
5680 else
5681 no_cache=1
5682 fi
5683
5684 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5685
5686fi;
5687
5688 eval "$ac_cv_use_stopwatch"
5689 if test "$no_cache" != 1; then
5690 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5691 fi
5692
5693 if test "$wxUSE_STOPWATCH" = yes; then
5694 echo "$as_me:$LINENO: result: yes" >&5
5695echo "${ECHO_T}yes" >&6
5696 else
5697 echo "$as_me:$LINENO: result: no" >&5
5698echo "${ECHO_T}no" >&6
5699 fi
5700
5701
07158944
VZ
5702 enablestring=
5703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5704echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5705 no_cache=0
5706 # Check whether --enable-streams or --disable-streams was given.
5707if test "${enable_streams+set}" = set; then
5708 enableval="$enable_streams"
5709
5710 if test "$enableval" = yes; then
5711 ac_cv_use_streams='wxUSE_STREAMS=yes'
5712 else
5713 ac_cv_use_streams='wxUSE_STREAMS=no'
5714 fi
5715
5716else
5717
5718 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5719 if test "x$LINE" != x ; then
5720 eval "DEFAULT_$LINE"
5721 else
5722 no_cache=1
5723 fi
5724
5725 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5726
5727fi;
5728
5729 eval "$ac_cv_use_streams"
5730 if test "$no_cache" != 1; then
5731 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5732 fi
5733
5734 if test "$wxUSE_STREAMS" = yes; then
5735 echo "$as_me:$LINENO: result: yes" >&5
5736echo "${ECHO_T}yes" >&6
5737 else
5738 echo "$as_me:$LINENO: result: no" >&5
5739echo "${ECHO_T}no" >&6
5740 fi
5741
5742
a848cd7e
SC
5743 enablestring=
5744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5745echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5746 no_cache=0
5747 # Check whether --enable-system_options or --disable-system_options was given.
5748if test "${enable_system_options+set}" = set; then
5749 enableval="$enable_system_options"
5750
5751 if test "$enableval" = yes; then
5752 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5753 else
5754 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5755 fi
5756
5757else
5758
5759 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5760 if test "x$LINE" != x ; then
5761 eval "DEFAULT_$LINE"
5762 else
5763 no_cache=1
5764 fi
5765
5766 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5767
5768fi;
5769
5770 eval "$ac_cv_use_system_options"
5771 if test "$no_cache" != 1; then
5772 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5773 fi
5774
5775 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5776 echo "$as_me:$LINENO: result: yes" >&5
5777echo "${ECHO_T}yes" >&6
5778 else
5779 echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6
5781 fi
5782
5783
5784 enablestring=
5785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5786echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5787 no_cache=0
5788 # Check whether --enable-textbuf or --disable-textbuf was given.
5789if test "${enable_textbuf+set}" = set; then
5790 enableval="$enable_textbuf"
5791
5792 if test "$enableval" = yes; then
5793 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5794 else
5795 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5796 fi
5797
5798else
5799
5800 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5801 if test "x$LINE" != x ; then
5802 eval "DEFAULT_$LINE"
5803 else
5804 no_cache=1
5805 fi
5806
5807 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5808
5809fi;
5810
5811 eval "$ac_cv_use_textbuf"
5812 if test "$no_cache" != 1; then
5813 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5814 fi
5815
5816 if test "$wxUSE_TEXTBUFFER" = yes; then
5817 echo "$as_me:$LINENO: result: yes" >&5
5818echo "${ECHO_T}yes" >&6
5819 else
5820 echo "$as_me:$LINENO: result: no" >&5
5821echo "${ECHO_T}no" >&6
5822 fi
5823
5824
5825 enablestring=
5826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5827echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5828 no_cache=0
5829 # Check whether --enable-textfile or --disable-textfile was given.
5830if test "${enable_textfile+set}" = set; then
5831 enableval="$enable_textfile"
5832
5833 if test "$enableval" = yes; then
5834 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5835 else
5836 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5837 fi
5838
5839else
5840
5841 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5842 if test "x$LINE" != x ; then
5843 eval "DEFAULT_$LINE"
5844 else
5845 no_cache=1
5846 fi
5847
5848 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5849
5850fi;
5851
5852 eval "$ac_cv_use_textfile"
5853 if test "$no_cache" != 1; then
5854 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5855 fi
5856
5857 if test "$wxUSE_TEXTFILE" = yes; then
5858 echo "$as_me:$LINENO: result: yes" >&5
5859echo "${ECHO_T}yes" >&6
5860 else
5861 echo "$as_me:$LINENO: result: no" >&5
5862echo "${ECHO_T}no" >&6
5863 fi
5864
5865
5866 enablestring=
5867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5868echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5869 no_cache=0
5870 # Check whether --enable-timer or --disable-timer was given.
5871if test "${enable_timer+set}" = set; then
5872 enableval="$enable_timer"
5873
5874 if test "$enableval" = yes; then
5875 ac_cv_use_timer='wxUSE_TIMER=yes'
5876 else
5877 ac_cv_use_timer='wxUSE_TIMER=no'
5878 fi
5879
5880else
5881
5882 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5883 if test "x$LINE" != x ; then
5884 eval "DEFAULT_$LINE"
5885 else
5886 no_cache=1
5887 fi
5888
5889 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5890
5891fi;
5892
5893 eval "$ac_cv_use_timer"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_TIMER" = yes; then
5899 echo "$as_me:$LINENO: result: yes" >&5
5900echo "${ECHO_T}yes" >&6
5901 else
5902 echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904 fi
5905
5906
5907 enablestring=
5908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5909echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5910 no_cache=0
5911 # Check whether --enable-unicode or --disable-unicode was given.
5912if test "${enable_unicode+set}" = set; then
5913 enableval="$enable_unicode"
5914
5915 if test "$enableval" = yes; then
5916 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5917 else
5918 ac_cv_use_unicode='wxUSE_UNICODE=no'
5919 fi
5920
5921else
5922
5923 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5924 if test "x$LINE" != x ; then
5925 eval "DEFAULT_$LINE"
5926 else
5927 no_cache=1
5928 fi
5929
5930 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5931
5932fi;
5933
5934 eval "$ac_cv_use_unicode"
5935 if test "$no_cache" != 1; then
5936 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5937 fi
5938
5939 if test "$wxUSE_UNICODE" = yes; then
5940 echo "$as_me:$LINENO: result: yes" >&5
5941echo "${ECHO_T}yes" >&6
5942 else
5943 echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
5945 fi
5946
5947
5948 enablestring=
5949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5950echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5951 no_cache=0
5952 # Check whether --enable-sound or --disable-sound was given.
5953if test "${enable_sound+set}" = set; then
5954 enableval="$enable_sound"
5955
5956 if test "$enableval" = yes; then
5957 ac_cv_use_sound='wxUSE_SOUND=yes'
5958 else
5959 ac_cv_use_sound='wxUSE_SOUND=no'
5960 fi
5961
5962else
5963
5964 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5965 if test "x$LINE" != x ; then
5966 eval "DEFAULT_$LINE"
5967 else
5968 no_cache=1
5969 fi
5970
5971 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5972
5973fi;
5974
5975 eval "$ac_cv_use_sound"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_SOUND" = yes; then
5981 echo "$as_me:$LINENO: result: yes" >&5
5982echo "${ECHO_T}yes" >&6
5983 else
5984 echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6
5986 fi
5987
5988
3b57de8b
RL
5989 enablestring=
5990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5991echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5992 no_cache=0
5993 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5994if test "${enable_mediactrl+set}" = set; then
5995 enableval="$enable_mediactrl"
5996
5997 if test "$enableval" = yes; then
5998 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5999 else
6000 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6001 fi
6002
6003else
6004
6005 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6006 if test "x$LINE" != x ; then
6007 eval "DEFAULT_$LINE"
6008 else
6009 no_cache=1
6010 fi
6011
6012 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6013
6014fi;
6015
6016 eval "$ac_cv_use_mediactrl"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_MEDIACTRL" = yes; then
6022 echo "$as_me:$LINENO: result: yes" >&5
6023echo "${ECHO_T}yes" >&6
6024 else
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
6027 fi
6028
6029
a848cd7e
SC
6030 enablestring=
6031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6032echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6033 no_cache=0
6034 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6035if test "${enable_wxprintfv+set}" = set; then
6036 enableval="$enable_wxprintfv"
6037
6038 if test "$enableval" = yes; then
6039 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6040 else
6041 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6042 fi
6043
6044else
6045
6046 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6054
6055fi;
6056
6057 eval "$ac_cv_use_wxprintfv"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6063 echo "$as_me:$LINENO: result: yes" >&5
6064echo "${ECHO_T}yes" >&6
6065 else
6066 echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
6068 fi
6069
6070
6071 enablestring=
6072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6073echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6074 no_cache=0
6075 # Check whether --enable-zipstream or --disable-zipstream was given.
6076if test "${enable_zipstream+set}" = set; then
6077 enableval="$enable_zipstream"
6078
6079 if test "$enableval" = yes; then
6080 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6081 else
6082 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6083 fi
6084
6085else
6086
6087 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6088 if test "x$LINE" != x ; then
6089 eval "DEFAULT_$LINE"
6090 else
6091 no_cache=1
6092 fi
6093
6094 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6095
6096fi;
6097
6098 eval "$ac_cv_use_zipstream"
6099 if test "$no_cache" != 1; then
6100 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6101 fi
6102
6103 if test "$wxUSE_ZIPSTREAM" = yes; then
6104 echo "$as_me:$LINENO: result: yes" >&5
6105echo "${ECHO_T}yes" >&6
6106 else
6107 echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6
6109 fi
6110
6111
a848cd7e
SC
6112
6113 enablestring=
6114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6115echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6116 no_cache=0
6117 # Check whether --enable-url or --disable-url was given.
6118if test "${enable_url+set}" = set; then
6119 enableval="$enable_url"
6120
6121 if test "$enableval" = yes; then
6122 ac_cv_use_url='wxUSE_URL=yes'
6123 else
6124 ac_cv_use_url='wxUSE_URL=no'
6125 fi
6126
6127else
6128
6129 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6130 if test "x$LINE" != x ; then
6131 eval "DEFAULT_$LINE"
6132 else
6133 no_cache=1
6134 fi
6135
6136 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6137
6138fi;
6139
6140 eval "$ac_cv_use_url"
6141 if test "$no_cache" != 1; then
6142 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6143 fi
6144
6145 if test "$wxUSE_URL" = yes; then
6146 echo "$as_me:$LINENO: result: yes" >&5
6147echo "${ECHO_T}yes" >&6
6148 else
6149 echo "$as_me:$LINENO: result: no" >&5
6150echo "${ECHO_T}no" >&6
6151 fi
6152
6153
6154 enablestring=
6155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6156echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6157 no_cache=0
6158 # Check whether --enable-protocol or --disable-protocol was given.
6159if test "${enable_protocol+set}" = set; then
6160 enableval="$enable_protocol"
6161
6162 if test "$enableval" = yes; then
6163 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6164 else
6165 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6166 fi
6167
6168else
6169
6170 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6171 if test "x$LINE" != x ; then
6172 eval "DEFAULT_$LINE"
6173 else
6174 no_cache=1
6175 fi
6176
6177 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6178
6179fi;
6180
6181 eval "$ac_cv_use_protocol"
6182 if test "$no_cache" != 1; then
6183 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6184 fi
6185
6186 if test "$wxUSE_PROTOCOL" = yes; then
6187 echo "$as_me:$LINENO: result: yes" >&5
6188echo "${ECHO_T}yes" >&6
6189 else
6190 echo "$as_me:$LINENO: result: no" >&5
6191echo "${ECHO_T}no" >&6
6192 fi
6193
6194
6195 enablestring=
6196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6197echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6198 no_cache=0
6199 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6200if test "${enable_protocol_http+set}" = set; then
6201 enableval="$enable_protocol_http"
6202
6203 if test "$enableval" = yes; then
6204 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6205 else
6206 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6207 fi
6208
6209else
6210
6211 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6212 if test "x$LINE" != x ; then
6213 eval "DEFAULT_$LINE"
6214 else
6215 no_cache=1
6216 fi
6217
6218 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6219
6220fi;
6221
6222 eval "$ac_cv_use_protocol_http"
6223 if test "$no_cache" != 1; then
6224 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6225 fi
6226
6227 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6228 echo "$as_me:$LINENO: result: yes" >&5
6229echo "${ECHO_T}yes" >&6
6230 else
6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
6233 fi
6234
6235
6236 enablestring=
6237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6238echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6239 no_cache=0
6240 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6241if test "${enable_protocol_ftp+set}" = set; then
6242 enableval="$enable_protocol_ftp"
6243
6244 if test "$enableval" = yes; then
6245 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6246 else
6247 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6248 fi
6249
6250else
6251
6252 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6253 if test "x$LINE" != x ; then
6254 eval "DEFAULT_$LINE"
6255 else
6256 no_cache=1
6257 fi
6258
6259 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6260
6261fi;
6262
6263 eval "$ac_cv_use_protocol_ftp"
6264 if test "$no_cache" != 1; then
6265 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6266 fi
6267
6268 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6269 echo "$as_me:$LINENO: result: yes" >&5
6270echo "${ECHO_T}yes" >&6
6271 else
6272 echo "$as_me:$LINENO: result: no" >&5
6273echo "${ECHO_T}no" >&6
6274 fi
6275
6276
6277 enablestring=
6278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6279echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6280 no_cache=0
6281 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6282if test "${enable_protocol_file+set}" = set; then
6283 enableval="$enable_protocol_file"
6284
6285 if test "$enableval" = yes; then
6286 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6287 else
6288 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6289 fi
6290
6291else
6292
6293 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6294 if test "x$LINE" != x ; then
6295 eval "DEFAULT_$LINE"
6296 else
6297 no_cache=1
6298 fi
6299
6300 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6301
6302fi;
6303
6304 eval "$ac_cv_use_protocol_file"
6305 if test "$no_cache" != 1; then
6306 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6307 fi
6308
6309 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6310 echo "$as_me:$LINENO: result: yes" >&5
6311echo "${ECHO_T}yes" >&6
6312 else
6313 echo "$as_me:$LINENO: result: no" >&5
6314echo "${ECHO_T}no" >&6
6315 fi
6316
6317
6318
6319
6320
6321 enablestring=
6322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6323echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6324 no_cache=0
6325 # Check whether --enable-threads or --disable-threads was given.
6326if test "${enable_threads+set}" = set; then
6327 enableval="$enable_threads"
6328
6329 if test "$enableval" = yes; then
6330 ac_cv_use_threads='wxUSE_THREADS=yes'
6331 else
6332 ac_cv_use_threads='wxUSE_THREADS=no'
6333 fi
6334
6335else
6336
6337 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6338 if test "x$LINE" != x ; then
6339 eval "DEFAULT_$LINE"
6340 else
6341 no_cache=1
6342 fi
6343
6344 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6345
6346fi;
6347
6348 eval "$ac_cv_use_threads"
6349 if test "$no_cache" != 1; then
6350 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6351 fi
6352
6353 if test "$wxUSE_THREADS" = yes; then
6354 echo "$as_me:$LINENO: result: yes" >&5
6355echo "${ECHO_T}yes" >&6
6356 else
6357 echo "$as_me:$LINENO: result: no" >&5
6358echo "${ECHO_T}no" >&6
6359 fi
6360
6361
6362if test "$wxUSE_GUI" = "yes"; then
6363
6364
6365
6366 enablestring=
6367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6368echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6369 no_cache=0
6370 # Check whether --enable-docview or --disable-docview was given.
6371if test "${enable_docview+set}" = set; then
6372 enableval="$enable_docview"
6373
6374 if test "$enableval" = yes; then
6375 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6376 else
6377 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6378 fi
6379
6380else
6381
6382 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6383 if test "x$LINE" != x ; then
6384 eval "DEFAULT_$LINE"
6385 else
6386 no_cache=1
6387 fi
6388
6389 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6390
6391fi;
6392
6393 eval "$ac_cv_use_docview"
6394 if test "$no_cache" != 1; then
6395 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6396 fi
6397
6398 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6399 echo "$as_me:$LINENO: result: yes" >&5
6400echo "${ECHO_T}yes" >&6
6401 else
6402 echo "$as_me:$LINENO: result: no" >&5
6403echo "${ECHO_T}no" >&6
6404 fi
6405
6406
6407 enablestring=
6408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6409echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6410 no_cache=0
6411 # Check whether --enable-help or --disable-help was given.
6412if test "${enable_help+set}" = set; then
6413 enableval="$enable_help"
6414
6415 if test "$enableval" = yes; then
6416 ac_cv_use_help='wxUSE_HELP=yes'
6417 else
6418 ac_cv_use_help='wxUSE_HELP=no'
6419 fi
6420
6421else
6422
6423 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6424 if test "x$LINE" != x ; then
6425 eval "DEFAULT_$LINE"
6426 else
6427 no_cache=1
6428 fi
6429
6430 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6431
6432fi;
6433
6434 eval "$ac_cv_use_help"
6435 if test "$no_cache" != 1; then
6436 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6437 fi
6438
6439 if test "$wxUSE_HELP" = yes; then
6440 echo "$as_me:$LINENO: result: yes" >&5
6441echo "${ECHO_T}yes" >&6
6442 else
6443 echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6
6445 fi
6446
6447
6448 enablestring=
6449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6450echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6451 no_cache=0
6452 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6453if test "${enable_mshtmlhelp+set}" = set; then
6454 enableval="$enable_mshtmlhelp"
6455
6456 if test "$enableval" = yes; then
6457 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6458 else
6459 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6460 fi
6461
6462else
6463
6464 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6465 if test "x$LINE" != x ; then
6466 eval "DEFAULT_$LINE"
6467 else
6468 no_cache=1
6469 fi
6470
6471 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6472
6473fi;
6474
6475 eval "$ac_cv_use_mshtmlhelp"
6476 if test "$no_cache" != 1; then
6477 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6478 fi
6479
6480 if test "$wxUSE_MS_HTML_HELP" = yes; then
6481 echo "$as_me:$LINENO: result: yes" >&5
6482echo "${ECHO_T}yes" >&6
6483 else
6484 echo "$as_me:$LINENO: result: no" >&5
6485echo "${ECHO_T}no" >&6
6486 fi
6487
6488
6489 enablestring=
6490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6491echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6492 no_cache=0
6493 # Check whether --enable-html or --disable-html was given.
6494if test "${enable_html+set}" = set; then
6495 enableval="$enable_html"
6496
6497 if test "$enableval" = yes; then
6498 ac_cv_use_html='wxUSE_HTML=yes'
6499 else
6500 ac_cv_use_html='wxUSE_HTML=no'
6501 fi
6502
6503else
6504
6505 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6506 if test "x$LINE" != x ; then
6507 eval "DEFAULT_$LINE"
6508 else
6509 no_cache=1
6510 fi
6511
6512 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6513
6514fi;
6515
6516 eval "$ac_cv_use_html"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_HTML" = yes; then
6522 echo "$as_me:$LINENO: result: yes" >&5
6523echo "${ECHO_T}yes" >&6
6524 else
6525 echo "$as_me:$LINENO: result: no" >&5
6526echo "${ECHO_T}no" >&6
6527 fi
6528
6529
6530 enablestring=
6531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6532echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6533 no_cache=0
6534 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6535if test "${enable_htmlhelp+set}" = set; then
6536 enableval="$enable_htmlhelp"
6537
6538 if test "$enableval" = yes; then
6539 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6540 else
6541 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6542 fi
6543
6544else
6545
6546 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6547 if test "x$LINE" != x ; then
6548 eval "DEFAULT_$LINE"
6549 else
6550 no_cache=1
6551 fi
6552
6553 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6554
6555fi;
6556
6557 eval "$ac_cv_use_htmlhelp"
6558 if test "$no_cache" != 1; then
6559 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6560 fi
6561
6562 if test "$wxUSE_WXHTML_HELP" = yes; then
6563 echo "$as_me:$LINENO: result: yes" >&5
6564echo "${ECHO_T}yes" >&6
6565 else
6566 echo "$as_me:$LINENO: result: no" >&5
6567echo "${ECHO_T}no" >&6
6568 fi
6569
6570
9a8f0513
VS
6571 enablestring=
6572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6573echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6574 no_cache=0
6575 # Check whether --enable-xrc or --disable-xrc was given.
6576if test "${enable_xrc+set}" = set; then
6577 enableval="$enable_xrc"
6578
6579 if test "$enableval" = yes; then
6580 ac_cv_use_xrc='wxUSE_XRC=yes'
6581 else
6582 ac_cv_use_xrc='wxUSE_XRC=no'
6583 fi
6584
6585else
6586
6587 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6588 if test "x$LINE" != x ; then
6589 eval "DEFAULT_$LINE"
6590 else
6591 no_cache=1
6592 fi
6593
6594 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6595
6596fi;
6597
6598 eval "$ac_cv_use_xrc"
6599 if test "$no_cache" != 1; then
6600 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6601 fi
6602
6603 if test "$wxUSE_XRC" = yes; then
6604 echo "$as_me:$LINENO: result: yes" >&5
6605echo "${ECHO_T}yes" >&6
6606 else
6607 echo "$as_me:$LINENO: result: no" >&5
6608echo "${ECHO_T}no" >&6
6609 fi
6610
6611
a848cd7e
SC
6612 enablestring=
6613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6614echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6615 no_cache=0
6616 # Check whether --enable-constraints or --disable-constraints was given.
6617if test "${enable_constraints+set}" = set; then
6618 enableval="$enable_constraints"
6619
6620 if test "$enableval" = yes; then
6621 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6622 else
6623 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6624 fi
6625
6626else
6627
6628 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6629 if test "x$LINE" != x ; then
6630 eval "DEFAULT_$LINE"
6631 else
6632 no_cache=1
6633 fi
6634
6635 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6636
6637fi;
6638
6639 eval "$ac_cv_use_constraints"
6640 if test "$no_cache" != 1; then
6641 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6642 fi
6643
6644 if test "$wxUSE_CONSTRAINTS" = yes; then
6645 echo "$as_me:$LINENO: result: yes" >&5
6646echo "${ECHO_T}yes" >&6
6647 else
6648 echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6
6650 fi
6651
6652
6653 enablestring=
6654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6655echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6656 no_cache=0
6657 # Check whether --enable-printarch or --disable-printarch was given.
6658if test "${enable_printarch+set}" = set; then
6659 enableval="$enable_printarch"
6660
6661 if test "$enableval" = yes; then
6662 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6663 else
6664 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6665 fi
6666
6667else
6668
6669 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6677
6678fi;
6679
6680 eval "$ac_cv_use_printarch"
6681 if test "$no_cache" != 1; then
6682 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6683 fi
6684
6685 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6686 echo "$as_me:$LINENO: result: yes" >&5
6687echo "${ECHO_T}yes" >&6
6688 else
6689 echo "$as_me:$LINENO: result: no" >&5
6690echo "${ECHO_T}no" >&6
6691 fi
6692
6693
6694 enablestring=
6695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6696echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6697 no_cache=0
6698 # Check whether --enable-mdi or --disable-mdi was given.
6699if test "${enable_mdi+set}" = set; then
6700 enableval="$enable_mdi"
6701
6702 if test "$enableval" = yes; then
8a7b1113 6703 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6704 else
8a7b1113 6705 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6706 fi
6707
6708else
6709
8a7b1113 6710 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6711 if test "x$LINE" != x ; then
6712 eval "DEFAULT_$LINE"
6713 else
6714 no_cache=1
6715 fi
6716
8a7b1113 6717 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6718
6719fi;
6720
6721 eval "$ac_cv_use_mdi"
6722 if test "$no_cache" != 1; then
6723 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6724 fi
6725
8a7b1113
VZ
6726 if test "$wxUSE_MDI" = yes; then
6727 echo "$as_me:$LINENO: result: yes" >&5
6728echo "${ECHO_T}yes" >&6
6729 else
6730 echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6
6732 fi
6733
6734
6735 enablestring=
6736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6737echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6738 no_cache=0
6739 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6740if test "${enable_mdidoc+set}" = set; then
6741 enableval="$enable_mdidoc"
6742
6743 if test "$enableval" = yes; then
6744 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6745 else
6746 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6747 fi
6748
6749else
6750
6751 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6752 if test "x$LINE" != x ; then
6753 eval "DEFAULT_$LINE"
6754 else
6755 no_cache=1
6756 fi
6757
6758 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6759
6760fi;
6761
6762 eval "$ac_cv_use_mdidoc"
6763 if test "$no_cache" != 1; then
6764 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6765 fi
6766
a848cd7e
SC
6767 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6768 echo "$as_me:$LINENO: result: yes" >&5
6769echo "${ECHO_T}yes" >&6
6770 else
6771 echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6
6773 fi
6774
6775
6776 enablestring=
6777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6778echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6779 no_cache=0
6780 # Check whether --enable-loggui or --disable-loggui was given.
6781if test "${enable_loggui+set}" = set; then
6782 enableval="$enable_loggui"
6783
6784 if test "$enableval" = yes; then
6785 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6786 else
6787 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6788 fi
6789
6790else
6791
6792 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6793 if test "x$LINE" != x ; then
6794 eval "DEFAULT_$LINE"
6795 else
6796 no_cache=1
6797 fi
6798
6799 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6800
6801fi;
6802
6803 eval "$ac_cv_use_loggui"
6804 if test "$no_cache" != 1; then
6805 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6806 fi
6807
6808 if test "$wxUSE_LOGGUI" = yes; then
6809 echo "$as_me:$LINENO: result: yes" >&5
6810echo "${ECHO_T}yes" >&6
6811 else
6812 echo "$as_me:$LINENO: result: no" >&5
6813echo "${ECHO_T}no" >&6
6814 fi
6815
6816
6817 enablestring=
6818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6819echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6820 no_cache=0
6821 # Check whether --enable-logwin or --disable-logwin was given.
6822if test "${enable_logwin+set}" = set; then
6823 enableval="$enable_logwin"
6824
6825 if test "$enableval" = yes; then
6826 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6827 else
6828 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6829 fi
6830
6831else
6832
6833 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6834 if test "x$LINE" != x ; then
6835 eval "DEFAULT_$LINE"
6836 else
6837 no_cache=1
6838 fi
6839
6840 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6841
6842fi;
6843
6844 eval "$ac_cv_use_logwin"
6845 if test "$no_cache" != 1; then
6846 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6847 fi
6848
6849 if test "$wxUSE_LOGWINDOW" = yes; then
6850 echo "$as_me:$LINENO: result: yes" >&5
6851echo "${ECHO_T}yes" >&6
6852 else
6853 echo "$as_me:$LINENO: result: no" >&5
6854echo "${ECHO_T}no" >&6
6855 fi
6856
6857
6858 enablestring=
6859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6860echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6861 no_cache=0
6862 # Check whether --enable-logdialog or --disable-logdialog was given.
6863if test "${enable_logdialog+set}" = set; then
6864 enableval="$enable_logdialog"
6865
6866 if test "$enableval" = yes; then
6867 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6868 else
6869 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6870 fi
6871
6872else
6873
6874 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6875 if test "x$LINE" != x ; then
6876 eval "DEFAULT_$LINE"
6877 else
6878 no_cache=1
6879 fi
6880
6881 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6882
6883fi;
6884
6885 eval "$ac_cv_use_logdialog"
6886 if test "$no_cache" != 1; then
6887 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6888 fi
6889
6890 if test "$wxUSE_LOGDIALOG" = yes; then
6891 echo "$as_me:$LINENO: result: yes" >&5
6892echo "${ECHO_T}yes" >&6
6893 else
6894 echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6
6896 fi
6897
6898
646b6ec1
VS
6899 enablestring=
6900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6901echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6902 no_cache=0
6903 # Check whether --enable-webkit or --disable-webkit was given.
6904if test "${enable_webkit+set}" = set; then
6905 enableval="$enable_webkit"
6906
6907 if test "$enableval" = yes; then
6908 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6909 else
6910 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6911 fi
6912
6913else
6914
6915 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6916 if test "x$LINE" != x ; then
6917 eval "DEFAULT_$LINE"
6918 else
6919 no_cache=1
6920 fi
6921
6922 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6923
6924fi;
6925
6926 eval "$ac_cv_use_webkit"
6927 if test "$no_cache" != 1; then
6928 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6929 fi
6930
6931 if test "$wxUSE_WEBKIT" = yes; then
6932 echo "$as_me:$LINENO: result: yes" >&5
6933echo "${ECHO_T}yes" >&6
6934 else
6935 echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6
6937 fi
6938
6939
a848cd7e
SC
6940
6941 enablestring=
6942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6943echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6944 no_cache=0
6945 # Check whether --enable-postscript or --disable-postscript was given.
6946if test "${enable_postscript+set}" = set; then
6947 enableval="$enable_postscript"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6951 else
6952 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6953 fi
6954
6955else
6956
6957 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6965
6966fi;
6967
6968 eval "$ac_cv_use_postscript"
6969 if test "$no_cache" != 1; then
6970 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6971 fi
6972
6973 if test "$wxUSE_POSTSCRIPT" = yes; then
6974 echo "$as_me:$LINENO: result: yes" >&5
6975echo "${ECHO_T}yes" >&6
6976 else
6977 echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6
6979 fi
6980
6981
6982
6983
6984
6985 enablestring=
6986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6987echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6988 no_cache=0
6989 # Check whether --enable-prologio or --disable-prologio was given.
6990if test "${enable_prologio+set}" = set; then
6991 enableval="$enable_prologio"
6992
6993 if test "$enableval" = yes; then
6994 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6995 else
6996 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6997 fi
6998
6999else
7000
7001 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7002 if test "x$LINE" != x ; then
7003 eval "DEFAULT_$LINE"
7004 else
7005 no_cache=1
7006 fi
7007
7008 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7009
7010fi;
7011
7012 eval "$ac_cv_use_prologio"
7013 if test "$no_cache" != 1; then
7014 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7015 fi
7016
7017 if test "$wxUSE_PROLOGIO" = yes; then
7018 echo "$as_me:$LINENO: result: yes" >&5
7019echo "${ECHO_T}yes" >&6
7020 else
7021 echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6
7023 fi
7024
7025
7026 enablestring=
7027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7028echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7029 no_cache=0
7030 # Check whether --enable-resources or --disable-resources was given.
7031if test "${enable_resources+set}" = set; then
7032 enableval="$enable_resources"
7033
7034 if test "$enableval" = yes; then
7035 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7036 else
7037 ac_cv_use_resources='wxUSE_RESOURCES=no'
7038 fi
7039
7040else
7041
7042 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7043 if test "x$LINE" != x ; then
7044 eval "DEFAULT_$LINE"
7045 else
7046 no_cache=1
7047 fi
7048
7049 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7050
7051fi;
7052
7053 eval "$ac_cv_use_resources"
7054 if test "$no_cache" != 1; then
7055 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7056 fi
7057
7058 if test "$wxUSE_RESOURCES" = yes; then
7059 echo "$as_me:$LINENO: result: yes" >&5
7060echo "${ECHO_T}yes" >&6
7061 else
7062 echo "$as_me:$LINENO: result: no" >&5
7063echo "${ECHO_T}no" >&6
7064 fi
7065
7066
7067
7068
7069 enablestring=
7070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7071echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7072 no_cache=0
7073 # Check whether --enable-clipboard or --disable-clipboard was given.
7074if test "${enable_clipboard+set}" = set; then
7075 enableval="$enable_clipboard"
7076
7077 if test "$enableval" = yes; then
7078 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7079 else
7080 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7081 fi
7082
7083else
7084
7085 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7086 if test "x$LINE" != x ; then
7087 eval "DEFAULT_$LINE"
7088 else
7089 no_cache=1
7090 fi
7091
7092 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7093
7094fi;
7095
7096 eval "$ac_cv_use_clipboard"
7097 if test "$no_cache" != 1; then
7098 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7099 fi
7100
7101 if test "$wxUSE_CLIPBOARD" = yes; then
7102 echo "$as_me:$LINENO: result: yes" >&5
7103echo "${ECHO_T}yes" >&6
7104 else
7105 echo "$as_me:$LINENO: result: no" >&5
7106echo "${ECHO_T}no" >&6
7107 fi
7108
7109
7110 enablestring=
7111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7112echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7113 no_cache=0
7114 # Check whether --enable-dnd or --disable-dnd was given.
7115if test "${enable_dnd+set}" = set; then
7116 enableval="$enable_dnd"
7117
7118 if test "$enableval" = yes; then
7119 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7120 else
7121 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7122 fi
7123
7124else
7125
7126 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7127 if test "x$LINE" != x ; then
7128 eval "DEFAULT_$LINE"
7129 else
7130 no_cache=1
7131 fi
7132
7133 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7134
7135fi;
7136
7137 eval "$ac_cv_use_dnd"
7138 if test "$no_cache" != 1; then
7139 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7140 fi
7141
7142 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7143 echo "$as_me:$LINENO: result: yes" >&5
7144echo "${ECHO_T}yes" >&6
7145 else
7146 echo "$as_me:$LINENO: result: no" >&5
7147echo "${ECHO_T}no" >&6
7148 fi
7149
7150
7151 enablestring=
7152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7153echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7154 no_cache=0
7155 # Check whether --enable-metafile or --disable-metafile was given.
7156if test "${enable_metafile+set}" = set; then
7157 enableval="$enable_metafile"
7158
7159 if test "$enableval" = yes; then
7160 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7161 else
7162 ac_cv_use_metafile='wxUSE_METAFILE=no'
7163 fi
7164
7165else
7166
7167 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7168 if test "x$LINE" != x ; then
7169 eval "DEFAULT_$LINE"
7170 else
7171 no_cache=1
7172 fi
7173
7174 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7175
7176fi;
7177
7178 eval "$ac_cv_use_metafile"
7179 if test "$no_cache" != 1; then
7180 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7181 fi
7182
7183 if test "$wxUSE_METAFILE" = yes; then
7184 echo "$as_me:$LINENO: result: yes" >&5
7185echo "${ECHO_T}yes" >&6
7186 else
7187 echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6
7189 fi
7190
7191
7192
7193
7194
7195 enablestring=
7196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7197echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7198 no_cache=0
7199 # Check whether --enable-controls or --disable-controls was given.
7200if test "${enable_controls+set}" = set; then
7201 enableval="$enable_controls"
7202
7203 if test "$enableval" = yes; then
7204 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7205 else
7206 ac_cv_use_controls='wxUSE_CONTROLS=no'
7207 fi
7208
7209else
7210
7211 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7212 if test "x$LINE" != x ; then
7213 eval "DEFAULT_$LINE"
7214 else
7215 no_cache=1
7216 fi
7217
7218 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7219
7220fi;
7221
7222 eval "$ac_cv_use_controls"
7223 if test "$no_cache" != 1; then
7224 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7225 fi
7226
7227 if test "$wxUSE_CONTROLS" = yes; then
7228 echo "$as_me:$LINENO: result: yes" >&5
7229echo "${ECHO_T}yes" >&6
7230 else
7231 echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
7233 fi
7234
7235
7236if test "$wxUSE_CONTROLS" = "yes"; then
7237 DEFAULT_wxUSE_ACCEL=yes
7238 DEFAULT_wxUSE_BMPBUTTON=yes
7239 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7240 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7241 DEFAULT_wxUSE_CARET=yes
7242 DEFAULT_wxUSE_COMBOBOX=yes
7243 DEFAULT_wxUSE_CHECKBOX=yes
7244 DEFAULT_wxUSE_CHECKLISTBOX=yes
7245 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7246 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7247 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7248 DEFAULT_wxUSE_GAUGE=yes
7249 DEFAULT_wxUSE_GRID=yes
7250 DEFAULT_wxUSE_IMAGLIST=yes
7251 DEFAULT_wxUSE_LISTBOOK=yes
7252 DEFAULT_wxUSE_LISTBOX=yes
7253 DEFAULT_wxUSE_LISTCTRL=yes
7254 DEFAULT_wxUSE_NOTEBOOK=yes
7255 DEFAULT_wxUSE_RADIOBOX=yes
7256 DEFAULT_wxUSE_RADIOBTN=yes
7257 DEFAULT_wxUSE_SASH=yes
7258 DEFAULT_wxUSE_SCROLLBAR=yes
7259 DEFAULT_wxUSE_SLIDER=yes
7260 DEFAULT_wxUSE_SPINBTN=yes
7261 DEFAULT_wxUSE_SPINCTRL=yes
7262 DEFAULT_wxUSE_SPLITTER=yes
7263 DEFAULT_wxUSE_STATBMP=yes
7264 DEFAULT_wxUSE_STATBOX=yes
7265 DEFAULT_wxUSE_STATLINE=yes
7266 DEFAULT_wxUSE_STATUSBAR=yes
7267 DEFAULT_wxUSE_TAB_DIALOG=yes
7268 DEFAULT_wxUSE_TOGGLEBTN=yes
7269 DEFAULT_wxUSE_TOOLBAR=yes
7270 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7271 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7272 DEFAULT_wxUSE_TOOLTIPS=yes
7273 DEFAULT_wxUSE_TREECTRL=yes
7274 DEFAULT_wxUSE_POPUPWIN=yes
7275 DEFAULT_wxUSE_TIPWINDOW=yes
7276elif test "$wxUSE_CONTROLS" = "no"; then
7277 DEFAULT_wxUSE_ACCEL=no
7278 DEFAULT_wxUSE_BMPBUTTON=no
7279 DEFAULT_wxUSE_BUTTON=no
7280 DEFAULT_wxUSE_CALCTRL=no
7281 DEFAULT_wxUSE_CARET=no
7282 DEFAULT_wxUSE_COMBOBOX=no
7283 DEFAULT_wxUSE_CHECKBOX=no
7284 DEFAULT_wxUSE_CHECKLISTBOX=no
7285 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7286 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7287 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7288 DEFAULT_wxUSE_GAUGE=no
7289 DEFAULT_wxUSE_GRID=no
7290 DEFAULT_wxUSE_IMAGLIST=no
7291 DEFAULT_wxUSE_LISTBOOK=no
7292 DEFAULT_wxUSE_LISTBOX=no
7293 DEFAULT_wxUSE_LISTCTRL=no
7294 DEFAULT_wxUSE_NOTEBOOK=no
7295 DEFAULT_wxUSE_RADIOBOX=no
7296 DEFAULT_wxUSE_RADIOBTN=no
7297 DEFAULT_wxUSE_SASH=no
7298 DEFAULT_wxUSE_SCROLLBAR=no
7299 DEFAULT_wxUSE_SLIDER=no
7300 DEFAULT_wxUSE_SPINBTN=no
7301 DEFAULT_wxUSE_SPINCTRL=no
7302 DEFAULT_wxUSE_SPLITTER=no
7303 DEFAULT_wxUSE_STATBMP=no
7304 DEFAULT_wxUSE_STATBOX=no
7305 DEFAULT_wxUSE_STATLINE=no
7306 DEFAULT_wxUSE_STATUSBAR=no
7307 DEFAULT_wxUSE_TAB_DIALOG=no
7308 DEFAULT_wxUSE_TOGGLEBTN=no
7309 DEFAULT_wxUSE_TOOLBAR=no
7310 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7311 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7312 DEFAULT_wxUSE_TOOLTIPS=no
7313 DEFAULT_wxUSE_TREECTRL=no
7314 DEFAULT_wxUSE_POPUPWIN=no
7315 DEFAULT_wxUSE_TIPWINDOW=no
7316fi
7317
a848cd7e
SC
7318
7319 enablestring=
7320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7321echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7322 no_cache=0
7323 # Check whether --enable-accel or --disable-accel was given.
7324if test "${enable_accel+set}" = set; then
7325 enableval="$enable_accel"
7326
7327 if test "$enableval" = yes; then
7328 ac_cv_use_accel='wxUSE_ACCEL=yes'
7329 else
7330 ac_cv_use_accel='wxUSE_ACCEL=no'
7331 fi
7332
7333else
7334
7335 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7336 if test "x$LINE" != x ; then
7337 eval "DEFAULT_$LINE"
7338 else
7339 no_cache=1
7340 fi
7341
7342 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7343
7344fi;
7345
7346 eval "$ac_cv_use_accel"
7347 if test "$no_cache" != 1; then
7348 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7349 fi
7350
7351 if test "$wxUSE_ACCEL" = yes; then
7352 echo "$as_me:$LINENO: result: yes" >&5
7353echo "${ECHO_T}yes" >&6
7354 else
7355 echo "$as_me:$LINENO: result: no" >&5
7356echo "${ECHO_T}no" >&6
7357 fi
7358
7359
7360 enablestring=
7361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7362echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7363 no_cache=0
7364 # Check whether --enable-button or --disable-button was given.
7365if test "${enable_button+set}" = set; then
7366 enableval="$enable_button"
7367
7368 if test "$enableval" = yes; then
7369 ac_cv_use_button='wxUSE_BUTTON=yes'
7370 else
7371 ac_cv_use_button='wxUSE_BUTTON=no'
7372 fi
7373
7374else
7375
7376 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7377 if test "x$LINE" != x ; then
7378 eval "DEFAULT_$LINE"
7379 else
7380 no_cache=1
7381 fi
7382
7383 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7384
7385fi;
7386
7387 eval "$ac_cv_use_button"
7388 if test "$no_cache" != 1; then
7389 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7390 fi
7391
7392 if test "$wxUSE_BUTTON" = yes; then
7393 echo "$as_me:$LINENO: result: yes" >&5
7394echo "${ECHO_T}yes" >&6
7395 else
7396 echo "$as_me:$LINENO: result: no" >&5
7397echo "${ECHO_T}no" >&6
7398 fi
7399
7400
7401 enablestring=
7402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7403echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7404 no_cache=0
7405 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7406if test "${enable_bmpbutton+set}" = set; then
7407 enableval="$enable_bmpbutton"
7408
7409 if test "$enableval" = yes; then
7410 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7411 else
7412 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7413 fi
7414
7415else
7416
7417 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7418 if test "x$LINE" != x ; then
7419 eval "DEFAULT_$LINE"
7420 else
7421 no_cache=1
7422 fi
7423
7424 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7425
7426fi;
7427
7428 eval "$ac_cv_use_bmpbutton"
7429 if test "$no_cache" != 1; then
7430 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7431 fi
7432
7433 if test "$wxUSE_BMPBUTTON" = yes; then
7434 echo "$as_me:$LINENO: result: yes" >&5
7435echo "${ECHO_T}yes" >&6
7436 else
7437 echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6
7439 fi
7440
7441
7442 enablestring=
7443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7444echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7445 no_cache=0
7446 # Check whether --enable-calendar or --disable-calendar was given.
7447if test "${enable_calendar+set}" = set; then
7448 enableval="$enable_calendar"
7449
7450 if test "$enableval" = yes; then
7451 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7452 else
7453 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7454 fi
7455
7456else
7457
7458 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7459 if test "x$LINE" != x ; then
7460 eval "DEFAULT_$LINE"
7461 else
7462 no_cache=1
7463 fi
7464
7465 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7466
7467fi;
7468
7469 eval "$ac_cv_use_calendar"
7470 if test "$no_cache" != 1; then
7471 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7472 fi
7473
7474 if test "$wxUSE_CALCTRL" = yes; then
7475 echo "$as_me:$LINENO: result: yes" >&5
7476echo "${ECHO_T}yes" >&6
7477 else
7478 echo "$as_me:$LINENO: result: no" >&5
7479echo "${ECHO_T}no" >&6
7480 fi
7481
7482
7483 enablestring=
7484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7485echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7486 no_cache=0
7487 # Check whether --enable-caret or --disable-caret was given.
7488if test "${enable_caret+set}" = set; then
7489 enableval="$enable_caret"
7490
7491 if test "$enableval" = yes; then
7492 ac_cv_use_caret='wxUSE_CARET=yes'
7493 else
7494 ac_cv_use_caret='wxUSE_CARET=no'
7495 fi
7496
7497else
7498
7499 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7500 if test "x$LINE" != x ; then
7501 eval "DEFAULT_$LINE"
7502 else
7503 no_cache=1
7504 fi
7505
7506 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7507
7508fi;
7509
7510 eval "$ac_cv_use_caret"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_CARET" = yes; then
7516 echo "$as_me:$LINENO: result: yes" >&5
7517echo "${ECHO_T}yes" >&6
7518 else
7519 echo "$as_me:$LINENO: result: no" >&5
7520echo "${ECHO_T}no" >&6
7521 fi
7522
7523
7524 enablestring=
7525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7526echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7527 no_cache=0
7528 # Check whether --enable-checkbox or --disable-checkbox was given.
7529if test "${enable_checkbox+set}" = set; then
7530 enableval="$enable_checkbox"
7531
7532 if test "$enableval" = yes; then
7533 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7534 else
7535 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7536 fi
7537
7538else
7539
7540 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7541 if test "x$LINE" != x ; then
7542 eval "DEFAULT_$LINE"
7543 else
7544 no_cache=1
7545 fi
7546
7547 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7548
7549fi;
7550
7551 eval "$ac_cv_use_checkbox"
7552 if test "$no_cache" != 1; then
7553 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7554 fi
7555
7556 if test "$wxUSE_CHECKBOX" = yes; then
7557 echo "$as_me:$LINENO: result: yes" >&5
7558echo "${ECHO_T}yes" >&6
7559 else
7560 echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6
7562 fi
7563
7564
7565 enablestring=
7566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7567echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7568 no_cache=0
7569 # Check whether --enable-checklst or --disable-checklst was given.
7570if test "${enable_checklst+set}" = set; then
7571 enableval="$enable_checklst"
7572
7573 if test "$enableval" = yes; then
7574 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7575 else
7576 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7577 fi
7578
7579else
7580
7581 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7582 if test "x$LINE" != x ; then
7583 eval "DEFAULT_$LINE"
7584 else
7585 no_cache=1
7586 fi
7587
7588 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7589
7590fi;
7591
7592 eval "$ac_cv_use_checklst"
7593 if test "$no_cache" != 1; then
7594 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7595 fi
7596
7597 if test "$wxUSE_CHECKLST" = yes; then
7598 echo "$as_me:$LINENO: result: yes" >&5
7599echo "${ECHO_T}yes" >&6
7600 else
7601 echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6
7603 fi
7604
7605
7606 enablestring=
7607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7608echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7609 no_cache=0
7610 # Check whether --enable-choice or --disable-choice was given.
7611if test "${enable_choice+set}" = set; then
7612 enableval="$enable_choice"
7613
7614 if test "$enableval" = yes; then
7615 ac_cv_use_choice='wxUSE_CHOICE=yes'
7616 else
7617 ac_cv_use_choice='wxUSE_CHOICE=no'
7618 fi
7619
7620else
7621
7622 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7623 if test "x$LINE" != x ; then
7624 eval "DEFAULT_$LINE"
7625 else
7626 no_cache=1
7627 fi
7628
7629 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7630
7631fi;
7632
7633 eval "$ac_cv_use_choice"
7634 if test "$no_cache" != 1; then
7635 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7636 fi
7637
7638 if test "$wxUSE_CHOICE" = yes; then
7639 echo "$as_me:$LINENO: result: yes" >&5
7640echo "${ECHO_T}yes" >&6
7641 else
7642 echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6
7644 fi
7645
7646
92bbdbcd
WS
7647 enablestring=
7648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7649echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7650 no_cache=0
7651 # Check whether --enable-choicebook or --disable-choicebook was given.
7652if test "${enable_choicebook+set}" = set; then
7653 enableval="$enable_choicebook"
7654
7655 if test "$enableval" = yes; then
7656 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7657 else
7658 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7659 fi
7660
7661else
7662
7663 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7664 if test "x$LINE" != x ; then
7665 eval "DEFAULT_$LINE"
7666 else
7667 no_cache=1
7668 fi
7669
7670 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7671
7672fi;
7673
7674 eval "$ac_cv_use_choicebook"
7675 if test "$no_cache" != 1; then
7676 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7677 fi
7678
7679 if test "$wxUSE_CHOICEBOOK" = yes; then
7680 echo "$as_me:$LINENO: result: yes" >&5
7681echo "${ECHO_T}yes" >&6
7682 else
7683 echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6
7685 fi
7686
7687
a848cd7e
SC
7688 enablestring=
7689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7690echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7691 no_cache=0
7692 # Check whether --enable-combobox or --disable-combobox was given.
7693if test "${enable_combobox+set}" = set; then
7694 enableval="$enable_combobox"
7695
7696 if test "$enableval" = yes; then
7697 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7698 else
7699 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7700 fi
7701
7702else
7703
7704 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7705 if test "x$LINE" != x ; then
7706 eval "DEFAULT_$LINE"
7707 else
7708 no_cache=1
7709 fi
7710
7711 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7712
7713fi;
7714
7715 eval "$ac_cv_use_combobox"
7716 if test "$no_cache" != 1; then
7717 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7718 fi
7719
7720 if test "$wxUSE_COMBOBOX" = yes; then
7721 echo "$as_me:$LINENO: result: yes" >&5
7722echo "${ECHO_T}yes" >&6
7723 else
7724 echo "$as_me:$LINENO: result: no" >&5
7725echo "${ECHO_T}no" >&6
7726 fi
7727
7728
da98e9be
VZ
7729 enablestring=
7730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7731echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7732 no_cache=0
7733 # Check whether --enable-datepick or --disable-datepick was given.
7734if test "${enable_datepick+set}" = set; then
7735 enableval="$enable_datepick"
7736
7737 if test "$enableval" = yes; then
7738 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7739 else
7740 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7741 fi
7742
7743else
7744
7745 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7746 if test "x$LINE" != x ; then
7747 eval "DEFAULT_$LINE"
7748 else
7749 no_cache=1
7750 fi
7751
7752 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7753
7754fi;
7755
7756 eval "$ac_cv_use_datepick"
7757 if test "$no_cache" != 1; then
7758 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7759 fi
7760
7761 if test "$wxUSE_DATEPICKCTRL" = yes; then
7762 echo "$as_me:$LINENO: result: yes" >&5
7763echo "${ECHO_T}yes" >&6
7764 else
7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
7767 fi
7768
7769
a848cd7e
SC
7770 enablestring=
7771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7772echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7773 no_cache=0
7774 # Check whether --enable-display or --disable-display was given.
7775if test "${enable_display+set}" = set; then
7776 enableval="$enable_display"
7777
7778 if test "$enableval" = yes; then
7779 ac_cv_use_display='wxUSE_DISPLAY=yes'
7780 else
7781 ac_cv_use_display='wxUSE_DISPLAY=no'
7782 fi
7783
7784else
7785
7786 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
7793 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7794
7795fi;
7796
7797 eval "$ac_cv_use_display"
7798 if test "$no_cache" != 1; then
7799 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7800 fi
7801
7802 if test "$wxUSE_DISPLAY" = yes; then
7803 echo "$as_me:$LINENO: result: yes" >&5
7804echo "${ECHO_T}yes" >&6
7805 else
7806 echo "$as_me:$LINENO: result: no" >&5
7807echo "${ECHO_T}no" >&6
7808 fi
7809
7810
7811 enablestring=
7812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7813echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7814 no_cache=0
7815 # Check whether --enable-gauge or --disable-gauge was given.
7816if test "${enable_gauge+set}" = set; then
7817 enableval="$enable_gauge"
7818
7819 if test "$enableval" = yes; then
7820 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7821 else
7822 ac_cv_use_gauge='wxUSE_GAUGE=no'
7823 fi
7824
7825else
7826
7827 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7828 if test "x$LINE" != x ; then
7829 eval "DEFAULT_$LINE"
7830 else
7831 no_cache=1
7832 fi
7833
7834 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7835
7836fi;
7837
7838 eval "$ac_cv_use_gauge"
7839 if test "$no_cache" != 1; then
7840 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7841 fi
7842
7843 if test "$wxUSE_GAUGE" = yes; then
7844 echo "$as_me:$LINENO: result: yes" >&5
7845echo "${ECHO_T}yes" >&6
7846 else
7847 echo "$as_me:$LINENO: result: no" >&5
7848echo "${ECHO_T}no" >&6
7849 fi
7850
7851
7852 enablestring=
7853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7854echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7855 no_cache=0
7856 # Check whether --enable-grid or --disable-grid was given.
7857if test "${enable_grid+set}" = set; then
7858 enableval="$enable_grid"
7859
7860 if test "$enableval" = yes; then
7861 ac_cv_use_grid='wxUSE_GRID=yes'
7862 else
7863 ac_cv_use_grid='wxUSE_GRID=no'
7864 fi
7865
7866else
7867
7868 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7869 if test "x$LINE" != x ; then
7870 eval "DEFAULT_$LINE"
7871 else
7872 no_cache=1
7873 fi
7874
7875 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7876
7877fi;
7878
7879 eval "$ac_cv_use_grid"
7880 if test "$no_cache" != 1; then
7881 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7882 fi
7883
7884 if test "$wxUSE_GRID" = yes; then
7885 echo "$as_me:$LINENO: result: yes" >&5
7886echo "${ECHO_T}yes" >&6
7887 else
7888 echo "$as_me:$LINENO: result: no" >&5
7889echo "${ECHO_T}no" >&6
7890 fi
7891
7892
7893 enablestring=
7894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7895echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7896 no_cache=0
7897 # Check whether --enable-imaglist or --disable-imaglist was given.
7898if test "${enable_imaglist+set}" = set; then
7899 enableval="$enable_imaglist"
7900
7901 if test "$enableval" = yes; then
7902 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7903 else
7904 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7905 fi
7906
7907else
7908
7909 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7910 if test "x$LINE" != x ; then
7911 eval "DEFAULT_$LINE"
7912 else
7913 no_cache=1
7914 fi
7915
7916 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7917
7918fi;
7919
7920 eval "$ac_cv_use_imaglist"
7921 if test "$no_cache" != 1; then
7922 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7923 fi
7924
7925 if test "$wxUSE_IMAGLIST" = yes; then
7926 echo "$as_me:$LINENO: result: yes" >&5
7927echo "${ECHO_T}yes" >&6
7928 else
7929 echo "$as_me:$LINENO: result: no" >&5
7930echo "${ECHO_T}no" >&6
7931 fi
7932
7933
7934 enablestring=
7935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7936echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7937 no_cache=0
7938 # Check whether --enable-listbook or --disable-listbook was given.
7939if test "${enable_listbook+set}" = set; then
7940 enableval="$enable_listbook"
7941
7942 if test "$enableval" = yes; then
7943 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7944 else
7945 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7946 fi
7947
7948else
7949
7950 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7951 if test "x$LINE" != x ; then
7952 eval "DEFAULT_$LINE"
7953 else
7954 no_cache=1
7955 fi
7956
7957 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7958
7959fi;
7960
7961 eval "$ac_cv_use_listbook"
7962 if test "$no_cache" != 1; then
7963 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7964 fi
7965
7966 if test "$wxUSE_LISTBOOK" = yes; then
7967 echo "$as_me:$LINENO: result: yes" >&5
7968echo "${ECHO_T}yes" >&6
7969 else
7970 echo "$as_me:$LINENO: result: no" >&5
7971echo "${ECHO_T}no" >&6
7972 fi
7973
7974
7975 enablestring=
7976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7977echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7978 no_cache=0
7979 # Check whether --enable-listbox or --disable-listbox was given.
7980if test "${enable_listbox+set}" = set; then
7981 enableval="$enable_listbox"
7982
7983 if test "$enableval" = yes; then
7984 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7985 else
7986 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7987 fi
7988
7989else
7990
7991 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7992 if test "x$LINE" != x ; then
7993 eval "DEFAULT_$LINE"
7994 else
7995 no_cache=1
7996 fi
7997
7998 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7999
8000fi;
8001
8002 eval "$ac_cv_use_listbox"
8003 if test "$no_cache" != 1; then
8004 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8005 fi
8006
8007 if test "$wxUSE_LISTBOX" = yes; then
8008 echo "$as_me:$LINENO: result: yes" >&5
8009echo "${ECHO_T}yes" >&6
8010 else
8011 echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6
8013 fi
8014
8015
8016 enablestring=
8017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8018echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8019 no_cache=0
8020 # Check whether --enable-listctrl or --disable-listctrl was given.
8021if test "${enable_listctrl+set}" = set; then
8022 enableval="$enable_listctrl"
8023
8024 if test "$enableval" = yes; then
8025 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8026 else
8027 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8028 fi
8029
8030else
8031
8032 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8033 if test "x$LINE" != x ; then
8034 eval "DEFAULT_$LINE"
8035 else
8036 no_cache=1
8037 fi
8038
8039 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8040
8041fi;
8042
8043 eval "$ac_cv_use_listctrl"
8044 if test "$no_cache" != 1; then
8045 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8046 fi
8047
8048 if test "$wxUSE_LISTCTRL" = yes; then
8049 echo "$as_me:$LINENO: result: yes" >&5
8050echo "${ECHO_T}yes" >&6
8051 else
8052 echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6
8054 fi
8055
8056
8057 enablestring=
8058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8059echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8060 no_cache=0
8061 # Check whether --enable-notebook or --disable-notebook was given.
8062if test "${enable_notebook+set}" = set; then
8063 enableval="$enable_notebook"
8064
8065 if test "$enableval" = yes; then
8066 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8067 else
8068 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8069 fi
8070
8071else
8072
8073 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8081
8082fi;
8083
8084 eval "$ac_cv_use_notebook"
8085 if test "$no_cache" != 1; then
8086 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8087 fi
8088
8089 if test "$wxUSE_NOTEBOOK" = yes; then
8090 echo "$as_me:$LINENO: result: yes" >&5
8091echo "${ECHO_T}yes" >&6
8092 else
8093 echo "$as_me:$LINENO: result: no" >&5
8094echo "${ECHO_T}no" >&6
8095 fi
8096
8097
8098 enablestring=
8099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8100echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8101 no_cache=0
8102 # Check whether --enable-radiobox or --disable-radiobox was given.
8103if test "${enable_radiobox+set}" = set; then
8104 enableval="$enable_radiobox"
8105
8106 if test "$enableval" = yes; then
8107 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8108 else
8109 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8110 fi
8111
8112else
8113
8114 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8115 if test "x$LINE" != x ; then
8116 eval "DEFAULT_$LINE"
8117 else
8118 no_cache=1
8119 fi
8120
8121 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8122
8123fi;
8124
8125 eval "$ac_cv_use_radiobox"
8126 if test "$no_cache" != 1; then
8127 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8128 fi
8129
8130 if test "$wxUSE_RADIOBOX" = yes; then
8131 echo "$as_me:$LINENO: result: yes" >&5
8132echo "${ECHO_T}yes" >&6
8133 else
8134 echo "$as_me:$LINENO: result: no" >&5
8135echo "${ECHO_T}no" >&6
8136 fi
8137
8138
8139 enablestring=
8140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8141echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8142 no_cache=0
8143 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8144if test "${enable_radiobtn+set}" = set; then
8145 enableval="$enable_radiobtn"
8146
8147 if test "$enableval" = yes; then
8148 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8149 else
8150 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8151 fi
8152
8153else
8154
8155 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8156 if test "x$LINE" != x ; then
8157 eval "DEFAULT_$LINE"
8158 else
8159 no_cache=1
8160 fi
8161
8162 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8163
8164fi;
8165
8166 eval "$ac_cv_use_radiobtn"
8167 if test "$no_cache" != 1; then
8168 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8169 fi
8170
8171 if test "$wxUSE_RADIOBTN" = yes; then
8172 echo "$as_me:$LINENO: result: yes" >&5
8173echo "${ECHO_T}yes" >&6
8174 else
8175 echo "$as_me:$LINENO: result: no" >&5
8176echo "${ECHO_T}no" >&6
8177 fi
8178
8179
8180 enablestring=
8181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8182echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8183 no_cache=0
8184 # Check whether --enable-sash or --disable-sash was given.
8185if test "${enable_sash+set}" = set; then
8186 enableval="$enable_sash"
8187
8188 if test "$enableval" = yes; then
8189 ac_cv_use_sash='wxUSE_SASH=yes'
8190 else
8191 ac_cv_use_sash='wxUSE_SASH=no'
8192 fi
8193
8194else
8195
8196 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8197 if test "x$LINE" != x ; then
8198 eval "DEFAULT_$LINE"
8199 else
8200 no_cache=1
8201 fi
8202
8203 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8204
8205fi;
8206
8207 eval "$ac_cv_use_sash"
8208 if test "$no_cache" != 1; then
8209 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8210 fi
8211
8212 if test "$wxUSE_SASH" = yes; then
8213 echo "$as_me:$LINENO: result: yes" >&5
8214echo "${ECHO_T}yes" >&6
8215 else
8216 echo "$as_me:$LINENO: result: no" >&5
8217echo "${ECHO_T}no" >&6
8218 fi
8219
8220
8221 enablestring=
8222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8223echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8224 no_cache=0
8225 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8226if test "${enable_scrollbar+set}" = set; then
8227 enableval="$enable_scrollbar"
8228
8229 if test "$enableval" = yes; then
8230 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8231 else
8232 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8233 fi
8234
8235else
8236
8237 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8238 if test "x$LINE" != x ; then
8239 eval "DEFAULT_$LINE"
8240 else
8241 no_cache=1
8242 fi
8243
8244 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8245
8246fi;
8247
8248 eval "$ac_cv_use_scrollbar"
8249 if test "$no_cache" != 1; then
8250 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8251 fi
8252
8253 if test "$wxUSE_SCROLLBAR" = yes; then
8254 echo "$as_me:$LINENO: result: yes" >&5
8255echo "${ECHO_T}yes" >&6
8256 else
8257 echo "$as_me:$LINENO: result: no" >&5
8258echo "${ECHO_T}no" >&6
8259 fi
8260
8261
8262 enablestring=
8263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8264echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8265 no_cache=0
8266 # Check whether --enable-slider or --disable-slider was given.
8267if test "${enable_slider+set}" = set; then
8268 enableval="$enable_slider"
8269
8270 if test "$enableval" = yes; then
8271 ac_cv_use_slider='wxUSE_SLIDER=yes'
8272 else
8273 ac_cv_use_slider='wxUSE_SLIDER=no'
8274 fi
8275
8276else
8277
8278 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8279 if test "x$LINE" != x ; then
8280 eval "DEFAULT_$LINE"
8281 else
8282 no_cache=1
8283 fi
8284
8285 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8286
8287fi;
8288
8289 eval "$ac_cv_use_slider"
8290 if test "$no_cache" != 1; then
8291 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8292 fi
8293
8294 if test "$wxUSE_SLIDER" = yes; then
8295 echo "$as_me:$LINENO: result: yes" >&5
8296echo "${ECHO_T}yes" >&6
8297 else
8298 echo "$as_me:$LINENO: result: no" >&5
8299echo "${ECHO_T}no" >&6
8300 fi
8301
8302
8303 enablestring=
8304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8305echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8306 no_cache=0
8307 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8308if test "${enable_spinbtn+set}" = set; then
8309 enableval="$enable_spinbtn"
8310
8311 if test "$enableval" = yes; then
8312 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8313 else
8314 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8315 fi
8316
8317else
8318
8319 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8320 if test "x$LINE" != x ; then
8321 eval "DEFAULT_$LINE"
8322 else
8323 no_cache=1
8324 fi
8325
8326 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8327
8328fi;
8329
8330 eval "$ac_cv_use_spinbtn"
8331 if test "$no_cache" != 1; then
8332 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8333 fi
8334
8335 if test "$wxUSE_SPINBTN" = yes; then
8336 echo "$as_me:$LINENO: result: yes" >&5
8337echo "${ECHO_T}yes" >&6
8338 else
8339 echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6
8341 fi
8342
8343
8344 enablestring=
8345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8346echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8347 no_cache=0
8348 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8349if test "${enable_spinctrl+set}" = set; then
8350 enableval="$enable_spinctrl"
8351
8352 if test "$enableval" = yes; then
8353 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8354 else
8355 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8356 fi
8357
8358else
8359
8360 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8361 if test "x$LINE" != x ; then
8362 eval "DEFAULT_$LINE"
8363 else
8364 no_cache=1
8365 fi
8366
8367 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8368
8369fi;
8370
8371 eval "$ac_cv_use_spinctrl"
8372 if test "$no_cache" != 1; then
8373 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8374 fi
8375
8376 if test "$wxUSE_SPINCTRL" = yes; then
8377 echo "$as_me:$LINENO: result: yes" >&5
8378echo "${ECHO_T}yes" >&6
8379 else
8380 echo "$as_me:$LINENO: result: no" >&5
8381echo "${ECHO_T}no" >&6
8382 fi
8383
8384
8385 enablestring=
8386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8387echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8388 no_cache=0
8389 # Check whether --enable-splitter or --disable-splitter was given.
8390if test "${enable_splitter+set}" = set; then
8391 enableval="$enable_splitter"
8392
8393 if test "$enableval" = yes; then
8394 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8395 else
8396 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8397 fi
8398
8399else
8400
8401 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8402 if test "x$LINE" != x ; then
8403 eval "DEFAULT_$LINE"
8404 else
8405 no_cache=1
8406 fi
8407
8408 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8409
8410fi;
8411
8412 eval "$ac_cv_use_splitter"
8413 if test "$no_cache" != 1; then
8414 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8415 fi
8416
8417 if test "$wxUSE_SPLITTER" = yes; then
8418 echo "$as_me:$LINENO: result: yes" >&5
8419echo "${ECHO_T}yes" >&6
8420 else
8421 echo "$as_me:$LINENO: result: no" >&5
8422echo "${ECHO_T}no" >&6
8423 fi
8424
8425
8426 enablestring=
8427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8428echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8429 no_cache=0
8430 # Check whether --enable-statbmp or --disable-statbmp was given.
8431if test "${enable_statbmp+set}" = set; then
8432 enableval="$enable_statbmp"
8433
8434 if test "$enableval" = yes; then
8435 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8436 else
8437 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8438 fi
8439
8440else
8441
8442 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8443 if test "x$LINE" != x ; then
8444 eval "DEFAULT_$LINE"
8445 else
8446 no_cache=1
8447 fi
8448
8449 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8450
8451fi;
8452
8453 eval "$ac_cv_use_statbmp"
8454 if test "$no_cache" != 1; then
8455 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8456 fi
8457
8458 if test "$wxUSE_STATBMP" = yes; then
8459 echo "$as_me:$LINENO: result: yes" >&5
8460echo "${ECHO_T}yes" >&6
8461 else
8462 echo "$as_me:$LINENO: result: no" >&5
8463echo "${ECHO_T}no" >&6
8464 fi
8465
8466
8467 enablestring=
8468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8469echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8470 no_cache=0
8471 # Check whether --enable-statbox or --disable-statbox was given.
8472if test "${enable_statbox+set}" = set; then
8473 enableval="$enable_statbox"
8474
8475 if test "$enableval" = yes; then
8476 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8477 else
8478 ac_cv_use_statbox='wxUSE_STATBOX=no'
8479 fi
8480
8481else
8482
8483 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8484 if test "x$LINE" != x ; then
8485 eval "DEFAULT_$LINE"
8486 else
8487 no_cache=1
8488 fi
8489
8490 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8491
8492fi;
8493
8494 eval "$ac_cv_use_statbox"
8495 if test "$no_cache" != 1; then
8496 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8497 fi
8498
8499 if test "$wxUSE_STATBOX" = yes; then
8500 echo "$as_me:$LINENO: result: yes" >&5
8501echo "${ECHO_T}yes" >&6
8502 else
8503 echo "$as_me:$LINENO: result: no" >&5
8504echo "${ECHO_T}no" >&6
8505 fi
8506
8507
8508 enablestring=
8509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8510echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8511 no_cache=0
8512 # Check whether --enable-statline or --disable-statline was given.
8513if test "${enable_statline+set}" = set; then
8514 enableval="$enable_statline"
8515
8516 if test "$enableval" = yes; then
8517 ac_cv_use_statline='wxUSE_STATLINE=yes'
8518 else
8519 ac_cv_use_statline='wxUSE_STATLINE=no'
8520 fi
8521
8522else
8523
8524 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8525 if test "x$LINE" != x ; then
8526 eval "DEFAULT_$LINE"
8527 else
8528 no_cache=1
8529 fi
8530
8531 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8532
8533fi;
8534
8535 eval "$ac_cv_use_statline"
8536 if test "$no_cache" != 1; then
8537 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8538 fi
8539
8540 if test "$wxUSE_STATLINE" = yes; then
8541 echo "$as_me:$LINENO: result: yes" >&5
8542echo "${ECHO_T}yes" >&6
8543 else
8544 echo "$as_me:$LINENO: result: no" >&5
8545echo "${ECHO_T}no" >&6
8546 fi
8547
8548
8549 enablestring=
8550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8551echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8552 no_cache=0
8553 # Check whether --enable-stattext or --disable-stattext was given.
8554if test "${enable_stattext+set}" = set; then
8555 enableval="$enable_stattext"
8556
8557 if test "$enableval" = yes; then
8558 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8559 else
8560 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8561 fi
8562
8563else
8564
8565 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8566 if test "x$LINE" != x ; then
8567 eval "DEFAULT_$LINE"
8568 else
8569 no_cache=1
8570 fi
8571
8572 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8573
8574fi;
8575
8576 eval "$ac_cv_use_stattext"
8577 if test "$no_cache" != 1; then
8578 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8579 fi
8580
8581 if test "$wxUSE_STATTEXT" = yes; then
8582 echo "$as_me:$LINENO: result: yes" >&5
8583echo "${ECHO_T}yes" >&6
8584 else
8585 echo "$as_me:$LINENO: result: no" >&5
8586echo "${ECHO_T}no" >&6
8587 fi
8588
8589
8590 enablestring=
8591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8592echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8593 no_cache=0
8594 # Check whether --enable-statusbar or --disable-statusbar was given.
8595if test "${enable_statusbar+set}" = set; then
8596 enableval="$enable_statusbar"
8597
8598 if test "$enableval" = yes; then
8599 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8600 else
8601 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8602 fi
8603
8604else
8605
8606 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8607 if test "x$LINE" != x ; then
8608 eval "DEFAULT_$LINE"
8609 else
8610 no_cache=1
8611 fi
8612
8613 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8614
8615fi;
8616
8617 eval "$ac_cv_use_statusbar"
8618 if test "$no_cache" != 1; then
8619 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8620 fi
8621
8622 if test "$wxUSE_STATUSBAR" = yes; then
8623 echo "$as_me:$LINENO: result: yes" >&5
8624echo "${ECHO_T}yes" >&6
8625 else
8626 echo "$as_me:$LINENO: result: no" >&5
8627echo "${ECHO_T}no" >&6
8628 fi
8629
8630
8631 enablestring=
8632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8633echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8634 no_cache=0
8635 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8636if test "${enable_tabdialog+set}" = set; then
8637 enableval="$enable_tabdialog"
8638
8639 if test "$enableval" = yes; then
8640 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8641 else
8642 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8643 fi
8644
8645else
8646
8647 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8648 if test "x$LINE" != x ; then
8649 eval "DEFAULT_$LINE"
8650 else
8651 no_cache=1
8652 fi
8653
8654 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8655
8656fi;
8657
8658 eval "$ac_cv_use_tabdialog"
8659 if test "$no_cache" != 1; then
8660 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8661 fi
8662
8663 if test "$wxUSE_TABDIALOG" = yes; then
8664 echo "$as_me:$LINENO: result: yes" >&5
8665echo "${ECHO_T}yes" >&6
8666 else
8667 echo "$as_me:$LINENO: result: no" >&5
8668echo "${ECHO_T}no" >&6
8669 fi
8670
8671
8672 enablestring=
8673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8674echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8675 no_cache=0
8676 # Check whether --enable-textctrl or --disable-textctrl was given.
8677if test "${enable_textctrl+set}" = set; then
8678 enableval="$enable_textctrl"
8679
8680 if test "$enableval" = yes; then
8681 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8682 else
8683 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8684 fi
8685
8686else
8687
8688 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8689 if test "x$LINE" != x ; then
8690 eval "DEFAULT_$LINE"
8691 else
8692 no_cache=1
8693 fi
8694
8695 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8696
8697fi;
8698
8699 eval "$ac_cv_use_textctrl"
8700 if test "$no_cache" != 1; then
8701 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8702 fi
8703
8704 if test "$wxUSE_TEXTCTRL" = yes; then
8705 echo "$as_me:$LINENO: result: yes" >&5
8706echo "${ECHO_T}yes" >&6
8707 else
8708 echo "$as_me:$LINENO: result: no" >&5
8709echo "${ECHO_T}no" >&6
8710 fi
8711
8712
8713 enablestring=
8714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8715echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8716 no_cache=0
8717 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8718if test "${enable_togglebtn+set}" = set; then
8719 enableval="$enable_togglebtn"
8720
8721 if test "$enableval" = yes; then
8722 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8723 else
8724 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8725 fi
8726
8727else
8728
8729 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8730 if test "x$LINE" != x ; then
8731 eval "DEFAULT_$LINE"
8732 else
8733 no_cache=1
8734 fi
8735
8736 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8737
8738fi;
8739
8740 eval "$ac_cv_use_togglebtn"
8741 if test "$no_cache" != 1; then
8742 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8743 fi
8744
8745 if test "$wxUSE_TOGGLEBTN" = yes; then
8746 echo "$as_me:$LINENO: result: yes" >&5
8747echo "${ECHO_T}yes" >&6
8748 else
8749 echo "$as_me:$LINENO: result: no" >&5
8750echo "${ECHO_T}no" >&6
8751 fi
8752
8753
8754 enablestring=
8755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8756echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8757 no_cache=0
8758 # Check whether --enable-toolbar or --disable-toolbar was given.
8759if test "${enable_toolbar+set}" = set; then
8760 enableval="$enable_toolbar"
8761
8762 if test "$enableval" = yes; then
8763 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8764 else
8765 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8766 fi
8767
8768else
8769
8770 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8771 if test "x$LINE" != x ; then
8772 eval "DEFAULT_$LINE"
8773 else
8774 no_cache=1
8775 fi
8776
8777 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8778
8779fi;
8780
8781 eval "$ac_cv_use_toolbar"
8782 if test "$no_cache" != 1; then
8783 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8784 fi
8785
8786 if test "$wxUSE_TOOLBAR" = yes; then
8787 echo "$as_me:$LINENO: result: yes" >&5
8788echo "${ECHO_T}yes" >&6
8789 else
8790 echo "$as_me:$LINENO: result: no" >&5
8791echo "${ECHO_T}no" >&6
8792 fi
8793
8794
8795 enablestring=
8796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8797echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8798 no_cache=0
8799 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8800if test "${enable_tbarnative+set}" = set; then
8801 enableval="$enable_tbarnative"
8802
8803 if test "$enableval" = yes; then
8804 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8805 else
8806 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8807 fi
8808
8809else
8810
8811 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8812 if test "x$LINE" != x ; then
8813 eval "DEFAULT_$LINE"
8814 else
8815 no_cache=1
8816 fi
8817
8818 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8819
8820fi;
8821
8822 eval "$ac_cv_use_tbarnative"
8823 if test "$no_cache" != 1; then
8824 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8825 fi
8826
8827 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8828 echo "$as_me:$LINENO: result: yes" >&5
8829echo "${ECHO_T}yes" >&6
8830 else
8831 echo "$as_me:$LINENO: result: no" >&5
8832echo "${ECHO_T}no" >&6
8833 fi
8834
8835
8836 enablestring=
8837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8838echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8839 no_cache=0
8840 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8841if test "${enable_tbarsmpl+set}" = set; then
8842 enableval="$enable_tbarsmpl"
8843
8844 if test "$enableval" = yes; then
8845 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8846 else
8847 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8848 fi
8849
8850else
8851
8852 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8853 if test "x$LINE" != x ; then
8854 eval "DEFAULT_$LINE"
8855 else
8856 no_cache=1
8857 fi
8858
8859 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8860
8861fi;
8862
8863 eval "$ac_cv_use_tbarsmpl"
8864 if test "$no_cache" != 1; then
8865 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8866 fi
8867
8868 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8869 echo "$as_me:$LINENO: result: yes" >&5
8870echo "${ECHO_T}yes" >&6
8871 else
8872 echo "$as_me:$LINENO: result: no" >&5
8873echo "${ECHO_T}no" >&6
8874 fi
8875
8876
8877 enablestring=
8878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8879echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8880 no_cache=0
8881 # Check whether --enable-treectrl or --disable-treectrl was given.
8882if test "${enable_treectrl+set}" = set; then
8883 enableval="$enable_treectrl"
8884
8885 if test "$enableval" = yes; then
8886 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8887 else
8888 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8889 fi
8890
8891else
8892
8893 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8894 if test "x$LINE" != x ; then
8895 eval "DEFAULT_$LINE"
8896 else
8897 no_cache=1
8898 fi
8899
8900 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8901
8902fi;
8903
8904 eval "$ac_cv_use_treectrl"
8905 if test "$no_cache" != 1; then
8906 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8907 fi
8908
8909 if test "$wxUSE_TREECTRL" = yes; then
8910 echo "$as_me:$LINENO: result: yes" >&5
8911echo "${ECHO_T}yes" >&6
8912 else
8913 echo "$as_me:$LINENO: result: no" >&5
8914echo "${ECHO_T}no" >&6
8915 fi
8916
8917
8918 enablestring=
8919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8920echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8921 no_cache=0
8922 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8923if test "${enable_tipwindow+set}" = set; then
8924 enableval="$enable_tipwindow"
8925
8926 if test "$enableval" = yes; then
8927 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8928 else
8929 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8930 fi
8931
8932else
8933
8934 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8935 if test "x$LINE" != x ; then
8936 eval "DEFAULT_$LINE"
8937 else
8938 no_cache=1
8939 fi
8940
8941 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8942
8943fi;
8944
8945 eval "$ac_cv_use_tipwindow"
8946 if test "$no_cache" != 1; then
8947 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8948 fi
8949
8950 if test "$wxUSE_TIPWINDOW" = yes; then
8951 echo "$as_me:$LINENO: result: yes" >&5
8952echo "${ECHO_T}yes" >&6
8953 else
8954 echo "$as_me:$LINENO: result: no" >&5
8955echo "${ECHO_T}no" >&6
8956 fi
8957
8958
8959 enablestring=
8960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8961echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8962 no_cache=0
8963 # Check whether --enable-popupwin or --disable-popupwin was given.
8964if test "${enable_popupwin+set}" = set; then
8965 enableval="$enable_popupwin"
8966
8967 if test "$enableval" = yes; then
8968 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8969 else
8970 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8971 fi
8972
8973else
8974
8975 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8976 if test "x$LINE" != x ; then
8977 eval "DEFAULT_$LINE"
8978 else
8979 no_cache=1
8980 fi
8981
8982 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8983
8984fi;
8985
8986 eval "$ac_cv_use_popupwin"
8987 if test "$no_cache" != 1; then
8988 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8989 fi
8990
8991 if test "$wxUSE_POPUPWIN" = yes; then
8992 echo "$as_me:$LINENO: result: yes" >&5
8993echo "${ECHO_T}yes" >&6
8994 else
8995 echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
8997 fi
8998
8999
9000
9001
9002 enablestring=
9003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9004echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9005 no_cache=0
9006 # Check whether --enable-commondlg or --disable-commondlg was given.
9007if test "${enable_commondlg+set}" = set; then
9008 enableval="$enable_commondlg"
9009
9010 if test "$enableval" = yes; then
9011 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9012 else
9013 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9014 fi
9015
9016else
9017
9018 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9019 if test "x$LINE" != x ; then
9020 eval "DEFAULT_$LINE"
9021 else
9022 no_cache=1
9023 fi
9024
9025 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9026
9027fi;
9028
9029 eval "$ac_cv_use_commondlg"
9030 if test "$no_cache" != 1; then
9031 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9032 fi
9033
9034 if test "$wxUSE_COMMONDLGS" = yes; then
9035 echo "$as_me:$LINENO: result: yes" >&5
9036echo "${ECHO_T}yes" >&6
9037 else
9038 echo "$as_me:$LINENO: result: no" >&5
9039echo "${ECHO_T}no" >&6
9040 fi
9041
9042
9043 enablestring=
9044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9045echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9046 no_cache=0
9047 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9048if test "${enable_choicedlg+set}" = set; then
9049 enableval="$enable_choicedlg"
9050
9051 if test "$enableval" = yes; then
9052 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9053 else
9054 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9055 fi
9056
9057else
9058
9059 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9060 if test "x$LINE" != x ; then
9061 eval "DEFAULT_$LINE"
9062 else
9063 no_cache=1
9064 fi
9065
9066 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9067
9068fi;
9069
9070 eval "$ac_cv_use_choicedlg"
9071 if test "$no_cache" != 1; then
9072 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9073 fi
9074
9075 if test "$wxUSE_CHOICEDLG" = yes; then
9076 echo "$as_me:$LINENO: result: yes" >&5
9077echo "${ECHO_T}yes" >&6
9078 else
9079 echo "$as_me:$LINENO: result: no" >&5
9080echo "${ECHO_T}no" >&6
9081 fi
9082
9083
9084 enablestring=
9085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9086echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9087 no_cache=0
9088 # Check whether --enable-coldlg or --disable-coldlg was given.
9089if test "${enable_coldlg+set}" = set; then
9090 enableval="$enable_coldlg"
9091
9092 if test "$enableval" = yes; then
9093 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9094 else
9095 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9096 fi
9097
9098else
9099
9100 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9101 if test "x$LINE" != x ; then
9102 eval "DEFAULT_$LINE"
9103 else
9104 no_cache=1
9105 fi
9106
9107 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9108
9109fi;
9110
9111 eval "$ac_cv_use_coldlg"
9112 if test "$no_cache" != 1; then
9113 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9114 fi
9115
9116 if test "$wxUSE_COLOURDLG" = yes; then
9117 echo "$as_me:$LINENO: result: yes" >&5
9118echo "${ECHO_T}yes" >&6
9119 else
9120 echo "$as_me:$LINENO: result: no" >&5
9121echo "${ECHO_T}no" >&6
9122 fi
9123
9124
9125 enablestring=
9126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9127echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9128 no_cache=0
9129 # Check whether --enable-filedlg or --disable-filedlg was given.
9130if test "${enable_filedlg+set}" = set; then
9131 enableval="$enable_filedlg"
9132
9133 if test "$enableval" = yes; then
9134 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9135 else
9136 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9137 fi
9138
9139else
9140
9141 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9142 if test "x$LINE" != x ; then
9143 eval "DEFAULT_$LINE"
9144 else
9145 no_cache=1
9146 fi
9147
9148 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9149
9150fi;
9151
9152 eval "$ac_cv_use_filedlg"
9153 if test "$no_cache" != 1; then
9154 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9155 fi
9156
9157 if test "$wxUSE_FILEDLG" = yes; then
9158 echo "$as_me:$LINENO: result: yes" >&5
9159echo "${ECHO_T}yes" >&6
9160 else
9161 echo "$as_me:$LINENO: result: no" >&5
9162echo "${ECHO_T}no" >&6
9163 fi
9164
9165
9166 enablestring=
9167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9168echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9169 no_cache=0
9170 # Check whether --enable-finddlg or --disable-finddlg was given.
9171if test "${enable_finddlg+set}" = set; then
9172 enableval="$enable_finddlg"
9173
9174 if test "$enableval" = yes; then
9175 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9176 else
9177 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9178 fi
9179
9180else
9181
9182 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9183 if test "x$LINE" != x ; then
9184 eval "DEFAULT_$LINE"
9185 else
9186 no_cache=1
9187 fi
9188
9189 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9190
9191fi;
9192
9193 eval "$ac_cv_use_finddlg"
9194 if test "$no_cache" != 1; then
9195 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9196 fi
9197
9198 if test "$wxUSE_FINDREPLDLG" = yes; then
9199 echo "$as_me:$LINENO: result: yes" >&5
9200echo "${ECHO_T}yes" >&6
9201 else
9202 echo "$as_me:$LINENO: result: no" >&5
9203echo "${ECHO_T}no" >&6
9204 fi
9205
9206
9207 enablestring=
9208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9209echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9210 no_cache=0
9211 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9212if test "${enable_fontdlg+set}" = set; then
9213 enableval="$enable_fontdlg"
9214
9215 if test "$enableval" = yes; then
9216 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9217 else
9218 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9219 fi
9220
9221else
9222
9223 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9224 if test "x$LINE" != x ; then
9225 eval "DEFAULT_$LINE"
9226 else
9227 no_cache=1
9228 fi
9229
9230 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9231
9232fi;
9233
9234 eval "$ac_cv_use_fontdlg"
9235 if test "$no_cache" != 1; then
9236 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9237 fi
9238
9239 if test "$wxUSE_FONTDLG" = yes; then
9240 echo "$as_me:$LINENO: result: yes" >&5
9241echo "${ECHO_T}yes" >&6
9242 else
9243 echo "$as_me:$LINENO: result: no" >&5
9244echo "${ECHO_T}no" >&6
9245 fi
9246
9247
9248 enablestring=
9249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9250echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9251 no_cache=0
9252 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9253if test "${enable_dirdlg+set}" = set; then
9254 enableval="$enable_dirdlg"
9255
9256 if test "$enableval" = yes; then
9257 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9258 else
9259 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9260 fi
9261
9262else
9263
9264 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9265 if test "x$LINE" != x ; then
9266 eval "DEFAULT_$LINE"
9267 else
9268 no_cache=1
9269 fi
9270
9271 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9272
9273fi;
9274
9275 eval "$ac_cv_use_dirdlg"
9276 if test "$no_cache" != 1; then
9277 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9278 fi
9279
9280 if test "$wxUSE_DIRDLG" = yes; then
9281 echo "$as_me:$LINENO: result: yes" >&5
9282echo "${ECHO_T}yes" >&6
9283 else
9284 echo "$as_me:$LINENO: result: no" >&5
9285echo "${ECHO_T}no" >&6
9286 fi
9287
9288
9289 enablestring=
9290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9291echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9292 no_cache=0
9293 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9294if test "${enable_msgdlg+set}" = set; then
9295 enableval="$enable_msgdlg"
9296
9297 if test "$enableval" = yes; then
9298 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9299 else
9300 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9301 fi
9302
9303else
9304
9305 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9306 if test "x$LINE" != x ; then
9307 eval "DEFAULT_$LINE"
9308 else
9309 no_cache=1
9310 fi
9311
9312 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9313
9314fi;
9315
9316 eval "$ac_cv_use_msgdlg"
9317 if test "$no_cache" != 1; then
9318 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9319 fi
9320
9321 if test "$wxUSE_MSGDLG" = yes; then
9322 echo "$as_me:$LINENO: result: yes" >&5
9323echo "${ECHO_T}yes" >&6
9324 else
9325 echo "$as_me:$LINENO: result: no" >&5
9326echo "${ECHO_T}no" >&6
9327 fi
9328
9329
9330 enablestring=
9331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9332echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9333 no_cache=0
9334 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9335if test "${enable_numberdlg+set}" = set; then
9336 enableval="$enable_numberdlg"
9337
9338 if test "$enableval" = yes; then
9339 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9340 else
9341 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9342 fi
9343
9344else
9345
9346 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9347 if test "x$LINE" != x ; then
9348 eval "DEFAULT_$LINE"
9349 else
9350 no_cache=1
9351 fi
9352
9353 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9354
9355fi;
9356
9357 eval "$ac_cv_use_numberdlg"
9358 if test "$no_cache" != 1; then
9359 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9360 fi
9361
9362 if test "$wxUSE_NUMBERDLG" = yes; then
9363 echo "$as_me:$LINENO: result: yes" >&5
9364echo "${ECHO_T}yes" >&6
9365 else
9366 echo "$as_me:$LINENO: result: no" >&5
9367echo "${ECHO_T}no" >&6
9368 fi
9369
9370
9371 enablestring=
9372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9373echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9374 no_cache=0
9375 # Check whether --enable-splash or --disable-splash was given.
9376if test "${enable_splash+set}" = set; then
9377 enableval="$enable_splash"
9378
9379 if test "$enableval" = yes; then
9380 ac_cv_use_splash='wxUSE_SPLASH=yes'
9381 else
9382 ac_cv_use_splash='wxUSE_SPLASH=no'
9383 fi
9384
9385else
9386
9387 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9388 if test "x$LINE" != x ; then
9389 eval "DEFAULT_$LINE"
9390 else
9391 no_cache=1
9392 fi
9393
9394 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9395
9396fi;
9397
9398 eval "$ac_cv_use_splash"
9399 if test "$no_cache" != 1; then
9400 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9401 fi
9402
9403 if test "$wxUSE_SPLASH" = yes; then
9404 echo "$as_me:$LINENO: result: yes" >&5
9405echo "${ECHO_T}yes" >&6
9406 else
9407 echo "$as_me:$LINENO: result: no" >&5
9408echo "${ECHO_T}no" >&6
9409 fi
9410
9411
9412 enablestring=
9413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9414echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9415 no_cache=0
9416 # Check whether --enable-textdlg or --disable-textdlg was given.
9417if test "${enable_textdlg+set}" = set; then
9418 enableval="$enable_textdlg"
9419
9420 if test "$enableval" = yes; then
9421 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9422 else
9423 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9424 fi
9425
9426else
9427
9428 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9429 if test "x$LINE" != x ; then
9430 eval "DEFAULT_$LINE"
9431 else
9432 no_cache=1
9433 fi
9434
9435 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9436
9437fi;
9438
9439 eval "$ac_cv_use_textdlg"
9440 if test "$no_cache" != 1; then
9441 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9442 fi
9443
9444 if test "$wxUSE_TEXTDLG" = yes; then
9445 echo "$as_me:$LINENO: result: yes" >&5
9446echo "${ECHO_T}yes" >&6
9447 else
9448 echo "$as_me:$LINENO: result: no" >&5
9449echo "${ECHO_T}no" >&6
9450 fi
9451
9452
9453 enablestring=
9454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9455echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9456 no_cache=0
9457 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9458if test "${enable_tipdlg+set}" = set; then
9459 enableval="$enable_tipdlg"
9460
9461 if test "$enableval" = yes; then
9462 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9463 else
9464 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9465 fi
9466
9467else
9468
9469 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9470 if test "x$LINE" != x ; then
9471 eval "DEFAULT_$LINE"
9472 else
9473 no_cache=1
9474 fi
9475
9476 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9477
9478fi;
9479
9480 eval "$ac_cv_use_tipdlg"
9481 if test "$no_cache" != 1; then
9482 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9483 fi
9484
9485 if test "$wxUSE_STARTUP_TIPS" = yes; then
9486 echo "$as_me:$LINENO: result: yes" >&5
9487echo "${ECHO_T}yes" >&6
9488 else
9489 echo "$as_me:$LINENO: result: no" >&5
9490echo "${ECHO_T}no" >&6
9491 fi
9492
9493
9494 enablestring=
9495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9496echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9497 no_cache=0
9498 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9499if test "${enable_progressdlg+set}" = set; then
9500 enableval="$enable_progressdlg"
9501
9502 if test "$enableval" = yes; then
9503 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9504 else
9505 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9506 fi
9507
9508else
9509
9510 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9511 if test "x$LINE" != x ; then
9512 eval "DEFAULT_$LINE"
9513 else
9514 no_cache=1
9515 fi
9516
9517 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9518
9519fi;
9520
9521 eval "$ac_cv_use_progressdlg"
9522 if test "$no_cache" != 1; then
9523 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9524 fi
9525
9526 if test "$wxUSE_PROGRESSDLG" = yes; then
9527 echo "$as_me:$LINENO: result: yes" >&5
9528echo "${ECHO_T}yes" >&6
9529 else
9530 echo "$as_me:$LINENO: result: no" >&5
9531echo "${ECHO_T}no" >&6
9532 fi
9533
9534
9535 enablestring=
9536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9537echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9538 no_cache=0
9539 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9540if test "${enable_wizarddlg+set}" = set; then
9541 enableval="$enable_wizarddlg"
9542
9543 if test "$enableval" = yes; then
9544 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9545 else
9546 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9547 fi
9548
9549else
9550
9551 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9552 if test "x$LINE" != x ; then
9553 eval "DEFAULT_$LINE"
9554 else
9555 no_cache=1
9556 fi
9557
9558 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9559
9560fi;
9561
9562 eval "$ac_cv_use_wizarddlg"
9563 if test "$no_cache" != 1; then
9564 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9565 fi
9566
9567 if test "$wxUSE_WIZARDDLG" = yes; then
9568 echo "$as_me:$LINENO: result: yes" >&5
9569echo "${ECHO_T}yes" >&6
9570 else
9571 echo "$as_me:$LINENO: result: no" >&5
9572echo "${ECHO_T}no" >&6
9573 fi
9574
9575
9576
9577
9578 enablestring=
9579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9580echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9581 no_cache=0
9582 # Check whether --enable-menus or --disable-menus was given.
9583if test "${enable_menus+set}" = set; then
9584 enableval="$enable_menus"
9585
9586 if test "$enableval" = yes; then
9587 ac_cv_use_menus='wxUSE_MENUS=yes'
9588 else
9589 ac_cv_use_menus='wxUSE_MENUS=no'
9590 fi
9591
9592else
9593
9594 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9595 if test "x$LINE" != x ; then
9596 eval "DEFAULT_$LINE"
9597 else
9598 no_cache=1
9599 fi
9600
9601 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9602
9603fi;
9604
9605 eval "$ac_cv_use_menus"
9606 if test "$no_cache" != 1; then
9607 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9608 fi
9609
9610 if test "$wxUSE_MENUS" = yes; then
9611 echo "$as_me:$LINENO: result: yes" >&5
9612echo "${ECHO_T}yes" >&6
9613 else
9614 echo "$as_me:$LINENO: result: no" >&5
9615echo "${ECHO_T}no" >&6
9616 fi
9617
9618
9619 enablestring=
9620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9621echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9622 no_cache=0
9623 # Check whether --enable-miniframe or --disable-miniframe was given.
9624if test "${enable_miniframe+set}" = set; then
9625 enableval="$enable_miniframe"
9626
9627 if test "$enableval" = yes; then
9628 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9629 else
9630 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9631 fi
9632
9633else
9634
9635 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9636 if test "x$LINE" != x ; then
9637 eval "DEFAULT_$LINE"
9638 else
9639 no_cache=1
9640 fi
9641
9642 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9643
9644fi;
9645
9646 eval "$ac_cv_use_miniframe"
9647 if test "$no_cache" != 1; then
9648 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9649 fi
9650
9651 if test "$wxUSE_MINIFRAME" = yes; then
9652 echo "$as_me:$LINENO: result: yes" >&5
9653echo "${ECHO_T}yes" >&6
9654 else
9655 echo "$as_me:$LINENO: result: no" >&5
9656echo "${ECHO_T}no" >&6
9657 fi
9658
9659
9660 enablestring=
9661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9662echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9663 no_cache=0
9664 # Check whether --enable-tooltips or --disable-tooltips was given.
9665if test "${enable_tooltips+set}" = set; then
9666 enableval="$enable_tooltips"
9667
9668 if test "$enableval" = yes; then
9669 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9670 else
9671 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9672 fi
9673
9674else
9675
9676 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9677 if test "x$LINE" != x ; then
9678 eval "DEFAULT_$LINE"
9679 else
9680 no_cache=1
9681 fi
9682
9683 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9684
9685fi;
9686
9687 eval "$ac_cv_use_tooltips"
9688 if test "$no_cache" != 1; then
9689 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9690 fi
9691
9692 if test "$wxUSE_TOOLTIPS" = yes; then
9693 echo "$as_me:$LINENO: result: yes" >&5
9694echo "${ECHO_T}yes" >&6
9695 else
9696 echo "$as_me:$LINENO: result: no" >&5
9697echo "${ECHO_T}no" >&6
9698 fi
9699
9700
9701 enablestring=
9702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9703echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9704 no_cache=0
9705 # Check whether --enable-splines or --disable-splines was given.
9706if test "${enable_splines+set}" = set; then
9707 enableval="$enable_splines"
9708
9709 if test "$enableval" = yes; then
9710 ac_cv_use_splines='wxUSE_SPLINES=yes'
9711 else
9712 ac_cv_use_splines='wxUSE_SPLINES=no'
9713 fi
9714
9715else
9716
9717 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9718 if test "x$LINE" != x ; then
9719 eval "DEFAULT_$LINE"
9720 else
9721 no_cache=1
9722 fi
9723
9724 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9725
9726fi;
9727
9728 eval "$ac_cv_use_splines"
9729 if test "$no_cache" != 1; then
9730 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9731 fi
9732
9733 if test "$wxUSE_SPLINES" = yes; then
9734 echo "$as_me:$LINENO: result: yes" >&5
9735echo "${ECHO_T}yes" >&6
9736 else
9737 echo "$as_me:$LINENO: result: no" >&5
9738echo "${ECHO_T}no" >&6
9739 fi
9740
9741
9742 enablestring=
9743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9744echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9745 no_cache=0
9746 # Check whether --enable-validators or --disable-validators was given.
9747if test "${enable_validators+set}" = set; then
9748 enableval="$enable_validators"
9749
9750 if test "$enableval" = yes; then
9751 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9752 else
9753 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9754 fi
9755
9756else
9757
9758 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9759 if test "x$LINE" != x ; then
9760 eval "DEFAULT_$LINE"
9761 else
9762 no_cache=1
9763 fi
9764
9765 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9766
9767fi;
9768
9769 eval "$ac_cv_use_validators"
9770 if test "$no_cache" != 1; then
9771 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9772 fi
9773
9774 if test "$wxUSE_VALIDATORS" = yes; then
9775 echo "$as_me:$LINENO: result: yes" >&5
9776echo "${ECHO_T}yes" >&6
9777 else
9778 echo "$as_me:$LINENO: result: no" >&5
9779echo "${ECHO_T}no" >&6
9780 fi
9781
9782
9783 enablestring=
9784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9785echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9786 no_cache=0
9787 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9788if test "${enable_busyinfo+set}" = set; then
9789 enableval="$enable_busyinfo"
9790
9791 if test "$enableval" = yes; then
9792 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9793 else
9794 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9795 fi
9796
9797else
9798
9799 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9800 if test "x$LINE" != x ; then
9801 eval "DEFAULT_$LINE"
9802 else
9803 no_cache=1
9804 fi
9805
9806 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9807
9808fi;
9809
9810 eval "$ac_cv_use_busyinfo"
9811 if test "$no_cache" != 1; then
9812 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9813 fi
9814
9815 if test "$wxUSE_BUSYINFO" = yes; then
9816 echo "$as_me:$LINENO: result: yes" >&5
9817echo "${ECHO_T}yes" >&6
9818 else
9819 echo "$as_me:$LINENO: result: no" >&5
9820echo "${ECHO_T}no" >&6
9821 fi
9822
9823
9824 enablestring=
9825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9826echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9827 no_cache=0
9828 # Check whether --enable-joystick or --disable-joystick was given.
9829if test "${enable_joystick+set}" = set; then
9830 enableval="$enable_joystick"
9831
9832 if test "$enableval" = yes; then
9833 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9834 else
9835 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9836 fi
9837
9838else
9839
9840 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9841 if test "x$LINE" != x ; then
9842 eval "DEFAULT_$LINE"
9843 else
9844 no_cache=1
9845 fi
9846
9847 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9848
9849fi;
9850
9851 eval "$ac_cv_use_joystick"
9852 if test "$no_cache" != 1; then
9853 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9854 fi
9855
9856 if test "$wxUSE_JOYSTICK" = yes; then
9857 echo "$as_me:$LINENO: result: yes" >&5
9858echo "${ECHO_T}yes" >&6
9859 else
9860 echo "$as_me:$LINENO: result: no" >&5
9861echo "${ECHO_T}no" >&6
9862 fi
9863
9864
9865 enablestring=
9866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9867echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9868 no_cache=0
9869 # Check whether --enable-metafile or --disable-metafile was given.
9870if test "${enable_metafile+set}" = set; then
9871 enableval="$enable_metafile"
9872
9873 if test "$enableval" = yes; then
9874 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9875 else
9876 ac_cv_use_metafile='wxUSE_METAFILE=no'
9877 fi
9878
9879else
9880
9881 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9882 if test "x$LINE" != x ; then
9883 eval "DEFAULT_$LINE"
9884 else
9885 no_cache=1
9886 fi
9887
9888 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9889
9890fi;
9891
9892 eval "$ac_cv_use_metafile"
9893 if test "$no_cache" != 1; then
9894 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9895 fi
9896
9897 if test "$wxUSE_METAFILE" = yes; then
9898 echo "$as_me:$LINENO: result: yes" >&5
9899echo "${ECHO_T}yes" >&6
9900 else
9901 echo "$as_me:$LINENO: result: no" >&5
9902echo "${ECHO_T}no" >&6
9903 fi
9904
9905
9906 enablestring=
9907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9908echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9909 no_cache=0
9910 # Check whether --enable-dragimage or --disable-dragimage was given.
9911if test "${enable_dragimage+set}" = set; then
9912 enableval="$enable_dragimage"
9913
9914 if test "$enableval" = yes; then
9915 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9916 else
9917 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9918 fi
9919
9920else
9921
9922 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9923 if test "x$LINE" != x ; then
9924 eval "DEFAULT_$LINE"
9925 else
9926 no_cache=1
9927 fi
9928
9929 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9930
9931fi;
9932
9933 eval "$ac_cv_use_dragimage"
9934 if test "$no_cache" != 1; then
9935 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9936 fi
9937
9938 if test "$wxUSE_DRAGIMAGE" = yes; then
9939 echo "$as_me:$LINENO: result: yes" >&5
9940echo "${ECHO_T}yes" >&6
9941 else
9942 echo "$as_me:$LINENO: result: no" >&5
9943echo "${ECHO_T}no" >&6
9944 fi
9945
9946
9947 enablestring=
9948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9949echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9950 no_cache=0
9951 # Check whether --enable-accessibility or --disable-accessibility was given.
9952if test "${enable_accessibility+set}" = set; then
9953 enableval="$enable_accessibility"
9954
9955 if test "$enableval" = yes; then
9956 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9957 else
9958 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9959 fi
9960
9961else
9962
9963 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9964 if test "x$LINE" != x ; then
9965 eval "DEFAULT_$LINE"
9966 else
9967 no_cache=1
9968 fi
9969
9970 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9971
9972fi;
9973
9974 eval "$ac_cv_use_accessibility"
9975 if test "$no_cache" != 1; then
9976 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9977 fi
9978
9979 if test "$wxUSE_ACCESSIBILITY" = yes; then
9980 echo "$as_me:$LINENO: result: yes" >&5
9981echo "${ECHO_T}yes" >&6
9982 else
9983 echo "$as_me:$LINENO: result: no" >&5
9984echo "${ECHO_T}no" >&6
9985 fi
9986
9987
9988
9989
9990 enablestring=
9991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9992echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9993 no_cache=0
9994 # Check whether --enable-palette or --disable-palette was given.
9995if test "${enable_palette+set}" = set; then
9996 enableval="$enable_palette"
9997
9998 if test "$enableval" = yes; then
9999 ac_cv_use_palette='wxUSE_PALETTE=yes'
10000 else
10001 ac_cv_use_palette='wxUSE_PALETTE=no'
10002 fi
10003
10004else
10005
10006 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10007 if test "x$LINE" != x ; then
10008 eval "DEFAULT_$LINE"
10009 else
10010 no_cache=1
10011 fi
10012
10013 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10014
10015fi;
10016
10017 eval "$ac_cv_use_palette"
10018 if test "$no_cache" != 1; then
10019 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10020 fi
10021
10022 if test "$wxUSE_PALETTE" = yes; then
10023 echo "$as_me:$LINENO: result: yes" >&5
10024echo "${ECHO_T}yes" >&6
10025 else
10026 echo "$as_me:$LINENO: result: no" >&5
10027echo "${ECHO_T}no" >&6
10028 fi
10029
10030
10031 enablestring=
10032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10033echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10034 no_cache=0
10035 # Check whether --enable-image or --disable-image was given.
10036if test "${enable_image+set}" = set; then
10037 enableval="$enable_image"
10038
10039 if test "$enableval" = yes; then
10040 ac_cv_use_image='wxUSE_IMAGE=yes'
10041 else
10042 ac_cv_use_image='wxUSE_IMAGE=no'
10043 fi
10044
10045else
10046
10047 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10048 if test "x$LINE" != x ; then
10049 eval "DEFAULT_$LINE"
10050 else
10051 no_cache=1
10052 fi
10053
10054 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10055
10056fi;
10057
10058 eval "$ac_cv_use_image"
10059 if test "$no_cache" != 1; then
10060 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10061 fi
10062
10063 if test "$wxUSE_IMAGE" = yes; then
10064 echo "$as_me:$LINENO: result: yes" >&5
10065echo "${ECHO_T}yes" >&6
10066 else
10067 echo "$as_me:$LINENO: result: no" >&5
10068echo "${ECHO_T}no" >&6
10069 fi
10070
10071
10072 enablestring=
10073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10074echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10075 no_cache=0
10076 # Check whether --enable-gif or --disable-gif was given.
10077if test "${enable_gif+set}" = set; then
10078 enableval="$enable_gif"
10079
10080 if test "$enableval" = yes; then
10081 ac_cv_use_gif='wxUSE_GIF=yes'
10082 else
10083 ac_cv_use_gif='wxUSE_GIF=no'
10084 fi
10085
10086else
10087
10088 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10089 if test "x$LINE" != x ; then
10090 eval "DEFAULT_$LINE"
10091 else
10092 no_cache=1
10093 fi
10094
10095 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10096
10097fi;
10098
10099 eval "$ac_cv_use_gif"
10100 if test "$no_cache" != 1; then
10101 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10102 fi
10103
10104 if test "$wxUSE_GIF" = yes; then
10105 echo "$as_me:$LINENO: result: yes" >&5
10106echo "${ECHO_T}yes" >&6
10107 else
10108 echo "$as_me:$LINENO: result: no" >&5
10109echo "${ECHO_T}no" >&6
10110 fi
10111
10112
10113 enablestring=
10114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10115echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10116 no_cache=0
10117 # Check whether --enable-pcx or --disable-pcx was given.
10118if test "${enable_pcx+set}" = set; then
10119 enableval="$enable_pcx"
10120
10121 if test "$enableval" = yes; then
10122 ac_cv_use_pcx='wxUSE_PCX=yes'
10123 else
10124 ac_cv_use_pcx='wxUSE_PCX=no'
10125 fi
10126
10127else
10128
10129 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10130 if test "x$LINE" != x ; then
10131 eval "DEFAULT_$LINE"
10132 else
10133 no_cache=1
10134 fi
10135
10136 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10137
10138fi;
10139
10140 eval "$ac_cv_use_pcx"
10141 if test "$no_cache" != 1; then
10142 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10143 fi
10144
10145 if test "$wxUSE_PCX" = yes; then
10146 echo "$as_me:$LINENO: result: yes" >&5
10147echo "${ECHO_T}yes" >&6
10148 else
10149 echo "$as_me:$LINENO: result: no" >&5
10150echo "${ECHO_T}no" >&6
10151 fi
10152
10153
10154 enablestring=
10155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10156echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10157 no_cache=0
10158 # Check whether --enable-iff or --disable-iff was given.
10159if test "${enable_iff+set}" = set; then
10160 enableval="$enable_iff"
10161
10162 if test "$enableval" = yes; then
10163 ac_cv_use_iff='wxUSE_IFF=yes'
10164 else
10165 ac_cv_use_iff='wxUSE_IFF=no'
10166 fi
10167
10168else
10169
10170 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10171 if test "x$LINE" != x ; then
10172 eval "DEFAULT_$LINE"
10173 else
10174 no_cache=1
10175 fi
10176
10177 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10178
10179fi;
10180
10181 eval "$ac_cv_use_iff"
10182 if test "$no_cache" != 1; then
10183 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10184 fi
10185
10186 if test "$wxUSE_IFF" = yes; then
10187 echo "$as_me:$LINENO: result: yes" >&5
10188echo "${ECHO_T}yes" >&6
10189 else
10190 echo "$as_me:$LINENO: result: no" >&5
10191echo "${ECHO_T}no" >&6
10192 fi
10193
10194
10195 enablestring=
10196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10197echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10198 no_cache=0
10199 # Check whether --enable-pnm or --disable-pnm was given.
10200if test "${enable_pnm+set}" = set; then
10201 enableval="$enable_pnm"
10202
10203 if test "$enableval" = yes; then
10204 ac_cv_use_pnm='wxUSE_PNM=yes'
10205 else
10206 ac_cv_use_pnm='wxUSE_PNM=no'
10207 fi
10208
10209else
10210
10211 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10212 if test "x$LINE" != x ; then
10213 eval "DEFAULT_$LINE"
10214 else
10215 no_cache=1
10216 fi
10217
10218 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10219
10220fi;
10221
10222 eval "$ac_cv_use_pnm"
10223 if test "$no_cache" != 1; then
10224 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10225 fi
10226
10227 if test "$wxUSE_PNM" = yes; then
10228 echo "$as_me:$LINENO: result: yes" >&5
10229echo "${ECHO_T}yes" >&6
10230 else
10231 echo "$as_me:$LINENO: result: no" >&5
10232echo "${ECHO_T}no" >&6
10233 fi
10234
10235
10236 enablestring=
10237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10238echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10239 no_cache=0
10240 # Check whether --enable-xpm or --disable-xpm was given.
10241if test "${enable_xpm+set}" = set; then
10242 enableval="$enable_xpm"
10243
10244 if test "$enableval" = yes; then
10245 ac_cv_use_xpm='wxUSE_XPM=yes'
10246 else
10247 ac_cv_use_xpm='wxUSE_XPM=no'
10248 fi
10249
10250else
10251
10252 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10253 if test "x$LINE" != x ; then
10254 eval "DEFAULT_$LINE"
10255 else
10256 no_cache=1
10257 fi
10258
10259 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10260
10261fi;
10262
10263 eval "$ac_cv_use_xpm"
10264 if test "$no_cache" != 1; then
10265 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10266 fi
10267
10268 if test "$wxUSE_XPM" = yes; then
10269 echo "$as_me:$LINENO: result: yes" >&5
10270echo "${ECHO_T}yes" >&6
10271 else
10272 echo "$as_me:$LINENO: result: no" >&5
10273echo "${ECHO_T}no" >&6
10274 fi
10275
10276
10277 enablestring=
10278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10279echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10280 no_cache=0
10281 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10282if test "${enable_ico_cur+set}" = set; then
10283 enableval="$enable_ico_cur"
10284
10285 if test "$enableval" = yes; then
10286 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10287 else
10288 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10289 fi
10290
10291else
10292
10293 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10294 if test "x$LINE" != x ; then
10295 eval "DEFAULT_$LINE"
10296 else
10297 no_cache=1
10298 fi
10299
10300 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10301
10302fi;
10303
10304 eval "$ac_cv_use_ico_cur"
10305 if test "$no_cache" != 1; then
10306 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10307 fi
10308
10309 if test "$wxUSE_ICO_CUR" = yes; then
10310 echo "$as_me:$LINENO: result: yes" >&5
10311echo "${ECHO_T}yes" >&6
10312 else
10313 echo "$as_me:$LINENO: result: no" >&5
10314echo "${ECHO_T}no" >&6
10315 fi
10316
10317
10318fi
10319
10320
10321
ceec2216
RL
10322# Check whether --with-flavour or --without-flavour was given.
10323if test "${with_flavour+set}" = set; then
10324 withval="$with_flavour"
10325 WX_FLAVOUR="$withval"
10326fi;
10327
10328
10329
a848cd7e
SC
10330 enablestring=
10331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10332echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10333 no_cache=0
10334 # Check whether --enable-official_build or --disable-official_build was given.
10335if test "${enable_official_build+set}" = set; then
10336 enableval="$enable_official_build"
10337
10338 if test "$enableval" = yes; then
10339 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10340 else
10341 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10342 fi
10343
10344else
10345
10346 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10347 if test "x$LINE" != x ; then
10348 eval "DEFAULT_$LINE"
10349 else
10350 no_cache=1
10351 fi
10352
10353 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10354
10355fi;
10356
10357 eval "$ac_cv_use_official_build"
10358 if test "$no_cache" != 1; then
10359 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10360 fi
10361
10362 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10363 echo "$as_me:$LINENO: result: yes" >&5
10364echo "${ECHO_T}yes" >&6
10365 else
10366 echo "$as_me:$LINENO: result: no" >&5
10367echo "${ECHO_T}no" >&6
10368 fi
10369
10370# Check whether --enable-vendor or --disable-vendor was given.
10371if test "${enable_vendor+set}" = set; then
10372 enableval="$enable_vendor"
10373 VENDOR="$enableval"
10374fi;
10375if test "x$VENDOR" = "x"; then
10376 VENDOR="custom"
10377fi
10378
a848cd7e
SC
10379
10380
10381
10382 echo "saving argument cache $wx_arg_cache_file"
10383 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10384
10385
10386
10387echo "$as_me:$LINENO: checking for toolkit" >&5
10388echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10389
10390# In Wine, we need to default to MSW, not GTK or MOTIF
10391if test "$wxUSE_WINE" = "yes"; then
10392 DEFAULT_DEFAULT_wxUSE_GTK=0
10393 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10394 DEFAULT_DEFAULT_wxUSE_MSW=1
10395 wxUSE_SHARED=no
10396fi
10397
10398if test "$wxUSE_GUI" = "yes"; then
10399
10400 if test "$USE_BEOS" = 1; then
10401 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10402echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10403 { (exit 1); exit 1; }; }
10404 fi
10405
10406 if test "$TOOLKIT_GIVEN" = 1; then
10407 for toolkit in `echo $ALL_TOOLKITS`; do
10408 var=wxUSE_$toolkit
10409 eval "value=\$${var}"
10410 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10411 done
10412 else
10413 for toolkit in `echo $ALL_TOOLKITS`; do
10414 if test "$has_toolkit_in_cache" != 1; then
10415 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10416 else
10417 var=DEFAULT_wxUSE_$toolkit
10418 fi
10419 eval "wxUSE_$toolkit=\$${var}"
10420 done
10421 fi
10422
10423 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10424 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10425 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10426
10427 case "${host}" in
10428 *-pc-os2_emx | *-pc-os2-emx )
10429 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10430 esac
10431
10432 case "$NUM_TOOLKITS" in
10433 1)
10434 ;;
10435 0)
10436 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10437echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10438 { (exit 1); exit 1; }; }
10439 ;;
10440 *)
10441 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10442echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10443 { (exit 1); exit 1; }; }
10444 esac
10445
10446 for toolkit in `echo $ALL_TOOLKITS`; do
10447 var=wxUSE_$toolkit
10448 eval "value=\$${var}"
10449 if test "x$value" != x; then
10450 cache_var=CACHE_$toolkit
10451 eval "cache=\$${cache_var}"
10452 if test "$cache" = 1; then
10453 echo "$var=$value" >> ${wx_arg_cache_file}
10454 fi
10455 if test "$value" = 1; then
10456 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10457 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10458echo "${ECHO_T}$toolkit_echo" >&6
10459 fi
10460 fi
10461 done
10462else
10463 if test "x$host_alias" != "x"; then
10464 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10465echo "${ECHO_T}base ($host_alias hosted) only" >&6
10466 else
10467 echo "$as_me:$LINENO: result: base only" >&5
10468echo "${ECHO_T}base only" >&6
10469 fi
10470fi
10471
10472wants_win32=0
10473doesnt_want_win32=0
10474case "${host}" in
10475 *-*-cygwin*)
10476 if test "$wxUSE_MSW" = 1 ; then
10477 wants_win32=1
10478 else
10479 doesnt_want_win32=1
10480 fi
10481 ;;
10482 *-*-mingw*)
10483 wants_win32=1
10484 ;;
10485esac
10486
10487if test "$wxUSE_WINE" = "yes"; then
10488 wants_win32=1
10489 CC=winegcc
10490 CXX=wineg++
10491 RESCOMP=wrc
10492 LDFLAGS_GUI="-mwindows"
10493fi
10494
10495if test "$wants_win32" = 1 ; then
10496 USE_UNIX=0
10497 USE_WIN32=1
10498 cat >>confdefs.h <<\_ACEOF
10499#define __WIN32__ 1
10500_ACEOF
10501
10502 cat >>confdefs.h <<\_ACEOF
10503#define __WIN95__ 1
10504_ACEOF
10505
10506 cat >>confdefs.h <<\_ACEOF
10507#define __WINDOWS__ 1
10508_ACEOF
10509
10510 cat >>confdefs.h <<\_ACEOF
10511#define __GNUWIN32__ 1
10512_ACEOF
10513
10514 cat >>confdefs.h <<\_ACEOF
10515#define STRICT 1
10516_ACEOF
10517
10518 cat >>confdefs.h <<\_ACEOF
10519#define WINVER 0x0400
10520_ACEOF
10521
10522fi
10523if test "$doesnt_want_win32" = 1 ; then
10524 USE_UNIX=1
10525 USE_WIN32=0
10526fi
10527
10528if test "$USE_UNIX" = 1 ; then
10529 wxUSE_UNIX=yes
10530 cat >>confdefs.h <<\_ACEOF
10531#define __UNIX__ 1
10532_ACEOF
10533
10534fi
10535
10536
10537cat >confcache <<\_ACEOF
10538# This file is a shell script that caches the results of configure
10539# tests run on this system so they can be shared between configure
10540# scripts and configure runs, see configure's option --config-cache.
10541# It is not useful on other systems. If it contains results you don't
10542# want to keep, you may remove or edit it.
10543#
10544# config.status only pays attention to the cache file if you give it
10545# the --recheck option to rerun configure.
10546#
10547# `ac_cv_env_foo' variables (set or unset) will be overridden when
10548# loading this file, other *unset* `ac_cv_foo' will be assigned the
10549# following values.
10550
10551_ACEOF
10552
10553# The following way of writing the cache mishandles newlines in values,
10554# but we know of no workaround that is simple, portable, and efficient.
10555# So, don't put newlines in cache variables' values.
10556# Ultrix sh set writes to stderr and can't be redirected directly,
10557# and sets the high bit in the cache file unless we assign to the vars.
10558{
10559 (set) 2>&1 |
10560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10561 *ac_space=\ *)
10562 # `set' does not quote correctly, so add quotes (double-quote
10563 # substitution turns \\\\ into \\, and sed turns \\ into \).
10564 sed -n \
ac1cb8d3
VS
10565 "s/'/'\\\\''/g;
10566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10567 ;;
10568 *)
10569 # `set' quotes correctly as required by POSIX, so do not add quotes.
10570 sed -n \
ac1cb8d3 10571 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10572 ;;
10573 esac;
10574} |
10575 sed '
10576 t clear
10577 : clear
10578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10579 t end
10580 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10581 : end' >>confcache
10582if diff $cache_file confcache >/dev/null 2>&1; then :; else
10583 if test -w $cache_file; then
10584 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10585 cat confcache >$cache_file
10586 else
10587 echo "not updating unwritable cache $cache_file"
10588 fi
10589fi
10590rm -f confcache
10591
10592if test "$build" != "$host" ; then
1e9e8aba 10593 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10594 CC=$host_alias-gcc
10595 CXX=$host_alias-c++
10596 AR=$host_alias-ar
10597 RANLIB=$host_alias-ranlib
10598 DLLTOOL=$host_alias-dlltool
10599 RESCOMP=$host_alias-windres
a848cd7e 10600 STRIP=$host_alias-strip
1e9e8aba
DE
10601 elif test "x$CC" '!=' "x"; then
10602 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10603 else
10604 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10605echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10606 { (exit 1); exit 1; }; }
10607 fi
10608fi
10609
10610CFLAGS=${CFLAGS:=}
10611ac_ext=c
10612ac_cpp='$CPP $CPPFLAGS'
10613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10615ac_compiler_gnu=$ac_cv_c_compiler_gnu
10616if test -n "$ac_tool_prefix"; then
10617 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10618set dummy ${ac_tool_prefix}gcc; ac_word=$2
10619echo "$as_me:$LINENO: checking for $ac_word" >&5
10620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10621if test "${ac_cv_prog_CC+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623else
10624 if test -n "$CC"; then
10625 ac_cv_prog_CC="$CC" # Let the user override the test.
10626else
10627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628for as_dir in $PATH
10629do
10630 IFS=$as_save_IFS
10631 test -z "$as_dir" && as_dir=.
10632 for ac_exec_ext in '' $ac_executable_extensions; do
10633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10634 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10636 break 2
10637 fi
10638done
10639done
10640
10641fi
10642fi
10643CC=$ac_cv_prog_CC
10644if test -n "$CC"; then
10645 echo "$as_me:$LINENO: result: $CC" >&5
10646echo "${ECHO_T}$CC" >&6
10647else
10648 echo "$as_me:$LINENO: result: no" >&5
10649echo "${ECHO_T}no" >&6
10650fi
10651
10652fi
10653if test -z "$ac_cv_prog_CC"; then
10654 ac_ct_CC=$CC
10655 # Extract the first word of "gcc", so it can be a program name with args.
10656set dummy gcc; ac_word=$2
10657echo "$as_me:$LINENO: checking for $ac_word" >&5
10658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10659if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661else
10662 if test -n "$ac_ct_CC"; then
10663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10664else
10665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666for as_dir in $PATH
10667do
10668 IFS=$as_save_IFS
10669 test -z "$as_dir" && as_dir=.
10670 for ac_exec_ext in '' $ac_executable_extensions; do
10671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10672 ac_cv_prog_ac_ct_CC="gcc"
10673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10674 break 2
10675 fi
10676done
10677done
10678
10679fi
10680fi
10681ac_ct_CC=$ac_cv_prog_ac_ct_CC
10682if test -n "$ac_ct_CC"; then
10683 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10684echo "${ECHO_T}$ac_ct_CC" >&6
10685else
10686 echo "$as_me:$LINENO: result: no" >&5
10687echo "${ECHO_T}no" >&6
10688fi
10689
10690 CC=$ac_ct_CC
10691else
10692 CC="$ac_cv_prog_CC"
10693fi
10694
10695if test -z "$CC"; then
10696 if test -n "$ac_tool_prefix"; then
10697 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10698set dummy ${ac_tool_prefix}cc; ac_word=$2
10699echo "$as_me:$LINENO: checking for $ac_word" >&5
10700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10701if test "${ac_cv_prog_CC+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703else
10704 if test -n "$CC"; then
10705 ac_cv_prog_CC="$CC" # Let the user override the test.
10706else
10707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708for as_dir in $PATH
10709do
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10714 ac_cv_prog_CC="${ac_tool_prefix}cc"
10715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10717 fi
10718done
10719done
10720
10721fi
10722fi
10723CC=$ac_cv_prog_CC
10724if test -n "$CC"; then
10725 echo "$as_me:$LINENO: result: $CC" >&5
10726echo "${ECHO_T}$CC" >&6
10727else
10728 echo "$as_me:$LINENO: result: no" >&5
10729echo "${ECHO_T}no" >&6
10730fi
10731
10732fi
10733if test -z "$ac_cv_prog_CC"; then
10734 ac_ct_CC=$CC
10735 # Extract the first word of "cc", so it can be a program name with args.
10736set dummy cc; ac_word=$2
10737echo "$as_me:$LINENO: checking for $ac_word" >&5
10738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10739if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741else
10742 if test -n "$ac_ct_CC"; then
10743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10744else
10745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746for as_dir in $PATH
10747do
10748 IFS=$as_save_IFS
10749 test -z "$as_dir" && as_dir=.
10750 for ac_exec_ext in '' $ac_executable_extensions; do
10751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10752 ac_cv_prog_ac_ct_CC="cc"
10753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10754 break 2
10755 fi
10756done
10757done
10758
10759fi
10760fi
10761ac_ct_CC=$ac_cv_prog_ac_ct_CC
10762if test -n "$ac_ct_CC"; then
10763 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10764echo "${ECHO_T}$ac_ct_CC" >&6
10765else
10766 echo "$as_me:$LINENO: result: no" >&5
10767echo "${ECHO_T}no" >&6
10768fi
10769
10770 CC=$ac_ct_CC
10771else
10772 CC="$ac_cv_prog_CC"
10773fi
10774
10775fi
10776if test -z "$CC"; then
10777 # Extract the first word of "cc", so it can be a program name with args.
10778set dummy cc; ac_word=$2
10779echo "$as_me:$LINENO: checking for $ac_word" >&5
10780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10781if test "${ac_cv_prog_CC+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10783else
10784 if test -n "$CC"; then
10785 ac_cv_prog_CC="$CC" # Let the user override the test.
10786else
10787 ac_prog_rejected=no
10788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789for as_dir in $PATH
10790do
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10796 ac_prog_rejected=yes
10797 continue
10798 fi
10799 ac_cv_prog_CC="cc"
10800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10801 break 2
10802 fi
10803done
10804done
10805
10806if test $ac_prog_rejected = yes; then
10807 # We found a bogon in the path, so make sure we never use it.
10808 set dummy $ac_cv_prog_CC
10809 shift
10810 if test $# != 0; then
10811 # We chose a different compiler from the bogus one.
10812 # However, it has the same basename, so the bogon will be chosen
10813 # first if we set CC to just the basename; use the full file name.
10814 shift
10815 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10816 fi
10817fi
10818fi
10819fi
10820CC=$ac_cv_prog_CC
10821if test -n "$CC"; then
10822 echo "$as_me:$LINENO: result: $CC" >&5
10823echo "${ECHO_T}$CC" >&6
10824else
10825 echo "$as_me:$LINENO: result: no" >&5
10826echo "${ECHO_T}no" >&6
10827fi
10828
10829fi
10830if test -z "$CC"; then
10831 if test -n "$ac_tool_prefix"; then
10832 for ac_prog in cl
10833 do
10834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10836echo "$as_me:$LINENO: checking for $ac_word" >&5
10837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10838if test "${ac_cv_prog_CC+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840else
10841 if test -n "$CC"; then
10842 ac_cv_prog_CC="$CC" # Let the user override the test.
10843else
10844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845for as_dir in $PATH
10846do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 break 2
10854 fi
10855done
10856done
10857
10858fi
10859fi
10860CC=$ac_cv_prog_CC
10861if test -n "$CC"; then
10862 echo "$as_me:$LINENO: result: $CC" >&5
10863echo "${ECHO_T}$CC" >&6
10864else
10865 echo "$as_me:$LINENO: result: no" >&5
10866echo "${ECHO_T}no" >&6
10867fi
10868
10869 test -n "$CC" && break
10870 done
10871fi
10872if test -z "$CC"; then
10873 ac_ct_CC=$CC
10874 for ac_prog in cl
10875do
10876 # Extract the first word of "$ac_prog", so it can be a program name with args.
10877set dummy $ac_prog; ac_word=$2
10878echo "$as_me:$LINENO: checking for $ac_word" >&5
10879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10880if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882else
10883 if test -n "$ac_ct_CC"; then
10884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10885else
10886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887for as_dir in $PATH
10888do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_prog_ac_ct_CC="$ac_prog"
10894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 break 2
10896 fi
10897done
10898done
10899
10900fi
10901fi
10902ac_ct_CC=$ac_cv_prog_ac_ct_CC
10903if test -n "$ac_ct_CC"; then
10904 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10905echo "${ECHO_T}$ac_ct_CC" >&6
10906else
10907 echo "$as_me:$LINENO: result: no" >&5
10908echo "${ECHO_T}no" >&6
10909fi
10910
10911 test -n "$ac_ct_CC" && break
10912done
10913
10914 CC=$ac_ct_CC
10915fi
10916
10917fi
10918
10919
10920test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10921See \`config.log' for more details." >&5
10922echo "$as_me: error: no acceptable C compiler found in \$PATH
10923See \`config.log' for more details." >&2;}
10924 { (exit 1); exit 1; }; }
10925
10926# Provide some information about the compiler.
10927echo "$as_me:$LINENO:" \
10928 "checking for C compiler version" >&5
10929ac_compiler=`set X $ac_compile; echo $2`
10930{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10931 (eval $ac_compiler --version </dev/null >&5) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }
10935{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10936 (eval $ac_compiler -v </dev/null >&5) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }
10940{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10941 (eval $ac_compiler -V </dev/null >&5) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }
10945
10946cat >conftest.$ac_ext <<_ACEOF
10947/* confdefs.h. */
10948_ACEOF
10949cat confdefs.h >>conftest.$ac_ext
10950cat >>conftest.$ac_ext <<_ACEOF
10951/* end confdefs.h. */
10952
10953int
10954main ()
10955{
10956
10957 ;
10958 return 0;
10959}
10960_ACEOF
10961ac_clean_files_save=$ac_clean_files
10962ac_clean_files="$ac_clean_files a.out a.exe b.out"
10963# Try to create an executable without -o first, disregard a.out.
10964# It will help us diagnose broken compilers, and finding out an intuition
10965# of exeext.
ac1cb8d3
VS
10966echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10967echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10968ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10969if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10970 (eval $ac_link_default) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; then
10974 # Find the output, starting from the most likely. This scheme is
10975# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10976# resort.
10977
10978# Be careful to initialize this variable, since it used to be cached.
10979# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10980ac_cv_exeext=
10981# b.out is created by i960 compilers.
10982for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10983do
10984 test -f "$ac_file" || continue
10985 case $ac_file in
10986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10987 ;;
a848cd7e 10988 conftest.$ac_ext )
ac1cb8d3
VS
10989 # This is the source file.
10990 ;;
a848cd7e 10991 [ab].out )
ac1cb8d3
VS
10992 # We found the default executable, but exeext='' is most
10993 # certainly right.
10994 break;;
a848cd7e 10995 *.* )
ac1cb8d3
VS
10996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10997 # FIXME: I believe we export ac_cv_exeext for Libtool,
10998 # but it would be cool to find out if it's true. Does anybody
10999 # maintain Libtool? --akim.
11000 export ac_cv_exeext
11001 break;;
a848cd7e 11002 * )
ac1cb8d3 11003 break;;
a848cd7e
SC
11004 esac
11005done
11006else
11007 echo "$as_me: failed program was:" >&5
11008sed 's/^/| /' conftest.$ac_ext >&5
11009
11010{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11011See \`config.log' for more details." >&5
11012echo "$as_me: error: C compiler cannot create executables
11013See \`config.log' for more details." >&2;}
11014 { (exit 77); exit 77; }; }
11015fi
11016
11017ac_exeext=$ac_cv_exeext
11018echo "$as_me:$LINENO: result: $ac_file" >&5
11019echo "${ECHO_T}$ac_file" >&6
11020
11021# Check the compiler produces executables we can run. If not, either
11022# the compiler is broken, or we cross compile.
11023echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11024echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11025# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11026# If not cross compiling, check that we can run a simple program.
11027if test "$cross_compiling" != yes; then
11028 if { ac_try='./$ac_file'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 cross_compiling=no
11035 else
11036 if test "$cross_compiling" = maybe; then
11037 cross_compiling=yes
11038 else
11039 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11040If you meant to cross compile, use \`--host'.
11041See \`config.log' for more details." >&5
11042echo "$as_me: error: cannot run C compiled programs.
11043If you meant to cross compile, use \`--host'.
11044See \`config.log' for more details." >&2;}
11045 { (exit 1); exit 1; }; }
11046 fi
11047 fi
11048fi
11049echo "$as_me:$LINENO: result: yes" >&5
11050echo "${ECHO_T}yes" >&6
11051
11052rm -f a.out a.exe conftest$ac_cv_exeext b.out
11053ac_clean_files=$ac_clean_files_save
11054# Check the compiler produces executables we can run. If not, either
11055# the compiler is broken, or we cross compile.
11056echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11057echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11058echo "$as_me:$LINENO: result: $cross_compiling" >&5
11059echo "${ECHO_T}$cross_compiling" >&6
11060
11061echo "$as_me:$LINENO: checking for suffix of executables" >&5
11062echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064 (eval $ac_link) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; then
11068 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11069# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11070# work properly (i.e., refer to `conftest.exe'), while it won't with
11071# `rm'.
11072for ac_file in conftest.exe conftest conftest.*; do
11073 test -f "$ac_file" || continue
11074 case $ac_file in
11075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11076 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11077 export ac_cv_exeext
11078 break;;
a848cd7e
SC
11079 * ) break;;
11080 esac
11081done
11082else
11083 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11084See \`config.log' for more details." >&5
11085echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11086See \`config.log' for more details." >&2;}
11087 { (exit 1); exit 1; }; }
11088fi
11089
11090rm -f conftest$ac_cv_exeext
11091echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11092echo "${ECHO_T}$ac_cv_exeext" >&6
11093
11094rm -f conftest.$ac_ext
11095EXEEXT=$ac_cv_exeext
11096ac_exeext=$EXEEXT
11097echo "$as_me:$LINENO: checking for suffix of object files" >&5
11098echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11099if test "${ac_cv_objext+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101else
11102 cat >conftest.$ac_ext <<_ACEOF
11103/* confdefs.h. */
11104_ACEOF
11105cat confdefs.h >>conftest.$ac_ext
11106cat >>conftest.$ac_ext <<_ACEOF
11107/* end confdefs.h. */
11108
11109int
11110main ()
11111{
11112
11113 ;
11114 return 0;
11115}
11116_ACEOF
11117rm -f conftest.o conftest.obj
11118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119 (eval $ac_compile) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; then
11123 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11124 case $ac_file in
11125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11127 break;;
11128 esac
11129done
11130else
11131 echo "$as_me: failed program was:" >&5
11132sed 's/^/| /' conftest.$ac_ext >&5
11133
11134{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11135See \`config.log' for more details." >&5
11136echo "$as_me: error: cannot compute suffix of object files: cannot compile
11137See \`config.log' for more details." >&2;}
11138 { (exit 1); exit 1; }; }
11139fi
11140
11141rm -f conftest.$ac_cv_objext conftest.$ac_ext
11142fi
11143echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11144echo "${ECHO_T}$ac_cv_objext" >&6
11145OBJEXT=$ac_cv_objext
11146ac_objext=$OBJEXT
11147echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11148echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11149if test "${ac_cv_c_compiler_gnu+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151else
11152 cat >conftest.$ac_ext <<_ACEOF
11153/* confdefs.h. */
11154_ACEOF
11155cat confdefs.h >>conftest.$ac_ext
11156cat >>conftest.$ac_ext <<_ACEOF
11157/* end confdefs.h. */
11158
11159int
11160main ()
11161{
11162#ifndef __GNUC__
11163 choke me
11164#endif
11165
11166 ;
11167 return 0;
11168}
11169_ACEOF
11170rm -f conftest.$ac_objext
11171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11172 (eval $ac_compile) 2>conftest.er1
a848cd7e 11173 ac_status=$?
ac1cb8d3
VS
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
a848cd7e
SC
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
07158944 11179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_compiler_gnu=yes
11192else
11193 echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
11196ac_compiler_gnu=no
11197fi
ac1cb8d3 11198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11199ac_cv_c_compiler_gnu=$ac_compiler_gnu
11200
11201fi
11202echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11203echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11204GCC=`test $ac_compiler_gnu = yes && echo yes`
11205ac_test_CFLAGS=${CFLAGS+set}
11206ac_save_CFLAGS=$CFLAGS
11207CFLAGS="-g"
11208echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11209echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11210if test "${ac_cv_prog_cc_g+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212else
11213 cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */
11219
11220int
11221main ()
11222{
11223
11224 ;
11225 return 0;
11226}
11227_ACEOF
11228rm -f conftest.$ac_objext
11229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11230 (eval $ac_compile) 2>conftest.er1
a848cd7e 11231 ac_status=$?
ac1cb8d3
VS
11232 grep -v '^ *+' conftest.er1 >conftest.err
11233 rm -f conftest.er1
11234 cat conftest.err >&5
a848cd7e
SC
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } &&
07158944 11237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
11243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 ac_cv_prog_cc_g=yes
11250else
11251 echo "$as_me: failed program was:" >&5
11252sed 's/^/| /' conftest.$ac_ext >&5
11253
11254ac_cv_prog_cc_g=no
11255fi
ac1cb8d3 11256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11257fi
11258echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11259echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11260if test "$ac_test_CFLAGS" = set; then
11261 CFLAGS=$ac_save_CFLAGS
11262elif test $ac_cv_prog_cc_g = yes; then
11263 if test "$GCC" = yes; then
11264 CFLAGS="-g -O2"
11265 else
11266 CFLAGS="-g"
11267 fi
11268else
11269 if test "$GCC" = yes; then
11270 CFLAGS="-O2"
11271 else
11272 CFLAGS=
11273 fi
11274fi
11275echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11276echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11277if test "${ac_cv_prog_cc_stdc+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279else
11280 ac_cv_prog_cc_stdc=no
11281ac_save_CC=$CC
11282cat >conftest.$ac_ext <<_ACEOF
11283/* confdefs.h. */
11284_ACEOF
11285cat confdefs.h >>conftest.$ac_ext
11286cat >>conftest.$ac_ext <<_ACEOF
11287/* end confdefs.h. */
11288#include <stdarg.h>
11289#include <stdio.h>
11290#include <sys/types.h>
11291#include <sys/stat.h>
11292/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11293struct buf { int x; };
11294FILE * (*rcsopen) (struct buf *, struct stat *, int);
11295static char *e (p, i)
11296 char **p;
11297 int i;
11298{
11299 return p[i];
11300}
11301static char *f (char * (*g) (char **, int), char **p, ...)
11302{
11303 char *s;
11304 va_list v;
11305 va_start (v,p);
11306 s = g (p, va_arg (v,int));
11307 va_end (v);
11308 return s;
11309}
ac1cb8d3
VS
11310
11311/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11312 function prototypes and stuff, but not '\xHH' hex character constants.
11313 These don't provoke an error unfortunately, instead are silently treated
11314 as 'x'. The following induces an error, until -std1 is added to get
11315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11316 array size at least. It's necessary to write '\x00'==0 to get something
11317 that's true only with -std1. */
11318int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11319
a848cd7e
SC
11320int test (int i, double x);
11321struct s1 {int (*f) (int a);};
11322struct s2 {int (*f) (double a);};
11323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11324int argc;
11325char **argv;
11326int
11327main ()
11328{
11329return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11330 ;
11331 return 0;
11332}
11333_ACEOF
11334# Don't try gcc -ansi; that turns off useful extensions and
11335# breaks some systems' header files.
11336# AIX -qlanglvl=ansi
11337# Ultrix and OSF/1 -std1
11338# HP-UX 10.20 and later -Ae
11339# HP-UX older versions -Aa -D_HPUX_SOURCE
11340# SVR4 -Xc -D__EXTENSIONS__
11341for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11342do
11343 CC="$ac_save_CC $ac_arg"
11344 rm -f conftest.$ac_objext
11345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11346 (eval $ac_compile) 2>conftest.er1
a848cd7e 11347 ac_status=$?
ac1cb8d3
VS
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
a848cd7e
SC
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
07158944 11353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365 ac_cv_prog_cc_stdc=$ac_arg
11366break
11367else
11368 echo "$as_me: failed program was:" >&5
11369sed 's/^/| /' conftest.$ac_ext >&5
11370
11371fi
ac1cb8d3 11372rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11373done
11374rm -f conftest.$ac_ext conftest.$ac_objext
11375CC=$ac_save_CC
11376
11377fi
11378
11379case "x$ac_cv_prog_cc_stdc" in
11380 x|xno)
11381 echo "$as_me:$LINENO: result: none needed" >&5
11382echo "${ECHO_T}none needed" >&6 ;;
11383 *)
11384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11385echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11386 CC="$CC $ac_cv_prog_cc_stdc" ;;
11387esac
11388
11389# Some people use a C++ compiler to compile C. Since we use `exit',
11390# in C++ we need to declare it. In case someone uses the same compiler
11391# for both compiling C and C++ we need to have the C++ compiler decide
11392# the declaration of exit, since it's the most demanding environment.
11393cat >conftest.$ac_ext <<_ACEOF
11394#ifndef __cplusplus
11395 choke me
11396#endif
11397_ACEOF
11398rm -f conftest.$ac_objext
11399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11400 (eval $ac_compile) 2>conftest.er1
a848cd7e 11401 ac_status=$?
ac1cb8d3
VS
11402 grep -v '^ *+' conftest.er1 >conftest.err
11403 rm -f conftest.er1
11404 cat conftest.err >&5
a848cd7e
SC
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } &&
07158944 11407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; } &&
11413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 for ac_declaration in \
ac1cb8d3 11420 '' \
a848cd7e
SC
11421 'extern "C" void std::exit (int) throw (); using std::exit;' \
11422 'extern "C" void std::exit (int); using std::exit;' \
11423 'extern "C" void exit (int) throw ();' \
11424 'extern "C" void exit (int);' \
11425 'void exit (int);'
11426do
11427 cat >conftest.$ac_ext <<_ACEOF
11428/* confdefs.h. */
11429_ACEOF
11430cat confdefs.h >>conftest.$ac_ext
11431cat >>conftest.$ac_ext <<_ACEOF
11432/* end confdefs.h. */
de59c161 11433$ac_declaration
ac1cb8d3 11434#include <stdlib.h>
a848cd7e
SC
11435int
11436main ()
11437{
11438exit (42);
11439 ;
11440 return 0;
11441}
11442_ACEOF
11443rm -f conftest.$ac_objext
11444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11445 (eval $ac_compile) 2>conftest.er1
a848cd7e 11446 ac_status=$?
ac1cb8d3
VS
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
a848cd7e
SC
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } &&
07158944 11452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
11458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 :
11465else
11466 echo "$as_me: failed program was:" >&5
11467sed 's/^/| /' conftest.$ac_ext >&5
11468
11469continue
11470fi
ac1cb8d3 11471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11472 cat >conftest.$ac_ext <<_ACEOF
11473/* confdefs.h. */
11474_ACEOF
11475cat confdefs.h >>conftest.$ac_ext
11476cat >>conftest.$ac_ext <<_ACEOF
11477/* end confdefs.h. */
11478$ac_declaration
11479int
11480main ()
11481{
11482exit (42);
11483 ;
11484 return 0;
11485}
11486_ACEOF
11487rm -f conftest.$ac_objext
11488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11489 (eval $ac_compile) 2>conftest.er1
a848cd7e 11490 ac_status=$?
ac1cb8d3
VS
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
a848cd7e
SC
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
07158944 11496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; } &&
11502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 break
11509else
11510 echo "$as_me: failed program was:" >&5
11511sed 's/^/| /' conftest.$ac_ext >&5
11512
11513fi
ac1cb8d3 11514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11515done
11516rm -f conftest*
11517if test -n "$ac_declaration"; then
11518 echo '#ifdef __cplusplus' >>confdefs.h
11519 echo $ac_declaration >>confdefs.h
11520 echo '#endif' >>confdefs.h
11521fi
11522
11523else
11524 echo "$as_me: failed program was:" >&5
11525sed 's/^/| /' conftest.$ac_ext >&5
11526
11527fi
ac1cb8d3 11528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11529ac_ext=c
11530ac_cpp='$CPP $CPPFLAGS'
11531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11533ac_compiler_gnu=$ac_cv_c_compiler_gnu
11534
480ccd21
DE
11535echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
11536echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11537if test "${wx_cv_c_exto+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539else
11540 cat >conftest.$ac_ext <<_ACEOF
11541/* confdefs.h. */
11542_ACEOF
11543cat confdefs.h >>conftest.$ac_ext
11544cat >>conftest.$ac_ext <<_ACEOF
11545/* end confdefs.h. */
11546
11547int
11548main ()
11549{
11550
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext conftest.$ac_ext.o
11556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557 (eval $ac_compile) 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; then
11561 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11562 case $ac_file in
11563 conftest.$ac_ext.o)
11564 wx_cv_c_exto="-ext o"
11565 ;;
11566 *)
11567 ;;
11568 esac
11569done
11570else
11571 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11572See \`config.log' for more details." >&5
11573echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11574See \`config.log' for more details." >&2;}
11575 { (exit 1); exit 1; }; }
11576
11577fi
11578
11579rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11580
11581fi
11582echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11583echo "${ECHO_T}$wx_cv_c_exto" >&6
11584if test "x$wx_cv_c_exto" '!=' "x"; then
11585 if test "c" = "c"; then
11586 CFLAGS="$wx_cv_c_exto $CFLAGS"
11587 fi
11588 if test "c" = "cxx"; then
11589 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11590 fi
11591fi
11592
11593if test "x$wx_cv_c_exto" '!=' "x"; then
11594 unset ac_cv_prog_cc_g
11595 ac_test_CFLAGS=${CFLAGS+set}
11596ac_save_CFLAGS=$CFLAGS
11597CFLAGS="-g"
11598echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11599echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11600if test "${ac_cv_prog_cc_g+set}" = set; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11602else
11603 cat >conftest.$ac_ext <<_ACEOF
11604/* confdefs.h. */
11605_ACEOF
11606cat confdefs.h >>conftest.$ac_ext
11607cat >>conftest.$ac_ext <<_ACEOF
11608/* end confdefs.h. */
11609
11610int
11611main ()
11612{
11613
11614 ;
11615 return 0;
11616}
11617_ACEOF
11618rm -f conftest.$ac_objext
11619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11620 (eval $ac_compile) 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
07158944 11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; } &&
11633 { ac_try='test -s conftest.$ac_objext'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; }; then
11639 ac_cv_prog_cc_g=yes
11640else
11641 echo "$as_me: failed program was:" >&5
11642sed 's/^/| /' conftest.$ac_ext >&5
11643
11644ac_cv_prog_cc_g=no
11645fi
11646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11647fi
11648echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11649echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11650if test "$ac_test_CFLAGS" = set; then
11651 CFLAGS=$ac_save_CFLAGS
11652elif test $ac_cv_prog_cc_g = yes; then
11653 if test "$GCC" = yes; then
11654 CFLAGS="-g -O2"
11655 else
11656 CFLAGS="-g"
11657 fi
11658else
11659 if test "$GCC" = yes; then
11660 CFLAGS="-O2"
11661 else
11662 CFLAGS=
11663 fi
11664fi
11665fi
a848cd7e 11666
95986553
DE
11667ac_ext=c
11668ac_cpp='$CPP $CPPFLAGS'
11669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11671ac_compiler_gnu=$ac_cv_c_compiler_gnu
11672
11673echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11674echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11675if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677else
11678 cat >conftest.$ac_ext <<_ACEOF
11679/* confdefs.h. */
11680_ACEOF
11681cat confdefs.h >>conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h. */
11684
11685int
11686main ()
11687{
11688#ifndef __MWERKS__
11689 choke me
11690#endif
11691
11692 ;
11693 return 0;
11694}
11695_ACEOF
11696rm -f conftest.$ac_objext
11697if { (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); } &&
07158944 11705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
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 bakefile_compiler_mwerks=yes
11718else
11719 echo "$as_me: failed program was:" >&5
11720sed 's/^/| /' conftest.$ac_ext >&5
11721
11722bakefile_compiler_mwerks=no
11723fi
11724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11725 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11726
11727fi
11728echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11729echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11730
11731MWCC=`test $bakefile_compiler_mwerks = yes && echo yes`
11732ac_ext=c
11733ac_cpp='$CPP $CPPFLAGS'
11734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11736ac_compiler_gnu=$ac_cv_c_compiler_gnu
11737
11738
9273ffba
DE
11739ac_ext=c
11740ac_cpp='$CPP $CPPFLAGS'
11741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11743ac_compiler_gnu=$ac_cv_c_compiler_gnu
11744
11745echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11746echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11747if test "${wx_cv_c_compiler_xlc+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11749else
11750 cat >conftest.$ac_ext <<_ACEOF
11751/* confdefs.h. */
11752_ACEOF
11753cat confdefs.h >>conftest.$ac_ext
11754cat >>conftest.$ac_ext <<_ACEOF
11755/* end confdefs.h. */
11756
11757int
11758main ()
11759{
11760#ifndef __xlC__
11761 choke me
11762#endif
11763
11764 ;
11765 return 0;
11766}
11767_ACEOF
11768rm -f conftest.$ac_objext
11769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11770 (eval $ac_compile) 2>conftest.er1
11771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
07158944 11777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; } &&
11783 { ac_try='test -s conftest.$ac_objext'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 wx_compiler_xlc=yes
11790else
11791 echo "$as_me: failed program was:" >&5
11792sed 's/^/| /' conftest.$ac_ext >&5
11793
11794wx_compiler_xlc=no
11795fi
11796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11797 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11798
11799fi
11800echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11801echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11802
11803XLCC=`test $wx_compiler_xlc = yes && echo yes`
11804ac_ext=c
11805ac_cpp='$CPP $CPPFLAGS'
11806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11808ac_compiler_gnu=$ac_cv_c_compiler_gnu
11809
11810
a848cd7e
SC
11811
11812ac_ext=c
11813ac_cpp='$CPP $CPPFLAGS'
11814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11816ac_compiler_gnu=$ac_cv_c_compiler_gnu
11817echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11818echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11819# On Suns, sometimes $CPP names a directory.
11820if test -n "$CPP" && test -d "$CPP"; then
11821 CPP=
11822fi
11823if test -z "$CPP"; then
11824 if test "${ac_cv_prog_CPP+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826else
11827 # Double quotes because CPP needs to be expanded
11828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11829 do
11830 ac_preproc_ok=false
11831for ac_c_preproc_warn_flag in '' yes
11832do
11833 # Use a header file that comes with gcc, so configuring glibc
11834 # with a fresh cross-compiler works.
11835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11836 # <limits.h> exists even on freestanding compilers.
11837 # On the NeXT, cc -E runs the code through the compiler's parser,
11838 # not just through cpp. "Syntax error" is here to catch this case.
11839 cat >conftest.$ac_ext <<_ACEOF
11840/* confdefs.h. */
11841_ACEOF
11842cat confdefs.h >>conftest.$ac_ext
11843cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h. */
11845#ifdef __STDC__
11846# include <limits.h>
11847#else
11848# include <assert.h>
11849#endif
ac1cb8d3 11850 Syntax error
a848cd7e
SC
11851_ACEOF
11852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } >/dev/null; then
11860 if test -s conftest.err; then
11861 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11863 else
11864 ac_cpp_err=
11865 fi
11866else
11867 ac_cpp_err=yes
11868fi
11869if test -z "$ac_cpp_err"; then
11870 :
11871else
11872 echo "$as_me: failed program was:" >&5
11873sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 # Broken: fails on valid input.
11876continue
11877fi
11878rm -f conftest.err conftest.$ac_ext
11879
11880 # OK, works on sane cases. Now check whether non-existent headers
11881 # can be detected and how.
11882 cat >conftest.$ac_ext <<_ACEOF
11883/* confdefs.h. */
11884_ACEOF
11885cat confdefs.h >>conftest.$ac_ext
11886cat >>conftest.$ac_ext <<_ACEOF
11887/* end confdefs.h. */
11888#include <ac_nonexistent.h>
11889_ACEOF
11890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } >/dev/null; then
11898 if test -s conftest.err; then
11899 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11901 else
11902 ac_cpp_err=
11903 fi
11904else
11905 ac_cpp_err=yes
11906fi
11907if test -z "$ac_cpp_err"; then
11908 # Broken: success on invalid input.
11909continue
11910else
11911 echo "$as_me: failed program was:" >&5
11912sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 # Passes both tests.
11915ac_preproc_ok=:
11916break
11917fi
11918rm -f conftest.err conftest.$ac_ext
11919
11920done
11921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11922rm -f conftest.err conftest.$ac_ext
11923if $ac_preproc_ok; then
11924 break
11925fi
11926
11927 done
11928 ac_cv_prog_CPP=$CPP
11929
11930fi
11931 CPP=$ac_cv_prog_CPP
11932else
11933 ac_cv_prog_CPP=$CPP
11934fi
11935echo "$as_me:$LINENO: result: $CPP" >&5
11936echo "${ECHO_T}$CPP" >&6
11937ac_preproc_ok=false
11938for ac_c_preproc_warn_flag in '' yes
11939do
11940 # Use a header file that comes with gcc, so configuring glibc
11941 # with a fresh cross-compiler works.
11942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11943 # <limits.h> exists even on freestanding compilers.
11944 # On the NeXT, cc -E runs the code through the compiler's parser,
11945 # not just through cpp. "Syntax error" is here to catch this case.
11946 cat >conftest.$ac_ext <<_ACEOF
11947/* confdefs.h. */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h. */
11952#ifdef __STDC__
11953# include <limits.h>
11954#else
11955# include <assert.h>
11956#endif
ac1cb8d3 11957 Syntax error
a848cd7e
SC
11958_ACEOF
11959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11961 ac_status=$?
11962 grep -v '^ *+' conftest.er1 >conftest.err
11963 rm -f conftest.er1
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } >/dev/null; then
11967 if test -s conftest.err; then
11968 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11970 else
11971 ac_cpp_err=
11972 fi
11973else
11974 ac_cpp_err=yes
11975fi
11976if test -z "$ac_cpp_err"; then
11977 :
11978else
11979 echo "$as_me: failed program was:" >&5
11980sed 's/^/| /' conftest.$ac_ext >&5
11981
11982 # Broken: fails on valid input.
11983continue
11984fi
11985rm -f conftest.err conftest.$ac_ext
11986
11987 # OK, works on sane cases. Now check whether non-existent headers
11988 # can be detected and how.
11989 cat >conftest.$ac_ext <<_ACEOF
11990/* confdefs.h. */
11991_ACEOF
11992cat confdefs.h >>conftest.$ac_ext
11993cat >>conftest.$ac_ext <<_ACEOF
11994/* end confdefs.h. */
11995#include <ac_nonexistent.h>
11996_ACEOF
11997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } >/dev/null; then
12005 if test -s conftest.err; then
12006 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12008 else
12009 ac_cpp_err=
12010 fi
12011else
12012 ac_cpp_err=yes
12013fi
12014if test -z "$ac_cpp_err"; then
12015 # Broken: success on invalid input.
12016continue
12017else
12018 echo "$as_me: failed program was:" >&5
12019sed 's/^/| /' conftest.$ac_ext >&5
12020
12021 # Passes both tests.
12022ac_preproc_ok=:
12023break
12024fi
12025rm -f conftest.err conftest.$ac_ext
12026
12027done
12028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12029rm -f conftest.err conftest.$ac_ext
12030if $ac_preproc_ok; then
12031 :
12032else
12033 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12034See \`config.log' for more details." >&5
12035echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12036See \`config.log' for more details." >&2;}
12037 { (exit 1); exit 1; }; }
12038fi
12039
12040ac_ext=c
12041ac_cpp='$CPP $CPPFLAGS'
12042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12044ac_compiler_gnu=$ac_cv_c_compiler_gnu
12045
12046
12047echo "$as_me:$LINENO: checking for egrep" >&5
12048echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12049if test "${ac_cv_prog_egrep+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12051else
12052 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12053 then ac_cv_prog_egrep='grep -E'
12054 else ac_cv_prog_egrep='egrep'
12055 fi
12056fi
12057echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12058echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12059 EGREP=$ac_cv_prog_egrep
12060
12061
12062if test $ac_cv_c_compiler_gnu = yes; then
12063 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12064echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12065if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067else
12068 ac_pattern="Autoconf.*'x'"
12069 cat >conftest.$ac_ext <<_ACEOF
12070/* confdefs.h. */
12071_ACEOF
12072cat confdefs.h >>conftest.$ac_ext
12073cat >>conftest.$ac_ext <<_ACEOF
12074/* end confdefs.h. */
12075#include <sgtty.h>
12076Autoconf TIOCGETP
12077_ACEOF
12078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12079 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12080 ac_cv_prog_gcc_traditional=yes
12081else
12082 ac_cv_prog_gcc_traditional=no
12083fi
12084rm -f conftest*
12085
12086
12087 if test $ac_cv_prog_gcc_traditional = no; then
12088 cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
12094#include <termio.h>
12095Autoconf TCGETA
12096_ACEOF
12097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12098 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12099 ac_cv_prog_gcc_traditional=yes
12100fi
12101rm -f conftest*
12102
12103 fi
12104fi
12105echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12106echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12107 if test $ac_cv_prog_gcc_traditional = yes; then
12108 CC="$CC -traditional"
12109 fi
12110fi
12111
12112
12113
12114
12115ac_ext=cc
12116ac_cpp='$CXXCPP $CPPFLAGS'
12117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12120
12121
12122CXXFLAGS=${CXXFLAGS:=}
12123ac_ext=cc
12124ac_cpp='$CXXCPP $CPPFLAGS'
12125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12128if test -n "$ac_tool_prefix"; then
12129 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12130 do
12131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12132set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12133echo "$as_me:$LINENO: checking for $ac_word" >&5
12134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12135if test "${ac_cv_prog_CXX+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137else
12138 if test -n "$CXX"; then
12139 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12140else
12141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142for as_dir in $PATH
12143do
12144 IFS=$as_save_IFS
12145 test -z "$as_dir" && as_dir=.
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12148 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12150 break 2
12151 fi
12152done
12153done
12154
12155fi
12156fi
12157CXX=$ac_cv_prog_CXX
12158if test -n "$CXX"; then
12159 echo "$as_me:$LINENO: result: $CXX" >&5
12160echo "${ECHO_T}$CXX" >&6
12161else
12162 echo "$as_me:$LINENO: result: no" >&5
12163echo "${ECHO_T}no" >&6
12164fi
12165
12166 test -n "$CXX" && break
12167 done
12168fi
12169if test -z "$CXX"; then
12170 ac_ct_CXX=$CXX
12171 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12172do
12173 # Extract the first word of "$ac_prog", so it can be a program name with args.
12174set dummy $ac_prog; ac_word=$2
12175echo "$as_me:$LINENO: checking for $ac_word" >&5
12176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12177if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179else
12180 if test -n "$ac_ct_CXX"; then
12181 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12182else
12183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184for as_dir in $PATH
12185do
12186 IFS=$as_save_IFS
12187 test -z "$as_dir" && as_dir=.
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12190 ac_cv_prog_ac_ct_CXX="$ac_prog"
12191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12192 break 2
12193 fi
12194done
12195done
12196
12197fi
12198fi
12199ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12200if test -n "$ac_ct_CXX"; then
12201 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12202echo "${ECHO_T}$ac_ct_CXX" >&6
12203else
12204 echo "$as_me:$LINENO: result: no" >&5
12205echo "${ECHO_T}no" >&6
12206fi
12207
12208 test -n "$ac_ct_CXX" && break
12209done
12210test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12211
12212 CXX=$ac_ct_CXX
12213fi
12214
12215
12216# Provide some information about the compiler.
12217echo "$as_me:$LINENO:" \
12218 "checking for C++ compiler version" >&5
12219ac_compiler=`set X $ac_compile; echo $2`
12220{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12221 (eval $ac_compiler --version </dev/null >&5) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }
12225{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12226 (eval $ac_compiler -v </dev/null >&5) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }
12230{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12231 (eval $ac_compiler -V </dev/null >&5) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }
12235
12236echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12237echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12238if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240else
12241 cat >conftest.$ac_ext <<_ACEOF
12242/* confdefs.h. */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h. */
12247
12248int
12249main ()
12250{
12251#ifndef __GNUC__
12252 choke me
12253#endif
12254
12255 ;
12256 return 0;
12257}
12258_ACEOF
12259rm -f conftest.$ac_objext
12260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12261 (eval $ac_compile) 2>conftest.er1
a848cd7e 12262 ac_status=$?
ac1cb8d3
VS
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
a848cd7e
SC
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
07158944 12268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 ac_compiler_gnu=yes
12281else
12282 echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285ac_compiler_gnu=no
12286fi
ac1cb8d3 12287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12288ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12289
12290fi
12291echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12292echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12293GXX=`test $ac_compiler_gnu = yes && echo yes`
12294ac_test_CXXFLAGS=${CXXFLAGS+set}
12295ac_save_CXXFLAGS=$CXXFLAGS
12296CXXFLAGS="-g"
12297echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12298echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12299if test "${ac_cv_prog_cxx_g+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301else
12302 cat >conftest.$ac_ext <<_ACEOF
12303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
12308
12309int
12310main ()
12311{
12312
12313 ;
12314 return 0;
12315}
12316_ACEOF
12317rm -f conftest.$ac_objext
12318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12319 (eval $ac_compile) 2>conftest.er1
a848cd7e 12320 ac_status=$?
ac1cb8d3
VS
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
a848cd7e
SC
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
07158944 12326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; } &&
12332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12338 ac_cv_prog_cxx_g=yes
12339else
12340 echo "$as_me: failed program was:" >&5
12341sed 's/^/| /' conftest.$ac_ext >&5
12342
12343ac_cv_prog_cxx_g=no
12344fi
ac1cb8d3 12345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12346fi
12347echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12348echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12349if test "$ac_test_CXXFLAGS" = set; then
12350 CXXFLAGS=$ac_save_CXXFLAGS
12351elif test $ac_cv_prog_cxx_g = yes; then
12352 if test "$GXX" = yes; then
12353 CXXFLAGS="-g -O2"
12354 else
12355 CXXFLAGS="-g"
12356 fi
12357else
12358 if test "$GXX" = yes; then
12359 CXXFLAGS="-O2"
12360 else
12361 CXXFLAGS=
12362 fi
12363fi
12364for ac_declaration in \
ac1cb8d3 12365 '' \
a848cd7e
SC
12366 'extern "C" void std::exit (int) throw (); using std::exit;' \
12367 'extern "C" void std::exit (int); using std::exit;' \
12368 'extern "C" void exit (int) throw ();' \
12369 'extern "C" void exit (int);' \
12370 'void exit (int);'
12371do
12372 cat >conftest.$ac_ext <<_ACEOF
12373/* confdefs.h. */
12374_ACEOF
12375cat confdefs.h >>conftest.$ac_ext
12376cat >>conftest.$ac_ext <<_ACEOF
12377/* end confdefs.h. */
de59c161 12378$ac_declaration
ac1cb8d3 12379#include <stdlib.h>
a848cd7e
SC
12380int
12381main ()
12382{
12383exit (42);
12384 ;
12385 return 0;
12386}
12387_ACEOF
12388rm -f conftest.$ac_objext
12389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12390 (eval $ac_compile) 2>conftest.er1
a848cd7e 12391 ac_status=$?
ac1cb8d3
VS
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
a848cd7e
SC
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
07158944 12397 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12409 :
12410else
12411 echo "$as_me: failed program was:" >&5
12412sed 's/^/| /' conftest.$ac_ext >&5
12413
12414continue
12415fi
ac1cb8d3 12416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12417 cat >conftest.$ac_ext <<_ACEOF
12418/* confdefs.h. */
12419_ACEOF
12420cat confdefs.h >>conftest.$ac_ext
12421cat >>conftest.$ac_ext <<_ACEOF
12422/* end confdefs.h. */
12423$ac_declaration
12424int
12425main ()
12426{
12427exit (42);
12428 ;
12429 return 0;
12430}
12431_ACEOF
12432rm -f conftest.$ac_objext
12433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12434 (eval $ac_compile) 2>conftest.er1
a848cd7e 12435 ac_status=$?
ac1cb8d3
VS
12436 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1
12438 cat conftest.err >&5
a848cd7e
SC
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } &&
07158944 12441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12444 ac_status=$?
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; } &&
12447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12450 ac_status=$?
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453 break
12454else
12455 echo "$as_me: failed program was:" >&5
12456sed 's/^/| /' conftest.$ac_ext >&5
12457
12458fi
ac1cb8d3 12459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12460done
12461rm -f conftest*
12462if test -n "$ac_declaration"; then
12463 echo '#ifdef __cplusplus' >>confdefs.h
12464 echo $ac_declaration >>confdefs.h
12465 echo '#endif' >>confdefs.h
12466fi
12467
12468ac_ext=cc
12469ac_cpp='$CXXCPP $CPPFLAGS'
12470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12473
480ccd21
DE
12474echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
12475echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12476if test "${wx_cv_cxx_exto+set}" = set; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478else
12479 cat >conftest.$ac_ext <<_ACEOF
12480/* confdefs.h. */
12481_ACEOF
12482cat confdefs.h >>conftest.$ac_ext
12483cat >>conftest.$ac_ext <<_ACEOF
12484/* end confdefs.h. */
12485
12486int
12487main ()
12488{
12489
12490 ;
12491 return 0;
12492}
12493_ACEOF
12494rm -f conftest.$ac_objext conftest.$ac_ext.o
12495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12496 (eval $ac_compile) 2>&5
12497 ac_status=$?
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; then
12500 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12501 case $ac_file in
12502 conftest.$ac_ext.o)
12503 wx_cv_cxx_exto="-ext o"
12504 ;;
12505 *)
12506 ;;
12507 esac
12508done
12509else
12510 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12511See \`config.log' for more details." >&5
12512echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12513See \`config.log' for more details." >&2;}
12514 { (exit 1); exit 1; }; }
12515
12516fi
12517
12518rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12519
12520fi
12521echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12522echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12523if test "x$wx_cv_cxx_exto" '!=' "x"; then
12524 if test "cxx" = "c"; then
12525 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12526 fi
12527 if test "cxx" = "cxx"; then
12528 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12529 fi
12530fi
12531
12532if test "x$wx_cv_cxx_exto" '!=' "x"; then
12533 unset ac_cv_prog_cxx_g
12534 ac_test_CXXFLAGS=${CXXFLAGS+set}
12535ac_save_CXXFLAGS=$CXXFLAGS
12536CXXFLAGS="-g"
12537echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12538echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12539if test "${ac_cv_prog_cxx_g+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12541else
12542 cat >conftest.$ac_ext <<_ACEOF
12543/* confdefs.h. */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h. */
12548
12549int
12550main ()
12551{
12552
12553 ;
12554 return 0;
12555}
12556_ACEOF
12557rm -f conftest.$ac_objext
12558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559 (eval $ac_compile) 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); } &&
07158944 12566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; } &&
12572 { ac_try='test -s conftest.$ac_objext'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 ac_cv_prog_cxx_g=yes
12579else
12580 echo "$as_me: failed program was:" >&5
12581sed 's/^/| /' conftest.$ac_ext >&5
12582
12583ac_cv_prog_cxx_g=no
12584fi
12585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12586fi
12587echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12588echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12589if test "$ac_test_CXXFLAGS" = set; then
12590 CXXFLAGS=$ac_save_CXXFLAGS
12591elif test $ac_cv_prog_cxx_g = yes; then
12592 if test "$GXX" = yes; then
12593 CXXFLAGS="-g -O2"
12594 else
12595 CXXFLAGS="-g"
12596 fi
12597else
12598 if test "$GXX" = yes; then
12599 CXXFLAGS="-O2"
12600 else
12601 CXXFLAGS=
12602 fi
12603fi
12604fi
a848cd7e 12605
95986553
DE
12606ac_ext=cc
12607ac_cpp='$CXXCPP $CPPFLAGS'
12608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12611
12612echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12613echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12614if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12616else
12617 cat >conftest.$ac_ext <<_ACEOF
12618/* confdefs.h. */
12619_ACEOF
12620cat confdefs.h >>conftest.$ac_ext
12621cat >>conftest.$ac_ext <<_ACEOF
12622/* end confdefs.h. */
12623
12624int
12625main ()
12626{
12627#ifndef __MWERKS__
12628 choke me
12629#endif
12630
12631 ;
12632 return 0;
12633}
12634_ACEOF
12635rm -f conftest.$ac_objext
12636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>conftest.er1
12638 ac_status=$?
12639 grep -v '^ *+' conftest.er1 >conftest.err
12640 rm -f conftest.er1
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
07158944 12644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; } &&
12650 { ac_try='test -s conftest.$ac_objext'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; }; then
12656 bakefile_compiler_mwerks=yes
12657else
12658 echo "$as_me: failed program was:" >&5
12659sed 's/^/| /' conftest.$ac_ext >&5
12660
12661bakefile_compiler_mwerks=no
12662fi
12663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12664 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12665
12666fi
12667echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12668echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12669
12670MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes`
12671ac_ext=cc
12672ac_cpp='$CXXCPP $CPPFLAGS'
12673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12676
12677
9273ffba
DE
12678ac_ext=cc
12679ac_cpp='$CXXCPP $CPPFLAGS'
12680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12683
12684echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12685echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12686if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12688else
12689 cat >conftest.$ac_ext <<_ACEOF
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h. */
12695
12696int
12697main ()
12698{
12699#ifndef __xlC__
12700 choke me
12701#endif
12702
12703 ;
12704 return 0;
12705}
12706_ACEOF
12707rm -f conftest.$ac_objext
12708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
07158944 12716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest.$ac_objext'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 wx_compiler_xlc=yes
12729else
12730 echo "$as_me: failed program was:" >&5
12731sed 's/^/| /' conftest.$ac_ext >&5
12732
12733wx_compiler_xlc=no
12734fi
12735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12736 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12737
12738fi
12739echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12740echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12741
12742XLCXX=`test $wx_compiler_xlc = yes && echo yes`
12743ac_ext=cc
12744ac_cpp='$CXXCPP $CPPFLAGS'
12745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12748
12749
95986553 12750
a848cd7e
SC
12751ac_ext=c
12752ac_cpp='$CPP $CPPFLAGS'
12753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12755ac_compiler_gnu=$ac_cv_c_compiler_gnu
12756
12757
a848cd7e
SC
12758if test -n "$ac_tool_prefix"; then
12759 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12760set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12761echo "$as_me:$LINENO: checking for $ac_word" >&5
12762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12763if test "${ac_cv_prog_RANLIB+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765else
12766 if test -n "$RANLIB"; then
12767 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12768else
12769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770for as_dir in $PATH
12771do
12772 IFS=$as_save_IFS
12773 test -z "$as_dir" && as_dir=.
12774 for ac_exec_ext in '' $ac_executable_extensions; do
12775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12776 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12778 break 2
12779 fi
12780done
12781done
12782
12783fi
12784fi
12785RANLIB=$ac_cv_prog_RANLIB
12786if test -n "$RANLIB"; then
12787 echo "$as_me:$LINENO: result: $RANLIB" >&5
12788echo "${ECHO_T}$RANLIB" >&6
12789else
12790 echo "$as_me:$LINENO: result: no" >&5
12791echo "${ECHO_T}no" >&6
12792fi
12793
12794fi
12795if test -z "$ac_cv_prog_RANLIB"; then
12796 ac_ct_RANLIB=$RANLIB
12797 # Extract the first word of "ranlib", so it can be a program name with args.
12798set dummy ranlib; ac_word=$2
12799echo "$as_me:$LINENO: checking for $ac_word" >&5
12800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12801if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12803else
12804 if test -n "$ac_ct_RANLIB"; then
12805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12806else
12807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808for as_dir in $PATH
12809do
12810 IFS=$as_save_IFS
12811 test -z "$as_dir" && as_dir=.
12812 for ac_exec_ext in '' $ac_executable_extensions; do
12813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12814 ac_cv_prog_ac_ct_RANLIB="ranlib"
12815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12816 break 2
12817 fi
12818done
12819done
12820
12821 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12822fi
12823fi
12824ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12825if test -n "$ac_ct_RANLIB"; then
12826 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12827echo "${ECHO_T}$ac_ct_RANLIB" >&6
12828else
12829 echo "$as_me:$LINENO: result: no" >&5
12830echo "${ECHO_T}no" >&6
12831fi
12832
12833 RANLIB=$ac_ct_RANLIB
12834else
12835 RANLIB="$ac_cv_prog_RANLIB"
12836fi
12837
12838
12839# Extract the first word of "ar", so it can be a program name with args.
12840set dummy ar; ac_word=$2
12841echo "$as_me:$LINENO: checking for $ac_word" >&5
12842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12843if test "${ac_cv_prog_AR+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12845else
12846 if test -n "$AR"; then
12847 ac_cv_prog_AR="$AR" # Let the user override the test.
12848else
12849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850for as_dir in $PATH
12851do
12852 IFS=$as_save_IFS
12853 test -z "$as_dir" && as_dir=.
12854 for ac_exec_ext in '' $ac_executable_extensions; do
12855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12856 ac_cv_prog_AR="ar"
12857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12858 break 2
12859 fi
12860done
12861done
12862
12863fi
12864fi
12865AR=$ac_cv_prog_AR
12866if test -n "$AR"; then
12867 echo "$as_me:$LINENO: result: $AR" >&5
12868echo "${ECHO_T}$AR" >&6
12869else
12870 echo "$as_me:$LINENO: result: no" >&5
12871echo "${ECHO_T}no" >&6
12872fi
12873
12874if test "x$AR" = "x" ; then
77ffb593
JS
12875 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12876echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12877 { (exit 1); exit 1; }; }
12878fi
12879
12880# Find a good install program. We prefer a C program (faster),
12881# so one script is as good as another. But avoid the broken or
12882# incompatible versions:
12883# SysV /etc/install, /usr/sbin/install
12884# SunOS /usr/etc/install
12885# IRIX /sbin/install
12886# AIX /bin/install
12887# AmigaOS /C/install, which installs bootblocks on floppy discs
12888# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12889# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12890# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12891# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12892# ./install, which can be erroneously created by make from ./install.sh.
12893echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12894echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12895if test -z "$INSTALL"; then
12896if test "${ac_cv_path_install+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898else
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900for as_dir in $PATH
12901do
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
12904 # Account for people who put trailing slashes in PATH elements.
12905case $as_dir/ in
12906 ./ | .// | /cC/* | \
12907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12908 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12909 /usr/ucb/* ) ;;
12910 *)
12911 # OSF1 and SCO ODT 3.0 have their own names for install.
12912 # Don't use installbsd from OSF since it installs stuff as root
12913 # by default.
12914 for ac_prog in ginstall scoinst install; do
12915 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12916 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12917 if test $ac_prog = install &&
12918 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12919 # AIX install. It has an incompatible calling convention.
12920 :
12921 elif test $ac_prog = install &&
12922 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12923 # program-specific install script used by HP pwplus--don't use.
12924 :
12925 else
12926 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12927 break 3
12928 fi
12929 fi
a848cd7e
SC
12930 done
12931 done
12932 ;;
12933esac
12934done
12935
12936
12937fi
12938 if test "${ac_cv_path_install+set}" = set; then
12939 INSTALL=$ac_cv_path_install
12940 else
12941 # As a last resort, use the slow shell script. We don't cache a
12942 # path for INSTALL within a source directory, because that will
12943 # break other packages using the cache if that directory is
12944 # removed, or if the path is relative.
12945 INSTALL=$ac_install_sh
12946 fi
12947fi
12948echo "$as_me:$LINENO: result: $INSTALL" >&5
12949echo "${ECHO_T}$INSTALL" >&6
12950
12951# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12952# It thinks the first close brace ends the variable substitution.
12953test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12954
12955test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12956
12957test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12958
12959
12960case ${INSTALL} in
12961 /* ) # Absolute
12962 ;;
12963 ?:* ) # Drive letter, considered as absolute.
12964 ;;
12965 *)
12966 INSTALL=`pwd`/${INSTALL} ;;
12967esac
12968
a848cd7e
SC
12969
12970case "${host}" in
12971
12972 powerpc-*-darwin* )
12973 INSTALL_PROGRAM="cp -fp"
12974 INSTALL_DATA="cp -fp"
12975 ;;
12976 *)
12977 ;;
12978esac
12979
12980# Extract the first word of "strip", so it can be a program name with args.
12981set dummy strip; ac_word=$2
12982echo "$as_me:$LINENO: checking for $ac_word" >&5
12983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12984if test "${ac_cv_prog_STRIP+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986else
12987 if test -n "$STRIP"; then
12988 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12989else
12990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991for as_dir in $PATH
12992do
12993 IFS=$as_save_IFS
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
12996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12997 ac_cv_prog_STRIP="strip"
12998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12999 break 2
13000 fi
13001done
13002done
13003
13004 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13005fi
13006fi
13007STRIP=$ac_cv_prog_STRIP
13008if test -n "$STRIP"; then
13009 echo "$as_me:$LINENO: result: $STRIP" >&5
13010echo "${ECHO_T}$STRIP" >&6
13011else
13012 echo "$as_me:$LINENO: result: no" >&5
13013echo "${ECHO_T}no" >&6
13014fi
13015
13016
13017echo "$as_me:$LINENO: checking if make is GNU make" >&5
13018echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13019if test "${wx_cv_prog_makeisgnu+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021else
13022
13023 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13024 egrep -s GNU > /dev/null); then
13025 wx_cv_prog_makeisgnu="yes"
13026 else
13027 wx_cv_prog_makeisgnu="no"
13028 fi
13029
13030fi
13031echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13032echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13033
13034if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13035 IF_GNU_MAKE=""
13036else
13037 IF_GNU_MAKE="#"
13038fi
13039
13040
13041
13042if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13043echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13044echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13045if test "${wx_cv_prog_makevpath+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13047else
13048
13049cat - << EOF > confMake
13050check : file
13051 cp \$? \$@
13052 cp \$? final_file
13053EOF
13054
13055if test ! -d sub ; then
13056 mkdir sub
13057fi
13058echo dummy > sub/file
13059${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13060RESULT=$?
13061rm -f sub/file check final_file confMake
13062rmdir sub
13063if test "$RESULT" = 0; then
13064 wx_cv_prog_makevpath="yes"
13065else
13066 wx_cv_prog_makevpath="no"
13067fi
13068
13069fi
13070echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13071echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13072
13073if test "x$wx_cv_prog_makevpath" != "xyes"; then
13074{ { echo "$as_me:$LINENO: error:
13075You need a make-utility that is able to use the variable
13076VPATH correctly.
13077If your version of make does not support VPATH correctly,
13078please install GNU-make (possibly as gmake), and start
13079configure with the following command:
13080export MAKE=gmake; ./configure for sh-type shells
13081setenv MAKE gmake; ./configure for csh-type shells
13082Also please do remember to use gmake in this case every time
13083you are trying to compile.
13084" >&5
13085echo "$as_me: error:
13086You need a make-utility that is able to use the variable
13087VPATH correctly.
13088If your version of make does not support VPATH correctly,
13089please install GNU-make (possibly as gmake), and start
13090configure with the following command:
13091export MAKE=gmake; ./configure for sh-type shells
13092setenv MAKE gmake; ./configure for csh-type shells
13093Also please do remember to use gmake in this case every time
13094you are trying to compile.
13095" >&2;}
13096 { (exit 1); exit 1; }; }
13097fi fi
13098echo "$as_me:$LINENO: checking whether ln -s works" >&5
13099echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13100LN_S=$as_ln_s
13101if test "$LN_S" = "ln -s"; then
13102 echo "$as_me:$LINENO: result: yes" >&5
13103echo "${ECHO_T}yes" >&6
13104else
13105 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13106echo "${ECHO_T}no, using $LN_S" >&6
13107fi
13108
13109
13110
9273ffba
DE
13111if test "x$XLCXX" = "xyes"; then
13112 CXXFLAGS="$CXXFLAGS -qunique"
13113fi
13114
13115
4d7ec9f1
DE
13116case "${host}" in
13117 powerpc-*-darwin* )
13118 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13119echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13120 cat >conftest.$ac_ext <<_ACEOF
13121/* confdefs.h. */
13122_ACEOF
13123cat confdefs.h >>conftest.$ac_ext
13124cat >>conftest.$ac_ext <<_ACEOF
13125/* end confdefs.h. */
13126
13127int
13128main ()
13129{
13130#ifndef __POWERPC__
13131 choke me for lack of PowerPC
13132#endif
13133
13134 ;
13135 return 0;
13136}
13137_ACEOF
13138rm -f conftest.$ac_objext
13139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140 (eval $ac_compile) 2>conftest.er1
13141 ac_status=$?
13142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
07158944 13147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; } &&
13153 { ac_try='test -s conftest.$ac_objext'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; }; then
13159 echo "$as_me:$LINENO: result: yes" >&5
13160echo "${ECHO_T}yes" >&6
13161else
13162 echo "$as_me: failed program was:" >&5
13163sed 's/^/| /' conftest.$ac_ext >&5
13164
13165echo "$as_me:$LINENO: result: no" >&5
13166echo "${ECHO_T}no" >&6
13167 cat >>confdefs.h <<\_ACEOF
13168#define __POWERPC__ 1
13169_ACEOF
13170
13171
13172fi
13173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13174 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13175echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13176 cat >conftest.$ac_ext <<_ACEOF
13177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h. */
13182#include <CoreFoundation/CFBase.h>
13183
13184int
13185main ()
13186{
13187
13188 ;
13189 return 0;
13190}
13191_ACEOF
13192rm -f conftest.$ac_objext
13193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13194 (eval $ac_compile) 2>conftest.er1
13195 ac_status=$?
13196 grep -v '^ *+' conftest.er1 >conftest.err
13197 rm -f conftest.er1
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } &&
07158944 13201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203 (eval $ac_try) 2>&5
13204 ac_status=$?
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; } &&
13207 { ac_try='test -s conftest.$ac_objext'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13213 echo "$as_me:$LINENO: result: yes" >&5
13214echo "${ECHO_T}yes" >&6
13215else
13216 echo "$as_me: failed program was:" >&5
13217sed 's/^/| /' conftest.$ac_ext >&5
13218
13219echo "$as_me:$LINENO: result: no" >&5
13220echo "${ECHO_T}no" >&6
13221 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13222echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13223 cat >conftest.$ac_ext <<_ACEOF
13224/* confdefs.h. */
13225_ACEOF
13226cat confdefs.h >>conftest.$ac_ext
13227cat >>conftest.$ac_ext <<_ACEOF
13228/* end confdefs.h. */
13229#define __CF_USE_FRAMEWORK_INCLUDES__
13230#include <CoreFoundation/CFBase.h>
13231
13232int
13233main ()
13234{
13235
13236 ;
13237 return 0;
13238}
13239_ACEOF
13240rm -f conftest.$ac_objext
13241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13242 (eval $ac_compile) 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
07158944 13249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest.$ac_objext'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 echo "$as_me:$LINENO: result: yes" >&5
13262echo "${ECHO_T}yes" >&6
13263 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13264else
13265 echo "$as_me: failed program was:" >&5
13266sed 's/^/| /' conftest.$ac_ext >&5
13267
13268{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13269See \`config.log' for more details." >&5
13270echo "$as_me: error: no. CoreFoundation not available.
13271See \`config.log' for more details." >&2;}
13272 { (exit 1); exit 1; }; }
13273
13274fi
13275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13276
13277
13278fi
13279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13280 ;;
13281esac
13282
a848cd7e
SC
13283case "${host}" in
13284 *-pc-os2_emx | *-pc-os2-emx )
13285 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13286 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13287echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13288if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290else
13291 ac_check_lib_save_LIBS=$LIBS
13292LIBS="-lcExt $LIBS"
13293cat >conftest.$ac_ext <<_ACEOF
13294/* confdefs.h. */
13295_ACEOF
13296cat confdefs.h >>conftest.$ac_ext
13297cat >>conftest.$ac_ext <<_ACEOF
13298/* end confdefs.h. */
13299
13300/* Override any gcc2 internal prototype to avoid an error. */
13301#ifdef __cplusplus
13302extern "C"
13303#endif
13304/* We use char because int might match the return type of a gcc2
13305 builtin and then its argument prototype would still apply. */
13306char drand48 ();
13307int
13308main ()
13309{
13310drand48 ();
13311 ;
13312 return 0;
13313}
13314_ACEOF
13315rm -f conftest.$ac_objext conftest$ac_exeext
13316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13317 (eval $ac_link) 2>conftest.er1
a848cd7e 13318 ac_status=$?
ac1cb8d3
VS
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
a848cd7e
SC
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
07158944 13324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13333 ac_status=$?
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13336 ac_cv_lib_cExt_drand48=yes
13337else
13338 echo "$as_me: failed program was:" >&5
13339sed 's/^/| /' conftest.$ac_ext >&5
13340
13341ac_cv_lib_cExt_drand48=no
13342fi
ac1cb8d3
VS
13343rm -f conftest.err conftest.$ac_objext \
13344 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13345LIBS=$ac_check_lib_save_LIBS
13346fi
13347echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13348echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13349if test $ac_cv_lib_cExt_drand48 = yes; then
13350 LIBS="$LIBS -lcExt"
13351fi
13352
13353 else
13354 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13355 fi
391a765e 13356 echo "$as_me:$LINENO: checking for gcc version" >&5
a848cd7e
SC
13357echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
13358if test "${wx_cv_gccversion+set}" = set; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13360else
13361
391a765e
VS
13362 if test "$cross_compiling" = yes; then
13363 wx_cv_gccversion="EMX2"
13364
13365else
13366 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13367/* confdefs.h. */
13368_ACEOF
13369cat confdefs.h >>conftest.$ac_ext
13370cat >>conftest.$ac_ext <<_ACEOF
13371/* end confdefs.h. */
13372
391a765e 13373 #include <stdio.h>
a848cd7e 13374
391a765e
VS
13375 int main()
13376 {
13377 FILE *f=fopen("conftestval", "w");
13378 if (!f) exit(1);
13379 fprintf(f,
a848cd7e 13380 #if (__GNUC__ < 3)
391a765e
VS
13381 "EMX2"
13382 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13383 "EMX3"
13384 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13385 "Innotek5"
13386 #else
13387 "Innotek6"
a848cd7e 13388 #endif
391a765e
VS
13389 );
13390 exit(0);
13391 }
a848cd7e 13392
a848cd7e 13393_ACEOF
391a765e
VS
13394rm -f conftest$ac_exeext
13395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13396 (eval $ac_link) 2>&5
ac1cb8d3
VS
13397 ac_status=$?
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
391a765e 13405 wx_cv_gccversion=`cat conftestval`
a848cd7e 13406else
391a765e
VS
13407 echo "$as_me: program exited with status $ac_status" >&5
13408echo "$as_me: failed program was:" >&5
a848cd7e
SC
13409sed 's/^/| /' conftest.$ac_ext >&5
13410
391a765e
VS
13411( exit $ac_status )
13412wx_cv_gccversion="EMX2"
a848cd7e 13413fi
391a765e 13414rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13415fi
a848cd7e
SC
13416
13417fi
13418echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13419echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13420 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13421 LIBS="$LIBS -lstdcpp"
13422 LDFLAGS="$LDFLAGS -Zsysv-signals"
13423 else
391a765e 13424 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13425 LIBS="$LIBS -lstdcxx"
13426 LDFLAGS="$LDFLAGS -Zsysv-signals"
13427 else
13428 LIBS="$LIBS -lstdc++"
13429 fi
13430 fi
94acd38e
DE
13431 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13432 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13433echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13434 wxUSE_OMF=yes
2da0c077 13435 enable_omf=yes
94acd38e 13436 fi
a848cd7e 13437 if test "$wxUSE_OMF" = "yes"; then
2da0c077 13438 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK -Zlinker /PMTYPE:PM"
a848cd7e
SC
13439 fi
13440 ;;
13441 *)
13442
13443
13444
13445 ac_ext=cc
13446ac_cpp='$CXXCPP $CPPFLAGS'
13447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13450
13451
95986553 13452 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13453echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13454if test "${ac_cv_string_strcasecmp+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456else
13457
13458 cat >conftest.$ac_ext <<_ACEOF
13459/* confdefs.h. */
13460_ACEOF
13461cat confdefs.h >>conftest.$ac_ext
13462cat >>conftest.$ac_ext <<_ACEOF
13463/* end confdefs.h. */
13464
13465 #include <string.h>
13466
13467int
13468main ()
13469{
13470
13471 strcasecmp("foo", "bar");
13472
13473 ;
13474 return 0;
13475}
13476_ACEOF
13477rm -f conftest.$ac_objext conftest$ac_exeext
13478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13479 (eval $ac_link) 2>conftest.er1
a848cd7e 13480 ac_status=$?
ac1cb8d3
VS
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
a848cd7e
SC
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
07158944 13486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_string_strcasecmp=yes
13499else
13500 echo "$as_me: failed program was:" >&5
13501sed 's/^/| /' conftest.$ac_ext >&5
13502
13503ac_cv_string_strcasecmp=no
13504
13505fi
ac1cb8d3
VS
13506rm -f conftest.err conftest.$ac_objext \
13507 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13508
13509fi
13510echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13511echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13512
13513 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13514 cat >>confdefs.h <<\_ACEOF
13515#define HAVE_STRCASECMP_IN_STRING_H 1
13516_ACEOF
13517
13518 else
13519 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13520echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13521if test "${ac_cv_strings_strcasecmp+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13523else
13524
13525 cat >conftest.$ac_ext <<_ACEOF
13526/* confdefs.h. */
13527_ACEOF
13528cat confdefs.h >>conftest.$ac_ext
13529cat >>conftest.$ac_ext <<_ACEOF
13530/* end confdefs.h. */
13531
13532 #include <strings.h>
13533
13534int
13535main ()
13536{
13537
13538 strcasecmp("foo", "bar");
13539
13540 ;
13541 return 0;
13542}
13543_ACEOF
13544rm -f conftest.$ac_objext conftest$ac_exeext
13545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13546 (eval $ac_link) 2>conftest.er1
a848cd7e 13547 ac_status=$?
ac1cb8d3
VS
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
a848cd7e
SC
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } &&
07158944 13553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13556 ac_status=$?
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; } &&
13559 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13562 ac_status=$?
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; }; then
13565 ac_cv_strings_strcasecmp=yes
13566else
13567 echo "$as_me: failed program was:" >&5
13568sed 's/^/| /' conftest.$ac_ext >&5
13569
13570ac_cv_strings_strcasecmp=no
13571
13572fi
ac1cb8d3
VS
13573rm -f conftest.err conftest.$ac_objext \
13574 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13575
13576fi
13577echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13578echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13579
0c3c69fc 13580 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13581 cat >>confdefs.h <<\_ACEOF
13582#define HAVE_STRCASECMP_IN_STRINGS_H 1
13583_ACEOF
13584
13585 else
13586 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13587echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13588 { (exit 1); exit 1; }; }
13589 fi
13590 fi
13591
13592 ac_ext=c
13593ac_cpp='$CPP $CPPFLAGS'
13594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13596ac_compiler_gnu=$ac_cv_c_compiler_gnu
13597
13598 ;;
13599esac
13600
13601
13602echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13603echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13604if test "${ac_cv_header_stdc+set}" = set; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13606else
13607 cat >conftest.$ac_ext <<_ACEOF
13608/* confdefs.h. */
13609_ACEOF
13610cat confdefs.h >>conftest.$ac_ext
13611cat >>conftest.$ac_ext <<_ACEOF
13612/* end confdefs.h. */
13613#include <stdlib.h>
13614#include <stdarg.h>
13615#include <string.h>
13616#include <float.h>
13617
13618int
13619main ()
13620{
13621
13622 ;
13623 return 0;
13624}
13625_ACEOF
13626rm -f conftest.$ac_objext
13627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13628 (eval $ac_compile) 2>conftest.er1
a848cd7e 13629 ac_status=$?
ac1cb8d3
VS
13630 grep -v '^ *+' conftest.er1 >conftest.err
13631 rm -f conftest.er1
13632 cat conftest.err >&5
a848cd7e
SC
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
07158944 13635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; } &&
13641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 ac_cv_header_stdc=yes
13648else
13649 echo "$as_me: failed program was:" >&5
13650sed 's/^/| /' conftest.$ac_ext >&5
13651
13652ac_cv_header_stdc=no
13653fi
ac1cb8d3 13654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13655
13656if test $ac_cv_header_stdc = yes; then
13657 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13658 cat >conftest.$ac_ext <<_ACEOF
13659/* confdefs.h. */
13660_ACEOF
13661cat confdefs.h >>conftest.$ac_ext
13662cat >>conftest.$ac_ext <<_ACEOF
13663/* end confdefs.h. */
13664#include <string.h>
13665
13666_ACEOF
13667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13668 $EGREP "memchr" >/dev/null 2>&1; then
13669 :
13670else
13671 ac_cv_header_stdc=no
13672fi
13673rm -f conftest*
13674
13675fi
13676
13677if test $ac_cv_header_stdc = yes; then
13678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13679 cat >conftest.$ac_ext <<_ACEOF
13680/* confdefs.h. */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
13684/* end confdefs.h. */
13685#include <stdlib.h>
13686
13687_ACEOF
13688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13689 $EGREP "free" >/dev/null 2>&1; then
13690 :
13691else
13692 ac_cv_header_stdc=no
13693fi
13694rm -f conftest*
13695
13696fi
13697
13698if test $ac_cv_header_stdc = yes; then
13699 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13700 if test "$cross_compiling" = yes; then
13701 :
13702else
13703 cat >conftest.$ac_ext <<_ACEOF
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
13709#include <ctype.h>
13710#if ((' ' & 0x0FF) == 0x020)
13711# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13712# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13713#else
13714# define ISLOWER(c) \
ac1cb8d3
VS
13715 (('a' <= (c) && (c) <= 'i') \
13716 || ('j' <= (c) && (c) <= 'r') \
13717 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13718# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13719#endif
13720
13721#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13722int
13723main ()
13724{
13725 int i;
13726 for (i = 0; i < 256; i++)
13727 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13728 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13729 exit(2);
13730 exit (0);
13731}
13732_ACEOF
13733rm -f conftest$ac_exeext
13734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13735 (eval $ac_link) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 :
13745else
13746 echo "$as_me: program exited with status $ac_status" >&5
13747echo "$as_me: failed program was:" >&5
13748sed 's/^/| /' conftest.$ac_ext >&5
13749
13750( exit $ac_status )
13751ac_cv_header_stdc=no
13752fi
ac1cb8d3 13753rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13754fi
13755fi
13756fi
13757echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13758echo "${ECHO_T}$ac_cv_header_stdc" >&6
13759if test $ac_cv_header_stdc = yes; then
13760
13761cat >>confdefs.h <<\_ACEOF
13762#define STDC_HEADERS 1
13763_ACEOF
13764
13765fi
13766
13767# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13778 inttypes.h stdint.h unistd.h
a848cd7e
SC
13779do
13780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13781echo "$as_me:$LINENO: checking for $ac_header" >&5
13782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13783if eval "test \"\${$as_ac_Header+set}\" = set"; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13785else
13786 cat >conftest.$ac_ext <<_ACEOF
13787/* confdefs.h. */
13788_ACEOF
13789cat confdefs.h >>conftest.$ac_ext
13790cat >>conftest.$ac_ext <<_ACEOF
13791/* end confdefs.h. */
13792$ac_includes_default
13793
13794#include <$ac_header>
13795_ACEOF
13796rm -f conftest.$ac_objext
13797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13798 (eval $ac_compile) 2>conftest.er1
a848cd7e 13799 ac_status=$?
ac1cb8d3
VS
13800 grep -v '^ *+' conftest.er1 >conftest.err
13801 rm -f conftest.er1
13802 cat conftest.err >&5
a848cd7e
SC
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } &&
07158944 13805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 eval "$as_ac_Header=yes"
13818else
13819 echo "$as_me: failed program was:" >&5
13820sed 's/^/| /' conftest.$ac_ext >&5
13821
13822eval "$as_ac_Header=no"
13823fi
ac1cb8d3 13824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13825fi
13826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13828if test `eval echo '${'$as_ac_Header'}'` = yes; then
13829 cat >>confdefs.h <<_ACEOF
13830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13831_ACEOF
13832
13833fi
13834
13835done
13836
13837
13838
13839for ac_header in stdlib.h
13840do
13841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13842if eval "test \"\${$as_ac_Header+set}\" = set"; then
13843 echo "$as_me:$LINENO: checking for $ac_header" >&5
13844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13845if eval "test \"\${$as_ac_Header+set}\" = set"; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13847fi
13848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13850else
13851 # Is the header compilable?
13852echo "$as_me:$LINENO: checking $ac_header usability" >&5
13853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13854cat >conftest.$ac_ext <<_ACEOF
13855/* confdefs.h. */
13856_ACEOF
13857cat confdefs.h >>conftest.$ac_ext
13858cat >>conftest.$ac_ext <<_ACEOF
13859/* end confdefs.h. */
13860$ac_includes_default
13861#include <$ac_header>
13862_ACEOF
13863rm -f conftest.$ac_objext
13864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13865 (eval $ac_compile) 2>conftest.er1
a848cd7e 13866 ac_status=$?
ac1cb8d3
VS
13867 grep -v '^ *+' conftest.er1 >conftest.err
13868 rm -f conftest.er1
13869 cat conftest.err >&5
a848cd7e
SC
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } &&
07158944 13872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } &&
13878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 ac_header_compiler=yes
13885else
13886 echo "$as_me: failed program was:" >&5
13887sed 's/^/| /' conftest.$ac_ext >&5
13888
13889ac_header_compiler=no
13890fi
ac1cb8d3 13891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13892echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13893echo "${ECHO_T}$ac_header_compiler" >&6
13894
13895# Is the header present?
13896echo "$as_me:$LINENO: checking $ac_header presence" >&5
13897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13898cat >conftest.$ac_ext <<_ACEOF
13899/* confdefs.h. */
13900_ACEOF
13901cat confdefs.h >>conftest.$ac_ext
13902cat >>conftest.$ac_ext <<_ACEOF
13903/* end confdefs.h. */
13904#include <$ac_header>
13905_ACEOF
13906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } >/dev/null; then
13914 if test -s conftest.err; then
13915 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13917 else
13918 ac_cpp_err=
13919 fi
13920else
13921 ac_cpp_err=yes
13922fi
13923if test -z "$ac_cpp_err"; then
13924 ac_header_preproc=yes
13925else
13926 echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5
13928
13929 ac_header_preproc=no
13930fi
13931rm -f conftest.err conftest.$ac_ext
13932echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13933echo "${ECHO_T}$ac_header_preproc" >&6
13934
13935# So? What about this header?
ac1cb8d3
VS
13936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13937 yes:no: )
a848cd7e
SC
13938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13939echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13941echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13942 ac_header_preproc=yes
a848cd7e 13943 ;;
ac1cb8d3 13944 no:yes:* )
a848cd7e
SC
13945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13946echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13948echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13950echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13952echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13954echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13956echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13957 (
13958 cat <<\_ASBOX
ac1cb8d3
VS
13959## ----------------------------------------- ##
13960## Report this to wx-dev@lists.wxwidgets.org ##
13961## ----------------------------------------- ##
a848cd7e
SC
13962_ASBOX
13963 ) |
13964 sed "s/^/$as_me: WARNING: /" >&2
13965 ;;
13966esac
13967echo "$as_me:$LINENO: checking for $ac_header" >&5
13968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13969if eval "test \"\${$as_ac_Header+set}\" = set"; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971else
ac1cb8d3 13972 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13973fi
13974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13975echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13976
13977fi
13978if test `eval echo '${'$as_ac_Header'}'` = yes; then
13979 cat >>confdefs.h <<_ACEOF
13980#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13981_ACEOF
13982
13983fi
13984
13985done
13986
13987
13988for ac_header in malloc.h
13989do
13990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13991if eval "test \"\${$as_ac_Header+set}\" = set"; then
13992 echo "$as_me:$LINENO: checking for $ac_header" >&5
13993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13994if eval "test \"\${$as_ac_Header+set}\" = set"; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996fi
13997echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13998echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13999else
14000 # Is the header compilable?
14001echo "$as_me:$LINENO: checking $ac_header usability" >&5
14002echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14003cat >conftest.$ac_ext <<_ACEOF
14004/* confdefs.h. */
14005_ACEOF
14006cat confdefs.h >>conftest.$ac_ext
14007cat >>conftest.$ac_ext <<_ACEOF
14008/* end confdefs.h. */
14009$ac_includes_default
14010#include <$ac_header>
14011_ACEOF
14012rm -f conftest.$ac_objext
14013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14014 (eval $ac_compile) 2>conftest.er1
a848cd7e 14015 ac_status=$?
ac1cb8d3
VS
14016 grep -v '^ *+' conftest.er1 >conftest.err
14017 rm -f conftest.er1
14018 cat conftest.err >&5
a848cd7e
SC
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
07158944 14021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_header_compiler=yes
14034else
14035 echo "$as_me: failed program was:" >&5
14036sed 's/^/| /' conftest.$ac_ext >&5
14037
14038ac_header_compiler=no
14039fi
ac1cb8d3 14040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14042echo "${ECHO_T}$ac_header_compiler" >&6
14043
14044# Is the header present?
14045echo "$as_me:$LINENO: checking $ac_header presence" >&5
14046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14047cat >conftest.$ac_ext <<_ACEOF
14048/* confdefs.h. */
14049_ACEOF
14050cat confdefs.h >>conftest.$ac_ext
14051cat >>conftest.$ac_ext <<_ACEOF
14052/* end confdefs.h. */
14053#include <$ac_header>
14054_ACEOF
14055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } >/dev/null; then
14063 if test -s conftest.err; then
14064 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14066 else
14067 ac_cpp_err=
14068 fi
14069else
14070 ac_cpp_err=yes
14071fi
14072if test -z "$ac_cpp_err"; then
14073 ac_header_preproc=yes
14074else
14075 echo "$as_me: failed program was:" >&5
14076sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 ac_header_preproc=no
14079fi
14080rm -f conftest.err conftest.$ac_ext
14081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14082echo "${ECHO_T}$ac_header_preproc" >&6
14083
14084# So? What about this header?
ac1cb8d3
VS
14085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14086 yes:no: )
a848cd7e
SC
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14088echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14090echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14091 ac_header_preproc=yes
a848cd7e 14092 ;;
ac1cb8d3 14093 no:yes:* )
a848cd7e
SC
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14095echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14097echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14099echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14101echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14103echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14105echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14106 (
14107 cat <<\_ASBOX
ac1cb8d3
VS
14108## ----------------------------------------- ##
14109## Report this to wx-dev@lists.wxwidgets.org ##
14110## ----------------------------------------- ##
a848cd7e
SC
14111_ASBOX
14112 ) |
14113 sed "s/^/$as_me: WARNING: /" >&2
14114 ;;
14115esac
14116echo "$as_me:$LINENO: checking for $ac_header" >&5
14117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14118if eval "test \"\${$as_ac_Header+set}\" = set"; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14120else
ac1cb8d3 14121 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14122fi
14123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14125
14126fi
14127if test `eval echo '${'$as_ac_Header'}'` = yes; then
14128 cat >>confdefs.h <<_ACEOF
14129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14130_ACEOF
14131
14132fi
14133
14134done
14135
14136
14137for ac_header in unistd.h
14138do
14139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14140if eval "test \"\${$as_ac_Header+set}\" = set"; then
14141 echo "$as_me:$LINENO: checking for $ac_header" >&5
14142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14143if eval "test \"\${$as_ac_Header+set}\" = set"; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14145fi
14146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14148else
14149 # Is the header compilable?
14150echo "$as_me:$LINENO: checking $ac_header usability" >&5
14151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14152cat >conftest.$ac_ext <<_ACEOF
14153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
14158$ac_includes_default
14159#include <$ac_header>
14160_ACEOF
14161rm -f conftest.$ac_objext
14162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14163 (eval $ac_compile) 2>conftest.er1
a848cd7e 14164 ac_status=$?
ac1cb8d3
VS
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
a848cd7e
SC
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
07158944 14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_header_compiler=yes
14183else
14184 echo "$as_me: failed program was:" >&5
14185sed 's/^/| /' conftest.$ac_ext >&5
14186
14187ac_header_compiler=no
14188fi
ac1cb8d3 14189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14191echo "${ECHO_T}$ac_header_compiler" >&6
14192
14193# Is the header present?
14194echo "$as_me:$LINENO: checking $ac_header presence" >&5
14195echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14196cat >conftest.$ac_ext <<_ACEOF
14197/* confdefs.h. */
14198_ACEOF
14199cat confdefs.h >>conftest.$ac_ext
14200cat >>conftest.$ac_ext <<_ACEOF
14201/* end confdefs.h. */
14202#include <$ac_header>
14203_ACEOF
14204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14206 ac_status=$?
14207 grep -v '^ *+' conftest.er1 >conftest.err
14208 rm -f conftest.er1
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } >/dev/null; then
14212 if test -s conftest.err; then
14213 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14215 else
14216 ac_cpp_err=
14217 fi
14218else
14219 ac_cpp_err=yes
14220fi
14221if test -z "$ac_cpp_err"; then
14222 ac_header_preproc=yes
14223else
14224 echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5
14226
14227 ac_header_preproc=no
14228fi
14229rm -f conftest.err conftest.$ac_ext
14230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14231echo "${ECHO_T}$ac_header_preproc" >&6
14232
14233# So? What about this header?
ac1cb8d3
VS
14234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14235 yes:no: )
a848cd7e
SC
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14240 ac_header_preproc=yes
a848cd7e 14241 ;;
ac1cb8d3 14242 no:yes:* )
a848cd7e
SC
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14246echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14250echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14255 (
14256 cat <<\_ASBOX
ac1cb8d3
VS
14257## ----------------------------------------- ##
14258## Report this to wx-dev@lists.wxwidgets.org ##
14259## ----------------------------------------- ##
a848cd7e
SC
14260_ASBOX
14261 ) |
14262 sed "s/^/$as_me: WARNING: /" >&2
14263 ;;
14264esac
14265echo "$as_me:$LINENO: checking for $ac_header" >&5
14266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14267if eval "test \"\${$as_ac_Header+set}\" = set"; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14269else
ac1cb8d3 14270 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14271fi
14272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14274
14275fi
14276if test `eval echo '${'$as_ac_Header'}'` = yes; then
14277 cat >>confdefs.h <<_ACEOF
14278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14279_ACEOF
14280
14281fi
14282
14283done
14284
14285
14286for ac_header in wchar.h
14287do
14288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14289if eval "test \"\${$as_ac_Header+set}\" = set"; then
14290 echo "$as_me:$LINENO: checking for $ac_header" >&5
14291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14292if eval "test \"\${$as_ac_Header+set}\" = set"; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14294fi
14295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14297else
14298 # Is the header compilable?
14299echo "$as_me:$LINENO: checking $ac_header usability" >&5
14300echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14301cat >conftest.$ac_ext <<_ACEOF
14302/* confdefs.h. */
14303_ACEOF
14304cat confdefs.h >>conftest.$ac_ext
14305cat >>conftest.$ac_ext <<_ACEOF
14306/* end confdefs.h. */
14307$ac_includes_default
14308#include <$ac_header>
14309_ACEOF
14310rm -f conftest.$ac_objext
14311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14312 (eval $ac_compile) 2>conftest.er1
a848cd7e 14313 ac_status=$?
ac1cb8d3
VS
14314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
a848cd7e
SC
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
07158944 14319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 ac_header_compiler=yes
14332else
14333 echo "$as_me: failed program was:" >&5
14334sed 's/^/| /' conftest.$ac_ext >&5
14335
14336ac_header_compiler=no
14337fi
ac1cb8d3 14338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14340echo "${ECHO_T}$ac_header_compiler" >&6
14341
14342# Is the header present?
14343echo "$as_me:$LINENO: checking $ac_header presence" >&5
14344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14345cat >conftest.$ac_ext <<_ACEOF
14346/* confdefs.h. */
14347_ACEOF
14348cat confdefs.h >>conftest.$ac_ext
14349cat >>conftest.$ac_ext <<_ACEOF
14350/* end confdefs.h. */
14351#include <$ac_header>
14352_ACEOF
14353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14355 ac_status=$?
14356 grep -v '^ *+' conftest.er1 >conftest.err
14357 rm -f conftest.er1
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } >/dev/null; then
14361 if test -s conftest.err; then
14362 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14364 else
14365 ac_cpp_err=
14366 fi
14367else
14368 ac_cpp_err=yes
14369fi
14370if test -z "$ac_cpp_err"; then
14371 ac_header_preproc=yes
14372else
14373 echo "$as_me: failed program was:" >&5
14374sed 's/^/| /' conftest.$ac_ext >&5
14375
14376 ac_header_preproc=no
14377fi
14378rm -f conftest.err conftest.$ac_ext
14379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14380echo "${ECHO_T}$ac_header_preproc" >&6
14381
14382# So? What about this header?
ac1cb8d3
VS
14383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14384 yes:no: )
a848cd7e
SC
14385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14389 ac_header_preproc=yes
a848cd7e 14390 ;;
ac1cb8d3 14391 no:yes:* )
a848cd7e
SC
14392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14404 (
14405 cat <<\_ASBOX
ac1cb8d3
VS
14406## ----------------------------------------- ##
14407## Report this to wx-dev@lists.wxwidgets.org ##
14408## ----------------------------------------- ##
a848cd7e
SC
14409_ASBOX
14410 ) |
14411 sed "s/^/$as_me: WARNING: /" >&2
14412 ;;
14413esac
14414echo "$as_me:$LINENO: checking for $ac_header" >&5
14415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14416if eval "test \"\${$as_ac_Header+set}\" = set"; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14418else
ac1cb8d3 14419 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14420fi
14421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14423
14424fi
14425if test `eval echo '${'$as_ac_Header'}'` = yes; then
14426 cat >>confdefs.h <<_ACEOF
14427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14428_ACEOF
14429
14430fi
14431
14432done
14433
14434
14435if test "$ac_cv_header_wchar_h" != "yes"; then
14436
14437for ac_header in wcstr.h
14438do
14439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14440if eval "test \"\${$as_ac_Header+set}\" = set"; then
14441 echo "$as_me:$LINENO: checking for $ac_header" >&5
14442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14443if eval "test \"\${$as_ac_Header+set}\" = set"; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14445fi
14446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14448else
14449 # Is the header compilable?
14450echo "$as_me:$LINENO: checking $ac_header usability" >&5
14451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14452cat >conftest.$ac_ext <<_ACEOF
14453/* confdefs.h. */
14454_ACEOF
14455cat confdefs.h >>conftest.$ac_ext
14456cat >>conftest.$ac_ext <<_ACEOF
14457/* end confdefs.h. */
14458$ac_includes_default
14459#include <$ac_header>
14460_ACEOF
14461rm -f conftest.$ac_objext
14462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14463 (eval $ac_compile) 2>conftest.er1
a848cd7e 14464 ac_status=$?
ac1cb8d3
VS
14465 grep -v '^ *+' conftest.er1 >conftest.err
14466 rm -f conftest.er1
14467 cat conftest.err >&5
a848cd7e
SC
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
07158944 14470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_header_compiler=yes
14483else
14484 echo "$as_me: failed program was:" >&5
14485sed 's/^/| /' conftest.$ac_ext >&5
14486
14487ac_header_compiler=no
14488fi
ac1cb8d3 14489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14490echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14491echo "${ECHO_T}$ac_header_compiler" >&6
14492
14493# Is the header present?
14494echo "$as_me:$LINENO: checking $ac_header presence" >&5
14495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14496cat >conftest.$ac_ext <<_ACEOF
14497/* confdefs.h. */
14498_ACEOF
14499cat confdefs.h >>conftest.$ac_ext
14500cat >>conftest.$ac_ext <<_ACEOF
14501/* end confdefs.h. */
14502#include <$ac_header>
14503_ACEOF
14504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } >/dev/null; then
14512 if test -s conftest.err; then
14513 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14515 else
14516 ac_cpp_err=
14517 fi
14518else
14519 ac_cpp_err=yes
14520fi
14521if test -z "$ac_cpp_err"; then
14522 ac_header_preproc=yes
14523else
14524 echo "$as_me: failed program was:" >&5
14525sed 's/^/| /' conftest.$ac_ext >&5
14526
14527 ac_header_preproc=no
14528fi
14529rm -f conftest.err conftest.$ac_ext
14530echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14531echo "${ECHO_T}$ac_header_preproc" >&6
14532
14533# So? What about this header?
ac1cb8d3
VS
14534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14535 yes:no: )
a848cd7e
SC
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14540 ac_header_preproc=yes
a848cd7e 14541 ;;
ac1cb8d3 14542 no:yes:* )
a848cd7e
SC
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14546echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14550echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14555 (
14556 cat <<\_ASBOX
ac1cb8d3
VS
14557## ----------------------------------------- ##
14558## Report this to wx-dev@lists.wxwidgets.org ##
14559## ----------------------------------------- ##
a848cd7e
SC
14560_ASBOX
14561 ) |
14562 sed "s/^/$as_me: WARNING: /" >&2
14563 ;;
14564esac
14565echo "$as_me:$LINENO: checking for $ac_header" >&5
14566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14567if eval "test \"\${$as_ac_Header+set}\" = set"; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569else
ac1cb8d3 14570 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14571fi
14572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14574
14575fi
14576if test `eval echo '${'$as_ac_Header'}'` = yes; then
14577 cat >>confdefs.h <<_ACEOF
14578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14579_ACEOF
14580
14581fi
14582
14583done
14584
14585fi
14586
14587
14588for ac_header in fnmatch.h
14589do
14590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14591if eval "test \"\${$as_ac_Header+set}\" = set"; then
14592 echo "$as_me:$LINENO: checking for $ac_header" >&5
14593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14594if eval "test \"\${$as_ac_Header+set}\" = set"; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14596fi
14597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14599else
14600 # Is the header compilable?
14601echo "$as_me:$LINENO: checking $ac_header usability" >&5
14602echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14603cat >conftest.$ac_ext <<_ACEOF
14604/* confdefs.h. */
14605_ACEOF
14606cat confdefs.h >>conftest.$ac_ext
14607cat >>conftest.$ac_ext <<_ACEOF
14608/* end confdefs.h. */
14609$ac_includes_default
14610#include <$ac_header>
14611_ACEOF
14612rm -f conftest.$ac_objext
14613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14614 (eval $ac_compile) 2>conftest.er1
a848cd7e 14615 ac_status=$?
ac1cb8d3
VS
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
a848cd7e
SC
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
07158944 14621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; } &&
14627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14633 ac_header_compiler=yes
14634else
14635 echo "$as_me: failed program was:" >&5
14636sed 's/^/| /' conftest.$ac_ext >&5
14637
14638ac_header_compiler=no
14639fi
ac1cb8d3 14640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14641echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14642echo "${ECHO_T}$ac_header_compiler" >&6
14643
14644# Is the header present?
14645echo "$as_me:$LINENO: checking $ac_header presence" >&5
14646echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14647cat >conftest.$ac_ext <<_ACEOF
14648/* confdefs.h. */
14649_ACEOF
14650cat confdefs.h >>conftest.$ac_ext
14651cat >>conftest.$ac_ext <<_ACEOF
14652/* end confdefs.h. */
14653#include <$ac_header>
14654_ACEOF
14655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14657 ac_status=$?
14658 grep -v '^ *+' conftest.er1 >conftest.err
14659 rm -f conftest.er1
14660 cat conftest.err >&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } >/dev/null; then
14663 if test -s conftest.err; then
14664 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14666 else
14667 ac_cpp_err=
14668 fi
14669else
14670 ac_cpp_err=yes
14671fi
14672if test -z "$ac_cpp_err"; then
14673 ac_header_preproc=yes
14674else
14675 echo "$as_me: failed program was:" >&5
14676sed 's/^/| /' conftest.$ac_ext >&5
14677
14678 ac_header_preproc=no
14679fi
14680rm -f conftest.err conftest.$ac_ext
14681echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14682echo "${ECHO_T}$ac_header_preproc" >&6
14683
14684# So? What about this header?
ac1cb8d3
VS
14685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14686 yes:no: )
a848cd7e
SC
14687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14688echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14690echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14691 ac_header_preproc=yes
a848cd7e 14692 ;;
ac1cb8d3 14693 no:yes:* )
a848cd7e
SC
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14695echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14697echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14699echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14701echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14703echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14705echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14706 (
14707 cat <<\_ASBOX
ac1cb8d3
VS
14708## ----------------------------------------- ##
14709## Report this to wx-dev@lists.wxwidgets.org ##
14710## ----------------------------------------- ##
a848cd7e
SC
14711_ASBOX
14712 ) |
14713 sed "s/^/$as_me: WARNING: /" >&2
14714 ;;
14715esac
14716echo "$as_me:$LINENO: checking for $ac_header" >&5
14717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14718if eval "test \"\${$as_ac_Header+set}\" = set"; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14720else
ac1cb8d3 14721 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14722fi
14723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14725
14726fi
14727if test `eval echo '${'$as_ac_Header'}'` = yes; then
14728 cat >>confdefs.h <<_ACEOF
14729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14730_ACEOF
14731
14732fi
14733
14734done
14735
14736
14737if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14738
14739for ac_func in fnmatch
14740do
14741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14742echo "$as_me:$LINENO: checking for $ac_func" >&5
14743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14744if eval "test \"\${$as_ac_var+set}\" = set"; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14746else
14747 cat >conftest.$ac_ext <<_ACEOF
14748/* confdefs.h. */
14749_ACEOF
14750cat confdefs.h >>conftest.$ac_ext
14751cat >>conftest.$ac_ext <<_ACEOF
14752/* end confdefs.h. */
ac1cb8d3
VS
14753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14755#define $ac_func innocuous_$ac_func
14756
a848cd7e
SC
14757/* System header to define __stub macros and hopefully few prototypes,
14758 which can conflict with char $ac_func (); below.
14759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14760 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14761
a848cd7e
SC
14762#ifdef __STDC__
14763# include <limits.h>
14764#else
14765# include <assert.h>
14766#endif
ac1cb8d3
VS
14767
14768#undef $ac_func
14769
a848cd7e
SC
14770/* Override any gcc2 internal prototype to avoid an error. */
14771#ifdef __cplusplus
14772extern "C"
14773{
14774#endif
14775/* We use char because int might match the return type of a gcc2
14776 builtin and then its argument prototype would still apply. */
14777char $ac_func ();
14778/* The GNU C library defines this for functions which it implements
14779 to always fail with ENOSYS. Some functions are actually named
14780 something starting with __ and the normal name is an alias. */
14781#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14782choke me
14783#else
14784char (*f) () = $ac_func;
14785#endif
14786#ifdef __cplusplus
14787}
14788#endif
14789
14790int
14791main ()
14792{
14793return f != $ac_func;
14794 ;
14795 return 0;
14796}
14797_ACEOF
14798rm -f conftest.$ac_objext conftest$ac_exeext
14799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14800 (eval $ac_link) 2>conftest.er1
a848cd7e 14801 ac_status=$?
ac1cb8d3
VS
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
a848cd7e
SC
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
07158944 14807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 eval "$as_ac_var=yes"
14820else
14821 echo "$as_me: failed program was:" >&5
14822sed 's/^/| /' conftest.$ac_ext >&5
14823
14824eval "$as_ac_var=no"
14825fi
ac1cb8d3
VS
14826rm -f conftest.err conftest.$ac_objext \
14827 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14828fi
14829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14830echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14831if test `eval echo '${'$as_ac_var'}'` = yes; then
14832 cat >>confdefs.h <<_ACEOF
14833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14834_ACEOF
14835
14836fi
14837done
14838
14839fi
14840
14841
14842for ac_header in langinfo.h
14843do
14844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14845if eval "test \"\${$as_ac_Header+set}\" = set"; then
14846 echo "$as_me:$LINENO: checking for $ac_header" >&5
14847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14848if eval "test \"\${$as_ac_Header+set}\" = set"; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850fi
14851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14853else
14854 # Is the header compilable?
14855echo "$as_me:$LINENO: checking $ac_header usability" >&5
14856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14857cat >conftest.$ac_ext <<_ACEOF
14858/* confdefs.h. */
14859_ACEOF
14860cat confdefs.h >>conftest.$ac_ext
14861cat >>conftest.$ac_ext <<_ACEOF
14862/* end confdefs.h. */
14863$ac_includes_default
14864#include <$ac_header>
14865_ACEOF
14866rm -f conftest.$ac_objext
14867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14868 (eval $ac_compile) 2>conftest.er1
a848cd7e 14869 ac_status=$?
ac1cb8d3
VS
14870 grep -v '^ *+' conftest.er1 >conftest.err
14871 rm -f conftest.er1
14872 cat conftest.err >&5
a848cd7e
SC
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } &&
07158944 14875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 ac_header_compiler=yes
14888else
14889 echo "$as_me: failed program was:" >&5
14890sed 's/^/| /' conftest.$ac_ext >&5
14891
14892ac_header_compiler=no
14893fi
ac1cb8d3 14894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14895echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14896echo "${ECHO_T}$ac_header_compiler" >&6
14897
14898# Is the header present?
14899echo "$as_me:$LINENO: checking $ac_header presence" >&5
14900echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14901cat >conftest.$ac_ext <<_ACEOF
14902/* confdefs.h. */
14903_ACEOF
14904cat confdefs.h >>conftest.$ac_ext
14905cat >>conftest.$ac_ext <<_ACEOF
14906/* end confdefs.h. */
14907#include <$ac_header>
14908_ACEOF
14909if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14911 ac_status=$?
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } >/dev/null; then
14917 if test -s conftest.err; then
14918 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14920 else
14921 ac_cpp_err=
14922 fi
14923else
14924 ac_cpp_err=yes
14925fi
14926if test -z "$ac_cpp_err"; then
14927 ac_header_preproc=yes
14928else
14929 echo "$as_me: failed program was:" >&5
14930sed 's/^/| /' conftest.$ac_ext >&5
14931
14932 ac_header_preproc=no
14933fi
14934rm -f conftest.err conftest.$ac_ext
14935echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14936echo "${ECHO_T}$ac_header_preproc" >&6
14937
14938# So? What about this header?
ac1cb8d3
VS
14939case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14940 yes:no: )
a848cd7e
SC
14941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14942echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14944echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14945 ac_header_preproc=yes
a848cd7e 14946 ;;
ac1cb8d3 14947 no:yes:* )
a848cd7e
SC
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14949echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14951echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14953echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14955echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14957echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14959echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14960 (
14961 cat <<\_ASBOX
ac1cb8d3
VS
14962## ----------------------------------------- ##
14963## Report this to wx-dev@lists.wxwidgets.org ##
14964## ----------------------------------------- ##
a848cd7e
SC
14965_ASBOX
14966 ) |
14967 sed "s/^/$as_me: WARNING: /" >&2
14968 ;;
14969esac
14970echo "$as_me:$LINENO: checking for $ac_header" >&5
14971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14972if eval "test \"\${$as_ac_Header+set}\" = set"; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974else
ac1cb8d3 14975 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14976fi
14977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14979
14980fi
14981if test `eval echo '${'$as_ac_Header'}'` = yes; then
14982 cat >>confdefs.h <<_ACEOF
14983#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14984_ACEOF
14985
14986fi
14987
14988done
14989
14990
14991case "${host}" in
14992 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
14993 if test $ac_cv_header_langinfo_h = "yes" \
14994 -a \( "$wx_cv_gccversion" = "EMX2" \
14995 -o "$wx_cv_gccversion" = "EMX3" \
14996 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
14997 LIBS="$LIBS -lintl"
14998 fi
14999 ;;
15000esac
15001
15002if test "$wxUSE_GUI" = "yes"; then
15003 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15004
15005for ac_header in X11/Xlib.h
15006do
15007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15008if eval "test \"\${$as_ac_Header+set}\" = set"; then
15009 echo "$as_me:$LINENO: checking for $ac_header" >&5
15010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15011if eval "test \"\${$as_ac_Header+set}\" = set"; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15013fi
15014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15016else
15017 # Is the header compilable?
15018echo "$as_me:$LINENO: checking $ac_header usability" >&5
15019echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15020cat >conftest.$ac_ext <<_ACEOF
15021/* confdefs.h. */
15022_ACEOF
15023cat confdefs.h >>conftest.$ac_ext
15024cat >>conftest.$ac_ext <<_ACEOF
15025/* end confdefs.h. */
15026$ac_includes_default
15027#include <$ac_header>
15028_ACEOF
15029rm -f conftest.$ac_objext
15030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15031 (eval $ac_compile) 2>conftest.er1
a848cd7e 15032 ac_status=$?
ac1cb8d3
VS
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
a848cd7e
SC
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
07158944 15038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; } &&
15044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 ac_header_compiler=yes
15051else
15052 echo "$as_me: failed program was:" >&5
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
15055ac_header_compiler=no
15056fi
ac1cb8d3 15057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15059echo "${ECHO_T}$ac_header_compiler" >&6
15060
15061# Is the header present?
15062echo "$as_me:$LINENO: checking $ac_header presence" >&5
15063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15064cat >conftest.$ac_ext <<_ACEOF
15065/* confdefs.h. */
15066_ACEOF
15067cat confdefs.h >>conftest.$ac_ext
15068cat >>conftest.$ac_ext <<_ACEOF
15069/* end confdefs.h. */
15070#include <$ac_header>
15071_ACEOF
15072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15074 ac_status=$?
15075 grep -v '^ *+' conftest.er1 >conftest.err
15076 rm -f conftest.er1
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } >/dev/null; then
15080 if test -s conftest.err; then
15081 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15083 else
15084 ac_cpp_err=
15085 fi
15086else
15087 ac_cpp_err=yes
15088fi
15089if test -z "$ac_cpp_err"; then
15090 ac_header_preproc=yes
15091else
15092 echo "$as_me: failed program was:" >&5
15093sed 's/^/| /' conftest.$ac_ext >&5
15094
15095 ac_header_preproc=no
15096fi
15097rm -f conftest.err conftest.$ac_ext
15098echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15099echo "${ECHO_T}$ac_header_preproc" >&6
15100
15101# So? What about this header?
ac1cb8d3
VS
15102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15103 yes:no: )
a848cd7e
SC
15104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15105echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15107echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15108 ac_header_preproc=yes
a848cd7e 15109 ;;
ac1cb8d3 15110 no:yes:* )
a848cd7e
SC
15111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15112echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15114echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15116echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15118echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15120echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15122echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15123 (
15124 cat <<\_ASBOX
ac1cb8d3
VS
15125## ----------------------------------------- ##
15126## Report this to wx-dev@lists.wxwidgets.org ##
15127## ----------------------------------------- ##
a848cd7e
SC
15128_ASBOX
15129 ) |
15130 sed "s/^/$as_me: WARNING: /" >&2
15131 ;;
15132esac
15133echo "$as_me:$LINENO: checking for $ac_header" >&5
15134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15135if eval "test \"\${$as_ac_Header+set}\" = set"; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137else
ac1cb8d3 15138 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15139fi
15140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15142
15143fi
15144if test `eval echo '${'$as_ac_Header'}'` = yes; then
15145 cat >>confdefs.h <<_ACEOF
15146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15147_ACEOF
15148
15149fi
15150
15151done
15152
15153
15154for ac_header in X11/XKBlib.h
15155do
15156as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15157echo "$as_me:$LINENO: checking for $ac_header" >&5
15158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15159if eval "test \"\${$as_ac_Header+set}\" = set"; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15161else
15162 cat >conftest.$ac_ext <<_ACEOF
15163/* confdefs.h. */
15164_ACEOF
15165cat confdefs.h >>conftest.$ac_ext
15166cat >>conftest.$ac_ext <<_ACEOF
15167/* end confdefs.h. */
15168
15169 #if HAVE_X11_XLIB_H
15170 #include <X11/Xlib.h>
15171 #endif
15172
15173
15174#include <$ac_header>
15175_ACEOF
15176rm -f conftest.$ac_objext
15177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15178 (eval $ac_compile) 2>conftest.er1
a848cd7e 15179 ac_status=$?
ac1cb8d3
VS
15180 grep -v '^ *+' conftest.er1 >conftest.err
15181 rm -f conftest.er1
15182 cat conftest.err >&5
a848cd7e
SC
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
07158944 15185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; } &&
15191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15197 eval "$as_ac_Header=yes"
15198else
15199 echo "$as_me: failed program was:" >&5
15200sed 's/^/| /' conftest.$ac_ext >&5
15201
15202eval "$as_ac_Header=no"
15203fi
ac1cb8d3 15204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15205fi
15206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15208if test `eval echo '${'$as_ac_Header'}'` = yes; then
15209 cat >>confdefs.h <<_ACEOF
15210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15211_ACEOF
15212
15213fi
15214
15215done
15216
15217 fi
15218fi
15219
15220
15221echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15222echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15223if test "${ac_cv_c_const+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225else
15226 cat >conftest.$ac_ext <<_ACEOF
15227/* confdefs.h. */
15228_ACEOF
15229cat confdefs.h >>conftest.$ac_ext
15230cat >>conftest.$ac_ext <<_ACEOF
15231/* end confdefs.h. */
15232
15233int
15234main ()
15235{
15236/* FIXME: Include the comments suggested by Paul. */
15237#ifndef __cplusplus
15238 /* Ultrix mips cc rejects this. */
15239 typedef int charset[2];
15240 const charset x;
15241 /* SunOS 4.1.1 cc rejects this. */
15242 char const *const *ccp;
15243 char **p;
15244 /* NEC SVR4.0.2 mips cc rejects this. */
15245 struct point {int x, y;};
15246 static struct point const zero = {0,0};
15247 /* AIX XL C 1.02.0.0 rejects this.
15248 It does not let you subtract one const X* pointer from another in
15249 an arm of an if-expression whose if-part is not a constant
15250 expression */
15251 const char *g = "string";
15252 ccp = &g + (g ? g-g : 0);
15253 /* HPUX 7.0 cc rejects these. */
15254 ++ccp;
15255 p = (char**) ccp;
15256 ccp = (char const *const *) p;
15257 { /* SCO 3.2v4 cc rejects this. */
15258 char *t;
15259 char const *s = 0 ? (char *) 0 : (char const *) 0;
15260
15261 *t++ = 0;
15262 }
15263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15264 int x[] = {25, 17};
15265 const int *foo = &x[0];
15266 ++foo;
15267 }
15268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15269 typedef const int *iptr;
15270 iptr p = 0;
15271 ++p;
15272 }
15273 { /* AIX XL C 1.02.0.0 rejects this saying
15274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15275 struct s { int j; const int *ap[3]; };
15276 struct s *b; b->j = 5;
15277 }
15278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15279 const int foo = 10;
15280 }
15281#endif
15282
15283 ;
15284 return 0;
15285}
15286_ACEOF
15287rm -f conftest.$ac_objext
15288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15289 (eval $ac_compile) 2>conftest.er1
a848cd7e 15290 ac_status=$?
ac1cb8d3
VS
15291 grep -v '^ *+' conftest.er1 >conftest.err
15292 rm -f conftest.er1
15293 cat conftest.err >&5
a848cd7e
SC
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } &&
07158944 15296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_cv_c_const=yes
15309else
15310 echo "$as_me: failed program was:" >&5
15311sed 's/^/| /' conftest.$ac_ext >&5
15312
15313ac_cv_c_const=no
15314fi
ac1cb8d3 15315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15316fi
15317echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15318echo "${ECHO_T}$ac_cv_c_const" >&6
15319if test $ac_cv_c_const = no; then
15320
15321cat >>confdefs.h <<\_ACEOF
15322#define const
15323_ACEOF
15324
15325fi
15326
15327echo "$as_me:$LINENO: checking for inline" >&5
15328echo $ECHO_N "checking for inline... $ECHO_C" >&6
15329if test "${ac_cv_c_inline+set}" = set; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15331else
15332 ac_cv_c_inline=no
15333for ac_kw in inline __inline__ __inline; do
15334 cat >conftest.$ac_ext <<_ACEOF
15335/* confdefs.h. */
15336_ACEOF
15337cat confdefs.h >>conftest.$ac_ext
15338cat >>conftest.$ac_ext <<_ACEOF
15339/* end confdefs.h. */
15340#ifndef __cplusplus
15341typedef int foo_t;
15342static $ac_kw foo_t static_foo () {return 0; }
15343$ac_kw foo_t foo () {return 0; }
15344#endif
15345
15346_ACEOF
15347rm -f conftest.$ac_objext
15348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15349 (eval $ac_compile) 2>conftest.er1
a848cd7e 15350 ac_status=$?
ac1cb8d3
VS
15351 grep -v '^ *+' conftest.er1 >conftest.err
15352 rm -f conftest.er1
15353 cat conftest.err >&5
a848cd7e
SC
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } &&
07158944 15356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; } &&
15362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }; then
15368 ac_cv_c_inline=$ac_kw; break
15369else
15370 echo "$as_me: failed program was:" >&5
15371sed 's/^/| /' conftest.$ac_ext >&5
15372
15373fi
ac1cb8d3 15374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15375done
15376
15377fi
15378echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15379echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15380
15381
a848cd7e
SC
15382case $ac_cv_c_inline in
15383 inline | yes) ;;
ac1cb8d3
VS
15384 *)
15385 case $ac_cv_c_inline in
15386 no) ac_val=;;
15387 *) ac_val=$ac_cv_c_inline;;
15388 esac
15389 cat >>confdefs.h <<_ACEOF
15390#ifndef __cplusplus
15391#define inline $ac_val
15392#endif
de59c161 15393_ACEOF
ac1cb8d3 15394 ;;
a848cd7e
SC
15395esac
15396
15397
15398echo "$as_me:$LINENO: checking for char" >&5
15399echo $ECHO_N "checking for char... $ECHO_C" >&6
15400if test "${ac_cv_type_char+set}" = set; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15402else
15403 cat >conftest.$ac_ext <<_ACEOF
15404/* confdefs.h. */
15405_ACEOF
15406cat confdefs.h >>conftest.$ac_ext
15407cat >>conftest.$ac_ext <<_ACEOF
15408/* end confdefs.h. */
15409$ac_includes_default
15410int
15411main ()
15412{
15413if ((char *) 0)
15414 return 0;
15415if (sizeof (char))
15416 return 0;
15417 ;
15418 return 0;
15419}
15420_ACEOF
15421rm -f conftest.$ac_objext
15422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15423 (eval $ac_compile) 2>conftest.er1
a848cd7e 15424 ac_status=$?
ac1cb8d3
VS
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
a848cd7e
SC
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } &&
07158944 15430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; } &&
15436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
15442 ac_cv_type_char=yes
15443else
15444 echo "$as_me: failed program was:" >&5
15445sed 's/^/| /' conftest.$ac_ext >&5
15446
15447ac_cv_type_char=no
15448fi
ac1cb8d3 15449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15450fi
15451echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15452echo "${ECHO_T}$ac_cv_type_char" >&6
15453
15454echo "$as_me:$LINENO: checking size of char" >&5
15455echo $ECHO_N "checking size of char... $ECHO_C" >&6
15456if test "${ac_cv_sizeof_char+set}" = set; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15458else
15459 if test "$ac_cv_type_char" = yes; then
15460 # The cast to unsigned long works around a bug in the HP C Compiler
15461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15463 # This bug is HP SR number 8606223364.
15464 if test "$cross_compiling" = yes; then
15465 # Depending upon the size, compute the lo and hi bounds.
15466cat >conftest.$ac_ext <<_ACEOF
15467/* confdefs.h. */
15468_ACEOF
15469cat confdefs.h >>conftest.$ac_ext
15470cat >>conftest.$ac_ext <<_ACEOF
15471/* end confdefs.h. */
15472$ac_includes_default
15473int
15474main ()
15475{
15476static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15477test_array [0] = 0
15478
15479 ;
15480 return 0;
15481}
15482_ACEOF
15483rm -f conftest.$ac_objext
15484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15485 (eval $ac_compile) 2>conftest.er1
a848cd7e 15486 ac_status=$?
ac1cb8d3
VS
15487 grep -v '^ *+' conftest.er1 >conftest.err
15488 rm -f conftest.er1
15489 cat conftest.err >&5
a848cd7e
SC
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
07158944 15492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; } &&
15498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 ac_lo=0 ac_mid=0
15505 while :; do
15506 cat >conftest.$ac_ext <<_ACEOF
15507/* confdefs.h. */
15508_ACEOF
15509cat confdefs.h >>conftest.$ac_ext
15510cat >>conftest.$ac_ext <<_ACEOF
15511/* end confdefs.h. */
15512$ac_includes_default
15513int
15514main ()
15515{
15516static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15517test_array [0] = 0
15518
15519 ;
15520 return 0;
15521}
15522_ACEOF
15523rm -f conftest.$ac_objext
15524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15525 (eval $ac_compile) 2>conftest.er1
a848cd7e 15526 ac_status=$?
ac1cb8d3
VS
15527 grep -v '^ *+' conftest.er1 >conftest.err
15528 rm -f conftest.er1
15529 cat conftest.err >&5
a848cd7e
SC
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
07158944 15532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15544 ac_hi=$ac_mid; break
15545else
15546 echo "$as_me: failed program was:" >&5
15547sed 's/^/| /' conftest.$ac_ext >&5
15548
15549ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15550 if test $ac_lo -le $ac_mid; then
15551 ac_lo= ac_hi=
15552 break
15553 fi
15554 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15555fi
ac1cb8d3 15556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15557 done
15558else
15559 echo "$as_me: failed program was:" >&5
15560sed 's/^/| /' conftest.$ac_ext >&5
15561
15562cat >conftest.$ac_ext <<_ACEOF
15563/* confdefs.h. */
15564_ACEOF
15565cat confdefs.h >>conftest.$ac_ext
15566cat >>conftest.$ac_ext <<_ACEOF
15567/* end confdefs.h. */
15568$ac_includes_default
15569int
15570main ()
15571{
15572static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15573test_array [0] = 0
15574
15575 ;
15576 return 0;
15577}
15578_ACEOF
15579rm -f conftest.$ac_objext
15580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15581 (eval $ac_compile) 2>conftest.er1
a848cd7e 15582 ac_status=$?
ac1cb8d3
VS
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
a848cd7e
SC
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
07158944 15588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; } &&
15594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; }; then
15600 ac_hi=-1 ac_mid=-1
15601 while :; do
15602 cat >conftest.$ac_ext <<_ACEOF
15603/* confdefs.h. */
15604_ACEOF
15605cat confdefs.h >>conftest.$ac_ext
15606cat >>conftest.$ac_ext <<_ACEOF
15607/* end confdefs.h. */
15608$ac_includes_default
15609int
15610main ()
15611{
15612static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15613test_array [0] = 0
15614
15615 ;
15616 return 0;
15617}
15618_ACEOF
15619rm -f conftest.$ac_objext
15620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15621 (eval $ac_compile) 2>conftest.er1
a848cd7e 15622 ac_status=$?
ac1cb8d3
VS
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
a848cd7e
SC
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
07158944 15628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
15640 ac_lo=$ac_mid; break
15641else
15642 echo "$as_me: failed program was:" >&5
15643sed 's/^/| /' conftest.$ac_ext >&5
15644
15645ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15646 if test $ac_mid -le $ac_hi; then
15647 ac_lo= ac_hi=
15648 break
15649 fi
15650 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15651fi
ac1cb8d3 15652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15653 done
15654else
15655 echo "$as_me: failed program was:" >&5
15656sed 's/^/| /' conftest.$ac_ext >&5
15657
15658ac_lo= ac_hi=
15659fi
ac1cb8d3 15660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15661fi
ac1cb8d3 15662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15663# Binary search between lo and hi bounds.
15664while test "x$ac_lo" != "x$ac_hi"; do
15665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15666 cat >conftest.$ac_ext <<_ACEOF
15667/* confdefs.h. */
15668_ACEOF
15669cat confdefs.h >>conftest.$ac_ext
15670cat >>conftest.$ac_ext <<_ACEOF
15671/* end confdefs.h. */
15672$ac_includes_default
15673int
15674main ()
15675{
15676static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15677test_array [0] = 0
15678
15679 ;
15680 return 0;
15681}
15682_ACEOF
15683rm -f conftest.$ac_objext
15684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15685 (eval $ac_compile) 2>conftest.er1
a848cd7e 15686 ac_status=$?
ac1cb8d3
VS
15687 grep -v '^ *+' conftest.er1 >conftest.err
15688 rm -f conftest.er1
15689 cat conftest.err >&5
a848cd7e
SC
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
07158944 15692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; } &&
15698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15701 ac_status=$?
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 ac_hi=$ac_mid
15705else
15706 echo "$as_me: failed program was:" >&5
15707sed 's/^/| /' conftest.$ac_ext >&5
15708
15709ac_lo=`expr '(' $ac_mid ')' + 1`
15710fi
ac1cb8d3 15711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15712done
15713case $ac_lo in
15714?*) ac_cv_sizeof_char=$ac_lo;;
15715'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15716See \`config.log' for more details." >&5
15717echo "$as_me: error: cannot compute sizeof (char), 77
15718See \`config.log' for more details." >&2;}
15719 { (exit 1); exit 1; }; } ;;
15720esac
15721else
15722 if test "$cross_compiling" = yes; then
07158944
VZ
15723 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15724echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15725 { (exit 1); exit 1; }; }
15726else
15727 cat >conftest.$ac_ext <<_ACEOF
15728/* confdefs.h. */
15729_ACEOF
15730cat confdefs.h >>conftest.$ac_ext
15731cat >>conftest.$ac_ext <<_ACEOF
15732/* end confdefs.h. */
15733$ac_includes_default
15734long longval () { return (long) (sizeof (char)); }
15735unsigned long ulongval () { return (long) (sizeof (char)); }
15736#include <stdio.h>
15737#include <stdlib.h>
15738int
15739main ()
15740{
15741
15742 FILE *f = fopen ("conftest.val", "w");
15743 if (! f)
15744 exit (1);
15745 if (((long) (sizeof (char))) < 0)
15746 {
15747 long i = longval ();
15748 if (i != ((long) (sizeof (char))))
15749 exit (1);
15750 fprintf (f, "%ld\n", i);
15751 }
15752 else
15753 {
15754 unsigned long i = ulongval ();
15755 if (i != ((long) (sizeof (char))))
15756 exit (1);
15757 fprintf (f, "%lu\n", i);
15758 }
15759 exit (ferror (f) || fclose (f) != 0);
15760
15761 ;
15762 return 0;
15763}
15764_ACEOF
15765rm -f conftest$ac_exeext
15766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15767 (eval $ac_link) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_cv_sizeof_char=`cat conftest.val`
15777else
15778 echo "$as_me: program exited with status $ac_status" >&5
15779echo "$as_me: failed program was:" >&5
15780sed 's/^/| /' conftest.$ac_ext >&5
15781
15782( exit $ac_status )
15783{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15784See \`config.log' for more details." >&5
15785echo "$as_me: error: cannot compute sizeof (char), 77
15786See \`config.log' for more details." >&2;}
15787 { (exit 1); exit 1; }; }
15788fi
ac1cb8d3 15789rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15790fi
15791fi
15792rm -f conftest.val
15793else
15794 ac_cv_sizeof_char=0
15795fi
15796fi
15797echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15798echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15799cat >>confdefs.h <<_ACEOF
15800#define SIZEOF_CHAR $ac_cv_sizeof_char
15801_ACEOF
15802
15803
15804echo "$as_me:$LINENO: checking for short" >&5
15805echo $ECHO_N "checking for short... $ECHO_C" >&6
15806if test "${ac_cv_type_short+set}" = set; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15808else
15809 cat >conftest.$ac_ext <<_ACEOF
15810/* confdefs.h. */
15811_ACEOF
15812cat confdefs.h >>conftest.$ac_ext
15813cat >>conftest.$ac_ext <<_ACEOF
15814/* end confdefs.h. */
15815$ac_includes_default
15816int
15817main ()
15818{
15819if ((short *) 0)
15820 return 0;
15821if (sizeof (short))
15822 return 0;
15823 ;
15824 return 0;
15825}
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15829 (eval $ac_compile) 2>conftest.er1
a848cd7e 15830 ac_status=$?
ac1cb8d3
VS
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
a848cd7e
SC
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
07158944 15836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15839 ac_status=$?
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; } &&
15842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; }; then
15848 ac_cv_type_short=yes
15849else
15850 echo "$as_me: failed program was:" >&5
15851sed 's/^/| /' conftest.$ac_ext >&5
15852
15853ac_cv_type_short=no
15854fi
ac1cb8d3 15855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15856fi
15857echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15858echo "${ECHO_T}$ac_cv_type_short" >&6
15859
15860echo "$as_me:$LINENO: checking size of short" >&5
15861echo $ECHO_N "checking size of short... $ECHO_C" >&6
15862if test "${ac_cv_sizeof_short+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15864else
15865 if test "$ac_cv_type_short" = yes; then
15866 # The cast to unsigned long works around a bug in the HP C Compiler
15867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15869 # This bug is HP SR number 8606223364.
15870 if test "$cross_compiling" = yes; then
15871 # Depending upon the size, compute the lo and hi bounds.
15872cat >conftest.$ac_ext <<_ACEOF
15873/* confdefs.h. */
15874_ACEOF
15875cat confdefs.h >>conftest.$ac_ext
15876cat >>conftest.$ac_ext <<_ACEOF
15877/* end confdefs.h. */
15878$ac_includes_default
15879int
15880main ()
15881{
15882static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15883test_array [0] = 0
15884
15885 ;
15886 return 0;
15887}
15888_ACEOF
15889rm -f conftest.$ac_objext
15890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15891 (eval $ac_compile) 2>conftest.er1
a848cd7e 15892 ac_status=$?
ac1cb8d3
VS
15893 grep -v '^ *+' conftest.er1 >conftest.err
15894 rm -f conftest.er1
15895 cat conftest.err >&5
a848cd7e
SC
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } &&
07158944 15898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 ac_lo=0 ac_mid=0
15911 while :; do
15912 cat >conftest.$ac_ext <<_ACEOF
15913/* confdefs.h. */
15914_ACEOF
15915cat confdefs.h >>conftest.$ac_ext
15916cat >>conftest.$ac_ext <<_ACEOF
15917/* end confdefs.h. */
15918$ac_includes_default
15919int
15920main ()
15921{
15922static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15923test_array [0] = 0
15924
15925 ;
15926 return 0;
15927}
15928_ACEOF
15929rm -f conftest.$ac_objext
15930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15931 (eval $ac_compile) 2>conftest.er1
a848cd7e 15932 ac_status=$?
ac1cb8d3
VS
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
a848cd7e
SC
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } &&
07158944 15938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940 (eval $ac_try) 2>&5
15941 ac_status=$?
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; } &&
15944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; }; then
15950 ac_hi=$ac_mid; break
15951else
15952 echo "$as_me: failed program was:" >&5
15953sed 's/^/| /' conftest.$ac_ext >&5
15954
15955ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15956 if test $ac_lo -le $ac_mid; then
15957 ac_lo= ac_hi=
15958 break
15959 fi
15960 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15961fi
ac1cb8d3 15962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15963 done
15964else
15965 echo "$as_me: failed program was:" >&5
15966sed 's/^/| /' conftest.$ac_ext >&5
15967
15968cat >conftest.$ac_ext <<_ACEOF
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974$ac_includes_default
15975int
15976main ()
15977{
15978static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15979test_array [0] = 0
15980
15981 ;
15982 return 0;
15983}
15984_ACEOF
15985rm -f conftest.$ac_objext
15986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15987 (eval $ac_compile) 2>conftest.er1
a848cd7e 15988 ac_status=$?
ac1cb8d3
VS
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
a848cd7e
SC
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
07158944 15994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; } &&
16000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
16006 ac_hi=-1 ac_mid=-1
16007 while :; do
16008 cat >conftest.$ac_ext <<_ACEOF
16009/* confdefs.h. */
16010_ACEOF
16011cat confdefs.h >>conftest.$ac_ext
16012cat >>conftest.$ac_ext <<_ACEOF
16013/* end confdefs.h. */
16014$ac_includes_default
16015int
16016main ()
16017{
16018static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16019test_array [0] = 0
16020
16021 ;
16022 return 0;
16023}
16024_ACEOF
16025rm -f conftest.$ac_objext
16026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16027 (eval $ac_compile) 2>conftest.er1
a848cd7e 16028 ac_status=$?
ac1cb8d3
VS
16029 grep -v '^ *+' conftest.er1 >conftest.err
16030 rm -f conftest.er1
16031 cat conftest.err >&5
a848cd7e
SC
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
07158944 16034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; } &&
16040 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_lo=$ac_mid; break
16047else
16048 echo "$as_me: failed program was:" >&5
16049sed 's/^/| /' conftest.$ac_ext >&5
16050
16051ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16052 if test $ac_mid -le $ac_hi; then
16053 ac_lo= ac_hi=
16054 break
16055 fi
16056 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16057fi
ac1cb8d3 16058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16059 done
16060else
16061 echo "$as_me: failed program was:" >&5
16062sed 's/^/| /' conftest.$ac_ext >&5
16063
16064ac_lo= ac_hi=
16065fi
ac1cb8d3 16066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16067fi
ac1cb8d3 16068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16069# Binary search between lo and hi bounds.
16070while test "x$ac_lo" != "x$ac_hi"; do
16071 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16072 cat >conftest.$ac_ext <<_ACEOF
16073/* confdefs.h. */
16074_ACEOF
16075cat confdefs.h >>conftest.$ac_ext
16076cat >>conftest.$ac_ext <<_ACEOF
16077/* end confdefs.h. */
16078$ac_includes_default
16079int
16080main ()
16081{
16082static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16083test_array [0] = 0
16084
16085 ;
16086 return 0;
16087}
16088_ACEOF
16089rm -f conftest.$ac_objext
16090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16091 (eval $ac_compile) 2>conftest.er1
a848cd7e 16092 ac_status=$?
ac1cb8d3
VS
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
a848cd7e
SC
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
07158944 16098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; } &&
16104 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 ac_hi=$ac_mid
16111else
16112 echo "$as_me: failed program was:" >&5
16113sed 's/^/| /' conftest.$ac_ext >&5
16114
16115ac_lo=`expr '(' $ac_mid ')' + 1`
16116fi
ac1cb8d3 16117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16118done
16119case $ac_lo in
16120?*) ac_cv_sizeof_short=$ac_lo;;
16121'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16122See \`config.log' for more details." >&5
16123echo "$as_me: error: cannot compute sizeof (short), 77
16124See \`config.log' for more details." >&2;}
16125 { (exit 1); exit 1; }; } ;;
16126esac
16127else
16128 if test "$cross_compiling" = yes; then
07158944
VZ
16129 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16130echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16131 { (exit 1); exit 1; }; }
16132else
16133 cat >conftest.$ac_ext <<_ACEOF
16134/* confdefs.h. */
16135_ACEOF
16136cat confdefs.h >>conftest.$ac_ext
16137cat >>conftest.$ac_ext <<_ACEOF
16138/* end confdefs.h. */
16139$ac_includes_default
16140long longval () { return (long) (sizeof (short)); }
16141unsigned long ulongval () { return (long) (sizeof (short)); }
16142#include <stdio.h>
16143#include <stdlib.h>
16144int
16145main ()
16146{
16147
16148 FILE *f = fopen ("conftest.val", "w");
16149 if (! f)
16150 exit (1);
16151 if (((long) (sizeof (short))) < 0)
16152 {
16153 long i = longval ();
16154 if (i != ((long) (sizeof (short))))
16155 exit (1);
16156 fprintf (f, "%ld\n", i);
16157 }
16158 else
16159 {
16160 unsigned long i = ulongval ();
16161 if (i != ((long) (sizeof (short))))
16162 exit (1);
16163 fprintf (f, "%lu\n", i);
16164 }
16165 exit (ferror (f) || fclose (f) != 0);
16166
16167 ;
16168 return 0;
16169}
16170_ACEOF
16171rm -f conftest$ac_exeext
16172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16173 (eval $ac_link) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16178 (eval $ac_try) 2>&5
16179 ac_status=$?
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); }; }; then
16182 ac_cv_sizeof_short=`cat conftest.val`
16183else
16184 echo "$as_me: program exited with status $ac_status" >&5
16185echo "$as_me: failed program was:" >&5
16186sed 's/^/| /' conftest.$ac_ext >&5
16187
16188( exit $ac_status )
16189{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16190See \`config.log' for more details." >&5
16191echo "$as_me: error: cannot compute sizeof (short), 77
16192See \`config.log' for more details." >&2;}
16193 { (exit 1); exit 1; }; }
16194fi
ac1cb8d3 16195rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16196fi
16197fi
16198rm -f conftest.val
16199else
16200 ac_cv_sizeof_short=0
16201fi
16202fi
16203echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16204echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16205cat >>confdefs.h <<_ACEOF
16206#define SIZEOF_SHORT $ac_cv_sizeof_short
16207_ACEOF
16208
16209
16210echo "$as_me:$LINENO: checking for void *" >&5
16211echo $ECHO_N "checking for void *... $ECHO_C" >&6
16212if test "${ac_cv_type_void_p+set}" = set; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16214else
16215 cat >conftest.$ac_ext <<_ACEOF
16216/* confdefs.h. */
16217_ACEOF
16218cat confdefs.h >>conftest.$ac_ext
16219cat >>conftest.$ac_ext <<_ACEOF
16220/* end confdefs.h. */
16221$ac_includes_default
16222int
16223main ()
16224{
16225if ((void * *) 0)
16226 return 0;
16227if (sizeof (void *))
16228 return 0;
16229 ;
16230 return 0;
16231}
16232_ACEOF
16233rm -f conftest.$ac_objext
16234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16235 (eval $ac_compile) 2>conftest.er1
a848cd7e 16236 ac_status=$?
ac1cb8d3
VS
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
a848cd7e
SC
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
07158944 16242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; } &&
16248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; }; then
16254 ac_cv_type_void_p=yes
16255else
16256 echo "$as_me: failed program was:" >&5
16257sed 's/^/| /' conftest.$ac_ext >&5
16258
16259ac_cv_type_void_p=no
16260fi
ac1cb8d3 16261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16262fi
16263echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16264echo "${ECHO_T}$ac_cv_type_void_p" >&6
16265
16266echo "$as_me:$LINENO: checking size of void *" >&5
16267echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16268if test "${ac_cv_sizeof_void_p+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16270else
16271 if test "$ac_cv_type_void_p" = yes; then
16272 # The cast to unsigned long works around a bug in the HP C Compiler
16273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16275 # This bug is HP SR number 8606223364.
16276 if test "$cross_compiling" = yes; then
16277 # Depending upon the size, compute the lo and hi bounds.
16278cat >conftest.$ac_ext <<_ACEOF
16279/* confdefs.h. */
16280_ACEOF
16281cat confdefs.h >>conftest.$ac_ext
16282cat >>conftest.$ac_ext <<_ACEOF
16283/* end confdefs.h. */
16284$ac_includes_default
16285int
16286main ()
16287{
16288static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16289test_array [0] = 0
16290
16291 ;
16292 return 0;
16293}
16294_ACEOF
16295rm -f conftest.$ac_objext
16296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16297 (eval $ac_compile) 2>conftest.er1
a848cd7e 16298 ac_status=$?
ac1cb8d3
VS
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
a848cd7e
SC
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
07158944 16304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16307 ac_status=$?
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; } &&
16310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; }; then
16316 ac_lo=0 ac_mid=0
16317 while :; do
16318 cat >conftest.$ac_ext <<_ACEOF
16319/* confdefs.h. */
16320_ACEOF
16321cat confdefs.h >>conftest.$ac_ext
16322cat >>conftest.$ac_ext <<_ACEOF
16323/* end confdefs.h. */
16324$ac_includes_default
16325int
16326main ()
16327{
16328static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16329test_array [0] = 0
16330
16331 ;
16332 return 0;
16333}
16334_ACEOF
16335rm -f conftest.$ac_objext
16336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16337 (eval $ac_compile) 2>conftest.er1
a848cd7e 16338 ac_status=$?
ac1cb8d3
VS
16339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
a848cd7e
SC
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
07158944 16344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; } &&
16350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; }; then
16356 ac_hi=$ac_mid; break
16357else
16358 echo "$as_me: failed program was:" >&5
16359sed 's/^/| /' conftest.$ac_ext >&5
16360
16361ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16362 if test $ac_lo -le $ac_mid; then
16363 ac_lo= ac_hi=
16364 break
16365 fi
16366 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16367fi
ac1cb8d3 16368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16369 done
16370else
16371 echo "$as_me: failed program was:" >&5
16372sed 's/^/| /' conftest.$ac_ext >&5
16373
16374cat >conftest.$ac_ext <<_ACEOF
16375/* confdefs.h. */
16376_ACEOF
16377cat confdefs.h >>conftest.$ac_ext
16378cat >>conftest.$ac_ext <<_ACEOF
16379/* end confdefs.h. */
16380$ac_includes_default
16381int
16382main ()
16383{
16384static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16385test_array [0] = 0
16386
16387 ;
16388 return 0;
16389}
16390_ACEOF
16391rm -f conftest.$ac_objext
16392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16393 (eval $ac_compile) 2>conftest.er1
a848cd7e 16394 ac_status=$?
ac1cb8d3
VS
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
a848cd7e
SC
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } &&
07158944 16400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_hi=-1 ac_mid=-1
16413 while :; do
16414 cat >conftest.$ac_ext <<_ACEOF
16415/* confdefs.h. */
16416_ACEOF
16417cat confdefs.h >>conftest.$ac_ext
16418cat >>conftest.$ac_ext <<_ACEOF
16419/* end confdefs.h. */
16420$ac_includes_default
16421int
16422main ()
16423{
16424static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16425test_array [0] = 0
16426
16427 ;
16428 return 0;
16429}
16430_ACEOF
16431rm -f conftest.$ac_objext
16432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16433 (eval $ac_compile) 2>conftest.er1
a848cd7e 16434 ac_status=$?
ac1cb8d3
VS
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
a848cd7e
SC
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
07158944 16440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; } &&
16446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; }; then
16452 ac_lo=$ac_mid; break
16453else
16454 echo "$as_me: failed program was:" >&5
16455sed 's/^/| /' conftest.$ac_ext >&5
16456
16457ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16458 if test $ac_mid -le $ac_hi; then
16459 ac_lo= ac_hi=
16460 break
16461 fi
16462 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16463fi
ac1cb8d3 16464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16465 done
16466else
16467 echo "$as_me: failed program was:" >&5
16468sed 's/^/| /' conftest.$ac_ext >&5
16469
16470ac_lo= ac_hi=
16471fi
ac1cb8d3 16472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16473fi
ac1cb8d3 16474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16475# Binary search between lo and hi bounds.
16476while test "x$ac_lo" != "x$ac_hi"; do
16477 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16478 cat >conftest.$ac_ext <<_ACEOF
16479/* confdefs.h. */
16480_ACEOF
16481cat confdefs.h >>conftest.$ac_ext
16482cat >>conftest.$ac_ext <<_ACEOF
16483/* end confdefs.h. */
16484$ac_includes_default
16485int
16486main ()
16487{
16488static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16489test_array [0] = 0
16490
16491 ;
16492 return 0;
16493}
16494_ACEOF
16495rm -f conftest.$ac_objext
16496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16497 (eval $ac_compile) 2>conftest.er1
a848cd7e 16498 ac_status=$?
ac1cb8d3
VS
16499 grep -v '^ *+' conftest.er1 >conftest.err
16500 rm -f conftest.er1
16501 cat conftest.err >&5
a848cd7e
SC
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
07158944 16504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506 (eval $ac_try) 2>&5
16507 ac_status=$?
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; } &&
16510 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }; then
16516 ac_hi=$ac_mid
16517else
16518 echo "$as_me: failed program was:" >&5
16519sed 's/^/| /' conftest.$ac_ext >&5
16520
16521ac_lo=`expr '(' $ac_mid ')' + 1`
16522fi
ac1cb8d3 16523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16524done
16525case $ac_lo in
16526?*) ac_cv_sizeof_void_p=$ac_lo;;
16527'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16528See \`config.log' for more details." >&5
16529echo "$as_me: error: cannot compute sizeof (void *), 77
16530See \`config.log' for more details." >&2;}
16531 { (exit 1); exit 1; }; } ;;
16532esac
16533else
16534 if test "$cross_compiling" = yes; then
07158944
VZ
16535 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16536echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16537 { (exit 1); exit 1; }; }
16538else
16539 cat >conftest.$ac_ext <<_ACEOF
16540/* confdefs.h. */
16541_ACEOF
16542cat confdefs.h >>conftest.$ac_ext
16543cat >>conftest.$ac_ext <<_ACEOF
16544/* end confdefs.h. */
16545$ac_includes_default
16546long longval () { return (long) (sizeof (void *)); }
16547unsigned long ulongval () { return (long) (sizeof (void *)); }
16548#include <stdio.h>
16549#include <stdlib.h>
16550int
16551main ()
16552{
16553
16554 FILE *f = fopen ("conftest.val", "w");
16555 if (! f)
16556 exit (1);
16557 if (((long) (sizeof (void *))) < 0)
16558 {
16559 long i = longval ();
16560 if (i != ((long) (sizeof (void *))))
16561 exit (1);
16562 fprintf (f, "%ld\n", i);
16563 }
16564 else
16565 {
16566 unsigned long i = ulongval ();
16567 if (i != ((long) (sizeof (void *))))
16568 exit (1);
16569 fprintf (f, "%lu\n", i);
16570 }
16571 exit (ferror (f) || fclose (f) != 0);
16572
16573 ;
16574 return 0;
16575}
16576_ACEOF
16577rm -f conftest$ac_exeext
16578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16579 (eval $ac_link) 2>&5
16580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; }; then
16588 ac_cv_sizeof_void_p=`cat conftest.val`
16589else
16590 echo "$as_me: program exited with status $ac_status" >&5
16591echo "$as_me: failed program was:" >&5
16592sed 's/^/| /' conftest.$ac_ext >&5
16593
16594( exit $ac_status )
16595{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16596See \`config.log' for more details." >&5
16597echo "$as_me: error: cannot compute sizeof (void *), 77
16598See \`config.log' for more details." >&2;}
16599 { (exit 1); exit 1; }; }
16600fi
ac1cb8d3 16601rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16602fi
16603fi
16604rm -f conftest.val
16605else
16606 ac_cv_sizeof_void_p=0
16607fi
16608fi
16609echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16610echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16611cat >>confdefs.h <<_ACEOF
16612#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16613_ACEOF
16614
16615
16616echo "$as_me:$LINENO: checking for int" >&5
16617echo $ECHO_N "checking for int... $ECHO_C" >&6
16618if test "${ac_cv_type_int+set}" = set; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16620else
16621 cat >conftest.$ac_ext <<_ACEOF
16622/* confdefs.h. */
16623_ACEOF
16624cat confdefs.h >>conftest.$ac_ext
16625cat >>conftest.$ac_ext <<_ACEOF
16626/* end confdefs.h. */
16627$ac_includes_default
16628int
16629main ()
16630{
16631if ((int *) 0)
16632 return 0;
16633if (sizeof (int))
16634 return 0;
16635 ;
16636 return 0;
16637}
16638_ACEOF
16639rm -f conftest.$ac_objext
16640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16641 (eval $ac_compile) 2>conftest.er1
a848cd7e 16642 ac_status=$?
ac1cb8d3
VS
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
a848cd7e
SC
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } &&
07158944 16648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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_int=yes
16661else
16662 echo "$as_me: failed program was:" >&5
16663sed 's/^/| /' conftest.$ac_ext >&5
16664
16665ac_cv_type_int=no
16666fi
ac1cb8d3 16667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16668fi
16669echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16670echo "${ECHO_T}$ac_cv_type_int" >&6
16671
16672echo "$as_me:$LINENO: checking size of int" >&5
16673echo $ECHO_N "checking size of int... $ECHO_C" >&6
16674if test "${ac_cv_sizeof_int+set}" = set; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16676else
16677 if test "$ac_cv_type_int" = 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.
16684cat >conftest.$ac_ext <<_ACEOF
16685/* confdefs.h. */
16686_ACEOF
16687cat confdefs.h >>conftest.$ac_ext
16688cat >>conftest.$ac_ext <<_ACEOF
16689/* end confdefs.h. */
16690$ac_includes_default
16691int
16692main ()
16693{
16694static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16695test_array [0] = 0
16696
16697 ;
16698 return 0;
16699}
16700_ACEOF
16701rm -f conftest.$ac_objext
16702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16703 (eval $ac_compile) 2>conftest.er1
a848cd7e 16704 ac_status=$?
ac1cb8d3
VS
16705 grep -v '^ *+' conftest.er1 >conftest.err
16706 rm -f conftest.er1
16707 cat conftest.err >&5
a848cd7e
SC
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
07158944 16710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
16727cat confdefs.h >>conftest.$ac_ext
16728cat >>conftest.$ac_ext <<_ACEOF
16729/* end confdefs.h. */
16730$ac_includes_default
16731int
16732main ()
16733{
16734static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16735test_array [0] = 0
16736
16737 ;
16738 return 0;
16739}
16740_ACEOF
16741rm -f conftest.$ac_objext
16742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16743 (eval $ac_compile) 2>conftest.er1
a848cd7e 16744 ac_status=$?
ac1cb8d3
VS
16745 grep -v '^ *+' conftest.er1 >conftest.err
16746 rm -f conftest.er1
16747 cat conftest.err >&5
a848cd7e
SC
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
07158944 16750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
16763else
16764 echo "$as_me: failed program was:" >&5
16765sed 's/^/| /' conftest.$ac_ext >&5
16766
16767ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
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`
a848cd7e 16773fi
ac1cb8d3 16774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16775 done
16776else
16777 echo "$as_me: failed program was:" >&5
16778sed 's/^/| /' conftest.$ac_ext >&5
16779
16780cat >conftest.$ac_ext <<_ACEOF
16781/* confdefs.h. */
16782_ACEOF
16783cat confdefs.h >>conftest.$ac_ext
16784cat >>conftest.$ac_ext <<_ACEOF
16785/* end confdefs.h. */
16786$ac_includes_default
16787int
16788main ()
16789{
16790static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16791test_array [0] = 0
16792
16793 ;
16794 return 0;
16795}
16796_ACEOF
16797rm -f conftest.$ac_objext
16798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16799 (eval $ac_compile) 2>conftest.er1
a848cd7e 16800 ac_status=$?
ac1cb8d3
VS
16801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
a848cd7e
SC
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
07158944 16806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
16823cat confdefs.h >>conftest.$ac_ext
16824cat >>conftest.$ac_ext <<_ACEOF
16825/* end confdefs.h. */
16826$ac_includes_default
16827int
16828main ()
16829{
16830static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16831test_array [0] = 0
16832
16833 ;
16834 return 0;
16835}
16836_ACEOF
16837rm -f conftest.$ac_objext
16838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16839 (eval $ac_compile) 2>conftest.er1
a848cd7e 16840 ac_status=$?
ac1cb8d3
VS
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
a848cd7e
SC
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
07158944 16846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
16859else
16860 echo "$as_me: failed program was:" >&5
16861sed 's/^/| /' conftest.$ac_ext >&5
16862
16863ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
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`
a848cd7e 16869fi
ac1cb8d3 16870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16871 done
16872else
16873 echo "$as_me: failed program was:" >&5
16874sed 's/^/| /' conftest.$ac_ext >&5
16875
16876ac_lo= ac_hi=
16877fi
ac1cb8d3 16878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16879fi
ac1cb8d3 16880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16881# Binary search between lo and hi bounds.
16882while 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
16887cat confdefs.h >>conftest.$ac_ext
16888cat >>conftest.$ac_ext <<_ACEOF
16889/* end confdefs.h. */
16890$ac_includes_default
16891int
16892main ()
16893{
16894static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16895test_array [0] = 0
16896
16897 ;
16898 return 0;
16899}
16900_ACEOF
16901rm -f conftest.$ac_objext
16902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16903 (eval $ac_compile) 2>conftest.er1
a848cd7e 16904 ac_status=$?
ac1cb8d3
VS
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
a848cd7e
SC
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
07158944 16910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
16923else
16924 echo "$as_me: failed program was:" >&5
16925sed 's/^/| /' conftest.$ac_ext >&5
16926
16927ac_lo=`expr '(' $ac_mid ')' + 1`
16928fi
ac1cb8d3 16929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16930done
16931case $ac_lo in
16932?*) ac_cv_sizeof_int=$ac_lo;;
16933'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16934See \`config.log' for more details." >&5
16935echo "$as_me: error: cannot compute sizeof (int), 77
16936See \`config.log' for more details." >&2;}
16937 { (exit 1); exit 1; }; } ;;
16938esac
16939else
16940 if test "$cross_compiling" = yes; then
07158944
VZ
16941 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16942echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16943 { (exit 1); exit 1; }; }
16944else
16945 cat >conftest.$ac_ext <<_ACEOF
16946/* confdefs.h. */
16947_ACEOF
16948cat confdefs.h >>conftest.$ac_ext
16949cat >>conftest.$ac_ext <<_ACEOF
16950/* end confdefs.h. */
16951$ac_includes_default
16952long longval () { return (long) (sizeof (int)); }
16953unsigned long ulongval () { return (long) (sizeof (int)); }
16954#include <stdio.h>
16955#include <stdlib.h>
16956int
16957main ()
16958{
16959
16960 FILE *f = fopen ("conftest.val", "w");
16961 if (! f)
16962 exit (1);
16963 if (((long) (sizeof (int))) < 0)
16964 {
16965 long i = longval ();
16966 if (i != ((long) (sizeof (int))))
16967 exit (1);
16968 fprintf (f, "%ld\n", i);
16969 }
16970 else
16971 {
16972 unsigned long i = ulongval ();
16973 if (i != ((long) (sizeof (int))))
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
16983rm -f conftest$ac_exeext
16984if { (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_int=`cat conftest.val`
16995else
16996 echo "$as_me: program exited with status $ac_status" >&5
16997echo "$as_me: failed program was:" >&5
16998sed 's/^/| /' conftest.$ac_ext >&5
16999
17000( exit $ac_status )
17001{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17002See \`config.log' for more details." >&5
17003echo "$as_me: error: cannot compute sizeof (int), 77
17004See \`config.log' for more details." >&2;}
17005 { (exit 1); exit 1; }; }
17006fi
ac1cb8d3 17007rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17008fi
17009fi
17010rm -f conftest.val
17011else
17012 ac_cv_sizeof_int=0
17013fi
17014fi
17015echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17016echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17017cat >>confdefs.h <<_ACEOF
17018#define SIZEOF_INT $ac_cv_sizeof_int
17019_ACEOF
17020
17021
17022echo "$as_me:$LINENO: checking for long" >&5
17023echo $ECHO_N "checking for long... $ECHO_C" >&6
17024if test "${ac_cv_type_long+set}" = set; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17026else
17027 cat >conftest.$ac_ext <<_ACEOF
17028/* confdefs.h. */
17029_ACEOF
17030cat confdefs.h >>conftest.$ac_ext
17031cat >>conftest.$ac_ext <<_ACEOF
17032/* end confdefs.h. */
17033$ac_includes_default
17034int
17035main ()
17036{
17037if ((long *) 0)
17038 return 0;
17039if (sizeof (long))
17040 return 0;
17041 ;
17042 return 0;
17043}
17044_ACEOF
17045rm -f conftest.$ac_objext
17046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17047 (eval $ac_compile) 2>conftest.er1
a848cd7e 17048 ac_status=$?
ac1cb8d3
VS
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
a848cd7e
SC
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
07158944 17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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_long=yes
17067else
17068 echo "$as_me: failed program was:" >&5
17069sed 's/^/| /' conftest.$ac_ext >&5
17070
17071ac_cv_type_long=no
17072fi
ac1cb8d3 17073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17074fi
17075echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17076echo "${ECHO_T}$ac_cv_type_long" >&6
17077
17078echo "$as_me:$LINENO: checking size of long" >&5
17079echo $ECHO_N "checking size of long... $ECHO_C" >&6
17080if test "${ac_cv_sizeof_long+set}" = set; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17082else
17083 if test "$ac_cv_type_long" = 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.
17090cat >conftest.$ac_ext <<_ACEOF
17091/* confdefs.h. */
17092_ACEOF
17093cat confdefs.h >>conftest.$ac_ext
17094cat >>conftest.$ac_ext <<_ACEOF
17095/* end confdefs.h. */
17096$ac_includes_default
17097int
17098main ()
17099{
17100static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17101test_array [0] = 0
17102
17103 ;
17104 return 0;
17105}
17106_ACEOF
17107rm -f conftest.$ac_objext
17108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17109 (eval $ac_compile) 2>conftest.er1
a848cd7e 17110 ac_status=$?
ac1cb8d3
VS
17111 grep -v '^ *+' conftest.er1 >conftest.err
17112 rm -f conftest.er1
17113 cat conftest.err >&5
a848cd7e
SC
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
07158944 17116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
17133cat confdefs.h >>conftest.$ac_ext
17134cat >>conftest.$ac_ext <<_ACEOF
17135/* end confdefs.h. */
17136$ac_includes_default
17137int
17138main ()
17139{
17140static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17141test_array [0] = 0
17142
17143 ;
17144 return 0;
17145}
17146_ACEOF
17147rm -f conftest.$ac_objext
17148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17149 (eval $ac_compile) 2>conftest.er1
a848cd7e 17150 ac_status=$?
ac1cb8d3
VS
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
a848cd7e
SC
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
07158944 17156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
17169else
17170 echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
17173ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
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`
a848cd7e 17179fi
ac1cb8d3 17180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17181 done
17182else
17183 echo "$as_me: failed program was:" >&5
17184sed 's/^/| /' conftest.$ac_ext >&5
17185
17186cat >conftest.$ac_ext <<_ACEOF
17187/* confdefs.h. */
17188_ACEOF
17189cat confdefs.h >>conftest.$ac_ext
17190cat >>conftest.$ac_ext <<_ACEOF
17191/* end confdefs.h. */
17192$ac_includes_default
17193int
17194main ()
17195{
17196static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17197test_array [0] = 0
17198
17199 ;
17200 return 0;
17201}
17202_ACEOF
17203rm -f conftest.$ac_objext
17204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17205 (eval $ac_compile) 2>conftest.er1
a848cd7e 17206 ac_status=$?
ac1cb8d3
VS
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
a848cd7e
SC
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
07158944 17212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
17229cat confdefs.h >>conftest.$ac_ext
17230cat >>conftest.$ac_ext <<_ACEOF
17231/* end confdefs.h. */
17232$ac_includes_default
17233int
17234main ()
17235{
17236static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17237test_array [0] = 0
17238
17239 ;
17240 return 0;
17241}
17242_ACEOF
17243rm -f conftest.$ac_objext
17244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17245 (eval $ac_compile) 2>conftest.er1
a848cd7e 17246 ac_status=$?
ac1cb8d3
VS
17247 grep -v '^ *+' conftest.er1 >conftest.err
17248 rm -f conftest.er1
17249 cat conftest.err >&5
a848cd7e
SC
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
07158944 17252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
17265else
17266 echo "$as_me: failed program was:" >&5
17267sed 's/^/| /' conftest.$ac_ext >&5
17268
17269ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
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`
a848cd7e 17275fi
ac1cb8d3 17276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17277 done
17278else
17279 echo "$as_me: failed program was:" >&5
17280sed 's/^/| /' conftest.$ac_ext >&5
17281
17282ac_lo= ac_hi=
17283fi
ac1cb8d3 17284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17285fi
ac1cb8d3 17286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17287# Binary search between lo and hi bounds.
17288while 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
17293cat confdefs.h >>conftest.$ac_ext
17294cat >>conftest.$ac_ext <<_ACEOF
17295/* end confdefs.h. */
17296$ac_includes_default
17297int
17298main ()
17299{
17300static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17301test_array [0] = 0
17302
17303 ;
17304 return 0;
17305}
17306_ACEOF
17307rm -f conftest.$ac_objext
17308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17309 (eval $ac_compile) 2>conftest.er1
a848cd7e 17310 ac_status=$?
ac1cb8d3
VS
17311 grep -v '^ *+' conftest.er1 >conftest.err
17312 rm -f conftest.er1
17313 cat conftest.err >&5
a848cd7e
SC
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } &&
07158944 17316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
17329else
17330 echo "$as_me: failed program was:" >&5
17331sed 's/^/| /' conftest.$ac_ext >&5
17332
17333ac_lo=`expr '(' $ac_mid ')' + 1`
17334fi
ac1cb8d3 17335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17336done
17337case $ac_lo in
17338?*) ac_cv_sizeof_long=$ac_lo;;
17339'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17340See \`config.log' for more details." >&5
17341echo "$as_me: error: cannot compute sizeof (long), 77
17342See \`config.log' for more details." >&2;}
17343 { (exit 1); exit 1; }; } ;;
17344esac
17345else
17346 if test "$cross_compiling" = yes; then
07158944
VZ
17347 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17348echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17349 { (exit 1); exit 1; }; }
17350else
17351 cat >conftest.$ac_ext <<_ACEOF
17352/* confdefs.h. */
17353_ACEOF
17354cat confdefs.h >>conftest.$ac_ext
17355cat >>conftest.$ac_ext <<_ACEOF
17356/* end confdefs.h. */
17357$ac_includes_default
17358long longval () { return (long) (sizeof (long)); }
17359unsigned long ulongval () { return (long) (sizeof (long)); }
17360#include <stdio.h>
17361#include <stdlib.h>
17362int
17363main ()
17364{
17365
17366 FILE *f = fopen ("conftest.val", "w");
17367 if (! f)
17368 exit (1);
17369 if (((long) (sizeof (long))) < 0)
17370 {
17371 long i = longval ();
17372 if (i != ((long) (sizeof (long))))
17373 exit (1);
17374 fprintf (f, "%ld\n", i);
17375 }
17376 else
17377 {
17378 unsigned long i = ulongval ();
17379 if (i != ((long) (sizeof (long))))
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
17389rm -f conftest$ac_exeext
17390if { (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_long=`cat conftest.val`
17401else
17402 echo "$as_me: program exited with status $ac_status" >&5
17403echo "$as_me: failed program was:" >&5
17404sed 's/^/| /' conftest.$ac_ext >&5
17405
17406( exit $ac_status )
17407{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17408See \`config.log' for more details." >&5
17409echo "$as_me: error: cannot compute sizeof (long), 77
17410See \`config.log' for more details." >&2;}
17411 { (exit 1); exit 1; }; }
17412fi
ac1cb8d3 17413rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17414fi
17415fi
17416rm -f conftest.val
17417else
17418 ac_cv_sizeof_long=0
17419fi
17420fi
17421echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17422echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17423cat >>confdefs.h <<_ACEOF
17424#define SIZEOF_LONG $ac_cv_sizeof_long
17425_ACEOF
17426
17427
17428echo "$as_me:$LINENO: checking for size_t" >&5
17429echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17430if test "${ac_cv_type_size_t+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17432else
17433 cat >conftest.$ac_ext <<_ACEOF
17434/* confdefs.h. */
17435_ACEOF
17436cat confdefs.h >>conftest.$ac_ext
17437cat >>conftest.$ac_ext <<_ACEOF
17438/* end confdefs.h. */
17439$ac_includes_default
17440int
17441main ()
17442{
17443if ((size_t *) 0)
17444 return 0;
17445if (sizeof (size_t))
17446 return 0;
17447 ;
17448 return 0;
17449}
17450_ACEOF
17451rm -f conftest.$ac_objext
17452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17453 (eval $ac_compile) 2>conftest.er1
a848cd7e 17454 ac_status=$?
ac1cb8d3
VS
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
a848cd7e
SC
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
07158944 17460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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_size_t=yes
17473else
17474 echo "$as_me: failed program was:" >&5
17475sed 's/^/| /' conftest.$ac_ext >&5
17476
17477ac_cv_type_size_t=no
17478fi
ac1cb8d3 17479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17480fi
17481echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17482echo "${ECHO_T}$ac_cv_type_size_t" >&6
17483
17484echo "$as_me:$LINENO: checking size of size_t" >&5
17485echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17486if test "${ac_cv_sizeof_size_t+set}" = set; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488else
17489 if test "$ac_cv_type_size_t" = 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.
17496cat >conftest.$ac_ext <<_ACEOF
17497/* confdefs.h. */
17498_ACEOF
17499cat confdefs.h >>conftest.$ac_ext
17500cat >>conftest.$ac_ext <<_ACEOF
17501/* end confdefs.h. */
17502$ac_includes_default
17503int
17504main ()
17505{
17506static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17507test_array [0] = 0
17508
17509 ;
17510 return 0;
17511}
17512_ACEOF
17513rm -f conftest.$ac_objext
17514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17515 (eval $ac_compile) 2>conftest.er1
a848cd7e 17516 ac_status=$?
ac1cb8d3
VS
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
a848cd7e
SC
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
07158944 17522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
17539cat confdefs.h >>conftest.$ac_ext
17540cat >>conftest.$ac_ext <<_ACEOF
17541/* end confdefs.h. */
17542$ac_includes_default
17543int
17544main ()
17545{
17546static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17547test_array [0] = 0
17548
17549 ;
17550 return 0;
17551}
17552_ACEOF
17553rm -f conftest.$ac_objext
17554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17555 (eval $ac_compile) 2>conftest.er1
a848cd7e 17556 ac_status=$?
ac1cb8d3
VS
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
a848cd7e
SC
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } &&
07158944 17562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
17575else
17576 echo "$as_me: failed program was:" >&5
17577sed 's/^/| /' conftest.$ac_ext >&5
17578
17579ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
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`
a848cd7e 17585fi
ac1cb8d3 17586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17587 done
17588else
17589 echo "$as_me: failed program was:" >&5
17590sed 's/^/| /' conftest.$ac_ext >&5
17591
17592cat >conftest.$ac_ext <<_ACEOF
17593/* confdefs.h. */
17594_ACEOF
17595cat confdefs.h >>conftest.$ac_ext
17596cat >>conftest.$ac_ext <<_ACEOF
17597/* end confdefs.h. */
17598$ac_includes_default
17599int
17600main ()
17601{
17602static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17603test_array [0] = 0
17604
17605 ;
17606 return 0;
17607}
17608_ACEOF
17609rm -f conftest.$ac_objext
17610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17611 (eval $ac_compile) 2>conftest.er1
a848cd7e 17612 ac_status=$?
ac1cb8d3
VS
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
a848cd7e
SC
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
07158944 17618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
17635cat confdefs.h >>conftest.$ac_ext
17636cat >>conftest.$ac_ext <<_ACEOF
17637/* end confdefs.h. */
17638$ac_includes_default
17639int
17640main ()
17641{
17642static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17643test_array [0] = 0
17644
17645 ;
17646 return 0;
17647}
17648_ACEOF
17649rm -f conftest.$ac_objext
17650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17651 (eval $ac_compile) 2>conftest.er1
a848cd7e 17652 ac_status=$?
ac1cb8d3
VS
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
a848cd7e
SC
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
07158944 17658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
17671else
17672 echo "$as_me: failed program was:" >&5
17673sed 's/^/| /' conftest.$ac_ext >&5
17674
17675ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
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`
a848cd7e 17681fi
ac1cb8d3 17682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17683 done
17684else
17685 echo "$as_me: failed program was:" >&5
17686sed 's/^/| /' conftest.$ac_ext >&5
17687
17688ac_lo= ac_hi=
17689fi
ac1cb8d3 17690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17691fi
ac1cb8d3 17692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17693# Binary search between lo and hi bounds.
17694while 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
17699cat confdefs.h >>conftest.$ac_ext
17700cat >>conftest.$ac_ext <<_ACEOF
17701/* end confdefs.h. */
17702$ac_includes_default
17703int
17704main ()
17705{
17706static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17707test_array [0] = 0
17708
17709 ;
17710 return 0;
17711}
17712_ACEOF
17713rm -f conftest.$ac_objext
17714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17715 (eval $ac_compile) 2>conftest.er1
a848cd7e 17716 ac_status=$?
ac1cb8d3
VS
17717 grep -v '^ *+' conftest.er1 >conftest.err
17718 rm -f conftest.er1
17719 cat conftest.err >&5
a848cd7e
SC
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
07158944 17722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
17735else
17736 echo "$as_me: failed program was:" >&5
17737sed 's/^/| /' conftest.$ac_ext >&5
17738
17739ac_lo=`expr '(' $ac_mid ')' + 1`
17740fi
ac1cb8d3 17741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17742done
17743case $ac_lo in
17744?*) ac_cv_sizeof_size_t=$ac_lo;;
17745'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17746See \`config.log' for more details." >&5
17747echo "$as_me: error: cannot compute sizeof (size_t), 77
17748See \`config.log' for more details." >&2;}
17749 { (exit 1); exit 1; }; } ;;
17750esac
17751else
17752 if test "$cross_compiling" = yes; then
07158944
VZ
17753 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17754echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17755 { (exit 1); exit 1; }; }
17756else
17757 cat >conftest.$ac_ext <<_ACEOF
17758/* confdefs.h. */
17759_ACEOF
17760cat confdefs.h >>conftest.$ac_ext
17761cat >>conftest.$ac_ext <<_ACEOF
17762/* end confdefs.h. */
17763$ac_includes_default
17764long longval () { return (long) (sizeof (size_t)); }
17765unsigned long ulongval () { return (long) (sizeof (size_t)); }
17766#include <stdio.h>
17767#include <stdlib.h>
17768int
17769main ()
17770{
17771
17772 FILE *f = fopen ("conftest.val", "w");
17773 if (! f)
17774 exit (1);
17775 if (((long) (sizeof (size_t))) < 0)
17776 {
17777 long i = longval ();
17778 if (i != ((long) (sizeof (size_t))))
17779 exit (1);
17780 fprintf (f, "%ld\n", i);
17781 }
17782 else
17783 {
17784 unsigned long i = ulongval ();
17785 if (i != ((long) (sizeof (size_t))))
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
17795rm -f conftest$ac_exeext
17796if { (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_size_t=`cat conftest.val`
17807else
17808 echo "$as_me: program exited with status $ac_status" >&5
17809echo "$as_me: failed program was:" >&5
17810sed 's/^/| /' conftest.$ac_ext >&5
17811
17812( exit $ac_status )
17813{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17814See \`config.log' for more details." >&5
17815echo "$as_me: error: cannot compute sizeof (size_t), 77
17816See \`config.log' for more details." >&2;}
17817 { (exit 1); exit 1; }; }
17818fi
ac1cb8d3 17819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17820fi
17821fi
17822rm -f conftest.val
17823else
17824 ac_cv_sizeof_size_t=0
17825fi
17826fi
17827echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17828echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17829cat >>confdefs.h <<_ACEOF
17830#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17831_ACEOF
17832
17833
17834
17835case "${host}" in
17836 arm-*-linux* )
17837 echo "$as_me:$LINENO: checking for long long" >&5
17838echo $ECHO_N "checking for long long... $ECHO_C" >&6
17839if test "${ac_cv_type_long_long+set}" = set; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17841else
17842 cat >conftest.$ac_ext <<_ACEOF
17843/* confdefs.h. */
17844_ACEOF
17845cat confdefs.h >>conftest.$ac_ext
17846cat >>conftest.$ac_ext <<_ACEOF
17847/* end confdefs.h. */
17848$ac_includes_default
17849int
17850main ()
17851{
17852if ((long long *) 0)
17853 return 0;
17854if (sizeof (long long))
17855 return 0;
17856 ;
17857 return 0;
17858}
17859_ACEOF
17860rm -f conftest.$ac_objext
17861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17862 (eval $ac_compile) 2>conftest.er1
a848cd7e 17863 ac_status=$?
ac1cb8d3
VS
17864 grep -v '^ *+' conftest.er1 >conftest.err
17865 rm -f conftest.er1
17866 cat conftest.err >&5
a848cd7e
SC
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
07158944 17869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17881 ac_cv_type_long_long=yes
17882else
17883 echo "$as_me: failed program was:" >&5
17884sed 's/^/| /' conftest.$ac_ext >&5
17885
17886ac_cv_type_long_long=no
17887fi
ac1cb8d3 17888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17889fi
17890echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17891echo "${ECHO_T}$ac_cv_type_long_long" >&6
17892
17893echo "$as_me:$LINENO: checking size of long long" >&5
17894echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17895if test "${ac_cv_sizeof_long_long+set}" = set; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17897else
17898 if test "$ac_cv_type_long_long" = yes; then
17899 # The cast to unsigned long works around a bug in the HP C Compiler
17900 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17901 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17902 # This bug is HP SR number 8606223364.
17903 if test "$cross_compiling" = yes; then
17904 # Depending upon the size, compute the lo and hi bounds.
17905cat >conftest.$ac_ext <<_ACEOF
17906/* confdefs.h. */
17907_ACEOF
17908cat confdefs.h >>conftest.$ac_ext
17909cat >>conftest.$ac_ext <<_ACEOF
17910/* end confdefs.h. */
17911$ac_includes_default
17912int
17913main ()
17914{
17915static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17916test_array [0] = 0
17917
17918 ;
17919 return 0;
17920}
17921_ACEOF
17922rm -f conftest.$ac_objext
17923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17924 (eval $ac_compile) 2>conftest.er1
a848cd7e 17925 ac_status=$?
ac1cb8d3
VS
17926 grep -v '^ *+' conftest.er1 >conftest.err
17927 rm -f conftest.er1
17928 cat conftest.err >&5
a848cd7e
SC
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } &&
07158944 17931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933 (eval $ac_try) 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; } &&
17937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; }; then
17943 ac_lo=0 ac_mid=0
17944 while :; do
17945 cat >conftest.$ac_ext <<_ACEOF
17946/* confdefs.h. */
17947_ACEOF
17948cat confdefs.h >>conftest.$ac_ext
17949cat >>conftest.$ac_ext <<_ACEOF
17950/* end confdefs.h. */
17951$ac_includes_default
17952int
17953main ()
17954{
17955static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17956test_array [0] = 0
17957
17958 ;
17959 return 0;
17960}
17961_ACEOF
17962rm -f conftest.$ac_objext
17963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17964 (eval $ac_compile) 2>conftest.er1
a848cd7e 17965 ac_status=$?
ac1cb8d3
VS
17966 grep -v '^ *+' conftest.er1 >conftest.err
17967 rm -f conftest.er1
17968 cat conftest.err >&5
a848cd7e
SC
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } &&
07158944 17971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; } &&
17977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17980 ac_status=$?
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; }; then
17983 ac_hi=$ac_mid; break
17984else
17985 echo "$as_me: failed program was:" >&5
17986sed 's/^/| /' conftest.$ac_ext >&5
17987
17988ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17989 if test $ac_lo -le $ac_mid; then
17990 ac_lo= ac_hi=
17991 break
17992 fi
17993 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17994fi
ac1cb8d3 17995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17996 done
17997else
17998 echo "$as_me: failed program was:" >&5
17999sed 's/^/| /' conftest.$ac_ext >&5
18000
18001cat >conftest.$ac_ext <<_ACEOF
18002/* confdefs.h. */
18003_ACEOF
18004cat confdefs.h >>conftest.$ac_ext
18005cat >>conftest.$ac_ext <<_ACEOF
18006/* end confdefs.h. */
18007$ac_includes_default
18008int
18009main ()
18010{
18011static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18012test_array [0] = 0
18013
18014 ;
18015 return 0;
18016}
18017_ACEOF
18018rm -f conftest.$ac_objext
18019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18020 (eval $ac_compile) 2>conftest.er1
a848cd7e 18021 ac_status=$?
ac1cb8d3
VS
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
a848cd7e
SC
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
07158944 18027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18039 ac_hi=-1 ac_mid=-1
18040 while :; do
18041 cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h. */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h. */
18047$ac_includes_default
18048int
18049main ()
18050{
18051static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18052test_array [0] = 0
18053
18054 ;
18055 return 0;
18056}
18057_ACEOF
18058rm -f conftest.$ac_objext
18059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18060 (eval $ac_compile) 2>conftest.er1
a848cd7e 18061 ac_status=$?
ac1cb8d3
VS
18062 grep -v '^ *+' conftest.er1 >conftest.err
18063 rm -f conftest.er1
18064 cat conftest.err >&5
a848cd7e
SC
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); } &&
07158944 18067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } &&
18073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 (eval $ac_try) 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 ac_lo=$ac_mid; break
18080else
18081 echo "$as_me: failed program was:" >&5
18082sed 's/^/| /' conftest.$ac_ext >&5
18083
18084ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18085 if test $ac_mid -le $ac_hi; then
18086 ac_lo= ac_hi=
18087 break
18088 fi
18089 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18090fi
ac1cb8d3 18091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18092 done
18093else
18094 echo "$as_me: failed program was:" >&5
18095sed 's/^/| /' conftest.$ac_ext >&5
18096
18097ac_lo= ac_hi=
18098fi
ac1cb8d3 18099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18100fi
ac1cb8d3 18101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18102# Binary search between lo and hi bounds.
18103while test "x$ac_lo" != "x$ac_hi"; do
18104 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18105 cat >conftest.$ac_ext <<_ACEOF
18106/* confdefs.h. */
18107_ACEOF
18108cat confdefs.h >>conftest.$ac_ext
18109cat >>conftest.$ac_ext <<_ACEOF
18110/* end confdefs.h. */
18111$ac_includes_default
18112int
18113main ()
18114{
18115static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18116test_array [0] = 0
18117
18118 ;
18119 return 0;
18120}
18121_ACEOF
18122rm -f conftest.$ac_objext
18123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18124 (eval $ac_compile) 2>conftest.er1
a848cd7e 18125 ac_status=$?
ac1cb8d3
VS
18126 grep -v '^ *+' conftest.er1 >conftest.err
18127 rm -f conftest.er1
18128 cat conftest.err >&5
a848cd7e
SC
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } &&
07158944 18131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; } &&
18137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 ac_hi=$ac_mid
18144else
18145 echo "$as_me: failed program was:" >&5
18146sed 's/^/| /' conftest.$ac_ext >&5
18147
18148ac_lo=`expr '(' $ac_mid ')' + 1`
18149fi
ac1cb8d3 18150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18151done
18152case $ac_lo in
18153?*) ac_cv_sizeof_long_long=$ac_lo;;
18154'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18155See \`config.log' for more details." >&5
18156echo "$as_me: error: cannot compute sizeof (long long), 77
18157See \`config.log' for more details." >&2;}
18158 { (exit 1); exit 1; }; } ;;
18159esac
18160else
18161 if test "$cross_compiling" = yes; then
07158944
VZ
18162 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18163echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18164 { (exit 1); exit 1; }; }
18165else
18166 cat >conftest.$ac_ext <<_ACEOF
18167/* confdefs.h. */
18168_ACEOF
18169cat confdefs.h >>conftest.$ac_ext
18170cat >>conftest.$ac_ext <<_ACEOF
18171/* end confdefs.h. */
18172$ac_includes_default
18173long longval () { return (long) (sizeof (long long)); }
18174unsigned long ulongval () { return (long) (sizeof (long long)); }
18175#include <stdio.h>
18176#include <stdlib.h>
18177int
18178main ()
18179{
18180
18181 FILE *f = fopen ("conftest.val", "w");
18182 if (! f)
18183 exit (1);
18184 if (((long) (sizeof (long long))) < 0)
18185 {
18186 long i = longval ();
18187 if (i != ((long) (sizeof (long long))))
18188 exit (1);
18189 fprintf (f, "%ld\n", i);
18190 }
18191 else
18192 {
18193 unsigned long i = ulongval ();
18194 if (i != ((long) (sizeof (long long))))
18195 exit (1);
18196 fprintf (f, "%lu\n", i);
18197 }
18198 exit (ferror (f) || fclose (f) != 0);
18199
18200 ;
18201 return 0;
18202}
18203_ACEOF
18204rm -f conftest$ac_exeext
18205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18206 (eval $ac_link) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; }; then
18215 ac_cv_sizeof_long_long=`cat conftest.val`
18216else
18217 echo "$as_me: program exited with status $ac_status" >&5
18218echo "$as_me: failed program was:" >&5
18219sed 's/^/| /' conftest.$ac_ext >&5
18220
18221( exit $ac_status )
18222{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18223See \`config.log' for more details." >&5
18224echo "$as_me: error: cannot compute sizeof (long long), 77
18225See \`config.log' for more details." >&2;}
18226 { (exit 1); exit 1; }; }
18227fi
ac1cb8d3 18228rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18229fi
18230fi
18231rm -f conftest.val
18232else
18233 ac_cv_sizeof_long_long=0
18234fi
18235fi
18236echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18237echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18238cat >>confdefs.h <<_ACEOF
18239#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18240_ACEOF
18241
18242
18243 ;;
18244 *-hp-hpux* )
18245 echo "$as_me:$LINENO: checking for long long" >&5
18246echo $ECHO_N "checking for long long... $ECHO_C" >&6
18247if test "${ac_cv_type_long_long+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18249else
18250 cat >conftest.$ac_ext <<_ACEOF
18251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
18256$ac_includes_default
18257int
18258main ()
18259{
18260if ((long long *) 0)
18261 return 0;
18262if (sizeof (long long))
18263 return 0;
18264 ;
18265 return 0;
18266}
18267_ACEOF
18268rm -f conftest.$ac_objext
18269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18270 (eval $ac_compile) 2>conftest.er1
a848cd7e 18271 ac_status=$?
ac1cb8d3
VS
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
a848cd7e
SC
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
07158944 18277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_cv_type_long_long=yes
18290else
18291 echo "$as_me: failed program was:" >&5
18292sed 's/^/| /' conftest.$ac_ext >&5
18293
18294ac_cv_type_long_long=no
18295fi
ac1cb8d3 18296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18297fi
18298echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18299echo "${ECHO_T}$ac_cv_type_long_long" >&6
18300
18301echo "$as_me:$LINENO: checking size of long long" >&5
18302echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18303if test "${ac_cv_sizeof_long_long+set}" = set; then
18304 echo $ECHO_N "(cached) $ECHO_C" >&6
18305else
18306 if test "$ac_cv_type_long_long" = yes; then
18307 # The cast to unsigned long works around a bug in the HP C Compiler
18308 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18309 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18310 # This bug is HP SR number 8606223364.
18311 if test "$cross_compiling" = yes; then
18312 # Depending upon the size, compute the lo and hi bounds.
18313cat >conftest.$ac_ext <<_ACEOF
18314/* confdefs.h. */
18315_ACEOF
18316cat confdefs.h >>conftest.$ac_ext
18317cat >>conftest.$ac_ext <<_ACEOF
18318/* end confdefs.h. */
18319$ac_includes_default
18320int
18321main ()
18322{
18323static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18324test_array [0] = 0
18325
18326 ;
18327 return 0;
18328}
18329_ACEOF
18330rm -f conftest.$ac_objext
18331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18332 (eval $ac_compile) 2>conftest.er1
a848cd7e 18333 ac_status=$?
ac1cb8d3
VS
18334 grep -v '^ *+' conftest.er1 >conftest.err
18335 rm -f conftest.er1
18336 cat conftest.err >&5
a848cd7e
SC
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
07158944 18339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
18351 ac_lo=0 ac_mid=0
18352 while :; do
18353 cat >conftest.$ac_ext <<_ACEOF
18354/* confdefs.h. */
18355_ACEOF
18356cat confdefs.h >>conftest.$ac_ext
18357cat >>conftest.$ac_ext <<_ACEOF
18358/* end confdefs.h. */
18359$ac_includes_default
18360int
18361main ()
18362{
18363static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18364test_array [0] = 0
18365
18366 ;
18367 return 0;
18368}
18369_ACEOF
18370rm -f conftest.$ac_objext
18371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18372 (eval $ac_compile) 2>conftest.er1
a848cd7e 18373 ac_status=$?
ac1cb8d3
VS
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
a848cd7e
SC
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
07158944 18379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_hi=$ac_mid; break
18392else
18393 echo "$as_me: failed program was:" >&5
18394sed 's/^/| /' conftest.$ac_ext >&5
18395
18396ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18397 if test $ac_lo -le $ac_mid; then
18398 ac_lo= ac_hi=
18399 break
18400 fi
18401 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18402fi
ac1cb8d3 18403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18404 done
18405else
18406 echo "$as_me: failed program was:" >&5
18407sed 's/^/| /' conftest.$ac_ext >&5
18408
18409cat >conftest.$ac_ext <<_ACEOF
18410/* confdefs.h. */
18411_ACEOF
18412cat confdefs.h >>conftest.$ac_ext
18413cat >>conftest.$ac_ext <<_ACEOF
18414/* end confdefs.h. */
18415$ac_includes_default
18416int
18417main ()
18418{
18419static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18420test_array [0] = 0
18421
18422 ;
18423 return 0;
18424}
18425_ACEOF
18426rm -f conftest.$ac_objext
18427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18428 (eval $ac_compile) 2>conftest.er1
a848cd7e 18429 ac_status=$?
ac1cb8d3
VS
18430 grep -v '^ *+' conftest.er1 >conftest.err
18431 rm -f conftest.er1
18432 cat conftest.err >&5
a848cd7e
SC
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); } &&
07158944 18435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_hi=-1 ac_mid=-1
18448 while :; do
18449 cat >conftest.$ac_ext <<_ACEOF
18450/* confdefs.h. */
18451_ACEOF
18452cat confdefs.h >>conftest.$ac_ext
18453cat >>conftest.$ac_ext <<_ACEOF
18454/* end confdefs.h. */
18455$ac_includes_default
18456int
18457main ()
18458{
18459static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18460test_array [0] = 0
18461
18462 ;
18463 return 0;
18464}
18465_ACEOF
18466rm -f conftest.$ac_objext
18467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18468 (eval $ac_compile) 2>conftest.er1
a848cd7e 18469 ac_status=$?
ac1cb8d3
VS
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
a848cd7e
SC
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
07158944 18475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 ac_lo=$ac_mid; break
18488else
18489 echo "$as_me: failed program was:" >&5
18490sed 's/^/| /' conftest.$ac_ext >&5
18491
18492ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18493 if test $ac_mid -le $ac_hi; then
18494 ac_lo= ac_hi=
18495 break
18496 fi
18497 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18498fi
ac1cb8d3 18499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18500 done
18501else
18502 echo "$as_me: failed program was:" >&5
18503sed 's/^/| /' conftest.$ac_ext >&5
18504
18505ac_lo= ac_hi=
18506fi
ac1cb8d3 18507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18508fi
ac1cb8d3 18509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18510# Binary search between lo and hi bounds.
18511while test "x$ac_lo" != "x$ac_hi"; do
18512 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18513 cat >conftest.$ac_ext <<_ACEOF
18514/* confdefs.h. */
18515_ACEOF
18516cat confdefs.h >>conftest.$ac_ext
18517cat >>conftest.$ac_ext <<_ACEOF
18518/* end confdefs.h. */
18519$ac_includes_default
18520int
18521main ()
18522{
18523static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18524test_array [0] = 0
18525
18526 ;
18527 return 0;
18528}
18529_ACEOF
18530rm -f conftest.$ac_objext
18531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18532 (eval $ac_compile) 2>conftest.er1
a848cd7e 18533 ac_status=$?
ac1cb8d3
VS
18534 grep -v '^ *+' conftest.er1 >conftest.err
18535 rm -f conftest.er1
18536 cat conftest.err >&5
a848cd7e
SC
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
07158944 18539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; } &&
18545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18547 (eval $ac_try) 2>&5
18548 ac_status=$?
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; }; then
18551 ac_hi=$ac_mid
18552else
18553 echo "$as_me: failed program was:" >&5
18554sed 's/^/| /' conftest.$ac_ext >&5
18555
18556ac_lo=`expr '(' $ac_mid ')' + 1`
18557fi
ac1cb8d3 18558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18559done
18560case $ac_lo in
18561?*) ac_cv_sizeof_long_long=$ac_lo;;
18562'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18563See \`config.log' for more details." >&5
18564echo "$as_me: error: cannot compute sizeof (long long), 77
18565See \`config.log' for more details." >&2;}
18566 { (exit 1); exit 1; }; } ;;
18567esac
18568else
18569 if test "$cross_compiling" = yes; then
07158944
VZ
18570 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18571echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18572 { (exit 1); exit 1; }; }
18573else
18574 cat >conftest.$ac_ext <<_ACEOF
18575/* confdefs.h. */
18576_ACEOF
18577cat confdefs.h >>conftest.$ac_ext
18578cat >>conftest.$ac_ext <<_ACEOF
18579/* end confdefs.h. */
18580$ac_includes_default
18581long longval () { return (long) (sizeof (long long)); }
18582unsigned long ulongval () { return (long) (sizeof (long long)); }
18583#include <stdio.h>
18584#include <stdlib.h>
18585int
18586main ()
18587{
18588
18589 FILE *f = fopen ("conftest.val", "w");
18590 if (! f)
18591 exit (1);
18592 if (((long) (sizeof (long long))) < 0)
18593 {
18594 long i = longval ();
18595 if (i != ((long) (sizeof (long long))))
18596 exit (1);
18597 fprintf (f, "%ld\n", i);
18598 }
18599 else
18600 {
18601 unsigned long i = ulongval ();
18602 if (i != ((long) (sizeof (long long))))
18603 exit (1);
18604 fprintf (f, "%lu\n", i);
18605 }
18606 exit (ferror (f) || fclose (f) != 0);
18607
18608 ;
18609 return 0;
18610}
18611_ACEOF
18612rm -f conftest$ac_exeext
18613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18614 (eval $ac_link) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 ac_cv_sizeof_long_long=`cat conftest.val`
18624else
18625 echo "$as_me: program exited with status $ac_status" >&5
18626echo "$as_me: failed program was:" >&5
18627sed 's/^/| /' conftest.$ac_ext >&5
18628
18629( exit $ac_status )
18630{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18631See \`config.log' for more details." >&5
18632echo "$as_me: error: cannot compute sizeof (long long), 77
18633See \`config.log' for more details." >&2;}
18634 { (exit 1); exit 1; }; }
18635fi
ac1cb8d3 18636rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18637fi
18638fi
18639rm -f conftest.val
18640else
18641 ac_cv_sizeof_long_long=0
18642fi
18643fi
18644echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18645echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18646cat >>confdefs.h <<_ACEOF
18647#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18648_ACEOF
18649
18650
18651 if test "$ac_cv_sizeof_long_long" != "0"; then
18652 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18653 fi
18654 ;;
18655 * )
18656 echo "$as_me:$LINENO: checking for long long" >&5
18657echo $ECHO_N "checking for long long... $ECHO_C" >&6
18658if test "${ac_cv_type_long_long+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18660else
18661 cat >conftest.$ac_ext <<_ACEOF
18662/* confdefs.h. */
18663_ACEOF
18664cat confdefs.h >>conftest.$ac_ext
18665cat >>conftest.$ac_ext <<_ACEOF
18666/* end confdefs.h. */
18667$ac_includes_default
18668int
18669main ()
18670{
18671if ((long long *) 0)
18672 return 0;
18673if (sizeof (long long))
18674 return 0;
18675 ;
18676 return 0;
18677}
18678_ACEOF
18679rm -f conftest.$ac_objext
18680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18681 (eval $ac_compile) 2>conftest.er1
a848cd7e 18682 ac_status=$?
ac1cb8d3
VS
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
a848cd7e
SC
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
07158944 18688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18691 ac_status=$?
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; } &&
18694 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 ac_cv_type_long_long=yes
18701else
18702 echo "$as_me: failed program was:" >&5
18703sed 's/^/| /' conftest.$ac_ext >&5
18704
18705ac_cv_type_long_long=no
18706fi
ac1cb8d3 18707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18708fi
18709echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18710echo "${ECHO_T}$ac_cv_type_long_long" >&6
18711
18712echo "$as_me:$LINENO: checking size of long long" >&5
18713echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18714if test "${ac_cv_sizeof_long_long+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18716else
18717 if test "$ac_cv_type_long_long" = yes; then
18718 # The cast to unsigned long works around a bug in the HP C Compiler
18719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18721 # This bug is HP SR number 8606223364.
18722 if test "$cross_compiling" = yes; then
18723 # Depending upon the size, compute the lo and hi bounds.
18724cat >conftest.$ac_ext <<_ACEOF
18725/* confdefs.h. */
18726_ACEOF
18727cat confdefs.h >>conftest.$ac_ext
18728cat >>conftest.$ac_ext <<_ACEOF
18729/* end confdefs.h. */
18730$ac_includes_default
18731int
18732main ()
18733{
18734static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18735test_array [0] = 0
18736
18737 ;
18738 return 0;
18739}
18740_ACEOF
18741rm -f conftest.$ac_objext
18742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18743 (eval $ac_compile) 2>conftest.er1
a848cd7e 18744 ac_status=$?
ac1cb8d3
VS
18745 grep -v '^ *+' conftest.er1 >conftest.err
18746 rm -f conftest.er1
18747 cat conftest.err >&5
a848cd7e
SC
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
07158944 18750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18753 ac_status=$?
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } &&
18756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; }; then
18762 ac_lo=0 ac_mid=0
18763 while :; do
18764 cat >conftest.$ac_ext <<_ACEOF
18765/* confdefs.h. */
18766_ACEOF
18767cat confdefs.h >>conftest.$ac_ext
18768cat >>conftest.$ac_ext <<_ACEOF
18769/* end confdefs.h. */
18770$ac_includes_default
18771int
18772main ()
18773{
18774static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18775test_array [0] = 0
18776
18777 ;
18778 return 0;
18779}
18780_ACEOF
18781rm -f conftest.$ac_objext
18782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18783 (eval $ac_compile) 2>conftest.er1
a848cd7e 18784 ac_status=$?
ac1cb8d3
VS
18785 grep -v '^ *+' conftest.er1 >conftest.err
18786 rm -f conftest.er1
18787 cat conftest.err >&5
a848cd7e
SC
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } &&
07158944 18790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } &&
18796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_hi=$ac_mid; break
18803else
18804 echo "$as_me: failed program was:" >&5
18805sed 's/^/| /' conftest.$ac_ext >&5
18806
18807ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18808 if test $ac_lo -le $ac_mid; then
18809 ac_lo= ac_hi=
18810 break
18811 fi
18812 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18813fi
ac1cb8d3 18814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18815 done
18816else
18817 echo "$as_me: failed program was:" >&5
18818sed 's/^/| /' conftest.$ac_ext >&5
18819
18820cat >conftest.$ac_ext <<_ACEOF
18821/* confdefs.h. */
18822_ACEOF
18823cat confdefs.h >>conftest.$ac_ext
18824cat >>conftest.$ac_ext <<_ACEOF
18825/* end confdefs.h. */
18826$ac_includes_default
18827int
18828main ()
18829{
18830static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18831test_array [0] = 0
18832
18833 ;
18834 return 0;
18835}
18836_ACEOF
18837rm -f conftest.$ac_objext
18838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18839 (eval $ac_compile) 2>conftest.er1
a848cd7e 18840 ac_status=$?
ac1cb8d3
VS
18841 grep -v '^ *+' conftest.er1 >conftest.err
18842 rm -f conftest.er1
18843 cat conftest.err >&5
a848cd7e
SC
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } &&
07158944 18846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18858 ac_hi=-1 ac_mid=-1
18859 while :; do
18860 cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h. */
18866$ac_includes_default
18867int
18868main ()
18869{
18870static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18871test_array [0] = 0
18872
18873 ;
18874 return 0;
18875}
18876_ACEOF
18877rm -f conftest.$ac_objext
18878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18879 (eval $ac_compile) 2>conftest.er1
a848cd7e 18880 ac_status=$?
ac1cb8d3
VS
18881 grep -v '^ *+' conftest.er1 >conftest.err
18882 rm -f conftest.er1
18883 cat conftest.err >&5
a848cd7e
SC
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
07158944 18886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_lo=$ac_mid; break
18899else
18900 echo "$as_me: failed program was:" >&5
18901sed 's/^/| /' conftest.$ac_ext >&5
18902
18903ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18904 if test $ac_mid -le $ac_hi; then
18905 ac_lo= ac_hi=
18906 break
18907 fi
18908 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18909fi
ac1cb8d3 18910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18911 done
18912else
18913 echo "$as_me: failed program was:" >&5
18914sed 's/^/| /' conftest.$ac_ext >&5
18915
18916ac_lo= ac_hi=
18917fi
ac1cb8d3 18918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18919fi
ac1cb8d3 18920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18921# Binary search between lo and hi bounds.
18922while test "x$ac_lo" != "x$ac_hi"; do
18923 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18924 cat >conftest.$ac_ext <<_ACEOF
18925/* confdefs.h. */
18926_ACEOF
18927cat confdefs.h >>conftest.$ac_ext
18928cat >>conftest.$ac_ext <<_ACEOF
18929/* end confdefs.h. */
18930$ac_includes_default
18931int
18932main ()
18933{
18934static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18935test_array [0] = 0
18936
18937 ;
18938 return 0;
18939}
18940_ACEOF
18941rm -f conftest.$ac_objext
18942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18943 (eval $ac_compile) 2>conftest.er1
a848cd7e 18944 ac_status=$?
ac1cb8d3
VS
18945 grep -v '^ *+' conftest.er1 >conftest.err
18946 rm -f conftest.er1
18947 cat conftest.err >&5
a848cd7e
SC
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
07158944 18950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_hi=$ac_mid
18963else
18964 echo "$as_me: failed program was:" >&5
18965sed 's/^/| /' conftest.$ac_ext >&5
18966
18967ac_lo=`expr '(' $ac_mid ')' + 1`
18968fi
ac1cb8d3 18969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18970done
18971case $ac_lo in
18972?*) ac_cv_sizeof_long_long=$ac_lo;;
18973'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18974See \`config.log' for more details." >&5
18975echo "$as_me: error: cannot compute sizeof (long long), 77
18976See \`config.log' for more details." >&2;}
18977 { (exit 1); exit 1; }; } ;;
18978esac
18979else
18980 if test "$cross_compiling" = yes; then
07158944
VZ
18981 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18982echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18983 { (exit 1); exit 1; }; }
18984else
18985 cat >conftest.$ac_ext <<_ACEOF
18986/* confdefs.h. */
18987_ACEOF
18988cat confdefs.h >>conftest.$ac_ext
18989cat >>conftest.$ac_ext <<_ACEOF
18990/* end confdefs.h. */
18991$ac_includes_default
18992long longval () { return (long) (sizeof (long long)); }
18993unsigned long ulongval () { return (long) (sizeof (long long)); }
18994#include <stdio.h>
18995#include <stdlib.h>
18996int
18997main ()
18998{
18999
19000 FILE *f = fopen ("conftest.val", "w");
19001 if (! f)
19002 exit (1);
19003 if (((long) (sizeof (long long))) < 0)
19004 {
19005 long i = longval ();
19006 if (i != ((long) (sizeof (long long))))
19007 exit (1);
19008 fprintf (f, "%ld\n", i);
19009 }
19010 else
19011 {
19012 unsigned long i = ulongval ();
19013 if (i != ((long) (sizeof (long long))))
19014 exit (1);
19015 fprintf (f, "%lu\n", i);
19016 }
19017 exit (ferror (f) || fclose (f) != 0);
19018
19019 ;
19020 return 0;
19021}
19022_ACEOF
19023rm -f conftest$ac_exeext
19024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19025 (eval $ac_link) 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 ac_cv_sizeof_long_long=`cat conftest.val`
19035else
19036 echo "$as_me: program exited with status $ac_status" >&5
19037echo "$as_me: failed program was:" >&5
19038sed 's/^/| /' conftest.$ac_ext >&5
19039
19040( exit $ac_status )
19041{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19042See \`config.log' for more details." >&5
19043echo "$as_me: error: cannot compute sizeof (long long), 77
19044See \`config.log' for more details." >&2;}
19045 { (exit 1); exit 1; }; }
19046fi
ac1cb8d3 19047rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19048fi
19049fi
19050rm -f conftest.val
19051else
19052 ac_cv_sizeof_long_long=0
19053fi
19054fi
19055echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19056echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19057cat >>confdefs.h <<_ACEOF
19058#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19059_ACEOF
19060
19061
19062esac
19063
238ecede
MW
19064echo "$as_me:$LINENO: checking for wchar_t" >&5
19065echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19066if test "${ac_cv_type_wchar_t+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19068else
19069 cat >conftest.$ac_ext <<_ACEOF
19070/* confdefs.h. */
19071_ACEOF
19072cat confdefs.h >>conftest.$ac_ext
19073cat >>conftest.$ac_ext <<_ACEOF
19074/* end confdefs.h. */
19075
19076 /* DJGPP only has fake wchar_t: */
19077 #ifdef __DJGPP__
19078 # error "fake wchar_t"
19079 #endif
19080 #ifdef HAVE_WCHAR_H
19081 # ifdef __CYGWIN__
19082 # include <stddef.h>
19083 # endif
19084 # include <wchar.h>
19085 #endif
19086 #ifdef HAVE_STDLIB_H
19087 # include <stdlib.h>
19088 #endif
19089 #include <stdio.h>
19090
19091
19092
19093int
19094main ()
19095{
19096if ((wchar_t *) 0)
19097 return 0;
19098if (sizeof (wchar_t))
19099 return 0;
19100 ;
19101 return 0;
19102}
19103_ACEOF
19104rm -f conftest.$ac_objext
19105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19106 (eval $ac_compile) 2>conftest.er1
19107 ac_status=$?
19108 grep -v '^ *+' conftest.er1 >conftest.err
19109 rm -f conftest.er1
19110 cat conftest.err >&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } &&
07158944 19113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest.$ac_objext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_cv_type_wchar_t=yes
19126else
19127 echo "$as_me: failed program was:" >&5
19128sed 's/^/| /' conftest.$ac_ext >&5
19129
19130ac_cv_type_wchar_t=no
19131fi
19132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19133fi
19134echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19135echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19136
a848cd7e
SC
19137echo "$as_me:$LINENO: checking size of wchar_t" >&5
19138echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19139if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19141else
238ecede
MW
19142 if test "$ac_cv_type_wchar_t" = yes; then
19143 # The cast to unsigned long works around a bug in the HP C Compiler
19144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19146 # This bug is HP SR number 8606223364.
19147 if test "$cross_compiling" = yes; then
19148 # Depending upon the size, compute the lo and hi bounds.
19149cat >conftest.$ac_ext <<_ACEOF
19150/* confdefs.h. */
19151_ACEOF
19152cat confdefs.h >>conftest.$ac_ext
19153cat >>conftest.$ac_ext <<_ACEOF
19154/* end confdefs.h. */
19155
19156 /* DJGPP only has fake wchar_t: */
19157 #ifdef __DJGPP__
19158 # error "fake wchar_t"
19159 #endif
19160 #ifdef HAVE_WCHAR_H
19161 # ifdef __CYGWIN__
19162 # include <stddef.h>
19163 # endif
19164 # include <wchar.h>
19165 #endif
19166 #ifdef HAVE_STDLIB_H
19167 # include <stdlib.h>
19168 #endif
19169 #include <stdio.h>
19170
19171
19172
19173int
19174main ()
19175{
19176static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19177test_array [0] = 0
19178
19179 ;
19180 return 0;
19181}
19182_ACEOF
19183rm -f conftest.$ac_objext
19184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19185 (eval $ac_compile) 2>conftest.er1
19186 ac_status=$?
19187 grep -v '^ *+' conftest.er1 >conftest.err
19188 rm -f conftest.er1
19189 cat conftest.err >&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } &&
07158944 19192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19194 (eval $ac_try) 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; } &&
19198 { ac_try='test -s conftest.$ac_objext'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_lo=0 ac_mid=0
19205 while :; do
19206 cat >conftest.$ac_ext <<_ACEOF
19207/* confdefs.h. */
19208_ACEOF
19209cat confdefs.h >>conftest.$ac_ext
19210cat >>conftest.$ac_ext <<_ACEOF
19211/* end confdefs.h. */
19212
19213 /* DJGPP only has fake wchar_t: */
19214 #ifdef __DJGPP__
19215 # error "fake wchar_t"
19216 #endif
19217 #ifdef HAVE_WCHAR_H
19218 # ifdef __CYGWIN__
19219 # include <stddef.h>
19220 # endif
19221 # include <wchar.h>
19222 #endif
19223 #ifdef HAVE_STDLIB_H
19224 # include <stdlib.h>
19225 #endif
19226 #include <stdio.h>
19227
19228
19229
19230int
19231main ()
19232{
19233static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19234test_array [0] = 0
19235
19236 ;
19237 return 0;
19238}
19239_ACEOF
19240rm -f conftest.$ac_objext
19241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19242 (eval $ac_compile) 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
07158944 19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest.$ac_objext'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 ac_hi=$ac_mid; break
19262else
19263 echo "$as_me: failed program was:" >&5
19264sed 's/^/| /' conftest.$ac_ext >&5
19265
19266ac_lo=`expr $ac_mid + 1`
19267 if test $ac_lo -le $ac_mid; then
19268 ac_lo= ac_hi=
19269 break
19270 fi
19271 ac_mid=`expr 2 '*' $ac_mid + 1`
19272fi
19273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19274 done
19275else
19276 echo "$as_me: failed program was:" >&5
19277sed 's/^/| /' conftest.$ac_ext >&5
19278
19279cat >conftest.$ac_ext <<_ACEOF
19280/* confdefs.h. */
19281_ACEOF
19282cat confdefs.h >>conftest.$ac_ext
19283cat >>conftest.$ac_ext <<_ACEOF
19284/* end confdefs.h. */
19285
19286 /* DJGPP only has fake wchar_t: */
19287 #ifdef __DJGPP__
19288 # error "fake wchar_t"
19289 #endif
19290 #ifdef HAVE_WCHAR_H
19291 # ifdef __CYGWIN__
19292 # include <stddef.h>
19293 # endif
19294 # include <wchar.h>
19295 #endif
19296 #ifdef HAVE_STDLIB_H
19297 # include <stdlib.h>
19298 #endif
19299 #include <stdio.h>
19300
19301
19302
19303int
19304main ()
19305{
19306static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19307test_array [0] = 0
19308
19309 ;
19310 return 0;
19311}
19312_ACEOF
19313rm -f conftest.$ac_objext
19314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19315 (eval $ac_compile) 2>conftest.er1
19316 ac_status=$?
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
07158944 19322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; } &&
19328 { ac_try='test -s conftest.$ac_objext'
19329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330 (eval $ac_try) 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 ac_hi=-1 ac_mid=-1
19335 while :; do
19336 cat >conftest.$ac_ext <<_ACEOF
19337/* confdefs.h. */
19338_ACEOF
19339cat confdefs.h >>conftest.$ac_ext
19340cat >>conftest.$ac_ext <<_ACEOF
19341/* end confdefs.h. */
19342
19343 /* DJGPP only has fake wchar_t: */
19344 #ifdef __DJGPP__
19345 # error "fake wchar_t"
19346 #endif
19347 #ifdef HAVE_WCHAR_H
19348 # ifdef __CYGWIN__
19349 # include <stddef.h>
19350 # endif
19351 # include <wchar.h>
19352 #endif
19353 #ifdef HAVE_STDLIB_H
19354 # include <stdlib.h>
19355 #endif
19356 #include <stdio.h>
19357
19358
19359
19360int
19361main ()
19362{
19363static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19364test_array [0] = 0
19365
19366 ;
19367 return 0;
19368}
19369_ACEOF
19370rm -f conftest.$ac_objext
19371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19372 (eval $ac_compile) 2>conftest.er1
19373 ac_status=$?
19374 grep -v '^ *+' conftest.er1 >conftest.err
19375 rm -f conftest.er1
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } &&
07158944 19379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest.$ac_objext'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 ac_lo=$ac_mid; break
19392else
19393 echo "$as_me: failed program was:" >&5
19394sed 's/^/| /' conftest.$ac_ext >&5
19395
19396ac_hi=`expr '(' $ac_mid ')' - 1`
19397 if test $ac_mid -le $ac_hi; then
19398 ac_lo= ac_hi=
19399 break
19400 fi
19401 ac_mid=`expr 2 '*' $ac_mid`
19402fi
19403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19404 done
19405else
19406 echo "$as_me: failed program was:" >&5
19407sed 's/^/| /' conftest.$ac_ext >&5
19408
19409ac_lo= ac_hi=
19410fi
19411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19412fi
19413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19414# Binary search between lo and hi bounds.
19415while test "x$ac_lo" != "x$ac_hi"; do
19416 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19417 cat >conftest.$ac_ext <<_ACEOF
19418/* confdefs.h. */
19419_ACEOF
19420cat confdefs.h >>conftest.$ac_ext
19421cat >>conftest.$ac_ext <<_ACEOF
19422/* end confdefs.h. */
19423
19424 /* DJGPP only has fake wchar_t: */
19425 #ifdef __DJGPP__
19426 # error "fake wchar_t"
19427 #endif
19428 #ifdef HAVE_WCHAR_H
19429 # ifdef __CYGWIN__
19430 # include <stddef.h>
19431 # endif
19432 # include <wchar.h>
19433 #endif
19434 #ifdef HAVE_STDLIB_H
19435 # include <stdlib.h>
19436 #endif
19437 #include <stdio.h>
a848cd7e 19438
a848cd7e 19439
a848cd7e 19440
238ecede
MW
19441int
19442main ()
19443{
19444static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19445test_array [0] = 0
a848cd7e 19446
238ecede
MW
19447 ;
19448 return 0;
19449}
19450_ACEOF
19451rm -f conftest.$ac_objext
19452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19453 (eval $ac_compile) 2>conftest.er1
19454 ac_status=$?
19455 grep -v '^ *+' conftest.er1 >conftest.err
19456 rm -f conftest.er1
19457 cat conftest.err >&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } &&
07158944 19460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; } &&
19466 { ac_try='test -s conftest.$ac_objext'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 ac_hi=$ac_mid
19473else
19474 echo "$as_me: failed program was:" >&5
19475sed 's/^/| /' conftest.$ac_ext >&5
19476
19477ac_lo=`expr '(' $ac_mid ')' + 1`
19478fi
19479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19480done
19481case $ac_lo in
19482?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19483'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19484See \`config.log' for more details." >&5
19485echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19486See \`config.log' for more details." >&2;}
19487 { (exit 1); exit 1; }; } ;;
19488esac
19489else
19490 if test "$cross_compiling" = yes; then
07158944
VZ
19491 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19492echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19493 { (exit 1); exit 1; }; }
a848cd7e
SC
19494else
19495 cat >conftest.$ac_ext <<_ACEOF
19496/* confdefs.h. */
19497_ACEOF
19498cat confdefs.h >>conftest.$ac_ext
19499cat >>conftest.$ac_ext <<_ACEOF
19500/* end confdefs.h. */
19501
238ecede
MW
19502 /* DJGPP only has fake wchar_t: */
19503 #ifdef __DJGPP__
19504 # error "fake wchar_t"
19505 #endif
19506 #ifdef HAVE_WCHAR_H
19507 # ifdef __CYGWIN__
19508 # include <stddef.h>
19509 # endif
19510 # include <wchar.h>
19511 #endif
19512 #ifdef HAVE_STDLIB_H
19513 # include <stdlib.h>
19514 #endif
19515 #include <stdio.h>
19516
19517
19518
19519long longval () { return (long) (sizeof (wchar_t)); }
19520unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19521#include <stdio.h>
19522#include <stdlib.h>
19523int
19524main ()
19525{
a848cd7e 19526
238ecede
MW
19527 FILE *f = fopen ("conftest.val", "w");
19528 if (! f)
19529 exit (1);
19530 if (((long) (sizeof (wchar_t))) < 0)
19531 {
19532 long i = longval ();
19533 if (i != ((long) (sizeof (wchar_t))))
19534 exit (1);
19535 fprintf (f, "%ld\n", i);
19536 }
19537 else
19538 {
19539 unsigned long i = ulongval ();
19540 if (i != ((long) (sizeof (wchar_t))))
19541 exit (1);
19542 fprintf (f, "%lu\n", i);
19543 }
19544 exit (ferror (f) || fclose (f) != 0);
19545
19546 ;
19547 return 0;
19548}
a848cd7e
SC
19549_ACEOF
19550rm -f conftest$ac_exeext
19551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19552 (eval $ac_link) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
238ecede 19561 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19562else
19563 echo "$as_me: program exited with status $ac_status" >&5
19564echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567( exit $ac_status )
238ecede
MW
19568{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19569See \`config.log' for more details." >&5
19570echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19571See \`config.log' for more details." >&2;}
19572 { (exit 1); exit 1; }; }
a848cd7e 19573fi
ac1cb8d3 19574rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19575fi
a848cd7e 19576fi
238ecede
MW
19577rm -f conftest.val
19578else
19579 ac_cv_sizeof_wchar_t=0
19580fi
19581fi
19582echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19583echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19584cat >>confdefs.h <<_ACEOF
238ecede 19585#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19586_ACEOF
19587
19588
238ecede 19589
ba3d13e1
VZ
19590echo "$as_me:$LINENO: checking for va_copy" >&5
19591echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19592if test "${wx_cv_func_va_copy+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19594else
19595
19596 cat >conftest.$ac_ext <<_ACEOF
19597
19598 #include <stdarg.h>
19599 void foo(char *f, ...)
19600 {
19601 va_list ap1, ap2;
19602 va_start(ap1, f);
19603 va_copy(ap2, ap1);
19604 va_end(ap2);
19605 va_end(ap1);
19606 }
5886b072
VZ
19607 int main()
19608 {
b902e639
VZ
19609 foo("hi", 17);
19610 return 0;
5886b072 19611 }
ba3d13e1
VZ
19612_ACEOF
19613rm -f conftest.$ac_objext conftest$ac_exeext
19614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19615 (eval $ac_link) 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
07158944 19622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19625 ac_status=$?
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; } &&
19628 { ac_try='test -s conftest$ac_exeext'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19634 wx_cv_func_va_copy=yes
19635else
19636 echo "$as_me: failed program was:" >&5
19637sed 's/^/| /' conftest.$ac_ext >&5
19638
19639wx_cv_func_va_copy=no
19640
19641fi
19642rm -f conftest.err conftest.$ac_objext \
19643 conftest$ac_exeext conftest.$ac_ext
19644
19645
19646fi
19647echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19648echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19649
19650if test $wx_cv_func_va_copy = "yes"; then
19651 cat >>confdefs.h <<\_ACEOF
19652#define HAVE_VA_COPY 1
19653_ACEOF
19654
19655else
19656 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19657echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19658if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19660else
19661
19662 if test "$cross_compiling" = yes; then
19663 wx_cv_type_va_list_lvalue=yes
19664
19665else
19666 cat >conftest.$ac_ext <<_ACEOF
19667
19668 #include <stdarg.h>
19669 int foo(char *f, ...)
19670 {
19671 va_list ap1, ap2;
19672 va_start(ap1, f);
19673 ap2 = ap1;
19674 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19675 return 1;
19676 va_end(ap2);
19677 va_end(ap1);
19678 return 0;
19679 }
19680 int main()
19681 {
19682 return foo("hi", 17);
19683 }
19684_ACEOF
19685rm -f conftest$ac_exeext
19686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19687 (eval $ac_link) 2>&5
19688 ac_status=$?
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696 wx_cv_type_va_list_lvalue=yes
19697else
19698 echo "$as_me: program exited with status $ac_status" >&5
19699echo "$as_me: failed program was:" >&5
19700sed 's/^/| /' conftest.$ac_ext >&5
19701
19702( exit $ac_status )
19703wx_cv_type_va_list_lvalue=no
19704fi
19705rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19706fi
19707
19708
19709fi
19710echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19711echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19712
19713 if test $wx_cv_type_va_list_lvalue != "yes"; then
19714 cat >>confdefs.h <<\_ACEOF
19715#define VA_LIST_IS_ARRAY 1
19716_ACEOF
19717
19718 fi
19719fi
19720
a848cd7e
SC
19721# Check whether --enable-largefile or --disable-largefile was given.
19722if test "${enable_largefile+set}" = set; then
19723 enableval="$enable_largefile"
19724
19725fi;
19726if test "$enable_largefile" != no; then
19727 wx_largefile=no
19728
19729 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19730echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19731if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19733else
19734
19735 cat >conftest.$ac_ext <<_ACEOF
19736/* confdefs.h. */
19737_ACEOF
19738cat confdefs.h >>conftest.$ac_ext
19739cat >>conftest.$ac_ext <<_ACEOF
19740/* end confdefs.h. */
19741#define _FILE_OFFSET_BITS 64
19742 #include <sys/types.h>
19743int
19744main ()
19745{
19746typedef struct {
19747 unsigned int field: sizeof(off_t) == 8;
19748} wxlf;
19749
19750 ;
19751 return 0;
19752}
19753_ACEOF
19754rm -f conftest.$ac_objext
19755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19756 (eval $ac_compile) 2>conftest.er1
a848cd7e 19757 ac_status=$?
ac1cb8d3
VS
19758 grep -v '^ *+' conftest.er1 >conftest.err
19759 rm -f conftest.er1
19760 cat conftest.err >&5
a848cd7e
SC
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } &&
07158944 19763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
19769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_cv_sys_file_offset_bits=64
19776else
19777 echo "$as_me: failed program was:" >&5
19778sed 's/^/| /' conftest.$ac_ext >&5
19779
19780ac_cv_sys_file_offset_bits=no
19781fi
ac1cb8d3 19782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19783
19784
19785fi
19786echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19787echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19788
19789 if test "$ac_cv_sys_file_offset_bits" != no; then
19790 wx_largefile=yes
19791 cat >>confdefs.h <<_ACEOF
19792#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19793_ACEOF
19794
19795 fi
19796
19797 if test "x$wx_largefile" != "xyes"; then
19798
19799 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19800echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19801if test "${ac_cv_sys_large_files+set}" = set; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19803else
19804
19805 cat >conftest.$ac_ext <<_ACEOF
19806/* confdefs.h. */
19807_ACEOF
19808cat confdefs.h >>conftest.$ac_ext
19809cat >>conftest.$ac_ext <<_ACEOF
19810/* end confdefs.h. */
19811#define _LARGE_FILES 1
19812 #include <sys/types.h>
19813int
19814main ()
19815{
19816typedef struct {
19817 unsigned int field: sizeof(off_t) == 8;
19818} wxlf;
19819
19820 ;
19821 return 0;
19822}
19823_ACEOF
19824rm -f conftest.$ac_objext
19825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19826 (eval $ac_compile) 2>conftest.er1
a848cd7e 19827 ac_status=$?
ac1cb8d3
VS
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
a848cd7e
SC
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } &&
07158944 19833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19836 ac_status=$?
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; } &&
19839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; }; then
19845 ac_cv_sys_large_files=1
19846else
19847 echo "$as_me: failed program was:" >&5
19848sed 's/^/| /' conftest.$ac_ext >&5
19849
19850ac_cv_sys_large_files=no
19851fi
ac1cb8d3 19852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19853
19854
19855fi
19856echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19857echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19858
19859 if test "$ac_cv_sys_large_files" != no; then
19860 wx_largefile=yes
19861 cat >>confdefs.h <<_ACEOF
19862#define _LARGE_FILES $ac_cv_sys_large_files
19863_ACEOF
19864
19865 fi
19866
19867 fi
19868
19869 echo "$as_me:$LINENO: checking if large file support is available" >&5
19870echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19871 if test "x$wx_largefile" = "xyes"; then
19872 cat >>confdefs.h <<\_ACEOF
19873#define HAVE_LARGEFILE_SUPPORT 1
19874_ACEOF
19875
19876 fi
19877 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19878echo "${ECHO_T}$wx_largefile" >&6
19879fi
19880
5b674b9d
DE
19881
19882if test "x$wx_largefile" = "xyes"; then
19883 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19884 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19885 else
19886 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19887 fi
19888 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19889echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19890if test "${ac_cv_sys_largefile_source+set}" = set; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19892else
19893 while :; do
19894 ac_cv_sys_largefile_source=no
19895 cat >conftest.$ac_ext <<_ACEOF
19896/* confdefs.h. */
19897_ACEOF
19898cat confdefs.h >>conftest.$ac_ext
19899cat >>conftest.$ac_ext <<_ACEOF
19900/* end confdefs.h. */
19901#include <stdio.h>
19902int
19903main ()
19904{
19905return !fseeko;
19906 ;
19907 return 0;
19908}
19909_ACEOF
19910rm -f conftest.$ac_objext
19911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19912 (eval $ac_compile) 2>conftest.er1
19913 ac_status=$?
19914 grep -v '^ *+' conftest.er1 >conftest.err
19915 rm -f conftest.er1
19916 cat conftest.err >&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } &&
07158944 19919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; } &&
19925 { ac_try='test -s conftest.$ac_objext'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; }; then
19931 break
19932else
19933 echo "$as_me: failed program was:" >&5
19934sed 's/^/| /' conftest.$ac_ext >&5
19935
19936fi
19937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19938 cat >conftest.$ac_ext <<_ACEOF
19939/* confdefs.h. */
19940_ACEOF
19941cat confdefs.h >>conftest.$ac_ext
19942cat >>conftest.$ac_ext <<_ACEOF
19943/* end confdefs.h. */
19944#define _LARGEFILE_SOURCE 1
19945#include <stdio.h>
19946int
19947main ()
19948{
19949return !fseeko;
19950 ;
19951 return 0;
19952}
19953_ACEOF
19954rm -f conftest.$ac_objext
19955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19956 (eval $ac_compile) 2>conftest.er1
19957 ac_status=$?
19958 grep -v '^ *+' conftest.er1 >conftest.err
19959 rm -f conftest.er1
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } &&
07158944 19963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; } &&
19969 { ac_try='test -s conftest.$ac_objext'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_cv_sys_largefile_source=1; break
19976else
19977 echo "$as_me: failed program was:" >&5
19978sed 's/^/| /' conftest.$ac_ext >&5
19979
19980fi
19981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19982 break
19983done
19984fi
19985echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19986echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
19987if test "$ac_cv_sys_largefile_source" != no; then
19988
19989cat >>confdefs.h <<_ACEOF
19990#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19991_ACEOF
19992
19993fi
19994rm -f conftest*
19995
19996# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19997# in glibc 2.1.3, but that breaks too many other things.
19998# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19999echo "$as_me:$LINENO: checking for fseeko" >&5
20000echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20001if test "${ac_cv_func_fseeko+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20003else
20004 cat >conftest.$ac_ext <<_ACEOF
20005/* confdefs.h. */
20006_ACEOF
20007cat confdefs.h >>conftest.$ac_ext
20008cat >>conftest.$ac_ext <<_ACEOF
20009/* end confdefs.h. */
20010#include <stdio.h>
20011int
20012main ()
20013{
20014return fseeko && fseeko (stdin, 0, 0);
20015 ;
20016 return 0;
20017}
20018_ACEOF
20019rm -f conftest.$ac_objext conftest$ac_exeext
20020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20021 (eval $ac_link) 2>conftest.er1
20022 ac_status=$?
20023 grep -v '^ *+' conftest.er1 >conftest.err
20024 rm -f conftest.er1
20025 cat conftest.err >&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } &&
07158944 20028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try='test -s conftest$ac_exeext'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040 ac_cv_func_fseeko=yes
20041else
20042 echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
20045ac_cv_func_fseeko=no
20046fi
20047rm -f conftest.err conftest.$ac_objext \
20048 conftest$ac_exeext conftest.$ac_ext
20049fi
20050echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20051echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20052if test $ac_cv_func_fseeko = yes; then
20053
20054cat >>confdefs.h <<\_ACEOF
20055#define HAVE_FSEEKO 1
20056_ACEOF
20057
20058fi
20059
5b674b9d
DE
20060 if test "$ac_cv_sys_largefile_source" != no; then
20061 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20062 fi
20063 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20064fi
20065
20066echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20067echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20068if test "${ac_cv_c_bigendian+set}" = set; then
20069 echo $ECHO_N "(cached) $ECHO_C" >&6
20070else
20071 ac_cv_c_bigendian=unknown
20072# See if sys/param.h defines the BYTE_ORDER macro.
20073cat >conftest.$ac_ext <<_ACEOF
20074/* confdefs.h. */
20075_ACEOF
20076cat confdefs.h >>conftest.$ac_ext
20077cat >>conftest.$ac_ext <<_ACEOF
20078/* end confdefs.h. */
20079#include <sys/types.h>
20080#include <sys/param.h>
20081int
20082main ()
20083{
20084
20085#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20086 bogus endian macros
20087#endif
20088 ;
20089 return 0;
20090}
20091_ACEOF
20092rm -f conftest.$ac_objext
20093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20094 (eval $ac_compile) 2>conftest.er1
a848cd7e 20095 ac_status=$?
ac1cb8d3
VS
20096 grep -v '^ *+' conftest.er1 >conftest.err
20097 rm -f conftest.er1
20098 cat conftest.err >&5
a848cd7e
SC
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
07158944 20101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; } &&
20107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20113 # It does; now see whether it defined to BIG_ENDIAN or not.
20114cat >conftest.$ac_ext <<_ACEOF
20115/* confdefs.h. */
20116_ACEOF
20117cat confdefs.h >>conftest.$ac_ext
20118cat >>conftest.$ac_ext <<_ACEOF
20119/* end confdefs.h. */
20120#include <sys/types.h>
20121#include <sys/param.h>
20122int
20123main ()
20124{
20125
20126#if BYTE_ORDER != BIG_ENDIAN
20127 not big endian
20128#endif
20129 ;
20130 return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext
20134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20135 (eval $ac_compile) 2>conftest.er1
a848cd7e 20136 ac_status=$?
ac1cb8d3
VS
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
a848cd7e
SC
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
07158944 20142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; } &&
20148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 ac_cv_c_bigendian=yes
20155else
20156 echo "$as_me: failed program was:" >&5
20157sed 's/^/| /' conftest.$ac_ext >&5
20158
20159ac_cv_c_bigendian=no
20160fi
ac1cb8d3 20161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20162else
20163 echo "$as_me: failed program was:" >&5
20164sed 's/^/| /' conftest.$ac_ext >&5
20165
20166fi
ac1cb8d3 20167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20168if test $ac_cv_c_bigendian = unknown; then
20169if test "$cross_compiling" = yes; then
20170 ac_cv_c_bigendian=unknown
20171else
20172 cat >conftest.$ac_ext <<_ACEOF
20173/* confdefs.h. */
20174_ACEOF
20175cat confdefs.h >>conftest.$ac_ext
20176cat >>conftest.$ac_ext <<_ACEOF
20177/* end confdefs.h. */
20178main () {
20179 /* Are we little or big endian? From Harbison&Steele. */
20180 union
20181 {
20182 long l;
20183 char c[sizeof (long)];
20184 } u;
20185 u.l = 1;
20186 exit (u.c[sizeof (long) - 1] == 1);
20187}
20188_ACEOF
20189rm -f conftest$ac_exeext
20190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20191 (eval $ac_link) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20197 ac_status=$?
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; }; then
20200 ac_cv_c_bigendian=no
20201else
20202 echo "$as_me: program exited with status $ac_status" >&5
20203echo "$as_me: failed program was:" >&5
20204sed 's/^/| /' conftest.$ac_ext >&5
20205
20206( exit $ac_status )
20207ac_cv_c_bigendian=yes
20208fi
ac1cb8d3 20209rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20210fi
20211fi
20212fi
20213echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20214echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20215if test $ac_cv_c_bigendian = unknown; then
20216 { 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
20217echo "$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;}
20218fi
20219if test $ac_cv_c_bigendian = yes; then
20220 cat >>confdefs.h <<\_ACEOF
20221#define WORDS_BIGENDIAN 1
20222_ACEOF
20223
20224fi
20225
20226
20227ac_ext=cc
20228ac_cpp='$CXXCPP $CPPFLAGS'
20229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20232echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20233echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20234if test -z "$CXXCPP"; then
20235 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20237else
20238 # Double quotes because CXXCPP needs to be expanded
20239 for CXXCPP in "$CXX -E" "/lib/cpp"
20240 do
20241 ac_preproc_ok=false
20242for ac_cxx_preproc_warn_flag in '' yes
20243do
20244 # Use a header file that comes with gcc, so configuring glibc
20245 # with a fresh cross-compiler works.
20246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20247 # <limits.h> exists even on freestanding compilers.
20248 # On the NeXT, cc -E runs the code through the compiler's parser,
20249 # not just through cpp. "Syntax error" is here to catch this case.
20250 cat >conftest.$ac_ext <<_ACEOF
20251/* confdefs.h. */
20252_ACEOF
20253cat confdefs.h >>conftest.$ac_ext
20254cat >>conftest.$ac_ext <<_ACEOF
20255/* end confdefs.h. */
20256#ifdef __STDC__
20257# include <limits.h>
20258#else
20259# include <assert.h>
20260#endif
ac1cb8d3 20261 Syntax error
a848cd7e
SC
20262_ACEOF
20263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20265 ac_status=$?
20266 grep -v '^ *+' conftest.er1 >conftest.err
20267 rm -f conftest.er1
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } >/dev/null; then
20271 if test -s conftest.err; then
20272 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20273 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20274 else
20275 ac_cpp_err=
20276 fi
20277else
20278 ac_cpp_err=yes
20279fi
20280if test -z "$ac_cpp_err"; then
20281 :
20282else
20283 echo "$as_me: failed program was:" >&5
20284sed 's/^/| /' conftest.$ac_ext >&5
20285
20286 # Broken: fails on valid input.
20287continue
20288fi
20289rm -f conftest.err conftest.$ac_ext
20290
20291 # OK, works on sane cases. Now check whether non-existent headers
20292 # can be detected and how.
20293 cat >conftest.$ac_ext <<_ACEOF
20294/* confdefs.h. */
20295_ACEOF
20296cat confdefs.h >>conftest.$ac_ext
20297cat >>conftest.$ac_ext <<_ACEOF
20298/* end confdefs.h. */
20299#include <ac_nonexistent.h>
20300_ACEOF
20301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } >/dev/null; then
20309 if test -s conftest.err; then
20310 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20311 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20312 else
20313 ac_cpp_err=
20314 fi
20315else
20316 ac_cpp_err=yes
20317fi
20318if test -z "$ac_cpp_err"; then
20319 # Broken: success on invalid input.
20320continue
20321else
20322 echo "$as_me: failed program was:" >&5
20323sed 's/^/| /' conftest.$ac_ext >&5
20324
20325 # Passes both tests.
20326ac_preproc_ok=:
20327break
20328fi
20329rm -f conftest.err conftest.$ac_ext
20330
20331done
20332# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20333rm -f conftest.err conftest.$ac_ext
20334if $ac_preproc_ok; then
20335 break
20336fi
20337
20338 done
20339 ac_cv_prog_CXXCPP=$CXXCPP
20340
20341fi
20342 CXXCPP=$ac_cv_prog_CXXCPP
20343else
20344 ac_cv_prog_CXXCPP=$CXXCPP
20345fi
20346echo "$as_me:$LINENO: result: $CXXCPP" >&5
20347echo "${ECHO_T}$CXXCPP" >&6
20348ac_preproc_ok=false
20349for ac_cxx_preproc_warn_flag in '' yes
20350do
20351 # Use a header file that comes with gcc, so configuring glibc
20352 # with a fresh cross-compiler works.
20353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20354 # <limits.h> exists even on freestanding compilers.
20355 # On the NeXT, cc -E runs the code through the compiler's parser,
20356 # not just through cpp. "Syntax error" is here to catch this case.
20357 cat >conftest.$ac_ext <<_ACEOF
20358/* confdefs.h. */
20359_ACEOF
20360cat confdefs.h >>conftest.$ac_ext
20361cat >>conftest.$ac_ext <<_ACEOF
20362/* end confdefs.h. */
20363#ifdef __STDC__
20364# include <limits.h>
20365#else
20366# include <assert.h>
20367#endif
ac1cb8d3 20368 Syntax error
a848cd7e
SC
20369_ACEOF
20370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20372 ac_status=$?
20373 grep -v '^ *+' conftest.er1 >conftest.err
20374 rm -f conftest.er1
20375 cat conftest.err >&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } >/dev/null; then
20378 if test -s conftest.err; then
20379 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20380 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20381 else
20382 ac_cpp_err=
20383 fi
20384else
20385 ac_cpp_err=yes
20386fi
20387if test -z "$ac_cpp_err"; then
20388 :
20389else
20390 echo "$as_me: failed program was:" >&5
20391sed 's/^/| /' conftest.$ac_ext >&5
20392
20393 # Broken: fails on valid input.
20394continue
20395fi
20396rm -f conftest.err conftest.$ac_ext
20397
20398 # OK, works on sane cases. Now check whether non-existent headers
20399 # can be detected and how.
20400 cat >conftest.$ac_ext <<_ACEOF
20401/* confdefs.h. */
20402_ACEOF
20403cat confdefs.h >>conftest.$ac_ext
20404cat >>conftest.$ac_ext <<_ACEOF
20405/* end confdefs.h. */
20406#include <ac_nonexistent.h>
20407_ACEOF
20408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } >/dev/null; then
20416 if test -s conftest.err; then
20417 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20418 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20419 else
20420 ac_cpp_err=
20421 fi
20422else
20423 ac_cpp_err=yes
20424fi
20425if test -z "$ac_cpp_err"; then
20426 # Broken: success on invalid input.
20427continue
20428else
20429 echo "$as_me: failed program was:" >&5
20430sed 's/^/| /' conftest.$ac_ext >&5
20431
20432 # Passes both tests.
20433ac_preproc_ok=:
20434break
20435fi
20436rm -f conftest.err conftest.$ac_ext
20437
20438done
20439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20440rm -f conftest.err conftest.$ac_ext
20441if $ac_preproc_ok; then
20442 :
20443else
20444 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20445See \`config.log' for more details." >&5
20446echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20447See \`config.log' for more details." >&2;}
20448 { (exit 1); exit 1; }; }
20449fi
20450
20451ac_ext=cc
20452ac_cpp='$CXXCPP $CPPFLAGS'
20453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20456
20457
20458
20459
20460
20461 ac_ext=cc
20462ac_cpp='$CXXCPP $CPPFLAGS'
20463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20466
20467
20468
20469for ac_header in iostream
20470do
20471as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20472if eval "test \"\${$as_ac_Header+set}\" = set"; then
20473 echo "$as_me:$LINENO: checking for $ac_header" >&5
20474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20475if eval "test \"\${$as_ac_Header+set}\" = set"; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20477fi
20478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20480else
20481 # Is the header compilable?
20482echo "$as_me:$LINENO: checking $ac_header usability" >&5
20483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20484cat >conftest.$ac_ext <<_ACEOF
20485/* confdefs.h. */
20486_ACEOF
20487cat confdefs.h >>conftest.$ac_ext
20488cat >>conftest.$ac_ext <<_ACEOF
20489/* end confdefs.h. */
20490$ac_includes_default
20491#include <$ac_header>
20492_ACEOF
20493rm -f conftest.$ac_objext
20494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20495 (eval $ac_compile) 2>conftest.er1
a848cd7e 20496 ac_status=$?
ac1cb8d3
VS
20497 grep -v '^ *+' conftest.er1 >conftest.err
20498 rm -f conftest.er1
20499 cat conftest.err >&5
a848cd7e
SC
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } &&
07158944 20502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; } &&
20508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; }; then
20514 ac_header_compiler=yes
20515else
20516 echo "$as_me: failed program was:" >&5
20517sed 's/^/| /' conftest.$ac_ext >&5
20518
20519ac_header_compiler=no
20520fi
ac1cb8d3 20521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20522echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20523echo "${ECHO_T}$ac_header_compiler" >&6
20524
20525# Is the header present?
20526echo "$as_me:$LINENO: checking $ac_header presence" >&5
20527echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20528cat >conftest.$ac_ext <<_ACEOF
20529/* confdefs.h. */
20530_ACEOF
20531cat confdefs.h >>conftest.$ac_ext
20532cat >>conftest.$ac_ext <<_ACEOF
20533/* end confdefs.h. */
20534#include <$ac_header>
20535_ACEOF
20536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } >/dev/null; then
20544 if test -s conftest.err; then
20545 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20546 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20547 else
20548 ac_cpp_err=
20549 fi
20550else
20551 ac_cpp_err=yes
20552fi
20553if test -z "$ac_cpp_err"; then
20554 ac_header_preproc=yes
20555else
20556 echo "$as_me: failed program was:" >&5
20557sed 's/^/| /' conftest.$ac_ext >&5
20558
20559 ac_header_preproc=no
20560fi
20561rm -f conftest.err conftest.$ac_ext
20562echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20563echo "${ECHO_T}$ac_header_preproc" >&6
20564
20565# So? What about this header?
ac1cb8d3
VS
20566case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20567 yes:no: )
a848cd7e
SC
20568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20569echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20571echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20572 ac_header_preproc=yes
a848cd7e 20573 ;;
ac1cb8d3 20574 no:yes:* )
a848cd7e
SC
20575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20576echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20578echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20580echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20582echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20584echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20586echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20587 (
20588 cat <<\_ASBOX
ac1cb8d3
VS
20589## ----------------------------------------- ##
20590## Report this to wx-dev@lists.wxwidgets.org ##
20591## ----------------------------------------- ##
a848cd7e
SC
20592_ASBOX
20593 ) |
20594 sed "s/^/$as_me: WARNING: /" >&2
20595 ;;
20596esac
20597echo "$as_me:$LINENO: checking for $ac_header" >&5
20598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20599if eval "test \"\${$as_ac_Header+set}\" = set"; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20601else
ac1cb8d3 20602 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20603fi
20604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20606
20607fi
20608if test `eval echo '${'$as_ac_Header'}'` = yes; then
20609 cat >>confdefs.h <<_ACEOF
20610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20611_ACEOF
20612
20613fi
20614
20615done
20616
20617
20618 if test "$ac_cv_header_iostream" = "yes" ; then
20619 :
20620 else
20621 cat >>confdefs.h <<\_ACEOF
20622#define wxUSE_IOSTREAMH 1
20623_ACEOF
20624
20625 fi
20626
20627 ac_ext=c
20628ac_cpp='$CPP $CPPFLAGS'
20629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20631ac_compiler_gnu=$ac_cv_c_compiler_gnu
20632
20633
20634
20635
20636 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20637echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20638if test "${wx_cv_cpp_bool+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20640else
20641
20642
20643
20644 ac_ext=cc
20645ac_cpp='$CXXCPP $CPPFLAGS'
20646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20649
20650
20651 cat >conftest.$ac_ext <<_ACEOF
20652/* confdefs.h. */
20653_ACEOF
20654cat confdefs.h >>conftest.$ac_ext
20655cat >>conftest.$ac_ext <<_ACEOF
20656/* end confdefs.h. */
20657
20658
20659int
20660main ()
20661{
20662
20663 bool b = true;
20664
20665 return 0;
20666
20667 ;
20668 return 0;
20669}
20670_ACEOF
20671rm -f conftest.$ac_objext
20672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20673 (eval $ac_compile) 2>conftest.er1
a848cd7e 20674 ac_status=$?
ac1cb8d3
VS
20675 grep -v '^ *+' conftest.er1 >conftest.err
20676 rm -f conftest.er1
20677 cat conftest.err >&5
a848cd7e
SC
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } &&
07158944 20680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682 (eval $ac_try) 2>&5
20683 ac_status=$?
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); }; } &&
20686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; }; then
20692
20693 wx_cv_cpp_bool=yes
20694
20695else
20696 echo "$as_me: failed program was:" >&5
20697sed 's/^/| /' conftest.$ac_ext >&5
20698
20699
20700 wx_cv_cpp_bool=no
20701
20702
20703fi
ac1cb8d3 20704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20705
20706 ac_ext=c
20707ac_cpp='$CPP $CPPFLAGS'
20708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20710ac_compiler_gnu=$ac_cv_c_compiler_gnu
20711
20712
20713fi
20714echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20715echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20716
20717 if test "$wx_cv_cpp_bool" = "yes"; then
20718 cat >>confdefs.h <<\_ACEOF
20719#define HAVE_BOOL 1
20720_ACEOF
20721
20722 fi
20723
20724
20725
20726 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20727echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20728if test "${wx_cv_explicit+set}" = set; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
20730else
20731
20732
20733
20734 ac_ext=cc
20735ac_cpp='$CXXCPP $CPPFLAGS'
20736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20739
20740
20741 cat >conftest.$ac_ext <<_ACEOF
20742/* confdefs.h. */
20743_ACEOF
20744cat confdefs.h >>conftest.$ac_ext
20745cat >>conftest.$ac_ext <<_ACEOF
20746/* end confdefs.h. */
20747
20748 class Foo { public: explicit Foo(int) {} };
20749
20750int
20751main ()
20752{
20753
20754 return 0;
20755
20756 ;
20757 return 0;
20758}
20759_ACEOF
20760rm -f conftest.$ac_objext
20761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20762 (eval $ac_compile) 2>conftest.er1
a848cd7e 20763 ac_status=$?
ac1cb8d3
VS
20764 grep -v '^ *+' conftest.er1 >conftest.err
20765 rm -f conftest.er1
20766 cat conftest.err >&5
a848cd7e
SC
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
07158944 20769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20772 ac_status=$?
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; } &&
20775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777 (eval $ac_try) 2>&5
20778 ac_status=$?
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; }; then
20781
20782 cat >conftest.$ac_ext <<_ACEOF
20783/* confdefs.h. */
20784_ACEOF
20785cat confdefs.h >>conftest.$ac_ext
20786cat >>conftest.$ac_ext <<_ACEOF
20787/* end confdefs.h. */
20788
20789 class Foo { public: explicit Foo(int) {} };
20790 static void TakeFoo(const Foo& foo) { }
20791
20792int
20793main ()
20794{
20795
20796 TakeFoo(17);
20797 return 0;
20798
20799 ;
20800 return 0;
20801}
20802_ACEOF
20803rm -f conftest.$ac_objext
20804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20805 (eval $ac_compile) 2>conftest.er1
a848cd7e 20806 ac_status=$?
ac1cb8d3
VS
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
a848cd7e
SC
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
07158944 20812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 wx_cv_explicit=no
20825else
20826 echo "$as_me: failed program was:" >&5
20827sed 's/^/| /' conftest.$ac_ext >&5
20828
20829wx_cv_explicit=yes
20830
20831fi
ac1cb8d3 20832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20833
20834else
20835 echo "$as_me: failed program was:" >&5
20836sed 's/^/| /' conftest.$ac_ext >&5
20837
20838wx_cv_explicit=no
20839
20840fi
ac1cb8d3 20841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20842
20843 ac_ext=c
20844ac_cpp='$CPP $CPPFLAGS'
20845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20847ac_compiler_gnu=$ac_cv_c_compiler_gnu
20848
20849
20850fi
20851echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20852echo "${ECHO_T}$wx_cv_explicit" >&6
20853
20854 if test "$wx_cv_explicit" = "yes"; then
20855 cat >>confdefs.h <<\_ACEOF
20856#define HAVE_EXPLICIT 1
20857_ACEOF
20858
20859 fi
20860
20861
20862echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20863echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20864if test "${ac_cv_cxx_const_cast+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866else
20867
20868
20869 ac_ext=cc
20870ac_cpp='$CXXCPP $CPPFLAGS'
20871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20874
20875 cat >conftest.$ac_ext <<_ACEOF
20876/* confdefs.h. */
20877_ACEOF
20878cat confdefs.h >>conftest.$ac_ext
20879cat >>conftest.$ac_ext <<_ACEOF
20880/* end confdefs.h. */
20881
20882int
20883main ()
20884{
20885int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20886 ;
20887 return 0;
20888}
20889_ACEOF
20890rm -f conftest.$ac_objext
20891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20892 (eval $ac_compile) 2>conftest.er1
a848cd7e 20893 ac_status=$?
ac1cb8d3
VS
20894 grep -v '^ *+' conftest.er1 >conftest.err
20895 rm -f conftest.er1
20896 cat conftest.err >&5
a848cd7e
SC
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
07158944 20899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; } &&
20905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20908 ac_status=$?
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; }; then
20911 ac_cv_cxx_const_cast=yes
20912else
20913 echo "$as_me: failed program was:" >&5
20914sed 's/^/| /' conftest.$ac_ext >&5
20915
20916ac_cv_cxx_const_cast=no
20917fi
ac1cb8d3 20918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20919 ac_ext=c
20920ac_cpp='$CPP $CPPFLAGS'
20921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924
20925
20926fi
20927echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20928echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20929if test "$ac_cv_cxx_const_cast" = yes; then
20930
20931cat >>confdefs.h <<\_ACEOF
20932#define HAVE_CONST_CAST
20933_ACEOF
20934
20935fi
20936
7714864e
RL
20937echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20938echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20939if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20941else
20942
20943
20944 ac_ext=cc
20945ac_cpp='$CXXCPP $CPPFLAGS'
20946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20949
20950 cat >conftest.$ac_ext <<_ACEOF
20951/* confdefs.h. */
20952_ACEOF
20953cat confdefs.h >>conftest.$ac_ext
20954cat >>conftest.$ac_ext <<_ACEOF
20955/* end confdefs.h. */
20956#include <typeinfo>
20957class Base { public : Base () {} virtual void f () = 0;};
20958class Derived : public Base { public : Derived () {} virtual void f () {} };
20959class Unrelated { public : Unrelated () {} };
20960int g (Unrelated&) { return 0; }
20961int
20962main ()
20963{
20964
20965Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
20966 ;
20967 return 0;
20968}
20969_ACEOF
20970rm -f conftest.$ac_objext
20971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20972 (eval $ac_compile) 2>conftest.er1
20973 ac_status=$?
20974 grep -v '^ *+' conftest.er1 >conftest.err
20975 rm -f conftest.er1
20976 cat conftest.err >&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } &&
07158944 20979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } &&
20985 { ac_try='test -s conftest.$ac_objext'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 ac_cv_cxx_reinterpret_cast=yes
20992else
20993 echo "$as_me: failed program was:" >&5
20994sed 's/^/| /' conftest.$ac_ext >&5
20995
20996ac_cv_cxx_reinterpret_cast=no
20997fi
20998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20999 ac_ext=c
21000ac_cpp='$CPP $CPPFLAGS'
21001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21003ac_compiler_gnu=$ac_cv_c_compiler_gnu
21004
21005
21006fi
21007echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21008echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21009if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21010
21011cat >>confdefs.h <<\_ACEOF
21012#define HAVE_REINTERPRET_CAST
21013_ACEOF
21014
21015fi
21016
a848cd7e
SC
21017echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21018echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21019if test "${ac_cv_cxx_static_cast+set}" = set; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21021else
21022
21023
21024 ac_ext=cc
21025ac_cpp='$CXXCPP $CPPFLAGS'
21026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21029
21030 cat >conftest.$ac_ext <<_ACEOF
21031/* confdefs.h. */
21032_ACEOF
21033cat confdefs.h >>conftest.$ac_ext
21034cat >>conftest.$ac_ext <<_ACEOF
21035/* end confdefs.h. */
21036#include <typeinfo>
21037class Base { public : Base () {} virtual void f () = 0; };
21038class Derived : public Base { public : Derived () {} virtual void f () {} };
21039int g (Derived&) { return 0; }
21040int
21041main ()
21042{
21043
21044Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21045 ;
21046 return 0;
21047}
21048_ACEOF
21049rm -f conftest.$ac_objext
21050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21051 (eval $ac_compile) 2>conftest.er1
a848cd7e 21052 ac_status=$?
ac1cb8d3
VS
21053 grep -v '^ *+' conftest.er1 >conftest.err
21054 rm -f conftest.er1
21055 cat conftest.err >&5
a848cd7e
SC
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); } &&
07158944 21058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; } &&
21064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
21070 ac_cv_cxx_static_cast=yes
21071else
21072 echo "$as_me: failed program was:" >&5
21073sed 's/^/| /' conftest.$ac_ext >&5
21074
21075ac_cv_cxx_static_cast=no
21076fi
ac1cb8d3 21077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21078 ac_ext=c
21079ac_cpp='$CPP $CPPFLAGS'
21080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21082ac_compiler_gnu=$ac_cv_c_compiler_gnu
21083
21084
21085fi
21086echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21087echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21088if test "$ac_cv_cxx_static_cast" = yes; then
21089
21090cat >>confdefs.h <<\_ACEOF
21091#define HAVE_STATIC_CAST
21092_ACEOF
21093
21094fi
21095
21096
21097if test "$wxUSE_STL" = "yes"; then
21098 ac_ext=cc
21099ac_cpp='$CXXCPP $CPPFLAGS'
21100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21103
21104
21105 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21106echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
21107 cat >conftest.$ac_ext <<_ACEOF
21108/* confdefs.h. */
21109_ACEOF
21110cat confdefs.h >>conftest.$ac_ext
21111cat >>conftest.$ac_ext <<_ACEOF
21112/* end confdefs.h. */
21113#include <string>
21114 #include <functional>
21115 #include <algorithm>
21116 #include <vector>
21117 #include <list>
21118int
21119main ()
21120{
21121std::vector<int> moo;
21122 std::list<int> foo;
21123 std::vector<int>::iterator it =
21124 std::find_if(moo.begin(), moo.end(),
21125 std::bind2nd(std::less<int>(), 3));
21126 ;
21127 return 0;
21128}
21129_ACEOF
21130rm -f conftest.$ac_objext
21131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21132 (eval $ac_compile) 2>conftest.er1
a848cd7e 21133 ac_status=$?
ac1cb8d3
VS
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
a848cd7e
SC
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } &&
07158944 21139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21141 (eval $ac_try) 2>&5
21142 ac_status=$?
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); }; } &&
21145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21148 ac_status=$?
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; }; then
21151 echo "$as_me:$LINENO: result: yes" >&5
21152echo "${ECHO_T}yes" >&6
21153else
21154 echo "$as_me: failed program was:" >&5
21155sed 's/^/| /' conftest.$ac_ext >&5
21156
21157echo "$as_me:$LINENO: result: no" >&5
21158echo "${ECHO_T}no" >&6
21159 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21160echo "$as_me: error: Basic STL functionality missing" >&2;}
21161 { (exit 1); exit 1; }; }
21162fi
ac1cb8d3 21163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21164
21165 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21166echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
21167 cat >conftest.$ac_ext <<_ACEOF
21168/* confdefs.h. */
21169_ACEOF
21170cat confdefs.h >>conftest.$ac_ext
21171cat >>conftest.$ac_ext <<_ACEOF
21172/* end confdefs.h. */
21173#include <string>
21174int
21175main ()
21176{
21177std::wstring foo;
21178 ;
21179 return 0;
21180}
21181_ACEOF
21182rm -f conftest.$ac_objext
21183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21184 (eval $ac_compile) 2>conftest.er1
a848cd7e 21185 ac_status=$?
ac1cb8d3
VS
21186 grep -v '^ *+' conftest.er1 >conftest.err
21187 rm -f conftest.er1
21188 cat conftest.err >&5
a848cd7e
SC
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } &&
07158944 21191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 echo "$as_me:$LINENO: result: yes" >&5
21204echo "${ECHO_T}yes" >&6
21205 cat >>confdefs.h <<\_ACEOF
21206#define HAVE_STD_WSTRING 1
21207_ACEOF
21208
21209else
21210 echo "$as_me: failed program was:" >&5
21211sed 's/^/| /' conftest.$ac_ext >&5
21212
21213echo "$as_me:$LINENO: result: no" >&5
21214echo "${ECHO_T}no" >&6
21215fi
ac1cb8d3 21216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21217
21218 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21219echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21220 cat >conftest.$ac_ext <<_ACEOF
21221/* confdefs.h. */
21222_ACEOF
21223cat confdefs.h >>conftest.$ac_ext
21224cat >>conftest.$ac_ext <<_ACEOF
21225/* end confdefs.h. */
21226#include <string>
21227int
21228main ()
21229{
21230std::string foo, bar;
21231 foo.compare(bar);
21232 foo.compare(1, 1, bar);
21233 foo.compare(1, 1, bar, 1, 1);
21234 foo.compare("");
21235 foo.compare(1, 1, "");
21236 foo.compare(1, 1, "", 2);
21237 ;
21238 return 0;
21239}
21240_ACEOF
21241rm -f conftest.$ac_objext
21242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21243 (eval $ac_compile) 2>conftest.er1
a848cd7e 21244 ac_status=$?
ac1cb8d3
VS
21245 grep -v '^ *+' conftest.er1 >conftest.err
21246 rm -f conftest.er1
21247 cat conftest.err >&5
a848cd7e
SC
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } &&
07158944 21250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252 (eval $ac_try) 2>&5
21253 ac_status=$?
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); }; } &&
21256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258 (eval $ac_try) 2>&5
21259 ac_status=$?
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); }; }; then
21262 echo "$as_me:$LINENO: result: yes" >&5
21263echo "${ECHO_T}yes" >&6
21264 cat >>confdefs.h <<\_ACEOF
21265#define HAVE_STD_STRING_COMPARE 1
21266_ACEOF
21267
21268else
21269 echo "$as_me: failed program was:" >&5
21270sed 's/^/| /' conftest.$ac_ext >&5
21271
21272echo "$as_me:$LINENO: result: no" >&5
21273echo "${ECHO_T}no" >&6
21274fi
ac1cb8d3 21275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21276
21277 if test "${ac_cv_header_hash_map+set}" = set; then
21278 echo "$as_me:$LINENO: checking for hash_map" >&5
21279echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21280if test "${ac_cv_header_hash_map+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282fi
21283echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21284echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21285else
21286 # Is the header compilable?
21287echo "$as_me:$LINENO: checking hash_map usability" >&5
21288echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21289cat >conftest.$ac_ext <<_ACEOF
21290/* confdefs.h. */
21291_ACEOF
21292cat confdefs.h >>conftest.$ac_ext
21293cat >>conftest.$ac_ext <<_ACEOF
21294/* end confdefs.h. */
21295$ac_includes_default
21296#include <hash_map>
21297_ACEOF
21298rm -f conftest.$ac_objext
21299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21300 (eval $ac_compile) 2>conftest.er1
bdcade0a 21301 ac_status=$?
ac1cb8d3
VS
21302 grep -v '^ *+' conftest.er1 >conftest.err
21303 rm -f conftest.er1
21304 cat conftest.err >&5
bdcade0a
MB
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } &&
07158944 21307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ac_header_compiler=yes
21320else
21321 echo "$as_me: failed program was:" >&5
21322sed 's/^/| /' conftest.$ac_ext >&5
21323
21324ac_header_compiler=no
21325fi
ac1cb8d3 21326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21327echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21328echo "${ECHO_T}$ac_header_compiler" >&6
21329
21330# Is the header present?
21331echo "$as_me:$LINENO: checking hash_map presence" >&5
21332echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21333cat >conftest.$ac_ext <<_ACEOF
21334/* confdefs.h. */
21335_ACEOF
21336cat confdefs.h >>conftest.$ac_ext
21337cat >>conftest.$ac_ext <<_ACEOF
21338/* end confdefs.h. */
21339#include <hash_map>
21340_ACEOF
21341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21343 ac_status=$?
21344 grep -v '^ *+' conftest.er1 >conftest.err
21345 rm -f conftest.er1
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } >/dev/null; then
21349 if test -s conftest.err; then
21350 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21351 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21352 else
21353 ac_cpp_err=
21354 fi
21355else
21356 ac_cpp_err=yes
21357fi
21358if test -z "$ac_cpp_err"; then
21359 ac_header_preproc=yes
21360else
21361 echo "$as_me: failed program was:" >&5
21362sed 's/^/| /' conftest.$ac_ext >&5
21363
21364 ac_header_preproc=no
21365fi
21366rm -f conftest.err conftest.$ac_ext
21367echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21368echo "${ECHO_T}$ac_header_preproc" >&6
21369
21370# So? What about this header?
ac1cb8d3
VS
21371case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21372 yes:no: )
bdcade0a
MB
21373 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21374echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21375 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21376echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21377 ac_header_preproc=yes
bdcade0a 21378 ;;
ac1cb8d3 21379 no:yes:* )
bdcade0a
MB
21380 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21381echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21382 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21383echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21385echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21387echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21388 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21389echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21390 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21391echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21392 (
21393 cat <<\_ASBOX
ac1cb8d3
VS
21394## ----------------------------------------- ##
21395## Report this to wx-dev@lists.wxwidgets.org ##
21396## ----------------------------------------- ##
bdcade0a
MB
21397_ASBOX
21398 ) |
21399 sed "s/^/$as_me: WARNING: /" >&2
21400 ;;
21401esac
21402echo "$as_me:$LINENO: checking for hash_map" >&5
21403echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21404if test "${ac_cv_header_hash_map+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21406else
21407 ac_cv_header_hash_map=$ac_header_preproc
21408fi
21409echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21410echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21411
21412fi
21413if test $ac_cv_header_hash_map = yes; then
21414 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21415echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21416 cat >conftest.$ac_ext <<_ACEOF
21417/* confdefs.h. */
21418_ACEOF
21419cat confdefs.h >>conftest.$ac_ext
21420cat >>conftest.$ac_ext <<_ACEOF
21421/* end confdefs.h. */
21422#include <hash_map>
21423 #include <hash_set>
21424int
21425main ()
21426{
21427std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21428 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21429 ;
21430 return 0;
21431}
21432_ACEOF
21433rm -f conftest.$ac_objext
21434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21435 (eval $ac_compile) 2>conftest.er1
bdcade0a 21436 ac_status=$?
ac1cb8d3
VS
21437 grep -v '^ *+' conftest.er1 >conftest.err
21438 rm -f conftest.er1
21439 cat conftest.err >&5
bdcade0a
MB
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } &&
07158944 21442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; } &&
21448 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 echo "$as_me:$LINENO: result: yes" >&5
21455echo "${ECHO_T}yes" >&6
21456 cat >>confdefs.h <<\_ACEOF
21457#define HAVE_HASH_MAP 1
21458_ACEOF
21459
21460 cat >>confdefs.h <<\_ACEOF
21461#define HAVE_STD_HASH_MAP 1
21462_ACEOF
21463
21464else
21465 echo "$as_me: failed program was:" >&5
21466sed 's/^/| /' conftest.$ac_ext >&5
21467
21468echo "$as_me:$LINENO: result: no" >&5
21469echo "${ECHO_T}no" >&6
21470fi
ac1cb8d3 21471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21472
21473fi
21474
21475
21476
21477 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21478 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21479echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21480if test "${ac_cv_header_ext_hash_map+set}" = set; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21482fi
21483echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21484echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21485else
21486 # Is the header compilable?
21487echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21488echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21489cat >conftest.$ac_ext <<_ACEOF
21490/* confdefs.h. */
21491_ACEOF
21492cat confdefs.h >>conftest.$ac_ext
21493cat >>conftest.$ac_ext <<_ACEOF
21494/* end confdefs.h. */
21495$ac_includes_default
21496#include <ext/hash_map>
21497_ACEOF
21498rm -f conftest.$ac_objext
21499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21500 (eval $ac_compile) 2>conftest.er1
bdcade0a 21501 ac_status=$?
ac1cb8d3
VS
21502 grep -v '^ *+' conftest.er1 >conftest.err
21503 rm -f conftest.er1
21504 cat conftest.err >&5
bdcade0a
MB
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } &&
07158944 21507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509 (eval $ac_try) 2>&5
21510 ac_status=$?
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; } &&
21513 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515 (eval $ac_try) 2>&5
21516 ac_status=$?
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; }; then
21519 ac_header_compiler=yes
21520else
21521 echo "$as_me: failed program was:" >&5
21522sed 's/^/| /' conftest.$ac_ext >&5
21523
21524ac_header_compiler=no
21525fi
ac1cb8d3 21526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21528echo "${ECHO_T}$ac_header_compiler" >&6
21529
21530# Is the header present?
21531echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21532echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21533cat >conftest.$ac_ext <<_ACEOF
21534/* confdefs.h. */
21535_ACEOF
21536cat confdefs.h >>conftest.$ac_ext
21537cat >>conftest.$ac_ext <<_ACEOF
21538/* end confdefs.h. */
21539#include <ext/hash_map>
21540_ACEOF
21541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } >/dev/null; then
21549 if test -s conftest.err; then
21550 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21551 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21552 else
21553 ac_cpp_err=
21554 fi
21555else
21556 ac_cpp_err=yes
21557fi
21558if test -z "$ac_cpp_err"; then
21559 ac_header_preproc=yes
21560else
21561 echo "$as_me: failed program was:" >&5
21562sed 's/^/| /' conftest.$ac_ext >&5
21563
21564 ac_header_preproc=no
21565fi
21566rm -f conftest.err conftest.$ac_ext
21567echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21568echo "${ECHO_T}$ac_header_preproc" >&6
21569
21570# So? What about this header?
ac1cb8d3
VS
21571case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21572 yes:no: )
bdcade0a
MB
21573 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21574echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21575 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21576echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21577 ac_header_preproc=yes
bdcade0a 21578 ;;
ac1cb8d3 21579 no:yes:* )
bdcade0a
MB
21580 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21581echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21582 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21583echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21584 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21585echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21586 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21587echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21588 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21589echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21590 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21591echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21592 (
21593 cat <<\_ASBOX
ac1cb8d3
VS
21594## ----------------------------------------- ##
21595## Report this to wx-dev@lists.wxwidgets.org ##
21596## ----------------------------------------- ##
bdcade0a
MB
21597_ASBOX
21598 ) |
21599 sed "s/^/$as_me: WARNING: /" >&2
21600 ;;
21601esac
21602echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21603echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21604if test "${ac_cv_header_ext_hash_map+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21606else
21607 ac_cv_header_ext_hash_map=$ac_header_preproc
21608fi
21609echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21610echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21611
21612fi
21613if test $ac_cv_header_ext_hash_map = yes; then
21614 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21615echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21616 cat >conftest.$ac_ext <<_ACEOF
21617/* confdefs.h. */
21618_ACEOF
21619cat confdefs.h >>conftest.$ac_ext
21620cat >>conftest.$ac_ext <<_ACEOF
21621/* end confdefs.h. */
21622#include <ext/hash_map>
21623 #include <ext/hash_set>
21624int
21625main ()
21626{
21627__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21628 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21629 ;
21630 return 0;
21631}
21632_ACEOF
21633rm -f conftest.$ac_objext
21634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21635 (eval $ac_compile) 2>conftest.er1
bdcade0a 21636 ac_status=$?
ac1cb8d3
VS
21637 grep -v '^ *+' conftest.er1 >conftest.err
21638 rm -f conftest.er1
21639 cat conftest.err >&5
bdcade0a
MB
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } &&
07158944 21642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; } &&
21648 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21651 ac_status=$?
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; }; then
21654 echo "$as_me:$LINENO: result: yes" >&5
21655echo "${ECHO_T}yes" >&6
21656 cat >>confdefs.h <<\_ACEOF
21657#define HAVE_EXT_HASH_MAP 1
21658_ACEOF
21659
21660 cat >>confdefs.h <<\_ACEOF
21661#define HAVE_GNU_CXX_HASH_MAP 1
21662_ACEOF
21663
21664else
21665 echo "$as_me: failed program was:" >&5
21666sed 's/^/| /' conftest.$ac_ext >&5
21667
21668echo "$as_me:$LINENO: result: no" >&5
21669echo "${ECHO_T}no" >&6
21670fi
ac1cb8d3 21671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21672
21673fi
21674
21675
a848cd7e
SC
21676
21677 ac_ext=c
21678ac_cpp='$CPP $CPPFLAGS'
21679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21681ac_compiler_gnu=$ac_cv_c_compiler_gnu
21682
21683fi
21684
21685
21686SEARCH_INCLUDE="\
21687 /usr/local/include \
21688 \
21689 /usr/Motif-2.1/include \
21690 /usr/Motif-1.2/include \
21691 /usr/include/Motif1.2 \
21692 /opt/xpm/include/X11 \
21693 /opt/GBxpm/include/ \
21694 /opt/GBxpm/X11/include/ \
21695 \
21696 /usr/dt/include \
21697 /usr/openwin/include \
21698 \
21699 /usr/include/Xm \
21700 \
21701 /usr/X11R6/include \
21702 /usr/X11R6.4/include \
21703 /usr/X11R5/include \
21704 /usr/X11R4/include \
21705 \
21706 /usr/include/X11R6 \
21707 /usr/include/X11R5 \
21708 /usr/include/X11R4 \
21709 \
21710 /usr/local/X11R6/include \
21711 /usr/local/X11R5/include \
21712 /usr/local/X11R4/include \
21713 \
21714 /usr/local/include/X11R6 \
21715 /usr/local/include/X11R5 \
21716 /usr/local/include/X11R4 \
21717 \
21718 /usr/X11/include \
21719 /usr/include/X11 \
21720 /usr/local/X11/include \
21721 /usr/local/include/X11 \
21722 \
21723 /usr/X386/include \
21724 /usr/x386/include \
21725 /usr/XFree86/include/X11 \
21726 \
21727 X:/XFree86/include \
21728 X:/XFree86/include/X11 \
21729 \
21730 /usr/include/gtk \
21731 /usr/local/include/gtk \
21732 /usr/include/glib \
21733 /usr/local/include/glib \
21734 \
21735 /usr/include/qt \
21736 /usr/local/include/qt \
21737 \
21738 /usr/local/arm/3.3.2/include \
21739 \
21740 /usr/include/windows \
21741 /usr/include/wine \
21742 /usr/local/include/wine \
21743 \
21744 /usr/unsupported/include \
21745 /usr/athena/include \
21746 /usr/local/x11r5/include \
21747 /usr/lpp/Xamples/include \
21748 \
21749 /usr/openwin/share/include"
21750
07158944 21751SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
21752
21753
21754cat >confcache <<\_ACEOF
21755# This file is a shell script that caches the results of configure
21756# tests run on this system so they can be shared between configure
21757# scripts and configure runs, see configure's option --config-cache.
21758# It is not useful on other systems. If it contains results you don't
21759# want to keep, you may remove or edit it.
21760#
21761# config.status only pays attention to the cache file if you give it
21762# the --recheck option to rerun configure.
21763#
21764# `ac_cv_env_foo' variables (set or unset) will be overridden when
21765# loading this file, other *unset* `ac_cv_foo' will be assigned the
21766# following values.
21767
21768_ACEOF
21769
21770# The following way of writing the cache mishandles newlines in values,
21771# but we know of no workaround that is simple, portable, and efficient.
21772# So, don't put newlines in cache variables' values.
21773# Ultrix sh set writes to stderr and can't be redirected directly,
21774# and sets the high bit in the cache file unless we assign to the vars.
21775{
21776 (set) 2>&1 |
21777 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21778 *ac_space=\ *)
21779 # `set' does not quote correctly, so add quotes (double-quote
21780 # substitution turns \\\\ into \\, and sed turns \\ into \).
21781 sed -n \
ac1cb8d3
VS
21782 "s/'/'\\\\''/g;
21783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21784 ;;
21785 *)
21786 # `set' quotes correctly as required by POSIX, so do not add quotes.
21787 sed -n \
ac1cb8d3 21788 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21789 ;;
21790 esac;
21791} |
21792 sed '
21793 t clear
21794 : clear
21795 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21796 t end
21797 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21798 : end' >>confcache
21799if diff $cache_file confcache >/dev/null 2>&1; then :; else
21800 if test -w $cache_file; then
21801 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21802 cat confcache >$cache_file
21803 else
21804 echo "not updating unwritable cache $cache_file"
21805 fi
21806fi
21807rm -f confcache
21808
21809if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21810 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21811echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21812if test "${wx_cv_lib_glibc21+set}" = set; then
21813 echo $ECHO_N "(cached) $ECHO_C" >&6
21814else
21815
21816 cat >conftest.$ac_ext <<_ACEOF
21817/* confdefs.h. */
21818_ACEOF
21819cat confdefs.h >>conftest.$ac_ext
21820cat >>conftest.$ac_ext <<_ACEOF
21821/* end confdefs.h. */
21822#include <features.h>
21823int
21824main ()
21825{
21826
21827 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21828 #error not glibc2.1
21829 #endif
21830
21831 ;
21832 return 0;
21833}
21834_ACEOF
21835rm -f conftest.$ac_objext
21836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21837 (eval $ac_compile) 2>conftest.er1
a848cd7e 21838 ac_status=$?
ac1cb8d3
VS
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
a848cd7e
SC
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } &&
07158944 21844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; } &&
21850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21852 (eval $ac_try) 2>&5
21853 ac_status=$?
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); }; }; then
21856
21857 wx_cv_lib_glibc21=yes
21858
21859else
21860 echo "$as_me: failed program was:" >&5
21861sed 's/^/| /' conftest.$ac_ext >&5
21862
21863
21864 wx_cv_lib_glibc21=no
21865
21866
21867fi
ac1cb8d3 21868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21869
21870fi
21871echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
21872echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21873 if test "$wx_cv_lib_glibc21" = "yes"; then
21874 cat >>confdefs.h <<\_ACEOF
21875#define wxHAVE_GLIBC2 1
21876_ACEOF
21877
21878 fi
21879fi
21880
21881if test "x$wx_cv_lib_glibc21" = "xyes"; then
21882 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
21883 cat >>confdefs.h <<\_ACEOF
21884#define _GNU_SOURCE 1
21885_ACEOF
21886
21887 fi
21888fi
21889
21890
21891
21892if test "$wxUSE_REGEX" != "no"; then
21893 cat >>confdefs.h <<\_ACEOF
21894#define wxUSE_REGEX 1
21895_ACEOF
21896
21897
21898 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
21899 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
21900echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
21901 wxUSE_REGEX=builtin
21902 fi
21903
21904 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
21905 if test "${ac_cv_header_regex_h+set}" = set; then
21906 echo "$as_me:$LINENO: checking for regex.h" >&5
21907echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21908if test "${ac_cv_header_regex_h+set}" = set; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21910fi
21911echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21912echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21913else
21914 # Is the header compilable?
21915echo "$as_me:$LINENO: checking regex.h usability" >&5
21916echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21917cat >conftest.$ac_ext <<_ACEOF
21918/* confdefs.h. */
21919_ACEOF
21920cat confdefs.h >>conftest.$ac_ext
21921cat >>conftest.$ac_ext <<_ACEOF
21922/* end confdefs.h. */
21923$ac_includes_default
21924#include <regex.h>
21925_ACEOF
21926rm -f conftest.$ac_objext
21927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21928 (eval $ac_compile) 2>conftest.er1
a848cd7e 21929 ac_status=$?
ac1cb8d3
VS
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
a848cd7e
SC
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } &&
07158944 21935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937 (eval $ac_try) 2>&5
21938 ac_status=$?
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); }; } &&
21941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; }; then
21947 ac_header_compiler=yes
21948else
21949 echo "$as_me: failed program was:" >&5
21950sed 's/^/| /' conftest.$ac_ext >&5
21951
21952ac_header_compiler=no
21953fi
ac1cb8d3 21954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21955echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21956echo "${ECHO_T}$ac_header_compiler" >&6
21957
21958# Is the header present?
21959echo "$as_me:$LINENO: checking regex.h presence" >&5
21960echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21961cat >conftest.$ac_ext <<_ACEOF
21962/* confdefs.h. */
21963_ACEOF
21964cat confdefs.h >>conftest.$ac_ext
21965cat >>conftest.$ac_ext <<_ACEOF
21966/* end confdefs.h. */
21967#include <regex.h>
21968_ACEOF
21969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21971 ac_status=$?
21972 grep -v '^ *+' conftest.er1 >conftest.err
21973 rm -f conftest.er1
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } >/dev/null; then
21977 if test -s conftest.err; then
21978 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21980 else
21981 ac_cpp_err=
21982 fi
21983else
21984 ac_cpp_err=yes
21985fi
21986if test -z "$ac_cpp_err"; then
21987 ac_header_preproc=yes
21988else
21989 echo "$as_me: failed program was:" >&5
21990sed 's/^/| /' conftest.$ac_ext >&5
21991
21992 ac_header_preproc=no
21993fi
21994rm -f conftest.err conftest.$ac_ext
21995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21996echo "${ECHO_T}$ac_header_preproc" >&6
21997
21998# So? What about this header?
ac1cb8d3
VS
21999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22000 yes:no: )
a848cd7e
SC
22001 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22002echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22003 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22004echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22005 ac_header_preproc=yes
a848cd7e 22006 ;;
ac1cb8d3 22007 no:yes:* )
a848cd7e
SC
22008 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22009echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22010 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22011echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22012 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22013echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22014 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22015echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22016 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22017echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22018 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22019echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22020 (
22021 cat <<\_ASBOX
ac1cb8d3
VS
22022## ----------------------------------------- ##
22023## Report this to wx-dev@lists.wxwidgets.org ##
22024## ----------------------------------------- ##
a848cd7e
SC
22025_ASBOX
22026 ) |
22027 sed "s/^/$as_me: WARNING: /" >&2
22028 ;;
22029esac
22030echo "$as_me:$LINENO: checking for regex.h" >&5
22031echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22032if test "${ac_cv_header_regex_h+set}" = set; then
22033 echo $ECHO_N "(cached) $ECHO_C" >&6
22034else
22035 ac_cv_header_regex_h=$ac_header_preproc
22036fi
22037echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22038echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22039
22040fi
22041if test $ac_cv_header_regex_h = yes; then
22042
22043for ac_func in regcomp
22044do
22045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22046echo "$as_me:$LINENO: checking for $ac_func" >&5
22047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22048if eval "test \"\${$as_ac_var+set}\" = set"; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050else
22051 cat >conftest.$ac_ext <<_ACEOF
22052/* confdefs.h. */
22053_ACEOF
22054cat confdefs.h >>conftest.$ac_ext
22055cat >>conftest.$ac_ext <<_ACEOF
22056/* end confdefs.h. */
ac1cb8d3
VS
22057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22059#define $ac_func innocuous_$ac_func
22060
a848cd7e
SC
22061/* System header to define __stub macros and hopefully few prototypes,
22062 which can conflict with char $ac_func (); below.
22063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22064 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22065
a848cd7e
SC
22066#ifdef __STDC__
22067# include <limits.h>
22068#else
22069# include <assert.h>
22070#endif
ac1cb8d3
VS
22071
22072#undef $ac_func
22073
a848cd7e
SC
22074/* Override any gcc2 internal prototype to avoid an error. */
22075#ifdef __cplusplus
22076extern "C"
22077{
22078#endif
22079/* We use char because int might match the return type of a gcc2
22080 builtin and then its argument prototype would still apply. */
22081char $ac_func ();
22082/* The GNU C library defines this for functions which it implements
22083 to always fail with ENOSYS. Some functions are actually named
22084 something starting with __ and the normal name is an alias. */
22085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22086choke me
22087#else
22088char (*f) () = $ac_func;
22089#endif
22090#ifdef __cplusplus
22091}
22092#endif
22093
22094int
22095main ()
22096{
22097return f != $ac_func;
22098 ;
22099 return 0;
22100}
22101_ACEOF
22102rm -f conftest.$ac_objext conftest$ac_exeext
22103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22104 (eval $ac_link) 2>conftest.er1
a848cd7e 22105 ac_status=$?
ac1cb8d3
VS
22106 grep -v '^ *+' conftest.er1 >conftest.err
22107 rm -f conftest.er1
22108 cat conftest.err >&5
a848cd7e
SC
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } &&
07158944 22111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113 (eval $ac_try) 2>&5
22114 ac_status=$?
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; } &&
22117 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }; then
22123 eval "$as_ac_var=yes"
22124else
22125 echo "$as_me: failed program was:" >&5
22126sed 's/^/| /' conftest.$ac_ext >&5
22127
22128eval "$as_ac_var=no"
22129fi
ac1cb8d3
VS
22130rm -f conftest.err conftest.$ac_objext \
22131 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22132fi
22133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22134echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22135if test `eval echo '${'$as_ac_var'}'` = yes; then
22136 cat >>confdefs.h <<_ACEOF
22137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22138_ACEOF
22139
22140fi
22141done
22142
22143fi
22144
22145
22146
22147 if test "x$ac_cv_func_regcomp" != "xyes"; then
22148 if test "$wxUSE_REGEX" = "sys" ; then
22149 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22150echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22151 { (exit 1); exit 1; }; }
22152 else
22153 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22154echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22155 wxUSE_REGEX=builtin
22156 fi
22157 else
22158 wxUSE_REGEX=sys
22159 cat >>confdefs.h <<\_ACEOF
22160#define WX_NO_REGEX_ADVANCED 1
22161_ACEOF
22162
22163 fi
22164 fi
22165fi
22166
22167
22168ZLIB_LINK=
22169if test "$wxUSE_ZLIB" != "no" ; then
22170 cat >>confdefs.h <<\_ACEOF
22171#define wxUSE_ZLIB 1
22172_ACEOF
22173
22174
22175 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22176 if test "$USE_DARWIN" = 1; then
22177 system_zlib_h_ok="yes"
22178 else
22179 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22180echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22181if test "${ac_cv_header_zlib_h+set}" = set; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22183else
22184 if test "$cross_compiling" = yes; then
22185 unset ac_cv_header_zlib_h
22186
22187else
22188 cat >conftest.$ac_ext <<_ACEOF
22189/* confdefs.h. */
22190_ACEOF
22191cat confdefs.h >>conftest.$ac_ext
22192cat >>conftest.$ac_ext <<_ACEOF
22193/* end confdefs.h. */
22194
22195 #include <zlib.h>
22196 #include <stdio.h>
22197
22198 int main()
22199 {
22200 FILE *f=fopen("conftestval", "w");
22201 if (!f) exit(1);
22202 fprintf(f, "%s",
22203 ZLIB_VERSION[0] == '1' &&
22204 (ZLIB_VERSION[2] > '1' ||
22205 (ZLIB_VERSION[2] == '1' &&
22206 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22207 exit(0);
22208 }
22209
22210_ACEOF
22211rm -f conftest$ac_exeext
22212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22213 (eval $ac_link) 2>&5
22214 ac_status=$?
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22219 ac_status=$?
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 ac_cv_header_zlib_h=`cat conftestval`
22223else
22224 echo "$as_me: program exited with status $ac_status" >&5
22225echo "$as_me: failed program was:" >&5
22226sed 's/^/| /' conftest.$ac_ext >&5
22227
22228( exit $ac_status )
22229ac_cv_header_zlib_h=no
22230fi
ac1cb8d3 22231rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22232fi
22233
22234fi
22235echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22236echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22237 if test "${ac_cv_header_zlib_h+set}" = set; then
22238 echo "$as_me:$LINENO: checking for zlib.h" >&5
22239echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22240if test "${ac_cv_header_zlib_h+set}" = set; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22242fi
22243echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22244echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22245else
22246 # Is the header compilable?
22247echo "$as_me:$LINENO: checking zlib.h usability" >&5
22248echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22249cat >conftest.$ac_ext <<_ACEOF
22250/* confdefs.h. */
22251_ACEOF
22252cat confdefs.h >>conftest.$ac_ext
22253cat >>conftest.$ac_ext <<_ACEOF
22254/* end confdefs.h. */
22255$ac_includes_default
22256#include <zlib.h>
22257_ACEOF
22258rm -f conftest.$ac_objext
22259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22260 (eval $ac_compile) 2>conftest.er1
a848cd7e 22261 ac_status=$?
ac1cb8d3
VS
22262 grep -v '^ *+' conftest.er1 >conftest.err
22263 rm -f conftest.er1
22264 cat conftest.err >&5
a848cd7e
SC
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); } &&
07158944 22267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269 (eval $ac_try) 2>&5
22270 ac_status=$?
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); }; } &&
22273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22276 ac_status=$?
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; }; then
22279 ac_header_compiler=yes
22280else
22281 echo "$as_me: failed program was:" >&5
22282sed 's/^/| /' conftest.$ac_ext >&5
22283
22284ac_header_compiler=no
22285fi
ac1cb8d3 22286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22288echo "${ECHO_T}$ac_header_compiler" >&6
22289
22290# Is the header present?
22291echo "$as_me:$LINENO: checking zlib.h presence" >&5
22292echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22293cat >conftest.$ac_ext <<_ACEOF
22294/* confdefs.h. */
22295_ACEOF
22296cat confdefs.h >>conftest.$ac_ext
22297cat >>conftest.$ac_ext <<_ACEOF
22298/* end confdefs.h. */
22299#include <zlib.h>
22300_ACEOF
22301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22303 ac_status=$?
22304 grep -v '^ *+' conftest.er1 >conftest.err
22305 rm -f conftest.er1
22306 cat conftest.err >&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } >/dev/null; then
22309 if test -s conftest.err; then
22310 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22312 else
22313 ac_cpp_err=
22314 fi
22315else
22316 ac_cpp_err=yes
22317fi
22318if test -z "$ac_cpp_err"; then
22319 ac_header_preproc=yes
22320else
22321 echo "$as_me: failed program was:" >&5
22322sed 's/^/| /' conftest.$ac_ext >&5
22323
22324 ac_header_preproc=no
22325fi
22326rm -f conftest.err conftest.$ac_ext
22327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22328echo "${ECHO_T}$ac_header_preproc" >&6
22329
22330# So? What about this header?
ac1cb8d3
VS
22331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22332 yes:no: )
a848cd7e
SC
22333 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22334echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22335 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22336echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22337 ac_header_preproc=yes
a848cd7e 22338 ;;
ac1cb8d3 22339 no:yes:* )
a848cd7e
SC
22340 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22341echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22342 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22343echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22344 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22345echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22346 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22347echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22348 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22349echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22350 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22351echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22352 (
22353 cat <<\_ASBOX
ac1cb8d3
VS
22354## ----------------------------------------- ##
22355## Report this to wx-dev@lists.wxwidgets.org ##
22356## ----------------------------------------- ##
a848cd7e
SC
22357_ASBOX
22358 ) |
22359 sed "s/^/$as_me: WARNING: /" >&2
22360 ;;
22361esac
22362echo "$as_me:$LINENO: checking for zlib.h" >&5
22363echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22364if test "${ac_cv_header_zlib_h+set}" = set; then
22365 echo $ECHO_N "(cached) $ECHO_C" >&6
22366else
22367 ac_cv_header_zlib_h=$ac_header_preproc
22368fi
22369echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22370echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22371
22372fi
22373
22374
22375
22376 system_zlib_h_ok=$ac_cv_header_zlib_h
22377 fi
22378
22379 if test "$system_zlib_h_ok" = "yes"; then
22380 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22381echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22382if test "${ac_cv_lib_z_deflate+set}" = set; then
22383 echo $ECHO_N "(cached) $ECHO_C" >&6
22384else
22385 ac_check_lib_save_LIBS=$LIBS
22386LIBS="-lz $LIBS"
22387cat >conftest.$ac_ext <<_ACEOF
22388/* confdefs.h. */
22389_ACEOF
22390cat confdefs.h >>conftest.$ac_ext
22391cat >>conftest.$ac_ext <<_ACEOF
22392/* end confdefs.h. */
22393
22394/* Override any gcc2 internal prototype to avoid an error. */
22395#ifdef __cplusplus
22396extern "C"
22397#endif
22398/* We use char because int might match the return type of a gcc2
22399 builtin and then its argument prototype would still apply. */
22400char deflate ();
22401int
22402main ()
22403{
22404deflate ();
22405 ;
22406 return 0;
22407}
22408_ACEOF
22409rm -f conftest.$ac_objext conftest$ac_exeext
22410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22411 (eval $ac_link) 2>conftest.er1
a848cd7e 22412 ac_status=$?
ac1cb8d3
VS
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
a848cd7e
SC
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } &&
07158944 22418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22421 ac_status=$?
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; } &&
22424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22427 ac_status=$?
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; }; then
22430 ac_cv_lib_z_deflate=yes
22431else
22432 echo "$as_me: failed program was:" >&5
22433sed 's/^/| /' conftest.$ac_ext >&5
22434
22435ac_cv_lib_z_deflate=no
22436fi
ac1cb8d3
VS
22437rm -f conftest.err conftest.$ac_objext \
22438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22439LIBS=$ac_check_lib_save_LIBS
22440fi
22441echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22442echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22443if test $ac_cv_lib_z_deflate = yes; then
22444 ZLIB_LINK=" -lz"
22445fi
22446
22447 fi
22448
22449 if test "x$ZLIB_LINK" = "x" ; then
22450 if test "$wxUSE_ZLIB" = "sys" ; then
22451 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22452echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22453 { (exit 1); exit 1; }; }
22454 else
22455 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22456echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22457 wxUSE_ZLIB=builtin
22458 fi
22459 else
22460 wxUSE_ZLIB=sys
22461 fi
22462 fi
22463fi
22464
22465
22466PNG_LINK=
22467if test "$wxUSE_LIBPNG" != "no" ; then
22468 cat >>confdefs.h <<\_ACEOF
22469#define wxUSE_LIBPNG 1
22470_ACEOF
22471
22472
22473 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22474 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22475echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22476 wxUSE_LIBPNG=sys
22477 fi
22478
22479 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22480 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22481echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22482 wxUSE_LIBPNG=builtin
22483 fi
22484
22485 if test "$wxUSE_MGL" != 1 ; then
22486 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22487 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22488echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22489if test "${ac_cv_header_png_h+set}" = set; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22491else
22492 if test "$cross_compiling" = yes; then
22493 unset ac_cv_header_png_h
22494
22495else
22496 cat >conftest.$ac_ext <<_ACEOF
22497/* confdefs.h. */
22498_ACEOF
22499cat confdefs.h >>conftest.$ac_ext
22500cat >>conftest.$ac_ext <<_ACEOF
22501/* end confdefs.h. */
22502
22503 #include <png.h>
22504 #include <stdio.h>
22505
22506 int main()
22507 {
22508 FILE *f=fopen("conftestval", "w");
22509 if (!f) exit(1);
22510 fprintf(f, "%s",
22511 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22512 exit(0);
22513 }
22514
22515_ACEOF
22516rm -f conftest$ac_exeext
22517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22518 (eval $ac_link) 2>&5
22519 ac_status=$?
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22523 (eval $ac_try) 2>&5
22524 ac_status=$?
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); }; }; then
22527 ac_cv_header_png_h=`cat conftestval`
22528else
22529 echo "$as_me: program exited with status $ac_status" >&5
22530echo "$as_me: failed program was:" >&5
22531sed 's/^/| /' conftest.$ac_ext >&5
22532
22533( exit $ac_status )
22534ac_cv_header_png_h=no
22535fi
ac1cb8d3 22536rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22537fi
22538
22539fi
22540echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22541echo "${ECHO_T}$ac_cv_header_png_h" >&6
22542 if test "${ac_cv_header_png_h+set}" = set; then
22543 echo "$as_me:$LINENO: checking for png.h" >&5
22544echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22545if test "${ac_cv_header_png_h+set}" = set; then
22546 echo $ECHO_N "(cached) $ECHO_C" >&6
22547fi
22548echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22549echo "${ECHO_T}$ac_cv_header_png_h" >&6
22550else
22551 # Is the header compilable?
22552echo "$as_me:$LINENO: checking png.h usability" >&5
22553echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22554cat >conftest.$ac_ext <<_ACEOF
22555/* confdefs.h. */
22556_ACEOF
22557cat confdefs.h >>conftest.$ac_ext
22558cat >>conftest.$ac_ext <<_ACEOF
22559/* end confdefs.h. */
22560$ac_includes_default
22561#include <png.h>
22562_ACEOF
22563rm -f conftest.$ac_objext
22564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22565 (eval $ac_compile) 2>conftest.er1
a848cd7e 22566 ac_status=$?
ac1cb8d3
VS
22567 grep -v '^ *+' conftest.er1 >conftest.err
22568 rm -f conftest.er1
22569 cat conftest.err >&5
a848cd7e
SC
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); } &&
07158944 22572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; } &&
22578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; }; then
22584 ac_header_compiler=yes
22585else
22586 echo "$as_me: failed program was:" >&5
22587sed 's/^/| /' conftest.$ac_ext >&5
22588
22589ac_header_compiler=no
22590fi
ac1cb8d3 22591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22593echo "${ECHO_T}$ac_header_compiler" >&6
22594
22595# Is the header present?
22596echo "$as_me:$LINENO: checking png.h presence" >&5
22597echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22598cat >conftest.$ac_ext <<_ACEOF
22599/* confdefs.h. */
22600_ACEOF
22601cat confdefs.h >>conftest.$ac_ext
22602cat >>conftest.$ac_ext <<_ACEOF
22603/* end confdefs.h. */
22604#include <png.h>
22605_ACEOF
22606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22608 ac_status=$?
22609 grep -v '^ *+' conftest.er1 >conftest.err
22610 rm -f conftest.er1
22611 cat conftest.err >&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } >/dev/null; then
22614 if test -s conftest.err; then
22615 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22617 else
22618 ac_cpp_err=
22619 fi
22620else
22621 ac_cpp_err=yes
22622fi
22623if test -z "$ac_cpp_err"; then
22624 ac_header_preproc=yes
22625else
22626 echo "$as_me: failed program was:" >&5
22627sed 's/^/| /' conftest.$ac_ext >&5
22628
22629 ac_header_preproc=no
22630fi
22631rm -f conftest.err conftest.$ac_ext
22632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22633echo "${ECHO_T}$ac_header_preproc" >&6
22634
22635# So? What about this header?
ac1cb8d3
VS
22636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22637 yes:no: )
a848cd7e
SC
22638 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22639echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22640 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22641echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22642 ac_header_preproc=yes
a848cd7e 22643 ;;
ac1cb8d3 22644 no:yes:* )
a848cd7e
SC
22645 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22646echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22647 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22648echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22649 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22650echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22651 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22652echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22653 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22654echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22655 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22656echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22657 (
22658 cat <<\_ASBOX
ac1cb8d3
VS
22659## ----------------------------------------- ##
22660## Report this to wx-dev@lists.wxwidgets.org ##
22661## ----------------------------------------- ##
a848cd7e
SC
22662_ASBOX
22663 ) |
22664 sed "s/^/$as_me: WARNING: /" >&2
22665 ;;
22666esac
22667echo "$as_me:$LINENO: checking for png.h" >&5
22668echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22669if test "${ac_cv_header_png_h+set}" = set; then
22670 echo $ECHO_N "(cached) $ECHO_C" >&6
22671else
22672 ac_cv_header_png_h=$ac_header_preproc
22673fi
22674echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22675echo "${ECHO_T}$ac_cv_header_png_h" >&6
22676
22677fi
22678
22679
22680
22681 if test "$ac_cv_header_png_h" = "yes"; then
22682 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22683echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22684if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22685 echo $ECHO_N "(cached) $ECHO_C" >&6
22686else
22687 ac_check_lib_save_LIBS=$LIBS
22688LIBS="-lpng -lz -lm $LIBS"
22689cat >conftest.$ac_ext <<_ACEOF
22690/* confdefs.h. */
22691_ACEOF
22692cat confdefs.h >>conftest.$ac_ext
22693cat >>conftest.$ac_ext <<_ACEOF
22694/* end confdefs.h. */
22695
22696/* Override any gcc2 internal prototype to avoid an error. */
22697#ifdef __cplusplus
22698extern "C"
22699#endif
22700/* We use char because int might match the return type of a gcc2
22701 builtin and then its argument prototype would still apply. */
22702char png_check_sig ();
22703int
22704main ()
22705{
22706png_check_sig ();
22707 ;
22708 return 0;
22709}
22710_ACEOF
22711rm -f conftest.$ac_objext conftest$ac_exeext
22712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22713 (eval $ac_link) 2>conftest.er1
a848cd7e 22714 ac_status=$?
ac1cb8d3
VS
22715 grep -v '^ *+' conftest.er1 >conftest.err
22716 rm -f conftest.er1
22717 cat conftest.err >&5
a848cd7e
SC
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); } &&
07158944 22720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22722 (eval $ac_try) 2>&5
22723 ac_status=$?
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); }; } &&
22726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728 (eval $ac_try) 2>&5
22729 ac_status=$?
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); }; }; then
22732 ac_cv_lib_png_png_check_sig=yes
22733else
22734 echo "$as_me: failed program was:" >&5
22735sed 's/^/| /' conftest.$ac_ext >&5
22736
22737ac_cv_lib_png_png_check_sig=no
22738fi
ac1cb8d3
VS
22739rm -f conftest.err conftest.$ac_objext \
22740 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22741LIBS=$ac_check_lib_save_LIBS
22742fi
22743echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22744echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22745if test $ac_cv_lib_png_png_check_sig = yes; then
22746 PNG_LINK=" -lpng -lz"
22747fi
22748
22749 fi
22750
22751 if test "x$PNG_LINK" = "x" ; then
22752 if test "$wxUSE_LIBPNG" = "sys" ; then
22753 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22754echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22755 { (exit 1); exit 1; }; }
22756 else
22757 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22758echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22759 wxUSE_LIBPNG=builtin
22760 fi
22761 else
22762 wxUSE_LIBPNG=sys
22763 fi
22764 fi
22765 fi
22766
22767 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22768fi
22769
22770
22771JPEG_LINK=
22772if test "$wxUSE_LIBJPEG" != "no" ; then
22773 cat >>confdefs.h <<\_ACEOF
22774#define wxUSE_LIBJPEG 1
22775_ACEOF
22776
22777
22778 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22779 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22780echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22781 wxUSE_LIBJPEG=sys
22782 fi
22783
22784 if test "$wxUSE_MGL" != 1 ; then
22785 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22786 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22787echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22788 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22789 echo $ECHO_N "(cached) $ECHO_C" >&6
22790else
22791 cat >conftest.$ac_ext <<_ACEOF
22792/* confdefs.h. */
22793_ACEOF
22794cat confdefs.h >>conftest.$ac_ext
22795cat >>conftest.$ac_ext <<_ACEOF
22796/* end confdefs.h. */
22797
22798 #undef HAVE_STDLIB_H
22799 #include <stdio.h>
22800 #include <jpeglib.h>
22801
22802int
22803main ()
22804{
22805
22806
22807 ;
22808 return 0;
22809}
22810_ACEOF
22811rm -f conftest.$ac_objext
22812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22813 (eval $ac_compile) 2>conftest.er1
a848cd7e 22814 ac_status=$?
ac1cb8d3
VS
22815 grep -v '^ *+' conftest.er1 >conftest.err
22816 rm -f conftest.er1
22817 cat conftest.err >&5
a848cd7e
SC
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } &&
07158944 22820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22823 ac_status=$?
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; } &&
22826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828 (eval $ac_try) 2>&5
22829 ac_status=$?
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); }; }; then
22832 ac_cv_header_jpeglib_h=yes
22833else
22834 echo "$as_me: failed program was:" >&5
22835sed 's/^/| /' conftest.$ac_ext >&5
22836
22837ac_cv_header_jpeglib_h=no
22838
22839fi
ac1cb8d3 22840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22841
22842fi
22843
22844 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22845echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22846
22847 if test "$ac_cv_header_jpeglib_h" = "yes"; then
22848 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22849echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22850if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22851 echo $ECHO_N "(cached) $ECHO_C" >&6
22852else
22853 ac_check_lib_save_LIBS=$LIBS
22854LIBS="-ljpeg $LIBS"
22855cat >conftest.$ac_ext <<_ACEOF
22856/* confdefs.h. */
22857_ACEOF
22858cat confdefs.h >>conftest.$ac_ext
22859cat >>conftest.$ac_ext <<_ACEOF
22860/* end confdefs.h. */
22861
22862/* Override any gcc2 internal prototype to avoid an error. */
22863#ifdef __cplusplus
22864extern "C"
22865#endif
22866/* We use char because int might match the return type of a gcc2
22867 builtin and then its argument prototype would still apply. */
22868char jpeg_read_header ();
22869int
22870main ()
22871{
22872jpeg_read_header ();
22873 ;
22874 return 0;
22875}
22876_ACEOF
22877rm -f conftest.$ac_objext conftest$ac_exeext
22878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22879 (eval $ac_link) 2>conftest.er1
a848cd7e 22880 ac_status=$?
ac1cb8d3
VS
22881 grep -v '^ *+' conftest.er1 >conftest.err
22882 rm -f conftest.er1
22883 cat conftest.err >&5
a848cd7e
SC
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } &&
07158944 22886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888 (eval $ac_try) 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); }; } &&
22892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894 (eval $ac_try) 2>&5
22895 ac_status=$?
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; }; then
22898 ac_cv_lib_jpeg_jpeg_read_header=yes
22899else
22900 echo "$as_me: failed program was:" >&5
22901sed 's/^/| /' conftest.$ac_ext >&5
22902
22903ac_cv_lib_jpeg_jpeg_read_header=no
22904fi
ac1cb8d3
VS
22905rm -f conftest.err conftest.$ac_objext \
22906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22907LIBS=$ac_check_lib_save_LIBS
22908fi
22909echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
22910echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
22911if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
22912 JPEG_LINK=" -ljpeg"
22913fi
22914
22915 fi
22916
22917 if test "x$JPEG_LINK" = "x" ; then
22918 if test "$wxUSE_LIBJPEG" = "sys" ; then
22919 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
22920echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
22921 { (exit 1); exit 1; }; }
22922 else
22923 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
22924echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
22925 wxUSE_LIBJPEG=builtin
22926 fi
22927 else
22928 wxUSE_LIBJPEG=sys
22929 fi
22930 fi
22931 fi
22932fi
22933
22934
22935TIFF_LINK=
22936TIFF_PREREQ_LINKS=-lm
22937if test "$wxUSE_LIBTIFF" != "no" ; then
22938 cat >>confdefs.h <<\_ACEOF
22939#define wxUSE_LIBTIFF 1
22940_ACEOF
22941
22942
22943 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
22944 if test "$wxUSE_LIBJPEG" = "sys"; then
22945 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
22946 fi
22947 if test "$wxUSE_ZLIB" = "sys"; then
22948 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
22949 fi
22950 if test "${ac_cv_header_tiffio_h+set}" = set; then
22951 echo "$as_me:$LINENO: checking for tiffio.h" >&5
22952echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22953if test "${ac_cv_header_tiffio_h+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22955fi
22956echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22957echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22958else
22959 # Is the header compilable?
22960echo "$as_me:$LINENO: checking tiffio.h usability" >&5
22961echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
22962cat >conftest.$ac_ext <<_ACEOF
22963/* confdefs.h. */
22964_ACEOF
22965cat confdefs.h >>conftest.$ac_ext
22966cat >>conftest.$ac_ext <<_ACEOF
22967/* end confdefs.h. */
22968$ac_includes_default
22969#include <tiffio.h>
22970_ACEOF
22971rm -f conftest.$ac_objext
22972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22973 (eval $ac_compile) 2>conftest.er1
a848cd7e 22974 ac_status=$?
ac1cb8d3
VS
22975 grep -v '^ *+' conftest.er1 >conftest.err
22976 rm -f conftest.er1
22977 cat conftest.err >&5
a848cd7e
SC
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } &&
07158944 22980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982 (eval $ac_try) 2>&5
22983 ac_status=$?
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; } &&
22986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988 (eval $ac_try) 2>&5
22989 ac_status=$?
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); }; }; then
22992 ac_header_compiler=yes
22993else
22994 echo "$as_me: failed program was:" >&5
22995sed 's/^/| /' conftest.$ac_ext >&5
22996
22997ac_header_compiler=no
22998fi
ac1cb8d3 22999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23000echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23001echo "${ECHO_T}$ac_header_compiler" >&6
23002
23003# Is the header present?
23004echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23005echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23006cat >conftest.$ac_ext <<_ACEOF
23007/* confdefs.h. */
23008_ACEOF
23009cat confdefs.h >>conftest.$ac_ext
23010cat >>conftest.$ac_ext <<_ACEOF
23011/* end confdefs.h. */
23012#include <tiffio.h>
23013_ACEOF
23014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23016 ac_status=$?
23017 grep -v '^ *+' conftest.er1 >conftest.err
23018 rm -f conftest.er1
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } >/dev/null; then
23022 if test -s conftest.err; then
23023 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23025 else
23026 ac_cpp_err=
23027 fi
23028else
23029 ac_cpp_err=yes
23030fi
23031if test -z "$ac_cpp_err"; then
23032 ac_header_preproc=yes
23033else
23034 echo "$as_me: failed program was:" >&5
23035sed 's/^/| /' conftest.$ac_ext >&5
23036
23037 ac_header_preproc=no
23038fi
23039rm -f conftest.err conftest.$ac_ext
23040echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23041echo "${ECHO_T}$ac_header_preproc" >&6
23042
23043# So? What about this header?
ac1cb8d3
VS
23044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23045 yes:no: )
a848cd7e
SC
23046 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23047echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23048 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23049echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23050 ac_header_preproc=yes
a848cd7e 23051 ;;
ac1cb8d3 23052 no:yes:* )
a848cd7e
SC
23053 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23054echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23055 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23056echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23057 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23058echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23059 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23060echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23061 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23062echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23063 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23064echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23065 (
23066 cat <<\_ASBOX
ac1cb8d3
VS
23067## ----------------------------------------- ##
23068## Report this to wx-dev@lists.wxwidgets.org ##
23069## ----------------------------------------- ##
a848cd7e
SC
23070_ASBOX
23071 ) |
23072 sed "s/^/$as_me: WARNING: /" >&2
23073 ;;
23074esac
23075echo "$as_me:$LINENO: checking for tiffio.h" >&5
23076echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23077if test "${ac_cv_header_tiffio_h+set}" = set; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23079else
23080 ac_cv_header_tiffio_h=$ac_header_preproc
23081fi
23082echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23083echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23084
23085fi
23086if test $ac_cv_header_tiffio_h = yes; then
23087
23088 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23089echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23090if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23091 echo $ECHO_N "(cached) $ECHO_C" >&6
23092else
23093 ac_check_lib_save_LIBS=$LIBS
23094LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23095cat >conftest.$ac_ext <<_ACEOF
23096/* confdefs.h. */
23097_ACEOF
23098cat confdefs.h >>conftest.$ac_ext
23099cat >>conftest.$ac_ext <<_ACEOF
23100/* end confdefs.h. */
23101
23102/* Override any gcc2 internal prototype to avoid an error. */
23103#ifdef __cplusplus
23104extern "C"
23105#endif
23106/* We use char because int might match the return type of a gcc2
23107 builtin and then its argument prototype would still apply. */
23108char TIFFError ();
23109int
23110main ()
23111{
23112TIFFError ();
23113 ;
23114 return 0;
23115}
23116_ACEOF
23117rm -f conftest.$ac_objext conftest$ac_exeext
23118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23119 (eval $ac_link) 2>conftest.er1
a848cd7e 23120 ac_status=$?
ac1cb8d3
VS
23121 grep -v '^ *+' conftest.er1 >conftest.err
23122 rm -f conftest.er1
23123 cat conftest.err >&5
a848cd7e
SC
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); } &&
07158944 23126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128 (eval $ac_try) 2>&5
23129 ac_status=$?
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); }; } &&
23132 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23135 ac_status=$?
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; }; then
23138 ac_cv_lib_tiff_TIFFError=yes
23139else
23140 echo "$as_me: failed program was:" >&5
23141sed 's/^/| /' conftest.$ac_ext >&5
23142
23143ac_cv_lib_tiff_TIFFError=no
23144fi
ac1cb8d3
VS
23145rm -f conftest.err conftest.$ac_objext \
23146 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23147LIBS=$ac_check_lib_save_LIBS
23148fi
23149echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23150echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23151if test $ac_cv_lib_tiff_TIFFError = yes; then
23152 TIFF_LINK=" -ltiff"
23153fi
23154
23155
23156
23157fi
23158
23159
23160
23161 if test "x$TIFF_LINK" = "x" ; then
23162 if test "$wxUSE_LIBTIFF" = "sys" ; then
23163 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23164echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23165 { (exit 1); exit 1; }; }
23166 else
23167 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23168echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23169 wxUSE_LIBTIFF=builtin
23170 fi
23171 else
23172 wxUSE_LIBTIFF=sys
23173 fi
23174 fi
23175fi
23176
23177
23178if test "$wxUSE_EXPAT" != "no"; then
23179 wxUSE_XML=yes
23180 cat >>confdefs.h <<\_ACEOF
23181#define wxUSE_EXPAT 1
23182_ACEOF
23183
23184 cat >>confdefs.h <<\_ACEOF
23185#define wxUSE_XML 1
23186_ACEOF
23187
23188
23189 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23190 if test "${ac_cv_header_expat_h+set}" = set; then
23191 echo "$as_me:$LINENO: checking for expat.h" >&5
23192echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23193if test "${ac_cv_header_expat_h+set}" = set; then
23194 echo $ECHO_N "(cached) $ECHO_C" >&6
23195fi
23196echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23197echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23198else
23199 # Is the header compilable?
23200echo "$as_me:$LINENO: checking expat.h usability" >&5
23201echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23202cat >conftest.$ac_ext <<_ACEOF
23203/* confdefs.h. */
23204_ACEOF
23205cat confdefs.h >>conftest.$ac_ext
23206cat >>conftest.$ac_ext <<_ACEOF
23207/* end confdefs.h. */
23208$ac_includes_default
23209#include <expat.h>
23210_ACEOF
23211rm -f conftest.$ac_objext
23212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23213 (eval $ac_compile) 2>conftest.er1
a848cd7e 23214 ac_status=$?
ac1cb8d3
VS
23215 grep -v '^ *+' conftest.er1 >conftest.err
23216 rm -f conftest.er1
23217 cat conftest.err >&5
a848cd7e
SC
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); } &&
07158944 23220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222 (eval $ac_try) 2>&5
23223 ac_status=$?
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); }; } &&
23226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23229 ac_status=$?
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; }; then
23232 ac_header_compiler=yes
23233else
23234 echo "$as_me: failed program was:" >&5
23235sed 's/^/| /' conftest.$ac_ext >&5
23236
23237ac_header_compiler=no
23238fi
ac1cb8d3 23239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23240echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23241echo "${ECHO_T}$ac_header_compiler" >&6
23242
23243# Is the header present?
23244echo "$as_me:$LINENO: checking expat.h presence" >&5
23245echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23246cat >conftest.$ac_ext <<_ACEOF
23247/* confdefs.h. */
23248_ACEOF
23249cat confdefs.h >>conftest.$ac_ext
23250cat >>conftest.$ac_ext <<_ACEOF
23251/* end confdefs.h. */
23252#include <expat.h>
23253_ACEOF
23254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23256 ac_status=$?
23257 grep -v '^ *+' conftest.er1 >conftest.err
23258 rm -f conftest.er1
23259 cat conftest.err >&5
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); } >/dev/null; then
23262 if test -s conftest.err; then
23263 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23265 else
23266 ac_cpp_err=
23267 fi
23268else
23269 ac_cpp_err=yes
23270fi
23271if test -z "$ac_cpp_err"; then
23272 ac_header_preproc=yes
23273else
23274 echo "$as_me: failed program was:" >&5
23275sed 's/^/| /' conftest.$ac_ext >&5
23276
23277 ac_header_preproc=no
23278fi
23279rm -f conftest.err conftest.$ac_ext
23280echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23281echo "${ECHO_T}$ac_header_preproc" >&6
23282
23283# So? What about this header?
ac1cb8d3
VS
23284case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23285 yes:no: )
a848cd7e
SC
23286 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23287echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23288 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23289echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23290 ac_header_preproc=yes
a848cd7e 23291 ;;
ac1cb8d3 23292 no:yes:* )
a848cd7e
SC
23293 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23294echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23295 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23296echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23297 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23298echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23299 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23300echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23301 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23302echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23303 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23304echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23305 (
23306 cat <<\_ASBOX
ac1cb8d3
VS
23307## ----------------------------------------- ##
23308## Report this to wx-dev@lists.wxwidgets.org ##
23309## ----------------------------------------- ##
a848cd7e
SC
23310_ASBOX
23311 ) |
23312 sed "s/^/$as_me: WARNING: /" >&2
23313 ;;
23314esac
23315echo "$as_me:$LINENO: checking for expat.h" >&5
23316echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23317if test "${ac_cv_header_expat_h+set}" = set; then
23318 echo $ECHO_N "(cached) $ECHO_C" >&6
23319else
23320 ac_cv_header_expat_h=$ac_header_preproc
23321fi
23322echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23323echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23324
23325fi
23326if test $ac_cv_header_expat_h = yes; then
23327 found_expat_h=1
23328fi
23329
23330
23331 if test "x$found_expat_h" = "x1"; then
23332 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23333echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23334if test "${wx_cv_expat_is_not_broken+set}" = set; then
23335 echo $ECHO_N "(cached) $ECHO_C" >&6
23336else
23337
23338
23339
23340 ac_ext=cc
23341ac_cpp='$CXXCPP $CPPFLAGS'
23342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23345
23346 cat >conftest.$ac_ext <<_ACEOF
23347/* confdefs.h. */
23348_ACEOF
23349cat confdefs.h >>conftest.$ac_ext
23350cat >>conftest.$ac_ext <<_ACEOF
23351/* end confdefs.h. */
23352#include <expat.h>
23353int
23354main ()
23355{
23356
23357 ;
23358 return 0;
23359}
23360_ACEOF
23361rm -f conftest.$ac_objext
23362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23363 (eval $ac_compile) 2>conftest.er1
a848cd7e 23364 ac_status=$?
ac1cb8d3
VS
23365 grep -v '^ *+' conftest.er1 >conftest.err
23366 rm -f conftest.er1
23367 cat conftest.err >&5
a848cd7e
SC
23368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 (exit $ac_status); } &&
07158944 23370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23372 (eval $ac_try) 2>&5
23373 ac_status=$?
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); }; } &&
23376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378 (eval $ac_try) 2>&5
23379 ac_status=$?
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); }; }; then
23382 wx_cv_expat_is_not_broken=yes
23383else
23384 echo "$as_me: failed program was:" >&5
23385sed 's/^/| /' conftest.$ac_ext >&5
23386
23387wx_cv_expat_is_not_broken=no
23388
23389fi
ac1cb8d3 23390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23391 ac_ext=c
23392ac_cpp='$CPP $CPPFLAGS'
23393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23395ac_compiler_gnu=$ac_cv_c_compiler_gnu
23396
23397
23398
23399fi
23400echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23401echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23402 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23403 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23404echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23405if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23406 echo $ECHO_N "(cached) $ECHO_C" >&6
23407else
23408 ac_check_lib_save_LIBS=$LIBS
23409LIBS="-lexpat $LIBS"
23410cat >conftest.$ac_ext <<_ACEOF
23411/* confdefs.h. */
23412_ACEOF
23413cat confdefs.h >>conftest.$ac_ext
23414cat >>conftest.$ac_ext <<_ACEOF
23415/* end confdefs.h. */
23416
23417/* Override any gcc2 internal prototype to avoid an error. */
23418#ifdef __cplusplus
23419extern "C"
23420#endif
23421/* We use char because int might match the return type of a gcc2
23422 builtin and then its argument prototype would still apply. */
23423char XML_ParserCreate ();
23424int
23425main ()
23426{
23427XML_ParserCreate ();
23428 ;
23429 return 0;
23430}
23431_ACEOF
23432rm -f conftest.$ac_objext conftest$ac_exeext
23433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23434 (eval $ac_link) 2>conftest.er1
a848cd7e 23435 ac_status=$?
ac1cb8d3
VS
23436 grep -v '^ *+' conftest.er1 >conftest.err
23437 rm -f conftest.er1
23438 cat conftest.err >&5
a848cd7e
SC
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } &&
07158944 23441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23443 (eval $ac_try) 2>&5
23444 ac_status=$?
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); }; } &&
23447 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23449 (eval $ac_try) 2>&5
23450 ac_status=$?
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); }; }; then
23453 ac_cv_lib_expat_XML_ParserCreate=yes
23454else
23455 echo "$as_me: failed program was:" >&5
23456sed 's/^/| /' conftest.$ac_ext >&5
23457
23458ac_cv_lib_expat_XML_ParserCreate=no
23459fi
ac1cb8d3
VS
23460rm -f conftest.err conftest.$ac_objext \
23461 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23462LIBS=$ac_check_lib_save_LIBS
23463fi
23464echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23465echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23466if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23467 EXPAT_LINK=" -lexpat"
23468fi
23469
23470 fi
23471 fi
23472 if test "x$EXPAT_LINK" = "x" ; then
23473 if test "$wxUSE_EXPAT" = "sys" ; then
23474 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23475echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23476 { (exit 1); exit 1; }; }
23477 else
23478 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23479echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23480 wxUSE_EXPAT=builtin
23481 fi
23482 else
23483 wxUSE_EXPAT=sys
23484 fi
23485 fi
23486 if test "$wxUSE_EXPAT" = "builtin" ; then
23487
23488
23489subdirs="$subdirs src/expat"
23490
23491 fi
23492fi
23493
23494
23495
23496if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23497 if test "${ac_cv_header_mspack_h+set}" = set; then
23498 echo "$as_me:$LINENO: checking for mspack.h" >&5
23499echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23500if test "${ac_cv_header_mspack_h+set}" = set; then
23501 echo $ECHO_N "(cached) $ECHO_C" >&6
23502fi
23503echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23504echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23505else
23506 # Is the header compilable?
23507echo "$as_me:$LINENO: checking mspack.h usability" >&5
23508echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23509cat >conftest.$ac_ext <<_ACEOF
23510/* confdefs.h. */
23511_ACEOF
23512cat confdefs.h >>conftest.$ac_ext
23513cat >>conftest.$ac_ext <<_ACEOF
23514/* end confdefs.h. */
23515$ac_includes_default
23516#include <mspack.h>
23517_ACEOF
23518rm -f conftest.$ac_objext
23519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23520 (eval $ac_compile) 2>conftest.er1
a848cd7e 23521 ac_status=$?
ac1cb8d3
VS
23522 grep -v '^ *+' conftest.er1 >conftest.err
23523 rm -f conftest.er1
23524 cat conftest.err >&5
a848cd7e
SC
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); } &&
07158944 23527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23529 (eval $ac_try) 2>&5
23530 ac_status=$?
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); }; } &&
23533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535 (eval $ac_try) 2>&5
23536 ac_status=$?
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; }; then
23539 ac_header_compiler=yes
23540else
23541 echo "$as_me: failed program was:" >&5
23542sed 's/^/| /' conftest.$ac_ext >&5
23543
23544ac_header_compiler=no
23545fi
ac1cb8d3 23546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23548echo "${ECHO_T}$ac_header_compiler" >&6
23549
23550# Is the header present?
23551echo "$as_me:$LINENO: checking mspack.h presence" >&5
23552echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23553cat >conftest.$ac_ext <<_ACEOF
23554/* confdefs.h. */
23555_ACEOF
23556cat confdefs.h >>conftest.$ac_ext
23557cat >>conftest.$ac_ext <<_ACEOF
23558/* end confdefs.h. */
23559#include <mspack.h>
23560_ACEOF
23561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23563 ac_status=$?
23564 grep -v '^ *+' conftest.er1 >conftest.err
23565 rm -f conftest.er1
23566 cat conftest.err >&5
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); } >/dev/null; then
23569 if test -s conftest.err; then
23570 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23572 else
23573 ac_cpp_err=
23574 fi
23575else
23576 ac_cpp_err=yes
23577fi
23578if test -z "$ac_cpp_err"; then
23579 ac_header_preproc=yes
23580else
23581 echo "$as_me: failed program was:" >&5
23582sed 's/^/| /' conftest.$ac_ext >&5
23583
23584 ac_header_preproc=no
23585fi
23586rm -f conftest.err conftest.$ac_ext
23587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23588echo "${ECHO_T}$ac_header_preproc" >&6
23589
23590# So? What about this header?
ac1cb8d3
VS
23591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23592 yes:no: )
a848cd7e
SC
23593 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23594echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23595 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23596echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23597 ac_header_preproc=yes
a848cd7e 23598 ;;
ac1cb8d3 23599 no:yes:* )
a848cd7e
SC
23600 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23601echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23602 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23603echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23604 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23605echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23606 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23607echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23608 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23609echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23610 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23611echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23612 (
23613 cat <<\_ASBOX
ac1cb8d3
VS
23614## ----------------------------------------- ##
23615## Report this to wx-dev@lists.wxwidgets.org ##
23616## ----------------------------------------- ##
a848cd7e
SC
23617_ASBOX
23618 ) |
23619 sed "s/^/$as_me: WARNING: /" >&2
23620 ;;
23621esac
23622echo "$as_me:$LINENO: checking for mspack.h" >&5
23623echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23624if test "${ac_cv_header_mspack_h+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23626else
23627 ac_cv_header_mspack_h=$ac_header_preproc
23628fi
23629echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23630echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23631
23632fi
23633if test $ac_cv_header_mspack_h = yes; then
23634 found_mspack_h=1
23635fi
23636
23637
23638 if test "x$found_mspack_h" = "x1"; then
23639 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23640echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23641if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23642 echo $ECHO_N "(cached) $ECHO_C" >&6
23643else
23644 ac_check_lib_save_LIBS=$LIBS
23645LIBS="-lmspack $LIBS"
23646cat >conftest.$ac_ext <<_ACEOF
23647/* confdefs.h. */
23648_ACEOF
23649cat confdefs.h >>conftest.$ac_ext
23650cat >>conftest.$ac_ext <<_ACEOF
23651/* end confdefs.h. */
23652
23653/* Override any gcc2 internal prototype to avoid an error. */
23654#ifdef __cplusplus
23655extern "C"
23656#endif
23657/* We use char because int might match the return type of a gcc2
23658 builtin and then its argument prototype would still apply. */
23659char mspack_create_chm_decompressor ();
23660int
23661main ()
23662{
23663mspack_create_chm_decompressor ();
23664 ;
23665 return 0;
23666}
23667_ACEOF
23668rm -f conftest.$ac_objext conftest$ac_exeext
23669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23670 (eval $ac_link) 2>conftest.er1
a848cd7e 23671 ac_status=$?
ac1cb8d3
VS
23672 grep -v '^ *+' conftest.er1 >conftest.err
23673 rm -f conftest.er1
23674 cat conftest.err >&5
a848cd7e
SC
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } &&
07158944 23677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23680 ac_status=$?
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; } &&
23683 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685 (eval $ac_try) 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23690else
23691 echo "$as_me: failed program was:" >&5
23692sed 's/^/| /' conftest.$ac_ext >&5
23693
23694ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23695fi
ac1cb8d3
VS
23696rm -f conftest.err conftest.$ac_objext \
23697 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23698LIBS=$ac_check_lib_save_LIBS
23699fi
23700echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23701echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23702if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23703 MSPACK_LINK=" -lmspack"
23704fi
23705
23706 fi
23707 if test "x$MSPACK_LINK" = "x" ; then
23708 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23709 fi
23710fi
23711
23712if test "$wxUSE_LIBMSPACK" != "no"; then
23713 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23714#define wxUSE_LIBMSPACK 1
23715_ACEOF
23716
a848cd7e
SC
23717fi
23718
23719
23720
23721AFMINSTALL=
23722WIN32INSTALL=
23723
23724TOOLKIT=
23725TOOLKIT_INCLUDE=
23726WIDGET_SET=
23727
23728if test "$USE_WIN32" = 1 ; then
23729
23730for ac_header in w32api.h
23731do
23732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23733if eval "test \"\${$as_ac_Header+set}\" = set"; then
23734 echo "$as_me:$LINENO: checking for $ac_header" >&5
23735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23736if eval "test \"\${$as_ac_Header+set}\" = set"; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23738fi
23739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23741else
23742 # Is the header compilable?
23743echo "$as_me:$LINENO: checking $ac_header usability" >&5
23744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23745cat >conftest.$ac_ext <<_ACEOF
23746/* confdefs.h. */
23747_ACEOF
23748cat confdefs.h >>conftest.$ac_ext
23749cat >>conftest.$ac_ext <<_ACEOF
23750/* end confdefs.h. */
23751$ac_includes_default
23752#include <$ac_header>
23753_ACEOF
23754rm -f conftest.$ac_objext
23755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23756 (eval $ac_compile) 2>conftest.er1
a848cd7e 23757 ac_status=$?
ac1cb8d3
VS
23758 grep -v '^ *+' conftest.er1 >conftest.err
23759 rm -f conftest.er1
23760 cat conftest.err >&5
a848cd7e
SC
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } &&
07158944 23763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23765 (eval $ac_try) 2>&5
23766 ac_status=$?
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); }; } &&
23769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771 (eval $ac_try) 2>&5
23772 ac_status=$?
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); }; }; then
23775 ac_header_compiler=yes
23776else
23777 echo "$as_me: failed program was:" >&5
23778sed 's/^/| /' conftest.$ac_ext >&5
23779
23780ac_header_compiler=no
23781fi
ac1cb8d3 23782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23784echo "${ECHO_T}$ac_header_compiler" >&6
23785
23786# Is the header present?
23787echo "$as_me:$LINENO: checking $ac_header presence" >&5
23788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23789cat >conftest.$ac_ext <<_ACEOF
23790/* confdefs.h. */
23791_ACEOF
23792cat confdefs.h >>conftest.$ac_ext
23793cat >>conftest.$ac_ext <<_ACEOF
23794/* end confdefs.h. */
23795#include <$ac_header>
23796_ACEOF
23797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23799 ac_status=$?
23800 grep -v '^ *+' conftest.er1 >conftest.err
23801 rm -f conftest.er1
23802 cat conftest.err >&5
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } >/dev/null; then
23805 if test -s conftest.err; then
23806 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23808 else
23809 ac_cpp_err=
23810 fi
23811else
23812 ac_cpp_err=yes
23813fi
23814if test -z "$ac_cpp_err"; then
23815 ac_header_preproc=yes
23816else
23817 echo "$as_me: failed program was:" >&5
23818sed 's/^/| /' conftest.$ac_ext >&5
23819
23820 ac_header_preproc=no
23821fi
23822rm -f conftest.err conftest.$ac_ext
23823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23824echo "${ECHO_T}$ac_header_preproc" >&6
23825
23826# So? What about this header?
ac1cb8d3
VS
23827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23828 yes:no: )
a848cd7e
SC
23829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23830echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23832echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23833 ac_header_preproc=yes
a848cd7e 23834 ;;
ac1cb8d3 23835 no:yes:* )
a848cd7e
SC
23836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23837echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23839echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23841echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23843echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23845echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23847echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23848 (
23849 cat <<\_ASBOX
ac1cb8d3
VS
23850## ----------------------------------------- ##
23851## Report this to wx-dev@lists.wxwidgets.org ##
23852## ----------------------------------------- ##
a848cd7e
SC
23853_ASBOX
23854 ) |
23855 sed "s/^/$as_me: WARNING: /" >&2
23856 ;;
23857esac
23858echo "$as_me:$LINENO: checking for $ac_header" >&5
23859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23860if eval "test \"\${$as_ac_Header+set}\" = set"; then
23861 echo $ECHO_N "(cached) $ECHO_C" >&6
23862else
ac1cb8d3 23863 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23864fi
23865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23867
23868fi
23869if test `eval echo '${'$as_ac_Header'}'` = yes; then
23870 cat >>confdefs.h <<_ACEOF
23871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23872_ACEOF
23873
23874fi
23875
23876done
23877
23878 if test "${ac_cv_header_windows_h+set}" = set; then
23879 echo "$as_me:$LINENO: checking for windows.h" >&5
23880echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23881if test "${ac_cv_header_windows_h+set}" = set; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23883fi
23884echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23885echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23886else
23887 # Is the header compilable?
23888echo "$as_me:$LINENO: checking windows.h usability" >&5
23889echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
23890cat >conftest.$ac_ext <<_ACEOF
23891/* confdefs.h. */
23892_ACEOF
23893cat confdefs.h >>conftest.$ac_ext
23894cat >>conftest.$ac_ext <<_ACEOF
23895/* end confdefs.h. */
23896$ac_includes_default
23897#include <windows.h>
23898_ACEOF
23899rm -f conftest.$ac_objext
23900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23901 (eval $ac_compile) 2>conftest.er1
a848cd7e 23902 ac_status=$?
ac1cb8d3
VS
23903 grep -v '^ *+' conftest.er1 >conftest.err
23904 rm -f conftest.er1
23905 cat conftest.err >&5
a848cd7e
SC
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); } &&
07158944 23908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23910 (eval $ac_try) 2>&5
23911 ac_status=$?
23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 (exit $ac_status); }; } &&
23914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23916 (eval $ac_try) 2>&5
23917 ac_status=$?
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); }; }; then
23920 ac_header_compiler=yes
23921else
23922 echo "$as_me: failed program was:" >&5
23923sed 's/^/| /' conftest.$ac_ext >&5
23924
23925ac_header_compiler=no
23926fi
ac1cb8d3 23927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23928echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23929echo "${ECHO_T}$ac_header_compiler" >&6
23930
23931# Is the header present?
23932echo "$as_me:$LINENO: checking windows.h presence" >&5
23933echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
23934cat >conftest.$ac_ext <<_ACEOF
23935/* confdefs.h. */
23936_ACEOF
23937cat confdefs.h >>conftest.$ac_ext
23938cat >>conftest.$ac_ext <<_ACEOF
23939/* end confdefs.h. */
23940#include <windows.h>
23941_ACEOF
23942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23944 ac_status=$?
23945 grep -v '^ *+' conftest.er1 >conftest.err
23946 rm -f conftest.er1
23947 cat conftest.err >&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } >/dev/null; then
23950 if test -s conftest.err; then
23951 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23953 else
23954 ac_cpp_err=
23955 fi
23956else
23957 ac_cpp_err=yes
23958fi
23959if test -z "$ac_cpp_err"; then
23960 ac_header_preproc=yes
23961else
23962 echo "$as_me: failed program was:" >&5
23963sed 's/^/| /' conftest.$ac_ext >&5
23964
23965 ac_header_preproc=no
23966fi
23967rm -f conftest.err conftest.$ac_ext
23968echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23969echo "${ECHO_T}$ac_header_preproc" >&6
23970
23971# So? What about this header?
ac1cb8d3
VS
23972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23973 yes:no: )
a848cd7e
SC
23974 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
23975echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23976 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
23977echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
23978 ac_header_preproc=yes
a848cd7e 23979 ;;
ac1cb8d3 23980 no:yes:* )
a848cd7e
SC
23981 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
23982echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23983 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
23984echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
23985 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
23986echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
23987 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
23988echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23989 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
23990echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23991 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
23992echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23993 (
23994 cat <<\_ASBOX
ac1cb8d3
VS
23995## ----------------------------------------- ##
23996## Report this to wx-dev@lists.wxwidgets.org ##
23997## ----------------------------------------- ##
a848cd7e
SC
23998_ASBOX
23999 ) |
24000 sed "s/^/$as_me: WARNING: /" >&2
24001 ;;
24002esac
24003echo "$as_me:$LINENO: checking for windows.h" >&5
24004echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24005if test "${ac_cv_header_windows_h+set}" = set; then
24006 echo $ECHO_N "(cached) $ECHO_C" >&6
24007else
24008 ac_cv_header_windows_h=$ac_header_preproc
24009fi
24010echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24011echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24012
24013fi
24014if test $ac_cv_header_windows_h = yes; then
24015 :
24016else
24017
24018 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24019echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24020 { (exit 1); exit 1; }; }
24021
24022fi
24023
24024
24025
24026 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24027
24028 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24029 LIBS="$LIBS -loleacc"
24030 fi
24031
24032 case "${host}" in
24033 *-*-cygwin* )
24034 LIBS="$LIBS -lkernel32 -luser32"
24035 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24036 esac
24037
24038 if test "$wxUSE_ODBC" = "sys" ; then
24039 wxUSE_ODBC = "yes"
24040 fi
24041 if test "$wxUSE_ODBC" = "yes" ; then
24042 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24043 cat >>confdefs.h <<\_ACEOF
24044#define wxUSE_ODBC 1
24045_ACEOF
24046
24047 fi
24048
24049 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24050 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24051
24052 WIN32INSTALL=win32install
24053fi
24054
24055if test "$wxUSE_GUI" = "yes"; then
24056 USE_GUI=1
24057
24058 GUI_TK_LIBRARY=
24059
24060 WXGTK12=
24061 WXGTK127=
24062 WXGTK20=
24063 WXGPE=
24064
207bc66c
RN
24065 if test "$wxUSE_COCOA" = 1 ; then
24066 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24067 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24068echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24069 wxUSE_PRINTING_ARCHITECTURE=no
24070 fi
24071 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24072 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24073echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24074 wxUSE_DRAG_AND_DROP=no
24075 fi
24076 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24077 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24078echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24079 wxUSE_DRAGIMAGE=no
24080 fi
24081 fi
24082
a848cd7e
SC
24083 if test "$wxUSE_MSW" = 1 ; then
24084 TOOLKIT=MSW
24085 GUIDIST=MSW_DIST
24086
ceec2216 24087 case "${host}" in
a848cd7e
SC
24088 *-*-mingw32* )
24089 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24090 esac
24091 fi
24092
24093 if test "$wxUSE_GTK" = 1; then
24094 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24095echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24096
24097 gtk_version_cached=1
24098 if test "${wx_cv_lib_gtk+set}" = set; then
24099 echo $ECHO_N "(cached) $ECHO_C" >&6
24100else
24101
24102 gtk_version_cached=0
24103 echo "$as_me:$LINENO: result: " >&5
24104echo "${ECHO_T}" >&6
24105
24106 GTK_MODULES=
24107 if test "$wxUSE_THREADS" = "yes"; then
24108 GTK_MODULES=gthread
24109 fi
24110
24111 wx_cv_lib_gtk=
24112 if test "x$wxUSE_GTK2" = "xyes"; then
24113 # Check whether --enable-gtktest or --disable-gtktest was given.
24114if test "${enable_gtktest+set}" = set; then
24115 enableval="$enable_gtktest"
24116
24117else
24118 enable_gtktest=yes
24119fi;
24120
24121 pkg_config_args=gtk+-2.0
24122 for module in . $GTK_MODULES
24123 do
24124 case "$module" in
24125 gthread)
24126 pkg_config_args="$pkg_config_args gthread-2.0"
24127 ;;
24128 esac
24129 done
24130
24131 no_gtk=""
24132
24133 # Extract the first word of "pkg-config", so it can be a program name with args.
24134set dummy pkg-config; ac_word=$2
24135echo "$as_me:$LINENO: checking for $ac_word" >&5
24136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24137if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24138 echo $ECHO_N "(cached) $ECHO_C" >&6
24139else
24140 case $PKG_CONFIG in
24141 [\\/]* | ?:[\\/]*)
24142 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24143 ;;
24144 *)
24145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24146for as_dir in $PATH
24147do
24148 IFS=$as_save_IFS
24149 test -z "$as_dir" && as_dir=.
24150 for ac_exec_ext in '' $ac_executable_extensions; do
24151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24152 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24154 break 2
24155 fi
24156done
24157done
24158
24159 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24160 ;;
24161esac
24162fi
24163PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24164
24165if test -n "$PKG_CONFIG"; then
24166 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24167echo "${ECHO_T}$PKG_CONFIG" >&6
24168else
24169 echo "$as_me:$LINENO: result: no" >&5
24170echo "${ECHO_T}no" >&6
24171fi
24172
24173
24174 if test x$PKG_CONFIG != xno ; then
24175 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24176 :
24177 else
c2218763 24178 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24179 no_gtk=yes
24180 PKG_CONFIG=no
24181 fi
24182 else
24183 no_gtk=yes
24184 fi
24185
24186 min_gtk_version=2.0.0
24187 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24188echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24189
24190 if test x$PKG_CONFIG != xno ; then
24191 ## don't try to run the test against uninstalled libtool libs
24192 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24193 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24194 enable_gtktest=no
24195 fi
24196
24197 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24198 :
24199 else
24200 no_gtk=yes
24201 fi
24202 fi
24203
24204 if test x"$no_gtk" = x ; then
24205 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24206 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24207 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24208 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24209 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24210 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24211 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24212 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24213 if test "x$enable_gtktest" = "xyes" ; then
24214 ac_save_CFLAGS="$CFLAGS"
24215 ac_save_LIBS="$LIBS"
24216 CFLAGS="$CFLAGS $GTK_CFLAGS"
24217 LIBS="$GTK_LIBS $LIBS"
24218 rm -f conf.gtktest
24219 if test "$cross_compiling" = yes; then
24220 echo $ac_n "cross compiling; assumed OK... $ac_c"
24221else
24222 cat >conftest.$ac_ext <<_ACEOF
24223/* confdefs.h. */
24224_ACEOF
24225cat confdefs.h >>conftest.$ac_ext
24226cat >>conftest.$ac_ext <<_ACEOF
24227/* end confdefs.h. */
24228
24229#include <gtk/gtk.h>
24230#include <stdio.h>
24231#include <stdlib.h>
24232
24233int
24234main ()
24235{
24236 int major, minor, micro;
24237 char *tmp_version;
24238
24239 system ("touch conf.gtktest");
24240
24241 /* HP/UX 9 (%@#!) writes to sscanf strings */
24242 tmp_version = g_strdup("$min_gtk_version");
24243 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24244 printf("%s, bad version string\n", "$min_gtk_version");
24245 exit(1);
24246 }
24247
24248 if ((gtk_major_version != $gtk_config_major_version) ||
24249 (gtk_minor_version != $gtk_config_minor_version) ||
24250 (gtk_micro_version != $gtk_config_micro_version))
24251 {
24252 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24253 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24254 gtk_major_version, gtk_minor_version, gtk_micro_version);
24255 printf ("*** was found! If pkg-config was correct, then it is best\n");
24256 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24257 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24258 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24259 printf("*** required on your system.\n");
24260 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24261 printf("*** to point to the correct configuration files\n");
24262 }
24263 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24264 (gtk_minor_version != GTK_MINOR_VERSION) ||
24265 (gtk_micro_version != GTK_MICRO_VERSION))
24266 {
24267 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24268 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24269 printf("*** library (version %d.%d.%d)\n",
24270 gtk_major_version, gtk_minor_version, gtk_micro_version);
24271 }
24272 else
24273 {
24274 if ((gtk_major_version > major) ||
24275 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24276 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24277 {
24278 return 0;
24279 }
24280 else
24281 {
24282 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24283 gtk_major_version, gtk_minor_version, gtk_micro_version);
24284 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24285 major, minor, micro);
24286 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24287 printf("***\n");
24288 printf("*** If you have already installed a sufficiently new version, this error\n");
24289 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24290 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24291 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24292 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24293 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24294 printf("*** so that the correct libraries are found at run-time))\n");
24295 }
24296 }
24297 return 1;
24298}
24299
24300_ACEOF
24301rm -f conftest$ac_exeext
24302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24303 (eval $ac_link) 2>&5
24304 ac_status=$?
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308 (eval $ac_try) 2>&5
24309 ac_status=$?
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; }; then
24312 :
24313else
24314 echo "$as_me: program exited with status $ac_status" >&5
24315echo "$as_me: failed program was:" >&5
24316sed 's/^/| /' conftest.$ac_ext >&5
24317
24318( exit $ac_status )
24319no_gtk=yes
24320fi
ac1cb8d3 24321rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24322fi
24323 CFLAGS="$ac_save_CFLAGS"
24324 LIBS="$ac_save_LIBS"
24325 fi
24326 fi
24327 if test "x$no_gtk" = x ; then
24328 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24329echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24330 wx_cv_lib_gtk=2.0
24331 else
24332 echo "$as_me:$LINENO: result: no" >&5
24333echo "${ECHO_T}no" >&6
24334 if test "$PKG_CONFIG" = "no" ; then
24335 echo "*** A new enough version of pkg-config was not found."
24336 echo "*** See http://pkgconfig.sourceforge.net"
24337 else
24338 if test -f conf.gtktest ; then
24339 :
24340 else
24341 echo "*** Could not run GTK+ test program, checking why..."
24342 ac_save_CFLAGS="$CFLAGS"
24343 ac_save_LIBS="$LIBS"
24344 CFLAGS="$CFLAGS $GTK_CFLAGS"
24345 LIBS="$LIBS $GTK_LIBS"
24346 cat >conftest.$ac_ext <<_ACEOF
24347/* confdefs.h. */
24348_ACEOF
24349cat confdefs.h >>conftest.$ac_ext
24350cat >>conftest.$ac_ext <<_ACEOF
24351/* end confdefs.h. */
24352
24353#include <gtk/gtk.h>
24354#include <stdio.h>
24355
24356int
24357main ()
24358{
24359 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24360 ;
24361 return 0;
24362}
24363_ACEOF
24364rm -f conftest.$ac_objext conftest$ac_exeext
24365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24366 (eval $ac_link) 2>conftest.er1
a848cd7e 24367 ac_status=$?
ac1cb8d3
VS
24368 grep -v '^ *+' conftest.er1 >conftest.err
24369 rm -f conftest.er1
24370 cat conftest.err >&5
a848cd7e
SC
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); } &&
07158944 24373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24375 (eval $ac_try) 2>&5
24376 ac_status=$?
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); }; } &&
24379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381 (eval $ac_try) 2>&5
24382 ac_status=$?
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); }; }; then
24385 echo "*** The test program compiled, but did not run. This usually means"
24386 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24387 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24388 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24389 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24390 echo "*** is required on your system"
24391 echo "***"
24392 echo "*** If you have an old version installed, it is best to remove it, although"
24393 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24394else
24395 echo "$as_me: failed program was:" >&5
24396sed 's/^/| /' conftest.$ac_ext >&5
24397
24398 echo "*** The test program failed to compile or link. See the file config.log for the"
24399 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24400fi
ac1cb8d3
VS
24401rm -f conftest.err conftest.$ac_objext \
24402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24403 CFLAGS="$ac_save_CFLAGS"
24404 LIBS="$ac_save_LIBS"
24405 fi
24406 fi
24407 GTK_CFLAGS=""
24408 GTK_LIBS=""
24409 :
24410 fi
24411
24412
24413 rm -f conf.gtktest
24414
24415 else
24416
24417# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24418if test "${with_gtk_prefix+set}" = set; then
24419 withval="$with_gtk_prefix"
24420 gtk_config_prefix="$withval"
24421else
24422 gtk_config_prefix=""
24423fi;
24424
24425# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24426if test "${with_gtk_exec_prefix+set}" = set; then
24427 withval="$with_gtk_exec_prefix"
24428 gtk_config_exec_prefix="$withval"
24429else
24430 gtk_config_exec_prefix=""
24431fi;
24432# Check whether --enable-gtktest or --disable-gtktest was given.
24433if test "${enable_gtktest+set}" = set; then
24434 enableval="$enable_gtktest"
24435
24436else
24437 enable_gtktest=yes
24438fi;
24439
24440 for module in . $GTK_MODULES
24441 do
24442 case "$module" in
24443 gthread)
24444 gtk_config_args="$gtk_config_args gthread"
24445 ;;
24446 esac
24447 done
24448
24449 if test x$gtk_config_exec_prefix != x ; then
24450 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24451 if test x${GTK_CONFIG+set} != xset ; then
24452 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24453 fi
24454 fi
24455 if test x$gtk_config_prefix != x ; then
24456 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24457 if test x${GTK_CONFIG+set} != xset ; then
24458 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24459 fi
24460 fi
24461
24462 # Extract the first word of "gtk-config", so it can be a program name with args.
24463set dummy gtk-config; ac_word=$2
24464echo "$as_me:$LINENO: checking for $ac_word" >&5
24465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24466if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24467 echo $ECHO_N "(cached) $ECHO_C" >&6
24468else
24469 case $GTK_CONFIG in
24470 [\\/]* | ?:[\\/]*)
24471 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24472 ;;
24473 *)
24474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24475for as_dir in $PATH
24476do
24477 IFS=$as_save_IFS
24478 test -z "$as_dir" && as_dir=.
24479 for ac_exec_ext in '' $ac_executable_extensions; do
24480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24481 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24483 break 2
24484 fi
24485done
24486done
24487
24488 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24489 ;;
24490esac
24491fi
24492GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24493
24494if test -n "$GTK_CONFIG"; then
24495 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24496echo "${ECHO_T}$GTK_CONFIG" >&6
24497else
24498 echo "$as_me:$LINENO: result: no" >&5
24499echo "${ECHO_T}no" >&6
24500fi
24501
24502 min_gtk_version=1.2.7
24503 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24504echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24505 no_gtk=""
24506 if test "$GTK_CONFIG" = "no" ; then
24507 no_gtk=yes
24508 else
24509 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24510 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24511 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24512 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24513 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24514 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24515 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24517 if test "x$enable_gtktest" = "xyes" ; then
24518 ac_save_CFLAGS="$CFLAGS"
24519 ac_save_LIBS="$LIBS"
24520 CFLAGS="$CFLAGS $GTK_CFLAGS"
24521 LIBS="$GTK_LIBS $LIBS"
24522 rm -f conf.gtktest
24523 if test "$cross_compiling" = yes; then
24524 echo $ac_n "cross compiling; assumed OK... $ac_c"
24525else
24526 cat >conftest.$ac_ext <<_ACEOF
24527/* confdefs.h. */
24528_ACEOF
24529cat confdefs.h >>conftest.$ac_ext
24530cat >>conftest.$ac_ext <<_ACEOF
24531/* end confdefs.h. */
24532
24533#include <gtk/gtk.h>
24534#include <stdio.h>
24535#include <stdlib.h>
24536
24537int
24538main ()
24539{
24540 int major, minor, micro;
24541 char *tmp_version;
24542
24543 system ("touch conf.gtktest");
24544
24545 /* HP/UX 9 (%@#!) writes to sscanf strings */
24546 tmp_version = g_strdup("$min_gtk_version");
24547 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24548 printf("%s, bad version string\n", "$min_gtk_version");
24549 exit(1);
24550 }
24551
24552 if ((gtk_major_version != $gtk_config_major_version) ||
24553 (gtk_minor_version != $gtk_config_minor_version) ||
24554 (gtk_micro_version != $gtk_config_micro_version))
24555 {
24556 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24557 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24558 gtk_major_version, gtk_minor_version, gtk_micro_version);
24559 printf ("*** was found! If gtk-config was correct, then it is best\n");
24560 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24561 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24562 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24563 printf("*** required on your system.\n");
24564 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24565 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24566 printf("*** before re-running configure\n");
24567 }
24568#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24569 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24570 (gtk_minor_version != GTK_MINOR_VERSION) ||
24571 (gtk_micro_version != GTK_MICRO_VERSION))
24572 {
24573 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24574 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24575 printf("*** library (version %d.%d.%d)\n",
24576 gtk_major_version, gtk_minor_version, gtk_micro_version);
24577 }
24578#endif /* defined (GTK_MAJOR_VERSION) ... */
24579 else
24580 {
24581 if ((gtk_major_version > major) ||
24582 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24583 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24584 {
24585 return 0;
24586 }
24587 else
24588 {
24589 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24590 gtk_major_version, gtk_minor_version, gtk_micro_version);
24591 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24592 major, minor, micro);
24593 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24594 printf("***\n");
24595 printf("*** If you have already installed a sufficiently new version, this error\n");
24596 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24597 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24598 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24599 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24600 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24601 printf("*** so that the correct libraries are found at run-time))\n");
24602 }
24603 }
24604 return 1;
24605}
24606
24607_ACEOF
24608rm -f conftest$ac_exeext
24609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24610 (eval $ac_link) 2>&5
24611 ac_status=$?
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615 (eval $ac_try) 2>&5
24616 ac_status=$?
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; }; then
24619 :
24620else
24621 echo "$as_me: program exited with status $ac_status" >&5
24622echo "$as_me: failed program was:" >&5
24623sed 's/^/| /' conftest.$ac_ext >&5
24624
24625( exit $ac_status )
24626no_gtk=yes
24627fi
ac1cb8d3 24628rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24629fi
24630 CFLAGS="$ac_save_CFLAGS"
24631 LIBS="$ac_save_LIBS"
24632 fi
24633 fi
24634 if test "x$no_gtk" = x ; then
24635 echo "$as_me:$LINENO: result: yes" >&5
24636echo "${ECHO_T}yes" >&6
24637 wx_cv_lib_gtk=1.2.7
24638 else
24639 echo "$as_me:$LINENO: result: no" >&5
24640echo "${ECHO_T}no" >&6
24641 if test "$GTK_CONFIG" = "no" ; then
24642 echo "*** The gtk-config script installed by GTK could not be found"
24643 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24644 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24645 echo "*** full path to gtk-config."
24646 else
24647 if test -f conf.gtktest ; then
24648 :
24649 else
24650 echo "*** Could not run GTK test program, checking why..."
24651 CFLAGS="$CFLAGS $GTK_CFLAGS"
24652 LIBS="$LIBS $GTK_LIBS"
24653 cat >conftest.$ac_ext <<_ACEOF
24654/* confdefs.h. */
24655_ACEOF
24656cat confdefs.h >>conftest.$ac_ext
24657cat >>conftest.$ac_ext <<_ACEOF
24658/* end confdefs.h. */
24659
24660#include <gtk/gtk.h>
24661#include <stdio.h>
24662
24663int
24664main ()
24665{
24666 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24667 ;
24668 return 0;
24669}
24670_ACEOF
24671rm -f conftest.$ac_objext conftest$ac_exeext
24672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24673 (eval $ac_link) 2>conftest.er1
a848cd7e 24674 ac_status=$?
ac1cb8d3
VS
24675 grep -v '^ *+' conftest.er1 >conftest.err
24676 rm -f conftest.er1
24677 cat conftest.err >&5
a848cd7e
SC
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } &&
07158944 24680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24682 (eval $ac_try) 2>&5
24683 ac_status=$?
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); }; } &&
24686 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688 (eval $ac_try) 2>&5
24689 ac_status=$?
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); }; }; then
24692 echo "*** The test program compiled, but did not run. This usually means"
24693 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24694 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24695 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24696 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24697 echo "*** is required on your system"
24698 echo "***"
24699 echo "*** If you have an old version installed, it is best to remove it, although"
24700 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24701 echo "***"
24702 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24703 echo "*** came with the system with the command"
24704 echo "***"
24705 echo "*** rpm --erase --nodeps gtk gtk-devel"
24706else
24707 echo "$as_me: failed program was:" >&5
24708sed 's/^/| /' conftest.$ac_ext >&5
24709
24710 echo "*** The test program failed to compile or link. See the file config.log for the"
24711 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24712 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24713 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24714fi
ac1cb8d3
VS
24715rm -f conftest.err conftest.$ac_objext \
24716 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24717 CFLAGS="$ac_save_CFLAGS"
24718 LIBS="$ac_save_LIBS"
24719 fi
24720 fi
24721 GTK_CFLAGS=""
24722 GTK_LIBS=""
24723 :
24724 fi
24725
24726
24727 rm -f conf.gtktest
24728
24729
24730 if test -z "$wx_cv_lib_gtk"; then
24731
24732# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24733if test "${with_gtk_prefix+set}" = set; then
24734 withval="$with_gtk_prefix"
24735 gtk_config_prefix="$withval"
24736else
24737 gtk_config_prefix=""
24738fi;
24739
24740# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24741if test "${with_gtk_exec_prefix+set}" = set; then
24742 withval="$with_gtk_exec_prefix"
24743 gtk_config_exec_prefix="$withval"
24744else
24745 gtk_config_exec_prefix=""
24746fi;
24747# Check whether --enable-gtktest or --disable-gtktest was given.
24748if test "${enable_gtktest+set}" = set; then
24749 enableval="$enable_gtktest"
24750
24751else
24752 enable_gtktest=yes
24753fi;
24754
24755 for module in . $GTK_MODULES
24756 do
24757 case "$module" in
24758 gthread)
24759 gtk_config_args="$gtk_config_args gthread"
24760 ;;
24761 esac
24762 done
24763
24764 if test x$gtk_config_exec_prefix != x ; then
24765 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24766 if test x${GTK_CONFIG+set} != xset ; then
24767 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24768 fi
24769 fi
24770 if test x$gtk_config_prefix != x ; then
24771 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24772 if test x${GTK_CONFIG+set} != xset ; then
24773 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24774 fi
24775 fi
24776
24777 # Extract the first word of "gtk-config", so it can be a program name with args.
24778set dummy gtk-config; ac_word=$2
24779echo "$as_me:$LINENO: checking for $ac_word" >&5
24780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24781if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24782 echo $ECHO_N "(cached) $ECHO_C" >&6
24783else
24784 case $GTK_CONFIG in
24785 [\\/]* | ?:[\\/]*)
24786 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24787 ;;
24788 *)
24789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24790for as_dir in $PATH
24791do
24792 IFS=$as_save_IFS
24793 test -z "$as_dir" && as_dir=.
24794 for ac_exec_ext in '' $ac_executable_extensions; do
24795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24796 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24798 break 2
24799 fi
24800done
24801done
24802
24803 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24804 ;;
24805esac
24806fi
24807GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24808
24809if test -n "$GTK_CONFIG"; then
24810 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24811echo "${ECHO_T}$GTK_CONFIG" >&6
24812else
24813 echo "$as_me:$LINENO: result: no" >&5
24814echo "${ECHO_T}no" >&6
24815fi
24816
24817 min_gtk_version=1.2.3
24818 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24819echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24820 no_gtk=""
24821 if test "$GTK_CONFIG" = "no" ; then
24822 no_gtk=yes
24823 else
24824 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24825 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24826 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24827 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24828 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24829 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24830 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24831 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24832 if test "x$enable_gtktest" = "xyes" ; then
24833 ac_save_CFLAGS="$CFLAGS"
24834 ac_save_LIBS="$LIBS"
24835 CFLAGS="$CFLAGS $GTK_CFLAGS"
24836 LIBS="$GTK_LIBS $LIBS"
24837 rm -f conf.gtktest
24838 if test "$cross_compiling" = yes; then
24839 echo $ac_n "cross compiling; assumed OK... $ac_c"
24840else
24841 cat >conftest.$ac_ext <<_ACEOF
24842/* confdefs.h. */
24843_ACEOF
24844cat confdefs.h >>conftest.$ac_ext
24845cat >>conftest.$ac_ext <<_ACEOF
24846/* end confdefs.h. */
24847
24848#include <gtk/gtk.h>
24849#include <stdio.h>
24850#include <stdlib.h>
24851
24852int
24853main ()
24854{
24855 int major, minor, micro;
24856 char *tmp_version;
24857
24858 system ("touch conf.gtktest");
24859
24860 /* HP/UX 9 (%@#!) writes to sscanf strings */
24861 tmp_version = g_strdup("$min_gtk_version");
24862 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24863 printf("%s, bad version string\n", "$min_gtk_version");
24864 exit(1);
24865 }
24866
24867 if ((gtk_major_version != $gtk_config_major_version) ||
24868 (gtk_minor_version != $gtk_config_minor_version) ||
24869 (gtk_micro_version != $gtk_config_micro_version))
24870 {
24871 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24872 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24873 gtk_major_version, gtk_minor_version, gtk_micro_version);
24874 printf ("*** was found! If gtk-config was correct, then it is best\n");
24875 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24876 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24877 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24878 printf("*** required on your system.\n");
24879 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24880 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24881 printf("*** before re-running configure\n");
24882 }
24883#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24884 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24885 (gtk_minor_version != GTK_MINOR_VERSION) ||
24886 (gtk_micro_version != GTK_MICRO_VERSION))
24887 {
24888 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24889 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24890 printf("*** library (version %d.%d.%d)\n",
24891 gtk_major_version, gtk_minor_version, gtk_micro_version);
24892 }
24893#endif /* defined (GTK_MAJOR_VERSION) ... */
24894 else
24895 {
24896 if ((gtk_major_version > major) ||
24897 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24898 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24899 {
24900 return 0;
24901 }
24902 else
24903 {
24904 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24905 gtk_major_version, gtk_minor_version, gtk_micro_version);
24906 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24907 major, minor, micro);
24908 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24909 printf("***\n");
24910 printf("*** If you have already installed a sufficiently new version, this error\n");
24911 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24912 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24913 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24914 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24915 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24916 printf("*** so that the correct libraries are found at run-time))\n");
24917 }
24918 }
24919 return 1;
24920}
24921
24922_ACEOF
24923rm -f conftest$ac_exeext
24924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24925 (eval $ac_link) 2>&5
24926 ac_status=$?
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24931 ac_status=$?
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; }; then
24934 :
24935else
24936 echo "$as_me: program exited with status $ac_status" >&5
24937echo "$as_me: failed program was:" >&5
24938sed 's/^/| /' conftest.$ac_ext >&5
24939
24940( exit $ac_status )
24941no_gtk=yes
24942fi
ac1cb8d3 24943rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24944fi
24945 CFLAGS="$ac_save_CFLAGS"
24946 LIBS="$ac_save_LIBS"
24947 fi
24948 fi
24949 if test "x$no_gtk" = x ; then
24950 echo "$as_me:$LINENO: result: yes" >&5
24951echo "${ECHO_T}yes" >&6
24952 wx_cv_lib_gtk=1.2.3
24953 else
24954 echo "$as_me:$LINENO: result: no" >&5
24955echo "${ECHO_T}no" >&6
24956 if test "$GTK_CONFIG" = "no" ; then
24957 echo "*** The gtk-config script installed by GTK could not be found"
24958 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24959 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24960 echo "*** full path to gtk-config."
24961 else
24962 if test -f conf.gtktest ; then
24963 :
24964 else
24965 echo "*** Could not run GTK test program, checking why..."
24966 CFLAGS="$CFLAGS $GTK_CFLAGS"
24967 LIBS="$LIBS $GTK_LIBS"
24968 cat >conftest.$ac_ext <<_ACEOF
24969/* confdefs.h. */
24970_ACEOF
24971cat confdefs.h >>conftest.$ac_ext
24972cat >>conftest.$ac_ext <<_ACEOF
24973/* end confdefs.h. */
24974
24975#include <gtk/gtk.h>
24976#include <stdio.h>
24977
24978int
24979main ()
24980{
24981 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24982 ;
24983 return 0;
24984}
24985_ACEOF
24986rm -f conftest.$ac_objext conftest$ac_exeext
24987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24988 (eval $ac_link) 2>conftest.er1
a848cd7e 24989 ac_status=$?
ac1cb8d3
VS
24990 grep -v '^ *+' conftest.er1 >conftest.err
24991 rm -f conftest.er1
24992 cat conftest.err >&5
a848cd7e
SC
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); } &&
07158944 24995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24997 (eval $ac_try) 2>&5
24998 ac_status=$?
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); }; } &&
25001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25003 (eval $ac_try) 2>&5
25004 ac_status=$?
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); }; }; then
25007 echo "*** The test program compiled, but did not run. This usually means"
25008 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25009 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25010 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25011 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25012 echo "*** is required on your system"
25013 echo "***"
25014 echo "*** If you have an old version installed, it is best to remove it, although"
25015 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25016 echo "***"
25017 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25018 echo "*** came with the system with the command"
25019 echo "***"
25020 echo "*** rpm --erase --nodeps gtk gtk-devel"
25021else
25022 echo "$as_me: failed program was:" >&5
25023sed 's/^/| /' conftest.$ac_ext >&5
25024
25025 echo "*** The test program failed to compile or link. See the file config.log for the"
25026 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25027 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25028 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25029fi
ac1cb8d3
VS
25030rm -f conftest.err conftest.$ac_objext \
25031 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25032 CFLAGS="$ac_save_CFLAGS"
25033 LIBS="$ac_save_LIBS"
25034 fi
25035 fi
25036 GTK_CFLAGS=""
25037 GTK_LIBS=""
25038 :
25039 fi
25040
25041
25042 rm -f conf.gtktest
25043
25044 fi
25045 fi
25046
25047 if test -z "$wx_cv_lib_gtk"; then
25048 wx_cv_lib_gtk=none
25049 else
25050 wx_cv_cflags_gtk=$GTK_CFLAGS
25051 wx_cv_libs_gtk=$GTK_LIBS
25052 fi
25053
25054
25055fi
25056
25057
25058 if test "$gtk_version_cached" = 1; then
25059 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25060echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25061 fi
25062
25063 case "$wx_cv_lib_gtk" in
25064 2.0) WXGTK20=1
25065 TOOLKIT_VERSION=2
25066 ;;
25067 1.2.7) WXGTK127=1
25068 WXGTK12=1
25069 ;;
25070 1.2.3) WXGTK12=1
25071 ;;
25072 *) { { echo "$as_me:$LINENO: error:
25073Please check that gtk-config is in path, the directory
25074where GTK+ libraries are installed (returned by
25075'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25076equivalent variable and GTK+ is version 1.2.3 or above.
25077 " >&5
25078echo "$as_me: error:
25079Please check that gtk-config is in path, the directory
25080where GTK+ libraries are installed (returned by
25081'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25082equivalent variable and GTK+ is version 1.2.3 or above.
25083 " >&2;}
25084 { (exit 1); exit 1; }; }
25085 ;;
25086 esac
25087
25088 if test "$WXGTK20" = 1; then
304205f1
VS
25089 save_CFLAGS="$CFLAGS"
25090 save_LIBS="$LIBS"
25091 CFLAGS="$CFLAGS $GTK_CFLAGS"
25092 LIBS="$LIBS $GTK_LIBS"
25093
9755e73b 25094
304205f1
VS
25095for ac_func in pango_font_family_is_monospace
25096do
25097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25098echo "$as_me:$LINENO: checking for $ac_func" >&5
25099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25100if eval "test \"\${$as_ac_var+set}\" = set"; then
25101 echo $ECHO_N "(cached) $ECHO_C" >&6
25102else
25103 cat >conftest.$ac_ext <<_ACEOF
25104/* confdefs.h. */
25105_ACEOF
25106cat confdefs.h >>conftest.$ac_ext
25107cat >>conftest.$ac_ext <<_ACEOF
25108/* end confdefs.h. */
25109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25111#define $ac_func innocuous_$ac_func
25112
25113/* System header to define __stub macros and hopefully few prototypes,
25114 which can conflict with char $ac_func (); below.
25115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25116 <limits.h> exists even on freestanding compilers. */
25117
25118#ifdef __STDC__
25119# include <limits.h>
25120#else
25121# include <assert.h>
25122#endif
25123
25124#undef $ac_func
25125
25126/* Override any gcc2 internal prototype to avoid an error. */
25127#ifdef __cplusplus
25128extern "C"
25129{
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. */
25133char $ac_func ();
25134/* The GNU C library defines this for functions which it implements
25135 to always fail with ENOSYS. Some functions are actually named
25136 something starting with __ and the normal name is an alias. */
25137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25138choke me
25139#else
25140char (*f) () = $ac_func;
25141#endif
25142#ifdef __cplusplus
25143}
25144#endif
25145
25146int
25147main ()
25148{
25149return f != $ac_func;
25150 ;
25151 return 0;
25152}
25153_ACEOF
25154rm -f conftest.$ac_objext conftest$ac_exeext
25155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25156 (eval $ac_link) 2>conftest.er1
25157 ac_status=$?
25158 grep -v '^ *+' conftest.er1 >conftest.err
25159 rm -f conftest.er1
25160 cat conftest.err >&5
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); } &&
07158944 25163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25165 (eval $ac_try) 2>&5
25166 ac_status=$?
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); }; } &&
25169 { ac_try='test -s conftest$ac_exeext'
25170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25171 (eval $ac_try) 2>&5
25172 ac_status=$?
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); }; }; then
25175 eval "$as_ac_var=yes"
25176else
25177 echo "$as_me: failed program was:" >&5
25178sed 's/^/| /' conftest.$ac_ext >&5
25179
25180eval "$as_ac_var=no"
25181fi
25182rm -f conftest.err conftest.$ac_objext \
25183 conftest$ac_exeext conftest.$ac_ext
25184fi
25185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25186echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25187if test `eval echo '${'$as_ac_var'}'` = yes; then
25188 cat >>confdefs.h <<_ACEOF
25189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25190_ACEOF
25191
25192fi
25193done
25194
9755e73b
VS
25195
25196 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25197echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25198 cat >conftest.$ac_ext <<_ACEOF
25199/* confdefs.h. */
25200_ACEOF
25201cat confdefs.h >>conftest.$ac_ext
25202cat >>conftest.$ac_ext <<_ACEOF
25203/* end confdefs.h. */
25204
25205 #include <gtk/gtk.h>
25206
25207int
25208main ()
25209{
25210
25211 #if !GTK_CHECK_VERSION(2,4,0)
25212 #error "Not GTK+ 2.4"
25213 #endif
25214
25215 ;
25216 return 0;
25217}
25218_ACEOF
25219rm -f conftest.$ac_objext
25220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25221 (eval $ac_compile) 2>conftest.er1
25222 ac_status=$?
25223 grep -v '^ *+' conftest.er1 >conftest.err
25224 rm -f conftest.er1
25225 cat conftest.err >&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } &&
07158944 25228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25230 (eval $ac_try) 2>&5
25231 ac_status=$?
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); }; } &&
25234 { ac_try='test -s conftest.$ac_objext'
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25237 ac_status=$?
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }; then
25240
25241 cat >>confdefs.h <<\_ACEOF
25242#define __WXGTK24__ 1
25243_ACEOF
25244
25245 echo "$as_me:$LINENO: result: yes" >&5
25246echo "${ECHO_T}yes" >&6
25247
25248else
25249 echo "$as_me: failed program was:" >&5
25250sed 's/^/| /' conftest.$ac_ext >&5
25251
25252
25253 echo "$as_me:$LINENO: result: no" >&5
25254echo "${ECHO_T}no" >&6
25255
25256fi
25257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25258
304205f1
VS
25259 CFLAGS="$save_CFLAGS"
25260 LIBS="$save_LIBS"
a848cd7e
SC
25261 else
25262 if test "$wxUSE_UNICODE" = "yes"; then
25263 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25264echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25265 wxUSE_UNICODE=no
25266 fi
25267 fi
25268
25269 if test "$USE_DARWIN" != 1; then
25270
25271for ac_func in poll
25272do
25273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25274echo "$as_me:$LINENO: checking for $ac_func" >&5
25275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25276if eval "test \"\${$as_ac_var+set}\" = set"; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25278else
25279 cat >conftest.$ac_ext <<_ACEOF
25280/* confdefs.h. */
25281_ACEOF
25282cat confdefs.h >>conftest.$ac_ext
25283cat >>conftest.$ac_ext <<_ACEOF
25284/* end confdefs.h. */
ac1cb8d3
VS
25285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25287#define $ac_func innocuous_$ac_func
25288
a848cd7e
SC
25289/* System header to define __stub macros and hopefully few prototypes,
25290 which can conflict with char $ac_func (); below.
25291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25292 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25293
a848cd7e
SC
25294#ifdef __STDC__
25295# include <limits.h>
25296#else
25297# include <assert.h>
25298#endif
ac1cb8d3
VS
25299
25300#undef $ac_func
25301
a848cd7e
SC
25302/* Override any gcc2 internal prototype to avoid an error. */
25303#ifdef __cplusplus
25304extern "C"
25305{
25306#endif
25307/* We use char because int might match the return type of a gcc2
25308 builtin and then its argument prototype would still apply. */
25309char $ac_func ();
25310/* The GNU C library defines this for functions which it implements
25311 to always fail with ENOSYS. Some functions are actually named
25312 something starting with __ and the normal name is an alias. */
25313#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25314choke me
25315#else
25316char (*f) () = $ac_func;
25317#endif
25318#ifdef __cplusplus
25319}
25320#endif
25321
25322int
25323main ()
25324{
25325return f != $ac_func;
25326 ;
25327 return 0;
25328}
25329_ACEOF
25330rm -f conftest.$ac_objext conftest$ac_exeext
25331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25332 (eval $ac_link) 2>conftest.er1
a848cd7e 25333 ac_status=$?
ac1cb8d3
VS
25334 grep -v '^ *+' conftest.er1 >conftest.err
25335 rm -f conftest.er1
25336 cat conftest.err >&5
a848cd7e
SC
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); } &&
07158944 25339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341 (eval $ac_try) 2>&5
25342 ac_status=$?
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; } &&
25345 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); }; }; then
25351 eval "$as_ac_var=yes"
25352else
25353 echo "$as_me: failed program was:" >&5
25354sed 's/^/| /' conftest.$ac_ext >&5
25355
25356eval "$as_ac_var=no"
25357fi
ac1cb8d3
VS
25358rm -f conftest.err conftest.$ac_objext \
25359 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25360fi
25361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25362echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25363if test `eval echo '${'$as_ac_var'}'` = yes; then
25364 cat >>confdefs.h <<_ACEOF
25365#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25366_ACEOF
25367
25368fi
25369done
25370
25371 fi
25372
25373 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25374 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25375
25376 AFMINSTALL=afminstall
25377 TOOLKIT=GTK
25378 GUIDIST=GTK_DIST
25379
25380 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25381echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25382if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25383 echo $ECHO_N "(cached) $ECHO_C" >&6
25384else
25385 ac_check_lib_save_LIBS=$LIBS
25386LIBS="-lgdk $LIBS"
25387cat >conftest.$ac_ext <<_ACEOF
25388/* confdefs.h. */
25389_ACEOF
25390cat confdefs.h >>conftest.$ac_ext
25391cat >>conftest.$ac_ext <<_ACEOF
25392/* end confdefs.h. */
25393
25394/* Override any gcc2 internal prototype to avoid an error. */
25395#ifdef __cplusplus
25396extern "C"
25397#endif
25398/* We use char because int might match the return type of a gcc2
25399 builtin and then its argument prototype would still apply. */
25400char gdk_im_open ();
25401int
25402main ()
25403{
25404gdk_im_open ();
25405 ;
25406 return 0;
25407}
25408_ACEOF
25409rm -f conftest.$ac_objext conftest$ac_exeext
25410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25411 (eval $ac_link) 2>conftest.er1
a848cd7e 25412 ac_status=$?
ac1cb8d3
VS
25413 grep -v '^ *+' conftest.er1 >conftest.err
25414 rm -f conftest.er1
25415 cat conftest.err >&5
a848cd7e
SC
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); } &&
07158944 25418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25420 (eval $ac_try) 2>&5
25421 ac_status=$?
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); }; } &&
25424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25426 (eval $ac_try) 2>&5
25427 ac_status=$?
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); }; }; then
25430 ac_cv_lib_gdk_gdk_im_open=yes
25431else
25432 echo "$as_me: failed program was:" >&5
25433sed 's/^/| /' conftest.$ac_ext >&5
25434
25435ac_cv_lib_gdk_gdk_im_open=no
25436fi
ac1cb8d3
VS
25437rm -f conftest.err conftest.$ac_objext \
25438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25439LIBS=$ac_check_lib_save_LIBS
25440fi
25441echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25442echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25443if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25444 cat >>confdefs.h <<\_ACEOF
25445#define HAVE_XIM 1
25446_ACEOF
25447
25448fi
25449
25450
25451
25452 if test "$wxUSE_GPE" = "yes"; then
25453 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25454echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25455
25456ac_find_libraries=
25457for ac_dir in $SEARCH_LIB /usr/lib;
25458 do
25459 for ac_extension in a so sl dylib; do
25460 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25461 ac_find_libraries=$ac_dir
25462 break 2
25463 fi
25464 done
25465 done
25466
25467 if test "$ac_find_libraries" != "" ; then
25468
25469 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25470 result=$?
25471 if test $result = 0; then
25472 ac_path_to_link=""
25473 else
25474 ac_path_to_link=" -L$ac_find_libraries"
25475 fi
25476
25477 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25478 WXGPE=1
25479 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25480echo "${ECHO_T}found at $ac_find_libraries" >&6
25481 else
25482 echo "$as_me:$LINENO: result: not found" >&5
25483echo "${ECHO_T}not found" >&6
25484 fi
25485
25486 fi
25487 fi
25488
25489 if test "$wxUSE_MGL" = 1; then
25490 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25491echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25492 if test "x$MGL_ROOT" = x ; then
25493 echo "$as_me:$LINENO: result: not found" >&5
25494echo "${ECHO_T}not found" >&6
25495 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25496echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25497 { (exit 1); exit 1; }; }
25498 else
25499 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25500echo "${ECHO_T}$MGL_ROOT" >&6
25501 fi
25502
25503 echo "$as_me:$LINENO: checking for libmgl location" >&5
25504echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25505 case "${host}" in
25506 *-*-linux* )
25507 if test "x$wxUSE_SHARED" = xyes ; then
25508 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25509 else
25510 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25511 fi
25512 ;;
25513 *-pc-msdosdjgpp )
25514 mgl_os_candidates="dos32/dj2"
25515 ;;
25516 *)
25517 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25518echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25519 { (exit 1); exit 1; }; }
25520 esac
25521
25522 mgl_lib_type=""
25523 mgl_os=""
25524
25525 for mgl_os_i in $mgl_os_candidates ; do
25526 if test "x$mgl_os" = x ; then
25527 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25528 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25529 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25530 mgl_lib_type=debug
25531 mgl_os=$mgl_os_i
25532 fi
25533 fi
25534 if test "x$mgl_lib_type" = x ; then
25535 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25536 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25537 mgl_lib_type=release
25538 mgl_os=$mgl_os_i
25539 fi
25540 fi
25541 fi
25542 done
25543
25544 if test "x$mgl_os" = x ; then
25545 echo "$as_me:$LINENO: result: not found" >&5
25546echo "${ECHO_T}not found" >&6
25547 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25548echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25549 { (exit 1); exit 1; }; }
25550 fi
25551 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25552echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25553
25554 wxUSE_UNIVERSAL="yes"
25555
25556 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25557 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25558
25559 AFMINSTALL=afminstall
25560 TOOLKIT=MGL
25561 GUIDIST=MGL_DIST
25562 fi
25563
25564 if test "$wxUSE_MICROWIN" = 1; then
25565 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25566echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25567 if test "x$MICROWINDOWS" = x ; then
25568 echo "$as_me:$LINENO: result: not found" >&5
25569echo "${ECHO_T}not found" >&6
25570 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25571echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25572 { (exit 1); exit 1; }; }
25573 else
25574 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25575echo "${ECHO_T}$MICROWINDOWS" >&6
25576 fi
25577
25578 if test -f $MICROWINDOWS/lib/libmwin.a; then
25579 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25580echo "${ECHO_T}MicroWindows' libraries found." >&6
25581 else
25582 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25583echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25584 { (exit 1); exit 1; }; }
25585 fi
25586
25587 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25588 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25589
25590 wxUSE_UNIVERSAL="yes"
25591
25592 AFMINSTALL=afminstall
25593 TOOLKIT=MICROWIN
25594 GUIDIST=MICROWIN_DIST
25595
25596 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25597 fi
25598
74b84332 25599 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
07158944
VZ
25600
25601if test "x$ac_path_x_has_been_run" != xyes; then
25602 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25603echo $ECHO_N "checking for X... $ECHO_C" >&6
25604
07158944 25605ac_path_x_has_been_run=yes
a848cd7e
SC
25606
25607# Check whether --with-x or --without-x was given.
25608if test "${with_x+set}" = set; then
25609 withval="$with_x"
25610
25611fi;
25612# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25613if test "x$with_x" = xno; then
25614 # The user explicitly disabled X.
25615 have_x=disabled
25616else
25617 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25618 # Both variables are already set.
25619 have_x=yes
25620 else
25621 if test "${ac_cv_have_x+set}" = set; then
25622 echo $ECHO_N "(cached) $ECHO_C" >&6
25623else
25624 # One or both of the vars are not set, and there is no cached value.
25625ac_x_includes=no ac_x_libraries=no
25626rm -fr conftest.dir
25627if mkdir conftest.dir; then
25628 cd conftest.dir
25629 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25630 cat >Imakefile <<'_ACEOF'
25631acfindx:
25632 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25633_ACEOF
25634 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25635 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25636 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25637 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25638 for ac_extension in a so sl; do
25639 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25640 test -f $ac_im_libdir/libX11.$ac_extension; then
25641 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25642 fi
25643 done
25644 # Screen out bogus values from the imake configuration. They are
25645 # bogus both because they are the default anyway, and because
25646 # using them would break gcc on systems where it needs fixed includes.
25647 case $ac_im_incroot in
25648 /usr/include) ;;
25649 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25650 esac
25651 case $ac_im_usrlibdir in
25652 /usr/lib | /lib) ;;
25653 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25654 esac
25655 fi
25656 cd ..
25657 rm -fr conftest.dir
25658fi
25659
25660# Standard set of common directories for X headers.
25661# Check X11 before X11Rn because it is often a symlink to the current release.
25662ac_x_header_dirs='
25663/usr/X11/include
25664/usr/X11R6/include
25665/usr/X11R5/include
25666/usr/X11R4/include
25667
25668/usr/include/X11
25669/usr/include/X11R6
25670/usr/include/X11R5
25671/usr/include/X11R4
25672
25673/usr/local/X11/include
25674/usr/local/X11R6/include
25675/usr/local/X11R5/include
25676/usr/local/X11R4/include
25677
25678/usr/local/include/X11
25679/usr/local/include/X11R6
25680/usr/local/include/X11R5
25681/usr/local/include/X11R4
25682
25683/usr/X386/include
25684/usr/x386/include
25685/usr/XFree86/include/X11
25686
25687/usr/include
25688/usr/local/include
25689/usr/unsupported/include
25690/usr/athena/include
25691/usr/local/x11r5/include
25692/usr/lpp/Xamples/include
25693
25694/usr/openwin/include
25695/usr/openwin/share/include'
25696
25697if test "$ac_x_includes" = no; then
07158944 25698 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
25699 # First, try using that file with no special directory specified.
25700 cat >conftest.$ac_ext <<_ACEOF
25701/* confdefs.h. */
25702_ACEOF
25703cat confdefs.h >>conftest.$ac_ext
25704cat >>conftest.$ac_ext <<_ACEOF
25705/* end confdefs.h. */
25706#include <X11/Intrinsic.h>
25707_ACEOF
25708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25710 ac_status=$?
25711 grep -v '^ *+' conftest.er1 >conftest.err
25712 rm -f conftest.er1
25713 cat conftest.err >&5
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); } >/dev/null; then
25716 if test -s conftest.err; then
25717 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25719 else
25720 ac_cpp_err=
25721 fi
25722else
25723 ac_cpp_err=yes
25724fi
25725if test -z "$ac_cpp_err"; then
25726 # We can compile using X headers with no special include directory.
25727ac_x_includes=
25728else
25729 echo "$as_me: failed program was:" >&5
25730sed 's/^/| /' conftest.$ac_ext >&5
25731
25732 for ac_dir in $ac_x_header_dirs; do
25733 if test -r "$ac_dir/X11/Intrinsic.h"; then
25734 ac_x_includes=$ac_dir
25735 break
25736 fi
25737done
25738fi
25739rm -f conftest.err conftest.$ac_ext
25740fi # $ac_x_includes = no
25741
25742if test "$ac_x_libraries" = no; then
25743 # Check for the libraries.
25744 # See if we find them without any special options.
25745 # Don't add to $LIBS permanently.
25746 ac_save_LIBS=$LIBS
25747 LIBS="-lXt $LIBS"
25748 cat >conftest.$ac_ext <<_ACEOF
25749/* confdefs.h. */
25750_ACEOF
25751cat confdefs.h >>conftest.$ac_ext
25752cat >>conftest.$ac_ext <<_ACEOF
25753/* end confdefs.h. */
25754#include <X11/Intrinsic.h>
25755int
25756main ()
25757{
25758XtMalloc (0)
25759 ;
25760 return 0;
25761}
25762_ACEOF
25763rm -f conftest.$ac_objext conftest$ac_exeext
25764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25765 (eval $ac_link) 2>conftest.er1
a848cd7e 25766 ac_status=$?
ac1cb8d3
VS
25767 grep -v '^ *+' conftest.er1 >conftest.err
25768 rm -f conftest.er1
25769 cat conftest.err >&5
a848cd7e
SC
25770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771 (exit $ac_status); } &&
07158944 25772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25774 (eval $ac_try) 2>&5
25775 ac_status=$?
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); }; } &&
25778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780 (eval $ac_try) 2>&5
25781 ac_status=$?
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); }; }; then
25784 LIBS=$ac_save_LIBS
25785# We can link X programs with no special library path.
25786ac_x_libraries=
25787else
25788 echo "$as_me: failed program was:" >&5
25789sed 's/^/| /' conftest.$ac_ext >&5
25790
25791LIBS=$ac_save_LIBS
25792for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25793do
25794 # Don't even attempt the hair of trying to link an X program!
25795 for ac_extension in a so sl; do
25796 if test -r $ac_dir/libXt.$ac_extension; then
25797 ac_x_libraries=$ac_dir
25798 break 2
25799 fi
25800 done
25801done
25802fi
ac1cb8d3
VS
25803rm -f conftest.err conftest.$ac_objext \
25804 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25805fi # $ac_x_libraries = no
25806
25807if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25808 # Didn't find X anywhere. Cache the known absence of X.
25809 ac_cv_have_x="have_x=no"
25810else
25811 # Record where we found X for the cache.
25812 ac_cv_have_x="have_x=yes \
ac1cb8d3 25813 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25814fi
25815fi
25816
25817 fi
25818 eval "$ac_cv_have_x"
25819fi # $with_x != no
25820
25821if test "$have_x" != yes; then
25822 echo "$as_me:$LINENO: result: $have_x" >&5
25823echo "${ECHO_T}$have_x" >&6
25824 no_x=yes
25825else
25826 # If each of the values was on the command line, it overrides each guess.
25827 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25828 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25829 # Update the cache value to reflect the command line values.
25830 ac_cv_have_x="have_x=yes \
25831 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
07158944
VZ
25832 # It might be that x_includes is empty (headers are found in the
25833 # standard search path. Then output the corresponding message
25834 ac_out_x_includes=$x_includes
25835 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
25836 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
25837echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
25838fi
25839
07158944 25840fi
a848cd7e
SC
25841if test "$no_x" = yes; then
25842 # Not all programs may use this symbol, but it does not hurt to define it.
25843
25844cat >>confdefs.h <<\_ACEOF
25845#define X_DISPLAY_MISSING 1
25846_ACEOF
25847
25848 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25849else
25850 if test -n "$x_includes"; then
25851 X_CFLAGS="$X_CFLAGS -I$x_includes"
25852 fi
25853
25854 # It would also be nice to do this for all -L options, not just this one.
25855 if test -n "$x_libraries"; then
25856 X_LIBS="$X_LIBS -L$x_libraries"
25857 # For Solaris; some versions of Sun CC require a space after -R and
25858 # others require no space. Words are not sufficient . . . .
25859 case `(uname -sr) 2>/dev/null` in
25860 "SunOS 5"*)
25861 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25862echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25863 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25864 cat >conftest.$ac_ext <<_ACEOF
25865/* confdefs.h. */
25866_ACEOF
25867cat confdefs.h >>conftest.$ac_ext
25868cat >>conftest.$ac_ext <<_ACEOF
25869/* end confdefs.h. */
25870
25871int
25872main ()
25873{
25874
25875 ;
25876 return 0;
25877}
25878_ACEOF
25879rm -f conftest.$ac_objext conftest$ac_exeext
25880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25881 (eval $ac_link) 2>conftest.er1
a848cd7e 25882 ac_status=$?
ac1cb8d3
VS
25883 grep -v '^ *+' conftest.er1 >conftest.err
25884 rm -f conftest.er1
25885 cat conftest.err >&5
a848cd7e
SC
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); } &&
07158944 25888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890 (eval $ac_try) 2>&5
25891 ac_status=$?
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); }; } &&
25894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896 (eval $ac_try) 2>&5
25897 ac_status=$?
25898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); }; }; then
25900 ac_R_nospace=yes
25901else
25902 echo "$as_me: failed program was:" >&5
25903sed 's/^/| /' conftest.$ac_ext >&5
25904
25905ac_R_nospace=no
25906fi
ac1cb8d3
VS
25907rm -f conftest.err conftest.$ac_objext \
25908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25909 if test $ac_R_nospace = yes; then
25910 echo "$as_me:$LINENO: result: no" >&5
25911echo "${ECHO_T}no" >&6
25912 X_LIBS="$X_LIBS -R$x_libraries"
25913 else
25914 LIBS="$ac_xsave_LIBS -R $x_libraries"
25915 cat >conftest.$ac_ext <<_ACEOF
25916/* confdefs.h. */
25917_ACEOF
25918cat confdefs.h >>conftest.$ac_ext
25919cat >>conftest.$ac_ext <<_ACEOF
25920/* end confdefs.h. */
25921
25922int
25923main ()
25924{
25925
25926 ;
25927 return 0;
25928}
25929_ACEOF
25930rm -f conftest.$ac_objext conftest$ac_exeext
25931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25932 (eval $ac_link) 2>conftest.er1
a848cd7e 25933 ac_status=$?
ac1cb8d3
VS
25934 grep -v '^ *+' conftest.er1 >conftest.err
25935 rm -f conftest.er1
25936 cat conftest.err >&5
a848cd7e
SC
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); } &&
07158944 25939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941 (eval $ac_try) 2>&5
25942 ac_status=$?
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; } &&
25945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25947 (eval $ac_try) 2>&5
25948 ac_status=$?
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); }; }; then
25951 ac_R_space=yes
25952else
25953 echo "$as_me: failed program was:" >&5
25954sed 's/^/| /' conftest.$ac_ext >&5
25955
25956ac_R_space=no
25957fi
ac1cb8d3
VS
25958rm -f conftest.err conftest.$ac_objext \
25959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25960 if test $ac_R_space = yes; then
25961 echo "$as_me:$LINENO: result: yes" >&5
25962echo "${ECHO_T}yes" >&6
25963 X_LIBS="$X_LIBS -R $x_libraries"
25964 else
25965 echo "$as_me:$LINENO: result: neither works" >&5
25966echo "${ECHO_T}neither works" >&6
25967 fi
25968 fi
25969 LIBS=$ac_xsave_LIBS
25970 esac
25971 fi
25972
25973 # Check for system-dependent libraries X programs must link with.
25974 # Do this before checking for the system-independent R6 libraries
25975 # (-lICE), since we may need -lsocket or whatever for X linking.
25976
25977 if test "$ISC" = yes; then
25978 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25979 else
25980 # Martyn Johnson says this is needed for Ultrix, if the X
25981 # libraries were built with DECnet support. And Karl Berry says
25982 # the Alpha needs dnet_stub (dnet does not exist).
25983 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25984 cat >conftest.$ac_ext <<_ACEOF
25985/* confdefs.h. */
25986_ACEOF
25987cat confdefs.h >>conftest.$ac_ext
25988cat >>conftest.$ac_ext <<_ACEOF
25989/* end confdefs.h. */
25990
25991/* Override any gcc2 internal prototype to avoid an error. */
25992#ifdef __cplusplus
25993extern "C"
25994#endif
25995/* We use char because int might match the return type of a gcc2
25996 builtin and then its argument prototype would still apply. */
25997char XOpenDisplay ();
25998int
25999main ()
26000{
26001XOpenDisplay ();
26002 ;
26003 return 0;
26004}
26005_ACEOF
26006rm -f conftest.$ac_objext conftest$ac_exeext
26007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26008 (eval $ac_link) 2>conftest.er1
a848cd7e 26009 ac_status=$?
ac1cb8d3
VS
26010 grep -v '^ *+' conftest.er1 >conftest.err
26011 rm -f conftest.er1
26012 cat conftest.err >&5
a848cd7e
SC
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); } &&
07158944 26015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; } &&
26021 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023 (eval $ac_try) 2>&5
26024 ac_status=$?
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); }; }; then
26027 :
26028else
26029 echo "$as_me: failed program was:" >&5
26030sed 's/^/| /' conftest.$ac_ext >&5
26031
26032echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26033echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26034if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26035 echo $ECHO_N "(cached) $ECHO_C" >&6
26036else
26037 ac_check_lib_save_LIBS=$LIBS
26038LIBS="-ldnet $LIBS"
26039cat >conftest.$ac_ext <<_ACEOF
26040/* confdefs.h. */
26041_ACEOF
26042cat confdefs.h >>conftest.$ac_ext
26043cat >>conftest.$ac_ext <<_ACEOF
26044/* end confdefs.h. */
26045
26046/* Override any gcc2 internal prototype to avoid an error. */
26047#ifdef __cplusplus
26048extern "C"
26049#endif
26050/* We use char because int might match the return type of a gcc2
26051 builtin and then its argument prototype would still apply. */
26052char dnet_ntoa ();
26053int
26054main ()
26055{
26056dnet_ntoa ();
26057 ;
26058 return 0;
26059}
26060_ACEOF
26061rm -f conftest.$ac_objext conftest$ac_exeext
26062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26063 (eval $ac_link) 2>conftest.er1
a848cd7e 26064 ac_status=$?
ac1cb8d3
VS
26065 grep -v '^ *+' conftest.er1 >conftest.err
26066 rm -f conftest.er1
26067 cat conftest.err >&5
a848cd7e
SC
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } &&
07158944 26070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26072 (eval $ac_try) 2>&5
26073 ac_status=$?
26074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075 (exit $ac_status); }; } &&
26076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26078 (eval $ac_try) 2>&5
26079 ac_status=$?
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); }; }; then
26082 ac_cv_lib_dnet_dnet_ntoa=yes
26083else
26084 echo "$as_me: failed program was:" >&5
26085sed 's/^/| /' conftest.$ac_ext >&5
26086
26087ac_cv_lib_dnet_dnet_ntoa=no
26088fi
ac1cb8d3
VS
26089rm -f conftest.err conftest.$ac_objext \
26090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26091LIBS=$ac_check_lib_save_LIBS
26092fi
26093echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26094echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26095if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26096 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26097fi
26098
26099 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26100 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26101echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26102if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26103 echo $ECHO_N "(cached) $ECHO_C" >&6
26104else
26105 ac_check_lib_save_LIBS=$LIBS
26106LIBS="-ldnet_stub $LIBS"
26107cat >conftest.$ac_ext <<_ACEOF
26108/* confdefs.h. */
26109_ACEOF
26110cat confdefs.h >>conftest.$ac_ext
26111cat >>conftest.$ac_ext <<_ACEOF
26112/* end confdefs.h. */
26113
26114/* Override any gcc2 internal prototype to avoid an error. */
26115#ifdef __cplusplus
26116extern "C"
26117#endif
26118/* We use char because int might match the return type of a gcc2
26119 builtin and then its argument prototype would still apply. */
26120char dnet_ntoa ();
26121int
26122main ()
26123{
26124dnet_ntoa ();
26125 ;
26126 return 0;
26127}
26128_ACEOF
26129rm -f conftest.$ac_objext conftest$ac_exeext
26130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26131 (eval $ac_link) 2>conftest.er1
a848cd7e 26132 ac_status=$?
ac1cb8d3
VS
26133 grep -v '^ *+' conftest.er1 >conftest.err
26134 rm -f conftest.er1
26135 cat conftest.err >&5
a848cd7e
SC
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); } &&
07158944 26138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26140 (eval $ac_try) 2>&5
26141 ac_status=$?
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); }; } &&
26144 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26146 (eval $ac_try) 2>&5
26147 ac_status=$?
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); }; }; then
26150 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26151else
26152 echo "$as_me: failed program was:" >&5
26153sed 's/^/| /' conftest.$ac_ext >&5
26154
26155ac_cv_lib_dnet_stub_dnet_ntoa=no
26156fi
ac1cb8d3
VS
26157rm -f conftest.err conftest.$ac_objext \
26158 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26159LIBS=$ac_check_lib_save_LIBS
26160fi
26161echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26162echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26163if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26164 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26165fi
26166
26167 fi
26168fi
ac1cb8d3
VS
26169rm -f conftest.err conftest.$ac_objext \
26170 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26171 LIBS="$ac_xsave_LIBS"
26172
26173 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26174 # to get the SysV transport functions.
26175 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26176 # needs -lnsl.
26177 # The nsl library prevents programs from opening the X display
26178 # on Irix 5.2, according to T.E. Dickey.
26179 # The functions gethostbyname, getservbyname, and inet_addr are
26180 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26181 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26182echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26183if test "${ac_cv_func_gethostbyname+set}" = set; then
26184 echo $ECHO_N "(cached) $ECHO_C" >&6
26185else
26186 cat >conftest.$ac_ext <<_ACEOF
26187/* confdefs.h. */
26188_ACEOF
26189cat confdefs.h >>conftest.$ac_ext
26190cat >>conftest.$ac_ext <<_ACEOF
26191/* end confdefs.h. */
ac1cb8d3
VS
26192/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26194#define gethostbyname innocuous_gethostbyname
26195
a848cd7e
SC
26196/* System header to define __stub macros and hopefully few prototypes,
26197 which can conflict with char gethostbyname (); below.
26198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26199 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26200
a848cd7e
SC
26201#ifdef __STDC__
26202# include <limits.h>
26203#else
26204# include <assert.h>
26205#endif
ac1cb8d3
VS
26206
26207#undef gethostbyname
26208
a848cd7e
SC
26209/* Override any gcc2 internal prototype to avoid an error. */
26210#ifdef __cplusplus
26211extern "C"
26212{
26213#endif
26214/* We use char because int might match the return type of a gcc2
26215 builtin and then its argument prototype would still apply. */
26216char gethostbyname ();
26217/* The GNU C library defines this for functions which it implements
26218 to always fail with ENOSYS. Some functions are actually named
26219 something starting with __ and the normal name is an alias. */
26220#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26221choke me
26222#else
26223char (*f) () = gethostbyname;
26224#endif
26225#ifdef __cplusplus
26226}
26227#endif
26228
26229int
26230main ()
26231{
26232return f != gethostbyname;
26233 ;
26234 return 0;
26235}
26236_ACEOF
26237rm -f conftest.$ac_objext conftest$ac_exeext
26238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26239 (eval $ac_link) 2>conftest.er1
a848cd7e 26240 ac_status=$?
ac1cb8d3
VS
26241 grep -v '^ *+' conftest.er1 >conftest.err
26242 rm -f conftest.er1
26243 cat conftest.err >&5
a848cd7e
SC
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); } &&
07158944 26246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; } &&
26252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); }; }; then
26258 ac_cv_func_gethostbyname=yes
26259else
26260 echo "$as_me: failed program was:" >&5
26261sed 's/^/| /' conftest.$ac_ext >&5
26262
26263ac_cv_func_gethostbyname=no
26264fi
ac1cb8d3
VS
26265rm -f conftest.err conftest.$ac_objext \
26266 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26267fi
26268echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26269echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26270
26271 if test $ac_cv_func_gethostbyname = no; then
26272 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26273echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26274if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26276else
26277 ac_check_lib_save_LIBS=$LIBS
26278LIBS="-lnsl $LIBS"
26279cat >conftest.$ac_ext <<_ACEOF
26280/* confdefs.h. */
26281_ACEOF
26282cat confdefs.h >>conftest.$ac_ext
26283cat >>conftest.$ac_ext <<_ACEOF
26284/* end confdefs.h. */
26285
26286/* Override any gcc2 internal prototype to avoid an error. */
26287#ifdef __cplusplus
26288extern "C"
26289#endif
26290/* We use char because int might match the return type of a gcc2
26291 builtin and then its argument prototype would still apply. */
26292char gethostbyname ();
26293int
26294main ()
26295{
26296gethostbyname ();
26297 ;
26298 return 0;
26299}
26300_ACEOF
26301rm -f conftest.$ac_objext conftest$ac_exeext
26302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26303 (eval $ac_link) 2>conftest.er1
26304 ac_status=$?
26305 grep -v '^ *+' conftest.er1 >conftest.err
26306 rm -f conftest.er1
26307 cat conftest.err >&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); } &&
07158944 26310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26312 (eval $ac_try) 2>&5
26313 ac_status=$?
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); }; } &&
26316 { ac_try='test -s conftest$ac_exeext'
26317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318 (eval $ac_try) 2>&5
26319 ac_status=$?
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); }; }; then
26322 ac_cv_lib_nsl_gethostbyname=yes
26323else
26324 echo "$as_me: failed program was:" >&5
26325sed 's/^/| /' conftest.$ac_ext >&5
26326
26327ac_cv_lib_nsl_gethostbyname=no
26328fi
26329rm -f conftest.err conftest.$ac_objext \
26330 conftest$ac_exeext conftest.$ac_ext
26331LIBS=$ac_check_lib_save_LIBS
26332fi
26333echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26334echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26335if test $ac_cv_lib_nsl_gethostbyname = yes; then
26336 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26337fi
26338
26339 if test $ac_cv_lib_nsl_gethostbyname = no; then
26340 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26341echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26342if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26343 echo $ECHO_N "(cached) $ECHO_C" >&6
26344else
26345 ac_check_lib_save_LIBS=$LIBS
26346LIBS="-lbsd $LIBS"
26347cat >conftest.$ac_ext <<_ACEOF
26348/* confdefs.h. */
26349_ACEOF
26350cat confdefs.h >>conftest.$ac_ext
26351cat >>conftest.$ac_ext <<_ACEOF
26352/* end confdefs.h. */
26353
26354/* Override any gcc2 internal prototype to avoid an error. */
26355#ifdef __cplusplus
26356extern "C"
26357#endif
26358/* We use char because int might match the return type of a gcc2
26359 builtin and then its argument prototype would still apply. */
26360char gethostbyname ();
26361int
26362main ()
26363{
26364gethostbyname ();
26365 ;
26366 return 0;
26367}
26368_ACEOF
26369rm -f conftest.$ac_objext conftest$ac_exeext
26370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26371 (eval $ac_link) 2>conftest.er1
a848cd7e 26372 ac_status=$?
ac1cb8d3
VS
26373 grep -v '^ *+' conftest.er1 >conftest.err
26374 rm -f conftest.er1
26375 cat conftest.err >&5
a848cd7e
SC
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); } &&
07158944 26378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26380 (eval $ac_try) 2>&5
26381 ac_status=$?
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26383 (exit $ac_status); }; } &&
26384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26386 (eval $ac_try) 2>&5
26387 ac_status=$?
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); }; }; then
26390 ac_cv_lib_bsd_gethostbyname=yes
26391else
26392 echo "$as_me: failed program was:" >&5
26393sed 's/^/| /' conftest.$ac_ext >&5
26394
26395ac_cv_lib_bsd_gethostbyname=no
26396fi
ac1cb8d3
VS
26397rm -f conftest.err conftest.$ac_objext \
26398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26399LIBS=$ac_check_lib_save_LIBS
26400fi
26401echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26402echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26403if test $ac_cv_lib_bsd_gethostbyname = yes; then
26404 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26405fi
26406
26407 fi
26408 fi
26409
26410 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26411 # socket/setsockopt and other routines are undefined under SCO ODT
26412 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26413 # on later versions), says Simon Leinen: it contains gethostby*
26414 # variants that don't use the name server (or something). -lsocket
26415 # must be given before -lnsl if both are needed. We assume that
26416 # if connect needs -lnsl, so does gethostbyname.
26417 echo "$as_me:$LINENO: checking for connect" >&5
26418echo $ECHO_N "checking for connect... $ECHO_C" >&6
26419if test "${ac_cv_func_connect+set}" = set; then
26420 echo $ECHO_N "(cached) $ECHO_C" >&6
26421else
26422 cat >conftest.$ac_ext <<_ACEOF
26423/* confdefs.h. */
26424_ACEOF
26425cat confdefs.h >>conftest.$ac_ext
26426cat >>conftest.$ac_ext <<_ACEOF
26427/* end confdefs.h. */
ac1cb8d3
VS
26428/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26430#define connect innocuous_connect
26431
a848cd7e
SC
26432/* System header to define __stub macros and hopefully few prototypes,
26433 which can conflict with char connect (); below.
26434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26435 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26436
a848cd7e
SC
26437#ifdef __STDC__
26438# include <limits.h>
26439#else
26440# include <assert.h>
26441#endif
ac1cb8d3
VS
26442
26443#undef connect
26444
a848cd7e
SC
26445/* Override any gcc2 internal prototype to avoid an error. */
26446#ifdef __cplusplus
26447extern "C"
26448{
26449#endif
26450/* We use char because int might match the return type of a gcc2
26451 builtin and then its argument prototype would still apply. */
26452char connect ();
26453/* The GNU C library defines this for functions which it implements
26454 to always fail with ENOSYS. Some functions are actually named
26455 something starting with __ and the normal name is an alias. */
26456#if defined (__stub_connect) || defined (__stub___connect)
26457choke me
26458#else
26459char (*f) () = connect;
26460#endif
26461#ifdef __cplusplus
26462}
26463#endif
26464
26465int
26466main ()
26467{
26468return f != connect;
26469 ;
26470 return 0;
26471}
26472_ACEOF
26473rm -f conftest.$ac_objext conftest$ac_exeext
26474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26475 (eval $ac_link) 2>conftest.er1
a848cd7e 26476 ac_status=$?
ac1cb8d3
VS
26477 grep -v '^ *+' conftest.er1 >conftest.err
26478 rm -f conftest.er1
26479 cat conftest.err >&5
a848cd7e
SC
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); } &&
07158944 26482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26485 ac_status=$?
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; } &&
26488 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26490 (eval $ac_try) 2>&5
26491 ac_status=$?
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); }; }; then
26494 ac_cv_func_connect=yes
26495else
26496 echo "$as_me: failed program was:" >&5
26497sed 's/^/| /' conftest.$ac_ext >&5
26498
26499ac_cv_func_connect=no
26500fi
ac1cb8d3
VS
26501rm -f conftest.err conftest.$ac_objext \
26502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26503fi
26504echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26505echo "${ECHO_T}$ac_cv_func_connect" >&6
26506
26507 if test $ac_cv_func_connect = no; then
26508 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26509echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26510if test "${ac_cv_lib_socket_connect+set}" = set; then
26511 echo $ECHO_N "(cached) $ECHO_C" >&6
26512else
26513 ac_check_lib_save_LIBS=$LIBS
26514LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26515cat >conftest.$ac_ext <<_ACEOF
26516/* confdefs.h. */
26517_ACEOF
26518cat confdefs.h >>conftest.$ac_ext
26519cat >>conftest.$ac_ext <<_ACEOF
26520/* end confdefs.h. */
26521
26522/* Override any gcc2 internal prototype to avoid an error. */
26523#ifdef __cplusplus
26524extern "C"
26525#endif
26526/* We use char because int might match the return type of a gcc2
26527 builtin and then its argument prototype would still apply. */
26528char connect ();
26529int
26530main ()
26531{
26532connect ();
26533 ;
26534 return 0;
26535}
26536_ACEOF
26537rm -f conftest.$ac_objext conftest$ac_exeext
26538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26539 (eval $ac_link) 2>conftest.er1
a848cd7e 26540 ac_status=$?
ac1cb8d3
VS
26541 grep -v '^ *+' conftest.er1 >conftest.err
26542 rm -f conftest.er1
26543 cat conftest.err >&5
a848cd7e
SC
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); } &&
07158944 26546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26548 (eval $ac_try) 2>&5
26549 ac_status=$?
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); }; } &&
26552 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26554 (eval $ac_try) 2>&5
26555 ac_status=$?
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); }; }; then
26558 ac_cv_lib_socket_connect=yes
26559else
26560 echo "$as_me: failed program was:" >&5
26561sed 's/^/| /' conftest.$ac_ext >&5
26562
26563ac_cv_lib_socket_connect=no
26564fi
ac1cb8d3
VS
26565rm -f conftest.err conftest.$ac_objext \
26566 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26567LIBS=$ac_check_lib_save_LIBS
26568fi
26569echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26570echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26571if test $ac_cv_lib_socket_connect = yes; then
26572 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26573fi
26574
26575 fi
26576
26577 # Guillermo Gomez says -lposix is necessary on A/UX.
26578 echo "$as_me:$LINENO: checking for remove" >&5
26579echo $ECHO_N "checking for remove... $ECHO_C" >&6
26580if test "${ac_cv_func_remove+set}" = set; then
26581 echo $ECHO_N "(cached) $ECHO_C" >&6
26582else
26583 cat >conftest.$ac_ext <<_ACEOF
26584/* confdefs.h. */
26585_ACEOF
26586cat confdefs.h >>conftest.$ac_ext
26587cat >>conftest.$ac_ext <<_ACEOF
26588/* end confdefs.h. */
ac1cb8d3
VS
26589/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26591#define remove innocuous_remove
26592
a848cd7e
SC
26593/* System header to define __stub macros and hopefully few prototypes,
26594 which can conflict with char remove (); below.
26595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26596 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26597
a848cd7e
SC
26598#ifdef __STDC__
26599# include <limits.h>
26600#else
26601# include <assert.h>
26602#endif
ac1cb8d3
VS
26603
26604#undef remove
26605
a848cd7e
SC
26606/* Override any gcc2 internal prototype to avoid an error. */
26607#ifdef __cplusplus
26608extern "C"
26609{
26610#endif
26611/* We use char because int might match the return type of a gcc2
26612 builtin and then its argument prototype would still apply. */
26613char remove ();
26614/* The GNU C library defines this for functions which it implements
26615 to always fail with ENOSYS. Some functions are actually named
26616 something starting with __ and the normal name is an alias. */
26617#if defined (__stub_remove) || defined (__stub___remove)
26618choke me
26619#else
26620char (*f) () = remove;
26621#endif
26622#ifdef __cplusplus
26623}
26624#endif
26625
26626int
26627main ()
26628{
26629return f != remove;
26630 ;
26631 return 0;
26632}
26633_ACEOF
26634rm -f conftest.$ac_objext conftest$ac_exeext
26635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26636 (eval $ac_link) 2>conftest.er1
a848cd7e 26637 ac_status=$?
ac1cb8d3
VS
26638 grep -v '^ *+' conftest.er1 >conftest.err
26639 rm -f conftest.er1
26640 cat conftest.err >&5
a848cd7e
SC
26641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); } &&
07158944 26643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26645 (eval $ac_try) 2>&5
26646 ac_status=$?
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); }; } &&
26649 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26651 (eval $ac_try) 2>&5
26652 ac_status=$?
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); }; }; then
26655 ac_cv_func_remove=yes
26656else
26657 echo "$as_me: failed program was:" >&5
26658sed 's/^/| /' conftest.$ac_ext >&5
26659
26660ac_cv_func_remove=no
26661fi
ac1cb8d3
VS
26662rm -f conftest.err conftest.$ac_objext \
26663 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26664fi
26665echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26666echo "${ECHO_T}$ac_cv_func_remove" >&6
26667
26668 if test $ac_cv_func_remove = no; then
26669 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26670echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26671if test "${ac_cv_lib_posix_remove+set}" = set; then
26672 echo $ECHO_N "(cached) $ECHO_C" >&6
26673else
26674 ac_check_lib_save_LIBS=$LIBS
26675LIBS="-lposix $LIBS"
26676cat >conftest.$ac_ext <<_ACEOF
26677/* confdefs.h. */
26678_ACEOF
26679cat confdefs.h >>conftest.$ac_ext
26680cat >>conftest.$ac_ext <<_ACEOF
26681/* end confdefs.h. */
26682
26683/* Override any gcc2 internal prototype to avoid an error. */
26684#ifdef __cplusplus
26685extern "C"
26686#endif
26687/* We use char because int might match the return type of a gcc2
26688 builtin and then its argument prototype would still apply. */
26689char remove ();
26690int
26691main ()
26692{
26693remove ();
26694 ;
26695 return 0;
26696}
26697_ACEOF
26698rm -f conftest.$ac_objext conftest$ac_exeext
26699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26700 (eval $ac_link) 2>conftest.er1
a848cd7e 26701 ac_status=$?
ac1cb8d3
VS
26702 grep -v '^ *+' conftest.er1 >conftest.err
26703 rm -f conftest.er1
26704 cat conftest.err >&5
a848cd7e
SC
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); } &&
07158944 26707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709 (eval $ac_try) 2>&5
26710 ac_status=$?
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); }; } &&
26713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26715 (eval $ac_try) 2>&5
26716 ac_status=$?
26717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718 (exit $ac_status); }; }; then
26719 ac_cv_lib_posix_remove=yes
26720else
26721 echo "$as_me: failed program was:" >&5
26722sed 's/^/| /' conftest.$ac_ext >&5
26723
26724ac_cv_lib_posix_remove=no
26725fi
ac1cb8d3
VS
26726rm -f conftest.err conftest.$ac_objext \
26727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26728LIBS=$ac_check_lib_save_LIBS
26729fi
26730echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26731echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26732if test $ac_cv_lib_posix_remove = yes; then
26733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26734fi
26735
26736 fi
26737
26738 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26739 echo "$as_me:$LINENO: checking for shmat" >&5
26740echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26741if test "${ac_cv_func_shmat+set}" = set; then
26742 echo $ECHO_N "(cached) $ECHO_C" >&6
26743else
26744 cat >conftest.$ac_ext <<_ACEOF
26745/* confdefs.h. */
26746_ACEOF
26747cat confdefs.h >>conftest.$ac_ext
26748cat >>conftest.$ac_ext <<_ACEOF
26749/* end confdefs.h. */
ac1cb8d3
VS
26750/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26752#define shmat innocuous_shmat
26753
a848cd7e
SC
26754/* System header to define __stub macros and hopefully few prototypes,
26755 which can conflict with char shmat (); below.
26756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26757 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26758
a848cd7e
SC
26759#ifdef __STDC__
26760# include <limits.h>
26761#else
26762# include <assert.h>
26763#endif
ac1cb8d3
VS
26764
26765#undef shmat
26766
a848cd7e
SC
26767/* Override any gcc2 internal prototype to avoid an error. */
26768#ifdef __cplusplus
26769extern "C"
26770{
26771#endif
26772/* We use char because int might match the return type of a gcc2
26773 builtin and then its argument prototype would still apply. */
26774char shmat ();
26775/* The GNU C library defines this for functions which it implements
26776 to always fail with ENOSYS. Some functions are actually named
26777 something starting with __ and the normal name is an alias. */
26778#if defined (__stub_shmat) || defined (__stub___shmat)
26779choke me
26780#else
26781char (*f) () = shmat;
26782#endif
26783#ifdef __cplusplus
26784}
26785#endif
26786
26787int
26788main ()
26789{
26790return f != shmat;
26791 ;
26792 return 0;
26793}
26794_ACEOF
26795rm -f conftest.$ac_objext conftest$ac_exeext
26796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26797 (eval $ac_link) 2>conftest.er1
a848cd7e 26798 ac_status=$?
ac1cb8d3
VS
26799 grep -v '^ *+' conftest.er1 >conftest.err
26800 rm -f conftest.er1
26801 cat conftest.err >&5
a848cd7e
SC
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); } &&
07158944 26804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26806 (eval $ac_try) 2>&5
26807 ac_status=$?
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); }; } &&
26810 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26812 (eval $ac_try) 2>&5
26813 ac_status=$?
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); }; }; then
26816 ac_cv_func_shmat=yes
26817else
26818 echo "$as_me: failed program was:" >&5
26819sed 's/^/| /' conftest.$ac_ext >&5
26820
26821ac_cv_func_shmat=no
26822fi
ac1cb8d3
VS
26823rm -f conftest.err conftest.$ac_objext \
26824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26825fi
26826echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26827echo "${ECHO_T}$ac_cv_func_shmat" >&6
26828
26829 if test $ac_cv_func_shmat = no; then
26830 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26831echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26832if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26833 echo $ECHO_N "(cached) $ECHO_C" >&6
26834else
26835 ac_check_lib_save_LIBS=$LIBS
26836LIBS="-lipc $LIBS"
26837cat >conftest.$ac_ext <<_ACEOF
26838/* confdefs.h. */
26839_ACEOF
26840cat confdefs.h >>conftest.$ac_ext
26841cat >>conftest.$ac_ext <<_ACEOF
26842/* end confdefs.h. */
26843
26844/* Override any gcc2 internal prototype to avoid an error. */
26845#ifdef __cplusplus
26846extern "C"
26847#endif
26848/* We use char because int might match the return type of a gcc2
26849 builtin and then its argument prototype would still apply. */
26850char shmat ();
26851int
26852main ()
26853{
26854shmat ();
26855 ;
26856 return 0;
26857}
26858_ACEOF
26859rm -f conftest.$ac_objext conftest$ac_exeext
26860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26861 (eval $ac_link) 2>conftest.er1
a848cd7e 26862 ac_status=$?
ac1cb8d3
VS
26863 grep -v '^ *+' conftest.er1 >conftest.err
26864 rm -f conftest.er1
26865 cat conftest.err >&5
a848cd7e
SC
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); } &&
07158944 26868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26870 (eval $ac_try) 2>&5
26871 ac_status=$?
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); }; } &&
26874 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876 (eval $ac_try) 2>&5
26877 ac_status=$?
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); }; }; then
26880 ac_cv_lib_ipc_shmat=yes
26881else
26882 echo "$as_me: failed program was:" >&5
26883sed 's/^/| /' conftest.$ac_ext >&5
26884
26885ac_cv_lib_ipc_shmat=no
26886fi
ac1cb8d3
VS
26887rm -f conftest.err conftest.$ac_objext \
26888 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26889LIBS=$ac_check_lib_save_LIBS
26890fi
26891echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26892echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26893if test $ac_cv_lib_ipc_shmat = yes; then
26894 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26895fi
26896
26897 fi
26898 fi
26899
26900 # Check for libraries that X11R6 Xt/Xaw programs need.
26901 ac_save_LDFLAGS=$LDFLAGS
26902 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26903 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26904 # check for ICE first), but we must link in the order -lSM -lICE or
26905 # we get undefined symbols. So assume we have SM if we have ICE.
26906 # These have to be linked with before -lX11, unlike the other
26907 # libraries we check for below, so use a different variable.
26908 # John Interrante, Karl Berry
26909 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26910echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26911if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26912 echo $ECHO_N "(cached) $ECHO_C" >&6
26913else
26914 ac_check_lib_save_LIBS=$LIBS
26915LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26916cat >conftest.$ac_ext <<_ACEOF
26917/* confdefs.h. */
26918_ACEOF
26919cat confdefs.h >>conftest.$ac_ext
26920cat >>conftest.$ac_ext <<_ACEOF
26921/* end confdefs.h. */
26922
26923/* Override any gcc2 internal prototype to avoid an error. */
26924#ifdef __cplusplus
26925extern "C"
26926#endif
26927/* We use char because int might match the return type of a gcc2
26928 builtin and then its argument prototype would still apply. */
26929char IceConnectionNumber ();
26930int
26931main ()
26932{
26933IceConnectionNumber ();
26934 ;
26935 return 0;
26936}
26937_ACEOF
26938rm -f conftest.$ac_objext conftest$ac_exeext
26939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26940 (eval $ac_link) 2>conftest.er1
a848cd7e 26941 ac_status=$?
ac1cb8d3
VS
26942 grep -v '^ *+' conftest.er1 >conftest.err
26943 rm -f conftest.er1
26944 cat conftest.err >&5
a848cd7e
SC
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); } &&
07158944 26947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26950 ac_status=$?
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; } &&
26953 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955 (eval $ac_try) 2>&5
26956 ac_status=$?
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); }; }; then
26959 ac_cv_lib_ICE_IceConnectionNumber=yes
26960else
26961 echo "$as_me: failed program was:" >&5
26962sed 's/^/| /' conftest.$ac_ext >&5
26963
26964ac_cv_lib_ICE_IceConnectionNumber=no
26965fi
ac1cb8d3
VS
26966rm -f conftest.err conftest.$ac_objext \
26967 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26968LIBS=$ac_check_lib_save_LIBS
26969fi
26970echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26971echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26972if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26973 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26974fi
26975
26976 LDFLAGS=$ac_save_LDFLAGS
26977
26978fi
26979
26980
26981 if test "$no_x" = "yes"; then
26982 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26983echo "$as_me: error: X11 not found" >&2;}
26984 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26985 fi
26986
74b84332
VS
26987 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
26988 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
26989 AFMINSTALL=afminstall
26990 COMPILED_X_PROGRAM=0
26991
74b84332
VS
26992 fi
26993
26994 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
26995 if test "$wxUSE_NANOX" = "yes"; then
26996 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
26997echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
26998 if test "x$MICROWIN" = x ; then
26999 echo "$as_me:$LINENO: result: not found" >&5
27000echo "${ECHO_T}not found" >&6
27001 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27002echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27003 { (exit 1); exit 1; }; }
27004 else
27005 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27006echo "${ECHO_T}$MICROWIN" >&6
27007 cat >>confdefs.h <<\_ACEOF
27008#define wxUSE_NANOX 1
27009_ACEOF
27010
27011 fi
27012 fi
27013
27014 if test "$wxUSE_UNICODE" = "yes"; then
27015
27016 succeeded=no
27017
27018 if test -z "$PKG_CONFIG"; then
27019 # Extract the first word of "pkg-config", so it can be a program name with args.
27020set dummy pkg-config; ac_word=$2
27021echo "$as_me:$LINENO: checking for $ac_word" >&5
27022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27023if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27024 echo $ECHO_N "(cached) $ECHO_C" >&6
27025else
27026 case $PKG_CONFIG in
27027 [\\/]* | ?:[\\/]*)
27028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27029 ;;
27030 *)
27031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27032for as_dir in $PATH
27033do
27034 IFS=$as_save_IFS
27035 test -z "$as_dir" && as_dir=.
27036 for ac_exec_ext in '' $ac_executable_extensions; do
27037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27040 break 2
27041 fi
27042done
27043done
27044
27045 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27046 ;;
27047esac
27048fi
27049PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27050
27051if test -n "$PKG_CONFIG"; then
27052 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27053echo "${ECHO_T}$PKG_CONFIG" >&6
27054else
27055 echo "$as_me:$LINENO: result: no" >&5
27056echo "${ECHO_T}no" >&6
27057fi
27058
27059 fi
27060
27061 if test "$PKG_CONFIG" = "no" ; then
27062 echo "*** The pkg-config script could not be found. Make sure it is"
27063 echo "*** in your path, or set the PKG_CONFIG environment variable"
27064 echo "*** to the full path to pkg-config."
27065 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27066 else
27067 PKG_CONFIG_MIN_VERSION=0.9.0
27068 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27069 echo "$as_me:$LINENO: checking for pangox" >&5
27070echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27071
27072 if $PKG_CONFIG --exists "pangox" ; then
27073 echo "$as_me:$LINENO: result: yes" >&5
27074echo "${ECHO_T}yes" >&6
27075 succeeded=yes
27076
27077 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27078echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27079 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27080 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27081echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27082
27083 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27084echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27085 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27086 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27087echo "${ECHO_T}$PANGOX_LIBS" >&6
27088 else
27089 PANGOX_CFLAGS=""
27090 PANGOX_LIBS=""
27091 ## If we have a custom action on failure, don't print errors, but
27092 ## do set a variable so people can do so.
27093 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27094
27095 fi
27096
27097
27098
27099 else
27100 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27101 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27102 fi
27103 fi
27104
27105 if test $succeeded = yes; then
27106
27107 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27108 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27109
27110 else
27111
27112 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27113echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27114 { (exit 1); exit 1; }; }
27115
27116
27117 fi
27118
27119
27120 succeeded=no
27121
27122 if test -z "$PKG_CONFIG"; then
27123 # Extract the first word of "pkg-config", so it can be a program name with args.
27124set dummy pkg-config; ac_word=$2
27125echo "$as_me:$LINENO: checking for $ac_word" >&5
27126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27127if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27128 echo $ECHO_N "(cached) $ECHO_C" >&6
27129else
27130 case $PKG_CONFIG in
27131 [\\/]* | ?:[\\/]*)
27132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27133 ;;
27134 *)
27135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27136for as_dir in $PATH
27137do
27138 IFS=$as_save_IFS
27139 test -z "$as_dir" && as_dir=.
27140 for ac_exec_ext in '' $ac_executable_extensions; do
27141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27144 break 2
27145 fi
27146done
27147done
27148
27149 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27150 ;;
27151esac
27152fi
27153PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27154
27155if test -n "$PKG_CONFIG"; then
27156 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27157echo "${ECHO_T}$PKG_CONFIG" >&6
27158else
27159 echo "$as_me:$LINENO: result: no" >&5
27160echo "${ECHO_T}no" >&6
27161fi
27162
27163 fi
27164
27165 if test "$PKG_CONFIG" = "no" ; then
27166 echo "*** The pkg-config script could not be found. Make sure it is"
27167 echo "*** in your path, or set the PKG_CONFIG environment variable"
27168 echo "*** to the full path to pkg-config."
27169 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27170 else
27171 PKG_CONFIG_MIN_VERSION=0.9.0
27172 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27173 echo "$as_me:$LINENO: checking for pangoft2" >&5
27174echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27175
27176 if $PKG_CONFIG --exists "pangoft2" ; then
27177 echo "$as_me:$LINENO: result: yes" >&5
27178echo "${ECHO_T}yes" >&6
27179 succeeded=yes
27180
27181 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27182echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27183 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27184 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27185echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27186
27187 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27188echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27189 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27190 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27191echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27192 else
27193 PANGOFT2_CFLAGS=""
27194 PANGOFT2_LIBS=""
27195 ## If we have a custom action on failure, don't print errors, but
27196 ## do set a variable so people can do so.
27197 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27198
27199 fi
27200
27201
27202
27203 else
27204 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27205 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27206 fi
27207 fi
27208
27209 if test $succeeded = yes; then
27210
27211 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27212 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27213
27214 else
27215
27216 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27217echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27218 wxUSE_PRINTING_ARCHITECTURE="no"
27219
27220
27221 fi
27222
27223
27224 succeeded=no
27225
27226 if test -z "$PKG_CONFIG"; then
27227 # Extract the first word of "pkg-config", so it can be a program name with args.
27228set dummy pkg-config; ac_word=$2
27229echo "$as_me:$LINENO: checking for $ac_word" >&5
27230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27231if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27232 echo $ECHO_N "(cached) $ECHO_C" >&6
27233else
27234 case $PKG_CONFIG in
27235 [\\/]* | ?:[\\/]*)
27236 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27237 ;;
27238 *)
27239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27240for as_dir in $PATH
27241do
27242 IFS=$as_save_IFS
27243 test -z "$as_dir" && as_dir=.
27244 for ac_exec_ext in '' $ac_executable_extensions; do
27245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27246 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27248 break 2
27249 fi
27250done
27251done
27252
27253 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27254 ;;
27255esac
27256fi
27257PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27258
27259if test -n "$PKG_CONFIG"; then
27260 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27261echo "${ECHO_T}$PKG_CONFIG" >&6
27262else
27263 echo "$as_me:$LINENO: result: no" >&5
27264echo "${ECHO_T}no" >&6
27265fi
27266
27267 fi
27268
27269 if test "$PKG_CONFIG" = "no" ; then
27270 echo "*** The pkg-config script could not be found. Make sure it is"
27271 echo "*** in your path, or set the PKG_CONFIG environment variable"
27272 echo "*** to the full path to pkg-config."
27273 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27274 else
27275 PKG_CONFIG_MIN_VERSION=0.9.0
27276 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27277 echo "$as_me:$LINENO: checking for pangoxft" >&5
27278echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27279
27280 if $PKG_CONFIG --exists "pangoxft" ; then
27281 echo "$as_me:$LINENO: result: yes" >&5
27282echo "${ECHO_T}yes" >&6
27283 succeeded=yes
27284
27285 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27286echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27287 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27288 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27289echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27290
27291 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27292echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27293 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27294 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27295echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27296 else
27297 PANGOXFT_CFLAGS=""
27298 PANGOXFT_LIBS=""
27299 ## If we have a custom action on failure, don't print errors, but
27300 ## do set a variable so people can do so.
27301 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27302
27303 fi
27304
27305
27306
27307 else
27308 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27309 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27310 fi
27311 fi
27312
27313 if test $succeeded = yes; then
27314
4ae1af05
MB
27315 cat >>confdefs.h <<\_ACEOF
27316#define HAVE_PANGO_XFT 1
27317_ACEOF
27318
a848cd7e
SC
27319 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27320 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27321
27322 else
27323
27324 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27325echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27326
27327
27328 fi
27329
304205f1
VS
27330 save_CFLAGS="$CFLAGS"
27331 save_LIBS="$LIBS"
27332 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27333 LIBS="$LIBS $PANGOX_LIBS"
27334
27335for ac_func in pango_font_family_is_monospace
27336do
27337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27338echo "$as_me:$LINENO: checking for $ac_func" >&5
27339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27340if eval "test \"\${$as_ac_var+set}\" = set"; then
27341 echo $ECHO_N "(cached) $ECHO_C" >&6
27342else
27343 cat >conftest.$ac_ext <<_ACEOF
27344/* confdefs.h. */
27345_ACEOF
27346cat confdefs.h >>conftest.$ac_ext
27347cat >>conftest.$ac_ext <<_ACEOF
27348/* end confdefs.h. */
27349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27351#define $ac_func innocuous_$ac_func
27352
27353/* System header to define __stub macros and hopefully few prototypes,
27354 which can conflict with char $ac_func (); below.
27355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27356 <limits.h> exists even on freestanding compilers. */
27357
27358#ifdef __STDC__
27359# include <limits.h>
27360#else
27361# include <assert.h>
27362#endif
27363
27364#undef $ac_func
27365
27366/* Override any gcc2 internal prototype to avoid an error. */
27367#ifdef __cplusplus
27368extern "C"
27369{
27370#endif
27371/* We use char because int might match the return type of a gcc2
27372 builtin and then its argument prototype would still apply. */
27373char $ac_func ();
27374/* The GNU C library defines this for functions which it implements
27375 to always fail with ENOSYS. Some functions are actually named
27376 something starting with __ and the normal name is an alias. */
27377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27378choke me
27379#else
27380char (*f) () = $ac_func;
27381#endif
27382#ifdef __cplusplus
27383}
27384#endif
27385
27386int
27387main ()
27388{
27389return f != $ac_func;
27390 ;
27391 return 0;
27392}
27393_ACEOF
27394rm -f conftest.$ac_objext conftest$ac_exeext
27395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27396 (eval $ac_link) 2>conftest.er1
27397 ac_status=$?
27398 grep -v '^ *+' conftest.er1 >conftest.err
27399 rm -f conftest.er1
27400 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } &&
07158944 27403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest$ac_exeext'
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
27415 eval "$as_ac_var=yes"
27416else
27417 echo "$as_me: failed program was:" >&5
27418sed 's/^/| /' conftest.$ac_ext >&5
27419
27420eval "$as_ac_var=no"
27421fi
27422rm -f conftest.err conftest.$ac_objext \
27423 conftest$ac_exeext conftest.$ac_ext
27424fi
27425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27426echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27427if test `eval echo '${'$as_ac_var'}'` = yes; then
27428 cat >>confdefs.h <<_ACEOF
27429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27430_ACEOF
27431
27432fi
27433done
27434
27435 CFLAGS="$save_CFLAGS"
27436 LIBS="$save_LIBS"
a848cd7e
SC
27437 fi
27438
27439 wxUSE_UNIVERSAL="yes"
27440
27441 if test "$wxUSE_NANOX" = "yes"; then
27442 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27443 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"
27444 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27445 else
27446 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27447 fi
27448
a848cd7e
SC
27449 TOOLKIT=X11
27450 GUIDIST=X11_DIST
27451 fi
27452
27453 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
27454 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27455echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27456
74b84332
VS
27457ac_find_includes=
27458for ac_dir in $SEARCH_INCLUDE /usr/include;
27459 do
27460 if test -f "$ac_dir/Xm/Xm.h"; then
27461 ac_find_includes=$ac_dir
27462 break
27463 fi
27464 done
a848cd7e 27465
74b84332
VS
27466 if test "$ac_find_includes" != "" ; then
27467 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27468echo "${ECHO_T}found in $ac_find_includes" >&6
27469
27470 if test "x$ac_find_includes" = "x/usr/include"; then
27471 ac_path_to_include=""
27472 else
27473 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27474 result=$?
27475 if test $result = 0; then
27476 ac_path_to_include=""
27477 else
27478 ac_path_to_include=" -I$ac_find_includes"
27479 fi
a848cd7e
SC
27480 fi
27481
74b84332
VS
27482 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27483 else
27484 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27485/* confdefs.h. */
27486_ACEOF
27487cat confdefs.h >>conftest.$ac_ext
27488cat >>conftest.$ac_ext <<_ACEOF
27489/* end confdefs.h. */
27490
74b84332
VS
27491 #include <Xm/Xm.h>
27492
a848cd7e
SC
27493int
27494main ()
27495{
27496
74b84332
VS
27497 int version;
27498 version = xmUseVersion;
27499
a848cd7e
SC
27500 ;
27501 return 0;
27502}
27503_ACEOF
74b84332
VS
27504rm -f conftest.$ac_objext
27505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27506 (eval $ac_compile) 2>conftest.er1
a848cd7e 27507 ac_status=$?
ac1cb8d3
VS
27508 grep -v '^ *+' conftest.er1 >conftest.err
27509 rm -f conftest.er1
27510 cat conftest.err >&5
a848cd7e
SC
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); } &&
07158944 27513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515 (eval $ac_try) 2>&5
27516 ac_status=$?
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); }; } &&
74b84332 27519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521 (eval $ac_try) 2>&5
27522 ac_status=$?
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; }; then
74b84332
VS
27525
27526 echo "$as_me:$LINENO: result: found in default search path" >&5
27527echo "${ECHO_T}found in default search path" >&6
27528 COMPILED_X_PROGRAM=1
27529
a848cd7e
SC
27530else
27531 echo "$as_me: failed program was:" >&5
27532sed 's/^/| /' conftest.$ac_ext >&5
27533
a848cd7e 27534
74b84332
VS
27535 echo "$as_me:$LINENO: result: no" >&5
27536echo "${ECHO_T}no" >&6
27537 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27538echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27539 { (exit 1); exit 1; }; }
a848cd7e 27540
a848cd7e 27541
a848cd7e 27542fi
74b84332
VS
27543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27544 fi
27545
27546 if test "$COMPILED_X_PROGRAM" = 0; then
27547 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27548echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27549
27550ac_find_libraries=
27551for ac_dir in $SEARCH_LIB /usr/lib;
27552 do
27553 for ac_extension in a so sl dylib; do
27554 if test -f "$ac_dir/libXm.$ac_extension"; then
27555 ac_find_libraries=$ac_dir
27556 break 2
a848cd7e 27557 fi
74b84332
VS
27558 done
27559 done
a848cd7e 27560
74b84332
VS
27561 if test "$ac_find_libraries" != "" ; then
27562 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27563echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27564
74b84332
VS
27565
27566 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27567 result=$?
27568 if test $result = 0; then
27569 ac_path_to_link=""
a848cd7e 27570 else
74b84332
VS
27571 ac_path_to_link=" -L$ac_find_libraries"
27572 fi
27573
27574 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27575 else
27576 save_CFLAGS=$CFLAGS
27577 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27578
27579 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27580/* confdefs.h. */
27581_ACEOF
27582cat confdefs.h >>conftest.$ac_ext
27583cat >>conftest.$ac_ext <<_ACEOF
27584/* end confdefs.h. */
27585
74b84332
VS
27586 #include <Xm/Xm.h>
27587
a848cd7e
SC
27588int
27589main ()
27590{
74b84332
VS
27591
27592 int version;
27593 version = xmUseVersion;
27594
a848cd7e
SC
27595 ;
27596 return 0;
27597}
27598_ACEOF
74b84332
VS
27599rm -f conftest.$ac_objext
27600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27601 (eval $ac_compile) 2>conftest.er1
a848cd7e 27602 ac_status=$?
ac1cb8d3
VS
27603 grep -v '^ *+' conftest.er1 >conftest.err
27604 rm -f conftest.er1
27605 cat conftest.err >&5
a848cd7e
SC
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); } &&
07158944 27608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27610 (eval $ac_try) 2>&5
27611 ac_status=$?
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); }; } &&
74b84332 27614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27616 (eval $ac_try) 2>&5
27617 ac_status=$?
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); }; }; then
74b84332
VS
27620
27621 echo "$as_me:$LINENO: result: found in default search path" >&5
27622echo "${ECHO_T}found in default search path" >&6
27623 COMPILED_X_PROGRAM=1
27624
a848cd7e
SC
27625else
27626 echo "$as_me: failed program was:" >&5
27627sed 's/^/| /' conftest.$ac_ext >&5
27628
74b84332
VS
27629
27630 echo "$as_me:$LINENO: result: no" >&5
27631echo "${ECHO_T}no" >&6
27632 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27633echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27634 { (exit 1); exit 1; }; }
27635
27636
27637fi
27638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27639
27640 CFLAGS=$save_CFLAGS
27641 fi
27642 fi
27643
27644 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27645echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27646 libp_link=""
27647 libsm_ice_link=""
27648 libs_found=0
27649 for libp in "" " -lXp"; do
27650 if test "$libs_found" = "0"; then
27651 for libsm_ice in "" " -lSM -lICE"; do
27652 if test "$libs_found" = "0"; then
27653 save_LIBS="$LIBS"
27654 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27655 save_CFLAGS=$CFLAGS
27656 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27657
27658 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27659/* confdefs.h. */
27660_ACEOF
27661cat confdefs.h >>conftest.$ac_ext
27662cat >>conftest.$ac_ext <<_ACEOF
27663/* end confdefs.h. */
27664
74b84332
VS
27665 #include <Xm/Xm.h>
27666 #include <Xm/List.h>
27667
a848cd7e
SC
27668int
27669main ()
27670{
74b84332
VS
27671
27672 XmString string = NULL;
27673 Widget w = NULL;
27674 int position = 0;
27675 XmListAddItem(w, string, position);
27676
a848cd7e
SC
27677 ;
27678 return 0;
27679}
27680_ACEOF
27681rm -f conftest.$ac_objext conftest$ac_exeext
27682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27683 (eval $ac_link) 2>conftest.er1
a848cd7e 27684 ac_status=$?
ac1cb8d3
VS
27685 grep -v '^ *+' conftest.er1 >conftest.err
27686 rm -f conftest.er1
27687 cat conftest.err >&5
a848cd7e
SC
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } &&
07158944 27690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27692 (eval $ac_try) 2>&5
27693 ac_status=$?
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); }; } &&
27696 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698 (eval $ac_try) 2>&5
27699 ac_status=$?
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); }; }; then
27702
27703 libp_link="$libp"
27704 libsm_ice_link="$libsm_ice"
27705 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27706echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27707 libs_found=1
27708
27709else
27710 echo "$as_me: failed program was:" >&5
27711sed 's/^/| /' conftest.$ac_ext >&5
27712
27713
27714
27715fi
ac1cb8d3
VS
27716rm -f conftest.err conftest.$ac_objext \
27717 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27718
27719 LIBS="$save_LIBS"
27720 CFLAGS=$save_CFLAGS
27721 fi
27722 done
27723 fi
27724 done
27725
27726 if test "$libs_found" = "0"; then
27727 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27728echo "${ECHO_T}can't find the right libraries" >&6
27729 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27730echo "$as_me: error: can't link a simple motif program" >&2;}
27731 { (exit 1); exit 1; }; }
27732 fi
27733
27734 save_CFLAGS=$CFLAGS
27735 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27736 echo "$as_me:$LINENO: checking for Motif 2" >&5
27737echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27738 cat >conftest.$ac_ext <<_ACEOF
27739/* confdefs.h. */
27740_ACEOF
27741cat confdefs.h >>conftest.$ac_ext
27742cat >>conftest.$ac_ext <<_ACEOF
27743/* end confdefs.h. */
27744
27745 #include <Xm/Xm.h>
27746
27747int
27748main ()
27749{
27750
27751 #if XmVersion < 2000
27752 #error "Not Motif 2"
27753 #endif
27754
27755 ;
27756 return 0;
27757}
27758_ACEOF
27759rm -f conftest.$ac_objext
27760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27761 (eval $ac_compile) 2>conftest.er1
a848cd7e 27762 ac_status=$?
ac1cb8d3
VS
27763 grep -v '^ *+' conftest.er1 >conftest.err
27764 rm -f conftest.er1
27765 cat conftest.err >&5
a848cd7e
SC
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); } &&
07158944 27768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27770 (eval $ac_try) 2>&5
27771 ac_status=$?
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); }; } &&
27774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27776 (eval $ac_try) 2>&5
27777 ac_status=$?
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); }; }; then
27780
27781 cat >>confdefs.h <<\_ACEOF
27782#define __WXMOTIF20__ 1
27783_ACEOF
27784
27785 echo "$as_me:$LINENO: result: found" >&5
27786echo "${ECHO_T}found" >&6
27787
27788else
27789 echo "$as_me: failed program was:" >&5
27790sed 's/^/| /' conftest.$ac_ext >&5
27791
27792
27793 cat >>confdefs.h <<\_ACEOF
27794#define __WXMOTIF20__ 0
27795_ACEOF
27796
27797 echo "$as_me:$LINENO: result: not found" >&5
27798echo "${ECHO_T}not found" >&6
27799
27800fi
ac1cb8d3 27801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27802 CFLAGS=$save_CFLAGS
27803
27804 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27805 TOOLKIT=MOTIF
27806 GUIDIST=MOTIF_DIST
27807 fi
27808
74b84332 27809 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27810 if test "$wxUSE_LIBXPM" = "sys"; then
27811 echo "$as_me:$LINENO: checking for Xpm library" >&5
27812echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27813
27814ac_find_libraries=
27815for ac_dir in $SEARCH_LIB /usr/lib;
27816 do
27817 for ac_extension in a so sl dylib; do
27818 if test -f "$ac_dir/libXpm.$ac_extension"; then
27819 ac_find_libraries=$ac_dir
27820 break 2
27821 fi
27822 done
27823 done
27824
27825 if test "$ac_find_libraries" != "" ; then
27826
27827 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27828 result=$?
27829 if test $result = 0; then
27830 ac_path_to_link=""
27831 else
27832 ac_path_to_link=" -L$ac_find_libraries"
27833 fi
27834
27835 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27836 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27837echo "${ECHO_T}found at $ac_find_libraries" >&6
27838
27839 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27840echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27841if test "${wx_cv_x11_xpm_h+set}" = set; then
27842 echo $ECHO_N "(cached) $ECHO_C" >&6
27843else
27844
27845 save_CFLAGS=$CFLAGS
27846 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27847
27848 cat >conftest.$ac_ext <<_ACEOF
27849/* confdefs.h. */
27850_ACEOF
27851cat confdefs.h >>conftest.$ac_ext
27852cat >>conftest.$ac_ext <<_ACEOF
27853/* end confdefs.h. */
27854
27855 #include <X11/xpm.h>
27856
27857int
27858main ()
27859{
27860
27861 int version;
27862 version = XpmLibraryVersion();
27863
27864 ;
27865 return 0;
27866}
27867_ACEOF
27868rm -f conftest.$ac_objext
27869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27870 (eval $ac_compile) 2>conftest.er1
a848cd7e 27871 ac_status=$?
ac1cb8d3
VS
27872 grep -v '^ *+' conftest.er1 >conftest.err
27873 rm -f conftest.er1
27874 cat conftest.err >&5
a848cd7e
SC
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); } &&
07158944 27877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27879 (eval $ac_try) 2>&5
27880 ac_status=$?
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); }; } &&
27883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885 (eval $ac_try) 2>&5
27886 ac_status=$?
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; }; then
27889 wx_cv_x11_xpm_h=yes
27890else
27891 echo "$as_me: failed program was:" >&5
27892sed 's/^/| /' conftest.$ac_ext >&5
27893
27894wx_cv_x11_xpm_h=no
27895
27896fi
ac1cb8d3 27897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27898
27899 CFLAGS=$save_CFLAGS
27900
27901
27902fi
27903echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27904echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27905
27906 if test $wx_cv_x11_xpm_h = "yes"; then
27907 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27908 cat >>confdefs.h <<\_ACEOF
27909#define wxHAVE_LIB_XPM 1
27910_ACEOF
27911
27912 else
27913 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27914echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27915 fi
27916 fi
27917
27918 fi
27919
27920 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27921echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27922if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27923 echo $ECHO_N "(cached) $ECHO_C" >&6
27924else
27925 ac_check_lib_save_LIBS=$LIBS
27926LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27927cat >conftest.$ac_ext <<_ACEOF
27928/* confdefs.h. */
27929_ACEOF
27930cat confdefs.h >>conftest.$ac_ext
27931cat >>conftest.$ac_ext <<_ACEOF
27932/* end confdefs.h. */
27933
27934/* Override any gcc2 internal prototype to avoid an error. */
27935#ifdef __cplusplus
27936extern "C"
27937#endif
27938/* We use char because int might match the return type of a gcc2
27939 builtin and then its argument prototype would still apply. */
27940char XShapeQueryExtension ();
27941int
27942main ()
27943{
27944XShapeQueryExtension ();
27945 ;
27946 return 0;
27947}
27948_ACEOF
27949rm -f conftest.$ac_objext conftest$ac_exeext
27950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27951 (eval $ac_link) 2>conftest.er1
a848cd7e 27952 ac_status=$?
ac1cb8d3
VS
27953 grep -v '^ *+' conftest.er1 >conftest.err
27954 rm -f conftest.er1
27955 cat conftest.err >&5
a848cd7e
SC
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); } &&
07158944 27958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960 (eval $ac_try) 2>&5
27961 ac_status=$?
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; } &&
27964 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966 (eval $ac_try) 2>&5
27967 ac_status=$?
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; }; then
27970 ac_cv_lib_Xext_XShapeQueryExtension=yes
27971else
27972 echo "$as_me: failed program was:" >&5
27973sed 's/^/| /' conftest.$ac_ext >&5
27974
27975ac_cv_lib_Xext_XShapeQueryExtension=no
27976fi
ac1cb8d3
VS
27977rm -f conftest.err conftest.$ac_objext \
27978 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27979LIBS=$ac_check_lib_save_LIBS
27980fi
27981echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27982echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27983if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27984
27985 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27986 wxHAVE_XEXT_LIB=1
27987
27988fi
27989
27990
27991 if test "$wxHAVE_XEXT_LIB" = 1; then
27992 save_CFLAGS="$CFLAGS"
27993 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27994
27995 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
27996echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
27997 cat >conftest.$ac_ext <<_ACEOF
27998/* confdefs.h. */
27999_ACEOF
28000cat confdefs.h >>conftest.$ac_ext
28001cat >>conftest.$ac_ext <<_ACEOF
28002/* end confdefs.h. */
28003
28004 #include <X11/Xlib.h>
28005 #include <X11/extensions/shape.h>
28006
28007int
28008main ()
28009{
28010
28011 int dummy1, dummy2;
28012 XShapeQueryExtension((Display*)NULL,
28013 (int*)NULL, (int*)NULL);
28014
28015 ;
28016 return 0;
28017}
28018_ACEOF
28019rm -f conftest.$ac_objext
28020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28021 (eval $ac_compile) 2>conftest.er1
a848cd7e 28022 ac_status=$?
ac1cb8d3
VS
28023 grep -v '^ *+' conftest.er1 >conftest.err
28024 rm -f conftest.er1
28025 cat conftest.err >&5
a848cd7e
SC
28026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); } &&
07158944 28028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28030 (eval $ac_try) 2>&5
28031 ac_status=$?
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); }; } &&
28034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28036 (eval $ac_try) 2>&5
28037 ac_status=$?
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); }; }; then
28040
28041 cat >>confdefs.h <<\_ACEOF
28042#define HAVE_XSHAPE 1
28043_ACEOF
28044
28045 echo "$as_me:$LINENO: result: found" >&5
28046echo "${ECHO_T}found" >&6
28047
28048else
28049 echo "$as_me: failed program was:" >&5
28050sed 's/^/| /' conftest.$ac_ext >&5
28051
28052
28053 echo "$as_me:$LINENO: result: not found" >&5
28054echo "${ECHO_T}not found" >&6
28055
28056fi
ac1cb8d3 28057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28058 CFLAGS="$save_CFLAGS"
28059
28060 fi
28061 fi
28062
28063 if test "$wxUSE_MAC" = 1; then
28064 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28065echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28066 if test "$GCC" = yes; then
28067 echo "$as_me:$LINENO: result: gcc" >&5
28068echo "${ECHO_T}gcc" >&6
28069 CPPFLAGS_PASCAL="-fpascal-strings"
28070 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28071 echo "$as_me:$LINENO: result: xlc" >&5
28072echo "${ECHO_T}xlc" >&6
28073 CPPFLAGS_PASCAL="-qmacpstr"
28074 else
28075 echo "$as_me:$LINENO: result: none" >&5
28076echo "${ECHO_T}none" >&6
28077 fi
28078
1e9e8aba
DE
28079 if test "x$wxUSE_UNIX" = "xyes"; then
28080 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28081 else
28082 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28083 fi
a848cd7e 28084
a848cd7e
SC
28085 TOOLKIT=MAC
28086 GUIDIST=MACX_DIST
dd21ced8 28087 WXBASEPORT="_carbon"
a848cd7e
SC
28088 fi
28089
28090 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28091 TOOLKIT=COCOA
28092 GUIDIST=COCOA_DIST
28093 fi
28094
28095 if test "$wxUSE_PM" = 1; then
28096 TOOLKIT=PM
de59c161
RD
28097 GUIDIST=PM_DIST
28098 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28099echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28100if test "${wx_cv_spbcdata+set}" = set; then
28101 echo $ECHO_N "(cached) $ECHO_C" >&6
28102else
28103
28104 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28105/* confdefs.h. */
28106_ACEOF
28107cat confdefs.h >>conftest.$ac_ext
28108cat >>conftest.$ac_ext <<_ACEOF
28109/* end confdefs.h. */
28110
28111 #define INCL_PM
28112 #include <os2.h>
28113
28114int
28115main ()
28116{
28117
28118 SPBCDATA test;
28119
28120 ;
28121 return 0;
28122}
28123_ACEOF
28124rm -f conftest.$ac_objext
28125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28126 (eval $ac_compile) 2>conftest.er1
de59c161 28127 ac_status=$?
ac1cb8d3
VS
28128 grep -v '^ *+' conftest.er1 >conftest.err
28129 rm -f conftest.er1
28130 cat conftest.err >&5
de59c161
RD
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); } &&
07158944 28133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28135 (eval $ac_try) 2>&5
28136 ac_status=$?
28137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138 (exit $ac_status); }; } &&
28139 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28141 (eval $ac_try) 2>&5
28142 ac_status=$?
28143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144 (exit $ac_status); }; }; then
28145 wx_cv_spbcdata=yes
28146else
28147 echo "$as_me: failed program was:" >&5
28148sed 's/^/| /' conftest.$ac_ext >&5
28149
28150wx_cv_spbcdata=no
28151
28152fi
ac1cb8d3 28153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28154
28155
28156fi
28157echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28158echo "${ECHO_T}$wx_cv_spbcdata" >&6
28159
28160 if test $wx_cv_spbcdata = "yes"; then
28161 cat >>confdefs.h <<\_ACEOF
28162#define HAVE_SPBCDATA 1
28163_ACEOF
28164
28165 fi
a848cd7e
SC
28166 fi
28167
28168 if test "$TOOLKIT" = "PM" ; then
28169 TOOLKIT_DIR="os2"
28170 else
28171 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28172 fi
28173
a848cd7e 28174 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28175 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28176 WIDGET_SET=univ
a848cd7e
SC
28177 fi
28178
28179 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28180 DISTDIR="wx\$(TOOLKIT)"
28181else
28182 USE_GUI=0
28183
28184 TOOLKIT_DIR="base"
28185
28186 if test "$USE_WIN32" = 1 ; then
a848cd7e 28187 TOOLKIT="MSW"
a848cd7e
SC
28188 fi
28189
a848cd7e
SC
28190 GUIDIST="BASE_DIST"
28191 DISTDIR="wxBase"
28192fi
28193
28194
28195
28196
28197IODBC_C_SRC=""
28198
28199
28200if test "$TOOLKIT" != "MSW" ; then
28201
28202 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28203
28204 if test "${ac_cv_header_sql_h+set}" = set; then
28205 echo "$as_me:$LINENO: checking for sql.h" >&5
28206echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28207if test "${ac_cv_header_sql_h+set}" = set; then
28208 echo $ECHO_N "(cached) $ECHO_C" >&6
28209fi
28210echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28211echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28212else
28213 # Is the header compilable?
28214echo "$as_me:$LINENO: checking sql.h usability" >&5
28215echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28216cat >conftest.$ac_ext <<_ACEOF
28217/* confdefs.h. */
28218_ACEOF
28219cat confdefs.h >>conftest.$ac_ext
28220cat >>conftest.$ac_ext <<_ACEOF
28221/* end confdefs.h. */
28222$ac_includes_default
28223#include <sql.h>
28224_ACEOF
28225rm -f conftest.$ac_objext
28226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28227 (eval $ac_compile) 2>conftest.er1
a848cd7e 28228 ac_status=$?
ac1cb8d3
VS
28229 grep -v '^ *+' conftest.er1 >conftest.err
28230 rm -f conftest.er1
28231 cat conftest.err >&5
a848cd7e
SC
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); } &&
07158944 28234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28237 ac_status=$?
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; } &&
28240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242 (eval $ac_try) 2>&5
28243 ac_status=$?
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; }; then
28246 ac_header_compiler=yes
28247else
28248 echo "$as_me: failed program was:" >&5
28249sed 's/^/| /' conftest.$ac_ext >&5
28250
28251ac_header_compiler=no
28252fi
ac1cb8d3 28253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28254echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28255echo "${ECHO_T}$ac_header_compiler" >&6
28256
28257# Is the header present?
28258echo "$as_me:$LINENO: checking sql.h presence" >&5
28259echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28260cat >conftest.$ac_ext <<_ACEOF
28261/* confdefs.h. */
28262_ACEOF
28263cat confdefs.h >>conftest.$ac_ext
28264cat >>conftest.$ac_ext <<_ACEOF
28265/* end confdefs.h. */
28266#include <sql.h>
28267_ACEOF
28268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28270 ac_status=$?
28271 grep -v '^ *+' conftest.er1 >conftest.err
28272 rm -f conftest.er1
28273 cat conftest.err >&5
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); } >/dev/null; then
28276 if test -s conftest.err; then
28277 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28279 else
28280 ac_cpp_err=
28281 fi
28282else
28283 ac_cpp_err=yes
28284fi
28285if test -z "$ac_cpp_err"; then
28286 ac_header_preproc=yes
28287else
28288 echo "$as_me: failed program was:" >&5
28289sed 's/^/| /' conftest.$ac_ext >&5
28290
28291 ac_header_preproc=no
28292fi
28293rm -f conftest.err conftest.$ac_ext
28294echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28295echo "${ECHO_T}$ac_header_preproc" >&6
28296
28297# So? What about this header?
ac1cb8d3
VS
28298case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28299 yes:no: )
a848cd7e
SC
28300 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28301echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28302 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28303echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28304 ac_header_preproc=yes
a848cd7e 28305 ;;
ac1cb8d3 28306 no:yes:* )
a848cd7e
SC
28307 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28308echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28309 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28310echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28311 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28312echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28313 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28314echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28315 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28316echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28317 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28318echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28319 (
28320 cat <<\_ASBOX
ac1cb8d3
VS
28321## ----------------------------------------- ##
28322## Report this to wx-dev@lists.wxwidgets.org ##
28323## ----------------------------------------- ##
a848cd7e
SC
28324_ASBOX
28325 ) |
28326 sed "s/^/$as_me: WARNING: /" >&2
28327 ;;
28328esac
28329echo "$as_me:$LINENO: checking for sql.h" >&5
28330echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28331if test "${ac_cv_header_sql_h+set}" = set; then
28332 echo $ECHO_N "(cached) $ECHO_C" >&6
28333else
28334 ac_cv_header_sql_h=$ac_header_preproc
28335fi
28336echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28337echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28338
28339fi
28340if test $ac_cv_header_sql_h = yes; then
28341 found_sql_h=1
28342fi
28343
28344
28345 if test "x$found_sql_h" = "x1" ; then
28346 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28347echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28348if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28349 echo $ECHO_N "(cached) $ECHO_C" >&6
28350else
28351 ac_check_lib_save_LIBS=$LIBS
28352LIBS="-liodbc $LIBS"
28353cat >conftest.$ac_ext <<_ACEOF
28354/* confdefs.h. */
28355_ACEOF
28356cat confdefs.h >>conftest.$ac_ext
28357cat >>conftest.$ac_ext <<_ACEOF
28358/* end confdefs.h. */
28359
28360/* Override any gcc2 internal prototype to avoid an error. */
28361#ifdef __cplusplus
28362extern "C"
28363#endif
28364/* We use char because int might match the return type of a gcc2
28365 builtin and then its argument prototype would still apply. */
28366char SQLAllocEnv ();
28367int
28368main ()
28369{
28370SQLAllocEnv ();
28371 ;
28372 return 0;
28373}
28374_ACEOF
28375rm -f conftest.$ac_objext conftest$ac_exeext
28376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28377 (eval $ac_link) 2>conftest.er1
a848cd7e 28378 ac_status=$?
ac1cb8d3
VS
28379 grep -v '^ *+' conftest.er1 >conftest.err
28380 rm -f conftest.er1
28381 cat conftest.err >&5
a848cd7e
SC
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); } &&
07158944 28384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28386 (eval $ac_try) 2>&5
28387 ac_status=$?
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); }; } &&
28390 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28392 (eval $ac_try) 2>&5
28393 ac_status=$?
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); }; }; then
28396 ac_cv_lib_iodbc_SQLAllocEnv=yes
28397else
28398 echo "$as_me: failed program was:" >&5
28399sed 's/^/| /' conftest.$ac_ext >&5
28400
28401ac_cv_lib_iodbc_SQLAllocEnv=no
28402fi
ac1cb8d3
VS
28403rm -f conftest.err conftest.$ac_objext \
28404 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28405LIBS=$ac_check_lib_save_LIBS
28406fi
28407echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28408echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28409if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28410 ODBC_LINK=" -liodbc"
28411else
28412
28413 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28414echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28415if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28416 echo $ECHO_N "(cached) $ECHO_C" >&6
28417else
28418 ac_check_lib_save_LIBS=$LIBS
28419LIBS="-lunixodbc $LIBS"
28420cat >conftest.$ac_ext <<_ACEOF
28421/* confdefs.h. */
28422_ACEOF
28423cat confdefs.h >>conftest.$ac_ext
28424cat >>conftest.$ac_ext <<_ACEOF
28425/* end confdefs.h. */
28426
28427/* Override any gcc2 internal prototype to avoid an error. */
28428#ifdef __cplusplus
28429extern "C"
28430#endif
28431/* We use char because int might match the return type of a gcc2
28432 builtin and then its argument prototype would still apply. */
28433char SQLAllocEnv ();
28434int
28435main ()
28436{
28437SQLAllocEnv ();
28438 ;
28439 return 0;
28440}
28441_ACEOF
28442rm -f conftest.$ac_objext conftest$ac_exeext
28443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28444 (eval $ac_link) 2>conftest.er1
a848cd7e 28445 ac_status=$?
ac1cb8d3
VS
28446 grep -v '^ *+' conftest.er1 >conftest.err
28447 rm -f conftest.er1
28448 cat conftest.err >&5
a848cd7e
SC
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); } &&
07158944 28451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28453 (eval $ac_try) 2>&5
28454 ac_status=$?
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; } &&
28457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28459 (eval $ac_try) 2>&5
28460 ac_status=$?
28461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462 (exit $ac_status); }; }; then
28463 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28464else
28465 echo "$as_me: failed program was:" >&5
28466sed 's/^/| /' conftest.$ac_ext >&5
28467
28468ac_cv_lib_unixodbc_SQLAllocEnv=no
28469fi
ac1cb8d3
VS
28470rm -f conftest.err conftest.$ac_objext \
28471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28472LIBS=$ac_check_lib_save_LIBS
28473fi
28474echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28475echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28476if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28477 ODBC_LINK=" -lunixodbc"
28478else
28479
28480 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28481echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28482if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28483 echo $ECHO_N "(cached) $ECHO_C" >&6
28484else
28485 ac_check_lib_save_LIBS=$LIBS
28486LIBS="-lodbc $LIBS"
28487cat >conftest.$ac_ext <<_ACEOF
28488/* confdefs.h. */
28489_ACEOF
28490cat confdefs.h >>conftest.$ac_ext
28491cat >>conftest.$ac_ext <<_ACEOF
28492/* end confdefs.h. */
28493
28494/* Override any gcc2 internal prototype to avoid an error. */
28495#ifdef __cplusplus
28496extern "C"
28497#endif
28498/* We use char because int might match the return type of a gcc2
28499 builtin and then its argument prototype would still apply. */
28500char SQLAllocEnv ();
28501int
28502main ()
28503{
28504SQLAllocEnv ();
28505 ;
28506 return 0;
28507}
28508_ACEOF
28509rm -f conftest.$ac_objext conftest$ac_exeext
28510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28511 (eval $ac_link) 2>conftest.er1
a848cd7e 28512 ac_status=$?
ac1cb8d3
VS
28513 grep -v '^ *+' conftest.er1 >conftest.err
28514 rm -f conftest.er1
28515 cat conftest.err >&5
a848cd7e
SC
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); } &&
07158944 28518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520 (eval $ac_try) 2>&5
28521 ac_status=$?
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; } &&
28524 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526 (eval $ac_try) 2>&5
28527 ac_status=$?
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; }; then
28530 ac_cv_lib_odbc_SQLAllocEnv=yes
28531else
28532 echo "$as_me: failed program was:" >&5
28533sed 's/^/| /' conftest.$ac_ext >&5
28534
28535ac_cv_lib_odbc_SQLAllocEnv=no
28536fi
ac1cb8d3
VS
28537rm -f conftest.err conftest.$ac_objext \
28538 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28539LIBS=$ac_check_lib_save_LIBS
28540fi
28541echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28542echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28543if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28544 ODBC_LINK=" -lodbc"
28545fi
28546
28547
28548fi
28549
28550
28551fi
28552
28553 fi
28554 if test "x$ODBC_LINK" = "x" ; then
28555 if test "$wxUSE_ODBC" = "sys" ; then
28556 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28557echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28558 { (exit 1); exit 1; }; }
28559 else
28560 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28561echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28562 wxUSE_ODBC=builtin
28563 fi
28564 else
28565 wxUSE_ODBC=sys
28566 fi
28567 fi
a848cd7e 28568
2da0c077
RD
28569 if test "$wxUSE_ODBC" = "builtin" ; then
28570 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28571#define wxUSE_BUILTIN_IODBC 1
28572_ACEOF
28573
a848cd7e
SC
28574 fi
28575fi
28576
2da0c077
RD
28577if test "$wxUSE_ODBC" != "no" ; then
28578 cat >>confdefs.h <<\_ACEOF
28579#define wxUSE_ODBC 1
28580_ACEOF
28581
28582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28583
28584 WXODBCFLAG="-D_IODBC_"
28585fi
a848cd7e 28586
01cb68df 28587
a848cd7e 28588if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28589 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28590 echo "$as_me:$LINENO: checking for Xinerama" >&5
28591echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28592
28593ac_find_libraries=
28594for ac_dir in $SEARCH_LIB /usr/lib;
28595 do
28596 for ac_extension in a so sl dylib; do
28597 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28598 ac_find_libraries=$ac_dir
28599 break 2
28600 fi
28601 done
28602 done
28603
28604 if test "$ac_find_libraries" != "" ; then
28605
28606 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28607 result=$?
28608 if test $result = 0; then
28609 ac_path_to_link=""
28610 else
28611 ac_path_to_link=" -L$ac_find_libraries"
28612 fi
28613
28614 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28615 LDFLAGS="$LDFLAGS $ac_path_to_link"
28616 fi
28617 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28618 echo "$as_me:$LINENO: result: yes" >&5
28619echo "${ECHO_T}yes" >&6
28620
28621 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28622echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28623
28624ac_find_libraries=
28625for ac_dir in $SEARCH_LIB /usr/lib;
28626 do
28627 for ac_extension in a so sl dylib; do
28628 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28629 ac_find_libraries=$ac_dir
28630 break 2
28631 fi
28632 done
28633 done
28634
28635 if test "$ac_find_libraries" != "" ; then
28636 echo "$as_me:$LINENO: result: yes" >&5
28637echo "${ECHO_T}yes" >&6
28638
28639for ac_header in X11/extensions/xf86vmode.h
28640do
28641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28642echo "$as_me:$LINENO: checking for $ac_header" >&5
28643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28644if eval "test \"\${$as_ac_Header+set}\" = set"; then
28645 echo $ECHO_N "(cached) $ECHO_C" >&6
28646else
28647 cat >conftest.$ac_ext <<_ACEOF
28648/* confdefs.h. */
28649_ACEOF
28650cat confdefs.h >>conftest.$ac_ext
28651cat >>conftest.$ac_ext <<_ACEOF
28652/* end confdefs.h. */
28653
28654 #if HAVE_X11_XLIB_H
28655 #include <X11/Xlib.h>
28656 #endif
28657
28658
28659#include <$ac_header>
28660_ACEOF
28661rm -f conftest.$ac_objext
28662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28663 (eval $ac_compile) 2>conftest.er1
a848cd7e 28664 ac_status=$?
ac1cb8d3
VS
28665 grep -v '^ *+' conftest.er1 >conftest.err
28666 rm -f conftest.er1
28667 cat conftest.err >&5
a848cd7e
SC
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); } &&
07158944 28670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28673 ac_status=$?
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; } &&
28676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678 (eval $ac_try) 2>&5
28679 ac_status=$?
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
28682 eval "$as_ac_Header=yes"
28683else
28684 echo "$as_me: failed program was:" >&5
28685sed 's/^/| /' conftest.$ac_ext >&5
28686
28687eval "$as_ac_Header=no"
28688fi
ac1cb8d3 28689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28690fi
28691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28693if test `eval echo '${'$as_ac_Header'}'` = yes; then
28694 cat >>confdefs.h <<_ACEOF
28695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28696_ACEOF
28697
28698 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28699
28700fi
28701
28702done
28703
28704 else
28705 echo "$as_me:$LINENO: result: no" >&5
28706echo "${ECHO_T}no" >&6
28707 fi
28708
28709 else
28710 echo "$as_me:$LINENO: result: no" >&5
28711echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28712 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28713echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28714 wxUSE_DISPLAY="no"
28715 fi
01cb68df
RG
28716 elif test "$wxUSE_MSW" = 1; then
28717
28718
28719for ac_header in multimon.h ddraw.h
28720do
28721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28722echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28724if eval "test \"\${$as_ac_Header+set}\" = set"; then
28725 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28726else
5294a27e 28727 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28728/* confdefs.h. */
28729_ACEOF
28730cat confdefs.h >>conftest.$ac_ext
28731cat >>conftest.$ac_ext <<_ACEOF
28732/* end confdefs.h. */
5294a27e
VZ
28733#include <windows.h>
28734
01cb68df
RG
28735#include <$ac_header>
28736_ACEOF
28737rm -f conftest.$ac_objext
28738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28739 (eval $ac_compile) 2>conftest.er1
01cb68df 28740 ac_status=$?
ac1cb8d3
VS
28741 grep -v '^ *+' conftest.er1 >conftest.err
28742 rm -f conftest.er1
28743 cat conftest.err >&5
01cb68df
RG
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); } &&
07158944 28746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28748 (eval $ac_try) 2>&5
28749 ac_status=$?
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); }; } &&
28752 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28754 (eval $ac_try) 2>&5
28755 ac_status=$?
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); }; }; then
5294a27e 28758 eval "$as_ac_Header=yes"
01cb68df
RG
28759else
28760 echo "$as_me: failed program was:" >&5
28761sed 's/^/| /' conftest.$ac_ext >&5
28762
5294a27e 28763eval "$as_ac_Header=no"
01cb68df 28764fi
ac1cb8d3 28765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28766fi
28767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28769if test `eval echo '${'$as_ac_Header'}'` = yes; then
28770 cat >>confdefs.h <<_ACEOF
28771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28772_ACEOF
28773
28774else
28775
5294a27e
VZ
28776 wxUSE_DISPLAY="no"
28777 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28778echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28779
28780fi
28781
28782done
28783
a848cd7e
SC
28784 fi
28785fi
28786
28787
28788USE_OPENGL=0
28789if test "$wxUSE_OPENGL" = "yes"; then
28790 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28791 OPENGL_LIBS="-framework OpenGL -framework AGL"
28792 elif test "$wxUSE_MSW" = 1; then
28793 OPENGL_LIBS="-lopengl32 -lglu32"
28794 else
28795
28796
28797ac_find_includes=
28798for ac_dir in $SEARCH_INCLUDE /usr/include;
28799 do
28800 if test -f "$ac_dir/GL/gl.h"; then
28801 ac_find_includes=$ac_dir
28802 break
28803 fi
28804 done
28805
28806 if test "$ac_find_includes" != "" ; then
28807 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28808echo "${ECHO_T}found in $ac_find_includes" >&6
28809
28810 if test "x$ac_find_includes" = "x/usr/include"; then
28811 ac_path_to_include=""
28812 else
28813 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28814 result=$?
28815 if test $result = 0; then
28816 ac_path_to_include=""
28817 else
28818 ac_path_to_include=" -I$ac_find_includes"
28819 fi
28820 fi
28821
28822 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28823 fi
28824
28825 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28826 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28827echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28828if test "${ac_cv_header_GL_gl_h+set}" = set; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28830fi
28831echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28832echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28833else
28834 # Is the header compilable?
28835echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28836echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28837cat >conftest.$ac_ext <<_ACEOF
28838/* confdefs.h. */
28839_ACEOF
28840cat confdefs.h >>conftest.$ac_ext
28841cat >>conftest.$ac_ext <<_ACEOF
28842/* end confdefs.h. */
28843$ac_includes_default
28844#include <GL/gl.h>
28845_ACEOF
28846rm -f conftest.$ac_objext
28847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28848 (eval $ac_compile) 2>conftest.er1
a848cd7e 28849 ac_status=$?
ac1cb8d3
VS
28850 grep -v '^ *+' conftest.er1 >conftest.err
28851 rm -f conftest.er1
28852 cat conftest.err >&5
a848cd7e
SC
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); } &&
07158944 28855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857 (eval $ac_try) 2>&5
28858 ac_status=$?
28859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860 (exit $ac_status); }; } &&
28861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863 (eval $ac_try) 2>&5
28864 ac_status=$?
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); }; }; then
28867 ac_header_compiler=yes
28868else
28869 echo "$as_me: failed program was:" >&5
28870sed 's/^/| /' conftest.$ac_ext >&5
28871
28872ac_header_compiler=no
28873fi
ac1cb8d3 28874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28876echo "${ECHO_T}$ac_header_compiler" >&6
28877
28878# Is the header present?
28879echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28880echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28881cat >conftest.$ac_ext <<_ACEOF
28882/* confdefs.h. */
28883_ACEOF
28884cat confdefs.h >>conftest.$ac_ext
28885cat >>conftest.$ac_ext <<_ACEOF
28886/* end confdefs.h. */
28887#include <GL/gl.h>
28888_ACEOF
28889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28891 ac_status=$?
28892 grep -v '^ *+' conftest.er1 >conftest.err
28893 rm -f conftest.er1
28894 cat conftest.err >&5
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); } >/dev/null; then
28897 if test -s conftest.err; then
28898 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28900 else
28901 ac_cpp_err=
28902 fi
28903else
28904 ac_cpp_err=yes
28905fi
28906if test -z "$ac_cpp_err"; then
28907 ac_header_preproc=yes
28908else
28909 echo "$as_me: failed program was:" >&5
28910sed 's/^/| /' conftest.$ac_ext >&5
28911
28912 ac_header_preproc=no
28913fi
28914rm -f conftest.err conftest.$ac_ext
28915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28916echo "${ECHO_T}$ac_header_preproc" >&6
28917
28918# So? What about this header?
ac1cb8d3
VS
28919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28920 yes:no: )
a848cd7e
SC
28921 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28922echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28923 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28924echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28925 ac_header_preproc=yes
a848cd7e 28926 ;;
ac1cb8d3 28927 no:yes:* )
a848cd7e
SC
28928 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28929echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28930 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28931echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28932 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28933echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28934 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28935echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28936 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28937echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28938 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28939echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28940 (
28941 cat <<\_ASBOX
ac1cb8d3
VS
28942## ----------------------------------------- ##
28943## Report this to wx-dev@lists.wxwidgets.org ##
28944## ----------------------------------------- ##
a848cd7e
SC
28945_ASBOX
28946 ) |
28947 sed "s/^/$as_me: WARNING: /" >&2
28948 ;;
28949esac
28950echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28951echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28952if test "${ac_cv_header_GL_gl_h+set}" = set; then
28953 echo $ECHO_N "(cached) $ECHO_C" >&6
28954else
28955 ac_cv_header_GL_gl_h=$ac_header_preproc
28956fi
28957echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28958echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28959
28960fi
28961if test $ac_cv_header_GL_gl_h = yes; then
28962
28963 found_gl=0
28964
28965 echo "$as_me:$LINENO: checking for -lGL" >&5
28966echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28967
28968ac_find_libraries=
28969for ac_dir in $SEARCH_LIB /usr/lib;
28970 do
28971 for ac_extension in a so sl dylib; do
28972 if test -f "$ac_dir/libGL.$ac_extension"; then
28973 ac_find_libraries=$ac_dir
28974 break 2
28975 fi
28976 done
28977 done
28978
28979 if test "$ac_find_libraries" != "" ; then
28980
28981 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28982 result=$?
28983 if test $result = 0; then
28984 ac_path_to_link=""
28985 else
28986 ac_path_to_link=" -L$ac_find_libraries"
28987 fi
28988
28989 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28990 LDFLAGS_GL="$ac_path_to_link"
28991 fi
28992
28993
28994ac_find_libraries=
28995for ac_dir in $SEARCH_LIB /usr/lib;
28996 do
28997 for ac_extension in a so sl dylib; do
28998 if test -f "$ac_dir/libGLU.$ac_extension"; then
28999 ac_find_libraries=$ac_dir
29000 break 2
29001 fi
29002 done
29003 done
29004
29005 if test "$ac_find_libraries" != "" ; then
29006
29007 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29008 result=$?
29009 if test $result = 0; then
29010 ac_path_to_link=""
29011 else
29012 ac_path_to_link=" -L$ac_find_libraries"
29013 fi
29014
29015 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29016 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29017 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29018 fi
29019
29020 found_gl=1
29021 OPENGL_LIBS="-lGL -lGLU"
29022 echo "$as_me:$LINENO: result: yes" >&5
29023echo "${ECHO_T}yes" >&6
29024 fi
29025 fi
29026
29027 if test "$found_gl" != 1; then
29028 echo "$as_me:$LINENO: result: no" >&5
29029echo "${ECHO_T}no" >&6
29030 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29031echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29032
29033ac_find_libraries=
29034for ac_dir in $SEARCH_LIB /usr/lib;
29035 do
29036 for ac_extension in a so sl dylib; do
29037 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29038 ac_find_libraries=$ac_dir
29039 break 2
29040 fi
29041 done
29042 done
29043
29044 if test "$ac_find_libraries" != "" ; then
29045
29046 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29047 result=$?
29048 if test $result = 0; then
29049 ac_path_to_link=""
29050 else
29051 ac_path_to_link=" -L$ac_find_libraries"
29052 fi
29053
29054 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29055 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29056 echo "$as_me:$LINENO: result: yes" >&5
29057echo "${ECHO_T}yes" >&6
29058 else
29059 echo "$as_me:$LINENO: result: no" >&5
29060echo "${ECHO_T}no" >&6
29061 fi
29062 fi
29063
29064fi
29065
29066
29067
29068 if test "x$OPENGL_LIBS" = "x"; then
29069 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29070echo "$as_me: error: OpenGL libraries not available" >&2;}
29071 { (exit 1); exit 1; }; }
29072 fi
29073 fi
29074
29075 if test "$wxUSE_OPENGL" = "yes"; then
29076 USE_OPENGL=1
29077 cat >>confdefs.h <<\_ACEOF
29078#define wxUSE_OPENGL 1
29079_ACEOF
29080
29081 cat >>confdefs.h <<\_ACEOF
29082#define wxUSE_GLCANVAS 1
29083_ACEOF
29084
29085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29086 fi
29087fi
29088
a848cd7e
SC
29089
29090if test -n "$TOOLKIT" ; then
29091 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29092fi
29093
a848cd7e
SC
29094
29095
29096if test "$wxUSE_SHARED" = "yes"; then
29097 case "${host}" in
29098 *-pc-msdosdjgpp )
29099 wxUSE_SHARED=no
29100 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29101echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29102 ;;
29103 esac
29104fi
29105
a848cd7e 29106if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29107
29108
29109 found_versioning=no
29110
29111
29112 if test $found_versioning = no ; then
29113 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29114echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29115if test "${wx_cv_version_script+set}" = set; then
29116 echo $ECHO_N "(cached) $ECHO_C" >&6
29117else
29118
29119 echo "VER_1 { *; };" >conftest.sym
29120 echo "int main() { return 0; }" >conftest.cpp
29121
29122 if { ac_try='
29123 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29124 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29126 (eval $ac_try) 2>&5
29127 ac_status=$?
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); }; } ; then
29130 if test -s conftest.stderr ; then
29131 wx_cv_version_script=no
29132 else
29133 wx_cv_version_script=yes
29134 fi
29135 else
29136 wx_cv_version_script=no
29137 fi
29138 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29139
29140fi
29141echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29142echo "${ECHO_T}$wx_cv_version_script" >&6
29143 if test $wx_cv_version_script = yes ; then
29144 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29145 fi
29146 fi
29147
29148
29149 case "${host}" in
29150 *-*-linux* | *-*-gnu* )
29151 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29152 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29153 ;;
29154
29155 *-*-solaris2* )
29156 if test "$GCC" = yes ; then
29157 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29158
29159 saveLdflags="$LDFLAGS"
29160 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29161 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29162echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29163 cat >conftest.$ac_ext <<_ACEOF
29164/* confdefs.h. */
29165_ACEOF
29166cat confdefs.h >>conftest.$ac_ext
29167cat >>conftest.$ac_ext <<_ACEOF
29168/* end confdefs.h. */
29169
29170int
29171main ()
29172{
29173
29174 ;
29175 return 0;
29176}
29177_ACEOF
29178rm -f conftest.$ac_objext conftest$ac_exeext
29179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29180 (eval $ac_link) 2>conftest.er1
a848cd7e 29181 ac_status=$?
ac1cb8d3
VS
29182 grep -v '^ *+' conftest.er1 >conftest.err
29183 rm -f conftest.er1
29184 cat conftest.err >&5
a848cd7e
SC
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); } &&
07158944 29187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29189 (eval $ac_try) 2>&5
29190 ac_status=$?
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); }; } &&
29193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29195 (eval $ac_try) 2>&5
29196 ac_status=$?
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); }; }; then
29199
29200 echo "$as_me:$LINENO: result: yes" >&5
29201echo "${ECHO_T}yes" >&6
29202 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29203 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29204
29205else
29206 echo "$as_me: failed program was:" >&5
29207sed 's/^/| /' conftest.$ac_ext >&5
29208
29209
29210 echo "$as_me:$LINENO: result: no" >&5
29211echo "${ECHO_T}no" >&6
29212 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29213echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29214 LDFLAGS="$saveLdflags -Wl,-R,/"
29215 cat >conftest.$ac_ext <<_ACEOF
29216/* confdefs.h. */
29217_ACEOF
29218cat confdefs.h >>conftest.$ac_ext
29219cat >>conftest.$ac_ext <<_ACEOF
29220/* end confdefs.h. */
29221
29222int
29223main ()
29224{
29225
29226 ;
29227 return 0;
29228}
29229_ACEOF
29230rm -f conftest.$ac_objext conftest$ac_exeext
29231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29232 (eval $ac_link) 2>conftest.er1
a848cd7e 29233 ac_status=$?
ac1cb8d3
VS
29234 grep -v '^ *+' conftest.er1 >conftest.err
29235 rm -f conftest.er1
29236 cat conftest.err >&5
a848cd7e
SC
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); } &&
07158944 29239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29241 (eval $ac_try) 2>&5
29242 ac_status=$?
29243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244 (exit $ac_status); }; } &&
29245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29247 (eval $ac_try) 2>&5
29248 ac_status=$?
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); }; }; then
29251
ffa0583f 29252 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29253echo "${ECHO_T}yes" >&6
ffa0583f
RL
29254 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29255 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29256
a848cd7e
SC
29257else
29258 echo "$as_me: failed program was:" >&5
29259sed 's/^/| /' conftest.$ac_ext >&5
29260
29261
29262 echo "$as_me:$LINENO: result: no" >&5
29263echo "${ECHO_T}no" >&6
29264
29265fi
ac1cb8d3
VS
29266rm -f conftest.err conftest.$ac_objext \
29267 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29268
29269fi
ac1cb8d3
VS
29270rm -f conftest.err conftest.$ac_objext \
29271 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29272 LDFLAGS="$saveLdflags"
29273 else
a848cd7e 29274 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29275 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29276 fi
29277 ;;
29278
29279 powerpc-*-darwin* )
29280 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29281 cat <<EOF >change-install-names
29282#!/bin/sh
29283libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29284inst_cmd="install_name_tool "
29285for i in \${libnames} ; do
29286 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29287done
29288\${inst_cmd} \${3}
29289EOF
29290 chmod +x change-install-names
29291 ;;
29292
29293 *-*-cygwin* | *-*-mingw32* )
29294 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29295 ;;
29296
81f90336
MW
29297 *-*-hpux* )
29298 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29299 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29300 ;;
29301
a848cd7e 29302 esac
ceec2216 29303
ffa0583f
RL
29304 if test $wxUSE_RPATH = "no"; then
29305 SAMPLES_RPATH_FLAG=''
29306 SAMPLES_RPATH_POSTLINK=''
29307 WXCONFIG_RPATH=''
29308 fi
29309
29310 SHARED=1
29311
29312else
29313
ceec2216
RL
29314 config_linkage_component="-static"
29315 SHARED=0
ffa0583f 29316
ceec2216 29317fi
a848cd7e 29318
a848cd7e 29319
ceec2216
RL
29320UNICODE=0
29321lib_unicode_suffix=
29322WX_CHARTYPE="ansi"
29323if test "$wxUSE_UNICODE" = "yes"; then
29324 lib_unicode_suffix=u
29325 WX_CHARTYPE="unicode"
29326 UNICODE=1
a848cd7e
SC
29327fi
29328
ceec2216
RL
29329lib_debug_suffix=
29330WX_DEBUGTYPE="release"
29331DEBUG_FLAG=0
29332if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29333 lib_debug_suffix=d
29334 WX_DEBUGTYPE="debug"
29335 DEBUG_FLAG=1
29336fi
a848cd7e 29337
ceec2216
RL
29338WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29339WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29340
ceec2216
RL
29341DEBUG_INFO=0
29342if test "$wxUSE_DEBUG_INFO" = "yes"; then
29343 DEBUG_INFO=1
29344fi
a848cd7e 29345
ceec2216 29346WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29347
ceec2216 29348TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29349
ceec2216 29350TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29351
ceec2216
RL
29352if test "$cross_compiling" = "yes"; then
29353 HOST_SUFFIX="-$host_alias"
29354 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29355 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29356fi
29357
dd21ced8 29358WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29359WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29360
29361
29362
1d1af5ea
DE
29363if test "$wxUSE_COCOA" = 1; then
29364
29365
29366 ac_ext=c
29367ac_cpp='$CPP $CPPFLAGS'
29368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29370ac_compiler_gnu=$ac_cv_c_compiler_gnu
29371
29372ac_ext=m
29373
29374 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29375echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29376 cat >conftest.$ac_ext <<_ACEOF
29377/* confdefs.h. */
29378_ACEOF
29379cat confdefs.h >>conftest.$ac_ext
29380cat >>conftest.$ac_ext <<_ACEOF
29381/* end confdefs.h. */
29382#include <AppKit/NSEvent.h>
29383#include <CoreFoundation/CoreFoundation.h>
29384
29385int
29386main ()
29387{
29388
29389 ;
29390 return 0;
29391}
29392_ACEOF
29393rm -f conftest.$ac_objext
29394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29395 (eval $ac_compile) 2>conftest.er1
29396 ac_status=$?
29397 grep -v '^ *+' conftest.er1 >conftest.err
29398 rm -f conftest.er1
29399 cat conftest.err >&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
29402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29404 (eval $ac_try) 2>&5
29405 ac_status=$?
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); }; } &&
29408 { ac_try='test -s conftest.$ac_objext'
29409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29410 (eval $ac_try) 2>&5
29411 ac_status=$?
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; }; then
29414 echo "$as_me:$LINENO: result: no" >&5
29415echo "${ECHO_T}no" >&6
29416else
29417 echo "$as_me: failed program was:" >&5
29418sed 's/^/| /' conftest.$ac_ext >&5
29419
29420echo "$as_me:$LINENO: result: yes" >&5
29421echo "${ECHO_T}yes" >&6
29422 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29423echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29424 cat >conftest.$ac_ext <<_ACEOF
29425/* confdefs.h. */
29426_ACEOF
29427cat confdefs.h >>conftest.$ac_ext
29428cat >>conftest.$ac_ext <<_ACEOF
29429/* end confdefs.h. */
29430#define __Point__ 1
29431#include <AppKit/NSEvent.h>
29432#include <CoreFoundation/CoreFoundation.h>
29433
29434int
29435main ()
29436{
29437
29438 ;
29439 return 0;
29440}
29441_ACEOF
29442rm -f conftest.$ac_objext
29443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29444 (eval $ac_compile) 2>conftest.er1
29445 ac_status=$?
29446 grep -v '^ *+' conftest.er1 >conftest.err
29447 rm -f conftest.er1
29448 cat conftest.err >&5
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); } &&
29451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29453 (eval $ac_try) 2>&5
29454 ac_status=$?
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); }; } &&
29457 { ac_try='test -s conftest.$ac_objext'
29458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29459 (eval $ac_try) 2>&5
29460 ac_status=$?
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); }; }; then
29463 echo "$as_me:$LINENO: result: yes" >&5
29464echo "${ECHO_T}yes" >&6
29465 cat >>confdefs.h <<\_ACEOF
29466#define __Point__ 1
29467_ACEOF
29468
29469
29470else
29471 echo "$as_me: failed program was:" >&5
29472sed 's/^/| /' conftest.$ac_ext >&5
29473
29474{ { echo "$as_me:$LINENO: error: no
29475See \`config.log' for more details." >&5
29476echo "$as_me: error: no
29477See \`config.log' for more details." >&2;}
29478 { (exit 1); exit 1; }; }
29479
29480fi
29481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29482
29483fi
29484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29485 ac_ext=c
29486ac_cpp='$CPP $CPPFLAGS'
29487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29489ac_compiler_gnu=$ac_cv_c_compiler_gnu
29490
29491fi
29492
a848cd7e 29493if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29494 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29495 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29496
a848cd7e 29497 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29498
29499 # Extract the first word of "Rez", so it can be a program name with args.
29500set dummy Rez; ac_word=$2
29501echo "$as_me:$LINENO: checking for $ac_word" >&5
29502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29503if test "${ac_cv_prog_RESCOMP+set}" = set; then
29504 echo $ECHO_N "(cached) $ECHO_C" >&6
29505else
29506 if test -n "$RESCOMP"; then
29507 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29508else
29509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29510for as_dir in $PATH
29511do
29512 IFS=$as_save_IFS
29513 test -z "$as_dir" && as_dir=.
29514 for ac_exec_ext in '' $ac_executable_extensions; do
29515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29516 ac_cv_prog_RESCOMP="Rez"
29517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29518 break 2
29519 fi
29520done
29521done
29522
29523 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29524fi
29525fi
29526RESCOMP=$ac_cv_prog_RESCOMP
29527if test -n "$RESCOMP"; then
29528 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29529echo "${ECHO_T}$RESCOMP" >&6
29530else
29531 echo "$as_me:$LINENO: result: no" >&5
29532echo "${ECHO_T}no" >&6
29533fi
29534
29535 # Extract the first word of "DeRez", so it can be a program name with args.
29536set dummy DeRez; ac_word=$2
29537echo "$as_me:$LINENO: checking for $ac_word" >&5
29538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29539if test "${ac_cv_prog_DEREZ+set}" = set; then
29540 echo $ECHO_N "(cached) $ECHO_C" >&6
29541else
29542 if test -n "$DEREZ"; then
29543 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29544else
29545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29546for as_dir in $PATH
29547do
29548 IFS=$as_save_IFS
29549 test -z "$as_dir" && as_dir=.
29550 for ac_exec_ext in '' $ac_executable_extensions; do
29551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29552 ac_cv_prog_DEREZ="DeRez"
29553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29554 break 2
29555 fi
29556done
29557done
29558
29559 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29560fi
29561fi
29562DEREZ=$ac_cv_prog_DEREZ
29563if test -n "$DEREZ"; then
29564 echo "$as_me:$LINENO: result: $DEREZ" >&5
29565echo "${ECHO_T}$DEREZ" >&6
29566else
29567 echo "$as_me:$LINENO: result: no" >&5
29568echo "${ECHO_T}no" >&6
29569fi
29570
29571 # Extract the first word of "SetFile", so it can be a program name with args.
29572set dummy SetFile; ac_word=$2
29573echo "$as_me:$LINENO: checking for $ac_word" >&5
29574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29575if test "${ac_cv_prog_SETFILE+set}" = set; then
29576 echo $ECHO_N "(cached) $ECHO_C" >&6
29577else
29578 if test -n "$SETFILE"; then
29579 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29580else
29581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29582for as_dir in $PATH
29583do
29584 IFS=$as_save_IFS
29585 test -z "$as_dir" && as_dir=.
29586 for ac_exec_ext in '' $ac_executable_extensions; do
29587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29588 ac_cv_prog_SETFILE="SetFile"
29589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29590 break 2
29591 fi
29592done
29593done
29594
29595 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29596fi
29597fi
29598SETFILE=$ac_cv_prog_SETFILE
29599if test -n "$SETFILE"; then
29600 echo "$as_me:$LINENO: result: $SETFILE" >&5
29601echo "${ECHO_T}$SETFILE" >&6
29602else
29603 echo "$as_me:$LINENO: result: no" >&5
29604echo "${ECHO_T}no" >&6
29605fi
29606
29607
29608 MACSETFILE="\$(SETFILE)"
29609
29610 if test "$wxUSE_MAC" = 1; then
29611 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29612
29613 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29614 else
29615 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29616 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29617 fi
29618else
ffa0583f
RL
29619 MACSETFILE="@true"
29620 MACRESWXCONFIG="@true"
a848cd7e
SC
29621
29622 if test "$wxUSE_PM" = 1; then
29623 MACRESCOMP="emxbind -ep"
29624 else
ffa0583f 29625 MACRESCOMP="@true"
a848cd7e
SC
29626 fi
29627fi
29628
29629
29630
29631echo "$as_me:$LINENO: checking for mode_t" >&5
29632echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29633if test "${ac_cv_type_mode_t+set}" = set; then
29634 echo $ECHO_N "(cached) $ECHO_C" >&6
29635else
29636 cat >conftest.$ac_ext <<_ACEOF
29637/* confdefs.h. */
29638_ACEOF
29639cat confdefs.h >>conftest.$ac_ext
29640cat >>conftest.$ac_ext <<_ACEOF
29641/* end confdefs.h. */
29642$ac_includes_default
29643int
29644main ()
29645{
29646if ((mode_t *) 0)
29647 return 0;
29648if (sizeof (mode_t))
29649 return 0;
29650 ;
29651 return 0;
29652}
29653_ACEOF
29654rm -f conftest.$ac_objext
29655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29656 (eval $ac_compile) 2>conftest.er1
a848cd7e 29657 ac_status=$?
ac1cb8d3
VS
29658 grep -v '^ *+' conftest.er1 >conftest.err
29659 rm -f conftest.er1
29660 cat conftest.err >&5
a848cd7e
SC
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); } &&
07158944 29663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29665 (eval $ac_try) 2>&5
29666 ac_status=$?
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); }; } &&
29669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29671 (eval $ac_try) 2>&5
29672 ac_status=$?
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); }; }; then
29675 ac_cv_type_mode_t=yes
29676else
29677 echo "$as_me: failed program was:" >&5
29678sed 's/^/| /' conftest.$ac_ext >&5
29679
29680ac_cv_type_mode_t=no
29681fi
ac1cb8d3 29682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29683fi
29684echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29685echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29686if test $ac_cv_type_mode_t = yes; then
29687 :
29688else
29689
29690cat >>confdefs.h <<_ACEOF
29691#define mode_t int
29692_ACEOF
29693
29694fi
29695
29696echo "$as_me:$LINENO: checking for off_t" >&5
29697echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29698if test "${ac_cv_type_off_t+set}" = set; then
29699 echo $ECHO_N "(cached) $ECHO_C" >&6
29700else
29701 cat >conftest.$ac_ext <<_ACEOF
29702/* confdefs.h. */
29703_ACEOF
29704cat confdefs.h >>conftest.$ac_ext
29705cat >>conftest.$ac_ext <<_ACEOF
29706/* end confdefs.h. */
29707$ac_includes_default
29708int
29709main ()
29710{
29711if ((off_t *) 0)
29712 return 0;
29713if (sizeof (off_t))
29714 return 0;
29715 ;
29716 return 0;
29717}
29718_ACEOF
29719rm -f conftest.$ac_objext
29720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29721 (eval $ac_compile) 2>conftest.er1
a848cd7e 29722 ac_status=$?
ac1cb8d3
VS
29723 grep -v '^ *+' conftest.er1 >conftest.err
29724 rm -f conftest.er1
29725 cat conftest.err >&5
a848cd7e
SC
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); } &&
07158944 29728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730 (eval $ac_try) 2>&5
29731 ac_status=$?
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); }; } &&
29734 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29736 (eval $ac_try) 2>&5
29737 ac_status=$?
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); }; }; then
29740 ac_cv_type_off_t=yes
29741else
29742 echo "$as_me: failed program was:" >&5
29743sed 's/^/| /' conftest.$ac_ext >&5
29744
29745ac_cv_type_off_t=no
29746fi
ac1cb8d3 29747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29748fi
29749echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29750echo "${ECHO_T}$ac_cv_type_off_t" >&6
29751if test $ac_cv_type_off_t = yes; then
29752 :
29753else
29754
29755cat >>confdefs.h <<_ACEOF
29756#define off_t long
29757_ACEOF
29758
29759fi
29760
29761echo "$as_me:$LINENO: checking for pid_t" >&5
29762echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29763if test "${ac_cv_type_pid_t+set}" = set; then
29764 echo $ECHO_N "(cached) $ECHO_C" >&6
29765else
29766 cat >conftest.$ac_ext <<_ACEOF
29767/* confdefs.h. */
29768_ACEOF
29769cat confdefs.h >>conftest.$ac_ext
29770cat >>conftest.$ac_ext <<_ACEOF
29771/* end confdefs.h. */
29772$ac_includes_default
29773int
29774main ()
29775{
29776if ((pid_t *) 0)
29777 return 0;
29778if (sizeof (pid_t))
29779 return 0;
29780 ;
29781 return 0;
29782}
29783_ACEOF
29784rm -f conftest.$ac_objext
29785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29786 (eval $ac_compile) 2>conftest.er1
a848cd7e 29787 ac_status=$?
ac1cb8d3
VS
29788 grep -v '^ *+' conftest.er1 >conftest.err
29789 rm -f conftest.er1
29790 cat conftest.err >&5
a848cd7e
SC
29791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792 (exit $ac_status); } &&
07158944 29793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29795 (eval $ac_try) 2>&5
29796 ac_status=$?
29797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798 (exit $ac_status); }; } &&
29799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29801 (eval $ac_try) 2>&5
29802 ac_status=$?
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); }; }; then
29805 ac_cv_type_pid_t=yes
29806else
29807 echo "$as_me: failed program was:" >&5
29808sed 's/^/| /' conftest.$ac_ext >&5
29809
29810ac_cv_type_pid_t=no
29811fi
ac1cb8d3 29812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29813fi
29814echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29815echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29816if test $ac_cv_type_pid_t = yes; then
29817 :
29818else
29819
29820cat >>confdefs.h <<_ACEOF
29821#define pid_t int
29822_ACEOF
29823
29824fi
29825
29826echo "$as_me:$LINENO: checking for size_t" >&5
29827echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29828if test "${ac_cv_type_size_t+set}" = set; then
29829 echo $ECHO_N "(cached) $ECHO_C" >&6
29830else
29831 cat >conftest.$ac_ext <<_ACEOF
29832/* confdefs.h. */
29833_ACEOF
29834cat confdefs.h >>conftest.$ac_ext
29835cat >>conftest.$ac_ext <<_ACEOF
29836/* end confdefs.h. */
29837$ac_includes_default
29838int
29839main ()
29840{
29841if ((size_t *) 0)
29842 return 0;
29843if (sizeof (size_t))
29844 return 0;
29845 ;
29846 return 0;
29847}
29848_ACEOF
29849rm -f conftest.$ac_objext
29850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29851 (eval $ac_compile) 2>conftest.er1
a848cd7e 29852 ac_status=$?
ac1cb8d3
VS
29853 grep -v '^ *+' conftest.er1 >conftest.err
29854 rm -f conftest.er1
29855 cat conftest.err >&5
a848cd7e
SC
29856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); } &&
07158944 29858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29860 (eval $ac_try) 2>&5
29861 ac_status=$?
29862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29863 (exit $ac_status); }; } &&
29864 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29866 (eval $ac_try) 2>&5
29867 ac_status=$?
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); }; }; then
29870 ac_cv_type_size_t=yes
29871else
29872 echo "$as_me: failed program was:" >&5
29873sed 's/^/| /' conftest.$ac_ext >&5
29874
29875ac_cv_type_size_t=no
29876fi
ac1cb8d3 29877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29878fi
29879echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29880echo "${ECHO_T}$ac_cv_type_size_t" >&6
29881if test $ac_cv_type_size_t = yes; then
29882 :
29883else
29884
29885cat >>confdefs.h <<_ACEOF
29886#define size_t unsigned
29887_ACEOF
29888
29889fi
29890
29891echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29892echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29893if test "${ac_cv_type_uid_t+set}" = set; then
29894 echo $ECHO_N "(cached) $ECHO_C" >&6
29895else
29896 cat >conftest.$ac_ext <<_ACEOF
29897/* confdefs.h. */
29898_ACEOF
29899cat confdefs.h >>conftest.$ac_ext
29900cat >>conftest.$ac_ext <<_ACEOF
29901/* end confdefs.h. */
29902#include <sys/types.h>
29903
29904_ACEOF
29905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29906 $EGREP "uid_t" >/dev/null 2>&1; then
29907 ac_cv_type_uid_t=yes
29908else
29909 ac_cv_type_uid_t=no
29910fi
29911rm -f conftest*
29912
29913fi
29914echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29915echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29916if test $ac_cv_type_uid_t = no; then
29917
29918cat >>confdefs.h <<\_ACEOF
29919#define uid_t int
29920_ACEOF
29921
29922
29923cat >>confdefs.h <<\_ACEOF
29924#define gid_t int
29925_ACEOF
29926
29927fi
29928
29929
d51253e8
RL
29930echo "$as_me:$LINENO: checking for ssize_t" >&5
29931echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29932if test "${ac_cv_type_ssize_t+set}" = set; then
29933 echo $ECHO_N "(cached) $ECHO_C" >&6
29934else
29935 cat >conftest.$ac_ext <<_ACEOF
29936/* confdefs.h. */
29937_ACEOF
29938cat confdefs.h >>conftest.$ac_ext
29939cat >>conftest.$ac_ext <<_ACEOF
29940/* end confdefs.h. */
29941$ac_includes_default
29942int
29943main ()
29944{
29945if ((ssize_t *) 0)
29946 return 0;
29947if (sizeof (ssize_t))
29948 return 0;
29949 ;
29950 return 0;
29951}
29952_ACEOF
29953rm -f conftest.$ac_objext
29954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29955 (eval $ac_compile) 2>conftest.er1
29956 ac_status=$?
29957 grep -v '^ *+' conftest.er1 >conftest.err
29958 rm -f conftest.er1
29959 cat conftest.err >&5
29960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961 (exit $ac_status); } &&
07158944 29962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
29963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29964 (eval $ac_try) 2>&5
29965 ac_status=$?
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); }; } &&
29968 { ac_try='test -s conftest.$ac_objext'
29969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29970 (eval $ac_try) 2>&5
29971 ac_status=$?
29972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); }; }; then
29974 ac_cv_type_ssize_t=yes
29975else
29976 echo "$as_me: failed program was:" >&5
29977sed 's/^/| /' conftest.$ac_ext >&5
29978
29979ac_cv_type_ssize_t=no
29980fi
29981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29982fi
29983echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29984echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29985if test $ac_cv_type_ssize_t = yes; then
29986
29987cat >>confdefs.h <<_ACEOF
29988#define HAVE_SSIZE_T 1
29989_ACEOF
29990
29991
29992fi
29993
29994
a848cd7e
SC
29995
29996
29997ac_ext=cc
29998ac_cpp='$CXXCPP $CPPFLAGS'
29999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30002
30003echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30004echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30005if test "${wx_cv_size_t_is_uint+set}" = set; then
30006 echo $ECHO_N "(cached) $ECHO_C" >&6
30007else
30008
30009 cat >conftest.$ac_ext <<_ACEOF
30010/* confdefs.h. */
30011_ACEOF
30012cat confdefs.h >>conftest.$ac_ext
30013cat >>conftest.$ac_ext <<_ACEOF
30014/* end confdefs.h. */
30015#include <stddef.h>
30016int
30017main ()
30018{
30019
30020 return 0; }
30021
30022 struct Foo { void foo(size_t); void foo(unsigned int); };
30023
30024 int bar() {
30025
30026 ;
30027 return 0;
30028}
30029_ACEOF
30030rm -f conftest.$ac_objext
30031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30032 (eval $ac_compile) 2>conftest.er1
a848cd7e 30033 ac_status=$?
ac1cb8d3
VS
30034 grep -v '^ *+' conftest.er1 >conftest.err
30035 rm -f conftest.er1
30036 cat conftest.err >&5
a848cd7e
SC
30037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038 (exit $ac_status); } &&
07158944 30039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30041 (eval $ac_try) 2>&5
30042 ac_status=$?
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); }; } &&
30045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30047 (eval $ac_try) 2>&5
30048 ac_status=$?
30049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050 (exit $ac_status); }; }; then
30051 wx_cv_size_t_is_uint=no
30052else
30053 echo "$as_me: failed program was:" >&5
30054sed 's/^/| /' conftest.$ac_ext >&5
30055
30056wx_cv_size_t_is_uint=yes
30057
30058fi
ac1cb8d3 30059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30060
30061
30062fi
30063echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30064echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30065
30066if test "$wx_cv_size_t_is_uint" = "yes"; then
30067 cat >>confdefs.h <<\_ACEOF
30068#define wxSIZE_T_IS_UINT 1
30069_ACEOF
30070
30071else
30072 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30073echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30074if test "${wx_cv_size_t_is_ulong+set}" = set; then
30075 echo $ECHO_N "(cached) $ECHO_C" >&6
30076else
30077 cat >conftest.$ac_ext <<_ACEOF
30078/* confdefs.h. */
30079_ACEOF
30080cat confdefs.h >>conftest.$ac_ext
30081cat >>conftest.$ac_ext <<_ACEOF
30082/* end confdefs.h. */
30083#include <stddef.h>
30084int
30085main ()
30086{
30087
30088 return 0; }
30089
30090 struct Foo { void foo(size_t); void foo(unsigned long); };
30091
30092 int bar() {
30093
30094 ;
30095 return 0;
30096}
30097_ACEOF
30098rm -f conftest.$ac_objext
30099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30100 (eval $ac_compile) 2>conftest.er1
a848cd7e 30101 ac_status=$?
ac1cb8d3
VS
30102 grep -v '^ *+' conftest.er1 >conftest.err
30103 rm -f conftest.er1
30104 cat conftest.err >&5
a848cd7e
SC
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); } &&
07158944 30107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30109 (eval $ac_try) 2>&5
30110 ac_status=$?
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); }; } &&
30113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30115 (eval $ac_try) 2>&5
30116 ac_status=$?
30117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); }; }; then
30119 wx_cv_size_t_is_ulong=no
30120else
30121 echo "$as_me: failed program was:" >&5
30122sed 's/^/| /' conftest.$ac_ext >&5
30123
30124wx_cv_size_t_is_ulong=yes
30125
30126fi
ac1cb8d3 30127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30128
30129fi
30130echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30131echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30132
30133 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30134 cat >>confdefs.h <<\_ACEOF
30135#define wxSIZE_T_IS_ULONG 1
30136_ACEOF
30137
30138 fi
30139fi
30140
30141ac_ext=c
30142ac_cpp='$CPP $CPPFLAGS'
30143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30145ac_compiler_gnu=$ac_cv_c_compiler_gnu
30146
30147
30148
30149echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30150echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30151if test "${wx_cv_struct_pw_gecos+set}" = set; then
30152 echo $ECHO_N "(cached) $ECHO_C" >&6
30153else
30154
30155 cat >conftest.$ac_ext <<_ACEOF
30156/* confdefs.h. */
30157_ACEOF
30158cat confdefs.h >>conftest.$ac_ext
30159cat >>conftest.$ac_ext <<_ACEOF
30160/* end confdefs.h. */
30161#include <pwd.h>
30162int
30163main ()
30164{
30165
30166 char *p;
30167 struct passwd *pw;
30168 p = pw->pw_gecos;
30169
30170 ;
30171 return 0;
30172}
30173_ACEOF
30174rm -f conftest.$ac_objext
30175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30176 (eval $ac_compile) 2>conftest.er1
a848cd7e 30177 ac_status=$?
ac1cb8d3
VS
30178 grep -v '^ *+' conftest.er1 >conftest.err
30179 rm -f conftest.er1
30180 cat conftest.err >&5
a848cd7e
SC
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); } &&
07158944 30183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30185 (eval $ac_try) 2>&5
30186 ac_status=$?
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); }; } &&
30189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30191 (eval $ac_try) 2>&5
30192 ac_status=$?
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; }; then
30195
30196 wx_cv_struct_pw_gecos=yes
30197
30198else
30199 echo "$as_me: failed program was:" >&5
30200sed 's/^/| /' conftest.$ac_ext >&5
30201
30202
30203 wx_cv_struct_pw_gecos=no
30204
30205
30206fi
ac1cb8d3 30207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30208
30209
30210fi
30211echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30212echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30213
30214if test "$wx_cv_struct_pw_gecos" = "yes"; then
30215 cat >>confdefs.h <<\_ACEOF
30216#define HAVE_PW_GECOS 1
30217_ACEOF
30218
30219fi
30220
30221
238ecede 30222if test "$ac_cv_sizeof_wchar_t" != "0"; then
a848cd7e
SC
30223 cat >>confdefs.h <<\_ACEOF
30224#define wxUSE_WCHAR_T 1
30225_ACEOF
30226
30227
30228 WCSLEN_FOUND=0
30229 WCHAR_LINK=
30230
30231for ac_func in wcslen
30232do
30233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30234echo "$as_me:$LINENO: checking for $ac_func" >&5
30235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30236if eval "test \"\${$as_ac_var+set}\" = set"; then
30237 echo $ECHO_N "(cached) $ECHO_C" >&6
30238else
30239 cat >conftest.$ac_ext <<_ACEOF
30240/* confdefs.h. */
30241_ACEOF
30242cat confdefs.h >>conftest.$ac_ext
30243cat >>conftest.$ac_ext <<_ACEOF
30244/* end confdefs.h. */
ac1cb8d3
VS
30245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30247#define $ac_func innocuous_$ac_func
30248
a848cd7e
SC
30249/* System header to define __stub macros and hopefully few prototypes,
30250 which can conflict with char $ac_func (); below.
30251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30252 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30253
a848cd7e
SC
30254#ifdef __STDC__
30255# include <limits.h>
30256#else
30257# include <assert.h>
30258#endif
ac1cb8d3
VS
30259
30260#undef $ac_func
30261
a848cd7e
SC
30262/* Override any gcc2 internal prototype to avoid an error. */
30263#ifdef __cplusplus
30264extern "C"
30265{
30266#endif
30267/* We use char because int might match the return type of a gcc2
30268 builtin and then its argument prototype would still apply. */
30269char $ac_func ();
30270/* The GNU C library defines this for functions which it implements
30271 to always fail with ENOSYS. Some functions are actually named
30272 something starting with __ and the normal name is an alias. */
30273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30274choke me
30275#else
30276char (*f) () = $ac_func;
30277#endif
30278#ifdef __cplusplus
30279}
30280#endif
30281
30282int
30283main ()
30284{
30285return f != $ac_func;
30286 ;
30287 return 0;
30288}
30289_ACEOF
30290rm -f conftest.$ac_objext conftest$ac_exeext
30291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30292 (eval $ac_link) 2>conftest.er1
a848cd7e 30293 ac_status=$?
ac1cb8d3
VS
30294 grep -v '^ *+' conftest.er1 >conftest.err
30295 rm -f conftest.er1
30296 cat conftest.err >&5
a848cd7e
SC
30297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298 (exit $ac_status); } &&
07158944 30299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30301 (eval $ac_try) 2>&5
30302 ac_status=$?
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; } &&
30305 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30307 (eval $ac_try) 2>&5
30308 ac_status=$?
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); }; }; then
30311 eval "$as_ac_var=yes"
30312else
30313 echo "$as_me: failed program was:" >&5
30314sed 's/^/| /' conftest.$ac_ext >&5
30315
30316eval "$as_ac_var=no"
30317fi
ac1cb8d3
VS
30318rm -f conftest.err conftest.$ac_objext \
30319 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30320fi
30321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30323if test `eval echo '${'$as_ac_var'}'` = yes; then
30324 cat >>confdefs.h <<_ACEOF
30325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30326_ACEOF
30327 WCSLEN_FOUND=1
30328fi
30329done
30330
30331
30332 if test "$WCSLEN_FOUND" = 0; then
30333 if test "$TOOLKIT" = "MSW"; then
30334 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30335echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30336if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30337 echo $ECHO_N "(cached) $ECHO_C" >&6
30338else
30339 ac_check_lib_save_LIBS=$LIBS
30340LIBS="-lmsvcrt $LIBS"
30341cat >conftest.$ac_ext <<_ACEOF
30342/* confdefs.h. */
30343_ACEOF
30344cat confdefs.h >>conftest.$ac_ext
30345cat >>conftest.$ac_ext <<_ACEOF
30346/* end confdefs.h. */
30347
30348/* Override any gcc2 internal prototype to avoid an error. */
30349#ifdef __cplusplus
30350extern "C"
30351#endif
30352/* We use char because int might match the return type of a gcc2
30353 builtin and then its argument prototype would still apply. */
30354char wcslen ();
30355int
30356main ()
30357{
30358wcslen ();
30359 ;
30360 return 0;
30361}
30362_ACEOF
30363rm -f conftest.$ac_objext conftest$ac_exeext
30364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30365 (eval $ac_link) 2>conftest.er1
a848cd7e 30366 ac_status=$?
ac1cb8d3
VS
30367 grep -v '^ *+' conftest.er1 >conftest.err
30368 rm -f conftest.er1
30369 cat conftest.err >&5
a848cd7e
SC
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); } &&
07158944 30372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30374 (eval $ac_try) 2>&5
30375 ac_status=$?
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); }; } &&
30378 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30380 (eval $ac_try) 2>&5
30381 ac_status=$?
30382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383 (exit $ac_status); }; }; then
30384 ac_cv_lib_msvcrt_wcslen=yes
30385else
30386 echo "$as_me: failed program was:" >&5
30387sed 's/^/| /' conftest.$ac_ext >&5
30388
30389ac_cv_lib_msvcrt_wcslen=no
30390fi
ac1cb8d3
VS
30391rm -f conftest.err conftest.$ac_objext \
30392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30393LIBS=$ac_check_lib_save_LIBS
30394fi
30395echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30396echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30397if test $ac_cv_lib_msvcrt_wcslen = yes; then
30398 WCHAR_OK=1
30399fi
30400
30401 else
30402 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30403echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30404if test "${ac_cv_lib_w_wcslen+set}" = set; then
30405 echo $ECHO_N "(cached) $ECHO_C" >&6
30406else
30407 ac_check_lib_save_LIBS=$LIBS
30408LIBS="-lw $LIBS"
30409cat >conftest.$ac_ext <<_ACEOF
30410/* confdefs.h. */
30411_ACEOF
30412cat confdefs.h >>conftest.$ac_ext
30413cat >>conftest.$ac_ext <<_ACEOF
30414/* end confdefs.h. */
30415
30416/* Override any gcc2 internal prototype to avoid an error. */
30417#ifdef __cplusplus
30418extern "C"
30419#endif
30420/* We use char because int might match the return type of a gcc2
30421 builtin and then its argument prototype would still apply. */
30422char wcslen ();
30423int
30424main ()
30425{
30426wcslen ();
30427 ;
30428 return 0;
30429}
30430_ACEOF
30431rm -f conftest.$ac_objext conftest$ac_exeext
30432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30433 (eval $ac_link) 2>conftest.er1
a848cd7e 30434 ac_status=$?
ac1cb8d3
VS
30435 grep -v '^ *+' conftest.er1 >conftest.err
30436 rm -f conftest.er1
30437 cat conftest.err >&5
a848cd7e
SC
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); } &&
07158944 30440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30442 (eval $ac_try) 2>&5
30443 ac_status=$?
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; } &&
30446 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30448 (eval $ac_try) 2>&5
30449 ac_status=$?
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); }; }; then
30452 ac_cv_lib_w_wcslen=yes
30453else
30454 echo "$as_me: failed program was:" >&5
30455sed 's/^/| /' conftest.$ac_ext >&5
30456
30457ac_cv_lib_w_wcslen=no
30458fi
ac1cb8d3
VS
30459rm -f conftest.err conftest.$ac_objext \
30460 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30461LIBS=$ac_check_lib_save_LIBS
30462fi
30463echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30464echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30465if test $ac_cv_lib_w_wcslen = yes; then
30466
30467 WCHAR_LINK=" -lw"
30468 WCSLEN_FOUND=1
30469
30470fi
30471
30472 fi
30473 fi
30474
30475 if test "$WCSLEN_FOUND" = 1; then
30476 cat >>confdefs.h <<\_ACEOF
30477#define HAVE_WCSLEN 1
30478_ACEOF
30479
30480 fi
30481
81f90336 30482 if test "$USE_HPUX" = 1; then
473276a9
VS
30483 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30484 fi
30485
a848cd7e
SC
30486
30487for ac_func in wcsrtombs
30488do
30489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30490echo "$as_me:$LINENO: checking for $ac_func" >&5
30491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30492if eval "test \"\${$as_ac_var+set}\" = set"; then
30493 echo $ECHO_N "(cached) $ECHO_C" >&6
30494else
30495 cat >conftest.$ac_ext <<_ACEOF
30496/* confdefs.h. */
30497_ACEOF
30498cat confdefs.h >>conftest.$ac_ext
30499cat >>conftest.$ac_ext <<_ACEOF
30500/* end confdefs.h. */
ac1cb8d3
VS
30501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30503#define $ac_func innocuous_$ac_func
30504
a848cd7e
SC
30505/* System header to define __stub macros and hopefully few prototypes,
30506 which can conflict with char $ac_func (); below.
30507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30508 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30509
a848cd7e
SC
30510#ifdef __STDC__
30511# include <limits.h>
30512#else
30513# include <assert.h>
30514#endif
ac1cb8d3
VS
30515
30516#undef $ac_func
30517
a848cd7e
SC
30518/* Override any gcc2 internal prototype to avoid an error. */
30519#ifdef __cplusplus
30520extern "C"
30521{
30522#endif
30523/* We use char because int might match the return type of a gcc2
30524 builtin and then its argument prototype would still apply. */
30525char $ac_func ();
30526/* The GNU C library defines this for functions which it implements
30527 to always fail with ENOSYS. Some functions are actually named
30528 something starting with __ and the normal name is an alias. */
30529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30530choke me
30531#else
30532char (*f) () = $ac_func;
30533#endif
30534#ifdef __cplusplus
30535}
30536#endif
30537
30538int
30539main ()
30540{
30541return f != $ac_func;
30542 ;
30543 return 0;
30544}
30545_ACEOF
30546rm -f conftest.$ac_objext conftest$ac_exeext
30547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30548 (eval $ac_link) 2>conftest.er1
a848cd7e 30549 ac_status=$?
ac1cb8d3
VS
30550 grep -v '^ *+' conftest.er1 >conftest.err
30551 rm -f conftest.er1
30552 cat conftest.err >&5
a848cd7e
SC
30553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554 (exit $ac_status); } &&
07158944 30555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30557 (eval $ac_try) 2>&5
30558 ac_status=$?
30559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560 (exit $ac_status); }; } &&
30561 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30563 (eval $ac_try) 2>&5
30564 ac_status=$?
30565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566 (exit $ac_status); }; }; then
30567 eval "$as_ac_var=yes"
30568else
30569 echo "$as_me: failed program was:" >&5
30570sed 's/^/| /' conftest.$ac_ext >&5
30571
30572eval "$as_ac_var=no"
30573fi
ac1cb8d3
VS
30574rm -f conftest.err conftest.$ac_objext \
30575 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30576fi
30577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30578echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30579if test `eval echo '${'$as_ac_var'}'` = yes; then
30580 cat >>confdefs.h <<_ACEOF
30581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30582_ACEOF
30583
30584fi
30585done
30586
30587else
30588 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30589echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30590fi
30591
30592
30593
30594ac_ext=cc
30595ac_cpp='$CXXCPP $CPPFLAGS'
30596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30599
30600
30601
30602for ac_func in vsnprintf
30603do
30604as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30605echo "$as_me:$LINENO: checking for $ac_func" >&5
30606echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30607if eval "test \"\${$as_ac_var+set}\" = set"; then
30608 echo $ECHO_N "(cached) $ECHO_C" >&6
30609else
30610 cat >conftest.$ac_ext <<_ACEOF
30611/* confdefs.h. */
30612_ACEOF
30613cat confdefs.h >>conftest.$ac_ext
30614cat >>conftest.$ac_ext <<_ACEOF
30615/* end confdefs.h. */
ac1cb8d3
VS
30616/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30618#define $ac_func innocuous_$ac_func
30619
a848cd7e
SC
30620/* System header to define __stub macros and hopefully few prototypes,
30621 which can conflict with char $ac_func (); below.
30622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30623 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30624
a848cd7e
SC
30625#ifdef __STDC__
30626# include <limits.h>
30627#else
30628# include <assert.h>
30629#endif
ac1cb8d3
VS
30630
30631#undef $ac_func
30632
a848cd7e
SC
30633/* Override any gcc2 internal prototype to avoid an error. */
30634#ifdef __cplusplus
30635extern "C"
30636{
30637#endif
30638/* We use char because int might match the return type of a gcc2
30639 builtin and then its argument prototype would still apply. */
30640char $ac_func ();
30641/* The GNU C library defines this for functions which it implements
30642 to always fail with ENOSYS. Some functions are actually named
30643 something starting with __ and the normal name is an alias. */
30644#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30645choke me
30646#else
30647char (*f) () = $ac_func;
30648#endif
30649#ifdef __cplusplus
30650}
30651#endif
30652
30653int
30654main ()
30655{
30656return f != $ac_func;
30657 ;
30658 return 0;
30659}
30660_ACEOF
30661rm -f conftest.$ac_objext conftest$ac_exeext
30662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30663 (eval $ac_link) 2>conftest.er1
a848cd7e 30664 ac_status=$?
ac1cb8d3
VS
30665 grep -v '^ *+' conftest.er1 >conftest.err
30666 rm -f conftest.er1
30667 cat conftest.err >&5
a848cd7e
SC
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); } &&
07158944 30670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30672 (eval $ac_try) 2>&5
30673 ac_status=$?
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); }; } &&
30676 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30678 (eval $ac_try) 2>&5
30679 ac_status=$?
30680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681 (exit $ac_status); }; }; then
30682 eval "$as_ac_var=yes"
30683else
30684 echo "$as_me: failed program was:" >&5
30685sed 's/^/| /' conftest.$ac_ext >&5
30686
30687eval "$as_ac_var=no"
30688fi
ac1cb8d3
VS
30689rm -f conftest.err conftest.$ac_objext \
30690 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30691fi
30692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30693echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30694if test `eval echo '${'$as_ac_var'}'` = yes; then
30695 cat >>confdefs.h <<_ACEOF
30696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30697_ACEOF
30698
30699fi
30700done
30701
30702
30703if test "$ac_cv_func_vsnprintf" = "yes"; then
30704 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30705echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30706if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30707 echo $ECHO_N "(cached) $ECHO_C" >&6
30708else
30709
30710 cat >conftest.$ac_ext <<_ACEOF
30711/* confdefs.h. */
30712_ACEOF
30713cat confdefs.h >>conftest.$ac_ext
30714cat >>conftest.$ac_ext <<_ACEOF
30715/* end confdefs.h. */
30716
30717 #include <stdio.h>
30718 #include <stdarg.h>
30719
30720int
30721main ()
30722{
30723
30724 char *buf;
30725 va_list ap;
30726 vsnprintf(buf, 10u, "%s", ap);
30727
30728 ;
30729 return 0;
30730}
30731_ACEOF
30732rm -f conftest.$ac_objext
30733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30734 (eval $ac_compile) 2>conftest.er1
a848cd7e 30735 ac_status=$?
ac1cb8d3
VS
30736 grep -v '^ *+' conftest.er1 >conftest.err
30737 rm -f conftest.er1
30738 cat conftest.err >&5
a848cd7e
SC
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); } &&
07158944 30741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30743 (eval $ac_try) 2>&5
30744 ac_status=$?
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); }; } &&
30747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30749 (eval $ac_try) 2>&5
30750 ac_status=$?
30751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752 (exit $ac_status); }; }; then
30753 wx_cv_func_vsnprintf_decl=yes
30754else
30755 echo "$as_me: failed program was:" >&5
30756sed 's/^/| /' conftest.$ac_ext >&5
30757
c122b164
DE
30758
30759 cat >conftest.$ac_ext <<_ACEOF
30760/* confdefs.h. */
30761_ACEOF
30762cat confdefs.h >>conftest.$ac_ext
30763cat >>conftest.$ac_ext <<_ACEOF
30764/* end confdefs.h. */
30765
30766 #include <stdio.h>
30767 #include <stdarg.h>
30768 using namespace std;
30769
30770int
30771main ()
30772{
30773
30774 char *buf;
30775 va_list ap;
30776 vsnprintf(buf, 10u, "%s", ap);
30777
30778 ;
30779 return 0;
30780}
30781_ACEOF
30782rm -f conftest.$ac_objext
30783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30784 (eval $ac_compile) 2>conftest.er1
30785 ac_status=$?
30786 grep -v '^ *+' conftest.er1 >conftest.err
30787 rm -f conftest.er1
30788 cat conftest.err >&5
30789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790 (exit $ac_status); } &&
07158944 30791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
30792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30793 (eval $ac_try) 2>&5
30794 ac_status=$?
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); }; } &&
30797 { ac_try='test -s conftest.$ac_objext'
30798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30799 (eval $ac_try) 2>&5
30800 ac_status=$?
30801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802 (exit $ac_status); }; }; then
30803 wx_cv_func_vsnprintf_decl=yes
30804else
30805 echo "$as_me: failed program was:" >&5
30806sed 's/^/| /' conftest.$ac_ext >&5
30807
a848cd7e
SC
30808wx_cv_func_vsnprintf_decl=no
30809
30810fi
ac1cb8d3 30811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30812
30813
c122b164
DE
30814fi
30815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30816
30817
a848cd7e
SC
30818fi
30819echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30820echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30821
30822 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30823 cat >>confdefs.h <<\_ACEOF
30824#define HAVE_VSNPRINTF_DECL 1
30825_ACEOF
30826
30827 fi
30828fi
30829
30830if test "$wxUSE_UNICODE" = yes; then
30831
30832
30833
fbe47c7b
VS
30834
30835
30836
30837for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
30838do
30839as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30840echo "$as_me:$LINENO: checking for $ac_func" >&5
30841echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30842if eval "test \"\${$as_ac_var+set}\" = set"; then
30843 echo $ECHO_N "(cached) $ECHO_C" >&6
30844else
30845 cat >conftest.$ac_ext <<_ACEOF
30846/* confdefs.h. */
30847_ACEOF
30848cat confdefs.h >>conftest.$ac_ext
30849cat >>conftest.$ac_ext <<_ACEOF
30850/* end confdefs.h. */
ac1cb8d3
VS
30851/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30853#define $ac_func innocuous_$ac_func
30854
a848cd7e
SC
30855/* System header to define __stub macros and hopefully few prototypes,
30856 which can conflict with char $ac_func (); below.
30857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30858 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30859
a848cd7e
SC
30860#ifdef __STDC__
30861# include <limits.h>
30862#else
30863# include <assert.h>
30864#endif
ac1cb8d3
VS
30865
30866#undef $ac_func
30867
a848cd7e
SC
30868/* Override any gcc2 internal prototype to avoid an error. */
30869#ifdef __cplusplus
30870extern "C"
30871{
30872#endif
30873/* We use char because int might match the return type of a gcc2
30874 builtin and then its argument prototype would still apply. */
30875char $ac_func ();
30876/* The GNU C library defines this for functions which it implements
30877 to always fail with ENOSYS. Some functions are actually named
30878 something starting with __ and the normal name is an alias. */
30879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30880choke me
30881#else
30882char (*f) () = $ac_func;
30883#endif
30884#ifdef __cplusplus
30885}
30886#endif
30887
30888int
30889main ()
30890{
30891return f != $ac_func;
30892 ;
30893 return 0;
30894}
30895_ACEOF
30896rm -f conftest.$ac_objext conftest$ac_exeext
30897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30898 (eval $ac_link) 2>conftest.er1
a848cd7e 30899 ac_status=$?
ac1cb8d3
VS
30900 grep -v '^ *+' conftest.er1 >conftest.err
30901 rm -f conftest.er1
30902 cat conftest.err >&5
a848cd7e
SC
30903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904 (exit $ac_status); } &&
07158944 30905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30907 (eval $ac_try) 2>&5
30908 ac_status=$?
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); }; } &&
30911 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30913 (eval $ac_try) 2>&5
30914 ac_status=$?
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); }; }; then
30917 eval "$as_ac_var=yes"
30918else
30919 echo "$as_me: failed program was:" >&5
30920sed 's/^/| /' conftest.$ac_ext >&5
30921
30922eval "$as_ac_var=no"
30923fi
ac1cb8d3
VS
30924rm -f conftest.err conftest.$ac_objext \
30925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30926fi
30927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30928echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30929if test `eval echo '${'$as_ac_var'}'` = yes; then
30930 cat >>confdefs.h <<_ACEOF
30931#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30932_ACEOF
30933
30934fi
30935done
30936
30937
30938 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30939echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30940 cat >conftest.$ac_ext <<_ACEOF
30941/* confdefs.h. */
30942_ACEOF
30943cat confdefs.h >>conftest.$ac_ext
30944cat >>conftest.$ac_ext <<_ACEOF
30945/* end confdefs.h. */
30946#include <wchar.h>
30947int
30948main ()
30949{
30950&_vsnwprintf;
30951 ;
30952 return 0;
30953}
30954_ACEOF
30955rm -f conftest.$ac_objext
30956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30957 (eval $ac_compile) 2>conftest.er1
a848cd7e 30958 ac_status=$?
ac1cb8d3
VS
30959 grep -v '^ *+' conftest.er1 >conftest.err
30960 rm -f conftest.er1
30961 cat conftest.err >&5
a848cd7e
SC
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); } &&
07158944 30964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30966 (eval $ac_try) 2>&5
30967 ac_status=$?
30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969 (exit $ac_status); }; } &&
30970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30972 (eval $ac_try) 2>&5
30973 ac_status=$?
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); }; }; then
30976 echo "$as_me:$LINENO: result: yes" >&5
30977echo "${ECHO_T}yes" >&6
30978 cat >>confdefs.h <<\_ACEOF
30979#define HAVE__VSNWPRINTF 1
30980_ACEOF
30981
30982else
30983 echo "$as_me: failed program was:" >&5
30984sed 's/^/| /' conftest.$ac_ext >&5
30985
30986echo "$as_me:$LINENO: result: no" >&5
30987echo "${ECHO_T}no" >&6
30988fi
ac1cb8d3 30989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
30990fi
30991
30992ac_ext=c
30993ac_cpp='$CPP $CPPFLAGS'
30994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30996ac_compiler_gnu=$ac_cv_c_compiler_gnu
30997
30998
30999
31000
31001if test "$TOOLKIT" != "MSW"; then
31002
31003
31004
31005
31006ac_ext=cc
31007ac_cpp='$CXXCPP $CPPFLAGS'
31008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31011
31012
31013
31014
31015# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31016if test "${with_libiconv_prefix+set}" = set; then
31017 withval="$with_libiconv_prefix"
31018
31019 for dir in `echo "$withval" | tr : ' '`; do
31020 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31021 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31022 done
31023
31024fi;
31025
31026 echo "$as_me:$LINENO: checking for iconv" >&5
31027echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31028if test "${am_cv_func_iconv+set}" = set; then
31029 echo $ECHO_N "(cached) $ECHO_C" >&6
31030else
31031
31032 am_cv_func_iconv="no, consider installing GNU libiconv"
31033 am_cv_lib_iconv=no
31034 cat >conftest.$ac_ext <<_ACEOF
31035/* confdefs.h. */
31036_ACEOF
31037cat confdefs.h >>conftest.$ac_ext
31038cat >>conftest.$ac_ext <<_ACEOF
31039/* end confdefs.h. */
31040#include <stdlib.h>
31041#include <iconv.h>
31042int
31043main ()
31044{
31045iconv_t cd = iconv_open("","");
31046 iconv(cd,NULL,NULL,NULL,NULL);
31047 iconv_close(cd);
31048 ;
31049 return 0;
31050}
31051_ACEOF
31052rm -f conftest.$ac_objext conftest$ac_exeext
31053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31054 (eval $ac_link) 2>conftest.er1
a848cd7e 31055 ac_status=$?
ac1cb8d3
VS
31056 grep -v '^ *+' conftest.er1 >conftest.err
31057 rm -f conftest.er1
31058 cat conftest.err >&5
a848cd7e
SC
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } &&
07158944 31061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31063 (eval $ac_try) 2>&5
31064 ac_status=$?
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); }; } &&
31067 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31069 (eval $ac_try) 2>&5
31070 ac_status=$?
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); }; }; then
31073 am_cv_func_iconv=yes
31074else
31075 echo "$as_me: failed program was:" >&5
31076sed 's/^/| /' conftest.$ac_ext >&5
31077
31078fi
ac1cb8d3
VS
31079rm -f conftest.err conftest.$ac_objext \
31080 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31081 if test "$am_cv_func_iconv" != yes; then
31082 am_save_LIBS="$LIBS"
31083 LIBS="$LIBS -liconv"
31084 cat >conftest.$ac_ext <<_ACEOF
31085/* confdefs.h. */
31086_ACEOF
31087cat confdefs.h >>conftest.$ac_ext
31088cat >>conftest.$ac_ext <<_ACEOF
31089/* end confdefs.h. */
31090#include <stdlib.h>
31091#include <iconv.h>
31092int
31093main ()
31094{
31095iconv_t cd = iconv_open("","");
31096 iconv(cd,NULL,NULL,NULL,NULL);
31097 iconv_close(cd);
31098 ;
31099 return 0;
31100}
31101_ACEOF
31102rm -f conftest.$ac_objext conftest$ac_exeext
31103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31104 (eval $ac_link) 2>conftest.er1
a848cd7e 31105 ac_status=$?
ac1cb8d3
VS
31106 grep -v '^ *+' conftest.er1 >conftest.err
31107 rm -f conftest.er1
31108 cat conftest.err >&5
a848cd7e
SC
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); } &&
07158944 31111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31113 (eval $ac_try) 2>&5
31114 ac_status=$?
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); }; } &&
31117 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31119 (eval $ac_try) 2>&5
31120 ac_status=$?
31121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122 (exit $ac_status); }; }; then
31123 am_cv_lib_iconv=yes
31124 am_cv_func_iconv=yes
31125else
31126 echo "$as_me: failed program was:" >&5
31127sed 's/^/| /' conftest.$ac_ext >&5
31128
31129fi
ac1cb8d3
VS
31130rm -f conftest.err conftest.$ac_objext \
31131 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31132 LIBS="$am_save_LIBS"
31133 fi
31134
31135fi
31136echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31137echo "${ECHO_T}$am_cv_func_iconv" >&6
31138 if test "$am_cv_func_iconv" = yes; then
31139
31140cat >>confdefs.h <<\_ACEOF
31141#define HAVE_ICONV 1
31142_ACEOF
31143
31144 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31145echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31146if test "${wx_cv_func_iconv_const+set}" = set; then
31147 echo $ECHO_N "(cached) $ECHO_C" >&6
31148else
31149 cat >conftest.$ac_ext <<_ACEOF
31150/* confdefs.h. */
31151_ACEOF
31152cat confdefs.h >>conftest.$ac_ext
31153cat >>conftest.$ac_ext <<_ACEOF
31154/* end confdefs.h. */
31155
31156#include <stdlib.h>
31157#include <iconv.h>
31158extern
31159#ifdef __cplusplus
31160"C"
31161#endif
31162#if defined(__STDC__) || defined(__cplusplus)
31163size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31164#else
31165size_t iconv();
31166#endif
31167
31168int
31169main ()
31170{
31171
31172 ;
31173 return 0;
31174}
31175_ACEOF
31176rm -f conftest.$ac_objext
31177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31178 (eval $ac_compile) 2>conftest.er1
a848cd7e 31179 ac_status=$?
ac1cb8d3
VS
31180 grep -v '^ *+' conftest.er1 >conftest.err
31181 rm -f conftest.er1
31182 cat conftest.err >&5
a848cd7e
SC
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); } &&
07158944 31185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31187 (eval $ac_try) 2>&5
31188 ac_status=$?
31189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190 (exit $ac_status); }; } &&
31191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31193 (eval $ac_try) 2>&5
31194 ac_status=$?
31195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196 (exit $ac_status); }; }; then
31197 wx_cv_func_iconv_const="no"
31198else
31199 echo "$as_me: failed program was:" >&5
31200sed 's/^/| /' conftest.$ac_ext >&5
31201
31202wx_cv_func_iconv_const="yes"
31203
31204fi
ac1cb8d3 31205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31206
31207fi
31208echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31209echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31210
31211 iconv_const=
31212 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31213 iconv_const="const"
31214 fi
31215
31216
31217cat >>confdefs.h <<_ACEOF
31218#define ICONV_CONST $iconv_const
31219_ACEOF
31220
31221 fi
31222 LIBICONV=
31223 if test "$am_cv_lib_iconv" = yes; then
31224 LIBICONV="-liconv"
31225 fi
31226
31227
31228LIBS="$LIBICONV $LIBS"
31229ac_ext=c
31230ac_cpp='$CPP $CPPFLAGS'
31231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31233ac_compiler_gnu=$ac_cv_c_compiler_gnu
31234
31235
31236if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31237
31238for ac_func in sigaction
31239do
31240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31241echo "$as_me:$LINENO: checking for $ac_func" >&5
31242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31243if eval "test \"\${$as_ac_var+set}\" = set"; then
31244 echo $ECHO_N "(cached) $ECHO_C" >&6
31245else
31246 cat >conftest.$ac_ext <<_ACEOF
31247/* confdefs.h. */
31248_ACEOF
31249cat confdefs.h >>conftest.$ac_ext
31250cat >>conftest.$ac_ext <<_ACEOF
31251/* end confdefs.h. */
ac1cb8d3
VS
31252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31254#define $ac_func innocuous_$ac_func
31255
a848cd7e
SC
31256/* System header to define __stub macros and hopefully few prototypes,
31257 which can conflict with char $ac_func (); below.
31258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31259 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31260
a848cd7e
SC
31261#ifdef __STDC__
31262# include <limits.h>
31263#else
31264# include <assert.h>
31265#endif
ac1cb8d3
VS
31266
31267#undef $ac_func
31268
a848cd7e
SC
31269/* Override any gcc2 internal prototype to avoid an error. */
31270#ifdef __cplusplus
31271extern "C"
31272{
31273#endif
31274/* We use char because int might match the return type of a gcc2
31275 builtin and then its argument prototype would still apply. */
31276char $ac_func ();
31277/* The GNU C library defines this for functions which it implements
31278 to always fail with ENOSYS. Some functions are actually named
31279 something starting with __ and the normal name is an alias. */
31280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31281choke me
31282#else
31283char (*f) () = $ac_func;
31284#endif
31285#ifdef __cplusplus
31286}
31287#endif
31288
31289int
31290main ()
31291{
31292return f != $ac_func;
31293 ;
31294 return 0;
31295}
31296_ACEOF
31297rm -f conftest.$ac_objext conftest$ac_exeext
31298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31299 (eval $ac_link) 2>conftest.er1
a848cd7e 31300 ac_status=$?
ac1cb8d3
VS
31301 grep -v '^ *+' conftest.er1 >conftest.err
31302 rm -f conftest.er1
31303 cat conftest.err >&5
a848cd7e
SC
31304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31305 (exit $ac_status); } &&
07158944 31306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308 (eval $ac_try) 2>&5
31309 ac_status=$?
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; } &&
31312 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314 (eval $ac_try) 2>&5
31315 ac_status=$?
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); }; }; then
31318 eval "$as_ac_var=yes"
31319else
31320 echo "$as_me: failed program was:" >&5
31321sed 's/^/| /' conftest.$ac_ext >&5
31322
31323eval "$as_ac_var=no"
31324fi
ac1cb8d3
VS
31325rm -f conftest.err conftest.$ac_objext \
31326 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31327fi
31328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31329echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31330if test `eval echo '${'$as_ac_var'}'` = yes; then
31331 cat >>confdefs.h <<_ACEOF
31332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31333_ACEOF
31334
31335fi
31336done
31337
31338
31339 if test "$ac_cv_func_sigaction" = "no"; then
31340 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31341echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31342 wxUSE_ON_FATAL_EXCEPTION=no
31343 fi
31344
31345 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31346
31347
31348 ac_ext=cc
31349ac_cpp='$CXXCPP $CPPFLAGS'
31350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31353
31354
31355 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31356echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31357if test "${wx_cv_type_sa_handler+set}" = set; then
31358 echo $ECHO_N "(cached) $ECHO_C" >&6
31359else
31360
31361 cat >conftest.$ac_ext <<_ACEOF
31362/* confdefs.h. */
31363_ACEOF
31364cat confdefs.h >>conftest.$ac_ext
31365cat >>conftest.$ac_ext <<_ACEOF
31366/* end confdefs.h. */
31367#include <signal.h>
31368int
31369main ()
31370{
31371
31372 extern void testSigHandler(int);
31373
31374 struct sigaction sa;
31375 sa.sa_handler = testSigHandler;
31376
31377 ;
31378 return 0;
31379}
31380_ACEOF
31381rm -f conftest.$ac_objext
31382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31383 (eval $ac_compile) 2>conftest.er1
a848cd7e 31384 ac_status=$?
ac1cb8d3
VS
31385 grep -v '^ *+' conftest.er1 >conftest.err
31386 rm -f conftest.er1
31387 cat conftest.err >&5
a848cd7e
SC
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); } &&
07158944 31390 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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_objext'
a848cd7e
SC
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 wx_cv_type_sa_handler=int
31404
31405else
31406 echo "$as_me: failed program was:" >&5
31407sed 's/^/| /' conftest.$ac_ext >&5
31408
31409
31410 wx_cv_type_sa_handler=void
31411
31412fi
ac1cb8d3 31413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31414
31415fi
31416echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31417echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31418
31419 ac_ext=c
31420ac_cpp='$CPP $CPPFLAGS'
31421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31423ac_compiler_gnu=$ac_cv_c_compiler_gnu
31424
31425
31426 cat >>confdefs.h <<_ACEOF
31427#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31428_ACEOF
31429
31430 fi
31431fi
31432
eaff0f0d
VZ
31433if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31434
31435
31436 ac_ext=cc
31437ac_cpp='$CXXCPP $CPPFLAGS'
31438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31441
31442
31443 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31444echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31445if test "${wx_cv_func_backtrace+set}" = set; then
31446 echo $ECHO_N "(cached) $ECHO_C" >&6
31447else
31448
31449 cat >conftest.$ac_ext <<_ACEOF
31450/* confdefs.h. */
31451_ACEOF
31452cat confdefs.h >>conftest.$ac_ext
31453cat >>conftest.$ac_ext <<_ACEOF
31454/* end confdefs.h. */
31455#include <execinfo.h>
31456int
31457main ()
31458{
31459
31460 void *trace[1];
31461 char **messages;
31462
31463 backtrace(trace, 1);
31464 messages = backtrace_symbols(trace, 1);
31465
31466 ;
31467 return 0;
31468}
31469_ACEOF
31470rm -f conftest.$ac_objext
31471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31472 (eval $ac_compile) 2>conftest.er1
31473 ac_status=$?
31474 grep -v '^ *+' conftest.er1 >conftest.err
31475 rm -f conftest.er1
31476 cat conftest.err >&5
31477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478 (exit $ac_status); } &&
07158944 31479 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31481 (eval $ac_try) 2>&5
31482 ac_status=$?
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); }; } &&
31485 { ac_try='test -s conftest.$ac_objext'
31486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31487 (eval $ac_try) 2>&5
31488 ac_status=$?
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; }; then
31491 wx_cv_func_backtrace=yes
31492else
31493 echo "$as_me: failed program was:" >&5
31494sed 's/^/| /' conftest.$ac_ext >&5
31495
31496wx_cv_func_backtrace=no
31497
31498fi
31499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31500
31501
31502fi
31503echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31504echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31505
31506
31507 if test "$wx_cv_func_backtrace" = "no"; then
31508 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31509echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31510 wxUSE_STACKWALKER=no
31511 else
31512 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31513echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31514if test "${wx_cv_func_cxa_demangle+set}" = set; then
31515 echo $ECHO_N "(cached) $ECHO_C" >&6
31516else
31517
31518 cat >conftest.$ac_ext <<_ACEOF
31519/* confdefs.h. */
31520_ACEOF
31521cat confdefs.h >>conftest.$ac_ext
31522cat >>conftest.$ac_ext <<_ACEOF
31523/* end confdefs.h. */
31524#include <cxxabi.h>
31525int
31526main ()
31527{
31528
31529 int rc;
31530 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31531
31532 ;
31533 return 0;
31534}
31535_ACEOF
31536rm -f conftest.$ac_objext
31537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31538 (eval $ac_compile) 2>conftest.er1
31539 ac_status=$?
31540 grep -v '^ *+' conftest.er1 >conftest.err
31541 rm -f conftest.er1
31542 cat conftest.err >&5
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); } &&
07158944 31545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31547 (eval $ac_try) 2>&5
31548 ac_status=$?
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; } &&
31551 { ac_try='test -s conftest.$ac_objext'
31552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553 (eval $ac_try) 2>&5
31554 ac_status=$?
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); }; }; then
31557 wx_cv_func_cxa_demangle=yes
31558else
31559 echo "$as_me: failed program was:" >&5
31560sed 's/^/| /' conftest.$ac_ext >&5
31561
31562wx_cv_func_cxa_demangle=no
31563
31564fi
31565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31566
31567
31568fi
31569echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31570echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31571
31572 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31573 cat >>confdefs.h <<\_ACEOF
31574#define HAVE_CXA_DEMANGLE 1
31575_ACEOF
31576
31577 fi
31578 fi
31579
31580 ac_ext=c
31581ac_cpp='$CPP $CPPFLAGS'
31582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31584ac_compiler_gnu=$ac_cv_c_compiler_gnu
31585
31586fi
31587
a848cd7e
SC
31588
31589
31590for ac_func in mkstemp mktemp
31591do
31592as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31593echo "$as_me:$LINENO: checking for $ac_func" >&5
31594echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31595if eval "test \"\${$as_ac_var+set}\" = set"; then
31596 echo $ECHO_N "(cached) $ECHO_C" >&6
31597else
31598 cat >conftest.$ac_ext <<_ACEOF
31599/* confdefs.h. */
31600_ACEOF
31601cat confdefs.h >>conftest.$ac_ext
31602cat >>conftest.$ac_ext <<_ACEOF
31603/* end confdefs.h. */
ac1cb8d3
VS
31604/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31606#define $ac_func innocuous_$ac_func
31607
a848cd7e
SC
31608/* System header to define __stub macros and hopefully few prototypes,
31609 which can conflict with char $ac_func (); below.
31610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31611 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31612
a848cd7e
SC
31613#ifdef __STDC__
31614# include <limits.h>
31615#else
31616# include <assert.h>
31617#endif
ac1cb8d3
VS
31618
31619#undef $ac_func
31620
a848cd7e
SC
31621/* Override any gcc2 internal prototype to avoid an error. */
31622#ifdef __cplusplus
31623extern "C"
31624{
31625#endif
31626/* We use char because int might match the return type of a gcc2
31627 builtin and then its argument prototype would still apply. */
31628char $ac_func ();
31629/* The GNU C library defines this for functions which it implements
31630 to always fail with ENOSYS. Some functions are actually named
31631 something starting with __ and the normal name is an alias. */
31632#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31633choke me
31634#else
31635char (*f) () = $ac_func;
31636#endif
31637#ifdef __cplusplus
31638}
31639#endif
31640
31641int
31642main ()
31643{
31644return f != $ac_func;
31645 ;
31646 return 0;
31647}
31648_ACEOF
31649rm -f conftest.$ac_objext conftest$ac_exeext
31650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31651 (eval $ac_link) 2>conftest.er1
a848cd7e 31652 ac_status=$?
ac1cb8d3
VS
31653 grep -v '^ *+' conftest.er1 >conftest.err
31654 rm -f conftest.er1
31655 cat conftest.err >&5
a848cd7e
SC
31656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657 (exit $ac_status); } &&
07158944 31658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31660 (eval $ac_try) 2>&5
31661 ac_status=$?
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); }; } &&
31664 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31666 (eval $ac_try) 2>&5
31667 ac_status=$?
31668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 (exit $ac_status); }; }; then
31670 eval "$as_ac_var=yes"
31671else
31672 echo "$as_me: failed program was:" >&5
31673sed 's/^/| /' conftest.$ac_ext >&5
31674
31675eval "$as_ac_var=no"
31676fi
ac1cb8d3
VS
31677rm -f conftest.err conftest.$ac_objext \
31678 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31679fi
31680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31681echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31682if test `eval echo '${'$as_ac_var'}'` = yes; then
31683 cat >>confdefs.h <<_ACEOF
31684#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31685_ACEOF
31686 break
31687fi
31688done
31689
31690
31691echo "$as_me:$LINENO: checking for statfs" >&5
31692echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31693if test "${wx_cv_func_statfs+set}" = set; then
31694 echo $ECHO_N "(cached) $ECHO_C" >&6
31695else
31696 cat >conftest.$ac_ext <<_ACEOF
31697/* confdefs.h. */
31698_ACEOF
31699cat confdefs.h >>conftest.$ac_ext
31700cat >>conftest.$ac_ext <<_ACEOF
31701/* end confdefs.h. */
31702
31703 #if defined(__BSD__)
31704 #include <sys/param.h>
31705 #include <sys/mount.h>
31706 #else
31707 #include <sys/vfs.h>
31708 #endif
31709
31710int
31711main ()
31712{
31713
31714 long l;
31715 struct statfs fs;
31716 statfs("/", &fs);
31717 l = fs.f_bsize;
31718 l += fs.f_blocks;
31719 l += fs.f_bavail;
31720
31721 ;
31722 return 0;
31723}
31724_ACEOF
31725rm -f conftest.$ac_objext
31726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31727 (eval $ac_compile) 2>conftest.er1
a848cd7e 31728 ac_status=$?
ac1cb8d3
VS
31729 grep -v '^ *+' conftest.er1 >conftest.err
31730 rm -f conftest.er1
31731 cat conftest.err >&5
a848cd7e
SC
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } &&
07158944 31734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31736 (eval $ac_try) 2>&5
31737 ac_status=$?
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); }; } &&
31740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31742 (eval $ac_try) 2>&5
31743 ac_status=$?
31744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745 (exit $ac_status); }; }; then
31746
31747 wx_cv_func_statfs=yes
31748
31749else
31750 echo "$as_me: failed program was:" >&5
31751sed 's/^/| /' conftest.$ac_ext >&5
31752
31753
31754 wx_cv_func_statfs=no
31755
31756
31757fi
ac1cb8d3 31758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31759
31760fi
31761echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31762echo "${ECHO_T}$wx_cv_func_statfs" >&6
31763
31764if test "$wx_cv_func_statfs" = "yes"; then
31765 wx_cv_type_statvfs_t="struct statfs"
31766 cat >>confdefs.h <<\_ACEOF
31767#define HAVE_STATFS 1
31768_ACEOF
31769
31770else
31771 echo "$as_me:$LINENO: checking for statvfs" >&5
31772echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31773if test "${wx_cv_func_statvfs+set}" = set; then
31774 echo $ECHO_N "(cached) $ECHO_C" >&6
31775else
31776 cat >conftest.$ac_ext <<_ACEOF
31777/* confdefs.h. */
31778_ACEOF
31779cat confdefs.h >>conftest.$ac_ext
31780cat >>conftest.$ac_ext <<_ACEOF
31781/* end confdefs.h. */
31782
31783 #include <stddef.h>
31784 #include <sys/statvfs.h>
31785
31786int
31787main ()
31788{
31789
31790 statvfs("/", NULL);
31791
31792 ;
31793 return 0;
31794}
31795_ACEOF
31796rm -f conftest.$ac_objext
31797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31798 (eval $ac_compile) 2>conftest.er1
a848cd7e 31799 ac_status=$?
ac1cb8d3
VS
31800 grep -v '^ *+' conftest.er1 >conftest.err
31801 rm -f conftest.er1
31802 cat conftest.err >&5
a848cd7e
SC
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); } &&
07158944 31805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31807 (eval $ac_try) 2>&5
31808 ac_status=$?
31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810 (exit $ac_status); }; } &&
31811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31813 (eval $ac_try) 2>&5
31814 ac_status=$?
31815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31816 (exit $ac_status); }; }; then
31817 wx_cv_func_statvfs=yes
31818else
31819 echo "$as_me: failed program was:" >&5
31820sed 's/^/| /' conftest.$ac_ext >&5
31821
31822wx_cv_func_statvfs=no
31823
31824fi
ac1cb8d3 31825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31826
31827fi
31828echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31829echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31830
31831 if test "$wx_cv_func_statvfs" = "yes"; then
31832
31833
31834 ac_ext=cc
31835ac_cpp='$CXXCPP $CPPFLAGS'
31836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31839
31840
31841 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31842echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31843if test "${wx_cv_type_statvfs_t+set}" = set; then
31844 echo $ECHO_N "(cached) $ECHO_C" >&6
31845else
31846 cat >conftest.$ac_ext <<_ACEOF
31847/* confdefs.h. */
31848_ACEOF
31849cat confdefs.h >>conftest.$ac_ext
31850cat >>conftest.$ac_ext <<_ACEOF
31851/* end confdefs.h. */
31852
31853 #include <sys/statvfs.h>
31854
31855int
31856main ()
31857{
31858
31859 long l;
31860 statvfs_t fs;
31861 statvfs("/", &fs);
31862 l = fs.f_bsize;
31863 l += fs.f_blocks;
31864 l += fs.f_bavail;
31865
31866 ;
31867 return 0;
31868}
31869_ACEOF
31870rm -f conftest.$ac_objext
31871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31872 (eval $ac_compile) 2>conftest.er1
a848cd7e 31873 ac_status=$?
ac1cb8d3
VS
31874 grep -v '^ *+' conftest.er1 >conftest.err
31875 rm -f conftest.er1
31876 cat conftest.err >&5
a848cd7e
SC
31877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31878 (exit $ac_status); } &&
07158944 31879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31881 (eval $ac_try) 2>&5
31882 ac_status=$?
31883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 (exit $ac_status); }; } &&
31885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31887 (eval $ac_try) 2>&5
31888 ac_status=$?
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); }; }; then
31891 wx_cv_type_statvfs_t=statvfs_t
31892else
31893 echo "$as_me: failed program was:" >&5
31894sed 's/^/| /' conftest.$ac_ext >&5
31895
31896
31897 cat >conftest.$ac_ext <<_ACEOF
31898/* confdefs.h. */
31899_ACEOF
31900cat confdefs.h >>conftest.$ac_ext
31901cat >>conftest.$ac_ext <<_ACEOF
31902/* end confdefs.h. */
31903
31904 #include <sys/statvfs.h>
31905
31906int
31907main ()
31908{
31909
31910 long l;
31911 struct statvfs fs;
31912 statvfs("/", &fs);
31913 l = fs.f_bsize;
31914 l += fs.f_blocks;
31915 l += fs.f_bavail;
31916
31917 ;
31918 return 0;
31919}
31920_ACEOF
31921rm -f conftest.$ac_objext
31922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31923 (eval $ac_compile) 2>conftest.er1
a848cd7e 31924 ac_status=$?
ac1cb8d3
VS
31925 grep -v '^ *+' conftest.er1 >conftest.err
31926 rm -f conftest.er1
31927 cat conftest.err >&5
a848cd7e
SC
31928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929 (exit $ac_status); } &&
07158944 31930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31932 (eval $ac_try) 2>&5
31933 ac_status=$?
31934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935 (exit $ac_status); }; } &&
31936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31938 (eval $ac_try) 2>&5
31939 ac_status=$?
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); }; }; then
31942 wx_cv_type_statvfs_t="struct statvfs"
31943else
31944 echo "$as_me: failed program was:" >&5
31945sed 's/^/| /' conftest.$ac_ext >&5
31946
31947wx_cv_type_statvfs_t="unknown"
31948
31949fi
ac1cb8d3 31950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31951
31952
31953fi
ac1cb8d3 31954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31955
31956fi
31957echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
31958echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
31959
31960 ac_ext=c
31961ac_cpp='$CPP $CPPFLAGS'
31962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31964ac_compiler_gnu=$ac_cv_c_compiler_gnu
31965
31966
31967 if test "$wx_cv_type_statvfs_t" != "unknown"; then
31968 cat >>confdefs.h <<\_ACEOF
31969#define HAVE_STATVFS 1
31970_ACEOF
31971
31972 fi
31973 else
31974 wx_cv_type_statvfs_t="unknown"
31975 fi
31976fi
31977
31978if test "$wx_cv_type_statvfs_t" != "unknown"; then
31979 cat >>confdefs.h <<_ACEOF
31980#define WX_STATFS_T $wx_cv_type_statvfs_t
31981_ACEOF
31982
31983else
31984 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
31985echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
31986fi
31987
31988if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
31989
31990
31991for ac_func in fcntl flock
31992do
31993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31994echo "$as_me:$LINENO: checking for $ac_func" >&5
31995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31996if eval "test \"\${$as_ac_var+set}\" = set"; then
31997 echo $ECHO_N "(cached) $ECHO_C" >&6
31998else
31999 cat >conftest.$ac_ext <<_ACEOF
32000/* confdefs.h. */
32001_ACEOF
32002cat confdefs.h >>conftest.$ac_ext
32003cat >>conftest.$ac_ext <<_ACEOF
32004/* end confdefs.h. */
ac1cb8d3
VS
32005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32007#define $ac_func innocuous_$ac_func
32008
a848cd7e
SC
32009/* System header to define __stub macros and hopefully few prototypes,
32010 which can conflict with char $ac_func (); below.
32011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32012 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32013
a848cd7e
SC
32014#ifdef __STDC__
32015# include <limits.h>
32016#else
32017# include <assert.h>
32018#endif
ac1cb8d3
VS
32019
32020#undef $ac_func
32021
a848cd7e
SC
32022/* Override any gcc2 internal prototype to avoid an error. */
32023#ifdef __cplusplus
32024extern "C"
32025{
32026#endif
32027/* We use char because int might match the return type of a gcc2
32028 builtin and then its argument prototype would still apply. */
32029char $ac_func ();
32030/* The GNU C library defines this for functions which it implements
32031 to always fail with ENOSYS. Some functions are actually named
32032 something starting with __ and the normal name is an alias. */
32033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32034choke me
32035#else
32036char (*f) () = $ac_func;
32037#endif
32038#ifdef __cplusplus
32039}
32040#endif
32041
32042int
32043main ()
32044{
32045return f != $ac_func;
32046 ;
32047 return 0;
32048}
32049_ACEOF
32050rm -f conftest.$ac_objext conftest$ac_exeext
32051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32052 (eval $ac_link) 2>conftest.er1
a848cd7e 32053 ac_status=$?
ac1cb8d3
VS
32054 grep -v '^ *+' conftest.er1 >conftest.err
32055 rm -f conftest.er1
32056 cat conftest.err >&5
a848cd7e
SC
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); } &&
07158944 32059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32061 (eval $ac_try) 2>&5
32062 ac_status=$?
32063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32064 (exit $ac_status); }; } &&
32065 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32067 (eval $ac_try) 2>&5
32068 ac_status=$?
32069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32070 (exit $ac_status); }; }; then
32071 eval "$as_ac_var=yes"
32072else
32073 echo "$as_me: failed program was:" >&5
32074sed 's/^/| /' conftest.$ac_ext >&5
32075
32076eval "$as_ac_var=no"
32077fi
ac1cb8d3
VS
32078rm -f conftest.err conftest.$ac_objext \
32079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32080fi
32081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32082echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32083if test `eval echo '${'$as_ac_var'}'` = yes; then
32084 cat >>confdefs.h <<_ACEOF
32085#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32086_ACEOF
32087 break
32088fi
32089done
32090
32091
32092 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32093 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32094echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32095 wxUSE_SNGLINST_CHECKER=no
32096 fi
32097fi
32098
32099
32100for ac_func in timegm
32101do
32102as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32103echo "$as_me:$LINENO: checking for $ac_func" >&5
32104echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32105if eval "test \"\${$as_ac_var+set}\" = set"; then
32106 echo $ECHO_N "(cached) $ECHO_C" >&6
32107else
32108 cat >conftest.$ac_ext <<_ACEOF
32109/* confdefs.h. */
32110_ACEOF
32111cat confdefs.h >>conftest.$ac_ext
32112cat >>conftest.$ac_ext <<_ACEOF
32113/* end confdefs.h. */
ac1cb8d3
VS
32114/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32116#define $ac_func innocuous_$ac_func
32117
a848cd7e
SC
32118/* System header to define __stub macros and hopefully few prototypes,
32119 which can conflict with char $ac_func (); below.
32120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32121 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32122
a848cd7e
SC
32123#ifdef __STDC__
32124# include <limits.h>
32125#else
32126# include <assert.h>
32127#endif
ac1cb8d3
VS
32128
32129#undef $ac_func
32130
a848cd7e
SC
32131/* Override any gcc2 internal prototype to avoid an error. */
32132#ifdef __cplusplus
32133extern "C"
32134{
32135#endif
32136/* We use char because int might match the return type of a gcc2
32137 builtin and then its argument prototype would still apply. */
32138char $ac_func ();
32139/* The GNU C library defines this for functions which it implements
32140 to always fail with ENOSYS. Some functions are actually named
32141 something starting with __ and the normal name is an alias. */
32142#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32143choke me
32144#else
32145char (*f) () = $ac_func;
32146#endif
32147#ifdef __cplusplus
32148}
32149#endif
32150
32151int
32152main ()
32153{
32154return f != $ac_func;
32155 ;
32156 return 0;
32157}
32158_ACEOF
32159rm -f conftest.$ac_objext conftest$ac_exeext
32160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32161 (eval $ac_link) 2>conftest.er1
a848cd7e 32162 ac_status=$?
ac1cb8d3
VS
32163 grep -v '^ *+' conftest.er1 >conftest.err
32164 rm -f conftest.er1
32165 cat conftest.err >&5
a848cd7e
SC
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); } &&
07158944 32168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32170 (eval $ac_try) 2>&5
32171 ac_status=$?
32172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32173 (exit $ac_status); }; } &&
32174 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32176 (eval $ac_try) 2>&5
32177 ac_status=$?
32178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179 (exit $ac_status); }; }; then
32180 eval "$as_ac_var=yes"
32181else
32182 echo "$as_me: failed program was:" >&5
32183sed 's/^/| /' conftest.$ac_ext >&5
32184
32185eval "$as_ac_var=no"
32186fi
ac1cb8d3
VS
32187rm -f conftest.err conftest.$ac_objext \
32188 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32189fi
32190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32191echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32192if test `eval echo '${'$as_ac_var'}'` = yes; then
32193 cat >>confdefs.h <<_ACEOF
32194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32195_ACEOF
32196
32197fi
32198done
32199
32200
32201
32202
32203for ac_func in putenv setenv
32204do
32205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32206echo "$as_me:$LINENO: checking for $ac_func" >&5
32207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32208if eval "test \"\${$as_ac_var+set}\" = set"; then
32209 echo $ECHO_N "(cached) $ECHO_C" >&6
32210else
32211 cat >conftest.$ac_ext <<_ACEOF
32212/* confdefs.h. */
32213_ACEOF
32214cat confdefs.h >>conftest.$ac_ext
32215cat >>conftest.$ac_ext <<_ACEOF
32216/* end confdefs.h. */
ac1cb8d3
VS
32217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32219#define $ac_func innocuous_$ac_func
32220
a848cd7e
SC
32221/* System header to define __stub macros and hopefully few prototypes,
32222 which can conflict with char $ac_func (); below.
32223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32224 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32225
a848cd7e
SC
32226#ifdef __STDC__
32227# include <limits.h>
32228#else
32229# include <assert.h>
32230#endif
ac1cb8d3
VS
32231
32232#undef $ac_func
32233
a848cd7e
SC
32234/* Override any gcc2 internal prototype to avoid an error. */
32235#ifdef __cplusplus
32236extern "C"
32237{
32238#endif
32239/* We use char because int might match the return type of a gcc2
32240 builtin and then its argument prototype would still apply. */
32241char $ac_func ();
32242/* The GNU C library defines this for functions which it implements
32243 to always fail with ENOSYS. Some functions are actually named
32244 something starting with __ and the normal name is an alias. */
32245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32246choke me
32247#else
32248char (*f) () = $ac_func;
32249#endif
32250#ifdef __cplusplus
32251}
32252#endif
32253
32254int
32255main ()
32256{
32257return f != $ac_func;
32258 ;
32259 return 0;
32260}
32261_ACEOF
32262rm -f conftest.$ac_objext conftest$ac_exeext
32263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32264 (eval $ac_link) 2>conftest.er1
a848cd7e 32265 ac_status=$?
ac1cb8d3
VS
32266 grep -v '^ *+' conftest.er1 >conftest.err
32267 rm -f conftest.er1
32268 cat conftest.err >&5
a848cd7e
SC
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); } &&
07158944 32271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
32277 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32279 (eval $ac_try) 2>&5
32280 ac_status=$?
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; }; then
32283 eval "$as_ac_var=yes"
32284else
32285 echo "$as_me: failed program was:" >&5
32286sed 's/^/| /' conftest.$ac_ext >&5
32287
32288eval "$as_ac_var=no"
32289fi
ac1cb8d3
VS
32290rm -f conftest.err conftest.$ac_objext \
32291 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32292fi
32293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32294echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32295if test `eval echo '${'$as_ac_var'}'` = yes; then
32296 cat >>confdefs.h <<_ACEOF
32297#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32298_ACEOF
32299 break
32300fi
32301done
32302
32303
32304HAVE_SOME_SLEEP_FUNC=0
32305if test "$USE_BEOS" = 1; then
32306 cat >>confdefs.h <<\_ACEOF
32307#define HAVE_SLEEP 1
32308_ACEOF
32309
32310 HAVE_SOME_SLEEP_FUNC=1
32311fi
32312
32313if test "$USE_DARWIN" = 1; then
32314 cat >>confdefs.h <<\_ACEOF
32315#define HAVE_USLEEP 1
32316_ACEOF
32317
32318 HAVE_SOME_SLEEP_FUNC=1
32319fi
32320
32321if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32322 POSIX4_LINK=
32323
32324for ac_func in nanosleep
32325do
32326as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32327echo "$as_me:$LINENO: checking for $ac_func" >&5
32328echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32329if eval "test \"\${$as_ac_var+set}\" = set"; then
32330 echo $ECHO_N "(cached) $ECHO_C" >&6
32331else
32332 cat >conftest.$ac_ext <<_ACEOF
32333/* confdefs.h. */
32334_ACEOF
32335cat confdefs.h >>conftest.$ac_ext
32336cat >>conftest.$ac_ext <<_ACEOF
32337/* end confdefs.h. */
ac1cb8d3
VS
32338/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32340#define $ac_func innocuous_$ac_func
32341
a848cd7e
SC
32342/* System header to define __stub macros and hopefully few prototypes,
32343 which can conflict with char $ac_func (); below.
32344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32345 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32346
a848cd7e
SC
32347#ifdef __STDC__
32348# include <limits.h>
32349#else
32350# include <assert.h>
32351#endif
ac1cb8d3
VS
32352
32353#undef $ac_func
32354
a848cd7e
SC
32355/* Override any gcc2 internal prototype to avoid an error. */
32356#ifdef __cplusplus
32357extern "C"
32358{
32359#endif
32360/* We use char because int might match the return type of a gcc2
32361 builtin and then its argument prototype would still apply. */
32362char $ac_func ();
32363/* The GNU C library defines this for functions which it implements
32364 to always fail with ENOSYS. Some functions are actually named
32365 something starting with __ and the normal name is an alias. */
32366#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32367choke me
32368#else
32369char (*f) () = $ac_func;
32370#endif
32371#ifdef __cplusplus
32372}
32373#endif
32374
32375int
32376main ()
32377{
32378return f != $ac_func;
32379 ;
32380 return 0;
32381}
32382_ACEOF
32383rm -f conftest.$ac_objext conftest$ac_exeext
32384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32385 (eval $ac_link) 2>conftest.er1
a848cd7e 32386 ac_status=$?
ac1cb8d3
VS
32387 grep -v '^ *+' conftest.er1 >conftest.err
32388 rm -f conftest.er1
32389 cat conftest.err >&5
a848cd7e
SC
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); } &&
07158944 32392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32394 (eval $ac_try) 2>&5
32395 ac_status=$?
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); }; } &&
32398 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32400 (eval $ac_try) 2>&5
32401 ac_status=$?
32402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403 (exit $ac_status); }; }; then
32404 eval "$as_ac_var=yes"
32405else
32406 echo "$as_me: failed program was:" >&5
32407sed 's/^/| /' conftest.$ac_ext >&5
32408
32409eval "$as_ac_var=no"
32410fi
ac1cb8d3
VS
32411rm -f conftest.err conftest.$ac_objext \
32412 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32413fi
32414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32415echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32416if test `eval echo '${'$as_ac_var'}'` = yes; then
32417 cat >>confdefs.h <<_ACEOF
32418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32419_ACEOF
32420 cat >>confdefs.h <<\_ACEOF
32421#define HAVE_NANOSLEEP 1
32422_ACEOF
32423
32424else
32425
32426 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32427echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32428if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32429 echo $ECHO_N "(cached) $ECHO_C" >&6
32430else
32431 ac_check_lib_save_LIBS=$LIBS
32432LIBS="-lposix4 $LIBS"
32433cat >conftest.$ac_ext <<_ACEOF
32434/* confdefs.h. */
32435_ACEOF
32436cat confdefs.h >>conftest.$ac_ext
32437cat >>conftest.$ac_ext <<_ACEOF
32438/* end confdefs.h. */
32439
32440/* Override any gcc2 internal prototype to avoid an error. */
32441#ifdef __cplusplus
32442extern "C"
32443#endif
32444/* We use char because int might match the return type of a gcc2
32445 builtin and then its argument prototype would still apply. */
32446char nanosleep ();
32447int
32448main ()
32449{
32450nanosleep ();
32451 ;
32452 return 0;
32453}
32454_ACEOF
32455rm -f conftest.$ac_objext conftest$ac_exeext
32456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32457 (eval $ac_link) 2>conftest.er1
a848cd7e 32458 ac_status=$?
ac1cb8d3
VS
32459 grep -v '^ *+' conftest.er1 >conftest.err
32460 rm -f conftest.er1
32461 cat conftest.err >&5
a848cd7e
SC
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); } &&
07158944 32464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32466 (eval $ac_try) 2>&5
32467 ac_status=$?
32468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469 (exit $ac_status); }; } &&
32470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32472 (eval $ac_try) 2>&5
32473 ac_status=$?
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); }; }; then
32476 ac_cv_lib_posix4_nanosleep=yes
32477else
32478 echo "$as_me: failed program was:" >&5
32479sed 's/^/| /' conftest.$ac_ext >&5
32480
32481ac_cv_lib_posix4_nanosleep=no
32482fi
ac1cb8d3
VS
32483rm -f conftest.err conftest.$ac_objext \
32484 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32485LIBS=$ac_check_lib_save_LIBS
32486fi
32487echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32488echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32489if test $ac_cv_lib_posix4_nanosleep = yes; then
32490
32491 cat >>confdefs.h <<\_ACEOF
32492#define HAVE_NANOSLEEP 1
32493_ACEOF
32494
32495 POSIX4_LINK=" -lposix4"
32496
32497else
32498
32499
32500for ac_func in usleep
32501do
32502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32503echo "$as_me:$LINENO: checking for $ac_func" >&5
32504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32505if eval "test \"\${$as_ac_var+set}\" = set"; then
32506 echo $ECHO_N "(cached) $ECHO_C" >&6
32507else
32508 cat >conftest.$ac_ext <<_ACEOF
32509/* confdefs.h. */
32510_ACEOF
32511cat confdefs.h >>conftest.$ac_ext
32512cat >>conftest.$ac_ext <<_ACEOF
32513/* end confdefs.h. */
ac1cb8d3
VS
32514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32516#define $ac_func innocuous_$ac_func
32517
a848cd7e
SC
32518/* System header to define __stub macros and hopefully few prototypes,
32519 which can conflict with char $ac_func (); below.
32520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32521 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32522
a848cd7e
SC
32523#ifdef __STDC__
32524# include <limits.h>
32525#else
32526# include <assert.h>
32527#endif
ac1cb8d3
VS
32528
32529#undef $ac_func
32530
a848cd7e
SC
32531/* Override any gcc2 internal prototype to avoid an error. */
32532#ifdef __cplusplus
32533extern "C"
32534{
32535#endif
32536/* We use char because int might match the return type of a gcc2
32537 builtin and then its argument prototype would still apply. */
32538char $ac_func ();
32539/* The GNU C library defines this for functions which it implements
32540 to always fail with ENOSYS. Some functions are actually named
32541 something starting with __ and the normal name is an alias. */
32542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32543choke me
32544#else
32545char (*f) () = $ac_func;
32546#endif
32547#ifdef __cplusplus
32548}
32549#endif
32550
32551int
32552main ()
32553{
32554return f != $ac_func;
32555 ;
32556 return 0;
32557}
32558_ACEOF
32559rm -f conftest.$ac_objext conftest$ac_exeext
32560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32561 (eval $ac_link) 2>conftest.er1
a848cd7e 32562 ac_status=$?
ac1cb8d3
VS
32563 grep -v '^ *+' conftest.er1 >conftest.err
32564 rm -f conftest.er1
32565 cat conftest.err >&5
a848cd7e
SC
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); } &&
07158944 32568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32570 (eval $ac_try) 2>&5
32571 ac_status=$?
32572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573 (exit $ac_status); }; } &&
32574 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32576 (eval $ac_try) 2>&5
32577 ac_status=$?
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); }; }; then
32580 eval "$as_ac_var=yes"
32581else
32582 echo "$as_me: failed program was:" >&5
32583sed 's/^/| /' conftest.$ac_ext >&5
32584
32585eval "$as_ac_var=no"
32586fi
ac1cb8d3
VS
32587rm -f conftest.err conftest.$ac_objext \
32588 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32589fi
32590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32592if test `eval echo '${'$as_ac_var'}'` = yes; then
32593 cat >>confdefs.h <<_ACEOF
32594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32595_ACEOF
32596 cat >>confdefs.h <<\_ACEOF
32597#define HAVE_USLEEP 1
32598_ACEOF
32599
32600else
32601 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32602echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32603
32604fi
32605done
32606
32607
32608
32609fi
32610
32611
32612
32613fi
32614done
32615
32616fi
32617
32618
32619
32620for ac_func in uname gethostname
32621do
32622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32623echo "$as_me:$LINENO: checking for $ac_func" >&5
32624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32625if eval "test \"\${$as_ac_var+set}\" = set"; then
32626 echo $ECHO_N "(cached) $ECHO_C" >&6
32627else
32628 cat >conftest.$ac_ext <<_ACEOF
32629/* confdefs.h. */
32630_ACEOF
32631cat confdefs.h >>conftest.$ac_ext
32632cat >>conftest.$ac_ext <<_ACEOF
32633/* end confdefs.h. */
ac1cb8d3
VS
32634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32636#define $ac_func innocuous_$ac_func
32637
a848cd7e
SC
32638/* System header to define __stub macros and hopefully few prototypes,
32639 which can conflict with char $ac_func (); below.
32640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32641 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32642
a848cd7e
SC
32643#ifdef __STDC__
32644# include <limits.h>
32645#else
32646# include <assert.h>
32647#endif
ac1cb8d3
VS
32648
32649#undef $ac_func
32650
a848cd7e
SC
32651/* Override any gcc2 internal prototype to avoid an error. */
32652#ifdef __cplusplus
32653extern "C"
32654{
32655#endif
32656/* We use char because int might match the return type of a gcc2
32657 builtin and then its argument prototype would still apply. */
32658char $ac_func ();
32659/* The GNU C library defines this for functions which it implements
32660 to always fail with ENOSYS. Some functions are actually named
32661 something starting with __ and the normal name is an alias. */
32662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32663choke me
32664#else
32665char (*f) () = $ac_func;
32666#endif
32667#ifdef __cplusplus
32668}
32669#endif
32670
32671int
32672main ()
32673{
32674return f != $ac_func;
32675 ;
32676 return 0;
32677}
32678_ACEOF
32679rm -f conftest.$ac_objext conftest$ac_exeext
32680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32681 (eval $ac_link) 2>conftest.er1
a848cd7e 32682 ac_status=$?
ac1cb8d3
VS
32683 grep -v '^ *+' conftest.er1 >conftest.err
32684 rm -f conftest.er1
32685 cat conftest.err >&5
a848cd7e
SC
32686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687 (exit $ac_status); } &&
07158944 32688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32690 (eval $ac_try) 2>&5
32691 ac_status=$?
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); }; } &&
32694 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32696 (eval $ac_try) 2>&5
32697 ac_status=$?
32698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); }; }; then
32700 eval "$as_ac_var=yes"
32701else
32702 echo "$as_me: failed program was:" >&5
32703sed 's/^/| /' conftest.$ac_ext >&5
32704
32705eval "$as_ac_var=no"
32706fi
ac1cb8d3
VS
32707rm -f conftest.err conftest.$ac_objext \
32708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32709fi
32710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32712if test `eval echo '${'$as_ac_var'}'` = yes; then
32713 cat >>confdefs.h <<_ACEOF
32714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32715_ACEOF
32716 break
32717fi
32718done
32719
32720
32721
32722
32723ac_ext=cc
32724ac_cpp='$CXXCPP $CPPFLAGS'
32725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32728
32729
32730
32731for ac_func in strtok_r
32732do
32733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32734echo "$as_me:$LINENO: checking for $ac_func" >&5
32735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32736if eval "test \"\${$as_ac_var+set}\" = set"; then
32737 echo $ECHO_N "(cached) $ECHO_C" >&6
32738else
32739 cat >conftest.$ac_ext <<_ACEOF
32740/* confdefs.h. */
32741_ACEOF
32742cat confdefs.h >>conftest.$ac_ext
32743cat >>conftest.$ac_ext <<_ACEOF
32744/* end confdefs.h. */
ac1cb8d3
VS
32745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32747#define $ac_func innocuous_$ac_func
32748
a848cd7e
SC
32749/* System header to define __stub macros and hopefully few prototypes,
32750 which can conflict with char $ac_func (); below.
32751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32752 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32753
a848cd7e
SC
32754#ifdef __STDC__
32755# include <limits.h>
32756#else
32757# include <assert.h>
32758#endif
ac1cb8d3
VS
32759
32760#undef $ac_func
32761
a848cd7e
SC
32762/* Override any gcc2 internal prototype to avoid an error. */
32763#ifdef __cplusplus
32764extern "C"
32765{
32766#endif
32767/* We use char because int might match the return type of a gcc2
32768 builtin and then its argument prototype would still apply. */
32769char $ac_func ();
32770/* The GNU C library defines this for functions which it implements
32771 to always fail with ENOSYS. Some functions are actually named
32772 something starting with __ and the normal name is an alias. */
32773#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32774choke me
32775#else
32776char (*f) () = $ac_func;
32777#endif
32778#ifdef __cplusplus
32779}
32780#endif
32781
32782int
32783main ()
32784{
32785return f != $ac_func;
32786 ;
32787 return 0;
32788}
32789_ACEOF
32790rm -f conftest.$ac_objext conftest$ac_exeext
32791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32792 (eval $ac_link) 2>conftest.er1
a848cd7e 32793 ac_status=$?
ac1cb8d3
VS
32794 grep -v '^ *+' conftest.er1 >conftest.err
32795 rm -f conftest.er1
32796 cat conftest.err >&5
a848cd7e
SC
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); } &&
07158944 32799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32801 (eval $ac_try) 2>&5
32802 ac_status=$?
32803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 (exit $ac_status); }; } &&
32805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32807 (eval $ac_try) 2>&5
32808 ac_status=$?
32809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 (exit $ac_status); }; }; then
32811 eval "$as_ac_var=yes"
32812else
32813 echo "$as_me: failed program was:" >&5
32814sed 's/^/| /' conftest.$ac_ext >&5
32815
32816eval "$as_ac_var=no"
32817fi
ac1cb8d3
VS
32818rm -f conftest.err conftest.$ac_objext \
32819 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32820fi
32821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32823if test `eval echo '${'$as_ac_var'}'` = yes; then
32824 cat >>confdefs.h <<_ACEOF
32825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32826_ACEOF
32827
32828fi
32829done
32830
32831
32832ac_ext=c
32833ac_cpp='$CPP $CPPFLAGS'
32834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32836ac_compiler_gnu=$ac_cv_c_compiler_gnu
32837
32838
32839INET_LINK=
32840
32841for ac_func in inet_addr
32842do
32843as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32844echo "$as_me:$LINENO: checking for $ac_func" >&5
32845echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32846if eval "test \"\${$as_ac_var+set}\" = set"; then
32847 echo $ECHO_N "(cached) $ECHO_C" >&6
32848else
32849 cat >conftest.$ac_ext <<_ACEOF
32850/* confdefs.h. */
32851_ACEOF
32852cat confdefs.h >>conftest.$ac_ext
32853cat >>conftest.$ac_ext <<_ACEOF
32854/* end confdefs.h. */
ac1cb8d3
VS
32855/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32857#define $ac_func innocuous_$ac_func
32858
a848cd7e
SC
32859/* System header to define __stub macros and hopefully few prototypes,
32860 which can conflict with char $ac_func (); below.
32861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32862 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32863
a848cd7e
SC
32864#ifdef __STDC__
32865# include <limits.h>
32866#else
32867# include <assert.h>
32868#endif
ac1cb8d3
VS
32869
32870#undef $ac_func
32871
a848cd7e
SC
32872/* Override any gcc2 internal prototype to avoid an error. */
32873#ifdef __cplusplus
32874extern "C"
32875{
32876#endif
32877/* We use char because int might match the return type of a gcc2
32878 builtin and then its argument prototype would still apply. */
32879char $ac_func ();
32880/* The GNU C library defines this for functions which it implements
32881 to always fail with ENOSYS. Some functions are actually named
32882 something starting with __ and the normal name is an alias. */
32883#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32884choke me
32885#else
32886char (*f) () = $ac_func;
32887#endif
32888#ifdef __cplusplus
32889}
32890#endif
32891
32892int
32893main ()
32894{
32895return f != $ac_func;
32896 ;
32897 return 0;
32898}
32899_ACEOF
32900rm -f conftest.$ac_objext conftest$ac_exeext
32901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32902 (eval $ac_link) 2>conftest.er1
a848cd7e 32903 ac_status=$?
ac1cb8d3
VS
32904 grep -v '^ *+' conftest.er1 >conftest.err
32905 rm -f conftest.er1
32906 cat conftest.err >&5
a848cd7e
SC
32907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908 (exit $ac_status); } &&
07158944 32909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32911 (eval $ac_try) 2>&5
32912 ac_status=$?
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); }; } &&
32915 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32917 (eval $ac_try) 2>&5
32918 ac_status=$?
32919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920 (exit $ac_status); }; }; then
32921 eval "$as_ac_var=yes"
32922else
32923 echo "$as_me: failed program was:" >&5
32924sed 's/^/| /' conftest.$ac_ext >&5
32925
32926eval "$as_ac_var=no"
32927fi
ac1cb8d3
VS
32928rm -f conftest.err conftest.$ac_objext \
32929 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32930fi
32931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32933if test `eval echo '${'$as_ac_var'}'` = yes; then
32934 cat >>confdefs.h <<_ACEOF
32935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32936_ACEOF
32937 cat >>confdefs.h <<\_ACEOF
32938#define HAVE_INET_ADDR 1
32939_ACEOF
32940
32941else
32942
32943 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32944echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32945if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32946 echo $ECHO_N "(cached) $ECHO_C" >&6
32947else
32948 ac_check_lib_save_LIBS=$LIBS
32949LIBS="-lnsl $LIBS"
32950cat >conftest.$ac_ext <<_ACEOF
32951/* confdefs.h. */
32952_ACEOF
32953cat confdefs.h >>conftest.$ac_ext
32954cat >>conftest.$ac_ext <<_ACEOF
32955/* end confdefs.h. */
32956
32957/* Override any gcc2 internal prototype to avoid an error. */
32958#ifdef __cplusplus
32959extern "C"
32960#endif
32961/* We use char because int might match the return type of a gcc2
32962 builtin and then its argument prototype would still apply. */
32963char inet_addr ();
32964int
32965main ()
32966{
32967inet_addr ();
32968 ;
32969 return 0;
32970}
32971_ACEOF
32972rm -f conftest.$ac_objext conftest$ac_exeext
32973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32974 (eval $ac_link) 2>conftest.er1
a848cd7e 32975 ac_status=$?
ac1cb8d3
VS
32976 grep -v '^ *+' conftest.er1 >conftest.err
32977 rm -f conftest.er1
32978 cat conftest.err >&5
a848cd7e
SC
32979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980 (exit $ac_status); } &&
07158944 32981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32983 (eval $ac_try) 2>&5
32984 ac_status=$?
32985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986 (exit $ac_status); }; } &&
32987 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32989 (eval $ac_try) 2>&5
32990 ac_status=$?
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); }; }; then
32993 ac_cv_lib_nsl_inet_addr=yes
32994else
32995 echo "$as_me: failed program was:" >&5
32996sed 's/^/| /' conftest.$ac_ext >&5
32997
32998ac_cv_lib_nsl_inet_addr=no
32999fi
ac1cb8d3
VS
33000rm -f conftest.err conftest.$ac_objext \
33001 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33002LIBS=$ac_check_lib_save_LIBS
33003fi
33004echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33005echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33006if test $ac_cv_lib_nsl_inet_addr = yes; then
33007 INET_LINK="nsl"
33008else
33009
33010 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33011echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33012if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33013 echo $ECHO_N "(cached) $ECHO_C" >&6
33014else
33015 ac_check_lib_save_LIBS=$LIBS
33016LIBS="-lresolv $LIBS"
33017cat >conftest.$ac_ext <<_ACEOF
33018/* confdefs.h. */
33019_ACEOF
33020cat confdefs.h >>conftest.$ac_ext
33021cat >>conftest.$ac_ext <<_ACEOF
33022/* end confdefs.h. */
33023
33024/* Override any gcc2 internal prototype to avoid an error. */
33025#ifdef __cplusplus
33026extern "C"
33027#endif
33028/* We use char because int might match the return type of a gcc2
33029 builtin and then its argument prototype would still apply. */
33030char inet_addr ();
33031int
33032main ()
33033{
33034inet_addr ();
33035 ;
33036 return 0;
33037}
33038_ACEOF
33039rm -f conftest.$ac_objext conftest$ac_exeext
33040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33041 (eval $ac_link) 2>conftest.er1
a848cd7e 33042 ac_status=$?
ac1cb8d3
VS
33043 grep -v '^ *+' conftest.er1 >conftest.err
33044 rm -f conftest.er1
33045 cat conftest.err >&5
a848cd7e
SC
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); } &&
07158944 33048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33050 (eval $ac_try) 2>&5
33051 ac_status=$?
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); }; } &&
33054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33056 (eval $ac_try) 2>&5
33057 ac_status=$?
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); }; }; then
33060 ac_cv_lib_resolv_inet_addr=yes
33061else
33062 echo "$as_me: failed program was:" >&5
33063sed 's/^/| /' conftest.$ac_ext >&5
33064
33065ac_cv_lib_resolv_inet_addr=no
33066fi
ac1cb8d3
VS
33067rm -f conftest.err conftest.$ac_objext \
33068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33069LIBS=$ac_check_lib_save_LIBS
33070fi
33071echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33072echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33073if test $ac_cv_lib_resolv_inet_addr = yes; then
33074 INET_LINK="resolv"
33075else
33076
33077 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33078echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33079if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33080 echo $ECHO_N "(cached) $ECHO_C" >&6
33081else
33082 ac_check_lib_save_LIBS=$LIBS
33083LIBS="-lsocket $LIBS"
33084cat >conftest.$ac_ext <<_ACEOF
33085/* confdefs.h. */
33086_ACEOF
33087cat confdefs.h >>conftest.$ac_ext
33088cat >>conftest.$ac_ext <<_ACEOF
33089/* end confdefs.h. */
33090
33091/* Override any gcc2 internal prototype to avoid an error. */
33092#ifdef __cplusplus
33093extern "C"
33094#endif
33095/* We use char because int might match the return type of a gcc2
33096 builtin and then its argument prototype would still apply. */
33097char inet_addr ();
33098int
33099main ()
33100{
33101inet_addr ();
33102 ;
33103 return 0;
33104}
33105_ACEOF
33106rm -f conftest.$ac_objext conftest$ac_exeext
33107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33108 (eval $ac_link) 2>conftest.er1
a848cd7e 33109 ac_status=$?
ac1cb8d3
VS
33110 grep -v '^ *+' conftest.er1 >conftest.err
33111 rm -f conftest.er1
33112 cat conftest.err >&5
a848cd7e
SC
33113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114 (exit $ac_status); } &&
07158944 33115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33117 (eval $ac_try) 2>&5
33118 ac_status=$?
33119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33120 (exit $ac_status); }; } &&
33121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33123 (eval $ac_try) 2>&5
33124 ac_status=$?
33125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33126 (exit $ac_status); }; }; then
33127 ac_cv_lib_socket_inet_addr=yes
33128else
33129 echo "$as_me: failed program was:" >&5
33130sed 's/^/| /' conftest.$ac_ext >&5
33131
33132ac_cv_lib_socket_inet_addr=no
33133fi
ac1cb8d3
VS
33134rm -f conftest.err conftest.$ac_objext \
33135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33136LIBS=$ac_check_lib_save_LIBS
33137fi
33138echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33139echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33140if test $ac_cv_lib_socket_inet_addr = yes; then
33141 INET_LINK="socket"
33142
33143fi
33144
33145
33146
33147fi
33148
33149
33150
33151fi
33152
33153
33154
33155fi
33156done
33157
33158
33159
33160for ac_func in inet_aton
33161do
33162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33163echo "$as_me:$LINENO: checking for $ac_func" >&5
33164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33165if eval "test \"\${$as_ac_var+set}\" = set"; then
33166 echo $ECHO_N "(cached) $ECHO_C" >&6
33167else
33168 cat >conftest.$ac_ext <<_ACEOF
33169/* confdefs.h. */
33170_ACEOF
33171cat confdefs.h >>conftest.$ac_ext
33172cat >>conftest.$ac_ext <<_ACEOF
33173/* end confdefs.h. */
ac1cb8d3
VS
33174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33176#define $ac_func innocuous_$ac_func
33177
a848cd7e
SC
33178/* System header to define __stub macros and hopefully few prototypes,
33179 which can conflict with char $ac_func (); below.
33180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33181 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33182
a848cd7e
SC
33183#ifdef __STDC__
33184# include <limits.h>
33185#else
33186# include <assert.h>
33187#endif
ac1cb8d3
VS
33188
33189#undef $ac_func
33190
a848cd7e
SC
33191/* Override any gcc2 internal prototype to avoid an error. */
33192#ifdef __cplusplus
33193extern "C"
33194{
33195#endif
33196/* We use char because int might match the return type of a gcc2
33197 builtin and then its argument prototype would still apply. */
33198char $ac_func ();
33199/* The GNU C library defines this for functions which it implements
33200 to always fail with ENOSYS. Some functions are actually named
33201 something starting with __ and the normal name is an alias. */
33202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33203choke me
33204#else
33205char (*f) () = $ac_func;
33206#endif
33207#ifdef __cplusplus
33208}
33209#endif
33210
33211int
33212main ()
33213{
33214return f != $ac_func;
33215 ;
33216 return 0;
33217}
33218_ACEOF
33219rm -f conftest.$ac_objext conftest$ac_exeext
33220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33221 (eval $ac_link) 2>conftest.er1
a848cd7e 33222 ac_status=$?
ac1cb8d3
VS
33223 grep -v '^ *+' conftest.er1 >conftest.err
33224 rm -f conftest.er1
33225 cat conftest.err >&5
a848cd7e
SC
33226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227 (exit $ac_status); } &&
07158944 33228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33230 (eval $ac_try) 2>&5
33231 ac_status=$?
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); }; } &&
33234 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33236 (eval $ac_try) 2>&5
33237 ac_status=$?
33238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239 (exit $ac_status); }; }; then
33240 eval "$as_ac_var=yes"
33241else
33242 echo "$as_me: failed program was:" >&5
33243sed 's/^/| /' conftest.$ac_ext >&5
33244
33245eval "$as_ac_var=no"
33246fi
ac1cb8d3
VS
33247rm -f conftest.err conftest.$ac_objext \
33248 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33249fi
33250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33251echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33252if test `eval echo '${'$as_ac_var'}'` = yes; then
33253 cat >>confdefs.h <<_ACEOF
33254#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33255_ACEOF
33256 cat >>confdefs.h <<\_ACEOF
33257#define HAVE_INET_ATON 1
33258_ACEOF
33259
33260else
33261
33262 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33263echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33264echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33265if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33266 echo $ECHO_N "(cached) $ECHO_C" >&6
33267else
33268 ac_check_lib_save_LIBS=$LIBS
33269LIBS="-l$INET_LINK $LIBS"
33270cat >conftest.$ac_ext <<_ACEOF
33271/* confdefs.h. */
33272_ACEOF
33273cat confdefs.h >>conftest.$ac_ext
33274cat >>conftest.$ac_ext <<_ACEOF
33275/* end confdefs.h. */
33276
33277/* Override any gcc2 internal prototype to avoid an error. */
33278#ifdef __cplusplus
33279extern "C"
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. */
33283char inet_aton ();
33284int
33285main ()
33286{
33287inet_aton ();
33288 ;
33289 return 0;
33290}
33291_ACEOF
33292rm -f conftest.$ac_objext conftest$ac_exeext
33293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33294 (eval $ac_link) 2>conftest.er1
a848cd7e 33295 ac_status=$?
ac1cb8d3
VS
33296 grep -v '^ *+' conftest.er1 >conftest.err
33297 rm -f conftest.er1
33298 cat conftest.err >&5
a848cd7e
SC
33299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300 (exit $ac_status); } &&
07158944 33301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33303 (eval $ac_try) 2>&5
33304 ac_status=$?
33305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306 (exit $ac_status); }; } &&
33307 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33309 (eval $ac_try) 2>&5
33310 ac_status=$?
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); }; }; then
33313 eval "$as_ac_Lib=yes"
33314else
33315 echo "$as_me: failed program was:" >&5
33316sed 's/^/| /' conftest.$ac_ext >&5
33317
33318eval "$as_ac_Lib=no"
33319fi
ac1cb8d3
VS
33320rm -f conftest.err conftest.$ac_objext \
33321 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33322LIBS=$ac_check_lib_save_LIBS
33323fi
33324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33325echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33326if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33327 cat >>confdefs.h <<\_ACEOF
33328#define HAVE_INET_ATON 1
33329_ACEOF
33330
33331fi
33332
33333
33334fi
33335done
33336
33337
33338if test "x$INET_LINK" != "x"; then
33339 cat >>confdefs.h <<\_ACEOF
33340#define HAVE_INET_ADDR 1
33341_ACEOF
33342
33343 INET_LINK=" -l$INET_LINK"
33344fi
33345
33346fi
33347
33348
33349
33350EXTRALIBS_ESD=
33351echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33352echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33353if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33354 echo $ECHO_N "(cached) $ECHO_C" >&6
33355else
33356 ac_check_lib_save_LIBS=$LIBS
33357LIBS="-lesd $LIBS"
33358cat >conftest.$ac_ext <<_ACEOF
33359/* confdefs.h. */
33360_ACEOF
33361cat confdefs.h >>conftest.$ac_ext
33362cat >>conftest.$ac_ext <<_ACEOF
33363/* end confdefs.h. */
33364
33365/* Override any gcc2 internal prototype to avoid an error. */
33366#ifdef __cplusplus
33367extern "C"
33368#endif
33369/* We use char because int might match the return type of a gcc2
33370 builtin and then its argument prototype would still apply. */
33371char esd_close ();
33372int
33373main ()
33374{
33375esd_close ();
33376 ;
33377 return 0;
33378}
33379_ACEOF
33380rm -f conftest.$ac_objext conftest$ac_exeext
33381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33382 (eval $ac_link) 2>conftest.er1
a848cd7e 33383 ac_status=$?
ac1cb8d3
VS
33384 grep -v '^ *+' conftest.er1 >conftest.err
33385 rm -f conftest.er1
33386 cat conftest.err >&5
a848cd7e
SC
33387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33388 (exit $ac_status); } &&
07158944 33389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33391 (eval $ac_try) 2>&5
33392 ac_status=$?
33393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394 (exit $ac_status); }; } &&
33395 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33397 (eval $ac_try) 2>&5
33398 ac_status=$?
33399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400 (exit $ac_status); }; }; then
33401 ac_cv_lib_esd_esd_close=yes
33402else
33403 echo "$as_me: failed program was:" >&5
33404sed 's/^/| /' conftest.$ac_ext >&5
33405
33406ac_cv_lib_esd_esd_close=no
33407fi
ac1cb8d3
VS
33408rm -f conftest.err conftest.$ac_objext \
33409 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33410LIBS=$ac_check_lib_save_LIBS
33411fi
33412echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33413echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33414if test $ac_cv_lib_esd_esd_close = yes; then
33415
33416
33417for ac_header in esd.h
33418do
33419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33420if eval "test \"\${$as_ac_Header+set}\" = set"; then
33421 echo "$as_me:$LINENO: checking for $ac_header" >&5
33422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33423if eval "test \"\${$as_ac_Header+set}\" = set"; then
33424 echo $ECHO_N "(cached) $ECHO_C" >&6
33425fi
33426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33428else
33429 # Is the header compilable?
33430echo "$as_me:$LINENO: checking $ac_header usability" >&5
33431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33432cat >conftest.$ac_ext <<_ACEOF
33433/* confdefs.h. */
33434_ACEOF
33435cat confdefs.h >>conftest.$ac_ext
33436cat >>conftest.$ac_ext <<_ACEOF
33437/* end confdefs.h. */
33438$ac_includes_default
33439#include <$ac_header>
33440_ACEOF
33441rm -f conftest.$ac_objext
33442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33443 (eval $ac_compile) 2>conftest.er1
a848cd7e 33444 ac_status=$?
ac1cb8d3
VS
33445 grep -v '^ *+' conftest.er1 >conftest.err
33446 rm -f conftest.er1
33447 cat conftest.err >&5
a848cd7e
SC
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); } &&
07158944 33450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33452 (eval $ac_try) 2>&5
33453 ac_status=$?
33454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455 (exit $ac_status); }; } &&
33456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33458 (eval $ac_try) 2>&5
33459 ac_status=$?
33460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461 (exit $ac_status); }; }; then
33462 ac_header_compiler=yes
33463else
33464 echo "$as_me: failed program was:" >&5
33465sed 's/^/| /' conftest.$ac_ext >&5
33466
33467ac_header_compiler=no
33468fi
ac1cb8d3 33469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33470echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33471echo "${ECHO_T}$ac_header_compiler" >&6
33472
33473# Is the header present?
33474echo "$as_me:$LINENO: checking $ac_header presence" >&5
33475echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33476cat >conftest.$ac_ext <<_ACEOF
33477/* confdefs.h. */
33478_ACEOF
33479cat confdefs.h >>conftest.$ac_ext
33480cat >>conftest.$ac_ext <<_ACEOF
33481/* end confdefs.h. */
33482#include <$ac_header>
33483_ACEOF
33484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33486 ac_status=$?
33487 grep -v '^ *+' conftest.er1 >conftest.err
33488 rm -f conftest.er1
33489 cat conftest.err >&5
33490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 (exit $ac_status); } >/dev/null; then
33492 if test -s conftest.err; then
33493 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33495 else
33496 ac_cpp_err=
33497 fi
33498else
33499 ac_cpp_err=yes
33500fi
33501if test -z "$ac_cpp_err"; then
33502 ac_header_preproc=yes
33503else
33504 echo "$as_me: failed program was:" >&5
33505sed 's/^/| /' conftest.$ac_ext >&5
33506
33507 ac_header_preproc=no
33508fi
33509rm -f conftest.err conftest.$ac_ext
33510echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33511echo "${ECHO_T}$ac_header_preproc" >&6
33512
33513# So? What about this header?
ac1cb8d3
VS
33514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33515 yes:no: )
a848cd7e
SC
33516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33520 ac_header_preproc=yes
a848cd7e 33521 ;;
ac1cb8d3 33522 no:yes:* )
a848cd7e
SC
33523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33526echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33530echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33535 (
33536 cat <<\_ASBOX
ac1cb8d3
VS
33537## ----------------------------------------- ##
33538## Report this to wx-dev@lists.wxwidgets.org ##
33539## ----------------------------------------- ##
a848cd7e
SC
33540_ASBOX
33541 ) |
33542 sed "s/^/$as_me: WARNING: /" >&2
33543 ;;
33544esac
33545echo "$as_me:$LINENO: checking for $ac_header" >&5
33546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33547if eval "test \"\${$as_ac_Header+set}\" = set"; then
33548 echo $ECHO_N "(cached) $ECHO_C" >&6
33549else
ac1cb8d3 33550 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33551fi
33552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33554
33555fi
33556if test `eval echo '${'$as_ac_Header'}'` = yes; then
33557 cat >>confdefs.h <<_ACEOF
33558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33559_ACEOF
33560
33561 EXTRALIBS_ESD="-lesd"
33562
33563fi
33564
33565done
33566
33567
33568fi
33569
33570
33571
33572echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33573echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33574cat >conftest.$ac_ext <<_ACEOF
33575/* confdefs.h. */
33576_ACEOF
33577cat confdefs.h >>conftest.$ac_ext
33578cat >>conftest.$ac_ext <<_ACEOF
33579/* end confdefs.h. */
33580#ifdef __linux__
33581 #include <linux/cdrom.h>
33582 #else
33583 /* For Solaris */
33584 #include <sys/cdio.h>
33585 #endif
33586
33587int
33588main ()
33589{
33590struct cdrom_tocentry entry, old_entry;
33591 ;
33592 return 0;
33593}
33594_ACEOF
33595rm -f conftest.$ac_objext
33596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33597 (eval $ac_compile) 2>conftest.er1
a848cd7e 33598 ac_status=$?
ac1cb8d3
VS
33599 grep -v '^ *+' conftest.er1 >conftest.err
33600 rm -f conftest.er1
33601 cat conftest.err >&5
a848cd7e
SC
33602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603 (exit $ac_status); } &&
07158944 33604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33606 (eval $ac_try) 2>&5
33607 ac_status=$?
33608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33609 (exit $ac_status); }; } &&
33610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33612 (eval $ac_try) 2>&5
33613 ac_status=$?
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); }; }; then
33616 echo "$as_me:$LINENO: result: yes" >&5
33617echo "${ECHO_T}yes" >&6
33618 cat >>confdefs.h <<\_ACEOF
33619#define HAVE_KNOWN_CDROM_INTERFACE 1
33620_ACEOF
33621
33622else
33623 echo "$as_me: failed program was:" >&5
33624sed 's/^/| /' conftest.$ac_ext >&5
33625
33626echo "$as_me:$LINENO: result: no" >&5
33627echo "${ECHO_T}no" >&6
33628fi
ac1cb8d3 33629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33630
33631
33632cat >confcache <<\_ACEOF
33633# This file is a shell script that caches the results of configure
33634# tests run on this system so they can be shared between configure
33635# scripts and configure runs, see configure's option --config-cache.
33636# It is not useful on other systems. If it contains results you don't
33637# want to keep, you may remove or edit it.
33638#
33639# config.status only pays attention to the cache file if you give it
33640# the --recheck option to rerun configure.
33641#
33642# `ac_cv_env_foo' variables (set or unset) will be overridden when
33643# loading this file, other *unset* `ac_cv_foo' will be assigned the
33644# following values.
33645
33646_ACEOF
33647
33648# The following way of writing the cache mishandles newlines in values,
33649# but we know of no workaround that is simple, portable, and efficient.
33650# So, don't put newlines in cache variables' values.
33651# Ultrix sh set writes to stderr and can't be redirected directly,
33652# and sets the high bit in the cache file unless we assign to the vars.
33653{
33654 (set) 2>&1 |
33655 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33656 *ac_space=\ *)
33657 # `set' does not quote correctly, so add quotes (double-quote
33658 # substitution turns \\\\ into \\, and sed turns \\ into \).
33659 sed -n \
ac1cb8d3
VS
33660 "s/'/'\\\\''/g;
33661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33662 ;;
33663 *)
33664 # `set' quotes correctly as required by POSIX, so do not add quotes.
33665 sed -n \
ac1cb8d3 33666 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33667 ;;
33668 esac;
33669} |
33670 sed '
33671 t clear
33672 : clear
33673 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33674 t end
33675 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33676 : end' >>confcache
33677if diff $cache_file confcache >/dev/null 2>&1; then :; else
33678 if test -w $cache_file; then
33679 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33680 cat confcache >$cache_file
33681 else
33682 echo "not updating unwritable cache $cache_file"
33683 fi
33684fi
33685rm -f confcache
33686
33687
33688CPP_MT_FLAG=
33689if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33690
33691
33692 THREADS_LINK=
33693 THREADS_CFLAGS=
33694
33695 if test "$wxUSE_THREADS" = "yes" ; then
33696 if test "$USE_BEOS" = 1; then
33697 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33698echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33699 wxUSE_THREADS="no"
33700 fi
33701 fi
33702
33703 if test "$wxUSE_THREADS" = "yes" ; then
33704
33705
33706 THREAD_OPTS="-pthread"
33707 case "${host}" in
33708 *-*-solaris2* | *-*-sunos4* )
33709 if test "x$GCC" = "xyes"; then
33710 THREAD_OPTS="-pthreads $THREAD_OPTS"
33711 else
33712 THREAD_OPTS="-mt $THREAD_OPTS"
33713 fi
33714 ;;
33715 *-*-freebsd*)
33716 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33717 ;;
33718 *-*-darwin* | *-*-cygwin* )
33719 THREAD_OPTS=""
33720 ;;
33721 *-*-aix*)
33722 THREAD_OPTS="pthreads"
33723 ;;
33724 *-hp-hpux* )
33725 if test "x$GCC" != "xyes"; then
33726 THREAD_OPTS=""
33727 fi
33728 ;;
33729
33730 *-*-irix* )
33731 if test "x$GCC" = "xyes"; then
33732 THREAD_OPTS=""
33733 fi
33734 ;;
33735
33736 *-*-*UnixWare*)
33737 if test "x$GCC" != "xyes"; then
33738 THREAD_OPTS="-Ethread"
33739 fi
33740 ;;
33741 esac
33742
33743 THREAD_OPTS="$THREAD_OPTS pthread none"
33744
33745 THREADS_OK=no
33746 for flag in $THREAD_OPTS; do
33747 case $flag in
33748 none)
33749 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33750echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33751 ;;
33752
33753 -*)
33754 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33755echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33756 THREADS_CFLAGS="$flag"
33757 ;;
33758
33759 *)
33760 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33761echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33762 THREADS_LINK="-l$flag"
33763 ;;
33764 esac
33765
33766 save_LIBS="$LIBS"
33767 save_CFLAGS="$CFLAGS"
33768 LIBS="$THREADS_LINK $LIBS"
33769 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33770
33771 cat >conftest.$ac_ext <<_ACEOF
33772/* confdefs.h. */
33773_ACEOF
33774cat confdefs.h >>conftest.$ac_ext
33775cat >>conftest.$ac_ext <<_ACEOF
33776/* end confdefs.h. */
33777#include <pthread.h>
33778int
33779main ()
33780{
33781pthread_create(0,0,0,0);
33782 ;
33783 return 0;
33784}
33785_ACEOF
33786rm -f conftest.$ac_objext conftest$ac_exeext
33787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33788 (eval $ac_link) 2>conftest.er1
a848cd7e 33789 ac_status=$?
ac1cb8d3
VS
33790 grep -v '^ *+' conftest.er1 >conftest.err
33791 rm -f conftest.er1
33792 cat conftest.err >&5
a848cd7e
SC
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); } &&
07158944 33795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33797 (eval $ac_try) 2>&5
33798 ac_status=$?
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; } &&
33801 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33803 (eval $ac_try) 2>&5
33804 ac_status=$?
33805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33806 (exit $ac_status); }; }; then
33807 THREADS_OK=yes
33808else
33809 echo "$as_me: failed program was:" >&5
33810sed 's/^/| /' conftest.$ac_ext >&5
33811
33812fi
ac1cb8d3
VS
33813rm -f conftest.err conftest.$ac_objext \
33814 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33815
33816 LIBS="$save_LIBS"
33817 CFLAGS="$save_CFLAGS"
33818
33819 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33820echo "${ECHO_T}$THREADS_OK" >&6
33821 if test "x$THREADS_OK" = "xyes"; then
33822 break;
33823 fi
33824
33825 THREADS_LINK=""
33826 THREADS_CFLAGS=""
33827 done
33828
33829 if test "x$THREADS_OK" != "xyes"; then
33830 wxUSE_THREADS=no
33831 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33832echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33833 else
33834 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33835 LIBS="$THREADS_LINK $LIBS"
33836
33837 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33838echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33839 flag=no
33840 case "${host}" in
33841 *-aix*)
33842 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33843 flag="-D_THREAD_SAFE"
33844 ;;
33845 *-freebsd*)
33846 flag="-D_THREAD_SAFE"
33847 ;;
33848 *-hp-hpux* )
33849 flag="-D_REENTRANT"
33850 if test "x$GCC" != "xyes"; then
33851 flag="$flag -D_RWSTD_MULTI_THREAD"
33852 fi
33853 ;;
33854 *solaris* | alpha*-osf*)
33855 flag="-D_REENTRANT"
33856 ;;
33857 esac
33858 echo "$as_me:$LINENO: result: ${flag}" >&5
33859echo "${ECHO_T}${flag}" >&6
33860 if test "x$flag" != xno; then
33861 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33862 fi
33863
33864 if test "x$THREADS_CFLAGS" != "x"; then
33865 CFLAGS="$CFLAGS $THREADS_CFLAGS"
33866 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33867 fi
33868 fi
33869 fi
33870
33871 if test "$wxUSE_THREADS" = "yes" ; then
33872
33873for ac_func in thr_setconcurrency
33874do
33875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33876echo "$as_me:$LINENO: checking for $ac_func" >&5
33877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33878if eval "test \"\${$as_ac_var+set}\" = set"; then
33879 echo $ECHO_N "(cached) $ECHO_C" >&6
33880else
33881 cat >conftest.$ac_ext <<_ACEOF
33882/* confdefs.h. */
33883_ACEOF
33884cat confdefs.h >>conftest.$ac_ext
33885cat >>conftest.$ac_ext <<_ACEOF
33886/* end confdefs.h. */
ac1cb8d3
VS
33887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33889#define $ac_func innocuous_$ac_func
33890
a848cd7e
SC
33891/* System header to define __stub macros and hopefully few prototypes,
33892 which can conflict with char $ac_func (); below.
33893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33894 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33895
a848cd7e
SC
33896#ifdef __STDC__
33897# include <limits.h>
33898#else
33899# include <assert.h>
33900#endif
ac1cb8d3
VS
33901
33902#undef $ac_func
33903
a848cd7e
SC
33904/* Override any gcc2 internal prototype to avoid an error. */
33905#ifdef __cplusplus
33906extern "C"
33907{
33908#endif
33909/* We use char because int might match the return type of a gcc2
33910 builtin and then its argument prototype would still apply. */
33911char $ac_func ();
33912/* The GNU C library defines this for functions which it implements
33913 to always fail with ENOSYS. Some functions are actually named
33914 something starting with __ and the normal name is an alias. */
33915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33916choke me
33917#else
33918char (*f) () = $ac_func;
33919#endif
33920#ifdef __cplusplus
33921}
33922#endif
33923
33924int
33925main ()
33926{
33927return f != $ac_func;
33928 ;
33929 return 0;
33930}
33931_ACEOF
33932rm -f conftest.$ac_objext conftest$ac_exeext
33933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33934 (eval $ac_link) 2>conftest.er1
a848cd7e 33935 ac_status=$?
ac1cb8d3
VS
33936 grep -v '^ *+' conftest.er1 >conftest.err
33937 rm -f conftest.er1
33938 cat conftest.err >&5
a848cd7e
SC
33939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33940 (exit $ac_status); } &&
07158944 33941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33943 (eval $ac_try) 2>&5
33944 ac_status=$?
33945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33946 (exit $ac_status); }; } &&
33947 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33949 (eval $ac_try) 2>&5
33950 ac_status=$?
33951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952 (exit $ac_status); }; }; then
33953 eval "$as_ac_var=yes"
33954else
33955 echo "$as_me: failed program was:" >&5
33956sed 's/^/| /' conftest.$ac_ext >&5
33957
33958eval "$as_ac_var=no"
33959fi
ac1cb8d3
VS
33960rm -f conftest.err conftest.$ac_objext \
33961 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33962fi
33963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33965if test `eval echo '${'$as_ac_var'}'` = yes; then
33966 cat >>confdefs.h <<_ACEOF
33967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33968_ACEOF
33969
33970fi
33971done
33972
33973
33974
33975for ac_header in sched.h
33976do
33977as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33978if eval "test \"\${$as_ac_Header+set}\" = set"; then
33979 echo "$as_me:$LINENO: checking for $ac_header" >&5
33980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33981if eval "test \"\${$as_ac_Header+set}\" = set"; then
33982 echo $ECHO_N "(cached) $ECHO_C" >&6
33983fi
33984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33986else
33987 # Is the header compilable?
33988echo "$as_me:$LINENO: checking $ac_header usability" >&5
33989echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33990cat >conftest.$ac_ext <<_ACEOF
33991/* confdefs.h. */
33992_ACEOF
33993cat confdefs.h >>conftest.$ac_ext
33994cat >>conftest.$ac_ext <<_ACEOF
33995/* end confdefs.h. */
33996$ac_includes_default
33997#include <$ac_header>
33998_ACEOF
33999rm -f conftest.$ac_objext
34000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34001 (eval $ac_compile) 2>conftest.er1
a848cd7e 34002 ac_status=$?
ac1cb8d3
VS
34003 grep -v '^ *+' conftest.er1 >conftest.err
34004 rm -f conftest.er1
34005 cat conftest.err >&5
a848cd7e
SC
34006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007 (exit $ac_status); } &&
07158944 34008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34010 (eval $ac_try) 2>&5
34011 ac_status=$?
34012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34013 (exit $ac_status); }; } &&
34014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34016 (eval $ac_try) 2>&5
34017 ac_status=$?
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); }; }; then
34020 ac_header_compiler=yes
34021else
34022 echo "$as_me: failed program was:" >&5
34023sed 's/^/| /' conftest.$ac_ext >&5
34024
34025ac_header_compiler=no
34026fi
ac1cb8d3 34027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34028echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34029echo "${ECHO_T}$ac_header_compiler" >&6
34030
34031# Is the header present?
34032echo "$as_me:$LINENO: checking $ac_header presence" >&5
34033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34034cat >conftest.$ac_ext <<_ACEOF
34035/* confdefs.h. */
34036_ACEOF
34037cat confdefs.h >>conftest.$ac_ext
34038cat >>conftest.$ac_ext <<_ACEOF
34039/* end confdefs.h. */
34040#include <$ac_header>
34041_ACEOF
34042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34044 ac_status=$?
34045 grep -v '^ *+' conftest.er1 >conftest.err
34046 rm -f conftest.er1
34047 cat conftest.err >&5
34048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049 (exit $ac_status); } >/dev/null; then
34050 if test -s conftest.err; then
34051 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34053 else
34054 ac_cpp_err=
34055 fi
34056else
34057 ac_cpp_err=yes
34058fi
34059if test -z "$ac_cpp_err"; then
34060 ac_header_preproc=yes
34061else
34062 echo "$as_me: failed program was:" >&5
34063sed 's/^/| /' conftest.$ac_ext >&5
34064
34065 ac_header_preproc=no
34066fi
34067rm -f conftest.err conftest.$ac_ext
34068echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34069echo "${ECHO_T}$ac_header_preproc" >&6
34070
34071# So? What about this header?
ac1cb8d3
VS
34072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34073 yes:no: )
a848cd7e
SC
34074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34075echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34077echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34078 ac_header_preproc=yes
a848cd7e 34079 ;;
ac1cb8d3 34080 no:yes:* )
a848cd7e
SC
34081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34082echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34084echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34086echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34088echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34090echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34092echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34093 (
34094 cat <<\_ASBOX
ac1cb8d3
VS
34095## ----------------------------------------- ##
34096## Report this to wx-dev@lists.wxwidgets.org ##
34097## ----------------------------------------- ##
a848cd7e
SC
34098_ASBOX
34099 ) |
34100 sed "s/^/$as_me: WARNING: /" >&2
34101 ;;
34102esac
34103echo "$as_me:$LINENO: checking for $ac_header" >&5
34104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34105if eval "test \"\${$as_ac_Header+set}\" = set"; then
34106 echo $ECHO_N "(cached) $ECHO_C" >&6
34107else
ac1cb8d3 34108 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34109fi
34110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34112
34113fi
34114if test `eval echo '${'$as_ac_Header'}'` = yes; then
34115 cat >>confdefs.h <<_ACEOF
34116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34117_ACEOF
34118
34119fi
34120
34121done
34122
34123 if test "$ac_cv_header_sched_h" = "yes"; then
34124 echo "$as_me:$LINENO: checking for sched_yield" >&5
34125echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34126if test "${ac_cv_func_sched_yield+set}" = set; then
34127 echo $ECHO_N "(cached) $ECHO_C" >&6
34128else
34129 cat >conftest.$ac_ext <<_ACEOF
34130/* confdefs.h. */
34131_ACEOF
34132cat confdefs.h >>conftest.$ac_ext
34133cat >>conftest.$ac_ext <<_ACEOF
34134/* end confdefs.h. */
ac1cb8d3
VS
34135/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34137#define sched_yield innocuous_sched_yield
34138
a848cd7e
SC
34139/* System header to define __stub macros and hopefully few prototypes,
34140 which can conflict with char sched_yield (); below.
34141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34142 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34143
a848cd7e
SC
34144#ifdef __STDC__
34145# include <limits.h>
34146#else
34147# include <assert.h>
34148#endif
ac1cb8d3
VS
34149
34150#undef sched_yield
34151
a848cd7e
SC
34152/* Override any gcc2 internal prototype to avoid an error. */
34153#ifdef __cplusplus
34154extern "C"
34155{
34156#endif
34157/* We use char because int might match the return type of a gcc2
34158 builtin and then its argument prototype would still apply. */
34159char sched_yield ();
34160/* The GNU C library defines this for functions which it implements
34161 to always fail with ENOSYS. Some functions are actually named
34162 something starting with __ and the normal name is an alias. */
34163#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34164choke me
34165#else
34166char (*f) () = sched_yield;
34167#endif
34168#ifdef __cplusplus
34169}
34170#endif
34171
34172int
34173main ()
34174{
34175return f != sched_yield;
34176 ;
34177 return 0;
34178}
34179_ACEOF
34180rm -f conftest.$ac_objext conftest$ac_exeext
34181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34182 (eval $ac_link) 2>conftest.er1
a848cd7e 34183 ac_status=$?
ac1cb8d3
VS
34184 grep -v '^ *+' conftest.er1 >conftest.err
34185 rm -f conftest.er1
34186 cat conftest.err >&5
a848cd7e
SC
34187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188 (exit $ac_status); } &&
07158944 34189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34191 (eval $ac_try) 2>&5
34192 ac_status=$?
34193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194 (exit $ac_status); }; } &&
34195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34197 (eval $ac_try) 2>&5
34198 ac_status=$?
34199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200 (exit $ac_status); }; }; then
34201 ac_cv_func_sched_yield=yes
34202else
34203 echo "$as_me: failed program was:" >&5
34204sed 's/^/| /' conftest.$ac_ext >&5
34205
34206ac_cv_func_sched_yield=no
34207fi
ac1cb8d3
VS
34208rm -f conftest.err conftest.$ac_objext \
34209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34210fi
34211echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34212echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34213if test $ac_cv_func_sched_yield = yes; then
34214 cat >>confdefs.h <<\_ACEOF
34215#define HAVE_SCHED_YIELD 1
34216_ACEOF
34217
34218else
34219
34220 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34221echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34222if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34223 echo $ECHO_N "(cached) $ECHO_C" >&6
34224else
34225 ac_check_lib_save_LIBS=$LIBS
34226LIBS="-lposix4 $LIBS"
34227cat >conftest.$ac_ext <<_ACEOF
34228/* confdefs.h. */
34229_ACEOF
34230cat confdefs.h >>conftest.$ac_ext
34231cat >>conftest.$ac_ext <<_ACEOF
34232/* end confdefs.h. */
34233
34234/* Override any gcc2 internal prototype to avoid an error. */
34235#ifdef __cplusplus
34236extern "C"
34237#endif
34238/* We use char because int might match the return type of a gcc2
34239 builtin and then its argument prototype would still apply. */
34240char sched_yield ();
34241int
34242main ()
34243{
34244sched_yield ();
34245 ;
34246 return 0;
34247}
34248_ACEOF
34249rm -f conftest.$ac_objext conftest$ac_exeext
34250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34251 (eval $ac_link) 2>conftest.er1
a848cd7e 34252 ac_status=$?
ac1cb8d3
VS
34253 grep -v '^ *+' conftest.er1 >conftest.err
34254 rm -f conftest.er1
34255 cat conftest.err >&5
a848cd7e
SC
34256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257 (exit $ac_status); } &&
07158944 34258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34260 (eval $ac_try) 2>&5
34261 ac_status=$?
34262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263 (exit $ac_status); }; } &&
34264 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34266 (eval $ac_try) 2>&5
34267 ac_status=$?
34268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34269 (exit $ac_status); }; }; then
34270 ac_cv_lib_posix4_sched_yield=yes
34271else
34272 echo "$as_me: failed program was:" >&5
34273sed 's/^/| /' conftest.$ac_ext >&5
34274
34275ac_cv_lib_posix4_sched_yield=no
34276fi
ac1cb8d3
VS
34277rm -f conftest.err conftest.$ac_objext \
34278 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34279LIBS=$ac_check_lib_save_LIBS
34280fi
34281echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34282echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34283if test $ac_cv_lib_posix4_sched_yield = yes; then
34284 cat >>confdefs.h <<\_ACEOF
34285#define HAVE_SCHED_YIELD 1
34286_ACEOF
34287 POSIX4_LINK=" -lposix4"
34288else
34289 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34290echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34291
34292fi
34293
34294
34295
34296fi
34297
34298 fi
34299
34300 HAVE_PRIOR_FUNCS=0
34301 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34302echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34303if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34304 echo $ECHO_N "(cached) $ECHO_C" >&6
34305else
34306 cat >conftest.$ac_ext <<_ACEOF
34307/* confdefs.h. */
34308_ACEOF
34309cat confdefs.h >>conftest.$ac_ext
34310cat >>conftest.$ac_ext <<_ACEOF
34311/* end confdefs.h. */
ac1cb8d3
VS
34312/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34314#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34315
a848cd7e
SC
34316/* System header to define __stub macros and hopefully few prototypes,
34317 which can conflict with char pthread_attr_getschedpolicy (); below.
34318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34319 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34320
a848cd7e
SC
34321#ifdef __STDC__
34322# include <limits.h>
34323#else
34324# include <assert.h>
34325#endif
ac1cb8d3
VS
34326
34327#undef pthread_attr_getschedpolicy
34328
a848cd7e
SC
34329/* Override any gcc2 internal prototype to avoid an error. */
34330#ifdef __cplusplus
34331extern "C"
34332{
34333#endif
34334/* We use char because int might match the return type of a gcc2
34335 builtin and then its argument prototype would still apply. */
34336char pthread_attr_getschedpolicy ();
34337/* The GNU C library defines this for functions which it implements
34338 to always fail with ENOSYS. Some functions are actually named
34339 something starting with __ and the normal name is an alias. */
34340#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34341choke me
34342#else
34343char (*f) () = pthread_attr_getschedpolicy;
34344#endif
34345#ifdef __cplusplus
34346}
34347#endif
34348
34349int
34350main ()
34351{
34352return f != pthread_attr_getschedpolicy;
34353 ;
34354 return 0;
34355}
34356_ACEOF
34357rm -f conftest.$ac_objext conftest$ac_exeext
34358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34359 (eval $ac_link) 2>conftest.er1
a848cd7e 34360 ac_status=$?
ac1cb8d3
VS
34361 grep -v '^ *+' conftest.er1 >conftest.err
34362 rm -f conftest.er1
34363 cat conftest.err >&5
a848cd7e
SC
34364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34365 (exit $ac_status); } &&
07158944 34366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34368 (eval $ac_try) 2>&5
34369 ac_status=$?
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); }; } &&
34372 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34374 (eval $ac_try) 2>&5
34375 ac_status=$?
34376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 (exit $ac_status); }; }; then
34378 ac_cv_func_pthread_attr_getschedpolicy=yes
34379else
34380 echo "$as_me: failed program was:" >&5
34381sed 's/^/| /' conftest.$ac_ext >&5
34382
34383ac_cv_func_pthread_attr_getschedpolicy=no
34384fi
ac1cb8d3
VS
34385rm -f conftest.err conftest.$ac_objext \
34386 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34387fi
34388echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34389echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34390if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34391 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34392echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34393if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34394 echo $ECHO_N "(cached) $ECHO_C" >&6
34395else
34396 cat >conftest.$ac_ext <<_ACEOF
34397/* confdefs.h. */
34398_ACEOF
34399cat confdefs.h >>conftest.$ac_ext
34400cat >>conftest.$ac_ext <<_ACEOF
34401/* end confdefs.h. */
ac1cb8d3
VS
34402/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34404#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34405
a848cd7e
SC
34406/* System header to define __stub macros and hopefully few prototypes,
34407 which can conflict with char pthread_attr_setschedparam (); below.
34408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34409 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34410
a848cd7e
SC
34411#ifdef __STDC__
34412# include <limits.h>
34413#else
34414# include <assert.h>
34415#endif
ac1cb8d3
VS
34416
34417#undef pthread_attr_setschedparam
34418
a848cd7e
SC
34419/* Override any gcc2 internal prototype to avoid an error. */
34420#ifdef __cplusplus
34421extern "C"
34422{
34423#endif
34424/* We use char because int might match the return type of a gcc2
34425 builtin and then its argument prototype would still apply. */
34426char pthread_attr_setschedparam ();
34427/* The GNU C library defines this for functions which it implements
34428 to always fail with ENOSYS. Some functions are actually named
34429 something starting with __ and the normal name is an alias. */
34430#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34431choke me
34432#else
34433char (*f) () = pthread_attr_setschedparam;
34434#endif
34435#ifdef __cplusplus
34436}
34437#endif
34438
34439int
34440main ()
34441{
34442return f != pthread_attr_setschedparam;
34443 ;
34444 return 0;
34445}
34446_ACEOF
34447rm -f conftest.$ac_objext conftest$ac_exeext
34448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34449 (eval $ac_link) 2>conftest.er1
a848cd7e 34450 ac_status=$?
ac1cb8d3
VS
34451 grep -v '^ *+' conftest.er1 >conftest.err
34452 rm -f conftest.er1
34453 cat conftest.err >&5
a848cd7e
SC
34454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); } &&
07158944 34456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34458 (eval $ac_try) 2>&5
34459 ac_status=$?
34460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461 (exit $ac_status); }; } &&
34462 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34464 (eval $ac_try) 2>&5
34465 ac_status=$?
34466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34467 (exit $ac_status); }; }; then
34468 ac_cv_func_pthread_attr_setschedparam=yes
34469else
34470 echo "$as_me: failed program was:" >&5
34471sed 's/^/| /' conftest.$ac_ext >&5
34472
34473ac_cv_func_pthread_attr_setschedparam=no
34474fi
ac1cb8d3
VS
34475rm -f conftest.err conftest.$ac_objext \
34476 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34477fi
34478echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34479echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34480if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34481 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34482echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34483if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34484 echo $ECHO_N "(cached) $ECHO_C" >&6
34485else
34486 cat >conftest.$ac_ext <<_ACEOF
34487/* confdefs.h. */
34488_ACEOF
34489cat confdefs.h >>conftest.$ac_ext
34490cat >>conftest.$ac_ext <<_ACEOF
34491/* end confdefs.h. */
ac1cb8d3
VS
34492/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34494#define sched_get_priority_max innocuous_sched_get_priority_max
34495
a848cd7e
SC
34496/* System header to define __stub macros and hopefully few prototypes,
34497 which can conflict with char sched_get_priority_max (); below.
34498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34499 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34500
a848cd7e
SC
34501#ifdef __STDC__
34502# include <limits.h>
34503#else
34504# include <assert.h>
34505#endif
ac1cb8d3
VS
34506
34507#undef sched_get_priority_max
34508
a848cd7e
SC
34509/* Override any gcc2 internal prototype to avoid an error. */
34510#ifdef __cplusplus
34511extern "C"
34512{
34513#endif
34514/* We use char because int might match the return type of a gcc2
34515 builtin and then its argument prototype would still apply. */
34516char sched_get_priority_max ();
34517/* The GNU C library defines this for functions which it implements
34518 to always fail with ENOSYS. Some functions are actually named
34519 something starting with __ and the normal name is an alias. */
34520#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34521choke me
34522#else
34523char (*f) () = sched_get_priority_max;
34524#endif
34525#ifdef __cplusplus
34526}
34527#endif
34528
34529int
34530main ()
34531{
34532return f != sched_get_priority_max;
34533 ;
34534 return 0;
34535}
34536_ACEOF
34537rm -f conftest.$ac_objext conftest$ac_exeext
34538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34539 (eval $ac_link) 2>conftest.er1
a848cd7e 34540 ac_status=$?
ac1cb8d3
VS
34541 grep -v '^ *+' conftest.er1 >conftest.err
34542 rm -f conftest.er1
34543 cat conftest.err >&5
a848cd7e
SC
34544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545 (exit $ac_status); } &&
07158944 34546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34548 (eval $ac_try) 2>&5
34549 ac_status=$?
34550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551 (exit $ac_status); }; } &&
34552 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34554 (eval $ac_try) 2>&5
34555 ac_status=$?
34556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34557 (exit $ac_status); }; }; then
34558 ac_cv_func_sched_get_priority_max=yes
34559else
34560 echo "$as_me: failed program was:" >&5
34561sed 's/^/| /' conftest.$ac_ext >&5
34562
34563ac_cv_func_sched_get_priority_max=no
34564fi
ac1cb8d3
VS
34565rm -f conftest.err conftest.$ac_objext \
34566 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34567fi
34568echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34569echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34570if test $ac_cv_func_sched_get_priority_max = yes; then
34571 HAVE_PRIOR_FUNCS=1
34572else
34573 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34574echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34575if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34576 echo $ECHO_N "(cached) $ECHO_C" >&6
34577else
34578 ac_check_lib_save_LIBS=$LIBS
34579LIBS="-lposix4 $LIBS"
34580cat >conftest.$ac_ext <<_ACEOF
34581/* confdefs.h. */
34582_ACEOF
34583cat confdefs.h >>conftest.$ac_ext
34584cat >>conftest.$ac_ext <<_ACEOF
34585/* end confdefs.h. */
34586
34587/* Override any gcc2 internal prototype to avoid an error. */
34588#ifdef __cplusplus
34589extern "C"
34590#endif
34591/* We use char because int might match the return type of a gcc2
34592 builtin and then its argument prototype would still apply. */
34593char sched_get_priority_max ();
34594int
34595main ()
34596{
34597sched_get_priority_max ();
34598 ;
34599 return 0;
34600}
34601_ACEOF
34602rm -f conftest.$ac_objext conftest$ac_exeext
34603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34604 (eval $ac_link) 2>conftest.er1
a848cd7e 34605 ac_status=$?
ac1cb8d3
VS
34606 grep -v '^ *+' conftest.er1 >conftest.err
34607 rm -f conftest.er1
34608 cat conftest.err >&5
a848cd7e
SC
34609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610 (exit $ac_status); } &&
07158944 34611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34613 (eval $ac_try) 2>&5
34614 ac_status=$?
34615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); }; } &&
34617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34619 (eval $ac_try) 2>&5
34620 ac_status=$?
34621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622 (exit $ac_status); }; }; then
34623 ac_cv_lib_posix4_sched_get_priority_max=yes
34624else
34625 echo "$as_me: failed program was:" >&5
34626sed 's/^/| /' conftest.$ac_ext >&5
34627
34628ac_cv_lib_posix4_sched_get_priority_max=no
34629fi
ac1cb8d3
VS
34630rm -f conftest.err conftest.$ac_objext \
34631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34632LIBS=$ac_check_lib_save_LIBS
34633fi
34634echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34635echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34636if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34637
34638 HAVE_PRIOR_FUNCS=1
34639 POSIX4_LINK=" -lposix4"
34640
34641fi
34642
34643
34644fi
34645
34646
34647fi
34648
34649
34650fi
34651
34652
34653 if test "$HAVE_PRIOR_FUNCS" = 1; then
34654 cat >>confdefs.h <<\_ACEOF
34655#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34656_ACEOF
34657
34658 else
34659 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34660echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34661 fi
34662
34663 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34664echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34665if test "${ac_cv_func_pthread_cancel+set}" = set; then
34666 echo $ECHO_N "(cached) $ECHO_C" >&6
34667else
34668 cat >conftest.$ac_ext <<_ACEOF
34669/* confdefs.h. */
34670_ACEOF
34671cat confdefs.h >>conftest.$ac_ext
34672cat >>conftest.$ac_ext <<_ACEOF
34673/* end confdefs.h. */
ac1cb8d3
VS
34674/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34676#define pthread_cancel innocuous_pthread_cancel
34677
a848cd7e
SC
34678/* System header to define __stub macros and hopefully few prototypes,
34679 which can conflict with char pthread_cancel (); below.
34680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34681 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34682
a848cd7e
SC
34683#ifdef __STDC__
34684# include <limits.h>
34685#else
34686# include <assert.h>
34687#endif
ac1cb8d3
VS
34688
34689#undef pthread_cancel
34690
a848cd7e
SC
34691/* Override any gcc2 internal prototype to avoid an error. */
34692#ifdef __cplusplus
34693extern "C"
34694{
34695#endif
34696/* We use char because int might match the return type of a gcc2
34697 builtin and then its argument prototype would still apply. */
34698char pthread_cancel ();
34699/* The GNU C library defines this for functions which it implements
34700 to always fail with ENOSYS. Some functions are actually named
34701 something starting with __ and the normal name is an alias. */
34702#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34703choke me
34704#else
34705char (*f) () = pthread_cancel;
34706#endif
34707#ifdef __cplusplus
34708}
34709#endif
34710
34711int
34712main ()
34713{
34714return f != pthread_cancel;
34715 ;
34716 return 0;
34717}
34718_ACEOF
34719rm -f conftest.$ac_objext conftest$ac_exeext
34720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34721 (eval $ac_link) 2>conftest.er1
a848cd7e 34722 ac_status=$?
ac1cb8d3
VS
34723 grep -v '^ *+' conftest.er1 >conftest.err
34724 rm -f conftest.er1
34725 cat conftest.err >&5
a848cd7e
SC
34726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727 (exit $ac_status); } &&
07158944 34728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34730 (eval $ac_try) 2>&5
34731 ac_status=$?
34732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34733 (exit $ac_status); }; } &&
34734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34736 (eval $ac_try) 2>&5
34737 ac_status=$?
34738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); }; }; then
34740 ac_cv_func_pthread_cancel=yes
34741else
34742 echo "$as_me: failed program was:" >&5
34743sed 's/^/| /' conftest.$ac_ext >&5
34744
34745ac_cv_func_pthread_cancel=no
34746fi
ac1cb8d3
VS
34747rm -f conftest.err conftest.$ac_objext \
34748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34749fi
34750echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34751echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34752if test $ac_cv_func_pthread_cancel = yes; then
34753 cat >>confdefs.h <<\_ACEOF
34754#define HAVE_PTHREAD_CANCEL 1
34755_ACEOF
34756
34757else
34758 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34759echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34760fi
34761
34762
34763
34764
34765 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34766echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34767if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34768 echo $ECHO_N "(cached) $ECHO_C" >&6
34769else
34770
34771 cat >conftest.$ac_ext <<_ACEOF
34772/* confdefs.h. */
34773_ACEOF
34774cat confdefs.h >>conftest.$ac_ext
34775cat >>conftest.$ac_ext <<_ACEOF
34776/* end confdefs.h. */
34777#include <pthread.h>
34778int
34779main ()
34780{
34781
34782 pthread_mutexattr_t attr;
34783 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34784
34785 ;
34786 return 0;
34787}
34788_ACEOF
34789rm -f conftest.$ac_objext
34790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34791 (eval $ac_compile) 2>conftest.er1
a848cd7e 34792 ac_status=$?
ac1cb8d3
VS
34793 grep -v '^ *+' conftest.er1 >conftest.err
34794 rm -f conftest.er1
34795 cat conftest.err >&5
a848cd7e
SC
34796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797 (exit $ac_status); } &&
07158944 34798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34800 (eval $ac_try) 2>&5
34801 ac_status=$?
34802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34803 (exit $ac_status); }; } &&
34804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34806 (eval $ac_try) 2>&5
34807 ac_status=$?
34808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34809 (exit $ac_status); }; }; then
34810
34811 wx_cv_type_pthread_mutexattr_t=yes
34812
34813else
34814 echo "$as_me: failed program was:" >&5
34815sed 's/^/| /' conftest.$ac_ext >&5
34816
34817
34818 wx_cv_type_pthread_mutexattr_t=no
34819
34820
34821fi
ac1cb8d3 34822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34823
34824fi
34825echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34826echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34827
34828 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34829 cat >>confdefs.h <<\_ACEOF
34830#define HAVE_PTHREAD_MUTEXATTR_T 1
34831_ACEOF
34832
34833 else
34834 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34835echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34836if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34837 echo $ECHO_N "(cached) $ECHO_C" >&6
34838else
34839
34840 cat >conftest.$ac_ext <<_ACEOF
34841/* confdefs.h. */
34842_ACEOF
34843cat confdefs.h >>conftest.$ac_ext
34844cat >>conftest.$ac_ext <<_ACEOF
34845/* end confdefs.h. */
34846#include <pthread.h>
34847int
34848main ()
34849{
34850
34851 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34852
34853 ;
34854 return 0;
34855}
34856_ACEOF
34857rm -f conftest.$ac_objext
34858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34859 (eval $ac_compile) 2>conftest.er1
a848cd7e 34860 ac_status=$?
ac1cb8d3
VS
34861 grep -v '^ *+' conftest.er1 >conftest.err
34862 rm -f conftest.er1
34863 cat conftest.err >&5
a848cd7e
SC
34864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865 (exit $ac_status); } &&
07158944 34866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34868 (eval $ac_try) 2>&5
34869 ac_status=$?
34870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34871 (exit $ac_status); }; } &&
34872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34874 (eval $ac_try) 2>&5
34875 ac_status=$?
34876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877 (exit $ac_status); }; }; then
34878
34879 wx_cv_type_pthread_rec_mutex_init=yes
34880
34881else
34882 echo "$as_me: failed program was:" >&5
34883sed 's/^/| /' conftest.$ac_ext >&5
34884
34885
34886 wx_cv_type_pthread_rec_mutex_init=no
34887
34888
34889fi
ac1cb8d3 34890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34891
34892fi
34893echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34894echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34895 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34896 cat >>confdefs.h <<\_ACEOF
34897#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34898_ACEOF
34899
34900 else
34901 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34902echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34903 fi
34904 fi
34905 fi
34906
34907else
34908 if test "$wxUSE_THREADS" = "yes" ; then
34909 case "${host}" in
34910 *-*-mingw32* )
34911 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34912echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34913if test "${wx_cv_cflags_mthread+set}" = set; then
34914 echo $ECHO_N "(cached) $ECHO_C" >&6
34915else
34916
34917 CFLAGS_OLD="$CFLAGS"
34918 CFLAGS="$CFLAGS -mthreads"
34919 cat >conftest.$ac_ext <<_ACEOF
34920/* confdefs.h. */
34921_ACEOF
34922cat confdefs.h >>conftest.$ac_ext
34923cat >>conftest.$ac_ext <<_ACEOF
34924/* end confdefs.h. */
34925
34926int
34927main ()
34928{
34929
34930 ;
34931 return 0;
34932}
34933_ACEOF
34934rm -f conftest.$ac_objext
34935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34936 (eval $ac_compile) 2>conftest.er1
a848cd7e 34937 ac_status=$?
ac1cb8d3
VS
34938 grep -v '^ *+' conftest.er1 >conftest.err
34939 rm -f conftest.er1
34940 cat conftest.err >&5
a848cd7e
SC
34941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942 (exit $ac_status); } &&
07158944 34943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34945 (eval $ac_try) 2>&5
34946 ac_status=$?
34947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948 (exit $ac_status); }; } &&
34949 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34951 (eval $ac_try) 2>&5
34952 ac_status=$?
34953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954 (exit $ac_status); }; }; then
34955 wx_cv_cflags_mthread=yes
34956else
34957 echo "$as_me: failed program was:" >&5
34958sed 's/^/| /' conftest.$ac_ext >&5
34959
34960wx_cv_cflags_mthread=no
34961
34962fi
ac1cb8d3 34963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34964
34965
34966fi
34967echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34968echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34969
34970 if test "$wx_cv_cflags_mthread" = "yes"; then
34971 CXXFLAGS="$CXXFLAGS -mthreads"
34972 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
34973 LDFLAGS="$LDFLAGS -mthreads"
34974 else
34975 CFLAGS="$CFLAGS_OLD"
34976 fi
34977 ;;
34978 *-pc-os2*emx )
34979 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
34980 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
34981 LDFLAGS="$LDFLAGS -Zmt"
34982 ;;
34983 esac
34984 fi
34985fi
34986
34987if test "$wxUSE_THREADS" = "yes"; then
34988 cat >>confdefs.h <<\_ACEOF
34989#define wxUSE_THREADS 1
34990_ACEOF
34991
34992
34993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
34994else
34995 if test "$ac_cv_func_strtok_r" = "yes"; then
34996 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
34997echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
34998 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
34999 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35000 echo "$as_me:$LINENO: result: yes" >&5
35001echo "${ECHO_T}yes" >&6
35002 else
35003 echo "$as_me:$LINENO: result: no" >&5
35004echo "${ECHO_T}no" >&6
35005 fi
35006 fi
35007fi
35008
35009if test "$WXGTK20" = 1 ; then
35010 cat >>confdefs.h <<_ACEOF
35011#define __WXGTK20__ $WXGTK20
35012_ACEOF
35013
35014 WXGTK12=1
35015fi
35016
35017if test "$WXGTK12" = 1 ; then
35018 cat >>confdefs.h <<_ACEOF
35019#define __WXGTK12__ $WXGTK12
35020_ACEOF
35021
35022fi
35023
35024if test "$WXGTK127" = 1 ; then
35025 cat >>confdefs.h <<_ACEOF
35026#define __WXGTK127__ $WXGTK127
35027_ACEOF
35028
35029fi
35030
35031if test "$WXGPE" = 1 ; then
35032 cat >>confdefs.h <<_ACEOF
35033#define __WXGPE__ $WXGPE
35034_ACEOF
35035
35036fi
35037
35038WXDEBUG=
35039
35040if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35041 WXDEBUG="-g"
35042 wxUSE_OPTIMISE=no
35043fi
35044
35045if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35046 wxUSE_DEBUG_INFO=yes
35047 WXDEBUG="-ggdb"
35048fi
35049
35050if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35051 cat >>confdefs.h <<\_ACEOF
35052#define WXDEBUG 1
35053_ACEOF
35054
35055 WXDEBUG_DEFINE="-D__WXDEBUG__"
35056else
35057 if test "$wxUSE_GTK" = 1 ; then
35058 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35059 fi
35060fi
35061
35062if test "$wxUSE_MEM_TRACING" = "yes" ; then
35063 cat >>confdefs.h <<\_ACEOF
35064#define wxUSE_MEMORY_TRACING 1
35065_ACEOF
35066
35067 cat >>confdefs.h <<\_ACEOF
35068#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35069_ACEOF
35070
35071 cat >>confdefs.h <<\_ACEOF
35072#define wxUSE_DEBUG_NEW_ALWAYS 1
35073_ACEOF
35074
35075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35076fi
35077
35078if test "$wxUSE_DMALLOC" = "yes" ; then
35079 DMALLOC_LIBS="-ldmalloc"
35080fi
35081
35082PROFILE=
35083if test "$wxUSE_PROFILE" = "yes" ; then
35084 PROFILE=" -pg"
35085fi
35086
35087CODE_GEN_FLAGS=
35088CODE_GEN_FLAGS_CXX=
35089if test "$GCC" = "yes" ; then
35090 if test "$wxUSE_NO_RTTI" = "yes" ; then
35091 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35092 fi
35093 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35094 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35095 fi
35096 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35097 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35098 fi
35099
35100 case "${host}" in
35101 powerpc*-*-aix* )
35102 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35103 ;;
35104 *-hppa* )
35105 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35106 ;;
35107 esac
35108fi
35109
35110OPTIMISE=
35111if test "$wxUSE_OPTIMISE" = "no" ; then
35112 if test "$GCC" = yes ; then
35113 OPTIMISE="-O0"
35114 fi
35115else
35116 if test "$GCC" = yes ; then
35117 OPTIMISE="-O2"
35118
35119 case "${host}" in
35120 i586-*-*|i686-*-* )
35121 OPTIMISE="${OPTIMISE} "
35122 ;;
35123 esac
35124 else
35125 OPTIMISE="-O"
35126 fi
35127fi
35128
35129
35130if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35131 cat >>confdefs.h <<\_ACEOF
35132#define WXWIN_COMPATIBILITY_2_2 1
35133_ACEOF
35134
35135
35136 WXWIN_COMPATIBILITY_2_4="yes"
35137fi
35138
35139if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35140 cat >>confdefs.h <<\_ACEOF
35141#define WXWIN_COMPATIBILITY_2_4 1
35142_ACEOF
35143
35144fi
35145
35146
35147if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35148 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35149#define wxUSE_GUI 1
35150_ACEOF
35151
35152
370fd4c2 35153 fi
a848cd7e
SC
35154
35155
35156if test "$wxUSE_UNIX" = "yes"; then
35157 cat >>confdefs.h <<\_ACEOF
35158#define wxUSE_UNIX 1
35159_ACEOF
35160
35161fi
35162
35163
35164if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35165
35166 HAVE_DL_FUNCS=0
35167 HAVE_SHL_FUNCS=0
35168 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35169 if test "$USE_DARWIN" = 1; then
35170 HAVE_DL_FUNCS=1
35171 else
35172
35173for ac_func in dlopen
35174do
35175as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35176echo "$as_me:$LINENO: checking for $ac_func" >&5
35177echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35178if eval "test \"\${$as_ac_var+set}\" = set"; then
35179 echo $ECHO_N "(cached) $ECHO_C" >&6
35180else
35181 cat >conftest.$ac_ext <<_ACEOF
35182/* confdefs.h. */
35183_ACEOF
35184cat confdefs.h >>conftest.$ac_ext
35185cat >>conftest.$ac_ext <<_ACEOF
35186/* end confdefs.h. */
ac1cb8d3
VS
35187/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35189#define $ac_func innocuous_$ac_func
35190
a848cd7e
SC
35191/* System header to define __stub macros and hopefully few prototypes,
35192 which can conflict with char $ac_func (); below.
35193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35194 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35195
a848cd7e
SC
35196#ifdef __STDC__
35197# include <limits.h>
35198#else
35199# include <assert.h>
35200#endif
ac1cb8d3
VS
35201
35202#undef $ac_func
35203
a848cd7e
SC
35204/* Override any gcc2 internal prototype to avoid an error. */
35205#ifdef __cplusplus
35206extern "C"
35207{
35208#endif
35209/* We use char because int might match the return type of a gcc2
35210 builtin and then its argument prototype would still apply. */
35211char $ac_func ();
35212/* The GNU C library defines this for functions which it implements
35213 to always fail with ENOSYS. Some functions are actually named
35214 something starting with __ and the normal name is an alias. */
35215#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35216choke me
35217#else
35218char (*f) () = $ac_func;
35219#endif
35220#ifdef __cplusplus
35221}
35222#endif
35223
35224int
35225main ()
35226{
35227return f != $ac_func;
35228 ;
35229 return 0;
35230}
35231_ACEOF
35232rm -f conftest.$ac_objext conftest$ac_exeext
35233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35234 (eval $ac_link) 2>conftest.er1
a848cd7e 35235 ac_status=$?
ac1cb8d3
VS
35236 grep -v '^ *+' conftest.er1 >conftest.err
35237 rm -f conftest.er1
35238 cat conftest.err >&5
a848cd7e
SC
35239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240 (exit $ac_status); } &&
07158944 35241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35243 (eval $ac_try) 2>&5
35244 ac_status=$?
35245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35246 (exit $ac_status); }; } &&
35247 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35249 (eval $ac_try) 2>&5
35250 ac_status=$?
35251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252 (exit $ac_status); }; }; then
35253 eval "$as_ac_var=yes"
35254else
35255 echo "$as_me: failed program was:" >&5
35256sed 's/^/| /' conftest.$ac_ext >&5
35257
35258eval "$as_ac_var=no"
35259fi
ac1cb8d3
VS
35260rm -f conftest.err conftest.$ac_objext \
35261 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35262fi
35263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35264echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35265if test `eval echo '${'$as_ac_var'}'` = yes; then
35266 cat >>confdefs.h <<_ACEOF
35267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35268_ACEOF
35269
35270 cat >>confdefs.h <<\_ACEOF
35271#define HAVE_DLOPEN 1
35272_ACEOF
35273
35274 HAVE_DL_FUNCS=1
35275
35276else
35277
35278 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35279echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35280if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35281 echo $ECHO_N "(cached) $ECHO_C" >&6
35282else
35283 ac_check_lib_save_LIBS=$LIBS
35284LIBS="-ldl $LIBS"
35285cat >conftest.$ac_ext <<_ACEOF
35286/* confdefs.h. */
35287_ACEOF
35288cat confdefs.h >>conftest.$ac_ext
35289cat >>conftest.$ac_ext <<_ACEOF
35290/* end confdefs.h. */
35291
35292/* Override any gcc2 internal prototype to avoid an error. */
35293#ifdef __cplusplus
35294extern "C"
35295#endif
35296/* We use char because int might match the return type of a gcc2
35297 builtin and then its argument prototype would still apply. */
35298char dlopen ();
35299int
35300main ()
35301{
35302dlopen ();
35303 ;
35304 return 0;
35305}
35306_ACEOF
35307rm -f conftest.$ac_objext conftest$ac_exeext
35308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35309 (eval $ac_link) 2>conftest.er1
a848cd7e 35310 ac_status=$?
ac1cb8d3
VS
35311 grep -v '^ *+' conftest.er1 >conftest.err
35312 rm -f conftest.er1
35313 cat conftest.err >&5
a848cd7e
SC
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); } &&
07158944 35316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35318 (eval $ac_try) 2>&5
35319 ac_status=$?
35320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321 (exit $ac_status); }; } &&
35322 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35324 (eval $ac_try) 2>&5
35325 ac_status=$?
35326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35327 (exit $ac_status); }; }; then
35328 ac_cv_lib_dl_dlopen=yes
35329else
35330 echo "$as_me: failed program was:" >&5
35331sed 's/^/| /' conftest.$ac_ext >&5
35332
35333ac_cv_lib_dl_dlopen=no
35334fi
ac1cb8d3
VS
35335rm -f conftest.err conftest.$ac_objext \
35336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35337LIBS=$ac_check_lib_save_LIBS
35338fi
35339echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35340echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35341if test $ac_cv_lib_dl_dlopen = yes; then
35342
35343 cat >>confdefs.h <<\_ACEOF
35344#define HAVE_DLOPEN 1
35345_ACEOF
35346
35347 HAVE_DL_FUNCS=1
35348 DL_LINK=" -ldl$DL_LINK"
35349
35350else
35351
35352
35353for ac_func in shl_load
35354do
35355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35356echo "$as_me:$LINENO: checking for $ac_func" >&5
35357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35358if eval "test \"\${$as_ac_var+set}\" = set"; then
35359 echo $ECHO_N "(cached) $ECHO_C" >&6
35360else
35361 cat >conftest.$ac_ext <<_ACEOF
35362/* confdefs.h. */
35363_ACEOF
35364cat confdefs.h >>conftest.$ac_ext
35365cat >>conftest.$ac_ext <<_ACEOF
35366/* end confdefs.h. */
ac1cb8d3
VS
35367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35369#define $ac_func innocuous_$ac_func
35370
a848cd7e
SC
35371/* System header to define __stub macros and hopefully few prototypes,
35372 which can conflict with char $ac_func (); below.
35373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35374 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35375
a848cd7e
SC
35376#ifdef __STDC__
35377# include <limits.h>
35378#else
35379# include <assert.h>
35380#endif
ac1cb8d3
VS
35381
35382#undef $ac_func
35383
a848cd7e
SC
35384/* Override any gcc2 internal prototype to avoid an error. */
35385#ifdef __cplusplus
35386extern "C"
35387{
35388#endif
35389/* We use char because int might match the return type of a gcc2
35390 builtin and then its argument prototype would still apply. */
35391char $ac_func ();
35392/* The GNU C library defines this for functions which it implements
35393 to always fail with ENOSYS. Some functions are actually named
35394 something starting with __ and the normal name is an alias. */
35395#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35396choke me
35397#else
35398char (*f) () = $ac_func;
35399#endif
35400#ifdef __cplusplus
35401}
35402#endif
35403
35404int
35405main ()
35406{
35407return f != $ac_func;
35408 ;
35409 return 0;
35410}
35411_ACEOF
35412rm -f conftest.$ac_objext conftest$ac_exeext
35413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35414 (eval $ac_link) 2>conftest.er1
a848cd7e 35415 ac_status=$?
ac1cb8d3
VS
35416 grep -v '^ *+' conftest.er1 >conftest.err
35417 rm -f conftest.er1
35418 cat conftest.err >&5
a848cd7e
SC
35419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35420 (exit $ac_status); } &&
07158944 35421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35423 (eval $ac_try) 2>&5
35424 ac_status=$?
35425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426 (exit $ac_status); }; } &&
35427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35429 (eval $ac_try) 2>&5
35430 ac_status=$?
35431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); }; }; then
35433 eval "$as_ac_var=yes"
35434else
35435 echo "$as_me: failed program was:" >&5
35436sed 's/^/| /' conftest.$ac_ext >&5
35437
35438eval "$as_ac_var=no"
35439fi
ac1cb8d3
VS
35440rm -f conftest.err conftest.$ac_objext \
35441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35442fi
35443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35444echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35445if test `eval echo '${'$as_ac_var'}'` = yes; then
35446 cat >>confdefs.h <<_ACEOF
35447#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35448_ACEOF
35449
35450 cat >>confdefs.h <<\_ACEOF
35451#define HAVE_SHL_LOAD 1
35452_ACEOF
35453
35454 HAVE_SHL_FUNCS=1
35455
35456else
35457
35458 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35459echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35460if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35461 echo $ECHO_N "(cached) $ECHO_C" >&6
35462else
35463 ac_check_lib_save_LIBS=$LIBS
35464LIBS="-lshl_load $LIBS"
35465cat >conftest.$ac_ext <<_ACEOF
35466/* confdefs.h. */
35467_ACEOF
35468cat confdefs.h >>conftest.$ac_ext
35469cat >>conftest.$ac_ext <<_ACEOF
35470/* end confdefs.h. */
35471
35472/* Override any gcc2 internal prototype to avoid an error. */
35473#ifdef __cplusplus
35474extern "C"
35475#endif
35476/* We use char because int might match the return type of a gcc2
35477 builtin and then its argument prototype would still apply. */
35478char dld ();
35479int
35480main ()
35481{
35482dld ();
35483 ;
35484 return 0;
35485}
35486_ACEOF
35487rm -f conftest.$ac_objext conftest$ac_exeext
35488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35489 (eval $ac_link) 2>conftest.er1
a848cd7e 35490 ac_status=$?
ac1cb8d3
VS
35491 grep -v '^ *+' conftest.er1 >conftest.err
35492 rm -f conftest.er1
35493 cat conftest.err >&5
a848cd7e
SC
35494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495 (exit $ac_status); } &&
07158944 35496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35498 (eval $ac_try) 2>&5
35499 ac_status=$?
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); }; } &&
35502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35504 (eval $ac_try) 2>&5
35505 ac_status=$?
35506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507 (exit $ac_status); }; }; then
35508 ac_cv_lib_shl_load_dld=yes
35509else
35510 echo "$as_me: failed program was:" >&5
35511sed 's/^/| /' conftest.$ac_ext >&5
35512
35513ac_cv_lib_shl_load_dld=no
35514fi
ac1cb8d3
VS
35515rm -f conftest.err conftest.$ac_objext \
35516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35517LIBS=$ac_check_lib_save_LIBS
35518fi
35519echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35520echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35521if test $ac_cv_lib_shl_load_dld = yes; then
35522
35523 HAVE_SHL_FUNCS=1
35524 DL_LINK=" -ldld$DL_LINK"
35525
35526fi
35527
35528
35529fi
35530done
35531
35532
35533fi
35534
35535
35536fi
35537done
35538
35539
35540 if test "$HAVE_DL_FUNCS" = 1; then
35541
35542for ac_func in dlerror
35543do
35544as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35545echo "$as_me:$LINENO: checking for $ac_func" >&5
35546echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35547if eval "test \"\${$as_ac_var+set}\" = set"; then
35548 echo $ECHO_N "(cached) $ECHO_C" >&6
35549else
35550 cat >conftest.$ac_ext <<_ACEOF
35551/* confdefs.h. */
35552_ACEOF
35553cat confdefs.h >>conftest.$ac_ext
35554cat >>conftest.$ac_ext <<_ACEOF
35555/* end confdefs.h. */
ac1cb8d3
VS
35556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35558#define $ac_func innocuous_$ac_func
35559
a848cd7e
SC
35560/* System header to define __stub macros and hopefully few prototypes,
35561 which can conflict with char $ac_func (); below.
35562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35563 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35564
a848cd7e
SC
35565#ifdef __STDC__
35566# include <limits.h>
35567#else
35568# include <assert.h>
35569#endif
ac1cb8d3
VS
35570
35571#undef $ac_func
35572
a848cd7e
SC
35573/* Override any gcc2 internal prototype to avoid an error. */
35574#ifdef __cplusplus
35575extern "C"
35576{
35577#endif
35578/* We use char because int might match the return type of a gcc2
35579 builtin and then its argument prototype would still apply. */
35580char $ac_func ();
35581/* The GNU C library defines this for functions which it implements
35582 to always fail with ENOSYS. Some functions are actually named
35583 something starting with __ and the normal name is an alias. */
35584#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35585choke me
35586#else
35587char (*f) () = $ac_func;
35588#endif
35589#ifdef __cplusplus
35590}
35591#endif
35592
35593int
35594main ()
35595{
35596return f != $ac_func;
35597 ;
35598 return 0;
35599}
35600_ACEOF
35601rm -f conftest.$ac_objext conftest$ac_exeext
35602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35603 (eval $ac_link) 2>conftest.er1
a848cd7e 35604 ac_status=$?
ac1cb8d3
VS
35605 grep -v '^ *+' conftest.er1 >conftest.err
35606 rm -f conftest.er1
35607 cat conftest.err >&5
a848cd7e
SC
35608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35609 (exit $ac_status); } &&
07158944 35610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35612 (eval $ac_try) 2>&5
35613 ac_status=$?
35614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35615 (exit $ac_status); }; } &&
35616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35618 (eval $ac_try) 2>&5
35619 ac_status=$?
35620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35621 (exit $ac_status); }; }; then
35622 eval "$as_ac_var=yes"
35623else
35624 echo "$as_me: failed program was:" >&5
35625sed 's/^/| /' conftest.$ac_ext >&5
35626
35627eval "$as_ac_var=no"
35628fi
ac1cb8d3
VS
35629rm -f conftest.err conftest.$ac_objext \
35630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35631fi
35632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35633echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35634if test `eval echo '${'$as_ac_var'}'` = yes; then
35635 cat >>confdefs.h <<_ACEOF
35636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35637_ACEOF
35638 cat >>confdefs.h <<\_ACEOF
35639#define HAVE_DLERROR 1
35640_ACEOF
35641
35642else
35643
35644 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35645echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35646if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35647 echo $ECHO_N "(cached) $ECHO_C" >&6
35648else
35649 ac_check_lib_save_LIBS=$LIBS
35650LIBS="-ldl $LIBS"
35651cat >conftest.$ac_ext <<_ACEOF
35652/* confdefs.h. */
35653_ACEOF
35654cat confdefs.h >>conftest.$ac_ext
35655cat >>conftest.$ac_ext <<_ACEOF
35656/* end confdefs.h. */
35657
35658/* Override any gcc2 internal prototype to avoid an error. */
35659#ifdef __cplusplus
35660extern "C"
35661#endif
35662/* We use char because int might match the return type of a gcc2
35663 builtin and then its argument prototype would still apply. */
35664char dlerror ();
35665int
35666main ()
35667{
35668dlerror ();
35669 ;
35670 return 0;
35671}
35672_ACEOF
35673rm -f conftest.$ac_objext conftest$ac_exeext
35674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35675 (eval $ac_link) 2>conftest.er1
a848cd7e 35676 ac_status=$?
ac1cb8d3
VS
35677 grep -v '^ *+' conftest.er1 >conftest.err
35678 rm -f conftest.er1
35679 cat conftest.err >&5
a848cd7e
SC
35680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681 (exit $ac_status); } &&
07158944 35682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35684 (eval $ac_try) 2>&5
35685 ac_status=$?
35686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687 (exit $ac_status); }; } &&
35688 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35690 (eval $ac_try) 2>&5
35691 ac_status=$?
35692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35693 (exit $ac_status); }; }; then
35694 ac_cv_lib_dl_dlerror=yes
35695else
35696 echo "$as_me: failed program was:" >&5
35697sed 's/^/| /' conftest.$ac_ext >&5
35698
35699ac_cv_lib_dl_dlerror=no
35700fi
ac1cb8d3
VS
35701rm -f conftest.err conftest.$ac_objext \
35702 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35703LIBS=$ac_check_lib_save_LIBS
35704fi
35705echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35706echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35707if test $ac_cv_lib_dl_dlerror = yes; then
35708 cat >>confdefs.h <<\_ACEOF
35709#define HAVE_DLERROR 1
35710_ACEOF
35711
35712fi
35713
35714
35715
35716fi
35717done
35718
35719 fi
35720 fi
35721
35722 if test "$HAVE_DL_FUNCS" = 0; then
35723 if test "$HAVE_SHL_FUNCS" = 0; then
35724 if test "$USE_UNIX" = 1; then
35725 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35726echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35727 wxUSE_DYNAMIC_LOADER=no
35728 wxUSE_DYNLIB_CLASS=no
35729 else
35730 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35731echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35732 fi
35733 fi
35734 fi
35735 fi
35736fi
35737
35738if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35739 cat >>confdefs.h <<\_ACEOF
35740#define wxUSE_DYNAMIC_LOADER 1
35741_ACEOF
35742
35743fi
35744if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35745 cat >>confdefs.h <<\_ACEOF
35746#define wxUSE_DYNLIB_CLASS 1
35747_ACEOF
35748
35749fi
35750
35751
35752
35753if test "$wxUSE_PLUGINS" = "yes" ; then
35754 if test "$wxUSE_SHARED" = "no" ; then
35755 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35756echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35757 wxUSE_PLUGINS=no
35758 fi
35759 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35760 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35761echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35762 wxUSE_PLUGINS=no
35763 fi
35764 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35765 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35766echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35767 wxUSE_PLUGINS=no
35768 fi
35769 if test "$wxUSE_PLUGINS" = "yes" ; then
35770 cat >>confdefs.h <<\_ACEOF
35771#define wxUSE_PLUGINS 1
35772_ACEOF
35773
35774 fi
35775fi
35776
35777
35778if test "$wxUSE_STL" = "yes"; then
35779 cat >>confdefs.h <<\_ACEOF
35780#define wxUSE_STL 1
35781_ACEOF
35782
35783fi
35784
35785if test "$wxUSE_APPLE_IEEE" = "yes"; then
35786 cat >>confdefs.h <<\_ACEOF
35787#define wxUSE_APPLE_IEEE 1
35788_ACEOF
35789
35790fi
35791
35792if test "$wxUSE_TIMER" = "yes"; then
35793 cat >>confdefs.h <<\_ACEOF
35794#define wxUSE_TIMER 1
35795_ACEOF
35796
35797fi
35798
35799WITH_PLUGIN_SDL=0
35800if test "$wxUSE_SOUND" = "yes"; then
35801 if test "$USE_UNIX" = "1" ; then
35802
35803for ac_header in sys/soundcard.h
35804do
35805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35806if eval "test \"\${$as_ac_Header+set}\" = set"; then
35807 echo "$as_me:$LINENO: checking for $ac_header" >&5
35808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35809if eval "test \"\${$as_ac_Header+set}\" = set"; then
35810 echo $ECHO_N "(cached) $ECHO_C" >&6
35811fi
35812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35814else
35815 # Is the header compilable?
35816echo "$as_me:$LINENO: checking $ac_header usability" >&5
35817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35818cat >conftest.$ac_ext <<_ACEOF
35819/* confdefs.h. */
35820_ACEOF
35821cat confdefs.h >>conftest.$ac_ext
35822cat >>conftest.$ac_ext <<_ACEOF
35823/* end confdefs.h. */
35824$ac_includes_default
35825#include <$ac_header>
35826_ACEOF
35827rm -f conftest.$ac_objext
35828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35829 (eval $ac_compile) 2>conftest.er1
a848cd7e 35830 ac_status=$?
ac1cb8d3
VS
35831 grep -v '^ *+' conftest.er1 >conftest.err
35832 rm -f conftest.er1
35833 cat conftest.err >&5
a848cd7e
SC
35834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835 (exit $ac_status); } &&
07158944 35836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35838 (eval $ac_try) 2>&5
35839 ac_status=$?
35840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35841 (exit $ac_status); }; } &&
35842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35844 (eval $ac_try) 2>&5
35845 ac_status=$?
35846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847 (exit $ac_status); }; }; then
35848 ac_header_compiler=yes
35849else
35850 echo "$as_me: failed program was:" >&5
35851sed 's/^/| /' conftest.$ac_ext >&5
35852
35853ac_header_compiler=no
35854fi
ac1cb8d3 35855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35856echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35857echo "${ECHO_T}$ac_header_compiler" >&6
35858
35859# Is the header present?
35860echo "$as_me:$LINENO: checking $ac_header presence" >&5
35861echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35862cat >conftest.$ac_ext <<_ACEOF
35863/* confdefs.h. */
35864_ACEOF
35865cat confdefs.h >>conftest.$ac_ext
35866cat >>conftest.$ac_ext <<_ACEOF
35867/* end confdefs.h. */
35868#include <$ac_header>
35869_ACEOF
35870if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35872 ac_status=$?
35873 grep -v '^ *+' conftest.er1 >conftest.err
35874 rm -f conftest.er1
35875 cat conftest.err >&5
35876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35877 (exit $ac_status); } >/dev/null; then
35878 if test -s conftest.err; then
35879 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35881 else
35882 ac_cpp_err=
35883 fi
35884else
35885 ac_cpp_err=yes
35886fi
35887if test -z "$ac_cpp_err"; then
35888 ac_header_preproc=yes
35889else
35890 echo "$as_me: failed program was:" >&5
35891sed 's/^/| /' conftest.$ac_ext >&5
35892
35893 ac_header_preproc=no
35894fi
35895rm -f conftest.err conftest.$ac_ext
35896echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35897echo "${ECHO_T}$ac_header_preproc" >&6
35898
35899# So? What about this header?
ac1cb8d3
VS
35900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35901 yes:no: )
a848cd7e
SC
35902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35903echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35905echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35906 ac_header_preproc=yes
a848cd7e 35907 ;;
ac1cb8d3 35908 no:yes:* )
a848cd7e
SC
35909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35910echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35912echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35914echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35916echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35920echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35921 (
35922 cat <<\_ASBOX
ac1cb8d3
VS
35923## ----------------------------------------- ##
35924## Report this to wx-dev@lists.wxwidgets.org ##
35925## ----------------------------------------- ##
a848cd7e
SC
35926_ASBOX
35927 ) |
35928 sed "s/^/$as_me: WARNING: /" >&2
35929 ;;
35930esac
35931echo "$as_me:$LINENO: checking for $ac_header" >&5
35932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35933if eval "test \"\${$as_ac_Header+set}\" = set"; then
35934 echo $ECHO_N "(cached) $ECHO_C" >&6
35935else
ac1cb8d3 35936 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35937fi
35938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35940
35941fi
35942if test `eval echo '${'$as_ac_Header'}'` = yes; then
35943 cat >>confdefs.h <<_ACEOF
35944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35945_ACEOF
35946
35947fi
35948
35949done
35950
35951
35952 if test "$wxUSE_LIBSDL" != "no"; then
35953
35954# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35955if test "${with_sdl_prefix+set}" = set; then
35956 withval="$with_sdl_prefix"
35957 sdl_prefix="$withval"
35958else
35959 sdl_prefix=""
35960fi;
35961
35962# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
35963if test "${with_sdl_exec_prefix+set}" = set; then
35964 withval="$with_sdl_exec_prefix"
35965 sdl_exec_prefix="$withval"
35966else
35967 sdl_exec_prefix=""
35968fi;
35969# Check whether --enable-sdltest or --disable-sdltest was given.
35970if test "${enable_sdltest+set}" = set; then
35971 enableval="$enable_sdltest"
35972
35973else
35974 enable_sdltest=yes
35975fi;
35976
35977 if test x$sdl_exec_prefix != x ; then
35978 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
35979 if test x${SDL_CONFIG+set} != xset ; then
35980 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
35981 fi
35982 fi
35983 if test x$sdl_prefix != x ; then
35984 sdl_args="$sdl_args --prefix=$sdl_prefix"
35985 if test x${SDL_CONFIG+set} != xset ; then
35986 SDL_CONFIG=$sdl_prefix/bin/sdl-config
35987 fi
35988 fi
35989
35990
35991 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
35992 # Extract the first word of "sdl-config", so it can be a program name with args.
35993set dummy sdl-config; ac_word=$2
35994echo "$as_me:$LINENO: checking for $ac_word" >&5
35995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35996if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
35997 echo $ECHO_N "(cached) $ECHO_C" >&6
35998else
35999 case $SDL_CONFIG in
36000 [\\/]* | ?:[\\/]*)
36001 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36002 ;;
36003 *)
36004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36005for as_dir in $PATH
36006do
36007 IFS=$as_save_IFS
36008 test -z "$as_dir" && as_dir=.
36009 for ac_exec_ext in '' $ac_executable_extensions; do
36010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36011 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36013 break 2
36014 fi
36015done
36016done
36017
36018 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36019 ;;
36020esac
36021fi
36022SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36023
36024if test -n "$SDL_CONFIG"; then
36025 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36026echo "${ECHO_T}$SDL_CONFIG" >&6
36027else
36028 echo "$as_me:$LINENO: result: no" >&5
36029echo "${ECHO_T}no" >&6
36030fi
36031
36032 min_sdl_version=1.2.0
36033 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36034echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36035 no_sdl=""
36036 if test "$SDL_CONFIG" = "no" ; then
36037 no_sdl=yes
36038 else
36039 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36040 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36041
36042 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36044 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36045 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36046 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36047 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36048 if test "x$enable_sdltest" = "xyes" ; then
36049 ac_save_CFLAGS="$CFLAGS"
94acd38e 36050 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36051 ac_save_LIBS="$LIBS"
36052 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36053 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36054 LIBS="$LIBS $SDL_LIBS"
36055 rm -f conf.sdltest
36056 if test "$cross_compiling" = yes; then
36057 echo $ac_n "cross compiling; assumed OK... $ac_c"
36058else
36059 cat >conftest.$ac_ext <<_ACEOF
36060/* confdefs.h. */
36061_ACEOF
36062cat confdefs.h >>conftest.$ac_ext
36063cat >>conftest.$ac_ext <<_ACEOF
36064/* end confdefs.h. */
36065
36066#include <stdio.h>
36067#include <stdlib.h>
36068#include <string.h>
36069#include "SDL.h"
36070
36071char*
36072my_strdup (char *str)
36073{
36074 char *new_str;
36075
36076 if (str)
36077 {
36078 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36079 strcpy (new_str, str);
36080 }
36081 else
36082 new_str = NULL;
36083
36084 return new_str;
36085}
36086
36087int main (int argc, char *argv[])
36088{
36089 int major, minor, micro;
36090 char *tmp_version;
36091
36092 /* This hangs on some systems (?)
36093 system ("touch conf.sdltest");
36094 */
36095 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36096
36097 /* HP/UX 9 (%@#!) writes to sscanf strings */
36098 tmp_version = my_strdup("$min_sdl_version");
36099 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36100 printf("%s, bad version string\n", "$min_sdl_version");
36101 exit(1);
36102 }
36103
36104 if (($sdl_major_version > major) ||
36105 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36106 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36107 {
36108 return 0;
36109 }
36110 else
36111 {
36112 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36113 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36114 printf("*** best to upgrade to the required version.\n");
36115 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36116 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36117 printf("*** config.cache before re-running configure\n");
36118 return 1;
36119 }
36120}
36121
36122
36123_ACEOF
36124rm -f conftest$ac_exeext
36125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36126 (eval $ac_link) 2>&5
36127 ac_status=$?
36128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36131 (eval $ac_try) 2>&5
36132 ac_status=$?
36133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36134 (exit $ac_status); }; }; then
36135 :
36136else
36137 echo "$as_me: program exited with status $ac_status" >&5
36138echo "$as_me: failed program was:" >&5
36139sed 's/^/| /' conftest.$ac_ext >&5
36140
36141( exit $ac_status )
36142no_sdl=yes
36143fi
ac1cb8d3 36144rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36145fi
36146 CFLAGS="$ac_save_CFLAGS"
94acd38e 36147 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36148 LIBS="$ac_save_LIBS"
36149 fi
36150 fi
36151 if test "x$no_sdl" = x ; then
36152 echo "$as_me:$LINENO: result: yes" >&5
36153echo "${ECHO_T}yes" >&6
36154
36155 EXTRALIBS_SDL="$SDL_LIBS"
36156 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36157 cat >>confdefs.h <<\_ACEOF
36158#define wxUSE_LIBSDL 1
36159_ACEOF
36160
36161
36162 else
36163 echo "$as_me:$LINENO: result: no" >&5
36164echo "${ECHO_T}no" >&6
36165 if test "$SDL_CONFIG" = "no" ; then
36166 echo "*** The sdl-config script installed by SDL could not be found"
36167 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36168 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36169 echo "*** full path to sdl-config."
36170 else
36171 if test -f conf.sdltest ; then
36172 :
36173 else
36174 echo "*** Could not run SDL test program, checking why..."
36175 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36176 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36177 LIBS="$LIBS $SDL_LIBS"
36178 cat >conftest.$ac_ext <<_ACEOF
36179/* confdefs.h. */
36180_ACEOF
36181cat confdefs.h >>conftest.$ac_ext
36182cat >>conftest.$ac_ext <<_ACEOF
36183/* end confdefs.h. */
36184
36185#include <stdio.h>
36186#include "SDL.h"
36187
36188int main(int argc, char *argv[])
36189{ return 0; }
36190#undef main
36191#define main K_and_R_C_main
36192
36193int
36194main ()
36195{
36196 return 0;
36197 ;
36198 return 0;
36199}
36200_ACEOF
36201rm -f conftest.$ac_objext conftest$ac_exeext
36202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36203 (eval $ac_link) 2>conftest.er1
a848cd7e 36204 ac_status=$?
ac1cb8d3
VS
36205 grep -v '^ *+' conftest.er1 >conftest.err
36206 rm -f conftest.er1
36207 cat conftest.err >&5
a848cd7e
SC
36208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36209 (exit $ac_status); } &&
07158944 36210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36212 (eval $ac_try) 2>&5
36213 ac_status=$?
36214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36215 (exit $ac_status); }; } &&
36216 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36218 (eval $ac_try) 2>&5
36219 ac_status=$?
36220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36221 (exit $ac_status); }; }; then
36222 echo "*** The test program compiled, but did not run. This usually means"
36223 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36224 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36225 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36226 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36227 echo "*** is required on your system"
36228 echo "***"
36229 echo "*** If you have an old version installed, it is best to remove it, although"
36230 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36231else
36232 echo "$as_me: failed program was:" >&5
36233sed 's/^/| /' conftest.$ac_ext >&5
36234
36235 echo "*** The test program failed to compile or link. See the file config.log for the"
36236 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36237 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36238 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36239fi
ac1cb8d3
VS
36240rm -f conftest.err conftest.$ac_objext \
36241 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36242 CFLAGS="$ac_save_CFLAGS"
94acd38e 36243 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36244 LIBS="$ac_save_LIBS"
36245 fi
36246 fi
36247 SDL_CFLAGS=""
36248 SDL_LIBS=""
36249 wxUSE_LIBSDL="no"
36250 fi
36251
36252
36253 rm -f conf.sdltest
36254
36255 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36256 WITH_PLUGIN_SDL=1
36257 fi
36258 fi
36259 fi
36260
36261 cat >>confdefs.h <<\_ACEOF
36262#define wxUSE_SOUND 1
36263_ACEOF
36264
36265 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36266fi
36267
d1c38808
VZ
36268if test "$WXGTK20" = 1; then
36269 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36270 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36271
36272
36273 succeeded=no
36274
36275 if test -z "$PKG_CONFIG"; then
36276 # Extract the first word of "pkg-config", so it can be a program name with args.
36277set dummy pkg-config; ac_word=$2
36278echo "$as_me:$LINENO: checking for $ac_word" >&5
36279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36280if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36281 echo $ECHO_N "(cached) $ECHO_C" >&6
36282else
36283 case $PKG_CONFIG in
36284 [\\/]* | ?:[\\/]*)
36285 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36286 ;;
36287 *)
36288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36289for as_dir in $PATH
36290do
36291 IFS=$as_save_IFS
36292 test -z "$as_dir" && as_dir=.
36293 for ac_exec_ext in '' $ac_executable_extensions; do
36294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36295 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36297 break 2
36298 fi
36299done
36300done
36301
36302 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36303 ;;
36304esac
36305fi
36306PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36307
36308if test -n "$PKG_CONFIG"; then
36309 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36310echo "${ECHO_T}$PKG_CONFIG" >&6
36311else
36312 echo "$as_me:$LINENO: result: no" >&5
36313echo "${ECHO_T}no" >&6
36314fi
36315
36316 fi
36317
36318 if test "$PKG_CONFIG" = "no" ; then
36319 echo "*** The pkg-config script could not be found. Make sure it is"
36320 echo "*** in your path, or set the PKG_CONFIG environment variable"
36321 echo "*** to the full path to pkg-config."
36322 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36323 else
36324 PKG_CONFIG_MIN_VERSION=0.9.0
36325 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36326 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36327echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36328
ffa762ff 36329 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36330 echo "$as_me:$LINENO: result: yes" >&5
36331echo "${ECHO_T}yes" >&6
36332 succeeded=yes
36333
36334 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36335echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36336 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36337 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36338echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36339
36340 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36341echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36342 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36343 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36344echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36345 else
36346 LIBGNOMEPRINTUI_CFLAGS=""
36347 LIBGNOMEPRINTUI_LIBS=""
36348 ## If we have a custom action on failure, don't print errors, but
36349 ## do set a variable so people can do so.
ffa762ff 36350 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36351
36352 fi
36353
36354
36355
36356 else
36357 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36358 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36359 fi
36360 fi
36361
36362 if test $succeeded = yes; then
36363
d1c38808
VZ
36364 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36365 cat >>confdefs.h <<\_ACEOF
36366#define wxUSE_LIBGNOMEPRINT 1
36367_ACEOF
36368
36369
36370 else
36371
36372 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36373echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36374 wxUSE_LIBGNOMEPRINT="no"
36375
36376
36377 fi
36378
36379 fi
36380 fi
36381fi
36382
36383
a848cd7e
SC
36384if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36385 cat >>confdefs.h <<\_ACEOF
36386#define wxUSE_CMDLINE_PARSER 1
36387_ACEOF
36388
36389fi
36390
36391if test "$wxUSE_STOPWATCH" = "yes"; then
36392 cat >>confdefs.h <<\_ACEOF
36393#define wxUSE_STOPWATCH 1
36394_ACEOF
36395
36396fi
36397
36398if test "$wxUSE_DATETIME" = "yes"; then
36399 cat >>confdefs.h <<\_ACEOF
36400#define wxUSE_DATETIME 1
36401_ACEOF
36402
36403fi
36404
36405if test "$wxUSE_FILE" = "yes"; then
36406 cat >>confdefs.h <<\_ACEOF
36407#define wxUSE_FILE 1
36408_ACEOF
36409
36410fi
36411
36412if test "$wxUSE_FFILE" = "yes"; then
36413 cat >>confdefs.h <<\_ACEOF
36414#define wxUSE_FFILE 1
36415_ACEOF
36416
36417fi
36418
36419if test "$wxUSE_FILESYSTEM" = "yes"; then
36420 cat >>confdefs.h <<\_ACEOF
36421#define wxUSE_FILESYSTEM 1
36422_ACEOF
36423
36424fi
36425
36426if test "$wxUSE_FS_ZIP" = "yes"; then
36427 cat >>confdefs.h <<\_ACEOF
36428#define wxUSE_FS_ZIP 1
36429_ACEOF
36430
36431fi
36432
9e8e867f 36433if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36434 cat >>confdefs.h <<\_ACEOF
9e8e867f 36435#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36436_ACEOF
36437
36438fi
36439
36440if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36441 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36442 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36443echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36444 elif test "$wxUSE_ZLIB" = "no"; then
36445 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36446echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36447 else
36448 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36449#define wxUSE_ZIPSTREAM 1
36450_ACEOF
36451
81f90336 36452 fi
a848cd7e
SC
36453fi
36454
a848cd7e
SC
36455if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36456 cat >>confdefs.h <<\_ACEOF
36457#define wxUSE_ON_FATAL_EXCEPTION 1
36458_ACEOF
36459
36460fi
36461
eaff0f0d
VZ
36462if test "$wxUSE_STACKWALKER" = "yes"; then
36463 cat >>confdefs.h <<\_ACEOF
36464#define wxUSE_STACKWALKER 1
36465_ACEOF
36466
36467fi
36468
36b6448c
VZ
36469if test "$wxUSE_DEBUGREPORT" = "yes"; then
36470 cat >>confdefs.h <<\_ACEOF
36471#define wxUSE_DEBUGREPORT 1
36472_ACEOF
36473
36474fi
36475
a848cd7e
SC
36476if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36477 cat >>confdefs.h <<\_ACEOF
36478#define wxUSE_SNGLINST_CHECKER 1
36479_ACEOF
36480
36481fi
36482
36483if test "$wxUSE_BUSYINFO" = "yes"; then
36484 cat >>confdefs.h <<\_ACEOF
36485#define wxUSE_BUSYINFO 1
36486_ACEOF
36487
36488fi
36489
36490if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36491 cat >>confdefs.h <<\_ACEOF
36492#define wxUSE_STD_IOSTREAM 1
36493_ACEOF
36494
36495fi
36496
07158944
VZ
36497if test "$wxUSE_STDPATHS" = "yes"; then
36498 cat >>confdefs.h <<\_ACEOF
36499#define wxUSE_STDPATHS 1
36500_ACEOF
36501
36502fi
36503
a848cd7e
SC
36504if test "$wxUSE_TEXTBUFFER" = "yes"; then
36505 cat >>confdefs.h <<\_ACEOF
36506#define wxUSE_TEXTBUFFER 1
36507_ACEOF
36508
36509fi
36510
36511if test "$wxUSE_TEXTFILE" = "yes"; then
36512 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36513 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36514echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36515 else
36516 cat >>confdefs.h <<\_ACEOF
36517#define wxUSE_TEXTFILE 1
36518_ACEOF
36519
36520 fi
36521fi
36522
36523if test "$wxUSE_CONFIG" = "yes" ; then
36524 if test "$wxUSE_TEXTFILE" != "yes"; then
36525 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36526echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36527 else
36528 cat >>confdefs.h <<\_ACEOF
36529#define wxUSE_CONFIG 1
89be85c2
VS
36530_ACEOF
36531
36532 cat >>confdefs.h <<\_ACEOF
36533#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36534_ACEOF
36535
36536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36537 fi
36538fi
36539
36540if test "$wxUSE_INTL" = "yes" ; then
36541 if test "$wxUSE_FILE" != "yes"; then
36542 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36543echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36544 else
36545 cat >>confdefs.h <<\_ACEOF
36546#define wxUSE_INTL 1
36547_ACEOF
36548
36549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36550 GUIDIST="$GUIDIST INTL_DIST"
36551 fi
36552fi
36553
36554if test "$wxUSE_LOG" = "yes"; then
36555 cat >>confdefs.h <<\_ACEOF
36556#define wxUSE_LOG 1
36557_ACEOF
36558
36559
36560 if test "$wxUSE_LOGGUI" = "yes"; then
36561 cat >>confdefs.h <<\_ACEOF
36562#define wxUSE_LOGGUI 1
36563_ACEOF
36564
36565 fi
36566
36567 if test "$wxUSE_LOGWINDOW" = "yes"; then
36568 cat >>confdefs.h <<\_ACEOF
36569#define wxUSE_LOGWINDOW 1
36570_ACEOF
36571
36572 fi
36573
36574 if test "$wxUSE_LOGDIALOG" = "yes"; then
36575 cat >>confdefs.h <<\_ACEOF
36576#define wxUSE_LOG_DIALOG 1
36577_ACEOF
36578
36579 fi
0b78747f
MW
36580
36581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
36582fi
36583
36584if test "$wxUSE_LONGLONG" = "yes"; then
36585 cat >>confdefs.h <<\_ACEOF
36586#define wxUSE_LONGLONG 1
36587_ACEOF
36588
36589fi
36590
36591if test "$wxUSE_GEOMETRY" = "yes"; then
36592 cat >>confdefs.h <<\_ACEOF
36593#define wxUSE_GEOMETRY 1
36594_ACEOF
36595
36596fi
36597
a848cd7e
SC
36598if test "$wxUSE_STREAMS" = "yes" ; then
36599 cat >>confdefs.h <<\_ACEOF
36600#define wxUSE_STREAMS 1
36601_ACEOF
36602
36603fi
36604
36605
36606if test "$wxUSE_DATETIME" = "yes"; then
36607
36608for ac_func in strptime
36609do
36610as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36611echo "$as_me:$LINENO: checking for $ac_func" >&5
36612echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36613if eval "test \"\${$as_ac_var+set}\" = set"; then
36614 echo $ECHO_N "(cached) $ECHO_C" >&6
36615else
36616 cat >conftest.$ac_ext <<_ACEOF
36617/* confdefs.h. */
36618_ACEOF
36619cat confdefs.h >>conftest.$ac_ext
36620cat >>conftest.$ac_ext <<_ACEOF
36621/* end confdefs.h. */
ac1cb8d3
VS
36622/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36624#define $ac_func innocuous_$ac_func
36625
a848cd7e
SC
36626/* System header to define __stub macros and hopefully few prototypes,
36627 which can conflict with char $ac_func (); below.
36628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36629 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36630
a848cd7e
SC
36631#ifdef __STDC__
36632# include <limits.h>
36633#else
36634# include <assert.h>
36635#endif
ac1cb8d3
VS
36636
36637#undef $ac_func
36638
a848cd7e
SC
36639/* Override any gcc2 internal prototype to avoid an error. */
36640#ifdef __cplusplus
36641extern "C"
36642{
36643#endif
36644/* We use char because int might match the return type of a gcc2
36645 builtin and then its argument prototype would still apply. */
36646char $ac_func ();
36647/* The GNU C library defines this for functions which it implements
36648 to always fail with ENOSYS. Some functions are actually named
36649 something starting with __ and the normal name is an alias. */
36650#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36651choke me
36652#else
36653char (*f) () = $ac_func;
36654#endif
36655#ifdef __cplusplus
36656}
36657#endif
36658
36659int
36660main ()
36661{
36662return f != $ac_func;
36663 ;
36664 return 0;
36665}
36666_ACEOF
36667rm -f conftest.$ac_objext conftest$ac_exeext
36668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36669 (eval $ac_link) 2>conftest.er1
a848cd7e 36670 ac_status=$?
ac1cb8d3
VS
36671 grep -v '^ *+' conftest.er1 >conftest.err
36672 rm -f conftest.er1
36673 cat conftest.err >&5
a848cd7e
SC
36674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675 (exit $ac_status); } &&
07158944 36676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36678 (eval $ac_try) 2>&5
36679 ac_status=$?
36680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36681 (exit $ac_status); }; } &&
36682 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36684 (eval $ac_try) 2>&5
36685 ac_status=$?
36686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687 (exit $ac_status); }; }; then
36688 eval "$as_ac_var=yes"
36689else
36690 echo "$as_me: failed program was:" >&5
36691sed 's/^/| /' conftest.$ac_ext >&5
36692
36693eval "$as_ac_var=no"
36694fi
ac1cb8d3
VS
36695rm -f conftest.err conftest.$ac_objext \
36696 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36697fi
36698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36699echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36700if test `eval echo '${'$as_ac_var'}'` = yes; then
36701 cat >>confdefs.h <<_ACEOF
36702#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36703_ACEOF
36704
36705fi
36706done
36707
36708
36709 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36710echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36711if test "${wx_cv_var_timezone+set}" = set; then
36712 echo $ECHO_N "(cached) $ECHO_C" >&6
36713else
36714
36715 cat >conftest.$ac_ext <<_ACEOF
36716/* confdefs.h. */
36717_ACEOF
36718cat confdefs.h >>conftest.$ac_ext
36719cat >>conftest.$ac_ext <<_ACEOF
36720/* end confdefs.h. */
36721
36722 #include <time.h>
36723
36724int
36725main ()
36726{
36727
36728 int tz;
36729 tz = timezone;
36730
36731 ;
36732 return 0;
36733}
36734_ACEOF
36735rm -f conftest.$ac_objext
36736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36737 (eval $ac_compile) 2>conftest.er1
a848cd7e 36738 ac_status=$?
ac1cb8d3
VS
36739 grep -v '^ *+' conftest.er1 >conftest.err
36740 rm -f conftest.er1
36741 cat conftest.err >&5
a848cd7e
SC
36742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36743 (exit $ac_status); } &&
07158944 36744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36746 (eval $ac_try) 2>&5
36747 ac_status=$?
36748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749 (exit $ac_status); }; } &&
36750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36752 (eval $ac_try) 2>&5
36753 ac_status=$?
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); }; }; then
36756
36757 wx_cv_var_timezone=timezone
36758
36759else
36760 echo "$as_me: failed program was:" >&5
36761sed 's/^/| /' conftest.$ac_ext >&5
36762
36763
36764 cat >conftest.$ac_ext <<_ACEOF
36765/* confdefs.h. */
36766_ACEOF
36767cat confdefs.h >>conftest.$ac_ext
36768cat >>conftest.$ac_ext <<_ACEOF
36769/* end confdefs.h. */
36770
36771 #include <time.h>
36772
36773int
36774main ()
36775{
36776
36777 int tz;
36778 tz = _timezone;
36779
36780 ;
36781 return 0;
36782}
36783_ACEOF
36784rm -f conftest.$ac_objext
36785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36786 (eval $ac_compile) 2>conftest.er1
a848cd7e 36787 ac_status=$?
ac1cb8d3
VS
36788 grep -v '^ *+' conftest.er1 >conftest.err
36789 rm -f conftest.er1
36790 cat conftest.err >&5
a848cd7e
SC
36791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36792 (exit $ac_status); } &&
07158944 36793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36795 (eval $ac_try) 2>&5
36796 ac_status=$?
36797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36798 (exit $ac_status); }; } &&
36799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36801 (eval $ac_try) 2>&5
36802 ac_status=$?
36803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36804 (exit $ac_status); }; }; then
36805
36806 wx_cv_var_timezone=_timezone
36807
36808else
36809 echo "$as_me: failed program was:" >&5
36810sed 's/^/| /' conftest.$ac_ext >&5
36811
36812
36813 cat >conftest.$ac_ext <<_ACEOF
36814/* confdefs.h. */
36815_ACEOF
36816cat confdefs.h >>conftest.$ac_ext
36817cat >>conftest.$ac_ext <<_ACEOF
36818/* end confdefs.h. */
36819
36820 #include <time.h>
36821
36822int
36823main ()
36824{
36825
36826 int tz;
36827 tz = __timezone;
36828
36829 ;
36830 return 0;
36831}
36832_ACEOF
36833rm -f conftest.$ac_objext
36834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36835 (eval $ac_compile) 2>conftest.er1
a848cd7e 36836 ac_status=$?
ac1cb8d3
VS
36837 grep -v '^ *+' conftest.er1 >conftest.err
36838 rm -f conftest.er1
36839 cat conftest.err >&5
a848cd7e
SC
36840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36841 (exit $ac_status); } &&
07158944 36842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36844 (eval $ac_try) 2>&5
36845 ac_status=$?
36846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36847 (exit $ac_status); }; } &&
36848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36850 (eval $ac_try) 2>&5
36851 ac_status=$?
36852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853 (exit $ac_status); }; }; then
36854
36855 wx_cv_var_timezone=__timezone
36856
36857else
36858 echo "$as_me: failed program was:" >&5
36859sed 's/^/| /' conftest.$ac_ext >&5
36860
36861
36862 if test "$USE_DOS" = 0 ; then
36863 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
36864echo "$as_me: WARNING: no timezone variable" >&2;}
36865 fi
36866
36867
36868fi
ac1cb8d3 36869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36870
36871
36872fi
ac1cb8d3 36873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36874
36875
36876fi
ac1cb8d3 36877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36878
36879
36880fi
36881echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
36882echo "${ECHO_T}$wx_cv_var_timezone" >&6
36883
36884 if test "x$wx_cv_var_timezone" != x ; then
36885 cat >>confdefs.h <<_ACEOF
36886#define WX_TIMEZONE $wx_cv_var_timezone
36887_ACEOF
36888
36889 fi
36890
36891
36892for ac_func in localtime
36893do
36894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36895echo "$as_me:$LINENO: checking for $ac_func" >&5
36896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36897if eval "test \"\${$as_ac_var+set}\" = set"; then
36898 echo $ECHO_N "(cached) $ECHO_C" >&6
36899else
36900 cat >conftest.$ac_ext <<_ACEOF
36901/* confdefs.h. */
36902_ACEOF
36903cat confdefs.h >>conftest.$ac_ext
36904cat >>conftest.$ac_ext <<_ACEOF
36905/* end confdefs.h. */
ac1cb8d3
VS
36906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36908#define $ac_func innocuous_$ac_func
36909
a848cd7e
SC
36910/* System header to define __stub macros and hopefully few prototypes,
36911 which can conflict with char $ac_func (); below.
36912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36913 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36914
a848cd7e
SC
36915#ifdef __STDC__
36916# include <limits.h>
36917#else
36918# include <assert.h>
36919#endif
ac1cb8d3
VS
36920
36921#undef $ac_func
36922
a848cd7e
SC
36923/* Override any gcc2 internal prototype to avoid an error. */
36924#ifdef __cplusplus
36925extern "C"
36926{
36927#endif
36928/* We use char because int might match the return type of a gcc2
36929 builtin and then its argument prototype would still apply. */
36930char $ac_func ();
36931/* The GNU C library defines this for functions which it implements
36932 to always fail with ENOSYS. Some functions are actually named
36933 something starting with __ and the normal name is an alias. */
36934#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36935choke me
36936#else
36937char (*f) () = $ac_func;
36938#endif
36939#ifdef __cplusplus
36940}
36941#endif
36942
36943int
36944main ()
36945{
36946return f != $ac_func;
36947 ;
36948 return 0;
36949}
36950_ACEOF
36951rm -f conftest.$ac_objext conftest$ac_exeext
36952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36953 (eval $ac_link) 2>conftest.er1
a848cd7e 36954 ac_status=$?
ac1cb8d3
VS
36955 grep -v '^ *+' conftest.er1 >conftest.err
36956 rm -f conftest.er1
36957 cat conftest.err >&5
a848cd7e
SC
36958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959 (exit $ac_status); } &&
07158944 36960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36962 (eval $ac_try) 2>&5
36963 ac_status=$?
36964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36965 (exit $ac_status); }; } &&
36966 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36968 (eval $ac_try) 2>&5
36969 ac_status=$?
36970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36971 (exit $ac_status); }; }; then
36972 eval "$as_ac_var=yes"
36973else
36974 echo "$as_me: failed program was:" >&5
36975sed 's/^/| /' conftest.$ac_ext >&5
36976
36977eval "$as_ac_var=no"
36978fi
ac1cb8d3
VS
36979rm -f conftest.err conftest.$ac_objext \
36980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36981fi
36982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36983echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36984if test `eval echo '${'$as_ac_var'}'` = yes; then
36985 cat >>confdefs.h <<_ACEOF
36986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36987_ACEOF
36988
36989fi
36990done
36991
36992
36993 if test "$ac_cv_func_localtime" = "yes"; then
36994 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
36995echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
36996if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
36997 echo $ECHO_N "(cached) $ECHO_C" >&6
36998else
36999
37000 cat >conftest.$ac_ext <<_ACEOF
37001/* confdefs.h. */
37002_ACEOF
37003cat confdefs.h >>conftest.$ac_ext
37004cat >>conftest.$ac_ext <<_ACEOF
37005/* end confdefs.h. */
37006
37007 #include <time.h>
37008
37009int
37010main ()
37011{
37012
37013 struct tm tm;
37014 tm.tm_gmtoff++;
37015
37016 ;
37017 return 0;
37018}
37019_ACEOF
37020rm -f conftest.$ac_objext
37021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37022 (eval $ac_compile) 2>conftest.er1
a848cd7e 37023 ac_status=$?
ac1cb8d3
VS
37024 grep -v '^ *+' conftest.er1 >conftest.err
37025 rm -f conftest.er1
37026 cat conftest.err >&5
a848cd7e
SC
37027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37028 (exit $ac_status); } &&
07158944 37029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37031 (eval $ac_try) 2>&5
37032 ac_status=$?
37033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37034 (exit $ac_status); }; } &&
37035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37037 (eval $ac_try) 2>&5
37038 ac_status=$?
37039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37040 (exit $ac_status); }; }; then
37041
37042 wx_cv_struct_tm_has_gmtoff=yes
37043
37044else
37045 echo "$as_me: failed program was:" >&5
37046sed 's/^/| /' conftest.$ac_ext >&5
37047
37048wx_cv_struct_tm_has_gmtoff=no
37049
37050fi
ac1cb8d3 37051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37052
37053fi
37054echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37055echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37056 fi
37057
37058 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37059 cat >>confdefs.h <<\_ACEOF
37060#define WX_GMTOFF_IN_TM 1
37061_ACEOF
37062
37063 fi
37064
37065
37066
37067for ac_func in gettimeofday ftime
37068do
37069as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37070echo "$as_me:$LINENO: checking for $ac_func" >&5
37071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37072if eval "test \"\${$as_ac_var+set}\" = set"; then
37073 echo $ECHO_N "(cached) $ECHO_C" >&6
37074else
37075 cat >conftest.$ac_ext <<_ACEOF
37076/* confdefs.h. */
37077_ACEOF
37078cat confdefs.h >>conftest.$ac_ext
37079cat >>conftest.$ac_ext <<_ACEOF
37080/* end confdefs.h. */
ac1cb8d3
VS
37081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37083#define $ac_func innocuous_$ac_func
37084
a848cd7e
SC
37085/* System header to define __stub macros and hopefully few prototypes,
37086 which can conflict with char $ac_func (); below.
37087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37088 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37089
a848cd7e
SC
37090#ifdef __STDC__
37091# include <limits.h>
37092#else
37093# include <assert.h>
37094#endif
ac1cb8d3
VS
37095
37096#undef $ac_func
37097
a848cd7e
SC
37098/* Override any gcc2 internal prototype to avoid an error. */
37099#ifdef __cplusplus
37100extern "C"
37101{
37102#endif
37103/* We use char because int might match the return type of a gcc2
37104 builtin and then its argument prototype would still apply. */
37105char $ac_func ();
37106/* The GNU C library defines this for functions which it implements
37107 to always fail with ENOSYS. Some functions are actually named
37108 something starting with __ and the normal name is an alias. */
37109#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37110choke me
37111#else
37112char (*f) () = $ac_func;
37113#endif
37114#ifdef __cplusplus
37115}
37116#endif
37117
37118int
37119main ()
37120{
37121return f != $ac_func;
37122 ;
37123 return 0;
37124}
37125_ACEOF
37126rm -f conftest.$ac_objext conftest$ac_exeext
37127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37128 (eval $ac_link) 2>conftest.er1
a848cd7e 37129 ac_status=$?
ac1cb8d3
VS
37130 grep -v '^ *+' conftest.er1 >conftest.err
37131 rm -f conftest.er1
37132 cat conftest.err >&5
a848cd7e
SC
37133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134 (exit $ac_status); } &&
07158944 37135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37137 (eval $ac_try) 2>&5
37138 ac_status=$?
37139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37140 (exit $ac_status); }; } &&
37141 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37143 (eval $ac_try) 2>&5
37144 ac_status=$?
37145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37146 (exit $ac_status); }; }; then
37147 eval "$as_ac_var=yes"
37148else
37149 echo "$as_me: failed program was:" >&5
37150sed 's/^/| /' conftest.$ac_ext >&5
37151
37152eval "$as_ac_var=no"
37153fi
ac1cb8d3
VS
37154rm -f conftest.err conftest.$ac_objext \
37155 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37156fi
37157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37159if test `eval echo '${'$as_ac_var'}'` = yes; then
37160 cat >>confdefs.h <<_ACEOF
37161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37162_ACEOF
37163 break
37164fi
37165done
37166
37167
37168 if test "$ac_cv_func_gettimeofday" = "yes"; then
37169 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37170echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37171if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37172 echo $ECHO_N "(cached) $ECHO_C" >&6
37173else
37174
37175
37176
37177 ac_ext=cc
37178ac_cpp='$CXXCPP $CPPFLAGS'
37179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37182
37183
37184 cat >conftest.$ac_ext <<_ACEOF
37185/* confdefs.h. */
37186_ACEOF
37187cat confdefs.h >>conftest.$ac_ext
37188cat >>conftest.$ac_ext <<_ACEOF
37189/* end confdefs.h. */
37190
37191 #include <sys/time.h>
37192 #include <unistd.h>
37193
37194int
37195main ()
37196{
37197
37198 struct timeval tv;
37199 gettimeofday(&tv, NULL);
37200
37201 ;
37202 return 0;
37203}
37204_ACEOF
37205rm -f conftest.$ac_objext
37206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37207 (eval $ac_compile) 2>conftest.er1
a848cd7e 37208 ac_status=$?
ac1cb8d3
VS
37209 grep -v '^ *+' conftest.er1 >conftest.err
37210 rm -f conftest.er1
37211 cat conftest.err >&5
a848cd7e
SC
37212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213 (exit $ac_status); } &&
07158944 37214 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37216 (eval $ac_try) 2>&5
37217 ac_status=$?
37218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219 (exit $ac_status); }; } &&
37220 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37222 (eval $ac_try) 2>&5
37223 ac_status=$?
37224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37225 (exit $ac_status); }; }; then
37226 wx_cv_func_gettimeofday_has_2_args=yes
37227else
37228 echo "$as_me: failed program was:" >&5
37229sed 's/^/| /' conftest.$ac_ext >&5
37230
37231cat >conftest.$ac_ext <<_ACEOF
37232/* confdefs.h. */
37233_ACEOF
37234cat confdefs.h >>conftest.$ac_ext
37235cat >>conftest.$ac_ext <<_ACEOF
37236/* end confdefs.h. */
37237
37238 #include <sys/time.h>
37239 #include <unistd.h>
37240
37241int
37242main ()
37243{
37244
37245 struct timeval tv;
37246 gettimeofday(&tv);
37247
37248 ;
37249 return 0;
37250}
37251_ACEOF
37252rm -f conftest.$ac_objext
37253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37254 (eval $ac_compile) 2>conftest.er1
a848cd7e 37255 ac_status=$?
ac1cb8d3
VS
37256 grep -v '^ *+' conftest.er1 >conftest.err
37257 rm -f conftest.er1
37258 cat conftest.err >&5
a848cd7e
SC
37259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37260 (exit $ac_status); } &&
07158944 37261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37263 (eval $ac_try) 2>&5
37264 ac_status=$?
37265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266 (exit $ac_status); }; } &&
37267 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37269 (eval $ac_try) 2>&5
37270 ac_status=$?
37271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37272 (exit $ac_status); }; }; then
37273 wx_cv_func_gettimeofday_has_2_args=no
37274else
37275 echo "$as_me: failed program was:" >&5
37276sed 's/^/| /' conftest.$ac_ext >&5
37277
37278
37279 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37280echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37281 wx_cv_func_gettimeofday_has_2_args=unknown
37282
37283
37284fi
ac1cb8d3 37285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37286
37287fi
ac1cb8d3 37288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37289 ac_ext=c
37290ac_cpp='$CPP $CPPFLAGS'
37291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37293ac_compiler_gnu=$ac_cv_c_compiler_gnu
37294
37295
37296fi
37297echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37298echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37299
37300 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37301 cat >>confdefs.h <<\_ACEOF
37302#define WX_GETTIMEOFDAY_NO_TZ 1
37303_ACEOF
37304
37305 fi
37306 fi
37307
37308 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37309fi
37310
37311
37312if test "$wxUSE_SOCKETS" = "yes"; then
37313 if test "$wxUSE_MGL" = "1"; then
37314 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37315echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37316 wxUSE_SOCKETS="no"
37317 fi
37318fi
37319
37320if test "$wxUSE_SOCKETS" = "yes"; then
37321 if test "$TOOLKIT" != "MSW"; then
37322 echo "$as_me:$LINENO: checking for socket" >&5
37323echo $ECHO_N "checking for socket... $ECHO_C" >&6
37324if test "${ac_cv_func_socket+set}" = set; then
37325 echo $ECHO_N "(cached) $ECHO_C" >&6
37326else
37327 cat >conftest.$ac_ext <<_ACEOF
37328/* confdefs.h. */
37329_ACEOF
37330cat confdefs.h >>conftest.$ac_ext
37331cat >>conftest.$ac_ext <<_ACEOF
37332/* end confdefs.h. */
ac1cb8d3
VS
37333/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37335#define socket innocuous_socket
37336
a848cd7e
SC
37337/* System header to define __stub macros and hopefully few prototypes,
37338 which can conflict with char socket (); below.
37339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37340 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37341
a848cd7e
SC
37342#ifdef __STDC__
37343# include <limits.h>
37344#else
37345# include <assert.h>
37346#endif
ac1cb8d3
VS
37347
37348#undef socket
37349
a848cd7e
SC
37350/* Override any gcc2 internal prototype to avoid an error. */
37351#ifdef __cplusplus
37352extern "C"
37353{
37354#endif
37355/* We use char because int might match the return type of a gcc2
37356 builtin and then its argument prototype would still apply. */
37357char socket ();
37358/* The GNU C library defines this for functions which it implements
37359 to always fail with ENOSYS. Some functions are actually named
37360 something starting with __ and the normal name is an alias. */
37361#if defined (__stub_socket) || defined (__stub___socket)
37362choke me
37363#else
37364char (*f) () = socket;
37365#endif
37366#ifdef __cplusplus
37367}
37368#endif
37369
37370int
37371main ()
37372{
37373return f != socket;
37374 ;
37375 return 0;
37376}
37377_ACEOF
37378rm -f conftest.$ac_objext conftest$ac_exeext
37379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37380 (eval $ac_link) 2>conftest.er1
a848cd7e 37381 ac_status=$?
ac1cb8d3
VS
37382 grep -v '^ *+' conftest.er1 >conftest.err
37383 rm -f conftest.er1
37384 cat conftest.err >&5
a848cd7e
SC
37385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37386 (exit $ac_status); } &&
07158944 37387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37389 (eval $ac_try) 2>&5
37390 ac_status=$?
37391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392 (exit $ac_status); }; } &&
37393 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37395 (eval $ac_try) 2>&5
37396 ac_status=$?
37397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37398 (exit $ac_status); }; }; then
37399 ac_cv_func_socket=yes
37400else
37401 echo "$as_me: failed program was:" >&5
37402sed 's/^/| /' conftest.$ac_ext >&5
37403
37404ac_cv_func_socket=no
37405fi
ac1cb8d3
VS
37406rm -f conftest.err conftest.$ac_objext \
37407 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37408fi
37409echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37410echo "${ECHO_T}$ac_cv_func_socket" >&6
37411if test $ac_cv_func_socket = yes; then
37412 :
37413else
37414
37415 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37416echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37417if test "${ac_cv_lib_socket_socket+set}" = set; then
37418 echo $ECHO_N "(cached) $ECHO_C" >&6
37419else
37420 ac_check_lib_save_LIBS=$LIBS
37421LIBS="-lsocket $LIBS"
37422cat >conftest.$ac_ext <<_ACEOF
37423/* confdefs.h. */
37424_ACEOF
37425cat confdefs.h >>conftest.$ac_ext
37426cat >>conftest.$ac_ext <<_ACEOF
37427/* end confdefs.h. */
37428
37429/* Override any gcc2 internal prototype to avoid an error. */
37430#ifdef __cplusplus
37431extern "C"
37432#endif
37433/* We use char because int might match the return type of a gcc2
37434 builtin and then its argument prototype would still apply. */
37435char socket ();
37436int
37437main ()
37438{
37439socket ();
37440 ;
37441 return 0;
37442}
37443_ACEOF
37444rm -f conftest.$ac_objext conftest$ac_exeext
37445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37446 (eval $ac_link) 2>conftest.er1
a848cd7e 37447 ac_status=$?
ac1cb8d3
VS
37448 grep -v '^ *+' conftest.er1 >conftest.err
37449 rm -f conftest.er1
37450 cat conftest.err >&5
a848cd7e
SC
37451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37452 (exit $ac_status); } &&
07158944 37453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37455 (eval $ac_try) 2>&5
37456 ac_status=$?
37457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37458 (exit $ac_status); }; } &&
37459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37461 (eval $ac_try) 2>&5
37462 ac_status=$?
37463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464 (exit $ac_status); }; }; then
37465 ac_cv_lib_socket_socket=yes
37466else
37467 echo "$as_me: failed program was:" >&5
37468sed 's/^/| /' conftest.$ac_ext >&5
37469
37470ac_cv_lib_socket_socket=no
37471fi
ac1cb8d3
VS
37472rm -f conftest.err conftest.$ac_objext \
37473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37474LIBS=$ac_check_lib_save_LIBS
37475fi
37476echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37477echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37478if test $ac_cv_lib_socket_socket = yes; then
37479 if test "$INET_LINK" != " -lsocket"; then
37480 INET_LINK="$INET_LINK -lsocket"
37481 fi
37482else
37483
37484 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37485echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37486 wxUSE_SOCKETS=no
37487
37488
37489fi
37490
37491
37492
37493fi
37494
37495 fi
37496fi
37497
37498if test "$wxUSE_SOCKETS" = "yes" ; then
37499 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37500 ac_ext=cc
37501ac_cpp='$CXXCPP $CPPFLAGS'
37502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37505
37506 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37507echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37508if test "${wx_cv_type_getsockname3+set}" = set; then
37509 echo $ECHO_N "(cached) $ECHO_C" >&6
37510else
37511
37512 cat >conftest.$ac_ext <<_ACEOF
37513/* confdefs.h. */
37514_ACEOF
37515cat confdefs.h >>conftest.$ac_ext
37516cat >>conftest.$ac_ext <<_ACEOF
37517/* end confdefs.h. */
37518
37519 #include <sys/types.h>
37520 #include <sys/socket.h>
37521
37522int
37523main ()
37524{
37525
37526 socklen_t len;
37527 getsockname(0, 0, &len);
37528
37529 ;
37530 return 0;
37531}
37532_ACEOF
37533rm -f conftest.$ac_objext
37534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37535 (eval $ac_compile) 2>conftest.er1
a848cd7e 37536 ac_status=$?
ac1cb8d3
VS
37537 grep -v '^ *+' conftest.er1 >conftest.err
37538 rm -f conftest.er1
37539 cat conftest.err >&5
a848cd7e
SC
37540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541 (exit $ac_status); } &&
07158944 37542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37544 (eval $ac_try) 2>&5
37545 ac_status=$?
37546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37547 (exit $ac_status); }; } &&
37548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37550 (eval $ac_try) 2>&5
37551 ac_status=$?
37552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37553 (exit $ac_status); }; }; then
37554 wx_cv_type_getsockname3=socklen_t
37555else
37556 echo "$as_me: failed program was:" >&5
37557sed 's/^/| /' conftest.$ac_ext >&5
37558
37559
37560 CFLAGS_OLD="$CFLAGS"
37561 if test "$GCC" = yes ; then
37562 CFLAGS="$CFLAGS -Werror"
37563 fi
37564
37565 cat >conftest.$ac_ext <<_ACEOF
37566/* confdefs.h. */
37567_ACEOF
37568cat confdefs.h >>conftest.$ac_ext
37569cat >>conftest.$ac_ext <<_ACEOF
37570/* end confdefs.h. */
37571
37572 #include <sys/types.h>
37573 #include <sys/socket.h>
37574
37575int
37576main ()
37577{
37578
37579 size_t len;
37580 getsockname(0, 0, &len);
37581
37582 ;
37583 return 0;
37584}
37585_ACEOF
37586rm -f conftest.$ac_objext
37587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37588 (eval $ac_compile) 2>conftest.er1
a848cd7e 37589 ac_status=$?
ac1cb8d3
VS
37590 grep -v '^ *+' conftest.er1 >conftest.err
37591 rm -f conftest.er1
37592 cat conftest.err >&5
a848cd7e
SC
37593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37594 (exit $ac_status); } &&
07158944 37595 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37597 (eval $ac_try) 2>&5
37598 ac_status=$?
37599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37600 (exit $ac_status); }; } &&
37601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37603 (eval $ac_try) 2>&5
37604 ac_status=$?
37605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37606 (exit $ac_status); }; }; then
37607 wx_cv_type_getsockname3=size_t
37608else
37609 echo "$as_me: failed program was:" >&5
37610sed 's/^/| /' conftest.$ac_ext >&5
37611
37612cat >conftest.$ac_ext <<_ACEOF
37613/* confdefs.h. */
37614_ACEOF
37615cat confdefs.h >>conftest.$ac_ext
37616cat >>conftest.$ac_ext <<_ACEOF
37617/* end confdefs.h. */
37618
37619 #include <sys/types.h>
37620 #include <sys/socket.h>
37621
37622int
37623main ()
37624{
37625
37626 int len;
37627 getsockname(0, 0, &len);
37628
37629 ;
37630 return 0;
37631}
37632_ACEOF
37633rm -f conftest.$ac_objext
37634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37635 (eval $ac_compile) 2>conftest.er1
a848cd7e 37636 ac_status=$?
ac1cb8d3
VS
37637 grep -v '^ *+' conftest.er1 >conftest.err
37638 rm -f conftest.er1
37639 cat conftest.err >&5
a848cd7e
SC
37640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37641 (exit $ac_status); } &&
07158944 37642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37644 (eval $ac_try) 2>&5
37645 ac_status=$?
37646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647 (exit $ac_status); }; } &&
37648 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37650 (eval $ac_try) 2>&5
37651 ac_status=$?
37652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37653 (exit $ac_status); }; }; then
37654 wx_cv_type_getsockname3=int
37655else
37656 echo "$as_me: failed program was:" >&5
37657sed 's/^/| /' conftest.$ac_ext >&5
37658
37659wx_cv_type_getsockname3=unknown
37660
37661fi
ac1cb8d3 37662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37663
37664fi
ac1cb8d3 37665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37666
37667 CFLAGS="$CFLAGS_OLD"
37668
37669
37670fi
ac1cb8d3 37671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37672
37673fi
37674echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37675echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37676
37677 if test "$wx_cv_type_getsockname3" = "unknown"; then
37678 wxUSE_SOCKETS=no
37679 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37680echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37681 else
37682 cat >>confdefs.h <<_ACEOF
37683#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37684_ACEOF
37685
37686 fi
37687 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37688echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37689if test "${wx_cv_type_getsockopt5+set}" = set; then
37690 echo $ECHO_N "(cached) $ECHO_C" >&6
37691else
37692
37693 cat >conftest.$ac_ext <<_ACEOF
37694/* confdefs.h. */
37695_ACEOF
37696cat confdefs.h >>conftest.$ac_ext
37697cat >>conftest.$ac_ext <<_ACEOF
37698/* end confdefs.h. */
37699
37700 #include <sys/types.h>
37701 #include <sys/socket.h>
37702
37703int
37704main ()
37705{
37706
37707 socklen_t len;
37708 getsockopt(0, 0, 0, 0, &len);
37709
37710 ;
37711 return 0;
37712}
37713_ACEOF
37714rm -f conftest.$ac_objext
37715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37716 (eval $ac_compile) 2>conftest.er1
37717 ac_status=$?
37718 grep -v '^ *+' conftest.er1 >conftest.err
37719 rm -f conftest.er1
37720 cat conftest.err >&5
37721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37722 (exit $ac_status); } &&
07158944 37723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37725 (eval $ac_try) 2>&5
37726 ac_status=$?
37727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37728 (exit $ac_status); }; } &&
37729 { ac_try='test -s conftest.$ac_objext'
37730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37731 (eval $ac_try) 2>&5
37732 ac_status=$?
37733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734 (exit $ac_status); }; }; then
37735 wx_cv_type_getsockopt5=socklen_t
37736else
37737 echo "$as_me: failed program was:" >&5
37738sed 's/^/| /' conftest.$ac_ext >&5
37739
37740
37741 CFLAGS_OLD="$CFLAGS"
37742 if test "$GCC" = yes ; then
37743 CFLAGS="$CFLAGS -Werror"
37744 fi
37745
37746 cat >conftest.$ac_ext <<_ACEOF
37747/* confdefs.h. */
37748_ACEOF
37749cat confdefs.h >>conftest.$ac_ext
37750cat >>conftest.$ac_ext <<_ACEOF
37751/* end confdefs.h. */
37752
37753 #include <sys/types.h>
37754 #include <sys/socket.h>
37755
37756int
37757main ()
37758{
37759
37760 size_t len;
37761 getsockopt(0, 0, 0, 0, &len);
37762
37763 ;
37764 return 0;
37765}
37766_ACEOF
37767rm -f conftest.$ac_objext
37768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37769 (eval $ac_compile) 2>conftest.er1
37770 ac_status=$?
37771 grep -v '^ *+' conftest.er1 >conftest.err
37772 rm -f conftest.er1
37773 cat conftest.err >&5
37774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775 (exit $ac_status); } &&
07158944 37776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37778 (eval $ac_try) 2>&5
37779 ac_status=$?
37780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37781 (exit $ac_status); }; } &&
37782 { ac_try='test -s conftest.$ac_objext'
37783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37784 (eval $ac_try) 2>&5
37785 ac_status=$?
37786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787 (exit $ac_status); }; }; then
37788 wx_cv_type_getsockopt5=size_t
37789else
37790 echo "$as_me: failed program was:" >&5
37791sed 's/^/| /' conftest.$ac_ext >&5
37792
37793cat >conftest.$ac_ext <<_ACEOF
37794/* confdefs.h. */
37795_ACEOF
37796cat confdefs.h >>conftest.$ac_ext
37797cat >>conftest.$ac_ext <<_ACEOF
37798/* end confdefs.h. */
37799
37800 #include <sys/types.h>
37801 #include <sys/socket.h>
37802
37803int
37804main ()
37805{
37806
37807 int len;
37808 getsockopt(0, 0, 0, 0, &len);
37809
37810 ;
37811 return 0;
37812}
37813_ACEOF
37814rm -f conftest.$ac_objext
37815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37816 (eval $ac_compile) 2>conftest.er1
37817 ac_status=$?
37818 grep -v '^ *+' conftest.er1 >conftest.err
37819 rm -f conftest.er1
37820 cat conftest.err >&5
37821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37822 (exit $ac_status); } &&
07158944 37823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37825 (eval $ac_try) 2>&5
37826 ac_status=$?
37827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37828 (exit $ac_status); }; } &&
37829 { ac_try='test -s conftest.$ac_objext'
37830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37831 (eval $ac_try) 2>&5
37832 ac_status=$?
37833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37834 (exit $ac_status); }; }; then
37835 wx_cv_type_getsockopt5=int
37836else
37837 echo "$as_me: failed program was:" >&5
37838sed 's/^/| /' conftest.$ac_ext >&5
37839
37840wx_cv_type_getsockopt5=unknown
37841
37842fi
37843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37844
37845fi
37846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37847
37848 CFLAGS="$CFLAGS_OLD"
37849
37850
37851fi
37852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37853
37854fi
37855echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
37856echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
37857
37858 if test "$wx_cv_type_getsockopt5" = "unknown"; then
37859 wxUSE_SOCKETS=no
37860 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37861echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37862 else
37863 cat >>confdefs.h <<_ACEOF
37864#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
37865_ACEOF
37866
37867 fi
4d4ff94c
VZ
37868 ac_ext=c
37869ac_cpp='$CPP $CPPFLAGS'
37870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37872ac_compiler_gnu=$ac_cv_c_compiler_gnu
37873
a848cd7e
SC
37874 fi
37875fi
37876
37877if test "$wxUSE_SOCKETS" = "yes" ; then
37878 cat >>confdefs.h <<\_ACEOF
37879#define wxUSE_SOCKETS 1
37880_ACEOF
37881
37882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
37883fi
37884
37885if test "$wxUSE_PROTOCOL" = "yes"; then
37886 if test "$wxUSE_SOCKETS" != "yes"; then
37887 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
37888echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
37889 wxUSE_PROTOCOL=no
37890 fi
37891fi
37892
37893if test "$wxUSE_PROTOCOL" = "yes"; then
37894 cat >>confdefs.h <<\_ACEOF
37895#define wxUSE_PROTOCOL 1
37896_ACEOF
37897
37898
37899 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
37900 cat >>confdefs.h <<\_ACEOF
37901#define wxUSE_PROTOCOL_HTTP 1
37902_ACEOF
37903
37904 fi
37905 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
37906 cat >>confdefs.h <<\_ACEOF
37907#define wxUSE_PROTOCOL_FTP 1
37908_ACEOF
37909
37910 fi
37911 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
37912 cat >>confdefs.h <<\_ACEOF
37913#define wxUSE_PROTOCOL_FILE 1
37914_ACEOF
37915
37916 fi
37917else
37918 if test "$wxUSE_FS_INET" = "yes"; then
37919 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
37920echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
37921 wxUSE_FS_INET="no"
37922 fi
37923fi
37924
37925if test "$wxUSE_URL" = "yes"; then
37926 if test "$wxUSE_PROTOCOL" != "yes"; then
37927 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
37928echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
37929 wxUSE_URL=no
37930 fi
37931 if test "$wxUSE_URL" = "yes"; then
37932 cat >>confdefs.h <<\_ACEOF
37933#define wxUSE_URL 1
37934_ACEOF
37935
37936 fi
37937fi
37938
37939if test "$wxUSE_FS_INET" = "yes"; then
37940 cat >>confdefs.h <<\_ACEOF
37941#define wxUSE_FS_INET 1
37942_ACEOF
37943
37944fi
37945
37946
37947if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 37948 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 37949
4cb1d3da 37950 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
37951
37952for ac_header in linux/joystick.h
37953do
37954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37955if eval "test \"\${$as_ac_Header+set}\" = set"; then
37956 echo "$as_me:$LINENO: checking for $ac_header" >&5
37957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37958if eval "test \"\${$as_ac_Header+set}\" = set"; then
37959 echo $ECHO_N "(cached) $ECHO_C" >&6
37960fi
37961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37962echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37963else
37964 # Is the header compilable?
37965echo "$as_me:$LINENO: checking $ac_header usability" >&5
37966echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37967cat >conftest.$ac_ext <<_ACEOF
37968/* confdefs.h. */
37969_ACEOF
37970cat confdefs.h >>conftest.$ac_ext
37971cat >>conftest.$ac_ext <<_ACEOF
37972/* end confdefs.h. */
37973$ac_includes_default
37974#include <$ac_header>
37975_ACEOF
37976rm -f conftest.$ac_objext
37977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37978 (eval $ac_compile) 2>conftest.er1
a848cd7e 37979 ac_status=$?
ac1cb8d3
VS
37980 grep -v '^ *+' conftest.er1 >conftest.err
37981 rm -f conftest.er1
37982 cat conftest.err >&5
a848cd7e
SC
37983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37984 (exit $ac_status); } &&
07158944 37985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37987 (eval $ac_try) 2>&5
37988 ac_status=$?
37989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37990 (exit $ac_status); }; } &&
37991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37993 (eval $ac_try) 2>&5
37994 ac_status=$?
37995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37996 (exit $ac_status); }; }; then
37997 ac_header_compiler=yes
37998else
37999 echo "$as_me: failed program was:" >&5
38000sed 's/^/| /' conftest.$ac_ext >&5
38001
38002ac_header_compiler=no
38003fi
ac1cb8d3 38004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38005echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38006echo "${ECHO_T}$ac_header_compiler" >&6
38007
38008# Is the header present?
38009echo "$as_me:$LINENO: checking $ac_header presence" >&5
38010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38011cat >conftest.$ac_ext <<_ACEOF
38012/* confdefs.h. */
38013_ACEOF
38014cat confdefs.h >>conftest.$ac_ext
38015cat >>conftest.$ac_ext <<_ACEOF
38016/* end confdefs.h. */
38017#include <$ac_header>
38018_ACEOF
38019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38021 ac_status=$?
38022 grep -v '^ *+' conftest.er1 >conftest.err
38023 rm -f conftest.er1
38024 cat conftest.err >&5
38025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38026 (exit $ac_status); } >/dev/null; then
38027 if test -s conftest.err; then
38028 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38030 else
38031 ac_cpp_err=
38032 fi
38033else
38034 ac_cpp_err=yes
38035fi
38036if test -z "$ac_cpp_err"; then
38037 ac_header_preproc=yes
38038else
38039 echo "$as_me: failed program was:" >&5
38040sed 's/^/| /' conftest.$ac_ext >&5
38041
38042 ac_header_preproc=no
38043fi
38044rm -f conftest.err conftest.$ac_ext
38045echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38046echo "${ECHO_T}$ac_header_preproc" >&6
38047
38048# So? What about this header?
ac1cb8d3
VS
38049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38050 yes:no: )
a848cd7e
SC
38051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38055 ac_header_preproc=yes
a848cd7e 38056 ;;
ac1cb8d3 38057 no:yes:* )
a848cd7e
SC
38058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38061echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38065echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38070 (
38071 cat <<\_ASBOX
ac1cb8d3
VS
38072## ----------------------------------------- ##
38073## Report this to wx-dev@lists.wxwidgets.org ##
38074## ----------------------------------------- ##
a848cd7e
SC
38075_ASBOX
38076 ) |
38077 sed "s/^/$as_me: WARNING: /" >&2
38078 ;;
38079esac
38080echo "$as_me:$LINENO: checking for $ac_header" >&5
38081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38082if eval "test \"\${$as_ac_Header+set}\" = set"; then
38083 echo $ECHO_N "(cached) $ECHO_C" >&6
38084else
ac1cb8d3 38085 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38086fi
38087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38089
38090fi
38091if test `eval echo '${'$as_ac_Header'}'` = yes; then
38092 cat >>confdefs.h <<_ACEOF
38093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38094_ACEOF
38095
38096fi
38097
38098done
38099
38100 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38101 wxUSE_JOYSTICK=no
38102 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38103echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38104 fi
4cb1d3da
RN
38105 else
38106 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38107 wxUSE_JOYSTICK=no
38108 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38109echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38110 fi
a848cd7e 38111 fi
a848cd7e 38112
4cb1d3da
RN
38113
38114 if test "$wxUSE_JOYSTICK" = "yes"; then
38115 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38116#define wxUSE_JOYSTICK 1
38117_ACEOF
38118
4cb1d3da
RN
38119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38120 fi
a848cd7e
SC
38121 fi
38122fi
38123
38124
38125
38126if test "$wxUSE_FONTMAP" = "yes" ; then
38127 cat >>confdefs.h <<\_ACEOF
38128#define wxUSE_FONTMAP 1
38129_ACEOF
38130
38131fi
38132
38133if test "$wxUSE_UNICODE" = "yes" ; then
38134 cat >>confdefs.h <<\_ACEOF
38135#define wxUSE_UNICODE 1
38136_ACEOF
38137
38138
38139 if test "$USE_WIN32" != 1; then
38140 wxUSE_UNICODE_MSLU=no
38141 fi
38142
38143 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38144 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38145echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38146if test "${ac_cv_lib_unicows_main+set}" = set; then
38147 echo $ECHO_N "(cached) $ECHO_C" >&6
38148else
38149 ac_check_lib_save_LIBS=$LIBS
38150LIBS="-lunicows $LIBS"
38151cat >conftest.$ac_ext <<_ACEOF
38152/* confdefs.h. */
38153_ACEOF
38154cat confdefs.h >>conftest.$ac_ext
38155cat >>conftest.$ac_ext <<_ACEOF
38156/* end confdefs.h. */
38157
38158
38159int
38160main ()
38161{
38162main ();
38163 ;
38164 return 0;
38165}
38166_ACEOF
38167rm -f conftest.$ac_objext conftest$ac_exeext
38168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38169 (eval $ac_link) 2>conftest.er1
a848cd7e 38170 ac_status=$?
ac1cb8d3
VS
38171 grep -v '^ *+' conftest.er1 >conftest.err
38172 rm -f conftest.er1
38173 cat conftest.err >&5
a848cd7e
SC
38174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38175 (exit $ac_status); } &&
07158944 38176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38178 (eval $ac_try) 2>&5
38179 ac_status=$?
38180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); }; } &&
38182 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
38188 ac_cv_lib_unicows_main=yes
38189else
38190 echo "$as_me: failed program was:" >&5
38191sed 's/^/| /' conftest.$ac_ext >&5
38192
38193ac_cv_lib_unicows_main=no
38194fi
ac1cb8d3
VS
38195rm -f conftest.err conftest.$ac_objext \
38196 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38197LIBS=$ac_check_lib_save_LIBS
38198fi
38199echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38200echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38201if test $ac_cv_lib_unicows_main = yes; then
38202
38203 cat >>confdefs.h <<\_ACEOF
38204#define wxUSE_UNICODE_MSLU 1
38205_ACEOF
38206
38207
38208else
38209
38210 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38211 Applications will only run on Windows NT/2000/XP!" >&5
38212echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38213 Applications will only run on Windows NT/2000/XP!" >&2;}
38214 wxUSE_UNICODE_MSLU=no
38215
38216fi
38217
38218 fi
38219fi
38220
38221if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38222 cat >>confdefs.h <<\_ACEOF
38223#define wxUSE_EXPERIMENTAL_PRINTF 1
38224_ACEOF
38225
38226fi
38227
38228
38229if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38230 cat >>confdefs.h <<\_ACEOF
38231#define wxUSE_POSTSCRIPT 1
38232_ACEOF
38233
38234fi
38235
38236cat >>confdefs.h <<\_ACEOF
38237#define wxUSE_AFM_FOR_POSTSCRIPT 1
38238_ACEOF
38239
38240
38241cat >>confdefs.h <<\_ACEOF
38242#define wxUSE_NORMALIZED_PS_FONTS 1
38243_ACEOF
38244
38245
38246
38247if test "$wxUSE_CONSTRAINTS" = "yes"; then
38248 cat >>confdefs.h <<\_ACEOF
38249#define wxUSE_CONSTRAINTS 1
38250_ACEOF
38251
38252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38253fi
38254
8a7b1113
VZ
38255if test "$wxUSE_MDI" = "yes"; then
38256 cat >>confdefs.h <<\_ACEOF
38257#define wxUSE_MDI 1
38258_ACEOF
38259
38260
38261 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38262 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38263#define wxUSE_MDI_ARCHITECTURE 1
38264_ACEOF
38265
8a7b1113
VZ
38266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38267 fi
a848cd7e
SC
38268fi
38269
38270if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38271 cat >>confdefs.h <<\_ACEOF
38272#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38273_ACEOF
38274
38275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38276 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38278 fi
38279fi
38280
38281if test "$wxUSE_HELP" = "yes"; then
38282 cat >>confdefs.h <<\_ACEOF
38283#define wxUSE_HELP 1
38284_ACEOF
38285
38286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38287
38288 if test "$wxUSE_MSW" = 1; then
38289 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38290 cat >>confdefs.h <<\_ACEOF
38291#define wxUSE_MS_HTML_HELP 1
38292_ACEOF
38293
38294 fi
38295 fi
38296
38297 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38298 if test "$wxUSE_HTML" = "yes"; then
38299 cat >>confdefs.h <<\_ACEOF
38300#define wxUSE_WXHTML_HELP 1
38301_ACEOF
38302
38303 else
38304 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38305echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38306 wxUSE_WXHTML_HELP=no
38307 fi
38308 fi
38309fi
38310
38311if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38312 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38313 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38314echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38315 else
38316 cat >>confdefs.h <<\_ACEOF
38317#define wxUSE_PRINTING_ARCHITECTURE 1
38318_ACEOF
38319
38320 fi
38321 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38322fi
38323
38324if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38325 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38326echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38327 { (exit 1); exit 1; }; }
38328fi
38329
38330
38331if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38332 -o "$wxUSE_CLIPBOARD" = "yes" \
38333 -o "$wxUSE_OLE" = "yes" \
38334 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38335
38336for ac_header in ole2.h
38337do
38338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38339if eval "test \"\${$as_ac_Header+set}\" = set"; then
38340 echo "$as_me:$LINENO: checking for $ac_header" >&5
38341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38342if eval "test \"\${$as_ac_Header+set}\" = set"; then
38343 echo $ECHO_N "(cached) $ECHO_C" >&6
38344fi
38345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38347else
38348 # Is the header compilable?
38349echo "$as_me:$LINENO: checking $ac_header usability" >&5
38350echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38351cat >conftest.$ac_ext <<_ACEOF
38352/* confdefs.h. */
38353_ACEOF
38354cat confdefs.h >>conftest.$ac_ext
38355cat >>conftest.$ac_ext <<_ACEOF
38356/* end confdefs.h. */
38357$ac_includes_default
38358#include <$ac_header>
38359_ACEOF
38360rm -f conftest.$ac_objext
38361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38362 (eval $ac_compile) 2>conftest.er1
a848cd7e 38363 ac_status=$?
ac1cb8d3
VS
38364 grep -v '^ *+' conftest.er1 >conftest.err
38365 rm -f conftest.er1
38366 cat conftest.err >&5
a848cd7e
SC
38367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368 (exit $ac_status); } &&
07158944 38369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38371 (eval $ac_try) 2>&5
38372 ac_status=$?
38373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38374 (exit $ac_status); }; } &&
38375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38377 (eval $ac_try) 2>&5
38378 ac_status=$?
38379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); }; }; then
38381 ac_header_compiler=yes
38382else
38383 echo "$as_me: failed program was:" >&5
38384sed 's/^/| /' conftest.$ac_ext >&5
38385
38386ac_header_compiler=no
38387fi
ac1cb8d3 38388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38389echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38390echo "${ECHO_T}$ac_header_compiler" >&6
38391
38392# Is the header present?
38393echo "$as_me:$LINENO: checking $ac_header presence" >&5
38394echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38395cat >conftest.$ac_ext <<_ACEOF
38396/* confdefs.h. */
38397_ACEOF
38398cat confdefs.h >>conftest.$ac_ext
38399cat >>conftest.$ac_ext <<_ACEOF
38400/* end confdefs.h. */
38401#include <$ac_header>
38402_ACEOF
38403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38405 ac_status=$?
38406 grep -v '^ *+' conftest.er1 >conftest.err
38407 rm -f conftest.er1
38408 cat conftest.err >&5
38409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38410 (exit $ac_status); } >/dev/null; then
38411 if test -s conftest.err; then
38412 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38414 else
38415 ac_cpp_err=
38416 fi
38417else
38418 ac_cpp_err=yes
38419fi
38420if test -z "$ac_cpp_err"; then
38421 ac_header_preproc=yes
38422else
38423 echo "$as_me: failed program was:" >&5
38424sed 's/^/| /' conftest.$ac_ext >&5
38425
38426 ac_header_preproc=no
38427fi
38428rm -f conftest.err conftest.$ac_ext
38429echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38430echo "${ECHO_T}$ac_header_preproc" >&6
38431
38432# So? What about this header?
ac1cb8d3
VS
38433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38434 yes:no: )
a848cd7e
SC
38435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38439 ac_header_preproc=yes
a848cd7e 38440 ;;
ac1cb8d3 38441 no:yes:* )
a848cd7e
SC
38442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38445echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38449echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38454 (
38455 cat <<\_ASBOX
ac1cb8d3
VS
38456## ----------------------------------------- ##
38457## Report this to wx-dev@lists.wxwidgets.org ##
38458## ----------------------------------------- ##
a848cd7e
SC
38459_ASBOX
38460 ) |
38461 sed "s/^/$as_me: WARNING: /" >&2
38462 ;;
38463esac
38464echo "$as_me:$LINENO: checking for $ac_header" >&5
38465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38466if eval "test \"\${$as_ac_Header+set}\" = set"; then
38467 echo $ECHO_N "(cached) $ECHO_C" >&6
38468else
ac1cb8d3 38469 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38470fi
38471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38473
38474fi
38475if test `eval echo '${'$as_ac_Header'}'` = yes; then
38476 cat >>confdefs.h <<_ACEOF
38477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38478_ACEOF
38479
38480fi
38481
38482done
38483
38484
38485 if test "$ac_cv_header_ole2_h" = "yes" ; then
38486 if test "$GCC" = yes ; then
38487
38488
38489 ac_ext=cc
38490ac_cpp='$CXXCPP $CPPFLAGS'
38491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38494
38495
38496 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38497echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38498 cat >conftest.$ac_ext <<_ACEOF
38499/* confdefs.h. */
38500_ACEOF
38501cat confdefs.h >>conftest.$ac_ext
38502cat >>conftest.$ac_ext <<_ACEOF
38503/* end confdefs.h. */
38504#include <windows.h>
38505 #include <ole2.h>
38506int
38507main ()
38508{
38509
38510 ;
38511 return 0;
38512}
38513_ACEOF
38514rm -f conftest.$ac_objext
38515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38516 (eval $ac_compile) 2>conftest.er1
a848cd7e 38517 ac_status=$?
ac1cb8d3
VS
38518 grep -v '^ *+' conftest.er1 >conftest.err
38519 rm -f conftest.er1
38520 cat conftest.err >&5
a848cd7e
SC
38521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38522 (exit $ac_status); } &&
07158944 38523 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38525 (eval $ac_try) 2>&5
38526 ac_status=$?
38527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38528 (exit $ac_status); }; } &&
38529 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38531 (eval $ac_try) 2>&5
38532 ac_status=$?
38533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38534 (exit $ac_status); }; }; then
38535 echo "$as_me:$LINENO: result: no" >&5
38536echo "${ECHO_T}no" >&6
38537else
38538 echo "$as_me: failed program was:" >&5
38539sed 's/^/| /' conftest.$ac_ext >&5
38540
38541echo "$as_me:$LINENO: result: yes" >&5
38542echo "${ECHO_T}yes" >&6
38543 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38544fi
ac1cb8d3 38545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38546 ac_ext=c
38547ac_cpp='$CPP $CPPFLAGS'
38548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38550ac_compiler_gnu=$ac_cv_c_compiler_gnu
38551
a848cd7e
SC
38552 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38553 if test "$wxUSE_OLE" = "yes" ; then
38554 cat >>confdefs.h <<\_ACEOF
38555#define wxUSE_OLE 1
38556_ACEOF
38557
0b78747f 38558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
38559 fi
38560 fi
38561
38562 if test "$wxUSE_DATAOBJ" = "yes" ; then
38563 cat >>confdefs.h <<\_ACEOF
38564#define wxUSE_DATAOBJ 1
38565_ACEOF
38566
38567 fi
38568 else
38569 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38570echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38571
38572 wxUSE_CLIPBOARD=no
38573 wxUSE_DRAG_AND_DROP=no
38574 wxUSE_DATAOBJ=no
38575 wxUSE_OLE=no
38576 fi
38577
38578 if test "$wxUSE_METAFILE" = "yes"; then
38579 cat >>confdefs.h <<\_ACEOF
38580#define wxUSE_METAFILE 1
38581_ACEOF
38582
38583
38584 cat >>confdefs.h <<\_ACEOF
38585#define wxUSE_ENH_METAFILE 1
38586_ACEOF
38587
38588 fi
38589fi
38590
38591if test "$wxUSE_IPC" = "yes"; then
0b78747f 38592 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
38593 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38594echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 38595 wxUSE_IPC=no
a848cd7e
SC
38596 fi
38597
0b78747f
MW
38598 if test "$wxUSE_IPC" = "yes"; then
38599 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38600#define wxUSE_IPC 1
38601_ACEOF
38602
0b78747f
MW
38603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38604 fi
a848cd7e
SC
38605fi
38606
38607if test "$wxUSE_CLIPBOARD" = "yes"; then
38608 if test "$wxUSE_MGL" = 1; then
38609 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38610echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38611 wxUSE_CLIPBOARD=no
38612 fi
38613
38614 if test "$wxUSE_CLIPBOARD" = "yes"; then
38615 cat >>confdefs.h <<\_ACEOF
38616#define wxUSE_CLIPBOARD 1
38617_ACEOF
38618
38619
38620 cat >>confdefs.h <<\_ACEOF
38621#define wxUSE_DATAOBJ 1
38622_ACEOF
38623
38624 fi
38625fi
38626
38627if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38628 if test "$wxUSE_GTK" = 1; then
38629 if test "$WXGTK12" != 1; then
38630 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38631echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38632 wxUSE_DRAG_AND_DROP=no
38633 fi
38634 fi
38635
38636 if test "$wxUSE_MOTIF" = 1; then
38637 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38638echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38639 wxUSE_DRAG_AND_DROP=no
38640 fi
38641
38642 if test "$wxUSE_X11" = 1; then
38643 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38644echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38645 wxUSE_DRAG_AND_DROP=no
38646 fi
38647
38648 if test "$wxUSE_MGL" = 1; then
38649 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38650echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38651 wxUSE_DRAG_AND_DROP=no
38652 fi
38653
38654 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38655 cat >>confdefs.h <<\_ACEOF
38656#define wxUSE_DRAG_AND_DROP 1
38657_ACEOF
38658
38659 fi
38660
38661fi
38662
38663if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38664 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38665fi
38666
38667if test "$wxUSE_SPLINES" = "yes" ; then
38668 cat >>confdefs.h <<\_ACEOF
38669#define wxUSE_SPLINES 1
38670_ACEOF
38671
38672fi
38673
38674
38675USES_CONTROLS=0
38676if test "$wxUSE_CONTROLS" = "yes"; then
38677 USES_CONTROLS=1
38678fi
38679
38680if test "$wxUSE_ACCEL" = "yes"; then
38681 cat >>confdefs.h <<\_ACEOF
38682#define wxUSE_ACCEL 1
38683_ACEOF
38684
38685 USES_CONTROLS=1
38686fi
38687
38688if test "$wxUSE_BUTTON" = "yes"; then
38689 cat >>confdefs.h <<\_ACEOF
38690#define wxUSE_BUTTON 1
38691_ACEOF
38692
38693 USES_CONTROLS=1
38694fi
38695
38696if test "$wxUSE_BMPBUTTON" = "yes"; then
38697 cat >>confdefs.h <<\_ACEOF
38698#define wxUSE_BMPBUTTON 1
38699_ACEOF
38700
38701 USES_CONTROLS=1
38702fi
38703
38704if test "$wxUSE_CALCTRL" = "yes"; then
38705 cat >>confdefs.h <<\_ACEOF
38706#define wxUSE_CALENDARCTRL 1
38707_ACEOF
38708
38709 USES_CONTROLS=1
38710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38711fi
38712
38713if test "$wxUSE_CARET" = "yes"; then
38714 cat >>confdefs.h <<\_ACEOF
38715#define wxUSE_CARET 1
38716_ACEOF
38717
38718 USES_CONTROLS=1
38719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38720fi
38721
38722if test "$wxUSE_COMBOBOX" = "yes"; then
38723 cat >>confdefs.h <<\_ACEOF
38724#define wxUSE_COMBOBOX 1
38725_ACEOF
38726
38727 USES_CONTROLS=1
38728fi
38729
38730if test "$wxUSE_CHOICE" = "yes"; then
38731 cat >>confdefs.h <<\_ACEOF
38732#define wxUSE_CHOICE 1
38733_ACEOF
38734
38735 USES_CONTROLS=1
38736fi
38737
92bbdbcd
WS
38738if test "$wxUSE_CHOICEBOOK" = "yes"; then
38739 cat >>confdefs.h <<\_ACEOF
38740#define wxUSE_CHOICEBOOK 1
38741_ACEOF
38742
38743 USES_CONTROLS=1
38744fi
38745
a848cd7e
SC
38746if test "$wxUSE_CHECKBOX" = "yes"; then
38747 cat >>confdefs.h <<\_ACEOF
38748#define wxUSE_CHECKBOX 1
38749_ACEOF
38750
38751 USES_CONTROLS=1
38752fi
38753
38754if test "$wxUSE_CHECKLST" = "yes"; then
38755 cat >>confdefs.h <<\_ACEOF
38756#define wxUSE_CHECKLISTBOX 1
38757_ACEOF
38758
38759 USES_CONTROLS=1
38760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38761fi
38762
da98e9be
VZ
38763if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38764 cat >>confdefs.h <<\_ACEOF
38765#define wxUSE_DATEPICKCTRL 1
38766_ACEOF
38767
38768 USES_CONTROLS=1
38769fi
38770
a848cd7e
SC
38771if test "$wxUSE_DISPLAY" = "yes"; then
38772 cat >>confdefs.h <<\_ACEOF
38773#define wxUSE_DISPLAY 1
38774_ACEOF
38775
0b78747f 38776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
38777fi
38778
38779if test "$wxUSE_GAUGE" = "yes"; then
38780 cat >>confdefs.h <<\_ACEOF
38781#define wxUSE_GAUGE 1
38782_ACEOF
38783
38784 USES_CONTROLS=1
38785fi
38786
38787if test "$wxUSE_GRID" = "yes"; then
38788 cat >>confdefs.h <<\_ACEOF
38789#define wxUSE_GRID 1
38790_ACEOF
38791
38792 USES_CONTROLS=1
38793 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
38794fi
38795
38796if test "$wxUSE_IMAGLIST" = "yes"; then
38797 cat >>confdefs.h <<\_ACEOF
38798#define wxUSE_IMAGLIST 1
38799_ACEOF
38800
38801fi
38802
38803if test "$wxUSE_LISTBOOK" = "yes"; then
38804 cat >>confdefs.h <<\_ACEOF
38805#define wxUSE_LISTBOOK 1
38806_ACEOF
38807
38808 USES_CONTROLS=1
38809fi
38810
38811if test "$wxUSE_LISTBOX" = "yes"; then
38812 cat >>confdefs.h <<\_ACEOF
38813#define wxUSE_LISTBOX 1
38814_ACEOF
38815
38816 USES_CONTROLS=1
0b78747f 38817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
38818fi
38819
38820if test "$wxUSE_LISTCTRL" = "yes"; then
38821 if test "$wxUSE_IMAGLIST" = "yes"; then
38822 cat >>confdefs.h <<\_ACEOF
38823#define wxUSE_LISTCTRL 1
38824_ACEOF
38825
38826 USES_CONTROLS=1
38827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
38828 else
38829 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
38830echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
38831 fi
38832fi
38833
38834if test "$wxUSE_NOTEBOOK" = "yes"; then
38835 cat >>confdefs.h <<\_ACEOF
38836#define wxUSE_NOTEBOOK 1
38837_ACEOF
38838
38839 USES_CONTROLS=1
38840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
38841fi
38842
38843
38844if test "$wxUSE_RADIOBOX" = "yes"; then
38845 cat >>confdefs.h <<\_ACEOF
38846#define wxUSE_RADIOBOX 1
38847_ACEOF
38848
38849 USES_CONTROLS=1
38850fi
38851
38852if test "$wxUSE_RADIOBTN" = "yes"; then
38853 cat >>confdefs.h <<\_ACEOF
38854#define wxUSE_RADIOBTN 1
38855_ACEOF
38856
38857 USES_CONTROLS=1
38858fi
38859
38860if test "$wxUSE_SASH" = "yes"; then
38861 cat >>confdefs.h <<\_ACEOF
38862#define wxUSE_SASH 1
38863_ACEOF
38864
38865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
38866fi
38867
38868if test "$wxUSE_SCROLLBAR" = "yes"; then
38869 cat >>confdefs.h <<\_ACEOF
38870#define wxUSE_SCROLLBAR 1
38871_ACEOF
38872
38873 USES_CONTROLS=1
38874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
38875fi
38876
38877if test "$wxUSE_SLIDER" = "yes"; then
38878 cat >>confdefs.h <<\_ACEOF
38879#define wxUSE_SLIDER 1
38880_ACEOF
38881
38882 USES_CONTROLS=1
38883fi
38884
38885if test "$wxUSE_SPINBTN" = "yes"; then
38886 cat >>confdefs.h <<\_ACEOF
38887#define wxUSE_SPINBTN 1
38888_ACEOF
38889
38890 USES_CONTROLS=1
38891fi
38892
38893if test "$wxUSE_SPINCTRL" = "yes"; then
38894 cat >>confdefs.h <<\_ACEOF
38895#define wxUSE_SPINCTRL 1
38896_ACEOF
38897
38898 USES_CONTROLS=1
38899fi
38900
38901if test "$wxUSE_SPLITTER" = "yes"; then
38902 cat >>confdefs.h <<\_ACEOF
38903#define wxUSE_SPLITTER 1
38904_ACEOF
38905
38906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
38907fi
38908
38909if test "$wxUSE_STATBMP" = "yes"; then
38910 cat >>confdefs.h <<\_ACEOF
38911#define wxUSE_STATBMP 1
38912_ACEOF
38913
38914 USES_CONTROLS=1
38915fi
38916
38917if test "$wxUSE_STATBOX" = "yes"; then
38918 cat >>confdefs.h <<\_ACEOF
38919#define wxUSE_STATBOX 1
38920_ACEOF
38921
38922 USES_CONTROLS=1
38923fi
38924
38925if test "$wxUSE_STATTEXT" = "yes"; then
38926 cat >>confdefs.h <<\_ACEOF
38927#define wxUSE_STATTEXT 1
38928_ACEOF
38929
38930 USES_CONTROLS=1
38931fi
38932
38933if test "$wxUSE_STATLINE" = "yes"; then
38934 cat >>confdefs.h <<\_ACEOF
38935#define wxUSE_STATLINE 1
38936_ACEOF
38937
38938 USES_CONTROLS=1
38939fi
38940
38941if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
38942 cat >>confdefs.h <<\_ACEOF
38943#define wxUSE_NATIVE_STATUSBAR 1
38944_ACEOF
38945
a848cd7e
SC
38946 cat >>confdefs.h <<\_ACEOF
38947#define wxUSE_STATUSBAR 1
38948_ACEOF
38949
38950 USES_CONTROLS=1
38951
38952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
38953fi
38954
38955if test "$wxUSE_TABDIALOG" = "yes"; then
38956 cat >>confdefs.h <<\_ACEOF
38957#define wxUSE_TAB_DIALOG 1
38958_ACEOF
38959
a848cd7e
SC
38960fi
38961
38962if test "$wxUSE_TEXTCTRL" = "yes"; then
38963 cat >>confdefs.h <<\_ACEOF
38964#define wxUSE_TEXTCTRL 1
38965_ACEOF
38966
38967 USES_CONTROLS=1
38968 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
38969fi
38970
38971if test "$wxUSE_TOGGLEBTN" = "yes"; then
38972 if test "$wxUSE_COCOA" = 1 ; then
38973 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
38974echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
38975 wxUSE_TOGGLEBTN=no
bdcade0a
MB
38976 else
38977 if test "$wxUSE_PM" = 1; then
38978 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
38979echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
38980 wxUSE_TOGGLEBTN=no
38981 fi
a848cd7e
SC
38982 fi
38983 if test "$wxUSE_UNIVERSAL" = "yes"; then
38984 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
38985echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
38986 wxUSE_TOGGLEBTN=no
38987 fi
38988
38989 if test "$wxUSE_TOGGLEBTN" = "yes"; then
38990 cat >>confdefs.h <<\_ACEOF
38991#define wxUSE_TOGGLEBTN 1
38992_ACEOF
38993
38994 USES_CONTROLS=1
38995 fi
38996fi
38997
38998if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
38999 cat >>confdefs.h <<\_ACEOF
39000#define wxUSE_TOOLBAR_SIMPLE 1
39001_ACEOF
39002
39003 wxUSE_TOOLBAR="yes"
39004 USES_CONTROLS=1
39005fi
39006
39007if test "$wxUSE_TOOLBAR" = "yes"; then
39008 cat >>confdefs.h <<\_ACEOF
39009#define wxUSE_TOOLBAR 1
39010_ACEOF
39011
39012 USES_CONTROLS=1
39013
39014 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39015 wxUSE_TOOLBAR_NATIVE="yes"
39016 fi
39017
39018 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39019 cat >>confdefs.h <<\_ACEOF
39020#define wxUSE_TOOLBAR_NATIVE 1
39021_ACEOF
39022
39023 USES_CONTROLS=1
39024 fi
39025
39026 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39027fi
39028
39029if test "$wxUSE_TOOLTIPS" = "yes"; then
39030 if test "$wxUSE_MOTIF" = 1; then
39031 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39032echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39033 else
39034 if test "$wxUSE_UNIVERSAL" = "yes"; then
39035 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39036echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39037 else
39038 cat >>confdefs.h <<\_ACEOF
39039#define wxUSE_TOOLTIPS 1
39040_ACEOF
39041
39042 fi
39043 fi
39044fi
39045
39046if test "$wxUSE_TREECTRL" = "yes"; then
39047 if test "$wxUSE_IMAGLIST" = "yes"; then
39048 cat >>confdefs.h <<\_ACEOF
39049#define wxUSE_TREECTRL 1
39050_ACEOF
39051
39052 USES_CONTROLS=1
39053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39054 else
39055 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39056echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39057 fi
39058fi
39059
39060if test "$wxUSE_POPUPWIN" = "yes"; then
39061 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39062 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39063echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39064 else
39065 if test "$wxUSE_PM" = 1; then
39066 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39067echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39068 else
39069 cat >>confdefs.h <<\_ACEOF
39070#define wxUSE_POPUPWIN 1
39071_ACEOF
39072
0b78747f 39073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39074
39075 USES_CONTROLS=1
39076 fi
39077 fi
39078fi
39079
0dcd06dd 39080if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39081 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39082 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39083echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39084 else
39085 cat >>confdefs.h <<\_ACEOF
39086#define wxUSE_DIALUP_MANAGER 1
39087_ACEOF
39088
39089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39090 fi
39091fi
39092
a848cd7e
SC
39093if test "$wxUSE_TIPWINDOW" = "yes"; then
39094 if test "$wxUSE_PM" = 1; then
39095 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39096echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39097 else
39098 cat >>confdefs.h <<\_ACEOF
39099#define wxUSE_TIPWINDOW 1
39100_ACEOF
39101
39102 fi
39103fi
39104
39105if test "$USES_CONTROLS" = 1; then
39106 cat >>confdefs.h <<\_ACEOF
39107#define wxUSE_CONTROLS 1
39108_ACEOF
39109
39110fi
39111
39112
39113if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39114 cat >>confdefs.h <<\_ACEOF
39115#define wxUSE_ACCESSIBILITY 1
39116_ACEOF
39117
39118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39119fi
39120
39121if test "$wxUSE_DRAGIMAGE" = "yes"; then
39122 cat >>confdefs.h <<\_ACEOF
39123#define wxUSE_DRAGIMAGE 1
39124_ACEOF
39125
39126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39127fi
39128
39129if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39130 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39131 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39132echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39133 else
39134 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39135#define wxUSE_EXCEPTIONS 1
39136_ACEOF
39137
07bea8f0
VS
39138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39139 fi
a848cd7e
SC
39140fi
39141
39142USE_HTML=0
39143if test "$wxUSE_HTML" = "yes"; then
39144 cat >>confdefs.h <<\_ACEOF
39145#define wxUSE_HTML 1
39146_ACEOF
39147
39148 USE_HTML=1
39149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39150 if test "$wxUSE_MAC" = 1; then
39151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39152 fi
a848cd7e 39153fi
646b6ec1 39154if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39155 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39156 old_CPPFLAGS="$CPPFLAGS"
39157 CPPFLAGS="$CPPFLAGS -x objective-c++"
39158 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39159echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39160if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39161 echo $ECHO_N "(cached) $ECHO_C" >&6
39162else
39163 cat >conftest.$ac_ext <<_ACEOF
39164/* confdefs.h. */
39165_ACEOF
39166cat confdefs.h >>conftest.$ac_ext
39167cat >>conftest.$ac_ext <<_ACEOF
39168/* end confdefs.h. */
39169#include <Carbon/Carbon.h>
39170
39171#include <WebKit/HIWebView.h>
39172_ACEOF
39173rm -f conftest.$ac_objext
39174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39175 (eval $ac_compile) 2>conftest.er1
39176 ac_status=$?
39177 grep -v '^ *+' conftest.er1 >conftest.err
39178 rm -f conftest.er1
39179 cat conftest.err >&5
39180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39181 (exit $ac_status); } &&
07158944 39182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
39183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39184 (eval $ac_try) 2>&5
39185 ac_status=$?
39186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39187 (exit $ac_status); }; } &&
39188 { ac_try='test -s conftest.$ac_objext'
39189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39190 (eval $ac_try) 2>&5
39191 ac_status=$?
39192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193 (exit $ac_status); }; }; then
39194 ac_cv_header_WebKit_HIWebView_h=yes
39195else
39196 echo "$as_me: failed program was:" >&5
39197sed 's/^/| /' conftest.$ac_ext >&5
39198
39199ac_cv_header_WebKit_HIWebView_h=no
39200fi
39201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39202fi
39203echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39204echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39205if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39206
39207 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39208#define wxUSE_WEBKIT 1
39209_ACEOF
39210
07bea8f0
VS
39211 WEBKIT_LINK="-framework WebKit"
39212
39213else
39214
39215 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39216echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39217 wxUSE_WEBKIT=no
39218
646b6ec1
VS
39219fi
39220
07bea8f0
VS
39221
39222 CPPFLAGS="$old_CPPFLAGS"
39223 elif test "$wxUSE_COCOA" = 1; then
39224 cat >>confdefs.h <<\_ACEOF
39225#define wxUSE_WEBKIT 1
39226_ACEOF
39227
39228 else
39229 wxUSE_WEBKIT=no
39230 fi
39231fi
39232
9a8f0513
VS
39233USE_XRC=0
39234if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39235 if test "$wxUSE_XML" != "yes"; then
39236 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39237echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39238 wxUSE_XRC=no
39239 else
39240 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39241#define wxUSE_XRC 1
39242_ACEOF
39243
d2ebf0b7
VS
39244 USE_XRC=1
39245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39246 fi
9a8f0513 39247fi
07bea8f0 39248
a848cd7e
SC
39249if test "$wxUSE_MENUS" = "yes"; then
39250 cat >>confdefs.h <<\_ACEOF
39251#define wxUSE_MENUS 1
39252_ACEOF
39253
39254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39255fi
39256
39257if test "$wxUSE_METAFILE" = "yes"; then
39258 cat >>confdefs.h <<\_ACEOF
39259#define wxUSE_METAFILE 1
39260_ACEOF
39261
39262fi
39263
39264if test "$wxUSE_MIMETYPE" = "yes"; then
39265 cat >>confdefs.h <<\_ACEOF
39266#define wxUSE_MIMETYPE 1
39267_ACEOF
39268
39269fi
39270
39271if test "$wxUSE_MINIFRAME" = "yes"; then
39272 cat >>confdefs.h <<\_ACEOF
39273#define wxUSE_MINIFRAME 1
39274_ACEOF
39275
39276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39277fi
39278
39279if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39280 cat >>confdefs.h <<\_ACEOF
39281#define wxUSE_SYSTEM_OPTIONS 1
39282_ACEOF
39283
39284 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39285 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39287 fi
39288fi
39289
39290
39291if test "$wxUSE_VALIDATORS" = "yes"; then
39292 cat >>confdefs.h <<\_ACEOF
39293#define wxUSE_VALIDATORS 1
39294_ACEOF
39295
39296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39297fi
39298
39299if test "$wxUSE_PALETTE" = "yes" ; then
39300 cat >>confdefs.h <<\_ACEOF
39301#define wxUSE_PALETTE 1
39302_ACEOF
39303
39304fi
39305
39306if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39307 LIBS=" -lunicows $LIBS"
39308fi
39309
39310
39311if test "$wxUSE_IMAGE" = "yes" ; then
39312 cat >>confdefs.h <<\_ACEOF
39313#define wxUSE_IMAGE 1
39314_ACEOF
39315
39316
39317 if test "$wxUSE_GIF" = "yes" ; then
39318 cat >>confdefs.h <<\_ACEOF
39319#define wxUSE_GIF 1
39320_ACEOF
39321
39322 fi
39323
39324 if test "$wxUSE_PCX" = "yes" ; then
39325 cat >>confdefs.h <<\_ACEOF
39326#define wxUSE_PCX 1
39327_ACEOF
39328
39329 fi
39330
39331 if test "$wxUSE_IFF" = "yes" ; then
39332 cat >>confdefs.h <<\_ACEOF
39333#define wxUSE_IFF 1
39334_ACEOF
39335
39336 fi
39337
39338 if test "$wxUSE_PNM" = "yes" ; then
39339 cat >>confdefs.h <<\_ACEOF
39340#define wxUSE_PNM 1
39341_ACEOF
39342
39343 fi
39344
39345 if test "$wxUSE_XPM" = "yes" ; then
39346 cat >>confdefs.h <<\_ACEOF
39347#define wxUSE_XPM 1
39348_ACEOF
39349
39350 fi
39351
39352 if test "$wxUSE_ICO_CUR" = "yes" ; then
39353 cat >>confdefs.h <<\_ACEOF
39354#define wxUSE_ICO_CUR 1
39355_ACEOF
39356
39357 fi
39358fi
39359
39360
39361if test "$wxUSE_CHOICEDLG" = "yes"; then
39362 cat >>confdefs.h <<\_ACEOF
39363#define wxUSE_CHOICEDLG 1
39364_ACEOF
39365
39366fi
39367
39368if test "$wxUSE_COLOURDLG" = "yes"; then
39369 cat >>confdefs.h <<\_ACEOF
39370#define wxUSE_COLOURDLG 1
39371_ACEOF
39372
39373fi
39374
39375if test "$wxUSE_FILEDLG" = "yes"; then
39376 cat >>confdefs.h <<\_ACEOF
39377#define wxUSE_FILEDLG 1
39378_ACEOF
39379
39380fi
39381
39382if test "$wxUSE_FINDREPLDLG" = "yes"; then
39383 cat >>confdefs.h <<\_ACEOF
39384#define wxUSE_FINDREPLDLG 1
39385_ACEOF
39386
39387fi
39388
39389if test "$wxUSE_FONTDLG" = "yes"; then
39390 cat >>confdefs.h <<\_ACEOF
39391#define wxUSE_FONTDLG 1
39392_ACEOF
39393
39394fi
39395
39396if test "$wxUSE_DIRDLG" = "yes"; then
39397 if test "$wxUSE_TREECTRL" != "yes"; then
39398 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39399echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39400 else
39401 cat >>confdefs.h <<\_ACEOF
39402#define wxUSE_DIRDLG 1
39403_ACEOF
39404
39405 fi
39406fi
39407
39408if test "$wxUSE_MSGDLG" = "yes"; then
39409 cat >>confdefs.h <<\_ACEOF
39410#define wxUSE_MSGDLG 1
39411_ACEOF
39412
39413fi
39414
39415if test "$wxUSE_NUMBERDLG" = "yes"; then
39416 cat >>confdefs.h <<\_ACEOF
39417#define wxUSE_NUMBERDLG 1
39418_ACEOF
39419
39420fi
39421
39422if test "$wxUSE_PROGRESSDLG" = "yes"; then
39423 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39424 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39425echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39426 else
39427 cat >>confdefs.h <<\_ACEOF
39428#define wxUSE_PROGRESSDLG 1
39429_ACEOF
39430
39431 fi
39432fi
39433
39434if test "$wxUSE_SPLASH" = "yes"; then
39435 cat >>confdefs.h <<\_ACEOF
39436#define wxUSE_SPLASH 1
39437_ACEOF
39438
2057db16 39439 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39440fi
39441
39442if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39443 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39444 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39445echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39446 else
39447 cat >>confdefs.h <<\_ACEOF
39448#define wxUSE_STARTUP_TIPS 1
39449_ACEOF
39450
39451 fi
39452fi
39453
39454if test "$wxUSE_TEXTDLG" = "yes"; then
39455 cat >>confdefs.h <<\_ACEOF
39456#define wxUSE_TEXTDLG 1
39457_ACEOF
39458
39459fi
39460
39461if test "$wxUSE_WIZARDDLG" = "yes"; then
39462 cat >>confdefs.h <<\_ACEOF
39463#define wxUSE_WIZARDDLG 1
39464_ACEOF
39465
39466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39467fi
39468
39469
ce756cb0
RN
39470if test "$wxUSE_MEDIACTRL" = "yes"; then
39471 if test "$wxUSE_MSW" = 1; then
39472 wxUSE_DIRECTSHOW="yes"
39473
39474for ac_header in dshow.h
39475do
39476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39477echo "$as_me:$LINENO: checking for $ac_header" >&5
39478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39479if eval "test \"\${$as_ac_Header+set}\" = set"; then
39480 echo $ECHO_N "(cached) $ECHO_C" >&6
39481else
39482 cat >conftest.$ac_ext <<_ACEOF
39483/* confdefs.h. */
39484_ACEOF
39485cat confdefs.h >>conftest.$ac_ext
39486cat >>conftest.$ac_ext <<_ACEOF
39487/* end confdefs.h. */
39488#include <windows.h>
39489
39490#include <$ac_header>
39491_ACEOF
39492rm -f conftest.$ac_objext
39493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39494 (eval $ac_compile) 2>conftest.er1
39495 ac_status=$?
39496 grep -v '^ *+' conftest.er1 >conftest.err
39497 rm -f conftest.er1
39498 cat conftest.err >&5
39499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39500 (exit $ac_status); } &&
07158944 39501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39503 (eval $ac_try) 2>&5
39504 ac_status=$?
39505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39506 (exit $ac_status); }; } &&
39507 { ac_try='test -s conftest.$ac_objext'
39508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39509 (eval $ac_try) 2>&5
39510 ac_status=$?
39511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39512 (exit $ac_status); }; }; then
39513 eval "$as_ac_Header=yes"
39514else
39515 echo "$as_me: failed program was:" >&5
39516sed 's/^/| /' conftest.$ac_ext >&5
39517
39518eval "$as_ac_Header=no"
39519fi
39520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39521fi
39522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39524if test `eval echo '${'$as_ac_Header'}'` = yes; then
39525 cat >>confdefs.h <<_ACEOF
39526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39527_ACEOF
39528
39529else
39530
39531 wxUSE_DIRECTSHOW="no"
39532 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39533echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39534
39535fi
39536
39537done
39538
39539
39540 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39541 cat >>confdefs.h <<\_ACEOF
39542#define wxUSE_DIRECTSHOW 1
39543_ACEOF
39544
39545 LIBS="$LIBS -lstrmiids"
39546 fi
39547 fi
39548
39549 if test "$wxUSE_GTK" = 1; then
39550 wxUSE_GSTREAMER="yes"
39551
ce756cb0 39552
dae87f93 39553 succeeded=no
ce756cb0 39554
dae87f93
RN
39555 if test -z "$PKG_CONFIG"; then
39556 # Extract the first word of "pkg-config", so it can be a program name with args.
39557set dummy pkg-config; ac_word=$2
39558echo "$as_me:$LINENO: checking for $ac_word" >&5
39559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39560if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39561 echo $ECHO_N "(cached) $ECHO_C" >&6
39562else
39563 case $PKG_CONFIG in
39564 [\\/]* | ?:[\\/]*)
39565 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39566 ;;
39567 *)
39568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39569for as_dir in $PATH
39570do
39571 IFS=$as_save_IFS
39572 test -z "$as_dir" && as_dir=.
39573 for ac_exec_ext in '' $ac_executable_extensions; do
39574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39575 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39577 break 2
39578 fi
39579done
39580done
39581
39582 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39583 ;;
39584esac
39585fi
39586PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39587
39588if test -n "$PKG_CONFIG"; then
39589 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39590echo "${ECHO_T}$PKG_CONFIG" >&6
39591else
39592 echo "$as_me:$LINENO: result: no" >&5
39593echo "${ECHO_T}no" >&6
39594fi
39595
39596 fi
39597
39598 if test "$PKG_CONFIG" = "no" ; then
39599 echo "*** The pkg-config script could not be found. Make sure it is"
39600 echo "*** in your path, or set the PKG_CONFIG environment variable"
39601 echo "*** to the full path to pkg-config."
39602 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39603 else
39604 PKG_CONFIG_MIN_VERSION=0.9.0
39605 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39606 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39607echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39608
39609 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39610 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39611echo "${ECHO_T}yes" >&6
dae87f93 39612 succeeded=yes
ce756cb0 39613
dae87f93
RN
39614 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39615echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39616 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39617 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39618echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39619
39620 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39621echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39622 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39623 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39624echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39625 else
39626 GSTREAMER_CFLAGS=""
39627 GSTREAMER_LIBS=""
39628 ## If we have a custom action on failure, don't print errors, but
39629 ## do set a variable so people can do so.
39630 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39631
dae87f93
RN
39632 fi
39633
39634
39635
39636 else
39637 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39638 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39639 fi
39640 fi
39641
39642 if test $succeeded = yes; then
39643
39644 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39645 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39646
ce756cb0 39647 else
dae87f93
RN
39648
39649 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39650echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39651 wxUSE_GSTREAMER="no"
39652
39653 fi
39654
39655
39656
39657
39658
39659 if test "x$GST_INSPECT" == "x"; then
39660 # Extract the first word of "gst-inspect", so it can be a program name with args.
39661set dummy gst-inspect; ac_word=$2
39662echo "$as_me:$LINENO: checking for $ac_word" >&5
39663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39664if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39665 echo $ECHO_N "(cached) $ECHO_C" >&6
39666else
39667 if test -n "$GST_INSPECT"; then
39668 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39669else
39670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39671for as_dir in $PATH
39672do
39673 IFS=$as_save_IFS
39674 test -z "$as_dir" && as_dir=.
39675 for ac_exec_ext in '' $ac_executable_extensions; do
39676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39677 ac_cv_prog_GST_INSPECT="gst-inspect"
39678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39679 break 2
ce756cb0 39680 fi
dae87f93
RN
39681done
39682done
39683
39684fi
39685fi
39686GST_INSPECT=$ac_cv_prog_GST_INSPECT
39687if test -n "$GST_INSPECT"; then
39688 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39689echo "${ECHO_T}$GST_INSPECT" >&6
39690else
39691 echo "$as_me:$LINENO: result: no" >&5
39692echo "${ECHO_T}no" >&6
39693fi
39694
39695 fi
39696
39697 if test "x$GST_INSPECT" != "x"; then
39698 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39699echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39700 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39701 echo "$as_me:$LINENO: result: found." >&5
39702echo "${ECHO_T}found." >&6
ce756cb0 39703
ce756cb0 39704 else
dae87f93
RN
39705 echo "$as_me:$LINENO: result: not found." >&5
39706echo "${ECHO_T}not found." >&6
39707
39708 wxUSE_GSTREAMER="no"
39709 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39710echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39711
39712 fi
39713 fi
39714
39715
39716 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39717echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39718if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39719 echo $ECHO_N "(cached) $ECHO_C" >&6
39720else
39721 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39722/* confdefs.h. */
39723_ACEOF
39724cat confdefs.h >>conftest.$ac_ext
39725cat >>conftest.$ac_ext <<_ACEOF
39726/* end confdefs.h. */
dae87f93 39727#include <gst/gst.h>
ce756cb0 39728
dae87f93 39729#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
39730_ACEOF
39731rm -f conftest.$ac_objext
39732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39733 (eval $ac_compile) 2>conftest.er1
39734 ac_status=$?
39735 grep -v '^ *+' conftest.er1 >conftest.err
39736 rm -f conftest.er1
39737 cat conftest.err >&5
39738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739 (exit $ac_status); } &&
07158944 39740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39742 (eval $ac_try) 2>&5
39743 ac_status=$?
39744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39745 (exit $ac_status); }; } &&
39746 { ac_try='test -s conftest.$ac_objext'
39747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39748 (eval $ac_try) 2>&5
39749 ac_status=$?
39750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39751 (exit $ac_status); }; }; then
dae87f93 39752 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
39753else
39754 echo "$as_me: failed program was:" >&5
39755sed 's/^/| /' conftest.$ac_ext >&5
39756
dae87f93 39757ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
39758fi
39759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
39760fi
39761echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39762echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39763if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39764 :
39765else
ce756cb0 39766
dae87f93
RN
39767 wxUSE_GSTREAMER="no"
39768 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39769echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 39770
dae87f93 39771fi
ce756cb0 39772
dae87f93
RN
39773
39774
39775 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
39776echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39777
39778ac_find_libraries=
39779for ac_dir in $SEARCH_LIB /usr/lib;
39780 do
39781 for ac_extension in a so sl dylib; do
39782 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39783 ac_find_libraries=$ac_dir
39784 break 2
39785 fi
39786 done
39787 done
39788
ce756cb0 39789
dae87f93
RN
39790 if test "$ac_find_libraries" = "" ; then
39791 echo "$as_me:$LINENO: result: no" >&5
39792echo "${ECHO_T}no" >&6
39793 wxUSE_GSTREAMER="no"
39794 else
39795 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39796echo "${ECHO_T}yes" >&6
dae87f93 39797 fi
ce756cb0 39798
dae87f93
RN
39799 if test "$wxUSE_GSTREAMER" = "yes"; then
39800 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
39801#define wxUSE_GSTREAMER 1
39802_ACEOF
39803
dae87f93
RN
39804 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
39805echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
39806 fi
39807 fi
39808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
39809 cat >>confdefs.h <<\_ACEOF
39810#define wxUSE_MEDIACTRL 1
39811_ACEOF
39812
39813fi
39814
39815
a848cd7e
SC
39816if test "$cross_compiling" = "yes"; then
39817 OSINFO="\"$host\""
39818else
39819 OSINFO=`uname -s -r -m`
39820 OSINFO="\"$OSINFO\""
39821fi
39822
39823cat >>confdefs.h <<_ACEOF
39824#define WXWIN_OS_DESCRIPTION $OSINFO
39825_ACEOF
39826
39827
39828
39829if test "x$prefix" != "xNONE"; then
39830 wxPREFIX=$prefix
39831else
39832 wxPREFIX=$ac_default_prefix
39833fi
39834
39835cat >>confdefs.h <<_ACEOF
39836#define wxINSTALL_PREFIX "$wxPREFIX"
39837_ACEOF
39838
39839
a848cd7e
SC
39840
39841
39842CORE_BASE_LIBS="net base"
39843CORE_GUI_LIBS="adv core"
39844
39845if test "$wxUSE_XML" = "yes" ; then
39846 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
39847fi
39848if test "$wxUSE_ODBC" != "no" ; then
39849 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
39850 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
39851fi
39852if test "$wxUSE_HTML" = "yes" ; then
39853 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
39854fi
9a8f0513
VS
39855if test "$wxUSE_XRC" = "yes" ; then
39856 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
39857fi
a848cd7e
SC
39858
39859if test "$wxUSE_GUI" != "yes"; then
39860 CORE_GUI_LIBS=""
39861fi
39862
39863
39864
39865
39866
39867
39868
39869
39870if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 39871 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
39872 if test "$USE_DARWIN" = 1; then
39873 LDFLAGS="$LDFLAGS -framework QuickTime"
39874 else
39875 LDFLAGS="$LDFLAGS -lQuickTimeLib"
39876 fi
07bea8f0 39877 fi
5dcf30a0 39878 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
39879 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
39880 else
39881 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 39882 fi
a848cd7e
SC
39883fi
39884if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 39885 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
39886 if test "$wxUSE_MEDIACTRL" = "yes"; then
39887 LDFLAGS="$LDFLAGS -framework QuickTime"
39888 fi
a848cd7e
SC
39889fi
39890
39891
39892LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
39893
39894have_cos=0
39895have_floor=0
39896
39897for ac_func in cos
39898do
39899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39900echo "$as_me:$LINENO: checking for $ac_func" >&5
39901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39902if eval "test \"\${$as_ac_var+set}\" = set"; then
39903 echo $ECHO_N "(cached) $ECHO_C" >&6
39904else
39905 cat >conftest.$ac_ext <<_ACEOF
39906/* confdefs.h. */
39907_ACEOF
39908cat confdefs.h >>conftest.$ac_ext
39909cat >>conftest.$ac_ext <<_ACEOF
39910/* end confdefs.h. */
ac1cb8d3
VS
39911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39913#define $ac_func innocuous_$ac_func
39914
a848cd7e
SC
39915/* System header to define __stub macros and hopefully few prototypes,
39916 which can conflict with char $ac_func (); below.
39917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39918 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39919
a848cd7e
SC
39920#ifdef __STDC__
39921# include <limits.h>
39922#else
39923# include <assert.h>
39924#endif
ac1cb8d3
VS
39925
39926#undef $ac_func
39927
a848cd7e
SC
39928/* Override any gcc2 internal prototype to avoid an error. */
39929#ifdef __cplusplus
39930extern "C"
39931{
39932#endif
39933/* We use char because int might match the return type of a gcc2
39934 builtin and then its argument prototype would still apply. */
39935char $ac_func ();
39936/* The GNU C library defines this for functions which it implements
39937 to always fail with ENOSYS. Some functions are actually named
39938 something starting with __ and the normal name is an alias. */
39939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39940choke me
39941#else
39942char (*f) () = $ac_func;
39943#endif
39944#ifdef __cplusplus
39945}
39946#endif
39947
39948int
39949main ()
39950{
39951return f != $ac_func;
39952 ;
39953 return 0;
39954}
39955_ACEOF
39956rm -f conftest.$ac_objext conftest$ac_exeext
39957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39958 (eval $ac_link) 2>conftest.er1
a848cd7e 39959 ac_status=$?
ac1cb8d3
VS
39960 grep -v '^ *+' conftest.er1 >conftest.err
39961 rm -f conftest.er1
39962 cat conftest.err >&5
a848cd7e
SC
39963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39964 (exit $ac_status); } &&
07158944 39965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39967 (eval $ac_try) 2>&5
39968 ac_status=$?
39969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39970 (exit $ac_status); }; } &&
39971 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39973 (eval $ac_try) 2>&5
39974 ac_status=$?
39975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39976 (exit $ac_status); }; }; then
39977 eval "$as_ac_var=yes"
39978else
39979 echo "$as_me: failed program was:" >&5
39980sed 's/^/| /' conftest.$ac_ext >&5
39981
39982eval "$as_ac_var=no"
39983fi
ac1cb8d3
VS
39984rm -f conftest.err conftest.$ac_objext \
39985 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39986fi
39987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39988echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39989if test `eval echo '${'$as_ac_var'}'` = yes; then
39990 cat >>confdefs.h <<_ACEOF
39991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39992_ACEOF
39993 have_cos=1
39994fi
39995done
39996
39997
39998for ac_func in floor
39999do
40000as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40001echo "$as_me:$LINENO: checking for $ac_func" >&5
40002echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40003if eval "test \"\${$as_ac_var+set}\" = set"; then
40004 echo $ECHO_N "(cached) $ECHO_C" >&6
40005else
40006 cat >conftest.$ac_ext <<_ACEOF
40007/* confdefs.h. */
40008_ACEOF
40009cat confdefs.h >>conftest.$ac_ext
40010cat >>conftest.$ac_ext <<_ACEOF
40011/* end confdefs.h. */
ac1cb8d3
VS
40012/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40014#define $ac_func innocuous_$ac_func
40015
a848cd7e
SC
40016/* System header to define __stub macros and hopefully few prototypes,
40017 which can conflict with char $ac_func (); below.
40018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40019 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40020
a848cd7e
SC
40021#ifdef __STDC__
40022# include <limits.h>
40023#else
40024# include <assert.h>
40025#endif
ac1cb8d3
VS
40026
40027#undef $ac_func
40028
a848cd7e
SC
40029/* Override any gcc2 internal prototype to avoid an error. */
40030#ifdef __cplusplus
40031extern "C"
40032{
40033#endif
40034/* We use char because int might match the return type of a gcc2
40035 builtin and then its argument prototype would still apply. */
40036char $ac_func ();
40037/* The GNU C library defines this for functions which it implements
40038 to always fail with ENOSYS. Some functions are actually named
40039 something starting with __ and the normal name is an alias. */
40040#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40041choke me
40042#else
40043char (*f) () = $ac_func;
40044#endif
40045#ifdef __cplusplus
40046}
40047#endif
40048
40049int
40050main ()
40051{
40052return f != $ac_func;
40053 ;
40054 return 0;
40055}
40056_ACEOF
40057rm -f conftest.$ac_objext conftest$ac_exeext
40058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40059 (eval $ac_link) 2>conftest.er1
a848cd7e 40060 ac_status=$?
ac1cb8d3
VS
40061 grep -v '^ *+' conftest.er1 >conftest.err
40062 rm -f conftest.er1
40063 cat conftest.err >&5
a848cd7e
SC
40064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40065 (exit $ac_status); } &&
07158944 40066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40068 (eval $ac_try) 2>&5
40069 ac_status=$?
40070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40071 (exit $ac_status); }; } &&
40072 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40074 (eval $ac_try) 2>&5
40075 ac_status=$?
40076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40077 (exit $ac_status); }; }; then
40078 eval "$as_ac_var=yes"
40079else
40080 echo "$as_me: failed program was:" >&5
40081sed 's/^/| /' conftest.$ac_ext >&5
40082
40083eval "$as_ac_var=no"
40084fi
ac1cb8d3
VS
40085rm -f conftest.err conftest.$ac_objext \
40086 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40087fi
40088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40089echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40090if test `eval echo '${'$as_ac_var'}'` = yes; then
40091 cat >>confdefs.h <<_ACEOF
40092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40093_ACEOF
40094 have_floor=1
40095fi
40096done
40097
40098echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40099echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40100if test "$have_cos" = 1 -a "$have_floor" = 1; then
40101 echo "$as_me:$LINENO: result: yes" >&5
40102echo "${ECHO_T}yes" >&6
40103else
40104 echo "$as_me:$LINENO: result: no" >&5
40105echo "${ECHO_T}no" >&6
40106 LIBS="$LIBS -lm"
40107 # use different functions to avoid configure caching
40108 have_sin=0
40109 have_ceil=0
40110
40111for ac_func in sin
40112do
40113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40114echo "$as_me:$LINENO: checking for $ac_func" >&5
40115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40116if eval "test \"\${$as_ac_var+set}\" = set"; then
40117 echo $ECHO_N "(cached) $ECHO_C" >&6
40118else
40119 cat >conftest.$ac_ext <<_ACEOF
40120/* confdefs.h. */
40121_ACEOF
40122cat confdefs.h >>conftest.$ac_ext
40123cat >>conftest.$ac_ext <<_ACEOF
40124/* end confdefs.h. */
ac1cb8d3
VS
40125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40127#define $ac_func innocuous_$ac_func
40128
a848cd7e
SC
40129/* System header to define __stub macros and hopefully few prototypes,
40130 which can conflict with char $ac_func (); below.
40131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40132 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40133
a848cd7e
SC
40134#ifdef __STDC__
40135# include <limits.h>
40136#else
40137# include <assert.h>
40138#endif
ac1cb8d3
VS
40139
40140#undef $ac_func
40141
a848cd7e
SC
40142/* Override any gcc2 internal prototype to avoid an error. */
40143#ifdef __cplusplus
40144extern "C"
40145{
40146#endif
40147/* We use char because int might match the return type of a gcc2
40148 builtin and then its argument prototype would still apply. */
40149char $ac_func ();
40150/* The GNU C library defines this for functions which it implements
40151 to always fail with ENOSYS. Some functions are actually named
40152 something starting with __ and the normal name is an alias. */
40153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40154choke me
40155#else
40156char (*f) () = $ac_func;
40157#endif
40158#ifdef __cplusplus
40159}
40160#endif
40161
40162int
40163main ()
40164{
40165return f != $ac_func;
40166 ;
40167 return 0;
40168}
40169_ACEOF
40170rm -f conftest.$ac_objext conftest$ac_exeext
40171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40172 (eval $ac_link) 2>conftest.er1
a848cd7e 40173 ac_status=$?
ac1cb8d3
VS
40174 grep -v '^ *+' conftest.er1 >conftest.err
40175 rm -f conftest.er1
40176 cat conftest.err >&5
a848cd7e
SC
40177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40178 (exit $ac_status); } &&
07158944 40179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40181 (eval $ac_try) 2>&5
40182 ac_status=$?
40183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184 (exit $ac_status); }; } &&
40185 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40187 (eval $ac_try) 2>&5
40188 ac_status=$?
40189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40190 (exit $ac_status); }; }; then
40191 eval "$as_ac_var=yes"
40192else
40193 echo "$as_me: failed program was:" >&5
40194sed 's/^/| /' conftest.$ac_ext >&5
40195
40196eval "$as_ac_var=no"
40197fi
ac1cb8d3
VS
40198rm -f conftest.err conftest.$ac_objext \
40199 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40200fi
40201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40202echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40203if test `eval echo '${'$as_ac_var'}'` = yes; then
40204 cat >>confdefs.h <<_ACEOF
40205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40206_ACEOF
40207 have_sin=1
40208fi
40209done
40210
40211
40212for ac_func in ceil
40213do
40214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40215echo "$as_me:$LINENO: checking for $ac_func" >&5
40216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40217if eval "test \"\${$as_ac_var+set}\" = set"; then
40218 echo $ECHO_N "(cached) $ECHO_C" >&6
40219else
40220 cat >conftest.$ac_ext <<_ACEOF
40221/* confdefs.h. */
40222_ACEOF
40223cat confdefs.h >>conftest.$ac_ext
40224cat >>conftest.$ac_ext <<_ACEOF
40225/* end confdefs.h. */
ac1cb8d3
VS
40226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40228#define $ac_func innocuous_$ac_func
40229
a848cd7e
SC
40230/* System header to define __stub macros and hopefully few prototypes,
40231 which can conflict with char $ac_func (); below.
40232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40233 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40234
a848cd7e
SC
40235#ifdef __STDC__
40236# include <limits.h>
40237#else
40238# include <assert.h>
40239#endif
ac1cb8d3
VS
40240
40241#undef $ac_func
40242
a848cd7e
SC
40243/* Override any gcc2 internal prototype to avoid an error. */
40244#ifdef __cplusplus
40245extern "C"
40246{
40247#endif
40248/* We use char because int might match the return type of a gcc2
40249 builtin and then its argument prototype would still apply. */
40250char $ac_func ();
40251/* The GNU C library defines this for functions which it implements
40252 to always fail with ENOSYS. Some functions are actually named
40253 something starting with __ and the normal name is an alias. */
40254#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40255choke me
40256#else
40257char (*f) () = $ac_func;
40258#endif
40259#ifdef __cplusplus
40260}
40261#endif
40262
40263int
40264main ()
40265{
40266return f != $ac_func;
40267 ;
40268 return 0;
40269}
40270_ACEOF
40271rm -f conftest.$ac_objext conftest$ac_exeext
40272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40273 (eval $ac_link) 2>conftest.er1
a848cd7e 40274 ac_status=$?
ac1cb8d3
VS
40275 grep -v '^ *+' conftest.er1 >conftest.err
40276 rm -f conftest.er1
40277 cat conftest.err >&5
a848cd7e
SC
40278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40279 (exit $ac_status); } &&
07158944 40280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40282 (eval $ac_try) 2>&5
40283 ac_status=$?
40284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40285 (exit $ac_status); }; } &&
40286 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40288 (eval $ac_try) 2>&5
40289 ac_status=$?
40290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40291 (exit $ac_status); }; }; then
40292 eval "$as_ac_var=yes"
40293else
40294 echo "$as_me: failed program was:" >&5
40295sed 's/^/| /' conftest.$ac_ext >&5
40296
40297eval "$as_ac_var=no"
40298fi
ac1cb8d3
VS
40299rm -f conftest.err conftest.$ac_objext \
40300 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40301fi
40302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40303echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40304if test `eval echo '${'$as_ac_var'}'` = yes; then
40305 cat >>confdefs.h <<_ACEOF
40306#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40307_ACEOF
40308 have_ceil=1
40309fi
40310done
40311
40312 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40313echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40314 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40315 echo "$as_me:$LINENO: result: yes" >&5
40316echo "${ECHO_T}yes" >&6
40317 else
40318 echo "$as_me:$LINENO: result: no" >&5
40319echo "${ECHO_T}no" >&6
40320 # not sure we should warn the user, crash, etc.
40321 fi
40322fi
40323
40324if test "$wxUSE_GUI" = "yes"; then
40325
40326
8bce5cda
MW
40327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40328 dynamic erase event exec font image minimal mobile \
40329 mobile/wxedit mobile/styles propsize render \
40330 richedit rotate shaped vscroll widgets"
a848cd7e
SC
40331
40332 if test "$wxUSE_MONOLITHIC" != "yes"; then
40333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40334 fi
0b78747f 40335 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
40336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40337 if test "$wxUSE_UNIVERSAL" != "yes"; then
40338 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40339 fi
40340 fi
40341 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 40343 fi
a848cd7e
SC
40344else
40345 SAMPLES_SUBDIRS="console"
40346fi
40347
40348
ceec2216 40349INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40350-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40351
40352if test "$GXX" = yes ; then
5294a27e
VZ
40353 CWARNINGS="-Wall"
40354 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40355 fi
40356
40357EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40358
0c3c69fc 40359CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40360CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40361CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40362
95986553
DE
40363if test "x$MWCC" = "xyes"; then
40364
40365 CC="$CC -cwd source -I-"
40366 CXX="$CXX -cwd source -I-"
40367fi
40368
a848cd7e 40369
0c3c69fc 40370LIBS=`echo $LIBS`
a848cd7e
SC
40371EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40372EXTRALIBS_XML="$EXPAT_LINK"
40373EXTRALIBS_HTML="$MSPACK_LINK"
40374EXTRALIBS_ODBC="$ODBC_LINK"
40375if test "$wxUSE_GUI" = "yes"; then
2e350179 40376 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40377fi
40378if test "$wxUSE_OPENGL" = "yes"; then
40379 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40380fi
40381
40382LDFLAGS="$LDFLAGS $PROFILE"
40383
40384if test "$wxUSE_GTK" = 1; then
40385 WXCONFIG_INCLUDE=
40386else
40387 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40388fi
40389
40390WXCONFIG_EXTRALIBS="$LIBS"
40391
40392if test "$wxUSE_REGEX" = "builtin" ; then
40393 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
40394fi
40395if test "$wxUSE_EXPAT" = "builtin" ; then
40396 wxconfig_3rdparty="$wxconfig_3rdparty expat"
40397fi
40398if test "$wxUSE_ODBC" = "builtin" ; then
40399 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40400fi
40401if test "$wxUSE_LIBTIFF" = "builtin" ; then
40402 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
40403fi
40404if test "$wxUSE_LIBJPEG" = "builtin" ; then
40405 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
40406fi
40407if test "$wxUSE_LIBPNG" = "builtin" ; then
40408 wxconfig_3rdparty="$wxconfig_3rdparty png"
40409fi
40410if test "$wxUSE_ZLIB" = "builtin" ; then
40411 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
40412fi
40413if test "$wxUSE_ODBC" = "builtin" ; then
40414 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40415fi
40416
40417for i in $wxconfig_3rdparty ; do
ceec2216 40418 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
40419done
40420
40421
40422if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40423 WXUNIV=1
40424else
40425 WXUNIV=0
40426fi
40427
40428
40429
40430
40431
40432
40433
40434
40435
40436if test $wxUSE_MONOLITHIC = "yes" ; then
40437 MONOLITHIC=1
40438else
40439 MONOLITHIC=0
40440fi
40441
40442if test $wxUSE_PLUGINS = "yes" ; then
40443 USE_PLUGINS=1
40444else
40445 USE_PLUGINS=0
40446fi
40447
40448if test $wxUSE_ODBC != "no" ; then
40449 USE_ODBC=1
40450else
40451 USE_ODBC=0
40452fi
40453
40454if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40455 OFFICIAL_BUILD=1
40456else
40457 OFFICIAL_BUILD=0
40458fi
40459
40460
40461
40462
40463
40464
40465
40466
40467
40468
40469
40470
40471
40472
40473
40474
40475
40476
40477
ceec2216 40478
d1c38808 40479
a848cd7e
SC
40480
40481
40482TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40483
40484
40485
40486
40487
40488
40489
40490
4d4ff94c
VZ
40491case "$TOOLKIT" in
40492 GTK)
40493 TOOLKIT_USER="GTK+"
40494 if test "$WXGTK20" = 1; then
40495 TOOLKIT_USER="$TOOLKIT_USER 2"
40496 fi
9a8f0513 40497 ;;
4d4ff94c
VZ
40498
40499 *)
40500 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40501 ;;
4d4ff94c 40502esac
a848cd7e 40503
9a8f0513 40504
1e9e8aba
DE
40505
40506
a848cd7e
SC
40507 if test "x$BAKEFILE_HOST" = "x"; then
40508 BAKEFILE_HOST="${host}"
40509 fi
40510
40511 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40512
40513 if test -n "$ac_tool_prefix"; then
40514 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40515set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40516echo "$as_me:$LINENO: checking for $ac_word" >&5
40517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40518if test "${ac_cv_prog_RANLIB+set}" = set; then
40519 echo $ECHO_N "(cached) $ECHO_C" >&6
40520else
40521 if test -n "$RANLIB"; then
40522 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40523else
40524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40525for as_dir in $PATH
40526do
40527 IFS=$as_save_IFS
40528 test -z "$as_dir" && as_dir=.
40529 for ac_exec_ext in '' $ac_executable_extensions; do
40530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40531 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40533 break 2
40534 fi
40535done
40536done
40537
40538fi
40539fi
40540RANLIB=$ac_cv_prog_RANLIB
40541if test -n "$RANLIB"; then
40542 echo "$as_me:$LINENO: result: $RANLIB" >&5
40543echo "${ECHO_T}$RANLIB" >&6
40544else
40545 echo "$as_me:$LINENO: result: no" >&5
40546echo "${ECHO_T}no" >&6
40547fi
40548
40549fi
40550if test -z "$ac_cv_prog_RANLIB"; then
40551 ac_ct_RANLIB=$RANLIB
40552 # Extract the first word of "ranlib", so it can be a program name with args.
40553set dummy ranlib; ac_word=$2
40554echo "$as_me:$LINENO: checking for $ac_word" >&5
40555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40556if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40557 echo $ECHO_N "(cached) $ECHO_C" >&6
40558else
40559 if test -n "$ac_ct_RANLIB"; then
40560 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40561else
40562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40563for as_dir in $PATH
40564do
40565 IFS=$as_save_IFS
40566 test -z "$as_dir" && as_dir=.
40567 for ac_exec_ext in '' $ac_executable_extensions; do
40568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40569 ac_cv_prog_ac_ct_RANLIB="ranlib"
40570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40571 break 2
40572 fi
40573done
40574done
40575
40576 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40577fi
40578fi
40579ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40580if test -n "$ac_ct_RANLIB"; then
40581 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40582echo "${ECHO_T}$ac_ct_RANLIB" >&6
40583else
40584 echo "$as_me:$LINENO: result: no" >&5
40585echo "${ECHO_T}no" >&6
40586fi
40587
40588 RANLIB=$ac_ct_RANLIB
40589else
40590 RANLIB="$ac_cv_prog_RANLIB"
40591fi
40592
40593 # Find a good install program. We prefer a C program (faster),
40594# so one script is as good as another. But avoid the broken or
40595# incompatible versions:
40596# SysV /etc/install, /usr/sbin/install
40597# SunOS /usr/etc/install
40598# IRIX /sbin/install
40599# AIX /bin/install
40600# AmigaOS /C/install, which installs bootblocks on floppy discs
40601# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40602# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40603# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40604# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40605# ./install, which can be erroneously created by make from ./install.sh.
40606echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40607echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40608if test -z "$INSTALL"; then
40609if test "${ac_cv_path_install+set}" = set; then
40610 echo $ECHO_N "(cached) $ECHO_C" >&6
40611else
40612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40613for as_dir in $PATH
40614do
40615 IFS=$as_save_IFS
40616 test -z "$as_dir" && as_dir=.
40617 # Account for people who put trailing slashes in PATH elements.
40618case $as_dir/ in
40619 ./ | .// | /cC/* | \
40620 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40621 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40622 /usr/ucb/* ) ;;
40623 *)
40624 # OSF1 and SCO ODT 3.0 have their own names for install.
40625 # Don't use installbsd from OSF since it installs stuff as root
40626 # by default.
40627 for ac_prog in ginstall scoinst install; do
40628 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40629 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40630 if test $ac_prog = install &&
40631 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40632 # AIX install. It has an incompatible calling convention.
40633 :
40634 elif test $ac_prog = install &&
40635 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40636 # program-specific install script used by HP pwplus--don't use.
40637 :
40638 else
40639 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40640 break 3
40641 fi
40642 fi
a848cd7e
SC
40643 done
40644 done
40645 ;;
40646esac
40647done
40648
40649
40650fi
40651 if test "${ac_cv_path_install+set}" = set; then
40652 INSTALL=$ac_cv_path_install
40653 else
40654 # As a last resort, use the slow shell script. We don't cache a
40655 # path for INSTALL within a source directory, because that will
40656 # break other packages using the cache if that directory is
40657 # removed, or if the path is relative.
40658 INSTALL=$ac_install_sh
40659 fi
40660fi
40661echo "$as_me:$LINENO: result: $INSTALL" >&5
40662echo "${ECHO_T}$INSTALL" >&6
40663
40664# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40665# It thinks the first close brace ends the variable substitution.
40666test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40667
40668test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40669
40670test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40671
40672 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40673echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40674LN_S=$as_ln_s
40675if test "$LN_S" = "ln -s"; then
40676 echo "$as_me:$LINENO: result: yes" >&5
40677echo "${ECHO_T}yes" >&6
40678else
40679 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40680echo "${ECHO_T}no, using $LN_S" >&6
40681fi
40682
40683
40684 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40685echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40686set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40687if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40688 echo $ECHO_N "(cached) $ECHO_C" >&6
40689else
40690 cat >conftest.make <<\_ACEOF
40691all:
40692 @echo 'ac_maketemp="$(MAKE)"'
40693_ACEOF
40694# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40695eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40696if test -n "$ac_maketemp"; then
40697 eval ac_cv_prog_make_${ac_make}_set=yes
40698else
40699 eval ac_cv_prog_make_${ac_make}_set=no
40700fi
40701rm -f conftest.make
40702fi
40703if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40704 echo "$as_me:$LINENO: result: yes" >&5
40705echo "${ECHO_T}yes" >&6
40706 SET_MAKE=
40707else
40708 echo "$as_me:$LINENO: result: no" >&5
40709echo "${ECHO_T}no" >&6
40710 SET_MAKE="MAKE=${MAKE-make}"
40711fi
40712
40713
40714
40715 if test -n "$ac_tool_prefix"; then
40716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40717set dummy ${ac_tool_prefix}ar; ac_word=$2
40718echo "$as_me:$LINENO: checking for $ac_word" >&5
40719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40720if test "${ac_cv_prog_AR+set}" = set; then
40721 echo $ECHO_N "(cached) $ECHO_C" >&6
40722else
40723 if test -n "$AR"; then
40724 ac_cv_prog_AR="$AR" # Let the user override the test.
40725else
40726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40727for as_dir in $PATH
40728do
40729 IFS=$as_save_IFS
40730 test -z "$as_dir" && as_dir=.
40731 for ac_exec_ext in '' $ac_executable_extensions; do
40732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40733 ac_cv_prog_AR="${ac_tool_prefix}ar"
40734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40735 break 2
40736 fi
40737done
40738done
40739
40740fi
40741fi
40742AR=$ac_cv_prog_AR
40743if test -n "$AR"; then
40744 echo "$as_me:$LINENO: result: $AR" >&5
40745echo "${ECHO_T}$AR" >&6
40746else
40747 echo "$as_me:$LINENO: result: no" >&5
40748echo "${ECHO_T}no" >&6
40749fi
40750
40751fi
40752if test -z "$ac_cv_prog_AR"; then
40753 ac_ct_AR=$AR
40754 # Extract the first word of "ar", so it can be a program name with args.
40755set dummy ar; ac_word=$2
40756echo "$as_me:$LINENO: checking for $ac_word" >&5
40757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40758if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40759 echo $ECHO_N "(cached) $ECHO_C" >&6
40760else
40761 if test -n "$ac_ct_AR"; then
40762 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40763else
40764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40765for as_dir in $PATH
40766do
40767 IFS=$as_save_IFS
40768 test -z "$as_dir" && as_dir=.
40769 for ac_exec_ext in '' $ac_executable_extensions; do
40770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40771 ac_cv_prog_ac_ct_AR="ar"
40772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40773 break 2
40774 fi
40775done
40776done
40777
40778 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
40779fi
40780fi
40781ac_ct_AR=$ac_cv_prog_ac_ct_AR
40782if test -n "$ac_ct_AR"; then
40783 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
40784echo "${ECHO_T}$ac_ct_AR" >&6
40785else
40786 echo "$as_me:$LINENO: result: no" >&5
40787echo "${ECHO_T}no" >&6
40788fi
40789
40790 AR=$ac_ct_AR
40791else
40792 AR="$ac_cv_prog_AR"
40793fi
40794
40795 if test -n "$ac_tool_prefix"; then
40796 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
40797set dummy ${ac_tool_prefix}strip; ac_word=$2
40798echo "$as_me:$LINENO: checking for $ac_word" >&5
40799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40800if test "${ac_cv_prog_STRIP+set}" = set; then
40801 echo $ECHO_N "(cached) $ECHO_C" >&6
40802else
40803 if test -n "$STRIP"; then
40804 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
40805else
40806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40807for as_dir in $PATH
40808do
40809 IFS=$as_save_IFS
40810 test -z "$as_dir" && as_dir=.
40811 for ac_exec_ext in '' $ac_executable_extensions; do
40812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40813 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
40814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40815 break 2
40816 fi
40817done
40818done
40819
40820fi
40821fi
40822STRIP=$ac_cv_prog_STRIP
40823if test -n "$STRIP"; then
40824 echo "$as_me:$LINENO: result: $STRIP" >&5
40825echo "${ECHO_T}$STRIP" >&6
40826else
40827 echo "$as_me:$LINENO: result: no" >&5
40828echo "${ECHO_T}no" >&6
40829fi
40830
40831fi
40832if test -z "$ac_cv_prog_STRIP"; then
40833 ac_ct_STRIP=$STRIP
40834 # Extract the first word of "strip", so it can be a program name with args.
40835set dummy strip; ac_word=$2
40836echo "$as_me:$LINENO: checking for $ac_word" >&5
40837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40838if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
40839 echo $ECHO_N "(cached) $ECHO_C" >&6
40840else
40841 if test -n "$ac_ct_STRIP"; then
40842 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
40843else
40844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40845for as_dir in $PATH
40846do
40847 IFS=$as_save_IFS
40848 test -z "$as_dir" && as_dir=.
40849 for ac_exec_ext in '' $ac_executable_extensions; do
40850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40851 ac_cv_prog_ac_ct_STRIP="strip"
40852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40853 break 2
40854 fi
40855done
40856done
40857
40858 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
40859fi
40860fi
40861ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
40862if test -n "$ac_ct_STRIP"; then
40863 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
40864echo "${ECHO_T}$ac_ct_STRIP" >&6
40865else
40866 echo "$as_me:$LINENO: result: no" >&5
40867echo "${ECHO_T}no" >&6
40868fi
40869
40870 STRIP=$ac_ct_STRIP
40871else
40872 STRIP="$ac_cv_prog_STRIP"
40873fi
40874
40875 if test -n "$ac_tool_prefix"; then
40876 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
40877set dummy ${ac_tool_prefix}nm; ac_word=$2
40878echo "$as_me:$LINENO: checking for $ac_word" >&5
40879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40880if test "${ac_cv_prog_NM+set}" = set; then
40881 echo $ECHO_N "(cached) $ECHO_C" >&6
40882else
40883 if test -n "$NM"; then
40884 ac_cv_prog_NM="$NM" # Let the user override the test.
40885else
40886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40887for as_dir in $PATH
40888do
40889 IFS=$as_save_IFS
40890 test -z "$as_dir" && as_dir=.
40891 for ac_exec_ext in '' $ac_executable_extensions; do
40892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40893 ac_cv_prog_NM="${ac_tool_prefix}nm"
40894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40895 break 2
40896 fi
40897done
40898done
40899
40900fi
40901fi
40902NM=$ac_cv_prog_NM
40903if test -n "$NM"; then
40904 echo "$as_me:$LINENO: result: $NM" >&5
40905echo "${ECHO_T}$NM" >&6
40906else
40907 echo "$as_me:$LINENO: result: no" >&5
40908echo "${ECHO_T}no" >&6
40909fi
40910
40911fi
40912if test -z "$ac_cv_prog_NM"; then
40913 ac_ct_NM=$NM
40914 # Extract the first word of "nm", so it can be a program name with args.
40915set dummy nm; ac_word=$2
40916echo "$as_me:$LINENO: checking for $ac_word" >&5
40917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40918if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
40919 echo $ECHO_N "(cached) $ECHO_C" >&6
40920else
40921 if test -n "$ac_ct_NM"; then
40922 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
40923else
40924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40925for as_dir in $PATH
40926do
40927 IFS=$as_save_IFS
40928 test -z "$as_dir" && as_dir=.
40929 for ac_exec_ext in '' $ac_executable_extensions; do
40930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40931 ac_cv_prog_ac_ct_NM="nm"
40932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40933 break 2
40934 fi
40935done
40936done
40937
40938 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
40939fi
40940fi
40941ac_ct_NM=$ac_cv_prog_ac_ct_NM
40942if test -n "$ac_ct_NM"; then
40943 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
40944echo "${ECHO_T}$ac_ct_NM" >&6
40945else
40946 echo "$as_me:$LINENO: result: no" >&5
40947echo "${ECHO_T}no" >&6
40948fi
40949
40950 NM=$ac_ct_NM
40951else
40952 NM="$ac_cv_prog_NM"
40953fi
40954
40955
40956 case ${BAKEFILE_HOST} in
40957 *-hp-hpux* )
1e9e8aba 40958 INSTALL_DIR="mkdir -p"
a848cd7e
SC
40959 ;;
40960 *) INSTALL_DIR="$INSTALL -d"
40961 ;;
40962 esac
40963
40964
40965 LDFLAGS_GUI=
40966 case ${BAKEFILE_HOST} in
40967 *-*-cygwin* | *-*-mingw32* )
40968 LDFLAGS_GUI="-mwindows"
40969 esac
40970
40971
40972 fi
40973
40974 echo "$as_me:$LINENO: checking if make is GNU make" >&5
40975echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
40976if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
40977 echo $ECHO_N "(cached) $ECHO_C" >&6
40978else
40979
40980 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
40981 egrep -s GNU > /dev/null); then
40982 bakefile_cv_prog_makeisgnu="yes"
40983 else
40984 bakefile_cv_prog_makeisgnu="no"
40985 fi
40986
40987fi
40988echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
40989echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
40990
40991 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
40992 IF_GNU_MAKE=""
40993 else
40994 IF_GNU_MAKE="#"
40995 fi
40996
40997
40998
40999 PLATFORM_UNIX=0
41000 PLATFORM_WIN32=0
41001 PLATFORM_MSDOS=0
41002 PLATFORM_MAC=0
1e9e8aba 41003 PLATFORM_MACOS=0
a848cd7e
SC
41004 PLATFORM_MACOSX=0
41005 PLATFORM_OS2=0
1e9e8aba 41006 PLATFORM_BEOS=0
a848cd7e
SC
41007
41008 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41009 case "${BAKEFILE_HOST}" in
41010 *-*-cygwin* | *-*-mingw32* )
41011 PLATFORM_WIN32=1
41012 ;;
41013 *-pc-msdosdjgpp )
41014 PLATFORM_MSDOS=1
41015 ;;
41016 *-pc-os2_emx | *-pc-os2-emx )
41017 PLATFORM_OS2=1
41018 ;;
41019 powerpc-*-darwin* )
41020 PLATFORM_MAC=1
41021 PLATFORM_MACOSX=1
41022 ;;
1e9e8aba
DE
41023 *-*-beos* )
41024 PLATFORM_BEOS=1
41025 ;;
41026 powerpc-apple-macos* )
41027 PLATFORM_MAC=1
41028 PLATFORM_MACOS=1
41029 ;;
a848cd7e
SC
41030 * )
41031 PLATFORM_UNIX=1
41032 ;;
41033 esac
41034 else
41035 case "$BAKEFILE_FORCE_PLATFORM" in
41036 win32 )
41037 PLATFORM_WIN32=1
41038 ;;
41039 msdos )
41040 PLATFORM_MSDOS=1
41041 ;;
41042 os2 )
41043 PLATFORM_OS2=1
41044 ;;
41045 darwin )
41046 PLATFORM_MAC=1
41047 PLATFORM_MACOSX=1
41048 ;;
41049 unix )
41050 PLATFORM_UNIX=1
41051 ;;
1e9e8aba
DE
41052 beos )
41053 PLATFORM_BEOS=1
41054 ;;
a848cd7e
SC
41055 * )
41056 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41057echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41058 { (exit 1); exit 1; }; }
41059 ;;
41060 esac
41061 fi
41062
41063
41064
41065
41066
41067
41068
41069
41070
1e9e8aba
DE
41071
41072
a848cd7e
SC
41073 # Check whether --enable-omf or --disable-omf was given.
41074if test "${enable_omf+set}" = set; then
41075 enableval="$enable_omf"
41076 bk_os2_use_omf="$enableval"
41077fi;
41078
41079 case "${BAKEFILE_HOST}" in
41080 *-*-darwin* )
41081 CFLAGS="$CFLAGS -fno-common"
41082 CXXFLAGS="$CXXFLAGS -fno-common"
41083 ;;
41084
41085 *-pc-os2_emx | *-pc-os2-emx )
41086 if test "x$bk_os2_use_omf" = "xyes" ; then
41087 AR=emxomfar
41088 RANLIB=:
41089 LDFLAGS="-Zomf $LDFLAGS"
41090 CFLAGS="-Zomf $CFLAGS"
41091 CXXFLAGS="-Zomf $CXXFLAGS"
41092 OS2_LIBEXT="lib"
41093 else
41094 OS2_LIBEXT="a"
41095 fi
41096 ;;
1e9e8aba
DE
41097
41098 i*86-*-beos* )
41099 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41100 ;;
a848cd7e
SC
41101 esac
41102
41103
41104 SO_SUFFIX="so"
41105 SO_SUFFIX_MODULE="so"
41106 EXEEXT=""
41107 LIBPREFIX="lib"
41108 LIBEXT=".a"
41109 DLLPREFIX="lib"
41110 DLLPREFIX_MODULE=""
41111 DLLIMP_SUFFIX=""
41112
41113 case "${BAKEFILE_HOST}" in
41114 *-hp-hpux* )
41115 SO_SUFFIX="sl"
41116 SO_SUFFIX_MODULE="sl"
41117 ;;
41118 *-*-aix* )
41119 SO_SUFFIX="a"
41120 SO_SUFFIX_MODULE="a"
41121 ;;
41122 *-*-cygwin* | *-*-mingw32* )
41123 SO_SUFFIX="dll"
41124 SO_SUFFIX_MODULE="dll"
41125 DLLIMP_SUFFIX="dll.a"
41126 EXEEXT=".exe"
41127 DLLPREFIX=""
41128 ;;
41129 *-pc-msdosdjgpp )
41130 EXEEXT=".exe"
41131 DLLPREFIX=""
41132 ;;
41133 *-pc-os2_emx | *-pc-os2-emx )
41134 SO_SUFFIX="dll"
41135 SO_SUFFIX_MODULE="dll"
41136 DLLIMP_SUFFIX=$OS2_LIBEXT
41137 EXEEXT=".exe"
41138 DLLPREFIX=""
41139 LIBPREFIX=""
41140 LIBEXT=".$OS2_LIBEXT"
41141 ;;
41142 powerpc-*-darwin* )
41143 SO_SUFFIX="dylib"
41144 SO_SUFFIX_MODULE="bundle"
41145 ;;
41146 esac
41147
41148 if test "x$DLLIMP_SUFFIX" = "x" ; then
41149 DLLIMP_SUFFIX="$SO_SUFFIX"
41150 fi
41151
41152
41153
41154
41155
41156
41157
41158
41159
41160
41161
1e9e8aba
DE
41162 PIC_FLAG=""
41163 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41164 PIC_FLAG="-fPIC"
41165 fi
41166
1e9e8aba
DE
41167 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41168 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41169
a848cd7e
SC
41170 case "${BAKEFILE_HOST}" in
41171 *-hp-hpux* )
1e9e8aba 41172 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41173 LDFLAGS="$LDFLAGS -L/usr/lib"
41174
41175 SHARED_LD_CC="${CC} -b -o"
41176 SHARED_LD_CXX="${CXX} -b -o"
41177 PIC_FLAG="+Z"
41178 fi
41179 ;;
41180
41181 *-*-linux* )
41182 if test "x$GCC" != "xyes"; then
41183 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41184echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41185if test "${bakefile_cv_prog_icc+set}" = set; then
41186 echo $ECHO_N "(cached) $ECHO_C" >&6
41187else
41188
41189 cat >conftest.$ac_ext <<_ACEOF
41190/* confdefs.h. */
41191_ACEOF
41192cat confdefs.h >>conftest.$ac_ext
41193cat >>conftest.$ac_ext <<_ACEOF
41194/* end confdefs.h. */
41195
41196int
41197main ()
41198{
41199
41200 #ifndef __INTEL_COMPILER
41201 #error Not icc
41202 #endif
41203
41204 ;
41205 return 0;
41206}
41207_ACEOF
41208rm -f conftest.$ac_objext
41209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41210 (eval $ac_compile) 2>conftest.er1
a848cd7e 41211 ac_status=$?
ac1cb8d3
VS
41212 grep -v '^ *+' conftest.er1 >conftest.err
41213 rm -f conftest.er1
41214 cat conftest.err >&5
a848cd7e
SC
41215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41216 (exit $ac_status); } &&
07158944 41217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41219 (eval $ac_try) 2>&5
41220 ac_status=$?
41221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41222 (exit $ac_status); }; } &&
41223 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41225 (eval $ac_try) 2>&5
41226 ac_status=$?
41227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41228 (exit $ac_status); }; }; then
41229 bakefile_cv_prog_icc=yes
41230else
41231 echo "$as_me: failed program was:" >&5
41232sed 's/^/| /' conftest.$ac_ext >&5
41233
41234bakefile_cv_prog_icc=no
41235
41236fi
ac1cb8d3 41237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41238
41239fi
41240echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41241echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41242 if test "$bakefile_cv_prog_icc" = "yes"; then
41243 PIC_FLAG="-KPIC"
41244 fi
41245 fi
41246 ;;
41247
41248 *-*-solaris2* )
41249 if test "x$GCC" != xyes ; then
41250 SHARED_LD_CC="${CC} -G -o"
41251 SHARED_LD_CXX="${CXX} -G -o"
41252 PIC_FLAG="-KPIC"
41253 fi
41254 ;;
41255
41256 *-*-darwin* )
41257
41258 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41259echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41260if test "${wx_cv_gcc31+set}" = set; then
41261 echo $ECHO_N "(cached) $ECHO_C" >&6
41262else
41263
41264 cat >conftest.$ac_ext <<_ACEOF
41265/* confdefs.h. */
41266_ACEOF
41267cat confdefs.h >>conftest.$ac_ext
41268cat >>conftest.$ac_ext <<_ACEOF
41269/* end confdefs.h. */
41270
41271int
41272main ()
41273{
41274
41275 #if (__GNUC__ < 3) || \
41276 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41277 #error old gcc
41278 #endif
41279
41280 ;
41281 return 0;
41282}
41283_ACEOF
41284rm -f conftest.$ac_objext
41285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41286 (eval $ac_compile) 2>conftest.er1
a848cd7e 41287 ac_status=$?
ac1cb8d3
VS
41288 grep -v '^ *+' conftest.er1 >conftest.err
41289 rm -f conftest.er1
41290 cat conftest.err >&5
a848cd7e
SC
41291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41292 (exit $ac_status); } &&
07158944 41293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41295 (eval $ac_try) 2>&5
41296 ac_status=$?
41297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41298 (exit $ac_status); }; } &&
41299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41301 (eval $ac_try) 2>&5
41302 ac_status=$?
41303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41304 (exit $ac_status); }; }; then
41305
41306 wx_cv_gcc31=yes
41307
41308else
41309 echo "$as_me: failed program was:" >&5
41310sed 's/^/| /' conftest.$ac_ext >&5
41311
41312
41313 wx_cv_gcc31=no
41314
41315
41316fi
ac1cb8d3 41317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41318
41319fi
41320echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41321echo "${ECHO_T}$wx_cv_gcc31" >&6
41322 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41323
41324D='$'
41325cat <<EOF >shared-ld-sh
a848cd7e
SC
41326#!/bin/sh
41327#-----------------------------------------------------------------------------
41328#-- Name: distrib/mac/shared-ld-sh
41329#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41330#-- Author: Gilles Depeyrot
41331#-- Copyright: (c) 2002 Gilles Depeyrot
41332#-- Licence: any use permitted
41333#-----------------------------------------------------------------------------
41334
41335verbose=0
41336args=""
41337objects=""
41338linking_flag="-dynamiclib"
41339
473276a9
VS
41340while test ${D}# -gt 0; do
41341 case ${D}1 in
a848cd7e
SC
41342
41343 -v)
41344 verbose=1
41345 ;;
41346
41347 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41348 # collect these options and values
473276a9 41349 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41350 shift
41351 ;;
41352
41353 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41354 # collect these options
473276a9 41355 args="${D}{args} ${D}1"
a848cd7e
SC
41356 ;;
41357
41358 -dynamiclib|-bundle)
473276a9 41359 linking_flag="${D}1"
a848cd7e
SC
41360 ;;
41361
41362 -*)
473276a9 41363 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41364 exit 1
41365 ;;
41366
41367 *.o | *.a | *.dylib)
41368 # collect object files
473276a9 41369 objects="${D}{objects} ${D}1"
a848cd7e
SC
41370 ;;
41371
41372 *)
473276a9 41373 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41374 exit 1
41375 ;;
41376
41377 esac
41378 shift
41379done
41380
41381#
41382# Link one module containing all the others
41383#
473276a9
VS
41384if test ${D}{verbose} = 1; then
41385 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41386fi
473276a9
VS
41387c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41388status=${D}?
41389if test ${D}{status} != 0; then
41390 exit ${D}{status}
a848cd7e
SC
41391fi
41392
41393#
41394# Link the shared library from the single module created
41395#
473276a9
VS
41396if test ${D}{verbose} = 1; then
41397 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41398fi
473276a9
VS
41399c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41400status=${D}?
41401if test ${D}{status} != 0; then
41402 exit ${D}{status}
a848cd7e
SC
41403fi
41404
41405#
41406# Remove intermediate module
41407#
473276a9 41408rm -f master.${D}${D}.o
a848cd7e
SC
41409
41410exit 0
41411EOF
473276a9 41412
a848cd7e
SC
41413 chmod +x shared-ld-sh
41414
41415 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41416 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41417 SHARED_LD_CXX="$SHARED_LD_CC"
41418 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41419 else
41420 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41421 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41422 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41423 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41424 fi
41425
41426 PIC_FLAG="-dynamic -fPIC"
41427 ;;
41428
41429 *-*-aix* )
41430 if test "x$GCC" != "xyes"; then
41431 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41432set dummy makeC++SharedLib; ac_word=$2
41433echo "$as_me:$LINENO: checking for $ac_word" >&5
41434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41435if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41436 echo $ECHO_N "(cached) $ECHO_C" >&6
41437else
41438 if test -n "$AIX_CXX_LD"; then
41439 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41440else
41441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41442for as_dir in $PATH
41443do
41444 IFS=$as_save_IFS
41445 test -z "$as_dir" && as_dir=.
41446 for ac_exec_ext in '' $ac_executable_extensions; do
41447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41448 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41450 break 2
41451 fi
41452done
41453done
41454
41455 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41456fi
41457fi
41458AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41459if test -n "$AIX_CXX_LD"; then
41460 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41461echo "${ECHO_T}$AIX_CXX_LD" >&6
41462else
41463 echo "$as_me:$LINENO: result: no" >&5
41464echo "${ECHO_T}no" >&6
41465fi
41466
41467 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41468 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41469 fi
41470 ;;
41471
41472 *-*-beos* )
1e9e8aba
DE
41473 SHARED_LD_CC="${LD} -nostart -o"
41474 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41475 ;;
41476
41477 *-*-irix* )
41478 if test "x$GCC" != "xyes"; then
41479 PIC_FLAG="-KPIC"
41480 fi
41481 ;;
41482
41483 *-*-cygwin* | *-*-mingw32* )
41484 PIC_FLAG=""
1e9e8aba
DE
41485 SHARED_LD_CC="\$(CC) -shared -o"
41486 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41487 ;;
41488
41489 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41490 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41491 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41492 PIC_FLAG=""
473276a9
VS
41493
41494D='$'
41495cat <<EOF >dllar.sh
41496#!/bin/sh
41497#
41498# dllar - a tool to build both a .dll and an .a file
41499# from a set of object (.o) files for EMX/OS2.
41500#
41501# Written by Andrew Zabolotny, bit@freya.etu.ru
41502# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41503#
41504# This script will accept a set of files on the command line.
41505# All the public symbols from the .o files will be exported into
41506# a .DEF file, then linker will be run (through gcc) against them to
41507# build a shared library consisting of all given .o files. All libraries
41508# (.a) will be first decompressed into component .o files then act as
41509# described above. You can optionally give a description (-d "description")
41510# which will be put into .DLL. To see the list of accepted options (as well
41511# as command-line format) simply run this program without options. The .DLL
41512# is built to be imported by name (there is no guarantee that new versions
41513# of the library you build will have same ordinals for same symbols).
41514#
41515# dllar is free software; you can redistribute it and/or modify
41516# it under the terms of the GNU General Public License as published by
41517# the Free Software Foundation; either version 2, or (at your option)
41518# any later version.
41519#
41520# dllar is distributed in the hope that it will be useful,
41521# but WITHOUT ANY WARRANTY; without even the implied warranty of
41522# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41523# GNU General Public License for more details.
41524#
41525# You should have received a copy of the GNU General Public License
41526# along with dllar; see the file COPYING. If not, write to the Free
41527# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41528# 02111-1307, USA.
41529
41530# To successfuly run this program you will need:
41531# - Current drive should have LFN support (HPFS, ext2, network, etc)
41532# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41533# - gcc
41534# (used to build the .dll)
41535# - emxexp
41536# (used to create .def file from .o files)
41537# - emximp
41538# (used to create .a file from .def file)
41539# - GNU text utilites (cat, sort, uniq)
41540# used to process emxexp output
41541# - GNU file utilities (mv, rm)
41542# - GNU sed
41543# - lxlite (optional, see flag below)
41544# (used for general .dll cleanup)
41545#
41546
41547flag_USE_LXLITE=1;
41548
41549#
41550# helper functions
41551# basnam, variant of basename, which does _not_ remove the path, _iff_
41552# second argument (suffix to remove) is given
41553basnam(){
41554 case ${D}# in
41555 1)
1e9e8aba 41556 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41557 ;;
41558 2)
41559 echo ${D}1 | sed 's/'${D}2'${D}//'
41560 ;;
41561 *)
41562 echo "error in basnam ${D}*"
41563 exit 8
41564 ;;
41565 esac
41566}
41567
41568# Cleanup temporary files and output
41569CleanUp() {
41570 cd ${D}curDir
41571 for i in ${D}inputFiles ; do
41572 case ${D}i in
41573 *!)
41574 rm -rf \`basnam ${D}i !\`
41575 ;;
41576 *)
41577 ;;
41578 esac
41579 done
41580
41581 # Kill result in case of failure as there is just to many stupid make/nmake
41582 # things out there which doesn't do this.
1e9e8aba 41583 if [ ${D}# -eq 0 ]; then
473276a9
VS
41584 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41585 fi
41586}
41587
41588# Print usage and exit script with rc=1.
41589PrintHelp() {
b1d22ded
DE
41590 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41591 echo ' [-name-mangler-script script.sh]'
41592 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41593 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41594 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41595 echo ' [*.o] [*.a]'
473276a9
VS
41596 echo '*> "output_file" should have no extension.'
41597 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41598 echo ' The import library name is derived from this and is set to "name".a,'
41599 echo ' unless overridden by -import'
41600 echo '*> "importlib_name" should have no extension.'
41601 echo ' If it has the .o, or .a extension, it is automatically removed.'
41602 echo ' This name is used as the import library name and may be longer and'
41603 echo ' more descriptive than the DLL name which has to follow the old '
41604 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41605 echo '*> "script.sh may be given to override the output_file name by a'
41606 echo ' different name. It is mainly useful if the regular make process'
41607 echo ' of some package does not take into account OS/2 restriction of'
41608 echo ' DLL name lengths. It takes the importlib name as input and is'
41609 echo ' supposed to procude a shorter name as output. The script should'
41610 echo ' expect to get importlib_name without extension and should produce'
41611 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41612 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41613 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41614 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41615 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41616 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41617 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41618 echo ' If the last character of a symbol is "*", all symbols beginning'
41619 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41620 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41621 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41622 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41623 echo ' C runtime DLLs.'
b1d22ded 41624 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41625 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41626 echo ' unchanged to GCC at the end of command line.'
41627 echo '*> If you create a DLL from a library and you do not specify -o,'
41628 echo ' the basename for DLL and import library will be set to library name,'
41629 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41630 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41631 echo ' library will be renamed into gcc_s.a.'
41632 echo '--------'
41633 echo 'Example:'
41634 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41635 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41636 CleanUp
41637 exit 1
41638}
41639
41640# Execute a command.
41641# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41642# @Uses Whatever CleanUp() uses.
41643doCommand() {
41644 echo "${D}*"
41645 eval ${D}*
41646 rcCmd=${D}?
41647
1e9e8aba 41648 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41649 echo "command failed, exit code="${D}rcCmd
41650 CleanUp
41651 exit ${D}rcCmd
41652 fi
41653}
41654
41655# main routine
41656# setup globals
41657cmdLine=${D}*
41658outFile=""
41659outimpFile=""
41660inputFiles=""
b1d22ded 41661renameScript=""
473276a9
VS
41662description=""
41663CC=gcc.exe
41664CFLAGS="-s -Zcrtdll"
41665EXTRA_CFLAGS=""
41666EXPORT_BY_ORDINALS=0
41667exclude_symbols=""
41668library_flags=""
41669curDir=\`pwd\`
41670curDirS=curDir
41671case ${D}curDirS in
41672*/)
41673 ;;
41674*)
41675 curDirS=${D}{curDirS}"/"
41676 ;;
41677esac
41678# Parse commandline
41679libsToLink=0
b1d22ded 41680omfLinking=0
1e9e8aba 41681while [ ${D}1 ]; do
473276a9
VS
41682 case ${D}1 in
41683 -ord*)
41684 EXPORT_BY_ORDINALS=1;
41685 ;;
41686 -o*)
41687 shift
41688 outFile=${D}1
41689 ;;
41690 -i*)
41691 shift
41692 outimpFile=${D}1
41693 ;;
b1d22ded
DE
41694 -name-mangler-script)
41695 shift
41696 renameScript=${D}1
41697 ;;
473276a9
VS
41698 -d*)
41699 shift
41700 description=${D}1
41701 ;;
41702 -f*)
41703 shift
41704 CFLAGS=${D}1
41705 ;;
41706 -c*)
41707 shift
41708 CC=${D}1
41709 ;;
41710 -h*)
41711 PrintHelp
41712 ;;
41713 -ex*)
41714 shift
41715 exclude_symbols=${D}{exclude_symbols}${D}1" "
41716 ;;
41717 -libf*)
41718 shift
41719 library_flags=${D}{library_flags}${D}1" "
41720 ;;
41721 -nocrt*)
41722 CFLAGS="-s"
41723 ;;
41724 -nolxl*)
41725 flag_USE_LXLITE=0
41726 ;;
41727 -* | /*)
41728 case ${D}1 in
41729 -L* | -l*)
41730 libsToLink=1
41731 ;;
b1d22ded
DE
41732 -Zomf)
41733 omfLinking=1
41734 ;;
473276a9
VS
41735 *)
41736 ;;
41737 esac
41738 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41739 ;;
b1d22ded
DE
41740 *.dll)
41741 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41742 if [ ${D}omfLinking -eq 1 ]; then
41743 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41744 else
41745 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41746 fi
41747 ;;
473276a9
VS
41748 *)
41749 found=0;
1e9e8aba 41750 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
41751 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41752 else
41753 for file in ${D}1 ; do
1e9e8aba 41754 if [ -f ${D}file ]; then
473276a9
VS
41755 inputFiles="${D}{inputFiles} ${D}file"
41756 found=1
41757 fi
41758 done
1e9e8aba 41759 if [ ${D}found -eq 0 ]; then
473276a9
VS
41760 echo "ERROR: No file(s) found: "${D}1
41761 exit 8
41762 fi
41763 fi
41764 ;;
41765 esac
41766 shift
41767done # iterate cmdline words
41768
41769#
1e9e8aba 41770if [ -z "${D}inputFiles" ]; then
473276a9
VS
41771 echo "dllar: no input files"
41772 PrintHelp
41773fi
41774
41775# Now extract all .o files from .a files
41776newInputFiles=""
41777for file in ${D}inputFiles ; do
41778 case ${D}file in
41779 *.a | *.lib)
41780 case ${D}file in
41781 *.a)
41782 suffix=".a"
41783 AR="ar"
41784 ;;
41785 *.lib)
41786 suffix=".lib"
41787 AR="emxomfar"
41788 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
41789 ;;
41790 *)
41791 ;;
41792 esac
41793 dirname=\`basnam ${D}file ${D}suffix\`"_%"
41794 mkdir ${D}dirname
1e9e8aba 41795 if [ ${D}? -ne 0 ]; then
473276a9
VS
41796 echo "Failed to create subdirectory ./${D}dirname"
41797 CleanUp
41798 exit 8;
41799 fi
41800 # Append '!' to indicate archive
41801 newInputFiles="${D}newInputFiles ${D}{dirname}!"
41802 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
41803 cd ${D}curDir
41804 found=0;
41805 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 41806 if [ -f ${D}subfile ]; then
473276a9 41807 found=1
1e9e8aba 41808 if [ -s ${D}subfile ]; then
473276a9
VS
41809 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
41810 newInputFiles="${D}newInputFiles ${D}subfile"
41811 fi
41812 fi
41813 done
1e9e8aba
DE
41814 if [ ${D}found -eq 0 ]; then
41815 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
41816 fi
41817 ;;
41818 *)
41819 newInputFiles="${D}{newInputFiles} ${D}file"
41820 ;;
41821 esac
41822done
41823inputFiles="${D}newInputFiles"
41824
41825# Output filename(s).
41826do_backup=0;
1e9e8aba 41827if [ -z ${D}outFile ]; then
473276a9
VS
41828 do_backup=1;
41829 set outFile ${D}inputFiles; outFile=${D}2
41830fi
41831
41832# If it is an archive, remove the '!' and the '_%' suffixes
41833case ${D}outFile in
41834*_%!)
41835 outFile=\`basnam ${D}outFile _%!\`
41836 ;;
41837*)
41838 ;;
41839esac
41840case ${D}outFile in
41841*.dll)
41842 outFile=\`basnam ${D}outFile .dll\`
41843 ;;
41844*.DLL)
41845 outFile=\`basnam ${D}outFile .DLL\`
41846 ;;
41847*.o)
41848 outFile=\`basnam ${D}outFile .o\`
41849 ;;
41850*.obj)
41851 outFile=\`basnam ${D}outFile .obj\`
41852 ;;
41853*.a)
41854 outFile=\`basnam ${D}outFile .a\`
41855 ;;
41856*.lib)
41857 outFile=\`basnam ${D}outFile .lib\`
41858 ;;
41859*)
41860 ;;
41861esac
41862case ${D}outimpFile in
41863*.a)
41864 outimpFile=\`basnam ${D}outimpFile .a\`
41865 ;;
41866*.lib)
41867 outimpFile=\`basnam ${D}outimpFile .lib\`
41868 ;;
41869*)
41870 ;;
41871esac
1e9e8aba 41872if [ -z ${D}outimpFile ]; then
473276a9
VS
41873 outimpFile=${D}outFile
41874fi
41875defFile="${D}{outFile}.def"
41876arcFile="${D}{outimpFile}.a"
41877arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
41878
41879#create ${D}dllFile as something matching 8.3 restrictions,
41880if [ -z ${D}renameScript ] ; then
41881 dllFile="${D}outFile"
41882else
41883 dllFile=\`${D}renameScript ${D}outimpFile\`
41884fi
473276a9 41885
1e9e8aba
DE
41886if [ ${D}do_backup -ne 0 ] ; then
41887 if [ -f ${D}arcFile ] ; then
473276a9
VS
41888 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
41889 fi
1e9e8aba 41890 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
41891 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
41892 fi
41893fi
41894
41895# Extract public symbols from all the object files.
41896tmpdefFile=${D}{defFile}_%
41897rm -f ${D}tmpdefFile
41898for file in ${D}inputFiles ; do
41899 case ${D}file in
41900 *!)
41901 ;;
41902 *)
41903 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
41904 ;;
41905 esac
41906done
41907
41908# Create the def file.
41909rm -f ${D}defFile
41910echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
41911dllFile="${D}{dllFile}.dll"
41912if [ ! -z ${D}description ]; then
1e9e8aba 41913 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
41914fi
41915echo "EXPORTS" >> ${D}defFile
41916
41917doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
41918grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
41919
41920# Checks if the export is ok or not.
41921for word in ${D}exclude_symbols; do
41922 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
41923 mv ${D}{tmpdefFile}% ${D}tmpdefFile
41924done
41925
41926
1e9e8aba
DE
41927if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
41928 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
41929 sed '
41930 N
41931 : loop
1e9e8aba 41932 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
41933 t loop
41934 ' > ${D}{tmpdefFile}%
41935 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
41936else
41937 rm -f ${D}{tmpdefFile}%
41938fi
41939cat ${D}tmpdefFile >> ${D}defFile
41940rm -f ${D}tmpdefFile
41941
41942# Do linking, create implib, and apply lxlite.
41943gccCmdl="";
41944for file in ${D}inputFiles ; do
41945 case ${D}file in
41946 *!)
41947 ;;
41948 *)
41949 gccCmdl="${D}gccCmdl ${D}file"
41950 ;;
41951 esac
41952done
41953doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
41954touch "${D}{outFile}.dll"
41955
41956doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 41957if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 41958 add_flags="";
1e9e8aba 41959 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
41960 add_flags="-ynd"
41961 fi
41962 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
41963fi
41964doCommand "emxomf -s -l ${D}arcFile"
41965
41966# Successful exit.
41967CleanUp 1
41968exit 0
41969EOF
41970
41971 chmod +x dllar.sh
a848cd7e
SC
41972 ;;
41973
1e9e8aba 41974 powerpc-apple-macos* | \
a848cd7e
SC
41975 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
41976 *-*-sunos4* | \
41977 *-*-osf* | \
41978 *-*-dgux5* | \
41979 *-*-sysv5* )
41980 ;;
41981
41982 *)
41983 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
41984echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
41985 { (exit 1); exit 1; }; }
41986 esac
41987
2057db16
VS
41988 if test "x$PIC_FLAG" != "x" ; then
41989 PIC_FLAG="$PIC_FLAG -DPIC"
41990 fi
41991
a848cd7e
SC
41992 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
41993 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
41994 fi
41995 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
41996 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
41997 fi
41998
41999
42000
42001
42002
42003
42004
42005
42006 USE_SOVERSION=0
42007 USE_SOVERLINUX=0
42008 USE_SOVERSOLARIS=0
42009 USE_SOSYMLINKS=0
42010 USE_MACVERSION=0
42011 SONAME_FLAG=
42012
42013 case "${BAKEFILE_HOST}" in
b1d22ded 42014 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42015 SONAME_FLAG="-Wl,-soname,"
42016 USE_SOVERSION=1
42017 USE_SOVERLINUX=1
42018 USE_SOSYMLINKS=1
42019 ;;
42020
a848cd7e
SC
42021 *-*-solaris2* )
42022 SONAME_FLAG="-h "
42023 USE_SOVERSION=1
42024 USE_SOVERSOLARIS=1
42025 USE_SOSYMLINKS=1
42026 ;;
42027
42028 *-*-darwin* )
42029 USE_MACVERSION=1
42030 USE_SOVERSION=1
42031 USE_SOSYMLINKS=1
42032 ;;
42033 esac
42034
42035
42036
42037
42038
42039
42040
42041
42042
42043 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42044echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42045 DEPS_TRACKING=0
42046
42047 if test "x$GCC" = "xyes"; then
42048 DEPSMODE=gcc
42049 DEPS_TRACKING=1
42050 case "${BAKEFILE_HOST}" in
42051 powerpc-*-darwin* )
42052 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42053 ;;
42054 * )
42055 DEPSFLAG_GCC="-MMD"
42056 ;;
42057 esac
42058 echo "$as_me:$LINENO: result: gcc" >&5
42059echo "${ECHO_T}gcc" >&6
b1d22ded 42060 elif test "x$MWCC" = "xyes"; then
81f90336 42061 DEPSMODE=mwcc
b1d22ded 42062 DEPS_TRACKING=1
81f90336 42063 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42064 echo "$as_me:$LINENO: result: mwcc" >&5
42065echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42066 else
42067 echo "$as_me:$LINENO: result: none" >&5
42068echo "${ECHO_T}none" >&6
42069 fi
42070
42071 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42072
42073D='$'
42074cat <<EOF >bk-deps
a848cd7e
SC
42075#!/bin/sh
42076
42077# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42078# script. It is used to track C/C++ files dependencies in portable way.
42079#
42080# Permission is given to use this file in any way.
42081
473276a9 42082DEPSMODE=${DEPSMODE}
a848cd7e 42083DEPSDIR=.deps
473276a9 42084DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42085DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42086
473276a9 42087mkdir -p ${D}DEPSDIR
a848cd7e 42088
473276a9
VS
42089if test ${D}DEPSMODE = gcc ; then
42090 ${D}* ${D}{DEPSFLAG_GCC}
42091 status=${D}?
42092 if test ${D}{status} != 0 ; then
42093 exit ${D}{status}
a848cd7e
SC
42094 fi
42095 # move created file to the location we want it in:
473276a9
VS
42096 while test ${D}# -gt 0; do
42097 case "${D}1" in
a848cd7e
SC
42098 -o )
42099 shift
473276a9 42100 objfile=${D}1
a848cd7e
SC
42101 ;;
42102 -* )
42103 ;;
42104 * )
473276a9 42105 srcfile=${D}1
a848cd7e
SC
42106 ;;
42107 esac
42108 shift
42109 done
1e9e8aba
DE
42110 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42111 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42112 if test -f ${D}depfile ; then
42113 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42114 rm -f ${D}depfile
a848cd7e 42115 else
1e9e8aba 42116 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42117 if test -f ${D}depfile ; then
42118 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42119 rm -f ${D}depfile
a848cd7e
SC
42120 fi
42121 fi
42122 exit 0
81f90336
MW
42123elif test ${D}DEPSMODE = mwcc ; then
42124 ${D}*
42125 status=${D}?
42126 if test ${D}{status} != 0 ; then
42127 exit ${D}{status}
42128 fi
42129 # Run mwcc again with -MM and redirect into the dep file we want
42130 # NOTE: We can't use shift here because we need ${D}* to be valid
42131 prevarg=
42132 for arg in ${D}* ; do
42133 if test "${D}prevarg" = "-o"; then
42134 objfile=${D}arg
42135 else
42136 case "${D}arg" in
42137 -* )
42138 ;;
42139 * )
42140 srcfile=${D}arg
42141 ;;
42142 esac
42143 fi
42144 prevarg="${D}arg"
42145 done
42146 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42147 exit 0
a848cd7e 42148else
473276a9
VS
42149 ${D}*
42150 exit ${D}?
a848cd7e
SC
42151fi
42152EOF
473276a9 42153
a848cd7e
SC
42154 chmod +x bk-deps
42155 fi
42156
42157
42158
42159
42160 RESCOMP=
42161 SETFILE=
42162
42163 case ${BAKEFILE_HOST} in
42164 *-*-cygwin* | *-*-mingw32* )
42165 if test "$build" != "$host" ; then
42166 RESCOMP=$host_alias-windres
42167 else
42168 # Extract the first word of "windres", so it can be a program name with args.
42169set dummy windres; ac_word=$2
42170echo "$as_me:$LINENO: checking for $ac_word" >&5
42171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42172if test "${ac_cv_prog_RESCOMP+set}" = set; then
42173 echo $ECHO_N "(cached) $ECHO_C" >&6
42174else
42175 if test -n "$RESCOMP"; then
42176 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42177else
42178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42179for as_dir in $PATH
42180do
42181 IFS=$as_save_IFS
42182 test -z "$as_dir" && as_dir=.
42183 for ac_exec_ext in '' $ac_executable_extensions; do
42184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42185 ac_cv_prog_RESCOMP="windres"
42186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42187 break 2
42188 fi
42189done
42190done
42191
42192 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42193fi
42194fi
42195RESCOMP=$ac_cv_prog_RESCOMP
42196if test -n "$RESCOMP"; then
42197 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42198echo "${ECHO_T}$RESCOMP" >&6
42199else
42200 echo "$as_me:$LINENO: result: no" >&5
42201echo "${ECHO_T}no" >&6
42202fi
42203
42204 fi
42205 ;;
42206
1e9e8aba 42207 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42208 # Extract the first word of "Rez", so it can be a program name with args.
42209set dummy Rez; ac_word=$2
42210echo "$as_me:$LINENO: checking for $ac_word" >&5
42211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42212if test "${ac_cv_prog_RESCOMP+set}" = set; then
42213 echo $ECHO_N "(cached) $ECHO_C" >&6
42214else
42215 if test -n "$RESCOMP"; then
42216 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42217else
42218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42219for as_dir in $PATH
42220do
42221 IFS=$as_save_IFS
42222 test -z "$as_dir" && as_dir=.
42223 for ac_exec_ext in '' $ac_executable_extensions; do
42224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42225 ac_cv_prog_RESCOMP="Rez"
42226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42227 break 2
42228 fi
42229done
42230done
42231
42232 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42233fi
42234fi
42235RESCOMP=$ac_cv_prog_RESCOMP
42236if test -n "$RESCOMP"; then
42237 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42238echo "${ECHO_T}$RESCOMP" >&6
42239else
42240 echo "$as_me:$LINENO: result: no" >&5
42241echo "${ECHO_T}no" >&6
42242fi
42243
42244 # Extract the first word of "SetFile", so it can be a program name with args.
42245set dummy SetFile; ac_word=$2
42246echo "$as_me:$LINENO: checking for $ac_word" >&5
42247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42248if test "${ac_cv_prog_SETFILE+set}" = set; then
42249 echo $ECHO_N "(cached) $ECHO_C" >&6
42250else
42251 if test -n "$SETFILE"; then
42252 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42253else
42254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42255for as_dir in $PATH
42256do
42257 IFS=$as_save_IFS
42258 test -z "$as_dir" && as_dir=.
42259 for ac_exec_ext in '' $ac_executable_extensions; do
42260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42261 ac_cv_prog_SETFILE="SetFile"
42262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42263 break 2
42264 fi
42265done
42266done
42267
42268 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42269fi
42270fi
42271SETFILE=$ac_cv_prog_SETFILE
42272if test -n "$SETFILE"; then
42273 echo "$as_me:$LINENO: result: $SETFILE" >&5
42274echo "${ECHO_T}$SETFILE" >&6
42275else
42276 echo "$as_me:$LINENO: result: no" >&5
42277echo "${ECHO_T}no" >&6
42278fi
42279
42280 ;;
42281 esac
42282
42283
42284
42285
42286
94acd38e 42287 BAKEFILE_BAKEFILE_M4_VERSION="0.1.7"
a848cd7e 42288
dcc1b6ad 42289
94acd38e 42290BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.7"
a848cd7e 42291
646b6ec1 42292
74b84332 42293
a848cd7e
SC
42294 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42295if test "${enable_precomp_headers+set}" = set; then
42296 enableval="$enable_precomp_headers"
42297 bk_use_pch="$enableval"
42298fi;
42299
42300 GCC_PCH=0
42301
42302 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42303 if test "x$GCC" = "xyes"; then
42304 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42305echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42306 cat >conftest.$ac_ext <<_ACEOF
42307/* confdefs.h. */
42308_ACEOF
42309cat confdefs.h >>conftest.$ac_ext
42310cat >>conftest.$ac_ext <<_ACEOF
42311/* end confdefs.h. */
42312
42313int
42314main ()
42315{
42316
42317 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42318 #error "no pch support"
42319 #endif
42320 #if (__GNUC__ < 3)
42321 #error "no pch support"
42322 #endif
42323 #if (__GNUC__ == 3) && \
42324 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42325 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42326 #error "no pch support"
42327 #endif
42328
42329 ;
42330 return 0;
42331}
42332_ACEOF
42333rm -f conftest.$ac_objext
42334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42335 (eval $ac_compile) 2>conftest.er1
a848cd7e 42336 ac_status=$?
ac1cb8d3
VS
42337 grep -v '^ *+' conftest.er1 >conftest.err
42338 rm -f conftest.er1
42339 cat conftest.err >&5
a848cd7e
SC
42340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42341 (exit $ac_status); } &&
07158944 42342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42344 (eval $ac_try) 2>&5
42345 ac_status=$?
42346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42347 (exit $ac_status); }; } &&
42348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42350 (eval $ac_try) 2>&5
42351 ac_status=$?
42352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42353 (exit $ac_status); }; }; then
42354
42355 echo "$as_me:$LINENO: result: yes" >&5
42356echo "${ECHO_T}yes" >&6
a848cd7e
SC
42357 GCC_PCH=1
42358
42359else
42360 echo "$as_me: failed program was:" >&5
42361sed 's/^/| /' conftest.$ac_ext >&5
42362
42363
42364 echo "$as_me:$LINENO: result: no" >&5
42365echo "${ECHO_T}no" >&6
42366
42367fi
ac1cb8d3 42368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42369 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42370
42371D='$'
42372cat <<EOF >bk-make-pch
a848cd7e
SC
42373#!/bin/sh
42374
42375# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42376# script. It is used to generated precompiled headers.
42377#
42378# Permission is given to use this file in any way.
42379
1e9e8aba
DE
42380outfile="${D}{1}"
42381header="${D}{2}"
a848cd7e
SC
42382shift
42383shift
42384
42385compiler=
42386headerfile=
1e9e8aba
DE
42387while test ${D}{#} -gt 0; do
42388 case "${D}{1}" in
a848cd7e 42389 -I* )
1e9e8aba
DE
42390 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42391 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42392 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42393 fi
42394 ;;
42395 esac
1e9e8aba 42396 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42397 shift
42398done
42399
1e9e8aba
DE
42400if test "x${D}{headerfile}" = "x" ; then
42401 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42402else
1e9e8aba
DE
42403 if test -f ${D}{outfile} ; then
42404 rm -f ${D}{outfile}
a848cd7e 42405 else
1e9e8aba 42406 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42407 fi
1e9e8aba 42408 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42409 mkdir -p .deps
42410 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42411 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42412 exit ${D}{?}
a848cd7e
SC
42413fi
42414EOF
1e9e8aba 42415
a848cd7e
SC
42416 chmod +x bk-make-pch
42417 fi
42418 fi
42419 fi
42420
42421
42422
a848cd7e
SC
42423 COND_BUILD_DEBUG="#"
42424 if test "x$BUILD" = "xdebug" ; then
42425 COND_BUILD_DEBUG=""
42426 fi
42427
42428 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42429 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42430 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42431 fi
42432
42433 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42434 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42435 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42436 fi
42437
42438 COND_BUILD_DEBUG_UNICODE_0="#"
42439 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42440 COND_BUILD_DEBUG_UNICODE_0=""
42441 fi
42442
42443 COND_BUILD_DEBUG_UNICODE_1="#"
42444 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42445 COND_BUILD_DEBUG_UNICODE_1=""
42446 fi
42447
42448 COND_BUILD_RELEASE="#"
42449 if test "x$BUILD" = "xrelease" ; then
42450 COND_BUILD_RELEASE=""
42451 fi
42452
42453 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42454 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42455 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42456 fi
42457
42458 COND_BUILD_RELEASE_UNICODE_0="#"
42459 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42460 COND_BUILD_RELEASE_UNICODE_0=""
42461 fi
42462
42463 COND_BUILD_RELEASE_UNICODE_1="#"
42464 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42465 COND_BUILD_RELEASE_UNICODE_1=""
42466 fi
42467
42468 COND_DEBUG_FLAG_1="#"
42469 if test "x$DEBUG_FLAG" = "x1" ; then
42470 COND_DEBUG_FLAG_1=""
42471 fi
42472
42473 COND_DEBUG_INFO_0="#"
42474 if test "x$DEBUG_INFO" = "x0" ; then
42475 COND_DEBUG_INFO_0=""
42476 fi
42477
42478 COND_DEBUG_INFO_1="#"
42479 if test "x$DEBUG_INFO" = "x1" ; then
42480 COND_DEBUG_INFO_1=""
42481 fi
42482
42483 COND_DEPS_TRACKING_0="#"
42484 if test "x$DEPS_TRACKING" = "x0" ; then
42485 COND_DEPS_TRACKING_0=""
42486 fi
42487
42488 COND_DEPS_TRACKING_1="#"
42489 if test "x$DEPS_TRACKING" = "x1" ; then
42490 COND_DEPS_TRACKING_1=""
42491 fi
42492
42493 COND_GCC_PCH_1="#"
42494 if test "x$GCC_PCH" = "x1" ; then
42495 COND_GCC_PCH_1=""
42496 fi
42497
42498 COND_MONOLITHIC_0="#"
42499 if test "x$MONOLITHIC" = "x0" ; then
42500 COND_MONOLITHIC_0=""
42501 fi
42502
42503 COND_MONOLITHIC_0_SHARED_0="#"
42504 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42505 COND_MONOLITHIC_0_SHARED_0=""
42506 fi
42507
42508 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42509 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42510 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42511 fi
42512
90970d69
DE
42513 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42514 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42515 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42516 fi
42517
a848cd7e
SC
42518 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42519 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42520 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42521 fi
42522
a848cd7e
SC
42523 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42524 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42525 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42526 fi
42527
ceec2216
RL
42528 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42529 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42530 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42531 fi
42532
a848cd7e
SC
42533 COND_MONOLITHIC_0_SHARED_1="#"
42534 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42535 COND_MONOLITHIC_0_SHARED_1=""
42536 fi
42537
42538 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42539 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42540 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42541 fi
42542
90970d69
DE
42543 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42544 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42545 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42546 fi
42547
a848cd7e
SC
42548 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42549 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42550 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42551 fi
42552
a848cd7e
SC
42553 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42554 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42555 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42556 fi
42557
ceec2216
RL
42558 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42559 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42560 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42561 fi
42562
a848cd7e
SC
42563 COND_MONOLITHIC_0_USE_ODBC_1="#"
42564 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42565 COND_MONOLITHIC_0_USE_ODBC_1=""
42566 fi
42567
42568 COND_MONOLITHIC_1="#"
42569 if test "x$MONOLITHIC" = "x1" ; then
42570 COND_MONOLITHIC_1=""
42571 fi
42572
42573 COND_MONOLITHIC_1_SHARED_0="#"
42574 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42575 COND_MONOLITHIC_1_SHARED_0=""
42576 fi
42577
42578 COND_MONOLITHIC_1_SHARED_1="#"
42579 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42580 COND_MONOLITHIC_1_SHARED_1=""
42581 fi
42582
42583 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42584 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42585 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42586 fi
42587
42588 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42589 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42590 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42591 fi
42592
42593 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42594 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42595 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42596 fi
42597
42598 COND_PLATFORM_MACOSX_1="#"
42599 if test "x$PLATFORM_MACOSX" = "x1" ; then
42600 COND_PLATFORM_MACOSX_1=""
42601 fi
42602
a30f955f
VS
42603 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42604 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42605 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42606 fi
42607
a848cd7e
SC
42608 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42609 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42610 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42611 fi
42612
42613 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42614 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42615 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42616 fi
42617
42618 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42619 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42620 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42621 fi
42622
fc480dc1
DE
42623 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42624 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42625 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42626 fi
42627
1e9e8aba
DE
42628 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42629 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42630 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42631 fi
42632
ebee3cd0
VS
42633 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42634 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42635 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42636 fi
42637
42638 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42639 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42640 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42641 fi
42642
a848cd7e
SC
42643 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42644 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42645 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42646 fi
42647
42648 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42649 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42650 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42651 fi
42652
b48a2016
DE
42653 COND_PLATFORM_MACOS_1="#"
42654 if test "x$PLATFORM_MACOS" = "x1" ; then
42655 COND_PLATFORM_MACOS_1=""
42656 fi
42657
a848cd7e
SC
42658 COND_PLATFORM_MAC_1="#"
42659 if test "x$PLATFORM_MAC" = "x1" ; then
42660 COND_PLATFORM_MAC_1=""
42661 fi
42662
42663 COND_PLATFORM_OS2_1="#"
42664 if test "x$PLATFORM_OS2" = "x1" ; then
42665 COND_PLATFORM_OS2_1=""
42666 fi
42667
42668 COND_PLATFORM_UNIX_0="#"
42669 if test "x$PLATFORM_UNIX" = "x0" ; then
42670 COND_PLATFORM_UNIX_0=""
42671 fi
42672
42673 COND_PLATFORM_UNIX_1="#"
42674 if test "x$PLATFORM_UNIX" = "x1" ; then
42675 COND_PLATFORM_UNIX_1=""
42676 fi
42677
42678 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42679 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42680 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42681 fi
42682
42683 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42684 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42685 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42686 fi
42687
42688 COND_PLATFORM_WIN32_0="#"
42689 if test "x$PLATFORM_WIN32" = "x0" ; then
42690 COND_PLATFORM_WIN32_0=""
42691 fi
42692
42693 COND_PLATFORM_WIN32_1="#"
42694 if test "x$PLATFORM_WIN32" = "x1" ; then
42695 COND_PLATFORM_WIN32_1=""
42696 fi
42697
42698 COND_SHARED_0="#"
42699 if test "x$SHARED" = "x0" ; then
42700 COND_SHARED_0=""
42701 fi
42702
ceec2216
RL
42703 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42704 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42705 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42706 fi
42707
42708 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42709 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42710 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42711 fi
42712
42713 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42714 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42715 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42716 fi
42717
a848cd7e
SC
42718 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42719 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42720 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42721 fi
42722
42723 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42724 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42725 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42726 fi
42727
42728 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42729 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42730 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42731 fi
42732
42733 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42734 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42735 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42736 fi
42737
42738 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42739 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42740 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42741 fi
42742
42743 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42744 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42745 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42746 fi
42747
42748 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42749 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42750 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42751 fi
42752
42753 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42754 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42755 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42756 fi
42757
42758 COND_SHARED_1="#"
42759 if test "x$SHARED" = "x1" ; then
42760 COND_SHARED_1=""
42761 fi
42762
42763 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
42764 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42765 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
42766 fi
42767
a30f955f
VS
42768 COND_TOOLKIT_="#"
42769 if test "x$TOOLKIT" = "x" ; then
42770 COND_TOOLKIT_=""
42771 fi
42772
a848cd7e
SC
42773 COND_TOOLKIT_COCOA="#"
42774 if test "x$TOOLKIT" = "xCOCOA" ; then
42775 COND_TOOLKIT_COCOA=""
42776 fi
42777
a49baeab
DE
42778 COND_TOOLKIT_COCOA_USE_GUI_1="#"
42779 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
42780 COND_TOOLKIT_COCOA_USE_GUI_1=""
42781 fi
42782
a848cd7e
SC
42783 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
42784 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42785 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
42786 fi
42787
42788 COND_TOOLKIT_GTK="#"
42789 if test "x$TOOLKIT" = "xGTK" ; then
42790 COND_TOOLKIT_GTK=""
42791 fi
42792
42793 COND_TOOLKIT_GTK_USE_GUI_1="#"
42794 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
42795 COND_TOOLKIT_GTK_USE_GUI_1=""
42796 fi
42797
42798 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
42799 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42800 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
42801 fi
42802
42803 COND_TOOLKIT_MAC="#"
42804 if test "x$TOOLKIT" = "xMAC" ; then
42805 COND_TOOLKIT_MAC=""
42806 fi
42807
42808 COND_TOOLKIT_MAC_USE_GUI_1="#"
42809 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42810 COND_TOOLKIT_MAC_USE_GUI_1=""
42811 fi
42812
42813 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42814 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42815 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42816 fi
42817
42818 COND_TOOLKIT_MGL="#"
42819 if test "x$TOOLKIT" = "xMGL" ; then
42820 COND_TOOLKIT_MGL=""
42821 fi
42822
42823 COND_TOOLKIT_MGL_USE_GUI_1="#"
42824 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
42825 COND_TOOLKIT_MGL_USE_GUI_1=""
42826 fi
42827
42828 COND_TOOLKIT_MOTIF="#"
42829 if test "x$TOOLKIT" = "xMOTIF" ; then
42830 COND_TOOLKIT_MOTIF=""
42831 fi
42832
42833 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
42834 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
42835 COND_TOOLKIT_MOTIF_USE_GUI_1=""
42836 fi
42837
42838 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
42839 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42840 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
42841 fi
42842
42843 COND_TOOLKIT_MSW="#"
42844 if test "x$TOOLKIT" = "xMSW" ; then
42845 COND_TOOLKIT_MSW=""
42846 fi
42847
42848 COND_TOOLKIT_MSW_USE_GUI_1="#"
42849 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
42850 COND_TOOLKIT_MSW_USE_GUI_1=""
42851 fi
42852
42853 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
42854 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42855 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
42856 fi
42857
42858 COND_TOOLKIT_PM="#"
42859 if test "x$TOOLKIT" = "xPM" ; then
42860 COND_TOOLKIT_PM=""
42861 fi
42862
42863 COND_TOOLKIT_PM_USE_GUI_1="#"
42864 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
42865 COND_TOOLKIT_PM_USE_GUI_1=""
42866 fi
42867
42868 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
42869 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42870 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
42871 fi
42872
3fd9c298
DE
42873 COND_TOOLKIT_WINCE="#"
42874 if test "x$TOOLKIT" = "xWINCE" ; then
42875 COND_TOOLKIT_WINCE=""
42876 fi
42877
42878 COND_TOOLKIT_WINCE_USE_GUI_1="#"
42879 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
42880 COND_TOOLKIT_WINCE_USE_GUI_1=""
42881 fi
42882
42883 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
42884 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42885 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
42886 fi
42887
a848cd7e
SC
42888 COND_TOOLKIT_X11="#"
42889 if test "x$TOOLKIT" = "xX11" ; then
42890 COND_TOOLKIT_X11=""
42891 fi
42892
42893 COND_TOOLKIT_X11_USE_GUI_1="#"
42894 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
42895 COND_TOOLKIT_X11_USE_GUI_1=""
42896 fi
42897
42898 COND_UNICODE_1="#"
42899 if test "x$UNICODE" = "x1" ; then
42900 COND_UNICODE_1=""
42901 fi
42902
42903 COND_USE_EXCEPTIONS_0="#"
42904 if test "x$USE_EXCEPTIONS" = "x0" ; then
42905 COND_USE_EXCEPTIONS_0=""
42906 fi
42907
42908 COND_USE_EXCEPTIONS_1="#"
42909 if test "x$USE_EXCEPTIONS" = "x1" ; then
42910 COND_USE_EXCEPTIONS_1=""
42911 fi
42912
42913 COND_USE_GUI_0="#"
42914 if test "x$USE_GUI" = "x0" ; then
42915 COND_USE_GUI_0=""
42916 fi
42917
42918 COND_USE_GUI_1="#"
42919 if test "x$USE_GUI" = "x1" ; then
42920 COND_USE_GUI_1=""
42921 fi
42922
42923 COND_USE_GUI_1_WXUNIV_0="#"
42924 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42925 COND_USE_GUI_1_WXUNIV_0=""
42926 fi
42927
42928 COND_USE_GUI_1_WXUNIV_1="#"
42929 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
42930 COND_USE_GUI_1_WXUNIV_1=""
42931 fi
42932
42933 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42934 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42935 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42936 fi
42937
42938 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42939 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42940 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42941 fi
42942
42943 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42944 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42945 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42946 fi
42947
ceec2216
RL
42948 COND_USE_ODBC_1="#"
42949 if test "x$USE_ODBC" = "x1" ; then
42950 COND_USE_ODBC_1=""
42951 fi
42952
ffa0583f
RL
42953 COND_USE_OPENGL_1="#"
42954 if test "x$USE_OPENGL" = "x1" ; then
42955 COND_USE_OPENGL_1=""
42956 fi
42957
a848cd7e
SC
42958 COND_USE_PLUGINS_0="#"
42959 if test "x$USE_PLUGINS" = "x0" ; then
42960 COND_USE_PLUGINS_0=""
42961 fi
42962
0b78747f
MW
42963 COND_USE_RTTI_0="#"
42964 if test "x$USE_RTTI" = "x0" ; then
42965 COND_USE_RTTI_0=""
42966 fi
42967
42968 COND_USE_RTTI_1="#"
42969 if test "x$USE_RTTI" = "x1" ; then
42970 COND_USE_RTTI_1=""
42971 fi
42972
a848cd7e
SC
42973 COND_USE_SOSYMLINKS_1="#"
42974 if test "x$USE_SOSYMLINKS" = "x1" ; then
42975 COND_USE_SOSYMLINKS_1=""
42976 fi
42977
42978 COND_USE_SOVERLINUX_1="#"
42979 if test "x$USE_SOVERLINUX" = "x1" ; then
42980 COND_USE_SOVERLINUX_1=""
42981 fi
42982
42983 COND_USE_SOVERSION_0="#"
42984 if test "x$USE_SOVERSION" = "x0" ; then
42985 COND_USE_SOVERSION_0=""
42986 fi
42987
42988 COND_USE_SOVERSOLARIS_1="#"
42989 if test "x$USE_SOVERSOLARIS" = "x1" ; then
42990 COND_USE_SOVERSOLARIS_1=""
42991 fi
42992
0b78747f
MW
42993 COND_USE_THREADS_0="#"
42994 if test "x$USE_THREADS" = "x0" ; then
42995 COND_USE_THREADS_0=""
42996 fi
42997
42998 COND_USE_THREADS_1="#"
42999 if test "x$USE_THREADS" = "x1" ; then
43000 COND_USE_THREADS_1=""
43001 fi
43002
a13a7f89
RL
43003 COND_USE_XRC_1="#"
43004 if test "x$USE_XRC" = "x1" ; then
43005 COND_USE_XRC_1=""
43006 fi
43007
a848cd7e
SC
43008 COND_WITH_PLUGIN_SDL_1="#"
43009 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43010 COND_WITH_PLUGIN_SDL_1=""
43011 fi
43012
1e6eb025
VZ
43013 COND_WXUNIV_0="#"
43014 if test "x$WXUNIV" = "x0" ; then
43015 COND_WXUNIV_0=""
43016 fi
43017
a848cd7e
SC
43018 COND_WXUNIV_1="#"
43019 if test "x$WXUNIV" = "x1" ; then
43020 COND_WXUNIV_1=""
43021 fi
43022
43023 COND_WXUSE_EXPAT_BUILTIN="#"
43024 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43025 COND_WXUSE_EXPAT_BUILTIN=""
43026 fi
43027
43028 COND_WXUSE_LIBJPEG_BUILTIN="#"
43029 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43030 COND_WXUSE_LIBJPEG_BUILTIN=""
43031 fi
43032
43033 COND_WXUSE_LIBPNG_BUILTIN="#"
43034 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43035 COND_WXUSE_LIBPNG_BUILTIN=""
43036 fi
43037
43038 COND_WXUSE_LIBTIFF_BUILTIN="#"
43039 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43040 COND_WXUSE_LIBTIFF_BUILTIN=""
43041 fi
43042
43043 COND_WXUSE_ODBC_BUILTIN="#"
43044 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43045 COND_WXUSE_ODBC_BUILTIN=""
43046 fi
43047
43048 COND_WXUSE_REGEX_BUILTIN="#"
43049 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43050 COND_WXUSE_REGEX_BUILTIN=""
43051 fi
43052
43053 COND_WXUSE_ZLIB_BUILTIN="#"
43054 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43055 COND_WXUSE_ZLIB_BUILTIN=""
43056 fi
43057
43058
43059
2057db16
VS
43060 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43061 { { 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
43062echo "$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;}
43063 { (exit 1); exit 1; }; }
43064 fi
43065
a848cd7e 43066
ceec2216
RL
43067if test "$wxUSE_SHARED" = "yes"; then
43068
43069 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43070 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43071
5b674b9d
DE
43072 case "${host}" in
43073 *-pc-os2_emx | *-pc-os2-emx )
43074 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43075 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43076 cp -p ${srcdir}/src/os2/dllnames.sh .
43077 cp -p ${srcdir}/src/os2/dllar.sh .
43078 ;;
43079 esac
ceec2216
RL
43080else
43081
43082 EXE_LINKER="$CXX -o"
43083
43084fi
a848cd7e 43085
74b84332 43086GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43087PCH_FLAGS=""
43088if test $GCC_PCH = 1 ; then
43089 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43090 PCH_FLAGS="-DWX_PRECOMP"
43091else
a848cd7e
SC
43092 case "${host}" in
43093 powerpc-*-darwin* )
74b84332 43094 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43095 ;;
bea8e651 43096 *-*-mingw32* )
1f344abf
VS
43097 if test "$wxUSE_STL" = "yes" -o \
43098 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43099 "$wxUSE_NO_RTTI" != "yes"; then
43100 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43101echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43102 cat >conftest.$ac_ext <<_ACEOF
43103/* confdefs.h. */
43104_ACEOF
43105cat confdefs.h >>conftest.$ac_ext
43106cat >>conftest.$ac_ext <<_ACEOF
43107/* end confdefs.h. */
43108
3314e67b
RR
43109int
43110main ()
43111{
43112#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43113 #error "Not GCC 3.2 or greater"
43114 #endif
43115
43116 ;
43117 return 0;
43118}
43119_ACEOF
43120rm -f conftest.$ac_objext
43121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43122 (eval $ac_compile) 2>conftest.er1
43123 ac_status=$?
43124 grep -v '^ *+' conftest.er1 >conftest.err
43125 rm -f conftest.er1
43126 cat conftest.err >&5
43127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43128 (exit $ac_status); } &&
07158944 43129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
43130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43131 (eval $ac_try) 2>&5
43132 ac_status=$?
43133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43134 (exit $ac_status); }; } &&
43135 { ac_try='test -s conftest.$ac_objext'
43136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43137 (eval $ac_try) 2>&5
43138 ac_status=$?
43139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43140 (exit $ac_status); }; }; then
43141 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43142 echo "$as_me:$LINENO: result: yes" >&5
43143echo "${ECHO_T}yes" >&6
43144else
43145 echo "$as_me: failed program was:" >&5
43146sed 's/^/| /' conftest.$ac_ext >&5
43147
43148echo "$as_me:$LINENO: result: no" >&5
43149echo "${ECHO_T}no" >&6
43150fi
43151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43152 fi
43153 ;;
43154 *-pc-os2_emx | *-pc-os2-emx )
43155 if test "$wxUSE_STL" = "yes"; then
43156 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43157echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43158 cat >conftest.$ac_ext <<_ACEOF
43159/* confdefs.h. */
43160_ACEOF
43161cat confdefs.h >>conftest.$ac_ext
43162cat >>conftest.$ac_ext <<_ACEOF
43163/* end confdefs.h. */
43164
bea8e651
MB
43165int
43166main ()
43167{
1f344abf 43168#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43169 #error "Not GCC 3.2 or greater"
43170 #endif
43171
43172 ;
43173 return 0;
43174}
43175_ACEOF
43176rm -f conftest.$ac_objext
43177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43178 (eval $ac_compile) 2>conftest.er1
bea8e651 43179 ac_status=$?
ac1cb8d3
VS
43180 grep -v '^ *+' conftest.er1 >conftest.err
43181 rm -f conftest.er1
43182 cat conftest.err >&5
bea8e651
MB
43183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43184 (exit $ac_status); } &&
07158944 43185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43187 (eval $ac_try) 2>&5
43188 ac_status=$?
43189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43190 (exit $ac_status); }; } &&
43191 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43193 (eval $ac_try) 2>&5
43194 ac_status=$?
43195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43196 (exit $ac_status); }; }; then
74b84332 43197 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43198 echo "$as_me:$LINENO: result: yes" >&5
43199echo "${ECHO_T}yes" >&6
43200else
43201 echo "$as_me: failed program was:" >&5
43202sed 's/^/| /' conftest.$ac_ext >&5
43203
43204echo "$as_me:$LINENO: result: no" >&5
43205echo "${ECHO_T}no" >&6
43206fi
ac1cb8d3 43207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43208 fi
43209 ;;
a848cd7e
SC
43210 esac
43211fi
d2083416 43212CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43213
43214
43215SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43216
43217
43218
43219
43220
43221
43222
43223
43224
43225
43226
43227
43228
43229
43230
43231
43232
43233
43234
43235
43236
43237
43238
43239
43240
43241
43242
43243
43244
43245
43246
43247
43248
43249
43250
43251
43252
43253
43254
43255
43256
43257
a848cd7e
SC
43258
43259
43260
43261
43262
43263
43264
43265
43266
43267
43268
43269
43270
43271
43272
43273
43274
43275
74b84332 43276
a848cd7e
SC
43277
43278
43279echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43280echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43281set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43282if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43283 echo $ECHO_N "(cached) $ECHO_C" >&6
43284else
43285 cat >conftest.make <<\_ACEOF
43286all:
43287 @echo 'ac_maketemp="$(MAKE)"'
43288_ACEOF
43289# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43290eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43291if test -n "$ac_maketemp"; then
43292 eval ac_cv_prog_make_${ac_make}_set=yes
43293else
43294 eval ac_cv_prog_make_${ac_make}_set=no
43295fi
43296rm -f conftest.make
43297fi
43298if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43299 echo "$as_me:$LINENO: result: yes" >&5
43300echo "${ECHO_T}yes" >&6
43301 SET_MAKE=
43302else
43303 echo "$as_me:$LINENO: result: no" >&5
43304echo "${ECHO_T}no" >&6
43305 SET_MAKE="MAKE=${MAKE-make}"
43306fi
43307
43308
a848cd7e 43309
ceec2216
RL
43310 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43311
a848cd7e 43312
ceec2216 43313 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43314
a848cd7e 43315
ceec2216 43316 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43317
ceec2216
RL
43318
43319 ac_config_files="$ac_config_files version-script Makefile"
43320
43321
43322 ac_config_commands="$ac_config_commands wx-config
43323 "
a848cd7e
SC
43324
43325
9103d280
RL
43326
43327
a848cd7e
SC
43328if test "$wxUSE_GUI" = "yes"; then
43329 SUBDIRS="samples demos utils contrib"
43330else SUBDIRS="samples utils"
43331fi
43332
43333
43334
43335# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43336if test "${with_cppunit_prefix+set}" = set; then
43337 withval="$with_cppunit_prefix"
43338 cppunit_config_prefix="$withval"
43339else
43340 cppunit_config_prefix=""
43341fi;
43342
43343# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43344if test "${with_cppunit_exec_prefix+set}" = set; then
43345 withval="$with_cppunit_exec_prefix"
43346 cppunit_config_exec_prefix="$withval"
43347else
43348 cppunit_config_exec_prefix=""
43349fi;
43350
43351 if test x$cppunit_config_exec_prefix != x ; then
43352 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43353 if test x${CPPUNIT_CONFIG+set} != xset ; then
43354 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43355 fi
43356 fi
43357 if test x$cppunit_config_prefix != x ; then
43358 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43359 if test x${CPPUNIT_CONFIG+set} != xset ; then
43360 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43361 fi
43362 fi
43363
43364 # Extract the first word of "cppunit-config", so it can be a program name with args.
43365set dummy cppunit-config; ac_word=$2
43366echo "$as_me:$LINENO: checking for $ac_word" >&5
43367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43368if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43369 echo $ECHO_N "(cached) $ECHO_C" >&6
43370else
43371 case $CPPUNIT_CONFIG in
43372 [\\/]* | ?:[\\/]*)
43373 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43374 ;;
43375 *)
43376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43377for as_dir in $PATH
43378do
43379 IFS=$as_save_IFS
43380 test -z "$as_dir" && as_dir=.
43381 for ac_exec_ext in '' $ac_executable_extensions; do
43382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43383 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43385 break 2
43386 fi
43387done
43388done
43389
43390 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43391 ;;
43392esac
43393fi
43394CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43395
43396if test -n "$CPPUNIT_CONFIG"; then
43397 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43398echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43399else
43400 echo "$as_me:$LINENO: result: no" >&5
43401echo "${ECHO_T}no" >&6
43402fi
43403
43404 cppunit_version_min=1.8.0
43405
43406 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43407echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43408 no_cppunit=""
43409 if test "$CPPUNIT_CONFIG" = "no" ; then
43410 no_cppunit=yes
43411 else
43412 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43413 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43414 cppunit_version=`$CPPUNIT_CONFIG --version`
43415
43416 cppunit_major_version=`echo $cppunit_version | \
43417 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43418 cppunit_minor_version=`echo $cppunit_version | \
43419 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43420 cppunit_micro_version=`echo $cppunit_version | \
43421 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43422
43423 cppunit_major_min=`echo $cppunit_version_min | \
43424 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43425 cppunit_minor_min=`echo $cppunit_version_min | \
43426 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43427 cppunit_micro_min=`echo $cppunit_version_min | \
43428 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43429
43430 cppunit_version_proper=`expr \
43431 $cppunit_major_version \> $cppunit_major_min \| \
43432 $cppunit_major_version \= $cppunit_major_min \& \
43433 $cppunit_minor_version \> $cppunit_minor_min \| \
43434 $cppunit_major_version \= $cppunit_major_min \& \
43435 $cppunit_minor_version \= $cppunit_minor_min \& \
43436 $cppunit_micro_version \>= $cppunit_micro_min `
43437
43438 if test "$cppunit_version_proper" = "1" ; then
43439 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43440echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43441 else
43442 echo "$as_me:$LINENO: result: no" >&5
43443echo "${ECHO_T}no" >&6
43444 no_cppunit=yes
43445 fi
43446 fi
43447
43448 if test "x$no_cppunit" = x ; then
c2218763 43449 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43450 else
43451 CPPUNIT_CFLAGS=""
43452 CPPUNIT_LIBS=""
c2218763 43453 :
a848cd7e
SC
43454 fi
43455
43456
43457
43458
43459
43460for subdir in `echo $SUBDIRS`; do
43461 if test -d ${srcdir}/${subdir} ; then
43462 if test "$wxUSE_GUI" = "yes"; then
43463 if test ${subdir} = "samples"; then
43464 makefiles="samples/Makefile.in $makefiles"
43465 for sample in `echo $SAMPLES_SUBDIRS`; do
43466 if test -d $srcdir/samples/$sample; then
43467 makefiles="samples/$sample/Makefile.in $makefiles"
43468 fi
43469 done
43470 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43471 fi
43472 else if test ${subdir} = "samples"; then
43473 makefiles="samples/Makefile.in samples/console/Makefile.in"
43474 elif test ${subdir} = "utils"; then
6537ccf8
VS
43475 makefiles=""
43476 for util in HelpGen tex2rtf ; do
43477 if test -d $srcdir/utils/$util ; then
43478 makefiles="utils/$util/Makefile.in \
43479 utils/$util/src/Makefile.in \
43480 $makefiles"
43481 fi
43482 done
a848cd7e
SC
43483 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43484 fi
43485 fi
43486
43487 for mkin in $makefiles ; do
43488 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43489 ac_config_files="$ac_config_files $mk"
43490
43491 done
43492 fi
43493done
43494
43495
43496cat >confcache <<\_ACEOF
43497# This file is a shell script that caches the results of configure
43498# tests run on this system so they can be shared between configure
43499# scripts and configure runs, see configure's option --config-cache.
43500# It is not useful on other systems. If it contains results you don't
43501# want to keep, you may remove or edit it.
43502#
43503# config.status only pays attention to the cache file if you give it
43504# the --recheck option to rerun configure.
43505#
43506# `ac_cv_env_foo' variables (set or unset) will be overridden when
43507# loading this file, other *unset* `ac_cv_foo' will be assigned the
43508# following values.
43509
43510_ACEOF
43511
43512# The following way of writing the cache mishandles newlines in values,
43513# but we know of no workaround that is simple, portable, and efficient.
43514# So, don't put newlines in cache variables' values.
43515# Ultrix sh set writes to stderr and can't be redirected directly,
43516# and sets the high bit in the cache file unless we assign to the vars.
43517{
43518 (set) 2>&1 |
43519 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43520 *ac_space=\ *)
43521 # `set' does not quote correctly, so add quotes (double-quote
43522 # substitution turns \\\\ into \\, and sed turns \\ into \).
43523 sed -n \
ac1cb8d3
VS
43524 "s/'/'\\\\''/g;
43525 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43526 ;;
43527 *)
43528 # `set' quotes correctly as required by POSIX, so do not add quotes.
43529 sed -n \
ac1cb8d3 43530 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43531 ;;
43532 esac;
43533} |
43534 sed '
43535 t clear
43536 : clear
43537 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43538 t end
43539 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43540 : end' >>confcache
43541if diff $cache_file confcache >/dev/null 2>&1; then :; else
43542 if test -w $cache_file; then
43543 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43544 cat confcache >$cache_file
43545 else
43546 echo "not updating unwritable cache $cache_file"
43547 fi
43548fi
43549rm -f confcache
43550
43551test "x$prefix" = xNONE && prefix=$ac_default_prefix
43552# Let make expand exec_prefix.
43553test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43554
43555# VPATH may cause trouble with some makes, so we remove $(srcdir),
43556# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43557# trailing colons and then remove the whole line if VPATH becomes empty
43558# (actually we leave an empty line to preserve line numbers).
43559if test "x$srcdir" = x.; then
ac1cb8d3 43560 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43561s/:*\$(srcdir):*/:/;
43562s/:*\${srcdir}:*/:/;
43563s/:*@srcdir@:*/:/;
ac1cb8d3 43564s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43565s/:*$//;
ac1cb8d3 43566s/^[^=]*=[ ]*$//;
a848cd7e
SC
43567}'
43568fi
43569
43570DEFS=-DHAVE_CONFIG_H
43571
43572ac_libobjs=
43573ac_ltlibobjs=
43574for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43575 # 1. Remove the extension, and $U if already installed.
43576 ac_i=`echo "$ac_i" |
ac1cb8d3 43577 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43578 # 2. Add them.
43579 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43580 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43581done
43582LIBOBJS=$ac_libobjs
43583
43584LTLIBOBJS=$ac_ltlibobjs
43585
43586
43587
43588: ${CONFIG_STATUS=./config.status}
43589ac_clean_files_save=$ac_clean_files
43590ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43591{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43592echo "$as_me: creating $CONFIG_STATUS" >&6;}
43593cat >$CONFIG_STATUS <<_ACEOF
43594#! $SHELL
43595# Generated by $as_me.
43596# Run this file to recreate the current configuration.
43597# Compiler output produced by configure, useful for debugging
43598# configure, is in config.log if it exists.
43599
43600debug=false
43601ac_cs_recheck=false
43602ac_cs_silent=false
43603SHELL=\${CONFIG_SHELL-$SHELL}
43604_ACEOF
43605
43606cat >>$CONFIG_STATUS <<\_ACEOF
43607## --------------------- ##
43608## M4sh Initialization. ##
43609## --------------------- ##
43610
43611# Be Bourne compatible
43612if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43613 emulate sh
43614 NULLCMD=:
43615 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43616 # is contrary to our usage. Disable this feature.
43617 alias -g '${1+"$@"}'='"$@"'
43618elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43619 set -o posix
43620fi
ac1cb8d3 43621DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43622
43623# Support unset when possible.
ac1cb8d3 43624if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43625 as_unset=unset
43626else
43627 as_unset=false
43628fi
43629
43630
43631# Work around bugs in pre-3.0 UWIN ksh.
43632$as_unset ENV MAIL MAILPATH
43633PS1='$ '
43634PS2='> '
43635PS4='+ '
43636
43637# NLS nuisances.
43638for as_var in \
43639 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43640 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43641 LC_TELEPHONE LC_TIME
43642do
ac1cb8d3 43643 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43644 eval $as_var=C; export $as_var
43645 else
43646 $as_unset $as_var
43647 fi
43648done
43649
43650# Required to use basename.
43651if expr a : '\(a\)' >/dev/null 2>&1; then
43652 as_expr=expr
43653else
43654 as_expr=false
43655fi
43656
43657if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43658 as_basename=basename
43659else
43660 as_basename=false
43661fi
43662
43663
43664# Name of the executable.
43665as_me=`$as_basename "$0" ||
43666$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43667 X"$0" : 'X\(//\)$' \| \
43668 X"$0" : 'X\(/\)$' \| \
43669 . : '\(.\)' 2>/dev/null ||
43670echo X/"$0" |
43671 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43672 /^X\/\(\/\/\)$/{ s//\1/; q; }
43673 /^X\/\(\/\).*/{ s//\1/; q; }
43674 s/.*/./; q'`
43675
43676
43677# PATH needs CR, and LINENO needs CR and PATH.
43678# Avoid depending upon Character Ranges.
43679as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43680as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43681as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43682as_cr_digits='0123456789'
43683as_cr_alnum=$as_cr_Letters$as_cr_digits
43684
43685# The user is always right.
43686if test "${PATH_SEPARATOR+set}" != set; then
43687 echo "#! /bin/sh" >conf$$.sh
43688 echo "exit 0" >>conf$$.sh
43689 chmod +x conf$$.sh
43690 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43691 PATH_SEPARATOR=';'
43692 else
43693 PATH_SEPARATOR=:
43694 fi
43695 rm -f conf$$.sh
43696fi
43697
43698
43699 as_lineno_1=$LINENO
43700 as_lineno_2=$LINENO
43701 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43702 test "x$as_lineno_1" != "x$as_lineno_2" &&
43703 test "x$as_lineno_3" = "x$as_lineno_2" || {
43704 # Find who we are. Look in the path if we contain no path at all
43705 # relative or not.
43706 case $0 in
43707 *[\\/]* ) as_myself=$0 ;;
43708 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43709for as_dir in $PATH
43710do
43711 IFS=$as_save_IFS
43712 test -z "$as_dir" && as_dir=.
43713 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43714done
43715
43716 ;;
43717 esac
43718 # We did not find ourselves, most probably we were run as `sh COMMAND'
43719 # in which case we are not to be found in the path.
43720 if test "x$as_myself" = x; then
43721 as_myself=$0
43722 fi
43723 if test ! -f "$as_myself"; then
43724 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43725echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43726 { (exit 1); exit 1; }; }
43727 fi
43728 case $CONFIG_SHELL in
43729 '')
43730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43731for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43732do
43733 IFS=$as_save_IFS
43734 test -z "$as_dir" && as_dir=.
43735 for as_base in sh bash ksh sh5; do
43736 case $as_dir in
43737 /*)
43738 if ("$as_dir/$as_base" -c '
43739 as_lineno_1=$LINENO
43740 as_lineno_2=$LINENO
43741 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43742 test "x$as_lineno_1" != "x$as_lineno_2" &&
43743 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43744 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43745 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43746 CONFIG_SHELL=$as_dir/$as_base
43747 export CONFIG_SHELL
43748 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43749 fi;;
43750 esac
43751 done
43752done
43753;;
43754 esac
43755
43756 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43757 # uniformly replaced by the line number. The first 'sed' inserts a
43758 # line-number line before each line; the second 'sed' does the real
43759 # work. The second script uses 'N' to pair each line-number line
43760 # with the numbered line, and appends trailing '-' during
43761 # substitution so that $LINENO is not a special case at line end.
43762 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43763 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43764 sed '=' <$as_myself |
43765 sed '
43766 N
43767 s,$,-,
43768 : loop
43769 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43770 t loop
43771 s,-$,,
43772 s,^['$as_cr_digits']*\n,,
43773 ' >$as_me.lineno &&
43774 chmod +x $as_me.lineno ||
43775 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43776echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43777 { (exit 1); exit 1; }; }
43778
43779 # Don't try to exec as it changes $[0], causing all sort of problems
43780 # (the dirname of $[0] is not the place where we might find the
43781 # original and so on. Autoconf is especially sensible to this).
43782 . ./$as_me.lineno
43783 # Exit status is that of the last command.
43784 exit
43785}
43786
43787
43788case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43789 *c*,-n*) ECHO_N= ECHO_C='
43790' ECHO_T=' ' ;;
43791 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43792 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43793esac
43794
43795if expr a : '\(a\)' >/dev/null 2>&1; then
43796 as_expr=expr
43797else
43798 as_expr=false
43799fi
43800
43801rm -f conf$$ conf$$.exe conf$$.file
43802echo >conf$$.file
43803if ln -s conf$$.file conf$$ 2>/dev/null; then
43804 # We could just check for DJGPP; but this test a) works b) is more generic
43805 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43806 if test -f conf$$.exe; then
43807 # Don't use ln at all; we don't have any links
43808 as_ln_s='cp -p'
43809 else
43810 as_ln_s='ln -s'
43811 fi
43812elif ln conf$$.file conf$$ 2>/dev/null; then
43813 as_ln_s=ln
43814else
43815 as_ln_s='cp -p'
43816fi
43817rm -f conf$$ conf$$.exe conf$$.file
43818
43819if mkdir -p . 2>/dev/null; then
43820 as_mkdir_p=:
43821else
ac1cb8d3 43822 test -d ./-p && rmdir ./-p
a848cd7e
SC
43823 as_mkdir_p=false
43824fi
43825
43826as_executable_p="test -f"
43827
43828# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 43829as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43830
43831# Sed expression to map a string onto a valid variable name.
ac1cb8d3 43832as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43833
43834
43835# IFS
43836# We need space, tab and new line, in precisely that order.
43837as_nl='
43838'
43839IFS=" $as_nl"
43840
43841# CDPATH.
43842$as_unset CDPATH
43843
43844exec 6>&1
43845
43846# Open the log real soon, to keep \$[0] and so on meaningful, and to
43847# report actual input values of CONFIG_FILES etc. instead of their
43848# values after options handling. Logging --version etc. is OK.
43849exec 5>>config.log
43850{
43851 echo
43852 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43853## Running $as_me. ##
43854_ASBOX
43855} >&5
43856cat >&5 <<_CSEOF
43857
81f90336 43858This file was extended by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 43859generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
43860
43861 CONFIG_FILES = $CONFIG_FILES
43862 CONFIG_HEADERS = $CONFIG_HEADERS
43863 CONFIG_LINKS = $CONFIG_LINKS
43864 CONFIG_COMMANDS = $CONFIG_COMMANDS
43865 $ $0 $@
43866
43867_CSEOF
43868echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43869echo >&5
43870_ACEOF
43871
43872# Files that config.status was made for.
43873if test -n "$ac_config_files"; then
43874 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43875fi
43876
43877if test -n "$ac_config_headers"; then
43878 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43879fi
43880
43881if test -n "$ac_config_links"; then
43882 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43883fi
43884
43885if test -n "$ac_config_commands"; then
43886 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43887fi
43888
43889cat >>$CONFIG_STATUS <<\_ACEOF
43890
43891ac_cs_usage="\
43892\`$as_me' instantiates files from templates according to the
43893current configuration.
43894
43895Usage: $0 [OPTIONS] [FILE]...
43896
43897 -h, --help print this help, then exit
43898 -V, --version print version number, then exit
43899 -q, --quiet do not print progress messages
43900 -d, --debug don't remove temporary files
43901 --recheck update $as_me by reconfiguring in the same conditions
43902 --file=FILE[:TEMPLATE]
ac1cb8d3 43903 instantiate the configuration file FILE
a848cd7e 43904 --header=FILE[:TEMPLATE]
ac1cb8d3 43905 instantiate the configuration header FILE
a848cd7e
SC
43906
43907Configuration files:
43908$config_files
43909
43910Configuration headers:
43911$config_headers
43912
43913Configuration commands:
43914$config_commands
43915
43916Report bugs to <bug-autoconf@gnu.org>."
43917_ACEOF
43918
43919cat >>$CONFIG_STATUS <<_ACEOF
43920ac_cs_version="\\
81f90336 43921wxWidgets config.status 2.5.4
ac1cb8d3 43922configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
43923 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43924
ac1cb8d3 43925Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
43926This config.status script is free software; the Free Software Foundation
43927gives unlimited permission to copy, distribute and modify it."
43928srcdir=$srcdir
43929INSTALL="$INSTALL"
43930_ACEOF
43931
43932cat >>$CONFIG_STATUS <<\_ACEOF
43933# If no file are specified by the user, then we need to provide default
43934# value. By we need to know if files were specified by the user.
43935ac_need_defaults=:
43936while test $# != 0
43937do
43938 case $1 in
43939 --*=*)
43940 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43941 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43942 ac_shift=:
43943 ;;
43944 -*)
43945 ac_option=$1
43946 ac_optarg=$2
43947 ac_shift=shift
43948 ;;
43949 *) # This is not an option, so the user has probably given explicit
43950 # arguments.
43951 ac_option=$1
43952 ac_need_defaults=false;;
43953 esac
43954
43955 case $ac_option in
43956 # Handling of the options.
43957_ACEOF
43958cat >>$CONFIG_STATUS <<\_ACEOF
43959 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43960 ac_cs_recheck=: ;;
43961 --version | --vers* | -V )
43962 echo "$ac_cs_version"; exit 0 ;;
43963 --he | --h)
43964 # Conflict between --help and --header
43965 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43966Try \`$0 --help' for more information." >&5
43967echo "$as_me: error: ambiguous option: $1
43968Try \`$0 --help' for more information." >&2;}
43969 { (exit 1); exit 1; }; };;
43970 --help | --hel | -h )
43971 echo "$ac_cs_usage"; exit 0 ;;
43972 --debug | --d* | -d )
43973 debug=: ;;
43974 --file | --fil | --fi | --f )
43975 $ac_shift
43976 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43977 ac_need_defaults=false;;
43978 --header | --heade | --head | --hea )
43979 $ac_shift
43980 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43981 ac_need_defaults=false;;
43982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43983 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43984 ac_cs_silent=: ;;
43985
43986 # This is an error.
43987 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43988Try \`$0 --help' for more information." >&5
43989echo "$as_me: error: unrecognized option: $1
43990Try \`$0 --help' for more information." >&2;}
43991 { (exit 1); exit 1; }; } ;;
43992
43993 *) ac_config_targets="$ac_config_targets $1" ;;
43994
43995 esac
43996 shift
43997done
43998
43999ac_configure_extra_args=
44000
44001if $ac_cs_silent; then
44002 exec 6>/dev/null
44003 ac_configure_extra_args="$ac_configure_extra_args --silent"
44004fi
44005
44006_ACEOF
44007cat >>$CONFIG_STATUS <<_ACEOF
44008if \$ac_cs_recheck; then
44009 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44010 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44011fi
44012
44013_ACEOF
44014
44015cat >>$CONFIG_STATUS <<_ACEOF
44016#
44017# INIT-COMMANDS section.
44018#
44019
ceec2216
RL
44020 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44021 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44022 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44023 LN_S="${LN_S}"
a848cd7e
SC
44024
44025
44026_ACEOF
44027
44028
44029
44030cat >>$CONFIG_STATUS <<\_ACEOF
44031for ac_config_target in $ac_config_targets
44032do
44033 case "$ac_config_target" in
44034 # Handling of arguments.
ceec2216
RL
44035 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44036 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44037 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44038 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44039 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44040 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44041 "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
a848cd7e
SC
44042 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44043echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44044 { (exit 1); exit 1; }; };;
44045 esac
44046done
44047
44048# If the user did not use the arguments to specify the items to instantiate,
44049# then the envvar interface is used. Set only those that are not.
44050# We use the long form for the default assignment because of an extremely
44051# bizarre bug on SunOS 4.1.3.
44052if $ac_need_defaults; then
44053 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44054 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44055 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44056fi
44057
44058# Have a temporary directory for convenience. Make it in the build tree
44059# simply because there is no reason to put it here, and in addition,
44060# creating and moving files from /tmp can sometimes cause problems.
44061# Create a temporary directory, and hook for its removal unless debugging.
44062$debug ||
44063{
44064 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44065 trap '{ (exit 1); exit 1; }' 1 2 13 15
44066}
44067
44068# Create a (secure) tmp directory for tmp files.
44069
44070{
44071 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44072 test -n "$tmp" && test -d "$tmp"
44073} ||
44074{
44075 tmp=./confstat$$-$RANDOM
44076 (umask 077 && mkdir $tmp)
44077} ||
44078{
44079 echo "$me: cannot create a temporary directory in ." >&2
44080 { (exit 1); exit 1; }
44081}
44082
44083_ACEOF
44084
44085cat >>$CONFIG_STATUS <<_ACEOF
44086
44087#
44088# CONFIG_FILES section.
44089#
44090
44091# No need to generate the scripts if there are no CONFIG_FILES.
44092# This happens for instance when ./config.status config.h
44093if test -n "\$CONFIG_FILES"; then
44094 # Protect against being on the right side of a sed subst in config.status.
44095 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44096 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44097s,@SHELL@,$SHELL,;t t
44098s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44099s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44100s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44101s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44102s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44103s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44104s,@exec_prefix@,$exec_prefix,;t t
44105s,@prefix@,$prefix,;t t
44106s,@program_transform_name@,$program_transform_name,;t t
44107s,@bindir@,$bindir,;t t
44108s,@sbindir@,$sbindir,;t t
44109s,@libexecdir@,$libexecdir,;t t
44110s,@datadir@,$datadir,;t t
44111s,@sysconfdir@,$sysconfdir,;t t
44112s,@sharedstatedir@,$sharedstatedir,;t t
44113s,@localstatedir@,$localstatedir,;t t
44114s,@libdir@,$libdir,;t t
44115s,@includedir@,$includedir,;t t
44116s,@oldincludedir@,$oldincludedir,;t t
44117s,@infodir@,$infodir,;t t
44118s,@mandir@,$mandir,;t t
44119s,@build_alias@,$build_alias,;t t
44120s,@host_alias@,$host_alias,;t t
44121s,@target_alias@,$target_alias,;t t
44122s,@DEFS@,$DEFS,;t t
44123s,@ECHO_C@,$ECHO_C,;t t
44124s,@ECHO_N@,$ECHO_N,;t t
44125s,@ECHO_T@,$ECHO_T,;t t
44126s,@LIBS@,$LIBS,;t t
44127s,@build@,$build,;t t
44128s,@build_cpu@,$build_cpu,;t t
44129s,@build_vendor@,$build_vendor,;t t
44130s,@build_os@,$build_os,;t t
44131s,@host@,$host,;t t
44132s,@host_cpu@,$host_cpu,;t t
44133s,@host_vendor@,$host_vendor,;t t
44134s,@host_os@,$host_os,;t t
44135s,@target@,$target,;t t
44136s,@target_cpu@,$target_cpu,;t t
44137s,@target_vendor@,$target_vendor,;t t
44138s,@target_os@,$target_os,;t t
44139s,@CC@,$CC,;t t
44140s,@CFLAGS@,$CFLAGS,;t t
44141s,@LDFLAGS@,$LDFLAGS,;t t
44142s,@CPPFLAGS@,$CPPFLAGS,;t t
44143s,@ac_ct_CC@,$ac_ct_CC,;t t
44144s,@EXEEXT@,$EXEEXT,;t t
44145s,@OBJEXT@,$OBJEXT,;t t
44146s,@CPP@,$CPP,;t t
44147s,@EGREP@,$EGREP,;t t
44148s,@CXX@,$CXX,;t t
44149s,@CXXFLAGS@,$CXXFLAGS,;t t
44150s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44151s,@RANLIB@,$RANLIB,;t t
44152s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44153s,@AR@,$AR,;t t
44154s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44155s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44156s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44157s,@STRIP@,$STRIP,;t t
44158s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44159s,@LN_S@,$LN_S,;t t
44160s,@CXXCPP@,$CXXCPP,;t t
44161s,@subdirs@,$subdirs,;t t
44162s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44163s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44164s,@GTK_LIBS@,$GTK_LIBS,;t t
44165s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44166s,@X_CFLAGS@,$X_CFLAGS,;t t
44167s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44168s,@X_LIBS@,$X_LIBS,;t t
44169s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44170s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44171s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44172s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44173s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44174s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44175s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44176s,@RESCOMP@,$RESCOMP,;t t
44177s,@DEREZ@,$DEREZ,;t t
44178s,@SETFILE@,$SETFILE,;t t
44179s,@LIBICONV@,$LIBICONV,;t t
44180s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44181s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44182s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44183s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44184s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44185s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44186s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44187s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44188s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44189s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44190s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44191s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44192s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44193s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44194s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44195s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44196s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44197s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44198s,@VENDOR@,$VENDOR,;t t
44199s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44200s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44201s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44202s,@WXUNIV@,$WXUNIV,;t t
44203s,@MONOLITHIC@,$MONOLITHIC,;t t
44204s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44205s,@EXTRALIBS@,$EXTRALIBS,;t t
44206s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44207s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44208s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44209s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44210s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44211s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44212s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44213s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44214s,@UNICODE@,$UNICODE,;t t
44215s,@BUILD@,$BUILD,;t t
44216s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44217s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44218s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44219s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44220s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44221s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44222s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44223s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44224s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44225s,@SET_MAKE@,$SET_MAKE,;t t
44226s,@MAKE_SET@,$MAKE_SET,;t t
44227s,@ac_ct_AR@,$ac_ct_AR,;t t
44228s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44229s,@NM@,$NM,;t t
44230s,@ac_ct_NM@,$ac_ct_NM,;t t
44231s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44232s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44233s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44234s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44235s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44236s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44237s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44238s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44239s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44240s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44241s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44242s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44243s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44244s,@LIBPREFIX@,$LIBPREFIX,;t t
44245s,@LIBEXT@,$LIBEXT,;t t
44246s,@DLLPREFIX@,$DLLPREFIX,;t t
44247s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44248s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44249s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44250s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44251s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44252s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44253s,@PIC_FLAG@,$PIC_FLAG,;t t
44254s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44255s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44256s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44257s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44258s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44259s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44260s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44261s,@GCC_PCH@,$GCC_PCH,;t t
44262s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44263s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44264s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44265s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44266s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44267s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44268s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44269s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44270s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44271s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44272s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44273s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44274s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44275s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44276s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44277s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44278s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44279s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44280s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 44281s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 44282s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44283s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44284s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44285s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44286s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 44287s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 44288s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44289s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44290s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44291s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44292s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44293s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44294s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44295s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44296s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44297s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44298s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44299s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44300s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44301s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44302s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44303s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
ebee3cd0
VS
44304s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44305s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44306s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44307s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44308s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44309s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44310s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44311s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44312s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44313s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44314s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44315s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44316s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44317s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44318s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44319s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44320s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44321s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44322s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44323s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44324s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44325s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44326s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44327s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44328s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44329s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44330s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 44331s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44332s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44333s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44334s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44335s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44336s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44337s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44338s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44339s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44340s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44341s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44342s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44343s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44344s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44345s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44346s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44347s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44348s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44349s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44350s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44351s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44352s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44353s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44354s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44355s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44356s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44357s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44358s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44359s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44360s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44361s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44362s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44363s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44364s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44365s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44366s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44367s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44368s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44369s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44370s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44371s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44372s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44373s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44374s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44375s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44376s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44377s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44378s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44379s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44380s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44381s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44382s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44383s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44384s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44385s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44386s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44387s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44388s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44389s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44390s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44391s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44392s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44393s,@USE_GUI@,$USE_GUI,;t t
44394s,@AFMINSTALL@,$AFMINSTALL,;t t
44395s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44396s,@TOOLKIT@,$TOOLKIT,;t t
44397s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44398s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44399s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44400s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44401s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44402s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44403s,@WIDGET_SET@,$WIDGET_SET,;t t
44404s,@WX_RELEASE@,$WX_RELEASE,;t t
44405s,@WX_VERSION@,$WX_VERSION,;t t
44406s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44407s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44408s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44409s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44410s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44411s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44412s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44413s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44414s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44415s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44416s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44417s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44418s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44419s,@DISTDIR@,$DISTDIR,;t t
44420s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44421s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44422s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44423s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44424s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44425s,@RESFLAGS@,$RESFLAGS,;t t
44426s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44427s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44428s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44429s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44430s,@MACRESCOMP@,$MACRESCOMP,;t t
44431s,@MACSETFILE@,$MACSETFILE,;t t
44432s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44433s,@GCC@,$GCC,;t t
a848cd7e 44434s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44435s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44436s,@LIBOBJS@,$LIBOBJS,;t t
44437s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44438CEOF
44439
44440_ACEOF
44441
44442 cat >>$CONFIG_STATUS <<\_ACEOF
44443 # Split the substitutions into bite-sized pieces for seds with
44444 # small command number limits, like on Digital OSF/1 and HP-UX.
44445 ac_max_sed_lines=48
44446 ac_sed_frag=1 # Number of current file.
44447 ac_beg=1 # First line for current file.
44448 ac_end=$ac_max_sed_lines # Line after last line for current file.
44449 ac_more_lines=:
44450 ac_sed_cmds=
44451 while $ac_more_lines; do
44452 if test $ac_beg -gt 1; then
44453 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44454 else
44455 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44456 fi
44457 if test ! -s $tmp/subs.frag; then
44458 ac_more_lines=false
44459 else
44460 # The purpose of the label and of the branching condition is to
44461 # speed up the sed processing (if there are no `@' at all, there
44462 # is no need to browse any of the substitutions).
44463 # These are the two extra sed commands mentioned above.
44464 (echo ':t
44465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44466 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44467 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44468 else
ac1cb8d3 44469 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44470 fi
44471 ac_sed_frag=`expr $ac_sed_frag + 1`
44472 ac_beg=$ac_end
44473 ac_end=`expr $ac_end + $ac_max_sed_lines`
44474 fi
44475 done
44476 if test -z "$ac_sed_cmds"; then
44477 ac_sed_cmds=cat
44478 fi
44479fi # test -n "$CONFIG_FILES"
44480
44481_ACEOF
44482cat >>$CONFIG_STATUS <<\_ACEOF
44483for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44485 case $ac_file in
44486 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44487 cat >$tmp/stdin
44488 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44489 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44491 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44492 * ) ac_file_in=$ac_file.in ;;
44493 esac
44494
44495 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44496 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44497$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44498 X"$ac_file" : 'X\(//\)[^/]' \| \
44499 X"$ac_file" : 'X\(//\)$' \| \
44500 X"$ac_file" : 'X\(/\)' \| \
44501 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44502echo X"$ac_file" |
44503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44505 /^X\(\/\/\)$/{ s//\1/; q; }
44506 /^X\(\/\).*/{ s//\1/; q; }
44507 s/.*/./; q'`
44508 { if $as_mkdir_p; then
44509 mkdir -p "$ac_dir"
44510 else
44511 as_dir="$ac_dir"
44512 as_dirs=
44513 while test ! -d "$as_dir"; do
44514 as_dirs="$as_dir $as_dirs"
44515 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44516$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44517 X"$as_dir" : 'X\(//\)[^/]' \| \
44518 X"$as_dir" : 'X\(//\)$' \| \
44519 X"$as_dir" : 'X\(/\)' \| \
44520 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44521echo X"$as_dir" |
44522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44524 /^X\(\/\/\)$/{ s//\1/; q; }
44525 /^X\(\/\).*/{ s//\1/; q; }
44526 s/.*/./; q'`
44527 done
44528 test ! -n "$as_dirs" || mkdir $as_dirs
44529 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44530echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44531 { (exit 1); exit 1; }; }; }
44532
44533 ac_builddir=.
44534
44535if test "$ac_dir" != .; then
44536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44537 # A "../" for each directory in $ac_dir_suffix.
44538 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44539else
44540 ac_dir_suffix= ac_top_builddir=
44541fi
44542
44543case $srcdir in
44544 .) # No --srcdir option. We are building in place.
44545 ac_srcdir=.
44546 if test -z "$ac_top_builddir"; then
44547 ac_top_srcdir=.
44548 else
44549 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44550 fi ;;
44551 [\\/]* | ?:[\\/]* ) # Absolute path.
44552 ac_srcdir=$srcdir$ac_dir_suffix;
44553 ac_top_srcdir=$srcdir ;;
44554 *) # Relative path.
44555 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44556 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44557esac
ac1cb8d3
VS
44558
44559# Do not use `cd foo && pwd` to compute absolute paths, because
44560# the directories may not exist.
44561case `pwd` in
44562.) ac_abs_builddir="$ac_dir";;
44563*)
44564 case "$ac_dir" in
44565 .) ac_abs_builddir=`pwd`;;
44566 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44567 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44568 esac;;
44569esac
44570case $ac_abs_builddir in
44571.) ac_abs_top_builddir=${ac_top_builddir}.;;
44572*)
44573 case ${ac_top_builddir}. in
44574 .) ac_abs_top_builddir=$ac_abs_builddir;;
44575 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44576 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44577 esac;;
44578esac
44579case $ac_abs_builddir in
44580.) ac_abs_srcdir=$ac_srcdir;;
44581*)
44582 case $ac_srcdir in
44583 .) ac_abs_srcdir=$ac_abs_builddir;;
44584 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44585 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44586 esac;;
44587esac
44588case $ac_abs_builddir in
44589.) ac_abs_top_srcdir=$ac_top_srcdir;;
44590*)
44591 case $ac_top_srcdir in
44592 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44593 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44594 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44595 esac;;
44596esac
a848cd7e
SC
44597
44598
44599 case $INSTALL in
44600 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44601 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44602 esac
44603
a848cd7e
SC
44604 # Let's still pretend it is `configure' which instantiates (i.e., don't
44605 # use $as_me), people would be surprised to read:
44606 # /* config.h. Generated by config.status. */
44607 if test x"$ac_file" = x-; then
44608 configure_input=
44609 else
44610 configure_input="$ac_file. "
44611 fi
44612 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44613 sed 's,.*/,,'` by configure."
a848cd7e
SC
44614
44615 # First look for the input files in the build tree, otherwise in the
44616 # src tree.
44617 ac_file_inputs=`IFS=:
44618 for f in $ac_file_in; do
44619 case $f in
44620 -) echo $tmp/stdin ;;
44621 [\\/$]*)
ac1cb8d3
VS
44622 # Absolute (can't be DOS-style, as IFS=:)
44623 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44624echo "$as_me: error: cannot find input file: $f" >&2;}
44625 { (exit 1); exit 1; }; }
ac1cb8d3 44626 echo "$f";;
a848cd7e 44627 *) # Relative
ac1cb8d3
VS
44628 if test -f "$f"; then
44629 # Build tree
44630 echo "$f"
44631 elif test -f "$srcdir/$f"; then
44632 # Source tree
44633 echo "$srcdir/$f"
44634 else
44635 # /dev/null tree
44636 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44637echo "$as_me: error: cannot find input file: $f" >&2;}
44638 { (exit 1); exit 1; }; }
ac1cb8d3 44639 fi;;
a848cd7e
SC
44640 esac
44641 done` || { (exit 1); exit 1; }
07158944
VZ
44642
44643 if test x"$ac_file" != x-; then
44644 { echo "$as_me:$LINENO: creating $ac_file" >&5
44645echo "$as_me: creating $ac_file" >&6;}
44646 rm -f "$ac_file"
44647 fi
a848cd7e
SC
44648_ACEOF
44649cat >>$CONFIG_STATUS <<_ACEOF
44650 sed "$ac_vpsub
44651$extrasub
44652_ACEOF
44653cat >>$CONFIG_STATUS <<\_ACEOF
44654:t
44655/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44656s,@configure_input@,$configure_input,;t t
44657s,@srcdir@,$ac_srcdir,;t t
44658s,@abs_srcdir@,$ac_abs_srcdir,;t t
44659s,@top_srcdir@,$ac_top_srcdir,;t t
44660s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44661s,@builddir@,$ac_builddir,;t t
44662s,@abs_builddir@,$ac_abs_builddir,;t t
44663s,@top_builddir@,$ac_top_builddir,;t t
44664s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44665s,@INSTALL@,$ac_INSTALL,;t t
44666" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44667 rm -f $tmp/stdin
44668 if test x"$ac_file" != x-; then
44669 mv $tmp/out $ac_file
44670 else
44671 cat $tmp/out
44672 rm -f $tmp/out
44673 fi
44674
ceec2216
RL
44675 # Run the commands associated with the file.
44676 case $ac_file in
44677 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44678 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44679 esac
a848cd7e
SC
44680done
44681_ACEOF
44682cat >>$CONFIG_STATUS <<\_ACEOF
44683
44684#
44685# CONFIG_HEADER section.
44686#
44687
44688# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44689# NAME is the cpp macro being defined and VALUE is the value it is being given.
44690#
44691# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
44692ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44693ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
44694ac_dC=' '
44695ac_dD=',;t'
44696# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 44697ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
44698ac_uB='$,\1#\2define\3'
44699ac_uC=' '
44700ac_uD=',;t'
44701
44702for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44703 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44704 case $ac_file in
44705 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44706 cat >$tmp/stdin
44707 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44708 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44709 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44710 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44711 * ) ac_file_in=$ac_file.in ;;
44712 esac
44713
44714 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44715echo "$as_me: creating $ac_file" >&6;}
44716
44717 # First look for the input files in the build tree, otherwise in the
44718 # src tree.
44719 ac_file_inputs=`IFS=:
44720 for f in $ac_file_in; do
44721 case $f in
44722 -) echo $tmp/stdin ;;
44723 [\\/$]*)
ac1cb8d3
VS
44724 # Absolute (can't be DOS-style, as IFS=:)
44725 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44726echo "$as_me: error: cannot find input file: $f" >&2;}
44727 { (exit 1); exit 1; }; }
ac1cb8d3
VS
44728 # Do quote $f, to prevent DOS paths from being IFS'd.
44729 echo "$f";;
a848cd7e 44730 *) # Relative
ac1cb8d3
VS
44731 if test -f "$f"; then
44732 # Build tree
44733 echo "$f"
44734 elif test -f "$srcdir/$f"; then
44735 # Source tree
44736 echo "$srcdir/$f"
44737 else
44738 # /dev/null tree
44739 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44740echo "$as_me: error: cannot find input file: $f" >&2;}
44741 { (exit 1); exit 1; }; }
ac1cb8d3 44742 fi;;
a848cd7e
SC
44743 esac
44744 done` || { (exit 1); exit 1; }
44745 # Remove the trailing spaces.
ac1cb8d3 44746 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
44747
44748_ACEOF
44749
44750# Transform confdefs.h into two sed scripts, `conftest.defines' and
44751# `conftest.undefs', that substitutes the proper values into
44752# config.h.in to produce config.h. The first handles `#define'
44753# templates, and the second `#undef' templates.
44754# And first: Protect against being on the right side of a sed subst in
44755# config.status. Protect against being in an unquoted here document
44756# in config.status.
44757rm -f conftest.defines conftest.undefs
44758# Using a here document instead of a string reduces the quoting nightmare.
44759# Putting comments in sed scripts is not portable.
44760#
44761# `end' is used to avoid that the second main sed command (meant for
44762# 0-ary CPP macros) applies to n-ary macro definitions.
44763# See the Autoconf documentation for `clear'.
44764cat >confdef2sed.sed <<\_ACEOF
44765s/[\\&,]/\\&/g
44766s,[\\$`],\\&,g
44767t clear
44768: clear
ac1cb8d3 44769s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 44770t end
ac1cb8d3 44771s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
44772: end
44773_ACEOF
44774# If some macros were called several times there might be several times
44775# the same #defines, which is useless. Nevertheless, we may not want to
44776# sort them, since we want the *last* AC-DEFINE to be honored.
44777uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
44778sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
44779rm -f confdef2sed.sed
44780
44781# This sed command replaces #undef with comments. This is necessary, for
44782# example, in the case of _POSIX_SOURCE, which is predefined and required
44783# on some systems where configure will not decide to define it.
44784cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 44785s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
44786_ACEOF
44787
44788# Break up conftest.defines because some shells have a limit on the size
44789# of here documents, and old seds have small limits too (100 cmds).
44790echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 44791echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
44792echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
44793echo ' :' >>$CONFIG_STATUS
44794rm -f conftest.tail
44795while grep . conftest.defines >/dev/null
44796do
44797 # Write a limited-size here document to $tmp/defines.sed.
44798 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
44799 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 44800 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
44801 # Work around the forget-to-reset-the-flag bug.
44802 echo 't clr' >>$CONFIG_STATUS
44803 echo ': clr' >>$CONFIG_STATUS
44804 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
44805 echo 'CEOF
44806 sed -f $tmp/defines.sed $tmp/in >$tmp/out
44807 rm -f $tmp/in
44808 mv $tmp/out $tmp/in
44809' >>$CONFIG_STATUS
44810 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
44811 rm -f conftest.defines
44812 mv conftest.tail conftest.defines
44813done
44814rm -f conftest.defines
44815echo ' fi # grep' >>$CONFIG_STATUS
44816echo >>$CONFIG_STATUS
44817
44818# Break up conftest.undefs because some shells have a limit on the size
44819# of here documents, and old seds have small limits too (100 cmds).
44820echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
44821rm -f conftest.tail
44822while grep . conftest.undefs >/dev/null
44823do
44824 # Write a limited-size here document to $tmp/undefs.sed.
44825 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44826 # Speed up: don't consider the non `#undef'
ac1cb8d3 44827 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
44828 # Work around the forget-to-reset-the-flag bug.
44829 echo 't clr' >>$CONFIG_STATUS
44830 echo ': clr' >>$CONFIG_STATUS
44831 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44832 echo 'CEOF
44833 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44834 rm -f $tmp/in
44835 mv $tmp/out $tmp/in
44836' >>$CONFIG_STATUS
44837 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44838 rm -f conftest.undefs
44839 mv conftest.tail conftest.undefs
44840done
44841rm -f conftest.undefs
44842
44843cat >>$CONFIG_STATUS <<\_ACEOF
44844 # Let's still pretend it is `configure' which instantiates (i.e., don't
44845 # use $as_me), people would be surprised to read:
44846 # /* config.h. Generated by config.status. */
44847 if test x"$ac_file" = x-; then
44848 echo "/* Generated by configure. */" >$tmp/config.h
44849 else
44850 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
44851 fi
44852 cat $tmp/in >>$tmp/config.h
44853 rm -f $tmp/in
44854 if test x"$ac_file" != x-; then
44855 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44856 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44857echo "$as_me: $ac_file is unchanged" >&6;}
44858 else
44859 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44860$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44861 X"$ac_file" : 'X\(//\)[^/]' \| \
44862 X"$ac_file" : 'X\(//\)$' \| \
44863 X"$ac_file" : 'X\(/\)' \| \
44864 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44865echo X"$ac_file" |
44866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44868 /^X\(\/\/\)$/{ s//\1/; q; }
44869 /^X\(\/\).*/{ s//\1/; q; }
44870 s/.*/./; q'`
44871 { if $as_mkdir_p; then
44872 mkdir -p "$ac_dir"
44873 else
44874 as_dir="$ac_dir"
44875 as_dirs=
44876 while test ! -d "$as_dir"; do
44877 as_dirs="$as_dir $as_dirs"
44878 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44879$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44880 X"$as_dir" : 'X\(//\)[^/]' \| \
44881 X"$as_dir" : 'X\(//\)$' \| \
44882 X"$as_dir" : 'X\(/\)' \| \
44883 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44884echo X"$as_dir" |
44885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44886 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44887 /^X\(\/\/\)$/{ s//\1/; q; }
44888 /^X\(\/\).*/{ s//\1/; q; }
44889 s/.*/./; q'`
44890 done
44891 test ! -n "$as_dirs" || mkdir $as_dirs
44892 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44893echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44894 { (exit 1); exit 1; }; }; }
44895
44896 rm -f $ac_file
44897 mv $tmp/config.h $ac_file
44898 fi
44899 else
44900 cat $tmp/config.h
44901 rm -f $tmp/config.h
44902 fi
44903done
44904_ACEOF
44905cat >>$CONFIG_STATUS <<\_ACEOF
44906
44907#
44908# CONFIG_COMMANDS section.
44909#
44910for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44911 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44912 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44913 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44914$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44915 X"$ac_dest" : 'X\(//\)[^/]' \| \
44916 X"$ac_dest" : 'X\(//\)$' \| \
44917 X"$ac_dest" : 'X\(/\)' \| \
44918 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44919echo X"$ac_dest" |
44920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44922 /^X\(\/\/\)$/{ s//\1/; q; }
44923 /^X\(\/\).*/{ s//\1/; q; }
44924 s/.*/./; q'`
ac1cb8d3
VS
44925 { if $as_mkdir_p; then
44926 mkdir -p "$ac_dir"
44927 else
44928 as_dir="$ac_dir"
44929 as_dirs=
44930 while test ! -d "$as_dir"; do
44931 as_dirs="$as_dir $as_dirs"
44932 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44933$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44934 X"$as_dir" : 'X\(//\)[^/]' \| \
44935 X"$as_dir" : 'X\(//\)$' \| \
44936 X"$as_dir" : 'X\(/\)' \| \
44937 . : '\(.\)' 2>/dev/null ||
44938echo X"$as_dir" |
44939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44941 /^X\(\/\/\)$/{ s//\1/; q; }
44942 /^X\(\/\).*/{ s//\1/; q; }
44943 s/.*/./; q'`
44944 done
44945 test ! -n "$as_dirs" || mkdir $as_dirs
44946 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44947echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44948 { (exit 1); exit 1; }; }; }
44949
a848cd7e
SC
44950 ac_builddir=.
44951
44952if test "$ac_dir" != .; then
44953 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44954 # A "../" for each directory in $ac_dir_suffix.
44955 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44956else
44957 ac_dir_suffix= ac_top_builddir=
44958fi
44959
44960case $srcdir in
44961 .) # No --srcdir option. We are building in place.
44962 ac_srcdir=.
44963 if test -z "$ac_top_builddir"; then
44964 ac_top_srcdir=.
44965 else
44966 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44967 fi ;;
44968 [\\/]* | ?:[\\/]* ) # Absolute path.
44969 ac_srcdir=$srcdir$ac_dir_suffix;
44970 ac_top_srcdir=$srcdir ;;
44971 *) # Relative path.
44972 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44973 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44974esac
ac1cb8d3
VS
44975
44976# Do not use `cd foo && pwd` to compute absolute paths, because
44977# the directories may not exist.
44978case `pwd` in
44979.) ac_abs_builddir="$ac_dir";;
44980*)
44981 case "$ac_dir" in
44982 .) ac_abs_builddir=`pwd`;;
44983 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44984 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44985 esac;;
44986esac
44987case $ac_abs_builddir in
44988.) ac_abs_top_builddir=${ac_top_builddir}.;;
44989*)
44990 case ${ac_top_builddir}. in
44991 .) ac_abs_top_builddir=$ac_abs_builddir;;
44992 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44993 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44994 esac;;
44995esac
44996case $ac_abs_builddir in
44997.) ac_abs_srcdir=$ac_srcdir;;
44998*)
44999 case $ac_srcdir in
45000 .) ac_abs_srcdir=$ac_abs_builddir;;
45001 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45002 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45003 esac;;
45004esac
45005case $ac_abs_builddir in
45006.) ac_abs_top_srcdir=$ac_top_srcdir;;
45007*)
45008 case $ac_top_srcdir in
45009 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45010 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45011 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45012 esac;;
45013esac
a848cd7e
SC
45014
45015
45016 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45017echo "$as_me: executing $ac_dest commands" >&6;}
45018 case $ac_dest in
ceec2216
RL
45019 wx-config ) rm -f wx-config
45020 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45021 ;;
a848cd7e
SC
45022 esac
45023done
45024_ACEOF
45025
45026cat >>$CONFIG_STATUS <<\_ACEOF
45027
45028{ (exit 0); exit 0; }
45029_ACEOF
45030chmod +x $CONFIG_STATUS
45031ac_clean_files=$ac_clean_files_save
45032
45033
45034# configure is writing to config.log, and then calls config.status.
45035# config.status does its own redirection, appending to config.log.
45036# Unfortunately, on DOS this fails, as config.log is still kept open
45037# by configure, so config.status won't be able to write to it; its
45038# output is simply discarded. So we exec the FD to /dev/null,
45039# effectively closing config.log, so it can be properly (re)opened and
45040# appended to by config.status. When coming back to configure, we
45041# need to make the FD available again.
45042if test "$no_create" != yes; then
45043 ac_cs_success=:
45044 ac_config_status_args=
45045 test "$silent" = yes &&
45046 ac_config_status_args="$ac_config_status_args --quiet"
45047 exec 5>/dev/null
45048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45049 exec 5>>config.log
45050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45051 # would make configure fail if this is the last instruction.
45052 $ac_cs_success || { (exit 1); exit 1; }
45053fi
45054
45055#
45056# CONFIG_SUBDIRS section.
45057#
45058if test "$no_recursion" != yes; then
45059
45060 # Remove --cache-file and --srcdir arguments so they do not pile up.
45061 ac_sub_configure_args=
45062 ac_prev=
45063 for ac_arg in $ac_configure_args; do
45064 if test -n "$ac_prev"; then
45065 ac_prev=
45066 continue
45067 fi
45068 case $ac_arg in
45069 -cache-file | --cache-file | --cache-fil | --cache-fi \
45070 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45071 ac_prev=cache_file ;;
45072 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45073 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45074 | --c=*)
45075 ;;
45076 --config-cache | -C)
45077 ;;
45078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45079 ac_prev=srcdir ;;
45080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45081 ;;
45082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45083 ac_prev=prefix ;;
45084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45085 ;;
45086 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45087 esac
45088 done
45089
45090 # Always prepend --prefix to ensure using the same prefix
45091 # in subdir configurations.
45092 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45093
45094 ac_popdir=`pwd`
45095 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45096
45097 # Do not complain, so a configure script can configure whichever
45098 # parts of a large source tree are present.
45099 test -d $srcdir/$ac_dir || continue
45100
45101 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45102echo "$as_me: configuring in $ac_dir" >&6;}
45103 { if $as_mkdir_p; then
45104 mkdir -p "$ac_dir"
45105 else
45106 as_dir="$ac_dir"
45107 as_dirs=
45108 while test ! -d "$as_dir"; do
45109 as_dirs="$as_dir $as_dirs"
45110 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45111$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45112 X"$as_dir" : 'X\(//\)[^/]' \| \
45113 X"$as_dir" : 'X\(//\)$' \| \
45114 X"$as_dir" : 'X\(/\)' \| \
45115 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45116echo X"$as_dir" |
45117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45119 /^X\(\/\/\)$/{ s//\1/; q; }
45120 /^X\(\/\).*/{ s//\1/; q; }
45121 s/.*/./; q'`
45122 done
45123 test ! -n "$as_dirs" || mkdir $as_dirs
45124 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45125echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45126 { (exit 1); exit 1; }; }; }
45127
45128 ac_builddir=.
45129
45130if test "$ac_dir" != .; then
45131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45132 # A "../" for each directory in $ac_dir_suffix.
45133 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45134else
45135 ac_dir_suffix= ac_top_builddir=
45136fi
45137
45138case $srcdir in
45139 .) # No --srcdir option. We are building in place.
45140 ac_srcdir=.
45141 if test -z "$ac_top_builddir"; then
45142 ac_top_srcdir=.
45143 else
45144 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45145 fi ;;
45146 [\\/]* | ?:[\\/]* ) # Absolute path.
45147 ac_srcdir=$srcdir$ac_dir_suffix;
45148 ac_top_srcdir=$srcdir ;;
45149 *) # Relative path.
45150 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45151 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45152esac
ac1cb8d3
VS
45153
45154# Do not use `cd foo && pwd` to compute absolute paths, because
45155# the directories may not exist.
45156case `pwd` in
45157.) ac_abs_builddir="$ac_dir";;
45158*)
45159 case "$ac_dir" in
45160 .) ac_abs_builddir=`pwd`;;
45161 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45162 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45163 esac;;
45164esac
45165case $ac_abs_builddir in
45166.) ac_abs_top_builddir=${ac_top_builddir}.;;
45167*)
45168 case ${ac_top_builddir}. in
45169 .) ac_abs_top_builddir=$ac_abs_builddir;;
45170 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45171 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45172 esac;;
45173esac
45174case $ac_abs_builddir in
45175.) ac_abs_srcdir=$ac_srcdir;;
45176*)
45177 case $ac_srcdir in
45178 .) ac_abs_srcdir=$ac_abs_builddir;;
45179 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45180 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45181 esac;;
45182esac
45183case $ac_abs_builddir in
45184.) ac_abs_top_srcdir=$ac_top_srcdir;;
45185*)
45186 case $ac_top_srcdir in
45187 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45188 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45189 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45190 esac;;
45191esac
a848cd7e
SC
45192
45193
45194 cd $ac_dir
45195
45196 # Check for guested configure; otherwise get Cygnus style configure.
45197 if test -f $ac_srcdir/configure.gnu; then
45198 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45199 elif test -f $ac_srcdir/configure; then
45200 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45201 elif test -f $ac_srcdir/configure.in; then
45202 ac_sub_configure=$ac_configure
45203 else
45204 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45205echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45206 ac_sub_configure=
45207 fi
45208
45209 # The recursion is here.
45210 if test -n "$ac_sub_configure"; then
45211 # Make the cache file name correct relative to the subdirectory.
45212 case $cache_file in
45213 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45214 *) # Relative path.
ac1cb8d3 45215 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45216 esac
45217
45218 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45219echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45220 # The eval makes quoting arguments work.
45221 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45222 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45223 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45224echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45225 { (exit 1); exit 1; }; }
45226 fi
45227
07158944 45228 cd "$ac_popdir"
a848cd7e
SC
45229 done
45230fi
45231
45232
45233echo
77ffb593 45234echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45235echo ""
4d4ff94c 45236echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45237echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45238
77ffb593
JS
45239echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45240echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45241echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45242
77ffb593
JS
45243echo " What level of wxWidgets compatibility should be enabled?"
45244echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45245echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45246
77ffb593 45247echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45248echo " jpeg ${wxUSE_LIBJPEG-none}"
45249echo " png ${wxUSE_LIBPNG-none}"
45250echo " regex ${wxUSE_REGEX}"
45251echo " tiff ${wxUSE_LIBTIFF-none}"
45252if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45253echo " xpm ${wxUSE_LIBXPM-none}"
45254fi
45255echo " zlib ${wxUSE_ZLIB}"
45256echo " odbc ${wxUSE_ODBC}"
45257echo " expat ${wxUSE_EXPAT}"
45258echo " libmspack ${wxUSE_LIBMSPACK}"
45259echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45260echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45261
45262echo ""
45263