]> git.saurik.com Git - wxWidgets.git/blame - configure
Use treebase.h for enum duplicated in port/treectrl.h.
[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.
e0d84535 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.0.
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'
e0d84535
RL
273PACKAGE_VERSION='2.6.0'
274PACKAGE_STRING='wxWidgets 2.6.0'
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"
83d8eb47 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_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_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
e0d84535 797\`configure' configures wxWidgets 2.6.0 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
e0d84535 863 short | recursive ) echo "Configuration of wxWidgets 2.6.0:";;
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
f34ca037 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
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
a848cd7e
SC
1032 --enable-metafiles use wxMetaFile (Windows only)
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
1035 --enable-palette use wxPalette class
1036 --enable-image use wxImage class
1037 --enable-gif use gif images (GIF file format)
1038 --enable-pcx use pcx images (PCX file format)
1039 --enable-iff use iff images (IFF file format)
1040 --enable-pnm use pnm images (PNM file format)
1041 --enable-xpm use xpm images (XPM file format)
1042 --enable-icocur use Windows ICO and CUR formats
77ffb593 1043 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1044 --enable-vendor=VENDOR vendor name (win32 DLL only)
1045 --disable-largefile omit support for large files
1046 --disable-gtktest do not try to compile and run a test GTK+ program
1047 --disable-gtktest Do not try to compile and run a test GTK program
1048 --disable-sdltest Do not try to compile and run a test SDL program
1049 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1050 --disable-precomp-headers
1051 don't use precompiled headers even if compiler can
a848cd7e
SC
1052
1053Optional Packages:
1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1056 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1057 --with-motif use Motif/Lesstif
1058 --with-mac use Mac OS X
1059 --with-cocoa use Cocoa
1060 --with-wine use Wine
1061 --with-msw use MS-Windows
1062 --with-pm use OS/2 Presentation Manager
1063 --with-mgl use SciTech MGL
1064 --with-microwin use MicroWindows
1065 --with-x11 use X11
1066 --with-libpng use libpng (PNG image format)
1067 --with-libjpeg use libjpeg (JPEG file format)
1068 --with-libtiff use libtiff (TIFF file format)
1069 --with-libxpm use libxpm (XPM file format)
1070 --with-libmspack use libmspack (CHM help files loading)
1071 --with-sdl use SDL for audio on Unix
d51253e8 1072 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1073 --with-opengl use OpenGL (or Mesa)
1074 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1075 --with-regex enable support for wxRegEx class
1076 --with-zlib use zlib for LZW compression
1077 --with-odbc use the IODBC and wxODBC classes
1078 --with-expat enable XML support using expat parser
ceec2216 1079 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1080 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1081 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1082 --with-x use the X Window System
1083 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1084 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1085 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1086 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1087 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1088
1089Some influential environment variables:
dcc1b6ad
VS
1090 CC C compiler command
1091 CFLAGS C compiler flags
1092 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1093 nonstandard directory <lib dir>
1094 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095 headers in a nonstandard directory <include dir>
1096 CPP C preprocessor
1097 CXX C++ compiler command
1098 CXXFLAGS C++ compiler flags
1099 CXXCPP C++ preprocessor
a848cd7e
SC
1100
1101Use these variables to override the choices made by `configure' or to help
1102it to find libraries and programs with nonstandard names/locations.
1103
77ffb593 1104Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1105_ACEOF
1106fi
1107
1108if test "$ac_init_help" = "recursive"; then
1109 # If there are subdirs, report their specific --help.
1110 ac_popdir=`pwd`
1111 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1112 test -d $ac_dir || continue
1113 ac_builddir=.
1114
1115if test "$ac_dir" != .; then
1116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1117 # A "../" for each directory in $ac_dir_suffix.
1118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1119else
1120 ac_dir_suffix= ac_top_builddir=
1121fi
1122
1123case $srcdir in
1124 .) # No --srcdir option. We are building in place.
1125 ac_srcdir=.
1126 if test -z "$ac_top_builddir"; then
1127 ac_top_srcdir=.
1128 else
1129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1130 fi ;;
1131 [\\/]* | ?:[\\/]* ) # Absolute path.
1132 ac_srcdir=$srcdir$ac_dir_suffix;
1133 ac_top_srcdir=$srcdir ;;
1134 *) # Relative path.
1135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1136 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1137esac
ac1cb8d3
VS
1138
1139# Do not use `cd foo && pwd` to compute absolute paths, because
1140# the directories may not exist.
1141case `pwd` in
1142.) ac_abs_builddir="$ac_dir";;
1143*)
1144 case "$ac_dir" in
1145 .) ac_abs_builddir=`pwd`;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1147 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_top_builddir=${ac_top_builddir}.;;
1152*)
1153 case ${ac_top_builddir}. in
1154 .) ac_abs_top_builddir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1156 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_srcdir=$ac_srcdir;;
1161*)
1162 case $ac_srcdir in
1163 .) ac_abs_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1165 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1166 esac;;
1167esac
1168case $ac_abs_builddir in
1169.) ac_abs_top_srcdir=$ac_top_srcdir;;
1170*)
1171 case $ac_top_srcdir in
1172 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1174 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1175 esac;;
1176esac
a848cd7e
SC
1177
1178 cd $ac_dir
1179 # Check for guested configure; otherwise get Cygnus style configure.
1180 if test -f $ac_srcdir/configure.gnu; then
1181 echo
1182 $SHELL $ac_srcdir/configure.gnu --help=recursive
1183 elif test -f $ac_srcdir/configure; then
1184 echo
1185 $SHELL $ac_srcdir/configure --help=recursive
1186 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1187 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1188 echo
1189 $ac_configure --help
1190 else
1191 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1192 fi
fb00f58d 1193 cd $ac_popdir
a848cd7e
SC
1194 done
1195fi
1196
1197test -n "$ac_init_help" && exit 0
1198if $ac_init_version; then
1199 cat <<\_ACEOF
e0d84535 1200wxWidgets configure 2.6.0
ac1cb8d3 1201generated by GNU Autoconf 2.59
a848cd7e 1202
ac1cb8d3 1203Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1204This configure script is free software; the Free Software Foundation
1205gives unlimited permission to copy, distribute and modify it.
1206_ACEOF
1207 exit 0
1208fi
1209exec 5>config.log
1210cat >&5 <<_ACEOF
1211This file contains any messages produced by compilers while
1212running configure, to aid debugging if configure makes a mistake.
1213
e0d84535 1214It was created by wxWidgets $as_me 2.6.0, which was
ac1cb8d3 1215generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1216
1217 $ $0 $@
1218
1219_ACEOF
1220{
1221cat <<_ASUNAME
1222## --------- ##
1223## Platform. ##
1224## --------- ##
1225
1226hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231
1232/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1234
1235/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1236/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1237/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1239/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1240/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1241/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1242
1243_ASUNAME
1244
1245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246for as_dir in $PATH
1247do
1248 IFS=$as_save_IFS
1249 test -z "$as_dir" && as_dir=.
1250 echo "PATH: $as_dir"
1251done
1252
1253} >&5
1254
1255cat >&5 <<_ACEOF
1256
1257
1258## ----------- ##
1259## Core tests. ##
1260## ----------- ##
1261
1262_ACEOF
1263
1264
1265# Keep a trace of the command line.
1266# Strip out --no-create and --no-recursion so they do not pile up.
1267# Strip out --silent because we don't want to record it for future runs.
1268# Also quote any args containing shell meta-characters.
1269# Make two passes to allow for proper duplicate-argument suppression.
1270ac_configure_args=
1271ac_configure_args0=
1272ac_configure_args1=
1273ac_sep=
1274ac_must_keep_next=false
1275for ac_pass in 1 2
1276do
1277 for ac_arg
1278 do
1279 case $ac_arg in
1280 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1283 continue ;;
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 esac
1287 case $ac_pass in
1288 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289 2)
1290 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291 if test $ac_must_keep_next = true; then
ac1cb8d3 1292 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1293 else
ac1cb8d3
VS
1294 case $ac_arg in
1295 *=* | --config-cache | -C | -disable-* | --disable-* \
1296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298 | -with-* | --with-* | -without-* | --without-* | --x)
1299 case "$ac_configure_args0 " in
1300 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301 esac
1302 ;;
1303 -* ) ac_must_keep_next=true ;;
1304 esac
a848cd7e
SC
1305 fi
1306 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307 # Get rid of the leading space.
1308 ac_sep=" "
1309 ;;
1310 esac
1311 done
1312done
1313$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1315
1316# When interrupted or exit'd, cleanup temporary files, and complete
1317# config.log. We remove comments because anyway the quotes in there
1318# would cause problems or look ugly.
1319# WARNING: Be sure not to use single quotes in there, as some shells,
1320# such as our DU 5.0 friend, will then `close' the trap.
1321trap 'exit_status=$?
1322 # Save into config.log some information that might help in debugging.
1323 {
1324 echo
1325
1326 cat <<\_ASBOX
1327## ---------------- ##
1328## Cache variables. ##
1329## ---------------- ##
1330_ASBOX
1331 echo
1332 # The following way of writing the cache mishandles newlines in values,
1333{
1334 (set) 2>&1 |
1335 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336 *ac_space=\ *)
1337 sed -n \
ac1cb8d3
VS
1338 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1340 ;;
1341 *)
1342 sed -n \
ac1cb8d3 1343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1344 ;;
1345 esac;
1346}
1347 echo
1348
1349 cat <<\_ASBOX
1350## ----------------- ##
1351## Output variables. ##
1352## ----------------- ##
1353_ASBOX
1354 echo
1355 for ac_var in $ac_subst_vars
1356 do
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1359 done | sort
1360 echo
1361
1362 if test -n "$ac_subst_files"; then
1363 cat <<\_ASBOX
1364## ------------- ##
1365## Output files. ##
1366## ------------- ##
1367_ASBOX
1368 echo
1369 for ac_var in $ac_subst_files
1370 do
1371 eval ac_val=$`echo $ac_var`
ac1cb8d3 1372 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1373 done | sort
1374 echo
1375 fi
1376
1377 if test -s confdefs.h; then
1378 cat <<\_ASBOX
1379## ----------- ##
1380## confdefs.h. ##
1381## ----------- ##
1382_ASBOX
1383 echo
1384 sed "/^$/d" confdefs.h | sort
1385 echo
1386 fi
1387 test "$ac_signal" != 0 &&
1388 echo "$as_me: caught signal $ac_signal"
1389 echo "$as_me: exit $exit_status"
1390 } >&5
ac1cb8d3 1391 rm -f core *.core &&
a848cd7e
SC
1392 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1393 exit $exit_status
1394 ' 0
1395for ac_signal in 1 2 13 15; do
1396 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1397done
1398ac_signal=0
1399
1400# confdefs.h avoids OS command line length limits that DEFS can exceed.
1401rm -rf conftest* confdefs.h
1402# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403echo >confdefs.h
1404
1405# Predefined preprocessor variables.
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_NAME "$PACKAGE_NAME"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_VERSION "$PACKAGE_VERSION"
1419_ACEOF
1420
1421
1422cat >>confdefs.h <<_ACEOF
1423#define PACKAGE_STRING "$PACKAGE_STRING"
1424_ACEOF
1425
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1429_ACEOF
1430
1431
1432# Let the site file select an alternate cache file if it wants to.
1433# Prefer explicitly selected file to automatically selected ones.
1434if test -z "$CONFIG_SITE"; then
1435 if test "x$prefix" != xNONE; then
1436 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437 else
1438 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1439 fi
1440fi
1441for ac_site_file in $CONFIG_SITE; do
1442 if test -r "$ac_site_file"; then
1443 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444echo "$as_me: loading site script $ac_site_file" >&6;}
1445 sed 's/^/| /' "$ac_site_file" >&5
1446 . "$ac_site_file"
1447 fi
1448done
1449
1450if test -r "$cache_file"; then
1451 # Some versions of bash will fail to source /dev/null (special
1452 # files actually), so we avoid doing that.
1453 if test -f "$cache_file"; then
1454 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455echo "$as_me: loading cache $cache_file" >&6;}
1456 case $cache_file in
1457 [\\/]* | ?:[\\/]* ) . $cache_file;;
1458 *) . ./$cache_file;;
1459 esac
1460 fi
1461else
1462 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463echo "$as_me: creating cache $cache_file" >&6;}
1464 >$cache_file
1465fi
1466
1467# Check that the precious variables saved in the cache have kept the same
1468# value.
1469ac_cache_corrupted=false
1470for ac_var in `(set) 2>&1 |
ac1cb8d3 1471 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1472 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473 eval ac_new_set=\$ac_env_${ac_var}_set
1474 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475 eval ac_new_val="\$ac_env_${ac_var}_value"
1476 case $ac_old_set,$ac_new_set in
1477 set,)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,set)
1482 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484 ac_cache_corrupted=: ;;
1485 ,);;
1486 *)
1487 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1488 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1489echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1490 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1491echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1492 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1493echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1494 ac_cache_corrupted=:
a848cd7e
SC
1495 fi;;
1496 esac
1497 # Pass precious variables to config.status.
1498 if test "$ac_new_set" = set; then
1499 case $ac_new_val in
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502 *) ac_arg=$ac_var=$ac_new_val ;;
1503 esac
1504 case " $ac_configure_args " in
1505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1506 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1507 esac
1508 fi
1509done
1510if $ac_cache_corrupted; then
1511 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515 { (exit 1); exit 1; }; }
1516fi
1517
1518ac_ext=c
1519ac_cpp='$CPP $CPPFLAGS'
1520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1551
1552
1553ac_aux_dir=
1554for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555 if test -f $ac_dir/install-sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install-sh -c"
1558 break
1559 elif test -f $ac_dir/install.sh; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/install.sh -c"
1562 break
1563 elif test -f $ac_dir/shtool; then
1564 ac_aux_dir=$ac_dir
1565 ac_install_sh="$ac_aux_dir/shtool install -c"
1566 break
1567 fi
1568done
1569if test -z "$ac_aux_dir"; then
1570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572 { (exit 1); exit 1; }; }
1573fi
1574ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578# Make sure we can run config.sub.
1579$ac_config_sub sun4 >/dev/null 2>&1 ||
1580 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1581echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584echo "$as_me:$LINENO: checking build system type" >&5
1585echo $ECHO_N "checking build system type... $ECHO_C" >&6
1586if test "${ac_cv_build+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588else
1589 ac_cv_build_alias=$build_alias
1590test -z "$ac_cv_build_alias" &&
1591 ac_cv_build_alias=`$ac_config_guess`
1592test -z "$ac_cv_build_alias" &&
1593 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1594echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1595 { (exit 1); exit 1; }; }
1596ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1597 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1598echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1599 { (exit 1); exit 1; }; }
1600
1601fi
1602echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1603echo "${ECHO_T}$ac_cv_build" >&6
1604build=$ac_cv_build
1605build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
1609
1610echo "$as_me:$LINENO: checking host system type" >&5
1611echo $ECHO_N "checking host system type... $ECHO_C" >&6
1612if test "${ac_cv_host+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615 ac_cv_host_alias=$host_alias
1616test -z "$ac_cv_host_alias" &&
1617 ac_cv_host_alias=$ac_cv_build_alias
1618ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1620echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623fi
1624echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1625echo "${ECHO_T}$ac_cv_host" >&6
1626host=$ac_cv_host
1627host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632echo "$as_me:$LINENO: checking target system type" >&5
1633echo $ECHO_N "checking target system type... $ECHO_C" >&6
1634if test "${ac_cv_target+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636else
1637 ac_cv_target_alias=$target_alias
1638test "x$ac_cv_target_alias" = "x" &&
1639 ac_cv_target_alias=$ac_cv_host_alias
1640ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1642echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1644
1645fi
1646echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1647echo "${ECHO_T}$ac_cv_target" >&6
1648target=$ac_cv_target
1649target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
1653
1654# The aliases save the names the user supplied, while $host etc.
1655# will get canonicalized.
1656test -n "$target_alias" &&
1657 test "$program_prefix$program_suffix$program_transform_name" = \
1658 NONENONEs,x,x, &&
1659 program_prefix=${target_alias}-
1660
1661
1662
ceec2216 1663wx_major_version_number=2
e0d84535
RL
1664wx_minor_version_number=6
1665wx_release_number=0
d26fbe54 1666wx_subrelease_number=1
a848cd7e 1667
ceec2216
RL
1668WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1669WX_VERSION=$WX_RELEASE.$wx_release_number
1670WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1671
ceec2216 1672WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1673
e0d84535 1674WX_CURRENT=0
a848cd7e 1675WX_REVISION=0
e0d84535 1676WX_AGE=0
a848cd7e
SC
1677
1678
1679
1680USE_UNIX=1
1681USE_OS2=0
1682USE_WIN32=0
1683USE_DOS=0
1684USE_BEOS=0
1685USE_MAC=0
1686
1687USE_AIX=
1688USE_BSD= USE_DARWIN= USE_FREEBSD=
1689USE_GNU= USE_HPUX=
1690USE_LINUX=
1691USE_NETBSD=
1692USE_OPENBSD=
1693USE_OSF= USE_SGI=
1694USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1695USE_ULTRIX=
1696USE_UNIXWARE=
1697
1698USE_ALPHA=
1699
1700NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1701
1702ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1703
1704DEFAULT_wxUSE_COCOA=0
1705DEFAULT_wxUSE_GTK=0
1706DEFAULT_wxUSE_MAC=0
1707DEFAULT_wxUSE_MGL=0
1708DEFAULT_wxUSE_MICROWIN=0
1709DEFAULT_wxUSE_MOTIF=0
1710DEFAULT_wxUSE_MSW=0
1711DEFAULT_wxUSE_PM=0
1712DEFAULT_wxUSE_X11=0
1713
1714DEFAULT_DEFAULT_wxUSE_COCOA=0
1715DEFAULT_DEFAULT_wxUSE_GTK=0
1716DEFAULT_DEFAULT_wxUSE_MAC=0
1717DEFAULT_DEFAULT_wxUSE_MGL=0
1718DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1719DEFAULT_DEFAULT_wxUSE_MOTIF=0
1720DEFAULT_DEFAULT_wxUSE_MSW=0
1721DEFAULT_DEFAULT_wxUSE_PM=0
1722DEFAULT_DEFAULT_wxUSE_X11=0
1723
1724PROGRAM_EXT=
1725SO_SUFFIX=so
1726SAMPLES_RPATH_FLAG=
1727SAMPLES_RPATH_POSTLINK=
1728
a03b8b04
RD
1729DEFAULT_STD_FLAG=yes
1730
a848cd7e
SC
1731case "${host}" in
1732 *-hp-hpux* )
1733 USE_HPUX=1
1734 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1735 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1736 SO_SUFFIX=sl
1737 cat >>confdefs.h <<\_ACEOF
1738#define __HPUX__ 1
1739_ACEOF
1740
1741 ;;
1742 *-*-linux* )
1743 USE_LINUX=1
1744 cat >>confdefs.h <<\_ACEOF
1745#define __LINUX__ 1
1746_ACEOF
1747
1748 TMP=`uname -m`
1749 if test "x$TMP" = "xalpha"; then
1750 USE_ALPHA=1
1751 cat >>confdefs.h <<\_ACEOF
1752#define __ALPHA__ 1
1753_ACEOF
1754
1755 fi
1756 DEFAULT_DEFAULT_wxUSE_GTK=1
1757 ;;
1758 *-*-gnu* | *-*-k*bsd*-gnu )
1759 USE_GNU=1
1760 TMP=`uname -m`
1761 if test "x$TMP" = "xalpha"; then
1762 USE_ALPHA=1
1763 cat >>confdefs.h <<\_ACEOF
1764#define __ALPHA__ 1
1765_ACEOF
1766
1767 fi
1768 DEFAULT_DEFAULT_wxUSE_GTK=1
1769 ;;
1770 *-*-irix5* | *-*-irix6* )
1771 USE_SGI=1
1772 USE_SVR4=1
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SGI__ 1
1775_ACEOF
1776
1777 cat >>confdefs.h <<\_ACEOF
1778#define __SVR4__ 1
1779_ACEOF
1780
1781 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1782 ;;
1783 *-*-solaris2* )
1784 USE_SUN=1
1785 USE_SOLARIS=1
1786 USE_SVR4=1
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SUN__ 1
1789_ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SOLARIS__ 1
1793_ACEOF
1794
1795 cat >>confdefs.h <<\_ACEOF
1796#define __SVR4__ 1
1797_ACEOF
1798
1799 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1800 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1801 ;;
1802 *-*-sunos4* )
1803 USE_SUN=1
1804 USE_SUNOS=1
1805 USE_BSD=1
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SUN__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __SUNOS__ 1
1812_ACEOF
1813
1814 cat >>confdefs.h <<\_ACEOF
1815#define __BSD__ 1
1816_ACEOF
1817
1818 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1819 ;;
1820 *-*-freebsd*)
1821 USE_BSD=1
1822 USE_FREEBSD=1
1823 cat >>confdefs.h <<\_ACEOF
1824#define __FREEBSD__ 1
1825_ACEOF
1826
1827 cat >>confdefs.h <<\_ACEOF
1828#define __BSD__ 1
1829_ACEOF
1830
1831 DEFAULT_DEFAULT_wxUSE_GTK=1
1832 ;;
1833 *-*-openbsd*)
1834 USE_BSD=1
1835 USE_OPENBSD=1
1836 cat >>confdefs.h <<\_ACEOF
1837#define __OPENBSD__ 1
1838_ACEOF
1839
1840 cat >>confdefs.h <<\_ACEOF
1841#define __BSD__ 1
1842_ACEOF
1843
1844 DEFAULT_DEFAULT_wxUSE_GTK=1
1845 ;;
1846 *-*-netbsd*)
1847 USE_BSD=1
1848 USE_NETBSD=1
1849 cat >>confdefs.h <<\_ACEOF
1850#define __NETBSD__ 1
1851_ACEOF
1852
1853 cat >>confdefs.h <<\_ACEOF
1854#define __BSD__ 1
1855_ACEOF
1856
1857 DEFAULT_DEFAULT_wxUSE_GTK=1
1858 ;;
1859 *-*-osf* )
1860 USE_ALPHA=1
1861 USE_OSF=1
1862 cat >>confdefs.h <<\_ACEOF
1863#define __ALPHA__ 1
1864_ACEOF
1865
1866 cat >>confdefs.h <<\_ACEOF
1867#define __OSF__ 1
1868_ACEOF
1869
1870 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1871 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1872 ;;
1873 *-*-dgux5* )
1874 USE_ALPHA=1
1875 USE_SVR4=1
1876 cat >>confdefs.h <<\_ACEOF
1877#define __ALPHA__ 1
1878_ACEOF
1879
1880 cat >>confdefs.h <<\_ACEOF
1881#define __SVR4__ 1
1882_ACEOF
1883
1884 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1885 ;;
1886 *-*-sysv5* )
1887 USE_SYSV=1
1888 USE_SVR4=1
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SYSV__ 1
1891_ACEOF
1892
1893 cat >>confdefs.h <<\_ACEOF
1894#define __SVR4__ 1
1895_ACEOF
1896
1897 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1898 ;;
1899 *-*-aix* )
1900 USE_AIX=1
1901 USE_SYSV=1
1902 USE_SVR4=1
1903 SO_SUFFIX=a
1904 cat >>confdefs.h <<\_ACEOF
1905#define __AIX__ 1
1906_ACEOF
1907
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SYSV__ 1
1910_ACEOF
1911
1912 cat >>confdefs.h <<\_ACEOF
1913#define __SVR4__ 1
1914_ACEOF
1915
1916 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1917 ;;
1918
1919 *-*-*UnixWare*)
1920 USE_SYSV=1
1921 USE_SVR4=1
1922 USE_UNIXWARE=1
1923 cat >>confdefs.h <<\_ACEOF
1924#define __UNIXWARE__ 1
1925_ACEOF
1926
1927 ;;
1928
1929 *-*-cygwin* | *-*-mingw32* )
1930 SO_SUFFIX=dll
1931 PROGRAM_EXT=".exe"
1932 RESCOMP=windres
1933 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1934 DEFAULT_STD_FLAG=no
a848cd7e
SC
1935 ;;
1936
1937 *-pc-msdosdjgpp )
1938 USE_UNIX=0
1939 USE_DOS=1
1940 cat >>confdefs.h <<\_ACEOF
1941#define __DOS__ 1
1942_ACEOF
1943
1944 PROGRAM_EXT=".exe"
1945 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1946 ;;
1947
1948 *-pc-os2_emx | *-pc-os2-emx )
1949 cat >>confdefs.h <<\_ACEOF
1950#define __EMX__ 1
1951_ACEOF
1952
1953 USE_OS2=1
1954 cat >>confdefs.h <<\_ACEOF
1955#define __OS2__ 1
1956_ACEOF
1957
1958 PROGRAM_EXT=".exe"
1959 DEFAULT_DEFAULT_wxUSE_PM=1
1960 CXX=gcc
1961 LDFLAGS="$LDFLAGS -Zcrtdll"
1962 ac_executable_extensions=".exe"
1963 export ac_executable_extensions
1964 ac_save_IFS="$IFS"
1965 IFS='\\'
1966 ac_TEMP_PATH=
1967 for ac_dir in $PATH; do
1968 IFS=$ac_save_IFS
1969 if test -z "$ac_TEMP_PATH"; then
1970 ac_TEMP_PATH="$ac_dir"
1971 else
1972 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1973 fi
1974 done
1975 export PATH="$ac_TEMP_PATH"
1976 unset ac_TEMP_PATH
a03b8b04 1977 DEFAULT_STD_FLAG=no
a848cd7e
SC
1978 ;;
1979
1980 powerpc-*-darwin* )
1981 USE_BSD=1
1982 USE_DARWIN=1
1983 SO_SUFFIX=dylib
1984 cat >>confdefs.h <<\_ACEOF
1985#define __BSD__ 1
1986_ACEOF
1987
1988 cat >>confdefs.h <<\_ACEOF
1989#define __DARWIN__ 1
a848cd7e
SC
1990_ACEOF
1991
1992 cat >>confdefs.h <<\_ACEOF
1993#define TARGET_CARBON 1
1994_ACEOF
1995
1996 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1997 DEFAULT_STD_FLAG=no
a848cd7e 1998 ;;
1e9e8aba
DE
1999 powerpc-apple-macos* )
2000 USE_UNIX=0
2001 ac_cv_c_bigendian=yes
2002 SO_SUFFIX=shlib
2003 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2004 DEFAULT_STD_FLAG=no
1e9e8aba 2005 ;;
a848cd7e
SC
2006
2007 *-*-beos* )
2008 USE_BEOS=1
2009 cat >>confdefs.h <<\_ACEOF
2010#define __BEOS__ 1
2011_ACEOF
2012
2013 ;;
2014
2015 *)
2016 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2017echo "$as_me: error: unknown system type ${host}." >&2;}
2018 { (exit 1); exit 1; }; }
2019esac
2020
2021
2022
2023
2024 wx_arg_cache_file="configarg.cache"
2025 echo "loading argument cache $wx_arg_cache_file"
2026 rm -f ${wx_arg_cache_file}.tmp
2027 touch ${wx_arg_cache_file}.tmp
2028 touch ${wx_arg_cache_file}
2029
2030
2031DEBUG_CONFIGURE=0
2032if test $DEBUG_CONFIGURE = 1; then
2033 DEFAULT_wxUSE_UNIVERSAL=no
2034 DEFAULT_wxUSE_STL=no
2035
2036 DEFAULT_wxUSE_NANOX=no
2037
2038 DEFAULT_wxUSE_THREADS=yes
2039
2040 DEFAULT_wxUSE_SHARED=yes
2041 DEFAULT_wxUSE_OPTIMISE=no
2042 DEFAULT_wxUSE_PROFILE=no
2043 DEFAULT_wxUSE_NO_DEPS=no
2044 DEFAULT_wxUSE_NO_RTTI=no
2045 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2046 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2047 DEFAULT_wxUSE_PERMISSIVE=no
2048 DEFAULT_wxUSE_DEBUG_FLAG=yes
2049 DEFAULT_wxUSE_DEBUG_INFO=yes
2050 DEFAULT_wxUSE_DEBUG_GDB=yes
2051 DEFAULT_wxUSE_MEM_TRACING=no
2052 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2053 DEFAULT_wxUSE_DMALLOC=no
2054 DEFAULT_wxUSE_APPLE_IEEE=no
2055
2056 DEFAULT_wxUSE_EXCEPTIONS=no
2057 DEFAULT_wxUSE_LOG=yes
2058 DEFAULT_wxUSE_LOGWINDOW=no
2059 DEFAULT_wxUSE_LOGGUI=no
2060 DEFAULT_wxUSE_LOGDIALOG=no
2061
2062 DEFAULT_wxUSE_GUI=yes
2063 DEFAULT_wxUSE_CONTROLS=no
2064
2065 DEFAULT_wxUSE_REGEX=no
2066 DEFAULT_wxUSE_XML=no
2067 DEFAULT_wxUSE_EXPAT=no
2068 DEFAULT_wxUSE_ZLIB=no
2069 DEFAULT_wxUSE_LIBPNG=no
2070 DEFAULT_wxUSE_LIBJPEG=no
2071 DEFAULT_wxUSE_LIBTIFF=no
2072 DEFAULT_wxUSE_LIBXPM=no
2073 DEFAULT_wxUSE_LIBMSPACK=no
2074 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2075 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2076 DEFAULT_wxUSE_ODBC=no
2077 DEFAULT_wxUSE_OPENGL=no
2078
2079 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2080 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2081 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2082 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2083 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2084 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2085 DEFAULT_wxUSE_CMDLINE_PARSER=no
2086 DEFAULT_wxUSE_DATETIME=no
2087 DEFAULT_wxUSE_TIMER=no
2088 DEFAULT_wxUSE_STOPWATCH=no
2089 DEFAULT_wxUSE_FILE=no
2090 DEFAULT_wxUSE_FFILE=no
07158944 2091 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2092 DEFAULT_wxUSE_TEXTBUFFER=no
2093 DEFAULT_wxUSE_TEXTFILE=no
2094 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2095 DEFAULT_wxUSE_MEDIACTRL=no
2096 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2097 DEFAULT_wxUSE_INTL=no
2098 DEFAULT_wxUSE_CONFIG=no
2099 DEFAULT_wxUSE_FONTMAP=no
2100 DEFAULT_wxUSE_STREAMS=no
2101 DEFAULT_wxUSE_SOCKETS=no
2102 DEFAULT_wxUSE_OLE=no
2103 DEFAULT_wxUSE_DATAOBJ=no
2104 DEFAULT_wxUSE_DIALUP_MANAGER=no
2105 DEFAULT_wxUSE_JOYSTICK=no
2106 DEFAULT_wxUSE_DYNLIB_CLASS=no
2107 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2108 DEFAULT_wxUSE_LONGLONG=no
2109 DEFAULT_wxUSE_GEOMETRY=no
2110
2111 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2112 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2113 DEFAULT_wxUSE_POSTSCRIPT=no
2114
2115 DEFAULT_wxUSE_CLIPBOARD=no
2116 DEFAULT_wxUSE_TOOLTIPS=no
2117 DEFAULT_wxUSE_DRAG_AND_DROP=no
2118 DEFAULT_wxUSE_DRAGIMAGE=no
2119 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2120 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2121
8a7b1113 2122 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2123 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2124 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2125 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2126
2127 DEFAULT_wxUSE_RESOURCES=no
2128 DEFAULT_wxUSE_CONSTRAINTS=no
2129 DEFAULT_wxUSE_IPC=no
2130 DEFAULT_wxUSE_HELP=no
2131 DEFAULT_wxUSE_MS_HTML_HELP=no
2132 DEFAULT_wxUSE_WXHTML_HELP=no
2133 DEFAULT_wxUSE_TREELAYOUT=no
2134 DEFAULT_wxUSE_METAFILE=no
2135 DEFAULT_wxUSE_MIMETYPE=no
2136 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2137 DEFAULT_wxUSE_PROTOCOL=no
2138 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2139 DEFAULT_wxUSE_PROTOCOL_FTP=no
2140 DEFAULT_wxUSE_PROTOCOL_FILE=no
2141 DEFAULT_wxUSE_URL=no
2142
2143 DEFAULT_wxUSE_COMMONDLGS=no
2144 DEFAULT_wxUSE_CHOICEDLG=no
2145 DEFAULT_wxUSE_COLOURDLG=no
2146 DEFAULT_wxUSE_DIRDLG=no
2147 DEFAULT_wxUSE_FILEDLG=no
2148 DEFAULT_wxUSE_FINDREPLDLG=no
2149 DEFAULT_wxUSE_FONTDLG=no
2150 DEFAULT_wxUSE_MSGDLG=no
2151 DEFAULT_wxUSE_NUMBERDLG=no
2152 DEFAULT_wxUSE_TEXTDLG=no
2153 DEFAULT_wxUSE_SPLASH=no
2154 DEFAULT_wxUSE_STARTUP_TIPS=no
2155 DEFAULT_wxUSE_PROGRESSDLG=no
2156 DEFAULT_wxUSE_WIZARDDLG=no
2157
2158 DEFAULT_wxUSE_MENUS=no
2159 DEFAULT_wxUSE_MINIFRAME=no
2160 DEFAULT_wxUSE_HTML=no
9a8f0513 2161 DEFAULT_wxUSE_XRC=no
646b6ec1 2162 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2163 DEFAULT_wxUSE_FILESYSTEM=no
2164 DEFAULT_wxUSE_FS_INET=no
2165 DEFAULT_wxUSE_FS_ZIP=no
2166 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2167 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2168 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2169 DEFAULT_wxUSE_VALIDATORS=no
2170
2171 DEFAULT_wxUSE_ACCEL=no
2172 DEFAULT_wxUSE_BUTTON=no
2173 DEFAULT_wxUSE_BMPBUTTON=no
2174 DEFAULT_wxUSE_CALCTRL=no
2175 DEFAULT_wxUSE_CARET=no
2176 DEFAULT_wxUSE_CHECKBOX=no
2177 DEFAULT_wxUSE_CHECKLST=no
2178 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2179 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2180 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2181 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2182 DEFAULT_wxUSE_DISPLAY=no
2183 DEFAULT_wxUSE_GAUGE=no
2184 DEFAULT_wxUSE_GRID=no
2185 DEFAULT_wxUSE_IMAGLIST=no
2186 DEFAULT_wxUSE_LISTBOOK=no
2187 DEFAULT_wxUSE_LISTBOX=no
2188 DEFAULT_wxUSE_LISTCTRL=no
2189 DEFAULT_wxUSE_NOTEBOOK=no
2190 DEFAULT_wxUSE_RADIOBOX=no
2191 DEFAULT_wxUSE_RADIOBTN=no
2192 DEFAULT_wxUSE_SASH=no
2193 DEFAULT_wxUSE_SCROLLBAR=no
2194 DEFAULT_wxUSE_SLIDER=no
2195 DEFAULT_wxUSE_SPINBTN=no
2196 DEFAULT_wxUSE_SPINCTRL=no
2197 DEFAULT_wxUSE_SPLITTER=no
2198 DEFAULT_wxUSE_STATBMP=no
2199 DEFAULT_wxUSE_STATBOX=no
2200 DEFAULT_wxUSE_STATLINE=no
2201 DEFAULT_wxUSE_STATTEXT=no
2202 DEFAULT_wxUSE_STATUSBAR=yes
2203 DEFAULT_wxUSE_TABDIALOG=no
2204 DEFAULT_wxUSE_TEXTCTRL=no
2205 DEFAULT_wxUSE_TOGGLEBTN=no
2206 DEFAULT_wxUSE_TOOLBAR=no
2207 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2208 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2209 DEFAULT_wxUSE_TREECTRL=no
2210 DEFAULT_wxUSE_POPUPWIN=no
2211 DEFAULT_wxUSE_TIPWINDOW=no
2212
2213 DEFAULT_wxUSE_UNICODE=no
2214 DEFAULT_wxUSE_UNICODE_MSLU=no
2215 DEFAULT_wxUSE_WCSRTOMBS=no
2216
2217 DEFAULT_wxUSE_PALETTE=no
2218 DEFAULT_wxUSE_IMAGE=no
2219 DEFAULT_wxUSE_GIF=no
2220 DEFAULT_wxUSE_PCX=no
2221 DEFAULT_wxUSE_PNM=no
2222 DEFAULT_wxUSE_IFF=no
2223 DEFAULT_wxUSE_XPM=no
2224 DEFAULT_wxUSE_ICO_CUR=no
2225 DEFAULT_wxUSE_ACCESSIBILITY=no
2226
2227 DEFAULT_wxUSE_MONOLITHIC=no
2228 DEFAULT_wxUSE_PLUGINS=no
2229 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2230else
2231 DEFAULT_wxUSE_UNIVERSAL=no
2232 DEFAULT_wxUSE_STL=no
2233
2234 DEFAULT_wxUSE_NANOX=no
2235
2236 DEFAULT_wxUSE_THREADS=yes
2237
2238 DEFAULT_wxUSE_SHARED=yes
2239 DEFAULT_wxUSE_OPTIMISE=yes
2240 DEFAULT_wxUSE_PROFILE=no
2241 DEFAULT_wxUSE_NO_DEPS=no
2242 DEFAULT_wxUSE_NO_RTTI=no
2243 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2244 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2245 DEFAULT_wxUSE_PERMISSIVE=no
2246 DEFAULT_wxUSE_DEBUG_FLAG=no
2247 DEFAULT_wxUSE_DEBUG_INFO=no
2248 DEFAULT_wxUSE_DEBUG_GDB=no
2249 DEFAULT_wxUSE_MEM_TRACING=no
2250 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2251 DEFAULT_wxUSE_DMALLOC=no
2252 DEFAULT_wxUSE_APPLE_IEEE=yes
2253
2254 DEFAULT_wxUSE_EXCEPTIONS=yes
2255 DEFAULT_wxUSE_LOG=yes
2256 DEFAULT_wxUSE_LOGWINDOW=yes
2257 DEFAULT_wxUSE_LOGGUI=yes
2258 DEFAULT_wxUSE_LOGDIALOG=yes
2259
2260 DEFAULT_wxUSE_GUI=yes
2261
2262 DEFAULT_wxUSE_REGEX=yes
2263 DEFAULT_wxUSE_XML=yes
2264 DEFAULT_wxUSE_EXPAT=yes
2265 DEFAULT_wxUSE_ZLIB=yes
2266 DEFAULT_wxUSE_LIBPNG=yes
2267 DEFAULT_wxUSE_LIBJPEG=yes
2268 DEFAULT_wxUSE_LIBTIFF=yes
2269 DEFAULT_wxUSE_LIBXPM=yes
2270 DEFAULT_wxUSE_LIBMSPACK=yes
2271 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2272 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2273 DEFAULT_wxUSE_ODBC=no
52cb607e 2274 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2275
2276 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2277 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2278 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2279 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2280 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2281 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2282 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2283 DEFAULT_wxUSE_DATETIME=yes
2284 DEFAULT_wxUSE_TIMER=yes
2285 DEFAULT_wxUSE_STOPWATCH=yes
2286 DEFAULT_wxUSE_FILE=yes
2287 DEFAULT_wxUSE_FFILE=yes
07158944 2288 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2289 DEFAULT_wxUSE_TEXTBUFFER=yes
2290 DEFAULT_wxUSE_TEXTFILE=yes
2291 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2292 DEFAULT_wxUSE_MEDIACTRL=no
2293 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2294 DEFAULT_wxUSE_INTL=yes
2295 DEFAULT_wxUSE_CONFIG=yes
2296 DEFAULT_wxUSE_FONTMAP=yes
2297 DEFAULT_wxUSE_STREAMS=yes
2298 DEFAULT_wxUSE_SOCKETS=yes
2299 DEFAULT_wxUSE_OLE=yes
2300 DEFAULT_wxUSE_DATAOBJ=yes
2301 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2302 DEFAULT_wxUSE_JOYSTICK=yes
2303 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2304 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2305 DEFAULT_wxUSE_LONGLONG=yes
2306 DEFAULT_wxUSE_GEOMETRY=yes
2307
2308 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2309 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2310 DEFAULT_wxUSE_POSTSCRIPT=yes
2311
2312 DEFAULT_wxUSE_CLIPBOARD=yes
2313 DEFAULT_wxUSE_TOOLTIPS=yes
2314 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2315 DEFAULT_wxUSE_DRAGIMAGE=yes
2316 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2317 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2318
8a7b1113 2319 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2320 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2321 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2322 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2323
2324 DEFAULT_wxUSE_RESOURCES=no
2325 DEFAULT_wxUSE_CONSTRAINTS=yes
2326 DEFAULT_wxUSE_IPC=yes
2327 DEFAULT_wxUSE_HELP=yes
2328 DEFAULT_wxUSE_MS_HTML_HELP=yes
2329 DEFAULT_wxUSE_WXHTML_HELP=yes
2330 DEFAULT_wxUSE_TREELAYOUT=yes
2331 DEFAULT_wxUSE_METAFILE=yes
2332 DEFAULT_wxUSE_MIMETYPE=yes
2333 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2334 DEFAULT_wxUSE_PROTOCOL=yes
2335 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2336 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2337 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2338 DEFAULT_wxUSE_URL=yes
2339
2340 DEFAULT_wxUSE_COMMONDLGS=yes
2341 DEFAULT_wxUSE_CHOICEDLG=yes
2342 DEFAULT_wxUSE_COLOURDLG=yes
2343 DEFAULT_wxUSE_DIRDLG=yes
2344 DEFAULT_wxUSE_FILEDLG=yes
2345 DEFAULT_wxUSE_FINDREPLDLG=yes
2346 DEFAULT_wxUSE_FONTDLG=yes
2347 DEFAULT_wxUSE_MSGDLG=yes
2348 DEFAULT_wxUSE_NUMBERDLG=yes
2349 DEFAULT_wxUSE_TEXTDLG=yes
2350 DEFAULT_wxUSE_SPLASH=yes
2351 DEFAULT_wxUSE_STARTUP_TIPS=yes
2352 DEFAULT_wxUSE_PROGRESSDLG=yes
2353 DEFAULT_wxUSE_WIZARDDLG=yes
2354
2355 DEFAULT_wxUSE_MENUS=yes
2356 DEFAULT_wxUSE_MINIFRAME=yes
2357 DEFAULT_wxUSE_HTML=yes
9a8f0513 2358 DEFAULT_wxUSE_XRC=yes
646b6ec1 2359 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2360 DEFAULT_wxUSE_FILESYSTEM=yes
2361 DEFAULT_wxUSE_FS_INET=yes
2362 DEFAULT_wxUSE_FS_ZIP=yes
2363 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2364 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2365 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2366 DEFAULT_wxUSE_VALIDATORS=yes
2367
2368 DEFAULT_wxUSE_ACCEL=yes
2369 DEFAULT_wxUSE_BUTTON=yes
2370 DEFAULT_wxUSE_BMPBUTTON=yes
2371 DEFAULT_wxUSE_CALCTRL=yes
2372 DEFAULT_wxUSE_CARET=yes
2373 DEFAULT_wxUSE_CHECKBOX=yes
2374 DEFAULT_wxUSE_CHECKLST=yes
2375 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2376 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2377 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2378 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2379 DEFAULT_wxUSE_DISPLAY=yes
2380 DEFAULT_wxUSE_GAUGE=yes
2381 DEFAULT_wxUSE_GRID=yes
2382 DEFAULT_wxUSE_IMAGLIST=yes
2383 DEFAULT_wxUSE_LISTBOOK=yes
2384 DEFAULT_wxUSE_LISTBOX=yes
2385 DEFAULT_wxUSE_LISTCTRL=yes
2386 DEFAULT_wxUSE_NOTEBOOK=yes
2387 DEFAULT_wxUSE_RADIOBOX=yes
2388 DEFAULT_wxUSE_RADIOBTN=yes
2389 DEFAULT_wxUSE_SASH=yes
2390 DEFAULT_wxUSE_SCROLLBAR=yes
2391 DEFAULT_wxUSE_SLIDER=yes
2392 DEFAULT_wxUSE_SPINBTN=yes
2393 DEFAULT_wxUSE_SPINCTRL=yes
2394 DEFAULT_wxUSE_SPLITTER=yes
2395 DEFAULT_wxUSE_STATBMP=yes
2396 DEFAULT_wxUSE_STATBOX=yes
2397 DEFAULT_wxUSE_STATLINE=yes
2398 DEFAULT_wxUSE_STATTEXT=yes
2399 DEFAULT_wxUSE_STATUSBAR=yes
2400 DEFAULT_wxUSE_TABDIALOG=no
2401 DEFAULT_wxUSE_TEXTCTRL=yes
2402 DEFAULT_wxUSE_TOGGLEBTN=yes
2403 DEFAULT_wxUSE_TOOLBAR=yes
2404 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2405 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2406 DEFAULT_wxUSE_TREECTRL=yes
2407 DEFAULT_wxUSE_POPUPWIN=yes
2408 DEFAULT_wxUSE_TIPWINDOW=yes
2409
78de529b 2410 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2411 DEFAULT_wxUSE_UNICODE_MSLU=yes
2412 DEFAULT_wxUSE_WCSRTOMBS=no
2413
2414 DEFAULT_wxUSE_PALETTE=yes
2415 DEFAULT_wxUSE_IMAGE=yes
2416 DEFAULT_wxUSE_GIF=yes
2417 DEFAULT_wxUSE_PCX=yes
2418 DEFAULT_wxUSE_IFF=no
2419 DEFAULT_wxUSE_PNM=yes
2420 DEFAULT_wxUSE_XPM=yes
2421 DEFAULT_wxUSE_ICO_CUR=yes
2422 DEFAULT_wxUSE_ACCESSIBILITY=no
2423
2424 DEFAULT_wxUSE_MONOLITHIC=no
2425 DEFAULT_wxUSE_PLUGINS=no
2426 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2427
f34ca037 2428 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2429fi
2430
2431
2432
f34ca037 2433
a848cd7e
SC
2434for toolkit in `echo $ALL_TOOLKITS`; do
2435 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2436 if test "x$LINE" != "x" ; then
2437 has_toolkit_in_cache=1
2438 eval "DEFAULT_$LINE"
2439 eval "CACHE_$toolkit=1"
f34ca037
MW
2440
2441 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2442 if test "x$LINE" != "x" ; then
2443 eval "DEFAULT_$LINE"
2444 fi
a848cd7e
SC
2445 fi
2446done
2447
2448
2449
2450 enablestring=
2451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2452echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2453 no_cache=0
2454 # Check whether --enable-gui or --disable-gui was given.
2455if test "${enable_gui+set}" = set; then
2456 enableval="$enable_gui"
2457
2458 if test "$enableval" = yes; then
2459 ac_cv_use_gui='wxUSE_GUI=yes'
2460 else
2461 ac_cv_use_gui='wxUSE_GUI=no'
2462 fi
2463
2464else
2465
2466 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2467 if test "x$LINE" != x ; then
2468 eval "DEFAULT_$LINE"
2469 else
2470 no_cache=1
2471 fi
2472
2473 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2474
2475fi;
2476
2477 eval "$ac_cv_use_gui"
2478 if test "$no_cache" != 1; then
2479 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2480 fi
2481
2482 if test "$wxUSE_GUI" = yes; then
2483 echo "$as_me:$LINENO: result: yes" >&5
2484echo "${ECHO_T}yes" >&6
2485 else
2486 echo "$as_me:$LINENO: result: no" >&5
2487echo "${ECHO_T}no" >&6
2488 fi
2489
2490
2491 enablestring=
2492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2493echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2494 no_cache=0
2495 # Check whether --enable-monolithic or --disable-monolithic was given.
2496if test "${enable_monolithic+set}" = set; then
2497 enableval="$enable_monolithic"
2498
2499 if test "$enableval" = yes; then
2500 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2501 else
2502 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2503 fi
2504
2505else
2506
2507 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2515
2516fi;
2517
2518 eval "$ac_cv_use_monolithic"
2519 if test "$no_cache" != 1; then
2520 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2521 fi
2522
2523 if test "$wxUSE_MONOLITHIC" = yes; then
2524 echo "$as_me:$LINENO: result: yes" >&5
2525echo "${ECHO_T}yes" >&6
2526 else
2527 echo "$as_me:$LINENO: result: no" >&5
2528echo "${ECHO_T}no" >&6
2529 fi
2530
2531
2532 enablestring=
2533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2534echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2535 no_cache=0
2536 # Check whether --enable-plugins or --disable-plugins was given.
2537if test "${enable_plugins+set}" = set; then
2538 enableval="$enable_plugins"
2539
2540 if test "$enableval" = yes; then
2541 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2542 else
2543 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2544 fi
2545
2546else
2547
2548 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2549 if test "x$LINE" != x ; then
2550 eval "DEFAULT_$LINE"
2551 else
2552 no_cache=1
2553 fi
2554
2555 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2556
2557fi;
2558
2559 eval "$ac_cv_use_plugins"
2560 if test "$no_cache" != 1; then
2561 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2562 fi
2563
2564 if test "$wxUSE_PLUGINS" = yes; then
2565 echo "$as_me:$LINENO: result: yes" >&5
2566echo "${ECHO_T}yes" >&6
2567 else
2568 echo "$as_me:$LINENO: result: no" >&5
2569echo "${ECHO_T}no" >&6
2570 fi
2571
2572
2573if test "$wxUSE_GUI" = "yes"; then
2574
2575
2576 enablestring=
2577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2578echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2579 no_cache=0
2580 # Check whether --enable-universal or --disable-universal was given.
2581if test "${enable_universal+set}" = set; then
2582 enableval="$enable_universal"
2583
2584 if test "$enableval" = yes; then
2585 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2586 else
2587 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2588 fi
2589
2590else
2591
2592 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2593 if test "x$LINE" != x ; then
2594 eval "DEFAULT_$LINE"
2595 else
2596 no_cache=1
2597 fi
2598
2599 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2600
2601fi;
2602
2603 eval "$ac_cv_use_universal"
2604 if test "$no_cache" != 1; then
2605 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2606 fi
2607
2608 if test "$wxUSE_UNIVERSAL" = yes; then
2609 echo "$as_me:$LINENO: result: yes" >&5
2610echo "${ECHO_T}yes" >&6
2611 else
2612 echo "$as_me:$LINENO: result: no" >&5
2613echo "${ECHO_T}no" >&6
2614 fi
2615
2616
2617# Check whether --with-gtk or --without-gtk was given.
2618if test "${with_gtk+set}" = set; then
2619 withval="$with_gtk"
2620 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2621fi;
2622
2623# Check whether --with-motif or --without-motif was given.
2624if test "${with_motif+set}" = set; then
2625 withval="$with_motif"
2626 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2627fi;
2628
2629# Check whether --with-mac or --without-mac was given.
2630if test "${with_mac+set}" = set; then
2631 withval="$with_mac"
c228d3a4 2632 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2633fi;
2634
2635# Check whether --with-cocoa or --without-cocoa was given.
2636if test "${with_cocoa+set}" = set; then
2637 withval="$with_cocoa"
c228d3a4 2638 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2639fi;
2640
2641# Check whether --with-wine or --without-wine was given.
2642if test "${with_wine+set}" = set; then
2643 withval="$with_wine"
2644 wxUSE_WINE="$withval" CACHE_WINE=1
2645fi;
2646
2647# Check whether --with-msw or --without-msw was given.
2648if test "${with_msw+set}" = set; then
2649 withval="$with_msw"
2650 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2651fi;
2652
2653# Check whether --with-pm or --without-pm was given.
2654if test "${with_pm+set}" = set; then
2655 withval="$with_pm"
2656 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2657fi;
2658
2659# Check whether --with-mgl or --without-mgl was given.
2660if test "${with_mgl+set}" = set; then
2661 withval="$with_mgl"
2662 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2663fi;
2664
2665# Check whether --with-microwin or --without-microwin was given.
2666if test "${with_microwin+set}" = set; then
2667 withval="$with_microwin"
2668 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2669fi;
2670
2671# Check whether --with-x11 or --without-x11 was given.
2672if test "${with_x11+set}" = set; then
2673 withval="$with_x11"
2674 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2675fi;
2676
2677 enablestring=
2678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2679echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2680 no_cache=0
2681 # Check whether --enable-nanox or --disable-nanox was given.
2682if test "${enable_nanox+set}" = set; then
2683 enableval="$enable_nanox"
2684
2685 if test "$enableval" = yes; then
2686 ac_cv_use_nanox='wxUSE_NANOX=yes'
2687 else
2688 ac_cv_use_nanox='wxUSE_NANOX=no'
2689 fi
2690
2691else
2692
2693 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2694 if test "x$LINE" != x ; then
2695 eval "DEFAULT_$LINE"
2696 else
2697 no_cache=1
2698 fi
2699
2700 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2701
2702fi;
2703
2704 eval "$ac_cv_use_nanox"
2705 if test "$no_cache" != 1; then
2706 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2707 fi
2708
2709 if test "$wxUSE_NANOX" = yes; then
2710 echo "$as_me:$LINENO: result: yes" >&5
2711echo "${ECHO_T}yes" >&6
2712 else
2713 echo "$as_me:$LINENO: result: no" >&5
2714echo "${ECHO_T}no" >&6
2715 fi
2716
2717
f34ca037
MW
2718# Check whether --enable-gtk2 or --disable-gtk2 was given.
2719if test "${enable_gtk2+set}" = set; then
2720 enableval="$enable_gtk2"
2721 wxUSE_GTK2="$enableval"
2722fi;
a848cd7e 2723
a848cd7e
SC
2724 enablestring=
2725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2726echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2727 no_cache=0
2728 # Check whether --enable-gpe or --disable-gpe was given.
2729if test "${enable_gpe+set}" = set; then
2730 enableval="$enable_gpe"
2731
2732 if test "$enableval" = yes; then
2733 ac_cv_use_gpe='wxUSE_GPE=yes'
2734 else
2735 ac_cv_use_gpe='wxUSE_GPE=no'
2736 fi
2737
2738else
2739
2740 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2741 if test "x$LINE" != x ; then
2742 eval "DEFAULT_$LINE"
2743 else
2744 no_cache=1
2745 fi
2746
2747 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2748
2749fi;
2750
2751 eval "$ac_cv_use_gpe"
2752 if test "$no_cache" != 1; then
2753 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2754 fi
2755
2756 if test "$wxUSE_GPE" = yes; then
2757 echo "$as_me:$LINENO: result: yes" >&5
2758echo "${ECHO_T}yes" >&6
2759 else
2760 echo "$as_me:$LINENO: result: no" >&5
2761echo "${ECHO_T}no" >&6
2762 fi
2763
2764
2765
2766 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2767echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2768 no_cache=0
2769
2770# Check whether --with-libpng or --without-libpng was given.
2771if test "${with_libpng+set}" = set; then
2772 withval="$with_libpng"
2773
2774 if test "$withval" = yes; then
2775 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2776 elif test "$withval" = no; then
2777 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2778 elif test "$withval" = sys; then
2779 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2780 elif test "$withval" = builtin; then
2781 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2782 else
2783 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2784echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2785 { (exit 1); exit 1; }; }
2786 fi
2787
2788else
2789
2790 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2791 if test "x$LINE" != x ; then
2792 eval "DEFAULT_$LINE"
2793 else
2794 no_cache=1
2795 fi
2796
2797 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2798
2799fi;
2800
2801 eval "$ac_cv_use_libpng"
2802 if test "$no_cache" != 1; then
2803 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2804 fi
2805
2806 if test "$wxUSE_LIBPNG" = yes; then
2807 echo "$as_me:$LINENO: result: yes" >&5
2808echo "${ECHO_T}yes" >&6
2809 elif test "$wxUSE_LIBPNG" = no; then
2810 echo "$as_me:$LINENO: result: no" >&5
2811echo "${ECHO_T}no" >&6
2812 elif test "$wxUSE_LIBPNG" = sys; then
2813 echo "$as_me:$LINENO: result: system version" >&5
2814echo "${ECHO_T}system version" >&6
2815 elif test "$wxUSE_LIBPNG" = builtin; then
2816 echo "$as_me:$LINENO: result: builtin version" >&5
2817echo "${ECHO_T}builtin version" >&6
2818 else
2819 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2820echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2821 { (exit 1); exit 1; }; }
2822 fi
2823
2824
2825 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2826echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2827 no_cache=0
2828
2829# Check whether --with-libjpeg or --without-libjpeg was given.
2830if test "${with_libjpeg+set}" = set; then
2831 withval="$with_libjpeg"
2832
2833 if test "$withval" = yes; then
2834 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2835 elif test "$withval" = no; then
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2837 elif test "$withval" = sys; then
2838 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2839 elif test "$withval" = builtin; then
2840 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2841 else
2842 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2843echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2844 { (exit 1); exit 1; }; }
2845 fi
2846
2847else
2848
2849 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2850 if test "x$LINE" != x ; then
2851 eval "DEFAULT_$LINE"
2852 else
2853 no_cache=1
2854 fi
2855
2856 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2857
2858fi;
2859
2860 eval "$ac_cv_use_libjpeg"
2861 if test "$no_cache" != 1; then
2862 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2863 fi
2864
2865 if test "$wxUSE_LIBJPEG" = yes; then
2866 echo "$as_me:$LINENO: result: yes" >&5
2867echo "${ECHO_T}yes" >&6
2868 elif test "$wxUSE_LIBJPEG" = no; then
2869 echo "$as_me:$LINENO: result: no" >&5
2870echo "${ECHO_T}no" >&6
2871 elif test "$wxUSE_LIBJPEG" = sys; then
2872 echo "$as_me:$LINENO: result: system version" >&5
2873echo "${ECHO_T}system version" >&6
2874 elif test "$wxUSE_LIBJPEG" = builtin; then
2875 echo "$as_me:$LINENO: result: builtin version" >&5
2876echo "${ECHO_T}builtin version" >&6
2877 else
2878 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2879echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2880 { (exit 1); exit 1; }; }
2881 fi
2882
2883
2884 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2885echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2886 no_cache=0
2887
2888# Check whether --with-libtiff or --without-libtiff was given.
2889if test "${with_libtiff+set}" = set; then
2890 withval="$with_libtiff"
2891
2892 if test "$withval" = yes; then
2893 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2894 elif test "$withval" = no; then
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2896 elif test "$withval" = sys; then
2897 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2898 elif test "$withval" = builtin; then
2899 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2900 else
2901 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2902echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2903 { (exit 1); exit 1; }; }
2904 fi
2905
2906else
2907
2908 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2909 if test "x$LINE" != x ; then
2910 eval "DEFAULT_$LINE"
2911 else
2912 no_cache=1
2913 fi
2914
2915 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2916
2917fi;
2918
2919 eval "$ac_cv_use_libtiff"
2920 if test "$no_cache" != 1; then
2921 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2922 fi
2923
2924 if test "$wxUSE_LIBTIFF" = yes; then
2925 echo "$as_me:$LINENO: result: yes" >&5
2926echo "${ECHO_T}yes" >&6
2927 elif test "$wxUSE_LIBTIFF" = no; then
2928 echo "$as_me:$LINENO: result: no" >&5
2929echo "${ECHO_T}no" >&6
2930 elif test "$wxUSE_LIBTIFF" = sys; then
2931 echo "$as_me:$LINENO: result: system version" >&5
2932echo "${ECHO_T}system version" >&6
2933 elif test "$wxUSE_LIBTIFF" = builtin; then
2934 echo "$as_me:$LINENO: result: builtin version" >&5
2935echo "${ECHO_T}builtin version" >&6
2936 else
2937 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2938echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2939 { (exit 1); exit 1; }; }
2940 fi
2941
2942
2943 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2944echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2945 no_cache=0
2946
2947# Check whether --with-libxpm or --without-libxpm was given.
2948if test "${with_libxpm+set}" = set; then
2949 withval="$with_libxpm"
2950
2951 if test "$withval" = yes; then
2952 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2953 elif test "$withval" = no; then
2954 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2955 elif test "$withval" = sys; then
2956 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2957 elif test "$withval" = builtin; then
2958 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2959 else
2960 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2961echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2962 { (exit 1); exit 1; }; }
2963 fi
2964
2965else
2966
2967 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2968 if test "x$LINE" != x ; then
2969 eval "DEFAULT_$LINE"
2970 else
2971 no_cache=1
2972 fi
2973
2974 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2975
2976fi;
2977
2978 eval "$ac_cv_use_libxpm"
2979 if test "$no_cache" != 1; then
2980 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2981 fi
2982
2983 if test "$wxUSE_LIBXPM" = yes; then
2984 echo "$as_me:$LINENO: result: yes" >&5
2985echo "${ECHO_T}yes" >&6
2986 elif test "$wxUSE_LIBXPM" = no; then
2987 echo "$as_me:$LINENO: result: no" >&5
2988echo "${ECHO_T}no" >&6
2989 elif test "$wxUSE_LIBXPM" = sys; then
2990 echo "$as_me:$LINENO: result: system version" >&5
2991echo "${ECHO_T}system version" >&6
2992 elif test "$wxUSE_LIBXPM" = builtin; then
2993 echo "$as_me:$LINENO: result: builtin version" >&5
2994echo "${ECHO_T}builtin version" >&6
2995 else
2996 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2997echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2998 { (exit 1); exit 1; }; }
2999 fi
3000
3001
3002 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3003echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3004 no_cache=0
3005
3006# Check whether --with-libmspack or --without-libmspack was given.
3007if test "${with_libmspack+set}" = set; then
3008 withval="$with_libmspack"
3009
3010 if test "$withval" = yes; then
3011 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3012 else
3013 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3014 fi
3015
3016else
3017
3018 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3019 if test "x$LINE" != x ; then
3020 eval "DEFAULT_$LINE"
3021 else
3022 no_cache=1
3023 fi
3024
3025 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3026
3027fi;
3028
3029 eval "$ac_cv_use_libmspack"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_LIBMSPACK" = yes; then
3035 echo "$as_me:$LINENO: result: yes" >&5
3036echo "${ECHO_T}yes" >&6
3037 else
3038 echo "$as_me:$LINENO: result: no" >&5
3039echo "${ECHO_T}no" >&6
3040 fi
3041
3042
3043 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3044echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3045 no_cache=0
3046
3047# Check whether --with-sdl or --without-sdl was given.
3048if test "${with_sdl+set}" = set; then
3049 withval="$with_sdl"
3050
3051 if test "$withval" = yes; then
3052 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3053 else
3054 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3055 fi
3056
3057else
3058
3059 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3060 if test "x$LINE" != x ; then
3061 eval "DEFAULT_$LINE"
3062 else
3063 no_cache=1
3064 fi
3065
3066 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3067
3068fi;
3069
3070 eval "$ac_cv_use_sdl"
3071 if test "$no_cache" != 1; then
3072 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3073 fi
3074
3075 if test "$wxUSE_LIBSDL" = yes; then
3076 echo "$as_me:$LINENO: result: yes" >&5
3077echo "${ECHO_T}yes" >&6
3078 else
3079 echo "$as_me:$LINENO: result: no" >&5
3080echo "${ECHO_T}no" >&6
3081 fi
3082
3083
d1c38808
VZ
3084 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3085echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3086 no_cache=0
3087
3088# Check whether --with-gnomeprint or --without-gnomeprint was given.
3089if test "${with_gnomeprint+set}" = set; then
3090 withval="$with_gnomeprint"
3091
3092 if test "$withval" = yes; then
3093 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3094 else
3095 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3096 fi
3097
3098else
3099
3100 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3101 if test "x$LINE" != x ; then
3102 eval "DEFAULT_$LINE"
3103 else
3104 no_cache=1
3105 fi
3106
3107 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3108
3109fi;
3110
3111 eval "$ac_cv_use_gnomeprint"
3112 if test "$no_cache" != 1; then
3113 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3114 fi
3115
3116 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3117 echo "$as_me:$LINENO: result: yes" >&5
3118echo "${ECHO_T}yes" >&6
3119 else
3120 echo "$as_me:$LINENO: result: no" >&5
3121echo "${ECHO_T}no" >&6
3122 fi
3123
3124
a848cd7e
SC
3125 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3126echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3127 no_cache=0
3128
3129# Check whether --with-opengl or --without-opengl was given.
3130if test "${with_opengl+set}" = set; then
3131 withval="$with_opengl"
3132
3133 if test "$withval" = yes; then
3134 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3135 else
3136 ac_cv_use_opengl='wxUSE_OPENGL=no'
3137 fi
3138
3139else
3140
3141 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3142 if test "x$LINE" != x ; then
3143 eval "DEFAULT_$LINE"
3144 else
3145 no_cache=1
3146 fi
3147
3148 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3149
3150fi;
3151
3152 eval "$ac_cv_use_opengl"
3153 if test "$no_cache" != 1; then
3154 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3155 fi
3156
3157 if test "$wxUSE_OPENGL" = yes; then
3158 echo "$as_me:$LINENO: result: yes" >&5
3159echo "${ECHO_T}yes" >&6
3160 else
3161 echo "$as_me:$LINENO: result: no" >&5
3162echo "${ECHO_T}no" >&6
3163 fi
3164
3165
3166fi
3167
3168
3169 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3170echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3171 no_cache=0
3172
3173# Check whether --with-dmalloc or --without-dmalloc was given.
3174if test "${with_dmalloc+set}" = set; then
3175 withval="$with_dmalloc"
3176
3177 if test "$withval" = yes; then
3178 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3179 else
3180 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3181 fi
3182
3183else
3184
3185 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3186 if test "x$LINE" != x ; then
3187 eval "DEFAULT_$LINE"
3188 else
3189 no_cache=1
3190 fi
3191
3192 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3193
3194fi;
3195
3196 eval "$ac_cv_use_dmalloc"
3197 if test "$no_cache" != 1; then
3198 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3199 fi
3200
3201 if test "$wxUSE_DMALLOC" = yes; then
3202 echo "$as_me:$LINENO: result: yes" >&5
3203echo "${ECHO_T}yes" >&6
3204 else
3205 echo "$as_me:$LINENO: result: no" >&5
3206echo "${ECHO_T}no" >&6
3207 fi
3208
3209
3210 echo "$as_me:$LINENO: checking for --with-regex" >&5
3211echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3212 no_cache=0
3213
3214# Check whether --with-regex or --without-regex was given.
3215if test "${with_regex+set}" = set; then
3216 withval="$with_regex"
3217
3218 if test "$withval" = yes; then
3219 ac_cv_use_regex='wxUSE_REGEX=yes'
3220 elif test "$withval" = no; then
3221 ac_cv_use_regex='wxUSE_REGEX=no'
3222 elif test "$withval" = sys; then
3223 ac_cv_use_regex='wxUSE_REGEX=sys'
3224 elif test "$withval" = builtin; then
3225 ac_cv_use_regex='wxUSE_REGEX=builtin'
3226 else
3227 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3228echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3229 { (exit 1); exit 1; }; }
3230 fi
3231
3232else
3233
3234 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3235 if test "x$LINE" != x ; then
3236 eval "DEFAULT_$LINE"
3237 else
3238 no_cache=1
3239 fi
3240
3241 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3242
3243fi;
3244
3245 eval "$ac_cv_use_regex"
3246 if test "$no_cache" != 1; then
3247 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3248 fi
3249
3250 if test "$wxUSE_REGEX" = yes; then
3251 echo "$as_me:$LINENO: result: yes" >&5
3252echo "${ECHO_T}yes" >&6
3253 elif test "$wxUSE_REGEX" = no; then
3254 echo "$as_me:$LINENO: result: no" >&5
3255echo "${ECHO_T}no" >&6
3256 elif test "$wxUSE_REGEX" = sys; then
3257 echo "$as_me:$LINENO: result: system version" >&5
3258echo "${ECHO_T}system version" >&6
3259 elif test "$wxUSE_REGEX" = builtin; then
3260 echo "$as_me:$LINENO: result: builtin version" >&5
3261echo "${ECHO_T}builtin version" >&6
3262 else
3263 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3264echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3265 { (exit 1); exit 1; }; }
3266 fi
3267
3268
3269 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3270echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3271 no_cache=0
3272
3273# Check whether --with-zlib or --without-zlib was given.
3274if test "${with_zlib+set}" = set; then
3275 withval="$with_zlib"
3276
3277 if test "$withval" = yes; then
3278 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3279 elif test "$withval" = no; then
3280 ac_cv_use_zlib='wxUSE_ZLIB=no'
3281 elif test "$withval" = sys; then
3282 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3283 elif test "$withval" = builtin; then
3284 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3285 else
3286 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3287echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3288 { (exit 1); exit 1; }; }
3289 fi
3290
3291else
3292
3293 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3294 if test "x$LINE" != x ; then
3295 eval "DEFAULT_$LINE"
3296 else
3297 no_cache=1
3298 fi
3299
3300 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3301
3302fi;
3303
3304 eval "$ac_cv_use_zlib"
3305 if test "$no_cache" != 1; then
3306 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3307 fi
3308
3309 if test "$wxUSE_ZLIB" = yes; then
3310 echo "$as_me:$LINENO: result: yes" >&5
3311echo "${ECHO_T}yes" >&6
3312 elif test "$wxUSE_ZLIB" = no; then
3313 echo "$as_me:$LINENO: result: no" >&5
3314echo "${ECHO_T}no" >&6
3315 elif test "$wxUSE_ZLIB" = sys; then
3316 echo "$as_me:$LINENO: result: system version" >&5
3317echo "${ECHO_T}system version" >&6
3318 elif test "$wxUSE_ZLIB" = builtin; then
3319 echo "$as_me:$LINENO: result: builtin version" >&5
3320echo "${ECHO_T}builtin version" >&6
3321 else
3322 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3323echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3324 { (exit 1); exit 1; }; }
3325 fi
3326
3327
3328 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3329echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3330 no_cache=0
3331
3332# Check whether --with-odbc or --without-odbc was given.
3333if test "${with_odbc+set}" = set; then
3334 withval="$with_odbc"
3335
3336 if test "$withval" = yes; then
3337 ac_cv_use_odbc='wxUSE_ODBC=yes'
3338 elif test "$withval" = no; then
3339 ac_cv_use_odbc='wxUSE_ODBC=no'
3340 elif test "$withval" = sys; then
3341 ac_cv_use_odbc='wxUSE_ODBC=sys'
3342 elif test "$withval" = builtin; then
3343 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3344 else
3345 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3346echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3347 { (exit 1); exit 1; }; }
3348 fi
3349
3350else
3351
3352 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3353 if test "x$LINE" != x ; then
3354 eval "DEFAULT_$LINE"
3355 else
3356 no_cache=1
3357 fi
3358
3359 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3360
3361fi;
3362
3363 eval "$ac_cv_use_odbc"
3364 if test "$no_cache" != 1; then
3365 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3366 fi
3367
3368 if test "$wxUSE_ODBC" = yes; then
3369 echo "$as_me:$LINENO: result: yes" >&5
3370echo "${ECHO_T}yes" >&6
3371 elif test "$wxUSE_ODBC" = no; then
3372 echo "$as_me:$LINENO: result: no" >&5
3373echo "${ECHO_T}no" >&6
3374 elif test "$wxUSE_ODBC" = sys; then
3375 echo "$as_me:$LINENO: result: system version" >&5
3376echo "${ECHO_T}system version" >&6
3377 elif test "$wxUSE_ODBC" = builtin; then
3378 echo "$as_me:$LINENO: result: builtin version" >&5
3379echo "${ECHO_T}builtin version" >&6
3380 else
3381 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3382echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3383 { (exit 1); exit 1; }; }
3384 fi
3385
3386
3387 echo "$as_me:$LINENO: checking for --with-expat" >&5
3388echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3389 no_cache=0
3390
3391# Check whether --with-expat or --without-expat was given.
3392if test "${with_expat+set}" = set; then
3393 withval="$with_expat"
3394
3395 if test "$withval" = yes; then
3396 ac_cv_use_expat='wxUSE_EXPAT=yes'
3397 elif test "$withval" = no; then
3398 ac_cv_use_expat='wxUSE_EXPAT=no'
3399 elif test "$withval" = sys; then
3400 ac_cv_use_expat='wxUSE_EXPAT=sys'
3401 elif test "$withval" = builtin; then
3402 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3403 else
3404 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3405echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3406 { (exit 1); exit 1; }; }
3407 fi
3408
3409else
3410
3411 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3412 if test "x$LINE" != x ; then
3413 eval "DEFAULT_$LINE"
3414 else
3415 no_cache=1
3416 fi
3417
3418 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3419
3420fi;
3421
3422 eval "$ac_cv_use_expat"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_EXPAT" = yes; then
3428 echo "$as_me:$LINENO: result: yes" >&5
3429echo "${ECHO_T}yes" >&6
3430 elif test "$wxUSE_EXPAT" = no; then
3431 echo "$as_me:$LINENO: result: no" >&5
3432echo "${ECHO_T}no" >&6
3433 elif test "$wxUSE_EXPAT" = sys; then
3434 echo "$as_me:$LINENO: result: system version" >&5
3435echo "${ECHO_T}system version" >&6
3436 elif test "$wxUSE_EXPAT" = builtin; then
3437 echo "$as_me:$LINENO: result: builtin version" >&5
3438echo "${ECHO_T}builtin version" >&6
3439 else
3440 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3441echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3442 { (exit 1); exit 1; }; }
3443 fi
3444
3445
3446
3447
3448 enablestring=
3449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3450echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3451 no_cache=0
3452 # Check whether --enable-shared or --disable-shared was given.
3453if test "${enable_shared+set}" = set; then
3454 enableval="$enable_shared"
3455
3456 if test "$enableval" = yes; then
3457 ac_cv_use_shared='wxUSE_SHARED=yes'
3458 else
3459 ac_cv_use_shared='wxUSE_SHARED=no'
3460 fi
3461
3462else
3463
3464 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3465 if test "x$LINE" != x ; then
3466 eval "DEFAULT_$LINE"
3467 else
3468 no_cache=1
3469 fi
3470
3471 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3472
3473fi;
3474
3475 eval "$ac_cv_use_shared"
3476 if test "$no_cache" != 1; then
3477 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3478 fi
3479
3480 if test "$wxUSE_SHARED" = yes; then
3481 echo "$as_me:$LINENO: result: yes" >&5
3482echo "${ECHO_T}yes" >&6
3483 else
3484 echo "$as_me:$LINENO: result: no" >&5
3485echo "${ECHO_T}no" >&6
3486 fi
3487
3488
3489 enablestring=
3490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3491echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3492 no_cache=0
3493 # Check whether --enable-optimise or --disable-optimise was given.
3494if test "${enable_optimise+set}" = set; then
3495 enableval="$enable_optimise"
3496
3497 if test "$enableval" = yes; then
3498 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3499 else
3500 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3501 fi
3502
3503else
3504
3505 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3506 if test "x$LINE" != x ; then
3507 eval "DEFAULT_$LINE"
3508 else
3509 no_cache=1
3510 fi
3511
3512 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3513
3514fi;
3515
3516 eval "$ac_cv_use_optimise"
3517 if test "$no_cache" != 1; then
3518 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3519 fi
3520
3521 if test "$wxUSE_OPTIMISE" = yes; then
3522 echo "$as_me:$LINENO: result: yes" >&5
3523echo "${ECHO_T}yes" >&6
3524 else
3525 echo "$as_me:$LINENO: result: no" >&5
3526echo "${ECHO_T}no" >&6
3527 fi
3528
3529
3530 enablestring=
3531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3532echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3533 no_cache=0
3534 # Check whether --enable-debug or --disable-debug was given.
3535if test "${enable_debug+set}" = set; then
3536 enableval="$enable_debug"
3537
3538 if test "$enableval" = yes; then
3539 ac_cv_use_debug='wxUSE_DEBUG=yes'
3540 else
3541 ac_cv_use_debug='wxUSE_DEBUG=no'
3542 fi
3543
3544else
3545
3546 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3547 if test "x$LINE" != x ; then
3548 eval "DEFAULT_$LINE"
3549 else
3550 no_cache=1
3551 fi
3552
3553 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3554
3555fi;
3556
3557 eval "$ac_cv_use_debug"
3558 if test "$no_cache" != 1; then
3559 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3560 fi
3561
3562 if test "$wxUSE_DEBUG" = yes; then
3563 echo "$as_me:$LINENO: result: yes" >&5
3564echo "${ECHO_T}yes" >&6
3565 else
3566 echo "$as_me:$LINENO: result: no" >&5
3567echo "${ECHO_T}no" >&6
3568 fi
3569
3570
3571 enablestring=
3572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3573echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3574 no_cache=0
3575 # Check whether --enable-stl or --disable-stl was given.
3576if test "${enable_stl+set}" = set; then
3577 enableval="$enable_stl"
3578
3579 if test "$enableval" = yes; then
3580 ac_cv_use_stl='wxUSE_STL=yes'
3581 else
3582 ac_cv_use_stl='wxUSE_STL=no'
3583 fi
3584
3585else
3586
3587 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3588 if test "x$LINE" != x ; then
3589 eval "DEFAULT_$LINE"
3590 else
3591 no_cache=1
3592 fi
3593
3594 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3595
3596fi;
3597
3598 eval "$ac_cv_use_stl"
3599 if test "$no_cache" != 1; then
3600 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3601 fi
3602
3603 if test "$wxUSE_STL" = yes; then
3604 echo "$as_me:$LINENO: result: yes" >&5
3605echo "${ECHO_T}yes" >&6
3606 else
3607 echo "$as_me:$LINENO: result: no" >&5
3608echo "${ECHO_T}no" >&6
3609 fi
3610
3611if test "$USE_OS2" = "1"; then
69120ee4 3612 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3613
3614 enablestring=
3615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3616echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3617 no_cache=0
3618 # Check whether --enable-omf or --disable-omf was given.
3619if test "${enable_omf+set}" = set; then
3620 enableval="$enable_omf"
3621
3622 if test "$enableval" = yes; then
3623 ac_cv_use_omf='wxUSE_OMF=yes'
3624 else
3625 ac_cv_use_omf='wxUSE_OMF=no'
3626 fi
3627
3628else
3629
3630 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3631 if test "x$LINE" != x ; then
3632 eval "DEFAULT_$LINE"
3633 else
3634 no_cache=1
3635 fi
3636
3637 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3638
3639fi;
3640
3641 eval "$ac_cv_use_omf"
3642 if test "$no_cache" != 1; then
3643 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3644 fi
3645
3646 if test "$wxUSE_OMF" = yes; then
3647 echo "$as_me:$LINENO: result: yes" >&5
3648echo "${ECHO_T}yes" >&6
3649 else
3650 echo "$as_me:$LINENO: result: no" >&5
3651echo "${ECHO_T}no" >&6
3652 fi
3653
3654fi
3655
3656if test "$wxUSE_DEBUG" = "yes"; then
3657 DEFAULT_wxUSE_DEBUG_FLAG=yes
3658 DEFAULT_wxUSE_DEBUG_INFO=yes
3659 BUILD=debug
3660elif test "$wxUSE_DEBUG" = "no"; then
3661 DEFAULT_wxUSE_DEBUG_FLAG=no
3662 DEFAULT_wxUSE_DEBUG_INFO=no
3663 BUILD=release
3664fi
3665
3666
3667 enablestring=
3668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3669echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3670 no_cache=0
3671 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3672if test "${enable_debug_flag+set}" = set; then
3673 enableval="$enable_debug_flag"
3674
3675 if test "$enableval" = yes; then
3676 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3677 else
3678 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3679 fi
3680
3681else
3682
3683 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3691
3692fi;
3693
3694 eval "$ac_cv_use_debug_flag"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$wxUSE_DEBUG_FLAG" = yes; then
3700 echo "$as_me:$LINENO: result: yes" >&5
3701echo "${ECHO_T}yes" >&6
3702 else
3703 echo "$as_me:$LINENO: result: no" >&5
3704echo "${ECHO_T}no" >&6
3705 fi
3706
3707
3708 enablestring=
3709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3710echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3711 no_cache=0
3712 # Check whether --enable-debug_info or --disable-debug_info was given.
3713if test "${enable_debug_info+set}" = set; then
3714 enableval="$enable_debug_info"
3715
3716 if test "$enableval" = yes; then
3717 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3718 else
3719 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3720 fi
3721
3722else
3723
3724 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3725 if test "x$LINE" != x ; then
3726 eval "DEFAULT_$LINE"
3727 else
3728 no_cache=1
3729 fi
3730
3731 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3732
3733fi;
3734
3735 eval "$ac_cv_use_debug_info"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_DEBUG_INFO" = yes; then
3741 echo "$as_me:$LINENO: result: yes" >&5
3742echo "${ECHO_T}yes" >&6
3743 else
3744 echo "$as_me:$LINENO: result: no" >&5
3745echo "${ECHO_T}no" >&6
3746 fi
3747
3748
3749 enablestring=
3750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3751echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3752 no_cache=0
3753 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3754if test "${enable_debug_gdb+set}" = set; then
3755 enableval="$enable_debug_gdb"
3756
3757 if test "$enableval" = yes; then
3758 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3759 else
3760 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3761 fi
3762
3763else
3764
3765 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3766 if test "x$LINE" != x ; then
3767 eval "DEFAULT_$LINE"
3768 else
3769 no_cache=1
3770 fi
3771
3772 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3773
3774fi;
3775
3776 eval "$ac_cv_use_debug_gdb"
3777 if test "$no_cache" != 1; then
3778 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3779 fi
3780
3781 if test "$wxUSE_DEBUG_GDB" = yes; then
3782 echo "$as_me:$LINENO: result: yes" >&5
3783echo "${ECHO_T}yes" >&6
3784 else
3785 echo "$as_me:$LINENO: result: no" >&5
3786echo "${ECHO_T}no" >&6
3787 fi
3788
3789
3790 enablestring=
3791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3792echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3793 no_cache=0
3794 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3795if test "${enable_debug_cntxt+set}" = set; then
3796 enableval="$enable_debug_cntxt"
3797
3798 if test "$enableval" = yes; then
3799 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3800 else
3801 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3802 fi
3803
3804else
3805
3806 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3807 if test "x$LINE" != x ; then
3808 eval "DEFAULT_$LINE"
3809 else
3810 no_cache=1
3811 fi
3812
3813 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3814
3815fi;
3816
3817 eval "$ac_cv_use_debug_cntxt"
3818 if test "$no_cache" != 1; then
3819 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3820 fi
3821
3822 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3823 echo "$as_me:$LINENO: result: yes" >&5
3824echo "${ECHO_T}yes" >&6
3825 else
3826 echo "$as_me:$LINENO: result: no" >&5
3827echo "${ECHO_T}no" >&6
3828 fi
3829
3830
3831 enablestring=
3832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3833echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3834 no_cache=0
3835 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3836if test "${enable_mem_tracing+set}" = set; then
3837 enableval="$enable_mem_tracing"
3838
3839 if test "$enableval" = yes; then
3840 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3841 else
3842 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3843 fi
3844
3845else
3846
3847 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3855
3856fi;
3857
3858 eval "$ac_cv_use_mem_tracing"
3859 if test "$no_cache" != 1; then
3860 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3861 fi
3862
3863 if test "$wxUSE_MEM_TRACING" = yes; then
3864 echo "$as_me:$LINENO: result: yes" >&5
3865echo "${ECHO_T}yes" >&6
3866 else
3867 echo "$as_me:$LINENO: result: no" >&5
3868echo "${ECHO_T}no" >&6
3869 fi
3870
3871
3872 enablestring=
3873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3874echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3875 no_cache=0
3876 # Check whether --enable-profile or --disable-profile was given.
3877if test "${enable_profile+set}" = set; then
3878 enableval="$enable_profile"
3879
3880 if test "$enableval" = yes; then
3881 ac_cv_use_profile='wxUSE_PROFILE=yes'
3882 else
3883 ac_cv_use_profile='wxUSE_PROFILE=no'
3884 fi
3885
3886else
3887
3888 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3889 if test "x$LINE" != x ; then
3890 eval "DEFAULT_$LINE"
3891 else
3892 no_cache=1
3893 fi
3894
3895 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3896
3897fi;
3898
3899 eval "$ac_cv_use_profile"
3900 if test "$no_cache" != 1; then
3901 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3902 fi
3903
3904 if test "$wxUSE_PROFILE" = yes; then
3905 echo "$as_me:$LINENO: result: yes" >&5
3906echo "${ECHO_T}yes" >&6
3907 else
3908 echo "$as_me:$LINENO: result: no" >&5
3909echo "${ECHO_T}no" >&6
3910 fi
3911
3912
3913 enablestring=
3914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3915echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3916 no_cache=0
3917 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3918if test "${enable_no_rtti+set}" = set; then
3919 enableval="$enable_no_rtti"
3920
3921 if test "$enableval" = yes; then
3922 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3923 else
3924 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3925 fi
3926
3927else
3928
3929 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3930 if test "x$LINE" != x ; then
3931 eval "DEFAULT_$LINE"
3932 else
3933 no_cache=1
3934 fi
3935
3936 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3937
3938fi;
3939
3940 eval "$ac_cv_use_no_rtti"
3941 if test "$no_cache" != 1; then
3942 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3943 fi
3944
3945 if test "$wxUSE_NO_RTTI" = yes; then
3946 echo "$as_me:$LINENO: result: yes" >&5
3947echo "${ECHO_T}yes" >&6
3948 else
3949 echo "$as_me:$LINENO: result: no" >&5
3950echo "${ECHO_T}no" >&6
3951 fi
3952
3953
3954 enablestring=
3955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3956echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3957 no_cache=0
3958 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3959if test "${enable_no_exceptions+set}" = set; then
3960 enableval="$enable_no_exceptions"
3961
3962 if test "$enableval" = yes; then
3963 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3964 else
3965 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3966 fi
3967
3968else
3969
3970 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3971 if test "x$LINE" != x ; then
3972 eval "DEFAULT_$LINE"
3973 else
3974 no_cache=1
3975 fi
3976
3977 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3978
3979fi;
3980
3981 eval "$ac_cv_use_no_exceptions"
3982 if test "$no_cache" != 1; then
3983 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3984 fi
3985
3986 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3987 echo "$as_me:$LINENO: result: yes" >&5
3988echo "${ECHO_T}yes" >&6
3989 else
3990 echo "$as_me:$LINENO: result: no" >&5
3991echo "${ECHO_T}no" >&6
3992 fi
3993
3994
3995 enablestring=
3996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3997echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3998 no_cache=0
3999 # Check whether --enable-permissive or --disable-permissive was given.
4000if test "${enable_permissive+set}" = set; then
4001 enableval="$enable_permissive"
4002
4003 if test "$enableval" = yes; then
4004 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4005 else
4006 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4007 fi
4008
4009else
4010
4011 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4012 if test "x$LINE" != x ; then
4013 eval "DEFAULT_$LINE"
4014 else
4015 no_cache=1
4016 fi
4017
4018 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4019
4020fi;
4021
4022 eval "$ac_cv_use_permissive"
4023 if test "$no_cache" != 1; then
4024 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4025 fi
4026
4027 if test "$wxUSE_PERMISSIVE" = yes; then
4028 echo "$as_me:$LINENO: result: yes" >&5
4029echo "${ECHO_T}yes" >&6
4030 else
4031 echo "$as_me:$LINENO: result: no" >&5
4032echo "${ECHO_T}no" >&6
4033 fi
4034
4035
4036 enablestring=
4037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4038echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4039 no_cache=0
4040 # Check whether --enable-no_deps or --disable-no_deps was given.
4041if test "${enable_no_deps+set}" = set; then
4042 enableval="$enable_no_deps"
4043
4044 if test "$enableval" = yes; then
4045 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4046 else
4047 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4048 fi
4049
4050else
4051
4052 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4053 if test "x$LINE" != x ; then
4054 eval "DEFAULT_$LINE"
4055 else
4056 no_cache=1
4057 fi
4058
4059 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4060
4061fi;
4062
4063 eval "$ac_cv_use_no_deps"
4064 if test "$no_cache" != 1; then
4065 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4066 fi
4067
4068 if test "$wxUSE_NO_DEPS" = yes; then
4069 echo "$as_me:$LINENO: result: yes" >&5
4070echo "${ECHO_T}yes" >&6
4071 else
4072 echo "$as_me:$LINENO: result: no" >&5
4073echo "${ECHO_T}no" >&6
4074 fi
4075
4076
4077
4078 enablestring=
4079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4080echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4081 no_cache=0
4082 # Check whether --enable-compat22 or --disable-compat22 was given.
4083if test "${enable_compat22+set}" = set; then
4084 enableval="$enable_compat22"
4085
4086 if test "$enableval" = yes; then
4087 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4088 else
4089 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4090 fi
4091
4092else
4093
4094 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4095 if test "x$LINE" != x ; then
4096 eval "DEFAULT_$LINE"
4097 else
4098 no_cache=1
4099 fi
4100
4101 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4102
4103fi;
4104
4105 eval "$ac_cv_use_compat22"
4106 if test "$no_cache" != 1; then
4107 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4108 fi
4109
4110 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4111 echo "$as_me:$LINENO: result: yes" >&5
4112echo "${ECHO_T}yes" >&6
4113 else
4114 echo "$as_me:$LINENO: result: no" >&5
4115echo "${ECHO_T}no" >&6
4116 fi
4117
4118
4119 enablestring=disable
4120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4121echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4122 no_cache=0
4123 # Check whether --enable-compat24 or --disable-compat24 was given.
4124if test "${enable_compat24+set}" = set; then
4125 enableval="$enable_compat24"
4126
4127 if test "$enableval" = yes; then
4128 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4129 else
4130 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4131 fi
4132
4133else
4134
4135 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4136 if test "x$LINE" != x ; then
4137 eval "DEFAULT_$LINE"
4138 else
4139 no_cache=1
4140 fi
4141
4142 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4143
4144fi;
4145
4146 eval "$ac_cv_use_compat24"
4147 if test "$no_cache" != 1; then
4148 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4149 fi
4150
4151 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4152 echo "$as_me:$LINENO: result: yes" >&5
4153echo "${ECHO_T}yes" >&6
4154 else
4155 echo "$as_me:$LINENO: result: no" >&5
4156echo "${ECHO_T}no" >&6
4157 fi
4158
4159
ffa0583f
RL
4160
4161 enablestring=
4162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4163echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4164 no_cache=0
4165 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4166if test "${enable_rpath+set}" = set; then
4167 enableval="$enable_rpath"
ffa0583f
RL
4168
4169 if test "$enableval" = yes; then
4170 ac_cv_use_rpath='wxUSE_RPATH=yes'
4171 else
4172 ac_cv_use_rpath='wxUSE_RPATH=no'
4173 fi
4174
4175else
4176
4177 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4178 if test "x$LINE" != x ; then
4179 eval "DEFAULT_$LINE"
4180 else
4181 no_cache=1
4182 fi
4183
4184 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4185
a848cd7e
SC
4186fi;
4187
ffa0583f
RL
4188 eval "$ac_cv_use_rpath"
4189 if test "$no_cache" != 1; then
4190 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4191 fi
4192
4193 if test "$wxUSE_RPATH" = yes; then
4194 echo "$as_me:$LINENO: result: yes" >&5
4195echo "${ECHO_T}yes" >&6
4196 else
4197 echo "$as_me:$LINENO: result: no" >&5
4198echo "${ECHO_T}no" >&6
4199 fi
4200
a848cd7e
SC
4201
4202
4203
4204
4205 enablestring=
4206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4207echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4208 no_cache=0
4209 # Check whether --enable-intl or --disable-intl was given.
4210if test "${enable_intl+set}" = set; then
4211 enableval="$enable_intl"
4212
4213 if test "$enableval" = yes; then
4214 ac_cv_use_intl='wxUSE_INTL=yes'
4215 else
4216 ac_cv_use_intl='wxUSE_INTL=no'
4217 fi
4218
4219else
4220
4221 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4222 if test "x$LINE" != x ; then
4223 eval "DEFAULT_$LINE"
4224 else
4225 no_cache=1
4226 fi
4227
4228 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4229
4230fi;
4231
4232 eval "$ac_cv_use_intl"
4233 if test "$no_cache" != 1; then
4234 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4235 fi
4236
4237 if test "$wxUSE_INTL" = yes; then
4238 echo "$as_me:$LINENO: result: yes" >&5
4239echo "${ECHO_T}yes" >&6
4240 else
4241 echo "$as_me:$LINENO: result: no" >&5
4242echo "${ECHO_T}no" >&6
4243 fi
4244
4245
4246 enablestring=
4247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4248echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4249 no_cache=0
4250 # Check whether --enable-config or --disable-config was given.
4251if test "${enable_config+set}" = set; then
4252 enableval="$enable_config"
4253
4254 if test "$enableval" = yes; then
4255 ac_cv_use_config='wxUSE_CONFIG=yes'
4256 else
4257 ac_cv_use_config='wxUSE_CONFIG=no'
4258 fi
4259
4260else
4261
4262 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4263 if test "x$LINE" != x ; then
4264 eval "DEFAULT_$LINE"
4265 else
4266 no_cache=1
4267 fi
4268
4269 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4270
4271fi;
4272
4273 eval "$ac_cv_use_config"
4274 if test "$no_cache" != 1; then
4275 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4276 fi
4277
4278 if test "$wxUSE_CONFIG" = yes; then
4279 echo "$as_me:$LINENO: result: yes" >&5
4280echo "${ECHO_T}yes" >&6
4281 else
4282 echo "$as_me:$LINENO: result: no" >&5
4283echo "${ECHO_T}no" >&6
4284 fi
4285
4286
4287
4288 enablestring=
4289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4290echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4291 no_cache=0
4292 # Check whether --enable-protocols or --disable-protocols was given.
4293if test "${enable_protocols+set}" = set; then
4294 enableval="$enable_protocols"
4295
4296 if test "$enableval" = yes; then
4297 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4298 else
4299 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4300 fi
4301
4302else
4303
4304 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4305 if test "x$LINE" != x ; then
4306 eval "DEFAULT_$LINE"
4307 else
4308 no_cache=1
4309 fi
4310
4311 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4312
4313fi;
4314
4315 eval "$ac_cv_use_protocols"
4316 if test "$no_cache" != 1; then
4317 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4318 fi
4319
4320 if test "$wxUSE_PROTOCOL" = yes; then
4321 echo "$as_me:$LINENO: result: yes" >&5
4322echo "${ECHO_T}yes" >&6
4323 else
4324 echo "$as_me:$LINENO: result: no" >&5
4325echo "${ECHO_T}no" >&6
4326 fi
4327
4328
4329 enablestring=
4330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4331echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4332 no_cache=0
4333 # Check whether --enable-ftp or --disable-ftp was given.
4334if test "${enable_ftp+set}" = set; then
4335 enableval="$enable_ftp"
4336
4337 if test "$enableval" = yes; then
4338 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4339 else
4340 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4341 fi
4342
4343else
4344
4345 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4353
4354fi;
4355
4356 eval "$ac_cv_use_ftp"
4357 if test "$no_cache" != 1; then
4358 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4359 fi
4360
4361 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4362 echo "$as_me:$LINENO: result: yes" >&5
4363echo "${ECHO_T}yes" >&6
4364 else
4365 echo "$as_me:$LINENO: result: no" >&5
4366echo "${ECHO_T}no" >&6
4367 fi
4368
4369
4370 enablestring=
4371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4372echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4373 no_cache=0
4374 # Check whether --enable-http or --disable-http was given.
4375if test "${enable_http+set}" = set; then
4376 enableval="$enable_http"
4377
4378 if test "$enableval" = yes; then
4379 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4380 else
4381 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4382 fi
4383
4384else
4385
4386 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4387 if test "x$LINE" != x ; then
4388 eval "DEFAULT_$LINE"
4389 else
4390 no_cache=1
4391 fi
4392
4393 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4394
4395fi;
4396
4397 eval "$ac_cv_use_http"
4398 if test "$no_cache" != 1; then
4399 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4400 fi
4401
4402 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4403 echo "$as_me:$LINENO: result: yes" >&5
4404echo "${ECHO_T}yes" >&6
4405 else
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408 fi
4409
4410
4411 enablestring=
4412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4413echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4414 no_cache=0
4415 # Check whether --enable-fileproto or --disable-fileproto was given.
4416if test "${enable_fileproto+set}" = set; then
4417 enableval="$enable_fileproto"
4418
4419 if test "$enableval" = yes; then
4420 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4421 else
4422 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4423 fi
4424
4425else
4426
4427 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4435
4436fi;
4437
4438 eval "$ac_cv_use_fileproto"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4444 echo "$as_me:$LINENO: result: yes" >&5
4445echo "${ECHO_T}yes" >&6
4446 else
4447 echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6
4449 fi
4450
4451
4452 enablestring=
4453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4454echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4455 no_cache=0
4456 # Check whether --enable-sockets or --disable-sockets was given.
4457if test "${enable_sockets+set}" = set; then
4458 enableval="$enable_sockets"
4459
4460 if test "$enableval" = yes; then
4461 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4462 else
4463 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4464 fi
4465
4466else
4467
4468 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4476
4477fi;
4478
4479 eval "$ac_cv_use_sockets"
4480 if test "$no_cache" != 1; then
4481 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4482 fi
4483
4484 if test "$wxUSE_SOCKETS" = yes; then
4485 echo "$as_me:$LINENO: result: yes" >&5
4486echo "${ECHO_T}yes" >&6
4487 else
4488 echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6
4490 fi
4491
4492
4493 enablestring=
4494 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4495echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4496 no_cache=0
4497 # Check whether --enable-ole or --disable-ole was given.
4498if test "${enable_ole+set}" = set; then
4499 enableval="$enable_ole"
4500
4501 if test "$enableval" = yes; then
4502 ac_cv_use_ole='wxUSE_OLE=yes'
4503 else
4504 ac_cv_use_ole='wxUSE_OLE=no'
4505 fi
4506
4507else
4508
4509 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4510 if test "x$LINE" != x ; then
4511 eval "DEFAULT_$LINE"
4512 else
4513 no_cache=1
4514 fi
4515
4516 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4517
4518fi;
4519
4520 eval "$ac_cv_use_ole"
4521 if test "$no_cache" != 1; then
4522 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4523 fi
4524
4525 if test "$wxUSE_OLE" = yes; then
4526 echo "$as_me:$LINENO: result: yes" >&5
4527echo "${ECHO_T}yes" >&6
4528 else
4529 echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6
4531 fi
4532
4533
4534 enablestring=
4535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4536echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4537 no_cache=0
4538 # Check whether --enable-dataobj or --disable-dataobj was given.
4539if test "${enable_dataobj+set}" = set; then
4540 enableval="$enable_dataobj"
4541
4542 if test "$enableval" = yes; then
4543 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4544 else
4545 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4546 fi
4547
4548else
4549
4550 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4558
4559fi;
4560
4561 eval "$ac_cv_use_dataobj"
4562 if test "$no_cache" != 1; then
4563 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4564 fi
4565
4566 if test "$wxUSE_DATAOBJ" = yes; then
4567 echo "$as_me:$LINENO: result: yes" >&5
4568echo "${ECHO_T}yes" >&6
4569 else
4570 echo "$as_me:$LINENO: result: no" >&5
4571echo "${ECHO_T}no" >&6
4572 fi
4573
4574
4575
4576 enablestring=
4577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4578echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4579 no_cache=0
4580 # Check whether --enable-ipc or --disable-ipc was given.
4581if test "${enable_ipc+set}" = set; then
4582 enableval="$enable_ipc"
4583
4584 if test "$enableval" = yes; then
4585 ac_cv_use_ipc='wxUSE_IPC=yes'
4586 else
4587 ac_cv_use_ipc='wxUSE_IPC=no'
4588 fi
4589
4590else
4591
4592 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4593 if test "x$LINE" != x ; then
4594 eval "DEFAULT_$LINE"
4595 else
4596 no_cache=1
4597 fi
4598
4599 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4600
4601fi;
4602
4603 eval "$ac_cv_use_ipc"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_IPC" = yes; then
4609 echo "$as_me:$LINENO: result: yes" >&5
4610echo "${ECHO_T}yes" >&6
4611 else
4612 echo "$as_me:$LINENO: result: no" >&5
4613echo "${ECHO_T}no" >&6
4614 fi
4615
4616
4617
4618 enablestring=
4619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4620echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4621 no_cache=0
4622 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4623if test "${enable_apple_ieee+set}" = set; then
4624 enableval="$enable_apple_ieee"
4625
4626 if test "$enableval" = yes; then
4627 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4628 else
4629 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4630 fi
4631
4632else
4633
4634 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4635 if test "x$LINE" != x ; then
4636 eval "DEFAULT_$LINE"
4637 else
4638 no_cache=1
4639 fi
4640
4641 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4642
4643fi;
4644
4645 eval "$ac_cv_use_apple_ieee"
4646 if test "$no_cache" != 1; then
4647 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4648 fi
4649
4650 if test "$wxUSE_APPLE_IEEE" = yes; then
4651 echo "$as_me:$LINENO: result: yes" >&5
4652echo "${ECHO_T}yes" >&6
4653 else
4654 echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6
4656 fi
4657
4658
81f90336
MW
4659 enablestring=
4660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4661echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4662 no_cache=0
4663 # Check whether --enable-arcstream or --disable-arcstream was given.
4664if test "${enable_arcstream+set}" = set; then
4665 enableval="$enable_arcstream"
4666
4667 if test "$enableval" = yes; then
9e8e867f 4668 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4669 else
9e8e867f 4670 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4671 fi
4672
4673else
4674
9e8e867f 4675 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4676 if test "x$LINE" != x ; then
4677 eval "DEFAULT_$LINE"
4678 else
4679 no_cache=1
4680 fi
4681
9e8e867f 4682 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4683
4684fi;
4685
4686 eval "$ac_cv_use_arcstream"
4687 if test "$no_cache" != 1; then
4688 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4689 fi
4690
9e8e867f 4691 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4692 echo "$as_me:$LINENO: result: yes" >&5
4693echo "${ECHO_T}yes" >&6
4694 else
4695 echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6
4697 fi
4698
4699
a848cd7e 4700 enablestring=
36b6448c
VZ
4701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4702echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4703 no_cache=0
36b6448c
VZ
4704 # Check whether --enable-backtrace or --disable-backtrace was given.
4705if test "${enable_backtrace+set}" = set; then
4706 enableval="$enable_backtrace"
a848cd7e
SC
4707
4708 if test "$enableval" = yes; then
36b6448c 4709 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4710 else
36b6448c 4711 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4712 fi
4713
4714else
4715
36b6448c 4716 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4717 if test "x$LINE" != x ; then
4718 eval "DEFAULT_$LINE"
4719 else
4720 no_cache=1
4721 fi
4722
36b6448c 4723 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4724
4725fi;
4726
36b6448c 4727 eval "$ac_cv_use_backtrace"
a848cd7e 4728 if test "$no_cache" != 1; then
36b6448c 4729 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4730 fi
4731
36b6448c 4732 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4733 echo "$as_me:$LINENO: result: yes" >&5
4734echo "${ECHO_T}yes" >&6
4735 else
4736 echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6
4738 fi
4739
4740
eaff0f0d 4741 enablestring=
36b6448c
VZ
4742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4743echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4744 no_cache=0
36b6448c
VZ
4745 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4746if test "${enable_catch_segvs+set}" = set; then
4747 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4748
4749 if test "$enableval" = yes; then
36b6448c 4750 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4751 else
36b6448c 4752 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4753 fi
4754
4755else
4756
36b6448c 4757 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4758 if test "x$LINE" != x ; then
4759 eval "DEFAULT_$LINE"
4760 else
4761 no_cache=1
4762 fi
4763
36b6448c 4764 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4765
4766fi;
4767
36b6448c 4768 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4769 if test "$no_cache" != 1; then
36b6448c 4770 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4771 fi
4772
36b6448c 4773 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4774 echo "$as_me:$LINENO: result: yes" >&5
4775echo "${ECHO_T}yes" >&6
4776 else
4777 echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6
4779 fi
4780
4781
a848cd7e
SC
4782 enablestring=
4783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4784echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4785 no_cache=0
4786 # Check whether --enable-cmdline or --disable-cmdline was given.
4787if test "${enable_cmdline+set}" = set; then
4788 enableval="$enable_cmdline"
4789
4790 if test "$enableval" = yes; then
4791 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4792 else
4793 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4794 fi
4795
4796else
4797
4798 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4806
4807fi;
4808
4809 eval "$ac_cv_use_cmdline"
4810 if test "$no_cache" != 1; then
4811 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4812 fi
4813
4814 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4815 echo "$as_me:$LINENO: result: yes" >&5
4816echo "${ECHO_T}yes" >&6
4817 else
4818 echo "$as_me:$LINENO: result: no" >&5
4819echo "${ECHO_T}no" >&6
4820 fi
4821
4822
4823 enablestring=
4824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4825echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4826 no_cache=0
4827 # Check whether --enable-datetime or --disable-datetime was given.
4828if test "${enable_datetime+set}" = set; then
4829 enableval="$enable_datetime"
4830
4831 if test "$enableval" = yes; then
4832 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4833 else
4834 ac_cv_use_datetime='wxUSE_DATETIME=no'
4835 fi
4836
4837else
4838
4839 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4840 if test "x$LINE" != x ; then
4841 eval "DEFAULT_$LINE"
4842 else
4843 no_cache=1
4844 fi
4845
4846 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4847
4848fi;
4849
4850 eval "$ac_cv_use_datetime"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_DATETIME" = yes; then
4856 echo "$as_me:$LINENO: result: yes" >&5
4857echo "${ECHO_T}yes" >&6
4858 else
4859 echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6
4861 fi
4862
4863
36b6448c
VZ
4864 enablestring=
4865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4866echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4867 no_cache=0
4868 # Check whether --enable-debugreport or --disable-debugreport was given.
4869if test "${enable_debugreport+set}" = set; then
4870 enableval="$enable_debugreport"
4871
4872 if test "$enableval" = yes; then
4873 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4874 else
4875 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4876 fi
4877
4878else
4879
4880 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4881 if test "x$LINE" != x ; then
4882 eval "DEFAULT_$LINE"
4883 else
4884 no_cache=1
4885 fi
4886
4887 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4888
4889fi;
4890
4891 eval "$ac_cv_use_debugreport"
4892 if test "$no_cache" != 1; then
4893 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4894 fi
4895
4896 if test "$wxUSE_DEBUGREPORT" = yes; then
4897 echo "$as_me:$LINENO: result: yes" >&5
4898echo "${ECHO_T}yes" >&6
4899 else
4900 echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6
4902 fi
4903
4904
a848cd7e
SC
4905 enablestring=
4906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4907echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4908 no_cache=0
4909 # Check whether --enable-dialupman or --disable-dialupman was given.
4910if test "${enable_dialupman+set}" = set; then
4911 enableval="$enable_dialupman"
4912
4913 if test "$enableval" = yes; then
4914 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4915 else
4916 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4917 fi
4918
4919else
4920
4921 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4922 if test "x$LINE" != x ; then
4923 eval "DEFAULT_$LINE"
4924 else
4925 no_cache=1
4926 fi
4927
4928 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4929
4930fi;
4931
4932 eval "$ac_cv_use_dialupman"
4933 if test "$no_cache" != 1; then
4934 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4935 fi
4936
4937 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4938 echo "$as_me:$LINENO: result: yes" >&5
4939echo "${ECHO_T}yes" >&6
4940 else
4941 echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943 fi
4944
4945
4946 enablestring=
4947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4948echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4949 no_cache=0
4950 # Check whether --enable-dynlib or --disable-dynlib was given.
4951if test "${enable_dynlib+set}" = set; then
4952 enableval="$enable_dynlib"
4953
4954 if test "$enableval" = yes; then
4955 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4956 else
4957 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4958 fi
4959
4960else
4961
4962 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4963 if test "x$LINE" != x ; then
4964 eval "DEFAULT_$LINE"
4965 else
4966 no_cache=1
4967 fi
4968
4969 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4970
4971fi;
4972
4973 eval "$ac_cv_use_dynlib"
4974 if test "$no_cache" != 1; then
4975 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4976 fi
4977
4978 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4979 echo "$as_me:$LINENO: result: yes" >&5
4980echo "${ECHO_T}yes" >&6
4981 else
4982 echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6
4984 fi
4985
4986
4987 enablestring=
4988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4989echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4990 no_cache=0
4991 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4992if test "${enable_dynamicloader+set}" = set; then
4993 enableval="$enable_dynamicloader"
4994
4995 if test "$enableval" = yes; then
4996 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4997 else
4998 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4999 fi
5000
5001else
5002
5003 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5004 if test "x$LINE" != x ; then
5005 eval "DEFAULT_$LINE"
5006 else
5007 no_cache=1
5008 fi
5009
5010 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5011
5012fi;
5013
5014 eval "$ac_cv_use_dynamicloader"
5015 if test "$no_cache" != 1; then
5016 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5017 fi
5018
5019 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5020 echo "$as_me:$LINENO: result: yes" >&5
5021echo "${ECHO_T}yes" >&6
5022 else
5023 echo "$as_me:$LINENO: result: no" >&5
5024echo "${ECHO_T}no" >&6
5025 fi
5026
5027
5028 enablestring=
5029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5030echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5031 no_cache=0
5032 # Check whether --enable-exceptions or --disable-exceptions was given.
5033if test "${enable_exceptions+set}" = set; then
5034 enableval="$enable_exceptions"
5035
5036 if test "$enableval" = yes; then
5037 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5038 else
5039 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5040 fi
5041
5042else
5043
5044 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5045 if test "x$LINE" != x ; then
5046 eval "DEFAULT_$LINE"
5047 else
5048 no_cache=1
5049 fi
5050
5051 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5052
5053fi;
5054
5055 eval "$ac_cv_use_exceptions"
5056 if test "$no_cache" != 1; then
5057 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5058 fi
5059
5060 if test "$wxUSE_EXCEPTIONS" = yes; then
5061 echo "$as_me:$LINENO: result: yes" >&5
5062echo "${ECHO_T}yes" >&6
5063 else
5064 echo "$as_me:$LINENO: result: no" >&5
5065echo "${ECHO_T}no" >&6
5066 fi
5067
5068
5069 enablestring=
5070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5071echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5072 no_cache=0
5073 # Check whether --enable-ffile or --disable-ffile was given.
5074if test "${enable_ffile+set}" = set; then
5075 enableval="$enable_ffile"
5076
5077 if test "$enableval" = yes; then
5078 ac_cv_use_ffile='wxUSE_FFILE=yes'
5079 else
5080 ac_cv_use_ffile='wxUSE_FFILE=no'
5081 fi
5082
5083else
5084
5085 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5086 if test "x$LINE" != x ; then
5087 eval "DEFAULT_$LINE"
5088 else
5089 no_cache=1
5090 fi
5091
5092 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5093
5094fi;
5095
5096 eval "$ac_cv_use_ffile"
5097 if test "$no_cache" != 1; then
5098 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5099 fi
5100
5101 if test "$wxUSE_FFILE" = yes; then
5102 echo "$as_me:$LINENO: result: yes" >&5
5103echo "${ECHO_T}yes" >&6
5104 else
5105 echo "$as_me:$LINENO: result: no" >&5
5106echo "${ECHO_T}no" >&6
5107 fi
5108
5109
5110 enablestring=
5111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5112echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5113 no_cache=0
5114 # Check whether --enable-file or --disable-file was given.
5115if test "${enable_file+set}" = set; then
5116 enableval="$enable_file"
5117
5118 if test "$enableval" = yes; then
5119 ac_cv_use_file='wxUSE_FILE=yes'
5120 else
5121 ac_cv_use_file='wxUSE_FILE=no'
5122 fi
5123
5124else
5125
5126 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5127 if test "x$LINE" != x ; then
5128 eval "DEFAULT_$LINE"
5129 else
5130 no_cache=1
5131 fi
5132
5133 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5134
5135fi;
5136
5137 eval "$ac_cv_use_file"
5138 if test "$no_cache" != 1; then
5139 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5140 fi
5141
5142 if test "$wxUSE_FILE" = yes; then
5143 echo "$as_me:$LINENO: result: yes" >&5
5144echo "${ECHO_T}yes" >&6
5145 else
5146 echo "$as_me:$LINENO: result: no" >&5
5147echo "${ECHO_T}no" >&6
5148 fi
5149
5150
5151 enablestring=
5152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5153echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5154 no_cache=0
5155 # Check whether --enable-filesystem or --disable-filesystem was given.
5156if test "${enable_filesystem+set}" = set; then
5157 enableval="$enable_filesystem"
5158
5159 if test "$enableval" = yes; then
5160 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5161 else
5162 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5163 fi
5164
5165else
5166
5167 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5168 if test "x$LINE" != x ; then
5169 eval "DEFAULT_$LINE"
5170 else
5171 no_cache=1
5172 fi
5173
5174 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5175
5176fi;
5177
5178 eval "$ac_cv_use_filesystem"
5179 if test "$no_cache" != 1; then
5180 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5181 fi
5182
5183 if test "$wxUSE_FILESYSTEM" = yes; then
5184 echo "$as_me:$LINENO: result: yes" >&5
5185echo "${ECHO_T}yes" >&6
5186 else
5187 echo "$as_me:$LINENO: result: no" >&5
5188echo "${ECHO_T}no" >&6
5189 fi
5190
5191
5192 enablestring=
5193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5194echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5195 no_cache=0
5196 # Check whether --enable-fontmap or --disable-fontmap was given.
5197if test "${enable_fontmap+set}" = set; then
5198 enableval="$enable_fontmap"
5199
5200 if test "$enableval" = yes; then
5201 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5202 else
5203 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5204 fi
5205
5206else
5207
5208 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5209 if test "x$LINE" != x ; then
5210 eval "DEFAULT_$LINE"
5211 else
5212 no_cache=1
5213 fi
5214
5215 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5216
5217fi;
5218
5219 eval "$ac_cv_use_fontmap"
5220 if test "$no_cache" != 1; then
5221 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5222 fi
5223
5224 if test "$wxUSE_FONTMAP" = yes; then
5225 echo "$as_me:$LINENO: result: yes" >&5
5226echo "${ECHO_T}yes" >&6
5227 else
5228 echo "$as_me:$LINENO: result: no" >&5
5229echo "${ECHO_T}no" >&6
5230 fi
5231
5232
5233 enablestring=
5234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5235echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5236 no_cache=0
5237 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5238if test "${enable_fs_inet+set}" = set; then
5239 enableval="$enable_fs_inet"
5240
5241 if test "$enableval" = yes; then
5242 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5243 else
5244 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5245 fi
5246
5247else
5248
5249 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5250 if test "x$LINE" != x ; then
5251 eval "DEFAULT_$LINE"
5252 else
5253 no_cache=1
5254 fi
5255
5256 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5257
5258fi;
5259
5260 eval "$ac_cv_use_fs_inet"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_FS_INET" = yes; then
5266 echo "$as_me:$LINENO: result: yes" >&5
5267echo "${ECHO_T}yes" >&6
5268 else
5269 echo "$as_me:$LINENO: result: no" >&5
5270echo "${ECHO_T}no" >&6
5271 fi
5272
5273
5274 enablestring=
5275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5276echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5277 no_cache=0
5278 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5279if test "${enable_fs_zip+set}" = set; then
5280 enableval="$enable_fs_zip"
5281
5282 if test "$enableval" = yes; then
5283 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5284 else
5285 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5286 fi
5287
5288else
5289
5290 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5291 if test "x$LINE" != x ; then
5292 eval "DEFAULT_$LINE"
5293 else
5294 no_cache=1
5295 fi
5296
5297 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5298
5299fi;
5300
5301 eval "$ac_cv_use_fs_zip"
5302 if test "$no_cache" != 1; then
5303 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5304 fi
5305
5306 if test "$wxUSE_FS_ZIP" = yes; then
5307 echo "$as_me:$LINENO: result: yes" >&5
5308echo "${ECHO_T}yes" >&6
5309 else
5310 echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
5312 fi
5313
5314
5315 enablestring=
5316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5317echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5318 no_cache=0
5319 # Check whether --enable-geometry or --disable-geometry was given.
5320if test "${enable_geometry+set}" = set; then
5321 enableval="$enable_geometry"
5322
5323 if test "$enableval" = yes; then
5324 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5325 else
5326 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5327 fi
5328
5329else
5330
5331 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5332 if test "x$LINE" != x ; then
5333 eval "DEFAULT_$LINE"
5334 else
5335 no_cache=1
5336 fi
5337
5338 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5339
5340fi;
5341
5342 eval "$ac_cv_use_geometry"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_GEOMETRY" = yes; then
5348 echo "$as_me:$LINENO: result: yes" >&5
5349echo "${ECHO_T}yes" >&6
5350 else
5351 echo "$as_me:$LINENO: result: no" >&5
5352echo "${ECHO_T}no" >&6
5353 fi
5354
5355
5356 enablestring=
5357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5358echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5359 no_cache=0
5360 # Check whether --enable-log or --disable-log was given.
5361if test "${enable_log+set}" = set; then
5362 enableval="$enable_log"
5363
5364 if test "$enableval" = yes; then
5365 ac_cv_use_log='wxUSE_LOG=yes'
5366 else
5367 ac_cv_use_log='wxUSE_LOG=no'
5368 fi
5369
5370else
5371
5372 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5373 if test "x$LINE" != x ; then
5374 eval "DEFAULT_$LINE"
5375 else
5376 no_cache=1
5377 fi
5378
5379 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5380
5381fi;
5382
5383 eval "$ac_cv_use_log"
5384 if test "$no_cache" != 1; then
5385 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5386 fi
5387
5388 if test "$wxUSE_LOG" = yes; then
5389 echo "$as_me:$LINENO: result: yes" >&5
5390echo "${ECHO_T}yes" >&6
5391 else
5392 echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6
5394 fi
5395
5396
5397 enablestring=
5398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5399echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5400 no_cache=0
5401 # Check whether --enable-longlong or --disable-longlong was given.
5402if test "${enable_longlong+set}" = set; then
5403 enableval="$enable_longlong"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5407 else
5408 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5409 fi
5410
5411else
5412
5413 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5421
5422fi;
5423
5424 eval "$ac_cv_use_longlong"
5425 if test "$no_cache" != 1; then
5426 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5427 fi
5428
5429 if test "$wxUSE_LONGLONG" = yes; then
5430 echo "$as_me:$LINENO: result: yes" >&5
5431echo "${ECHO_T}yes" >&6
5432 else
5433 echo "$as_me:$LINENO: result: no" >&5
5434echo "${ECHO_T}no" >&6
5435 fi
5436
5437
5438 enablestring=
5439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5440echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5441 no_cache=0
5442 # Check whether --enable-mimetype or --disable-mimetype was given.
5443if test "${enable_mimetype+set}" = set; then
5444 enableval="$enable_mimetype"
5445
5446 if test "$enableval" = yes; then
5447 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5448 else
5449 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5450 fi
5451
5452else
5453
5454 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
5461 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5462
5463fi;
5464
5465 eval "$ac_cv_use_mimetype"
5466 if test "$no_cache" != 1; then
5467 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5468 fi
5469
5470 if test "$wxUSE_MIMETYPE" = yes; then
5471 echo "$as_me:$LINENO: result: yes" >&5
5472echo "${ECHO_T}yes" >&6
5473 else
5474 echo "$as_me:$LINENO: result: no" >&5
5475echo "${ECHO_T}no" >&6
5476 fi
5477
5478
5479 enablestring=
5480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5481echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5482 no_cache=0
5483 # Check whether --enable-mslu or --disable-mslu was given.
5484if test "${enable_mslu+set}" = set; then
5485 enableval="$enable_mslu"
5486
5487 if test "$enableval" = yes; then
5488 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5489 else
5490 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5491 fi
5492
5493else
5494
5495 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5496 if test "x$LINE" != x ; then
5497 eval "DEFAULT_$LINE"
5498 else
5499 no_cache=1
5500 fi
5501
5502 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5503
5504fi;
5505
5506 eval "$ac_cv_use_mslu"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_UNICODE_MSLU" = yes; then
5512 echo "$as_me:$LINENO: result: yes" >&5
5513echo "${ECHO_T}yes" >&6
5514 else
5515 echo "$as_me:$LINENO: result: no" >&5
5516echo "${ECHO_T}no" >&6
5517 fi
5518
5519
5520 enablestring=
5521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5522echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5523 no_cache=0
5524 # Check whether --enable-snglinst or --disable-snglinst was given.
5525if test "${enable_snglinst+set}" = set; then
5526 enableval="$enable_snglinst"
5527
5528 if test "$enableval" = yes; then
5529 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5530 else
5531 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5532 fi
5533
5534else
5535
5536 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5537 if test "x$LINE" != x ; then
5538 eval "DEFAULT_$LINE"
5539 else
5540 no_cache=1
5541 fi
5542
5543 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5544
5545fi;
5546
5547 eval "$ac_cv_use_snglinst"
5548 if test "$no_cache" != 1; then
5549 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5550 fi
5551
5552 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5553 echo "$as_me:$LINENO: result: yes" >&5
5554echo "${ECHO_T}yes" >&6
5555 else
5556 echo "$as_me:$LINENO: result: no" >&5
5557echo "${ECHO_T}no" >&6
5558 fi
5559
5560
5561 enablestring=
07158944
VZ
5562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5563echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5564 no_cache=0
07158944
VZ
5565 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5566if test "${enable_std_iostreams+set}" = set; then
5567 enableval="$enable_std_iostreams"
a848cd7e
SC
5568
5569 if test "$enableval" = yes; then
07158944 5570 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5571 else
07158944 5572 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5573 fi
5574
5575else
5576
07158944 5577 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5578 if test "x$LINE" != x ; then
5579 eval "DEFAULT_$LINE"
5580 else
5581 no_cache=1
5582 fi
5583
07158944 5584 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5585
5586fi;
5587
07158944 5588 eval "$ac_cv_use_std_iostreams"
a848cd7e 5589 if test "$no_cache" != 1; then
07158944 5590 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5591 fi
5592
07158944 5593 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5594 echo "$as_me:$LINENO: result: yes" >&5
5595echo "${ECHO_T}yes" >&6
5596 else
5597 echo "$as_me:$LINENO: result: no" >&5
5598echo "${ECHO_T}no" >&6
5599 fi
5600
5601
59746b65
MW
5602 enablestring=
5603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5604echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5605 no_cache=0
5606 # Check whether --enable-std_string or --disable-std_string was given.
5607if test "${enable_std_string+set}" = set; then
5608 enableval="$enable_std_string"
5609
5610 if test "$enableval" = yes; then
5611 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5612 else
5613 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5614 fi
5615
5616else
5617
5618 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5619 if test "x$LINE" != x ; then
5620 eval "DEFAULT_$LINE"
5621 else
5622 no_cache=1
5623 fi
5624
5625 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5626
5627fi;
5628
5629 eval "$ac_cv_use_std_string"
5630 if test "$no_cache" != 1; then
5631 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5632 fi
5633
5634 if test "$wxUSE_STD_STRING" = yes; then
5635 echo "$as_me:$LINENO: result: yes" >&5
5636echo "${ECHO_T}yes" >&6
5637 else
5638 echo "$as_me:$LINENO: result: no" >&5
5639echo "${ECHO_T}no" >&6
5640 fi
5641
5642
a848cd7e 5643 enablestring=
07158944
VZ
5644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5645echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5646 no_cache=0
07158944
VZ
5647 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5648if test "${enable_stdpaths+set}" = set; then
5649 enableval="$enable_stdpaths"
a848cd7e
SC
5650
5651 if test "$enableval" = yes; then
07158944 5652 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5653 else
07158944 5654 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5655 fi
5656
5657else
5658
07158944 5659 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5660 if test "x$LINE" != x ; then
5661 eval "DEFAULT_$LINE"
5662 else
5663 no_cache=1
5664 fi
5665
07158944 5666 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5667
5668fi;
5669
07158944 5670 eval "$ac_cv_use_stdpaths"
a848cd7e 5671 if test "$no_cache" != 1; then
07158944 5672 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5673 fi
5674
07158944 5675 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5676 echo "$as_me:$LINENO: result: yes" >&5
5677echo "${ECHO_T}yes" >&6
5678 else
5679 echo "$as_me:$LINENO: result: no" >&5
5680echo "${ECHO_T}no" >&6
5681 fi
5682
5683
5684 enablestring=
5685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5686echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5687 no_cache=0
5688 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5689if test "${enable_stopwatch+set}" = set; then
5690 enableval="$enable_stopwatch"
5691
5692 if test "$enableval" = yes; then
5693 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5694 else
5695 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5696 fi
5697
5698else
5699
5700 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5701 if test "x$LINE" != x ; then
5702 eval "DEFAULT_$LINE"
5703 else
5704 no_cache=1
5705 fi
5706
5707 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5708
5709fi;
5710
5711 eval "$ac_cv_use_stopwatch"
5712 if test "$no_cache" != 1; then
5713 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5714 fi
5715
5716 if test "$wxUSE_STOPWATCH" = yes; then
5717 echo "$as_me:$LINENO: result: yes" >&5
5718echo "${ECHO_T}yes" >&6
5719 else
5720 echo "$as_me:$LINENO: result: no" >&5
5721echo "${ECHO_T}no" >&6
5722 fi
5723
5724
07158944
VZ
5725 enablestring=
5726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5727echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5728 no_cache=0
5729 # Check whether --enable-streams or --disable-streams was given.
5730if test "${enable_streams+set}" = set; then
5731 enableval="$enable_streams"
5732
5733 if test "$enableval" = yes; then
5734 ac_cv_use_streams='wxUSE_STREAMS=yes'
5735 else
5736 ac_cv_use_streams='wxUSE_STREAMS=no'
5737 fi
5738
5739else
5740
5741 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
5748 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5749
5750fi;
5751
5752 eval "$ac_cv_use_streams"
5753 if test "$no_cache" != 1; then
5754 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5755 fi
5756
5757 if test "$wxUSE_STREAMS" = yes; then
5758 echo "$as_me:$LINENO: result: yes" >&5
5759echo "${ECHO_T}yes" >&6
5760 else
5761 echo "$as_me:$LINENO: result: no" >&5
5762echo "${ECHO_T}no" >&6
5763 fi
5764
5765
a848cd7e
SC
5766 enablestring=
5767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5768echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5769 no_cache=0
5770 # Check whether --enable-system_options or --disable-system_options was given.
5771if test "${enable_system_options+set}" = set; then
5772 enableval="$enable_system_options"
5773
5774 if test "$enableval" = yes; then
5775 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5776 else
5777 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5778 fi
5779
5780else
5781
5782 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5783 if test "x$LINE" != x ; then
5784 eval "DEFAULT_$LINE"
5785 else
5786 no_cache=1
5787 fi
5788
5789 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5790
5791fi;
5792
5793 eval "$ac_cv_use_system_options"
5794 if test "$no_cache" != 1; then
5795 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5796 fi
5797
5798 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5799 echo "$as_me:$LINENO: result: yes" >&5
5800echo "${ECHO_T}yes" >&6
5801 else
5802 echo "$as_me:$LINENO: result: no" >&5
5803echo "${ECHO_T}no" >&6
5804 fi
5805
5806
5807 enablestring=
5808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5809echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5810 no_cache=0
5811 # Check whether --enable-textbuf or --disable-textbuf was given.
5812if test "${enable_textbuf+set}" = set; then
5813 enableval="$enable_textbuf"
5814
5815 if test "$enableval" = yes; then
5816 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5817 else
5818 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5819 fi
5820
5821else
5822
5823 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5824 if test "x$LINE" != x ; then
5825 eval "DEFAULT_$LINE"
5826 else
5827 no_cache=1
5828 fi
5829
5830 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5831
5832fi;
5833
5834 eval "$ac_cv_use_textbuf"
5835 if test "$no_cache" != 1; then
5836 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5837 fi
5838
5839 if test "$wxUSE_TEXTBUFFER" = yes; then
5840 echo "$as_me:$LINENO: result: yes" >&5
5841echo "${ECHO_T}yes" >&6
5842 else
5843 echo "$as_me:$LINENO: result: no" >&5
5844echo "${ECHO_T}no" >&6
5845 fi
5846
5847
5848 enablestring=
5849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5850echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5851 no_cache=0
5852 # Check whether --enable-textfile or --disable-textfile was given.
5853if test "${enable_textfile+set}" = set; then
5854 enableval="$enable_textfile"
5855
5856 if test "$enableval" = yes; then
5857 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5858 else
5859 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5860 fi
5861
5862else
5863
5864 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5865 if test "x$LINE" != x ; then
5866 eval "DEFAULT_$LINE"
5867 else
5868 no_cache=1
5869 fi
5870
5871 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5872
5873fi;
5874
5875 eval "$ac_cv_use_textfile"
5876 if test "$no_cache" != 1; then
5877 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5878 fi
5879
5880 if test "$wxUSE_TEXTFILE" = yes; then
5881 echo "$as_me:$LINENO: result: yes" >&5
5882echo "${ECHO_T}yes" >&6
5883 else
5884 echo "$as_me:$LINENO: result: no" >&5
5885echo "${ECHO_T}no" >&6
5886 fi
5887
5888
5889 enablestring=
5890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5891echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5892 no_cache=0
5893 # Check whether --enable-timer or --disable-timer was given.
5894if test "${enable_timer+set}" = set; then
5895 enableval="$enable_timer"
5896
5897 if test "$enableval" = yes; then
5898 ac_cv_use_timer='wxUSE_TIMER=yes'
5899 else
5900 ac_cv_use_timer='wxUSE_TIMER=no'
5901 fi
5902
5903else
5904
5905 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5906 if test "x$LINE" != x ; then
5907 eval "DEFAULT_$LINE"
5908 else
5909 no_cache=1
5910 fi
5911
5912 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5913
5914fi;
5915
5916 eval "$ac_cv_use_timer"
5917 if test "$no_cache" != 1; then
5918 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5919 fi
5920
5921 if test "$wxUSE_TIMER" = yes; then
5922 echo "$as_me:$LINENO: result: yes" >&5
5923echo "${ECHO_T}yes" >&6
5924 else
5925 echo "$as_me:$LINENO: result: no" >&5
5926echo "${ECHO_T}no" >&6
5927 fi
5928
5929
5930 enablestring=
5931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5932echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5933 no_cache=0
5934 # Check whether --enable-unicode or --disable-unicode was given.
5935if test "${enable_unicode+set}" = set; then
5936 enableval="$enable_unicode"
5937
5938 if test "$enableval" = yes; then
5939 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5940 else
5941 ac_cv_use_unicode='wxUSE_UNICODE=no'
5942 fi
5943
5944else
5945
5946 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5947 if test "x$LINE" != x ; then
5948 eval "DEFAULT_$LINE"
5949 else
5950 no_cache=1
5951 fi
5952
5953 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5954
5955fi;
5956
5957 eval "$ac_cv_use_unicode"
5958 if test "$no_cache" != 1; then
5959 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5960 fi
5961
5962 if test "$wxUSE_UNICODE" = yes; then
5963 echo "$as_me:$LINENO: result: yes" >&5
5964echo "${ECHO_T}yes" >&6
5965 else
5966 echo "$as_me:$LINENO: result: no" >&5
5967echo "${ECHO_T}no" >&6
5968 fi
5969
5970
5971 enablestring=
5972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5973echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5974 no_cache=0
5975 # Check whether --enable-sound or --disable-sound was given.
5976if test "${enable_sound+set}" = set; then
5977 enableval="$enable_sound"
5978
5979 if test "$enableval" = yes; then
5980 ac_cv_use_sound='wxUSE_SOUND=yes'
5981 else
5982 ac_cv_use_sound='wxUSE_SOUND=no'
5983 fi
5984
5985else
5986
5987 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5988 if test "x$LINE" != x ; then
5989 eval "DEFAULT_$LINE"
5990 else
5991 no_cache=1
5992 fi
5993
5994 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5995
5996fi;
5997
5998 eval "$ac_cv_use_sound"
5999 if test "$no_cache" != 1; then
6000 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6001 fi
6002
6003 if test "$wxUSE_SOUND" = yes; then
6004 echo "$as_me:$LINENO: result: yes" >&5
6005echo "${ECHO_T}yes" >&6
6006 else
6007 echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6
6009 fi
6010
6011
3b57de8b
RL
6012 enablestring=
6013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6014echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6015 no_cache=0
6016 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6017if test "${enable_mediactrl+set}" = set; then
6018 enableval="$enable_mediactrl"
6019
6020 if test "$enableval" = yes; then
6021 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6022 else
6023 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6024 fi
6025
6026else
6027
6028 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6029 if test "x$LINE" != x ; then
6030 eval "DEFAULT_$LINE"
6031 else
6032 no_cache=1
6033 fi
6034
6035 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6036
6037fi;
6038
6039 eval "$ac_cv_use_mediactrl"
6040 if test "$no_cache" != 1; then
6041 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6042 fi
6043
6044 if test "$wxUSE_MEDIACTRL" = yes; then
6045 echo "$as_me:$LINENO: result: yes" >&5
6046echo "${ECHO_T}yes" >&6
6047 else
6048 echo "$as_me:$LINENO: result: no" >&5
6049echo "${ECHO_T}no" >&6
6050 fi
6051
6052
a848cd7e
SC
6053 enablestring=
6054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6055echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6056 no_cache=0
6057 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6058if test "${enable_wxprintfv+set}" = set; then
6059 enableval="$enable_wxprintfv"
6060
6061 if test "$enableval" = yes; then
6062 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6063 else
6064 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6065 fi
6066
6067else
6068
6069 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6070 if test "x$LINE" != x ; then
6071 eval "DEFAULT_$LINE"
6072 else
6073 no_cache=1
6074 fi
6075
6076 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6077
6078fi;
6079
6080 eval "$ac_cv_use_wxprintfv"
6081 if test "$no_cache" != 1; then
6082 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6083 fi
6084
6085 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6086 echo "$as_me:$LINENO: result: yes" >&5
6087echo "${ECHO_T}yes" >&6
6088 else
6089 echo "$as_me:$LINENO: result: no" >&5
6090echo "${ECHO_T}no" >&6
6091 fi
6092
6093
6094 enablestring=
6095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6096echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6097 no_cache=0
6098 # Check whether --enable-zipstream or --disable-zipstream was given.
6099if test "${enable_zipstream+set}" = set; then
6100 enableval="$enable_zipstream"
6101
6102 if test "$enableval" = yes; then
6103 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6104 else
6105 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6106 fi
6107
6108else
6109
6110 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6111 if test "x$LINE" != x ; then
6112 eval "DEFAULT_$LINE"
6113 else
6114 no_cache=1
6115 fi
6116
6117 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6118
6119fi;
6120
6121 eval "$ac_cv_use_zipstream"
6122 if test "$no_cache" != 1; then
6123 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6124 fi
6125
6126 if test "$wxUSE_ZIPSTREAM" = yes; then
6127 echo "$as_me:$LINENO: result: yes" >&5
6128echo "${ECHO_T}yes" >&6
6129 else
6130 echo "$as_me:$LINENO: result: no" >&5
6131echo "${ECHO_T}no" >&6
6132 fi
6133
6134
a848cd7e
SC
6135
6136 enablestring=
6137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6138echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6139 no_cache=0
6140 # Check whether --enable-url or --disable-url was given.
6141if test "${enable_url+set}" = set; then
6142 enableval="$enable_url"
6143
6144 if test "$enableval" = yes; then
6145 ac_cv_use_url='wxUSE_URL=yes'
6146 else
6147 ac_cv_use_url='wxUSE_URL=no'
6148 fi
6149
6150else
6151
6152 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6153 if test "x$LINE" != x ; then
6154 eval "DEFAULT_$LINE"
6155 else
6156 no_cache=1
6157 fi
6158
6159 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6160
6161fi;
6162
6163 eval "$ac_cv_use_url"
6164 if test "$no_cache" != 1; then
6165 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6166 fi
6167
6168 if test "$wxUSE_URL" = yes; then
6169 echo "$as_me:$LINENO: result: yes" >&5
6170echo "${ECHO_T}yes" >&6
6171 else
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
6174 fi
6175
6176
6177 enablestring=
6178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6179echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6180 no_cache=0
6181 # Check whether --enable-protocol or --disable-protocol was given.
6182if test "${enable_protocol+set}" = set; then
6183 enableval="$enable_protocol"
6184
6185 if test "$enableval" = yes; then
6186 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6187 else
6188 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6189 fi
6190
6191else
6192
6193 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6201
6202fi;
6203
6204 eval "$ac_cv_use_protocol"
6205 if test "$no_cache" != 1; then
6206 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6207 fi
6208
6209 if test "$wxUSE_PROTOCOL" = yes; then
6210 echo "$as_me:$LINENO: result: yes" >&5
6211echo "${ECHO_T}yes" >&6
6212 else
6213 echo "$as_me:$LINENO: result: no" >&5
6214echo "${ECHO_T}no" >&6
6215 fi
6216
6217
6218 enablestring=
6219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6220echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6221 no_cache=0
6222 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6223if test "${enable_protocol_http+set}" = set; then
6224 enableval="$enable_protocol_http"
6225
6226 if test "$enableval" = yes; then
6227 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6228 else
6229 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6230 fi
6231
6232else
6233
6234 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
6241 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6242
6243fi;
6244
6245 eval "$ac_cv_use_protocol_http"
6246 if test "$no_cache" != 1; then
6247 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6248 fi
6249
6250 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6251 echo "$as_me:$LINENO: result: yes" >&5
6252echo "${ECHO_T}yes" >&6
6253 else
6254 echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6
6256 fi
6257
6258
6259 enablestring=
6260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6261echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6262 no_cache=0
6263 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6264if test "${enable_protocol_ftp+set}" = set; then
6265 enableval="$enable_protocol_ftp"
6266
6267 if test "$enableval" = yes; then
6268 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6269 else
6270 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6271 fi
6272
6273else
6274
6275 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6283
6284fi;
6285
6286 eval "$ac_cv_use_protocol_ftp"
6287 if test "$no_cache" != 1; then
6288 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6289 fi
6290
6291 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6292 echo "$as_me:$LINENO: result: yes" >&5
6293echo "${ECHO_T}yes" >&6
6294 else
6295 echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6
6297 fi
6298
6299
6300 enablestring=
6301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6302echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6303 no_cache=0
6304 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6305if test "${enable_protocol_file+set}" = set; then
6306 enableval="$enable_protocol_file"
6307
6308 if test "$enableval" = yes; then
6309 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6310 else
6311 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6312 fi
6313
6314else
6315
6316 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6317 if test "x$LINE" != x ; then
6318 eval "DEFAULT_$LINE"
6319 else
6320 no_cache=1
6321 fi
6322
6323 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6324
6325fi;
6326
6327 eval "$ac_cv_use_protocol_file"
6328 if test "$no_cache" != 1; then
6329 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6330 fi
6331
6332 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6333 echo "$as_me:$LINENO: result: yes" >&5
6334echo "${ECHO_T}yes" >&6
6335 else
6336 echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6
6338 fi
6339
6340
6341
6342
6343
6344 enablestring=
6345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6346echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6347 no_cache=0
6348 # Check whether --enable-threads or --disable-threads was given.
6349if test "${enable_threads+set}" = set; then
6350 enableval="$enable_threads"
6351
6352 if test "$enableval" = yes; then
6353 ac_cv_use_threads='wxUSE_THREADS=yes'
6354 else
6355 ac_cv_use_threads='wxUSE_THREADS=no'
6356 fi
6357
6358else
6359
6360 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6361 if test "x$LINE" != x ; then
6362 eval "DEFAULT_$LINE"
6363 else
6364 no_cache=1
6365 fi
6366
6367 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6368
6369fi;
6370
6371 eval "$ac_cv_use_threads"
6372 if test "$no_cache" != 1; then
6373 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6374 fi
6375
6376 if test "$wxUSE_THREADS" = yes; then
6377 echo "$as_me:$LINENO: result: yes" >&5
6378echo "${ECHO_T}yes" >&6
6379 else
6380 echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6
6382 fi
6383
6384
6385if test "$wxUSE_GUI" = "yes"; then
6386
6387
6388
6389 enablestring=
6390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6391echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6392 no_cache=0
6393 # Check whether --enable-docview or --disable-docview was given.
6394if test "${enable_docview+set}" = set; then
6395 enableval="$enable_docview"
6396
6397 if test "$enableval" = yes; then
6398 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6399 else
6400 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6401 fi
6402
6403else
6404
6405 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6406 if test "x$LINE" != x ; then
6407 eval "DEFAULT_$LINE"
6408 else
6409 no_cache=1
6410 fi
6411
6412 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6413
6414fi;
6415
6416 eval "$ac_cv_use_docview"
6417 if test "$no_cache" != 1; then
6418 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6419 fi
6420
6421 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6422 echo "$as_me:$LINENO: result: yes" >&5
6423echo "${ECHO_T}yes" >&6
6424 else
6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
6427 fi
6428
6429
6430 enablestring=
6431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6432echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6433 no_cache=0
6434 # Check whether --enable-help or --disable-help was given.
6435if test "${enable_help+set}" = set; then
6436 enableval="$enable_help"
6437
6438 if test "$enableval" = yes; then
6439 ac_cv_use_help='wxUSE_HELP=yes'
6440 else
6441 ac_cv_use_help='wxUSE_HELP=no'
6442 fi
6443
6444else
6445
6446 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6447 if test "x$LINE" != x ; then
6448 eval "DEFAULT_$LINE"
6449 else
6450 no_cache=1
6451 fi
6452
6453 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6454
6455fi;
6456
6457 eval "$ac_cv_use_help"
6458 if test "$no_cache" != 1; then
6459 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6460 fi
6461
6462 if test "$wxUSE_HELP" = yes; then
6463 echo "$as_me:$LINENO: result: yes" >&5
6464echo "${ECHO_T}yes" >&6
6465 else
6466 echo "$as_me:$LINENO: result: no" >&5
6467echo "${ECHO_T}no" >&6
6468 fi
6469
6470
6471 enablestring=
6472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6473echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6474 no_cache=0
6475 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6476if test "${enable_mshtmlhelp+set}" = set; then
6477 enableval="$enable_mshtmlhelp"
6478
6479 if test "$enableval" = yes; then
6480 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6481 else
6482 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6483 fi
6484
6485else
6486
6487 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6488 if test "x$LINE" != x ; then
6489 eval "DEFAULT_$LINE"
6490 else
6491 no_cache=1
6492 fi
6493
6494 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6495
6496fi;
6497
6498 eval "$ac_cv_use_mshtmlhelp"
6499 if test "$no_cache" != 1; then
6500 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6501 fi
6502
6503 if test "$wxUSE_MS_HTML_HELP" = yes; then
6504 echo "$as_me:$LINENO: result: yes" >&5
6505echo "${ECHO_T}yes" >&6
6506 else
6507 echo "$as_me:$LINENO: result: no" >&5
6508echo "${ECHO_T}no" >&6
6509 fi
6510
6511
6512 enablestring=
6513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6514echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6515 no_cache=0
6516 # Check whether --enable-html or --disable-html was given.
6517if test "${enable_html+set}" = set; then
6518 enableval="$enable_html"
6519
6520 if test "$enableval" = yes; then
6521 ac_cv_use_html='wxUSE_HTML=yes'
6522 else
6523 ac_cv_use_html='wxUSE_HTML=no'
6524 fi
6525
6526else
6527
6528 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6529 if test "x$LINE" != x ; then
6530 eval "DEFAULT_$LINE"
6531 else
6532 no_cache=1
6533 fi
6534
6535 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6536
6537fi;
6538
6539 eval "$ac_cv_use_html"
6540 if test "$no_cache" != 1; then
6541 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6542 fi
6543
6544 if test "$wxUSE_HTML" = yes; then
6545 echo "$as_me:$LINENO: result: yes" >&5
6546echo "${ECHO_T}yes" >&6
6547 else
6548 echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6
6550 fi
6551
6552
6553 enablestring=
6554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6555echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6556 no_cache=0
6557 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6558if test "${enable_htmlhelp+set}" = set; then
6559 enableval="$enable_htmlhelp"
6560
6561 if test "$enableval" = yes; then
6562 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6563 else
6564 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6565 fi
6566
6567else
6568
6569 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6570 if test "x$LINE" != x ; then
6571 eval "DEFAULT_$LINE"
6572 else
6573 no_cache=1
6574 fi
6575
6576 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6577
6578fi;
6579
6580 eval "$ac_cv_use_htmlhelp"
6581 if test "$no_cache" != 1; then
6582 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6583 fi
6584
6585 if test "$wxUSE_WXHTML_HELP" = yes; then
6586 echo "$as_me:$LINENO: result: yes" >&5
6587echo "${ECHO_T}yes" >&6
6588 else
6589 echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6
6591 fi
6592
6593
9a8f0513
VS
6594 enablestring=
6595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6596echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6597 no_cache=0
6598 # Check whether --enable-xrc or --disable-xrc was given.
6599if test "${enable_xrc+set}" = set; then
6600 enableval="$enable_xrc"
6601
6602 if test "$enableval" = yes; then
6603 ac_cv_use_xrc='wxUSE_XRC=yes'
6604 else
6605 ac_cv_use_xrc='wxUSE_XRC=no'
6606 fi
6607
6608else
6609
6610 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6611 if test "x$LINE" != x ; then
6612 eval "DEFAULT_$LINE"
6613 else
6614 no_cache=1
6615 fi
6616
6617 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6618
6619fi;
6620
6621 eval "$ac_cv_use_xrc"
6622 if test "$no_cache" != 1; then
6623 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6624 fi
6625
6626 if test "$wxUSE_XRC" = yes; then
6627 echo "$as_me:$LINENO: result: yes" >&5
6628echo "${ECHO_T}yes" >&6
6629 else
6630 echo "$as_me:$LINENO: result: no" >&5
6631echo "${ECHO_T}no" >&6
6632 fi
6633
6634
a848cd7e
SC
6635 enablestring=
6636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6637echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6638 no_cache=0
6639 # Check whether --enable-constraints or --disable-constraints was given.
6640if test "${enable_constraints+set}" = set; then
6641 enableval="$enable_constraints"
6642
6643 if test "$enableval" = yes; then
6644 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6645 else
6646 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6647 fi
6648
6649else
6650
6651 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6652 if test "x$LINE" != x ; then
6653 eval "DEFAULT_$LINE"
6654 else
6655 no_cache=1
6656 fi
6657
6658 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6659
6660fi;
6661
6662 eval "$ac_cv_use_constraints"
6663 if test "$no_cache" != 1; then
6664 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6665 fi
6666
6667 if test "$wxUSE_CONSTRAINTS" = yes; then
6668 echo "$as_me:$LINENO: result: yes" >&5
6669echo "${ECHO_T}yes" >&6
6670 else
6671 echo "$as_me:$LINENO: result: no" >&5
6672echo "${ECHO_T}no" >&6
6673 fi
6674
6675
6676 enablestring=
6677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6678echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6679 no_cache=0
6680 # Check whether --enable-printarch or --disable-printarch was given.
6681if test "${enable_printarch+set}" = set; then
6682 enableval="$enable_printarch"
6683
6684 if test "$enableval" = yes; then
6685 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6686 else
6687 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6688 fi
6689
6690else
6691
6692 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6693 if test "x$LINE" != x ; then
6694 eval "DEFAULT_$LINE"
6695 else
6696 no_cache=1
6697 fi
6698
6699 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6700
6701fi;
6702
6703 eval "$ac_cv_use_printarch"
6704 if test "$no_cache" != 1; then
6705 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6706 fi
6707
6708 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6709 echo "$as_me:$LINENO: result: yes" >&5
6710echo "${ECHO_T}yes" >&6
6711 else
6712 echo "$as_me:$LINENO: result: no" >&5
6713echo "${ECHO_T}no" >&6
6714 fi
6715
6716
6717 enablestring=
6718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6719echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6720 no_cache=0
6721 # Check whether --enable-mdi or --disable-mdi was given.
6722if test "${enable_mdi+set}" = set; then
6723 enableval="$enable_mdi"
6724
6725 if test "$enableval" = yes; then
8a7b1113 6726 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6727 else
8a7b1113 6728 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6729 fi
6730
6731else
6732
8a7b1113 6733 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6734 if test "x$LINE" != x ; then
6735 eval "DEFAULT_$LINE"
6736 else
6737 no_cache=1
6738 fi
6739
8a7b1113 6740 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6741
6742fi;
6743
6744 eval "$ac_cv_use_mdi"
6745 if test "$no_cache" != 1; then
6746 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6747 fi
6748
8a7b1113
VZ
6749 if test "$wxUSE_MDI" = yes; then
6750 echo "$as_me:$LINENO: result: yes" >&5
6751echo "${ECHO_T}yes" >&6
6752 else
6753 echo "$as_me:$LINENO: result: no" >&5
6754echo "${ECHO_T}no" >&6
6755 fi
6756
6757
6758 enablestring=
6759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6760echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6761 no_cache=0
6762 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6763if test "${enable_mdidoc+set}" = set; then
6764 enableval="$enable_mdidoc"
6765
6766 if test "$enableval" = yes; then
6767 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6768 else
6769 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6770 fi
6771
6772else
6773
6774 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6775 if test "x$LINE" != x ; then
6776 eval "DEFAULT_$LINE"
6777 else
6778 no_cache=1
6779 fi
6780
6781 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6782
6783fi;
6784
6785 eval "$ac_cv_use_mdidoc"
6786 if test "$no_cache" != 1; then
6787 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6788 fi
6789
a848cd7e
SC
6790 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6791 echo "$as_me:$LINENO: result: yes" >&5
6792echo "${ECHO_T}yes" >&6
6793 else
6794 echo "$as_me:$LINENO: result: no" >&5
6795echo "${ECHO_T}no" >&6
6796 fi
6797
6798
6799 enablestring=
6800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6801echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6802 no_cache=0
6803 # Check whether --enable-loggui or --disable-loggui was given.
6804if test "${enable_loggui+set}" = set; then
6805 enableval="$enable_loggui"
6806
6807 if test "$enableval" = yes; then
6808 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6809 else
6810 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6811 fi
6812
6813else
6814
6815 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6816 if test "x$LINE" != x ; then
6817 eval "DEFAULT_$LINE"
6818 else
6819 no_cache=1
6820 fi
6821
6822 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6823
6824fi;
6825
6826 eval "$ac_cv_use_loggui"
6827 if test "$no_cache" != 1; then
6828 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6829 fi
6830
6831 if test "$wxUSE_LOGGUI" = yes; then
6832 echo "$as_me:$LINENO: result: yes" >&5
6833echo "${ECHO_T}yes" >&6
6834 else
6835 echo "$as_me:$LINENO: result: no" >&5
6836echo "${ECHO_T}no" >&6
6837 fi
6838
6839
6840 enablestring=
6841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6842echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6843 no_cache=0
6844 # Check whether --enable-logwin or --disable-logwin was given.
6845if test "${enable_logwin+set}" = set; then
6846 enableval="$enable_logwin"
6847
6848 if test "$enableval" = yes; then
6849 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6850 else
6851 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6852 fi
6853
6854else
6855
6856 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6857 if test "x$LINE" != x ; then
6858 eval "DEFAULT_$LINE"
6859 else
6860 no_cache=1
6861 fi
6862
6863 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6864
6865fi;
6866
6867 eval "$ac_cv_use_logwin"
6868 if test "$no_cache" != 1; then
6869 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6870 fi
6871
6872 if test "$wxUSE_LOGWINDOW" = yes; then
6873 echo "$as_me:$LINENO: result: yes" >&5
6874echo "${ECHO_T}yes" >&6
6875 else
6876 echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6
6878 fi
6879
6880
6881 enablestring=
6882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6883echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6884 no_cache=0
6885 # Check whether --enable-logdialog or --disable-logdialog was given.
6886if test "${enable_logdialog+set}" = set; then
6887 enableval="$enable_logdialog"
6888
6889 if test "$enableval" = yes; then
6890 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6891 else
6892 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6893 fi
6894
6895else
6896
6897 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6898 if test "x$LINE" != x ; then
6899 eval "DEFAULT_$LINE"
6900 else
6901 no_cache=1
6902 fi
6903
6904 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6905
6906fi;
6907
6908 eval "$ac_cv_use_logdialog"
6909 if test "$no_cache" != 1; then
6910 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6911 fi
6912
6913 if test "$wxUSE_LOGDIALOG" = yes; then
6914 echo "$as_me:$LINENO: result: yes" >&5
6915echo "${ECHO_T}yes" >&6
6916 else
6917 echo "$as_me:$LINENO: result: no" >&5
6918echo "${ECHO_T}no" >&6
6919 fi
6920
6921
646b6ec1
VS
6922 enablestring=
6923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6924echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6925 no_cache=0
6926 # Check whether --enable-webkit or --disable-webkit was given.
6927if test "${enable_webkit+set}" = set; then
6928 enableval="$enable_webkit"
6929
6930 if test "$enableval" = yes; then
6931 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6932 else
6933 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6934 fi
6935
6936else
6937
6938 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6939 if test "x$LINE" != x ; then
6940 eval "DEFAULT_$LINE"
6941 else
6942 no_cache=1
6943 fi
6944
6945 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6946
6947fi;
6948
6949 eval "$ac_cv_use_webkit"
6950 if test "$no_cache" != 1; then
6951 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6952 fi
6953
6954 if test "$wxUSE_WEBKIT" = yes; then
6955 echo "$as_me:$LINENO: result: yes" >&5
6956echo "${ECHO_T}yes" >&6
6957 else
6958 echo "$as_me:$LINENO: result: no" >&5
6959echo "${ECHO_T}no" >&6
6960 fi
6961
6962
a848cd7e
SC
6963
6964 enablestring=
6965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6966echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6967 no_cache=0
6968 # Check whether --enable-postscript or --disable-postscript was given.
6969if test "${enable_postscript+set}" = set; then
6970 enableval="$enable_postscript"
6971
6972 if test "$enableval" = yes; then
6973 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6974 else
6975 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6976 fi
6977
6978else
6979
6980 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6981 if test "x$LINE" != x ; then
6982 eval "DEFAULT_$LINE"
6983 else
6984 no_cache=1
6985 fi
6986
6987 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6988
6989fi;
6990
6991 eval "$ac_cv_use_postscript"
6992 if test "$no_cache" != 1; then
6993 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6994 fi
6995
6996 if test "$wxUSE_POSTSCRIPT" = yes; then
6997 echo "$as_me:$LINENO: result: yes" >&5
6998echo "${ECHO_T}yes" >&6
6999 else
7000 echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6
7002 fi
7003
7004
7005
7006
7007
7008 enablestring=
7009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7010echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7011 no_cache=0
7012 # Check whether --enable-prologio or --disable-prologio was given.
7013if test "${enable_prologio+set}" = set; then
7014 enableval="$enable_prologio"
7015
7016 if test "$enableval" = yes; then
7017 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7018 else
7019 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7020 fi
7021
7022else
7023
7024 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7032
7033fi;
7034
7035 eval "$ac_cv_use_prologio"
7036 if test "$no_cache" != 1; then
7037 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7038 fi
7039
7040 if test "$wxUSE_PROLOGIO" = yes; then
7041 echo "$as_me:$LINENO: result: yes" >&5
7042echo "${ECHO_T}yes" >&6
7043 else
7044 echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6
7046 fi
7047
7048
7049 enablestring=
7050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7051echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7052 no_cache=0
7053 # Check whether --enable-resources or --disable-resources was given.
7054if test "${enable_resources+set}" = set; then
7055 enableval="$enable_resources"
7056
7057 if test "$enableval" = yes; then
7058 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7059 else
7060 ac_cv_use_resources='wxUSE_RESOURCES=no'
7061 fi
7062
7063else
7064
7065 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7066 if test "x$LINE" != x ; then
7067 eval "DEFAULT_$LINE"
7068 else
7069 no_cache=1
7070 fi
7071
7072 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7073
7074fi;
7075
7076 eval "$ac_cv_use_resources"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_RESOURCES" = yes; then
7082 echo "$as_me:$LINENO: result: yes" >&5
7083echo "${ECHO_T}yes" >&6
7084 else
7085 echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6
7087 fi
7088
7089
7090
7091
7092 enablestring=
7093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7094echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7095 no_cache=0
7096 # Check whether --enable-clipboard or --disable-clipboard was given.
7097if test "${enable_clipboard+set}" = set; then
7098 enableval="$enable_clipboard"
7099
7100 if test "$enableval" = yes; then
7101 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7102 else
7103 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7104 fi
7105
7106else
7107
7108 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7109 if test "x$LINE" != x ; then
7110 eval "DEFAULT_$LINE"
7111 else
7112 no_cache=1
7113 fi
7114
7115 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7116
7117fi;
7118
7119 eval "$ac_cv_use_clipboard"
7120 if test "$no_cache" != 1; then
7121 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7122 fi
7123
7124 if test "$wxUSE_CLIPBOARD" = yes; then
7125 echo "$as_me:$LINENO: result: yes" >&5
7126echo "${ECHO_T}yes" >&6
7127 else
7128 echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6
7130 fi
7131
7132
7133 enablestring=
7134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7135echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7136 no_cache=0
7137 # Check whether --enable-dnd or --disable-dnd was given.
7138if test "${enable_dnd+set}" = set; then
7139 enableval="$enable_dnd"
7140
7141 if test "$enableval" = yes; then
7142 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7143 else
7144 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7145 fi
7146
7147else
7148
7149 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7150 if test "x$LINE" != x ; then
7151 eval "DEFAULT_$LINE"
7152 else
7153 no_cache=1
7154 fi
7155
7156 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7157
7158fi;
7159
7160 eval "$ac_cv_use_dnd"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7166 echo "$as_me:$LINENO: result: yes" >&5
7167echo "${ECHO_T}yes" >&6
7168 else
7169 echo "$as_me:$LINENO: result: no" >&5
7170echo "${ECHO_T}no" >&6
7171 fi
7172
7173
7174 enablestring=
7175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7176echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7177 no_cache=0
7178 # Check whether --enable-metafile or --disable-metafile was given.
7179if test "${enable_metafile+set}" = set; then
7180 enableval="$enable_metafile"
7181
7182 if test "$enableval" = yes; then
7183 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7184 else
7185 ac_cv_use_metafile='wxUSE_METAFILE=no'
7186 fi
7187
7188else
7189
7190 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7191 if test "x$LINE" != x ; then
7192 eval "DEFAULT_$LINE"
7193 else
7194 no_cache=1
7195 fi
7196
7197 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7198
7199fi;
7200
7201 eval "$ac_cv_use_metafile"
7202 if test "$no_cache" != 1; then
7203 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7204 fi
7205
7206 if test "$wxUSE_METAFILE" = yes; then
7207 echo "$as_me:$LINENO: result: yes" >&5
7208echo "${ECHO_T}yes" >&6
7209 else
7210 echo "$as_me:$LINENO: result: no" >&5
7211echo "${ECHO_T}no" >&6
7212 fi
7213
7214
7215
7216
7217
7218 enablestring=
7219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7220echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7221 no_cache=0
7222 # Check whether --enable-controls or --disable-controls was given.
7223if test "${enable_controls+set}" = set; then
7224 enableval="$enable_controls"
7225
7226 if test "$enableval" = yes; then
7227 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7228 else
7229 ac_cv_use_controls='wxUSE_CONTROLS=no'
7230 fi
7231
7232else
7233
7234 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7235 if test "x$LINE" != x ; then
7236 eval "DEFAULT_$LINE"
7237 else
7238 no_cache=1
7239 fi
7240
7241 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7242
7243fi;
7244
7245 eval "$ac_cv_use_controls"
7246 if test "$no_cache" != 1; then
7247 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7248 fi
7249
7250 if test "$wxUSE_CONTROLS" = yes; then
7251 echo "$as_me:$LINENO: result: yes" >&5
7252echo "${ECHO_T}yes" >&6
7253 else
7254 echo "$as_me:$LINENO: result: no" >&5
7255echo "${ECHO_T}no" >&6
7256 fi
7257
7258
7259if test "$wxUSE_CONTROLS" = "yes"; then
7260 DEFAULT_wxUSE_ACCEL=yes
7261 DEFAULT_wxUSE_BMPBUTTON=yes
7262 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7263 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7264 DEFAULT_wxUSE_CARET=yes
7265 DEFAULT_wxUSE_COMBOBOX=yes
7266 DEFAULT_wxUSE_CHECKBOX=yes
7267 DEFAULT_wxUSE_CHECKLISTBOX=yes
7268 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7269 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7270 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7271 DEFAULT_wxUSE_GAUGE=yes
7272 DEFAULT_wxUSE_GRID=yes
7273 DEFAULT_wxUSE_IMAGLIST=yes
7274 DEFAULT_wxUSE_LISTBOOK=yes
7275 DEFAULT_wxUSE_LISTBOX=yes
7276 DEFAULT_wxUSE_LISTCTRL=yes
7277 DEFAULT_wxUSE_NOTEBOOK=yes
7278 DEFAULT_wxUSE_RADIOBOX=yes
7279 DEFAULT_wxUSE_RADIOBTN=yes
7280 DEFAULT_wxUSE_SASH=yes
7281 DEFAULT_wxUSE_SCROLLBAR=yes
7282 DEFAULT_wxUSE_SLIDER=yes
7283 DEFAULT_wxUSE_SPINBTN=yes
7284 DEFAULT_wxUSE_SPINCTRL=yes
7285 DEFAULT_wxUSE_SPLITTER=yes
7286 DEFAULT_wxUSE_STATBMP=yes
7287 DEFAULT_wxUSE_STATBOX=yes
7288 DEFAULT_wxUSE_STATLINE=yes
7289 DEFAULT_wxUSE_STATUSBAR=yes
7290 DEFAULT_wxUSE_TAB_DIALOG=yes
7291 DEFAULT_wxUSE_TOGGLEBTN=yes
7292 DEFAULT_wxUSE_TOOLBAR=yes
7293 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7294 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7295 DEFAULT_wxUSE_TOOLTIPS=yes
7296 DEFAULT_wxUSE_TREECTRL=yes
7297 DEFAULT_wxUSE_POPUPWIN=yes
7298 DEFAULT_wxUSE_TIPWINDOW=yes
7299elif test "$wxUSE_CONTROLS" = "no"; then
7300 DEFAULT_wxUSE_ACCEL=no
7301 DEFAULT_wxUSE_BMPBUTTON=no
7302 DEFAULT_wxUSE_BUTTON=no
7303 DEFAULT_wxUSE_CALCTRL=no
7304 DEFAULT_wxUSE_CARET=no
7305 DEFAULT_wxUSE_COMBOBOX=no
7306 DEFAULT_wxUSE_CHECKBOX=no
7307 DEFAULT_wxUSE_CHECKLISTBOX=no
7308 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7309 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7310 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7311 DEFAULT_wxUSE_GAUGE=no
7312 DEFAULT_wxUSE_GRID=no
7313 DEFAULT_wxUSE_IMAGLIST=no
7314 DEFAULT_wxUSE_LISTBOOK=no
7315 DEFAULT_wxUSE_LISTBOX=no
7316 DEFAULT_wxUSE_LISTCTRL=no
7317 DEFAULT_wxUSE_NOTEBOOK=no
7318 DEFAULT_wxUSE_RADIOBOX=no
7319 DEFAULT_wxUSE_RADIOBTN=no
7320 DEFAULT_wxUSE_SASH=no
7321 DEFAULT_wxUSE_SCROLLBAR=no
7322 DEFAULT_wxUSE_SLIDER=no
7323 DEFAULT_wxUSE_SPINBTN=no
7324 DEFAULT_wxUSE_SPINCTRL=no
7325 DEFAULT_wxUSE_SPLITTER=no
7326 DEFAULT_wxUSE_STATBMP=no
7327 DEFAULT_wxUSE_STATBOX=no
7328 DEFAULT_wxUSE_STATLINE=no
7329 DEFAULT_wxUSE_STATUSBAR=no
7330 DEFAULT_wxUSE_TAB_DIALOG=no
7331 DEFAULT_wxUSE_TOGGLEBTN=no
7332 DEFAULT_wxUSE_TOOLBAR=no
7333 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7334 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7335 DEFAULT_wxUSE_TOOLTIPS=no
7336 DEFAULT_wxUSE_TREECTRL=no
7337 DEFAULT_wxUSE_POPUPWIN=no
7338 DEFAULT_wxUSE_TIPWINDOW=no
7339fi
7340
a848cd7e
SC
7341
7342 enablestring=
7343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7344echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7345 no_cache=0
7346 # Check whether --enable-accel or --disable-accel was given.
7347if test "${enable_accel+set}" = set; then
7348 enableval="$enable_accel"
7349
7350 if test "$enableval" = yes; then
7351 ac_cv_use_accel='wxUSE_ACCEL=yes'
7352 else
7353 ac_cv_use_accel='wxUSE_ACCEL=no'
7354 fi
7355
7356else
7357
7358 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7359 if test "x$LINE" != x ; then
7360 eval "DEFAULT_$LINE"
7361 else
7362 no_cache=1
7363 fi
7364
7365 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7366
7367fi;
7368
7369 eval "$ac_cv_use_accel"
7370 if test "$no_cache" != 1; then
7371 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7372 fi
7373
7374 if test "$wxUSE_ACCEL" = yes; then
7375 echo "$as_me:$LINENO: result: yes" >&5
7376echo "${ECHO_T}yes" >&6
7377 else
7378 echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6
7380 fi
7381
7382
7383 enablestring=
7384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7385echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7386 no_cache=0
7387 # Check whether --enable-button or --disable-button was given.
7388if test "${enable_button+set}" = set; then
7389 enableval="$enable_button"
7390
7391 if test "$enableval" = yes; then
7392 ac_cv_use_button='wxUSE_BUTTON=yes'
7393 else
7394 ac_cv_use_button='wxUSE_BUTTON=no'
7395 fi
7396
7397else
7398
7399 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7400 if test "x$LINE" != x ; then
7401 eval "DEFAULT_$LINE"
7402 else
7403 no_cache=1
7404 fi
7405
7406 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7407
7408fi;
7409
7410 eval "$ac_cv_use_button"
7411 if test "$no_cache" != 1; then
7412 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7413 fi
7414
7415 if test "$wxUSE_BUTTON" = yes; then
7416 echo "$as_me:$LINENO: result: yes" >&5
7417echo "${ECHO_T}yes" >&6
7418 else
7419 echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
7421 fi
7422
7423
7424 enablestring=
7425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7426echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7427 no_cache=0
7428 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7429if test "${enable_bmpbutton+set}" = set; then
7430 enableval="$enable_bmpbutton"
7431
7432 if test "$enableval" = yes; then
7433 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7434 else
7435 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7436 fi
7437
7438else
7439
7440 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7441 if test "x$LINE" != x ; then
7442 eval "DEFAULT_$LINE"
7443 else
7444 no_cache=1
7445 fi
7446
7447 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7448
7449fi;
7450
7451 eval "$ac_cv_use_bmpbutton"
7452 if test "$no_cache" != 1; then
7453 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7454 fi
7455
7456 if test "$wxUSE_BMPBUTTON" = yes; then
7457 echo "$as_me:$LINENO: result: yes" >&5
7458echo "${ECHO_T}yes" >&6
7459 else
7460 echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6
7462 fi
7463
7464
7465 enablestring=
7466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7467echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7468 no_cache=0
7469 # Check whether --enable-calendar or --disable-calendar was given.
7470if test "${enable_calendar+set}" = set; then
7471 enableval="$enable_calendar"
7472
7473 if test "$enableval" = yes; then
7474 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7475 else
7476 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7477 fi
7478
7479else
7480
7481 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7482 if test "x$LINE" != x ; then
7483 eval "DEFAULT_$LINE"
7484 else
7485 no_cache=1
7486 fi
7487
7488 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7489
7490fi;
7491
7492 eval "$ac_cv_use_calendar"
7493 if test "$no_cache" != 1; then
7494 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7495 fi
7496
7497 if test "$wxUSE_CALCTRL" = yes; then
7498 echo "$as_me:$LINENO: result: yes" >&5
7499echo "${ECHO_T}yes" >&6
7500 else
7501 echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6
7503 fi
7504
7505
7506 enablestring=
7507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7508echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7509 no_cache=0
7510 # Check whether --enable-caret or --disable-caret was given.
7511if test "${enable_caret+set}" = set; then
7512 enableval="$enable_caret"
7513
7514 if test "$enableval" = yes; then
7515 ac_cv_use_caret='wxUSE_CARET=yes'
7516 else
7517 ac_cv_use_caret='wxUSE_CARET=no'
7518 fi
7519
7520else
7521
7522 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7523 if test "x$LINE" != x ; then
7524 eval "DEFAULT_$LINE"
7525 else
7526 no_cache=1
7527 fi
7528
7529 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7530
7531fi;
7532
7533 eval "$ac_cv_use_caret"
7534 if test "$no_cache" != 1; then
7535 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7536 fi
7537
7538 if test "$wxUSE_CARET" = yes; then
7539 echo "$as_me:$LINENO: result: yes" >&5
7540echo "${ECHO_T}yes" >&6
7541 else
7542 echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6
7544 fi
7545
7546
7547 enablestring=
7548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7549echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7550 no_cache=0
7551 # Check whether --enable-checkbox or --disable-checkbox was given.
7552if test "${enable_checkbox+set}" = set; then
7553 enableval="$enable_checkbox"
7554
7555 if test "$enableval" = yes; then
7556 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7557 else
7558 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7559 fi
7560
7561else
7562
7563 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7564 if test "x$LINE" != x ; then
7565 eval "DEFAULT_$LINE"
7566 else
7567 no_cache=1
7568 fi
7569
7570 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7571
7572fi;
7573
7574 eval "$ac_cv_use_checkbox"
7575 if test "$no_cache" != 1; then
7576 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7577 fi
7578
7579 if test "$wxUSE_CHECKBOX" = yes; then
7580 echo "$as_me:$LINENO: result: yes" >&5
7581echo "${ECHO_T}yes" >&6
7582 else
7583 echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6
7585 fi
7586
7587
7588 enablestring=
7589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7590echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7591 no_cache=0
7592 # Check whether --enable-checklst or --disable-checklst was given.
7593if test "${enable_checklst+set}" = set; then
7594 enableval="$enable_checklst"
7595
7596 if test "$enableval" = yes; then
7597 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7598 else
7599 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7600 fi
7601
7602else
7603
7604 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7605 if test "x$LINE" != x ; then
7606 eval "DEFAULT_$LINE"
7607 else
7608 no_cache=1
7609 fi
7610
7611 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7612
7613fi;
7614
7615 eval "$ac_cv_use_checklst"
7616 if test "$no_cache" != 1; then
7617 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7618 fi
7619
7620 if test "$wxUSE_CHECKLST" = yes; then
7621 echo "$as_me:$LINENO: result: yes" >&5
7622echo "${ECHO_T}yes" >&6
7623 else
7624 echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6
7626 fi
7627
7628
7629 enablestring=
7630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7631echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7632 no_cache=0
7633 # Check whether --enable-choice or --disable-choice was given.
7634if test "${enable_choice+set}" = set; then
7635 enableval="$enable_choice"
7636
7637 if test "$enableval" = yes; then
7638 ac_cv_use_choice='wxUSE_CHOICE=yes'
7639 else
7640 ac_cv_use_choice='wxUSE_CHOICE=no'
7641 fi
7642
7643else
7644
7645 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7646 if test "x$LINE" != x ; then
7647 eval "DEFAULT_$LINE"
7648 else
7649 no_cache=1
7650 fi
7651
7652 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7653
7654fi;
7655
7656 eval "$ac_cv_use_choice"
7657 if test "$no_cache" != 1; then
7658 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7659 fi
7660
7661 if test "$wxUSE_CHOICE" = yes; then
7662 echo "$as_me:$LINENO: result: yes" >&5
7663echo "${ECHO_T}yes" >&6
7664 else
7665 echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6
7667 fi
7668
7669
92bbdbcd
WS
7670 enablestring=
7671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7672echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7673 no_cache=0
7674 # Check whether --enable-choicebook or --disable-choicebook was given.
7675if test "${enable_choicebook+set}" = set; then
7676 enableval="$enable_choicebook"
7677
7678 if test "$enableval" = yes; then
7679 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7680 else
7681 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7682 fi
7683
7684else
7685
7686 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7687 if test "x$LINE" != x ; then
7688 eval "DEFAULT_$LINE"
7689 else
7690 no_cache=1
7691 fi
7692
7693 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7694
7695fi;
7696
7697 eval "$ac_cv_use_choicebook"
7698 if test "$no_cache" != 1; then
7699 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7700 fi
7701
7702 if test "$wxUSE_CHOICEBOOK" = yes; then
7703 echo "$as_me:$LINENO: result: yes" >&5
7704echo "${ECHO_T}yes" >&6
7705 else
7706 echo "$as_me:$LINENO: result: no" >&5
7707echo "${ECHO_T}no" >&6
7708 fi
7709
7710
a848cd7e
SC
7711 enablestring=
7712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7713echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7714 no_cache=0
7715 # Check whether --enable-combobox or --disable-combobox was given.
7716if test "${enable_combobox+set}" = set; then
7717 enableval="$enable_combobox"
7718
7719 if test "$enableval" = yes; then
7720 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7721 else
7722 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7723 fi
7724
7725else
7726
7727 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7728 if test "x$LINE" != x ; then
7729 eval "DEFAULT_$LINE"
7730 else
7731 no_cache=1
7732 fi
7733
7734 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7735
7736fi;
7737
7738 eval "$ac_cv_use_combobox"
7739 if test "$no_cache" != 1; then
7740 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7741 fi
7742
7743 if test "$wxUSE_COMBOBOX" = yes; then
7744 echo "$as_me:$LINENO: result: yes" >&5
7745echo "${ECHO_T}yes" >&6
7746 else
7747 echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6
7749 fi
7750
7751
da98e9be
VZ
7752 enablestring=
7753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7754echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7755 no_cache=0
7756 # Check whether --enable-datepick or --disable-datepick was given.
7757if test "${enable_datepick+set}" = set; then
7758 enableval="$enable_datepick"
7759
7760 if test "$enableval" = yes; then
7761 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7762 else
7763 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7764 fi
7765
7766else
7767
7768 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7769 if test "x$LINE" != x ; then
7770 eval "DEFAULT_$LINE"
7771 else
7772 no_cache=1
7773 fi
7774
7775 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7776
7777fi;
7778
7779 eval "$ac_cv_use_datepick"
7780 if test "$no_cache" != 1; then
7781 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7782 fi
7783
7784 if test "$wxUSE_DATEPICKCTRL" = yes; then
7785 echo "$as_me:$LINENO: result: yes" >&5
7786echo "${ECHO_T}yes" >&6
7787 else
7788 echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6
7790 fi
7791
7792
a848cd7e
SC
7793 enablestring=
7794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7795echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7796 no_cache=0
7797 # Check whether --enable-display or --disable-display was given.
7798if test "${enable_display+set}" = set; then
7799 enableval="$enable_display"
7800
7801 if test "$enableval" = yes; then
7802 ac_cv_use_display='wxUSE_DISPLAY=yes'
7803 else
7804 ac_cv_use_display='wxUSE_DISPLAY=no'
7805 fi
7806
7807else
7808
7809 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7810 if test "x$LINE" != x ; then
7811 eval "DEFAULT_$LINE"
7812 else
7813 no_cache=1
7814 fi
7815
7816 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7817
7818fi;
7819
7820 eval "$ac_cv_use_display"
7821 if test "$no_cache" != 1; then
7822 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7823 fi
7824
7825 if test "$wxUSE_DISPLAY" = yes; then
7826 echo "$as_me:$LINENO: result: yes" >&5
7827echo "${ECHO_T}yes" >&6
7828 else
7829 echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6
7831 fi
7832
7833
7834 enablestring=
7835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7836echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7837 no_cache=0
7838 # Check whether --enable-gauge or --disable-gauge was given.
7839if test "${enable_gauge+set}" = set; then
7840 enableval="$enable_gauge"
7841
7842 if test "$enableval" = yes; then
7843 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7844 else
7845 ac_cv_use_gauge='wxUSE_GAUGE=no'
7846 fi
7847
7848else
7849
7850 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7851 if test "x$LINE" != x ; then
7852 eval "DEFAULT_$LINE"
7853 else
7854 no_cache=1
7855 fi
7856
7857 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7858
7859fi;
7860
7861 eval "$ac_cv_use_gauge"
7862 if test "$no_cache" != 1; then
7863 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7864 fi
7865
7866 if test "$wxUSE_GAUGE" = yes; then
7867 echo "$as_me:$LINENO: result: yes" >&5
7868echo "${ECHO_T}yes" >&6
7869 else
7870 echo "$as_me:$LINENO: result: no" >&5
7871echo "${ECHO_T}no" >&6
7872 fi
7873
7874
7875 enablestring=
7876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7877echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7878 no_cache=0
7879 # Check whether --enable-grid or --disable-grid was given.
7880if test "${enable_grid+set}" = set; then
7881 enableval="$enable_grid"
7882
7883 if test "$enableval" = yes; then
7884 ac_cv_use_grid='wxUSE_GRID=yes'
7885 else
7886 ac_cv_use_grid='wxUSE_GRID=no'
7887 fi
7888
7889else
7890
7891 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7892 if test "x$LINE" != x ; then
7893 eval "DEFAULT_$LINE"
7894 else
7895 no_cache=1
7896 fi
7897
7898 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7899
7900fi;
7901
7902 eval "$ac_cv_use_grid"
7903 if test "$no_cache" != 1; then
7904 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7905 fi
7906
7907 if test "$wxUSE_GRID" = yes; then
7908 echo "$as_me:$LINENO: result: yes" >&5
7909echo "${ECHO_T}yes" >&6
7910 else
7911 echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6
7913 fi
7914
7915
7916 enablestring=
7917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7918echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7919 no_cache=0
7920 # Check whether --enable-imaglist or --disable-imaglist was given.
7921if test "${enable_imaglist+set}" = set; then
7922 enableval="$enable_imaglist"
7923
7924 if test "$enableval" = yes; then
7925 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7926 else
7927 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7928 fi
7929
7930else
7931
7932 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7933 if test "x$LINE" != x ; then
7934 eval "DEFAULT_$LINE"
7935 else
7936 no_cache=1
7937 fi
7938
7939 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7940
7941fi;
7942
7943 eval "$ac_cv_use_imaglist"
7944 if test "$no_cache" != 1; then
7945 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7946 fi
7947
7948 if test "$wxUSE_IMAGLIST" = yes; then
7949 echo "$as_me:$LINENO: result: yes" >&5
7950echo "${ECHO_T}yes" >&6
7951 else
7952 echo "$as_me:$LINENO: result: no" >&5
7953echo "${ECHO_T}no" >&6
7954 fi
7955
7956
7957 enablestring=
7958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7959echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7960 no_cache=0
7961 # Check whether --enable-listbook or --disable-listbook was given.
7962if test "${enable_listbook+set}" = set; then
7963 enableval="$enable_listbook"
7964
7965 if test "$enableval" = yes; then
7966 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7967 else
7968 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7969 fi
7970
7971else
7972
7973 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7974 if test "x$LINE" != x ; then
7975 eval "DEFAULT_$LINE"
7976 else
7977 no_cache=1
7978 fi
7979
7980 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7981
7982fi;
7983
7984 eval "$ac_cv_use_listbook"
7985 if test "$no_cache" != 1; then
7986 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7987 fi
7988
7989 if test "$wxUSE_LISTBOOK" = yes; then
7990 echo "$as_me:$LINENO: result: yes" >&5
7991echo "${ECHO_T}yes" >&6
7992 else
7993 echo "$as_me:$LINENO: result: no" >&5
7994echo "${ECHO_T}no" >&6
7995 fi
7996
7997
7998 enablestring=
7999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8000echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8001 no_cache=0
8002 # Check whether --enable-listbox or --disable-listbox was given.
8003if test "${enable_listbox+set}" = set; then
8004 enableval="$enable_listbox"
8005
8006 if test "$enableval" = yes; then
8007 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8008 else
8009 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8010 fi
8011
8012else
8013
8014 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8015 if test "x$LINE" != x ; then
8016 eval "DEFAULT_$LINE"
8017 else
8018 no_cache=1
8019 fi
8020
8021 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8022
8023fi;
8024
8025 eval "$ac_cv_use_listbox"
8026 if test "$no_cache" != 1; then
8027 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8028 fi
8029
8030 if test "$wxUSE_LISTBOX" = yes; then
8031 echo "$as_me:$LINENO: result: yes" >&5
8032echo "${ECHO_T}yes" >&6
8033 else
8034 echo "$as_me:$LINENO: result: no" >&5
8035echo "${ECHO_T}no" >&6
8036 fi
8037
8038
8039 enablestring=
8040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8041echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8042 no_cache=0
8043 # Check whether --enable-listctrl or --disable-listctrl was given.
8044if test "${enable_listctrl+set}" = set; then
8045 enableval="$enable_listctrl"
8046
8047 if test "$enableval" = yes; then
8048 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8049 else
8050 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8051 fi
8052
8053else
8054
8055 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8056 if test "x$LINE" != x ; then
8057 eval "DEFAULT_$LINE"
8058 else
8059 no_cache=1
8060 fi
8061
8062 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8063
8064fi;
8065
8066 eval "$ac_cv_use_listctrl"
8067 if test "$no_cache" != 1; then
8068 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8069 fi
8070
8071 if test "$wxUSE_LISTCTRL" = yes; then
8072 echo "$as_me:$LINENO: result: yes" >&5
8073echo "${ECHO_T}yes" >&6
8074 else
8075 echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6
8077 fi
8078
8079
8080 enablestring=
8081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8082echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8083 no_cache=0
8084 # Check whether --enable-notebook or --disable-notebook was given.
8085if test "${enable_notebook+set}" = set; then
8086 enableval="$enable_notebook"
8087
8088 if test "$enableval" = yes; then
8089 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8090 else
8091 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8092 fi
8093
8094else
8095
8096 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8097 if test "x$LINE" != x ; then
8098 eval "DEFAULT_$LINE"
8099 else
8100 no_cache=1
8101 fi
8102
8103 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8104
8105fi;
8106
8107 eval "$ac_cv_use_notebook"
8108 if test "$no_cache" != 1; then
8109 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8110 fi
8111
8112 if test "$wxUSE_NOTEBOOK" = yes; then
8113 echo "$as_me:$LINENO: result: yes" >&5
8114echo "${ECHO_T}yes" >&6
8115 else
8116 echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6
8118 fi
8119
8120
8121 enablestring=
8122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8123echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8124 no_cache=0
8125 # Check whether --enable-radiobox or --disable-radiobox was given.
8126if test "${enable_radiobox+set}" = set; then
8127 enableval="$enable_radiobox"
8128
8129 if test "$enableval" = yes; then
8130 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8131 else
8132 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8133 fi
8134
8135else
8136
8137 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8138 if test "x$LINE" != x ; then
8139 eval "DEFAULT_$LINE"
8140 else
8141 no_cache=1
8142 fi
8143
8144 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8145
8146fi;
8147
8148 eval "$ac_cv_use_radiobox"
8149 if test "$no_cache" != 1; then
8150 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8151 fi
8152
8153 if test "$wxUSE_RADIOBOX" = yes; then
8154 echo "$as_me:$LINENO: result: yes" >&5
8155echo "${ECHO_T}yes" >&6
8156 else
8157 echo "$as_me:$LINENO: result: no" >&5
8158echo "${ECHO_T}no" >&6
8159 fi
8160
8161
8162 enablestring=
8163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8164echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8165 no_cache=0
8166 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8167if test "${enable_radiobtn+set}" = set; then
8168 enableval="$enable_radiobtn"
8169
8170 if test "$enableval" = yes; then
8171 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8172 else
8173 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8174 fi
8175
8176else
8177
8178 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8179 if test "x$LINE" != x ; then
8180 eval "DEFAULT_$LINE"
8181 else
8182 no_cache=1
8183 fi
8184
8185 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8186
8187fi;
8188
8189 eval "$ac_cv_use_radiobtn"
8190 if test "$no_cache" != 1; then
8191 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8192 fi
8193
8194 if test "$wxUSE_RADIOBTN" = yes; then
8195 echo "$as_me:$LINENO: result: yes" >&5
8196echo "${ECHO_T}yes" >&6
8197 else
8198 echo "$as_me:$LINENO: result: no" >&5
8199echo "${ECHO_T}no" >&6
8200 fi
8201
8202
8203 enablestring=
8204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8205echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8206 no_cache=0
8207 # Check whether --enable-sash or --disable-sash was given.
8208if test "${enable_sash+set}" = set; then
8209 enableval="$enable_sash"
8210
8211 if test "$enableval" = yes; then
8212 ac_cv_use_sash='wxUSE_SASH=yes'
8213 else
8214 ac_cv_use_sash='wxUSE_SASH=no'
8215 fi
8216
8217else
8218
8219 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8220 if test "x$LINE" != x ; then
8221 eval "DEFAULT_$LINE"
8222 else
8223 no_cache=1
8224 fi
8225
8226 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8227
8228fi;
8229
8230 eval "$ac_cv_use_sash"
8231 if test "$no_cache" != 1; then
8232 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8233 fi
8234
8235 if test "$wxUSE_SASH" = yes; then
8236 echo "$as_me:$LINENO: result: yes" >&5
8237echo "${ECHO_T}yes" >&6
8238 else
8239 echo "$as_me:$LINENO: result: no" >&5
8240echo "${ECHO_T}no" >&6
8241 fi
8242
8243
8244 enablestring=
8245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8246echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8247 no_cache=0
8248 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8249if test "${enable_scrollbar+set}" = set; then
8250 enableval="$enable_scrollbar"
8251
8252 if test "$enableval" = yes; then
8253 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8254 else
8255 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8256 fi
8257
8258else
8259
8260 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8261 if test "x$LINE" != x ; then
8262 eval "DEFAULT_$LINE"
8263 else
8264 no_cache=1
8265 fi
8266
8267 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8268
8269fi;
8270
8271 eval "$ac_cv_use_scrollbar"
8272 if test "$no_cache" != 1; then
8273 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8274 fi
8275
8276 if test "$wxUSE_SCROLLBAR" = yes; then
8277 echo "$as_me:$LINENO: result: yes" >&5
8278echo "${ECHO_T}yes" >&6
8279 else
8280 echo "$as_me:$LINENO: result: no" >&5
8281echo "${ECHO_T}no" >&6
8282 fi
8283
8284
8285 enablestring=
8286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8287echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8288 no_cache=0
8289 # Check whether --enable-slider or --disable-slider was given.
8290if test "${enable_slider+set}" = set; then
8291 enableval="$enable_slider"
8292
8293 if test "$enableval" = yes; then
8294 ac_cv_use_slider='wxUSE_SLIDER=yes'
8295 else
8296 ac_cv_use_slider='wxUSE_SLIDER=no'
8297 fi
8298
8299else
8300
8301 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8302 if test "x$LINE" != x ; then
8303 eval "DEFAULT_$LINE"
8304 else
8305 no_cache=1
8306 fi
8307
8308 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8309
8310fi;
8311
8312 eval "$ac_cv_use_slider"
8313 if test "$no_cache" != 1; then
8314 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8315 fi
8316
8317 if test "$wxUSE_SLIDER" = yes; then
8318 echo "$as_me:$LINENO: result: yes" >&5
8319echo "${ECHO_T}yes" >&6
8320 else
8321 echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
8323 fi
8324
8325
8326 enablestring=
8327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8328echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8329 no_cache=0
8330 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8331if test "${enable_spinbtn+set}" = set; then
8332 enableval="$enable_spinbtn"
8333
8334 if test "$enableval" = yes; then
8335 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8336 else
8337 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8338 fi
8339
8340else
8341
8342 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8343 if test "x$LINE" != x ; then
8344 eval "DEFAULT_$LINE"
8345 else
8346 no_cache=1
8347 fi
8348
8349 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8350
8351fi;
8352
8353 eval "$ac_cv_use_spinbtn"
8354 if test "$no_cache" != 1; then
8355 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8356 fi
8357
8358 if test "$wxUSE_SPINBTN" = yes; then
8359 echo "$as_me:$LINENO: result: yes" >&5
8360echo "${ECHO_T}yes" >&6
8361 else
8362 echo "$as_me:$LINENO: result: no" >&5
8363echo "${ECHO_T}no" >&6
8364 fi
8365
8366
8367 enablestring=
8368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8369echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8370 no_cache=0
8371 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8372if test "${enable_spinctrl+set}" = set; then
8373 enableval="$enable_spinctrl"
8374
8375 if test "$enableval" = yes; then
8376 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8377 else
8378 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8379 fi
8380
8381else
8382
8383 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8384 if test "x$LINE" != x ; then
8385 eval "DEFAULT_$LINE"
8386 else
8387 no_cache=1
8388 fi
8389
8390 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8391
8392fi;
8393
8394 eval "$ac_cv_use_spinctrl"
8395 if test "$no_cache" != 1; then
8396 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8397 fi
8398
8399 if test "$wxUSE_SPINCTRL" = yes; then
8400 echo "$as_me:$LINENO: result: yes" >&5
8401echo "${ECHO_T}yes" >&6
8402 else
8403 echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6
8405 fi
8406
8407
8408 enablestring=
8409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8410echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8411 no_cache=0
8412 # Check whether --enable-splitter or --disable-splitter was given.
8413if test "${enable_splitter+set}" = set; then
8414 enableval="$enable_splitter"
8415
8416 if test "$enableval" = yes; then
8417 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8418 else
8419 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8420 fi
8421
8422else
8423
8424 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8425 if test "x$LINE" != x ; then
8426 eval "DEFAULT_$LINE"
8427 else
8428 no_cache=1
8429 fi
8430
8431 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8432
8433fi;
8434
8435 eval "$ac_cv_use_splitter"
8436 if test "$no_cache" != 1; then
8437 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8438 fi
8439
8440 if test "$wxUSE_SPLITTER" = yes; then
8441 echo "$as_me:$LINENO: result: yes" >&5
8442echo "${ECHO_T}yes" >&6
8443 else
8444 echo "$as_me:$LINENO: result: no" >&5
8445echo "${ECHO_T}no" >&6
8446 fi
8447
8448
8449 enablestring=
8450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8451echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8452 no_cache=0
8453 # Check whether --enable-statbmp or --disable-statbmp was given.
8454if test "${enable_statbmp+set}" = set; then
8455 enableval="$enable_statbmp"
8456
8457 if test "$enableval" = yes; then
8458 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8459 else
8460 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8461 fi
8462
8463else
8464
8465 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8466 if test "x$LINE" != x ; then
8467 eval "DEFAULT_$LINE"
8468 else
8469 no_cache=1
8470 fi
8471
8472 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8473
8474fi;
8475
8476 eval "$ac_cv_use_statbmp"
8477 if test "$no_cache" != 1; then
8478 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8479 fi
8480
8481 if test "$wxUSE_STATBMP" = yes; then
8482 echo "$as_me:$LINENO: result: yes" >&5
8483echo "${ECHO_T}yes" >&6
8484 else
8485 echo "$as_me:$LINENO: result: no" >&5
8486echo "${ECHO_T}no" >&6
8487 fi
8488
8489
8490 enablestring=
8491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8492echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8493 no_cache=0
8494 # Check whether --enable-statbox or --disable-statbox was given.
8495if test "${enable_statbox+set}" = set; then
8496 enableval="$enable_statbox"
8497
8498 if test "$enableval" = yes; then
8499 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8500 else
8501 ac_cv_use_statbox='wxUSE_STATBOX=no'
8502 fi
8503
8504else
8505
8506 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8507 if test "x$LINE" != x ; then
8508 eval "DEFAULT_$LINE"
8509 else
8510 no_cache=1
8511 fi
8512
8513 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8514
8515fi;
8516
8517 eval "$ac_cv_use_statbox"
8518 if test "$no_cache" != 1; then
8519 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8520 fi
8521
8522 if test "$wxUSE_STATBOX" = yes; then
8523 echo "$as_me:$LINENO: result: yes" >&5
8524echo "${ECHO_T}yes" >&6
8525 else
8526 echo "$as_me:$LINENO: result: no" >&5
8527echo "${ECHO_T}no" >&6
8528 fi
8529
8530
8531 enablestring=
8532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8533echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8534 no_cache=0
8535 # Check whether --enable-statline or --disable-statline was given.
8536if test "${enable_statline+set}" = set; then
8537 enableval="$enable_statline"
8538
8539 if test "$enableval" = yes; then
8540 ac_cv_use_statline='wxUSE_STATLINE=yes'
8541 else
8542 ac_cv_use_statline='wxUSE_STATLINE=no'
8543 fi
8544
8545else
8546
8547 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8548 if test "x$LINE" != x ; then
8549 eval "DEFAULT_$LINE"
8550 else
8551 no_cache=1
8552 fi
8553
8554 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8555
8556fi;
8557
8558 eval "$ac_cv_use_statline"
8559 if test "$no_cache" != 1; then
8560 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8561 fi
8562
8563 if test "$wxUSE_STATLINE" = yes; then
8564 echo "$as_me:$LINENO: result: yes" >&5
8565echo "${ECHO_T}yes" >&6
8566 else
8567 echo "$as_me:$LINENO: result: no" >&5
8568echo "${ECHO_T}no" >&6
8569 fi
8570
8571
8572 enablestring=
8573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8574echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8575 no_cache=0
8576 # Check whether --enable-stattext or --disable-stattext was given.
8577if test "${enable_stattext+set}" = set; then
8578 enableval="$enable_stattext"
8579
8580 if test "$enableval" = yes; then
8581 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8582 else
8583 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8584 fi
8585
8586else
8587
8588 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8589 if test "x$LINE" != x ; then
8590 eval "DEFAULT_$LINE"
8591 else
8592 no_cache=1
8593 fi
8594
8595 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8596
8597fi;
8598
8599 eval "$ac_cv_use_stattext"
8600 if test "$no_cache" != 1; then
8601 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8602 fi
8603
8604 if test "$wxUSE_STATTEXT" = yes; then
8605 echo "$as_me:$LINENO: result: yes" >&5
8606echo "${ECHO_T}yes" >&6
8607 else
8608 echo "$as_me:$LINENO: result: no" >&5
8609echo "${ECHO_T}no" >&6
8610 fi
8611
8612
8613 enablestring=
8614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8615echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8616 no_cache=0
8617 # Check whether --enable-statusbar or --disable-statusbar was given.
8618if test "${enable_statusbar+set}" = set; then
8619 enableval="$enable_statusbar"
8620
8621 if test "$enableval" = yes; then
8622 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8623 else
8624 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8625 fi
8626
8627else
8628
8629 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8630 if test "x$LINE" != x ; then
8631 eval "DEFAULT_$LINE"
8632 else
8633 no_cache=1
8634 fi
8635
8636 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8637
8638fi;
8639
8640 eval "$ac_cv_use_statusbar"
8641 if test "$no_cache" != 1; then
8642 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8643 fi
8644
8645 if test "$wxUSE_STATUSBAR" = yes; then
8646 echo "$as_me:$LINENO: result: yes" >&5
8647echo "${ECHO_T}yes" >&6
8648 else
8649 echo "$as_me:$LINENO: result: no" >&5
8650echo "${ECHO_T}no" >&6
8651 fi
8652
8653
8654 enablestring=
8655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8656echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8657 no_cache=0
8658 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8659if test "${enable_tabdialog+set}" = set; then
8660 enableval="$enable_tabdialog"
8661
8662 if test "$enableval" = yes; then
8663 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8664 else
8665 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8666 fi
8667
8668else
8669
8670 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8671 if test "x$LINE" != x ; then
8672 eval "DEFAULT_$LINE"
8673 else
8674 no_cache=1
8675 fi
8676
8677 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8678
8679fi;
8680
8681 eval "$ac_cv_use_tabdialog"
8682 if test "$no_cache" != 1; then
8683 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8684 fi
8685
8686 if test "$wxUSE_TABDIALOG" = yes; then
8687 echo "$as_me:$LINENO: result: yes" >&5
8688echo "${ECHO_T}yes" >&6
8689 else
8690 echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
8692 fi
8693
8694
8695 enablestring=
8696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8697echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8698 no_cache=0
8699 # Check whether --enable-textctrl or --disable-textctrl was given.
8700if test "${enable_textctrl+set}" = set; then
8701 enableval="$enable_textctrl"
8702
8703 if test "$enableval" = yes; then
8704 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8705 else
8706 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8707 fi
8708
8709else
8710
8711 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8712 if test "x$LINE" != x ; then
8713 eval "DEFAULT_$LINE"
8714 else
8715 no_cache=1
8716 fi
8717
8718 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8719
8720fi;
8721
8722 eval "$ac_cv_use_textctrl"
8723 if test "$no_cache" != 1; then
8724 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8725 fi
8726
8727 if test "$wxUSE_TEXTCTRL" = yes; then
8728 echo "$as_me:$LINENO: result: yes" >&5
8729echo "${ECHO_T}yes" >&6
8730 else
8731 echo "$as_me:$LINENO: result: no" >&5
8732echo "${ECHO_T}no" >&6
8733 fi
8734
8735
8736 enablestring=
8737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8738echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8739 no_cache=0
8740 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8741if test "${enable_togglebtn+set}" = set; then
8742 enableval="$enable_togglebtn"
8743
8744 if test "$enableval" = yes; then
8745 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8746 else
8747 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8748 fi
8749
8750else
8751
8752 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8753 if test "x$LINE" != x ; then
8754 eval "DEFAULT_$LINE"
8755 else
8756 no_cache=1
8757 fi
8758
8759 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8760
8761fi;
8762
8763 eval "$ac_cv_use_togglebtn"
8764 if test "$no_cache" != 1; then
8765 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8766 fi
8767
8768 if test "$wxUSE_TOGGLEBTN" = yes; then
8769 echo "$as_me:$LINENO: result: yes" >&5
8770echo "${ECHO_T}yes" >&6
8771 else
8772 echo "$as_me:$LINENO: result: no" >&5
8773echo "${ECHO_T}no" >&6
8774 fi
8775
8776
8777 enablestring=
8778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8779echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8780 no_cache=0
8781 # Check whether --enable-toolbar or --disable-toolbar was given.
8782if test "${enable_toolbar+set}" = set; then
8783 enableval="$enable_toolbar"
8784
8785 if test "$enableval" = yes; then
8786 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8787 else
8788 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8789 fi
8790
8791else
8792
8793 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8794 if test "x$LINE" != x ; then
8795 eval "DEFAULT_$LINE"
8796 else
8797 no_cache=1
8798 fi
8799
8800 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8801
8802fi;
8803
8804 eval "$ac_cv_use_toolbar"
8805 if test "$no_cache" != 1; then
8806 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8807 fi
8808
8809 if test "$wxUSE_TOOLBAR" = yes; then
8810 echo "$as_me:$LINENO: result: yes" >&5
8811echo "${ECHO_T}yes" >&6
8812 else
8813 echo "$as_me:$LINENO: result: no" >&5
8814echo "${ECHO_T}no" >&6
8815 fi
8816
8817
8818 enablestring=
8819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8820echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8821 no_cache=0
8822 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8823if test "${enable_tbarnative+set}" = set; then
8824 enableval="$enable_tbarnative"
8825
8826 if test "$enableval" = yes; then
8827 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8828 else
8829 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8830 fi
8831
8832else
8833
8834 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8835 if test "x$LINE" != x ; then
8836 eval "DEFAULT_$LINE"
8837 else
8838 no_cache=1
8839 fi
8840
8841 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8842
8843fi;
8844
8845 eval "$ac_cv_use_tbarnative"
8846 if test "$no_cache" != 1; then
8847 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8848 fi
8849
8850 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8851 echo "$as_me:$LINENO: result: yes" >&5
8852echo "${ECHO_T}yes" >&6
8853 else
8854 echo "$as_me:$LINENO: result: no" >&5
8855echo "${ECHO_T}no" >&6
8856 fi
8857
8858
8859 enablestring=
8860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8861echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8862 no_cache=0
8863 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8864if test "${enable_tbarsmpl+set}" = set; then
8865 enableval="$enable_tbarsmpl"
8866
8867 if test "$enableval" = yes; then
8868 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8869 else
8870 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8871 fi
8872
8873else
8874
8875 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8876 if test "x$LINE" != x ; then
8877 eval "DEFAULT_$LINE"
8878 else
8879 no_cache=1
8880 fi
8881
8882 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8883
8884fi;
8885
8886 eval "$ac_cv_use_tbarsmpl"
8887 if test "$no_cache" != 1; then
8888 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8889 fi
8890
8891 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8892 echo "$as_me:$LINENO: result: yes" >&5
8893echo "${ECHO_T}yes" >&6
8894 else
8895 echo "$as_me:$LINENO: result: no" >&5
8896echo "${ECHO_T}no" >&6
8897 fi
8898
8899
8900 enablestring=
8901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8902echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8903 no_cache=0
8904 # Check whether --enable-treectrl or --disable-treectrl was given.
8905if test "${enable_treectrl+set}" = set; then
8906 enableval="$enable_treectrl"
8907
8908 if test "$enableval" = yes; then
8909 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8910 else
8911 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8912 fi
8913
8914else
8915
8916 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8917 if test "x$LINE" != x ; then
8918 eval "DEFAULT_$LINE"
8919 else
8920 no_cache=1
8921 fi
8922
8923 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8924
8925fi;
8926
8927 eval "$ac_cv_use_treectrl"
8928 if test "$no_cache" != 1; then
8929 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8930 fi
8931
8932 if test "$wxUSE_TREECTRL" = yes; then
8933 echo "$as_me:$LINENO: result: yes" >&5
8934echo "${ECHO_T}yes" >&6
8935 else
8936 echo "$as_me:$LINENO: result: no" >&5
8937echo "${ECHO_T}no" >&6
8938 fi
8939
8940
8941 enablestring=
8942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8943echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8944 no_cache=0
8945 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8946if test "${enable_tipwindow+set}" = set; then
8947 enableval="$enable_tipwindow"
8948
8949 if test "$enableval" = yes; then
8950 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8951 else
8952 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8953 fi
8954
8955else
8956
8957 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8958 if test "x$LINE" != x ; then
8959 eval "DEFAULT_$LINE"
8960 else
8961 no_cache=1
8962 fi
8963
8964 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8965
8966fi;
8967
8968 eval "$ac_cv_use_tipwindow"
8969 if test "$no_cache" != 1; then
8970 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8971 fi
8972
8973 if test "$wxUSE_TIPWINDOW" = yes; then
8974 echo "$as_me:$LINENO: result: yes" >&5
8975echo "${ECHO_T}yes" >&6
8976 else
8977 echo "$as_me:$LINENO: result: no" >&5
8978echo "${ECHO_T}no" >&6
8979 fi
8980
8981
8982 enablestring=
8983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8984echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8985 no_cache=0
8986 # Check whether --enable-popupwin or --disable-popupwin was given.
8987if test "${enable_popupwin+set}" = set; then
8988 enableval="$enable_popupwin"
8989
8990 if test "$enableval" = yes; then
8991 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8992 else
8993 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8994 fi
8995
8996else
8997
8998 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8999 if test "x$LINE" != x ; then
9000 eval "DEFAULT_$LINE"
9001 else
9002 no_cache=1
9003 fi
9004
9005 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9006
9007fi;
9008
9009 eval "$ac_cv_use_popupwin"
9010 if test "$no_cache" != 1; then
9011 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9012 fi
9013
9014 if test "$wxUSE_POPUPWIN" = yes; then
9015 echo "$as_me:$LINENO: result: yes" >&5
9016echo "${ECHO_T}yes" >&6
9017 else
9018 echo "$as_me:$LINENO: result: no" >&5
9019echo "${ECHO_T}no" >&6
9020 fi
9021
9022
9023
9024
9025 enablestring=
9026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9027echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9028 no_cache=0
9029 # Check whether --enable-commondlg or --disable-commondlg was given.
9030if test "${enable_commondlg+set}" = set; then
9031 enableval="$enable_commondlg"
9032
9033 if test "$enableval" = yes; then
9034 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9035 else
9036 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9037 fi
9038
9039else
9040
9041 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9042 if test "x$LINE" != x ; then
9043 eval "DEFAULT_$LINE"
9044 else
9045 no_cache=1
9046 fi
9047
9048 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9049
9050fi;
9051
9052 eval "$ac_cv_use_commondlg"
9053 if test "$no_cache" != 1; then
9054 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9055 fi
9056
9057 if test "$wxUSE_COMMONDLGS" = yes; then
9058 echo "$as_me:$LINENO: result: yes" >&5
9059echo "${ECHO_T}yes" >&6
9060 else
9061 echo "$as_me:$LINENO: result: no" >&5
9062echo "${ECHO_T}no" >&6
9063 fi
9064
9065
9066 enablestring=
9067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9068echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9069 no_cache=0
9070 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9071if test "${enable_choicedlg+set}" = set; then
9072 enableval="$enable_choicedlg"
9073
9074 if test "$enableval" = yes; then
9075 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9076 else
9077 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9078 fi
9079
9080else
9081
9082 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9083 if test "x$LINE" != x ; then
9084 eval "DEFAULT_$LINE"
9085 else
9086 no_cache=1
9087 fi
9088
9089 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9090
9091fi;
9092
9093 eval "$ac_cv_use_choicedlg"
9094 if test "$no_cache" != 1; then
9095 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9096 fi
9097
9098 if test "$wxUSE_CHOICEDLG" = yes; then
9099 echo "$as_me:$LINENO: result: yes" >&5
9100echo "${ECHO_T}yes" >&6
9101 else
9102 echo "$as_me:$LINENO: result: no" >&5
9103echo "${ECHO_T}no" >&6
9104 fi
9105
9106
9107 enablestring=
9108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9109echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9110 no_cache=0
9111 # Check whether --enable-coldlg or --disable-coldlg was given.
9112if test "${enable_coldlg+set}" = set; then
9113 enableval="$enable_coldlg"
9114
9115 if test "$enableval" = yes; then
9116 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9117 else
9118 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9119 fi
9120
9121else
9122
9123 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9124 if test "x$LINE" != x ; then
9125 eval "DEFAULT_$LINE"
9126 else
9127 no_cache=1
9128 fi
9129
9130 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9131
9132fi;
9133
9134 eval "$ac_cv_use_coldlg"
9135 if test "$no_cache" != 1; then
9136 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9137 fi
9138
9139 if test "$wxUSE_COLOURDLG" = yes; then
9140 echo "$as_me:$LINENO: result: yes" >&5
9141echo "${ECHO_T}yes" >&6
9142 else
9143 echo "$as_me:$LINENO: result: no" >&5
9144echo "${ECHO_T}no" >&6
9145 fi
9146
9147
9148 enablestring=
9149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9150echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9151 no_cache=0
9152 # Check whether --enable-filedlg or --disable-filedlg was given.
9153if test "${enable_filedlg+set}" = set; then
9154 enableval="$enable_filedlg"
9155
9156 if test "$enableval" = yes; then
9157 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9158 else
9159 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9160 fi
9161
9162else
9163
9164 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9165 if test "x$LINE" != x ; then
9166 eval "DEFAULT_$LINE"
9167 else
9168 no_cache=1
9169 fi
9170
9171 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9172
9173fi;
9174
9175 eval "$ac_cv_use_filedlg"
9176 if test "$no_cache" != 1; then
9177 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9178 fi
9179
9180 if test "$wxUSE_FILEDLG" = yes; then
9181 echo "$as_me:$LINENO: result: yes" >&5
9182echo "${ECHO_T}yes" >&6
9183 else
9184 echo "$as_me:$LINENO: result: no" >&5
9185echo "${ECHO_T}no" >&6
9186 fi
9187
9188
9189 enablestring=
9190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9191echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9192 no_cache=0
9193 # Check whether --enable-finddlg or --disable-finddlg was given.
9194if test "${enable_finddlg+set}" = set; then
9195 enableval="$enable_finddlg"
9196
9197 if test "$enableval" = yes; then
9198 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9199 else
9200 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9201 fi
9202
9203else
9204
9205 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9206 if test "x$LINE" != x ; then
9207 eval "DEFAULT_$LINE"
9208 else
9209 no_cache=1
9210 fi
9211
9212 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9213
9214fi;
9215
9216 eval "$ac_cv_use_finddlg"
9217 if test "$no_cache" != 1; then
9218 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9219 fi
9220
9221 if test "$wxUSE_FINDREPLDLG" = yes; then
9222 echo "$as_me:$LINENO: result: yes" >&5
9223echo "${ECHO_T}yes" >&6
9224 else
9225 echo "$as_me:$LINENO: result: no" >&5
9226echo "${ECHO_T}no" >&6
9227 fi
9228
9229
9230 enablestring=
9231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9232echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9233 no_cache=0
9234 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9235if test "${enable_fontdlg+set}" = set; then
9236 enableval="$enable_fontdlg"
9237
9238 if test "$enableval" = yes; then
9239 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9240 else
9241 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9242 fi
9243
9244else
9245
9246 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9247 if test "x$LINE" != x ; then
9248 eval "DEFAULT_$LINE"
9249 else
9250 no_cache=1
9251 fi
9252
9253 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9254
9255fi;
9256
9257 eval "$ac_cv_use_fontdlg"
9258 if test "$no_cache" != 1; then
9259 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9260 fi
9261
9262 if test "$wxUSE_FONTDLG" = yes; then
9263 echo "$as_me:$LINENO: result: yes" >&5
9264echo "${ECHO_T}yes" >&6
9265 else
9266 echo "$as_me:$LINENO: result: no" >&5
9267echo "${ECHO_T}no" >&6
9268 fi
9269
9270
9271 enablestring=
9272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9273echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9274 no_cache=0
9275 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9276if test "${enable_dirdlg+set}" = set; then
9277 enableval="$enable_dirdlg"
9278
9279 if test "$enableval" = yes; then
9280 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9281 else
9282 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9283 fi
9284
9285else
9286
9287 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9288 if test "x$LINE" != x ; then
9289 eval "DEFAULT_$LINE"
9290 else
9291 no_cache=1
9292 fi
9293
9294 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9295
9296fi;
9297
9298 eval "$ac_cv_use_dirdlg"
9299 if test "$no_cache" != 1; then
9300 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9301 fi
9302
9303 if test "$wxUSE_DIRDLG" = yes; then
9304 echo "$as_me:$LINENO: result: yes" >&5
9305echo "${ECHO_T}yes" >&6
9306 else
9307 echo "$as_me:$LINENO: result: no" >&5
9308echo "${ECHO_T}no" >&6
9309 fi
9310
9311
9312 enablestring=
9313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9314echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9315 no_cache=0
9316 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9317if test "${enable_msgdlg+set}" = set; then
9318 enableval="$enable_msgdlg"
9319
9320 if test "$enableval" = yes; then
9321 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9322 else
9323 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9324 fi
9325
9326else
9327
9328 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9329 if test "x$LINE" != x ; then
9330 eval "DEFAULT_$LINE"
9331 else
9332 no_cache=1
9333 fi
9334
9335 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9336
9337fi;
9338
9339 eval "$ac_cv_use_msgdlg"
9340 if test "$no_cache" != 1; then
9341 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9342 fi
9343
9344 if test "$wxUSE_MSGDLG" = yes; then
9345 echo "$as_me:$LINENO: result: yes" >&5
9346echo "${ECHO_T}yes" >&6
9347 else
9348 echo "$as_me:$LINENO: result: no" >&5
9349echo "${ECHO_T}no" >&6
9350 fi
9351
9352
9353 enablestring=
9354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9355echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9356 no_cache=0
9357 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9358if test "${enable_numberdlg+set}" = set; then
9359 enableval="$enable_numberdlg"
9360
9361 if test "$enableval" = yes; then
9362 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9363 else
9364 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9365 fi
9366
9367else
9368
9369 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9370 if test "x$LINE" != x ; then
9371 eval "DEFAULT_$LINE"
9372 else
9373 no_cache=1
9374 fi
9375
9376 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9377
9378fi;
9379
9380 eval "$ac_cv_use_numberdlg"
9381 if test "$no_cache" != 1; then
9382 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9383 fi
9384
9385 if test "$wxUSE_NUMBERDLG" = yes; then
9386 echo "$as_me:$LINENO: result: yes" >&5
9387echo "${ECHO_T}yes" >&6
9388 else
9389 echo "$as_me:$LINENO: result: no" >&5
9390echo "${ECHO_T}no" >&6
9391 fi
9392
9393
9394 enablestring=
9395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9396echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9397 no_cache=0
9398 # Check whether --enable-splash or --disable-splash was given.
9399if test "${enable_splash+set}" = set; then
9400 enableval="$enable_splash"
9401
9402 if test "$enableval" = yes; then
9403 ac_cv_use_splash='wxUSE_SPLASH=yes'
9404 else
9405 ac_cv_use_splash='wxUSE_SPLASH=no'
9406 fi
9407
9408else
9409
9410 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9411 if test "x$LINE" != x ; then
9412 eval "DEFAULT_$LINE"
9413 else
9414 no_cache=1
9415 fi
9416
9417 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9418
9419fi;
9420
9421 eval "$ac_cv_use_splash"
9422 if test "$no_cache" != 1; then
9423 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9424 fi
9425
9426 if test "$wxUSE_SPLASH" = yes; then
9427 echo "$as_me:$LINENO: result: yes" >&5
9428echo "${ECHO_T}yes" >&6
9429 else
9430 echo "$as_me:$LINENO: result: no" >&5
9431echo "${ECHO_T}no" >&6
9432 fi
9433
9434
9435 enablestring=
9436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9437echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9438 no_cache=0
9439 # Check whether --enable-textdlg or --disable-textdlg was given.
9440if test "${enable_textdlg+set}" = set; then
9441 enableval="$enable_textdlg"
9442
9443 if test "$enableval" = yes; then
9444 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9445 else
9446 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9447 fi
9448
9449else
9450
9451 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9452 if test "x$LINE" != x ; then
9453 eval "DEFAULT_$LINE"
9454 else
9455 no_cache=1
9456 fi
9457
9458 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9459
9460fi;
9461
9462 eval "$ac_cv_use_textdlg"
9463 if test "$no_cache" != 1; then
9464 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9465 fi
9466
9467 if test "$wxUSE_TEXTDLG" = yes; then
9468 echo "$as_me:$LINENO: result: yes" >&5
9469echo "${ECHO_T}yes" >&6
9470 else
9471 echo "$as_me:$LINENO: result: no" >&5
9472echo "${ECHO_T}no" >&6
9473 fi
9474
9475
9476 enablestring=
9477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9478echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9479 no_cache=0
9480 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9481if test "${enable_tipdlg+set}" = set; then
9482 enableval="$enable_tipdlg"
9483
9484 if test "$enableval" = yes; then
9485 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9486 else
9487 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9488 fi
9489
9490else
9491
9492 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9493 if test "x$LINE" != x ; then
9494 eval "DEFAULT_$LINE"
9495 else
9496 no_cache=1
9497 fi
9498
9499 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9500
9501fi;
9502
9503 eval "$ac_cv_use_tipdlg"
9504 if test "$no_cache" != 1; then
9505 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9506 fi
9507
9508 if test "$wxUSE_STARTUP_TIPS" = yes; then
9509 echo "$as_me:$LINENO: result: yes" >&5
9510echo "${ECHO_T}yes" >&6
9511 else
9512 echo "$as_me:$LINENO: result: no" >&5
9513echo "${ECHO_T}no" >&6
9514 fi
9515
9516
9517 enablestring=
9518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9519echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9520 no_cache=0
9521 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9522if test "${enable_progressdlg+set}" = set; then
9523 enableval="$enable_progressdlg"
9524
9525 if test "$enableval" = yes; then
9526 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9527 else
9528 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9529 fi
9530
9531else
9532
9533 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9534 if test "x$LINE" != x ; then
9535 eval "DEFAULT_$LINE"
9536 else
9537 no_cache=1
9538 fi
9539
9540 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9541
9542fi;
9543
9544 eval "$ac_cv_use_progressdlg"
9545 if test "$no_cache" != 1; then
9546 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9547 fi
9548
9549 if test "$wxUSE_PROGRESSDLG" = yes; then
9550 echo "$as_me:$LINENO: result: yes" >&5
9551echo "${ECHO_T}yes" >&6
9552 else
9553 echo "$as_me:$LINENO: result: no" >&5
9554echo "${ECHO_T}no" >&6
9555 fi
9556
9557
9558 enablestring=
9559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9560echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9561 no_cache=0
9562 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9563if test "${enable_wizarddlg+set}" = set; then
9564 enableval="$enable_wizarddlg"
9565
9566 if test "$enableval" = yes; then
9567 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9568 else
9569 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9570 fi
9571
9572else
9573
9574 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9575 if test "x$LINE" != x ; then
9576 eval "DEFAULT_$LINE"
9577 else
9578 no_cache=1
9579 fi
9580
9581 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9582
9583fi;
9584
9585 eval "$ac_cv_use_wizarddlg"
9586 if test "$no_cache" != 1; then
9587 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9588 fi
9589
9590 if test "$wxUSE_WIZARDDLG" = yes; then
9591 echo "$as_me:$LINENO: result: yes" >&5
9592echo "${ECHO_T}yes" >&6
9593 else
9594 echo "$as_me:$LINENO: result: no" >&5
9595echo "${ECHO_T}no" >&6
9596 fi
9597
9598
9599
9600
9601 enablestring=
9602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9603echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9604 no_cache=0
9605 # Check whether --enable-menus or --disable-menus was given.
9606if test "${enable_menus+set}" = set; then
9607 enableval="$enable_menus"
9608
9609 if test "$enableval" = yes; then
9610 ac_cv_use_menus='wxUSE_MENUS=yes'
9611 else
9612 ac_cv_use_menus='wxUSE_MENUS=no'
9613 fi
9614
9615else
9616
9617 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9618 if test "x$LINE" != x ; then
9619 eval "DEFAULT_$LINE"
9620 else
9621 no_cache=1
9622 fi
9623
9624 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9625
9626fi;
9627
9628 eval "$ac_cv_use_menus"
9629 if test "$no_cache" != 1; then
9630 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9631 fi
9632
9633 if test "$wxUSE_MENUS" = yes; then
9634 echo "$as_me:$LINENO: result: yes" >&5
9635echo "${ECHO_T}yes" >&6
9636 else
9637 echo "$as_me:$LINENO: result: no" >&5
9638echo "${ECHO_T}no" >&6
9639 fi
9640
9641
9642 enablestring=
9643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9644echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9645 no_cache=0
9646 # Check whether --enable-miniframe or --disable-miniframe was given.
9647if test "${enable_miniframe+set}" = set; then
9648 enableval="$enable_miniframe"
9649
9650 if test "$enableval" = yes; then
9651 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9652 else
9653 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9654 fi
9655
9656else
9657
9658 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9659 if test "x$LINE" != x ; then
9660 eval "DEFAULT_$LINE"
9661 else
9662 no_cache=1
9663 fi
9664
9665 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9666
9667fi;
9668
9669 eval "$ac_cv_use_miniframe"
9670 if test "$no_cache" != 1; then
9671 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9672 fi
9673
9674 if test "$wxUSE_MINIFRAME" = yes; then
9675 echo "$as_me:$LINENO: result: yes" >&5
9676echo "${ECHO_T}yes" >&6
9677 else
9678 echo "$as_me:$LINENO: result: no" >&5
9679echo "${ECHO_T}no" >&6
9680 fi
9681
9682
9683 enablestring=
9684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9685echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9686 no_cache=0
9687 # Check whether --enable-tooltips or --disable-tooltips was given.
9688if test "${enable_tooltips+set}" = set; then
9689 enableval="$enable_tooltips"
9690
9691 if test "$enableval" = yes; then
9692 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9693 else
9694 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9695 fi
9696
9697else
9698
9699 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9700 if test "x$LINE" != x ; then
9701 eval "DEFAULT_$LINE"
9702 else
9703 no_cache=1
9704 fi
9705
9706 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9707
9708fi;
9709
9710 eval "$ac_cv_use_tooltips"
9711 if test "$no_cache" != 1; then
9712 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9713 fi
9714
9715 if test "$wxUSE_TOOLTIPS" = yes; then
9716 echo "$as_me:$LINENO: result: yes" >&5
9717echo "${ECHO_T}yes" >&6
9718 else
9719 echo "$as_me:$LINENO: result: no" >&5
9720echo "${ECHO_T}no" >&6
9721 fi
9722
9723
9724 enablestring=
9725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9726echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9727 no_cache=0
9728 # Check whether --enable-splines or --disable-splines was given.
9729if test "${enable_splines+set}" = set; then
9730 enableval="$enable_splines"
9731
9732 if test "$enableval" = yes; then
9733 ac_cv_use_splines='wxUSE_SPLINES=yes'
9734 else
9735 ac_cv_use_splines='wxUSE_SPLINES=no'
9736 fi
9737
9738else
9739
9740 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9741 if test "x$LINE" != x ; then
9742 eval "DEFAULT_$LINE"
9743 else
9744 no_cache=1
9745 fi
9746
9747 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9748
9749fi;
9750
9751 eval "$ac_cv_use_splines"
9752 if test "$no_cache" != 1; then
9753 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9754 fi
9755
9756 if test "$wxUSE_SPLINES" = yes; then
9757 echo "$as_me:$LINENO: result: yes" >&5
9758echo "${ECHO_T}yes" >&6
9759 else
9760 echo "$as_me:$LINENO: result: no" >&5
9761echo "${ECHO_T}no" >&6
9762 fi
9763
9764
fbe2ca43
SN
9765 enablestring=
9766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9767echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9768 no_cache=0
9769 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9770if test "${enable_mousewheel+set}" = set; then
9771 enableval="$enable_mousewheel"
9772
9773 if test "$enableval" = yes; then
9774 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9775 else
9776 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9777 fi
9778
9779else
9780
9781 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9782 if test "x$LINE" != x ; then
9783 eval "DEFAULT_$LINE"
9784 else
9785 no_cache=1
9786 fi
9787
9788 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9789
9790fi;
9791
9792 eval "$ac_cv_use_mousewheel"
9793 if test "$no_cache" != 1; then
9794 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9795 fi
9796
9797 if test "$wxUSE_MOUSEWHEEL" = yes; then
9798 echo "$as_me:$LINENO: result: yes" >&5
9799echo "${ECHO_T}yes" >&6
9800 else
9801 echo "$as_me:$LINENO: result: no" >&5
9802echo "${ECHO_T}no" >&6
9803 fi
9804
9805
a848cd7e
SC
9806 enablestring=
9807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9808echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9809 no_cache=0
9810 # Check whether --enable-validators or --disable-validators was given.
9811if test "${enable_validators+set}" = set; then
9812 enableval="$enable_validators"
9813
9814 if test "$enableval" = yes; then
9815 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9816 else
9817 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9818 fi
9819
9820else
9821
9822 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9823 if test "x$LINE" != x ; then
9824 eval "DEFAULT_$LINE"
9825 else
9826 no_cache=1
9827 fi
9828
9829 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9830
9831fi;
9832
9833 eval "$ac_cv_use_validators"
9834 if test "$no_cache" != 1; then
9835 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9836 fi
9837
9838 if test "$wxUSE_VALIDATORS" = yes; then
9839 echo "$as_me:$LINENO: result: yes" >&5
9840echo "${ECHO_T}yes" >&6
9841 else
9842 echo "$as_me:$LINENO: result: no" >&5
9843echo "${ECHO_T}no" >&6
9844 fi
9845
9846
9847 enablestring=
9848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9849echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9850 no_cache=0
9851 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9852if test "${enable_busyinfo+set}" = set; then
9853 enableval="$enable_busyinfo"
9854
9855 if test "$enableval" = yes; then
9856 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9857 else
9858 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9859 fi
9860
9861else
9862
9863 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9864 if test "x$LINE" != x ; then
9865 eval "DEFAULT_$LINE"
9866 else
9867 no_cache=1
9868 fi
9869
9870 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9871
9872fi;
9873
9874 eval "$ac_cv_use_busyinfo"
9875 if test "$no_cache" != 1; then
9876 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9877 fi
9878
9879 if test "$wxUSE_BUSYINFO" = yes; then
9880 echo "$as_me:$LINENO: result: yes" >&5
9881echo "${ECHO_T}yes" >&6
9882 else
9883 echo "$as_me:$LINENO: result: no" >&5
9884echo "${ECHO_T}no" >&6
9885 fi
9886
9887
9888 enablestring=
9889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9890echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9891 no_cache=0
9892 # Check whether --enable-joystick or --disable-joystick was given.
9893if test "${enable_joystick+set}" = set; then
9894 enableval="$enable_joystick"
9895
9896 if test "$enableval" = yes; then
9897 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9898 else
9899 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9900 fi
9901
9902else
9903
9904 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9905 if test "x$LINE" != x ; then
9906 eval "DEFAULT_$LINE"
9907 else
9908 no_cache=1
9909 fi
9910
9911 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9912
9913fi;
9914
9915 eval "$ac_cv_use_joystick"
9916 if test "$no_cache" != 1; then
9917 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9918 fi
9919
9920 if test "$wxUSE_JOYSTICK" = yes; then
9921 echo "$as_me:$LINENO: result: yes" >&5
9922echo "${ECHO_T}yes" >&6
9923 else
9924 echo "$as_me:$LINENO: result: no" >&5
9925echo "${ECHO_T}no" >&6
9926 fi
9927
9928
9929 enablestring=
9930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9931echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9932 no_cache=0
9933 # Check whether --enable-metafile or --disable-metafile was given.
9934if test "${enable_metafile+set}" = set; then
9935 enableval="$enable_metafile"
9936
9937 if test "$enableval" = yes; then
9938 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9939 else
9940 ac_cv_use_metafile='wxUSE_METAFILE=no'
9941 fi
9942
9943else
9944
9945 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9946 if test "x$LINE" != x ; then
9947 eval "DEFAULT_$LINE"
9948 else
9949 no_cache=1
9950 fi
9951
9952 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9953
9954fi;
9955
9956 eval "$ac_cv_use_metafile"
9957 if test "$no_cache" != 1; then
9958 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9959 fi
9960
9961 if test "$wxUSE_METAFILE" = yes; then
9962 echo "$as_me:$LINENO: result: yes" >&5
9963echo "${ECHO_T}yes" >&6
9964 else
9965 echo "$as_me:$LINENO: result: no" >&5
9966echo "${ECHO_T}no" >&6
9967 fi
9968
9969
9970 enablestring=
9971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9972echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9973 no_cache=0
9974 # Check whether --enable-dragimage or --disable-dragimage was given.
9975if test "${enable_dragimage+set}" = set; then
9976 enableval="$enable_dragimage"
9977
9978 if test "$enableval" = yes; then
9979 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9980 else
9981 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9982 fi
9983
9984else
9985
9986 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9987 if test "x$LINE" != x ; then
9988 eval "DEFAULT_$LINE"
9989 else
9990 no_cache=1
9991 fi
9992
9993 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9994
9995fi;
9996
9997 eval "$ac_cv_use_dragimage"
9998 if test "$no_cache" != 1; then
9999 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10000 fi
10001
10002 if test "$wxUSE_DRAGIMAGE" = yes; then
10003 echo "$as_me:$LINENO: result: yes" >&5
10004echo "${ECHO_T}yes" >&6
10005 else
10006 echo "$as_me:$LINENO: result: no" >&5
10007echo "${ECHO_T}no" >&6
10008 fi
10009
10010
10011 enablestring=
10012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10013echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10014 no_cache=0
10015 # Check whether --enable-accessibility or --disable-accessibility was given.
10016if test "${enable_accessibility+set}" = set; then
10017 enableval="$enable_accessibility"
10018
10019 if test "$enableval" = yes; then
10020 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10021 else
10022 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10023 fi
10024
10025else
10026
10027 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10028 if test "x$LINE" != x ; then
10029 eval "DEFAULT_$LINE"
10030 else
10031 no_cache=1
10032 fi
10033
10034 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10035
10036fi;
10037
10038 eval "$ac_cv_use_accessibility"
10039 if test "$no_cache" != 1; then
10040 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10041 fi
10042
10043 if test "$wxUSE_ACCESSIBILITY" = yes; then
10044 echo "$as_me:$LINENO: result: yes" >&5
10045echo "${ECHO_T}yes" >&6
10046 else
10047 echo "$as_me:$LINENO: result: no" >&5
10048echo "${ECHO_T}no" >&6
10049 fi
10050
10051
10052
10053
10054 enablestring=
10055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10056echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10057 no_cache=0
10058 # Check whether --enable-palette or --disable-palette was given.
10059if test "${enable_palette+set}" = set; then
10060 enableval="$enable_palette"
10061
10062 if test "$enableval" = yes; then
10063 ac_cv_use_palette='wxUSE_PALETTE=yes'
10064 else
10065 ac_cv_use_palette='wxUSE_PALETTE=no'
10066 fi
10067
10068else
10069
10070 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10071 if test "x$LINE" != x ; then
10072 eval "DEFAULT_$LINE"
10073 else
10074 no_cache=1
10075 fi
10076
10077 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10078
10079fi;
10080
10081 eval "$ac_cv_use_palette"
10082 if test "$no_cache" != 1; then
10083 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10084 fi
10085
10086 if test "$wxUSE_PALETTE" = yes; then
10087 echo "$as_me:$LINENO: result: yes" >&5
10088echo "${ECHO_T}yes" >&6
10089 else
10090 echo "$as_me:$LINENO: result: no" >&5
10091echo "${ECHO_T}no" >&6
10092 fi
10093
10094
10095 enablestring=
10096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10097echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10098 no_cache=0
10099 # Check whether --enable-image or --disable-image was given.
10100if test "${enable_image+set}" = set; then
10101 enableval="$enable_image"
10102
10103 if test "$enableval" = yes; then
10104 ac_cv_use_image='wxUSE_IMAGE=yes'
10105 else
10106 ac_cv_use_image='wxUSE_IMAGE=no'
10107 fi
10108
10109else
10110
10111 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10112 if test "x$LINE" != x ; then
10113 eval "DEFAULT_$LINE"
10114 else
10115 no_cache=1
10116 fi
10117
10118 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10119
10120fi;
10121
10122 eval "$ac_cv_use_image"
10123 if test "$no_cache" != 1; then
10124 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10125 fi
10126
10127 if test "$wxUSE_IMAGE" = yes; then
10128 echo "$as_me:$LINENO: result: yes" >&5
10129echo "${ECHO_T}yes" >&6
10130 else
10131 echo "$as_me:$LINENO: result: no" >&5
10132echo "${ECHO_T}no" >&6
10133 fi
10134
10135
10136 enablestring=
10137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10138echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10139 no_cache=0
10140 # Check whether --enable-gif or --disable-gif was given.
10141if test "${enable_gif+set}" = set; then
10142 enableval="$enable_gif"
10143
10144 if test "$enableval" = yes; then
10145 ac_cv_use_gif='wxUSE_GIF=yes'
10146 else
10147 ac_cv_use_gif='wxUSE_GIF=no'
10148 fi
10149
10150else
10151
10152 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10153 if test "x$LINE" != x ; then
10154 eval "DEFAULT_$LINE"
10155 else
10156 no_cache=1
10157 fi
10158
10159 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10160
10161fi;
10162
10163 eval "$ac_cv_use_gif"
10164 if test "$no_cache" != 1; then
10165 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10166 fi
10167
10168 if test "$wxUSE_GIF" = yes; then
10169 echo "$as_me:$LINENO: result: yes" >&5
10170echo "${ECHO_T}yes" >&6
10171 else
10172 echo "$as_me:$LINENO: result: no" >&5
10173echo "${ECHO_T}no" >&6
10174 fi
10175
10176
10177 enablestring=
10178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10179echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10180 no_cache=0
10181 # Check whether --enable-pcx or --disable-pcx was given.
10182if test "${enable_pcx+set}" = set; then
10183 enableval="$enable_pcx"
10184
10185 if test "$enableval" = yes; then
10186 ac_cv_use_pcx='wxUSE_PCX=yes'
10187 else
10188 ac_cv_use_pcx='wxUSE_PCX=no'
10189 fi
10190
10191else
10192
10193 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10194 if test "x$LINE" != x ; then
10195 eval "DEFAULT_$LINE"
10196 else
10197 no_cache=1
10198 fi
10199
10200 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10201
10202fi;
10203
10204 eval "$ac_cv_use_pcx"
10205 if test "$no_cache" != 1; then
10206 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10207 fi
10208
10209 if test "$wxUSE_PCX" = yes; then
10210 echo "$as_me:$LINENO: result: yes" >&5
10211echo "${ECHO_T}yes" >&6
10212 else
10213 echo "$as_me:$LINENO: result: no" >&5
10214echo "${ECHO_T}no" >&6
10215 fi
10216
10217
10218 enablestring=
10219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10220echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10221 no_cache=0
10222 # Check whether --enable-iff or --disable-iff was given.
10223if test "${enable_iff+set}" = set; then
10224 enableval="$enable_iff"
10225
10226 if test "$enableval" = yes; then
10227 ac_cv_use_iff='wxUSE_IFF=yes'
10228 else
10229 ac_cv_use_iff='wxUSE_IFF=no'
10230 fi
10231
10232else
10233
10234 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10235 if test "x$LINE" != x ; then
10236 eval "DEFAULT_$LINE"
10237 else
10238 no_cache=1
10239 fi
10240
10241 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10242
10243fi;
10244
10245 eval "$ac_cv_use_iff"
10246 if test "$no_cache" != 1; then
10247 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10248 fi
10249
10250 if test "$wxUSE_IFF" = yes; then
10251 echo "$as_me:$LINENO: result: yes" >&5
10252echo "${ECHO_T}yes" >&6
10253 else
10254 echo "$as_me:$LINENO: result: no" >&5
10255echo "${ECHO_T}no" >&6
10256 fi
10257
10258
10259 enablestring=
10260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10261echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10262 no_cache=0
10263 # Check whether --enable-pnm or --disable-pnm was given.
10264if test "${enable_pnm+set}" = set; then
10265 enableval="$enable_pnm"
10266
10267 if test "$enableval" = yes; then
10268 ac_cv_use_pnm='wxUSE_PNM=yes'
10269 else
10270 ac_cv_use_pnm='wxUSE_PNM=no'
10271 fi
10272
10273else
10274
10275 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10276 if test "x$LINE" != x ; then
10277 eval "DEFAULT_$LINE"
10278 else
10279 no_cache=1
10280 fi
10281
10282 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10283
10284fi;
10285
10286 eval "$ac_cv_use_pnm"
10287 if test "$no_cache" != 1; then
10288 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10289 fi
10290
10291 if test "$wxUSE_PNM" = yes; then
10292 echo "$as_me:$LINENO: result: yes" >&5
10293echo "${ECHO_T}yes" >&6
10294 else
10295 echo "$as_me:$LINENO: result: no" >&5
10296echo "${ECHO_T}no" >&6
10297 fi
10298
10299
10300 enablestring=
10301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10302echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10303 no_cache=0
10304 # Check whether --enable-xpm or --disable-xpm was given.
10305if test "${enable_xpm+set}" = set; then
10306 enableval="$enable_xpm"
10307
10308 if test "$enableval" = yes; then
10309 ac_cv_use_xpm='wxUSE_XPM=yes'
10310 else
10311 ac_cv_use_xpm='wxUSE_XPM=no'
10312 fi
10313
10314else
10315
10316 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10317 if test "x$LINE" != x ; then
10318 eval "DEFAULT_$LINE"
10319 else
10320 no_cache=1
10321 fi
10322
10323 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10324
10325fi;
10326
10327 eval "$ac_cv_use_xpm"
10328 if test "$no_cache" != 1; then
10329 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10330 fi
10331
10332 if test "$wxUSE_XPM" = yes; then
10333 echo "$as_me:$LINENO: result: yes" >&5
10334echo "${ECHO_T}yes" >&6
10335 else
10336 echo "$as_me:$LINENO: result: no" >&5
10337echo "${ECHO_T}no" >&6
10338 fi
10339
10340
10341 enablestring=
10342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10343echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10344 no_cache=0
10345 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10346if test "${enable_ico_cur+set}" = set; then
10347 enableval="$enable_ico_cur"
10348
10349 if test "$enableval" = yes; then
10350 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10351 else
10352 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10353 fi
10354
10355else
10356
10357 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10358 if test "x$LINE" != x ; then
10359 eval "DEFAULT_$LINE"
10360 else
10361 no_cache=1
10362 fi
10363
10364 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10365
10366fi;
10367
10368 eval "$ac_cv_use_ico_cur"
10369 if test "$no_cache" != 1; then
10370 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10371 fi
10372
10373 if test "$wxUSE_ICO_CUR" = yes; then
10374 echo "$as_me:$LINENO: result: yes" >&5
10375echo "${ECHO_T}yes" >&6
10376 else
10377 echo "$as_me:$LINENO: result: no" >&5
10378echo "${ECHO_T}no" >&6
10379 fi
10380
10381
10382fi
10383
10384
10385
ceec2216
RL
10386# Check whether --with-flavour or --without-flavour was given.
10387if test "${with_flavour+set}" = set; then
10388 withval="$with_flavour"
10389 WX_FLAVOUR="$withval"
10390fi;
10391
10392
10393
a848cd7e
SC
10394 enablestring=
10395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10396echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10397 no_cache=0
10398 # Check whether --enable-official_build or --disable-official_build was given.
10399if test "${enable_official_build+set}" = set; then
10400 enableval="$enable_official_build"
10401
10402 if test "$enableval" = yes; then
10403 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10404 else
10405 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10406 fi
10407
10408else
10409
10410 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10411 if test "x$LINE" != x ; then
10412 eval "DEFAULT_$LINE"
10413 else
10414 no_cache=1
10415 fi
10416
10417 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10418
10419fi;
10420
10421 eval "$ac_cv_use_official_build"
10422 if test "$no_cache" != 1; then
10423 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10424 fi
10425
10426 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10427 echo "$as_me:$LINENO: result: yes" >&5
10428echo "${ECHO_T}yes" >&6
10429 else
10430 echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
10432 fi
10433
10434# Check whether --enable-vendor or --disable-vendor was given.
10435if test "${enable_vendor+set}" = set; then
10436 enableval="$enable_vendor"
10437 VENDOR="$enableval"
10438fi;
10439if test "x$VENDOR" = "x"; then
10440 VENDOR="custom"
10441fi
10442
a848cd7e
SC
10443
10444
10445
10446 echo "saving argument cache $wx_arg_cache_file"
10447 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10448
10449
10450
10451echo "$as_me:$LINENO: checking for toolkit" >&5
10452echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10453
10454# In Wine, we need to default to MSW, not GTK or MOTIF
10455if test "$wxUSE_WINE" = "yes"; then
10456 DEFAULT_DEFAULT_wxUSE_GTK=0
10457 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10458 DEFAULT_DEFAULT_wxUSE_MSW=1
10459 wxUSE_SHARED=no
10460fi
10461
f597b41c 10462
a848cd7e
SC
10463if test "$wxUSE_GUI" = "yes"; then
10464
10465 if test "$USE_BEOS" = 1; then
10466 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10467echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10468 { (exit 1); exit 1; }; }
10469 fi
10470
10471 if test "$TOOLKIT_GIVEN" = 1; then
10472 for toolkit in `echo $ALL_TOOLKITS`; do
10473 var=wxUSE_$toolkit
10474 eval "value=\$${var}"
f34ca037
MW
10475 if test "x$value" = "xno"; then
10476 eval "$var=0"
10477 elif test "x$value" != "x"; then
10478 eval "$var=1"
10479 fi
10480
10481 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10482 eval "wx${toolkit}_VERSION=$value"
10483 fi
a848cd7e
SC
10484 done
10485 else
10486 for toolkit in `echo $ALL_TOOLKITS`; do
10487 if test "$has_toolkit_in_cache" != 1; then
10488 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10489 else
10490 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10491
10492 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10493 if test "x$version" != "x"; then
10494 eval "wx${toolkit}_VERSION=$version"
10495 fi
a848cd7e
SC
10496 fi
10497 eval "wxUSE_$toolkit=\$${var}"
10498 done
10499 fi
10500
10501 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10502 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10503 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10504
10505 case "${host}" in
10506 *-pc-os2_emx | *-pc-os2-emx )
10507 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10508 esac
10509
10510 case "$NUM_TOOLKITS" in
10511 1)
10512 ;;
10513 0)
10514 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10515echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10516 { (exit 1); exit 1; }; }
10517 ;;
10518 *)
10519 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10520echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10521 { (exit 1); exit 1; }; }
10522 esac
10523
f34ca037
MW
10524 # to be removed when --disable-gtk2 isn't needed
10525 if test "x$wxUSE_GTK2" = "xyes"; then
10526 wxGTK_VERSION=2
10527 elif test "x$wxUSE_GTK2" = "xno"; then
10528 wxGTK_VERSION=1
10529 fi
10530
a848cd7e
SC
10531 for toolkit in `echo $ALL_TOOLKITS`; do
10532 var=wxUSE_$toolkit
10533 eval "value=\$${var}"
10534 if test "x$value" != x; then
10535 cache_var=CACHE_$toolkit
10536 eval "cache=\$${cache_var}"
10537 if test "$cache" = 1; then
10538 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10539 eval "version=\$wx${toolkit}_VERSION"
10540 if test "x$version" != "x"; then
10541 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10542 fi
a848cd7e
SC
10543 fi
10544 if test "$value" = 1; then
10545 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10546 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10547echo "${ECHO_T}$toolkit_echo" >&6
10548 fi
10549 fi
10550 done
10551else
10552 if test "x$host_alias" != "x"; then
10553 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10554echo "${ECHO_T}base ($host_alias hosted) only" >&6
10555 else
10556 echo "$as_me:$LINENO: result: base only" >&5
10557echo "${ECHO_T}base only" >&6
10558 fi
10559fi
10560
10561wants_win32=0
10562doesnt_want_win32=0
10563case "${host}" in
10564 *-*-cygwin*)
10565 if test "$wxUSE_MSW" = 1 ; then
10566 wants_win32=1
10567 else
10568 doesnt_want_win32=1
10569 fi
10570 ;;
10571 *-*-mingw*)
10572 wants_win32=1
10573 ;;
10574esac
10575
10576if test "$wxUSE_WINE" = "yes"; then
10577 wants_win32=1
10578 CC=winegcc
10579 CXX=wineg++
10580 RESCOMP=wrc
10581 LDFLAGS_GUI="-mwindows"
10582fi
10583
10584if test "$wants_win32" = 1 ; then
10585 USE_UNIX=0
10586 USE_WIN32=1
10587 cat >>confdefs.h <<\_ACEOF
10588#define __WIN32__ 1
10589_ACEOF
10590
10591 cat >>confdefs.h <<\_ACEOF
10592#define __WIN95__ 1
10593_ACEOF
10594
10595 cat >>confdefs.h <<\_ACEOF
10596#define __WINDOWS__ 1
10597_ACEOF
10598
10599 cat >>confdefs.h <<\_ACEOF
10600#define __GNUWIN32__ 1
10601_ACEOF
10602
10603 cat >>confdefs.h <<\_ACEOF
10604#define STRICT 1
10605_ACEOF
10606
10607 cat >>confdefs.h <<\_ACEOF
10608#define WINVER 0x0400
10609_ACEOF
10610
10611fi
10612if test "$doesnt_want_win32" = 1 ; then
10613 USE_UNIX=1
10614 USE_WIN32=0
10615fi
10616
10617if test "$USE_UNIX" = 1 ; then
10618 wxUSE_UNIX=yes
10619 cat >>confdefs.h <<\_ACEOF
10620#define __UNIX__ 1
10621_ACEOF
10622
10623fi
10624
10625
10626cat >confcache <<\_ACEOF
10627# This file is a shell script that caches the results of configure
10628# tests run on this system so they can be shared between configure
10629# scripts and configure runs, see configure's option --config-cache.
10630# It is not useful on other systems. If it contains results you don't
10631# want to keep, you may remove or edit it.
10632#
10633# config.status only pays attention to the cache file if you give it
10634# the --recheck option to rerun configure.
10635#
10636# `ac_cv_env_foo' variables (set or unset) will be overridden when
10637# loading this file, other *unset* `ac_cv_foo' will be assigned the
10638# following values.
10639
10640_ACEOF
10641
10642# The following way of writing the cache mishandles newlines in values,
10643# but we know of no workaround that is simple, portable, and efficient.
10644# So, don't put newlines in cache variables' values.
10645# Ultrix sh set writes to stderr and can't be redirected directly,
10646# and sets the high bit in the cache file unless we assign to the vars.
10647{
10648 (set) 2>&1 |
10649 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10650 *ac_space=\ *)
10651 # `set' does not quote correctly, so add quotes (double-quote
10652 # substitution turns \\\\ into \\, and sed turns \\ into \).
10653 sed -n \
ac1cb8d3
VS
10654 "s/'/'\\\\''/g;
10655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10656 ;;
10657 *)
10658 # `set' quotes correctly as required by POSIX, so do not add quotes.
10659 sed -n \
ac1cb8d3 10660 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10661 ;;
10662 esac;
10663} |
10664 sed '
10665 t clear
10666 : clear
10667 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10668 t end
10669 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10670 : end' >>confcache
10671if diff $cache_file confcache >/dev/null 2>&1; then :; else
10672 if test -w $cache_file; then
10673 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10674 cat confcache >$cache_file
10675 else
10676 echo "not updating unwritable cache $cache_file"
10677 fi
10678fi
10679rm -f confcache
10680
10681if test "$build" != "$host" ; then
1e9e8aba 10682 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10683 CC=$host_alias-gcc
10684 CXX=$host_alias-c++
10685 AR=$host_alias-ar
10686 RANLIB=$host_alias-ranlib
10687 DLLTOOL=$host_alias-dlltool
10688 RESCOMP=$host_alias-windres
a848cd7e 10689 STRIP=$host_alias-strip
1e9e8aba
DE
10690 elif test "x$CC" '!=' "x"; then
10691 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10692 else
10693 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10694echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10695 { (exit 1); exit 1; }; }
10696 fi
10697fi
10698
10699CFLAGS=${CFLAGS:=}
6dcfc289
DE
10700
10701
10702 ac_ext=c
a848cd7e
SC
10703ac_cpp='$CPP $CPPFLAGS'
10704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706ac_compiler_gnu=$ac_cv_c_compiler_gnu
10707if test -n "$ac_tool_prefix"; then
10708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10709set dummy ${ac_tool_prefix}gcc; ac_word=$2
10710echo "$as_me:$LINENO: checking for $ac_word" >&5
10711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10712if test "${ac_cv_prog_CC+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714else
10715 if test -n "$CC"; then
10716 ac_cv_prog_CC="$CC" # Let the user override the test.
10717else
10718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719for as_dir in $PATH
10720do
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 break 2
10728 fi
10729done
10730done
10731
10732fi
10733fi
10734CC=$ac_cv_prog_CC
10735if test -n "$CC"; then
10736 echo "$as_me:$LINENO: result: $CC" >&5
10737echo "${ECHO_T}$CC" >&6
10738else
10739 echo "$as_me:$LINENO: result: no" >&5
10740echo "${ECHO_T}no" >&6
10741fi
10742
10743fi
10744if test -z "$ac_cv_prog_CC"; then
10745 ac_ct_CC=$CC
10746 # Extract the first word of "gcc", so it can be a program name with args.
10747set dummy gcc; ac_word=$2
10748echo "$as_me:$LINENO: checking for $ac_word" >&5
10749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752else
10753 if test -n "$ac_ct_CC"; then
10754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10755else
10756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757for as_dir in $PATH
10758do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_prog_ac_ct_CC="gcc"
10764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10766 fi
10767done
10768done
10769
10770fi
10771fi
10772ac_ct_CC=$ac_cv_prog_ac_ct_CC
10773if test -n "$ac_ct_CC"; then
10774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10775echo "${ECHO_T}$ac_ct_CC" >&6
10776else
10777 echo "$as_me:$LINENO: result: no" >&5
10778echo "${ECHO_T}no" >&6
10779fi
10780
10781 CC=$ac_ct_CC
10782else
10783 CC="$ac_cv_prog_CC"
10784fi
10785
10786if test -z "$CC"; then
10787 if test -n "$ac_tool_prefix"; then
10788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10789set dummy ${ac_tool_prefix}cc; ac_word=$2
10790echo "$as_me:$LINENO: checking for $ac_word" >&5
10791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10792if test "${ac_cv_prog_CC+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794else
10795 if test -n "$CC"; then
10796 ac_cv_prog_CC="$CC" # Let the user override the test.
10797else
10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH
10800do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10805 ac_cv_prog_CC="${ac_tool_prefix}cc"
10806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 break 2
10808 fi
10809done
10810done
10811
10812fi
10813fi
10814CC=$ac_cv_prog_CC
10815if test -n "$CC"; then
10816 echo "$as_me:$LINENO: result: $CC" >&5
10817echo "${ECHO_T}$CC" >&6
10818else
10819 echo "$as_me:$LINENO: result: no" >&5
10820echo "${ECHO_T}no" >&6
10821fi
10822
10823fi
10824if test -z "$ac_cv_prog_CC"; then
10825 ac_ct_CC=$CC
10826 # Extract the first word of "cc", so it can be a program name with args.
10827set dummy cc; ac_word=$2
10828echo "$as_me:$LINENO: checking for $ac_word" >&5
10829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10830if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10832else
10833 if test -n "$ac_ct_CC"; then
10834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10835else
10836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837for as_dir in $PATH
10838do
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843 ac_cv_prog_ac_ct_CC="cc"
10844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10846 fi
10847done
10848done
10849
10850fi
10851fi
10852ac_ct_CC=$ac_cv_prog_ac_ct_CC
10853if test -n "$ac_ct_CC"; then
10854 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10855echo "${ECHO_T}$ac_ct_CC" >&6
10856else
10857 echo "$as_me:$LINENO: result: no" >&5
10858echo "${ECHO_T}no" >&6
10859fi
10860
10861 CC=$ac_ct_CC
10862else
10863 CC="$ac_cv_prog_CC"
10864fi
10865
10866fi
10867if test -z "$CC"; then
10868 # Extract the first word of "cc", so it can be a program name with args.
10869set dummy cc; ac_word=$2
10870echo "$as_me:$LINENO: checking for $ac_word" >&5
10871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10872if test "${ac_cv_prog_CC+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874else
10875 if test -n "$CC"; then
10876 ac_cv_prog_CC="$CC" # Let the user override the test.
10877else
10878 ac_prog_rejected=no
10879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880for as_dir in $PATH
10881do
10882 IFS=$as_save_IFS
10883 test -z "$as_dir" && as_dir=.
10884 for ac_exec_ext in '' $ac_executable_extensions; do
10885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10887 ac_prog_rejected=yes
10888 continue
10889 fi
10890 ac_cv_prog_CC="cc"
10891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10893 fi
10894done
10895done
10896
10897if test $ac_prog_rejected = yes; then
10898 # We found a bogon in the path, so make sure we never use it.
10899 set dummy $ac_cv_prog_CC
10900 shift
10901 if test $# != 0; then
10902 # We chose a different compiler from the bogus one.
10903 # However, it has the same basename, so the bogon will be chosen
10904 # first if we set CC to just the basename; use the full file name.
10905 shift
10906 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10907 fi
10908fi
10909fi
10910fi
10911CC=$ac_cv_prog_CC
10912if test -n "$CC"; then
10913 echo "$as_me:$LINENO: result: $CC" >&5
10914echo "${ECHO_T}$CC" >&6
10915else
10916 echo "$as_me:$LINENO: result: no" >&5
10917echo "${ECHO_T}no" >&6
10918fi
10919
10920fi
10921if test -z "$CC"; then
10922 if test -n "$ac_tool_prefix"; then
10923 for ac_prog in cl
10924 do
10925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10926set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10927echo "$as_me:$LINENO: checking for $ac_word" >&5
10928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10929if test "${ac_cv_prog_CC+set}" = set; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931else
10932 if test -n "$CC"; then
10933 ac_cv_prog_CC="$CC" # Let the user override the test.
10934else
10935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936for as_dir in $PATH
10937do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10942 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 break 2
10945 fi
10946done
10947done
10948
10949fi
10950fi
10951CC=$ac_cv_prog_CC
10952if test -n "$CC"; then
10953 echo "$as_me:$LINENO: result: $CC" >&5
10954echo "${ECHO_T}$CC" >&6
10955else
10956 echo "$as_me:$LINENO: result: no" >&5
10957echo "${ECHO_T}no" >&6
10958fi
10959
10960 test -n "$CC" && break
10961 done
10962fi
10963if test -z "$CC"; then
10964 ac_ct_CC=$CC
10965 for ac_prog in cl
10966do
10967 # Extract the first word of "$ac_prog", so it can be a program name with args.
10968set dummy $ac_prog; ac_word=$2
10969echo "$as_me:$LINENO: checking for $ac_word" >&5
10970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10971if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10972 echo $ECHO_N "(cached) $ECHO_C" >&6
10973else
10974 if test -n "$ac_ct_CC"; then
10975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10976else
10977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978for as_dir in $PATH
10979do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984 ac_cv_prog_ac_ct_CC="$ac_prog"
10985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10987 fi
10988done
10989done
10990
10991fi
10992fi
10993ac_ct_CC=$ac_cv_prog_ac_ct_CC
10994if test -n "$ac_ct_CC"; then
10995 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10996echo "${ECHO_T}$ac_ct_CC" >&6
10997else
10998 echo "$as_me:$LINENO: result: no" >&5
10999echo "${ECHO_T}no" >&6
11000fi
11001
11002 test -n "$ac_ct_CC" && break
11003done
11004
11005 CC=$ac_ct_CC
11006fi
11007
11008fi
11009
11010
11011test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11012See \`config.log' for more details." >&5
11013echo "$as_me: error: no acceptable C compiler found in \$PATH
11014See \`config.log' for more details." >&2;}
11015 { (exit 1); exit 1; }; }
11016
11017# Provide some information about the compiler.
11018echo "$as_me:$LINENO:" \
11019 "checking for C compiler version" >&5
11020ac_compiler=`set X $ac_compile; echo $2`
11021{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11022 (eval $ac_compiler --version </dev/null >&5) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }
11026{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11027 (eval $ac_compiler -v </dev/null >&5) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }
11031{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11032 (eval $ac_compiler -V </dev/null >&5) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }
11036
11037cat >conftest.$ac_ext <<_ACEOF
11038/* confdefs.h. */
11039_ACEOF
11040cat confdefs.h >>conftest.$ac_ext
11041cat >>conftest.$ac_ext <<_ACEOF
11042/* end confdefs.h. */
11043
11044int
11045main ()
11046{
11047
11048 ;
11049 return 0;
11050}
11051_ACEOF
11052ac_clean_files_save=$ac_clean_files
11053ac_clean_files="$ac_clean_files a.out a.exe b.out"
11054# Try to create an executable without -o first, disregard a.out.
11055# It will help us diagnose broken compilers, and finding out an intuition
11056# of exeext.
ac1cb8d3
VS
11057echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11058echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11059ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11060if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11061 (eval $ac_link_default) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; then
11065 # Find the output, starting from the most likely. This scheme is
11066# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11067# resort.
11068
11069# Be careful to initialize this variable, since it used to be cached.
11070# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11071ac_cv_exeext=
11072# b.out is created by i960 compilers.
11073for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11074do
11075 test -f "$ac_file" || continue
11076 case $ac_file in
11077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11078 ;;
a848cd7e 11079 conftest.$ac_ext )
ac1cb8d3
VS
11080 # This is the source file.
11081 ;;
a848cd7e 11082 [ab].out )
ac1cb8d3
VS
11083 # We found the default executable, but exeext='' is most
11084 # certainly right.
11085 break;;
a848cd7e 11086 *.* )
ac1cb8d3
VS
11087 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11088 # FIXME: I believe we export ac_cv_exeext for Libtool,
11089 # but it would be cool to find out if it's true. Does anybody
11090 # maintain Libtool? --akim.
11091 export ac_cv_exeext
11092 break;;
a848cd7e 11093 * )
ac1cb8d3 11094 break;;
a848cd7e
SC
11095 esac
11096done
11097else
11098 echo "$as_me: failed program was:" >&5
11099sed 's/^/| /' conftest.$ac_ext >&5
11100
11101{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11102See \`config.log' for more details." >&5
11103echo "$as_me: error: C compiler cannot create executables
11104See \`config.log' for more details." >&2;}
11105 { (exit 77); exit 77; }; }
11106fi
11107
11108ac_exeext=$ac_cv_exeext
11109echo "$as_me:$LINENO: result: $ac_file" >&5
11110echo "${ECHO_T}$ac_file" >&6
11111
11112# Check the compiler produces executables we can run. If not, either
11113# the compiler is broken, or we cross compile.
11114echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11115echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11116# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11117# If not cross compiling, check that we can run a simple program.
11118if test "$cross_compiling" != yes; then
11119 if { ac_try='./$ac_file'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; }; then
11125 cross_compiling=no
11126 else
11127 if test "$cross_compiling" = maybe; then
11128 cross_compiling=yes
11129 else
11130 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11131If you meant to cross compile, use \`--host'.
11132See \`config.log' for more details." >&5
11133echo "$as_me: error: cannot run C compiled programs.
11134If you meant to cross compile, use \`--host'.
11135See \`config.log' for more details." >&2;}
11136 { (exit 1); exit 1; }; }
11137 fi
11138 fi
11139fi
11140echo "$as_me:$LINENO: result: yes" >&5
11141echo "${ECHO_T}yes" >&6
11142
11143rm -f a.out a.exe conftest$ac_cv_exeext b.out
11144ac_clean_files=$ac_clean_files_save
11145# Check the compiler produces executables we can run. If not, either
11146# the compiler is broken, or we cross compile.
11147echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11148echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11149echo "$as_me:$LINENO: result: $cross_compiling" >&5
11150echo "${ECHO_T}$cross_compiling" >&6
11151
11152echo "$as_me:$LINENO: checking for suffix of executables" >&5
11153echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11155 (eval $ac_link) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; then
11159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11160# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11161# work properly (i.e., refer to `conftest.exe'), while it won't with
11162# `rm'.
11163for ac_file in conftest.exe conftest conftest.*; do
11164 test -f "$ac_file" || continue
11165 case $ac_file in
11166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11168 export ac_cv_exeext
11169 break;;
a848cd7e
SC
11170 * ) break;;
11171 esac
11172done
11173else
11174 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11175See \`config.log' for more details." >&5
11176echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11177See \`config.log' for more details." >&2;}
11178 { (exit 1); exit 1; }; }
11179fi
11180
11181rm -f conftest$ac_cv_exeext
11182echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11183echo "${ECHO_T}$ac_cv_exeext" >&6
11184
11185rm -f conftest.$ac_ext
11186EXEEXT=$ac_cv_exeext
11187ac_exeext=$EXEEXT
11188echo "$as_me:$LINENO: checking for suffix of object files" >&5
11189echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11190if test "${ac_cv_objext+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192else
11193 cat >conftest.$ac_ext <<_ACEOF
11194/* confdefs.h. */
11195_ACEOF
11196cat confdefs.h >>conftest.$ac_ext
11197cat >>conftest.$ac_ext <<_ACEOF
11198/* end confdefs.h. */
11199
11200int
11201main ()
11202{
11203
11204 ;
11205 return 0;
11206}
11207_ACEOF
11208rm -f conftest.o conftest.obj
11209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11210 (eval $ac_compile) 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; then
11214 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11215 case $ac_file in
11216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11218 break;;
11219 esac
11220done
11221else
11222 echo "$as_me: failed program was:" >&5
11223sed 's/^/| /' conftest.$ac_ext >&5
11224
11225{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11226See \`config.log' for more details." >&5
11227echo "$as_me: error: cannot compute suffix of object files: cannot compile
11228See \`config.log' for more details." >&2;}
11229 { (exit 1); exit 1; }; }
11230fi
11231
11232rm -f conftest.$ac_cv_objext conftest.$ac_ext
11233fi
11234echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11235echo "${ECHO_T}$ac_cv_objext" >&6
11236OBJEXT=$ac_cv_objext
11237ac_objext=$OBJEXT
11238echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11239echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11240if test "${ac_cv_c_compiler_gnu+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242else
11243 cat >conftest.$ac_ext <<_ACEOF
11244/* confdefs.h. */
11245_ACEOF
11246cat confdefs.h >>conftest.$ac_ext
11247cat >>conftest.$ac_ext <<_ACEOF
11248/* end confdefs.h. */
11249
11250int
11251main ()
11252{
11253#ifndef __GNUC__
11254 choke me
11255#endif
11256
11257 ;
11258 return 0;
11259}
11260_ACEOF
11261rm -f conftest.$ac_objext
11262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11263 (eval $ac_compile) 2>conftest.er1
a848cd7e 11264 ac_status=$?
ac1cb8d3
VS
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
a848cd7e
SC
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } &&
fb00f58d
JS
11270 { ac_try='test -z "$ac_c_werror_flag"
11271 || test ! -s conftest.err'
ac1cb8d3
VS
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; } &&
11277 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
11283 ac_compiler_gnu=yes
11284else
11285 echo "$as_me: failed program was:" >&5
11286sed 's/^/| /' conftest.$ac_ext >&5
11287
11288ac_compiler_gnu=no
11289fi
ac1cb8d3 11290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11291ac_cv_c_compiler_gnu=$ac_compiler_gnu
11292
11293fi
11294echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11295echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11296GCC=`test $ac_compiler_gnu = yes && echo yes`
11297ac_test_CFLAGS=${CFLAGS+set}
11298ac_save_CFLAGS=$CFLAGS
52ada004 11299CFLAGS="-g"
a848cd7e
SC
11300echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11301echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11302if test "${ac_cv_prog_cc_g+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11304else
11305 cat >conftest.$ac_ext <<_ACEOF
11306/* confdefs.h. */
11307_ACEOF
11308cat confdefs.h >>conftest.$ac_ext
11309cat >>conftest.$ac_ext <<_ACEOF
11310/* end confdefs.h. */
11311
11312int
11313main ()
11314{
11315
11316 ;
11317 return 0;
11318}
11319_ACEOF
11320rm -f conftest.$ac_objext
11321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11322 (eval $ac_compile) 2>conftest.er1
a848cd7e 11323 ac_status=$?
ac1cb8d3
VS
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
a848cd7e
SC
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
fb00f58d
JS
11329 { ac_try='test -z "$ac_c_werror_flag"
11330 || test ! -s conftest.err'
ac1cb8d3
VS
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; } &&
11336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 ac_cv_prog_cc_g=yes
11343else
11344 echo "$as_me: failed program was:" >&5
11345sed 's/^/| /' conftest.$ac_ext >&5
11346
11347ac_cv_prog_cc_g=no
11348fi
ac1cb8d3 11349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11350fi
11351echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11352echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11353if test "$ac_test_CFLAGS" = set; then
11354 CFLAGS=$ac_save_CFLAGS
11355elif test $ac_cv_prog_cc_g = yes; then
11356 if test "$GCC" = yes; then
11357 CFLAGS="-g -O2"
11358 else
11359 CFLAGS="-g"
11360 fi
11361else
11362 if test "$GCC" = yes; then
11363 CFLAGS="-O2"
11364 else
11365 CFLAGS=
11366 fi
11367fi
11368echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11369echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11370if test "${ac_cv_prog_cc_stdc+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11372else
11373 ac_cv_prog_cc_stdc=no
11374ac_save_CC=$CC
11375cat >conftest.$ac_ext <<_ACEOF
11376/* confdefs.h. */
11377_ACEOF
11378cat confdefs.h >>conftest.$ac_ext
11379cat >>conftest.$ac_ext <<_ACEOF
11380/* end confdefs.h. */
11381#include <stdarg.h>
11382#include <stdio.h>
11383#include <sys/types.h>
11384#include <sys/stat.h>
11385/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11386struct buf { int x; };
11387FILE * (*rcsopen) (struct buf *, struct stat *, int);
11388static char *e (p, i)
11389 char **p;
11390 int i;
11391{
11392 return p[i];
11393}
11394static char *f (char * (*g) (char **, int), char **p, ...)
11395{
11396 char *s;
11397 va_list v;
11398 va_start (v,p);
11399 s = g (p, va_arg (v,int));
11400 va_end (v);
11401 return s;
11402}
ac1cb8d3
VS
11403
11404/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11405 function prototypes and stuff, but not '\xHH' hex character constants.
11406 These don't provoke an error unfortunately, instead are silently treated
11407 as 'x'. The following induces an error, until -std1 is added to get
11408 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11409 array size at least. It's necessary to write '\x00'==0 to get something
11410 that's true only with -std1. */
11411int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11412
a848cd7e
SC
11413int test (int i, double x);
11414struct s1 {int (*f) (int a);};
11415struct s2 {int (*f) (double a);};
11416int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11417int argc;
11418char **argv;
11419int
11420main ()
11421{
11422return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11423 ;
11424 return 0;
11425}
11426_ACEOF
11427# Don't try gcc -ansi; that turns off useful extensions and
11428# breaks some systems' header files.
11429# AIX -qlanglvl=ansi
11430# Ultrix and OSF/1 -std1
11431# HP-UX 10.20 and later -Ae
11432# HP-UX older versions -Aa -D_HPUX_SOURCE
11433# SVR4 -Xc -D__EXTENSIONS__
11434for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11435do
11436 CC="$ac_save_CC $ac_arg"
11437 rm -f conftest.$ac_objext
11438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11439 (eval $ac_compile) 2>conftest.er1
a848cd7e 11440 ac_status=$?
ac1cb8d3
VS
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
a848cd7e
SC
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
fb00f58d
JS
11446 { ac_try='test -z "$ac_c_werror_flag"
11447 || test ! -s conftest.err'
ac1cb8d3
VS
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 ac_cv_prog_cc_stdc=$ac_arg
11460break
11461else
11462 echo "$as_me: failed program was:" >&5
11463sed 's/^/| /' conftest.$ac_ext >&5
11464
11465fi
ac1cb8d3 11466rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11467done
11468rm -f conftest.$ac_ext conftest.$ac_objext
11469CC=$ac_save_CC
11470
11471fi
11472
11473case "x$ac_cv_prog_cc_stdc" in
11474 x|xno)
11475 echo "$as_me:$LINENO: result: none needed" >&5
11476echo "${ECHO_T}none needed" >&6 ;;
11477 *)
11478 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11479echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11480 CC="$CC $ac_cv_prog_cc_stdc" ;;
11481esac
11482
11483# Some people use a C++ compiler to compile C. Since we use `exit',
11484# in C++ we need to declare it. In case someone uses the same compiler
11485# for both compiling C and C++ we need to have the C++ compiler decide
11486# the declaration of exit, since it's the most demanding environment.
11487cat >conftest.$ac_ext <<_ACEOF
11488#ifndef __cplusplus
11489 choke me
11490#endif
11491_ACEOF
11492rm -f conftest.$ac_objext
11493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11494 (eval $ac_compile) 2>conftest.er1
a848cd7e 11495 ac_status=$?
ac1cb8d3
VS
11496 grep -v '^ *+' conftest.er1 >conftest.err
11497 rm -f conftest.er1
11498 cat conftest.err >&5
a848cd7e
SC
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
fb00f58d
JS
11501 { ac_try='test -z "$ac_c_werror_flag"
11502 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
11508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 for ac_declaration in \
ac1cb8d3 11515 '' \
a848cd7e
SC
11516 'extern "C" void std::exit (int) throw (); using std::exit;' \
11517 'extern "C" void std::exit (int); using std::exit;' \
11518 'extern "C" void exit (int) throw ();' \
11519 'extern "C" void exit (int);' \
11520 'void exit (int);'
11521do
11522 cat >conftest.$ac_ext <<_ACEOF
11523/* confdefs.h. */
11524_ACEOF
11525cat confdefs.h >>conftest.$ac_ext
11526cat >>conftest.$ac_ext <<_ACEOF
11527/* end confdefs.h. */
de59c161 11528$ac_declaration
ac1cb8d3 11529#include <stdlib.h>
a848cd7e
SC
11530int
11531main ()
11532{
11533exit (42);
11534 ;
11535 return 0;
11536}
11537_ACEOF
11538rm -f conftest.$ac_objext
11539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11540 (eval $ac_compile) 2>conftest.er1
a848cd7e 11541 ac_status=$?
ac1cb8d3
VS
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
a848cd7e
SC
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
fb00f58d
JS
11547 { ac_try='test -z "$ac_c_werror_flag"
11548 || test ! -s conftest.err'
ac1cb8d3
VS
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; } &&
11554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 :
11561else
11562 echo "$as_me: failed program was:" >&5
11563sed 's/^/| /' conftest.$ac_ext >&5
11564
11565continue
11566fi
ac1cb8d3 11567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11568 cat >conftest.$ac_ext <<_ACEOF
11569/* confdefs.h. */
11570_ACEOF
11571cat confdefs.h >>conftest.$ac_ext
11572cat >>conftest.$ac_ext <<_ACEOF
11573/* end confdefs.h. */
11574$ac_declaration
11575int
11576main ()
11577{
11578exit (42);
11579 ;
11580 return 0;
11581}
11582_ACEOF
11583rm -f conftest.$ac_objext
11584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11585 (eval $ac_compile) 2>conftest.er1
a848cd7e 11586 ac_status=$?
ac1cb8d3
VS
11587 grep -v '^ *+' conftest.er1 >conftest.err
11588 rm -f conftest.er1
11589 cat conftest.err >&5
a848cd7e
SC
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
fb00f58d
JS
11592 { ac_try='test -z "$ac_c_werror_flag"
11593 || test ! -s conftest.err'
ac1cb8d3
VS
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; } &&
11599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11605 break
11606else
11607 echo "$as_me: failed program was:" >&5
11608sed 's/^/| /' conftest.$ac_ext >&5
11609
11610fi
ac1cb8d3 11611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11612done
11613rm -f conftest*
11614if test -n "$ac_declaration"; then
11615 echo '#ifdef __cplusplus' >>confdefs.h
11616 echo $ac_declaration >>confdefs.h
11617 echo '#endif' >>confdefs.h
11618fi
11619
11620else
11621 echo "$as_me: failed program was:" >&5
11622sed 's/^/| /' conftest.$ac_ext >&5
11623
11624fi
ac1cb8d3 11625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11626ac_ext=c
11627ac_cpp='$CPP $CPPFLAGS'
11628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11630ac_compiler_gnu=$ac_cv_c_compiler_gnu
11631
6dcfc289 11632 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11633echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11634if test "${wx_cv_c_exto+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11636else
11637 cat >conftest.$ac_ext <<_ACEOF
11638/* confdefs.h. */
11639_ACEOF
11640cat confdefs.h >>conftest.$ac_ext
11641cat >>conftest.$ac_ext <<_ACEOF
11642/* end confdefs.h. */
11643
11644int
11645main ()
11646{
11647
11648 ;
11649 return 0;
11650}
11651_ACEOF
11652rm -f conftest.$ac_objext conftest.$ac_ext.o
11653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11654 (eval $ac_compile) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; then
11658 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11659 case $ac_file in
11660 conftest.$ac_ext.o)
11661 wx_cv_c_exto="-ext o"
11662 ;;
11663 *)
11664 ;;
11665 esac
11666done
11667else
11668 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11669See \`config.log' for more details." >&5
11670echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11671See \`config.log' for more details." >&2;}
11672 { (exit 1); exit 1; }; }
11673
11674fi
11675
11676rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11677
11678fi
11679echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11680echo "${ECHO_T}$wx_cv_c_exto" >&6
11681if test "x$wx_cv_c_exto" '!=' "x"; then
11682 if test "c" = "c"; then
11683 CFLAGS="$wx_cv_c_exto $CFLAGS"
11684 fi
11685 if test "c" = "cxx"; then
11686 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11687 fi
11688fi
11689
6dcfc289
DE
11690 if test "x$wx_cv_c_exto" '!=' "x"; then
11691 unset ac_cv_prog_cc_g
11692 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11693ac_save_CFLAGS=$CFLAGS
52ada004 11694CFLAGS="-g"
480ccd21
DE
11695echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11696echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11697if test "${ac_cv_prog_cc_g+set}" = set; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11699else
11700 cat >conftest.$ac_ext <<_ACEOF
11701/* confdefs.h. */
11702_ACEOF
11703cat confdefs.h >>conftest.$ac_ext
11704cat >>conftest.$ac_ext <<_ACEOF
11705/* end confdefs.h. */
11706
11707int
11708main ()
11709{
11710
11711 ;
11712 return 0;
11713}
11714_ACEOF
11715rm -f conftest.$ac_objext
11716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11717 (eval $ac_compile) 2>conftest.er1
11718 ac_status=$?
11719 grep -v '^ *+' conftest.er1 >conftest.err
11720 rm -f conftest.er1
11721 cat conftest.err >&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } &&
fb00f58d
JS
11724 { ac_try='test -z "$ac_c_werror_flag"
11725 || test ! -s conftest.err'
480ccd21
DE
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; } &&
11731 { ac_try='test -s conftest.$ac_objext'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; }; then
11737 ac_cv_prog_cc_g=yes
11738else
11739 echo "$as_me: failed program was:" >&5
11740sed 's/^/| /' conftest.$ac_ext >&5
11741
11742ac_cv_prog_cc_g=no
11743fi
11744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11745fi
11746echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11747echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11748if test "$ac_test_CFLAGS" = set; then
11749 CFLAGS=$ac_save_CFLAGS
11750elif test $ac_cv_prog_cc_g = yes; then
11751 if test "$GCC" = yes; then
11752 CFLAGS="-g -O2"
11753 else
11754 CFLAGS="-g"
11755 fi
11756else
11757 if test "$GCC" = yes; then
11758 CFLAGS="-O2"
11759 else
11760 CFLAGS=
11761 fi
11762fi
6dcfc289
DE
11763 fi
11764 ac_ext=c
95986553
DE
11765ac_cpp='$CPP $CPPFLAGS'
11766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11768ac_compiler_gnu=$ac_cv_c_compiler_gnu
11769
11770echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11771echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11772if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11774else
11775 cat >conftest.$ac_ext <<_ACEOF
11776/* confdefs.h. */
11777_ACEOF
11778cat confdefs.h >>conftest.$ac_ext
11779cat >>conftest.$ac_ext <<_ACEOF
11780/* end confdefs.h. */
11781
11782int
11783main ()
11784{
11785#ifndef __MWERKS__
11786 choke me
11787#endif
11788
11789 ;
11790 return 0;
11791}
11792_ACEOF
11793rm -f conftest.$ac_objext
11794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11795 (eval $ac_compile) 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
fb00f58d
JS
11802 { ac_try='test -z "$ac_c_werror_flag"
11803 || test ! -s conftest.err'
95986553
DE
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest.$ac_objext'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; }; then
11815 bakefile_compiler_mwerks=yes
11816else
11817 echo "$as_me: failed program was:" >&5
11818sed 's/^/| /' conftest.$ac_ext >&5
11819
11820bakefile_compiler_mwerks=no
11821fi
11822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11823 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11824
11825fi
11826echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11827echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11828
0e6fa1d9 11829MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11830ac_ext=c
11831ac_cpp='$CPP $CPPFLAGS'
11832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11834ac_compiler_gnu=$ac_cv_c_compiler_gnu
11835
11836
6dcfc289 11837 ac_ext=c
9273ffba
DE
11838ac_cpp='$CPP $CPPFLAGS'
11839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11841ac_compiler_gnu=$ac_cv_c_compiler_gnu
11842
11843echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11844echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11845if test "${wx_cv_c_compiler_xlc+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11847else
11848 cat >conftest.$ac_ext <<_ACEOF
11849/* confdefs.h. */
11850_ACEOF
11851cat confdefs.h >>conftest.$ac_ext
11852cat >>conftest.$ac_ext <<_ACEOF
11853/* end confdefs.h. */
11854
11855int
11856main ()
11857{
11858#ifndef __xlC__
11859 choke me
11860#endif
11861
11862 ;
11863 return 0;
11864}
11865_ACEOF
11866rm -f conftest.$ac_objext
11867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868 (eval $ac_compile) 2>conftest.er1
11869 ac_status=$?
11870 grep -v '^ *+' conftest.er1 >conftest.err
11871 rm -f conftest.er1
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } &&
fb00f58d
JS
11875 { ac_try='test -z "$ac_c_werror_flag"
11876 || test ! -s conftest.err'
9273ffba
DE
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest.$ac_objext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 wx_compiler_xlc=yes
11889else
11890 echo "$as_me: failed program was:" >&5
11891sed 's/^/| /' conftest.$ac_ext >&5
11892
11893wx_compiler_xlc=no
11894fi
11895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11896 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11897
11898fi
11899echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11900echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11901
0e6fa1d9 11902XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11903ac_ext=c
11904ac_cpp='$CPP $CPPFLAGS'
11905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11907ac_compiler_gnu=$ac_cv_c_compiler_gnu
11908
11909
a848cd7e 11910
6dcfc289 11911
a848cd7e
SC
11912ac_ext=c
11913ac_cpp='$CPP $CPPFLAGS'
11914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11916ac_compiler_gnu=$ac_cv_c_compiler_gnu
11917echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11918echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11919# On Suns, sometimes $CPP names a directory.
11920if test -n "$CPP" && test -d "$CPP"; then
11921 CPP=
11922fi
11923if test -z "$CPP"; then
11924 if test "${ac_cv_prog_CPP+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11926else
11927 # Double quotes because CPP needs to be expanded
11928 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11929 do
11930 ac_preproc_ok=false
11931for ac_c_preproc_warn_flag in '' yes
11932do
11933 # Use a header file that comes with gcc, so configuring glibc
11934 # with a fresh cross-compiler works.
11935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11936 # <limits.h> exists even on freestanding compilers.
11937 # On the NeXT, cc -E runs the code through the compiler's parser,
11938 # not just through cpp. "Syntax error" is here to catch this case.
11939 cat >conftest.$ac_ext <<_ACEOF
11940/* confdefs.h. */
11941_ACEOF
11942cat confdefs.h >>conftest.$ac_ext
11943cat >>conftest.$ac_ext <<_ACEOF
11944/* end confdefs.h. */
11945#ifdef __STDC__
11946# include <limits.h>
11947#else
11948# include <assert.h>
11949#endif
ac1cb8d3 11950 Syntax error
a848cd7e
SC
11951_ACEOF
11952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11954 ac_status=$?
11955 grep -v '^ *+' conftest.er1 >conftest.err
11956 rm -f conftest.er1
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } >/dev/null; then
11960 if test -s conftest.err; then
11961 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11963 else
11964 ac_cpp_err=
11965 fi
11966else
11967 ac_cpp_err=yes
11968fi
11969if test -z "$ac_cpp_err"; then
11970 :
11971else
11972 echo "$as_me: failed program was:" >&5
11973sed 's/^/| /' conftest.$ac_ext >&5
11974
11975 # Broken: fails on valid input.
11976continue
11977fi
11978rm -f conftest.err conftest.$ac_ext
11979
11980 # OK, works on sane cases. Now check whether non-existent headers
11981 # can be detected and how.
11982 cat >conftest.$ac_ext <<_ACEOF
11983/* confdefs.h. */
11984_ACEOF
11985cat confdefs.h >>conftest.$ac_ext
11986cat >>conftest.$ac_ext <<_ACEOF
11987/* end confdefs.h. */
11988#include <ac_nonexistent.h>
11989_ACEOF
11990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11992 ac_status=$?
11993 grep -v '^ *+' conftest.er1 >conftest.err
11994 rm -f conftest.er1
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } >/dev/null; then
11998 if test -s conftest.err; then
11999 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12001 else
12002 ac_cpp_err=
12003 fi
12004else
12005 ac_cpp_err=yes
12006fi
12007if test -z "$ac_cpp_err"; then
12008 # Broken: success on invalid input.
12009continue
12010else
12011 echo "$as_me: failed program was:" >&5
12012sed 's/^/| /' conftest.$ac_ext >&5
12013
12014 # Passes both tests.
12015ac_preproc_ok=:
12016break
12017fi
12018rm -f conftest.err conftest.$ac_ext
12019
12020done
12021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12022rm -f conftest.err conftest.$ac_ext
12023if $ac_preproc_ok; then
12024 break
12025fi
12026
12027 done
12028 ac_cv_prog_CPP=$CPP
12029
12030fi
12031 CPP=$ac_cv_prog_CPP
12032else
12033 ac_cv_prog_CPP=$CPP
12034fi
12035echo "$as_me:$LINENO: result: $CPP" >&5
12036echo "${ECHO_T}$CPP" >&6
12037ac_preproc_ok=false
12038for ac_c_preproc_warn_flag in '' yes
12039do
12040 # Use a header file that comes with gcc, so configuring glibc
12041 # with a fresh cross-compiler works.
12042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12043 # <limits.h> exists even on freestanding compilers.
12044 # On the NeXT, cc -E runs the code through the compiler's parser,
12045 # not just through cpp. "Syntax error" is here to catch this case.
12046 cat >conftest.$ac_ext <<_ACEOF
12047/* confdefs.h. */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h. */
12052#ifdef __STDC__
12053# include <limits.h>
12054#else
12055# include <assert.h>
12056#endif
ac1cb8d3 12057 Syntax error
a848cd7e
SC
12058_ACEOF
12059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } >/dev/null; then
12067 if test -s conftest.err; then
12068 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12070 else
12071 ac_cpp_err=
12072 fi
12073else
12074 ac_cpp_err=yes
12075fi
12076if test -z "$ac_cpp_err"; then
12077 :
12078else
12079 echo "$as_me: failed program was:" >&5
12080sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 # Broken: fails on valid input.
12083continue
12084fi
12085rm -f conftest.err conftest.$ac_ext
12086
12087 # OK, works on sane cases. Now check whether non-existent headers
12088 # can be detected and how.
12089 cat >conftest.$ac_ext <<_ACEOF
12090/* confdefs.h. */
12091_ACEOF
12092cat confdefs.h >>conftest.$ac_ext
12093cat >>conftest.$ac_ext <<_ACEOF
12094/* end confdefs.h. */
12095#include <ac_nonexistent.h>
12096_ACEOF
12097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } >/dev/null; then
12105 if test -s conftest.err; then
12106 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12108 else
12109 ac_cpp_err=
12110 fi
12111else
12112 ac_cpp_err=yes
12113fi
12114if test -z "$ac_cpp_err"; then
12115 # Broken: success on invalid input.
12116continue
12117else
12118 echo "$as_me: failed program was:" >&5
12119sed 's/^/| /' conftest.$ac_ext >&5
12120
12121 # Passes both tests.
12122ac_preproc_ok=:
12123break
12124fi
12125rm -f conftest.err conftest.$ac_ext
12126
12127done
12128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12129rm -f conftest.err conftest.$ac_ext
12130if $ac_preproc_ok; then
12131 :
12132else
12133 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12134See \`config.log' for more details." >&5
12135echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12136See \`config.log' for more details." >&2;}
12137 { (exit 1); exit 1; }; }
12138fi
12139
12140ac_ext=c
12141ac_cpp='$CPP $CPPFLAGS'
12142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12144ac_compiler_gnu=$ac_cv_c_compiler_gnu
12145
12146
12147echo "$as_me:$LINENO: checking for egrep" >&5
12148echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12149if test "${ac_cv_prog_egrep+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151else
12152 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12153 then ac_cv_prog_egrep='grep -E'
12154 else ac_cv_prog_egrep='egrep'
12155 fi
12156fi
12157echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12158echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12159 EGREP=$ac_cv_prog_egrep
12160
12161
12162if test $ac_cv_c_compiler_gnu = yes; then
12163 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12164echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12165if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167else
12168 ac_pattern="Autoconf.*'x'"
12169 cat >conftest.$ac_ext <<_ACEOF
12170/* confdefs.h. */
12171_ACEOF
12172cat confdefs.h >>conftest.$ac_ext
12173cat >>conftest.$ac_ext <<_ACEOF
12174/* end confdefs.h. */
12175#include <sgtty.h>
12176Autoconf TIOCGETP
12177_ACEOF
12178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12179 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12180 ac_cv_prog_gcc_traditional=yes
12181else
12182 ac_cv_prog_gcc_traditional=no
12183fi
12184rm -f conftest*
12185
12186
12187 if test $ac_cv_prog_gcc_traditional = no; then
12188 cat >conftest.$ac_ext <<_ACEOF
12189/* confdefs.h. */
12190_ACEOF
12191cat confdefs.h >>conftest.$ac_ext
12192cat >>conftest.$ac_ext <<_ACEOF
12193/* end confdefs.h. */
12194#include <termio.h>
12195Autoconf TCGETA
12196_ACEOF
12197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12198 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12199 ac_cv_prog_gcc_traditional=yes
12200fi
12201rm -f conftest*
12202
12203 fi
12204fi
12205echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12206echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12207 if test $ac_cv_prog_gcc_traditional = yes; then
12208 CC="$CC -traditional"
12209 fi
12210fi
12211
12212
12213
12214
12215ac_ext=cc
12216ac_cpp='$CXXCPP $CPPFLAGS'
12217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12220
12221
12222CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12223
12224
12225 ac_ext=cc
a848cd7e
SC
12226ac_cpp='$CXXCPP $CPPFLAGS'
12227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12230if test -n "$ac_tool_prefix"; then
12231 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12232 do
12233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12234set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12235echo "$as_me:$LINENO: checking for $ac_word" >&5
12236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12237if test "${ac_cv_prog_CXX+set}" = set; then
12238 echo $ECHO_N "(cached) $ECHO_C" >&6
12239else
12240 if test -n "$CXX"; then
12241 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12242else
12243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244for as_dir in $PATH
12245do
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12250 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12253 fi
12254done
12255done
12256
12257fi
12258fi
12259CXX=$ac_cv_prog_CXX
12260if test -n "$CXX"; then
12261 echo "$as_me:$LINENO: result: $CXX" >&5
12262echo "${ECHO_T}$CXX" >&6
12263else
12264 echo "$as_me:$LINENO: result: no" >&5
12265echo "${ECHO_T}no" >&6
12266fi
12267
12268 test -n "$CXX" && break
12269 done
12270fi
12271if test -z "$CXX"; then
12272 ac_ct_CXX=$CXX
12273 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12274do
12275 # Extract the first word of "$ac_prog", so it can be a program name with args.
12276set dummy $ac_prog; ac_word=$2
12277echo "$as_me:$LINENO: checking for $ac_word" >&5
12278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12279if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281else
12282 if test -n "$ac_ct_CXX"; then
12283 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12284else
12285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286for as_dir in $PATH
12287do
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292 ac_cv_prog_ac_ct_CXX="$ac_prog"
12293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12295 fi
12296done
12297done
12298
12299fi
12300fi
12301ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12302if test -n "$ac_ct_CXX"; then
12303 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12304echo "${ECHO_T}$ac_ct_CXX" >&6
12305else
12306 echo "$as_me:$LINENO: result: no" >&5
12307echo "${ECHO_T}no" >&6
12308fi
12309
12310 test -n "$ac_ct_CXX" && break
12311done
12312test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12313
12314 CXX=$ac_ct_CXX
12315fi
12316
12317
12318# Provide some information about the compiler.
12319echo "$as_me:$LINENO:" \
12320 "checking for C++ compiler version" >&5
12321ac_compiler=`set X $ac_compile; echo $2`
12322{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12323 (eval $ac_compiler --version </dev/null >&5) 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }
12327{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12328 (eval $ac_compiler -v </dev/null >&5) 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }
12332{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12333 (eval $ac_compiler -V </dev/null >&5) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }
12337
12338echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12339echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12340if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342else
12343 cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349
12350int
12351main ()
12352{
12353#ifndef __GNUC__
12354 choke me
12355#endif
12356
12357 ;
12358 return 0;
12359}
12360_ACEOF
12361rm -f conftest.$ac_objext
12362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12363 (eval $ac_compile) 2>conftest.er1
a848cd7e 12364 ac_status=$?
ac1cb8d3
VS
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
a848cd7e
SC
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
fb00f58d
JS
12370 { ac_try='test -z "$ac_cxx_werror_flag"
12371 || test ! -s conftest.err'
ac1cb8d3
VS
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_compiler_gnu=yes
12384else
12385 echo "$as_me: failed program was:" >&5
12386sed 's/^/| /' conftest.$ac_ext >&5
12387
12388ac_compiler_gnu=no
12389fi
ac1cb8d3 12390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12391ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12392
12393fi
12394echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12395echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12396GXX=`test $ac_compiler_gnu = yes && echo yes`
12397ac_test_CXXFLAGS=${CXXFLAGS+set}
12398ac_save_CXXFLAGS=$CXXFLAGS
12399CXXFLAGS="-g"
12400echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12401echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12402if test "${ac_cv_prog_cxx_g+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12404else
12405 cat >conftest.$ac_ext <<_ACEOF
12406/* confdefs.h. */
12407_ACEOF
12408cat confdefs.h >>conftest.$ac_ext
12409cat >>conftest.$ac_ext <<_ACEOF
12410/* end confdefs.h. */
12411
12412int
12413main ()
12414{
12415
12416 ;
12417 return 0;
12418}
12419_ACEOF
12420rm -f conftest.$ac_objext
12421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12422 (eval $ac_compile) 2>conftest.er1
a848cd7e 12423 ac_status=$?
ac1cb8d3
VS
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
a848cd7e
SC
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
fb00f58d
JS
12429 { ac_try='test -z "$ac_cxx_werror_flag"
12430 || test ! -s conftest.err'
ac1cb8d3
VS
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_cv_prog_cxx_g=yes
12443else
12444 echo "$as_me: failed program was:" >&5
12445sed 's/^/| /' conftest.$ac_ext >&5
12446
12447ac_cv_prog_cxx_g=no
12448fi
ac1cb8d3 12449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12450fi
12451echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12452echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12453if test "$ac_test_CXXFLAGS" = set; then
12454 CXXFLAGS=$ac_save_CXXFLAGS
12455elif test $ac_cv_prog_cxx_g = yes; then
12456 if test "$GXX" = yes; then
52ada004 12457 CXXFLAGS="-g -O2"
a848cd7e 12458 else
52ada004 12459 CXXFLAGS="-g"
a848cd7e
SC
12460 fi
12461else
12462 if test "$GXX" = yes; then
12463 CXXFLAGS="-O2"
12464 else
12465 CXXFLAGS=
12466 fi
12467fi
12468for ac_declaration in \
ac1cb8d3 12469 '' \
a848cd7e
SC
12470 'extern "C" void std::exit (int) throw (); using std::exit;' \
12471 'extern "C" void std::exit (int); using std::exit;' \
12472 'extern "C" void exit (int) throw ();' \
12473 'extern "C" void exit (int);' \
12474 'void exit (int);'
12475do
12476 cat >conftest.$ac_ext <<_ACEOF
12477/* confdefs.h. */
12478_ACEOF
12479cat confdefs.h >>conftest.$ac_ext
12480cat >>conftest.$ac_ext <<_ACEOF
12481/* end confdefs.h. */
de59c161 12482$ac_declaration
ac1cb8d3 12483#include <stdlib.h>
a848cd7e
SC
12484int
12485main ()
12486{
12487exit (42);
12488 ;
12489 return 0;
12490}
12491_ACEOF
12492rm -f conftest.$ac_objext
12493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12494 (eval $ac_compile) 2>conftest.er1
a848cd7e 12495 ac_status=$?
ac1cb8d3
VS
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
a848cd7e
SC
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
fb00f58d
JS
12501 { ac_try='test -z "$ac_cxx_werror_flag"
12502 || test ! -s conftest.err'
ac1cb8d3
VS
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } &&
12508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 :
12515else
12516 echo "$as_me: failed program was:" >&5
12517sed 's/^/| /' conftest.$ac_ext >&5
12518
12519continue
12520fi
ac1cb8d3 12521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12522 cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528$ac_declaration
12529int
12530main ()
12531{
12532exit (42);
12533 ;
12534 return 0;
12535}
12536_ACEOF
12537rm -f conftest.$ac_objext
12538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12539 (eval $ac_compile) 2>conftest.er1
a848cd7e 12540 ac_status=$?
ac1cb8d3
VS
12541 grep -v '^ *+' conftest.er1 >conftest.err
12542 rm -f conftest.er1
12543 cat conftest.err >&5
a848cd7e
SC
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
fb00f58d
JS
12546 { ac_try='test -z "$ac_cxx_werror_flag"
12547 || test ! -s conftest.err'
ac1cb8d3
VS
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 break
12560else
12561 echo "$as_me: failed program was:" >&5
12562sed 's/^/| /' conftest.$ac_ext >&5
12563
12564fi
ac1cb8d3 12565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12566done
12567rm -f conftest*
12568if test -n "$ac_declaration"; then
12569 echo '#ifdef __cplusplus' >>confdefs.h
12570 echo $ac_declaration >>confdefs.h
12571 echo '#endif' >>confdefs.h
12572fi
12573
12574ac_ext=cc
12575ac_cpp='$CXXCPP $CPPFLAGS'
12576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12579
6dcfc289 12580 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12581echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12582if test "${wx_cv_cxx_exto+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584else
12585 cat >conftest.$ac_ext <<_ACEOF
12586/* confdefs.h. */
12587_ACEOF
12588cat confdefs.h >>conftest.$ac_ext
12589cat >>conftest.$ac_ext <<_ACEOF
12590/* end confdefs.h. */
12591
12592int
12593main ()
12594{
12595
12596 ;
12597 return 0;
12598}
12599_ACEOF
12600rm -f conftest.$ac_objext conftest.$ac_ext.o
12601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; then
12606 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12607 case $ac_file in
12608 conftest.$ac_ext.o)
12609 wx_cv_cxx_exto="-ext o"
12610 ;;
12611 *)
12612 ;;
12613 esac
12614done
12615else
12616 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12617See \`config.log' for more details." >&5
12618echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12619See \`config.log' for more details." >&2;}
12620 { (exit 1); exit 1; }; }
12621
12622fi
12623
12624rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12625
12626fi
12627echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12628echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12629if test "x$wx_cv_cxx_exto" '!=' "x"; then
12630 if test "cxx" = "c"; then
12631 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12632 fi
12633 if test "cxx" = "cxx"; then
12634 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12635 fi
12636fi
12637
6dcfc289
DE
12638 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12639 unset ac_cv_prog_cxx_g
12640 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12641ac_save_CXXFLAGS=$CXXFLAGS
12642CXXFLAGS="-g"
12643echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12644echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12645if test "${ac_cv_prog_cxx_g+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647else
12648 cat >conftest.$ac_ext <<_ACEOF
12649/* confdefs.h. */
12650_ACEOF
12651cat confdefs.h >>conftest.$ac_ext
12652cat >>conftest.$ac_ext <<_ACEOF
12653/* end confdefs.h. */
12654
12655int
12656main ()
12657{
12658
12659 ;
12660 return 0;
12661}
12662_ACEOF
12663rm -f conftest.$ac_objext
12664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12665 (eval $ac_compile) 2>conftest.er1
12666 ac_status=$?
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
fb00f58d
JS
12672 { ac_try='test -z "$ac_cxx_werror_flag"
12673 || test ! -s conftest.err'
480ccd21
DE
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try='test -s conftest.$ac_objext'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_prog_cxx_g=yes
12686else
12687 echo "$as_me: failed program was:" >&5
12688sed 's/^/| /' conftest.$ac_ext >&5
12689
12690ac_cv_prog_cxx_g=no
12691fi
12692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12693fi
12694echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12695echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12696if test "$ac_test_CXXFLAGS" = set; then
12697 CXXFLAGS=$ac_save_CXXFLAGS
12698elif test $ac_cv_prog_cxx_g = yes; then
12699 if test "$GXX" = yes; then
52ada004 12700 CXXFLAGS="-g -O2"
480ccd21 12701 else
52ada004 12702 CXXFLAGS="-g"
480ccd21
DE
12703 fi
12704else
12705 if test "$GXX" = yes; then
12706 CXXFLAGS="-O2"
12707 else
12708 CXXFLAGS=
12709 fi
12710fi
6dcfc289
DE
12711 fi
12712 ac_ext=cc
95986553
DE
12713ac_cpp='$CXXCPP $CPPFLAGS'
12714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12717
12718echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12719echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12720if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12722else
12723 cat >conftest.$ac_ext <<_ACEOF
12724/* confdefs.h. */
12725_ACEOF
12726cat confdefs.h >>conftest.$ac_ext
12727cat >>conftest.$ac_ext <<_ACEOF
12728/* end confdefs.h. */
12729
12730int
12731main ()
12732{
12733#ifndef __MWERKS__
12734 choke me
12735#endif
12736
12737 ;
12738 return 0;
12739}
12740_ACEOF
12741rm -f conftest.$ac_objext
12742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743 (eval $ac_compile) 2>conftest.er1
12744 ac_status=$?
12745 grep -v '^ *+' conftest.er1 >conftest.err
12746 rm -f conftest.er1
12747 cat conftest.err >&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
fb00f58d
JS
12750 { ac_try='test -z "$ac_cxx_werror_flag"
12751 || test ! -s conftest.err'
95986553
DE
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; } &&
12757 { ac_try='test -s conftest.$ac_objext'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
12763 bakefile_compiler_mwerks=yes
12764else
12765 echo "$as_me: failed program was:" >&5
12766sed 's/^/| /' conftest.$ac_ext >&5
12767
12768bakefile_compiler_mwerks=no
12769fi
12770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12771 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12772
12773fi
12774echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12775echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12776
0e6fa1d9 12777MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12778ac_ext=cc
12779ac_cpp='$CXXCPP $CPPFLAGS'
12780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12783
12784
6dcfc289 12785 ac_ext=cc
9273ffba
DE
12786ac_cpp='$CXXCPP $CPPFLAGS'
12787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12790
12791echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12792echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12793if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12795else
12796 cat >conftest.$ac_ext <<_ACEOF
12797/* confdefs.h. */
12798_ACEOF
12799cat confdefs.h >>conftest.$ac_ext
12800cat >>conftest.$ac_ext <<_ACEOF
12801/* end confdefs.h. */
12802
12803int
12804main ()
12805{
12806#ifndef __xlC__
12807 choke me
12808#endif
12809
12810 ;
12811 return 0;
12812}
12813_ACEOF
12814rm -f conftest.$ac_objext
12815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816 (eval $ac_compile) 2>conftest.er1
12817 ac_status=$?
12818 grep -v '^ *+' conftest.er1 >conftest.err
12819 rm -f conftest.er1
12820 cat conftest.err >&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } &&
fb00f58d
JS
12823 { ac_try='test -z "$ac_cxx_werror_flag"
12824 || test ! -s conftest.err'
9273ffba
DE
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; } &&
12830 { ac_try='test -s conftest.$ac_objext'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 wx_compiler_xlc=yes
12837else
12838 echo "$as_me: failed program was:" >&5
12839sed 's/^/| /' conftest.$ac_ext >&5
12840
12841wx_compiler_xlc=no
12842fi
12843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12844 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12845
12846fi
12847echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12848echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12849
0e6fa1d9 12850XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12851ac_ext=cc
12852ac_cpp='$CXXCPP $CPPFLAGS'
12853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12856
12857
95986553 12858
6dcfc289 12859
a848cd7e
SC
12860ac_ext=c
12861ac_cpp='$CPP $CPPFLAGS'
12862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12864ac_compiler_gnu=$ac_cv_c_compiler_gnu
12865
12866
a848cd7e
SC
12867if test -n "$ac_tool_prefix"; then
12868 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12869set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12870echo "$as_me:$LINENO: checking for $ac_word" >&5
12871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12872if test "${ac_cv_prog_RANLIB+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874else
12875 if test -n "$RANLIB"; then
12876 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12877else
12878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879for as_dir in $PATH
12880do
12881 IFS=$as_save_IFS
12882 test -z "$as_dir" && as_dir=.
12883 for ac_exec_ext in '' $ac_executable_extensions; do
12884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12885 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12887 break 2
12888 fi
12889done
12890done
12891
12892fi
12893fi
12894RANLIB=$ac_cv_prog_RANLIB
12895if test -n "$RANLIB"; then
12896 echo "$as_me:$LINENO: result: $RANLIB" >&5
12897echo "${ECHO_T}$RANLIB" >&6
12898else
12899 echo "$as_me:$LINENO: result: no" >&5
12900echo "${ECHO_T}no" >&6
12901fi
12902
12903fi
12904if test -z "$ac_cv_prog_RANLIB"; then
12905 ac_ct_RANLIB=$RANLIB
12906 # Extract the first word of "ranlib", so it can be a program name with args.
12907set dummy ranlib; ac_word=$2
12908echo "$as_me:$LINENO: checking for $ac_word" >&5
12909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12910if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12912else
12913 if test -n "$ac_ct_RANLIB"; then
12914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12915else
12916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917for as_dir in $PATH
12918do
12919 IFS=$as_save_IFS
12920 test -z "$as_dir" && as_dir=.
12921 for ac_exec_ext in '' $ac_executable_extensions; do
12922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12923 ac_cv_prog_ac_ct_RANLIB="ranlib"
12924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12925 break 2
12926 fi
12927done
12928done
12929
12930 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12931fi
12932fi
12933ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12934if test -n "$ac_ct_RANLIB"; then
12935 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12936echo "${ECHO_T}$ac_ct_RANLIB" >&6
12937else
12938 echo "$as_me:$LINENO: result: no" >&5
12939echo "${ECHO_T}no" >&6
12940fi
12941
12942 RANLIB=$ac_ct_RANLIB
12943else
12944 RANLIB="$ac_cv_prog_RANLIB"
12945fi
12946
12947
12948# Extract the first word of "ar", so it can be a program name with args.
12949set dummy ar; ac_word=$2
12950echo "$as_me:$LINENO: checking for $ac_word" >&5
12951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12952if test "${ac_cv_prog_AR+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954else
12955 if test -n "$AR"; then
12956 ac_cv_prog_AR="$AR" # Let the user override the test.
12957else
12958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959for as_dir in $PATH
12960do
12961 IFS=$as_save_IFS
12962 test -z "$as_dir" && as_dir=.
12963 for ac_exec_ext in '' $ac_executable_extensions; do
12964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12965 ac_cv_prog_AR="ar"
12966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12967 break 2
12968 fi
12969done
12970done
12971
12972fi
12973fi
12974AR=$ac_cv_prog_AR
12975if test -n "$AR"; then
12976 echo "$as_me:$LINENO: result: $AR" >&5
12977echo "${ECHO_T}$AR" >&6
12978else
12979 echo "$as_me:$LINENO: result: no" >&5
12980echo "${ECHO_T}no" >&6
12981fi
12982
12983if test "x$AR" = "x" ; then
77ffb593
JS
12984 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12985echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12986 { (exit 1); exit 1; }; }
12987fi
12988
12989# Find a good install program. We prefer a C program (faster),
12990# so one script is as good as another. But avoid the broken or
12991# incompatible versions:
12992# SysV /etc/install, /usr/sbin/install
12993# SunOS /usr/etc/install
12994# IRIX /sbin/install
12995# AIX /bin/install
12996# AmigaOS /C/install, which installs bootblocks on floppy discs
12997# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12998# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12999# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13000# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13001# ./install, which can be erroneously created by make from ./install.sh.
13002echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13003echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13004if test -z "$INSTALL"; then
13005if test "${ac_cv_path_install+set}" = set; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13007else
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009for as_dir in $PATH
13010do
13011 IFS=$as_save_IFS
13012 test -z "$as_dir" && as_dir=.
13013 # Account for people who put trailing slashes in PATH elements.
13014case $as_dir/ in
13015 ./ | .// | /cC/* | \
13016 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13017 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13018 /usr/ucb/* ) ;;
13019 *)
13020 # OSF1 and SCO ODT 3.0 have their own names for install.
13021 # Don't use installbsd from OSF since it installs stuff as root
13022 # by default.
13023 for ac_prog in ginstall scoinst install; do
13024 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13025 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13026 if test $ac_prog = install &&
13027 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13028 # AIX install. It has an incompatible calling convention.
13029 :
13030 elif test $ac_prog = install &&
13031 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13032 # program-specific install script used by HP pwplus--don't use.
13033 :
13034 else
13035 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13036 break 3
13037 fi
13038 fi
a848cd7e
SC
13039 done
13040 done
13041 ;;
13042esac
13043done
13044
13045
13046fi
13047 if test "${ac_cv_path_install+set}" = set; then
13048 INSTALL=$ac_cv_path_install
13049 else
13050 # As a last resort, use the slow shell script. We don't cache a
13051 # path for INSTALL within a source directory, because that will
13052 # break other packages using the cache if that directory is
13053 # removed, or if the path is relative.
13054 INSTALL=$ac_install_sh
13055 fi
13056fi
13057echo "$as_me:$LINENO: result: $INSTALL" >&5
13058echo "${ECHO_T}$INSTALL" >&6
13059
13060# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13061# It thinks the first close brace ends the variable substitution.
13062test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13063
13064test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13065
13066test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13067
13068
13069case ${INSTALL} in
13070 /* ) # Absolute
13071 ;;
13072 ?:* ) # Drive letter, considered as absolute.
13073 ;;
13074 *)
13075 INSTALL=`pwd`/${INSTALL} ;;
13076esac
13077
a848cd7e
SC
13078
13079case "${host}" in
13080
13081 powerpc-*-darwin* )
13082 INSTALL_PROGRAM="cp -fp"
13083 INSTALL_DATA="cp -fp"
13084 ;;
13085 *)
13086 ;;
13087esac
13088
13089# Extract the first word of "strip", so it can be a program name with args.
13090set dummy strip; ac_word=$2
13091echo "$as_me:$LINENO: checking for $ac_word" >&5
13092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13093if test "${ac_cv_prog_STRIP+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13095else
13096 if test -n "$STRIP"; then
13097 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13098else
13099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100for as_dir in $PATH
13101do
13102 IFS=$as_save_IFS
13103 test -z "$as_dir" && as_dir=.
13104 for ac_exec_ext in '' $ac_executable_extensions; do
13105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13106 ac_cv_prog_STRIP="strip"
13107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13108 break 2
13109 fi
13110done
13111done
13112
13113 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13114fi
13115fi
13116STRIP=$ac_cv_prog_STRIP
13117if test -n "$STRIP"; then
13118 echo "$as_me:$LINENO: result: $STRIP" >&5
13119echo "${ECHO_T}$STRIP" >&6
13120else
13121 echo "$as_me:$LINENO: result: no" >&5
13122echo "${ECHO_T}no" >&6
13123fi
13124
13125
13126echo "$as_me:$LINENO: checking if make is GNU make" >&5
13127echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13128if test "${wx_cv_prog_makeisgnu+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13130else
13131
13132 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13133 egrep -s GNU > /dev/null); then
13134 wx_cv_prog_makeisgnu="yes"
13135 else
13136 wx_cv_prog_makeisgnu="no"
13137 fi
13138
13139fi
13140echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13141echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13142
13143if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13144 IF_GNU_MAKE=""
13145else
13146 IF_GNU_MAKE="#"
13147fi
13148
13149
13150
13151if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13152echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13153echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13154if test "${wx_cv_prog_makevpath+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156else
13157
13158cat - << EOF > confMake
13159check : file
13160 cp \$? \$@
13161 cp \$? final_file
13162EOF
13163
13164if test ! -d sub ; then
13165 mkdir sub
13166fi
13167echo dummy > sub/file
13168${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13169RESULT=$?
13170rm -f sub/file check final_file confMake
13171rmdir sub
13172if test "$RESULT" = 0; then
13173 wx_cv_prog_makevpath="yes"
13174else
13175 wx_cv_prog_makevpath="no"
13176fi
13177
13178fi
13179echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13180echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13181
13182if test "x$wx_cv_prog_makevpath" != "xyes"; then
13183{ { echo "$as_me:$LINENO: error:
13184You need a make-utility that is able to use the variable
13185VPATH correctly.
13186If your version of make does not support VPATH correctly,
13187please install GNU-make (possibly as gmake), and start
13188configure with the following command:
13189export MAKE=gmake; ./configure for sh-type shells
13190setenv MAKE gmake; ./configure for csh-type shells
13191Also please do remember to use gmake in this case every time
13192you are trying to compile.
13193" >&5
13194echo "$as_me: error:
13195You need a make-utility that is able to use the variable
13196VPATH correctly.
13197If your version of make does not support VPATH correctly,
13198please install GNU-make (possibly as gmake), and start
13199configure with the following command:
13200export MAKE=gmake; ./configure for sh-type shells
13201setenv MAKE gmake; ./configure for csh-type shells
13202Also please do remember to use gmake in this case every time
13203you are trying to compile.
13204" >&2;}
13205 { (exit 1); exit 1; }; }
13206fi fi
13207echo "$as_me:$LINENO: checking whether ln -s works" >&5
13208echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13209LN_S=$as_ln_s
13210if test "$LN_S" = "ln -s"; then
13211 echo "$as_me:$LINENO: result: yes" >&5
13212echo "${ECHO_T}yes" >&6
13213else
13214 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13215echo "${ECHO_T}no, using $LN_S" >&6
13216fi
13217
13218
13219
9273ffba
DE
13220if test "x$XLCXX" = "xyes"; then
13221 CXXFLAGS="$CXXFLAGS -qunique"
13222fi
13223
13224
4d7ec9f1
DE
13225case "${host}" in
13226 powerpc-*-darwin* )
13227 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13228echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13229 cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235
13236int
13237main ()
13238{
13239#ifndef __POWERPC__
13240 choke me for lack of PowerPC
13241#endif
13242
13243 ;
13244 return 0;
13245}
13246_ACEOF
13247rm -f conftest.$ac_objext
13248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13249 (eval $ac_compile) 2>conftest.er1
13250 ac_status=$?
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
fb00f58d
JS
13256 { ac_try='test -z "$ac_c_werror_flag"
13257 || test ! -s conftest.err'
4d7ec9f1
DE
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; } &&
13263 { ac_try='test -s conftest.$ac_objext'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 echo "$as_me:$LINENO: result: yes" >&5
13270echo "${ECHO_T}yes" >&6
13271else
13272 echo "$as_me: failed program was:" >&5
13273sed 's/^/| /' conftest.$ac_ext >&5
13274
13275echo "$as_me:$LINENO: result: no" >&5
13276echo "${ECHO_T}no" >&6
13277 cat >>confdefs.h <<\_ACEOF
13278#define __POWERPC__ 1
13279_ACEOF
13280
13281
13282fi
13283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13284 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13285echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13286 cat >conftest.$ac_ext <<_ACEOF
13287/* confdefs.h. */
13288_ACEOF
13289cat confdefs.h >>conftest.$ac_ext
13290cat >>conftest.$ac_ext <<_ACEOF
13291/* end confdefs.h. */
13292#include <CoreFoundation/CFBase.h>
13293
13294int
13295main ()
13296{
13297
13298 ;
13299 return 0;
13300}
13301_ACEOF
13302rm -f conftest.$ac_objext
13303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13304 (eval $ac_compile) 2>conftest.er1
13305 ac_status=$?
13306 grep -v '^ *+' conftest.er1 >conftest.err
13307 rm -f conftest.er1
13308 cat conftest.err >&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } &&
fb00f58d
JS
13311 { ac_try='test -z "$ac_c_werror_flag"
13312 || test ! -s conftest.err'
4d7ec9f1
DE
13313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314 (eval $ac_try) 2>&5
13315 ac_status=$?
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; } &&
13318 { ac_try='test -s conftest.$ac_objext'
13319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320 (eval $ac_try) 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; }; then
13324 echo "$as_me:$LINENO: result: yes" >&5
13325echo "${ECHO_T}yes" >&6
13326else
13327 echo "$as_me: failed program was:" >&5
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
13330echo "$as_me:$LINENO: result: no" >&5
13331echo "${ECHO_T}no" >&6
13332 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13333echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13334 cat >conftest.$ac_ext <<_ACEOF
13335/* confdefs.h. */
13336_ACEOF
13337cat confdefs.h >>conftest.$ac_ext
13338cat >>conftest.$ac_ext <<_ACEOF
13339/* end confdefs.h. */
13340#define __CF_USE_FRAMEWORK_INCLUDES__
13341#include <CoreFoundation/CFBase.h>
13342
13343int
13344main ()
13345{
13346
13347 ;
13348 return 0;
13349}
13350_ACEOF
13351rm -f conftest.$ac_objext
13352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13353 (eval $ac_compile) 2>conftest.er1
13354 ac_status=$?
13355 grep -v '^ *+' conftest.er1 >conftest.err
13356 rm -f conftest.er1
13357 cat conftest.err >&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } &&
fb00f58d
JS
13360 { ac_try='test -z "$ac_c_werror_flag"
13361 || test ! -s conftest.err'
4d7ec9f1
DE
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; } &&
13367 { ac_try='test -s conftest.$ac_objext'
13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; }; then
13373 echo "$as_me:$LINENO: result: yes" >&5
13374echo "${ECHO_T}yes" >&6
13375 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13376else
13377 echo "$as_me: failed program was:" >&5
13378sed 's/^/| /' conftest.$ac_ext >&5
13379
13380{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13381See \`config.log' for more details." >&5
13382echo "$as_me: error: no. CoreFoundation not available.
13383See \`config.log' for more details." >&2;}
13384 { (exit 1); exit 1; }; }
13385
13386fi
13387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13388
13389
13390fi
13391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13392 ;;
13393esac
13394
a848cd7e
SC
13395case "${host}" in
13396 *-pc-os2_emx | *-pc-os2-emx )
13397 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13398 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13399echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13400if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13402else
13403 ac_check_lib_save_LIBS=$LIBS
13404LIBS="-lcExt $LIBS"
13405cat >conftest.$ac_ext <<_ACEOF
13406/* confdefs.h. */
13407_ACEOF
13408cat confdefs.h >>conftest.$ac_ext
13409cat >>conftest.$ac_ext <<_ACEOF
13410/* end confdefs.h. */
13411
13412/* Override any gcc2 internal prototype to avoid an error. */
13413#ifdef __cplusplus
13414extern "C"
13415#endif
13416/* We use char because int might match the return type of a gcc2
13417 builtin and then its argument prototype would still apply. */
13418char drand48 ();
13419int
13420main ()
13421{
13422drand48 ();
13423 ;
13424 return 0;
13425}
13426_ACEOF
13427rm -f conftest.$ac_objext conftest$ac_exeext
13428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13429 (eval $ac_link) 2>conftest.er1
a848cd7e 13430 ac_status=$?
ac1cb8d3
VS
13431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
a848cd7e
SC
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
fb00f58d
JS
13436 { ac_try='test -z "$ac_c_werror_flag"
13437 || test ! -s conftest.err'
ac1cb8d3
VS
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; } &&
13443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13446 ac_status=$?
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13449 ac_cv_lib_cExt_drand48=yes
13450else
13451 echo "$as_me: failed program was:" >&5
13452sed 's/^/| /' conftest.$ac_ext >&5
13453
13454ac_cv_lib_cExt_drand48=no
13455fi
ac1cb8d3
VS
13456rm -f conftest.err conftest.$ac_objext \
13457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13458LIBS=$ac_check_lib_save_LIBS
13459fi
13460echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13461echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13462if test $ac_cv_lib_cExt_drand48 = yes; then
13463 LIBS="$LIBS -lcExt"
13464fi
13465
13466 else
13467 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13468 fi
69120ee4
VZ
13469 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13470echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13471if test "${wx_cv_gccversion+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13473else
13474
391a765e
VS
13475 if test "$cross_compiling" = yes; then
13476 wx_cv_gccversion="EMX2"
13477
13478else
13479 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13480/* confdefs.h. */
13481_ACEOF
13482cat confdefs.h >>conftest.$ac_ext
13483cat >>conftest.$ac_ext <<_ACEOF
13484/* end confdefs.h. */
13485
391a765e 13486 #include <stdio.h>
a848cd7e 13487
391a765e
VS
13488 int main()
13489 {
13490 FILE *f=fopen("conftestval", "w");
13491 if (!f) exit(1);
13492 fprintf(f,
a848cd7e 13493 #if (__GNUC__ < 3)
391a765e
VS
13494 "EMX2"
13495 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13496 "EMX3"
13497 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13498 "Innotek5"
13499 #else
13500 "Innotek6"
a848cd7e 13501 #endif
391a765e
VS
13502 );
13503 exit(0);
13504 }
a848cd7e 13505
a848cd7e 13506_ACEOF
391a765e
VS
13507rm -f conftest$ac_exeext
13508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13509 (eval $ac_link) 2>&5
ac1cb8d3
VS
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
391a765e 13518 wx_cv_gccversion=`cat conftestval`
a848cd7e 13519else
391a765e
VS
13520 echo "$as_me: program exited with status $ac_status" >&5
13521echo "$as_me: failed program was:" >&5
a848cd7e
SC
13522sed 's/^/| /' conftest.$ac_ext >&5
13523
391a765e
VS
13524( exit $ac_status )
13525wx_cv_gccversion="EMX2"
a848cd7e 13526fi
391a765e 13527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13528fi
a848cd7e
SC
13529
13530fi
13531echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13532echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13533 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13534 LIBS="$LIBS -lstdcpp"
13535 LDFLAGS="$LDFLAGS -Zsysv-signals"
13536 else
391a765e 13537 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13538 LIBS="$LIBS -lstdcxx"
13539 LDFLAGS="$LDFLAGS -Zsysv-signals"
13540 else
13541 LIBS="$LIBS -lstdc++"
13542 fi
13543 fi
94acd38e
DE
13544 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13545 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13546echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13547 wxUSE_OMF=yes
2da0c077 13548 enable_omf=yes
a848cd7e
SC
13549 fi
13550 ;;
13551 *)
13552
13553
13554
13555 ac_ext=cc
13556ac_cpp='$CXXCPP $CPPFLAGS'
13557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13560
13561
95986553 13562 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13563echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13564if test "${ac_cv_string_strcasecmp+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13566else
13567
13568 cat >conftest.$ac_ext <<_ACEOF
13569/* confdefs.h. */
13570_ACEOF
13571cat confdefs.h >>conftest.$ac_ext
13572cat >>conftest.$ac_ext <<_ACEOF
13573/* end confdefs.h. */
13574
13575 #include <string.h>
13576
13577int
13578main ()
13579{
13580
13581 strcasecmp("foo", "bar");
13582
13583 ;
13584 return 0;
13585}
13586_ACEOF
13587rm -f conftest.$ac_objext conftest$ac_exeext
13588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13589 (eval $ac_link) 2>conftest.er1
a848cd7e 13590 ac_status=$?
ac1cb8d3
VS
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
a848cd7e
SC
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
fb00f58d
JS
13596 { ac_try='test -z "$ac_cxx_werror_flag"
13597 || test ! -s conftest.err'
ac1cb8d3
VS
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } &&
13603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_cv_string_strcasecmp=yes
13610else
13611 echo "$as_me: failed program was:" >&5
13612sed 's/^/| /' conftest.$ac_ext >&5
13613
13614ac_cv_string_strcasecmp=no
13615
13616fi
ac1cb8d3
VS
13617rm -f conftest.err conftest.$ac_objext \
13618 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13619
13620fi
13621echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13622echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13623
13624 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13625 cat >>confdefs.h <<\_ACEOF
13626#define HAVE_STRCASECMP_IN_STRING_H 1
13627_ACEOF
13628
13629 else
13630 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13631echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13632if test "${ac_cv_strings_strcasecmp+set}" = set; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13634else
13635
13636 cat >conftest.$ac_ext <<_ACEOF
13637/* confdefs.h. */
13638_ACEOF
13639cat confdefs.h >>conftest.$ac_ext
13640cat >>conftest.$ac_ext <<_ACEOF
13641/* end confdefs.h. */
13642
13643 #include <strings.h>
13644
13645int
13646main ()
13647{
13648
13649 strcasecmp("foo", "bar");
13650
13651 ;
13652 return 0;
13653}
13654_ACEOF
13655rm -f conftest.$ac_objext conftest$ac_exeext
13656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13657 (eval $ac_link) 2>conftest.er1
a848cd7e 13658 ac_status=$?
ac1cb8d3
VS
13659 grep -v '^ *+' conftest.er1 >conftest.err
13660 rm -f conftest.er1
13661 cat conftest.err >&5
a848cd7e
SC
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
fb00f58d
JS
13664 { ac_try='test -z "$ac_cxx_werror_flag"
13665 || test ! -s conftest.err'
ac1cb8d3
VS
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ac_cv_strings_strcasecmp=yes
13678else
13679 echo "$as_me: failed program was:" >&5
13680sed 's/^/| /' conftest.$ac_ext >&5
13681
13682ac_cv_strings_strcasecmp=no
13683
13684fi
ac1cb8d3
VS
13685rm -f conftest.err conftest.$ac_objext \
13686 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13687
13688fi
13689echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13690echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13691
0c3c69fc 13692 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13693 cat >>confdefs.h <<\_ACEOF
13694#define HAVE_STRCASECMP_IN_STRINGS_H 1
13695_ACEOF
13696
13697 else
13698 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13699echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13700 { (exit 1); exit 1; }; }
13701 fi
13702 fi
13703
13704 ac_ext=c
13705ac_cpp='$CPP $CPPFLAGS'
13706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13708ac_compiler_gnu=$ac_cv_c_compiler_gnu
13709
13710 ;;
13711esac
13712
13713
13714echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13715echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13716if test "${ac_cv_header_stdc+set}" = set; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13718else
13719 cat >conftest.$ac_ext <<_ACEOF
13720/* confdefs.h. */
13721_ACEOF
13722cat confdefs.h >>conftest.$ac_ext
13723cat >>conftest.$ac_ext <<_ACEOF
13724/* end confdefs.h. */
13725#include <stdlib.h>
13726#include <stdarg.h>
13727#include <string.h>
13728#include <float.h>
13729
13730int
13731main ()
13732{
13733
13734 ;
13735 return 0;
13736}
13737_ACEOF
13738rm -f conftest.$ac_objext
13739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13740 (eval $ac_compile) 2>conftest.er1
a848cd7e 13741 ac_status=$?
ac1cb8d3
VS
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
a848cd7e
SC
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
fb00f58d
JS
13747 { ac_try='test -z "$ac_c_werror_flag"
13748 || test ! -s conftest.err'
ac1cb8d3
VS
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13760 ac_cv_header_stdc=yes
13761else
13762 echo "$as_me: failed program was:" >&5
13763sed 's/^/| /' conftest.$ac_ext >&5
13764
13765ac_cv_header_stdc=no
13766fi
ac1cb8d3 13767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13768
13769if test $ac_cv_header_stdc = yes; then
13770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13771 cat >conftest.$ac_ext <<_ACEOF
13772/* confdefs.h. */
13773_ACEOF
13774cat confdefs.h >>conftest.$ac_ext
13775cat >>conftest.$ac_ext <<_ACEOF
13776/* end confdefs.h. */
13777#include <string.h>
13778
13779_ACEOF
13780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13781 $EGREP "memchr" >/dev/null 2>&1; then
13782 :
13783else
13784 ac_cv_header_stdc=no
13785fi
13786rm -f conftest*
13787
13788fi
13789
13790if test $ac_cv_header_stdc = yes; then
13791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13792 cat >conftest.$ac_ext <<_ACEOF
13793/* confdefs.h. */
13794_ACEOF
13795cat confdefs.h >>conftest.$ac_ext
13796cat >>conftest.$ac_ext <<_ACEOF
13797/* end confdefs.h. */
13798#include <stdlib.h>
13799
13800_ACEOF
13801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13802 $EGREP "free" >/dev/null 2>&1; then
13803 :
13804else
13805 ac_cv_header_stdc=no
13806fi
13807rm -f conftest*
13808
13809fi
13810
13811if test $ac_cv_header_stdc = yes; then
13812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13813 if test "$cross_compiling" = yes; then
13814 :
13815else
13816 cat >conftest.$ac_ext <<_ACEOF
13817/* confdefs.h. */
13818_ACEOF
13819cat confdefs.h >>conftest.$ac_ext
13820cat >>conftest.$ac_ext <<_ACEOF
13821/* end confdefs.h. */
13822#include <ctype.h>
13823#if ((' ' & 0x0FF) == 0x020)
13824# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13825# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13826#else
13827# define ISLOWER(c) \
ac1cb8d3
VS
13828 (('a' <= (c) && (c) <= 'i') \
13829 || ('j' <= (c) && (c) <= 'r') \
13830 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13831# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13832#endif
13833
13834#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13835int
13836main ()
13837{
13838 int i;
13839 for (i = 0; i < 256; i++)
13840 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13841 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13842 exit(2);
13843 exit (0);
13844}
13845_ACEOF
13846rm -f conftest$ac_exeext
13847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13848 (eval $ac_link) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857 :
13858else
13859 echo "$as_me: program exited with status $ac_status" >&5
13860echo "$as_me: failed program was:" >&5
13861sed 's/^/| /' conftest.$ac_ext >&5
13862
13863( exit $ac_status )
13864ac_cv_header_stdc=no
13865fi
ac1cb8d3 13866rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13867fi
13868fi
13869fi
13870echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13871echo "${ECHO_T}$ac_cv_header_stdc" >&6
13872if test $ac_cv_header_stdc = yes; then
13873
13874cat >>confdefs.h <<\_ACEOF
13875#define STDC_HEADERS 1
13876_ACEOF
13877
13878fi
13879
13880# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13891 inttypes.h stdint.h unistd.h
a848cd7e
SC
13892do
13893as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13894echo "$as_me:$LINENO: checking for $ac_header" >&5
13895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13896if eval "test \"\${$as_ac_Header+set}\" = set"; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898else
13899 cat >conftest.$ac_ext <<_ACEOF
13900/* confdefs.h. */
13901_ACEOF
13902cat confdefs.h >>conftest.$ac_ext
13903cat >>conftest.$ac_ext <<_ACEOF
13904/* end confdefs.h. */
13905$ac_includes_default
13906
13907#include <$ac_header>
13908_ACEOF
13909rm -f conftest.$ac_objext
13910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13911 (eval $ac_compile) 2>conftest.er1
a848cd7e 13912 ac_status=$?
ac1cb8d3
VS
13913 grep -v '^ *+' conftest.er1 >conftest.err
13914 rm -f conftest.er1
13915 cat conftest.err >&5
a848cd7e
SC
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
fb00f58d
JS
13918 { ac_try='test -z "$ac_c_werror_flag"
13919 || test ! -s conftest.err'
ac1cb8d3
VS
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; } &&
13925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927 (eval $ac_try) 2>&5
13928 ac_status=$?
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; }; then
13931 eval "$as_ac_Header=yes"
13932else
13933 echo "$as_me: failed program was:" >&5
13934sed 's/^/| /' conftest.$ac_ext >&5
13935
13936eval "$as_ac_Header=no"
13937fi
ac1cb8d3 13938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13939fi
13940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13942if test `eval echo '${'$as_ac_Header'}'` = yes; then
13943 cat >>confdefs.h <<_ACEOF
13944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13945_ACEOF
13946
13947fi
13948
13949done
13950
13951
13952
13953for ac_header in stdlib.h
13954do
13955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13956if eval "test \"\${$as_ac_Header+set}\" = set"; then
13957 echo "$as_me:$LINENO: checking for $ac_header" >&5
13958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13959if eval "test \"\${$as_ac_Header+set}\" = set"; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961fi
13962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13964else
13965 # Is the header compilable?
13966echo "$as_me:$LINENO: checking $ac_header usability" >&5
13967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13968cat >conftest.$ac_ext <<_ACEOF
13969/* confdefs.h. */
13970_ACEOF
13971cat confdefs.h >>conftest.$ac_ext
13972cat >>conftest.$ac_ext <<_ACEOF
13973/* end confdefs.h. */
13974$ac_includes_default
13975#include <$ac_header>
13976_ACEOF
13977rm -f conftest.$ac_objext
13978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13979 (eval $ac_compile) 2>conftest.er1
a848cd7e 13980 ac_status=$?
ac1cb8d3
VS
13981 grep -v '^ *+' conftest.er1 >conftest.err
13982 rm -f conftest.er1
13983 cat conftest.err >&5
a848cd7e
SC
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } &&
fb00f58d
JS
13986 { ac_try='test -z "$ac_c_werror_flag"
13987 || test ! -s conftest.err'
ac1cb8d3
VS
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; } &&
13993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 ac_header_compiler=yes
14000else
14001 echo "$as_me: failed program was:" >&5
14002sed 's/^/| /' conftest.$ac_ext >&5
14003
14004ac_header_compiler=no
14005fi
ac1cb8d3 14006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14008echo "${ECHO_T}$ac_header_compiler" >&6
14009
14010# Is the header present?
14011echo "$as_me:$LINENO: checking $ac_header presence" >&5
14012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14013cat >conftest.$ac_ext <<_ACEOF
14014/* confdefs.h. */
14015_ACEOF
14016cat confdefs.h >>conftest.$ac_ext
14017cat >>conftest.$ac_ext <<_ACEOF
14018/* end confdefs.h. */
14019#include <$ac_header>
14020_ACEOF
14021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14023 ac_status=$?
14024 grep -v '^ *+' conftest.er1 >conftest.err
14025 rm -f conftest.er1
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } >/dev/null; then
14029 if test -s conftest.err; then
14030 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14032 else
14033 ac_cpp_err=
14034 fi
14035else
14036 ac_cpp_err=yes
14037fi
14038if test -z "$ac_cpp_err"; then
14039 ac_header_preproc=yes
14040else
14041 echo "$as_me: failed program was:" >&5
14042sed 's/^/| /' conftest.$ac_ext >&5
14043
14044 ac_header_preproc=no
14045fi
14046rm -f conftest.err conftest.$ac_ext
14047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14048echo "${ECHO_T}$ac_header_preproc" >&6
14049
14050# So? What about this header?
ac1cb8d3
VS
14051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14052 yes:no: )
a848cd7e
SC
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14057 ac_header_preproc=yes
a848cd7e 14058 ;;
ac1cb8d3 14059 no:yes:* )
a848cd7e
SC
14060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14072 (
14073 cat <<\_ASBOX
ac1cb8d3
VS
14074## ----------------------------------------- ##
14075## Report this to wx-dev@lists.wxwidgets.org ##
14076## ----------------------------------------- ##
a848cd7e
SC
14077_ASBOX
14078 ) |
14079 sed "s/^/$as_me: WARNING: /" >&2
14080 ;;
14081esac
14082echo "$as_me:$LINENO: checking for $ac_header" >&5
14083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14084if eval "test \"\${$as_ac_Header+set}\" = set"; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14086else
ac1cb8d3 14087 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14088fi
14089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14091
14092fi
14093if test `eval echo '${'$as_ac_Header'}'` = yes; then
14094 cat >>confdefs.h <<_ACEOF
14095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14096_ACEOF
14097
14098fi
14099
14100done
14101
14102
14103for ac_header in malloc.h
14104do
14105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14106if eval "test \"\${$as_ac_Header+set}\" = set"; then
14107 echo "$as_me:$LINENO: checking for $ac_header" >&5
14108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14109if eval "test \"\${$as_ac_Header+set}\" = set"; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14111fi
14112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14114else
14115 # Is the header compilable?
14116echo "$as_me:$LINENO: checking $ac_header usability" >&5
14117echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14118cat >conftest.$ac_ext <<_ACEOF
14119/* confdefs.h. */
14120_ACEOF
14121cat confdefs.h >>conftest.$ac_ext
14122cat >>conftest.$ac_ext <<_ACEOF
14123/* end confdefs.h. */
14124$ac_includes_default
14125#include <$ac_header>
14126_ACEOF
14127rm -f conftest.$ac_objext
14128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14129 (eval $ac_compile) 2>conftest.er1
a848cd7e 14130 ac_status=$?
ac1cb8d3
VS
14131 grep -v '^ *+' conftest.er1 >conftest.err
14132 rm -f conftest.er1
14133 cat conftest.err >&5
a848cd7e
SC
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } &&
fb00f58d
JS
14136 { ac_try='test -z "$ac_c_werror_flag"
14137 || test ! -s conftest.err'
ac1cb8d3
VS
14138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14140 ac_status=$?
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; } &&
14143 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
14149 ac_header_compiler=yes
14150else
14151 echo "$as_me: failed program was:" >&5
14152sed 's/^/| /' conftest.$ac_ext >&5
14153
14154ac_header_compiler=no
14155fi
ac1cb8d3 14156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14157echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14158echo "${ECHO_T}$ac_header_compiler" >&6
14159
14160# Is the header present?
14161echo "$as_me:$LINENO: checking $ac_header presence" >&5
14162echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14163cat >conftest.$ac_ext <<_ACEOF
14164/* confdefs.h. */
14165_ACEOF
14166cat confdefs.h >>conftest.$ac_ext
14167cat >>conftest.$ac_ext <<_ACEOF
14168/* end confdefs.h. */
14169#include <$ac_header>
14170_ACEOF
14171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14173 ac_status=$?
14174 grep -v '^ *+' conftest.er1 >conftest.err
14175 rm -f conftest.er1
14176 cat conftest.err >&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } >/dev/null; then
14179 if test -s conftest.err; then
14180 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14182 else
14183 ac_cpp_err=
14184 fi
14185else
14186 ac_cpp_err=yes
14187fi
14188if test -z "$ac_cpp_err"; then
14189 ac_header_preproc=yes
14190else
14191 echo "$as_me: failed program was:" >&5
14192sed 's/^/| /' conftest.$ac_ext >&5
14193
14194 ac_header_preproc=no
14195fi
14196rm -f conftest.err conftest.$ac_ext
14197echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14198echo "${ECHO_T}$ac_header_preproc" >&6
14199
14200# So? What about this header?
ac1cb8d3
VS
14201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14202 yes:no: )
a848cd7e
SC
14203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14204echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14206echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14207 ac_header_preproc=yes
a848cd7e 14208 ;;
ac1cb8d3 14209 no:yes:* )
a848cd7e
SC
14210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14211echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14213echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14215echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14217echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14219echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14221echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14222 (
14223 cat <<\_ASBOX
ac1cb8d3
VS
14224## ----------------------------------------- ##
14225## Report this to wx-dev@lists.wxwidgets.org ##
14226## ----------------------------------------- ##
a848cd7e
SC
14227_ASBOX
14228 ) |
14229 sed "s/^/$as_me: WARNING: /" >&2
14230 ;;
14231esac
14232echo "$as_me:$LINENO: checking for $ac_header" >&5
14233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14234if eval "test \"\${$as_ac_Header+set}\" = set"; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14236else
ac1cb8d3 14237 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14238fi
14239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14241
14242fi
14243if test `eval echo '${'$as_ac_Header'}'` = yes; then
14244 cat >>confdefs.h <<_ACEOF
14245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14246_ACEOF
14247
14248fi
14249
14250done
14251
14252
14253for ac_header in unistd.h
14254do
14255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14256if eval "test \"\${$as_ac_Header+set}\" = set"; then
14257 echo "$as_me:$LINENO: checking for $ac_header" >&5
14258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14259if eval "test \"\${$as_ac_Header+set}\" = set"; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14261fi
14262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14264else
14265 # Is the header compilable?
14266echo "$as_me:$LINENO: checking $ac_header usability" >&5
14267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14268cat >conftest.$ac_ext <<_ACEOF
14269/* confdefs.h. */
14270_ACEOF
14271cat confdefs.h >>conftest.$ac_ext
14272cat >>conftest.$ac_ext <<_ACEOF
14273/* end confdefs.h. */
14274$ac_includes_default
14275#include <$ac_header>
14276_ACEOF
14277rm -f conftest.$ac_objext
14278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14279 (eval $ac_compile) 2>conftest.er1
a848cd7e 14280 ac_status=$?
ac1cb8d3
VS
14281 grep -v '^ *+' conftest.er1 >conftest.err
14282 rm -f conftest.er1
14283 cat conftest.err >&5
a848cd7e
SC
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } &&
fb00f58d
JS
14286 { ac_try='test -z "$ac_c_werror_flag"
14287 || test ! -s conftest.err'
ac1cb8d3
VS
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; } &&
14293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 ac_header_compiler=yes
14300else
14301 echo "$as_me: failed program was:" >&5
14302sed 's/^/| /' conftest.$ac_ext >&5
14303
14304ac_header_compiler=no
14305fi
ac1cb8d3 14306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14308echo "${ECHO_T}$ac_header_compiler" >&6
14309
14310# Is the header present?
14311echo "$as_me:$LINENO: checking $ac_header presence" >&5
14312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14313cat >conftest.$ac_ext <<_ACEOF
14314/* confdefs.h. */
14315_ACEOF
14316cat confdefs.h >>conftest.$ac_ext
14317cat >>conftest.$ac_ext <<_ACEOF
14318/* end confdefs.h. */
14319#include <$ac_header>
14320_ACEOF
14321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } >/dev/null; then
14329 if test -s conftest.err; then
14330 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14332 else
14333 ac_cpp_err=
14334 fi
14335else
14336 ac_cpp_err=yes
14337fi
14338if test -z "$ac_cpp_err"; then
14339 ac_header_preproc=yes
14340else
14341 echo "$as_me: failed program was:" >&5
14342sed 's/^/| /' conftest.$ac_ext >&5
14343
14344 ac_header_preproc=no
14345fi
14346rm -f conftest.err conftest.$ac_ext
14347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14348echo "${ECHO_T}$ac_header_preproc" >&6
14349
14350# So? What about this header?
ac1cb8d3
VS
14351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14352 yes:no: )
a848cd7e
SC
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14357 ac_header_preproc=yes
a848cd7e 14358 ;;
ac1cb8d3 14359 no:yes:* )
a848cd7e
SC
14360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14372 (
14373 cat <<\_ASBOX
ac1cb8d3
VS
14374## ----------------------------------------- ##
14375## Report this to wx-dev@lists.wxwidgets.org ##
14376## ----------------------------------------- ##
a848cd7e
SC
14377_ASBOX
14378 ) |
14379 sed "s/^/$as_me: WARNING: /" >&2
14380 ;;
14381esac
14382echo "$as_me:$LINENO: checking for $ac_header" >&5
14383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14384if eval "test \"\${$as_ac_Header+set}\" = set"; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14386else
ac1cb8d3 14387 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14388fi
14389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14391
14392fi
14393if test `eval echo '${'$as_ac_Header'}'` = yes; then
14394 cat >>confdefs.h <<_ACEOF
14395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14396_ACEOF
14397
14398fi
14399
14400done
14401
14402
14403for ac_header in wchar.h
14404do
14405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14406if eval "test \"\${$as_ac_Header+set}\" = set"; then
14407 echo "$as_me:$LINENO: checking for $ac_header" >&5
14408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14409if eval "test \"\${$as_ac_Header+set}\" = set"; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14411fi
14412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14414else
14415 # Is the header compilable?
14416echo "$as_me:$LINENO: checking $ac_header usability" >&5
14417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14418cat >conftest.$ac_ext <<_ACEOF
14419/* confdefs.h. */
14420_ACEOF
14421cat confdefs.h >>conftest.$ac_ext
14422cat >>conftest.$ac_ext <<_ACEOF
14423/* end confdefs.h. */
14424$ac_includes_default
14425#include <$ac_header>
14426_ACEOF
14427rm -f conftest.$ac_objext
14428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14429 (eval $ac_compile) 2>conftest.er1
a848cd7e 14430 ac_status=$?
ac1cb8d3
VS
14431 grep -v '^ *+' conftest.er1 >conftest.err
14432 rm -f conftest.er1
14433 cat conftest.err >&5
a848cd7e
SC
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
fb00f58d
JS
14436 { ac_try='test -z "$ac_c_werror_flag"
14437 || test ! -s conftest.err'
ac1cb8d3
VS
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } &&
14443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 ac_header_compiler=yes
14450else
14451 echo "$as_me: failed program was:" >&5
14452sed 's/^/| /' conftest.$ac_ext >&5
14453
14454ac_header_compiler=no
14455fi
ac1cb8d3 14456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14458echo "${ECHO_T}$ac_header_compiler" >&6
14459
14460# Is the header present?
14461echo "$as_me:$LINENO: checking $ac_header presence" >&5
14462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14463cat >conftest.$ac_ext <<_ACEOF
14464/* confdefs.h. */
14465_ACEOF
14466cat confdefs.h >>conftest.$ac_ext
14467cat >>conftest.$ac_ext <<_ACEOF
14468/* end confdefs.h. */
14469#include <$ac_header>
14470_ACEOF
14471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14473 ac_status=$?
14474 grep -v '^ *+' conftest.er1 >conftest.err
14475 rm -f conftest.er1
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } >/dev/null; then
14479 if test -s conftest.err; then
14480 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14482 else
14483 ac_cpp_err=
14484 fi
14485else
14486 ac_cpp_err=yes
14487fi
14488if test -z "$ac_cpp_err"; then
14489 ac_header_preproc=yes
14490else
14491 echo "$as_me: failed program was:" >&5
14492sed 's/^/| /' conftest.$ac_ext >&5
14493
14494 ac_header_preproc=no
14495fi
14496rm -f conftest.err conftest.$ac_ext
14497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14498echo "${ECHO_T}$ac_header_preproc" >&6
14499
14500# So? What about this header?
ac1cb8d3
VS
14501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14502 yes:no: )
a848cd7e
SC
14503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14504echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14506echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14507 ac_header_preproc=yes
a848cd7e 14508 ;;
ac1cb8d3 14509 no:yes:* )
a848cd7e
SC
14510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14511echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14513echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14515echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14517echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14519echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14521echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14522 (
14523 cat <<\_ASBOX
ac1cb8d3
VS
14524## ----------------------------------------- ##
14525## Report this to wx-dev@lists.wxwidgets.org ##
14526## ----------------------------------------- ##
a848cd7e
SC
14527_ASBOX
14528 ) |
14529 sed "s/^/$as_me: WARNING: /" >&2
14530 ;;
14531esac
14532echo "$as_me:$LINENO: checking for $ac_header" >&5
14533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14534if eval "test \"\${$as_ac_Header+set}\" = set"; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536else
ac1cb8d3 14537 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14538fi
14539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14541
14542fi
14543if test `eval echo '${'$as_ac_Header'}'` = yes; then
14544 cat >>confdefs.h <<_ACEOF
14545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14546_ACEOF
14547
14548fi
14549
14550done
14551
14552
14553if test "$ac_cv_header_wchar_h" != "yes"; then
14554
14555for ac_header in wcstr.h
14556do
14557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14558if eval "test \"\${$as_ac_Header+set}\" = set"; then
14559 echo "$as_me:$LINENO: checking for $ac_header" >&5
14560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14561if eval "test \"\${$as_ac_Header+set}\" = set"; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14563fi
14564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14566else
14567 # Is the header compilable?
14568echo "$as_me:$LINENO: checking $ac_header usability" >&5
14569echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14570cat >conftest.$ac_ext <<_ACEOF
14571/* confdefs.h. */
14572_ACEOF
14573cat confdefs.h >>conftest.$ac_ext
14574cat >>conftest.$ac_ext <<_ACEOF
14575/* end confdefs.h. */
14576$ac_includes_default
14577#include <$ac_header>
14578_ACEOF
14579rm -f conftest.$ac_objext
14580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14581 (eval $ac_compile) 2>conftest.er1
a848cd7e 14582 ac_status=$?
ac1cb8d3
VS
14583 grep -v '^ *+' conftest.er1 >conftest.err
14584 rm -f conftest.er1
14585 cat conftest.err >&5
a848cd7e
SC
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } &&
fb00f58d
JS
14588 { ac_try='test -z "$ac_c_werror_flag"
14589 || test ! -s conftest.err'
ac1cb8d3
VS
14590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591 (eval $ac_try) 2>&5
14592 ac_status=$?
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; } &&
14595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14598 ac_status=$?
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; }; then
14601 ac_header_compiler=yes
14602else
14603 echo "$as_me: failed program was:" >&5
14604sed 's/^/| /' conftest.$ac_ext >&5
14605
14606ac_header_compiler=no
14607fi
ac1cb8d3 14608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14609echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14610echo "${ECHO_T}$ac_header_compiler" >&6
14611
14612# Is the header present?
14613echo "$as_me:$LINENO: checking $ac_header presence" >&5
14614echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14615cat >conftest.$ac_ext <<_ACEOF
14616/* confdefs.h. */
14617_ACEOF
14618cat confdefs.h >>conftest.$ac_ext
14619cat >>conftest.$ac_ext <<_ACEOF
14620/* end confdefs.h. */
14621#include <$ac_header>
14622_ACEOF
14623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14625 ac_status=$?
14626 grep -v '^ *+' conftest.er1 >conftest.err
14627 rm -f conftest.er1
14628 cat conftest.err >&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } >/dev/null; then
14631 if test -s conftest.err; then
14632 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14634 else
14635 ac_cpp_err=
14636 fi
14637else
14638 ac_cpp_err=yes
14639fi
14640if test -z "$ac_cpp_err"; then
14641 ac_header_preproc=yes
14642else
14643 echo "$as_me: failed program was:" >&5
14644sed 's/^/| /' conftest.$ac_ext >&5
14645
14646 ac_header_preproc=no
14647fi
14648rm -f conftest.err conftest.$ac_ext
14649echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14650echo "${ECHO_T}$ac_header_preproc" >&6
14651
14652# So? What about this header?
ac1cb8d3
VS
14653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14654 yes:no: )
a848cd7e
SC
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14656echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14658echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14659 ac_header_preproc=yes
a848cd7e 14660 ;;
ac1cb8d3 14661 no:yes:* )
a848cd7e
SC
14662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14663echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14665echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14667echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14669echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14673echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14674 (
14675 cat <<\_ASBOX
ac1cb8d3
VS
14676## ----------------------------------------- ##
14677## Report this to wx-dev@lists.wxwidgets.org ##
14678## ----------------------------------------- ##
a848cd7e
SC
14679_ASBOX
14680 ) |
14681 sed "s/^/$as_me: WARNING: /" >&2
14682 ;;
14683esac
14684echo "$as_me:$LINENO: checking for $ac_header" >&5
14685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14686if eval "test \"\${$as_ac_Header+set}\" = set"; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14688else
ac1cb8d3 14689 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14690fi
14691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14693
14694fi
14695if test `eval echo '${'$as_ac_Header'}'` = yes; then
14696 cat >>confdefs.h <<_ACEOF
14697#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14698_ACEOF
14699
14700fi
14701
14702done
14703
14704fi
14705
14706
14707for ac_header in fnmatch.h
14708do
14709as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14710if eval "test \"\${$as_ac_Header+set}\" = set"; then
14711 echo "$as_me:$LINENO: checking for $ac_header" >&5
14712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14713if eval "test \"\${$as_ac_Header+set}\" = set"; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14715fi
14716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14718else
14719 # Is the header compilable?
14720echo "$as_me:$LINENO: checking $ac_header usability" >&5
14721echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14722cat >conftest.$ac_ext <<_ACEOF
14723/* confdefs.h. */
14724_ACEOF
14725cat confdefs.h >>conftest.$ac_ext
14726cat >>conftest.$ac_ext <<_ACEOF
14727/* end confdefs.h. */
14728$ac_includes_default
14729#include <$ac_header>
14730_ACEOF
14731rm -f conftest.$ac_objext
14732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14733 (eval $ac_compile) 2>conftest.er1
a848cd7e 14734 ac_status=$?
ac1cb8d3
VS
14735 grep -v '^ *+' conftest.er1 >conftest.err
14736 rm -f conftest.er1
14737 cat conftest.err >&5
a848cd7e
SC
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } &&
fb00f58d
JS
14740 { ac_try='test -z "$ac_c_werror_flag"
14741 || test ! -s conftest.err'
ac1cb8d3
VS
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; } &&
14747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }; then
14753 ac_header_compiler=yes
14754else
14755 echo "$as_me: failed program was:" >&5
14756sed 's/^/| /' conftest.$ac_ext >&5
14757
14758ac_header_compiler=no
14759fi
ac1cb8d3 14760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14761echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14762echo "${ECHO_T}$ac_header_compiler" >&6
14763
14764# Is the header present?
14765echo "$as_me:$LINENO: checking $ac_header presence" >&5
14766echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14767cat >conftest.$ac_ext <<_ACEOF
14768/* confdefs.h. */
14769_ACEOF
14770cat confdefs.h >>conftest.$ac_ext
14771cat >>conftest.$ac_ext <<_ACEOF
14772/* end confdefs.h. */
14773#include <$ac_header>
14774_ACEOF
14775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14777 ac_status=$?
14778 grep -v '^ *+' conftest.er1 >conftest.err
14779 rm -f conftest.er1
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } >/dev/null; then
14783 if test -s conftest.err; then
14784 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14786 else
14787 ac_cpp_err=
14788 fi
14789else
14790 ac_cpp_err=yes
14791fi
14792if test -z "$ac_cpp_err"; then
14793 ac_header_preproc=yes
14794else
14795 echo "$as_me: failed program was:" >&5
14796sed 's/^/| /' conftest.$ac_ext >&5
14797
14798 ac_header_preproc=no
14799fi
14800rm -f conftest.err conftest.$ac_ext
14801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14802echo "${ECHO_T}$ac_header_preproc" >&6
14803
14804# So? What about this header?
ac1cb8d3
VS
14805case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14806 yes:no: )
a848cd7e
SC
14807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14808echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14810echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14811 ac_header_preproc=yes
a848cd7e 14812 ;;
ac1cb8d3 14813 no:yes:* )
a848cd7e
SC
14814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14815echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14817echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14819echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14821echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14823echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14825echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14826 (
14827 cat <<\_ASBOX
ac1cb8d3
VS
14828## ----------------------------------------- ##
14829## Report this to wx-dev@lists.wxwidgets.org ##
14830## ----------------------------------------- ##
a848cd7e
SC
14831_ASBOX
14832 ) |
14833 sed "s/^/$as_me: WARNING: /" >&2
14834 ;;
14835esac
14836echo "$as_me:$LINENO: checking for $ac_header" >&5
14837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14838if eval "test \"\${$as_ac_Header+set}\" = set"; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14840else
ac1cb8d3 14841 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14842fi
14843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14845
14846fi
14847if test `eval echo '${'$as_ac_Header'}'` = yes; then
14848 cat >>confdefs.h <<_ACEOF
14849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14850_ACEOF
14851
14852fi
14853
14854done
14855
14856
14857if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14858
14859for ac_func in fnmatch
14860do
14861as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14862echo "$as_me:$LINENO: checking for $ac_func" >&5
14863echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14864if eval "test \"\${$as_ac_var+set}\" = set"; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14866else
14867 cat >conftest.$ac_ext <<_ACEOF
14868/* confdefs.h. */
14869_ACEOF
14870cat confdefs.h >>conftest.$ac_ext
14871cat >>conftest.$ac_ext <<_ACEOF
14872/* end confdefs.h. */
ac1cb8d3
VS
14873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14875#define $ac_func innocuous_$ac_func
14876
a848cd7e
SC
14877/* System header to define __stub macros and hopefully few prototypes,
14878 which can conflict with char $ac_func (); below.
14879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14880 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14881
a848cd7e
SC
14882#ifdef __STDC__
14883# include <limits.h>
14884#else
14885# include <assert.h>
14886#endif
ac1cb8d3
VS
14887
14888#undef $ac_func
14889
a848cd7e
SC
14890/* Override any gcc2 internal prototype to avoid an error. */
14891#ifdef __cplusplus
14892extern "C"
14893{
14894#endif
14895/* We use char because int might match the return type of a gcc2
14896 builtin and then its argument prototype would still apply. */
14897char $ac_func ();
14898/* The GNU C library defines this for functions which it implements
14899 to always fail with ENOSYS. Some functions are actually named
14900 something starting with __ and the normal name is an alias. */
14901#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14902choke me
14903#else
14904char (*f) () = $ac_func;
14905#endif
14906#ifdef __cplusplus
14907}
14908#endif
14909
14910int
14911main ()
14912{
14913return f != $ac_func;
14914 ;
14915 return 0;
14916}
14917_ACEOF
14918rm -f conftest.$ac_objext conftest$ac_exeext
14919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14920 (eval $ac_link) 2>conftest.er1
a848cd7e 14921 ac_status=$?
ac1cb8d3
VS
14922 grep -v '^ *+' conftest.er1 >conftest.err
14923 rm -f conftest.er1
14924 cat conftest.err >&5
a848cd7e
SC
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } &&
fb00f58d
JS
14927 { ac_try='test -z "$ac_c_werror_flag"
14928 || test ! -s conftest.err'
ac1cb8d3
VS
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 eval "$as_ac_var=yes"
14941else
14942 echo "$as_me: failed program was:" >&5
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
14945eval "$as_ac_var=no"
14946fi
ac1cb8d3
VS
14947rm -f conftest.err conftest.$ac_objext \
14948 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14949fi
14950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14951echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14952if test `eval echo '${'$as_ac_var'}'` = yes; then
14953 cat >>confdefs.h <<_ACEOF
14954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14955_ACEOF
14956
14957fi
14958done
14959
14960fi
14961
14962
14963for ac_header in langinfo.h
14964do
14965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14966if eval "test \"\${$as_ac_Header+set}\" = set"; then
14967 echo "$as_me:$LINENO: checking for $ac_header" >&5
14968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14969if eval "test \"\${$as_ac_Header+set}\" = set"; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14971fi
14972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14973echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14974else
14975 # Is the header compilable?
14976echo "$as_me:$LINENO: checking $ac_header usability" >&5
14977echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14978cat >conftest.$ac_ext <<_ACEOF
14979/* confdefs.h. */
14980_ACEOF
14981cat confdefs.h >>conftest.$ac_ext
14982cat >>conftest.$ac_ext <<_ACEOF
14983/* end confdefs.h. */
14984$ac_includes_default
14985#include <$ac_header>
14986_ACEOF
14987rm -f conftest.$ac_objext
14988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14989 (eval $ac_compile) 2>conftest.er1
a848cd7e 14990 ac_status=$?
ac1cb8d3
VS
14991 grep -v '^ *+' conftest.er1 >conftest.err
14992 rm -f conftest.er1
14993 cat conftest.err >&5
a848cd7e
SC
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } &&
fb00f58d
JS
14996 { ac_try='test -z "$ac_c_werror_flag"
14997 || test ! -s conftest.err'
ac1cb8d3
VS
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15000 ac_status=$?
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; } &&
15003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; }; then
15009 ac_header_compiler=yes
15010else
15011 echo "$as_me: failed program was:" >&5
15012sed 's/^/| /' conftest.$ac_ext >&5
15013
15014ac_header_compiler=no
15015fi
ac1cb8d3 15016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15017echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15018echo "${ECHO_T}$ac_header_compiler" >&6
15019
15020# Is the header present?
15021echo "$as_me:$LINENO: checking $ac_header presence" >&5
15022echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15023cat >conftest.$ac_ext <<_ACEOF
15024/* confdefs.h. */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h. */
15029#include <$ac_header>
15030_ACEOF
15031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15033 ac_status=$?
15034 grep -v '^ *+' conftest.er1 >conftest.err
15035 rm -f conftest.er1
15036 cat conftest.err >&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } >/dev/null; then
15039 if test -s conftest.err; then
15040 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15042 else
15043 ac_cpp_err=
15044 fi
15045else
15046 ac_cpp_err=yes
15047fi
15048if test -z "$ac_cpp_err"; then
15049 ac_header_preproc=yes
15050else
15051 echo "$as_me: failed program was:" >&5
15052sed 's/^/| /' conftest.$ac_ext >&5
15053
15054 ac_header_preproc=no
15055fi
15056rm -f conftest.err conftest.$ac_ext
15057echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15058echo "${ECHO_T}$ac_header_preproc" >&6
15059
15060# So? What about this header?
ac1cb8d3
VS
15061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15062 yes:no: )
a848cd7e
SC
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15067 ac_header_preproc=yes
a848cd7e 15068 ;;
ac1cb8d3 15069 no:yes:* )
a848cd7e
SC
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15077echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15082 (
15083 cat <<\_ASBOX
ac1cb8d3
VS
15084## ----------------------------------------- ##
15085## Report this to wx-dev@lists.wxwidgets.org ##
15086## ----------------------------------------- ##
a848cd7e
SC
15087_ASBOX
15088 ) |
15089 sed "s/^/$as_me: WARNING: /" >&2
15090 ;;
15091esac
15092echo "$as_me:$LINENO: checking for $ac_header" >&5
15093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15094if eval "test \"\${$as_ac_Header+set}\" = set"; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15096else
ac1cb8d3 15097 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15098fi
15099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15101
15102fi
15103if test `eval echo '${'$as_ac_Header'}'` = yes; then
15104 cat >>confdefs.h <<_ACEOF
15105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15106_ACEOF
15107
15108fi
15109
15110done
15111
15112
15113case "${host}" in
15114 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15115 if test $ac_cv_header_langinfo_h = "yes" \
15116 -a \( "$wx_cv_gccversion" = "EMX2" \
15117 -o "$wx_cv_gccversion" = "EMX3" \
15118 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15119 LIBS="$LIBS -lintl"
15120 fi
15121 ;;
15122esac
15123
15124if test "$wxUSE_GUI" = "yes"; then
15125 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15126
15127for ac_header in X11/Xlib.h
15128do
15129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15130if eval "test \"\${$as_ac_Header+set}\" = set"; then
15131 echo "$as_me:$LINENO: checking for $ac_header" >&5
15132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15133if eval "test \"\${$as_ac_Header+set}\" = set"; then
15134 echo $ECHO_N "(cached) $ECHO_C" >&6
15135fi
15136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15138else
15139 # Is the header compilable?
15140echo "$as_me:$LINENO: checking $ac_header usability" >&5
15141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15142cat >conftest.$ac_ext <<_ACEOF
15143/* confdefs.h. */
15144_ACEOF
15145cat confdefs.h >>conftest.$ac_ext
15146cat >>conftest.$ac_ext <<_ACEOF
15147/* end confdefs.h. */
15148$ac_includes_default
15149#include <$ac_header>
15150_ACEOF
15151rm -f conftest.$ac_objext
15152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15153 (eval $ac_compile) 2>conftest.er1
a848cd7e 15154 ac_status=$?
ac1cb8d3
VS
15155 grep -v '^ *+' conftest.er1 >conftest.err
15156 rm -f conftest.er1
15157 cat conftest.err >&5
a848cd7e
SC
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
fb00f58d
JS
15160 { ac_try='test -z "$ac_c_werror_flag"
15161 || test ! -s conftest.err'
ac1cb8d3
VS
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; } &&
15167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15173 ac_header_compiler=yes
15174else
15175 echo "$as_me: failed program was:" >&5
15176sed 's/^/| /' conftest.$ac_ext >&5
15177
15178ac_header_compiler=no
15179fi
ac1cb8d3 15180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15182echo "${ECHO_T}$ac_header_compiler" >&6
15183
15184# Is the header present?
15185echo "$as_me:$LINENO: checking $ac_header presence" >&5
15186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15187cat >conftest.$ac_ext <<_ACEOF
15188/* confdefs.h. */
15189_ACEOF
15190cat confdefs.h >>conftest.$ac_ext
15191cat >>conftest.$ac_ext <<_ACEOF
15192/* end confdefs.h. */
15193#include <$ac_header>
15194_ACEOF
15195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15197 ac_status=$?
15198 grep -v '^ *+' conftest.er1 >conftest.err
15199 rm -f conftest.er1
15200 cat conftest.err >&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } >/dev/null; then
15203 if test -s conftest.err; then
15204 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15206 else
15207 ac_cpp_err=
15208 fi
15209else
15210 ac_cpp_err=yes
15211fi
15212if test -z "$ac_cpp_err"; then
15213 ac_header_preproc=yes
15214else
15215 echo "$as_me: failed program was:" >&5
15216sed 's/^/| /' conftest.$ac_ext >&5
15217
15218 ac_header_preproc=no
15219fi
15220rm -f conftest.err conftest.$ac_ext
15221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15222echo "${ECHO_T}$ac_header_preproc" >&6
15223
15224# So? What about this header?
ac1cb8d3
VS
15225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15226 yes:no: )
a848cd7e
SC
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15231 ac_header_preproc=yes
a848cd7e 15232 ;;
ac1cb8d3 15233 no:yes:* )
a848cd7e
SC
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15246 (
15247 cat <<\_ASBOX
ac1cb8d3
VS
15248## ----------------------------------------- ##
15249## Report this to wx-dev@lists.wxwidgets.org ##
15250## ----------------------------------------- ##
a848cd7e
SC
15251_ASBOX
15252 ) |
15253 sed "s/^/$as_me: WARNING: /" >&2
15254 ;;
15255esac
15256echo "$as_me:$LINENO: checking for $ac_header" >&5
15257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15258if eval "test \"\${$as_ac_Header+set}\" = set"; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15260else
ac1cb8d3 15261 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15262fi
15263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15265
15266fi
15267if test `eval echo '${'$as_ac_Header'}'` = yes; then
15268 cat >>confdefs.h <<_ACEOF
15269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15270_ACEOF
15271
15272fi
15273
15274done
15275
15276
15277for ac_header in X11/XKBlib.h
15278do
15279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15280echo "$as_me:$LINENO: checking for $ac_header" >&5
15281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15282if eval "test \"\${$as_ac_Header+set}\" = set"; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284else
15285 cat >conftest.$ac_ext <<_ACEOF
15286/* confdefs.h. */
15287_ACEOF
15288cat confdefs.h >>conftest.$ac_ext
15289cat >>conftest.$ac_ext <<_ACEOF
15290/* end confdefs.h. */
15291
15292 #if HAVE_X11_XLIB_H
15293 #include <X11/Xlib.h>
15294 #endif
15295
15296
15297#include <$ac_header>
15298_ACEOF
15299rm -f conftest.$ac_objext
15300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15301 (eval $ac_compile) 2>conftest.er1
a848cd7e 15302 ac_status=$?
ac1cb8d3
VS
15303 grep -v '^ *+' conftest.er1 >conftest.err
15304 rm -f conftest.er1
15305 cat conftest.err >&5
a848cd7e
SC
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
fb00f58d
JS
15308 { ac_try='test -z "$ac_c_werror_flag"
15309 || test ! -s conftest.err'
ac1cb8d3
VS
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; } &&
15315 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }; then
15321 eval "$as_ac_Header=yes"
15322else
15323 echo "$as_me: failed program was:" >&5
15324sed 's/^/| /' conftest.$ac_ext >&5
15325
15326eval "$as_ac_Header=no"
15327fi
ac1cb8d3 15328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15329fi
15330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15331echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15332if test `eval echo '${'$as_ac_Header'}'` = yes; then
15333 cat >>confdefs.h <<_ACEOF
15334#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15335_ACEOF
15336
15337fi
15338
15339done
15340
15341 fi
15342fi
15343
15344
15345echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15346echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15347if test "${ac_cv_c_const+set}" = set; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15349else
15350 cat >conftest.$ac_ext <<_ACEOF
15351/* confdefs.h. */
15352_ACEOF
15353cat confdefs.h >>conftest.$ac_ext
15354cat >>conftest.$ac_ext <<_ACEOF
15355/* end confdefs.h. */
15356
15357int
15358main ()
15359{
15360/* FIXME: Include the comments suggested by Paul. */
15361#ifndef __cplusplus
15362 /* Ultrix mips cc rejects this. */
15363 typedef int charset[2];
15364 const charset x;
15365 /* SunOS 4.1.1 cc rejects this. */
15366 char const *const *ccp;
15367 char **p;
15368 /* NEC SVR4.0.2 mips cc rejects this. */
15369 struct point {int x, y;};
15370 static struct point const zero = {0,0};
15371 /* AIX XL C 1.02.0.0 rejects this.
15372 It does not let you subtract one const X* pointer from another in
15373 an arm of an if-expression whose if-part is not a constant
15374 expression */
15375 const char *g = "string";
15376 ccp = &g + (g ? g-g : 0);
15377 /* HPUX 7.0 cc rejects these. */
15378 ++ccp;
15379 p = (char**) ccp;
15380 ccp = (char const *const *) p;
15381 { /* SCO 3.2v4 cc rejects this. */
15382 char *t;
15383 char const *s = 0 ? (char *) 0 : (char const *) 0;
15384
15385 *t++ = 0;
15386 }
15387 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15388 int x[] = {25, 17};
15389 const int *foo = &x[0];
15390 ++foo;
15391 }
15392 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15393 typedef const int *iptr;
15394 iptr p = 0;
15395 ++p;
15396 }
15397 { /* AIX XL C 1.02.0.0 rejects this saying
15398 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15399 struct s { int j; const int *ap[3]; };
15400 struct s *b; b->j = 5;
15401 }
15402 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15403 const int foo = 10;
15404 }
15405#endif
15406
15407 ;
15408 return 0;
15409}
15410_ACEOF
15411rm -f conftest.$ac_objext
15412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15413 (eval $ac_compile) 2>conftest.er1
a848cd7e 15414 ac_status=$?
ac1cb8d3
VS
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
a848cd7e
SC
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
fb00f58d
JS
15420 { ac_try='test -z "$ac_c_werror_flag"
15421 || test ! -s conftest.err'
ac1cb8d3
VS
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15424 ac_status=$?
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; } &&
15427 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15433 ac_cv_c_const=yes
15434else
15435 echo "$as_me: failed program was:" >&5
15436sed 's/^/| /' conftest.$ac_ext >&5
15437
15438ac_cv_c_const=no
15439fi
ac1cb8d3 15440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15441fi
15442echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15443echo "${ECHO_T}$ac_cv_c_const" >&6
15444if test $ac_cv_c_const = no; then
15445
15446cat >>confdefs.h <<\_ACEOF
15447#define const
15448_ACEOF
15449
15450fi
15451
15452echo "$as_me:$LINENO: checking for inline" >&5
15453echo $ECHO_N "checking for inline... $ECHO_C" >&6
15454if test "${ac_cv_c_inline+set}" = set; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15456else
15457 ac_cv_c_inline=no
15458for ac_kw in inline __inline__ __inline; do
15459 cat >conftest.$ac_ext <<_ACEOF
15460/* confdefs.h. */
15461_ACEOF
15462cat confdefs.h >>conftest.$ac_ext
15463cat >>conftest.$ac_ext <<_ACEOF
15464/* end confdefs.h. */
15465#ifndef __cplusplus
15466typedef int foo_t;
15467static $ac_kw foo_t static_foo () {return 0; }
15468$ac_kw foo_t foo () {return 0; }
15469#endif
15470
15471_ACEOF
15472rm -f conftest.$ac_objext
15473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15474 (eval $ac_compile) 2>conftest.er1
a848cd7e 15475 ac_status=$?
ac1cb8d3
VS
15476 grep -v '^ *+' conftest.er1 >conftest.err
15477 rm -f conftest.er1
15478 cat conftest.err >&5
a848cd7e
SC
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
fb00f58d
JS
15481 { ac_try='test -z "$ac_c_werror_flag"
15482 || test ! -s conftest.err'
ac1cb8d3
VS
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; } &&
15488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; }; then
15494 ac_cv_c_inline=$ac_kw; break
15495else
15496 echo "$as_me: failed program was:" >&5
15497sed 's/^/| /' conftest.$ac_ext >&5
15498
15499fi
ac1cb8d3 15500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15501done
15502
15503fi
15504echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15505echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15506
15507
a848cd7e
SC
15508case $ac_cv_c_inline in
15509 inline | yes) ;;
ac1cb8d3
VS
15510 *)
15511 case $ac_cv_c_inline in
15512 no) ac_val=;;
15513 *) ac_val=$ac_cv_c_inline;;
15514 esac
15515 cat >>confdefs.h <<_ACEOF
15516#ifndef __cplusplus
15517#define inline $ac_val
15518#endif
de59c161 15519_ACEOF
ac1cb8d3 15520 ;;
a848cd7e
SC
15521esac
15522
15523
15524echo "$as_me:$LINENO: checking for char" >&5
15525echo $ECHO_N "checking for char... $ECHO_C" >&6
15526if test "${ac_cv_type_char+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528else
15529 cat >conftest.$ac_ext <<_ACEOF
15530/* confdefs.h. */
15531_ACEOF
15532cat confdefs.h >>conftest.$ac_ext
15533cat >>conftest.$ac_ext <<_ACEOF
15534/* end confdefs.h. */
15535$ac_includes_default
15536int
15537main ()
15538{
15539if ((char *) 0)
15540 return 0;
15541if (sizeof (char))
15542 return 0;
15543 ;
15544 return 0;
15545}
15546_ACEOF
15547rm -f conftest.$ac_objext
15548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15549 (eval $ac_compile) 2>conftest.er1
a848cd7e 15550 ac_status=$?
ac1cb8d3
VS
15551 grep -v '^ *+' conftest.er1 >conftest.err
15552 rm -f conftest.er1
15553 cat conftest.err >&5
a848cd7e
SC
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
fb00f58d
JS
15556 { ac_try='test -z "$ac_c_werror_flag"
15557 || test ! -s conftest.err'
ac1cb8d3
VS
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; } &&
15563 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15566 ac_status=$?
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; }; then
15569 ac_cv_type_char=yes
15570else
15571 echo "$as_me: failed program was:" >&5
15572sed 's/^/| /' conftest.$ac_ext >&5
15573
15574ac_cv_type_char=no
15575fi
ac1cb8d3 15576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15577fi
15578echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15579echo "${ECHO_T}$ac_cv_type_char" >&6
15580
15581echo "$as_me:$LINENO: checking size of char" >&5
15582echo $ECHO_N "checking size of char... $ECHO_C" >&6
15583if test "${ac_cv_sizeof_char+set}" = set; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15585else
15586 if test "$ac_cv_type_char" = yes; then
15587 # The cast to unsigned long works around a bug in the HP C Compiler
15588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15590 # This bug is HP SR number 8606223364.
15591 if test "$cross_compiling" = yes; then
15592 # Depending upon the size, compute the lo and hi bounds.
15593cat >conftest.$ac_ext <<_ACEOF
15594/* confdefs.h. */
15595_ACEOF
15596cat confdefs.h >>conftest.$ac_ext
15597cat >>conftest.$ac_ext <<_ACEOF
15598/* end confdefs.h. */
15599$ac_includes_default
15600int
15601main ()
15602{
15603static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15604test_array [0] = 0
15605
15606 ;
15607 return 0;
15608}
15609_ACEOF
15610rm -f conftest.$ac_objext
15611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15612 (eval $ac_compile) 2>conftest.er1
a848cd7e 15613 ac_status=$?
ac1cb8d3
VS
15614 grep -v '^ *+' conftest.er1 >conftest.err
15615 rm -f conftest.er1
15616 cat conftest.err >&5
a848cd7e
SC
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } &&
fb00f58d
JS
15619 { ac_try='test -z "$ac_c_werror_flag"
15620 || test ! -s conftest.err'
ac1cb8d3
VS
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; } &&
15626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; }; then
15632 ac_lo=0 ac_mid=0
15633 while :; do
15634 cat >conftest.$ac_ext <<_ACEOF
15635/* confdefs.h. */
15636_ACEOF
15637cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */
15640$ac_includes_default
15641int
15642main ()
15643{
15644static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15645test_array [0] = 0
15646
15647 ;
15648 return 0;
15649}
15650_ACEOF
15651rm -f conftest.$ac_objext
15652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15653 (eval $ac_compile) 2>conftest.er1
a848cd7e 15654 ac_status=$?
ac1cb8d3
VS
15655 grep -v '^ *+' conftest.er1 >conftest.err
15656 rm -f conftest.er1
15657 cat conftest.err >&5
a848cd7e
SC
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
fb00f58d
JS
15660 { ac_try='test -z "$ac_c_werror_flag"
15661 || test ! -s conftest.err'
ac1cb8d3
VS
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; } &&
15667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15673 ac_hi=$ac_mid; break
15674else
15675 echo "$as_me: failed program was:" >&5
15676sed 's/^/| /' conftest.$ac_ext >&5
15677
15678ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15679 if test $ac_lo -le $ac_mid; then
15680 ac_lo= ac_hi=
15681 break
15682 fi
15683 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15684fi
ac1cb8d3 15685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15686 done
15687else
15688 echo "$as_me: failed program was:" >&5
15689sed 's/^/| /' conftest.$ac_ext >&5
15690
15691cat >conftest.$ac_ext <<_ACEOF
15692/* confdefs.h. */
15693_ACEOF
15694cat confdefs.h >>conftest.$ac_ext
15695cat >>conftest.$ac_ext <<_ACEOF
15696/* end confdefs.h. */
15697$ac_includes_default
15698int
15699main ()
15700{
15701static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15702test_array [0] = 0
15703
15704 ;
15705 return 0;
15706}
15707_ACEOF
15708rm -f conftest.$ac_objext
15709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15710 (eval $ac_compile) 2>conftest.er1
a848cd7e 15711 ac_status=$?
ac1cb8d3
VS
15712 grep -v '^ *+' conftest.er1 >conftest.err
15713 rm -f conftest.er1
15714 cat conftest.err >&5
a848cd7e
SC
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } &&
fb00f58d
JS
15717 { ac_try='test -z "$ac_c_werror_flag"
15718 || test ! -s conftest.err'
ac1cb8d3
VS
15719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720 (eval $ac_try) 2>&5
15721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; } &&
15724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730 ac_hi=-1 ac_mid=-1
15731 while :; do
15732 cat >conftest.$ac_ext <<_ACEOF
15733/* confdefs.h. */
15734_ACEOF
15735cat confdefs.h >>conftest.$ac_ext
15736cat >>conftest.$ac_ext <<_ACEOF
15737/* end confdefs.h. */
15738$ac_includes_default
15739int
15740main ()
15741{
15742static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15743test_array [0] = 0
15744
15745 ;
15746 return 0;
15747}
15748_ACEOF
15749rm -f conftest.$ac_objext
15750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15751 (eval $ac_compile) 2>conftest.er1
a848cd7e 15752 ac_status=$?
ac1cb8d3
VS
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
a848cd7e
SC
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
fb00f58d
JS
15758 { ac_try='test -z "$ac_c_werror_flag"
15759 || test ! -s conftest.err'
ac1cb8d3
VS
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 ac_lo=$ac_mid; break
15772else
15773 echo "$as_me: failed program was:" >&5
15774sed 's/^/| /' conftest.$ac_ext >&5
15775
15776ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15777 if test $ac_mid -le $ac_hi; then
15778 ac_lo= ac_hi=
15779 break
15780 fi
15781 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15782fi
ac1cb8d3 15783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15784 done
15785else
15786 echo "$as_me: failed program was:" >&5
15787sed 's/^/| /' conftest.$ac_ext >&5
15788
15789ac_lo= ac_hi=
15790fi
ac1cb8d3 15791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15792fi
ac1cb8d3 15793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15794# Binary search between lo and hi bounds.
15795while test "x$ac_lo" != "x$ac_hi"; do
15796 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15797 cat >conftest.$ac_ext <<_ACEOF
15798/* confdefs.h. */
15799_ACEOF
15800cat confdefs.h >>conftest.$ac_ext
15801cat >>conftest.$ac_ext <<_ACEOF
15802/* end confdefs.h. */
15803$ac_includes_default
15804int
15805main ()
15806{
15807static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15808test_array [0] = 0
15809
15810 ;
15811 return 0;
15812}
15813_ACEOF
15814rm -f conftest.$ac_objext
15815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15816 (eval $ac_compile) 2>conftest.er1
a848cd7e 15817 ac_status=$?
ac1cb8d3
VS
15818 grep -v '^ *+' conftest.er1 >conftest.err
15819 rm -f conftest.er1
15820 cat conftest.err >&5
a848cd7e
SC
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
fb00f58d
JS
15823 { ac_try='test -z "$ac_c_werror_flag"
15824 || test ! -s conftest.err'
ac1cb8d3
VS
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; } &&
15830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15836 ac_hi=$ac_mid
15837else
15838 echo "$as_me: failed program was:" >&5
15839sed 's/^/| /' conftest.$ac_ext >&5
15840
15841ac_lo=`expr '(' $ac_mid ')' + 1`
15842fi
ac1cb8d3 15843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15844done
15845case $ac_lo in
15846?*) ac_cv_sizeof_char=$ac_lo;;
15847'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15848See \`config.log' for more details." >&5
15849echo "$as_me: error: cannot compute sizeof (char), 77
15850See \`config.log' for more details." >&2;}
15851 { (exit 1); exit 1; }; } ;;
15852esac
15853else
15854 if test "$cross_compiling" = yes; then
fb00f58d
JS
15855 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15856See \`config.log' for more details." >&5
15857echo "$as_me: error: cannot run test program while cross compiling
15858See \`config.log' for more details." >&2;}
a848cd7e
SC
15859 { (exit 1); exit 1; }; }
15860else
15861 cat >conftest.$ac_ext <<_ACEOF
15862/* confdefs.h. */
15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h. */
15867$ac_includes_default
15868long longval () { return (long) (sizeof (char)); }
15869unsigned long ulongval () { return (long) (sizeof (char)); }
15870#include <stdio.h>
15871#include <stdlib.h>
15872int
15873main ()
15874{
15875
15876 FILE *f = fopen ("conftest.val", "w");
15877 if (! f)
15878 exit (1);
15879 if (((long) (sizeof (char))) < 0)
15880 {
15881 long i = longval ();
15882 if (i != ((long) (sizeof (char))))
15883 exit (1);
15884 fprintf (f, "%ld\n", i);
15885 }
15886 else
15887 {
15888 unsigned long i = ulongval ();
15889 if (i != ((long) (sizeof (char))))
15890 exit (1);
15891 fprintf (f, "%lu\n", i);
15892 }
15893 exit (ferror (f) || fclose (f) != 0);
15894
15895 ;
15896 return 0;
15897}
15898_ACEOF
15899rm -f conftest$ac_exeext
15900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15901 (eval $ac_link) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_char=`cat conftest.val`
15911else
15912 echo "$as_me: program exited with status $ac_status" >&5
15913echo "$as_me: failed program was:" >&5
15914sed 's/^/| /' conftest.$ac_ext >&5
15915
15916( exit $ac_status )
15917{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15918See \`config.log' for more details." >&5
15919echo "$as_me: error: cannot compute sizeof (char), 77
15920See \`config.log' for more details." >&2;}
15921 { (exit 1); exit 1; }; }
15922fi
ac1cb8d3 15923rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15924fi
15925fi
15926rm -f conftest.val
15927else
15928 ac_cv_sizeof_char=0
15929fi
15930fi
15931echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15932echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15933cat >>confdefs.h <<_ACEOF
15934#define SIZEOF_CHAR $ac_cv_sizeof_char
15935_ACEOF
15936
15937
15938echo "$as_me:$LINENO: checking for short" >&5
15939echo $ECHO_N "checking for short... $ECHO_C" >&6
15940if test "${ac_cv_type_short+set}" = set; then
15941 echo $ECHO_N "(cached) $ECHO_C" >&6
15942else
15943 cat >conftest.$ac_ext <<_ACEOF
15944/* confdefs.h. */
15945_ACEOF
15946cat confdefs.h >>conftest.$ac_ext
15947cat >>conftest.$ac_ext <<_ACEOF
15948/* end confdefs.h. */
15949$ac_includes_default
15950int
15951main ()
15952{
15953if ((short *) 0)
15954 return 0;
15955if (sizeof (short))
15956 return 0;
15957 ;
15958 return 0;
15959}
15960_ACEOF
15961rm -f conftest.$ac_objext
15962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15963 (eval $ac_compile) 2>conftest.er1
a848cd7e 15964 ac_status=$?
ac1cb8d3
VS
15965 grep -v '^ *+' conftest.er1 >conftest.err
15966 rm -f conftest.er1
15967 cat conftest.err >&5
a848cd7e
SC
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } &&
fb00f58d
JS
15970 { ac_try='test -z "$ac_c_werror_flag"
15971 || test ! -s conftest.err'
ac1cb8d3
VS
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; } &&
15977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15980 ac_status=$?
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
15983 ac_cv_type_short=yes
15984else
15985 echo "$as_me: failed program was:" >&5
15986sed 's/^/| /' conftest.$ac_ext >&5
15987
15988ac_cv_type_short=no
15989fi
ac1cb8d3 15990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15991fi
15992echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15993echo "${ECHO_T}$ac_cv_type_short" >&6
15994
15995echo "$as_me:$LINENO: checking size of short" >&5
15996echo $ECHO_N "checking size of short... $ECHO_C" >&6
15997if test "${ac_cv_sizeof_short+set}" = set; then
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
15999else
16000 if test "$ac_cv_type_short" = yes; then
16001 # The cast to unsigned long works around a bug in the HP C Compiler
16002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16004 # This bug is HP SR number 8606223364.
16005 if test "$cross_compiling" = yes; then
16006 # Depending upon the size, compute the lo and hi bounds.
16007cat >conftest.$ac_ext <<_ACEOF
16008/* confdefs.h. */
16009_ACEOF
16010cat confdefs.h >>conftest.$ac_ext
16011cat >>conftest.$ac_ext <<_ACEOF
16012/* end confdefs.h. */
16013$ac_includes_default
16014int
16015main ()
16016{
16017static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16018test_array [0] = 0
16019
16020 ;
16021 return 0;
16022}
16023_ACEOF
16024rm -f conftest.$ac_objext
16025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16026 (eval $ac_compile) 2>conftest.er1
a848cd7e 16027 ac_status=$?
ac1cb8d3
VS
16028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
a848cd7e
SC
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } &&
fb00f58d
JS
16033 { ac_try='test -z "$ac_c_werror_flag"
16034 || 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=0 ac_mid=0
16047 while :; do
16048 cat >conftest.$ac_ext <<_ACEOF
16049/* confdefs.h. */
16050_ACEOF
16051cat confdefs.h >>conftest.$ac_ext
16052cat >>conftest.$ac_ext <<_ACEOF
16053/* end confdefs.h. */
16054$ac_includes_default
16055int
16056main ()
16057{
16058static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16059test_array [0] = 0
16060
16061 ;
16062 return 0;
16063}
16064_ACEOF
16065rm -f conftest.$ac_objext
16066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16067 (eval $ac_compile) 2>conftest.er1
a848cd7e 16068 ac_status=$?
ac1cb8d3
VS
16069 grep -v '^ *+' conftest.er1 >conftest.err
16070 rm -f conftest.er1
16071 cat conftest.err >&5
a848cd7e
SC
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } &&
fb00f58d
JS
16074 { ac_try='test -z "$ac_c_werror_flag"
16075 || test ! -s conftest.err'
ac1cb8d3
VS
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087 ac_hi=$ac_mid; break
16088else
16089 echo "$as_me: failed program was:" >&5
16090sed 's/^/| /' conftest.$ac_ext >&5
16091
16092ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16093 if test $ac_lo -le $ac_mid; then
16094 ac_lo= ac_hi=
16095 break
16096 fi
16097 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16098fi
ac1cb8d3 16099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16100 done
16101else
16102 echo "$as_me: failed program was:" >&5
16103sed 's/^/| /' conftest.$ac_ext >&5
16104
16105cat >conftest.$ac_ext <<_ACEOF
16106/* confdefs.h. */
16107_ACEOF
16108cat confdefs.h >>conftest.$ac_ext
16109cat >>conftest.$ac_ext <<_ACEOF
16110/* end confdefs.h. */
16111$ac_includes_default
16112int
16113main ()
16114{
16115static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16116test_array [0] = 0
16117
16118 ;
16119 return 0;
16120}
16121_ACEOF
16122rm -f conftest.$ac_objext
16123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16124 (eval $ac_compile) 2>conftest.er1
a848cd7e 16125 ac_status=$?
ac1cb8d3
VS
16126 grep -v '^ *+' conftest.er1 >conftest.err
16127 rm -f conftest.er1
16128 cat conftest.err >&5
a848cd7e
SC
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
fb00f58d
JS
16131 { ac_try='test -z "$ac_c_werror_flag"
16132 || test ! -s conftest.err'
ac1cb8d3
VS
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ac_hi=-1 ac_mid=-1
16145 while :; do
16146 cat >conftest.$ac_ext <<_ACEOF
16147/* confdefs.h. */
16148_ACEOF
16149cat confdefs.h >>conftest.$ac_ext
16150cat >>conftest.$ac_ext <<_ACEOF
16151/* end confdefs.h. */
16152$ac_includes_default
16153int
16154main ()
16155{
16156static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16157test_array [0] = 0
16158
16159 ;
16160 return 0;
16161}
16162_ACEOF
16163rm -f conftest.$ac_objext
16164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16165 (eval $ac_compile) 2>conftest.er1
a848cd7e 16166 ac_status=$?
ac1cb8d3
VS
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
a848cd7e
SC
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
fb00f58d
JS
16172 { ac_try='test -z "$ac_c_werror_flag"
16173 || test ! -s conftest.err'
ac1cb8d3
VS
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; } &&
16179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 ac_lo=$ac_mid; break
16186else
16187 echo "$as_me: failed program was:" >&5
16188sed 's/^/| /' conftest.$ac_ext >&5
16189
16190ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16191 if test $ac_mid -le $ac_hi; then
16192 ac_lo= ac_hi=
16193 break
16194 fi
16195 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16196fi
ac1cb8d3 16197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16198 done
16199else
16200 echo "$as_me: failed program was:" >&5
16201sed 's/^/| /' conftest.$ac_ext >&5
16202
16203ac_lo= ac_hi=
16204fi
ac1cb8d3 16205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16206fi
ac1cb8d3 16207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16208# Binary search between lo and hi bounds.
16209while test "x$ac_lo" != "x$ac_hi"; do
16210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16211 cat >conftest.$ac_ext <<_ACEOF
16212/* confdefs.h. */
16213_ACEOF
16214cat confdefs.h >>conftest.$ac_ext
16215cat >>conftest.$ac_ext <<_ACEOF
16216/* end confdefs.h. */
16217$ac_includes_default
16218int
16219main ()
16220{
16221static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16222test_array [0] = 0
16223
16224 ;
16225 return 0;
16226}
16227_ACEOF
16228rm -f conftest.$ac_objext
16229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16230 (eval $ac_compile) 2>conftest.er1
a848cd7e 16231 ac_status=$?
ac1cb8d3
VS
16232 grep -v '^ *+' conftest.er1 >conftest.err
16233 rm -f conftest.er1
16234 cat conftest.err >&5
a848cd7e
SC
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } &&
fb00f58d
JS
16237 { ac_try='test -z "$ac_c_werror_flag"
16238 || test ! -s conftest.err'
ac1cb8d3
VS
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; } &&
16244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 ac_hi=$ac_mid
16251else
16252 echo "$as_me: failed program was:" >&5
16253sed 's/^/| /' conftest.$ac_ext >&5
16254
16255ac_lo=`expr '(' $ac_mid ')' + 1`
16256fi
ac1cb8d3 16257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16258done
16259case $ac_lo in
16260?*) ac_cv_sizeof_short=$ac_lo;;
16261'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16262See \`config.log' for more details." >&5
16263echo "$as_me: error: cannot compute sizeof (short), 77
16264See \`config.log' for more details." >&2;}
16265 { (exit 1); exit 1; }; } ;;
16266esac
16267else
16268 if test "$cross_compiling" = yes; then
fb00f58d
JS
16269 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16270See \`config.log' for more details." >&5
16271echo "$as_me: error: cannot run test program while cross compiling
16272See \`config.log' for more details." >&2;}
a848cd7e
SC
16273 { (exit 1); exit 1; }; }
16274else
16275 cat >conftest.$ac_ext <<_ACEOF
16276/* confdefs.h. */
16277_ACEOF
16278cat confdefs.h >>conftest.$ac_ext
16279cat >>conftest.$ac_ext <<_ACEOF
16280/* end confdefs.h. */
16281$ac_includes_default
16282long longval () { return (long) (sizeof (short)); }
16283unsigned long ulongval () { return (long) (sizeof (short)); }
16284#include <stdio.h>
16285#include <stdlib.h>
16286int
16287main ()
16288{
16289
16290 FILE *f = fopen ("conftest.val", "w");
16291 if (! f)
16292 exit (1);
16293 if (((long) (sizeof (short))) < 0)
16294 {
16295 long i = longval ();
16296 if (i != ((long) (sizeof (short))))
16297 exit (1);
16298 fprintf (f, "%ld\n", i);
16299 }
16300 else
16301 {
16302 unsigned long i = ulongval ();
16303 if (i != ((long) (sizeof (short))))
16304 exit (1);
16305 fprintf (f, "%lu\n", i);
16306 }
16307 exit (ferror (f) || fclose (f) != 0);
16308
16309 ;
16310 return 0;
16311}
16312_ACEOF
16313rm -f conftest$ac_exeext
16314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16315 (eval $ac_link) 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 ac_cv_sizeof_short=`cat conftest.val`
16325else
16326 echo "$as_me: program exited with status $ac_status" >&5
16327echo "$as_me: failed program was:" >&5
16328sed 's/^/| /' conftest.$ac_ext >&5
16329
16330( exit $ac_status )
16331{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16332See \`config.log' for more details." >&5
16333echo "$as_me: error: cannot compute sizeof (short), 77
16334See \`config.log' for more details." >&2;}
16335 { (exit 1); exit 1; }; }
16336fi
ac1cb8d3 16337rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16338fi
16339fi
16340rm -f conftest.val
16341else
16342 ac_cv_sizeof_short=0
16343fi
16344fi
16345echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16346echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16347cat >>confdefs.h <<_ACEOF
16348#define SIZEOF_SHORT $ac_cv_sizeof_short
16349_ACEOF
16350
16351
16352echo "$as_me:$LINENO: checking for void *" >&5
16353echo $ECHO_N "checking for void *... $ECHO_C" >&6
16354if test "${ac_cv_type_void_p+set}" = set; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16356else
16357 cat >conftest.$ac_ext <<_ACEOF
16358/* confdefs.h. */
16359_ACEOF
16360cat confdefs.h >>conftest.$ac_ext
16361cat >>conftest.$ac_ext <<_ACEOF
16362/* end confdefs.h. */
16363$ac_includes_default
16364int
16365main ()
16366{
16367if ((void * *) 0)
16368 return 0;
16369if (sizeof (void *))
16370 return 0;
16371 ;
16372 return 0;
16373}
16374_ACEOF
16375rm -f conftest.$ac_objext
16376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16377 (eval $ac_compile) 2>conftest.er1
a848cd7e 16378 ac_status=$?
ac1cb8d3
VS
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
a848cd7e
SC
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
fb00f58d
JS
16384 { ac_try='test -z "$ac_c_werror_flag"
16385 || test ! -s conftest.err'
ac1cb8d3
VS
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; } &&
16391 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16397 ac_cv_type_void_p=yes
16398else
16399 echo "$as_me: failed program was:" >&5
16400sed 's/^/| /' conftest.$ac_ext >&5
16401
16402ac_cv_type_void_p=no
16403fi
ac1cb8d3 16404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16405fi
16406echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16407echo "${ECHO_T}$ac_cv_type_void_p" >&6
16408
16409echo "$as_me:$LINENO: checking size of void *" >&5
16410echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16411if test "${ac_cv_sizeof_void_p+set}" = set; then
16412 echo $ECHO_N "(cached) $ECHO_C" >&6
16413else
16414 if test "$ac_cv_type_void_p" = yes; then
16415 # The cast to unsigned long works around a bug in the HP C Compiler
16416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16418 # This bug is HP SR number 8606223364.
16419 if test "$cross_compiling" = yes; then
16420 # Depending upon the size, compute the lo and hi bounds.
16421cat >conftest.$ac_ext <<_ACEOF
16422/* confdefs.h. */
16423_ACEOF
16424cat confdefs.h >>conftest.$ac_ext
16425cat >>conftest.$ac_ext <<_ACEOF
16426/* end confdefs.h. */
16427$ac_includes_default
16428int
16429main ()
16430{
16431static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16432test_array [0] = 0
16433
16434 ;
16435 return 0;
16436}
16437_ACEOF
16438rm -f conftest.$ac_objext
16439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16440 (eval $ac_compile) 2>conftest.er1
a848cd7e 16441 ac_status=$?
ac1cb8d3
VS
16442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
a848cd7e
SC
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } &&
fb00f58d
JS
16447 { ac_try='test -z "$ac_c_werror_flag"
16448 || test ! -s conftest.err'
ac1cb8d3
VS
16449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450 (eval $ac_try) 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; } &&
16454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_lo=0 ac_mid=0
16461 while :; do
16462 cat >conftest.$ac_ext <<_ACEOF
16463/* confdefs.h. */
16464_ACEOF
16465cat confdefs.h >>conftest.$ac_ext
16466cat >>conftest.$ac_ext <<_ACEOF
16467/* end confdefs.h. */
16468$ac_includes_default
16469int
16470main ()
16471{
16472static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16473test_array [0] = 0
16474
16475 ;
16476 return 0;
16477}
16478_ACEOF
16479rm -f conftest.$ac_objext
16480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16481 (eval $ac_compile) 2>conftest.er1
a848cd7e 16482 ac_status=$?
ac1cb8d3
VS
16483 grep -v '^ *+' conftest.er1 >conftest.err
16484 rm -f conftest.er1
16485 cat conftest.err >&5
a848cd7e
SC
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
fb00f58d
JS
16488 { ac_try='test -z "$ac_c_werror_flag"
16489 || test ! -s conftest.err'
ac1cb8d3
VS
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 ac_hi=$ac_mid; break
16502else
16503 echo "$as_me: failed program was:" >&5
16504sed 's/^/| /' conftest.$ac_ext >&5
16505
16506ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16507 if test $ac_lo -le $ac_mid; then
16508 ac_lo= ac_hi=
16509 break
16510 fi
16511 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16512fi
ac1cb8d3 16513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16514 done
16515else
16516 echo "$as_me: failed program was:" >&5
16517sed 's/^/| /' conftest.$ac_ext >&5
16518
16519cat >conftest.$ac_ext <<_ACEOF
16520/* confdefs.h. */
16521_ACEOF
16522cat confdefs.h >>conftest.$ac_ext
16523cat >>conftest.$ac_ext <<_ACEOF
16524/* end confdefs.h. */
16525$ac_includes_default
16526int
16527main ()
16528{
16529static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16530test_array [0] = 0
16531
16532 ;
16533 return 0;
16534}
16535_ACEOF
16536rm -f conftest.$ac_objext
16537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16538 (eval $ac_compile) 2>conftest.er1
a848cd7e 16539 ac_status=$?
ac1cb8d3
VS
16540 grep -v '^ *+' conftest.er1 >conftest.err
16541 rm -f conftest.er1
16542 cat conftest.err >&5
a848cd7e
SC
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } &&
fb00f58d
JS
16545 { ac_try='test -z "$ac_c_werror_flag"
16546 || test ! -s conftest.err'
ac1cb8d3
VS
16547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548 (eval $ac_try) 2>&5
16549 ac_status=$?
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; } &&
16552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558 ac_hi=-1 ac_mid=-1
16559 while :; do
16560 cat >conftest.$ac_ext <<_ACEOF
16561/* confdefs.h. */
16562_ACEOF
16563cat confdefs.h >>conftest.$ac_ext
16564cat >>conftest.$ac_ext <<_ACEOF
16565/* end confdefs.h. */
16566$ac_includes_default
16567int
16568main ()
16569{
16570static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16571test_array [0] = 0
16572
16573 ;
16574 return 0;
16575}
16576_ACEOF
16577rm -f conftest.$ac_objext
16578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16579 (eval $ac_compile) 2>conftest.er1
a848cd7e 16580 ac_status=$?
ac1cb8d3
VS
16581 grep -v '^ *+' conftest.er1 >conftest.err
16582 rm -f conftest.er1
16583 cat conftest.err >&5
a848cd7e
SC
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } &&
fb00f58d
JS
16586 { ac_try='test -z "$ac_c_werror_flag"
16587 || test ! -s conftest.err'
ac1cb8d3
VS
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; } &&
16593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599 ac_lo=$ac_mid; break
16600else
16601 echo "$as_me: failed program was:" >&5
16602sed 's/^/| /' conftest.$ac_ext >&5
16603
16604ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16605 if test $ac_mid -le $ac_hi; then
16606 ac_lo= ac_hi=
16607 break
16608 fi
16609 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16610fi
ac1cb8d3 16611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16612 done
16613else
16614 echo "$as_me: failed program was:" >&5
16615sed 's/^/| /' conftest.$ac_ext >&5
16616
16617ac_lo= ac_hi=
16618fi
ac1cb8d3 16619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16620fi
ac1cb8d3 16621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16622# Binary search between lo and hi bounds.
16623while test "x$ac_lo" != "x$ac_hi"; do
16624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16625 cat >conftest.$ac_ext <<_ACEOF
16626/* confdefs.h. */
16627_ACEOF
16628cat confdefs.h >>conftest.$ac_ext
16629cat >>conftest.$ac_ext <<_ACEOF
16630/* end confdefs.h. */
16631$ac_includes_default
16632int
16633main ()
16634{
16635static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16636test_array [0] = 0
16637
16638 ;
16639 return 0;
16640}
16641_ACEOF
16642rm -f conftest.$ac_objext
16643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16644 (eval $ac_compile) 2>conftest.er1
a848cd7e 16645 ac_status=$?
ac1cb8d3
VS
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
a848cd7e
SC
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
fb00f58d
JS
16651 { ac_try='test -z "$ac_c_werror_flag"
16652 || test ! -s conftest.err'
ac1cb8d3
VS
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_hi=$ac_mid
16665else
16666 echo "$as_me: failed program was:" >&5
16667sed 's/^/| /' conftest.$ac_ext >&5
16668
16669ac_lo=`expr '(' $ac_mid ')' + 1`
16670fi
ac1cb8d3 16671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16672done
16673case $ac_lo in
16674?*) ac_cv_sizeof_void_p=$ac_lo;;
16675'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16676See \`config.log' for more details." >&5
16677echo "$as_me: error: cannot compute sizeof (void *), 77
16678See \`config.log' for more details." >&2;}
16679 { (exit 1); exit 1; }; } ;;
16680esac
16681else
16682 if test "$cross_compiling" = yes; then
fb00f58d
JS
16683 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16684See \`config.log' for more details." >&5
16685echo "$as_me: error: cannot run test program while cross compiling
16686See \`config.log' for more details." >&2;}
a848cd7e
SC
16687 { (exit 1); exit 1; }; }
16688else
16689 cat >conftest.$ac_ext <<_ACEOF
16690/* confdefs.h. */
16691_ACEOF
16692cat confdefs.h >>conftest.$ac_ext
16693cat >>conftest.$ac_ext <<_ACEOF
16694/* end confdefs.h. */
16695$ac_includes_default
16696long longval () { return (long) (sizeof (void *)); }
16697unsigned long ulongval () { return (long) (sizeof (void *)); }
16698#include <stdio.h>
16699#include <stdlib.h>
16700int
16701main ()
16702{
16703
16704 FILE *f = fopen ("conftest.val", "w");
16705 if (! f)
16706 exit (1);
16707 if (((long) (sizeof (void *))) < 0)
16708 {
16709 long i = longval ();
16710 if (i != ((long) (sizeof (void *))))
16711 exit (1);
16712 fprintf (f, "%ld\n", i);
16713 }
16714 else
16715 {
16716 unsigned long i = ulongval ();
16717 if (i != ((long) (sizeof (void *))))
16718 exit (1);
16719 fprintf (f, "%lu\n", i);
16720 }
16721 exit (ferror (f) || fclose (f) != 0);
16722
16723 ;
16724 return 0;
16725}
16726_ACEOF
16727rm -f conftest$ac_exeext
16728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16729 (eval $ac_link) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 (eval $ac_try) 2>&5
16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16738 ac_cv_sizeof_void_p=`cat conftest.val`
16739else
16740 echo "$as_me: program exited with status $ac_status" >&5
16741echo "$as_me: failed program was:" >&5
16742sed 's/^/| /' conftest.$ac_ext >&5
16743
16744( exit $ac_status )
16745{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16746See \`config.log' for more details." >&5
16747echo "$as_me: error: cannot compute sizeof (void *), 77
16748See \`config.log' for more details." >&2;}
16749 { (exit 1); exit 1; }; }
16750fi
ac1cb8d3 16751rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16752fi
16753fi
16754rm -f conftest.val
16755else
16756 ac_cv_sizeof_void_p=0
16757fi
16758fi
16759echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16760echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16761cat >>confdefs.h <<_ACEOF
16762#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16763_ACEOF
16764
16765
16766echo "$as_me:$LINENO: checking for int" >&5
16767echo $ECHO_N "checking for int... $ECHO_C" >&6
16768if test "${ac_cv_type_int+set}" = set; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16770else
16771 cat >conftest.$ac_ext <<_ACEOF
16772/* confdefs.h. */
16773_ACEOF
16774cat confdefs.h >>conftest.$ac_ext
16775cat >>conftest.$ac_ext <<_ACEOF
16776/* end confdefs.h. */
16777$ac_includes_default
16778int
16779main ()
16780{
16781if ((int *) 0)
16782 return 0;
16783if (sizeof (int))
16784 return 0;
16785 ;
16786 return 0;
16787}
16788_ACEOF
16789rm -f conftest.$ac_objext
16790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16791 (eval $ac_compile) 2>conftest.er1
a848cd7e 16792 ac_status=$?
ac1cb8d3
VS
16793 grep -v '^ *+' conftest.er1 >conftest.err
16794 rm -f conftest.er1
16795 cat conftest.err >&5
a848cd7e
SC
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
fb00f58d
JS
16798 { ac_try='test -z "$ac_c_werror_flag"
16799 || test ! -s conftest.err'
ac1cb8d3
VS
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; } &&
16805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16808 ac_status=$?
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 ac_cv_type_int=yes
16812else
16813 echo "$as_me: failed program was:" >&5
16814sed 's/^/| /' conftest.$ac_ext >&5
16815
16816ac_cv_type_int=no
16817fi
ac1cb8d3 16818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16819fi
16820echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16821echo "${ECHO_T}$ac_cv_type_int" >&6
16822
16823echo "$as_me:$LINENO: checking size of int" >&5
16824echo $ECHO_N "checking size of int... $ECHO_C" >&6
16825if test "${ac_cv_sizeof_int+set}" = set; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16827else
16828 if test "$ac_cv_type_int" = yes; then
16829 # The cast to unsigned long works around a bug in the HP C Compiler
16830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16832 # This bug is HP SR number 8606223364.
16833 if test "$cross_compiling" = yes; then
16834 # Depending upon the size, compute the lo and hi bounds.
16835cat >conftest.$ac_ext <<_ACEOF
16836/* confdefs.h. */
16837_ACEOF
16838cat confdefs.h >>conftest.$ac_ext
16839cat >>conftest.$ac_ext <<_ACEOF
16840/* end confdefs.h. */
16841$ac_includes_default
16842int
16843main ()
16844{
16845static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16846test_array [0] = 0
16847
16848 ;
16849 return 0;
16850}
16851_ACEOF
16852rm -f conftest.$ac_objext
16853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16854 (eval $ac_compile) 2>conftest.er1
a848cd7e 16855 ac_status=$?
ac1cb8d3
VS
16856 grep -v '^ *+' conftest.er1 >conftest.err
16857 rm -f conftest.er1
16858 cat conftest.err >&5
a848cd7e
SC
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
fb00f58d
JS
16861 { ac_try='test -z "$ac_c_werror_flag"
16862 || test ! -s conftest.err'
ac1cb8d3
VS
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; } &&
16868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 ac_lo=0 ac_mid=0
16875 while :; do
16876 cat >conftest.$ac_ext <<_ACEOF
16877/* confdefs.h. */
16878_ACEOF
16879cat confdefs.h >>conftest.$ac_ext
16880cat >>conftest.$ac_ext <<_ACEOF
16881/* end confdefs.h. */
16882$ac_includes_default
16883int
16884main ()
16885{
16886static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16887test_array [0] = 0
16888
16889 ;
16890 return 0;
16891}
16892_ACEOF
16893rm -f conftest.$ac_objext
16894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16895 (eval $ac_compile) 2>conftest.er1
a848cd7e 16896 ac_status=$?
ac1cb8d3
VS
16897 grep -v '^ *+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16899 cat conftest.err >&5
a848cd7e
SC
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
fb00f58d
JS
16902 { ac_try='test -z "$ac_c_werror_flag"
16903 || test ! -s conftest.err'
ac1cb8d3
VS
16904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905 (eval $ac_try) 2>&5
16906 ac_status=$?
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; } &&
16909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; }; then
16915 ac_hi=$ac_mid; break
16916else
16917 echo "$as_me: failed program was:" >&5
16918sed 's/^/| /' conftest.$ac_ext >&5
16919
16920ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16921 if test $ac_lo -le $ac_mid; then
16922 ac_lo= ac_hi=
16923 break
16924 fi
16925 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16926fi
ac1cb8d3 16927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16928 done
16929else
16930 echo "$as_me: failed program was:" >&5
16931sed 's/^/| /' conftest.$ac_ext >&5
16932
16933cat >conftest.$ac_ext <<_ACEOF
16934/* confdefs.h. */
16935_ACEOF
16936cat confdefs.h >>conftest.$ac_ext
16937cat >>conftest.$ac_ext <<_ACEOF
16938/* end confdefs.h. */
16939$ac_includes_default
16940int
16941main ()
16942{
16943static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16944test_array [0] = 0
16945
16946 ;
16947 return 0;
16948}
16949_ACEOF
16950rm -f conftest.$ac_objext
16951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16952 (eval $ac_compile) 2>conftest.er1
a848cd7e 16953 ac_status=$?
ac1cb8d3
VS
16954 grep -v '^ *+' conftest.er1 >conftest.err
16955 rm -f conftest.er1
16956 cat conftest.err >&5
a848cd7e
SC
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } &&
fb00f58d
JS
16959 { ac_try='test -z "$ac_c_werror_flag"
16960 || test ! -s conftest.err'
ac1cb8d3
VS
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; } &&
16966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16969 ac_status=$?
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; }; then
16972 ac_hi=-1 ac_mid=-1
16973 while :; do
16974 cat >conftest.$ac_ext <<_ACEOF
16975/* confdefs.h. */
16976_ACEOF
16977cat confdefs.h >>conftest.$ac_ext
16978cat >>conftest.$ac_ext <<_ACEOF
16979/* end confdefs.h. */
16980$ac_includes_default
16981int
16982main ()
16983{
16984static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16985test_array [0] = 0
16986
16987 ;
16988 return 0;
16989}
16990_ACEOF
16991rm -f conftest.$ac_objext
16992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16993 (eval $ac_compile) 2>conftest.er1
a848cd7e 16994 ac_status=$?
ac1cb8d3
VS
16995 grep -v '^ *+' conftest.er1 >conftest.err
16996 rm -f conftest.er1
16997 cat conftest.err >&5
a848cd7e
SC
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } &&
fb00f58d
JS
17000 { ac_try='test -z "$ac_c_werror_flag"
17001 || test ! -s conftest.err'
ac1cb8d3
VS
17002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17004 ac_status=$?
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; } &&
17007 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009 (eval $ac_try) 2>&5
17010 ac_status=$?
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
17013 ac_lo=$ac_mid; break
17014else
17015 echo "$as_me: failed program was:" >&5
17016sed 's/^/| /' conftest.$ac_ext >&5
17017
17018ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17019 if test $ac_mid -le $ac_hi; then
17020 ac_lo= ac_hi=
17021 break
17022 fi
17023 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17024fi
ac1cb8d3 17025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17026 done
17027else
17028 echo "$as_me: failed program was:" >&5
17029sed 's/^/| /' conftest.$ac_ext >&5
17030
17031ac_lo= ac_hi=
17032fi
ac1cb8d3 17033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17034fi
ac1cb8d3 17035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17036# Binary search between lo and hi bounds.
17037while test "x$ac_lo" != "x$ac_hi"; do
17038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17039 cat >conftest.$ac_ext <<_ACEOF
17040/* confdefs.h. */
17041_ACEOF
17042cat confdefs.h >>conftest.$ac_ext
17043cat >>conftest.$ac_ext <<_ACEOF
17044/* end confdefs.h. */
17045$ac_includes_default
17046int
17047main ()
17048{
17049static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17050test_array [0] = 0
17051
17052 ;
17053 return 0;
17054}
17055_ACEOF
17056rm -f conftest.$ac_objext
17057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17058 (eval $ac_compile) 2>conftest.er1
a848cd7e 17059 ac_status=$?
ac1cb8d3
VS
17060 grep -v '^ *+' conftest.er1 >conftest.err
17061 rm -f conftest.er1
17062 cat conftest.err >&5
a848cd7e
SC
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
fb00f58d
JS
17065 { ac_try='test -z "$ac_c_werror_flag"
17066 || test ! -s conftest.err'
ac1cb8d3
VS
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17069 ac_status=$?
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; } &&
17072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17075 ac_status=$?
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; }; then
17078 ac_hi=$ac_mid
17079else
17080 echo "$as_me: failed program was:" >&5
17081sed 's/^/| /' conftest.$ac_ext >&5
17082
17083ac_lo=`expr '(' $ac_mid ')' + 1`
17084fi
ac1cb8d3 17085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17086done
17087case $ac_lo in
17088?*) ac_cv_sizeof_int=$ac_lo;;
17089'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17090See \`config.log' for more details." >&5
17091echo "$as_me: error: cannot compute sizeof (int), 77
17092See \`config.log' for more details." >&2;}
17093 { (exit 1); exit 1; }; } ;;
17094esac
17095else
17096 if test "$cross_compiling" = yes; then
fb00f58d
JS
17097 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17098See \`config.log' for more details." >&5
17099echo "$as_me: error: cannot run test program while cross compiling
17100See \`config.log' for more details." >&2;}
a848cd7e
SC
17101 { (exit 1); exit 1; }; }
17102else
17103 cat >conftest.$ac_ext <<_ACEOF
17104/* confdefs.h. */
17105_ACEOF
17106cat confdefs.h >>conftest.$ac_ext
17107cat >>conftest.$ac_ext <<_ACEOF
17108/* end confdefs.h. */
17109$ac_includes_default
17110long longval () { return (long) (sizeof (int)); }
17111unsigned long ulongval () { return (long) (sizeof (int)); }
17112#include <stdio.h>
17113#include <stdlib.h>
17114int
17115main ()
17116{
17117
17118 FILE *f = fopen ("conftest.val", "w");
17119 if (! f)
17120 exit (1);
17121 if (((long) (sizeof (int))) < 0)
17122 {
17123 long i = longval ();
17124 if (i != ((long) (sizeof (int))))
17125 exit (1);
17126 fprintf (f, "%ld\n", i);
17127 }
17128 else
17129 {
17130 unsigned long i = ulongval ();
17131 if (i != ((long) (sizeof (int))))
17132 exit (1);
17133 fprintf (f, "%lu\n", i);
17134 }
17135 exit (ferror (f) || fclose (f) != 0);
17136
17137 ;
17138 return 0;
17139}
17140_ACEOF
17141rm -f conftest$ac_exeext
17142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143 (eval $ac_link) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 ac_cv_sizeof_int=`cat conftest.val`
17153else
17154 echo "$as_me: program exited with status $ac_status" >&5
17155echo "$as_me: failed program was:" >&5
17156sed 's/^/| /' conftest.$ac_ext >&5
17157
17158( exit $ac_status )
17159{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17160See \`config.log' for more details." >&5
17161echo "$as_me: error: cannot compute sizeof (int), 77
17162See \`config.log' for more details." >&2;}
17163 { (exit 1); exit 1; }; }
17164fi
ac1cb8d3 17165rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17166fi
17167fi
17168rm -f conftest.val
17169else
17170 ac_cv_sizeof_int=0
17171fi
17172fi
17173echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17174echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17175cat >>confdefs.h <<_ACEOF
17176#define SIZEOF_INT $ac_cv_sizeof_int
17177_ACEOF
17178
17179
17180echo "$as_me:$LINENO: checking for long" >&5
17181echo $ECHO_N "checking for long... $ECHO_C" >&6
17182if test "${ac_cv_type_long+set}" = set; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17184else
17185 cat >conftest.$ac_ext <<_ACEOF
17186/* confdefs.h. */
17187_ACEOF
17188cat confdefs.h >>conftest.$ac_ext
17189cat >>conftest.$ac_ext <<_ACEOF
17190/* end confdefs.h. */
17191$ac_includes_default
17192int
17193main ()
17194{
17195if ((long *) 0)
17196 return 0;
17197if (sizeof (long))
17198 return 0;
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); } &&
fb00f58d
JS
17212 { ac_try='test -z "$ac_c_werror_flag"
17213 || test ! -s conftest.err'
ac1cb8d3
VS
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 ac_cv_type_long=yes
17226else
17227 echo "$as_me: failed program was:" >&5
17228sed 's/^/| /' conftest.$ac_ext >&5
17229
17230ac_cv_type_long=no
17231fi
ac1cb8d3 17232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17233fi
17234echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17235echo "${ECHO_T}$ac_cv_type_long" >&6
17236
17237echo "$as_me:$LINENO: checking size of long" >&5
17238echo $ECHO_N "checking size of long... $ECHO_C" >&6
17239if test "${ac_cv_sizeof_long+set}" = set; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17241else
17242 if test "$ac_cv_type_long" = yes; then
17243 # The cast to unsigned long works around a bug in the HP C Compiler
17244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17246 # This bug is HP SR number 8606223364.
17247 if test "$cross_compiling" = yes; then
17248 # Depending upon the size, compute the lo and hi bounds.
17249cat >conftest.$ac_ext <<_ACEOF
17250/* confdefs.h. */
17251_ACEOF
17252cat confdefs.h >>conftest.$ac_ext
17253cat >>conftest.$ac_ext <<_ACEOF
17254/* end confdefs.h. */
17255$ac_includes_default
17256int
17257main ()
17258{
17259static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17260test_array [0] = 0
17261
17262 ;
17263 return 0;
17264}
17265_ACEOF
17266rm -f conftest.$ac_objext
17267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17268 (eval $ac_compile) 2>conftest.er1
a848cd7e 17269 ac_status=$?
ac1cb8d3
VS
17270 grep -v '^ *+' conftest.er1 >conftest.err
17271 rm -f conftest.er1
17272 cat conftest.err >&5
a848cd7e
SC
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
fb00f58d
JS
17275 { ac_try='test -z "$ac_c_werror_flag"
17276 || test ! -s conftest.err'
ac1cb8d3
VS
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17279 ac_status=$?
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; } &&
17282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17285 ac_status=$?
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 ac_lo=0 ac_mid=0
17289 while :; do
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); } &&
fb00f58d
JS
17316 { ac_try='test -z "$ac_c_werror_flag"
17317 || test ! -s conftest.err'
ac1cb8d3
VS
17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17320 ac_status=$?
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; } &&
17323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
17329 ac_hi=$ac_mid; break
17330else
17331 echo "$as_me: failed program was:" >&5
17332sed 's/^/| /' conftest.$ac_ext >&5
17333
17334ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17335 if test $ac_lo -le $ac_mid; then
17336 ac_lo= ac_hi=
17337 break
17338 fi
17339 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17340fi
ac1cb8d3 17341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17342 done
17343else
17344 echo "$as_me: failed program was:" >&5
17345sed 's/^/| /' conftest.$ac_ext >&5
17346
17347cat >conftest.$ac_ext <<_ACEOF
17348/* confdefs.h. */
17349_ACEOF
17350cat confdefs.h >>conftest.$ac_ext
17351cat >>conftest.$ac_ext <<_ACEOF
17352/* end confdefs.h. */
17353$ac_includes_default
17354int
17355main ()
17356{
17357static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17358test_array [0] = 0
17359
17360 ;
17361 return 0;
17362}
17363_ACEOF
17364rm -f conftest.$ac_objext
17365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17366 (eval $ac_compile) 2>conftest.er1
a848cd7e 17367 ac_status=$?
ac1cb8d3
VS
17368 grep -v '^ *+' conftest.er1 >conftest.err
17369 rm -f conftest.er1
17370 cat conftest.err >&5
a848cd7e
SC
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } &&
fb00f58d
JS
17373 { ac_try='test -z "$ac_c_werror_flag"
17374 || test ! -s conftest.err'
ac1cb8d3
VS
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; } &&
17380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382 (eval $ac_try) 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 ac_hi=-1 ac_mid=-1
17387 while :; do
17388 cat >conftest.$ac_ext <<_ACEOF
17389/* confdefs.h. */
17390_ACEOF
17391cat confdefs.h >>conftest.$ac_ext
17392cat >>conftest.$ac_ext <<_ACEOF
17393/* end confdefs.h. */
17394$ac_includes_default
17395int
17396main ()
17397{
17398static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17399test_array [0] = 0
17400
17401 ;
17402 return 0;
17403}
17404_ACEOF
17405rm -f conftest.$ac_objext
17406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17407 (eval $ac_compile) 2>conftest.er1
a848cd7e 17408 ac_status=$?
ac1cb8d3
VS
17409 grep -v '^ *+' conftest.er1 >conftest.err
17410 rm -f conftest.er1
17411 cat conftest.err >&5
a848cd7e
SC
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } &&
fb00f58d
JS
17414 { ac_try='test -z "$ac_c_werror_flag"
17415 || test ! -s conftest.err'
ac1cb8d3
VS
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; } &&
17421 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423 (eval $ac_try) 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; }; then
17427 ac_lo=$ac_mid; break
17428else
17429 echo "$as_me: failed program was:" >&5
17430sed 's/^/| /' conftest.$ac_ext >&5
17431
17432ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17433 if test $ac_mid -le $ac_hi; then
17434 ac_lo= ac_hi=
17435 break
17436 fi
17437 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17438fi
ac1cb8d3 17439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17440 done
17441else
17442 echo "$as_me: failed program was:" >&5
17443sed 's/^/| /' conftest.$ac_ext >&5
17444
17445ac_lo= ac_hi=
17446fi
ac1cb8d3 17447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17448fi
ac1cb8d3 17449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17450# Binary search between lo and hi bounds.
17451while test "x$ac_lo" != "x$ac_hi"; do
17452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17453 cat >conftest.$ac_ext <<_ACEOF
17454/* confdefs.h. */
17455_ACEOF
17456cat confdefs.h >>conftest.$ac_ext
17457cat >>conftest.$ac_ext <<_ACEOF
17458/* end confdefs.h. */
17459$ac_includes_default
17460int
17461main ()
17462{
17463static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17464test_array [0] = 0
17465
17466 ;
17467 return 0;
17468}
17469_ACEOF
17470rm -f conftest.$ac_objext
17471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17472 (eval $ac_compile) 2>conftest.er1
a848cd7e 17473 ac_status=$?
ac1cb8d3
VS
17474 grep -v '^ *+' conftest.er1 >conftest.err
17475 rm -f conftest.er1
17476 cat conftest.err >&5
a848cd7e
SC
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } &&
fb00f58d
JS
17479 { ac_try='test -z "$ac_c_werror_flag"
17480 || test ! -s conftest.err'
ac1cb8d3
VS
17481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482 (eval $ac_try) 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; } &&
17486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 ac_hi=$ac_mid
17493else
17494 echo "$as_me: failed program was:" >&5
17495sed 's/^/| /' conftest.$ac_ext >&5
17496
17497ac_lo=`expr '(' $ac_mid ')' + 1`
17498fi
ac1cb8d3 17499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17500done
17501case $ac_lo in
17502?*) ac_cv_sizeof_long=$ac_lo;;
17503'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17504See \`config.log' for more details." >&5
17505echo "$as_me: error: cannot compute sizeof (long), 77
17506See \`config.log' for more details." >&2;}
17507 { (exit 1); exit 1; }; } ;;
17508esac
17509else
17510 if test "$cross_compiling" = yes; then
fb00f58d
JS
17511 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17512See \`config.log' for more details." >&5
17513echo "$as_me: error: cannot run test program while cross compiling
17514See \`config.log' for more details." >&2;}
a848cd7e
SC
17515 { (exit 1); exit 1; }; }
17516else
17517 cat >conftest.$ac_ext <<_ACEOF
17518/* confdefs.h. */
17519_ACEOF
17520cat confdefs.h >>conftest.$ac_ext
17521cat >>conftest.$ac_ext <<_ACEOF
17522/* end confdefs.h. */
17523$ac_includes_default
17524long longval () { return (long) (sizeof (long)); }
17525unsigned long ulongval () { return (long) (sizeof (long)); }
17526#include <stdio.h>
17527#include <stdlib.h>
17528int
17529main ()
17530{
17531
17532 FILE *f = fopen ("conftest.val", "w");
17533 if (! f)
17534 exit (1);
17535 if (((long) (sizeof (long))) < 0)
17536 {
17537 long i = longval ();
17538 if (i != ((long) (sizeof (long))))
17539 exit (1);
17540 fprintf (f, "%ld\n", i);
17541 }
17542 else
17543 {
17544 unsigned long i = ulongval ();
17545 if (i != ((long) (sizeof (long))))
17546 exit (1);
17547 fprintf (f, "%lu\n", i);
17548 }
17549 exit (ferror (f) || fclose (f) != 0);
17550
17551 ;
17552 return 0;
17553}
17554_ACEOF
17555rm -f conftest$ac_exeext
17556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17557 (eval $ac_link) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 ac_cv_sizeof_long=`cat conftest.val`
17567else
17568 echo "$as_me: program exited with status $ac_status" >&5
17569echo "$as_me: failed program was:" >&5
17570sed 's/^/| /' conftest.$ac_ext >&5
17571
17572( exit $ac_status )
17573{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17574See \`config.log' for more details." >&5
17575echo "$as_me: error: cannot compute sizeof (long), 77
17576See \`config.log' for more details." >&2;}
17577 { (exit 1); exit 1; }; }
17578fi
ac1cb8d3 17579rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17580fi
17581fi
17582rm -f conftest.val
17583else
17584 ac_cv_sizeof_long=0
17585fi
17586fi
17587echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17588echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17589cat >>confdefs.h <<_ACEOF
17590#define SIZEOF_LONG $ac_cv_sizeof_long
17591_ACEOF
17592
17593
17594echo "$as_me:$LINENO: checking for size_t" >&5
17595echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17596if test "${ac_cv_type_size_t+set}" = set; then
17597 echo $ECHO_N "(cached) $ECHO_C" >&6
17598else
17599 cat >conftest.$ac_ext <<_ACEOF
17600/* confdefs.h. */
17601_ACEOF
17602cat confdefs.h >>conftest.$ac_ext
17603cat >>conftest.$ac_ext <<_ACEOF
17604/* end confdefs.h. */
17605$ac_includes_default
17606int
17607main ()
17608{
17609if ((size_t *) 0)
17610 return 0;
17611if (sizeof (size_t))
17612 return 0;
17613 ;
17614 return 0;
17615}
17616_ACEOF
17617rm -f conftest.$ac_objext
17618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17619 (eval $ac_compile) 2>conftest.er1
a848cd7e 17620 ac_status=$?
ac1cb8d3
VS
17621 grep -v '^ *+' conftest.er1 >conftest.err
17622 rm -f conftest.er1
17623 cat conftest.err >&5
a848cd7e
SC
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
fb00f58d
JS
17626 { ac_try='test -z "$ac_c_werror_flag"
17627 || test ! -s conftest.err'
ac1cb8d3
VS
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; } &&
17633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_type_size_t=yes
17640else
17641 echo "$as_me: failed program was:" >&5
17642sed 's/^/| /' conftest.$ac_ext >&5
17643
17644ac_cv_type_size_t=no
17645fi
ac1cb8d3 17646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17647fi
17648echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17649echo "${ECHO_T}$ac_cv_type_size_t" >&6
17650
17651echo "$as_me:$LINENO: checking size of size_t" >&5
17652echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17653if test "${ac_cv_sizeof_size_t+set}" = set; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17655else
17656 if test "$ac_cv_type_size_t" = yes; then
17657 # The cast to unsigned long works around a bug in the HP C Compiler
17658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17660 # This bug is HP SR number 8606223364.
17661 if test "$cross_compiling" = yes; then
17662 # Depending upon the size, compute the lo and hi bounds.
17663cat >conftest.$ac_ext <<_ACEOF
17664/* confdefs.h. */
17665_ACEOF
17666cat confdefs.h >>conftest.$ac_ext
17667cat >>conftest.$ac_ext <<_ACEOF
17668/* end confdefs.h. */
17669$ac_includes_default
17670int
17671main ()
17672{
17673static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17674test_array [0] = 0
17675
17676 ;
17677 return 0;
17678}
17679_ACEOF
17680rm -f conftest.$ac_objext
17681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17682 (eval $ac_compile) 2>conftest.er1
a848cd7e 17683 ac_status=$?
ac1cb8d3
VS
17684 grep -v '^ *+' conftest.er1 >conftest.err
17685 rm -f conftest.er1
17686 cat conftest.err >&5
a848cd7e
SC
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } &&
fb00f58d
JS
17689 { ac_try='test -z "$ac_c_werror_flag"
17690 || test ! -s conftest.err'
ac1cb8d3
VS
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; } &&
17696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; }; then
17702 ac_lo=0 ac_mid=0
17703 while :; do
17704 cat >conftest.$ac_ext <<_ACEOF
17705/* confdefs.h. */
17706_ACEOF
17707cat confdefs.h >>conftest.$ac_ext
17708cat >>conftest.$ac_ext <<_ACEOF
17709/* end confdefs.h. */
17710$ac_includes_default
17711int
17712main ()
17713{
17714static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17715test_array [0] = 0
17716
17717 ;
17718 return 0;
17719}
17720_ACEOF
17721rm -f conftest.$ac_objext
17722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17723 (eval $ac_compile) 2>conftest.er1
a848cd7e 17724 ac_status=$?
ac1cb8d3
VS
17725 grep -v '^ *+' conftest.er1 >conftest.err
17726 rm -f conftest.er1
17727 cat conftest.err >&5
a848cd7e
SC
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); } &&
fb00f58d
JS
17730 { ac_try='test -z "$ac_c_werror_flag"
17731 || test ! -s conftest.err'
ac1cb8d3
VS
17732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733 (eval $ac_try) 2>&5
17734 ac_status=$?
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; } &&
17737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17740 ac_status=$?
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; }; then
17743 ac_hi=$ac_mid; break
17744else
17745 echo "$as_me: failed program was:" >&5
17746sed 's/^/| /' conftest.$ac_ext >&5
17747
17748ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17749 if test $ac_lo -le $ac_mid; then
17750 ac_lo= ac_hi=
17751 break
17752 fi
17753 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17754fi
ac1cb8d3 17755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17756 done
17757else
17758 echo "$as_me: failed program was:" >&5
17759sed 's/^/| /' conftest.$ac_ext >&5
17760
17761cat >conftest.$ac_ext <<_ACEOF
17762/* confdefs.h. */
17763_ACEOF
17764cat confdefs.h >>conftest.$ac_ext
17765cat >>conftest.$ac_ext <<_ACEOF
17766/* end confdefs.h. */
17767$ac_includes_default
17768int
17769main ()
17770{
17771static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17772test_array [0] = 0
17773
17774 ;
17775 return 0;
17776}
17777_ACEOF
17778rm -f conftest.$ac_objext
17779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17780 (eval $ac_compile) 2>conftest.er1
a848cd7e 17781 ac_status=$?
ac1cb8d3
VS
17782 grep -v '^ *+' conftest.er1 >conftest.err
17783 rm -f conftest.er1
17784 cat conftest.err >&5
a848cd7e
SC
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
fb00f58d
JS
17787 { ac_try='test -z "$ac_c_werror_flag"
17788 || test ! -s conftest.err'
ac1cb8d3
VS
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } &&
17794 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17800 ac_hi=-1 ac_mid=-1
17801 while :; do
17802 cat >conftest.$ac_ext <<_ACEOF
17803/* confdefs.h. */
17804_ACEOF
17805cat confdefs.h >>conftest.$ac_ext
17806cat >>conftest.$ac_ext <<_ACEOF
17807/* end confdefs.h. */
17808$ac_includes_default
17809int
17810main ()
17811{
17812static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17813test_array [0] = 0
17814
17815 ;
17816 return 0;
17817}
17818_ACEOF
17819rm -f conftest.$ac_objext
17820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17821 (eval $ac_compile) 2>conftest.er1
a848cd7e 17822 ac_status=$?
ac1cb8d3
VS
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
a848cd7e
SC
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
fb00f58d
JS
17828 { ac_try='test -z "$ac_c_werror_flag"
17829 || test ! -s conftest.err'
ac1cb8d3
VS
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_lo=$ac_mid; break
17842else
17843 echo "$as_me: failed program was:" >&5
17844sed 's/^/| /' conftest.$ac_ext >&5
17845
17846ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17847 if test $ac_mid -le $ac_hi; then
17848 ac_lo= ac_hi=
17849 break
17850 fi
17851 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17852fi
ac1cb8d3 17853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17854 done
17855else
17856 echo "$as_me: failed program was:" >&5
17857sed 's/^/| /' conftest.$ac_ext >&5
17858
17859ac_lo= ac_hi=
17860fi
ac1cb8d3 17861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17862fi
ac1cb8d3 17863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17864# Binary search between lo and hi bounds.
17865while test "x$ac_lo" != "x$ac_hi"; do
17866 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17867 cat >conftest.$ac_ext <<_ACEOF
17868/* confdefs.h. */
17869_ACEOF
17870cat confdefs.h >>conftest.$ac_ext
17871cat >>conftest.$ac_ext <<_ACEOF
17872/* end confdefs.h. */
17873$ac_includes_default
17874int
17875main ()
17876{
17877static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17878test_array [0] = 0
17879
17880 ;
17881 return 0;
17882}
17883_ACEOF
17884rm -f conftest.$ac_objext
17885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17886 (eval $ac_compile) 2>conftest.er1
a848cd7e 17887 ac_status=$?
ac1cb8d3
VS
17888 grep -v '^ *+' conftest.er1 >conftest.err
17889 rm -f conftest.er1
17890 cat conftest.err >&5
a848cd7e
SC
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
fb00f58d
JS
17893 { ac_try='test -z "$ac_c_werror_flag"
17894 || test ! -s conftest.err'
ac1cb8d3
VS
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; } &&
17900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17906 ac_hi=$ac_mid
17907else
17908 echo "$as_me: failed program was:" >&5
17909sed 's/^/| /' conftest.$ac_ext >&5
17910
17911ac_lo=`expr '(' $ac_mid ')' + 1`
17912fi
ac1cb8d3 17913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17914done
17915case $ac_lo in
17916?*) ac_cv_sizeof_size_t=$ac_lo;;
17917'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17918See \`config.log' for more details." >&5
17919echo "$as_me: error: cannot compute sizeof (size_t), 77
17920See \`config.log' for more details." >&2;}
17921 { (exit 1); exit 1; }; } ;;
17922esac
17923else
17924 if test "$cross_compiling" = yes; then
fb00f58d
JS
17925 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17926See \`config.log' for more details." >&5
17927echo "$as_me: error: cannot run test program while cross compiling
17928See \`config.log' for more details." >&2;}
a848cd7e
SC
17929 { (exit 1); exit 1; }; }
17930else
17931 cat >conftest.$ac_ext <<_ACEOF
17932/* confdefs.h. */
17933_ACEOF
17934cat confdefs.h >>conftest.$ac_ext
17935cat >>conftest.$ac_ext <<_ACEOF
17936/* end confdefs.h. */
17937$ac_includes_default
17938long longval () { return (long) (sizeof (size_t)); }
17939unsigned long ulongval () { return (long) (sizeof (size_t)); }
17940#include <stdio.h>
17941#include <stdlib.h>
17942int
17943main ()
17944{
17945
17946 FILE *f = fopen ("conftest.val", "w");
17947 if (! f)
17948 exit (1);
17949 if (((long) (sizeof (size_t))) < 0)
17950 {
17951 long i = longval ();
17952 if (i != ((long) (sizeof (size_t))))
17953 exit (1);
17954 fprintf (f, "%ld\n", i);
17955 }
17956 else
17957 {
17958 unsigned long i = ulongval ();
17959 if (i != ((long) (sizeof (size_t))))
17960 exit (1);
17961 fprintf (f, "%lu\n", i);
17962 }
17963 exit (ferror (f) || fclose (f) != 0);
17964
17965 ;
17966 return 0;
17967}
17968_ACEOF
17969rm -f conftest$ac_exeext
17970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17971 (eval $ac_link) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; }; then
17980 ac_cv_sizeof_size_t=`cat conftest.val`
17981else
17982 echo "$as_me: program exited with status $ac_status" >&5
17983echo "$as_me: failed program was:" >&5
17984sed 's/^/| /' conftest.$ac_ext >&5
17985
17986( exit $ac_status )
17987{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17988See \`config.log' for more details." >&5
17989echo "$as_me: error: cannot compute sizeof (size_t), 77
17990See \`config.log' for more details." >&2;}
17991 { (exit 1); exit 1; }; }
17992fi
ac1cb8d3 17993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17994fi
17995fi
17996rm -f conftest.val
17997else
17998 ac_cv_sizeof_size_t=0
17999fi
18000fi
18001echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18002echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18003cat >>confdefs.h <<_ACEOF
18004#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18005_ACEOF
18006
18007
18008
18009case "${host}" in
18010 arm-*-linux* )
18011 echo "$as_me:$LINENO: checking for long long" >&5
18012echo $ECHO_N "checking for long long... $ECHO_C" >&6
18013if test "${ac_cv_type_long_long+set}" = set; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18015else
18016 cat >conftest.$ac_ext <<_ACEOF
18017/* confdefs.h. */
18018_ACEOF
18019cat confdefs.h >>conftest.$ac_ext
18020cat >>conftest.$ac_ext <<_ACEOF
18021/* end confdefs.h. */
18022$ac_includes_default
18023int
18024main ()
18025{
18026if ((long long *) 0)
18027 return 0;
18028if (sizeof (long long))
18029 return 0;
18030 ;
18031 return 0;
18032}
18033_ACEOF
18034rm -f conftest.$ac_objext
18035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18036 (eval $ac_compile) 2>conftest.er1
a848cd7e 18037 ac_status=$?
ac1cb8d3
VS
18038 grep -v '^ *+' conftest.er1 >conftest.err
18039 rm -f conftest.er1
18040 cat conftest.err >&5
a848cd7e
SC
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } &&
fb00f58d
JS
18043 { ac_try='test -z "$ac_c_werror_flag"
18044 || test ! -s conftest.err'
ac1cb8d3
VS
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18053 ac_status=$?
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056 ac_cv_type_long_long=yes
18057else
18058 echo "$as_me: failed program was:" >&5
18059sed 's/^/| /' conftest.$ac_ext >&5
18060
18061ac_cv_type_long_long=no
18062fi
ac1cb8d3 18063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18064fi
18065echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18066echo "${ECHO_T}$ac_cv_type_long_long" >&6
18067
18068echo "$as_me:$LINENO: checking size of long long" >&5
18069echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18070if test "${ac_cv_sizeof_long_long+set}" = set; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18072else
18073 if test "$ac_cv_type_long_long" = yes; then
18074 # The cast to unsigned long works around a bug in the HP C Compiler
18075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18077 # This bug is HP SR number 8606223364.
18078 if test "$cross_compiling" = yes; then
18079 # Depending upon the size, compute the lo and hi bounds.
18080cat >conftest.$ac_ext <<_ACEOF
18081/* confdefs.h. */
18082_ACEOF
18083cat confdefs.h >>conftest.$ac_ext
18084cat >>conftest.$ac_ext <<_ACEOF
18085/* end confdefs.h. */
18086$ac_includes_default
18087int
18088main ()
18089{
18090static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18091test_array [0] = 0
18092
18093 ;
18094 return 0;
18095}
18096_ACEOF
18097rm -f conftest.$ac_objext
18098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18099 (eval $ac_compile) 2>conftest.er1
a848cd7e 18100 ac_status=$?
ac1cb8d3
VS
18101 grep -v '^ *+' conftest.er1 >conftest.err
18102 rm -f conftest.er1
18103 cat conftest.err >&5
a848cd7e
SC
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
fb00f58d
JS
18106 { ac_try='test -z "$ac_c_werror_flag"
18107 || test ! -s conftest.err'
ac1cb8d3
VS
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; } &&
18113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
18119 ac_lo=0 ac_mid=0
18120 while :; do
18121 cat >conftest.$ac_ext <<_ACEOF
18122/* confdefs.h. */
18123_ACEOF
18124cat confdefs.h >>conftest.$ac_ext
18125cat >>conftest.$ac_ext <<_ACEOF
18126/* end confdefs.h. */
18127$ac_includes_default
18128int
18129main ()
18130{
18131static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18132test_array [0] = 0
18133
18134 ;
18135 return 0;
18136}
18137_ACEOF
18138rm -f conftest.$ac_objext
18139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18140 (eval $ac_compile) 2>conftest.er1
a848cd7e 18141 ac_status=$?
ac1cb8d3
VS
18142 grep -v '^ *+' conftest.er1 >conftest.err
18143 rm -f conftest.er1
18144 cat conftest.err >&5
a848cd7e
SC
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } &&
fb00f58d
JS
18147 { ac_try='test -z "$ac_c_werror_flag"
18148 || test ! -s conftest.err'
ac1cb8d3
VS
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; } &&
18154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
18160 ac_hi=$ac_mid; break
18161else
18162 echo "$as_me: failed program was:" >&5
18163sed 's/^/| /' conftest.$ac_ext >&5
18164
18165ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18166 if test $ac_lo -le $ac_mid; then
18167 ac_lo= ac_hi=
18168 break
18169 fi
18170 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18171fi
ac1cb8d3 18172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18173 done
18174else
18175 echo "$as_me: failed program was:" >&5
18176sed 's/^/| /' conftest.$ac_ext >&5
18177
18178cat >conftest.$ac_ext <<_ACEOF
18179/* confdefs.h. */
18180_ACEOF
18181cat confdefs.h >>conftest.$ac_ext
18182cat >>conftest.$ac_ext <<_ACEOF
18183/* end confdefs.h. */
18184$ac_includes_default
18185int
18186main ()
18187{
18188static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18189test_array [0] = 0
18190
18191 ;
18192 return 0;
18193}
18194_ACEOF
18195rm -f conftest.$ac_objext
18196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18197 (eval $ac_compile) 2>conftest.er1
a848cd7e 18198 ac_status=$?
ac1cb8d3
VS
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
a848cd7e
SC
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
fb00f58d
JS
18204 { ac_try='test -z "$ac_c_werror_flag"
18205 || test ! -s conftest.err'
ac1cb8d3
VS
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18217 ac_hi=-1 ac_mid=-1
18218 while :; do
18219 cat >conftest.$ac_ext <<_ACEOF
18220/* confdefs.h. */
18221_ACEOF
18222cat confdefs.h >>conftest.$ac_ext
18223cat >>conftest.$ac_ext <<_ACEOF
18224/* end confdefs.h. */
18225$ac_includes_default
18226int
18227main ()
18228{
18229static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18230test_array [0] = 0
18231
18232 ;
18233 return 0;
18234}
18235_ACEOF
18236rm -f conftest.$ac_objext
18237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18238 (eval $ac_compile) 2>conftest.er1
a848cd7e 18239 ac_status=$?
ac1cb8d3
VS
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
a848cd7e
SC
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } &&
fb00f58d
JS
18245 { ac_try='test -z "$ac_c_werror_flag"
18246 || test ! -s conftest.err'
ac1cb8d3
VS
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; } &&
18252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; }; then
18258 ac_lo=$ac_mid; break
18259else
18260 echo "$as_me: failed program was:" >&5
18261sed 's/^/| /' conftest.$ac_ext >&5
18262
18263ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18264 if test $ac_mid -le $ac_hi; then
18265 ac_lo= ac_hi=
18266 break
18267 fi
18268 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18269fi
ac1cb8d3 18270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18271 done
18272else
18273 echo "$as_me: failed program was:" >&5
18274sed 's/^/| /' conftest.$ac_ext >&5
18275
18276ac_lo= ac_hi=
18277fi
ac1cb8d3 18278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18279fi
ac1cb8d3 18280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18281# Binary search between lo and hi bounds.
18282while test "x$ac_lo" != "x$ac_hi"; do
18283 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18284 cat >conftest.$ac_ext <<_ACEOF
18285/* confdefs.h. */
18286_ACEOF
18287cat confdefs.h >>conftest.$ac_ext
18288cat >>conftest.$ac_ext <<_ACEOF
18289/* end confdefs.h. */
18290$ac_includes_default
18291int
18292main ()
18293{
18294static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18295test_array [0] = 0
18296
18297 ;
18298 return 0;
18299}
18300_ACEOF
18301rm -f conftest.$ac_objext
18302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18303 (eval $ac_compile) 2>conftest.er1
a848cd7e 18304 ac_status=$?
ac1cb8d3
VS
18305 grep -v '^ *+' conftest.er1 >conftest.err
18306 rm -f conftest.er1
18307 cat conftest.err >&5
a848cd7e
SC
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } &&
fb00f58d
JS
18310 { ac_try='test -z "$ac_c_werror_flag"
18311 || test ! -s conftest.err'
ac1cb8d3
VS
18312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313 (eval $ac_try) 2>&5
18314 ac_status=$?
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; } &&
18317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319 (eval $ac_try) 2>&5
18320 ac_status=$?
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; }; then
18323 ac_hi=$ac_mid
18324else
18325 echo "$as_me: failed program was:" >&5
18326sed 's/^/| /' conftest.$ac_ext >&5
18327
18328ac_lo=`expr '(' $ac_mid ')' + 1`
18329fi
ac1cb8d3 18330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18331done
18332case $ac_lo in
18333?*) ac_cv_sizeof_long_long=$ac_lo;;
18334'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18335See \`config.log' for more details." >&5
18336echo "$as_me: error: cannot compute sizeof (long long), 77
18337See \`config.log' for more details." >&2;}
18338 { (exit 1); exit 1; }; } ;;
18339esac
18340else
18341 if test "$cross_compiling" = yes; then
fb00f58d
JS
18342 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18343See \`config.log' for more details." >&5
18344echo "$as_me: error: cannot run test program while cross compiling
18345See \`config.log' for more details." >&2;}
a848cd7e
SC
18346 { (exit 1); exit 1; }; }
18347else
18348 cat >conftest.$ac_ext <<_ACEOF
18349/* confdefs.h. */
18350_ACEOF
18351cat confdefs.h >>conftest.$ac_ext
18352cat >>conftest.$ac_ext <<_ACEOF
18353/* end confdefs.h. */
18354$ac_includes_default
18355long longval () { return (long) (sizeof (long long)); }
18356unsigned long ulongval () { return (long) (sizeof (long long)); }
18357#include <stdio.h>
18358#include <stdlib.h>
18359int
18360main ()
18361{
18362
18363 FILE *f = fopen ("conftest.val", "w");
18364 if (! f)
18365 exit (1);
18366 if (((long) (sizeof (long long))) < 0)
18367 {
18368 long i = longval ();
18369 if (i != ((long) (sizeof (long long))))
18370 exit (1);
18371 fprintf (f, "%ld\n", i);
18372 }
18373 else
18374 {
18375 unsigned long i = ulongval ();
18376 if (i != ((long) (sizeof (long long))))
18377 exit (1);
18378 fprintf (f, "%lu\n", i);
18379 }
18380 exit (ferror (f) || fclose (f) != 0);
18381
18382 ;
18383 return 0;
18384}
18385_ACEOF
18386rm -f conftest$ac_exeext
18387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388 (eval $ac_link) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 ac_cv_sizeof_long_long=`cat conftest.val`
18398else
18399 echo "$as_me: program exited with status $ac_status" >&5
18400echo "$as_me: failed program was:" >&5
18401sed 's/^/| /' conftest.$ac_ext >&5
18402
18403( exit $ac_status )
18404{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18405See \`config.log' for more details." >&5
18406echo "$as_me: error: cannot compute sizeof (long long), 77
18407See \`config.log' for more details." >&2;}
18408 { (exit 1); exit 1; }; }
18409fi
ac1cb8d3 18410rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18411fi
18412fi
18413rm -f conftest.val
18414else
18415 ac_cv_sizeof_long_long=0
18416fi
18417fi
18418echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18419echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18420cat >>confdefs.h <<_ACEOF
18421#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18422_ACEOF
18423
18424
18425 ;;
18426 *-hp-hpux* )
18427 echo "$as_me:$LINENO: checking for long long" >&5
18428echo $ECHO_N "checking for long long... $ECHO_C" >&6
18429if test "${ac_cv_type_long_long+set}" = set; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18431else
18432 cat >conftest.$ac_ext <<_ACEOF
18433/* confdefs.h. */
18434_ACEOF
18435cat confdefs.h >>conftest.$ac_ext
18436cat >>conftest.$ac_ext <<_ACEOF
18437/* end confdefs.h. */
18438$ac_includes_default
18439int
18440main ()
18441{
18442if ((long long *) 0)
18443 return 0;
18444if (sizeof (long long))
18445 return 0;
18446 ;
18447 return 0;
18448}
18449_ACEOF
18450rm -f conftest.$ac_objext
18451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18452 (eval $ac_compile) 2>conftest.er1
a848cd7e 18453 ac_status=$?
ac1cb8d3
VS
18454 grep -v '^ *+' conftest.er1 >conftest.err
18455 rm -f conftest.er1
18456 cat conftest.err >&5
a848cd7e
SC
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } &&
fb00f58d
JS
18459 { ac_try='test -z "$ac_c_werror_flag"
18460 || test ! -s conftest.err'
ac1cb8d3
VS
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 ac_cv_type_long_long=yes
18473else
18474 echo "$as_me: failed program was:" >&5
18475sed 's/^/| /' conftest.$ac_ext >&5
18476
18477ac_cv_type_long_long=no
18478fi
ac1cb8d3 18479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18480fi
18481echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18482echo "${ECHO_T}$ac_cv_type_long_long" >&6
18483
18484echo "$as_me:$LINENO: checking size of long long" >&5
18485echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18486if test "${ac_cv_sizeof_long_long+set}" = set; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18488else
18489 if test "$ac_cv_type_long_long" = yes; then
18490 # The cast to unsigned long works around a bug in the HP C Compiler
18491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18493 # This bug is HP SR number 8606223364.
18494 if test "$cross_compiling" = yes; then
18495 # Depending upon the size, compute the lo and hi bounds.
18496cat >conftest.$ac_ext <<_ACEOF
18497/* confdefs.h. */
18498_ACEOF
18499cat confdefs.h >>conftest.$ac_ext
18500cat >>conftest.$ac_ext <<_ACEOF
18501/* end confdefs.h. */
18502$ac_includes_default
18503int
18504main ()
18505{
18506static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18507test_array [0] = 0
18508
18509 ;
18510 return 0;
18511}
18512_ACEOF
18513rm -f conftest.$ac_objext
18514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18515 (eval $ac_compile) 2>conftest.er1
a848cd7e 18516 ac_status=$?
ac1cb8d3
VS
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
a848cd7e
SC
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
fb00f58d
JS
18522 { ac_try='test -z "$ac_c_werror_flag"
18523 || test ! -s conftest.err'
ac1cb8d3
VS
18524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525 (eval $ac_try) 2>&5
18526 ac_status=$?
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; }; then
18535 ac_lo=0 ac_mid=0
18536 while :; do
18537 cat >conftest.$ac_ext <<_ACEOF
18538/* confdefs.h. */
18539_ACEOF
18540cat confdefs.h >>conftest.$ac_ext
18541cat >>conftest.$ac_ext <<_ACEOF
18542/* end confdefs.h. */
18543$ac_includes_default
18544int
18545main ()
18546{
18547static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18548test_array [0] = 0
18549
18550 ;
18551 return 0;
18552}
18553_ACEOF
18554rm -f conftest.$ac_objext
18555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18556 (eval $ac_compile) 2>conftest.er1
a848cd7e 18557 ac_status=$?
ac1cb8d3
VS
18558 grep -v '^ *+' conftest.er1 >conftest.err
18559 rm -f conftest.er1
18560 cat conftest.err >&5
a848cd7e
SC
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } &&
fb00f58d
JS
18563 { ac_try='test -z "$ac_c_werror_flag"
18564 || test ! -s conftest.err'
ac1cb8d3
VS
18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18566 (eval $ac_try) 2>&5
18567 ac_status=$?
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; } &&
18570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; }; then
18576 ac_hi=$ac_mid; break
18577else
18578 echo "$as_me: failed program was:" >&5
18579sed 's/^/| /' conftest.$ac_ext >&5
18580
18581ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18582 if test $ac_lo -le $ac_mid; then
18583 ac_lo= ac_hi=
18584 break
18585 fi
18586 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18587fi
ac1cb8d3 18588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18589 done
18590else
18591 echo "$as_me: failed program was:" >&5
18592sed 's/^/| /' conftest.$ac_ext >&5
18593
18594cat >conftest.$ac_ext <<_ACEOF
18595/* confdefs.h. */
18596_ACEOF
18597cat confdefs.h >>conftest.$ac_ext
18598cat >>conftest.$ac_ext <<_ACEOF
18599/* end confdefs.h. */
18600$ac_includes_default
18601int
18602main ()
18603{
18604static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18605test_array [0] = 0
18606
18607 ;
18608 return 0;
18609}
18610_ACEOF
18611rm -f conftest.$ac_objext
18612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18613 (eval $ac_compile) 2>conftest.er1
a848cd7e 18614 ac_status=$?
ac1cb8d3
VS
18615 grep -v '^ *+' conftest.er1 >conftest.err
18616 rm -f conftest.er1
18617 cat conftest.err >&5
a848cd7e
SC
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } &&
fb00f58d
JS
18620 { ac_try='test -z "$ac_c_werror_flag"
18621 || test ! -s conftest.err'
ac1cb8d3
VS
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; } &&
18627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; }; then
18633 ac_hi=-1 ac_mid=-1
18634 while :; do
18635 cat >conftest.$ac_ext <<_ACEOF
18636/* confdefs.h. */
18637_ACEOF
18638cat confdefs.h >>conftest.$ac_ext
18639cat >>conftest.$ac_ext <<_ACEOF
18640/* end confdefs.h. */
18641$ac_includes_default
18642int
18643main ()
18644{
18645static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18646test_array [0] = 0
18647
18648 ;
18649 return 0;
18650}
18651_ACEOF
18652rm -f conftest.$ac_objext
18653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18654 (eval $ac_compile) 2>conftest.er1
a848cd7e 18655 ac_status=$?
ac1cb8d3
VS
18656 grep -v '^ *+' conftest.er1 >conftest.err
18657 rm -f conftest.er1
18658 cat conftest.err >&5
a848cd7e
SC
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
fb00f58d
JS
18661 { ac_try='test -z "$ac_c_werror_flag"
18662 || test ! -s conftest.err'
ac1cb8d3
VS
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; } &&
18668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 ac_lo=$ac_mid; break
18675else
18676 echo "$as_me: failed program was:" >&5
18677sed 's/^/| /' conftest.$ac_ext >&5
18678
18679ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18680 if test $ac_mid -le $ac_hi; then
18681 ac_lo= ac_hi=
18682 break
18683 fi
18684 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18685fi
ac1cb8d3 18686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18687 done
18688else
18689 echo "$as_me: failed program was:" >&5
18690sed 's/^/| /' conftest.$ac_ext >&5
18691
18692ac_lo= ac_hi=
18693fi
ac1cb8d3 18694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18695fi
ac1cb8d3 18696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18697# Binary search between lo and hi bounds.
18698while test "x$ac_lo" != "x$ac_hi"; do
18699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18700 cat >conftest.$ac_ext <<_ACEOF
18701/* confdefs.h. */
18702_ACEOF
18703cat confdefs.h >>conftest.$ac_ext
18704cat >>conftest.$ac_ext <<_ACEOF
18705/* end confdefs.h. */
18706$ac_includes_default
18707int
18708main ()
18709{
18710static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18711test_array [0] = 0
18712
18713 ;
18714 return 0;
18715}
18716_ACEOF
18717rm -f conftest.$ac_objext
18718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18719 (eval $ac_compile) 2>conftest.er1
a848cd7e 18720 ac_status=$?
ac1cb8d3
VS
18721 grep -v '^ *+' conftest.er1 >conftest.err
18722 rm -f conftest.er1
18723 cat conftest.err >&5
a848cd7e
SC
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
fb00f58d
JS
18726 { ac_try='test -z "$ac_c_werror_flag"
18727 || test ! -s conftest.err'
ac1cb8d3
VS
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; } &&
18733 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 ac_hi=$ac_mid
18740else
18741 echo "$as_me: failed program was:" >&5
18742sed 's/^/| /' conftest.$ac_ext >&5
18743
18744ac_lo=`expr '(' $ac_mid ')' + 1`
18745fi
ac1cb8d3 18746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18747done
18748case $ac_lo in
18749?*) ac_cv_sizeof_long_long=$ac_lo;;
18750'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18751See \`config.log' for more details." >&5
18752echo "$as_me: error: cannot compute sizeof (long long), 77
18753See \`config.log' for more details." >&2;}
18754 { (exit 1); exit 1; }; } ;;
18755esac
18756else
18757 if test "$cross_compiling" = yes; then
fb00f58d
JS
18758 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18759See \`config.log' for more details." >&5
18760echo "$as_me: error: cannot run test program while cross compiling
18761See \`config.log' for more details." >&2;}
a848cd7e
SC
18762 { (exit 1); exit 1; }; }
18763else
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
18771long longval () { return (long) (sizeof (long long)); }
18772unsigned long ulongval () { return (long) (sizeof (long long)); }
18773#include <stdio.h>
18774#include <stdlib.h>
18775int
18776main ()
18777{
18778
18779 FILE *f = fopen ("conftest.val", "w");
18780 if (! f)
18781 exit (1);
18782 if (((long) (sizeof (long long))) < 0)
18783 {
18784 long i = longval ();
18785 if (i != ((long) (sizeof (long long))))
18786 exit (1);
18787 fprintf (f, "%ld\n", i);
18788 }
18789 else
18790 {
18791 unsigned long i = ulongval ();
18792 if (i != ((long) (sizeof (long long))))
18793 exit (1);
18794 fprintf (f, "%lu\n", i);
18795 }
18796 exit (ferror (f) || fclose (f) != 0);
18797
18798 ;
18799 return 0;
18800}
18801_ACEOF
18802rm -f conftest$ac_exeext
18803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18804 (eval $ac_link) 2>&5
18805 ac_status=$?
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 ac_cv_sizeof_long_long=`cat conftest.val`
18814else
18815 echo "$as_me: program exited with status $ac_status" >&5
18816echo "$as_me: failed program was:" >&5
18817sed 's/^/| /' conftest.$ac_ext >&5
18818
18819( exit $ac_status )
18820{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18821See \`config.log' for more details." >&5
18822echo "$as_me: error: cannot compute sizeof (long long), 77
18823See \`config.log' for more details." >&2;}
18824 { (exit 1); exit 1; }; }
18825fi
ac1cb8d3 18826rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18827fi
18828fi
18829rm -f conftest.val
18830else
18831 ac_cv_sizeof_long_long=0
18832fi
18833fi
18834echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18835echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18836cat >>confdefs.h <<_ACEOF
18837#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18838_ACEOF
18839
18840
18841 if test "$ac_cv_sizeof_long_long" != "0"; then
18842 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18843 fi
18844 ;;
18845 * )
18846 echo "$as_me:$LINENO: checking for long long" >&5
18847echo $ECHO_N "checking for long long... $ECHO_C" >&6
18848if test "${ac_cv_type_long_long+set}" = set; then
18849 echo $ECHO_N "(cached) $ECHO_C" >&6
18850else
18851 cat >conftest.$ac_ext <<_ACEOF
18852/* confdefs.h. */
18853_ACEOF
18854cat confdefs.h >>conftest.$ac_ext
18855cat >>conftest.$ac_ext <<_ACEOF
18856/* end confdefs.h. */
18857$ac_includes_default
18858int
18859main ()
18860{
18861if ((long long *) 0)
18862 return 0;
18863if (sizeof (long long))
18864 return 0;
18865 ;
18866 return 0;
18867}
18868_ACEOF
18869rm -f conftest.$ac_objext
18870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18871 (eval $ac_compile) 2>conftest.er1
a848cd7e 18872 ac_status=$?
ac1cb8d3
VS
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
a848cd7e
SC
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
fb00f58d
JS
18878 { ac_try='test -z "$ac_c_werror_flag"
18879 || test ! -s conftest.err'
ac1cb8d3
VS
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18891 ac_cv_type_long_long=yes
18892else
18893 echo "$as_me: failed program was:" >&5
18894sed 's/^/| /' conftest.$ac_ext >&5
18895
18896ac_cv_type_long_long=no
18897fi
ac1cb8d3 18898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18899fi
18900echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18901echo "${ECHO_T}$ac_cv_type_long_long" >&6
18902
18903echo "$as_me:$LINENO: checking size of long long" >&5
18904echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18905if test "${ac_cv_sizeof_long_long+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18907else
18908 if test "$ac_cv_type_long_long" = yes; then
18909 # The cast to unsigned long works around a bug in the HP C Compiler
18910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18912 # This bug is HP SR number 8606223364.
18913 if test "$cross_compiling" = yes; then
18914 # Depending upon the size, compute the lo and hi bounds.
18915cat >conftest.$ac_ext <<_ACEOF
18916/* confdefs.h. */
18917_ACEOF
18918cat confdefs.h >>conftest.$ac_ext
18919cat >>conftest.$ac_ext <<_ACEOF
18920/* end confdefs.h. */
18921$ac_includes_default
18922int
18923main ()
18924{
18925static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18926test_array [0] = 0
18927
18928 ;
18929 return 0;
18930}
18931_ACEOF
18932rm -f conftest.$ac_objext
18933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18934 (eval $ac_compile) 2>conftest.er1
a848cd7e 18935 ac_status=$?
ac1cb8d3
VS
18936 grep -v '^ *+' conftest.er1 >conftest.err
18937 rm -f conftest.er1
18938 cat conftest.err >&5
a848cd7e
SC
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } &&
fb00f58d
JS
18941 { ac_try='test -z "$ac_c_werror_flag"
18942 || test ! -s conftest.err'
ac1cb8d3
VS
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 ac_lo=0 ac_mid=0
18955 while :; do
18956 cat >conftest.$ac_ext <<_ACEOF
18957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
18962$ac_includes_default
18963int
18964main ()
18965{
18966static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18967test_array [0] = 0
18968
18969 ;
18970 return 0;
18971}
18972_ACEOF
18973rm -f conftest.$ac_objext
18974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18975 (eval $ac_compile) 2>conftest.er1
a848cd7e 18976 ac_status=$?
ac1cb8d3
VS
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
a848cd7e
SC
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
fb00f58d
JS
18982 { ac_try='test -z "$ac_c_werror_flag"
18983 || test ! -s conftest.err'
ac1cb8d3
VS
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18986 ac_status=$?
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; } &&
18989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18995 ac_hi=$ac_mid; break
18996else
18997 echo "$as_me: failed program was:" >&5
18998sed 's/^/| /' conftest.$ac_ext >&5
18999
19000ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19001 if test $ac_lo -le $ac_mid; then
19002 ac_lo= ac_hi=
19003 break
19004 fi
19005 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19006fi
ac1cb8d3 19007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19008 done
19009else
19010 echo "$as_me: failed program was:" >&5
19011sed 's/^/| /' conftest.$ac_ext >&5
19012
19013cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h. */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h. */
19019$ac_includes_default
19020int
19021main ()
19022{
19023static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19024test_array [0] = 0
19025
19026 ;
19027 return 0;
19028}
19029_ACEOF
19030rm -f conftest.$ac_objext
19031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19032 (eval $ac_compile) 2>conftest.er1
a848cd7e 19033 ac_status=$?
ac1cb8d3
VS
19034 grep -v '^ *+' conftest.er1 >conftest.err
19035 rm -f conftest.er1
19036 cat conftest.err >&5
a848cd7e
SC
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } &&
fb00f58d
JS
19039 { ac_try='test -z "$ac_c_werror_flag"
19040 || test ! -s conftest.err'
ac1cb8d3
VS
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 ac_hi=-1 ac_mid=-1
19053 while :; do
19054 cat >conftest.$ac_ext <<_ACEOF
19055/* confdefs.h. */
19056_ACEOF
19057cat confdefs.h >>conftest.$ac_ext
19058cat >>conftest.$ac_ext <<_ACEOF
19059/* end confdefs.h. */
19060$ac_includes_default
19061int
19062main ()
19063{
19064static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19065test_array [0] = 0
19066
19067 ;
19068 return 0;
19069}
19070_ACEOF
19071rm -f conftest.$ac_objext
19072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19073 (eval $ac_compile) 2>conftest.er1
a848cd7e 19074 ac_status=$?
ac1cb8d3
VS
19075 grep -v '^ *+' conftest.er1 >conftest.err
19076 rm -f conftest.er1
19077 cat conftest.err >&5
a848cd7e
SC
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } &&
fb00f58d
JS
19080 { ac_try='test -z "$ac_c_werror_flag"
19081 || test ! -s conftest.err'
ac1cb8d3
VS
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19084 ac_status=$?
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; } &&
19087 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; }; then
19093 ac_lo=$ac_mid; break
19094else
19095 echo "$as_me: failed program was:" >&5
19096sed 's/^/| /' conftest.$ac_ext >&5
19097
19098ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19099 if test $ac_mid -le $ac_hi; then
19100 ac_lo= ac_hi=
19101 break
19102 fi
19103 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19104fi
ac1cb8d3 19105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19106 done
19107else
19108 echo "$as_me: failed program was:" >&5
19109sed 's/^/| /' conftest.$ac_ext >&5
19110
19111ac_lo= ac_hi=
19112fi
ac1cb8d3 19113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19114fi
ac1cb8d3 19115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19116# Binary search between lo and hi bounds.
19117while test "x$ac_lo" != "x$ac_hi"; do
19118 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19119 cat >conftest.$ac_ext <<_ACEOF
19120/* confdefs.h. */
19121_ACEOF
19122cat confdefs.h >>conftest.$ac_ext
19123cat >>conftest.$ac_ext <<_ACEOF
19124/* end confdefs.h. */
19125$ac_includes_default
19126int
19127main ()
19128{
19129static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19130test_array [0] = 0
19131
19132 ;
19133 return 0;
19134}
19135_ACEOF
19136rm -f conftest.$ac_objext
19137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19138 (eval $ac_compile) 2>conftest.er1
a848cd7e 19139 ac_status=$?
ac1cb8d3
VS
19140 grep -v '^ *+' conftest.er1 >conftest.err
19141 rm -f conftest.er1
19142 cat conftest.err >&5
a848cd7e
SC
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } &&
fb00f58d
JS
19145 { ac_try='test -z "$ac_c_werror_flag"
19146 || test ! -s conftest.err'
ac1cb8d3
VS
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; } &&
19152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 ac_hi=$ac_mid
19159else
19160 echo "$as_me: failed program was:" >&5
19161sed 's/^/| /' conftest.$ac_ext >&5
19162
19163ac_lo=`expr '(' $ac_mid ')' + 1`
19164fi
ac1cb8d3 19165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19166done
19167case $ac_lo in
19168?*) ac_cv_sizeof_long_long=$ac_lo;;
19169'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19170See \`config.log' for more details." >&5
19171echo "$as_me: error: cannot compute sizeof (long long), 77
19172See \`config.log' for more details." >&2;}
19173 { (exit 1); exit 1; }; } ;;
19174esac
19175else
19176 if test "$cross_compiling" = yes; then
fb00f58d
JS
19177 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19178See \`config.log' for more details." >&5
19179echo "$as_me: error: cannot run test program while cross compiling
19180See \`config.log' for more details." >&2;}
a848cd7e
SC
19181 { (exit 1); exit 1; }; }
19182else
19183 cat >conftest.$ac_ext <<_ACEOF
19184/* confdefs.h. */
19185_ACEOF
19186cat confdefs.h >>conftest.$ac_ext
19187cat >>conftest.$ac_ext <<_ACEOF
19188/* end confdefs.h. */
19189$ac_includes_default
19190long longval () { return (long) (sizeof (long long)); }
19191unsigned long ulongval () { return (long) (sizeof (long long)); }
19192#include <stdio.h>
19193#include <stdlib.h>
19194int
19195main ()
19196{
19197
19198 FILE *f = fopen ("conftest.val", "w");
19199 if (! f)
19200 exit (1);
19201 if (((long) (sizeof (long long))) < 0)
19202 {
19203 long i = longval ();
19204 if (i != ((long) (sizeof (long long))))
19205 exit (1);
19206 fprintf (f, "%ld\n", i);
19207 }
19208 else
19209 {
19210 unsigned long i = ulongval ();
19211 if (i != ((long) (sizeof (long long))))
19212 exit (1);
19213 fprintf (f, "%lu\n", i);
19214 }
19215 exit (ferror (f) || fclose (f) != 0);
19216
19217 ;
19218 return 0;
19219}
19220_ACEOF
19221rm -f conftest$ac_exeext
19222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19223 (eval $ac_link) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19229 ac_status=$?
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; }; then
19232 ac_cv_sizeof_long_long=`cat conftest.val`
19233else
19234 echo "$as_me: program exited with status $ac_status" >&5
19235echo "$as_me: failed program was:" >&5
19236sed 's/^/| /' conftest.$ac_ext >&5
19237
19238( exit $ac_status )
19239{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19240See \`config.log' for more details." >&5
19241echo "$as_me: error: cannot compute sizeof (long long), 77
19242See \`config.log' for more details." >&2;}
19243 { (exit 1); exit 1; }; }
19244fi
ac1cb8d3 19245rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19246fi
19247fi
19248rm -f conftest.val
19249else
19250 ac_cv_sizeof_long_long=0
19251fi
19252fi
19253echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19254echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19255cat >>confdefs.h <<_ACEOF
19256#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19257_ACEOF
19258
19259
19260esac
19261
238ecede
MW
19262echo "$as_me:$LINENO: checking for wchar_t" >&5
19263echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19264if test "${ac_cv_type_wchar_t+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19266else
19267 cat >conftest.$ac_ext <<_ACEOF
19268/* confdefs.h. */
19269_ACEOF
19270cat confdefs.h >>conftest.$ac_ext
19271cat >>conftest.$ac_ext <<_ACEOF
19272/* end confdefs.h. */
19273
83d8eb47
MW
19274 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19275 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19276 # error "fake wchar_t"
19277 #endif
19278 #ifdef HAVE_WCHAR_H
19279 # ifdef __CYGWIN__
19280 # include <stddef.h>
19281 # endif
19282 # include <wchar.h>
19283 #endif
19284 #ifdef HAVE_STDLIB_H
19285 # include <stdlib.h>
19286 #endif
19287 #include <stdio.h>
19288
19289
19290
19291int
19292main ()
19293{
19294if ((wchar_t *) 0)
19295 return 0;
19296if (sizeof (wchar_t))
19297 return 0;
19298 ;
19299 return 0;
19300}
19301_ACEOF
19302rm -f conftest.$ac_objext
19303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19304 (eval $ac_compile) 2>conftest.er1
19305 ac_status=$?
19306 grep -v '^ *+' conftest.er1 >conftest.err
19307 rm -f conftest.er1
19308 cat conftest.err >&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
fb00f58d
JS
19311 { ac_try='test -z "$ac_c_werror_flag"
19312 || test ! -s conftest.err'
238ecede
MW
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; } &&
19318 { ac_try='test -s conftest.$ac_objext'
19319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 ac_cv_type_wchar_t=yes
19325else
19326 echo "$as_me: failed program was:" >&5
19327sed 's/^/| /' conftest.$ac_ext >&5
19328
19329ac_cv_type_wchar_t=no
19330fi
19331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19332fi
19333echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19334echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19335
a848cd7e
SC
19336echo "$as_me:$LINENO: checking size of wchar_t" >&5
19337echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19338if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19340else
238ecede
MW
19341 if test "$ac_cv_type_wchar_t" = yes; then
19342 # The cast to unsigned long works around a bug in the HP C Compiler
19343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19345 # This bug is HP SR number 8606223364.
19346 if test "$cross_compiling" = yes; then
19347 # Depending upon the size, compute the lo and hi bounds.
19348cat >conftest.$ac_ext <<_ACEOF
19349/* confdefs.h. */
19350_ACEOF
19351cat confdefs.h >>conftest.$ac_ext
19352cat >>conftest.$ac_ext <<_ACEOF
19353/* end confdefs.h. */
19354
83d8eb47
MW
19355 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19356 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19357 # error "fake wchar_t"
19358 #endif
19359 #ifdef HAVE_WCHAR_H
19360 # ifdef __CYGWIN__
19361 # include <stddef.h>
19362 # endif
19363 # include <wchar.h>
19364 #endif
19365 #ifdef HAVE_STDLIB_H
19366 # include <stdlib.h>
19367 #endif
19368 #include <stdio.h>
19369
19370
19371
19372int
19373main ()
19374{
19375static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19376test_array [0] = 0
19377
19378 ;
19379 return 0;
19380}
19381_ACEOF
19382rm -f conftest.$ac_objext
19383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19384 (eval $ac_compile) 2>conftest.er1
19385 ac_status=$?
19386 grep -v '^ *+' conftest.er1 >conftest.err
19387 rm -f conftest.er1
19388 cat conftest.err >&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } &&
fb00f58d
JS
19391 { ac_try='test -z "$ac_c_werror_flag"
19392 || test ! -s conftest.err'
238ecede
MW
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19395 ac_status=$?
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; } &&
19398 { ac_try='test -s conftest.$ac_objext'
19399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400 (eval $ac_try) 2>&5
19401 ac_status=$?
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; }; then
19404 ac_lo=0 ac_mid=0
19405 while :; do
19406 cat >conftest.$ac_ext <<_ACEOF
19407/* confdefs.h. */
19408_ACEOF
19409cat confdefs.h >>conftest.$ac_ext
19410cat >>conftest.$ac_ext <<_ACEOF
19411/* end confdefs.h. */
19412
83d8eb47
MW
19413 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19414 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19415 # error "fake wchar_t"
19416 #endif
19417 #ifdef HAVE_WCHAR_H
19418 # ifdef __CYGWIN__
19419 # include <stddef.h>
19420 # endif
19421 # include <wchar.h>
19422 #endif
19423 #ifdef HAVE_STDLIB_H
19424 # include <stdlib.h>
19425 #endif
19426 #include <stdio.h>
19427
19428
19429
19430int
19431main ()
19432{
19433static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19434test_array [0] = 0
19435
19436 ;
19437 return 0;
19438}
19439_ACEOF
19440rm -f conftest.$ac_objext
19441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19442 (eval $ac_compile) 2>conftest.er1
19443 ac_status=$?
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } &&
fb00f58d
JS
19449 { ac_try='test -z "$ac_c_werror_flag"
19450 || test ! -s conftest.err'
238ecede
MW
19451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452 (eval $ac_try) 2>&5
19453 ac_status=$?
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; } &&
19456 { ac_try='test -s conftest.$ac_objext'
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; }; then
19462 ac_hi=$ac_mid; break
19463else
19464 echo "$as_me: failed program was:" >&5
19465sed 's/^/| /' conftest.$ac_ext >&5
19466
19467ac_lo=`expr $ac_mid + 1`
19468 if test $ac_lo -le $ac_mid; then
19469 ac_lo= ac_hi=
19470 break
19471 fi
19472 ac_mid=`expr 2 '*' $ac_mid + 1`
19473fi
19474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19475 done
19476else
19477 echo "$as_me: failed program was:" >&5
19478sed 's/^/| /' conftest.$ac_ext >&5
19479
19480cat >conftest.$ac_ext <<_ACEOF
19481/* confdefs.h. */
19482_ACEOF
19483cat confdefs.h >>conftest.$ac_ext
19484cat >>conftest.$ac_ext <<_ACEOF
19485/* end confdefs.h. */
19486
83d8eb47
MW
19487 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19488 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19489 # error "fake wchar_t"
19490 #endif
19491 #ifdef HAVE_WCHAR_H
19492 # ifdef __CYGWIN__
19493 # include <stddef.h>
19494 # endif
19495 # include <wchar.h>
19496 #endif
19497 #ifdef HAVE_STDLIB_H
19498 # include <stdlib.h>
19499 #endif
19500 #include <stdio.h>
19501
19502
19503
19504int
19505main ()
19506{
19507static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19508test_array [0] = 0
19509
19510 ;
19511 return 0;
19512}
19513_ACEOF
19514rm -f conftest.$ac_objext
19515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19516 (eval $ac_compile) 2>conftest.er1
19517 ac_status=$?
19518 grep -v '^ *+' conftest.er1 >conftest.err
19519 rm -f conftest.er1
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } &&
fb00f58d
JS
19523 { ac_try='test -z "$ac_c_werror_flag"
19524 || test ! -s conftest.err'
238ecede
MW
19525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; } &&
19530 { ac_try='test -s conftest.$ac_objext'
19531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532 (eval $ac_try) 2>&5
19533 ac_status=$?
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; }; then
19536 ac_hi=-1 ac_mid=-1
19537 while :; do
19538 cat >conftest.$ac_ext <<_ACEOF
19539/* confdefs.h. */
19540_ACEOF
19541cat confdefs.h >>conftest.$ac_ext
19542cat >>conftest.$ac_ext <<_ACEOF
19543/* end confdefs.h. */
19544
83d8eb47
MW
19545 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19546 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19547 # error "fake wchar_t"
19548 #endif
19549 #ifdef HAVE_WCHAR_H
19550 # ifdef __CYGWIN__
19551 # include <stddef.h>
19552 # endif
19553 # include <wchar.h>
19554 #endif
19555 #ifdef HAVE_STDLIB_H
19556 # include <stdlib.h>
19557 #endif
19558 #include <stdio.h>
19559
19560
19561
19562int
19563main ()
19564{
19565static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19566test_array [0] = 0
19567
19568 ;
19569 return 0;
19570}
19571_ACEOF
19572rm -f conftest.$ac_objext
19573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19574 (eval $ac_compile) 2>conftest.er1
19575 ac_status=$?
19576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } &&
fb00f58d
JS
19581 { ac_try='test -z "$ac_c_werror_flag"
19582 || test ! -s conftest.err'
238ecede
MW
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; } &&
19588 { ac_try='test -s conftest.$ac_objext'
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; }; then
19594 ac_lo=$ac_mid; break
19595else
19596 echo "$as_me: failed program was:" >&5
19597sed 's/^/| /' conftest.$ac_ext >&5
19598
19599ac_hi=`expr '(' $ac_mid ')' - 1`
19600 if test $ac_mid -le $ac_hi; then
19601 ac_lo= ac_hi=
19602 break
19603 fi
19604 ac_mid=`expr 2 '*' $ac_mid`
19605fi
19606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19607 done
19608else
19609 echo "$as_me: failed program was:" >&5
19610sed 's/^/| /' conftest.$ac_ext >&5
19611
19612ac_lo= ac_hi=
19613fi
19614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19615fi
19616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19617# Binary search between lo and hi bounds.
19618while test "x$ac_lo" != "x$ac_hi"; do
19619 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19620 cat >conftest.$ac_ext <<_ACEOF
19621/* confdefs.h. */
19622_ACEOF
19623cat confdefs.h >>conftest.$ac_ext
19624cat >>conftest.$ac_ext <<_ACEOF
19625/* end confdefs.h. */
19626
83d8eb47
MW
19627 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19628 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19629 # error "fake wchar_t"
19630 #endif
19631 #ifdef HAVE_WCHAR_H
19632 # ifdef __CYGWIN__
19633 # include <stddef.h>
19634 # endif
19635 # include <wchar.h>
19636 #endif
19637 #ifdef HAVE_STDLIB_H
19638 # include <stdlib.h>
19639 #endif
19640 #include <stdio.h>
a848cd7e 19641
a848cd7e 19642
a848cd7e 19643
238ecede
MW
19644int
19645main ()
19646{
19647static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19648test_array [0] = 0
a848cd7e 19649
238ecede
MW
19650 ;
19651 return 0;
19652}
19653_ACEOF
19654rm -f conftest.$ac_objext
19655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19656 (eval $ac_compile) 2>conftest.er1
19657 ac_status=$?
19658 grep -v '^ *+' conftest.er1 >conftest.err
19659 rm -f conftest.er1
19660 cat conftest.err >&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } &&
fb00f58d
JS
19663 { ac_try='test -z "$ac_c_werror_flag"
19664 || test ! -s conftest.err'
238ecede
MW
19665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19666 (eval $ac_try) 2>&5
19667 ac_status=$?
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); }; } &&
19670 { ac_try='test -s conftest.$ac_objext'
19671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672 (eval $ac_try) 2>&5
19673 ac_status=$?
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; }; then
19676 ac_hi=$ac_mid
19677else
19678 echo "$as_me: failed program was:" >&5
19679sed 's/^/| /' conftest.$ac_ext >&5
19680
19681ac_lo=`expr '(' $ac_mid ')' + 1`
19682fi
19683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19684done
19685case $ac_lo in
19686?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19687'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19688See \`config.log' for more details." >&5
19689echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19690See \`config.log' for more details." >&2;}
19691 { (exit 1); exit 1; }; } ;;
19692esac
19693else
19694 if test "$cross_compiling" = yes; then
fb00f58d
JS
19695 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19696See \`config.log' for more details." >&5
19697echo "$as_me: error: cannot run test program while cross compiling
19698See \`config.log' for more details." >&2;}
238ecede 19699 { (exit 1); exit 1; }; }
a848cd7e
SC
19700else
19701 cat >conftest.$ac_ext <<_ACEOF
19702/* confdefs.h. */
19703_ACEOF
19704cat confdefs.h >>conftest.$ac_ext
19705cat >>conftest.$ac_ext <<_ACEOF
19706/* end confdefs.h. */
19707
83d8eb47
MW
19708 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19709 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19710 # error "fake wchar_t"
19711 #endif
19712 #ifdef HAVE_WCHAR_H
19713 # ifdef __CYGWIN__
19714 # include <stddef.h>
19715 # endif
19716 # include <wchar.h>
19717 #endif
19718 #ifdef HAVE_STDLIB_H
19719 # include <stdlib.h>
19720 #endif
19721 #include <stdio.h>
19722
19723
19724
19725long longval () { return (long) (sizeof (wchar_t)); }
19726unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19727#include <stdio.h>
19728#include <stdlib.h>
19729int
19730main ()
19731{
a848cd7e 19732
238ecede
MW
19733 FILE *f = fopen ("conftest.val", "w");
19734 if (! f)
19735 exit (1);
19736 if (((long) (sizeof (wchar_t))) < 0)
19737 {
19738 long i = longval ();
19739 if (i != ((long) (sizeof (wchar_t))))
19740 exit (1);
19741 fprintf (f, "%ld\n", i);
19742 }
19743 else
19744 {
19745 unsigned long i = ulongval ();
19746 if (i != ((long) (sizeof (wchar_t))))
19747 exit (1);
19748 fprintf (f, "%lu\n", i);
19749 }
19750 exit (ferror (f) || fclose (f) != 0);
19751
19752 ;
19753 return 0;
19754}
a848cd7e
SC
19755_ACEOF
19756rm -f conftest$ac_exeext
19757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19758 (eval $ac_link) 2>&5
19759 ac_status=$?
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763 (eval $ac_try) 2>&5
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
238ecede 19767 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19768else
19769 echo "$as_me: program exited with status $ac_status" >&5
19770echo "$as_me: failed program was:" >&5
19771sed 's/^/| /' conftest.$ac_ext >&5
19772
19773( exit $ac_status )
238ecede
MW
19774{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19775See \`config.log' for more details." >&5
19776echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19777See \`config.log' for more details." >&2;}
19778 { (exit 1); exit 1; }; }
a848cd7e 19779fi
ac1cb8d3 19780rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19781fi
a848cd7e 19782fi
238ecede
MW
19783rm -f conftest.val
19784else
19785 ac_cv_sizeof_wchar_t=0
19786fi
19787fi
19788echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19789echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19790cat >>confdefs.h <<_ACEOF
238ecede 19791#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19792_ACEOF
19793
19794
47a7e797
MW
19795if test "$ac_cv_sizeof_wchar_t" != "0"; then
19796 wxUSE_WCHAR_T=yes
19797else
19798 wxUSE_WCHAR_T=no
19799fi
238ecede 19800
ba3d13e1
VZ
19801echo "$as_me:$LINENO: checking for va_copy" >&5
19802echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19803if test "${wx_cv_func_va_copy+set}" = set; then
19804 echo $ECHO_N "(cached) $ECHO_C" >&6
19805else
19806
19807 cat >conftest.$ac_ext <<_ACEOF
19808
19809 #include <stdarg.h>
19810 void foo(char *f, ...)
19811 {
19812 va_list ap1, ap2;
19813 va_start(ap1, f);
19814 va_copy(ap2, ap1);
19815 va_end(ap2);
19816 va_end(ap1);
19817 }
5886b072
VZ
19818 int main()
19819 {
b902e639
VZ
19820 foo("hi", 17);
19821 return 0;
5886b072 19822 }
ba3d13e1
VZ
19823_ACEOF
19824rm -f conftest.$ac_objext conftest$ac_exeext
19825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19826 (eval $ac_link) 2>conftest.er1
19827 ac_status=$?
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } &&
fb00f58d
JS
19833 { ac_try='test -z "$ac_c_werror_flag"
19834 || test ! -s conftest.err'
ba3d13e1
VZ
19835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19837 ac_status=$?
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); }; } &&
19840 { ac_try='test -s conftest$ac_exeext'
19841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842 (eval $ac_try) 2>&5
19843 ac_status=$?
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; }; then
19846 wx_cv_func_va_copy=yes
19847else
19848 echo "$as_me: failed program was:" >&5
19849sed 's/^/| /' conftest.$ac_ext >&5
19850
19851wx_cv_func_va_copy=no
19852
19853fi
19854rm -f conftest.err conftest.$ac_objext \
19855 conftest$ac_exeext conftest.$ac_ext
19856
19857
19858fi
19859echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19860echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19861
19862if test $wx_cv_func_va_copy = "yes"; then
19863 cat >>confdefs.h <<\_ACEOF
19864#define HAVE_VA_COPY 1
19865_ACEOF
19866
19867else
19868 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19869echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19870if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19872else
19873
19874 if test "$cross_compiling" = yes; then
19875 wx_cv_type_va_list_lvalue=yes
19876
19877else
19878 cat >conftest.$ac_ext <<_ACEOF
19879
19880 #include <stdarg.h>
19881 int foo(char *f, ...)
19882 {
19883 va_list ap1, ap2;
19884 va_start(ap1, f);
19885 ap2 = ap1;
19886 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19887 return 1;
19888 va_end(ap2);
19889 va_end(ap1);
19890 return 0;
19891 }
19892 int main()
19893 {
19894 return foo("hi", 17);
19895 }
19896_ACEOF
19897rm -f conftest$ac_exeext
19898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19899 (eval $ac_link) 2>&5
19900 ac_status=$?
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19905 ac_status=$?
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 wx_cv_type_va_list_lvalue=yes
19909else
19910 echo "$as_me: program exited with status $ac_status" >&5
19911echo "$as_me: failed program was:" >&5
19912sed 's/^/| /' conftest.$ac_ext >&5
19913
19914( exit $ac_status )
19915wx_cv_type_va_list_lvalue=no
19916fi
19917rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19918fi
19919
19920
19921fi
19922echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19923echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19924
19925 if test $wx_cv_type_va_list_lvalue != "yes"; then
19926 cat >>confdefs.h <<\_ACEOF
19927#define VA_LIST_IS_ARRAY 1
19928_ACEOF
19929
19930 fi
19931fi
19932
a848cd7e
SC
19933# Check whether --enable-largefile or --disable-largefile was given.
19934if test "${enable_largefile+set}" = set; then
19935 enableval="$enable_largefile"
19936
19937fi;
19938if test "$enable_largefile" != no; then
19939 wx_largefile=no
19940
19941 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19942echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19943if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19944 echo $ECHO_N "(cached) $ECHO_C" >&6
19945else
19946
19947 cat >conftest.$ac_ext <<_ACEOF
19948/* confdefs.h. */
19949_ACEOF
19950cat confdefs.h >>conftest.$ac_ext
19951cat >>conftest.$ac_ext <<_ACEOF
19952/* end confdefs.h. */
19953#define _FILE_OFFSET_BITS 64
19954 #include <sys/types.h>
19955int
19956main ()
19957{
19958typedef struct {
19959 unsigned int field: sizeof(off_t) == 8;
19960} wxlf;
19961
19962 ;
19963 return 0;
19964}
19965_ACEOF
19966rm -f conftest.$ac_objext
19967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19968 (eval $ac_compile) 2>conftest.er1
a848cd7e 19969 ac_status=$?
ac1cb8d3
VS
19970 grep -v '^ *+' conftest.er1 >conftest.err
19971 rm -f conftest.er1
19972 cat conftest.err >&5
a848cd7e
SC
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } &&
fb00f58d
JS
19975 { ac_try='test -z "$ac_c_werror_flag"
19976 || test ! -s conftest.err'
ac1cb8d3
VS
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; } &&
19982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; }; then
19988 ac_cv_sys_file_offset_bits=64
19989else
19990 echo "$as_me: failed program was:" >&5
19991sed 's/^/| /' conftest.$ac_ext >&5
19992
19993ac_cv_sys_file_offset_bits=no
19994fi
ac1cb8d3 19995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19996
19997
19998fi
19999echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20000echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20001
20002 if test "$ac_cv_sys_file_offset_bits" != no; then
20003 wx_largefile=yes
20004 cat >>confdefs.h <<_ACEOF
20005#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20006_ACEOF
20007
20008 fi
20009
20010 if test "x$wx_largefile" != "xyes"; then
20011
20012 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20013echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20014if test "${ac_cv_sys_large_files+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016else
20017
20018 cat >conftest.$ac_ext <<_ACEOF
20019/* confdefs.h. */
20020_ACEOF
20021cat confdefs.h >>conftest.$ac_ext
20022cat >>conftest.$ac_ext <<_ACEOF
20023/* end confdefs.h. */
20024#define _LARGE_FILES 1
20025 #include <sys/types.h>
20026int
20027main ()
20028{
20029typedef struct {
20030 unsigned int field: sizeof(off_t) == 8;
20031} wxlf;
20032
20033 ;
20034 return 0;
20035}
20036_ACEOF
20037rm -f conftest.$ac_objext
20038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20039 (eval $ac_compile) 2>conftest.er1
a848cd7e 20040 ac_status=$?
ac1cb8d3
VS
20041 grep -v '^ *+' conftest.er1 >conftest.err
20042 rm -f conftest.er1
20043 cat conftest.err >&5
a848cd7e
SC
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } &&
fb00f58d
JS
20046 { ac_try='test -z "$ac_c_werror_flag"
20047 || test ! -s conftest.err'
ac1cb8d3
VS
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; } &&
20053 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; }; then
20059 ac_cv_sys_large_files=1
20060else
20061 echo "$as_me: failed program was:" >&5
20062sed 's/^/| /' conftest.$ac_ext >&5
20063
20064ac_cv_sys_large_files=no
20065fi
ac1cb8d3 20066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20067
20068
20069fi
20070echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20071echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20072
20073 if test "$ac_cv_sys_large_files" != no; then
20074 wx_largefile=yes
20075 cat >>confdefs.h <<_ACEOF
20076#define _LARGE_FILES $ac_cv_sys_large_files
20077_ACEOF
20078
20079 fi
20080
20081 fi
20082
20083 echo "$as_me:$LINENO: checking if large file support is available" >&5
20084echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20085 if test "x$wx_largefile" = "xyes"; then
20086 cat >>confdefs.h <<\_ACEOF
20087#define HAVE_LARGEFILE_SUPPORT 1
20088_ACEOF
20089
20090 fi
20091 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20092echo "${ECHO_T}$wx_largefile" >&6
20093fi
20094
5b674b9d
DE
20095
20096if test "x$wx_largefile" = "xyes"; then
20097 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20098 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
20099 else
20100 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20101 fi
20102 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20103echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20104if test "${ac_cv_sys_largefile_source+set}" = set; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20106else
20107 while :; do
20108 ac_cv_sys_largefile_source=no
20109 cat >conftest.$ac_ext <<_ACEOF
20110/* confdefs.h. */
20111_ACEOF
20112cat confdefs.h >>conftest.$ac_ext
20113cat >>conftest.$ac_ext <<_ACEOF
20114/* end confdefs.h. */
20115#include <stdio.h>
20116int
20117main ()
20118{
20119return !fseeko;
20120 ;
20121 return 0;
20122}
20123_ACEOF
20124rm -f conftest.$ac_objext
20125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20126 (eval $ac_compile) 2>conftest.er1
20127 ac_status=$?
20128 grep -v '^ *+' conftest.er1 >conftest.err
20129 rm -f conftest.er1
20130 cat conftest.err >&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } &&
fb00f58d
JS
20133 { ac_try='test -z "$ac_c_werror_flag"
20134 || test ! -s conftest.err'
5294a27e
VZ
20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20137 ac_status=$?
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; } &&
20140 { ac_try='test -s conftest.$ac_objext'
20141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142 (eval $ac_try) 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; }; then
20146 break
20147else
20148 echo "$as_me: failed program was:" >&5
20149sed 's/^/| /' conftest.$ac_ext >&5
20150
20151fi
20152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20153 cat >conftest.$ac_ext <<_ACEOF
20154/* confdefs.h. */
20155_ACEOF
20156cat confdefs.h >>conftest.$ac_ext
20157cat >>conftest.$ac_ext <<_ACEOF
20158/* end confdefs.h. */
20159#define _LARGEFILE_SOURCE 1
20160#include <stdio.h>
20161int
20162main ()
20163{
20164return !fseeko;
20165 ;
20166 return 0;
20167}
20168_ACEOF
20169rm -f conftest.$ac_objext
20170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20171 (eval $ac_compile) 2>conftest.er1
20172 ac_status=$?
20173 grep -v '^ *+' conftest.er1 >conftest.err
20174 rm -f conftest.er1
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } &&
fb00f58d
JS
20178 { ac_try='test -z "$ac_c_werror_flag"
20179 || test ! -s conftest.err'
5294a27e
VZ
20180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181 (eval $ac_try) 2>&5
20182 ac_status=$?
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; } &&
20185 { ac_try='test -s conftest.$ac_objext'
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
20191 ac_cv_sys_largefile_source=1; break
20192else
20193 echo "$as_me: failed program was:" >&5
20194sed 's/^/| /' conftest.$ac_ext >&5
20195
20196fi
20197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20198 break
20199done
20200fi
20201echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20202echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20203if test "$ac_cv_sys_largefile_source" != no; then
20204
20205cat >>confdefs.h <<_ACEOF
20206#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20207_ACEOF
20208
20209fi
20210rm -f conftest*
20211
20212# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20213# in glibc 2.1.3, but that breaks too many other things.
20214# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20215echo "$as_me:$LINENO: checking for fseeko" >&5
20216echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20217if test "${ac_cv_func_fseeko+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20219else
20220 cat >conftest.$ac_ext <<_ACEOF
20221/* confdefs.h. */
20222_ACEOF
20223cat confdefs.h >>conftest.$ac_ext
20224cat >>conftest.$ac_ext <<_ACEOF
20225/* end confdefs.h. */
20226#include <stdio.h>
20227int
20228main ()
20229{
20230return fseeko && fseeko (stdin, 0, 0);
20231 ;
20232 return 0;
20233}
20234_ACEOF
20235rm -f conftest.$ac_objext conftest$ac_exeext
20236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20237 (eval $ac_link) 2>conftest.er1
20238 ac_status=$?
20239 grep -v '^ *+' conftest.er1 >conftest.err
20240 rm -f conftest.er1
20241 cat conftest.err >&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } &&
fb00f58d
JS
20244 { ac_try='test -z "$ac_c_werror_flag"
20245 || test ! -s conftest.err'
5294a27e
VZ
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; } &&
20251 { ac_try='test -s conftest$ac_exeext'
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20254 ac_status=$?
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; }; then
20257 ac_cv_func_fseeko=yes
20258else
20259 echo "$as_me: failed program was:" >&5
20260sed 's/^/| /' conftest.$ac_ext >&5
20261
20262ac_cv_func_fseeko=no
20263fi
20264rm -f conftest.err conftest.$ac_objext \
20265 conftest$ac_exeext conftest.$ac_ext
20266fi
20267echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20268echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20269if test $ac_cv_func_fseeko = yes; then
20270
20271cat >>confdefs.h <<\_ACEOF
20272#define HAVE_FSEEKO 1
20273_ACEOF
20274
20275fi
20276
5b674b9d
DE
20277 if test "$ac_cv_sys_largefile_source" != no; then
20278 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20279 fi
20280 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20281fi
20282
20283echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20284echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20285if test "${ac_cv_c_bigendian+set}" = set; then
20286 echo $ECHO_N "(cached) $ECHO_C" >&6
20287else
20288 ac_cv_c_bigendian=unknown
20289# See if sys/param.h defines the BYTE_ORDER macro.
20290cat >conftest.$ac_ext <<_ACEOF
20291/* confdefs.h. */
20292_ACEOF
20293cat confdefs.h >>conftest.$ac_ext
20294cat >>conftest.$ac_ext <<_ACEOF
20295/* end confdefs.h. */
20296#include <sys/types.h>
20297#include <sys/param.h>
20298int
20299main ()
20300{
20301
20302#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20303 bogus endian macros
20304#endif
20305 ;
20306 return 0;
20307}
20308_ACEOF
20309rm -f conftest.$ac_objext
20310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20311 (eval $ac_compile) 2>conftest.er1
a848cd7e 20312 ac_status=$?
ac1cb8d3
VS
20313 grep -v '^ *+' conftest.er1 >conftest.err
20314 rm -f conftest.er1
20315 cat conftest.err >&5
a848cd7e
SC
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } &&
fb00f58d
JS
20318 { ac_try='test -z "$ac_c_werror_flag"
20319 || test ! -s conftest.err'
ac1cb8d3
VS
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; } &&
20325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327 (eval $ac_try) 2>&5
20328 ac_status=$?
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; }; then
20331 # It does; now see whether it defined to BIG_ENDIAN or not.
20332cat >conftest.$ac_ext <<_ACEOF
20333/* confdefs.h. */
20334_ACEOF
20335cat confdefs.h >>conftest.$ac_ext
20336cat >>conftest.$ac_ext <<_ACEOF
20337/* end confdefs.h. */
20338#include <sys/types.h>
20339#include <sys/param.h>
20340int
20341main ()
20342{
20343
20344#if BYTE_ORDER != BIG_ENDIAN
20345 not big endian
20346#endif
20347 ;
20348 return 0;
20349}
20350_ACEOF
20351rm -f conftest.$ac_objext
20352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20353 (eval $ac_compile) 2>conftest.er1
a848cd7e 20354 ac_status=$?
ac1cb8d3
VS
20355 grep -v '^ *+' conftest.er1 >conftest.err
20356 rm -f conftest.er1
20357 cat conftest.err >&5
a848cd7e
SC
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } &&
fb00f58d
JS
20360 { ac_try='test -z "$ac_c_werror_flag"
20361 || test ! -s conftest.err'
ac1cb8d3
VS
20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363 (eval $ac_try) 2>&5
20364 ac_status=$?
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; } &&
20367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 ac_cv_c_bigendian=yes
20374else
20375 echo "$as_me: failed program was:" >&5
20376sed 's/^/| /' conftest.$ac_ext >&5
20377
20378ac_cv_c_bigendian=no
20379fi
ac1cb8d3 20380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20381else
20382 echo "$as_me: failed program was:" >&5
20383sed 's/^/| /' conftest.$ac_ext >&5
20384
20385fi
ac1cb8d3 20386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20387if test $ac_cv_c_bigendian = unknown; then
20388if test "$cross_compiling" = yes; then
20389 ac_cv_c_bigendian=unknown
20390else
20391 cat >conftest.$ac_ext <<_ACEOF
20392/* confdefs.h. */
20393_ACEOF
20394cat confdefs.h >>conftest.$ac_ext
20395cat >>conftest.$ac_ext <<_ACEOF
20396/* end confdefs.h. */
20397main () {
20398 /* Are we little or big endian? From Harbison&Steele. */
20399 union
20400 {
20401 long l;
20402 char c[sizeof (long)];
20403 } u;
20404 u.l = 1;
20405 exit (u.c[sizeof (long) - 1] == 1);
20406}
20407_ACEOF
20408rm -f conftest$ac_exeext
20409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20410 (eval $ac_link) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415 (eval $ac_try) 2>&5
20416 ac_status=$?
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; }; then
20419 ac_cv_c_bigendian=no
20420else
20421 echo "$as_me: program exited with status $ac_status" >&5
20422echo "$as_me: failed program was:" >&5
20423sed 's/^/| /' conftest.$ac_ext >&5
20424
20425( exit $ac_status )
20426ac_cv_c_bigendian=yes
20427fi
ac1cb8d3 20428rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20429fi
20430fi
20431fi
20432echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20433echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20434if test $ac_cv_c_bigendian = unknown; then
20435 { 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
20436echo "$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;}
20437fi
20438if test $ac_cv_c_bigendian = yes; then
20439 cat >>confdefs.h <<\_ACEOF
20440#define WORDS_BIGENDIAN 1
20441_ACEOF
20442
20443fi
20444
20445
20446ac_ext=cc
20447ac_cpp='$CXXCPP $CPPFLAGS'
20448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20451echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20452echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20453if test -z "$CXXCPP"; then
20454 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
20456else
20457 # Double quotes because CXXCPP needs to be expanded
20458 for CXXCPP in "$CXX -E" "/lib/cpp"
20459 do
20460 ac_preproc_ok=false
20461for ac_cxx_preproc_warn_flag in '' yes
20462do
20463 # Use a header file that comes with gcc, so configuring glibc
20464 # with a fresh cross-compiler works.
20465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20466 # <limits.h> exists even on freestanding compilers.
20467 # On the NeXT, cc -E runs the code through the compiler's parser,
20468 # not just through cpp. "Syntax error" is here to catch this case.
20469 cat >conftest.$ac_ext <<_ACEOF
20470/* confdefs.h. */
20471_ACEOF
20472cat confdefs.h >>conftest.$ac_ext
20473cat >>conftest.$ac_ext <<_ACEOF
20474/* end confdefs.h. */
20475#ifdef __STDC__
20476# include <limits.h>
20477#else
20478# include <assert.h>
20479#endif
ac1cb8d3 20480 Syntax error
a848cd7e
SC
20481_ACEOF
20482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20484 ac_status=$?
20485 grep -v '^ *+' conftest.er1 >conftest.err
20486 rm -f conftest.er1
20487 cat conftest.err >&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } >/dev/null; then
20490 if test -s conftest.err; then
20491 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20492 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20493 else
20494 ac_cpp_err=
20495 fi
20496else
20497 ac_cpp_err=yes
20498fi
20499if test -z "$ac_cpp_err"; then
20500 :
20501else
20502 echo "$as_me: failed program was:" >&5
20503sed 's/^/| /' conftest.$ac_ext >&5
20504
20505 # Broken: fails on valid input.
20506continue
20507fi
20508rm -f conftest.err conftest.$ac_ext
20509
20510 # OK, works on sane cases. Now check whether non-existent headers
20511 # can be detected and how.
20512 cat >conftest.$ac_ext <<_ACEOF
20513/* confdefs.h. */
20514_ACEOF
20515cat confdefs.h >>conftest.$ac_ext
20516cat >>conftest.$ac_ext <<_ACEOF
20517/* end confdefs.h. */
20518#include <ac_nonexistent.h>
20519_ACEOF
20520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20522 ac_status=$?
20523 grep -v '^ *+' conftest.er1 >conftest.err
20524 rm -f conftest.er1
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } >/dev/null; then
20528 if test -s conftest.err; then
20529 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20530 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20531 else
20532 ac_cpp_err=
20533 fi
20534else
20535 ac_cpp_err=yes
20536fi
20537if test -z "$ac_cpp_err"; then
20538 # Broken: success on invalid input.
20539continue
20540else
20541 echo "$as_me: failed program was:" >&5
20542sed 's/^/| /' conftest.$ac_ext >&5
20543
20544 # Passes both tests.
20545ac_preproc_ok=:
20546break
20547fi
20548rm -f conftest.err conftest.$ac_ext
20549
20550done
20551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20552rm -f conftest.err conftest.$ac_ext
20553if $ac_preproc_ok; then
20554 break
20555fi
20556
20557 done
20558 ac_cv_prog_CXXCPP=$CXXCPP
20559
20560fi
20561 CXXCPP=$ac_cv_prog_CXXCPP
20562else
20563 ac_cv_prog_CXXCPP=$CXXCPP
20564fi
20565echo "$as_me:$LINENO: result: $CXXCPP" >&5
20566echo "${ECHO_T}$CXXCPP" >&6
20567ac_preproc_ok=false
20568for ac_cxx_preproc_warn_flag in '' yes
20569do
20570 # Use a header file that comes with gcc, so configuring glibc
20571 # with a fresh cross-compiler works.
20572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20573 # <limits.h> exists even on freestanding compilers.
20574 # On the NeXT, cc -E runs the code through the compiler's parser,
20575 # not just through cpp. "Syntax error" is here to catch this case.
20576 cat >conftest.$ac_ext <<_ACEOF
20577/* confdefs.h. */
20578_ACEOF
20579cat confdefs.h >>conftest.$ac_ext
20580cat >>conftest.$ac_ext <<_ACEOF
20581/* end confdefs.h. */
20582#ifdef __STDC__
20583# include <limits.h>
20584#else
20585# include <assert.h>
20586#endif
ac1cb8d3 20587 Syntax error
a848cd7e
SC
20588_ACEOF
20589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20591 ac_status=$?
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } >/dev/null; then
20597 if test -s conftest.err; then
20598 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20599 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20600 else
20601 ac_cpp_err=
20602 fi
20603else
20604 ac_cpp_err=yes
20605fi
20606if test -z "$ac_cpp_err"; then
20607 :
20608else
20609 echo "$as_me: failed program was:" >&5
20610sed 's/^/| /' conftest.$ac_ext >&5
20611
20612 # Broken: fails on valid input.
20613continue
20614fi
20615rm -f conftest.err conftest.$ac_ext
20616
20617 # OK, works on sane cases. Now check whether non-existent headers
20618 # can be detected and how.
20619 cat >conftest.$ac_ext <<_ACEOF
20620/* confdefs.h. */
20621_ACEOF
20622cat confdefs.h >>conftest.$ac_ext
20623cat >>conftest.$ac_ext <<_ACEOF
20624/* end confdefs.h. */
20625#include <ac_nonexistent.h>
20626_ACEOF
20627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20629 ac_status=$?
20630 grep -v '^ *+' conftest.er1 >conftest.err
20631 rm -f conftest.er1
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } >/dev/null; then
20635 if test -s conftest.err; then
20636 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20637 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20638 else
20639 ac_cpp_err=
20640 fi
20641else
20642 ac_cpp_err=yes
20643fi
20644if test -z "$ac_cpp_err"; then
20645 # Broken: success on invalid input.
20646continue
20647else
20648 echo "$as_me: failed program was:" >&5
20649sed 's/^/| /' conftest.$ac_ext >&5
20650
20651 # Passes both tests.
20652ac_preproc_ok=:
20653break
20654fi
20655rm -f conftest.err conftest.$ac_ext
20656
20657done
20658# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20659rm -f conftest.err conftest.$ac_ext
20660if $ac_preproc_ok; then
20661 :
20662else
20663 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20664See \`config.log' for more details." >&5
20665echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20666See \`config.log' for more details." >&2;}
20667 { (exit 1); exit 1; }; }
20668fi
20669
20670ac_ext=cc
20671ac_cpp='$CXXCPP $CPPFLAGS'
20672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20675
20676
20677
20678
20679
20680 ac_ext=cc
20681ac_cpp='$CXXCPP $CPPFLAGS'
20682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20685
20686
20687
20688for ac_header in iostream
20689do
20690as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20691if eval "test \"\${$as_ac_Header+set}\" = set"; then
20692 echo "$as_me:$LINENO: checking for $ac_header" >&5
20693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20694if eval "test \"\${$as_ac_Header+set}\" = set"; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20696fi
20697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20699else
20700 # Is the header compilable?
20701echo "$as_me:$LINENO: checking $ac_header usability" >&5
20702echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20703cat >conftest.$ac_ext <<_ACEOF
20704/* confdefs.h. */
20705_ACEOF
20706cat confdefs.h >>conftest.$ac_ext
20707cat >>conftest.$ac_ext <<_ACEOF
20708/* end confdefs.h. */
20709$ac_includes_default
20710#include <$ac_header>
20711_ACEOF
20712rm -f conftest.$ac_objext
20713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20714 (eval $ac_compile) 2>conftest.er1
a848cd7e 20715 ac_status=$?
ac1cb8d3
VS
20716 grep -v '^ *+' conftest.er1 >conftest.err
20717 rm -f conftest.er1
20718 cat conftest.err >&5
a848cd7e
SC
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } &&
fb00f58d
JS
20721 { ac_try='test -z "$ac_cxx_werror_flag"
20722 || test ! -s conftest.err'
ac1cb8d3
VS
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20725 ac_status=$?
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; } &&
20728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20731 ac_status=$?
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; }; then
20734 ac_header_compiler=yes
20735else
20736 echo "$as_me: failed program was:" >&5
20737sed 's/^/| /' conftest.$ac_ext >&5
20738
20739ac_header_compiler=no
20740fi
ac1cb8d3 20741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20742echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20743echo "${ECHO_T}$ac_header_compiler" >&6
20744
20745# Is the header present?
20746echo "$as_me:$LINENO: checking $ac_header presence" >&5
20747echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20748cat >conftest.$ac_ext <<_ACEOF
20749/* confdefs.h. */
20750_ACEOF
20751cat confdefs.h >>conftest.$ac_ext
20752cat >>conftest.$ac_ext <<_ACEOF
20753/* end confdefs.h. */
20754#include <$ac_header>
20755_ACEOF
20756if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20758 ac_status=$?
20759 grep -v '^ *+' conftest.er1 >conftest.err
20760 rm -f conftest.er1
20761 cat conftest.err >&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } >/dev/null; then
20764 if test -s conftest.err; then
20765 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20766 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20767 else
20768 ac_cpp_err=
20769 fi
20770else
20771 ac_cpp_err=yes
20772fi
20773if test -z "$ac_cpp_err"; then
20774 ac_header_preproc=yes
20775else
20776 echo "$as_me: failed program was:" >&5
20777sed 's/^/| /' conftest.$ac_ext >&5
20778
20779 ac_header_preproc=no
20780fi
20781rm -f conftest.err conftest.$ac_ext
20782echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20783echo "${ECHO_T}$ac_header_preproc" >&6
20784
20785# So? What about this header?
ac1cb8d3
VS
20786case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20787 yes:no: )
a848cd7e
SC
20788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20789echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20791echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20792 ac_header_preproc=yes
a848cd7e 20793 ;;
ac1cb8d3 20794 no:yes:* )
a848cd7e
SC
20795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20796echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20798echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20800echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20802echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20804echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20806echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20807 (
20808 cat <<\_ASBOX
ac1cb8d3
VS
20809## ----------------------------------------- ##
20810## Report this to wx-dev@lists.wxwidgets.org ##
20811## ----------------------------------------- ##
a848cd7e
SC
20812_ASBOX
20813 ) |
20814 sed "s/^/$as_me: WARNING: /" >&2
20815 ;;
20816esac
20817echo "$as_me:$LINENO: checking for $ac_header" >&5
20818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20819if eval "test \"\${$as_ac_Header+set}\" = set"; then
20820 echo $ECHO_N "(cached) $ECHO_C" >&6
20821else
ac1cb8d3 20822 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20823fi
20824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20826
20827fi
20828if test `eval echo '${'$as_ac_Header'}'` = yes; then
20829 cat >>confdefs.h <<_ACEOF
20830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20831_ACEOF
20832
20833fi
20834
20835done
20836
20837
20838 if test "$ac_cv_header_iostream" = "yes" ; then
20839 :
20840 else
20841 cat >>confdefs.h <<\_ACEOF
20842#define wxUSE_IOSTREAMH 1
20843_ACEOF
20844
20845 fi
20846
20847 ac_ext=c
20848ac_cpp='$CPP $CPPFLAGS'
20849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851ac_compiler_gnu=$ac_cv_c_compiler_gnu
20852
20853
20854
20855
20856 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20857echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20858if test "${wx_cv_cpp_bool+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20860else
20861
20862
20863
20864 ac_ext=cc
20865ac_cpp='$CXXCPP $CPPFLAGS'
20866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20869
20870
20871 cat >conftest.$ac_ext <<_ACEOF
20872/* confdefs.h. */
20873_ACEOF
20874cat confdefs.h >>conftest.$ac_ext
20875cat >>conftest.$ac_ext <<_ACEOF
20876/* end confdefs.h. */
20877
20878
20879int
20880main ()
20881{
20882
20883 bool b = true;
20884
20885 return 0;
20886
20887 ;
20888 return 0;
20889}
20890_ACEOF
20891rm -f conftest.$ac_objext
20892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20893 (eval $ac_compile) 2>conftest.er1
a848cd7e 20894 ac_status=$?
ac1cb8d3
VS
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
a848cd7e
SC
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
fb00f58d
JS
20900 { ac_try='test -z "$ac_cxx_werror_flag"
20901 || test ! -s conftest.err'
ac1cb8d3
VS
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20904 ac_status=$?
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; } &&
20907 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20910 ac_status=$?
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; }; then
20913
20914 wx_cv_cpp_bool=yes
20915
20916else
20917 echo "$as_me: failed program was:" >&5
20918sed 's/^/| /' conftest.$ac_ext >&5
20919
20920
20921 wx_cv_cpp_bool=no
20922
20923
20924fi
ac1cb8d3 20925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20926
20927 ac_ext=c
20928ac_cpp='$CPP $CPPFLAGS'
20929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20931ac_compiler_gnu=$ac_cv_c_compiler_gnu
20932
20933
20934fi
20935echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20936echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20937
20938 if test "$wx_cv_cpp_bool" = "yes"; then
20939 cat >>confdefs.h <<\_ACEOF
20940#define HAVE_BOOL 1
20941_ACEOF
20942
20943 fi
20944
20945
20946
20947 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20948echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20949if test "${wx_cv_explicit+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20951else
20952
20953
20954
20955 ac_ext=cc
20956ac_cpp='$CXXCPP $CPPFLAGS'
20957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20960
20961
20962 cat >conftest.$ac_ext <<_ACEOF
20963/* confdefs.h. */
20964_ACEOF
20965cat confdefs.h >>conftest.$ac_ext
20966cat >>conftest.$ac_ext <<_ACEOF
20967/* end confdefs.h. */
20968
20969 class Foo { public: explicit Foo(int) {} };
20970
20971int
20972main ()
20973{
20974
20975 return 0;
20976
20977 ;
20978 return 0;
20979}
20980_ACEOF
20981rm -f conftest.$ac_objext
20982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20983 (eval $ac_compile) 2>conftest.er1
a848cd7e 20984 ac_status=$?
ac1cb8d3
VS
20985 grep -v '^ *+' conftest.er1 >conftest.err
20986 rm -f conftest.er1
20987 cat conftest.err >&5
a848cd7e
SC
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } &&
fb00f58d
JS
20990 { ac_try='test -z "$ac_cxx_werror_flag"
20991 || test ! -s conftest.err'
ac1cb8d3
VS
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; } &&
20997 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21000 ac_status=$?
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; }; then
21003
21004 cat >conftest.$ac_ext <<_ACEOF
21005/* confdefs.h. */
21006_ACEOF
21007cat confdefs.h >>conftest.$ac_ext
21008cat >>conftest.$ac_ext <<_ACEOF
21009/* end confdefs.h. */
21010
21011 class Foo { public: explicit Foo(int) {} };
21012 static void TakeFoo(const Foo& foo) { }
21013
21014int
21015main ()
21016{
21017
21018 TakeFoo(17);
21019 return 0;
21020
21021 ;
21022 return 0;
21023}
21024_ACEOF
21025rm -f conftest.$ac_objext
21026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21027 (eval $ac_compile) 2>conftest.er1
a848cd7e 21028 ac_status=$?
ac1cb8d3
VS
21029 grep -v '^ *+' conftest.er1 >conftest.err
21030 rm -f conftest.er1
21031 cat conftest.err >&5
a848cd7e
SC
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } &&
fb00f58d
JS
21034 { ac_try='test -z "$ac_cxx_werror_flag"
21035 || test ! -s conftest.err'
ac1cb8d3
VS
21036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037 (eval $ac_try) 2>&5
21038 ac_status=$?
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; } &&
21041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21044 ac_status=$?
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; }; then
21047 wx_cv_explicit=no
21048else
21049 echo "$as_me: failed program was:" >&5
21050sed 's/^/| /' conftest.$ac_ext >&5
21051
21052wx_cv_explicit=yes
21053
21054fi
ac1cb8d3 21055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21056
21057else
21058 echo "$as_me: failed program was:" >&5
21059sed 's/^/| /' conftest.$ac_ext >&5
21060
21061wx_cv_explicit=no
21062
21063fi
ac1cb8d3 21064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21065
21066 ac_ext=c
21067ac_cpp='$CPP $CPPFLAGS'
21068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21070ac_compiler_gnu=$ac_cv_c_compiler_gnu
21071
21072
21073fi
21074echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21075echo "${ECHO_T}$wx_cv_explicit" >&6
21076
21077 if test "$wx_cv_explicit" = "yes"; then
21078 cat >>confdefs.h <<\_ACEOF
21079#define HAVE_EXPLICIT 1
21080_ACEOF
21081
21082 fi
21083
21084
21085echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21086echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21087if test "${ac_cv_cxx_const_cast+set}" = set; then
21088 echo $ECHO_N "(cached) $ECHO_C" >&6
21089else
21090
21091
21092 ac_ext=cc
21093ac_cpp='$CXXCPP $CPPFLAGS'
21094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21097
21098 cat >conftest.$ac_ext <<_ACEOF
21099/* confdefs.h. */
21100_ACEOF
21101cat confdefs.h >>conftest.$ac_ext
21102cat >>conftest.$ac_ext <<_ACEOF
21103/* end confdefs.h. */
21104
21105int
21106main ()
21107{
21108int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21109 ;
21110 return 0;
21111}
21112_ACEOF
21113rm -f conftest.$ac_objext
21114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21115 (eval $ac_compile) 2>conftest.er1
a848cd7e 21116 ac_status=$?
ac1cb8d3
VS
21117 grep -v '^ *+' conftest.er1 >conftest.err
21118 rm -f conftest.er1
21119 cat conftest.err >&5
a848cd7e
SC
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } &&
fb00f58d
JS
21122 { ac_try='test -z "$ac_cxx_werror_flag"
21123 || test ! -s conftest.err'
ac1cb8d3
VS
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; } &&
21129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131 (eval $ac_try) 2>&5
21132 ac_status=$?
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; }; then
21135 ac_cv_cxx_const_cast=yes
21136else
21137 echo "$as_me: failed program was:" >&5
21138sed 's/^/| /' conftest.$ac_ext >&5
21139
21140ac_cv_cxx_const_cast=no
21141fi
ac1cb8d3 21142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21143 ac_ext=c
21144ac_cpp='$CPP $CPPFLAGS'
21145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147ac_compiler_gnu=$ac_cv_c_compiler_gnu
21148
21149
21150fi
21151echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21152echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21153if test "$ac_cv_cxx_const_cast" = yes; then
21154
21155cat >>confdefs.h <<\_ACEOF
21156#define HAVE_CONST_CAST
21157_ACEOF
21158
21159fi
21160
7714864e
RL
21161echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21162echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21163if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21164 echo $ECHO_N "(cached) $ECHO_C" >&6
21165else
21166
21167
21168 ac_ext=cc
21169ac_cpp='$CXXCPP $CPPFLAGS'
21170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21173
21174 cat >conftest.$ac_ext <<_ACEOF
21175/* confdefs.h. */
21176_ACEOF
21177cat confdefs.h >>conftest.$ac_ext
21178cat >>conftest.$ac_ext <<_ACEOF
21179/* end confdefs.h. */
21180#include <typeinfo>
21181class Base { public : Base () {} virtual void f () = 0;};
21182class Derived : public Base { public : Derived () {} virtual void f () {} };
21183class Unrelated { public : Unrelated () {} };
21184int g (Unrelated&) { return 0; }
21185int
21186main ()
21187{
21188
21189Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21190 ;
21191 return 0;
21192}
21193_ACEOF
21194rm -f conftest.$ac_objext
21195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21196 (eval $ac_compile) 2>conftest.er1
21197 ac_status=$?
21198 grep -v '^ *+' conftest.er1 >conftest.err
21199 rm -f conftest.er1
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } &&
fb00f58d
JS
21203 { ac_try='test -z "$ac_cxx_werror_flag"
21204 || test ! -s conftest.err'
7714864e
RL
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21207 ac_status=$?
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; } &&
21210 { ac_try='test -s conftest.$ac_objext'
21211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212 (eval $ac_try) 2>&5
21213 ac_status=$?
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); }; }; then
21216 ac_cv_cxx_reinterpret_cast=yes
21217else
21218 echo "$as_me: failed program was:" >&5
21219sed 's/^/| /' conftest.$ac_ext >&5
21220
21221ac_cv_cxx_reinterpret_cast=no
21222fi
21223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21224 ac_ext=c
21225ac_cpp='$CPP $CPPFLAGS'
21226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21228ac_compiler_gnu=$ac_cv_c_compiler_gnu
21229
21230
21231fi
21232echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21233echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21234if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21235
21236cat >>confdefs.h <<\_ACEOF
21237#define HAVE_REINTERPRET_CAST
21238_ACEOF
21239
21240fi
21241
a848cd7e
SC
21242echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21243echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21244if test "${ac_cv_cxx_static_cast+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21246else
21247
21248
21249 ac_ext=cc
21250ac_cpp='$CXXCPP $CPPFLAGS'
21251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21254
21255 cat >conftest.$ac_ext <<_ACEOF
21256/* confdefs.h. */
21257_ACEOF
21258cat confdefs.h >>conftest.$ac_ext
21259cat >>conftest.$ac_ext <<_ACEOF
21260/* end confdefs.h. */
21261#include <typeinfo>
21262class Base { public : Base () {} virtual void f () = 0; };
21263class Derived : public Base { public : Derived () {} virtual void f () {} };
21264int g (Derived&) { return 0; }
21265int
21266main ()
21267{
21268
21269Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21270 ;
21271 return 0;
21272}
21273_ACEOF
21274rm -f conftest.$ac_objext
21275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21276 (eval $ac_compile) 2>conftest.er1
a848cd7e 21277 ac_status=$?
ac1cb8d3
VS
21278 grep -v '^ *+' conftest.er1 >conftest.err
21279 rm -f conftest.er1
21280 cat conftest.err >&5
a848cd7e
SC
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } &&
fb00f58d
JS
21283 { ac_try='test -z "$ac_cxx_werror_flag"
21284 || test ! -s conftest.err'
ac1cb8d3
VS
21285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286 (eval $ac_try) 2>&5
21287 ac_status=$?
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; } &&
21290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292 (eval $ac_try) 2>&5
21293 ac_status=$?
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; }; then
21296 ac_cv_cxx_static_cast=yes
21297else
21298 echo "$as_me: failed program was:" >&5
21299sed 's/^/| /' conftest.$ac_ext >&5
21300
21301ac_cv_cxx_static_cast=no
21302fi
ac1cb8d3 21303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21304 ac_ext=c
21305ac_cpp='$CPP $CPPFLAGS'
21306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308ac_compiler_gnu=$ac_cv_c_compiler_gnu
21309
21310
21311fi
21312echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21313echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21314if test "$ac_cv_cxx_static_cast" = yes; then
21315
21316cat >>confdefs.h <<\_ACEOF
21317#define HAVE_STATIC_CAST
21318_ACEOF
21319
21320fi
21321
21322
f56c22b4 21323if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21324 ac_ext=cc
21325ac_cpp='$CXXCPP $CPPFLAGS'
21326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21329
21330
f56c22b4
MW
21331 if test "$wxUSE_UNICODE" = "yes"; then
21332 std_string="std::wstring"
21333 char_type="wchar_t"
21334 else
21335 std_string="std::string"
21336 char_type="char"
21337 fi
21338
21339 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21340echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21341 cat >conftest.$ac_ext <<_ACEOF
21342/* confdefs.h. */
21343_ACEOF
21344cat confdefs.h >>conftest.$ac_ext
21345cat >>conftest.$ac_ext <<_ACEOF
21346/* end confdefs.h. */
21347#include <string>
a848cd7e
SC
21348int
21349main ()
21350{
f56c22b4 21351$std_string foo;
a848cd7e
SC
21352 ;
21353 return 0;
21354}
21355_ACEOF
21356rm -f conftest.$ac_objext
21357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21358 (eval $ac_compile) 2>conftest.er1
a848cd7e 21359 ac_status=$?
ac1cb8d3
VS
21360 grep -v '^ *+' conftest.er1 >conftest.err
21361 rm -f conftest.er1
21362 cat conftest.err >&5
a848cd7e
SC
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } &&
fb00f58d
JS
21365 { ac_try='test -z "$ac_cxx_werror_flag"
21366 || test ! -s conftest.err'
ac1cb8d3
VS
21367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21368 (eval $ac_try) 2>&5
21369 ac_status=$?
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; } &&
21372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374 (eval $ac_try) 2>&5
21375 ac_status=$?
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; }; then
21378 echo "$as_me:$LINENO: result: yes" >&5
21379echo "${ECHO_T}yes" >&6
0a08f02a
MB
21380 cat >>confdefs.h <<\_ACEOF
21381#define HAVE_STD_WSTRING 1
21382_ACEOF
21383
a848cd7e
SC
21384else
21385 echo "$as_me: failed program was:" >&5
21386sed 's/^/| /' conftest.$ac_ext >&5
21387
21388echo "$as_me:$LINENO: result: no" >&5
21389echo "${ECHO_T}no" >&6
f56c22b4
MW
21390 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21391echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21392 cat >conftest.$ac_ext <<_ACEOF
21393/* confdefs.h. */
21394_ACEOF
21395cat confdefs.h >>conftest.$ac_ext
21396cat >>conftest.$ac_ext <<_ACEOF
21397/* end confdefs.h. */
21398
21399 #ifdef HAVE_WCHAR_H
21400 # ifdef __CYGWIN__
21401 # include <stddef.h>
21402 # endif
21403 # include <wchar.h>
21404 #endif
21405 #ifdef HAVE_STDLIB_H
21406 # include <stdlib.h>
21407 #endif
21408 #include <stdio.h>
21409 #include <string>
21410
21411int
21412main ()
21413{
f56c22b4
MW
21414std::basic_string<$char_type> foo;
21415 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21416 ;
21417 return 0;
21418}
21419_ACEOF
21420rm -f conftest.$ac_objext
21421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21422 (eval $ac_compile) 2>conftest.er1
21423 ac_status=$?
21424 grep -v '^ *+' conftest.er1 >conftest.err
21425 rm -f conftest.er1
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
fb00f58d
JS
21429 { ac_try='test -z "$ac_cxx_werror_flag"
21430 || test ! -s conftest.err'
0a08f02a
MB
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; } &&
21436 { ac_try='test -s conftest.$ac_objext'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21439 ac_status=$?
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; }; then
21442 echo "$as_me:$LINENO: result: yes" >&5
21443echo "${ECHO_T}yes" >&6
21444else
21445 echo "$as_me: failed program was:" >&5
21446sed 's/^/| /' conftest.$ac_ext >&5
21447
21448echo "$as_me:$LINENO: result: no" >&5
21449echo "${ECHO_T}no" >&6
f56c22b4 21450 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21451 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21452echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21453 { (exit 1); exit 1; }; }
21454 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21455 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21456echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21457 { (exit 1); exit 1; }; }
f56c22b4
MW
21458 else
21459 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21460echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21461 wxUSE_STD_STRING=no
21462 fi
21463
0a08f02a 21464
a848cd7e 21465fi
ac1cb8d3 21466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21467
0a08f02a
MB
21468fi
21469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21470
21471 ac_ext=c
21472ac_cpp='$CPP $CPPFLAGS'
21473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21475ac_compiler_gnu=$ac_cv_c_compiler_gnu
21476
21477fi
21478
21479if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21480 ac_ext=cc
21481ac_cpp='$CXXCPP $CPPFLAGS'
21482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21485
21486
21487 echo "$as_me:$LINENO: checking for std::istream" >&5
21488echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21489if test "${ac_cv_type_std__istream+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21491else
21492 cat >conftest.$ac_ext <<_ACEOF
21493/* confdefs.h. */
21494_ACEOF
21495cat confdefs.h >>conftest.$ac_ext
21496cat >>conftest.$ac_ext <<_ACEOF
21497/* end confdefs.h. */
21498#include <iostream>
21499
21500int
21501main ()
21502{
21503if ((std::istream *) 0)
21504 return 0;
21505if (sizeof (std::istream))
21506 return 0;
21507 ;
21508 return 0;
21509}
21510_ACEOF
21511rm -f conftest.$ac_objext
21512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21513 (eval $ac_compile) 2>conftest.er1
21514 ac_status=$?
21515 grep -v '^ *+' conftest.er1 >conftest.err
21516 rm -f conftest.er1
21517 cat conftest.err >&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); } &&
fb00f58d
JS
21520 { ac_try='test -z "$ac_cxx_werror_flag"
21521 || test ! -s conftest.err'
f56c22b4
MW
21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
21524 ac_status=$?
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; } &&
21527 { ac_try='test -s conftest.$ac_objext'
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21530 ac_status=$?
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; }; then
21533 ac_cv_type_std__istream=yes
21534else
21535 echo "$as_me: failed program was:" >&5
21536sed 's/^/| /' conftest.$ac_ext >&5
21537
21538ac_cv_type_std__istream=no
21539fi
21540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21541fi
21542echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21543echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21544if test $ac_cv_type_std__istream = yes; then
21545
21546cat >>confdefs.h <<_ACEOF
21547#define HAVE_STD__ISTREAM 1
21548_ACEOF
21549
21550
21551else
21552 wxUSE_STD_IOSTREAM=no
21553fi
21554echo "$as_me:$LINENO: checking for std::ostream" >&5
21555echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21556if test "${ac_cv_type_std__ostream+set}" = set; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21558else
21559 cat >conftest.$ac_ext <<_ACEOF
21560/* confdefs.h. */
21561_ACEOF
21562cat confdefs.h >>conftest.$ac_ext
21563cat >>conftest.$ac_ext <<_ACEOF
21564/* end confdefs.h. */
21565#include <iostream>
21566
21567int
21568main ()
21569{
21570if ((std::ostream *) 0)
21571 return 0;
21572if (sizeof (std::ostream))
21573 return 0;
21574 ;
21575 return 0;
21576}
21577_ACEOF
21578rm -f conftest.$ac_objext
21579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21580 (eval $ac_compile) 2>conftest.er1
21581 ac_status=$?
21582 grep -v '^ *+' conftest.er1 >conftest.err
21583 rm -f conftest.er1
21584 cat conftest.err >&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } &&
fb00f58d
JS
21587 { ac_try='test -z "$ac_cxx_werror_flag"
21588 || test ! -s conftest.err'
f56c22b4
MW
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21591 ac_status=$?
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; } &&
21594 { ac_try='test -s conftest.$ac_objext'
21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596 (eval $ac_try) 2>&5
21597 ac_status=$?
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; }; then
21600 ac_cv_type_std__ostream=yes
21601else
21602 echo "$as_me: failed program was:" >&5
21603sed 's/^/| /' conftest.$ac_ext >&5
21604
21605ac_cv_type_std__ostream=no
21606fi
21607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21608fi
21609echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21610echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21611if test $ac_cv_type_std__ostream = yes; then
21612
21613cat >>confdefs.h <<_ACEOF
21614#define HAVE_STD__OSTREAM 1
21615_ACEOF
21616
21617
21618else
21619 wxUSE_STD_IOSTREAM=no
21620fi
21621
21622
21623 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21624 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21625 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21626echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21627 { (exit 1); exit 1; }; }
21628 else
21629 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21630echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21631 fi
f56c22b4
MW
21632 fi
21633
21634 ac_ext=c
21635ac_cpp='$CPP $CPPFLAGS'
21636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21638ac_compiler_gnu=$ac_cv_c_compiler_gnu
21639
21640fi
21641
21642if test "$wxUSE_STL" = "yes"; then
21643 ac_ext=cc
21644ac_cpp='$CXXCPP $CPPFLAGS'
21645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21648
21649
21650 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21651echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21652 cat >conftest.$ac_ext <<_ACEOF
21653/* confdefs.h. */
21654_ACEOF
21655cat confdefs.h >>conftest.$ac_ext
21656cat >>conftest.$ac_ext <<_ACEOF
21657/* end confdefs.h. */
21658#include <string>
0a08f02a
MB
21659 #include <functional>
21660 #include <algorithm>
21661 #include <vector>
21662 #include <list>
a848cd7e
SC
21663int
21664main ()
21665{
0a08f02a
MB
21666std::vector<int> moo;
21667 std::list<int> foo;
21668 std::vector<int>::iterator it =
21669 std::find_if(moo.begin(), moo.end(),
21670 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21671 ;
21672 return 0;
21673}
21674_ACEOF
21675rm -f conftest.$ac_objext
21676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21677 (eval $ac_compile) 2>conftest.er1
a848cd7e 21678 ac_status=$?
ac1cb8d3
VS
21679 grep -v '^ *+' conftest.er1 >conftest.err
21680 rm -f conftest.er1
21681 cat conftest.err >&5
a848cd7e
SC
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); } &&
fb00f58d
JS
21684 { ac_try='test -z "$ac_cxx_werror_flag"
21685 || test ! -s conftest.err'
ac1cb8d3
VS
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; } &&
21691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21694 ac_status=$?
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; }; then
21697 echo "$as_me:$LINENO: result: yes" >&5
21698echo "${ECHO_T}yes" >&6
a848cd7e
SC
21699else
21700 echo "$as_me: failed program was:" >&5
21701sed 's/^/| /' conftest.$ac_ext >&5
21702
21703echo "$as_me:$LINENO: result: no" >&5
21704echo "${ECHO_T}no" >&6
0a08f02a
MB
21705 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21706echo "$as_me: error: Basic STL functionality missing" >&2;}
21707 { (exit 1); exit 1; }; }
a848cd7e 21708fi
ac1cb8d3 21709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21710
21711 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21712echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21713 cat >conftest.$ac_ext <<_ACEOF
21714/* confdefs.h. */
21715_ACEOF
21716cat confdefs.h >>conftest.$ac_ext
21717cat >>conftest.$ac_ext <<_ACEOF
21718/* end confdefs.h. */
21719#include <string>
21720int
21721main ()
21722{
21723std::string foo, bar;
21724 foo.compare(bar);
21725 foo.compare(1, 1, bar);
21726 foo.compare(1, 1, bar, 1, 1);
21727 foo.compare("");
21728 foo.compare(1, 1, "");
21729 foo.compare(1, 1, "", 2);
21730 ;
21731 return 0;
21732}
21733_ACEOF
21734rm -f conftest.$ac_objext
21735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21736 (eval $ac_compile) 2>conftest.er1
a848cd7e 21737 ac_status=$?
ac1cb8d3
VS
21738 grep -v '^ *+' conftest.er1 >conftest.err
21739 rm -f conftest.er1
21740 cat conftest.err >&5
a848cd7e
SC
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } &&
fb00f58d
JS
21743 { ac_try='test -z "$ac_cxx_werror_flag"
21744 || test ! -s conftest.err'
ac1cb8d3
VS
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; } &&
21750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752 (eval $ac_try) 2>&5
21753 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; }; then
21756 echo "$as_me:$LINENO: result: yes" >&5
21757echo "${ECHO_T}yes" >&6
21758 cat >>confdefs.h <<\_ACEOF
21759#define HAVE_STD_STRING_COMPARE 1
21760_ACEOF
21761
21762else
21763 echo "$as_me: failed program was:" >&5
21764sed 's/^/| /' conftest.$ac_ext >&5
21765
21766echo "$as_me:$LINENO: result: no" >&5
21767echo "${ECHO_T}no" >&6
21768fi
ac1cb8d3 21769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21770
21771 if test "${ac_cv_header_hash_map+set}" = set; then
21772 echo "$as_me:$LINENO: checking for hash_map" >&5
21773echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21774if test "${ac_cv_header_hash_map+set}" = set; then
21775 echo $ECHO_N "(cached) $ECHO_C" >&6
21776fi
21777echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21778echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21779else
21780 # Is the header compilable?
21781echo "$as_me:$LINENO: checking hash_map usability" >&5
21782echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21783cat >conftest.$ac_ext <<_ACEOF
21784/* confdefs.h. */
21785_ACEOF
21786cat confdefs.h >>conftest.$ac_ext
21787cat >>conftest.$ac_ext <<_ACEOF
21788/* end confdefs.h. */
21789$ac_includes_default
21790#include <hash_map>
21791_ACEOF
21792rm -f conftest.$ac_objext
21793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21794 (eval $ac_compile) 2>conftest.er1
bdcade0a 21795 ac_status=$?
ac1cb8d3
VS
21796 grep -v '^ *+' conftest.er1 >conftest.err
21797 rm -f conftest.er1
21798 cat conftest.err >&5
bdcade0a
MB
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } &&
fb00f58d
JS
21801 { ac_try='test -z "$ac_cxx_werror_flag"
21802 || test ! -s conftest.err'
ac1cb8d3
VS
21803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804 (eval $ac_try) 2>&5
21805 ac_status=$?
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; } &&
21808 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21811 ac_status=$?
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; }; then
21814 ac_header_compiler=yes
21815else
21816 echo "$as_me: failed program was:" >&5
21817sed 's/^/| /' conftest.$ac_ext >&5
21818
21819ac_header_compiler=no
21820fi
ac1cb8d3 21821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21822echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21823echo "${ECHO_T}$ac_header_compiler" >&6
21824
21825# Is the header present?
21826echo "$as_me:$LINENO: checking hash_map presence" >&5
21827echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21828cat >conftest.$ac_ext <<_ACEOF
21829/* confdefs.h. */
21830_ACEOF
21831cat confdefs.h >>conftest.$ac_ext
21832cat >>conftest.$ac_ext <<_ACEOF
21833/* end confdefs.h. */
21834#include <hash_map>
21835_ACEOF
21836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21838 ac_status=$?
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } >/dev/null; then
21844 if test -s conftest.err; then
21845 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21846 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21847 else
21848 ac_cpp_err=
21849 fi
21850else
21851 ac_cpp_err=yes
21852fi
21853if test -z "$ac_cpp_err"; then
21854 ac_header_preproc=yes
21855else
21856 echo "$as_me: failed program was:" >&5
21857sed 's/^/| /' conftest.$ac_ext >&5
21858
21859 ac_header_preproc=no
21860fi
21861rm -f conftest.err conftest.$ac_ext
21862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21863echo "${ECHO_T}$ac_header_preproc" >&6
21864
21865# So? What about this header?
ac1cb8d3
VS
21866case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21867 yes:no: )
bdcade0a
MB
21868 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21869echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21870 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21871echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21872 ac_header_preproc=yes
bdcade0a 21873 ;;
ac1cb8d3 21874 no:yes:* )
bdcade0a
MB
21875 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21876echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21877 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21878echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21880echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21882echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21883 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21884echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21885 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21886echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21887 (
21888 cat <<\_ASBOX
ac1cb8d3
VS
21889## ----------------------------------------- ##
21890## Report this to wx-dev@lists.wxwidgets.org ##
21891## ----------------------------------------- ##
bdcade0a
MB
21892_ASBOX
21893 ) |
21894 sed "s/^/$as_me: WARNING: /" >&2
21895 ;;
21896esac
21897echo "$as_me:$LINENO: checking for hash_map" >&5
21898echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21899if test "${ac_cv_header_hash_map+set}" = set; then
21900 echo $ECHO_N "(cached) $ECHO_C" >&6
21901else
21902 ac_cv_header_hash_map=$ac_header_preproc
21903fi
21904echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21905echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21906
21907fi
21908if test $ac_cv_header_hash_map = yes; then
21909 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21910echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21911 cat >conftest.$ac_ext <<_ACEOF
21912/* confdefs.h. */
21913_ACEOF
21914cat confdefs.h >>conftest.$ac_ext
21915cat >>conftest.$ac_ext <<_ACEOF
21916/* end confdefs.h. */
21917#include <hash_map>
21918 #include <hash_set>
21919int
21920main ()
21921{
21922std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21923 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21924 ;
21925 return 0;
21926}
21927_ACEOF
21928rm -f conftest.$ac_objext
21929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21930 (eval $ac_compile) 2>conftest.er1
bdcade0a 21931 ac_status=$?
ac1cb8d3
VS
21932 grep -v '^ *+' conftest.er1 >conftest.err
21933 rm -f conftest.er1
21934 cat conftest.err >&5
bdcade0a
MB
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); } &&
fb00f58d
JS
21937 { ac_try='test -z "$ac_cxx_werror_flag"
21938 || test ! -s conftest.err'
ac1cb8d3
VS
21939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940 (eval $ac_try) 2>&5
21941 ac_status=$?
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); }; } &&
21944 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21946 (eval $ac_try) 2>&5
21947 ac_status=$?
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); }; }; then
21950 echo "$as_me:$LINENO: result: yes" >&5
21951echo "${ECHO_T}yes" >&6
21952 cat >>confdefs.h <<\_ACEOF
21953#define HAVE_HASH_MAP 1
21954_ACEOF
21955
21956 cat >>confdefs.h <<\_ACEOF
21957#define HAVE_STD_HASH_MAP 1
21958_ACEOF
21959
21960else
21961 echo "$as_me: failed program was:" >&5
21962sed 's/^/| /' conftest.$ac_ext >&5
21963
21964echo "$as_me:$LINENO: result: no" >&5
21965echo "${ECHO_T}no" >&6
21966fi
ac1cb8d3 21967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21968
21969fi
21970
21971
21972
21973 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21974 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21975echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21976if test "${ac_cv_header_ext_hash_map+set}" = set; then
21977 echo $ECHO_N "(cached) $ECHO_C" >&6
21978fi
21979echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21980echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21981else
21982 # Is the header compilable?
21983echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21984echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21985cat >conftest.$ac_ext <<_ACEOF
21986/* confdefs.h. */
21987_ACEOF
21988cat confdefs.h >>conftest.$ac_ext
21989cat >>conftest.$ac_ext <<_ACEOF
21990/* end confdefs.h. */
21991$ac_includes_default
21992#include <ext/hash_map>
21993_ACEOF
21994rm -f conftest.$ac_objext
21995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21996 (eval $ac_compile) 2>conftest.er1
bdcade0a 21997 ac_status=$?
ac1cb8d3
VS
21998 grep -v '^ *+' conftest.er1 >conftest.err
21999 rm -f conftest.er1
22000 cat conftest.err >&5
bdcade0a
MB
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } &&
fb00f58d
JS
22003 { ac_try='test -z "$ac_cxx_werror_flag"
22004 || test ! -s conftest.err'
ac1cb8d3
VS
22005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; } &&
22010 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012 (eval $ac_try) 2>&5
22013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; }; then
22016 ac_header_compiler=yes
22017else
22018 echo "$as_me: failed program was:" >&5
22019sed 's/^/| /' conftest.$ac_ext >&5
22020
22021ac_header_compiler=no
22022fi
ac1cb8d3 22023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22024echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22025echo "${ECHO_T}$ac_header_compiler" >&6
22026
22027# Is the header present?
22028echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22029echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22030cat >conftest.$ac_ext <<_ACEOF
22031/* confdefs.h. */
22032_ACEOF
22033cat confdefs.h >>conftest.$ac_ext
22034cat >>conftest.$ac_ext <<_ACEOF
22035/* end confdefs.h. */
22036#include <ext/hash_map>
22037_ACEOF
22038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22040 ac_status=$?
22041 grep -v '^ *+' conftest.er1 >conftest.err
22042 rm -f conftest.er1
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } >/dev/null; then
22046 if test -s conftest.err; then
22047 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22048 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22049 else
22050 ac_cpp_err=
22051 fi
22052else
22053 ac_cpp_err=yes
22054fi
22055if test -z "$ac_cpp_err"; then
22056 ac_header_preproc=yes
22057else
22058 echo "$as_me: failed program was:" >&5
22059sed 's/^/| /' conftest.$ac_ext >&5
22060
22061 ac_header_preproc=no
22062fi
22063rm -f conftest.err conftest.$ac_ext
22064echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22065echo "${ECHO_T}$ac_header_preproc" >&6
22066
22067# So? What about this header?
ac1cb8d3
VS
22068case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22069 yes:no: )
bdcade0a
MB
22070 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22071echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22072 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22073echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22074 ac_header_preproc=yes
bdcade0a 22075 ;;
ac1cb8d3 22076 no:yes:* )
bdcade0a
MB
22077 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22078echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22079 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22080echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22082echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22083 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22084echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22085 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22086echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22087 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22088echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22089 (
22090 cat <<\_ASBOX
ac1cb8d3
VS
22091## ----------------------------------------- ##
22092## Report this to wx-dev@lists.wxwidgets.org ##
22093## ----------------------------------------- ##
bdcade0a
MB
22094_ASBOX
22095 ) |
22096 sed "s/^/$as_me: WARNING: /" >&2
22097 ;;
22098esac
22099echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22100echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22101if test "${ac_cv_header_ext_hash_map+set}" = set; then
22102 echo $ECHO_N "(cached) $ECHO_C" >&6
22103else
22104 ac_cv_header_ext_hash_map=$ac_header_preproc
22105fi
22106echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22107echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22108
22109fi
22110if test $ac_cv_header_ext_hash_map = yes; then
22111 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22112echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22113 cat >conftest.$ac_ext <<_ACEOF
22114/* confdefs.h. */
22115_ACEOF
22116cat confdefs.h >>conftest.$ac_ext
22117cat >>conftest.$ac_ext <<_ACEOF
22118/* end confdefs.h. */
22119#include <ext/hash_map>
22120 #include <ext/hash_set>
22121int
22122main ()
22123{
22124__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22125 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22126 ;
22127 return 0;
22128}
22129_ACEOF
22130rm -f conftest.$ac_objext
22131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22132 (eval $ac_compile) 2>conftest.er1
bdcade0a 22133 ac_status=$?
ac1cb8d3
VS
22134 grep -v '^ *+' conftest.er1 >conftest.err
22135 rm -f conftest.er1
22136 cat conftest.err >&5
bdcade0a
MB
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } &&
fb00f58d
JS
22139 { ac_try='test -z "$ac_cxx_werror_flag"
22140 || test ! -s conftest.err'
ac1cb8d3
VS
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22143 ac_status=$?
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; } &&
22146 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; }; then
22152 echo "$as_me:$LINENO: result: yes" >&5
22153echo "${ECHO_T}yes" >&6
22154 cat >>confdefs.h <<\_ACEOF
22155#define HAVE_EXT_HASH_MAP 1
22156_ACEOF
22157
22158 cat >>confdefs.h <<\_ACEOF
22159#define HAVE_GNU_CXX_HASH_MAP 1
22160_ACEOF
22161
22162else
22163 echo "$as_me: failed program was:" >&5
22164sed 's/^/| /' conftest.$ac_ext >&5
22165
22166echo "$as_me:$LINENO: result: no" >&5
22167echo "${ECHO_T}no" >&6
22168fi
ac1cb8d3 22169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22170
22171fi
22172
22173
a848cd7e
SC
22174
22175 ac_ext=c
22176ac_cpp='$CPP $CPPFLAGS'
22177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22179ac_compiler_gnu=$ac_cv_c_compiler_gnu
22180
22181fi
22182
22183
22184SEARCH_INCLUDE="\
22185 /usr/local/include \
22186 \
22187 /usr/Motif-2.1/include \
22188 /usr/Motif-1.2/include \
22189 /usr/include/Motif1.2 \
22190 /opt/xpm/include/X11 \
22191 /opt/GBxpm/include/ \
22192 /opt/GBxpm/X11/include/ \
22193 \
22194 /usr/dt/include \
22195 /usr/openwin/include \
22196 \
22197 /usr/include/Xm \
22198 \
22199 /usr/X11R6/include \
22200 /usr/X11R6.4/include \
22201 /usr/X11R5/include \
22202 /usr/X11R4/include \
22203 \
22204 /usr/include/X11R6 \
22205 /usr/include/X11R5 \
22206 /usr/include/X11R4 \
22207 \
22208 /usr/local/X11R6/include \
22209 /usr/local/X11R5/include \
22210 /usr/local/X11R4/include \
22211 \
22212 /usr/local/include/X11R6 \
22213 /usr/local/include/X11R5 \
22214 /usr/local/include/X11R4 \
22215 \
22216 /usr/X11/include \
22217 /usr/include/X11 \
22218 /usr/local/X11/include \
22219 /usr/local/include/X11 \
22220 \
22221 /usr/X386/include \
22222 /usr/x386/include \
22223 /usr/XFree86/include/X11 \
22224 \
22225 X:/XFree86/include \
22226 X:/XFree86/include/X11 \
22227 \
22228 /usr/include/gtk \
22229 /usr/local/include/gtk \
22230 /usr/include/glib \
22231 /usr/local/include/glib \
22232 \
22233 /usr/include/qt \
22234 /usr/local/include/qt \
22235 \
22236 /usr/local/arm/3.3.2/include \
22237 \
22238 /usr/include/windows \
22239 /usr/include/wine \
22240 /usr/local/include/wine \
22241 \
22242 /usr/unsupported/include \
22243 /usr/athena/include \
22244 /usr/local/x11r5/include \
22245 /usr/lpp/Xamples/include \
22246 \
22247 /usr/openwin/share/include"
22248
07158944 22249SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
22250
22251
22252cat >confcache <<\_ACEOF
22253# This file is a shell script that caches the results of configure
22254# tests run on this system so they can be shared between configure
22255# scripts and configure runs, see configure's option --config-cache.
22256# It is not useful on other systems. If it contains results you don't
22257# want to keep, you may remove or edit it.
22258#
22259# config.status only pays attention to the cache file if you give it
22260# the --recheck option to rerun configure.
22261#
22262# `ac_cv_env_foo' variables (set or unset) will be overridden when
22263# loading this file, other *unset* `ac_cv_foo' will be assigned the
22264# following values.
22265
22266_ACEOF
22267
22268# The following way of writing the cache mishandles newlines in values,
22269# but we know of no workaround that is simple, portable, and efficient.
22270# So, don't put newlines in cache variables' values.
22271# Ultrix sh set writes to stderr and can't be redirected directly,
22272# and sets the high bit in the cache file unless we assign to the vars.
22273{
22274 (set) 2>&1 |
22275 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22276 *ac_space=\ *)
22277 # `set' does not quote correctly, so add quotes (double-quote
22278 # substitution turns \\\\ into \\, and sed turns \\ into \).
22279 sed -n \
ac1cb8d3
VS
22280 "s/'/'\\\\''/g;
22281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22282 ;;
22283 *)
22284 # `set' quotes correctly as required by POSIX, so do not add quotes.
22285 sed -n \
ac1cb8d3 22286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22287 ;;
22288 esac;
22289} |
22290 sed '
22291 t clear
22292 : clear
22293 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22294 t end
22295 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22296 : end' >>confcache
22297if diff $cache_file confcache >/dev/null 2>&1; then :; else
22298 if test -w $cache_file; then
22299 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22300 cat confcache >$cache_file
22301 else
22302 echo "not updating unwritable cache $cache_file"
22303 fi
22304fi
22305rm -f confcache
22306
22307if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22308 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22309echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22310if test "${wx_cv_lib_glibc21+set}" = set; then
22311 echo $ECHO_N "(cached) $ECHO_C" >&6
22312else
22313
22314 cat >conftest.$ac_ext <<_ACEOF
22315/* confdefs.h. */
22316_ACEOF
22317cat confdefs.h >>conftest.$ac_ext
22318cat >>conftest.$ac_ext <<_ACEOF
22319/* end confdefs.h. */
22320#include <features.h>
22321int
22322main ()
22323{
22324
22325 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22326 #error not glibc2.1
22327 #endif
22328
22329 ;
22330 return 0;
22331}
22332_ACEOF
22333rm -f conftest.$ac_objext
22334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22335 (eval $ac_compile) 2>conftest.er1
a848cd7e 22336 ac_status=$?
ac1cb8d3
VS
22337 grep -v '^ *+' conftest.er1 >conftest.err
22338 rm -f conftest.er1
22339 cat conftest.err >&5
a848cd7e
SC
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); } &&
fb00f58d
JS
22342 { ac_try='test -z "$ac_c_werror_flag"
22343 || test ! -s conftest.err'
ac1cb8d3
VS
22344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345 (eval $ac_try) 2>&5
22346 ac_status=$?
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); }; } &&
22349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22351 (eval $ac_try) 2>&5
22352 ac_status=$?
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); }; }; then
22355
22356 wx_cv_lib_glibc21=yes
22357
22358else
22359 echo "$as_me: failed program was:" >&5
22360sed 's/^/| /' conftest.$ac_ext >&5
22361
22362
22363 wx_cv_lib_glibc21=no
22364
22365
22366fi
ac1cb8d3 22367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22368
22369fi
22370echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22371echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22372 if test "$wx_cv_lib_glibc21" = "yes"; then
22373 cat >>confdefs.h <<\_ACEOF
22374#define wxHAVE_GLIBC2 1
22375_ACEOF
22376
22377 fi
22378fi
22379
22380if test "x$wx_cv_lib_glibc21" = "xyes"; then
22381 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22382 cat >>confdefs.h <<\_ACEOF
22383#define _GNU_SOURCE 1
22384_ACEOF
22385
22386 fi
22387fi
22388
22389
22390
22391if test "$wxUSE_REGEX" != "no"; then
22392 cat >>confdefs.h <<\_ACEOF
22393#define wxUSE_REGEX 1
22394_ACEOF
22395
22396
22397 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22398 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22399echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22400 wxUSE_REGEX=builtin
22401 fi
22402
22403 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22404 if test "${ac_cv_header_regex_h+set}" = set; then
22405 echo "$as_me:$LINENO: checking for regex.h" >&5
22406echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22407if test "${ac_cv_header_regex_h+set}" = set; then
22408 echo $ECHO_N "(cached) $ECHO_C" >&6
22409fi
22410echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22411echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22412else
22413 # Is the header compilable?
22414echo "$as_me:$LINENO: checking regex.h usability" >&5
22415echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22416cat >conftest.$ac_ext <<_ACEOF
22417/* confdefs.h. */
22418_ACEOF
22419cat confdefs.h >>conftest.$ac_ext
22420cat >>conftest.$ac_ext <<_ACEOF
22421/* end confdefs.h. */
22422$ac_includes_default
22423#include <regex.h>
22424_ACEOF
22425rm -f conftest.$ac_objext
22426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22427 (eval $ac_compile) 2>conftest.er1
a848cd7e 22428 ac_status=$?
ac1cb8d3
VS
22429 grep -v '^ *+' conftest.er1 >conftest.err
22430 rm -f conftest.er1
22431 cat conftest.err >&5
a848cd7e
SC
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } &&
fb00f58d
JS
22434 { ac_try='test -z "$ac_c_werror_flag"
22435 || test ! -s conftest.err'
ac1cb8d3
VS
22436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437 (eval $ac_try) 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; } &&
22441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443 (eval $ac_try) 2>&5
22444 ac_status=$?
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); }; }; then
22447 ac_header_compiler=yes
22448else
22449 echo "$as_me: failed program was:" >&5
22450sed 's/^/| /' conftest.$ac_ext >&5
22451
22452ac_header_compiler=no
22453fi
ac1cb8d3 22454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22456echo "${ECHO_T}$ac_header_compiler" >&6
22457
22458# Is the header present?
22459echo "$as_me:$LINENO: checking regex.h presence" >&5
22460echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22461cat >conftest.$ac_ext <<_ACEOF
22462/* confdefs.h. */
22463_ACEOF
22464cat confdefs.h >>conftest.$ac_ext
22465cat >>conftest.$ac_ext <<_ACEOF
22466/* end confdefs.h. */
22467#include <regex.h>
22468_ACEOF
22469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22471 ac_status=$?
22472 grep -v '^ *+' conftest.er1 >conftest.err
22473 rm -f conftest.er1
22474 cat conftest.err >&5
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); } >/dev/null; then
22477 if test -s conftest.err; then
22478 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22480 else
22481 ac_cpp_err=
22482 fi
22483else
22484 ac_cpp_err=yes
22485fi
22486if test -z "$ac_cpp_err"; then
22487 ac_header_preproc=yes
22488else
22489 echo "$as_me: failed program was:" >&5
22490sed 's/^/| /' conftest.$ac_ext >&5
22491
22492 ac_header_preproc=no
22493fi
22494rm -f conftest.err conftest.$ac_ext
22495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22496echo "${ECHO_T}$ac_header_preproc" >&6
22497
22498# So? What about this header?
ac1cb8d3
VS
22499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22500 yes:no: )
a848cd7e
SC
22501 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22502echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22503 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22504echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22505 ac_header_preproc=yes
a848cd7e 22506 ;;
ac1cb8d3 22507 no:yes:* )
a848cd7e
SC
22508 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22509echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22510 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22511echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22512 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22513echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22515echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22516 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22517echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22518 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22519echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22520 (
22521 cat <<\_ASBOX
ac1cb8d3
VS
22522## ----------------------------------------- ##
22523## Report this to wx-dev@lists.wxwidgets.org ##
22524## ----------------------------------------- ##
a848cd7e
SC
22525_ASBOX
22526 ) |
22527 sed "s/^/$as_me: WARNING: /" >&2
22528 ;;
22529esac
22530echo "$as_me:$LINENO: checking for regex.h" >&5
22531echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22532if test "${ac_cv_header_regex_h+set}" = set; then
22533 echo $ECHO_N "(cached) $ECHO_C" >&6
22534else
22535 ac_cv_header_regex_h=$ac_header_preproc
22536fi
22537echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22538echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22539
22540fi
22541if test $ac_cv_header_regex_h = yes; then
22542
22543for ac_func in regcomp
22544do
22545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22546echo "$as_me:$LINENO: checking for $ac_func" >&5
22547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22548if eval "test \"\${$as_ac_var+set}\" = set"; then
22549 echo $ECHO_N "(cached) $ECHO_C" >&6
22550else
22551 cat >conftest.$ac_ext <<_ACEOF
22552/* confdefs.h. */
22553_ACEOF
22554cat confdefs.h >>conftest.$ac_ext
22555cat >>conftest.$ac_ext <<_ACEOF
22556/* end confdefs.h. */
ac1cb8d3
VS
22557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22559#define $ac_func innocuous_$ac_func
22560
a848cd7e
SC
22561/* System header to define __stub macros and hopefully few prototypes,
22562 which can conflict with char $ac_func (); below.
22563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22564 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22565
a848cd7e
SC
22566#ifdef __STDC__
22567# include <limits.h>
22568#else
22569# include <assert.h>
22570#endif
ac1cb8d3
VS
22571
22572#undef $ac_func
22573
a848cd7e
SC
22574/* Override any gcc2 internal prototype to avoid an error. */
22575#ifdef __cplusplus
22576extern "C"
22577{
22578#endif
22579/* We use char because int might match the return type of a gcc2
22580 builtin and then its argument prototype would still apply. */
22581char $ac_func ();
22582/* The GNU C library defines this for functions which it implements
22583 to always fail with ENOSYS. Some functions are actually named
22584 something starting with __ and the normal name is an alias. */
22585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22586choke me
22587#else
22588char (*f) () = $ac_func;
22589#endif
22590#ifdef __cplusplus
22591}
22592#endif
22593
22594int
22595main ()
22596{
22597return f != $ac_func;
22598 ;
22599 return 0;
22600}
22601_ACEOF
22602rm -f conftest.$ac_objext conftest$ac_exeext
22603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22604 (eval $ac_link) 2>conftest.er1
a848cd7e 22605 ac_status=$?
ac1cb8d3
VS
22606 grep -v '^ *+' conftest.er1 >conftest.err
22607 rm -f conftest.er1
22608 cat conftest.err >&5
a848cd7e
SC
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } &&
fb00f58d
JS
22611 { ac_try='test -z "$ac_c_werror_flag"
22612 || test ! -s conftest.err'
ac1cb8d3
VS
22613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614 (eval $ac_try) 2>&5
22615 ac_status=$?
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); }; } &&
22618 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620 (eval $ac_try) 2>&5
22621 ac_status=$?
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; }; then
22624 eval "$as_ac_var=yes"
22625else
22626 echo "$as_me: failed program was:" >&5
22627sed 's/^/| /' conftest.$ac_ext >&5
22628
22629eval "$as_ac_var=no"
22630fi
ac1cb8d3
VS
22631rm -f conftest.err conftest.$ac_objext \
22632 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22633fi
22634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22635echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22636if test `eval echo '${'$as_ac_var'}'` = yes; then
22637 cat >>confdefs.h <<_ACEOF
22638#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22639_ACEOF
22640
22641fi
22642done
22643
22644fi
22645
22646
22647
22648 if test "x$ac_cv_func_regcomp" != "xyes"; then
22649 if test "$wxUSE_REGEX" = "sys" ; then
22650 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22651echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22652 { (exit 1); exit 1; }; }
22653 else
22654 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22655echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22656 wxUSE_REGEX=builtin
22657 fi
22658 else
22659 wxUSE_REGEX=sys
22660 cat >>confdefs.h <<\_ACEOF
22661#define WX_NO_REGEX_ADVANCED 1
22662_ACEOF
22663
22664 fi
22665 fi
22666fi
22667
22668
22669ZLIB_LINK=
22670if test "$wxUSE_ZLIB" != "no" ; then
22671 cat >>confdefs.h <<\_ACEOF
22672#define wxUSE_ZLIB 1
22673_ACEOF
22674
22675
22676 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22677 if test "$USE_DARWIN" = 1; then
22678 system_zlib_h_ok="yes"
22679 else
22680 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22681echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22682if test "${ac_cv_header_zlib_h+set}" = set; then
22683 echo $ECHO_N "(cached) $ECHO_C" >&6
22684else
22685 if test "$cross_compiling" = yes; then
22686 unset ac_cv_header_zlib_h
22687
22688else
22689 cat >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 #include <zlib.h>
22697 #include <stdio.h>
22698
22699 int main()
22700 {
22701 FILE *f=fopen("conftestval", "w");
22702 if (!f) exit(1);
22703 fprintf(f, "%s",
22704 ZLIB_VERSION[0] == '1' &&
22705 (ZLIB_VERSION[2] > '1' ||
22706 (ZLIB_VERSION[2] == '1' &&
22707 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22708 exit(0);
22709 }
22710
22711_ACEOF
22712rm -f conftest$ac_exeext
22713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22714 (eval $ac_link) 2>&5
22715 ac_status=$?
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719 (eval $ac_try) 2>&5
22720 ac_status=$?
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); }; }; then
22723 ac_cv_header_zlib_h=`cat conftestval`
22724else
22725 echo "$as_me: program exited with status $ac_status" >&5
22726echo "$as_me: failed program was:" >&5
22727sed 's/^/| /' conftest.$ac_ext >&5
22728
22729( exit $ac_status )
22730ac_cv_header_zlib_h=no
22731fi
ac1cb8d3 22732rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22733fi
22734
22735fi
22736echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22737echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22738 if test "${ac_cv_header_zlib_h+set}" = set; then
22739 echo "$as_me:$LINENO: checking for zlib.h" >&5
22740echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22741if test "${ac_cv_header_zlib_h+set}" = set; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22743fi
22744echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22745echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22746else
22747 # Is the header compilable?
22748echo "$as_me:$LINENO: checking zlib.h usability" >&5
22749echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22750cat >conftest.$ac_ext <<_ACEOF
22751/* confdefs.h. */
22752_ACEOF
22753cat confdefs.h >>conftest.$ac_ext
22754cat >>conftest.$ac_ext <<_ACEOF
22755/* end confdefs.h. */
22756$ac_includes_default
22757#include <zlib.h>
22758_ACEOF
22759rm -f conftest.$ac_objext
22760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22761 (eval $ac_compile) 2>conftest.er1
a848cd7e 22762 ac_status=$?
ac1cb8d3
VS
22763 grep -v '^ *+' conftest.er1 >conftest.err
22764 rm -f conftest.er1
22765 cat conftest.err >&5
a848cd7e
SC
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); } &&
fb00f58d
JS
22768 { ac_try='test -z "$ac_c_werror_flag"
22769 || test ! -s conftest.err'
ac1cb8d3
VS
22770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22771 (eval $ac_try) 2>&5
22772 ac_status=$?
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); }; } &&
22775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22778 ac_status=$?
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; }; then
22781 ac_header_compiler=yes
22782else
22783 echo "$as_me: failed program was:" >&5
22784sed 's/^/| /' conftest.$ac_ext >&5
22785
22786ac_header_compiler=no
22787fi
ac1cb8d3 22788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22790echo "${ECHO_T}$ac_header_compiler" >&6
22791
22792# Is the header present?
22793echo "$as_me:$LINENO: checking zlib.h presence" >&5
22794echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22795cat >conftest.$ac_ext <<_ACEOF
22796/* confdefs.h. */
22797_ACEOF
22798cat confdefs.h >>conftest.$ac_ext
22799cat >>conftest.$ac_ext <<_ACEOF
22800/* end confdefs.h. */
22801#include <zlib.h>
22802_ACEOF
22803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22805 ac_status=$?
22806 grep -v '^ *+' conftest.er1 >conftest.err
22807 rm -f conftest.er1
22808 cat conftest.err >&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } >/dev/null; then
22811 if test -s conftest.err; then
22812 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22814 else
22815 ac_cpp_err=
22816 fi
22817else
22818 ac_cpp_err=yes
22819fi
22820if test -z "$ac_cpp_err"; then
22821 ac_header_preproc=yes
22822else
22823 echo "$as_me: failed program was:" >&5
22824sed 's/^/| /' conftest.$ac_ext >&5
22825
22826 ac_header_preproc=no
22827fi
22828rm -f conftest.err conftest.$ac_ext
22829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22830echo "${ECHO_T}$ac_header_preproc" >&6
22831
22832# So? What about this header?
ac1cb8d3
VS
22833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22834 yes:no: )
a848cd7e
SC
22835 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22836echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22837 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22838echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22839 ac_header_preproc=yes
a848cd7e 22840 ;;
ac1cb8d3 22841 no:yes:* )
a848cd7e
SC
22842 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22843echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22844 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22845echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22846 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22847echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22848 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22849echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22850 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22851echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22852 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22853echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22854 (
22855 cat <<\_ASBOX
ac1cb8d3
VS
22856## ----------------------------------------- ##
22857## Report this to wx-dev@lists.wxwidgets.org ##
22858## ----------------------------------------- ##
a848cd7e
SC
22859_ASBOX
22860 ) |
22861 sed "s/^/$as_me: WARNING: /" >&2
22862 ;;
22863esac
22864echo "$as_me:$LINENO: checking for zlib.h" >&5
22865echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22866if test "${ac_cv_header_zlib_h+set}" = set; then
22867 echo $ECHO_N "(cached) $ECHO_C" >&6
22868else
22869 ac_cv_header_zlib_h=$ac_header_preproc
22870fi
22871echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22872echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22873
22874fi
22875
22876
22877
22878 system_zlib_h_ok=$ac_cv_header_zlib_h
22879 fi
22880
22881 if test "$system_zlib_h_ok" = "yes"; then
22882 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22883echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22884if test "${ac_cv_lib_z_deflate+set}" = set; then
22885 echo $ECHO_N "(cached) $ECHO_C" >&6
22886else
22887 ac_check_lib_save_LIBS=$LIBS
22888LIBS="-lz $LIBS"
22889cat >conftest.$ac_ext <<_ACEOF
22890/* confdefs.h. */
22891_ACEOF
22892cat confdefs.h >>conftest.$ac_ext
22893cat >>conftest.$ac_ext <<_ACEOF
22894/* end confdefs.h. */
22895
22896/* Override any gcc2 internal prototype to avoid an error. */
22897#ifdef __cplusplus
22898extern "C"
22899#endif
22900/* We use char because int might match the return type of a gcc2
22901 builtin and then its argument prototype would still apply. */
22902char deflate ();
22903int
22904main ()
22905{
22906deflate ();
22907 ;
22908 return 0;
22909}
22910_ACEOF
22911rm -f conftest.$ac_objext conftest$ac_exeext
22912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22913 (eval $ac_link) 2>conftest.er1
a848cd7e 22914 ac_status=$?
ac1cb8d3
VS
22915 grep -v '^ *+' conftest.er1 >conftest.err
22916 rm -f conftest.er1
22917 cat conftest.err >&5
a848cd7e
SC
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); } &&
fb00f58d
JS
22920 { ac_try='test -z "$ac_c_werror_flag"
22921 || test ! -s conftest.err'
ac1cb8d3
VS
22922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22923 (eval $ac_try) 2>&5
22924 ac_status=$?
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); }; } &&
22927 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929 (eval $ac_try) 2>&5
22930 ac_status=$?
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); }; }; then
22933 ac_cv_lib_z_deflate=yes
22934else
22935 echo "$as_me: failed program was:" >&5
22936sed 's/^/| /' conftest.$ac_ext >&5
22937
22938ac_cv_lib_z_deflate=no
22939fi
ac1cb8d3
VS
22940rm -f conftest.err conftest.$ac_objext \
22941 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22942LIBS=$ac_check_lib_save_LIBS
22943fi
22944echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22945echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22946if test $ac_cv_lib_z_deflate = yes; then
22947 ZLIB_LINK=" -lz"
22948fi
22949
22950 fi
22951
22952 if test "x$ZLIB_LINK" = "x" ; then
22953 if test "$wxUSE_ZLIB" = "sys" ; then
22954 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22955echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22956 { (exit 1); exit 1; }; }
22957 else
22958 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22959echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22960 wxUSE_ZLIB=builtin
22961 fi
22962 else
22963 wxUSE_ZLIB=sys
22964 fi
22965 fi
22966fi
22967
22968
22969PNG_LINK=
22970if test "$wxUSE_LIBPNG" != "no" ; then
22971 cat >>confdefs.h <<\_ACEOF
22972#define wxUSE_LIBPNG 1
22973_ACEOF
22974
22975
22976 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22977 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22978echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22979 wxUSE_LIBPNG=sys
22980 fi
22981
22982 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22983 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22984echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22985 wxUSE_LIBPNG=builtin
22986 fi
22987
22988 if test "$wxUSE_MGL" != 1 ; then
22989 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22990 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22991echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22992if test "${ac_cv_header_png_h+set}" = set; then
22993 echo $ECHO_N "(cached) $ECHO_C" >&6
22994else
22995 if test "$cross_compiling" = yes; then
22996 unset ac_cv_header_png_h
22997
22998else
22999 cat >conftest.$ac_ext <<_ACEOF
23000/* confdefs.h. */
23001_ACEOF
23002cat confdefs.h >>conftest.$ac_ext
23003cat >>conftest.$ac_ext <<_ACEOF
23004/* end confdefs.h. */
23005
23006 #include <png.h>
23007 #include <stdio.h>
23008
23009 int main()
23010 {
23011 FILE *f=fopen("conftestval", "w");
23012 if (!f) exit(1);
23013 fprintf(f, "%s",
23014 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23015 exit(0);
23016 }
23017
23018_ACEOF
23019rm -f conftest$ac_exeext
23020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23021 (eval $ac_link) 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026 (eval $ac_try) 2>&5
23027 ac_status=$?
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); }; }; then
23030 ac_cv_header_png_h=`cat conftestval`
23031else
23032 echo "$as_me: program exited with status $ac_status" >&5
23033echo "$as_me: failed program was:" >&5
23034sed 's/^/| /' conftest.$ac_ext >&5
23035
23036( exit $ac_status )
23037ac_cv_header_png_h=no
23038fi
ac1cb8d3 23039rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23040fi
23041
23042fi
23043echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23044echo "${ECHO_T}$ac_cv_header_png_h" >&6
23045 if test "${ac_cv_header_png_h+set}" = set; then
23046 echo "$as_me:$LINENO: checking for png.h" >&5
23047echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23048if test "${ac_cv_header_png_h+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23050fi
23051echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23052echo "${ECHO_T}$ac_cv_header_png_h" >&6
23053else
23054 # Is the header compilable?
23055echo "$as_me:$LINENO: checking png.h usability" >&5
23056echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23057cat >conftest.$ac_ext <<_ACEOF
23058/* confdefs.h. */
23059_ACEOF
23060cat confdefs.h >>conftest.$ac_ext
23061cat >>conftest.$ac_ext <<_ACEOF
23062/* end confdefs.h. */
23063$ac_includes_default
23064#include <png.h>
23065_ACEOF
23066rm -f conftest.$ac_objext
23067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23068 (eval $ac_compile) 2>conftest.er1
a848cd7e 23069 ac_status=$?
ac1cb8d3
VS
23070 grep -v '^ *+' conftest.er1 >conftest.err
23071 rm -f conftest.er1
23072 cat conftest.err >&5
a848cd7e
SC
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
fb00f58d
JS
23075 { ac_try='test -z "$ac_c_werror_flag"
23076 || test ! -s conftest.err'
ac1cb8d3
VS
23077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078 (eval $ac_try) 2>&5
23079 ac_status=$?
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); }; } &&
23082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23084 (eval $ac_try) 2>&5
23085 ac_status=$?
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); }; }; then
23088 ac_header_compiler=yes
23089else
23090 echo "$as_me: failed program was:" >&5
23091sed 's/^/| /' conftest.$ac_ext >&5
23092
23093ac_header_compiler=no
23094fi
ac1cb8d3 23095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23097echo "${ECHO_T}$ac_header_compiler" >&6
23098
23099# Is the header present?
23100echo "$as_me:$LINENO: checking png.h presence" >&5
23101echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23102cat >conftest.$ac_ext <<_ACEOF
23103/* confdefs.h. */
23104_ACEOF
23105cat confdefs.h >>conftest.$ac_ext
23106cat >>conftest.$ac_ext <<_ACEOF
23107/* end confdefs.h. */
23108#include <png.h>
23109_ACEOF
23110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23112 ac_status=$?
23113 grep -v '^ *+' conftest.er1 >conftest.err
23114 rm -f conftest.er1
23115 cat conftest.err >&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); } >/dev/null; then
23118 if test -s conftest.err; then
23119 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23121 else
23122 ac_cpp_err=
23123 fi
23124else
23125 ac_cpp_err=yes
23126fi
23127if test -z "$ac_cpp_err"; then
23128 ac_header_preproc=yes
23129else
23130 echo "$as_me: failed program was:" >&5
23131sed 's/^/| /' conftest.$ac_ext >&5
23132
23133 ac_header_preproc=no
23134fi
23135rm -f conftest.err conftest.$ac_ext
23136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23137echo "${ECHO_T}$ac_header_preproc" >&6
23138
23139# So? What about this header?
ac1cb8d3
VS
23140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23141 yes:no: )
a848cd7e
SC
23142 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23143echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23144 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23145echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23146 ac_header_preproc=yes
a848cd7e 23147 ;;
ac1cb8d3 23148 no:yes:* )
a848cd7e
SC
23149 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23150echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23151 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23152echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23153 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23154echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23155 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23156echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23157 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23158echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23159 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23160echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23161 (
23162 cat <<\_ASBOX
ac1cb8d3
VS
23163## ----------------------------------------- ##
23164## Report this to wx-dev@lists.wxwidgets.org ##
23165## ----------------------------------------- ##
a848cd7e
SC
23166_ASBOX
23167 ) |
23168 sed "s/^/$as_me: WARNING: /" >&2
23169 ;;
23170esac
23171echo "$as_me:$LINENO: checking for png.h" >&5
23172echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23173if test "${ac_cv_header_png_h+set}" = set; then
23174 echo $ECHO_N "(cached) $ECHO_C" >&6
23175else
23176 ac_cv_header_png_h=$ac_header_preproc
23177fi
23178echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23179echo "${ECHO_T}$ac_cv_header_png_h" >&6
23180
23181fi
23182
23183
23184
23185 if test "$ac_cv_header_png_h" = "yes"; then
23186 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23187echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23188if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23190else
23191 ac_check_lib_save_LIBS=$LIBS
23192LIBS="-lpng -lz -lm $LIBS"
23193cat >conftest.$ac_ext <<_ACEOF
23194/* confdefs.h. */
23195_ACEOF
23196cat confdefs.h >>conftest.$ac_ext
23197cat >>conftest.$ac_ext <<_ACEOF
23198/* end confdefs.h. */
23199
23200/* Override any gcc2 internal prototype to avoid an error. */
23201#ifdef __cplusplus
23202extern "C"
23203#endif
23204/* We use char because int might match the return type of a gcc2
23205 builtin and then its argument prototype would still apply. */
23206char png_check_sig ();
23207int
23208main ()
23209{
23210png_check_sig ();
23211 ;
23212 return 0;
23213}
23214_ACEOF
23215rm -f conftest.$ac_objext conftest$ac_exeext
23216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23217 (eval $ac_link) 2>conftest.er1
a848cd7e 23218 ac_status=$?
ac1cb8d3
VS
23219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
a848cd7e
SC
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
fb00f58d
JS
23224 { ac_try='test -z "$ac_c_werror_flag"
23225 || test ! -s conftest.err'
ac1cb8d3
VS
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; } &&
23231 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237 ac_cv_lib_png_png_check_sig=yes
23238else
23239 echo "$as_me: failed program was:" >&5
23240sed 's/^/| /' conftest.$ac_ext >&5
23241
23242ac_cv_lib_png_png_check_sig=no
23243fi
ac1cb8d3
VS
23244rm -f conftest.err conftest.$ac_objext \
23245 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23246LIBS=$ac_check_lib_save_LIBS
23247fi
23248echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23249echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23250if test $ac_cv_lib_png_png_check_sig = yes; then
23251 PNG_LINK=" -lpng -lz"
23252fi
23253
23254 fi
23255
23256 if test "x$PNG_LINK" = "x" ; then
23257 if test "$wxUSE_LIBPNG" = "sys" ; then
23258 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23259echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23260 { (exit 1); exit 1; }; }
23261 else
23262 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23263echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23264 wxUSE_LIBPNG=builtin
23265 fi
23266 else
23267 wxUSE_LIBPNG=sys
23268 fi
23269 fi
23270 fi
23271
23272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23273fi
23274
23275
23276JPEG_LINK=
23277if test "$wxUSE_LIBJPEG" != "no" ; then
23278 cat >>confdefs.h <<\_ACEOF
23279#define wxUSE_LIBJPEG 1
23280_ACEOF
23281
23282
23283 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23284 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23285echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23286 wxUSE_LIBJPEG=sys
23287 fi
23288
23289 if test "$wxUSE_MGL" != 1 ; then
23290 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23291 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23292echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23293 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23295else
23296 cat >conftest.$ac_ext <<_ACEOF
23297/* confdefs.h. */
23298_ACEOF
23299cat confdefs.h >>conftest.$ac_ext
23300cat >>conftest.$ac_ext <<_ACEOF
23301/* end confdefs.h. */
23302
23303 #undef HAVE_STDLIB_H
23304 #include <stdio.h>
23305 #include <jpeglib.h>
23306
23307int
23308main ()
23309{
23310
23311
23312 ;
23313 return 0;
23314}
23315_ACEOF
23316rm -f conftest.$ac_objext
23317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23318 (eval $ac_compile) 2>conftest.er1
a848cd7e 23319 ac_status=$?
ac1cb8d3
VS
23320 grep -v '^ *+' conftest.er1 >conftest.err
23321 rm -f conftest.er1
23322 cat conftest.err >&5
a848cd7e
SC
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); } &&
fb00f58d
JS
23325 { ac_try='test -z "$ac_c_werror_flag"
23326 || test ! -s conftest.err'
ac1cb8d3
VS
23327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23328 (eval $ac_try) 2>&5
23329 ac_status=$?
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); }; } &&
23332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; }; then
23338 ac_cv_header_jpeglib_h=yes
23339else
23340 echo "$as_me: failed program was:" >&5
23341sed 's/^/| /' conftest.$ac_ext >&5
23342
23343ac_cv_header_jpeglib_h=no
23344
23345fi
ac1cb8d3 23346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23347
23348fi
23349
23350 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23351echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23352
23353 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23354 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23355echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23356if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23357 echo $ECHO_N "(cached) $ECHO_C" >&6
23358else
23359 ac_check_lib_save_LIBS=$LIBS
23360LIBS="-ljpeg $LIBS"
23361cat >conftest.$ac_ext <<_ACEOF
23362/* confdefs.h. */
23363_ACEOF
23364cat confdefs.h >>conftest.$ac_ext
23365cat >>conftest.$ac_ext <<_ACEOF
23366/* end confdefs.h. */
23367
23368/* Override any gcc2 internal prototype to avoid an error. */
23369#ifdef __cplusplus
23370extern "C"
23371#endif
23372/* We use char because int might match the return type of a gcc2
23373 builtin and then its argument prototype would still apply. */
23374char jpeg_read_header ();
23375int
23376main ()
23377{
23378jpeg_read_header ();
23379 ;
23380 return 0;
23381}
23382_ACEOF
23383rm -f conftest.$ac_objext conftest$ac_exeext
23384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23385 (eval $ac_link) 2>conftest.er1
a848cd7e 23386 ac_status=$?
ac1cb8d3
VS
23387 grep -v '^ *+' conftest.er1 >conftest.err
23388 rm -f conftest.er1
23389 cat conftest.err >&5
a848cd7e
SC
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); } &&
fb00f58d
JS
23392 { ac_try='test -z "$ac_c_werror_flag"
23393 || test ! -s conftest.err'
ac1cb8d3
VS
23394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395 (eval $ac_try) 2>&5
23396 ac_status=$?
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; } &&
23399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401 (eval $ac_try) 2>&5
23402 ac_status=$?
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); }; }; then
23405 ac_cv_lib_jpeg_jpeg_read_header=yes
23406else
23407 echo "$as_me: failed program was:" >&5
23408sed 's/^/| /' conftest.$ac_ext >&5
23409
23410ac_cv_lib_jpeg_jpeg_read_header=no
23411fi
ac1cb8d3
VS
23412rm -f conftest.err conftest.$ac_objext \
23413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23414LIBS=$ac_check_lib_save_LIBS
23415fi
23416echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23417echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23418if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23419 JPEG_LINK=" -ljpeg"
23420fi
23421
23422 fi
23423
23424 if test "x$JPEG_LINK" = "x" ; then
23425 if test "$wxUSE_LIBJPEG" = "sys" ; then
23426 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23427echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23428 { (exit 1); exit 1; }; }
23429 else
23430 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23431echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23432 wxUSE_LIBJPEG=builtin
23433 fi
23434 else
23435 wxUSE_LIBJPEG=sys
23436 fi
23437 fi
23438 fi
23439fi
23440
23441
23442TIFF_LINK=
23443TIFF_PREREQ_LINKS=-lm
23444if test "$wxUSE_LIBTIFF" != "no" ; then
23445 cat >>confdefs.h <<\_ACEOF
23446#define wxUSE_LIBTIFF 1
23447_ACEOF
23448
23449
23450 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23451 if test "$wxUSE_LIBJPEG" = "sys"; then
23452 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23453 fi
23454 if test "$wxUSE_ZLIB" = "sys"; then
23455 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23456 fi
23457 if test "${ac_cv_header_tiffio_h+set}" = set; then
23458 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23459echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23460if test "${ac_cv_header_tiffio_h+set}" = set; then
23461 echo $ECHO_N "(cached) $ECHO_C" >&6
23462fi
23463echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23464echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23465else
23466 # Is the header compilable?
23467echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23468echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23469cat >conftest.$ac_ext <<_ACEOF
23470/* confdefs.h. */
23471_ACEOF
23472cat confdefs.h >>conftest.$ac_ext
23473cat >>conftest.$ac_ext <<_ACEOF
23474/* end confdefs.h. */
23475$ac_includes_default
23476#include <tiffio.h>
23477_ACEOF
23478rm -f conftest.$ac_objext
23479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23480 (eval $ac_compile) 2>conftest.er1
a848cd7e 23481 ac_status=$?
ac1cb8d3
VS
23482 grep -v '^ *+' conftest.er1 >conftest.err
23483 rm -f conftest.er1
23484 cat conftest.err >&5
a848cd7e
SC
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } &&
fb00f58d
JS
23487 { ac_try='test -z "$ac_c_werror_flag"
23488 || test ! -s conftest.err'
ac1cb8d3
VS
23489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490 (eval $ac_try) 2>&5
23491 ac_status=$?
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); }; } &&
23494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23496 (eval $ac_try) 2>&5
23497 ac_status=$?
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); }; }; then
23500 ac_header_compiler=yes
23501else
23502 echo "$as_me: failed program was:" >&5
23503sed 's/^/| /' conftest.$ac_ext >&5
23504
23505ac_header_compiler=no
23506fi
ac1cb8d3 23507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23508echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23509echo "${ECHO_T}$ac_header_compiler" >&6
23510
23511# Is the header present?
23512echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23513echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23514cat >conftest.$ac_ext <<_ACEOF
23515/* confdefs.h. */
23516_ACEOF
23517cat confdefs.h >>conftest.$ac_ext
23518cat >>conftest.$ac_ext <<_ACEOF
23519/* end confdefs.h. */
23520#include <tiffio.h>
23521_ACEOF
23522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23524 ac_status=$?
23525 grep -v '^ *+' conftest.er1 >conftest.err
23526 rm -f conftest.er1
23527 cat conftest.err >&5
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); } >/dev/null; then
23530 if test -s conftest.err; then
23531 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23533 else
23534 ac_cpp_err=
23535 fi
23536else
23537 ac_cpp_err=yes
23538fi
23539if test -z "$ac_cpp_err"; then
23540 ac_header_preproc=yes
23541else
23542 echo "$as_me: failed program was:" >&5
23543sed 's/^/| /' conftest.$ac_ext >&5
23544
23545 ac_header_preproc=no
23546fi
23547rm -f conftest.err conftest.$ac_ext
23548echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23549echo "${ECHO_T}$ac_header_preproc" >&6
23550
23551# So? What about this header?
ac1cb8d3
VS
23552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23553 yes:no: )
a848cd7e
SC
23554 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23555echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23556 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23557echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23558 ac_header_preproc=yes
a848cd7e 23559 ;;
ac1cb8d3 23560 no:yes:* )
a848cd7e
SC
23561 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23562echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23563 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23564echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23565 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23566echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23567 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23568echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23569 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23570echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23571 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23572echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23573 (
23574 cat <<\_ASBOX
ac1cb8d3
VS
23575## ----------------------------------------- ##
23576## Report this to wx-dev@lists.wxwidgets.org ##
23577## ----------------------------------------- ##
a848cd7e
SC
23578_ASBOX
23579 ) |
23580 sed "s/^/$as_me: WARNING: /" >&2
23581 ;;
23582esac
23583echo "$as_me:$LINENO: checking for tiffio.h" >&5
23584echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23585if test "${ac_cv_header_tiffio_h+set}" = set; then
23586 echo $ECHO_N "(cached) $ECHO_C" >&6
23587else
23588 ac_cv_header_tiffio_h=$ac_header_preproc
23589fi
23590echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23591echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23592
23593fi
23594if test $ac_cv_header_tiffio_h = yes; then
23595
23596 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23597echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23598if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23599 echo $ECHO_N "(cached) $ECHO_C" >&6
23600else
23601 ac_check_lib_save_LIBS=$LIBS
23602LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23603cat >conftest.$ac_ext <<_ACEOF
23604/* confdefs.h. */
23605_ACEOF
23606cat confdefs.h >>conftest.$ac_ext
23607cat >>conftest.$ac_ext <<_ACEOF
23608/* end confdefs.h. */
23609
23610/* Override any gcc2 internal prototype to avoid an error. */
23611#ifdef __cplusplus
23612extern "C"
23613#endif
23614/* We use char because int might match the return type of a gcc2
23615 builtin and then its argument prototype would still apply. */
23616char TIFFError ();
23617int
23618main ()
23619{
23620TIFFError ();
23621 ;
23622 return 0;
23623}
23624_ACEOF
23625rm -f conftest.$ac_objext conftest$ac_exeext
23626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23627 (eval $ac_link) 2>conftest.er1
a848cd7e 23628 ac_status=$?
ac1cb8d3
VS
23629 grep -v '^ *+' conftest.er1 >conftest.err
23630 rm -f conftest.er1
23631 cat conftest.err >&5
a848cd7e
SC
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); } &&
fb00f58d
JS
23634 { ac_try='test -z "$ac_c_werror_flag"
23635 || test ! -s conftest.err'
ac1cb8d3
VS
23636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23637 (eval $ac_try) 2>&5
23638 ac_status=$?
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); }; } &&
23641 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643 (eval $ac_try) 2>&5
23644 ac_status=$?
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; }; then
23647 ac_cv_lib_tiff_TIFFError=yes
23648else
23649 echo "$as_me: failed program was:" >&5
23650sed 's/^/| /' conftest.$ac_ext >&5
23651
23652ac_cv_lib_tiff_TIFFError=no
23653fi
ac1cb8d3
VS
23654rm -f conftest.err conftest.$ac_objext \
23655 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23656LIBS=$ac_check_lib_save_LIBS
23657fi
23658echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23659echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23660if test $ac_cv_lib_tiff_TIFFError = yes; then
23661 TIFF_LINK=" -ltiff"
23662fi
23663
23664
23665
23666fi
23667
23668
23669
23670 if test "x$TIFF_LINK" = "x" ; then
23671 if test "$wxUSE_LIBTIFF" = "sys" ; then
23672 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23673echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23674 { (exit 1); exit 1; }; }
23675 else
23676 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23677echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23678 wxUSE_LIBTIFF=builtin
23679 fi
23680 else
23681 wxUSE_LIBTIFF=sys
23682 fi
23683 fi
23684fi
23685
23686
47a7e797
MW
23687if test "$wxUSE_WCHAR_T" != "yes"; then
23688 if test "$wxUSE_EXPAT" != "no"; then
23689 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23690echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23691 wxUSE_EXPAT=no
23692 fi
23693 if test "$wxUSE_XML" != "no"; then
23694 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23695echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23696 wxUSE_XML=no
23697 fi
23698fi
23699
a848cd7e
SC
23700if test "$wxUSE_EXPAT" != "no"; then
23701 wxUSE_XML=yes
23702 cat >>confdefs.h <<\_ACEOF
23703#define wxUSE_EXPAT 1
23704_ACEOF
23705
23706 cat >>confdefs.h <<\_ACEOF
23707#define wxUSE_XML 1
23708_ACEOF
23709
23710
23711 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23712 if test "${ac_cv_header_expat_h+set}" = set; then
23713 echo "$as_me:$LINENO: checking for expat.h" >&5
23714echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23715if test "${ac_cv_header_expat_h+set}" = set; then
23716 echo $ECHO_N "(cached) $ECHO_C" >&6
23717fi
23718echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23719echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23720else
23721 # Is the header compilable?
23722echo "$as_me:$LINENO: checking expat.h usability" >&5
23723echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23724cat >conftest.$ac_ext <<_ACEOF
23725/* confdefs.h. */
23726_ACEOF
23727cat confdefs.h >>conftest.$ac_ext
23728cat >>conftest.$ac_ext <<_ACEOF
23729/* end confdefs.h. */
23730$ac_includes_default
23731#include <expat.h>
23732_ACEOF
23733rm -f conftest.$ac_objext
23734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23735 (eval $ac_compile) 2>conftest.er1
a848cd7e 23736 ac_status=$?
ac1cb8d3
VS
23737 grep -v '^ *+' conftest.er1 >conftest.err
23738 rm -f conftest.er1
23739 cat conftest.err >&5
a848cd7e
SC
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } &&
fb00f58d
JS
23742 { ac_try='test -z "$ac_c_werror_flag"
23743 || test ! -s conftest.err'
ac1cb8d3
VS
23744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745 (eval $ac_try) 2>&5
23746 ac_status=$?
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; } &&
23749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751 (eval $ac_try) 2>&5
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; }; then
23755 ac_header_compiler=yes
23756else
23757 echo "$as_me: failed program was:" >&5
23758sed 's/^/| /' conftest.$ac_ext >&5
23759
23760ac_header_compiler=no
23761fi
ac1cb8d3 23762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23763echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23764echo "${ECHO_T}$ac_header_compiler" >&6
23765
23766# Is the header present?
23767echo "$as_me:$LINENO: checking expat.h presence" >&5
23768echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23769cat >conftest.$ac_ext <<_ACEOF
23770/* confdefs.h. */
23771_ACEOF
23772cat confdefs.h >>conftest.$ac_ext
23773cat >>conftest.$ac_ext <<_ACEOF
23774/* end confdefs.h. */
23775#include <expat.h>
23776_ACEOF
23777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23779 ac_status=$?
23780 grep -v '^ *+' conftest.er1 >conftest.err
23781 rm -f conftest.er1
23782 cat conftest.err >&5
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); } >/dev/null; then
23785 if test -s conftest.err; then
23786 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23788 else
23789 ac_cpp_err=
23790 fi
23791else
23792 ac_cpp_err=yes
23793fi
23794if test -z "$ac_cpp_err"; then
23795 ac_header_preproc=yes
23796else
23797 echo "$as_me: failed program was:" >&5
23798sed 's/^/| /' conftest.$ac_ext >&5
23799
23800 ac_header_preproc=no
23801fi
23802rm -f conftest.err conftest.$ac_ext
23803echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23804echo "${ECHO_T}$ac_header_preproc" >&6
23805
23806# So? What about this header?
ac1cb8d3
VS
23807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23808 yes:no: )
a848cd7e
SC
23809 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23810echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23811 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23812echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23813 ac_header_preproc=yes
a848cd7e 23814 ;;
ac1cb8d3 23815 no:yes:* )
a848cd7e
SC
23816 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23817echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23818 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23819echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23820 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23821echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23822 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23823echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23824 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23825echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23826 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23827echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23828 (
23829 cat <<\_ASBOX
ac1cb8d3
VS
23830## ----------------------------------------- ##
23831## Report this to wx-dev@lists.wxwidgets.org ##
23832## ----------------------------------------- ##
a848cd7e
SC
23833_ASBOX
23834 ) |
23835 sed "s/^/$as_me: WARNING: /" >&2
23836 ;;
23837esac
23838echo "$as_me:$LINENO: checking for expat.h" >&5
23839echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23840if test "${ac_cv_header_expat_h+set}" = set; then
23841 echo $ECHO_N "(cached) $ECHO_C" >&6
23842else
23843 ac_cv_header_expat_h=$ac_header_preproc
23844fi
23845echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23846echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23847
23848fi
23849if test $ac_cv_header_expat_h = yes; then
23850 found_expat_h=1
23851fi
23852
23853
23854 if test "x$found_expat_h" = "x1"; then
23855 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23856echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23857if test "${wx_cv_expat_is_not_broken+set}" = set; then
23858 echo $ECHO_N "(cached) $ECHO_C" >&6
23859else
23860
23861
23862
23863 ac_ext=cc
23864ac_cpp='$CXXCPP $CPPFLAGS'
23865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23868
23869 cat >conftest.$ac_ext <<_ACEOF
23870/* confdefs.h. */
23871_ACEOF
23872cat confdefs.h >>conftest.$ac_ext
23873cat >>conftest.$ac_ext <<_ACEOF
23874/* end confdefs.h. */
23875#include <expat.h>
23876int
23877main ()
23878{
23879
23880 ;
23881 return 0;
23882}
23883_ACEOF
23884rm -f conftest.$ac_objext
23885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23886 (eval $ac_compile) 2>conftest.er1
a848cd7e 23887 ac_status=$?
ac1cb8d3
VS
23888 grep -v '^ *+' conftest.er1 >conftest.err
23889 rm -f conftest.er1
23890 cat conftest.err >&5
a848cd7e
SC
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } &&
fb00f58d
JS
23893 { ac_try='test -z "$ac_cxx_werror_flag"
23894 || test ! -s conftest.err'
ac1cb8d3
VS
23895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896 (eval $ac_try) 2>&5
23897 ac_status=$?
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); }; } &&
23900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902 (eval $ac_try) 2>&5
23903 ac_status=$?
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); }; }; then
23906 wx_cv_expat_is_not_broken=yes
23907else
23908 echo "$as_me: failed program was:" >&5
23909sed 's/^/| /' conftest.$ac_ext >&5
23910
23911wx_cv_expat_is_not_broken=no
23912
23913fi
ac1cb8d3 23914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23915 ac_ext=c
23916ac_cpp='$CPP $CPPFLAGS'
23917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23919ac_compiler_gnu=$ac_cv_c_compiler_gnu
23920
23921
23922
23923fi
23924echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23925echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23926 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23927 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23928echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23929if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23931else
23932 ac_check_lib_save_LIBS=$LIBS
23933LIBS="-lexpat $LIBS"
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
23941/* Override any gcc2 internal prototype to avoid an error. */
23942#ifdef __cplusplus
23943extern "C"
23944#endif
23945/* We use char because int might match the return type of a gcc2
23946 builtin and then its argument prototype would still apply. */
23947char XML_ParserCreate ();
23948int
23949main ()
23950{
23951XML_ParserCreate ();
23952 ;
23953 return 0;
23954}
23955_ACEOF
23956rm -f conftest.$ac_objext conftest$ac_exeext
23957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23958 (eval $ac_link) 2>conftest.er1
a848cd7e 23959 ac_status=$?
ac1cb8d3
VS
23960 grep -v '^ *+' conftest.er1 >conftest.err
23961 rm -f conftest.er1
23962 cat conftest.err >&5
a848cd7e
SC
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } &&
fb00f58d
JS
23965 { ac_try='test -z "$ac_c_werror_flag"
23966 || test ! -s conftest.err'
ac1cb8d3
VS
23967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23968 (eval $ac_try) 2>&5
23969 ac_status=$?
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); }; } &&
23972 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23974 (eval $ac_try) 2>&5
23975 ac_status=$?
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); }; }; then
23978 ac_cv_lib_expat_XML_ParserCreate=yes
23979else
23980 echo "$as_me: failed program was:" >&5
23981sed 's/^/| /' conftest.$ac_ext >&5
23982
23983ac_cv_lib_expat_XML_ParserCreate=no
23984fi
ac1cb8d3
VS
23985rm -f conftest.err conftest.$ac_objext \
23986 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23987LIBS=$ac_check_lib_save_LIBS
23988fi
23989echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23990echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23991if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23992 EXPAT_LINK=" -lexpat"
23993fi
23994
23995 fi
23996 fi
23997 if test "x$EXPAT_LINK" = "x" ; then
23998 if test "$wxUSE_EXPAT" = "sys" ; then
23999 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
24000echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24001 { (exit 1); exit 1; }; }
24002 else
24003 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24004echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24005 wxUSE_EXPAT=builtin
24006 fi
24007 else
24008 wxUSE_EXPAT=sys
24009 fi
24010 fi
24011 if test "$wxUSE_EXPAT" = "builtin" ; then
24012
24013
24014subdirs="$subdirs src/expat"
24015
24016 fi
24017fi
24018
24019
24020
24021if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24022 if test "${ac_cv_header_mspack_h+set}" = set; then
24023 echo "$as_me:$LINENO: checking for mspack.h" >&5
24024echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24025if test "${ac_cv_header_mspack_h+set}" = set; then
24026 echo $ECHO_N "(cached) $ECHO_C" >&6
24027fi
24028echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24029echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24030else
24031 # Is the header compilable?
24032echo "$as_me:$LINENO: checking mspack.h usability" >&5
24033echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24034cat >conftest.$ac_ext <<_ACEOF
24035/* confdefs.h. */
24036_ACEOF
24037cat confdefs.h >>conftest.$ac_ext
24038cat >>conftest.$ac_ext <<_ACEOF
24039/* end confdefs.h. */
24040$ac_includes_default
24041#include <mspack.h>
24042_ACEOF
24043rm -f conftest.$ac_objext
24044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24045 (eval $ac_compile) 2>conftest.er1
a848cd7e 24046 ac_status=$?
ac1cb8d3
VS
24047 grep -v '^ *+' conftest.er1 >conftest.err
24048 rm -f conftest.er1
24049 cat conftest.err >&5
a848cd7e
SC
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); } &&
fb00f58d
JS
24052 { ac_try='test -z "$ac_c_werror_flag"
24053 || test ! -s conftest.err'
ac1cb8d3
VS
24054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24055 (eval $ac_try) 2>&5
24056 ac_status=$?
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); }; } &&
24059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24061 (eval $ac_try) 2>&5
24062 ac_status=$?
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); }; }; then
24065 ac_header_compiler=yes
24066else
24067 echo "$as_me: failed program was:" >&5
24068sed 's/^/| /' conftest.$ac_ext >&5
24069
24070ac_header_compiler=no
24071fi
ac1cb8d3 24072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24073echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24074echo "${ECHO_T}$ac_header_compiler" >&6
24075
24076# Is the header present?
24077echo "$as_me:$LINENO: checking mspack.h presence" >&5
24078echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24079cat >conftest.$ac_ext <<_ACEOF
24080/* confdefs.h. */
24081_ACEOF
24082cat confdefs.h >>conftest.$ac_ext
24083cat >>conftest.$ac_ext <<_ACEOF
24084/* end confdefs.h. */
24085#include <mspack.h>
24086_ACEOF
24087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24089 ac_status=$?
24090 grep -v '^ *+' conftest.er1 >conftest.err
24091 rm -f conftest.er1
24092 cat conftest.err >&5
24093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); } >/dev/null; then
24095 if test -s conftest.err; then
24096 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24098 else
24099 ac_cpp_err=
24100 fi
24101else
24102 ac_cpp_err=yes
24103fi
24104if test -z "$ac_cpp_err"; then
24105 ac_header_preproc=yes
24106else
24107 echo "$as_me: failed program was:" >&5
24108sed 's/^/| /' conftest.$ac_ext >&5
24109
24110 ac_header_preproc=no
24111fi
24112rm -f conftest.err conftest.$ac_ext
24113echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24114echo "${ECHO_T}$ac_header_preproc" >&6
24115
24116# So? What about this header?
ac1cb8d3
VS
24117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24118 yes:no: )
a848cd7e
SC
24119 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24120echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24121 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24122echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24123 ac_header_preproc=yes
a848cd7e 24124 ;;
ac1cb8d3 24125 no:yes:* )
a848cd7e
SC
24126 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24127echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24128 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24129echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24130 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24131echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24132 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24133echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24134 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24135echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24136 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24137echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24138 (
24139 cat <<\_ASBOX
ac1cb8d3
VS
24140## ----------------------------------------- ##
24141## Report this to wx-dev@lists.wxwidgets.org ##
24142## ----------------------------------------- ##
a848cd7e
SC
24143_ASBOX
24144 ) |
24145 sed "s/^/$as_me: WARNING: /" >&2
24146 ;;
24147esac
24148echo "$as_me:$LINENO: checking for mspack.h" >&5
24149echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24150if test "${ac_cv_header_mspack_h+set}" = set; then
24151 echo $ECHO_N "(cached) $ECHO_C" >&6
24152else
24153 ac_cv_header_mspack_h=$ac_header_preproc
24154fi
24155echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24156echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24157
24158fi
24159if test $ac_cv_header_mspack_h = yes; then
24160 found_mspack_h=1
24161fi
24162
24163
24164 if test "x$found_mspack_h" = "x1"; then
24165 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24166echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24167if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24168 echo $ECHO_N "(cached) $ECHO_C" >&6
24169else
24170 ac_check_lib_save_LIBS=$LIBS
24171LIBS="-lmspack $LIBS"
24172cat >conftest.$ac_ext <<_ACEOF
24173/* confdefs.h. */
24174_ACEOF
24175cat confdefs.h >>conftest.$ac_ext
24176cat >>conftest.$ac_ext <<_ACEOF
24177/* end confdefs.h. */
24178
24179/* Override any gcc2 internal prototype to avoid an error. */
24180#ifdef __cplusplus
24181extern "C"
24182#endif
24183/* We use char because int might match the return type of a gcc2
24184 builtin and then its argument prototype would still apply. */
24185char mspack_create_chm_decompressor ();
24186int
24187main ()
24188{
24189mspack_create_chm_decompressor ();
24190 ;
24191 return 0;
24192}
24193_ACEOF
24194rm -f conftest.$ac_objext conftest$ac_exeext
24195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24196 (eval $ac_link) 2>conftest.er1
a848cd7e 24197 ac_status=$?
ac1cb8d3
VS
24198 grep -v '^ *+' conftest.er1 >conftest.err
24199 rm -f conftest.er1
24200 cat conftest.err >&5
a848cd7e
SC
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); } &&
fb00f58d
JS
24203 { ac_try='test -z "$ac_c_werror_flag"
24204 || test ! -s conftest.err'
ac1cb8d3
VS
24205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24206 (eval $ac_try) 2>&5
24207 ac_status=$?
24208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209 (exit $ac_status); }; } &&
24210 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24212 (eval $ac_try) 2>&5
24213 ac_status=$?
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); }; }; then
24216 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24217else
24218 echo "$as_me: failed program was:" >&5
24219sed 's/^/| /' conftest.$ac_ext >&5
24220
24221ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24222fi
ac1cb8d3
VS
24223rm -f conftest.err conftest.$ac_objext \
24224 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24225LIBS=$ac_check_lib_save_LIBS
24226fi
24227echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24228echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24229if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24230 MSPACK_LINK=" -lmspack"
24231fi
24232
24233 fi
24234 if test "x$MSPACK_LINK" = "x" ; then
24235 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24236 fi
24237fi
24238
24239if test "$wxUSE_LIBMSPACK" != "no"; then
24240 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24241#define wxUSE_LIBMSPACK 1
24242_ACEOF
24243
a848cd7e
SC
24244fi
24245
24246
24247
24248AFMINSTALL=
24249WIN32INSTALL=
24250
24251TOOLKIT=
24252TOOLKIT_INCLUDE=
24253WIDGET_SET=
24254
24255if test "$USE_WIN32" = 1 ; then
24256
24257for ac_header in w32api.h
24258do
24259as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24260if eval "test \"\${$as_ac_Header+set}\" = set"; then
24261 echo "$as_me:$LINENO: checking for $ac_header" >&5
24262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24263if eval "test \"\${$as_ac_Header+set}\" = set"; then
24264 echo $ECHO_N "(cached) $ECHO_C" >&6
24265fi
24266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24268else
24269 # Is the header compilable?
24270echo "$as_me:$LINENO: checking $ac_header usability" >&5
24271echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24272cat >conftest.$ac_ext <<_ACEOF
24273/* confdefs.h. */
24274_ACEOF
24275cat confdefs.h >>conftest.$ac_ext
24276cat >>conftest.$ac_ext <<_ACEOF
24277/* end confdefs.h. */
24278$ac_includes_default
24279#include <$ac_header>
24280_ACEOF
24281rm -f conftest.$ac_objext
24282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24283 (eval $ac_compile) 2>conftest.er1
a848cd7e 24284 ac_status=$?
ac1cb8d3
VS
24285 grep -v '^ *+' conftest.er1 >conftest.err
24286 rm -f conftest.er1
24287 cat conftest.err >&5
a848cd7e
SC
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } &&
fb00f58d
JS
24290 { ac_try='test -z "$ac_c_werror_flag"
24291 || test ! -s conftest.err'
ac1cb8d3
VS
24292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24293 (eval $ac_try) 2>&5
24294 ac_status=$?
24295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296 (exit $ac_status); }; } &&
24297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24299 (eval $ac_try) 2>&5
24300 ac_status=$?
24301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302 (exit $ac_status); }; }; then
24303 ac_header_compiler=yes
24304else
24305 echo "$as_me: failed program was:" >&5
24306sed 's/^/| /' conftest.$ac_ext >&5
24307
24308ac_header_compiler=no
24309fi
ac1cb8d3 24310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24311echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24312echo "${ECHO_T}$ac_header_compiler" >&6
24313
24314# Is the header present?
24315echo "$as_me:$LINENO: checking $ac_header presence" >&5
24316echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24317cat >conftest.$ac_ext <<_ACEOF
24318/* confdefs.h. */
24319_ACEOF
24320cat confdefs.h >>conftest.$ac_ext
24321cat >>conftest.$ac_ext <<_ACEOF
24322/* end confdefs.h. */
24323#include <$ac_header>
24324_ACEOF
24325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24327 ac_status=$?
24328 grep -v '^ *+' conftest.er1 >conftest.err
24329 rm -f conftest.er1
24330 cat conftest.err >&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } >/dev/null; then
24333 if test -s conftest.err; then
24334 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24336 else
24337 ac_cpp_err=
24338 fi
24339else
24340 ac_cpp_err=yes
24341fi
24342if test -z "$ac_cpp_err"; then
24343 ac_header_preproc=yes
24344else
24345 echo "$as_me: failed program was:" >&5
24346sed 's/^/| /' conftest.$ac_ext >&5
24347
24348 ac_header_preproc=no
24349fi
24350rm -f conftest.err conftest.$ac_ext
24351echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24352echo "${ECHO_T}$ac_header_preproc" >&6
24353
24354# So? What about this header?
ac1cb8d3
VS
24355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24356 yes:no: )
a848cd7e
SC
24357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24358echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24360echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24361 ac_header_preproc=yes
a848cd7e 24362 ;;
ac1cb8d3 24363 no:yes:* )
a848cd7e
SC
24364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24365echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24367echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24369echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24371echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24373echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24375echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24376 (
24377 cat <<\_ASBOX
ac1cb8d3
VS
24378## ----------------------------------------- ##
24379## Report this to wx-dev@lists.wxwidgets.org ##
24380## ----------------------------------------- ##
a848cd7e
SC
24381_ASBOX
24382 ) |
24383 sed "s/^/$as_me: WARNING: /" >&2
24384 ;;
24385esac
24386echo "$as_me:$LINENO: checking for $ac_header" >&5
24387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24388if eval "test \"\${$as_ac_Header+set}\" = set"; then
24389 echo $ECHO_N "(cached) $ECHO_C" >&6
24390else
ac1cb8d3 24391 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24392fi
24393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24395
24396fi
24397if test `eval echo '${'$as_ac_Header'}'` = yes; then
24398 cat >>confdefs.h <<_ACEOF
24399#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24400_ACEOF
24401
24402fi
24403
24404done
24405
24406 if test "${ac_cv_header_windows_h+set}" = set; then
24407 echo "$as_me:$LINENO: checking for windows.h" >&5
24408echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24409if test "${ac_cv_header_windows_h+set}" = set; then
24410 echo $ECHO_N "(cached) $ECHO_C" >&6
24411fi
24412echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24413echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24414else
24415 # Is the header compilable?
24416echo "$as_me:$LINENO: checking windows.h usability" >&5
24417echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24418cat >conftest.$ac_ext <<_ACEOF
24419/* confdefs.h. */
24420_ACEOF
24421cat confdefs.h >>conftest.$ac_ext
24422cat >>conftest.$ac_ext <<_ACEOF
24423/* end confdefs.h. */
24424$ac_includes_default
24425#include <windows.h>
24426_ACEOF
24427rm -f conftest.$ac_objext
24428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24429 (eval $ac_compile) 2>conftest.er1
a848cd7e 24430 ac_status=$?
ac1cb8d3
VS
24431 grep -v '^ *+' conftest.er1 >conftest.err
24432 rm -f conftest.er1
24433 cat conftest.err >&5
a848cd7e
SC
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); } &&
fb00f58d
JS
24436 { ac_try='test -z "$ac_c_werror_flag"
24437 || test ! -s conftest.err'
ac1cb8d3
VS
24438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24439 (eval $ac_try) 2>&5
24440 ac_status=$?
24441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442 (exit $ac_status); }; } &&
24443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24445 (eval $ac_try) 2>&5
24446 ac_status=$?
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); }; }; then
24449 ac_header_compiler=yes
24450else
24451 echo "$as_me: failed program was:" >&5
24452sed 's/^/| /' conftest.$ac_ext >&5
24453
24454ac_header_compiler=no
24455fi
ac1cb8d3 24456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24458echo "${ECHO_T}$ac_header_compiler" >&6
24459
24460# Is the header present?
24461echo "$as_me:$LINENO: checking windows.h presence" >&5
24462echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24463cat >conftest.$ac_ext <<_ACEOF
24464/* confdefs.h. */
24465_ACEOF
24466cat confdefs.h >>conftest.$ac_ext
24467cat >>conftest.$ac_ext <<_ACEOF
24468/* end confdefs.h. */
24469#include <windows.h>
24470_ACEOF
24471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24473 ac_status=$?
24474 grep -v '^ *+' conftest.er1 >conftest.err
24475 rm -f conftest.er1
24476 cat conftest.err >&5
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); } >/dev/null; then
24479 if test -s conftest.err; then
24480 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24482 else
24483 ac_cpp_err=
24484 fi
24485else
24486 ac_cpp_err=yes
24487fi
24488if test -z "$ac_cpp_err"; then
24489 ac_header_preproc=yes
24490else
24491 echo "$as_me: failed program was:" >&5
24492sed 's/^/| /' conftest.$ac_ext >&5
24493
24494 ac_header_preproc=no
24495fi
24496rm -f conftest.err conftest.$ac_ext
24497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24498echo "${ECHO_T}$ac_header_preproc" >&6
24499
24500# So? What about this header?
ac1cb8d3
VS
24501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24502 yes:no: )
a848cd7e
SC
24503 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24504echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24505 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24506echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24507 ac_header_preproc=yes
a848cd7e 24508 ;;
ac1cb8d3 24509 no:yes:* )
a848cd7e
SC
24510 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24511echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24512 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24513echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24514 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24515echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24516 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24517echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24518 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24519echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24520 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24521echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24522 (
24523 cat <<\_ASBOX
ac1cb8d3
VS
24524## ----------------------------------------- ##
24525## Report this to wx-dev@lists.wxwidgets.org ##
24526## ----------------------------------------- ##
a848cd7e
SC
24527_ASBOX
24528 ) |
24529 sed "s/^/$as_me: WARNING: /" >&2
24530 ;;
24531esac
24532echo "$as_me:$LINENO: checking for windows.h" >&5
24533echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24534if test "${ac_cv_header_windows_h+set}" = set; then
24535 echo $ECHO_N "(cached) $ECHO_C" >&6
24536else
24537 ac_cv_header_windows_h=$ac_header_preproc
24538fi
24539echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24540echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24541
24542fi
24543if test $ac_cv_header_windows_h = yes; then
24544 :
24545else
24546
24547 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24548echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24549 { (exit 1); exit 1; }; }
24550
24551fi
24552
24553
24554
24555 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24556
24557 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24558 LIBS="$LIBS -loleacc"
24559 fi
24560
24561 case "${host}" in
24562 *-*-cygwin* )
24563 LIBS="$LIBS -lkernel32 -luser32"
24564 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24565 esac
24566
24567 if test "$wxUSE_ODBC" = "sys" ; then
24568 wxUSE_ODBC = "yes"
24569 fi
24570 if test "$wxUSE_ODBC" = "yes" ; then
24571 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24572 cat >>confdefs.h <<\_ACEOF
24573#define wxUSE_ODBC 1
24574_ACEOF
24575
24576 fi
24577
24578 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24579 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24580
24581 WIN32INSTALL=win32install
24582fi
24583
24584if test "$wxUSE_GUI" = "yes"; then
24585 USE_GUI=1
24586
24587 GUI_TK_LIBRARY=
24588
24589 WXGTK12=
24590 WXGTK127=
24591 WXGTK20=
24592 WXGPE=
24593
207bc66c
RN
24594 if test "$wxUSE_COCOA" = 1 ; then
24595 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24596 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24597echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24598 wxUSE_PRINTING_ARCHITECTURE=no
24599 fi
24600 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24601 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24602echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24603 wxUSE_DRAG_AND_DROP=no
24604 fi
24605 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24606 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24607echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24608 wxUSE_DRAGIMAGE=no
24609 fi
24610 fi
24611
a848cd7e
SC
24612 if test "$wxUSE_MSW" = 1 ; then
24613 TOOLKIT=MSW
24614 GUIDIST=MSW_DIST
24615
ceec2216 24616 case "${host}" in
a848cd7e
SC
24617 *-*-mingw32* )
24618 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24619 esac
24620 fi
24621
24622 if test "$wxUSE_GTK" = 1; then
24623 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24624echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24625
24626 gtk_version_cached=1
24627 if test "${wx_cv_lib_gtk+set}" = set; then
24628 echo $ECHO_N "(cached) $ECHO_C" >&6
24629else
24630
24631 gtk_version_cached=0
24632 echo "$as_me:$LINENO: result: " >&5
24633echo "${ECHO_T}" >&6
24634
24635 GTK_MODULES=
24636 if test "$wxUSE_THREADS" = "yes"; then
24637 GTK_MODULES=gthread
24638 fi
24639
f597b41c 24640 wx_cv_lib_gtk=
f34ca037 24641 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24642 # Check whether --enable-gtktest or --disable-gtktest was given.
24643if test "${enable_gtktest+set}" = set; then
24644 enableval="$enable_gtktest"
24645
24646else
24647 enable_gtktest=yes
24648fi;
24649
24650 pkg_config_args=gtk+-2.0
24651 for module in . $GTK_MODULES
24652 do
24653 case "$module" in
24654 gthread)
24655 pkg_config_args="$pkg_config_args gthread-2.0"
24656 ;;
24657 esac
24658 done
24659
24660 no_gtk=""
24661
24662 # Extract the first word of "pkg-config", so it can be a program name with args.
24663set dummy pkg-config; ac_word=$2
24664echo "$as_me:$LINENO: checking for $ac_word" >&5
24665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24666if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24667 echo $ECHO_N "(cached) $ECHO_C" >&6
24668else
24669 case $PKG_CONFIG in
24670 [\\/]* | ?:[\\/]*)
24671 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24672 ;;
24673 *)
24674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24675for as_dir in $PATH
24676do
24677 IFS=$as_save_IFS
24678 test -z "$as_dir" && as_dir=.
24679 for ac_exec_ext in '' $ac_executable_extensions; do
24680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24681 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24683 break 2
24684 fi
24685done
24686done
24687
24688 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24689 ;;
24690esac
24691fi
24692PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24693
24694if test -n "$PKG_CONFIG"; then
24695 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24696echo "${ECHO_T}$PKG_CONFIG" >&6
24697else
24698 echo "$as_me:$LINENO: result: no" >&5
24699echo "${ECHO_T}no" >&6
24700fi
24701
24702
24703 if test x$PKG_CONFIG != xno ; then
24704 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24705 :
24706 else
c2218763 24707 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24708 no_gtk=yes
24709 PKG_CONFIG=no
24710 fi
24711 else
24712 no_gtk=yes
24713 fi
24714
24715 min_gtk_version=2.0.0
24716 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24717echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24718
24719 if test x$PKG_CONFIG != xno ; then
24720 ## don't try to run the test against uninstalled libtool libs
24721 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24722 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24723 enable_gtktest=no
24724 fi
24725
24726 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24727 :
24728 else
24729 no_gtk=yes
24730 fi
24731 fi
24732
24733 if test x"$no_gtk" = x ; then
24734 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24735 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24736 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24737 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24738 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24739 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24740 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24741 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24742 if test "x$enable_gtktest" = "xyes" ; then
24743 ac_save_CFLAGS="$CFLAGS"
24744 ac_save_LIBS="$LIBS"
24745 CFLAGS="$CFLAGS $GTK_CFLAGS"
24746 LIBS="$GTK_LIBS $LIBS"
24747 rm -f conf.gtktest
24748 if test "$cross_compiling" = yes; then
24749 echo $ac_n "cross compiling; assumed OK... $ac_c"
24750else
24751 cat >conftest.$ac_ext <<_ACEOF
24752/* confdefs.h. */
24753_ACEOF
24754cat confdefs.h >>conftest.$ac_ext
24755cat >>conftest.$ac_ext <<_ACEOF
24756/* end confdefs.h. */
24757
24758#include <gtk/gtk.h>
24759#include <stdio.h>
24760#include <stdlib.h>
24761
24762int
24763main ()
24764{
24765 int major, minor, micro;
24766 char *tmp_version;
24767
24768 system ("touch conf.gtktest");
24769
24770 /* HP/UX 9 (%@#!) writes to sscanf strings */
24771 tmp_version = g_strdup("$min_gtk_version");
24772 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24773 printf("%s, bad version string\n", "$min_gtk_version");
24774 exit(1);
24775 }
24776
24777 if ((gtk_major_version != $gtk_config_major_version) ||
24778 (gtk_minor_version != $gtk_config_minor_version) ||
24779 (gtk_micro_version != $gtk_config_micro_version))
24780 {
24781 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24782 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24783 gtk_major_version, gtk_minor_version, gtk_micro_version);
24784 printf ("*** was found! If pkg-config was correct, then it is best\n");
24785 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24786 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24787 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24788 printf("*** required on your system.\n");
24789 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24790 printf("*** to point to the correct configuration files\n");
24791 }
24792 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24793 (gtk_minor_version != GTK_MINOR_VERSION) ||
24794 (gtk_micro_version != GTK_MICRO_VERSION))
24795 {
24796 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24797 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24798 printf("*** library (version %d.%d.%d)\n",
24799 gtk_major_version, gtk_minor_version, gtk_micro_version);
24800 }
24801 else
24802 {
24803 if ((gtk_major_version > major) ||
24804 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24805 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24806 {
24807 return 0;
24808 }
24809 else
24810 {
24811 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24812 gtk_major_version, gtk_minor_version, gtk_micro_version);
24813 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24814 major, minor, micro);
24815 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24816 printf("***\n");
24817 printf("*** If you have already installed a sufficiently new version, this error\n");
24818 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24819 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24820 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24821 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24822 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24823 printf("*** so that the correct libraries are found at run-time))\n");
24824 }
24825 }
24826 return 1;
24827}
24828
24829_ACEOF
24830rm -f conftest$ac_exeext
24831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24832 (eval $ac_link) 2>&5
24833 ac_status=$?
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24837 (eval $ac_try) 2>&5
24838 ac_status=$?
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); }; }; then
24841 :
24842else
24843 echo "$as_me: program exited with status $ac_status" >&5
24844echo "$as_me: failed program was:" >&5
24845sed 's/^/| /' conftest.$ac_ext >&5
24846
24847( exit $ac_status )
24848no_gtk=yes
24849fi
ac1cb8d3 24850rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24851fi
24852 CFLAGS="$ac_save_CFLAGS"
24853 LIBS="$ac_save_LIBS"
24854 fi
24855 fi
24856 if test "x$no_gtk" = x ; then
24857 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24858echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24859 wx_cv_lib_gtk=2.0
24860 else
24861 echo "$as_me:$LINENO: result: no" >&5
24862echo "${ECHO_T}no" >&6
24863 if test "$PKG_CONFIG" = "no" ; then
24864 echo "*** A new enough version of pkg-config was not found."
24865 echo "*** See http://pkgconfig.sourceforge.net"
24866 else
24867 if test -f conf.gtktest ; then
24868 :
24869 else
24870 echo "*** Could not run GTK+ test program, checking why..."
24871 ac_save_CFLAGS="$CFLAGS"
24872 ac_save_LIBS="$LIBS"
24873 CFLAGS="$CFLAGS $GTK_CFLAGS"
24874 LIBS="$LIBS $GTK_LIBS"
24875 cat >conftest.$ac_ext <<_ACEOF
24876/* confdefs.h. */
24877_ACEOF
24878cat confdefs.h >>conftest.$ac_ext
24879cat >>conftest.$ac_ext <<_ACEOF
24880/* end confdefs.h. */
24881
24882#include <gtk/gtk.h>
24883#include <stdio.h>
24884
24885int
24886main ()
24887{
24888 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24889 ;
24890 return 0;
24891}
24892_ACEOF
24893rm -f conftest.$ac_objext conftest$ac_exeext
24894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24895 (eval $ac_link) 2>conftest.er1
a848cd7e 24896 ac_status=$?
ac1cb8d3
VS
24897 grep -v '^ *+' conftest.er1 >conftest.err
24898 rm -f conftest.er1
24899 cat conftest.err >&5
a848cd7e
SC
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } &&
fb00f58d
JS
24902 { ac_try='test -z "$ac_c_werror_flag"
24903 || test ! -s conftest.err'
ac1cb8d3
VS
24904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905 (eval $ac_try) 2>&5
24906 ac_status=$?
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); }; } &&
24909 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911 (eval $ac_try) 2>&5
24912 ac_status=$?
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); }; }; then
24915 echo "*** The test program compiled, but did not run. This usually means"
24916 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24917 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24918 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24919 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24920 echo "*** is required on your system"
24921 echo "***"
24922 echo "*** If you have an old version installed, it is best to remove it, although"
24923 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24924else
24925 echo "$as_me: failed program was:" >&5
24926sed 's/^/| /' conftest.$ac_ext >&5
24927
24928 echo "*** The test program failed to compile or link. See the file config.log for the"
24929 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24930fi
ac1cb8d3
VS
24931rm -f conftest.err conftest.$ac_objext \
24932 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24933 CFLAGS="$ac_save_CFLAGS"
24934 LIBS="$ac_save_LIBS"
24935 fi
24936 fi
24937 GTK_CFLAGS=""
24938 GTK_LIBS=""
24939 :
24940 fi
24941
24942
24943 rm -f conf.gtktest
24944
f597b41c
MW
24945 fi
24946
f34ca037
MW
24947 if test -z "$wx_cv_lib_gtk"; then
24948 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24949
24950# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24951if test "${with_gtk_prefix+set}" = set; then
24952 withval="$with_gtk_prefix"
24953 gtk_config_prefix="$withval"
24954else
24955 gtk_config_prefix=""
24956fi;
24957
24958# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24959if test "${with_gtk_exec_prefix+set}" = set; then
24960 withval="$with_gtk_exec_prefix"
24961 gtk_config_exec_prefix="$withval"
24962else
24963 gtk_config_exec_prefix=""
24964fi;
24965# Check whether --enable-gtktest or --disable-gtktest was given.
24966if test "${enable_gtktest+set}" = set; then
24967 enableval="$enable_gtktest"
24968
24969else
24970 enable_gtktest=yes
24971fi;
24972
24973 for module in . $GTK_MODULES
24974 do
24975 case "$module" in
24976 gthread)
24977 gtk_config_args="$gtk_config_args gthread"
24978 ;;
24979 esac
24980 done
24981
24982 if test x$gtk_config_exec_prefix != x ; then
24983 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24984 if test x${GTK_CONFIG+set} != xset ; then
24985 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24986 fi
24987 fi
24988 if test x$gtk_config_prefix != x ; then
24989 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24990 if test x${GTK_CONFIG+set} != xset ; then
24991 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24992 fi
24993 fi
24994
24995 # Extract the first word of "gtk-config", so it can be a program name with args.
24996set dummy gtk-config; ac_word=$2
24997echo "$as_me:$LINENO: checking for $ac_word" >&5
24998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24999if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25000 echo $ECHO_N "(cached) $ECHO_C" >&6
25001else
25002 case $GTK_CONFIG in
25003 [\\/]* | ?:[\\/]*)
25004 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25005 ;;
25006 *)
25007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25008for as_dir in $PATH
25009do
25010 IFS=$as_save_IFS
25011 test -z "$as_dir" && as_dir=.
25012 for ac_exec_ext in '' $ac_executable_extensions; do
25013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25014 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25016 break 2
25017 fi
25018done
25019done
25020
25021 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25022 ;;
25023esac
25024fi
25025GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25026
25027if test -n "$GTK_CONFIG"; then
25028 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25029echo "${ECHO_T}$GTK_CONFIG" >&6
25030else
25031 echo "$as_me:$LINENO: result: no" >&5
25032echo "${ECHO_T}no" >&6
25033fi
25034
25035 min_gtk_version=1.2.7
25036 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25037echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25038 no_gtk=""
25039 if test "$GTK_CONFIG" = "no" ; then
25040 no_gtk=yes
25041 else
25042 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25043 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25044 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25045 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25046 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25047 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25048 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25049 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25050 if test "x$enable_gtktest" = "xyes" ; then
25051 ac_save_CFLAGS="$CFLAGS"
25052 ac_save_LIBS="$LIBS"
25053 CFLAGS="$CFLAGS $GTK_CFLAGS"
25054 LIBS="$GTK_LIBS $LIBS"
25055 rm -f conf.gtktest
25056 if test "$cross_compiling" = yes; then
25057 echo $ac_n "cross compiling; assumed OK... $ac_c"
25058else
25059 cat >conftest.$ac_ext <<_ACEOF
25060/* confdefs.h. */
25061_ACEOF
25062cat confdefs.h >>conftest.$ac_ext
25063cat >>conftest.$ac_ext <<_ACEOF
25064/* end confdefs.h. */
25065
25066#include <gtk/gtk.h>
25067#include <stdio.h>
25068#include <stdlib.h>
25069
25070int
25071main ()
25072{
25073 int major, minor, micro;
25074 char *tmp_version;
25075
25076 system ("touch conf.gtktest");
25077
25078 /* HP/UX 9 (%@#!) writes to sscanf strings */
25079 tmp_version = g_strdup("$min_gtk_version");
25080 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25081 printf("%s, bad version string\n", "$min_gtk_version");
25082 exit(1);
25083 }
25084
25085 if ((gtk_major_version != $gtk_config_major_version) ||
25086 (gtk_minor_version != $gtk_config_minor_version) ||
25087 (gtk_micro_version != $gtk_config_micro_version))
25088 {
25089 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25090 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25091 gtk_major_version, gtk_minor_version, gtk_micro_version);
25092 printf ("*** was found! If gtk-config was correct, then it is best\n");
25093 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25094 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25095 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25096 printf("*** required on your system.\n");
25097 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25098 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25099 printf("*** before re-running configure\n");
25100 }
25101#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25102 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25103 (gtk_minor_version != GTK_MINOR_VERSION) ||
25104 (gtk_micro_version != GTK_MICRO_VERSION))
25105 {
25106 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25107 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25108 printf("*** library (version %d.%d.%d)\n",
25109 gtk_major_version, gtk_minor_version, gtk_micro_version);
25110 }
25111#endif /* defined (GTK_MAJOR_VERSION) ... */
25112 else
25113 {
25114 if ((gtk_major_version > major) ||
25115 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25116 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25117 {
25118 return 0;
25119 }
25120 else
25121 {
25122 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25123 gtk_major_version, gtk_minor_version, gtk_micro_version);
25124 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25125 major, minor, micro);
25126 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25127 printf("***\n");
25128 printf("*** If you have already installed a sufficiently new version, this error\n");
25129 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25130 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25131 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25132 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25133 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25134 printf("*** so that the correct libraries are found at run-time))\n");
25135 }
25136 }
25137 return 1;
25138}
25139
25140_ACEOF
25141rm -f conftest$ac_exeext
25142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25143 (eval $ac_link) 2>&5
25144 ac_status=$?
25145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148 (eval $ac_try) 2>&5
25149 ac_status=$?
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); }; }; then
25152 :
25153else
25154 echo "$as_me: program exited with status $ac_status" >&5
25155echo "$as_me: failed program was:" >&5
25156sed 's/^/| /' conftest.$ac_ext >&5
25157
25158( exit $ac_status )
25159no_gtk=yes
25160fi
ac1cb8d3 25161rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25162fi
25163 CFLAGS="$ac_save_CFLAGS"
25164 LIBS="$ac_save_LIBS"
25165 fi
25166 fi
25167 if test "x$no_gtk" = x ; then
25168 echo "$as_me:$LINENO: result: yes" >&5
25169echo "${ECHO_T}yes" >&6
25170 wx_cv_lib_gtk=1.2.7
25171 else
25172 echo "$as_me:$LINENO: result: no" >&5
25173echo "${ECHO_T}no" >&6
25174 if test "$GTK_CONFIG" = "no" ; then
25175 echo "*** The gtk-config script installed by GTK could not be found"
25176 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25177 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25178 echo "*** full path to gtk-config."
25179 else
25180 if test -f conf.gtktest ; then
25181 :
25182 else
25183 echo "*** Could not run GTK test program, checking why..."
25184 CFLAGS="$CFLAGS $GTK_CFLAGS"
25185 LIBS="$LIBS $GTK_LIBS"
25186 cat >conftest.$ac_ext <<_ACEOF
25187/* confdefs.h. */
25188_ACEOF
25189cat confdefs.h >>conftest.$ac_ext
25190cat >>conftest.$ac_ext <<_ACEOF
25191/* end confdefs.h. */
25192
25193#include <gtk/gtk.h>
25194#include <stdio.h>
25195
25196int
25197main ()
25198{
25199 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25200 ;
25201 return 0;
25202}
25203_ACEOF
25204rm -f conftest.$ac_objext conftest$ac_exeext
25205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25206 (eval $ac_link) 2>conftest.er1
a848cd7e 25207 ac_status=$?
ac1cb8d3
VS
25208 grep -v '^ *+' conftest.er1 >conftest.err
25209 rm -f conftest.er1
25210 cat conftest.err >&5
a848cd7e
SC
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } &&
fb00f58d
JS
25213 { ac_try='test -z "$ac_c_werror_flag"
25214 || test ! -s conftest.err'
ac1cb8d3
VS
25215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216 (eval $ac_try) 2>&5
25217 ac_status=$?
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); }; } &&
25220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25222 (eval $ac_try) 2>&5
25223 ac_status=$?
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); }; }; then
25226 echo "*** The test program compiled, but did not run. This usually means"
25227 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25228 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25229 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25230 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25231 echo "*** is required on your system"
25232 echo "***"
25233 echo "*** If you have an old version installed, it is best to remove it, although"
25234 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25235 echo "***"
25236 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25237 echo "*** came with the system with the command"
25238 echo "***"
25239 echo "*** rpm --erase --nodeps gtk gtk-devel"
25240else
25241 echo "$as_me: failed program was:" >&5
25242sed 's/^/| /' conftest.$ac_ext >&5
25243
25244 echo "*** The test program failed to compile or link. See the file config.log for the"
25245 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25246 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25247 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25248fi
ac1cb8d3
VS
25249rm -f conftest.err conftest.$ac_objext \
25250 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25251 CFLAGS="$ac_save_CFLAGS"
25252 LIBS="$ac_save_LIBS"
25253 fi
25254 fi
25255 GTK_CFLAGS=""
25256 GTK_LIBS=""
25257 :
25258 fi
25259
25260
25261 rm -f conf.gtktest
25262
25263
f34ca037 25264 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25265
25266# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25267if test "${with_gtk_prefix+set}" = set; then
25268 withval="$with_gtk_prefix"
25269 gtk_config_prefix="$withval"
25270else
25271 gtk_config_prefix=""
25272fi;
25273
25274# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25275if test "${with_gtk_exec_prefix+set}" = set; then
25276 withval="$with_gtk_exec_prefix"
25277 gtk_config_exec_prefix="$withval"
25278else
25279 gtk_config_exec_prefix=""
25280fi;
25281# Check whether --enable-gtktest or --disable-gtktest was given.
25282if test "${enable_gtktest+set}" = set; then
25283 enableval="$enable_gtktest"
25284
25285else
25286 enable_gtktest=yes
25287fi;
25288
25289 for module in . $GTK_MODULES
25290 do
25291 case "$module" in
25292 gthread)
25293 gtk_config_args="$gtk_config_args gthread"
25294 ;;
25295 esac
25296 done
25297
25298 if test x$gtk_config_exec_prefix != x ; then
25299 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25300 if test x${GTK_CONFIG+set} != xset ; then
25301 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25302 fi
25303 fi
25304 if test x$gtk_config_prefix != x ; then
25305 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25306 if test x${GTK_CONFIG+set} != xset ; then
25307 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25308 fi
25309 fi
25310
25311 # Extract the first word of "gtk-config", so it can be a program name with args.
25312set dummy gtk-config; ac_word=$2
25313echo "$as_me:$LINENO: checking for $ac_word" >&5
25314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25315if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25316 echo $ECHO_N "(cached) $ECHO_C" >&6
25317else
25318 case $GTK_CONFIG in
25319 [\\/]* | ?:[\\/]*)
25320 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25321 ;;
25322 *)
25323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25324for as_dir in $PATH
25325do
25326 IFS=$as_save_IFS
25327 test -z "$as_dir" && as_dir=.
25328 for ac_exec_ext in '' $ac_executable_extensions; do
25329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25330 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25332 break 2
25333 fi
25334done
25335done
25336
25337 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25338 ;;
25339esac
25340fi
25341GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25342
25343if test -n "$GTK_CONFIG"; then
25344 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25345echo "${ECHO_T}$GTK_CONFIG" >&6
25346else
25347 echo "$as_me:$LINENO: result: no" >&5
25348echo "${ECHO_T}no" >&6
25349fi
25350
25351 min_gtk_version=1.2.3
25352 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25353echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25354 no_gtk=""
25355 if test "$GTK_CONFIG" = "no" ; then
25356 no_gtk=yes
25357 else
25358 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25359 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25360 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25361 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25362 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25363 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25364 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25365 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25366 if test "x$enable_gtktest" = "xyes" ; then
25367 ac_save_CFLAGS="$CFLAGS"
25368 ac_save_LIBS="$LIBS"
25369 CFLAGS="$CFLAGS $GTK_CFLAGS"
25370 LIBS="$GTK_LIBS $LIBS"
25371 rm -f conf.gtktest
25372 if test "$cross_compiling" = yes; then
25373 echo $ac_n "cross compiling; assumed OK... $ac_c"
25374else
25375 cat >conftest.$ac_ext <<_ACEOF
25376/* confdefs.h. */
25377_ACEOF
25378cat confdefs.h >>conftest.$ac_ext
25379cat >>conftest.$ac_ext <<_ACEOF
25380/* end confdefs.h. */
25381
25382#include <gtk/gtk.h>
25383#include <stdio.h>
25384#include <stdlib.h>
25385
25386int
25387main ()
25388{
25389 int major, minor, micro;
25390 char *tmp_version;
25391
25392 system ("touch conf.gtktest");
25393
25394 /* HP/UX 9 (%@#!) writes to sscanf strings */
25395 tmp_version = g_strdup("$min_gtk_version");
25396 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25397 printf("%s, bad version string\n", "$min_gtk_version");
25398 exit(1);
25399 }
25400
25401 if ((gtk_major_version != $gtk_config_major_version) ||
25402 (gtk_minor_version != $gtk_config_minor_version) ||
25403 (gtk_micro_version != $gtk_config_micro_version))
25404 {
25405 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25406 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25407 gtk_major_version, gtk_minor_version, gtk_micro_version);
25408 printf ("*** was found! If gtk-config was correct, then it is best\n");
25409 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25410 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25411 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25412 printf("*** required on your system.\n");
25413 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25414 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25415 printf("*** before re-running configure\n");
25416 }
25417#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25418 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25419 (gtk_minor_version != GTK_MINOR_VERSION) ||
25420 (gtk_micro_version != GTK_MICRO_VERSION))
25421 {
25422 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25423 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25424 printf("*** library (version %d.%d.%d)\n",
25425 gtk_major_version, gtk_minor_version, gtk_micro_version);
25426 }
25427#endif /* defined (GTK_MAJOR_VERSION) ... */
25428 else
25429 {
25430 if ((gtk_major_version > major) ||
25431 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25432 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25433 {
25434 return 0;
25435 }
25436 else
25437 {
25438 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25439 gtk_major_version, gtk_minor_version, gtk_micro_version);
25440 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25441 major, minor, micro);
25442 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25443 printf("***\n");
25444 printf("*** If you have already installed a sufficiently new version, this error\n");
25445 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25446 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25447 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25448 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25449 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25450 printf("*** so that the correct libraries are found at run-time))\n");
25451 }
25452 }
25453 return 1;
25454}
25455
25456_ACEOF
25457rm -f conftest$ac_exeext
25458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25459 (eval $ac_link) 2>&5
25460 ac_status=$?
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25464 (eval $ac_try) 2>&5
25465 ac_status=$?
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); }; }; then
25468 :
25469else
25470 echo "$as_me: program exited with status $ac_status" >&5
25471echo "$as_me: failed program was:" >&5
25472sed 's/^/| /' conftest.$ac_ext >&5
25473
25474( exit $ac_status )
25475no_gtk=yes
25476fi
ac1cb8d3 25477rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25478fi
25479 CFLAGS="$ac_save_CFLAGS"
25480 LIBS="$ac_save_LIBS"
25481 fi
25482 fi
25483 if test "x$no_gtk" = x ; then
25484 echo "$as_me:$LINENO: result: yes" >&5
25485echo "${ECHO_T}yes" >&6
25486 wx_cv_lib_gtk=1.2.3
25487 else
25488 echo "$as_me:$LINENO: result: no" >&5
25489echo "${ECHO_T}no" >&6
25490 if test "$GTK_CONFIG" = "no" ; then
25491 echo "*** The gtk-config script installed by GTK could not be found"
25492 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25493 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25494 echo "*** full path to gtk-config."
25495 else
25496 if test -f conf.gtktest ; then
25497 :
25498 else
25499 echo "*** Could not run GTK test program, checking why..."
25500 CFLAGS="$CFLAGS $GTK_CFLAGS"
25501 LIBS="$LIBS $GTK_LIBS"
25502 cat >conftest.$ac_ext <<_ACEOF
25503/* confdefs.h. */
25504_ACEOF
25505cat confdefs.h >>conftest.$ac_ext
25506cat >>conftest.$ac_ext <<_ACEOF
25507/* end confdefs.h. */
25508
25509#include <gtk/gtk.h>
25510#include <stdio.h>
25511
25512int
25513main ()
25514{
25515 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25516 ;
25517 return 0;
25518}
25519_ACEOF
25520rm -f conftest.$ac_objext conftest$ac_exeext
25521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25522 (eval $ac_link) 2>conftest.er1
a848cd7e 25523 ac_status=$?
ac1cb8d3
VS
25524 grep -v '^ *+' conftest.er1 >conftest.err
25525 rm -f conftest.er1
25526 cat conftest.err >&5
a848cd7e
SC
25527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528 (exit $ac_status); } &&
fb00f58d
JS
25529 { ac_try='test -z "$ac_c_werror_flag"
25530 || test ! -s conftest.err'
ac1cb8d3
VS
25531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532 (eval $ac_try) 2>&5
25533 ac_status=$?
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }; } &&
25536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25538 (eval $ac_try) 2>&5
25539 ac_status=$?
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); }; }; then
25542 echo "*** The test program compiled, but did not run. This usually means"
25543 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25544 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25545 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25546 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25547 echo "*** is required on your system"
25548 echo "***"
25549 echo "*** If you have an old version installed, it is best to remove it, although"
25550 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25551 echo "***"
25552 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25553 echo "*** came with the system with the command"
25554 echo "***"
25555 echo "*** rpm --erase --nodeps gtk gtk-devel"
25556else
25557 echo "$as_me: failed program was:" >&5
25558sed 's/^/| /' conftest.$ac_ext >&5
25559
25560 echo "*** The test program failed to compile or link. See the file config.log for the"
25561 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25562 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25563 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25564fi
ac1cb8d3
VS
25565rm -f conftest.err conftest.$ac_objext \
25566 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25567 CFLAGS="$ac_save_CFLAGS"
25568 LIBS="$ac_save_LIBS"
25569 fi
25570 fi
25571 GTK_CFLAGS=""
25572 GTK_LIBS=""
25573 :
25574 fi
25575
25576
25577 rm -f conf.gtktest
25578
f34ca037 25579 fi
a848cd7e
SC
25580 fi
25581 fi
25582
25583 if test -z "$wx_cv_lib_gtk"; then
25584 wx_cv_lib_gtk=none
25585 else
25586 wx_cv_cflags_gtk=$GTK_CFLAGS
25587 wx_cv_libs_gtk=$GTK_LIBS
25588 fi
25589
25590
25591fi
25592
25593
25594 if test "$gtk_version_cached" = 1; then
25595 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25596echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25597 fi
25598
25599 case "$wx_cv_lib_gtk" in
25600 2.0) WXGTK20=1
25601 TOOLKIT_VERSION=2
25602 ;;
25603 1.2.7) WXGTK127=1
25604 WXGTK12=1
25605 ;;
25606 1.2.3) WXGTK12=1
25607 ;;
25608 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25609The development files for GTK+ were not found. For GTK+ 2, please
25610ensure that pkg-config is in the path and that gtk+-2.0.pc is
25611installed. For GTK+ 1.2 please check that gtk-config is in the path,
25612and that the version is 1.2.3 or above. Also check that the
25613libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25614--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25615 " >&5
25616echo "$as_me: error:
f597b41c
MW
25617The development files for GTK+ were not found. For GTK+ 2, please
25618ensure that pkg-config is in the path and that gtk+-2.0.pc is
25619installed. For GTK+ 1.2 please check that gtk-config is in the path,
25620and that the version is 1.2.3 or above. Also check that the
25621libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25622--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25623 " >&2;}
25624 { (exit 1); exit 1; }; }
25625 ;;
25626 esac
25627
25628 if test "$WXGTK20" = 1; then
304205f1
VS
25629 save_CFLAGS="$CFLAGS"
25630 save_LIBS="$LIBS"
9d271838
VZ
25631 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25632 LIBS="$LIBS $wx_cv_lib_gtk"
304205f1 25633
9755e73b 25634
304205f1
VS
25635for ac_func in pango_font_family_is_monospace
25636do
25637as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25638echo "$as_me:$LINENO: checking for $ac_func" >&5
25639echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25640if eval "test \"\${$as_ac_var+set}\" = set"; then
25641 echo $ECHO_N "(cached) $ECHO_C" >&6
25642else
25643 cat >conftest.$ac_ext <<_ACEOF
25644/* confdefs.h. */
25645_ACEOF
25646cat confdefs.h >>conftest.$ac_ext
25647cat >>conftest.$ac_ext <<_ACEOF
25648/* end confdefs.h. */
25649/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25651#define $ac_func innocuous_$ac_func
25652
25653/* System header to define __stub macros and hopefully few prototypes,
25654 which can conflict with char $ac_func (); below.
25655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25656 <limits.h> exists even on freestanding compilers. */
25657
25658#ifdef __STDC__
25659# include <limits.h>
25660#else
25661# include <assert.h>
25662#endif
25663
25664#undef $ac_func
25665
25666/* Override any gcc2 internal prototype to avoid an error. */
25667#ifdef __cplusplus
25668extern "C"
25669{
25670#endif
25671/* We use char because int might match the return type of a gcc2
25672 builtin and then its argument prototype would still apply. */
25673char $ac_func ();
25674/* The GNU C library defines this for functions which it implements
25675 to always fail with ENOSYS. Some functions are actually named
25676 something starting with __ and the normal name is an alias. */
25677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25678choke me
25679#else
25680char (*f) () = $ac_func;
25681#endif
25682#ifdef __cplusplus
25683}
25684#endif
25685
25686int
25687main ()
25688{
25689return f != $ac_func;
25690 ;
25691 return 0;
25692}
25693_ACEOF
25694rm -f conftest.$ac_objext conftest$ac_exeext
25695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25696 (eval $ac_link) 2>conftest.er1
25697 ac_status=$?
25698 grep -v '^ *+' conftest.er1 >conftest.err
25699 rm -f conftest.er1
25700 cat conftest.err >&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); } &&
fb00f58d
JS
25703 { ac_try='test -z "$ac_c_werror_flag"
25704 || test ! -s conftest.err'
304205f1
VS
25705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); }; } &&
25710 { ac_try='test -s conftest$ac_exeext'
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; }; then
25716 eval "$as_ac_var=yes"
25717else
25718 echo "$as_me: failed program was:" >&5
25719sed 's/^/| /' conftest.$ac_ext >&5
25720
25721eval "$as_ac_var=no"
25722fi
25723rm -f conftest.err conftest.$ac_objext \
25724 conftest$ac_exeext conftest.$ac_ext
25725fi
25726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25727echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25728if test `eval echo '${'$as_ac_var'}'` = yes; then
25729 cat >>confdefs.h <<_ACEOF
25730#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25731_ACEOF
25732
25733fi
25734done
25735
9755e73b
VS
25736
25737 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25738echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25739 cat >conftest.$ac_ext <<_ACEOF
25740/* confdefs.h. */
25741_ACEOF
25742cat confdefs.h >>conftest.$ac_ext
25743cat >>conftest.$ac_ext <<_ACEOF
25744/* end confdefs.h. */
25745
25746 #include <gtk/gtk.h>
25747
25748int
25749main ()
25750{
25751
25752 #if !GTK_CHECK_VERSION(2,4,0)
25753 #error "Not GTK+ 2.4"
25754 #endif
25755
25756 ;
25757 return 0;
25758}
25759_ACEOF
25760rm -f conftest.$ac_objext
25761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25762 (eval $ac_compile) 2>conftest.er1
25763 ac_status=$?
25764 grep -v '^ *+' conftest.er1 >conftest.err
25765 rm -f conftest.er1
25766 cat conftest.err >&5
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } &&
fb00f58d
JS
25769 { ac_try='test -z "$ac_c_werror_flag"
25770 || test ! -s conftest.err'
9755e73b
VS
25771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25772 (eval $ac_try) 2>&5
25773 ac_status=$?
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); }; } &&
25776 { ac_try='test -s conftest.$ac_objext'
25777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25778 (eval $ac_try) 2>&5
25779 ac_status=$?
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); }; }; then
25782
25783 cat >>confdefs.h <<\_ACEOF
25784#define __WXGTK24__ 1
25785_ACEOF
25786
25787 echo "$as_me:$LINENO: result: yes" >&5
25788echo "${ECHO_T}yes" >&6
25789
25790else
25791 echo "$as_me: failed program was:" >&5
25792sed 's/^/| /' conftest.$ac_ext >&5
25793
25794
25795 echo "$as_me:$LINENO: result: no" >&5
25796echo "${ECHO_T}no" >&6
25797
25798fi
25799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25800
304205f1
VS
25801 CFLAGS="$save_CFLAGS"
25802 LIBS="$save_LIBS"
a848cd7e
SC
25803 else
25804 if test "$wxUSE_UNICODE" = "yes"; then
25805 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25806echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25807 wxUSE_UNICODE=no
25808 fi
25809 fi
25810
25811 if test "$USE_DARWIN" != 1; then
25812
25813for ac_func in poll
25814do
25815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25816echo "$as_me:$LINENO: checking for $ac_func" >&5
25817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25818if eval "test \"\${$as_ac_var+set}\" = set"; then
25819 echo $ECHO_N "(cached) $ECHO_C" >&6
25820else
25821 cat >conftest.$ac_ext <<_ACEOF
25822/* confdefs.h. */
25823_ACEOF
25824cat confdefs.h >>conftest.$ac_ext
25825cat >>conftest.$ac_ext <<_ACEOF
25826/* end confdefs.h. */
ac1cb8d3
VS
25827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25829#define $ac_func innocuous_$ac_func
25830
a848cd7e
SC
25831/* System header to define __stub macros and hopefully few prototypes,
25832 which can conflict with char $ac_func (); below.
25833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25834 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25835
a848cd7e
SC
25836#ifdef __STDC__
25837# include <limits.h>
25838#else
25839# include <assert.h>
25840#endif
ac1cb8d3
VS
25841
25842#undef $ac_func
25843
a848cd7e
SC
25844/* Override any gcc2 internal prototype to avoid an error. */
25845#ifdef __cplusplus
25846extern "C"
25847{
25848#endif
25849/* We use char because int might match the return type of a gcc2
25850 builtin and then its argument prototype would still apply. */
25851char $ac_func ();
25852/* The GNU C library defines this for functions which it implements
25853 to always fail with ENOSYS. Some functions are actually named
25854 something starting with __ and the normal name is an alias. */
25855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25856choke me
25857#else
25858char (*f) () = $ac_func;
25859#endif
25860#ifdef __cplusplus
25861}
25862#endif
25863
25864int
25865main ()
25866{
25867return f != $ac_func;
25868 ;
25869 return 0;
25870}
25871_ACEOF
25872rm -f conftest.$ac_objext conftest$ac_exeext
25873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25874 (eval $ac_link) 2>conftest.er1
a848cd7e 25875 ac_status=$?
ac1cb8d3
VS
25876 grep -v '^ *+' conftest.er1 >conftest.err
25877 rm -f conftest.er1
25878 cat conftest.err >&5
a848cd7e
SC
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); } &&
fb00f58d
JS
25881 { ac_try='test -z "$ac_c_werror_flag"
25882 || test ! -s conftest.err'
ac1cb8d3
VS
25883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25884 (eval $ac_try) 2>&5
25885 ac_status=$?
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); }; } &&
25888 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
25894 eval "$as_ac_var=yes"
25895else
25896 echo "$as_me: failed program was:" >&5
25897sed 's/^/| /' conftest.$ac_ext >&5
25898
25899eval "$as_ac_var=no"
25900fi
ac1cb8d3
VS
25901rm -f conftest.err conftest.$ac_objext \
25902 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25903fi
25904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25905echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25906if test `eval echo '${'$as_ac_var'}'` = yes; then
25907 cat >>confdefs.h <<_ACEOF
25908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25909_ACEOF
25910
25911fi
25912done
25913
25914 fi
25915
25916 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25917 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25918
25919 AFMINSTALL=afminstall
25920 TOOLKIT=GTK
25921 GUIDIST=GTK_DIST
25922
25923 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25924echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25925if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25926 echo $ECHO_N "(cached) $ECHO_C" >&6
25927else
25928 ac_check_lib_save_LIBS=$LIBS
25929LIBS="-lgdk $LIBS"
25930cat >conftest.$ac_ext <<_ACEOF
25931/* confdefs.h. */
25932_ACEOF
25933cat confdefs.h >>conftest.$ac_ext
25934cat >>conftest.$ac_ext <<_ACEOF
25935/* end confdefs.h. */
25936
25937/* Override any gcc2 internal prototype to avoid an error. */
25938#ifdef __cplusplus
25939extern "C"
25940#endif
25941/* We use char because int might match the return type of a gcc2
25942 builtin and then its argument prototype would still apply. */
25943char gdk_im_open ();
25944int
25945main ()
25946{
25947gdk_im_open ();
25948 ;
25949 return 0;
25950}
25951_ACEOF
25952rm -f conftest.$ac_objext conftest$ac_exeext
25953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25954 (eval $ac_link) 2>conftest.er1
a848cd7e 25955 ac_status=$?
ac1cb8d3
VS
25956 grep -v '^ *+' conftest.er1 >conftest.err
25957 rm -f conftest.er1
25958 cat conftest.err >&5
a848cd7e
SC
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); } &&
fb00f58d
JS
25961 { ac_try='test -z "$ac_c_werror_flag"
25962 || test ! -s conftest.err'
ac1cb8d3
VS
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25965 ac_status=$?
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; } &&
25968 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970 (eval $ac_try) 2>&5
25971 ac_status=$?
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); }; }; then
25974 ac_cv_lib_gdk_gdk_im_open=yes
25975else
25976 echo "$as_me: failed program was:" >&5
25977sed 's/^/| /' conftest.$ac_ext >&5
25978
25979ac_cv_lib_gdk_gdk_im_open=no
25980fi
ac1cb8d3
VS
25981rm -f conftest.err conftest.$ac_objext \
25982 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25983LIBS=$ac_check_lib_save_LIBS
25984fi
25985echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25986echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25987if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25988 cat >>confdefs.h <<\_ACEOF
25989#define HAVE_XIM 1
25990_ACEOF
25991
25992fi
25993
25994
25995
25996 if test "$wxUSE_GPE" = "yes"; then
25997 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25998echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25999
26000ac_find_libraries=
26001for ac_dir in $SEARCH_LIB /usr/lib;
26002 do
26003 for ac_extension in a so sl dylib; do
26004 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26005 ac_find_libraries=$ac_dir
26006 break 2
26007 fi
26008 done
26009 done
26010
26011 if test "$ac_find_libraries" != "" ; then
26012
26013 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26014 result=$?
26015 if test $result = 0; then
26016 ac_path_to_link=""
26017 else
26018 ac_path_to_link=" -L$ac_find_libraries"
26019 fi
26020
26021 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26022 WXGPE=1
26023 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26024echo "${ECHO_T}found at $ac_find_libraries" >&6
26025 else
26026 echo "$as_me:$LINENO: result: not found" >&5
26027echo "${ECHO_T}not found" >&6
26028 fi
26029
26030 fi
26031 fi
26032
26033 if test "$wxUSE_MGL" = 1; then
26034 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26035echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26036 if test "x$MGL_ROOT" = x ; then
26037 echo "$as_me:$LINENO: result: not found" >&5
26038echo "${ECHO_T}not found" >&6
26039 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26040echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26041 { (exit 1); exit 1; }; }
26042 else
26043 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26044echo "${ECHO_T}$MGL_ROOT" >&6
26045 fi
26046
26047 echo "$as_me:$LINENO: checking for libmgl location" >&5
26048echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26049 case "${host}" in
26050 *-*-linux* )
26051 if test "x$wxUSE_SHARED" = xyes ; then
26052 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26053 else
26054 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26055 fi
26056 ;;
26057 *-pc-msdosdjgpp )
26058 mgl_os_candidates="dos32/dj2"
26059 ;;
26060 *)
26061 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26062echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26063 { (exit 1); exit 1; }; }
26064 esac
26065
26066 mgl_lib_type=""
26067 mgl_os=""
26068
26069 for mgl_os_i in $mgl_os_candidates ; do
26070 if test "x$mgl_os" = x ; then
26071 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26072 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26073 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26074 mgl_lib_type=debug
26075 mgl_os=$mgl_os_i
26076 fi
26077 fi
26078 if test "x$mgl_lib_type" = x ; then
26079 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26080 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26081 mgl_lib_type=release
26082 mgl_os=$mgl_os_i
26083 fi
26084 fi
26085 fi
26086 done
26087
26088 if test "x$mgl_os" = x ; then
26089 echo "$as_me:$LINENO: result: not found" >&5
26090echo "${ECHO_T}not found" >&6
26091 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26092echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26093 { (exit 1); exit 1; }; }
26094 fi
26095 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26096echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26097
26098 wxUSE_UNIVERSAL="yes"
26099
26100 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26101 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26102
26103 AFMINSTALL=afminstall
26104 TOOLKIT=MGL
26105 GUIDIST=MGL_DIST
26106 fi
26107
26108 if test "$wxUSE_MICROWIN" = 1; then
26109 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26110echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26111 if test "x$MICROWINDOWS" = x ; then
26112 echo "$as_me:$LINENO: result: not found" >&5
26113echo "${ECHO_T}not found" >&6
26114 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26115echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26116 { (exit 1); exit 1; }; }
26117 else
26118 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26119echo "${ECHO_T}$MICROWINDOWS" >&6
26120 fi
26121
26122 if test -f $MICROWINDOWS/lib/libmwin.a; then
26123 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26124echo "${ECHO_T}MicroWindows' libraries found." >&6
26125 else
26126 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26127echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26128 { (exit 1); exit 1; }; }
26129 fi
26130
26131 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26132 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26133
26134 wxUSE_UNIVERSAL="yes"
26135
26136 AFMINSTALL=afminstall
26137 TOOLKIT=MICROWIN
26138 GUIDIST=MICROWIN_DIST
26139
26140 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26141 fi
26142
74b84332 26143 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
fb00f58d 26144 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26145echo $ECHO_N "checking for X... $ECHO_C" >&6
26146
26147
26148# Check whether --with-x or --without-x was given.
26149if test "${with_x+set}" = set; then
26150 withval="$with_x"
26151
26152fi;
26153# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26154if test "x$with_x" = xno; then
26155 # The user explicitly disabled X.
26156 have_x=disabled
26157else
26158 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26159 # Both variables are already set.
26160 have_x=yes
26161 else
26162 if test "${ac_cv_have_x+set}" = set; then
26163 echo $ECHO_N "(cached) $ECHO_C" >&6
26164else
26165 # One or both of the vars are not set, and there is no cached value.
26166ac_x_includes=no ac_x_libraries=no
26167rm -fr conftest.dir
26168if mkdir conftest.dir; then
26169 cd conftest.dir
26170 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26171 cat >Imakefile <<'_ACEOF'
26172acfindx:
26173 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26174_ACEOF
26175 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26176 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26177 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26178 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26179 for ac_extension in a so sl; do
26180 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26181 test -f $ac_im_libdir/libX11.$ac_extension; then
26182 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26183 fi
26184 done
26185 # Screen out bogus values from the imake configuration. They are
26186 # bogus both because they are the default anyway, and because
26187 # using them would break gcc on systems where it needs fixed includes.
26188 case $ac_im_incroot in
26189 /usr/include) ;;
26190 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26191 esac
26192 case $ac_im_usrlibdir in
26193 /usr/lib | /lib) ;;
26194 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26195 esac
26196 fi
26197 cd ..
26198 rm -fr conftest.dir
26199fi
26200
26201# Standard set of common directories for X headers.
26202# Check X11 before X11Rn because it is often a symlink to the current release.
26203ac_x_header_dirs='
26204/usr/X11/include
26205/usr/X11R6/include
26206/usr/X11R5/include
26207/usr/X11R4/include
26208
26209/usr/include/X11
26210/usr/include/X11R6
26211/usr/include/X11R5
26212/usr/include/X11R4
26213
26214/usr/local/X11/include
26215/usr/local/X11R6/include
26216/usr/local/X11R5/include
26217/usr/local/X11R4/include
26218
26219/usr/local/include/X11
26220/usr/local/include/X11R6
26221/usr/local/include/X11R5
26222/usr/local/include/X11R4
26223
26224/usr/X386/include
26225/usr/x386/include
26226/usr/XFree86/include/X11
26227
26228/usr/include
26229/usr/local/include
26230/usr/unsupported/include
26231/usr/athena/include
26232/usr/local/x11r5/include
26233/usr/lpp/Xamples/include
26234
26235/usr/openwin/include
26236/usr/openwin/share/include'
26237
26238if test "$ac_x_includes" = no; then
fb00f58d 26239 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
26240 # First, try using that file with no special directory specified.
26241 cat >conftest.$ac_ext <<_ACEOF
26242/* confdefs.h. */
26243_ACEOF
26244cat confdefs.h >>conftest.$ac_ext
26245cat >>conftest.$ac_ext <<_ACEOF
26246/* end confdefs.h. */
26247#include <X11/Intrinsic.h>
26248_ACEOF
26249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26251 ac_status=$?
26252 grep -v '^ *+' conftest.er1 >conftest.err
26253 rm -f conftest.er1
26254 cat conftest.err >&5
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); } >/dev/null; then
26257 if test -s conftest.err; then
26258 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26260 else
26261 ac_cpp_err=
26262 fi
26263else
26264 ac_cpp_err=yes
26265fi
26266if test -z "$ac_cpp_err"; then
26267 # We can compile using X headers with no special include directory.
26268ac_x_includes=
26269else
26270 echo "$as_me: failed program was:" >&5
26271sed 's/^/| /' conftest.$ac_ext >&5
26272
26273 for ac_dir in $ac_x_header_dirs; do
26274 if test -r "$ac_dir/X11/Intrinsic.h"; then
26275 ac_x_includes=$ac_dir
26276 break
26277 fi
26278done
26279fi
26280rm -f conftest.err conftest.$ac_ext
26281fi # $ac_x_includes = no
26282
26283if test "$ac_x_libraries" = no; then
26284 # Check for the libraries.
26285 # See if we find them without any special options.
26286 # Don't add to $LIBS permanently.
26287 ac_save_LIBS=$LIBS
26288 LIBS="-lXt $LIBS"
26289 cat >conftest.$ac_ext <<_ACEOF
26290/* confdefs.h. */
26291_ACEOF
26292cat confdefs.h >>conftest.$ac_ext
26293cat >>conftest.$ac_ext <<_ACEOF
26294/* end confdefs.h. */
26295#include <X11/Intrinsic.h>
26296int
26297main ()
26298{
26299XtMalloc (0)
26300 ;
26301 return 0;
26302}
26303_ACEOF
26304rm -f conftest.$ac_objext conftest$ac_exeext
26305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26306 (eval $ac_link) 2>conftest.er1
a848cd7e 26307 ac_status=$?
ac1cb8d3
VS
26308 grep -v '^ *+' conftest.er1 >conftest.err
26309 rm -f conftest.er1
26310 cat conftest.err >&5
a848cd7e
SC
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } &&
fb00f58d
JS
26313 { ac_try='test -z "$ac_c_werror_flag"
26314 || test ! -s conftest.err'
ac1cb8d3
VS
26315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26316 (eval $ac_try) 2>&5
26317 ac_status=$?
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); }; } &&
26320 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; }; then
26326 LIBS=$ac_save_LIBS
26327# We can link X programs with no special library path.
26328ac_x_libraries=
26329else
26330 echo "$as_me: failed program was:" >&5
26331sed 's/^/| /' conftest.$ac_ext >&5
26332
26333LIBS=$ac_save_LIBS
26334for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26335do
26336 # Don't even attempt the hair of trying to link an X program!
26337 for ac_extension in a so sl; do
26338 if test -r $ac_dir/libXt.$ac_extension; then
26339 ac_x_libraries=$ac_dir
26340 break 2
26341 fi
26342 done
26343done
26344fi
ac1cb8d3
VS
26345rm -f conftest.err conftest.$ac_objext \
26346 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26347fi # $ac_x_libraries = no
26348
26349if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26350 # Didn't find X anywhere. Cache the known absence of X.
26351 ac_cv_have_x="have_x=no"
26352else
26353 # Record where we found X for the cache.
26354 ac_cv_have_x="have_x=yes \
ac1cb8d3 26355 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26356fi
26357fi
26358
26359 fi
26360 eval "$ac_cv_have_x"
26361fi # $with_x != no
26362
26363if test "$have_x" != yes; then
26364 echo "$as_me:$LINENO: result: $have_x" >&5
26365echo "${ECHO_T}$have_x" >&6
26366 no_x=yes
26367else
26368 # If each of the values was on the command line, it overrides each guess.
26369 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26370 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26371 # Update the cache value to reflect the command line values.
26372 ac_cv_have_x="have_x=yes \
26373 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
fb00f58d
JS
26374 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
26375echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
26376fi
26377
26378if test "$no_x" = yes; then
26379 # Not all programs may use this symbol, but it does not hurt to define it.
26380
26381cat >>confdefs.h <<\_ACEOF
26382#define X_DISPLAY_MISSING 1
26383_ACEOF
26384
26385 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26386else
26387 if test -n "$x_includes"; then
26388 X_CFLAGS="$X_CFLAGS -I$x_includes"
26389 fi
26390
26391 # It would also be nice to do this for all -L options, not just this one.
26392 if test -n "$x_libraries"; then
26393 X_LIBS="$X_LIBS -L$x_libraries"
26394 # For Solaris; some versions of Sun CC require a space after -R and
26395 # others require no space. Words are not sufficient . . . .
26396 case `(uname -sr) 2>/dev/null` in
26397 "SunOS 5"*)
26398 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26399echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26400 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26401 cat >conftest.$ac_ext <<_ACEOF
26402/* confdefs.h. */
26403_ACEOF
26404cat confdefs.h >>conftest.$ac_ext
26405cat >>conftest.$ac_ext <<_ACEOF
26406/* end confdefs.h. */
26407
26408int
26409main ()
26410{
26411
26412 ;
26413 return 0;
26414}
26415_ACEOF
26416rm -f conftest.$ac_objext conftest$ac_exeext
26417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26418 (eval $ac_link) 2>conftest.er1
a848cd7e 26419 ac_status=$?
ac1cb8d3
VS
26420 grep -v '^ *+' conftest.er1 >conftest.err
26421 rm -f conftest.er1
26422 cat conftest.err >&5
a848cd7e
SC
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); } &&
fb00f58d
JS
26425 { ac_try='test -z "$ac_c_werror_flag"
26426 || test ! -s conftest.err'
ac1cb8d3
VS
26427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26428 (eval $ac_try) 2>&5
26429 ac_status=$?
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); }; } &&
26432 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26434 (eval $ac_try) 2>&5
26435 ac_status=$?
26436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); }; }; then
26438 ac_R_nospace=yes
26439else
26440 echo "$as_me: failed program was:" >&5
26441sed 's/^/| /' conftest.$ac_ext >&5
26442
26443ac_R_nospace=no
26444fi
ac1cb8d3
VS
26445rm -f conftest.err conftest.$ac_objext \
26446 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26447 if test $ac_R_nospace = yes; then
26448 echo "$as_me:$LINENO: result: no" >&5
26449echo "${ECHO_T}no" >&6
26450 X_LIBS="$X_LIBS -R$x_libraries"
26451 else
26452 LIBS="$ac_xsave_LIBS -R $x_libraries"
26453 cat >conftest.$ac_ext <<_ACEOF
26454/* confdefs.h. */
26455_ACEOF
26456cat confdefs.h >>conftest.$ac_ext
26457cat >>conftest.$ac_ext <<_ACEOF
26458/* end confdefs.h. */
26459
26460int
26461main ()
26462{
26463
26464 ;
26465 return 0;
26466}
26467_ACEOF
26468rm -f conftest.$ac_objext conftest$ac_exeext
26469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26470 (eval $ac_link) 2>conftest.er1
a848cd7e 26471 ac_status=$?
ac1cb8d3
VS
26472 grep -v '^ *+' conftest.er1 >conftest.err
26473 rm -f conftest.er1
26474 cat conftest.err >&5
a848cd7e
SC
26475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476 (exit $ac_status); } &&
fb00f58d
JS
26477 { ac_try='test -z "$ac_c_werror_flag"
26478 || test ! -s conftest.err'
ac1cb8d3
VS
26479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26480 (eval $ac_try) 2>&5
26481 ac_status=$?
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); }; } &&
26484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26486 (eval $ac_try) 2>&5
26487 ac_status=$?
26488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); }; }; then
26490 ac_R_space=yes
26491else
26492 echo "$as_me: failed program was:" >&5
26493sed 's/^/| /' conftest.$ac_ext >&5
26494
26495ac_R_space=no
26496fi
ac1cb8d3
VS
26497rm -f conftest.err conftest.$ac_objext \
26498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26499 if test $ac_R_space = yes; then
26500 echo "$as_me:$LINENO: result: yes" >&5
26501echo "${ECHO_T}yes" >&6
26502 X_LIBS="$X_LIBS -R $x_libraries"
26503 else
26504 echo "$as_me:$LINENO: result: neither works" >&5
26505echo "${ECHO_T}neither works" >&6
26506 fi
26507 fi
26508 LIBS=$ac_xsave_LIBS
26509 esac
26510 fi
26511
26512 # Check for system-dependent libraries X programs must link with.
26513 # Do this before checking for the system-independent R6 libraries
26514 # (-lICE), since we may need -lsocket or whatever for X linking.
26515
26516 if test "$ISC" = yes; then
26517 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26518 else
26519 # Martyn Johnson says this is needed for Ultrix, if the X
26520 # libraries were built with DECnet support. And Karl Berry says
26521 # the Alpha needs dnet_stub (dnet does not exist).
26522 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26523 cat >conftest.$ac_ext <<_ACEOF
26524/* confdefs.h. */
26525_ACEOF
26526cat confdefs.h >>conftest.$ac_ext
26527cat >>conftest.$ac_ext <<_ACEOF
26528/* end confdefs.h. */
26529
26530/* Override any gcc2 internal prototype to avoid an error. */
26531#ifdef __cplusplus
26532extern "C"
26533#endif
26534/* We use char because int might match the return type of a gcc2
26535 builtin and then its argument prototype would still apply. */
26536char XOpenDisplay ();
26537int
26538main ()
26539{
26540XOpenDisplay ();
26541 ;
26542 return 0;
26543}
26544_ACEOF
26545rm -f conftest.$ac_objext conftest$ac_exeext
26546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26547 (eval $ac_link) 2>conftest.er1
a848cd7e 26548 ac_status=$?
ac1cb8d3
VS
26549 grep -v '^ *+' conftest.er1 >conftest.err
26550 rm -f conftest.er1
26551 cat conftest.err >&5
a848cd7e
SC
26552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553 (exit $ac_status); } &&
fb00f58d
JS
26554 { ac_try='test -z "$ac_c_werror_flag"
26555 || test ! -s conftest.err'
ac1cb8d3
VS
26556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26557 (eval $ac_try) 2>&5
26558 ac_status=$?
26559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560 (exit $ac_status); }; } &&
26561 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26563 (eval $ac_try) 2>&5
26564 ac_status=$?
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); }; }; then
26567 :
26568else
26569 echo "$as_me: failed program was:" >&5
26570sed 's/^/| /' conftest.$ac_ext >&5
26571
26572echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26573echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26574if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26575 echo $ECHO_N "(cached) $ECHO_C" >&6
26576else
26577 ac_check_lib_save_LIBS=$LIBS
26578LIBS="-ldnet $LIBS"
26579cat >conftest.$ac_ext <<_ACEOF
26580/* confdefs.h. */
26581_ACEOF
26582cat confdefs.h >>conftest.$ac_ext
26583cat >>conftest.$ac_ext <<_ACEOF
26584/* end confdefs.h. */
26585
26586/* Override any gcc2 internal prototype to avoid an error. */
26587#ifdef __cplusplus
26588extern "C"
26589#endif
26590/* We use char because int might match the return type of a gcc2
26591 builtin and then its argument prototype would still apply. */
26592char dnet_ntoa ();
26593int
26594main ()
26595{
26596dnet_ntoa ();
26597 ;
26598 return 0;
26599}
26600_ACEOF
26601rm -f conftest.$ac_objext conftest$ac_exeext
26602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26603 (eval $ac_link) 2>conftest.er1
a848cd7e 26604 ac_status=$?
ac1cb8d3
VS
26605 grep -v '^ *+' conftest.er1 >conftest.err
26606 rm -f conftest.er1
26607 cat conftest.err >&5
a848cd7e
SC
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609 (exit $ac_status); } &&
fb00f58d
JS
26610 { ac_try='test -z "$ac_c_werror_flag"
26611 || test ! -s conftest.err'
ac1cb8d3
VS
26612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26613 (eval $ac_try) 2>&5
26614 ac_status=$?
26615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616 (exit $ac_status); }; } &&
26617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26619 (eval $ac_try) 2>&5
26620 ac_status=$?
26621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622 (exit $ac_status); }; }; then
26623 ac_cv_lib_dnet_dnet_ntoa=yes
26624else
26625 echo "$as_me: failed program was:" >&5
26626sed 's/^/| /' conftest.$ac_ext >&5
26627
26628ac_cv_lib_dnet_dnet_ntoa=no
26629fi
ac1cb8d3
VS
26630rm -f conftest.err conftest.$ac_objext \
26631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26632LIBS=$ac_check_lib_save_LIBS
26633fi
26634echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26635echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26636if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26637 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26638fi
26639
26640 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26641 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26642echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26643if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26644 echo $ECHO_N "(cached) $ECHO_C" >&6
26645else
26646 ac_check_lib_save_LIBS=$LIBS
26647LIBS="-ldnet_stub $LIBS"
26648cat >conftest.$ac_ext <<_ACEOF
26649/* confdefs.h. */
26650_ACEOF
26651cat confdefs.h >>conftest.$ac_ext
26652cat >>conftest.$ac_ext <<_ACEOF
26653/* end confdefs.h. */
26654
26655/* Override any gcc2 internal prototype to avoid an error. */
26656#ifdef __cplusplus
26657extern "C"
26658#endif
26659/* We use char because int might match the return type of a gcc2
26660 builtin and then its argument prototype would still apply. */
26661char dnet_ntoa ();
26662int
26663main ()
26664{
26665dnet_ntoa ();
26666 ;
26667 return 0;
26668}
26669_ACEOF
26670rm -f conftest.$ac_objext conftest$ac_exeext
26671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26672 (eval $ac_link) 2>conftest.er1
a848cd7e 26673 ac_status=$?
ac1cb8d3
VS
26674 grep -v '^ *+' conftest.er1 >conftest.err
26675 rm -f conftest.er1
26676 cat conftest.err >&5
a848cd7e
SC
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); } &&
fb00f58d
JS
26679 { ac_try='test -z "$ac_c_werror_flag"
26680 || test ! -s conftest.err'
ac1cb8d3
VS
26681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26682 (eval $ac_try) 2>&5
26683 ac_status=$?
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); }; } &&
26686 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26688 (eval $ac_try) 2>&5
26689 ac_status=$?
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); }; }; then
26692 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26693else
26694 echo "$as_me: failed program was:" >&5
26695sed 's/^/| /' conftest.$ac_ext >&5
26696
26697ac_cv_lib_dnet_stub_dnet_ntoa=no
26698fi
ac1cb8d3
VS
26699rm -f conftest.err conftest.$ac_objext \
26700 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26701LIBS=$ac_check_lib_save_LIBS
26702fi
26703echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26704echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26705if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26706 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26707fi
26708
26709 fi
26710fi
ac1cb8d3
VS
26711rm -f conftest.err conftest.$ac_objext \
26712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26713 LIBS="$ac_xsave_LIBS"
26714
26715 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26716 # to get the SysV transport functions.
26717 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26718 # needs -lnsl.
26719 # The nsl library prevents programs from opening the X display
26720 # on Irix 5.2, according to T.E. Dickey.
26721 # The functions gethostbyname, getservbyname, and inet_addr are
26722 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26723 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26724echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26725if test "${ac_cv_func_gethostbyname+set}" = set; then
26726 echo $ECHO_N "(cached) $ECHO_C" >&6
26727else
26728 cat >conftest.$ac_ext <<_ACEOF
26729/* confdefs.h. */
26730_ACEOF
26731cat confdefs.h >>conftest.$ac_ext
26732cat >>conftest.$ac_ext <<_ACEOF
26733/* end confdefs.h. */
ac1cb8d3
VS
26734/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26736#define gethostbyname innocuous_gethostbyname
26737
a848cd7e
SC
26738/* System header to define __stub macros and hopefully few prototypes,
26739 which can conflict with char gethostbyname (); below.
26740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26741 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26742
a848cd7e
SC
26743#ifdef __STDC__
26744# include <limits.h>
26745#else
26746# include <assert.h>
26747#endif
ac1cb8d3
VS
26748
26749#undef gethostbyname
26750
a848cd7e
SC
26751/* Override any gcc2 internal prototype to avoid an error. */
26752#ifdef __cplusplus
26753extern "C"
26754{
26755#endif
26756/* We use char because int might match the return type of a gcc2
26757 builtin and then its argument prototype would still apply. */
26758char gethostbyname ();
26759/* The GNU C library defines this for functions which it implements
26760 to always fail with ENOSYS. Some functions are actually named
26761 something starting with __ and the normal name is an alias. */
26762#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26763choke me
26764#else
26765char (*f) () = gethostbyname;
26766#endif
26767#ifdef __cplusplus
26768}
26769#endif
26770
26771int
26772main ()
26773{
26774return f != gethostbyname;
26775 ;
26776 return 0;
26777}
26778_ACEOF
26779rm -f conftest.$ac_objext conftest$ac_exeext
26780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26781 (eval $ac_link) 2>conftest.er1
a848cd7e 26782 ac_status=$?
ac1cb8d3
VS
26783 grep -v '^ *+' conftest.er1 >conftest.err
26784 rm -f conftest.er1
26785 cat conftest.err >&5
a848cd7e
SC
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); } &&
fb00f58d
JS
26788 { ac_try='test -z "$ac_c_werror_flag"
26789 || test ! -s conftest.err'
ac1cb8d3
VS
26790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791 (eval $ac_try) 2>&5
26792 ac_status=$?
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); }; } &&
26795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26797 (eval $ac_try) 2>&5
26798 ac_status=$?
26799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800 (exit $ac_status); }; }; then
26801 ac_cv_func_gethostbyname=yes
26802else
26803 echo "$as_me: failed program was:" >&5
26804sed 's/^/| /' conftest.$ac_ext >&5
26805
26806ac_cv_func_gethostbyname=no
26807fi
ac1cb8d3
VS
26808rm -f conftest.err conftest.$ac_objext \
26809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26810fi
26811echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26812echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26813
26814 if test $ac_cv_func_gethostbyname = no; then
26815 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26816echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26817if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26818 echo $ECHO_N "(cached) $ECHO_C" >&6
26819else
26820 ac_check_lib_save_LIBS=$LIBS
26821LIBS="-lnsl $LIBS"
26822cat >conftest.$ac_ext <<_ACEOF
26823/* confdefs.h. */
26824_ACEOF
26825cat confdefs.h >>conftest.$ac_ext
26826cat >>conftest.$ac_ext <<_ACEOF
26827/* end confdefs.h. */
26828
26829/* Override any gcc2 internal prototype to avoid an error. */
26830#ifdef __cplusplus
26831extern "C"
26832#endif
26833/* We use char because int might match the return type of a gcc2
26834 builtin and then its argument prototype would still apply. */
26835char gethostbyname ();
26836int
26837main ()
26838{
26839gethostbyname ();
26840 ;
26841 return 0;
26842}
26843_ACEOF
26844rm -f conftest.$ac_objext conftest$ac_exeext
26845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26846 (eval $ac_link) 2>conftest.er1
26847 ac_status=$?
26848 grep -v '^ *+' conftest.er1 >conftest.err
26849 rm -f conftest.er1
26850 cat conftest.err >&5
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); } &&
fb00f58d
JS
26853 { ac_try='test -z "$ac_c_werror_flag"
26854 || test ! -s conftest.err'
ac1cb8d3
VS
26855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26856 (eval $ac_try) 2>&5
26857 ac_status=$?
26858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859 (exit $ac_status); }; } &&
26860 { ac_try='test -s conftest$ac_exeext'
26861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26862 (eval $ac_try) 2>&5
26863 ac_status=$?
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); }; }; then
26866 ac_cv_lib_nsl_gethostbyname=yes
26867else
26868 echo "$as_me: failed program was:" >&5
26869sed 's/^/| /' conftest.$ac_ext >&5
26870
26871ac_cv_lib_nsl_gethostbyname=no
26872fi
26873rm -f conftest.err conftest.$ac_objext \
26874 conftest$ac_exeext conftest.$ac_ext
26875LIBS=$ac_check_lib_save_LIBS
26876fi
26877echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26878echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26879if test $ac_cv_lib_nsl_gethostbyname = yes; then
26880 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26881fi
26882
26883 if test $ac_cv_lib_nsl_gethostbyname = no; then
26884 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26885echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26886if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26887 echo $ECHO_N "(cached) $ECHO_C" >&6
26888else
26889 ac_check_lib_save_LIBS=$LIBS
26890LIBS="-lbsd $LIBS"
26891cat >conftest.$ac_ext <<_ACEOF
26892/* confdefs.h. */
26893_ACEOF
26894cat confdefs.h >>conftest.$ac_ext
26895cat >>conftest.$ac_ext <<_ACEOF
26896/* end confdefs.h. */
26897
26898/* Override any gcc2 internal prototype to avoid an error. */
26899#ifdef __cplusplus
26900extern "C"
26901#endif
26902/* We use char because int might match the return type of a gcc2
26903 builtin and then its argument prototype would still apply. */
26904char gethostbyname ();
26905int
26906main ()
26907{
26908gethostbyname ();
26909 ;
26910 return 0;
26911}
26912_ACEOF
26913rm -f conftest.$ac_objext conftest$ac_exeext
26914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26915 (eval $ac_link) 2>conftest.er1
a848cd7e 26916 ac_status=$?
ac1cb8d3
VS
26917 grep -v '^ *+' conftest.er1 >conftest.err
26918 rm -f conftest.er1
26919 cat conftest.err >&5
a848cd7e
SC
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); } &&
fb00f58d
JS
26922 { ac_try='test -z "$ac_c_werror_flag"
26923 || test ! -s conftest.err'
a848cd7e
SC
26924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26925 (eval $ac_try) 2>&5
26926 ac_status=$?
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26928 (exit $ac_status); }; } &&
26929 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26931 (eval $ac_try) 2>&5
26932 ac_status=$?
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); }; }; then
26935 ac_cv_lib_bsd_gethostbyname=yes
26936else
26937 echo "$as_me: failed program was:" >&5
26938sed 's/^/| /' conftest.$ac_ext >&5
26939
26940ac_cv_lib_bsd_gethostbyname=no
26941fi
ac1cb8d3
VS
26942rm -f conftest.err conftest.$ac_objext \
26943 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26944LIBS=$ac_check_lib_save_LIBS
26945fi
26946echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26947echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26948if test $ac_cv_lib_bsd_gethostbyname = yes; then
26949 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26950fi
26951
26952 fi
26953 fi
26954
26955 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26956 # socket/setsockopt and other routines are undefined under SCO ODT
26957 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26958 # on later versions), says Simon Leinen: it contains gethostby*
26959 # variants that don't use the name server (or something). -lsocket
26960 # must be given before -lnsl if both are needed. We assume that
26961 # if connect needs -lnsl, so does gethostbyname.
26962 echo "$as_me:$LINENO: checking for connect" >&5
26963echo $ECHO_N "checking for connect... $ECHO_C" >&6
26964if test "${ac_cv_func_connect+set}" = set; then
26965 echo $ECHO_N "(cached) $ECHO_C" >&6
26966else
26967 cat >conftest.$ac_ext <<_ACEOF
26968/* confdefs.h. */
26969_ACEOF
26970cat confdefs.h >>conftest.$ac_ext
26971cat >>conftest.$ac_ext <<_ACEOF
26972/* end confdefs.h. */
ac1cb8d3
VS
26973/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26975#define connect innocuous_connect
26976
a848cd7e
SC
26977/* System header to define __stub macros and hopefully few prototypes,
26978 which can conflict with char connect (); below.
26979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26980 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26981
a848cd7e
SC
26982#ifdef __STDC__
26983# include <limits.h>
26984#else
26985# include <assert.h>
26986#endif
ac1cb8d3
VS
26987
26988#undef connect
26989
a848cd7e
SC
26990/* Override any gcc2 internal prototype to avoid an error. */
26991#ifdef __cplusplus
26992extern "C"
26993{
26994#endif
26995/* We use char because int might match the return type of a gcc2
26996 builtin and then its argument prototype would still apply. */
26997char connect ();
26998/* The GNU C library defines this for functions which it implements
26999 to always fail with ENOSYS. Some functions are actually named
27000 something starting with __ and the normal name is an alias. */
27001#if defined (__stub_connect) || defined (__stub___connect)
27002choke me
27003#else
27004char (*f) () = connect;
27005#endif
27006#ifdef __cplusplus
27007}
27008#endif
27009
27010int
27011main ()
27012{
27013return f != connect;
27014 ;
27015 return 0;
27016}
27017_ACEOF
27018rm -f conftest.$ac_objext conftest$ac_exeext
27019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27020 (eval $ac_link) 2>conftest.er1
a848cd7e 27021 ac_status=$?
ac1cb8d3
VS
27022 grep -v '^ *+' conftest.er1 >conftest.err
27023 rm -f conftest.er1
27024 cat conftest.err >&5
a848cd7e
SC
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); } &&
fb00f58d
JS
27027 { ac_try='test -z "$ac_c_werror_flag"
27028 || test ! -s conftest.err'
ac1cb8d3
VS
27029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27030 (eval $ac_try) 2>&5
27031 ac_status=$?
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); }; } &&
27034 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27036 (eval $ac_try) 2>&5
27037 ac_status=$?
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; }; then
27040 ac_cv_func_connect=yes
27041else
27042 echo "$as_me: failed program was:" >&5
27043sed 's/^/| /' conftest.$ac_ext >&5
27044
27045ac_cv_func_connect=no
27046fi
ac1cb8d3
VS
27047rm -f conftest.err conftest.$ac_objext \
27048 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27049fi
27050echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27051echo "${ECHO_T}$ac_cv_func_connect" >&6
27052
27053 if test $ac_cv_func_connect = no; then
27054 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27055echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27056if test "${ac_cv_lib_socket_connect+set}" = set; then
27057 echo $ECHO_N "(cached) $ECHO_C" >&6
27058else
27059 ac_check_lib_save_LIBS=$LIBS
27060LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27061cat >conftest.$ac_ext <<_ACEOF
27062/* confdefs.h. */
27063_ACEOF
27064cat confdefs.h >>conftest.$ac_ext
27065cat >>conftest.$ac_ext <<_ACEOF
27066/* end confdefs.h. */
27067
27068/* Override any gcc2 internal prototype to avoid an error. */
27069#ifdef __cplusplus
27070extern "C"
27071#endif
27072/* We use char because int might match the return type of a gcc2
27073 builtin and then its argument prototype would still apply. */
27074char connect ();
27075int
27076main ()
27077{
27078connect ();
27079 ;
27080 return 0;
27081}
27082_ACEOF
27083rm -f conftest.$ac_objext conftest$ac_exeext
27084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27085 (eval $ac_link) 2>conftest.er1
a848cd7e 27086 ac_status=$?
ac1cb8d3
VS
27087 grep -v '^ *+' conftest.er1 >conftest.err
27088 rm -f conftest.er1
27089 cat conftest.err >&5
a848cd7e
SC
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); } &&
fb00f58d
JS
27092 { ac_try='test -z "$ac_c_werror_flag"
27093 || test ! -s conftest.err'
ac1cb8d3
VS
27094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27095 (eval $ac_try) 2>&5
27096 ac_status=$?
27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098 (exit $ac_status); }; } &&
27099 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27101 (eval $ac_try) 2>&5
27102 ac_status=$?
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); }; }; then
27105 ac_cv_lib_socket_connect=yes
27106else
27107 echo "$as_me: failed program was:" >&5
27108sed 's/^/| /' conftest.$ac_ext >&5
27109
27110ac_cv_lib_socket_connect=no
27111fi
ac1cb8d3
VS
27112rm -f conftest.err conftest.$ac_objext \
27113 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27114LIBS=$ac_check_lib_save_LIBS
27115fi
27116echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27117echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27118if test $ac_cv_lib_socket_connect = yes; then
27119 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27120fi
27121
27122 fi
27123
27124 # Guillermo Gomez says -lposix is necessary on A/UX.
27125 echo "$as_me:$LINENO: checking for remove" >&5
27126echo $ECHO_N "checking for remove... $ECHO_C" >&6
27127if test "${ac_cv_func_remove+set}" = set; then
27128 echo $ECHO_N "(cached) $ECHO_C" >&6
27129else
27130 cat >conftest.$ac_ext <<_ACEOF
27131/* confdefs.h. */
27132_ACEOF
27133cat confdefs.h >>conftest.$ac_ext
27134cat >>conftest.$ac_ext <<_ACEOF
27135/* end confdefs.h. */
ac1cb8d3
VS
27136/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27138#define remove innocuous_remove
27139
a848cd7e
SC
27140/* System header to define __stub macros and hopefully few prototypes,
27141 which can conflict with char remove (); below.
27142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27143 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27144
a848cd7e
SC
27145#ifdef __STDC__
27146# include <limits.h>
27147#else
27148# include <assert.h>
27149#endif
ac1cb8d3
VS
27150
27151#undef remove
27152
a848cd7e
SC
27153/* Override any gcc2 internal prototype to avoid an error. */
27154#ifdef __cplusplus
27155extern "C"
27156{
27157#endif
27158/* We use char because int might match the return type of a gcc2
27159 builtin and then its argument prototype would still apply. */
27160char remove ();
27161/* The GNU C library defines this for functions which it implements
27162 to always fail with ENOSYS. Some functions are actually named
27163 something starting with __ and the normal name is an alias. */
27164#if defined (__stub_remove) || defined (__stub___remove)
27165choke me
27166#else
27167char (*f) () = remove;
27168#endif
27169#ifdef __cplusplus
27170}
27171#endif
27172
27173int
27174main ()
27175{
27176return f != remove;
27177 ;
27178 return 0;
27179}
27180_ACEOF
27181rm -f conftest.$ac_objext conftest$ac_exeext
27182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27183 (eval $ac_link) 2>conftest.er1
a848cd7e 27184 ac_status=$?
ac1cb8d3
VS
27185 grep -v '^ *+' conftest.er1 >conftest.err
27186 rm -f conftest.er1
27187 cat conftest.err >&5
a848cd7e
SC
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); } &&
fb00f58d
JS
27190 { ac_try='test -z "$ac_c_werror_flag"
27191 || test ! -s conftest.err'
ac1cb8d3
VS
27192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27193 (eval $ac_try) 2>&5
27194 ac_status=$?
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); }; } &&
27197 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199 (eval $ac_try) 2>&5
27200 ac_status=$?
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); }; }; then
27203 ac_cv_func_remove=yes
27204else
27205 echo "$as_me: failed program was:" >&5
27206sed 's/^/| /' conftest.$ac_ext >&5
27207
27208ac_cv_func_remove=no
27209fi
ac1cb8d3
VS
27210rm -f conftest.err conftest.$ac_objext \
27211 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27212fi
27213echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27214echo "${ECHO_T}$ac_cv_func_remove" >&6
27215
27216 if test $ac_cv_func_remove = no; then
27217 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27218echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27219if test "${ac_cv_lib_posix_remove+set}" = set; then
27220 echo $ECHO_N "(cached) $ECHO_C" >&6
27221else
27222 ac_check_lib_save_LIBS=$LIBS
27223LIBS="-lposix $LIBS"
27224cat >conftest.$ac_ext <<_ACEOF
27225/* confdefs.h. */
27226_ACEOF
27227cat confdefs.h >>conftest.$ac_ext
27228cat >>conftest.$ac_ext <<_ACEOF
27229/* end confdefs.h. */
27230
27231/* Override any gcc2 internal prototype to avoid an error. */
27232#ifdef __cplusplus
27233extern "C"
27234#endif
27235/* We use char because int might match the return type of a gcc2
27236 builtin and then its argument prototype would still apply. */
27237char remove ();
27238int
27239main ()
27240{
27241remove ();
27242 ;
27243 return 0;
27244}
27245_ACEOF
27246rm -f conftest.$ac_objext conftest$ac_exeext
27247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27248 (eval $ac_link) 2>conftest.er1
a848cd7e 27249 ac_status=$?
ac1cb8d3
VS
27250 grep -v '^ *+' conftest.er1 >conftest.err
27251 rm -f conftest.er1
27252 cat conftest.err >&5
a848cd7e
SC
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); } &&
fb00f58d
JS
27255 { ac_try='test -z "$ac_c_werror_flag"
27256 || test ! -s conftest.err'
ac1cb8d3
VS
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27259 ac_status=$?
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; } &&
27262 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264 (eval $ac_try) 2>&5
27265 ac_status=$?
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); }; }; then
27268 ac_cv_lib_posix_remove=yes
27269else
27270 echo "$as_me: failed program was:" >&5
27271sed 's/^/| /' conftest.$ac_ext >&5
27272
27273ac_cv_lib_posix_remove=no
27274fi
ac1cb8d3
VS
27275rm -f conftest.err conftest.$ac_objext \
27276 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27277LIBS=$ac_check_lib_save_LIBS
27278fi
27279echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27280echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27281if test $ac_cv_lib_posix_remove = yes; then
27282 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27283fi
27284
27285 fi
27286
27287 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27288 echo "$as_me:$LINENO: checking for shmat" >&5
27289echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27290if test "${ac_cv_func_shmat+set}" = set; then
27291 echo $ECHO_N "(cached) $ECHO_C" >&6
27292else
27293 cat >conftest.$ac_ext <<_ACEOF
27294/* confdefs.h. */
27295_ACEOF
27296cat confdefs.h >>conftest.$ac_ext
27297cat >>conftest.$ac_ext <<_ACEOF
27298/* end confdefs.h. */
ac1cb8d3
VS
27299/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27301#define shmat innocuous_shmat
27302
a848cd7e
SC
27303/* System header to define __stub macros and hopefully few prototypes,
27304 which can conflict with char shmat (); below.
27305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27306 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27307
a848cd7e
SC
27308#ifdef __STDC__
27309# include <limits.h>
27310#else
27311# include <assert.h>
27312#endif
ac1cb8d3
VS
27313
27314#undef shmat
27315
a848cd7e
SC
27316/* Override any gcc2 internal prototype to avoid an error. */
27317#ifdef __cplusplus
27318extern "C"
27319{
27320#endif
27321/* We use char because int might match the return type of a gcc2
27322 builtin and then its argument prototype would still apply. */
27323char shmat ();
27324/* The GNU C library defines this for functions which it implements
27325 to always fail with ENOSYS. Some functions are actually named
27326 something starting with __ and the normal name is an alias. */
27327#if defined (__stub_shmat) || defined (__stub___shmat)
27328choke me
27329#else
27330char (*f) () = shmat;
27331#endif
27332#ifdef __cplusplus
27333}
27334#endif
27335
27336int
27337main ()
27338{
27339return f != shmat;
27340 ;
27341 return 0;
27342}
27343_ACEOF
27344rm -f conftest.$ac_objext conftest$ac_exeext
27345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27346 (eval $ac_link) 2>conftest.er1
a848cd7e 27347 ac_status=$?
ac1cb8d3
VS
27348 grep -v '^ *+' conftest.er1 >conftest.err
27349 rm -f conftest.er1
27350 cat conftest.err >&5
a848cd7e
SC
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); } &&
fb00f58d
JS
27353 { ac_try='test -z "$ac_c_werror_flag"
27354 || test ! -s conftest.err'
ac1cb8d3
VS
27355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27356 (eval $ac_try) 2>&5
27357 ac_status=$?
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); }; } &&
27360 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27362 (eval $ac_try) 2>&5
27363 ac_status=$?
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); }; }; then
27366 ac_cv_func_shmat=yes
27367else
27368 echo "$as_me: failed program was:" >&5
27369sed 's/^/| /' conftest.$ac_ext >&5
27370
27371ac_cv_func_shmat=no
27372fi
ac1cb8d3
VS
27373rm -f conftest.err conftest.$ac_objext \
27374 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27375fi
27376echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27377echo "${ECHO_T}$ac_cv_func_shmat" >&6
27378
27379 if test $ac_cv_func_shmat = no; then
27380 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27381echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27382if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27383 echo $ECHO_N "(cached) $ECHO_C" >&6
27384else
27385 ac_check_lib_save_LIBS=$LIBS
27386LIBS="-lipc $LIBS"
27387cat >conftest.$ac_ext <<_ACEOF
27388/* confdefs.h. */
27389_ACEOF
27390cat confdefs.h >>conftest.$ac_ext
27391cat >>conftest.$ac_ext <<_ACEOF
27392/* end confdefs.h. */
27393
27394/* Override any gcc2 internal prototype to avoid an error. */
27395#ifdef __cplusplus
27396extern "C"
27397#endif
27398/* We use char because int might match the return type of a gcc2
27399 builtin and then its argument prototype would still apply. */
27400char shmat ();
27401int
27402main ()
27403{
27404shmat ();
27405 ;
27406 return 0;
27407}
27408_ACEOF
27409rm -f conftest.$ac_objext conftest$ac_exeext
27410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27411 (eval $ac_link) 2>conftest.er1
a848cd7e 27412 ac_status=$?
ac1cb8d3
VS
27413 grep -v '^ *+' conftest.er1 >conftest.err
27414 rm -f conftest.er1
27415 cat conftest.err >&5
a848cd7e
SC
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); } &&
fb00f58d
JS
27418 { ac_try='test -z "$ac_c_werror_flag"
27419 || test ! -s conftest.err'
ac1cb8d3
VS
27420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27421 (eval $ac_try) 2>&5
27422 ac_status=$?
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); }; } &&
27425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27427 (eval $ac_try) 2>&5
27428 ac_status=$?
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); }; }; then
27431 ac_cv_lib_ipc_shmat=yes
27432else
27433 echo "$as_me: failed program was:" >&5
27434sed 's/^/| /' conftest.$ac_ext >&5
27435
27436ac_cv_lib_ipc_shmat=no
27437fi
ac1cb8d3
VS
27438rm -f conftest.err conftest.$ac_objext \
27439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27440LIBS=$ac_check_lib_save_LIBS
27441fi
27442echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27443echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27444if test $ac_cv_lib_ipc_shmat = yes; then
27445 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27446fi
27447
27448 fi
27449 fi
27450
27451 # Check for libraries that X11R6 Xt/Xaw programs need.
27452 ac_save_LDFLAGS=$LDFLAGS
27453 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27454 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27455 # check for ICE first), but we must link in the order -lSM -lICE or
27456 # we get undefined symbols. So assume we have SM if we have ICE.
27457 # These have to be linked with before -lX11, unlike the other
27458 # libraries we check for below, so use a different variable.
27459 # John Interrante, Karl Berry
27460 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27461echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27462if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27463 echo $ECHO_N "(cached) $ECHO_C" >&6
27464else
27465 ac_check_lib_save_LIBS=$LIBS
27466LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27467cat >conftest.$ac_ext <<_ACEOF
27468/* confdefs.h. */
27469_ACEOF
27470cat confdefs.h >>conftest.$ac_ext
27471cat >>conftest.$ac_ext <<_ACEOF
27472/* end confdefs.h. */
27473
27474/* Override any gcc2 internal prototype to avoid an error. */
27475#ifdef __cplusplus
27476extern "C"
27477#endif
27478/* We use char because int might match the return type of a gcc2
27479 builtin and then its argument prototype would still apply. */
27480char IceConnectionNumber ();
27481int
27482main ()
27483{
27484IceConnectionNumber ();
27485 ;
27486 return 0;
27487}
27488_ACEOF
27489rm -f conftest.$ac_objext conftest$ac_exeext
27490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27491 (eval $ac_link) 2>conftest.er1
a848cd7e 27492 ac_status=$?
ac1cb8d3
VS
27493 grep -v '^ *+' conftest.er1 >conftest.err
27494 rm -f conftest.er1
27495 cat conftest.err >&5
a848cd7e
SC
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); } &&
fb00f58d
JS
27498 { ac_try='test -z "$ac_c_werror_flag"
27499 || test ! -s conftest.err'
ac1cb8d3
VS
27500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501 (eval $ac_try) 2>&5
27502 ac_status=$?
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; } &&
27505 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507 (eval $ac_try) 2>&5
27508 ac_status=$?
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); }; }; then
27511 ac_cv_lib_ICE_IceConnectionNumber=yes
27512else
27513 echo "$as_me: failed program was:" >&5
27514sed 's/^/| /' conftest.$ac_ext >&5
27515
27516ac_cv_lib_ICE_IceConnectionNumber=no
27517fi
ac1cb8d3
VS
27518rm -f conftest.err conftest.$ac_objext \
27519 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27520LIBS=$ac_check_lib_save_LIBS
27521fi
27522echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27523echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27524if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27525 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27526fi
27527
27528 LDFLAGS=$ac_save_LDFLAGS
27529
27530fi
27531
27532
27533 if test "$no_x" = "yes"; then
27534 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27535echo "$as_me: error: X11 not found" >&2;}
27536 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27537 fi
27538
74b84332
VS
27539 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27540 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27541 AFMINSTALL=afminstall
27542 COMPILED_X_PROGRAM=0
27543
74b84332
VS
27544 fi
27545
27546 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27547 if test "$wxUSE_NANOX" = "yes"; then
27548 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27549echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27550 if test "x$MICROWIN" = x ; then
27551 echo "$as_me:$LINENO: result: not found" >&5
27552echo "${ECHO_T}not found" >&6
27553 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27554echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27555 { (exit 1); exit 1; }; }
27556 else
27557 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27558echo "${ECHO_T}$MICROWIN" >&6
27559 cat >>confdefs.h <<\_ACEOF
27560#define wxUSE_NANOX 1
27561_ACEOF
27562
27563 fi
27564 fi
27565
27566 if test "$wxUSE_UNICODE" = "yes"; then
27567
27568 succeeded=no
27569
27570 if test -z "$PKG_CONFIG"; then
27571 # Extract the first word of "pkg-config", so it can be a program name with args.
27572set dummy pkg-config; ac_word=$2
27573echo "$as_me:$LINENO: checking for $ac_word" >&5
27574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27575if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27576 echo $ECHO_N "(cached) $ECHO_C" >&6
27577else
27578 case $PKG_CONFIG in
27579 [\\/]* | ?:[\\/]*)
27580 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27581 ;;
27582 *)
27583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27584for as_dir in $PATH
27585do
27586 IFS=$as_save_IFS
27587 test -z "$as_dir" && as_dir=.
27588 for ac_exec_ext in '' $ac_executable_extensions; do
27589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27590 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27592 break 2
27593 fi
27594done
27595done
27596
27597 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27598 ;;
27599esac
27600fi
27601PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27602
27603if test -n "$PKG_CONFIG"; then
27604 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27605echo "${ECHO_T}$PKG_CONFIG" >&6
27606else
27607 echo "$as_me:$LINENO: result: no" >&5
27608echo "${ECHO_T}no" >&6
27609fi
27610
27611 fi
27612
27613 if test "$PKG_CONFIG" = "no" ; then
27614 echo "*** The pkg-config script could not be found. Make sure it is"
27615 echo "*** in your path, or set the PKG_CONFIG environment variable"
27616 echo "*** to the full path to pkg-config."
27617 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27618 else
27619 PKG_CONFIG_MIN_VERSION=0.9.0
27620 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27621 echo "$as_me:$LINENO: checking for pangox" >&5
27622echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27623
27624 if $PKG_CONFIG --exists "pangox" ; then
27625 echo "$as_me:$LINENO: result: yes" >&5
27626echo "${ECHO_T}yes" >&6
27627 succeeded=yes
27628
27629 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27630echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27631 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27632 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27633echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27634
27635 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27636echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27637 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27638 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27639echo "${ECHO_T}$PANGOX_LIBS" >&6
27640 else
27641 PANGOX_CFLAGS=""
27642 PANGOX_LIBS=""
27643 ## If we have a custom action on failure, don't print errors, but
27644 ## do set a variable so people can do so.
27645 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27646
27647 fi
27648
27649
27650
27651 else
27652 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27653 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27654 fi
27655 fi
27656
27657 if test $succeeded = yes; then
27658
27659 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27660 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27661
27662 else
27663
27664 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27665echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27666 { (exit 1); exit 1; }; }
27667
27668
27669 fi
27670
27671
27672 succeeded=no
27673
27674 if test -z "$PKG_CONFIG"; then
27675 # Extract the first word of "pkg-config", so it can be a program name with args.
27676set dummy pkg-config; ac_word=$2
27677echo "$as_me:$LINENO: checking for $ac_word" >&5
27678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27679if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27680 echo $ECHO_N "(cached) $ECHO_C" >&6
27681else
27682 case $PKG_CONFIG in
27683 [\\/]* | ?:[\\/]*)
27684 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27685 ;;
27686 *)
27687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27688for as_dir in $PATH
27689do
27690 IFS=$as_save_IFS
27691 test -z "$as_dir" && as_dir=.
27692 for ac_exec_ext in '' $ac_executable_extensions; do
27693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27694 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27696 break 2
27697 fi
27698done
27699done
27700
27701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27702 ;;
27703esac
27704fi
27705PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27706
27707if test -n "$PKG_CONFIG"; then
27708 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27709echo "${ECHO_T}$PKG_CONFIG" >&6
27710else
27711 echo "$as_me:$LINENO: result: no" >&5
27712echo "${ECHO_T}no" >&6
27713fi
27714
27715 fi
27716
27717 if test "$PKG_CONFIG" = "no" ; then
27718 echo "*** The pkg-config script could not be found. Make sure it is"
27719 echo "*** in your path, or set the PKG_CONFIG environment variable"
27720 echo "*** to the full path to pkg-config."
27721 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27722 else
27723 PKG_CONFIG_MIN_VERSION=0.9.0
27724 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27725 echo "$as_me:$LINENO: checking for pangoft2" >&5
27726echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27727
27728 if $PKG_CONFIG --exists "pangoft2" ; then
27729 echo "$as_me:$LINENO: result: yes" >&5
27730echo "${ECHO_T}yes" >&6
27731 succeeded=yes
27732
27733 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27734echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27735 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27736 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27737echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27738
27739 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27740echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27741 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27742 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27743echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27744 else
27745 PANGOFT2_CFLAGS=""
27746 PANGOFT2_LIBS=""
27747 ## If we have a custom action on failure, don't print errors, but
27748 ## do set a variable so people can do so.
27749 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27750
27751 fi
27752
27753
27754
27755 else
27756 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27757 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27758 fi
27759 fi
27760
27761 if test $succeeded = yes; then
27762
27763 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27764 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27765
27766 else
27767
27768 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27769echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27770 wxUSE_PRINTING_ARCHITECTURE="no"
27771
27772
27773 fi
27774
27775
27776 succeeded=no
27777
27778 if test -z "$PKG_CONFIG"; then
27779 # Extract the first word of "pkg-config", so it can be a program name with args.
27780set dummy pkg-config; ac_word=$2
27781echo "$as_me:$LINENO: checking for $ac_word" >&5
27782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27783if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27784 echo $ECHO_N "(cached) $ECHO_C" >&6
27785else
27786 case $PKG_CONFIG in
27787 [\\/]* | ?:[\\/]*)
27788 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27789 ;;
27790 *)
27791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27792for as_dir in $PATH
27793do
27794 IFS=$as_save_IFS
27795 test -z "$as_dir" && as_dir=.
27796 for ac_exec_ext in '' $ac_executable_extensions; do
27797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27798 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27800 break 2
27801 fi
27802done
27803done
27804
27805 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27806 ;;
27807esac
27808fi
27809PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27810
27811if test -n "$PKG_CONFIG"; then
27812 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27813echo "${ECHO_T}$PKG_CONFIG" >&6
27814else
27815 echo "$as_me:$LINENO: result: no" >&5
27816echo "${ECHO_T}no" >&6
27817fi
27818
27819 fi
27820
27821 if test "$PKG_CONFIG" = "no" ; then
27822 echo "*** The pkg-config script could not be found. Make sure it is"
27823 echo "*** in your path, or set the PKG_CONFIG environment variable"
27824 echo "*** to the full path to pkg-config."
27825 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27826 else
27827 PKG_CONFIG_MIN_VERSION=0.9.0
27828 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27829 echo "$as_me:$LINENO: checking for pangoxft" >&5
27830echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27831
27832 if $PKG_CONFIG --exists "pangoxft" ; then
27833 echo "$as_me:$LINENO: result: yes" >&5
27834echo "${ECHO_T}yes" >&6
27835 succeeded=yes
27836
27837 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27838echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27839 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27840 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27841echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27842
27843 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27844echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27845 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27846 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27847echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27848 else
27849 PANGOXFT_CFLAGS=""
27850 PANGOXFT_LIBS=""
27851 ## If we have a custom action on failure, don't print errors, but
27852 ## do set a variable so people can do so.
27853 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27854
27855 fi
27856
27857
27858
27859 else
27860 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27861 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27862 fi
27863 fi
27864
27865 if test $succeeded = yes; then
27866
4ae1af05
MB
27867 cat >>confdefs.h <<\_ACEOF
27868#define HAVE_PANGO_XFT 1
27869_ACEOF
27870
a848cd7e
SC
27871 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27872 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27873
27874 else
27875
27876 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27877echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27878
27879
27880 fi
27881
304205f1
VS
27882 save_CFLAGS="$CFLAGS"
27883 save_LIBS="$LIBS"
27884 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27885 LIBS="$LIBS $PANGOX_LIBS"
27886
27887for ac_func in pango_font_family_is_monospace
27888do
27889as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27890echo "$as_me:$LINENO: checking for $ac_func" >&5
27891echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27892if eval "test \"\${$as_ac_var+set}\" = set"; then
27893 echo $ECHO_N "(cached) $ECHO_C" >&6
27894else
27895 cat >conftest.$ac_ext <<_ACEOF
27896/* confdefs.h. */
27897_ACEOF
27898cat confdefs.h >>conftest.$ac_ext
27899cat >>conftest.$ac_ext <<_ACEOF
27900/* end confdefs.h. */
27901/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27903#define $ac_func innocuous_$ac_func
27904
27905/* System header to define __stub macros and hopefully few prototypes,
27906 which can conflict with char $ac_func (); below.
27907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27908 <limits.h> exists even on freestanding compilers. */
27909
27910#ifdef __STDC__
27911# include <limits.h>
27912#else
27913# include <assert.h>
27914#endif
27915
27916#undef $ac_func
27917
27918/* Override any gcc2 internal prototype to avoid an error. */
27919#ifdef __cplusplus
27920extern "C"
27921{
27922#endif
27923/* We use char because int might match the return type of a gcc2
27924 builtin and then its argument prototype would still apply. */
27925char $ac_func ();
27926/* The GNU C library defines this for functions which it implements
27927 to always fail with ENOSYS. Some functions are actually named
27928 something starting with __ and the normal name is an alias. */
27929#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27930choke me
27931#else
27932char (*f) () = $ac_func;
27933#endif
27934#ifdef __cplusplus
27935}
27936#endif
27937
27938int
27939main ()
27940{
27941return f != $ac_func;
27942 ;
27943 return 0;
27944}
27945_ACEOF
27946rm -f conftest.$ac_objext conftest$ac_exeext
27947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27948 (eval $ac_link) 2>conftest.er1
27949 ac_status=$?
27950 grep -v '^ *+' conftest.er1 >conftest.err
27951 rm -f conftest.er1
27952 cat conftest.err >&5
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); } &&
fb00f58d
JS
27955 { ac_try='test -z "$ac_c_werror_flag"
27956 || test ! -s conftest.err'
304205f1
VS
27957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27958 (eval $ac_try) 2>&5
27959 ac_status=$?
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); }; } &&
27962 { ac_try='test -s conftest$ac_exeext'
27963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964 (eval $ac_try) 2>&5
27965 ac_status=$?
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; }; then
27968 eval "$as_ac_var=yes"
27969else
27970 echo "$as_me: failed program was:" >&5
27971sed 's/^/| /' conftest.$ac_ext >&5
27972
27973eval "$as_ac_var=no"
27974fi
27975rm -f conftest.err conftest.$ac_objext \
27976 conftest$ac_exeext conftest.$ac_ext
27977fi
27978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27979echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27980if test `eval echo '${'$as_ac_var'}'` = yes; then
27981 cat >>confdefs.h <<_ACEOF
27982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27983_ACEOF
27984
27985fi
27986done
27987
27988 CFLAGS="$save_CFLAGS"
27989 LIBS="$save_LIBS"
a848cd7e
SC
27990 fi
27991
27992 wxUSE_UNIVERSAL="yes"
27993
27994 if test "$wxUSE_NANOX" = "yes"; then
27995 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27996 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"
27997 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27998 else
27999 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28000 fi
28001
a848cd7e
SC
28002 TOOLKIT=X11
28003 GUIDIST=X11_DIST
28004 fi
28005
28006 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28007 if test "$wxUSE_UNICODE" = "yes"; then
28008 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28009echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28010 { (exit 1); exit 1; }; }
28011 fi
28012
74b84332
VS
28013 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28014echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28015
74b84332
VS
28016ac_find_includes=
28017for ac_dir in $SEARCH_INCLUDE /usr/include;
28018 do
28019 if test -f "$ac_dir/Xm/Xm.h"; then
28020 ac_find_includes=$ac_dir
28021 break
28022 fi
28023 done
a848cd7e 28024
74b84332
VS
28025 if test "$ac_find_includes" != "" ; then
28026 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28027echo "${ECHO_T}found in $ac_find_includes" >&6
28028
28029 if test "x$ac_find_includes" = "x/usr/include"; then
28030 ac_path_to_include=""
28031 else
28032 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28033 result=$?
28034 if test $result = 0; then
28035 ac_path_to_include=""
28036 else
28037 ac_path_to_include=" -I$ac_find_includes"
28038 fi
a848cd7e
SC
28039 fi
28040
74b84332
VS
28041 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28042 else
28043 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28044/* confdefs.h. */
28045_ACEOF
28046cat confdefs.h >>conftest.$ac_ext
28047cat >>conftest.$ac_ext <<_ACEOF
28048/* end confdefs.h. */
28049
74b84332
VS
28050 #include <Xm/Xm.h>
28051
a848cd7e
SC
28052int
28053main ()
28054{
28055
74b84332
VS
28056 int version;
28057 version = xmUseVersion;
28058
a848cd7e
SC
28059 ;
28060 return 0;
28061}
28062_ACEOF
74b84332
VS
28063rm -f conftest.$ac_objext
28064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28065 (eval $ac_compile) 2>conftest.er1
a848cd7e 28066 ac_status=$?
ac1cb8d3
VS
28067 grep -v '^ *+' conftest.er1 >conftest.err
28068 rm -f conftest.er1
28069 cat conftest.err >&5
a848cd7e
SC
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); } &&
fb00f58d
JS
28072 { ac_try='test -z "$ac_c_werror_flag"
28073 || test ! -s conftest.err'
ac1cb8d3
VS
28074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075 (eval $ac_try) 2>&5
28076 ac_status=$?
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; } &&
74b84332 28079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28081 (eval $ac_try) 2>&5
28082 ac_status=$?
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084 (exit $ac_status); }; }; then
74b84332
VS
28085
28086 echo "$as_me:$LINENO: result: found in default search path" >&5
28087echo "${ECHO_T}found in default search path" >&6
28088 COMPILED_X_PROGRAM=1
28089
a848cd7e
SC
28090else
28091 echo "$as_me: failed program was:" >&5
28092sed 's/^/| /' conftest.$ac_ext >&5
28093
a848cd7e 28094
74b84332
VS
28095 echo "$as_me:$LINENO: result: no" >&5
28096echo "${ECHO_T}no" >&6
28097 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
28098echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
28099 { (exit 1); exit 1; }; }
a848cd7e 28100
a848cd7e 28101
a848cd7e 28102fi
74b84332
VS
28103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28104 fi
28105
28106 if test "$COMPILED_X_PROGRAM" = 0; then
28107 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
28108echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28109
28110ac_find_libraries=
28111for ac_dir in $SEARCH_LIB /usr/lib;
28112 do
28113 for ac_extension in a so sl dylib; do
28114 if test -f "$ac_dir/libXm.$ac_extension"; then
28115 ac_find_libraries=$ac_dir
28116 break 2
a848cd7e 28117 fi
74b84332
VS
28118 done
28119 done
a848cd7e 28120
74b84332
VS
28121 if test "$ac_find_libraries" != "" ; then
28122 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28123echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 28124
74b84332
VS
28125
28126 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28127 result=$?
28128 if test $result = 0; then
28129 ac_path_to_link=""
a848cd7e 28130 else
74b84332
VS
28131 ac_path_to_link=" -L$ac_find_libraries"
28132 fi
28133
28134 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28135 else
28136 save_CFLAGS=$CFLAGS
28137 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28138
28139 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28140/* confdefs.h. */
28141_ACEOF
28142cat confdefs.h >>conftest.$ac_ext
28143cat >>conftest.$ac_ext <<_ACEOF
28144/* end confdefs.h. */
28145
74b84332
VS
28146 #include <Xm/Xm.h>
28147
a848cd7e
SC
28148int
28149main ()
28150{
74b84332
VS
28151
28152 int version;
28153 version = xmUseVersion;
28154
a848cd7e
SC
28155 ;
28156 return 0;
28157}
28158_ACEOF
74b84332
VS
28159rm -f conftest.$ac_objext
28160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28161 (eval $ac_compile) 2>conftest.er1
a848cd7e 28162 ac_status=$?
ac1cb8d3
VS
28163 grep -v '^ *+' conftest.er1 >conftest.err
28164 rm -f conftest.er1
28165 cat conftest.err >&5
a848cd7e
SC
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); } &&
fb00f58d
JS
28168 { ac_try='test -z "$ac_c_werror_flag"
28169 || test ! -s conftest.err'
ac1cb8d3
VS
28170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28171 (eval $ac_try) 2>&5
28172 ac_status=$?
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; } &&
74b84332 28175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28177 (eval $ac_try) 2>&5
28178 ac_status=$?
28179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); }; }; then
74b84332
VS
28181
28182 echo "$as_me:$LINENO: result: found in default search path" >&5
28183echo "${ECHO_T}found in default search path" >&6
28184 COMPILED_X_PROGRAM=1
28185
a848cd7e
SC
28186else
28187 echo "$as_me: failed program was:" >&5
28188sed 's/^/| /' conftest.$ac_ext >&5
28189
74b84332
VS
28190
28191 echo "$as_me:$LINENO: result: no" >&5
28192echo "${ECHO_T}no" >&6
28193 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28194echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28195 { (exit 1); exit 1; }; }
28196
28197
28198fi
28199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28200
28201 CFLAGS=$save_CFLAGS
28202 fi
28203 fi
28204
28205 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28206echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28207 libp_link=""
28208 libsm_ice_link=""
28209 libs_found=0
28210 for libp in "" " -lXp"; do
28211 if test "$libs_found" = "0"; then
28212 for libsm_ice in "" " -lSM -lICE"; do
28213 if test "$libs_found" = "0"; then
28214 save_LIBS="$LIBS"
28215 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28216 save_CFLAGS=$CFLAGS
28217 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28218
28219 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28220/* confdefs.h. */
28221_ACEOF
28222cat confdefs.h >>conftest.$ac_ext
28223cat >>conftest.$ac_ext <<_ACEOF
28224/* end confdefs.h. */
28225
74b84332
VS
28226 #include <Xm/Xm.h>
28227 #include <Xm/List.h>
28228
a848cd7e
SC
28229int
28230main ()
28231{
74b84332
VS
28232
28233 XmString string = NULL;
28234 Widget w = NULL;
28235 int position = 0;
28236 XmListAddItem(w, string, position);
28237
a848cd7e
SC
28238 ;
28239 return 0;
28240}
28241_ACEOF
28242rm -f conftest.$ac_objext conftest$ac_exeext
28243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28244 (eval $ac_link) 2>conftest.er1
a848cd7e 28245 ac_status=$?
ac1cb8d3
VS
28246 grep -v '^ *+' conftest.er1 >conftest.err
28247 rm -f conftest.er1
28248 cat conftest.err >&5
a848cd7e
SC
28249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); } &&
fb00f58d
JS
28251 { ac_try='test -z "$ac_c_werror_flag"
28252 || test ! -s conftest.err'
ac1cb8d3
VS
28253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28254 (eval $ac_try) 2>&5
28255 ac_status=$?
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); }; } &&
28258 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28260 (eval $ac_try) 2>&5
28261 ac_status=$?
28262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); }; }; then
28264
28265 libp_link="$libp"
28266 libsm_ice_link="$libsm_ice"
28267 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28268echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28269 libs_found=1
28270
28271else
28272 echo "$as_me: failed program was:" >&5
28273sed 's/^/| /' conftest.$ac_ext >&5
28274
28275
28276
28277fi
ac1cb8d3
VS
28278rm -f conftest.err conftest.$ac_objext \
28279 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28280
28281 LIBS="$save_LIBS"
28282 CFLAGS=$save_CFLAGS
28283 fi
28284 done
28285 fi
28286 done
28287
28288 if test "$libs_found" = "0"; then
28289 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28290echo "${ECHO_T}can't find the right libraries" >&6
28291 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28292echo "$as_me: error: can't link a simple motif program" >&2;}
28293 { (exit 1); exit 1; }; }
28294 fi
28295
28296 save_CFLAGS=$CFLAGS
28297 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28298 echo "$as_me:$LINENO: checking for Motif 2" >&5
28299echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28300 cat >conftest.$ac_ext <<_ACEOF
28301/* confdefs.h. */
28302_ACEOF
28303cat confdefs.h >>conftest.$ac_ext
28304cat >>conftest.$ac_ext <<_ACEOF
28305/* end confdefs.h. */
28306
28307 #include <Xm/Xm.h>
28308
28309int
28310main ()
28311{
28312
28313 #if XmVersion < 2000
28314 #error "Not Motif 2"
28315 #endif
28316
28317 ;
28318 return 0;
28319}
28320_ACEOF
28321rm -f conftest.$ac_objext
28322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28323 (eval $ac_compile) 2>conftest.er1
a848cd7e 28324 ac_status=$?
ac1cb8d3
VS
28325 grep -v '^ *+' conftest.er1 >conftest.err
28326 rm -f conftest.er1
28327 cat conftest.err >&5
a848cd7e
SC
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); } &&
fb00f58d
JS
28330 { ac_try='test -z "$ac_c_werror_flag"
28331 || test ! -s conftest.err'
ac1cb8d3
VS
28332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28333 (eval $ac_try) 2>&5
28334 ac_status=$?
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); }; } &&
28337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28339 (eval $ac_try) 2>&5
28340 ac_status=$?
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); }; }; then
28343
28344 cat >>confdefs.h <<\_ACEOF
28345#define __WXMOTIF20__ 1
28346_ACEOF
28347
28348 echo "$as_me:$LINENO: result: found" >&5
28349echo "${ECHO_T}found" >&6
28350
28351else
28352 echo "$as_me: failed program was:" >&5
28353sed 's/^/| /' conftest.$ac_ext >&5
28354
28355
28356 cat >>confdefs.h <<\_ACEOF
28357#define __WXMOTIF20__ 0
28358_ACEOF
28359
28360 echo "$as_me:$LINENO: result: not found" >&5
28361echo "${ECHO_T}not found" >&6
28362
28363fi
ac1cb8d3 28364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28365 CFLAGS=$save_CFLAGS
28366
28367 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28368 TOOLKIT=MOTIF
28369 GUIDIST=MOTIF_DIST
28370 fi
28371
74b84332 28372 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28373 if test "$wxUSE_LIBXPM" = "sys"; then
28374 echo "$as_me:$LINENO: checking for Xpm library" >&5
28375echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28376
28377ac_find_libraries=
28378for ac_dir in $SEARCH_LIB /usr/lib;
28379 do
28380 for ac_extension in a so sl dylib; do
28381 if test -f "$ac_dir/libXpm.$ac_extension"; then
28382 ac_find_libraries=$ac_dir
28383 break 2
28384 fi
28385 done
28386 done
28387
28388 if test "$ac_find_libraries" != "" ; then
28389
28390 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28391 result=$?
28392 if test $result = 0; then
28393 ac_path_to_link=""
28394 else
28395 ac_path_to_link=" -L$ac_find_libraries"
28396 fi
28397
28398 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28399 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28400echo "${ECHO_T}found at $ac_find_libraries" >&6
28401
28402 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28403echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28404if test "${wx_cv_x11_xpm_h+set}" = set; then
28405 echo $ECHO_N "(cached) $ECHO_C" >&6
28406else
28407
28408 save_CFLAGS=$CFLAGS
28409 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28410
28411 cat >conftest.$ac_ext <<_ACEOF
28412/* confdefs.h. */
28413_ACEOF
28414cat confdefs.h >>conftest.$ac_ext
28415cat >>conftest.$ac_ext <<_ACEOF
28416/* end confdefs.h. */
28417
28418 #include <X11/xpm.h>
28419
28420int
28421main ()
28422{
28423
28424 int version;
28425 version = XpmLibraryVersion();
28426
28427 ;
28428 return 0;
28429}
28430_ACEOF
28431rm -f conftest.$ac_objext
28432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28433 (eval $ac_compile) 2>conftest.er1
a848cd7e 28434 ac_status=$?
ac1cb8d3
VS
28435 grep -v '^ *+' conftest.er1 >conftest.err
28436 rm -f conftest.er1
28437 cat conftest.err >&5
a848cd7e
SC
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } &&
fb00f58d
JS
28440 { ac_try='test -z "$ac_c_werror_flag"
28441 || test ! -s conftest.err'
ac1cb8d3
VS
28442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28443 (eval $ac_try) 2>&5
28444 ac_status=$?
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); }; } &&
28447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449 (eval $ac_try) 2>&5
28450 ac_status=$?
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); }; }; then
28453 wx_cv_x11_xpm_h=yes
28454else
28455 echo "$as_me: failed program was:" >&5
28456sed 's/^/| /' conftest.$ac_ext >&5
28457
28458wx_cv_x11_xpm_h=no
28459
28460fi
ac1cb8d3 28461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28462
28463 CFLAGS=$save_CFLAGS
28464
28465
28466fi
28467echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28468echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28469
28470 if test $wx_cv_x11_xpm_h = "yes"; then
28471 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28472 cat >>confdefs.h <<\_ACEOF
28473#define wxHAVE_LIB_XPM 1
28474_ACEOF
28475
28476 else
28477 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28478echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28479 fi
28480 fi
28481
28482 fi
28483
28484 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28485echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28486if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28487 echo $ECHO_N "(cached) $ECHO_C" >&6
28488else
28489 ac_check_lib_save_LIBS=$LIBS
28490LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28491cat >conftest.$ac_ext <<_ACEOF
28492/* confdefs.h. */
28493_ACEOF
28494cat confdefs.h >>conftest.$ac_ext
28495cat >>conftest.$ac_ext <<_ACEOF
28496/* end confdefs.h. */
28497
28498/* Override any gcc2 internal prototype to avoid an error. */
28499#ifdef __cplusplus
28500extern "C"
28501#endif
28502/* We use char because int might match the return type of a gcc2
28503 builtin and then its argument prototype would still apply. */
28504char XShapeQueryExtension ();
28505int
28506main ()
28507{
28508XShapeQueryExtension ();
28509 ;
28510 return 0;
28511}
28512_ACEOF
28513rm -f conftest.$ac_objext conftest$ac_exeext
28514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28515 (eval $ac_link) 2>conftest.er1
a848cd7e 28516 ac_status=$?
ac1cb8d3
VS
28517 grep -v '^ *+' conftest.er1 >conftest.err
28518 rm -f conftest.er1
28519 cat conftest.err >&5
a848cd7e
SC
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); } &&
fb00f58d
JS
28522 { ac_try='test -z "$ac_c_werror_flag"
28523 || test ! -s conftest.err'
ac1cb8d3
VS
28524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28525 (eval $ac_try) 2>&5
28526 ac_status=$?
28527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528 (exit $ac_status); }; } &&
28529 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531 (eval $ac_try) 2>&5
28532 ac_status=$?
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; }; then
28535 ac_cv_lib_Xext_XShapeQueryExtension=yes
28536else
28537 echo "$as_me: failed program was:" >&5
28538sed 's/^/| /' conftest.$ac_ext >&5
28539
28540ac_cv_lib_Xext_XShapeQueryExtension=no
28541fi
ac1cb8d3
VS
28542rm -f conftest.err conftest.$ac_objext \
28543 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28544LIBS=$ac_check_lib_save_LIBS
28545fi
28546echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28547echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28548if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28549
28550 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28551 wxHAVE_XEXT_LIB=1
28552
28553fi
28554
28555
28556 if test "$wxHAVE_XEXT_LIB" = 1; then
28557 save_CFLAGS="$CFLAGS"
28558 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28559
28560 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28561echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28562 cat >conftest.$ac_ext <<_ACEOF
28563/* confdefs.h. */
28564_ACEOF
28565cat confdefs.h >>conftest.$ac_ext
28566cat >>conftest.$ac_ext <<_ACEOF
28567/* end confdefs.h. */
28568
28569 #include <X11/Xlib.h>
28570 #include <X11/extensions/shape.h>
28571
28572int
28573main ()
28574{
28575
28576 int dummy1, dummy2;
28577 XShapeQueryExtension((Display*)NULL,
28578 (int*)NULL, (int*)NULL);
28579
28580 ;
28581 return 0;
28582}
28583_ACEOF
28584rm -f conftest.$ac_objext
28585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28586 (eval $ac_compile) 2>conftest.er1
a848cd7e 28587 ac_status=$?
ac1cb8d3
VS
28588 grep -v '^ *+' conftest.er1 >conftest.err
28589 rm -f conftest.er1
28590 cat conftest.err >&5
a848cd7e
SC
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); } &&
fb00f58d
JS
28593 { ac_try='test -z "$ac_c_werror_flag"
28594 || test ! -s conftest.err'
ac1cb8d3
VS
28595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28596 (eval $ac_try) 2>&5
28597 ac_status=$?
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; } &&
28600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28602 (eval $ac_try) 2>&5
28603 ac_status=$?
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); }; }; then
28606
28607 cat >>confdefs.h <<\_ACEOF
28608#define HAVE_XSHAPE 1
28609_ACEOF
28610
28611 echo "$as_me:$LINENO: result: found" >&5
28612echo "${ECHO_T}found" >&6
28613
28614else
28615 echo "$as_me: failed program was:" >&5
28616sed 's/^/| /' conftest.$ac_ext >&5
28617
28618
28619 echo "$as_me:$LINENO: result: not found" >&5
28620echo "${ECHO_T}not found" >&6
28621
28622fi
ac1cb8d3 28623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28624 CFLAGS="$save_CFLAGS"
28625
28626 fi
28627 fi
28628
28629 if test "$wxUSE_MAC" = 1; then
28630 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28631echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28632 if test "$GCC" = yes; then
28633 echo "$as_me:$LINENO: result: gcc" >&5
28634echo "${ECHO_T}gcc" >&6
28635 CPPFLAGS_PASCAL="-fpascal-strings"
28636 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28637 echo "$as_me:$LINENO: result: xlc" >&5
28638echo "${ECHO_T}xlc" >&6
28639 CPPFLAGS_PASCAL="-qmacpstr"
28640 else
28641 echo "$as_me:$LINENO: result: none" >&5
28642echo "${ECHO_T}none" >&6
28643 fi
28644
1e9e8aba
DE
28645 if test "x$wxUSE_UNIX" = "xyes"; then
28646 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28647 else
28648 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28649 fi
a848cd7e 28650
a848cd7e
SC
28651 TOOLKIT=MAC
28652 GUIDIST=MACX_DIST
dd21ced8 28653 WXBASEPORT="_carbon"
a848cd7e
SC
28654 fi
28655
28656 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28657 TOOLKIT=COCOA
28658 GUIDIST=COCOA_DIST
28659 fi
28660
28661 if test "$wxUSE_PM" = 1; then
28662 TOOLKIT=PM
de59c161
RD
28663 GUIDIST=PM_DIST
28664 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28665echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28666if test "${wx_cv_spbcdata+set}" = set; then
28667 echo $ECHO_N "(cached) $ECHO_C" >&6
28668else
28669
28670 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28671/* confdefs.h. */
28672_ACEOF
28673cat confdefs.h >>conftest.$ac_ext
28674cat >>conftest.$ac_ext <<_ACEOF
28675/* end confdefs.h. */
28676
28677 #define INCL_PM
28678 #include <os2.h>
28679
28680int
28681main ()
28682{
28683
28684 SPBCDATA test;
28685
28686 ;
28687 return 0;
28688}
28689_ACEOF
28690rm -f conftest.$ac_objext
28691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28692 (eval $ac_compile) 2>conftest.er1
de59c161 28693 ac_status=$?
ac1cb8d3
VS
28694 grep -v '^ *+' conftest.er1 >conftest.err
28695 rm -f conftest.er1
28696 cat conftest.err >&5
de59c161
RD
28697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698 (exit $ac_status); } &&
fb00f58d
JS
28699 { ac_try='test -z "$ac_c_werror_flag"
28700 || test ! -s conftest.err'
ac1cb8d3
VS
28701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28702 (eval $ac_try) 2>&5
28703 ac_status=$?
28704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); }; } &&
28706 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28708 (eval $ac_try) 2>&5
28709 ac_status=$?
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); }; }; then
28712 wx_cv_spbcdata=yes
28713else
28714 echo "$as_me: failed program was:" >&5
28715sed 's/^/| /' conftest.$ac_ext >&5
28716
28717wx_cv_spbcdata=no
28718
28719fi
ac1cb8d3 28720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28721
28722
28723fi
28724echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28725echo "${ECHO_T}$wx_cv_spbcdata" >&6
28726
28727 if test $wx_cv_spbcdata = "yes"; then
28728 cat >>confdefs.h <<\_ACEOF
28729#define HAVE_SPBCDATA 1
28730_ACEOF
28731
28732 fi
a848cd7e
SC
28733 fi
28734
28735 if test "$TOOLKIT" = "PM" ; then
28736 TOOLKIT_DIR="os2"
28737 else
28738 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28739 fi
28740
a848cd7e 28741 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28742 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28743 WIDGET_SET=univ
a848cd7e
SC
28744 fi
28745
28746 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28747 DISTDIR="wx\$(TOOLKIT)"
28748else
28749 USE_GUI=0
28750
28751 TOOLKIT_DIR="base"
28752
28753 if test "$USE_WIN32" = 1 ; then
a848cd7e 28754 TOOLKIT="MSW"
a848cd7e
SC
28755 fi
28756
a848cd7e
SC
28757 GUIDIST="BASE_DIST"
28758 DISTDIR="wxBase"
28759fi
28760
28761
28762
28763
28764IODBC_C_SRC=""
28765
28766
28767if test "$TOOLKIT" != "MSW" ; then
28768
28769 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28770
28771 if test "${ac_cv_header_sql_h+set}" = set; then
28772 echo "$as_me:$LINENO: checking for sql.h" >&5
28773echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28774if test "${ac_cv_header_sql_h+set}" = set; then
28775 echo $ECHO_N "(cached) $ECHO_C" >&6
28776fi
28777echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28778echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28779else
28780 # Is the header compilable?
28781echo "$as_me:$LINENO: checking sql.h usability" >&5
28782echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28783cat >conftest.$ac_ext <<_ACEOF
28784/* confdefs.h. */
28785_ACEOF
28786cat confdefs.h >>conftest.$ac_ext
28787cat >>conftest.$ac_ext <<_ACEOF
28788/* end confdefs.h. */
28789$ac_includes_default
28790#include <sql.h>
28791_ACEOF
28792rm -f conftest.$ac_objext
28793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28794 (eval $ac_compile) 2>conftest.er1
a848cd7e 28795 ac_status=$?
ac1cb8d3
VS
28796 grep -v '^ *+' conftest.er1 >conftest.err
28797 rm -f conftest.er1
28798 cat conftest.err >&5
a848cd7e
SC
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); } &&
fb00f58d
JS
28801 { ac_try='test -z "$ac_c_werror_flag"
28802 || test ! -s conftest.err'
ac1cb8d3
VS
28803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28804 (eval $ac_try) 2>&5
28805 ac_status=$?
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); }; } &&
28808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28810 (eval $ac_try) 2>&5
28811 ac_status=$?
28812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28813 (exit $ac_status); }; }; then
28814 ac_header_compiler=yes
28815else
28816 echo "$as_me: failed program was:" >&5
28817sed 's/^/| /' conftest.$ac_ext >&5
28818
28819ac_header_compiler=no
28820fi
ac1cb8d3 28821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28822echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28823echo "${ECHO_T}$ac_header_compiler" >&6
28824
28825# Is the header present?
28826echo "$as_me:$LINENO: checking sql.h presence" >&5
28827echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28828cat >conftest.$ac_ext <<_ACEOF
28829/* confdefs.h. */
28830_ACEOF
28831cat confdefs.h >>conftest.$ac_ext
28832cat >>conftest.$ac_ext <<_ACEOF
28833/* end confdefs.h. */
28834#include <sql.h>
28835_ACEOF
28836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28838 ac_status=$?
28839 grep -v '^ *+' conftest.er1 >conftest.err
28840 rm -f conftest.er1
28841 cat conftest.err >&5
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); } >/dev/null; then
28844 if test -s conftest.err; then
28845 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28847 else
28848 ac_cpp_err=
28849 fi
28850else
28851 ac_cpp_err=yes
28852fi
28853if test -z "$ac_cpp_err"; then
28854 ac_header_preproc=yes
28855else
28856 echo "$as_me: failed program was:" >&5
28857sed 's/^/| /' conftest.$ac_ext >&5
28858
28859 ac_header_preproc=no
28860fi
28861rm -f conftest.err conftest.$ac_ext
28862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28863echo "${ECHO_T}$ac_header_preproc" >&6
28864
28865# So? What about this header?
ac1cb8d3
VS
28866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28867 yes:no: )
a848cd7e
SC
28868 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28869echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28870 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28871echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28872 ac_header_preproc=yes
a848cd7e 28873 ;;
ac1cb8d3 28874 no:yes:* )
a848cd7e
SC
28875 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28876echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28877 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28878echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28879 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28880echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28881 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28882echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28883 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28884echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28885 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28886echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28887 (
28888 cat <<\_ASBOX
ac1cb8d3
VS
28889## ----------------------------------------- ##
28890## Report this to wx-dev@lists.wxwidgets.org ##
28891## ----------------------------------------- ##
a848cd7e
SC
28892_ASBOX
28893 ) |
28894 sed "s/^/$as_me: WARNING: /" >&2
28895 ;;
28896esac
28897echo "$as_me:$LINENO: checking for sql.h" >&5
28898echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28899if test "${ac_cv_header_sql_h+set}" = set; then
28900 echo $ECHO_N "(cached) $ECHO_C" >&6
28901else
28902 ac_cv_header_sql_h=$ac_header_preproc
28903fi
28904echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28905echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28906
28907fi
28908if test $ac_cv_header_sql_h = yes; then
28909 found_sql_h=1
28910fi
28911
28912
28913 if test "x$found_sql_h" = "x1" ; then
28914 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28915echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28916if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28917 echo $ECHO_N "(cached) $ECHO_C" >&6
28918else
28919 ac_check_lib_save_LIBS=$LIBS
28920LIBS="-liodbc $LIBS"
28921cat >conftest.$ac_ext <<_ACEOF
28922/* confdefs.h. */
28923_ACEOF
28924cat confdefs.h >>conftest.$ac_ext
28925cat >>conftest.$ac_ext <<_ACEOF
28926/* end confdefs.h. */
28927
28928/* Override any gcc2 internal prototype to avoid an error. */
28929#ifdef __cplusplus
28930extern "C"
28931#endif
28932/* We use char because int might match the return type of a gcc2
28933 builtin and then its argument prototype would still apply. */
28934char SQLAllocEnv ();
28935int
28936main ()
28937{
28938SQLAllocEnv ();
28939 ;
28940 return 0;
28941}
28942_ACEOF
28943rm -f conftest.$ac_objext conftest$ac_exeext
28944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28945 (eval $ac_link) 2>conftest.er1
a848cd7e 28946 ac_status=$?
ac1cb8d3
VS
28947 grep -v '^ *+' conftest.er1 >conftest.err
28948 rm -f conftest.er1
28949 cat conftest.err >&5
a848cd7e
SC
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); } &&
fb00f58d
JS
28952 { ac_try='test -z "$ac_c_werror_flag"
28953 || test ! -s conftest.err'
ac1cb8d3
VS
28954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28955 (eval $ac_try) 2>&5
28956 ac_status=$?
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); }; } &&
28959 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28961 (eval $ac_try) 2>&5
28962 ac_status=$?
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); }; }; then
28965 ac_cv_lib_iodbc_SQLAllocEnv=yes
28966else
28967 echo "$as_me: failed program was:" >&5
28968sed 's/^/| /' conftest.$ac_ext >&5
28969
28970ac_cv_lib_iodbc_SQLAllocEnv=no
28971fi
ac1cb8d3
VS
28972rm -f conftest.err conftest.$ac_objext \
28973 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28974LIBS=$ac_check_lib_save_LIBS
28975fi
28976echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28977echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28978if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28979 ODBC_LINK=" -liodbc"
28980else
28981
28982 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28983echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28984if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28985 echo $ECHO_N "(cached) $ECHO_C" >&6
28986else
28987 ac_check_lib_save_LIBS=$LIBS
28988LIBS="-lunixodbc $LIBS"
28989cat >conftest.$ac_ext <<_ACEOF
28990/* confdefs.h. */
28991_ACEOF
28992cat confdefs.h >>conftest.$ac_ext
28993cat >>conftest.$ac_ext <<_ACEOF
28994/* end confdefs.h. */
28995
28996/* Override any gcc2 internal prototype to avoid an error. */
28997#ifdef __cplusplus
28998extern "C"
28999#endif
29000/* We use char because int might match the return type of a gcc2
29001 builtin and then its argument prototype would still apply. */
29002char SQLAllocEnv ();
29003int
29004main ()
29005{
29006SQLAllocEnv ();
29007 ;
29008 return 0;
29009}
29010_ACEOF
29011rm -f conftest.$ac_objext conftest$ac_exeext
29012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29013 (eval $ac_link) 2>conftest.er1
a848cd7e 29014 ac_status=$?
ac1cb8d3
VS
29015 grep -v '^ *+' conftest.er1 >conftest.err
29016 rm -f conftest.er1
29017 cat conftest.err >&5
a848cd7e
SC
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); } &&
fb00f58d
JS
29020 { ac_try='test -z "$ac_c_werror_flag"
29021 || test ! -s conftest.err'
ac1cb8d3
VS
29022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023 (eval $ac_try) 2>&5
29024 ac_status=$?
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); }; } &&
29027 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29029 (eval $ac_try) 2>&5
29030 ac_status=$?
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); }; }; then
29033 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29034else
29035 echo "$as_me: failed program was:" >&5
29036sed 's/^/| /' conftest.$ac_ext >&5
29037
29038ac_cv_lib_unixodbc_SQLAllocEnv=no
29039fi
ac1cb8d3
VS
29040rm -f conftest.err conftest.$ac_objext \
29041 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29042LIBS=$ac_check_lib_save_LIBS
29043fi
29044echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29045echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29046if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29047 ODBC_LINK=" -lunixodbc"
29048else
29049
29050 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29051echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29052if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29053 echo $ECHO_N "(cached) $ECHO_C" >&6
29054else
29055 ac_check_lib_save_LIBS=$LIBS
29056LIBS="-lodbc $LIBS"
29057cat >conftest.$ac_ext <<_ACEOF
29058/* confdefs.h. */
29059_ACEOF
29060cat confdefs.h >>conftest.$ac_ext
29061cat >>conftest.$ac_ext <<_ACEOF
29062/* end confdefs.h. */
29063
29064/* Override any gcc2 internal prototype to avoid an error. */
29065#ifdef __cplusplus
29066extern "C"
29067#endif
29068/* We use char because int might match the return type of a gcc2
29069 builtin and then its argument prototype would still apply. */
29070char SQLAllocEnv ();
29071int
29072main ()
29073{
29074SQLAllocEnv ();
29075 ;
29076 return 0;
29077}
29078_ACEOF
29079rm -f conftest.$ac_objext conftest$ac_exeext
29080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29081 (eval $ac_link) 2>conftest.er1
a848cd7e 29082 ac_status=$?
ac1cb8d3
VS
29083 grep -v '^ *+' conftest.er1 >conftest.err
29084 rm -f conftest.er1
29085 cat conftest.err >&5
a848cd7e
SC
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); } &&
fb00f58d
JS
29088 { ac_try='test -z "$ac_c_werror_flag"
29089 || test ! -s conftest.err'
ac1cb8d3
VS
29090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29091 (eval $ac_try) 2>&5
29092 ac_status=$?
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); }; } &&
29095 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29097 (eval $ac_try) 2>&5
29098 ac_status=$?
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; }; then
29101 ac_cv_lib_odbc_SQLAllocEnv=yes
29102else
29103 echo "$as_me: failed program was:" >&5
29104sed 's/^/| /' conftest.$ac_ext >&5
29105
29106ac_cv_lib_odbc_SQLAllocEnv=no
29107fi
ac1cb8d3
VS
29108rm -f conftest.err conftest.$ac_objext \
29109 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29110LIBS=$ac_check_lib_save_LIBS
29111fi
29112echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29113echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29114if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29115 ODBC_LINK=" -lodbc"
29116fi
29117
29118
29119fi
29120
29121
29122fi
29123
29124 fi
29125 if test "x$ODBC_LINK" = "x" ; then
29126 if test "$wxUSE_ODBC" = "sys" ; then
29127 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29128echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29129 { (exit 1); exit 1; }; }
29130 else
29131 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29132echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29133 wxUSE_ODBC=builtin
29134 fi
29135 else
29136 wxUSE_ODBC=sys
29137 fi
29138 fi
a848cd7e 29139
2da0c077
RD
29140 if test "$wxUSE_ODBC" = "builtin" ; then
29141 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29142#define wxUSE_BUILTIN_IODBC 1
29143_ACEOF
29144
a848cd7e
SC
29145 fi
29146fi
29147
2da0c077
RD
29148if test "$wxUSE_ODBC" != "no" ; then
29149 cat >>confdefs.h <<\_ACEOF
29150#define wxUSE_ODBC 1
29151_ACEOF
29152
29153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29154
29155 WXODBCFLAG="-D_IODBC_"
29156fi
a848cd7e 29157
01cb68df 29158
a848cd7e 29159if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29160 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29161 echo "$as_me:$LINENO: checking for Xinerama" >&5
29162echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29163
29164ac_find_libraries=
29165for ac_dir in $SEARCH_LIB /usr/lib;
29166 do
29167 for ac_extension in a so sl dylib; do
29168 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29169 ac_find_libraries=$ac_dir
29170 break 2
29171 fi
29172 done
29173 done
29174
29175 if test "$ac_find_libraries" != "" ; then
29176
29177 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29178 result=$?
29179 if test $result = 0; then
29180 ac_path_to_link=""
29181 else
29182 ac_path_to_link=" -L$ac_find_libraries"
29183 fi
29184
29185 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29186 LDFLAGS="$LDFLAGS $ac_path_to_link"
29187 fi
29188 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29189 echo "$as_me:$LINENO: result: yes" >&5
29190echo "${ECHO_T}yes" >&6
29191
29192 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29193echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29194
29195ac_find_libraries=
29196for ac_dir in $SEARCH_LIB /usr/lib;
29197 do
29198 for ac_extension in a so sl dylib; do
29199 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29200 ac_find_libraries=$ac_dir
29201 break 2
29202 fi
29203 done
29204 done
29205
29206 if test "$ac_find_libraries" != "" ; then
29207 echo "$as_me:$LINENO: result: yes" >&5
29208echo "${ECHO_T}yes" >&6
29209
29210for ac_header in X11/extensions/xf86vmode.h
29211do
29212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29213echo "$as_me:$LINENO: checking for $ac_header" >&5
29214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29215if eval "test \"\${$as_ac_Header+set}\" = set"; then
29216 echo $ECHO_N "(cached) $ECHO_C" >&6
29217else
29218 cat >conftest.$ac_ext <<_ACEOF
29219/* confdefs.h. */
29220_ACEOF
29221cat confdefs.h >>conftest.$ac_ext
29222cat >>conftest.$ac_ext <<_ACEOF
29223/* end confdefs.h. */
29224
29225 #if HAVE_X11_XLIB_H
29226 #include <X11/Xlib.h>
29227 #endif
29228
29229
29230#include <$ac_header>
29231_ACEOF
29232rm -f conftest.$ac_objext
29233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29234 (eval $ac_compile) 2>conftest.er1
a848cd7e 29235 ac_status=$?
ac1cb8d3
VS
29236 grep -v '^ *+' conftest.er1 >conftest.err
29237 rm -f conftest.er1
29238 cat conftest.err >&5
a848cd7e
SC
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); } &&
fb00f58d
JS
29241 { ac_try='test -z "$ac_c_werror_flag"
29242 || test ! -s conftest.err'
ac1cb8d3
VS
29243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29244 (eval $ac_try) 2>&5
29245 ac_status=$?
29246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; } &&
29248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29250 (eval $ac_try) 2>&5
29251 ac_status=$?
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); }; }; then
29254 eval "$as_ac_Header=yes"
29255else
29256 echo "$as_me: failed program was:" >&5
29257sed 's/^/| /' conftest.$ac_ext >&5
29258
29259eval "$as_ac_Header=no"
29260fi
ac1cb8d3 29261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29262fi
29263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29265if test `eval echo '${'$as_ac_Header'}'` = yes; then
29266 cat >>confdefs.h <<_ACEOF
29267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29268_ACEOF
29269
29270 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29271
29272fi
29273
29274done
29275
29276 else
29277 echo "$as_me:$LINENO: result: no" >&5
29278echo "${ECHO_T}no" >&6
29279 fi
29280
29281 else
29282 echo "$as_me:$LINENO: result: no" >&5
29283echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29284 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29285echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29286 wxUSE_DISPLAY="no"
29287 fi
01cb68df
RG
29288 elif test "$wxUSE_MSW" = 1; then
29289
29290
29291for ac_header in multimon.h ddraw.h
29292do
29293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29294echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29296if eval "test \"\${$as_ac_Header+set}\" = set"; then
29297 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29298else
5294a27e 29299 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29300/* confdefs.h. */
29301_ACEOF
29302cat confdefs.h >>conftest.$ac_ext
29303cat >>conftest.$ac_ext <<_ACEOF
29304/* end confdefs.h. */
5294a27e
VZ
29305#include <windows.h>
29306
01cb68df
RG
29307#include <$ac_header>
29308_ACEOF
29309rm -f conftest.$ac_objext
29310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29311 (eval $ac_compile) 2>conftest.er1
01cb68df 29312 ac_status=$?
ac1cb8d3
VS
29313 grep -v '^ *+' conftest.er1 >conftest.err
29314 rm -f conftest.er1
29315 cat conftest.err >&5
01cb68df
RG
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317 (exit $ac_status); } &&
fb00f58d
JS
29318 { ac_try='test -z "$ac_c_werror_flag"
29319 || test ! -s conftest.err'
ac1cb8d3
VS
29320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29321 (eval $ac_try) 2>&5
29322 ac_status=$?
29323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324 (exit $ac_status); }; } &&
29325 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29327 (eval $ac_try) 2>&5
29328 ac_status=$?
29329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 (exit $ac_status); }; }; then
5294a27e 29331 eval "$as_ac_Header=yes"
01cb68df
RG
29332else
29333 echo "$as_me: failed program was:" >&5
29334sed 's/^/| /' conftest.$ac_ext >&5
29335
5294a27e 29336eval "$as_ac_Header=no"
01cb68df 29337fi
ac1cb8d3 29338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29339fi
29340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29342if test `eval echo '${'$as_ac_Header'}'` = yes; then
29343 cat >>confdefs.h <<_ACEOF
29344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29345_ACEOF
29346
29347else
29348
5294a27e
VZ
29349 wxUSE_DISPLAY="no"
29350 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29351echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29352
29353fi
29354
29355done
29356
a848cd7e
SC
29357 fi
29358fi
29359
29360
29361USE_OPENGL=0
29362if test "$wxUSE_OPENGL" = "yes"; then
29363 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29364 OPENGL_LIBS="-framework OpenGL -framework AGL"
29365 elif test "$wxUSE_MSW" = 1; then
29366 OPENGL_LIBS="-lopengl32 -lglu32"
29367 else
29368
29369
29370ac_find_includes=
29371for ac_dir in $SEARCH_INCLUDE /usr/include;
29372 do
29373 if test -f "$ac_dir/GL/gl.h"; then
29374 ac_find_includes=$ac_dir
29375 break
29376 fi
29377 done
29378
29379 if test "$ac_find_includes" != "" ; then
29380 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29381echo "${ECHO_T}found in $ac_find_includes" >&6
29382
29383 if test "x$ac_find_includes" = "x/usr/include"; then
29384 ac_path_to_include=""
29385 else
29386 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29387 result=$?
29388 if test $result = 0; then
29389 ac_path_to_include=""
29390 else
29391 ac_path_to_include=" -I$ac_find_includes"
29392 fi
29393 fi
29394
29395 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29396 fi
29397
29398 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29399 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29400echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29401if test "${ac_cv_header_GL_gl_h+set}" = set; then
29402 echo $ECHO_N "(cached) $ECHO_C" >&6
29403fi
29404echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29405echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29406else
29407 # Is the header compilable?
29408echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29409echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29410cat >conftest.$ac_ext <<_ACEOF
29411/* confdefs.h. */
29412_ACEOF
29413cat confdefs.h >>conftest.$ac_ext
29414cat >>conftest.$ac_ext <<_ACEOF
29415/* end confdefs.h. */
29416$ac_includes_default
29417#include <GL/gl.h>
29418_ACEOF
29419rm -f conftest.$ac_objext
29420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29421 (eval $ac_compile) 2>conftest.er1
a848cd7e 29422 ac_status=$?
ac1cb8d3
VS
29423 grep -v '^ *+' conftest.er1 >conftest.err
29424 rm -f conftest.er1
29425 cat conftest.err >&5
a848cd7e
SC
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); } &&
fb00f58d
JS
29428 { ac_try='test -z "$ac_c_werror_flag"
29429 || test ! -s conftest.err'
ac1cb8d3
VS
29430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29431 (eval $ac_try) 2>&5
29432 ac_status=$?
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); }; } &&
29435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29437 (eval $ac_try) 2>&5
29438 ac_status=$?
29439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440 (exit $ac_status); }; }; then
29441 ac_header_compiler=yes
29442else
29443 echo "$as_me: failed program was:" >&5
29444sed 's/^/| /' conftest.$ac_ext >&5
29445
29446ac_header_compiler=no
29447fi
ac1cb8d3 29448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29450echo "${ECHO_T}$ac_header_compiler" >&6
29451
29452# Is the header present?
29453echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29454echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29455cat >conftest.$ac_ext <<_ACEOF
29456/* confdefs.h. */
29457_ACEOF
29458cat confdefs.h >>conftest.$ac_ext
29459cat >>conftest.$ac_ext <<_ACEOF
29460/* end confdefs.h. */
29461#include <GL/gl.h>
29462_ACEOF
29463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29465 ac_status=$?
29466 grep -v '^ *+' conftest.er1 >conftest.err
29467 rm -f conftest.er1
29468 cat conftest.err >&5
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); } >/dev/null; then
29471 if test -s conftest.err; then
29472 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29474 else
29475 ac_cpp_err=
29476 fi
29477else
29478 ac_cpp_err=yes
29479fi
29480if test -z "$ac_cpp_err"; then
29481 ac_header_preproc=yes
29482else
29483 echo "$as_me: failed program was:" >&5
29484sed 's/^/| /' conftest.$ac_ext >&5
29485
29486 ac_header_preproc=no
29487fi
29488rm -f conftest.err conftest.$ac_ext
29489echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29490echo "${ECHO_T}$ac_header_preproc" >&6
29491
29492# So? What about this header?
ac1cb8d3
VS
29493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29494 yes:no: )
a848cd7e
SC
29495 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29496echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29497 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29498echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29499 ac_header_preproc=yes
a848cd7e 29500 ;;
ac1cb8d3 29501 no:yes:* )
a848cd7e
SC
29502 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29503echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29504 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29505echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29506 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29507echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29508 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29509echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29510 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29511echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29512 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29513echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29514 (
29515 cat <<\_ASBOX
ac1cb8d3
VS
29516## ----------------------------------------- ##
29517## Report this to wx-dev@lists.wxwidgets.org ##
29518## ----------------------------------------- ##
a848cd7e
SC
29519_ASBOX
29520 ) |
29521 sed "s/^/$as_me: WARNING: /" >&2
29522 ;;
29523esac
29524echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29525echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29526if test "${ac_cv_header_GL_gl_h+set}" = set; then
29527 echo $ECHO_N "(cached) $ECHO_C" >&6
29528else
29529 ac_cv_header_GL_gl_h=$ac_header_preproc
29530fi
29531echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29532echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29533
29534fi
29535if test $ac_cv_header_GL_gl_h = yes; then
29536
29537 found_gl=0
29538
29539 echo "$as_me:$LINENO: checking for -lGL" >&5
29540echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29541
29542ac_find_libraries=
29543for ac_dir in $SEARCH_LIB /usr/lib;
29544 do
29545 for ac_extension in a so sl dylib; do
29546 if test -f "$ac_dir/libGL.$ac_extension"; then
29547 ac_find_libraries=$ac_dir
29548 break 2
29549 fi
29550 done
29551 done
29552
29553 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29554 echo "$as_me:$LINENO: result: yes" >&5
29555echo "${ECHO_T}yes" >&6
29556
a848cd7e
SC
29557
29558 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29559 result=$?
29560 if test $result = 0; then
29561 ac_path_to_link=""
29562 else
29563 ac_path_to_link=" -L$ac_find_libraries"
29564 fi
29565
29566 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29567 LDFLAGS_GL="$ac_path_to_link"
29568 fi
29569
69120ee4
VZ
29570 echo "$as_me:$LINENO: checking for -lGLU" >&5
29571echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29572
29573ac_find_libraries=
29574for ac_dir in $SEARCH_LIB /usr/lib;
29575 do
29576 for ac_extension in a so sl dylib; do
29577 if test -f "$ac_dir/libGLU.$ac_extension"; then
29578 ac_find_libraries=$ac_dir
29579 break 2
29580 fi
29581 done
29582 done
29583
29584 if test "$ac_find_libraries" != "" ; then
29585
29586 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29587 result=$?
29588 if test $result = 0; then
29589 ac_path_to_link=""
29590 else
29591 ac_path_to_link=" -L$ac_find_libraries"
29592 fi
29593
29594 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29595 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29596 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29597 fi
29598
29599 found_gl=1
29600 OPENGL_LIBS="-lGL -lGLU"
29601 echo "$as_me:$LINENO: result: yes" >&5
29602echo "${ECHO_T}yes" >&6
69120ee4
VZ
29603 else
29604 echo "$as_me:$LINENO: result: no" >&5
29605echo "${ECHO_T}no" >&6
a848cd7e 29606 fi
69120ee4
VZ
29607 else
29608 echo "$as_me:$LINENO: result: no" >&5
29609echo "${ECHO_T}no" >&6
a848cd7e
SC
29610 fi
29611
29612 if test "$found_gl" != 1; then
a848cd7e
SC
29613 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29614echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29615
29616ac_find_libraries=
29617for ac_dir in $SEARCH_LIB /usr/lib;
29618 do
29619 for ac_extension in a so sl dylib; do
29620 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29621 ac_find_libraries=$ac_dir
29622 break 2
29623 fi
29624 done
29625 done
29626
29627 if test "$ac_find_libraries" != "" ; then
29628
29629 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29630 result=$?
29631 if test $result = 0; then
29632 ac_path_to_link=""
29633 else
29634 ac_path_to_link=" -L$ac_find_libraries"
29635 fi
29636
29637 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29638 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29639 echo "$as_me:$LINENO: result: yes" >&5
29640echo "${ECHO_T}yes" >&6
29641 else
29642 echo "$as_me:$LINENO: result: no" >&5
29643echo "${ECHO_T}no" >&6
29644 fi
29645 fi
29646
29647fi
29648
29649
29650
29651 if test "x$OPENGL_LIBS" = "x"; then
29652 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29653echo "$as_me: error: OpenGL libraries not available" >&2;}
29654 { (exit 1); exit 1; }; }
29655 fi
29656 fi
29657
29658 if test "$wxUSE_OPENGL" = "yes"; then
29659 USE_OPENGL=1
29660 cat >>confdefs.h <<\_ACEOF
29661#define wxUSE_OPENGL 1
29662_ACEOF
29663
29664 cat >>confdefs.h <<\_ACEOF
29665#define wxUSE_GLCANVAS 1
29666_ACEOF
29667
29668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29669 fi
29670fi
29671
a848cd7e
SC
29672
29673if test -n "$TOOLKIT" ; then
29674 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29675fi
29676
a848cd7e
SC
29677
29678
29679if test "$wxUSE_SHARED" = "yes"; then
29680 case "${host}" in
29681 *-pc-msdosdjgpp )
29682 wxUSE_SHARED=no
29683 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29684echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29685 ;;
29686 esac
29687fi
29688
a848cd7e 29689if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29690
29691
29692 found_versioning=no
29693
29694
29695 if test $found_versioning = no ; then
29696 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29697echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29698if test "${wx_cv_version_script+set}" = set; then
29699 echo $ECHO_N "(cached) $ECHO_C" >&6
29700else
29701
29702 echo "VER_1 { *; };" >conftest.sym
29703 echo "int main() { return 0; }" >conftest.cpp
29704
29705 if { ac_try='
29706 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29707 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29709 (eval $ac_try) 2>&5
29710 ac_status=$?
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); }; } ; then
29713 if test -s conftest.stderr ; then
29714 wx_cv_version_script=no
29715 else
29716 wx_cv_version_script=yes
29717 fi
29718 else
29719 wx_cv_version_script=no
29720 fi
e5d4b470
MW
29721
29722 if test $wx_cv_version_script = yes
29723 then
29724 echo "struct B { virtual ~B() { } }; \
29725 struct D : public B { }; \
29726 void F() { D d; }" > conftest.cpp
29727
29728 if { ac_try='
29729 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29730 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29732 (eval $ac_try) 2>&5
29733 ac_status=$?
29734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); }; } &&
29736 { ac_try='
29737 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29738 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29740 (eval $ac_try) 2>&5
29741 ac_status=$?
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); }; }
29744 then
29745 if { ac_try='
29746 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29747 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29749 (eval $ac_try) 2>&5
29750 ac_status=$?
29751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752 (exit $ac_status); }; }
29753 then
29754 wx_cv_version_script=yes
29755 else
29756 wx_cv_version_script=no
29757 fi
29758 fi
29759 fi
29760
a848cd7e 29761 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29762 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29763
29764fi
29765echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29766echo "${ECHO_T}$wx_cv_version_script" >&6
29767 if test $wx_cv_version_script = yes ; then
29768 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29769 fi
29770 fi
29771
29772
29773 case "${host}" in
29774 *-*-linux* | *-*-gnu* )
29775 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29776 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29777 ;;
29778
29779 *-*-solaris2* )
29780 if test "$GCC" = yes ; then
29781 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29782
29783 saveLdflags="$LDFLAGS"
29784 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29785 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29786echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29787 cat >conftest.$ac_ext <<_ACEOF
29788/* confdefs.h. */
29789_ACEOF
29790cat confdefs.h >>conftest.$ac_ext
29791cat >>conftest.$ac_ext <<_ACEOF
29792/* end confdefs.h. */
29793
29794int
29795main ()
29796{
29797
29798 ;
29799 return 0;
29800}
29801_ACEOF
29802rm -f conftest.$ac_objext conftest$ac_exeext
29803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29804 (eval $ac_link) 2>conftest.er1
a848cd7e 29805 ac_status=$?
ac1cb8d3
VS
29806 grep -v '^ *+' conftest.er1 >conftest.err
29807 rm -f conftest.er1
29808 cat conftest.err >&5
a848cd7e
SC
29809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810 (exit $ac_status); } &&
fb00f58d
JS
29811 { ac_try='test -z "$ac_c_werror_flag"
29812 || test ! -s conftest.err'
ac1cb8d3
VS
29813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29814 (eval $ac_try) 2>&5
29815 ac_status=$?
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); }; } &&
29818 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29820 (eval $ac_try) 2>&5
29821 ac_status=$?
29822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29823 (exit $ac_status); }; }; then
29824
29825 echo "$as_me:$LINENO: result: yes" >&5
29826echo "${ECHO_T}yes" >&6
29827 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29828 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29829
29830else
29831 echo "$as_me: failed program was:" >&5
29832sed 's/^/| /' conftest.$ac_ext >&5
29833
29834
29835 echo "$as_me:$LINENO: result: no" >&5
29836echo "${ECHO_T}no" >&6
29837 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29838echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29839 LDFLAGS="$saveLdflags -Wl,-R,/"
29840 cat >conftest.$ac_ext <<_ACEOF
29841/* confdefs.h. */
29842_ACEOF
29843cat confdefs.h >>conftest.$ac_ext
29844cat >>conftest.$ac_ext <<_ACEOF
29845/* end confdefs.h. */
29846
29847int
29848main ()
29849{
29850
29851 ;
29852 return 0;
29853}
29854_ACEOF
29855rm -f conftest.$ac_objext conftest$ac_exeext
29856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29857 (eval $ac_link) 2>conftest.er1
a848cd7e 29858 ac_status=$?
ac1cb8d3
VS
29859 grep -v '^ *+' conftest.er1 >conftest.err
29860 rm -f conftest.er1
29861 cat conftest.err >&5
a848cd7e
SC
29862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29863 (exit $ac_status); } &&
fb00f58d
JS
29864 { ac_try='test -z "$ac_c_werror_flag"
29865 || test ! -s conftest.err'
ac1cb8d3
VS
29866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29867 (eval $ac_try) 2>&5
29868 ac_status=$?
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); }; } &&
29871 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29873 (eval $ac_try) 2>&5
29874 ac_status=$?
29875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876 (exit $ac_status); }; }; then
29877
ffa0583f 29878 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29879echo "${ECHO_T}yes" >&6
ffa0583f
RL
29880 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29881 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29882
a848cd7e
SC
29883else
29884 echo "$as_me: failed program was:" >&5
29885sed 's/^/| /' conftest.$ac_ext >&5
29886
29887
29888 echo "$as_me:$LINENO: result: no" >&5
29889echo "${ECHO_T}no" >&6
29890
29891fi
ac1cb8d3
VS
29892rm -f conftest.err conftest.$ac_objext \
29893 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29894
29895fi
ac1cb8d3
VS
29896rm -f conftest.err conftest.$ac_objext \
29897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29898 LDFLAGS="$saveLdflags"
29899 else
a848cd7e 29900 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29901 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29902 fi
29903 ;;
29904
29905 powerpc-*-darwin* )
29906 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29907 cat <<EOF >change-install-names
29908#!/bin/sh
29909libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29910inst_cmd="install_name_tool "
29911for i in \${libnames} ; do
29912 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29913done
29914\${inst_cmd} \${3}
29915EOF
29916 chmod +x change-install-names
29917 ;;
29918
29919 *-*-cygwin* | *-*-mingw32* )
29920 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29921 ;;
29922
81f90336
MW
29923 *-*-hpux* )
29924 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29925 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29926 ;;
29927
a848cd7e 29928 esac
ceec2216 29929
ffa0583f
RL
29930 if test $wxUSE_RPATH = "no"; then
29931 SAMPLES_RPATH_FLAG=''
29932 SAMPLES_RPATH_POSTLINK=''
29933 WXCONFIG_RPATH=''
29934 fi
29935
29936 SHARED=1
29937
29938else
29939
ceec2216
RL
29940 config_linkage_component="-static"
29941 SHARED=0
ffa0583f 29942
ceec2216 29943fi
a848cd7e 29944
a848cd7e 29945
ceec2216
RL
29946UNICODE=0
29947lib_unicode_suffix=
29948WX_CHARTYPE="ansi"
29949if test "$wxUSE_UNICODE" = "yes"; then
29950 lib_unicode_suffix=u
29951 WX_CHARTYPE="unicode"
29952 UNICODE=1
a848cd7e
SC
29953fi
29954
ceec2216
RL
29955lib_debug_suffix=
29956WX_DEBUGTYPE="release"
29957DEBUG_FLAG=0
29958if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29959 lib_debug_suffix=d
29960 WX_DEBUGTYPE="debug"
29961 DEBUG_FLAG=1
29962fi
a848cd7e 29963
ceec2216
RL
29964WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29965WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29966
ceec2216
RL
29967DEBUG_INFO=0
29968if test "$wxUSE_DEBUG_INFO" = "yes"; then
29969 DEBUG_INFO=1
29970fi
a848cd7e 29971
ceec2216 29972WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29973
ceec2216 29974TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29975
ceec2216 29976TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29977
ceec2216
RL
29978if test "$cross_compiling" = "yes"; then
29979 HOST_SUFFIX="-$host_alias"
29980 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29981 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29982fi
29983
dd21ced8 29984WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29985WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29986
29987
29988
1d1af5ea
DE
29989if test "$wxUSE_COCOA" = 1; then
29990
29991
29992 ac_ext=c
29993ac_cpp='$CPP $CPPFLAGS'
29994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29996ac_compiler_gnu=$ac_cv_c_compiler_gnu
29997
29998ac_ext=m
29999
30000 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30001echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30002 cat >conftest.$ac_ext <<_ACEOF
30003/* confdefs.h. */
30004_ACEOF
30005cat confdefs.h >>conftest.$ac_ext
30006cat >>conftest.$ac_ext <<_ACEOF
30007/* end confdefs.h. */
30008#include <AppKit/NSEvent.h>
30009#include <CoreFoundation/CoreFoundation.h>
30010
30011int
30012main ()
30013{
30014
30015 ;
30016 return 0;
30017}
30018_ACEOF
30019rm -f conftest.$ac_objext
30020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30021 (eval $ac_compile) 2>conftest.er1
30022 ac_status=$?
30023 grep -v '^ *+' conftest.er1 >conftest.err
30024 rm -f conftest.er1
30025 cat conftest.err >&5
30026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); } &&
fb00f58d
JS
30028 { ac_try='test -z "$ac_c_werror_flag"
30029 || test ! -s conftest.err'
1d1af5ea
DE
30030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30031 (eval $ac_try) 2>&5
30032 ac_status=$?
30033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034 (exit $ac_status); }; } &&
30035 { ac_try='test -s conftest.$ac_objext'
30036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30037 (eval $ac_try) 2>&5
30038 ac_status=$?
30039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040 (exit $ac_status); }; }; then
30041 echo "$as_me:$LINENO: result: no" >&5
30042echo "${ECHO_T}no" >&6
30043else
30044 echo "$as_me: failed program was:" >&5
30045sed 's/^/| /' conftest.$ac_ext >&5
30046
30047echo "$as_me:$LINENO: result: yes" >&5
30048echo "${ECHO_T}yes" >&6
30049 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30050echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30051 cat >conftest.$ac_ext <<_ACEOF
30052/* confdefs.h. */
30053_ACEOF
30054cat confdefs.h >>conftest.$ac_ext
30055cat >>conftest.$ac_ext <<_ACEOF
30056/* end confdefs.h. */
30057#define __Point__ 1
30058#include <AppKit/NSEvent.h>
30059#include <CoreFoundation/CoreFoundation.h>
30060
30061int
30062main ()
30063{
30064
30065 ;
30066 return 0;
30067}
30068_ACEOF
30069rm -f conftest.$ac_objext
30070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30071 (eval $ac_compile) 2>conftest.er1
30072 ac_status=$?
30073 grep -v '^ *+' conftest.er1 >conftest.err
30074 rm -f conftest.er1
30075 cat conftest.err >&5
30076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077 (exit $ac_status); } &&
fb00f58d
JS
30078 { ac_try='test -z "$ac_c_werror_flag"
30079 || test ! -s conftest.err'
1d1af5ea
DE
30080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30081 (eval $ac_try) 2>&5
30082 ac_status=$?
30083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084 (exit $ac_status); }; } &&
30085 { ac_try='test -s conftest.$ac_objext'
30086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30087 (eval $ac_try) 2>&5
30088 ac_status=$?
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); }; }; then
30091 echo "$as_me:$LINENO: result: yes" >&5
30092echo "${ECHO_T}yes" >&6
30093 cat >>confdefs.h <<\_ACEOF
30094#define __Point__ 1
30095_ACEOF
30096
30097
30098else
30099 echo "$as_me: failed program was:" >&5
30100sed 's/^/| /' conftest.$ac_ext >&5
30101
30102{ { echo "$as_me:$LINENO: error: no
30103See \`config.log' for more details." >&5
30104echo "$as_me: error: no
30105See \`config.log' for more details." >&2;}
30106 { (exit 1); exit 1; }; }
30107
30108fi
30109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30110
30111fi
30112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30113 ac_ext=c
30114ac_cpp='$CPP $CPPFLAGS'
30115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30117ac_compiler_gnu=$ac_cv_c_compiler_gnu
30118
30119fi
30120
a848cd7e 30121if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30122 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30123 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30124
a848cd7e 30125 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30126
30127 # Extract the first word of "Rez", so it can be a program name with args.
30128set dummy Rez; ac_word=$2
30129echo "$as_me:$LINENO: checking for $ac_word" >&5
30130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30131if test "${ac_cv_prog_RESCOMP+set}" = set; then
30132 echo $ECHO_N "(cached) $ECHO_C" >&6
30133else
30134 if test -n "$RESCOMP"; then
30135 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30136else
30137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30138for as_dir in $PATH
30139do
30140 IFS=$as_save_IFS
30141 test -z "$as_dir" && as_dir=.
30142 for ac_exec_ext in '' $ac_executable_extensions; do
30143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30144 ac_cv_prog_RESCOMP="Rez"
30145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30146 break 2
30147 fi
30148done
30149done
30150
30151 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30152fi
30153fi
30154RESCOMP=$ac_cv_prog_RESCOMP
30155if test -n "$RESCOMP"; then
30156 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30157echo "${ECHO_T}$RESCOMP" >&6
30158else
30159 echo "$as_me:$LINENO: result: no" >&5
30160echo "${ECHO_T}no" >&6
30161fi
30162
30163 # Extract the first word of "DeRez", so it can be a program name with args.
30164set dummy DeRez; ac_word=$2
30165echo "$as_me:$LINENO: checking for $ac_word" >&5
30166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30167if test "${ac_cv_prog_DEREZ+set}" = set; then
30168 echo $ECHO_N "(cached) $ECHO_C" >&6
30169else
30170 if test -n "$DEREZ"; then
30171 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30172else
30173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30174for as_dir in $PATH
30175do
30176 IFS=$as_save_IFS
30177 test -z "$as_dir" && as_dir=.
30178 for ac_exec_ext in '' $ac_executable_extensions; do
30179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30180 ac_cv_prog_DEREZ="DeRez"
30181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30182 break 2
30183 fi
30184done
30185done
30186
30187 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30188fi
30189fi
30190DEREZ=$ac_cv_prog_DEREZ
30191if test -n "$DEREZ"; then
30192 echo "$as_me:$LINENO: result: $DEREZ" >&5
30193echo "${ECHO_T}$DEREZ" >&6
30194else
30195 echo "$as_me:$LINENO: result: no" >&5
30196echo "${ECHO_T}no" >&6
30197fi
30198
30199 # Extract the first word of "SetFile", so it can be a program name with args.
30200set dummy SetFile; ac_word=$2
30201echo "$as_me:$LINENO: checking for $ac_word" >&5
30202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30203if test "${ac_cv_prog_SETFILE+set}" = set; then
30204 echo $ECHO_N "(cached) $ECHO_C" >&6
30205else
30206 if test -n "$SETFILE"; then
30207 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30208else
30209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30210for as_dir in $PATH
30211do
30212 IFS=$as_save_IFS
30213 test -z "$as_dir" && as_dir=.
30214 for ac_exec_ext in '' $ac_executable_extensions; do
30215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30216 ac_cv_prog_SETFILE="SetFile"
30217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30218 break 2
30219 fi
30220done
30221done
30222
30223 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30224fi
30225fi
30226SETFILE=$ac_cv_prog_SETFILE
30227if test -n "$SETFILE"; then
30228 echo "$as_me:$LINENO: result: $SETFILE" >&5
30229echo "${ECHO_T}$SETFILE" >&6
30230else
30231 echo "$as_me:$LINENO: result: no" >&5
30232echo "${ECHO_T}no" >&6
30233fi
30234
30235
30236 MACSETFILE="\$(SETFILE)"
30237
30238 if test "$wxUSE_MAC" = 1; then
1a79f136 30239 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30240
1a79f136 30241 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30242 else
30243 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30244 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30245 fi
30246else
ffa0583f
RL
30247 MACSETFILE="@true"
30248 MACRESWXCONFIG="@true"
a848cd7e
SC
30249
30250 if test "$wxUSE_PM" = 1; then
30251 MACRESCOMP="emxbind -ep"
30252 else
ffa0583f 30253 MACRESCOMP="@true"
a848cd7e
SC
30254 fi
30255fi
30256
30257
30258
30259echo "$as_me:$LINENO: checking for mode_t" >&5
30260echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30261if test "${ac_cv_type_mode_t+set}" = set; then
30262 echo $ECHO_N "(cached) $ECHO_C" >&6
30263else
30264 cat >conftest.$ac_ext <<_ACEOF
30265/* confdefs.h. */
30266_ACEOF
30267cat confdefs.h >>conftest.$ac_ext
30268cat >>conftest.$ac_ext <<_ACEOF
30269/* end confdefs.h. */
30270$ac_includes_default
30271int
30272main ()
30273{
30274if ((mode_t *) 0)
30275 return 0;
30276if (sizeof (mode_t))
30277 return 0;
30278 ;
30279 return 0;
30280}
30281_ACEOF
30282rm -f conftest.$ac_objext
30283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30284 (eval $ac_compile) 2>conftest.er1
a848cd7e 30285 ac_status=$?
ac1cb8d3
VS
30286 grep -v '^ *+' conftest.er1 >conftest.err
30287 rm -f conftest.er1
30288 cat conftest.err >&5
a848cd7e
SC
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); } &&
fb00f58d
JS
30291 { ac_try='test -z "$ac_c_werror_flag"
30292 || test ! -s conftest.err'
ac1cb8d3
VS
30293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30294 (eval $ac_try) 2>&5
30295 ac_status=$?
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); }; } &&
30298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30300 (eval $ac_try) 2>&5
30301 ac_status=$?
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); }; }; then
30304 ac_cv_type_mode_t=yes
30305else
30306 echo "$as_me: failed program was:" >&5
30307sed 's/^/| /' conftest.$ac_ext >&5
30308
30309ac_cv_type_mode_t=no
30310fi
ac1cb8d3 30311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30312fi
30313echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30314echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30315if test $ac_cv_type_mode_t = yes; then
30316 :
30317else
30318
30319cat >>confdefs.h <<_ACEOF
30320#define mode_t int
30321_ACEOF
30322
30323fi
30324
30325echo "$as_me:$LINENO: checking for off_t" >&5
30326echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30327if test "${ac_cv_type_off_t+set}" = set; then
30328 echo $ECHO_N "(cached) $ECHO_C" >&6
30329else
30330 cat >conftest.$ac_ext <<_ACEOF
30331/* confdefs.h. */
30332_ACEOF
30333cat confdefs.h >>conftest.$ac_ext
30334cat >>conftest.$ac_ext <<_ACEOF
30335/* end confdefs.h. */
30336$ac_includes_default
30337int
30338main ()
30339{
30340if ((off_t *) 0)
30341 return 0;
30342if (sizeof (off_t))
30343 return 0;
30344 ;
30345 return 0;
30346}
30347_ACEOF
30348rm -f conftest.$ac_objext
30349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30350 (eval $ac_compile) 2>conftest.er1
a848cd7e 30351 ac_status=$?
ac1cb8d3
VS
30352 grep -v '^ *+' conftest.er1 >conftest.err
30353 rm -f conftest.er1
30354 cat conftest.err >&5
a848cd7e
SC
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); } &&
fb00f58d
JS
30357 { ac_try='test -z "$ac_c_werror_flag"
30358 || test ! -s conftest.err'
ac1cb8d3
VS
30359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30360 (eval $ac_try) 2>&5
30361 ac_status=$?
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); }; } &&
30364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30366 (eval $ac_try) 2>&5
30367 ac_status=$?
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); }; }; then
30370 ac_cv_type_off_t=yes
30371else
30372 echo "$as_me: failed program was:" >&5
30373sed 's/^/| /' conftest.$ac_ext >&5
30374
30375ac_cv_type_off_t=no
30376fi
ac1cb8d3 30377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30378fi
30379echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30380echo "${ECHO_T}$ac_cv_type_off_t" >&6
30381if test $ac_cv_type_off_t = yes; then
30382 :
30383else
30384
30385cat >>confdefs.h <<_ACEOF
30386#define off_t long
30387_ACEOF
30388
30389fi
30390
30391echo "$as_me:$LINENO: checking for pid_t" >&5
30392echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30393if test "${ac_cv_type_pid_t+set}" = set; then
30394 echo $ECHO_N "(cached) $ECHO_C" >&6
30395else
30396 cat >conftest.$ac_ext <<_ACEOF
30397/* confdefs.h. */
30398_ACEOF
30399cat confdefs.h >>conftest.$ac_ext
30400cat >>conftest.$ac_ext <<_ACEOF
30401/* end confdefs.h. */
30402$ac_includes_default
30403int
30404main ()
30405{
30406if ((pid_t *) 0)
30407 return 0;
30408if (sizeof (pid_t))
30409 return 0;
30410 ;
30411 return 0;
30412}
30413_ACEOF
30414rm -f conftest.$ac_objext
30415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30416 (eval $ac_compile) 2>conftest.er1
a848cd7e 30417 ac_status=$?
ac1cb8d3
VS
30418 grep -v '^ *+' conftest.er1 >conftest.err
30419 rm -f conftest.er1
30420 cat conftest.err >&5
a848cd7e
SC
30421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422 (exit $ac_status); } &&
fb00f58d
JS
30423 { ac_try='test -z "$ac_c_werror_flag"
30424 || test ! -s conftest.err'
ac1cb8d3
VS
30425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30426 (eval $ac_try) 2>&5
30427 ac_status=$?
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); }; } &&
30430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30432 (eval $ac_try) 2>&5
30433 ac_status=$?
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); }; }; then
30436 ac_cv_type_pid_t=yes
30437else
30438 echo "$as_me: failed program was:" >&5
30439sed 's/^/| /' conftest.$ac_ext >&5
30440
30441ac_cv_type_pid_t=no
30442fi
ac1cb8d3 30443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30444fi
30445echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30446echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30447if test $ac_cv_type_pid_t = yes; then
30448 :
30449else
30450
30451cat >>confdefs.h <<_ACEOF
30452#define pid_t int
30453_ACEOF
30454
30455fi
30456
30457echo "$as_me:$LINENO: checking for size_t" >&5
30458echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30459if test "${ac_cv_type_size_t+set}" = set; then
30460 echo $ECHO_N "(cached) $ECHO_C" >&6
30461else
30462 cat >conftest.$ac_ext <<_ACEOF
30463/* confdefs.h. */
30464_ACEOF
30465cat confdefs.h >>conftest.$ac_ext
30466cat >>conftest.$ac_ext <<_ACEOF
30467/* end confdefs.h. */
30468$ac_includes_default
30469int
30470main ()
30471{
30472if ((size_t *) 0)
30473 return 0;
30474if (sizeof (size_t))
30475 return 0;
30476 ;
30477 return 0;
30478}
30479_ACEOF
30480rm -f conftest.$ac_objext
30481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30482 (eval $ac_compile) 2>conftest.er1
a848cd7e 30483 ac_status=$?
ac1cb8d3
VS
30484 grep -v '^ *+' conftest.er1 >conftest.err
30485 rm -f conftest.er1
30486 cat conftest.err >&5
a848cd7e
SC
30487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488 (exit $ac_status); } &&
fb00f58d
JS
30489 { ac_try='test -z "$ac_c_werror_flag"
30490 || test ! -s conftest.err'
ac1cb8d3
VS
30491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30492 (eval $ac_try) 2>&5
30493 ac_status=$?
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); }; } &&
30496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30498 (eval $ac_try) 2>&5
30499 ac_status=$?
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); }; }; then
30502 ac_cv_type_size_t=yes
30503else
30504 echo "$as_me: failed program was:" >&5
30505sed 's/^/| /' conftest.$ac_ext >&5
30506
30507ac_cv_type_size_t=no
30508fi
ac1cb8d3 30509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30510fi
30511echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30512echo "${ECHO_T}$ac_cv_type_size_t" >&6
30513if test $ac_cv_type_size_t = yes; then
30514 :
30515else
30516
30517cat >>confdefs.h <<_ACEOF
30518#define size_t unsigned
30519_ACEOF
30520
30521fi
30522
30523echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30524echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30525if test "${ac_cv_type_uid_t+set}" = set; then
30526 echo $ECHO_N "(cached) $ECHO_C" >&6
30527else
30528 cat >conftest.$ac_ext <<_ACEOF
30529/* confdefs.h. */
30530_ACEOF
30531cat confdefs.h >>conftest.$ac_ext
30532cat >>conftest.$ac_ext <<_ACEOF
30533/* end confdefs.h. */
30534#include <sys/types.h>
30535
30536_ACEOF
30537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30538 $EGREP "uid_t" >/dev/null 2>&1; then
30539 ac_cv_type_uid_t=yes
30540else
30541 ac_cv_type_uid_t=no
30542fi
30543rm -f conftest*
30544
30545fi
30546echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30547echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30548if test $ac_cv_type_uid_t = no; then
30549
30550cat >>confdefs.h <<\_ACEOF
30551#define uid_t int
30552_ACEOF
30553
30554
30555cat >>confdefs.h <<\_ACEOF
30556#define gid_t int
30557_ACEOF
30558
30559fi
30560
30561
d51253e8
RL
30562echo "$as_me:$LINENO: checking for ssize_t" >&5
30563echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30564if test "${ac_cv_type_ssize_t+set}" = set; then
30565 echo $ECHO_N "(cached) $ECHO_C" >&6
30566else
30567 cat >conftest.$ac_ext <<_ACEOF
30568/* confdefs.h. */
30569_ACEOF
30570cat confdefs.h >>conftest.$ac_ext
30571cat >>conftest.$ac_ext <<_ACEOF
30572/* end confdefs.h. */
30573$ac_includes_default
30574int
30575main ()
30576{
30577if ((ssize_t *) 0)
30578 return 0;
30579if (sizeof (ssize_t))
30580 return 0;
30581 ;
30582 return 0;
30583}
30584_ACEOF
30585rm -f conftest.$ac_objext
30586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30587 (eval $ac_compile) 2>conftest.er1
30588 ac_status=$?
30589 grep -v '^ *+' conftest.er1 >conftest.err
30590 rm -f conftest.er1
30591 cat conftest.err >&5
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); } &&
fb00f58d
JS
30594 { ac_try='test -z "$ac_c_werror_flag"
30595 || test ! -s conftest.err'
d51253e8
RL
30596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30597 (eval $ac_try) 2>&5
30598 ac_status=$?
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); }; } &&
30601 { ac_try='test -s conftest.$ac_objext'
30602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30603 (eval $ac_try) 2>&5
30604 ac_status=$?
30605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); }; }; then
30607 ac_cv_type_ssize_t=yes
30608else
30609 echo "$as_me: failed program was:" >&5
30610sed 's/^/| /' conftest.$ac_ext >&5
30611
30612ac_cv_type_ssize_t=no
30613fi
30614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30615fi
30616echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30617echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30618if test $ac_cv_type_ssize_t = yes; then
30619
30620cat >>confdefs.h <<_ACEOF
30621#define HAVE_SSIZE_T 1
30622_ACEOF
30623
30624
30625fi
30626
30627
a848cd7e
SC
30628
30629
30630ac_ext=cc
30631ac_cpp='$CXXCPP $CPPFLAGS'
30632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30635
30636echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30637echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30638if test "${wx_cv_size_t_is_uint+set}" = set; then
30639 echo $ECHO_N "(cached) $ECHO_C" >&6
30640else
30641
30642 cat >conftest.$ac_ext <<_ACEOF
30643/* confdefs.h. */
30644_ACEOF
30645cat confdefs.h >>conftest.$ac_ext
30646cat >>conftest.$ac_ext <<_ACEOF
30647/* end confdefs.h. */
30648#include <stddef.h>
30649int
30650main ()
30651{
30652
30653 return 0; }
30654
30655 struct Foo { void foo(size_t); void foo(unsigned int); };
30656
30657 int bar() {
30658
30659 ;
30660 return 0;
30661}
30662_ACEOF
30663rm -f conftest.$ac_objext
30664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30665 (eval $ac_compile) 2>conftest.er1
a848cd7e 30666 ac_status=$?
ac1cb8d3
VS
30667 grep -v '^ *+' conftest.er1 >conftest.err
30668 rm -f conftest.er1
30669 cat conftest.err >&5
a848cd7e
SC
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); } &&
fb00f58d
JS
30672 { ac_try='test -z "$ac_cxx_werror_flag"
30673 || test ! -s conftest.err'
ac1cb8d3
VS
30674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30675 (eval $ac_try) 2>&5
30676 ac_status=$?
30677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678 (exit $ac_status); }; } &&
30679 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30681 (eval $ac_try) 2>&5
30682 ac_status=$?
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); }; }; then
30685 wx_cv_size_t_is_uint=no
30686else
30687 echo "$as_me: failed program was:" >&5
30688sed 's/^/| /' conftest.$ac_ext >&5
30689
30690wx_cv_size_t_is_uint=yes
30691
30692fi
ac1cb8d3 30693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30694
30695
30696fi
30697echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30698echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30699
30700if test "$wx_cv_size_t_is_uint" = "yes"; then
30701 cat >>confdefs.h <<\_ACEOF
30702#define wxSIZE_T_IS_UINT 1
30703_ACEOF
30704
30705else
30706 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30707echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30708if test "${wx_cv_size_t_is_ulong+set}" = set; then
30709 echo $ECHO_N "(cached) $ECHO_C" >&6
30710else
30711 cat >conftest.$ac_ext <<_ACEOF
30712/* confdefs.h. */
30713_ACEOF
30714cat confdefs.h >>conftest.$ac_ext
30715cat >>conftest.$ac_ext <<_ACEOF
30716/* end confdefs.h. */
30717#include <stddef.h>
30718int
30719main ()
30720{
30721
30722 return 0; }
30723
30724 struct Foo { void foo(size_t); void foo(unsigned long); };
30725
30726 int bar() {
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); } &&
fb00f58d
JS
30741 { ac_try='test -z "$ac_cxx_werror_flag"
30742 || test ! -s conftest.err'
ac1cb8d3
VS
30743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30744 (eval $ac_try) 2>&5
30745 ac_status=$?
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); }; } &&
30748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30750 (eval $ac_try) 2>&5
30751 ac_status=$?
30752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753 (exit $ac_status); }; }; then
30754 wx_cv_size_t_is_ulong=no
30755else
30756 echo "$as_me: failed program was:" >&5
30757sed 's/^/| /' conftest.$ac_ext >&5
30758
30759wx_cv_size_t_is_ulong=yes
30760
30761fi
ac1cb8d3 30762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30763
30764fi
30765echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30766echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30767
30768 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30769 cat >>confdefs.h <<\_ACEOF
30770#define wxSIZE_T_IS_ULONG 1
30771_ACEOF
30772
30773 fi
30774fi
30775
30776ac_ext=c
30777ac_cpp='$CPP $CPPFLAGS'
30778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30780ac_compiler_gnu=$ac_cv_c_compiler_gnu
30781
30782
30783
30784echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30785echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30786if test "${wx_cv_struct_pw_gecos+set}" = set; then
30787 echo $ECHO_N "(cached) $ECHO_C" >&6
30788else
30789
30790 cat >conftest.$ac_ext <<_ACEOF
30791/* confdefs.h. */
30792_ACEOF
30793cat confdefs.h >>conftest.$ac_ext
30794cat >>conftest.$ac_ext <<_ACEOF
30795/* end confdefs.h. */
30796#include <pwd.h>
30797int
30798main ()
30799{
30800
30801 char *p;
30802 struct passwd *pw;
30803 p = pw->pw_gecos;
30804
30805 ;
30806 return 0;
30807}
30808_ACEOF
30809rm -f conftest.$ac_objext
30810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30811 (eval $ac_compile) 2>conftest.er1
a848cd7e 30812 ac_status=$?
ac1cb8d3
VS
30813 grep -v '^ *+' conftest.er1 >conftest.err
30814 rm -f conftest.er1
30815 cat conftest.err >&5
a848cd7e
SC
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); } &&
fb00f58d
JS
30818 { ac_try='test -z "$ac_c_werror_flag"
30819 || test ! -s conftest.err'
ac1cb8d3
VS
30820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30821 (eval $ac_try) 2>&5
30822 ac_status=$?
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); }; } &&
30825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30827 (eval $ac_try) 2>&5
30828 ac_status=$?
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); }; }; then
30831
30832 wx_cv_struct_pw_gecos=yes
30833
30834else
30835 echo "$as_me: failed program was:" >&5
30836sed 's/^/| /' conftest.$ac_ext >&5
30837
30838
30839 wx_cv_struct_pw_gecos=no
30840
30841
30842fi
ac1cb8d3 30843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30844
30845
30846fi
30847echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30848echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30849
30850if test "$wx_cv_struct_pw_gecos" = "yes"; then
30851 cat >>confdefs.h <<\_ACEOF
30852#define HAVE_PW_GECOS 1
30853_ACEOF
30854
30855fi
30856
30857
47a7e797 30858if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
30859 cat >>confdefs.h <<\_ACEOF
30860#define wxUSE_WCHAR_T 1
30861_ACEOF
30862
30863
30864 WCSLEN_FOUND=0
30865 WCHAR_LINK=
30866
30867for ac_func in wcslen
30868do
30869as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30870echo "$as_me:$LINENO: checking for $ac_func" >&5
30871echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30872if eval "test \"\${$as_ac_var+set}\" = set"; then
30873 echo $ECHO_N "(cached) $ECHO_C" >&6
30874else
30875 cat >conftest.$ac_ext <<_ACEOF
30876/* confdefs.h. */
30877_ACEOF
30878cat confdefs.h >>conftest.$ac_ext
30879cat >>conftest.$ac_ext <<_ACEOF
30880/* end confdefs.h. */
ac1cb8d3
VS
30881/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30883#define $ac_func innocuous_$ac_func
30884
a848cd7e
SC
30885/* System header to define __stub macros and hopefully few prototypes,
30886 which can conflict with char $ac_func (); below.
30887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30888 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30889
a848cd7e
SC
30890#ifdef __STDC__
30891# include <limits.h>
30892#else
30893# include <assert.h>
30894#endif
ac1cb8d3
VS
30895
30896#undef $ac_func
30897
a848cd7e
SC
30898/* Override any gcc2 internal prototype to avoid an error. */
30899#ifdef __cplusplus
30900extern "C"
30901{
30902#endif
30903/* We use char because int might match the return type of a gcc2
30904 builtin and then its argument prototype would still apply. */
30905char $ac_func ();
30906/* The GNU C library defines this for functions which it implements
30907 to always fail with ENOSYS. Some functions are actually named
30908 something starting with __ and the normal name is an alias. */
30909#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30910choke me
30911#else
30912char (*f) () = $ac_func;
30913#endif
30914#ifdef __cplusplus
30915}
30916#endif
30917
30918int
30919main ()
30920{
30921return f != $ac_func;
30922 ;
30923 return 0;
30924}
30925_ACEOF
30926rm -f conftest.$ac_objext conftest$ac_exeext
30927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30928 (eval $ac_link) 2>conftest.er1
a848cd7e 30929 ac_status=$?
ac1cb8d3
VS
30930 grep -v '^ *+' conftest.er1 >conftest.err
30931 rm -f conftest.er1
30932 cat conftest.err >&5
a848cd7e
SC
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); } &&
fb00f58d
JS
30935 { ac_try='test -z "$ac_c_werror_flag"
30936 || test ! -s conftest.err'
ac1cb8d3
VS
30937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30938 (eval $ac_try) 2>&5
30939 ac_status=$?
30940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941 (exit $ac_status); }; } &&
30942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30944 (eval $ac_try) 2>&5
30945 ac_status=$?
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947 (exit $ac_status); }; }; then
30948 eval "$as_ac_var=yes"
30949else
30950 echo "$as_me: failed program was:" >&5
30951sed 's/^/| /' conftest.$ac_ext >&5
30952
30953eval "$as_ac_var=no"
30954fi
ac1cb8d3
VS
30955rm -f conftest.err conftest.$ac_objext \
30956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30957fi
30958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30959echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30960if test `eval echo '${'$as_ac_var'}'` = yes; then
30961 cat >>confdefs.h <<_ACEOF
30962#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30963_ACEOF
30964 WCSLEN_FOUND=1
30965fi
30966done
30967
30968
30969 if test "$WCSLEN_FOUND" = 0; then
30970 if test "$TOOLKIT" = "MSW"; then
30971 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30972echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30973if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30974 echo $ECHO_N "(cached) $ECHO_C" >&6
30975else
30976 ac_check_lib_save_LIBS=$LIBS
30977LIBS="-lmsvcrt $LIBS"
30978cat >conftest.$ac_ext <<_ACEOF
30979/* confdefs.h. */
30980_ACEOF
30981cat confdefs.h >>conftest.$ac_ext
30982cat >>conftest.$ac_ext <<_ACEOF
30983/* end confdefs.h. */
30984
30985/* Override any gcc2 internal prototype to avoid an error. */
30986#ifdef __cplusplus
30987extern "C"
30988#endif
30989/* We use char because int might match the return type of a gcc2
30990 builtin and then its argument prototype would still apply. */
30991char wcslen ();
30992int
30993main ()
30994{
30995wcslen ();
30996 ;
30997 return 0;
30998}
30999_ACEOF
31000rm -f conftest.$ac_objext conftest$ac_exeext
31001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31002 (eval $ac_link) 2>conftest.er1
a848cd7e 31003 ac_status=$?
ac1cb8d3
VS
31004 grep -v '^ *+' conftest.er1 >conftest.err
31005 rm -f conftest.er1
31006 cat conftest.err >&5
a848cd7e
SC
31007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008 (exit $ac_status); } &&
fb00f58d
JS
31009 { ac_try='test -z "$ac_c_werror_flag"
31010 || test ! -s conftest.err'
ac1cb8d3
VS
31011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31012 (eval $ac_try) 2>&5
31013 ac_status=$?
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); }; } &&
31016 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31018 (eval $ac_try) 2>&5
31019 ac_status=$?
31020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021 (exit $ac_status); }; }; then
31022 ac_cv_lib_msvcrt_wcslen=yes
31023else
31024 echo "$as_me: failed program was:" >&5
31025sed 's/^/| /' conftest.$ac_ext >&5
31026
31027ac_cv_lib_msvcrt_wcslen=no
31028fi
ac1cb8d3
VS
31029rm -f conftest.err conftest.$ac_objext \
31030 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31031LIBS=$ac_check_lib_save_LIBS
31032fi
31033echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31034echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31035if test $ac_cv_lib_msvcrt_wcslen = yes; then
31036 WCHAR_OK=1
31037fi
31038
31039 else
31040 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31041echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31042if test "${ac_cv_lib_w_wcslen+set}" = set; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31044else
31045 ac_check_lib_save_LIBS=$LIBS
31046LIBS="-lw $LIBS"
31047cat >conftest.$ac_ext <<_ACEOF
31048/* confdefs.h. */
31049_ACEOF
31050cat confdefs.h >>conftest.$ac_ext
31051cat >>conftest.$ac_ext <<_ACEOF
31052/* end confdefs.h. */
31053
31054/* Override any gcc2 internal prototype to avoid an error. */
31055#ifdef __cplusplus
31056extern "C"
31057#endif
31058/* We use char because int might match the return type of a gcc2
31059 builtin and then its argument prototype would still apply. */
31060char wcslen ();
31061int
31062main ()
31063{
31064wcslen ();
31065 ;
31066 return 0;
31067}
31068_ACEOF
31069rm -f conftest.$ac_objext conftest$ac_exeext
31070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31071 (eval $ac_link) 2>conftest.er1
a848cd7e 31072 ac_status=$?
ac1cb8d3
VS
31073 grep -v '^ *+' conftest.er1 >conftest.err
31074 rm -f conftest.er1
31075 cat conftest.err >&5
a848cd7e
SC
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); } &&
fb00f58d
JS
31078 { ac_try='test -z "$ac_c_werror_flag"
31079 || test ! -s conftest.err'
ac1cb8d3
VS
31080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31081 (eval $ac_try) 2>&5
31082 ac_status=$?
31083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084 (exit $ac_status); }; } &&
31085 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31087 (eval $ac_try) 2>&5
31088 ac_status=$?
31089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090 (exit $ac_status); }; }; then
31091 ac_cv_lib_w_wcslen=yes
31092else
31093 echo "$as_me: failed program was:" >&5
31094sed 's/^/| /' conftest.$ac_ext >&5
31095
31096ac_cv_lib_w_wcslen=no
31097fi
ac1cb8d3
VS
31098rm -f conftest.err conftest.$ac_objext \
31099 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31100LIBS=$ac_check_lib_save_LIBS
31101fi
31102echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31103echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31104if test $ac_cv_lib_w_wcslen = yes; then
31105
31106 WCHAR_LINK=" -lw"
31107 WCSLEN_FOUND=1
31108
31109fi
31110
31111 fi
31112 fi
31113
31114 if test "$WCSLEN_FOUND" = 1; then
31115 cat >>confdefs.h <<\_ACEOF
31116#define HAVE_WCSLEN 1
31117_ACEOF
31118
31119 fi
31120
81f90336 31121 if test "$USE_HPUX" = 1; then
473276a9
VS
31122 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31123 fi
31124
a848cd7e
SC
31125
31126for ac_func in wcsrtombs
31127do
31128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31129echo "$as_me:$LINENO: checking for $ac_func" >&5
31130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31131if eval "test \"\${$as_ac_var+set}\" = set"; then
31132 echo $ECHO_N "(cached) $ECHO_C" >&6
31133else
31134 cat >conftest.$ac_ext <<_ACEOF
31135/* confdefs.h. */
31136_ACEOF
31137cat confdefs.h >>conftest.$ac_ext
31138cat >>conftest.$ac_ext <<_ACEOF
31139/* end confdefs.h. */
ac1cb8d3
VS
31140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31142#define $ac_func innocuous_$ac_func
31143
a848cd7e
SC
31144/* System header to define __stub macros and hopefully few prototypes,
31145 which can conflict with char $ac_func (); below.
31146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31147 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31148
a848cd7e
SC
31149#ifdef __STDC__
31150# include <limits.h>
31151#else
31152# include <assert.h>
31153#endif
ac1cb8d3
VS
31154
31155#undef $ac_func
31156
a848cd7e
SC
31157/* Override any gcc2 internal prototype to avoid an error. */
31158#ifdef __cplusplus
31159extern "C"
31160{
31161#endif
31162/* We use char because int might match the return type of a gcc2
31163 builtin and then its argument prototype would still apply. */
31164char $ac_func ();
31165/* The GNU C library defines this for functions which it implements
31166 to always fail with ENOSYS. Some functions are actually named
31167 something starting with __ and the normal name is an alias. */
31168#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31169choke me
31170#else
31171char (*f) () = $ac_func;
31172#endif
31173#ifdef __cplusplus
31174}
31175#endif
31176
31177int
31178main ()
31179{
31180return f != $ac_func;
31181 ;
31182 return 0;
31183}
31184_ACEOF
31185rm -f conftest.$ac_objext conftest$ac_exeext
31186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31187 (eval $ac_link) 2>conftest.er1
a848cd7e 31188 ac_status=$?
ac1cb8d3
VS
31189 grep -v '^ *+' conftest.er1 >conftest.err
31190 rm -f conftest.er1
31191 cat conftest.err >&5
a848cd7e
SC
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); } &&
fb00f58d
JS
31194 { ac_try='test -z "$ac_c_werror_flag"
31195 || test ! -s conftest.err'
ac1cb8d3
VS
31196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31197 (eval $ac_try) 2>&5
31198 ac_status=$?
31199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31200 (exit $ac_status); }; } &&
31201 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31203 (eval $ac_try) 2>&5
31204 ac_status=$?
31205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206 (exit $ac_status); }; }; then
31207 eval "$as_ac_var=yes"
31208else
31209 echo "$as_me: failed program was:" >&5
31210sed 's/^/| /' conftest.$ac_ext >&5
31211
31212eval "$as_ac_var=no"
31213fi
ac1cb8d3
VS
31214rm -f conftest.err conftest.$ac_objext \
31215 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31216fi
31217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31218echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31219if test `eval echo '${'$as_ac_var'}'` = yes; then
31220 cat >>confdefs.h <<_ACEOF
31221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31222_ACEOF
31223
31224fi
31225done
31226
31227else
31228 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31229echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31230fi
31231
31232
31233
31234ac_ext=cc
31235ac_cpp='$CXXCPP $CPPFLAGS'
31236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31239
31240
31241
31242for ac_func in vsnprintf
31243do
31244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31245echo "$as_me:$LINENO: checking for $ac_func" >&5
31246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31247if eval "test \"\${$as_ac_var+set}\" = set"; then
31248 echo $ECHO_N "(cached) $ECHO_C" >&6
31249else
31250 cat >conftest.$ac_ext <<_ACEOF
31251/* confdefs.h. */
31252_ACEOF
31253cat confdefs.h >>conftest.$ac_ext
31254cat >>conftest.$ac_ext <<_ACEOF
31255/* end confdefs.h. */
ac1cb8d3
VS
31256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31258#define $ac_func innocuous_$ac_func
31259
a848cd7e
SC
31260/* System header to define __stub macros and hopefully few prototypes,
31261 which can conflict with char $ac_func (); below.
31262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31263 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31264
a848cd7e
SC
31265#ifdef __STDC__
31266# include <limits.h>
31267#else
31268# include <assert.h>
31269#endif
ac1cb8d3
VS
31270
31271#undef $ac_func
31272
a848cd7e
SC
31273/* Override any gcc2 internal prototype to avoid an error. */
31274#ifdef __cplusplus
31275extern "C"
31276{
31277#endif
31278/* We use char because int might match the return type of a gcc2
31279 builtin and then its argument prototype would still apply. */
31280char $ac_func ();
31281/* The GNU C library defines this for functions which it implements
31282 to always fail with ENOSYS. Some functions are actually named
31283 something starting with __ and the normal name is an alias. */
31284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31285choke me
31286#else
31287char (*f) () = $ac_func;
31288#endif
31289#ifdef __cplusplus
31290}
31291#endif
31292
31293int
31294main ()
31295{
31296return f != $ac_func;
31297 ;
31298 return 0;
31299}
31300_ACEOF
31301rm -f conftest.$ac_objext conftest$ac_exeext
31302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31303 (eval $ac_link) 2>conftest.er1
a848cd7e 31304 ac_status=$?
ac1cb8d3
VS
31305 grep -v '^ *+' conftest.er1 >conftest.err
31306 rm -f conftest.er1
31307 cat conftest.err >&5
a848cd7e
SC
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); } &&
fb00f58d
JS
31310 { ac_try='test -z "$ac_cxx_werror_flag"
31311 || test ! -s conftest.err'
ac1cb8d3
VS
31312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31313 (eval $ac_try) 2>&5
31314 ac_status=$?
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); }; } &&
31317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31319 (eval $ac_try) 2>&5
31320 ac_status=$?
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); }; }; then
31323 eval "$as_ac_var=yes"
31324else
31325 echo "$as_me: failed program was:" >&5
31326sed 's/^/| /' conftest.$ac_ext >&5
31327
31328eval "$as_ac_var=no"
31329fi
ac1cb8d3
VS
31330rm -f conftest.err conftest.$ac_objext \
31331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31332fi
31333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31334echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31335if test `eval echo '${'$as_ac_var'}'` = yes; then
31336 cat >>confdefs.h <<_ACEOF
31337#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31338_ACEOF
31339
31340fi
31341done
31342
31343
31344if test "$ac_cv_func_vsnprintf" = "yes"; then
31345 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31346echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31347if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31348 echo $ECHO_N "(cached) $ECHO_C" >&6
31349else
31350
31351 cat >conftest.$ac_ext <<_ACEOF
31352/* confdefs.h. */
31353_ACEOF
31354cat confdefs.h >>conftest.$ac_ext
31355cat >>conftest.$ac_ext <<_ACEOF
31356/* end confdefs.h. */
31357
31358 #include <stdio.h>
31359 #include <stdarg.h>
31360
31361int
31362main ()
31363{
31364
31365 char *buf;
31366 va_list ap;
31367 vsnprintf(buf, 10u, "%s", ap);
31368
31369 ;
31370 return 0;
31371}
31372_ACEOF
31373rm -f conftest.$ac_objext
31374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31375 (eval $ac_compile) 2>conftest.er1
a848cd7e 31376 ac_status=$?
ac1cb8d3
VS
31377 grep -v '^ *+' conftest.er1 >conftest.err
31378 rm -f conftest.er1
31379 cat conftest.err >&5
a848cd7e
SC
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); } &&
fb00f58d
JS
31382 { ac_try='test -z "$ac_cxx_werror_flag"
31383 || test ! -s conftest.err'
ac1cb8d3
VS
31384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31385 (eval $ac_try) 2>&5
31386 ac_status=$?
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); }; } &&
31389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31391 (eval $ac_try) 2>&5
31392 ac_status=$?
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); }; }; then
31395 wx_cv_func_vsnprintf_decl=yes
31396else
31397 echo "$as_me: failed program was:" >&5
31398sed 's/^/| /' conftest.$ac_ext >&5
31399
c122b164
DE
31400
31401 cat >conftest.$ac_ext <<_ACEOF
31402/* confdefs.h. */
31403_ACEOF
31404cat confdefs.h >>conftest.$ac_ext
31405cat >>conftest.$ac_ext <<_ACEOF
31406/* end confdefs.h. */
31407
31408 #include <stdio.h>
31409 #include <stdarg.h>
31410 using namespace std;
31411
31412int
31413main ()
31414{
31415
31416 char *buf;
31417 va_list ap;
31418 vsnprintf(buf, 10u, "%s", ap);
31419
31420 ;
31421 return 0;
31422}
31423_ACEOF
31424rm -f conftest.$ac_objext
31425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31426 (eval $ac_compile) 2>conftest.er1
31427 ac_status=$?
31428 grep -v '^ *+' conftest.er1 >conftest.err
31429 rm -f conftest.er1
31430 cat conftest.err >&5
31431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31432 (exit $ac_status); } &&
fb00f58d
JS
31433 { ac_try='test -z "$ac_cxx_werror_flag"
31434 || test ! -s conftest.err'
c122b164
DE
31435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31436 (eval $ac_try) 2>&5
31437 ac_status=$?
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); }; } &&
31440 { ac_try='test -s conftest.$ac_objext'
31441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31442 (eval $ac_try) 2>&5
31443 ac_status=$?
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); }; }; then
31446 wx_cv_func_vsnprintf_decl=yes
31447else
31448 echo "$as_me: failed program was:" >&5
31449sed 's/^/| /' conftest.$ac_ext >&5
31450
a848cd7e
SC
31451wx_cv_func_vsnprintf_decl=no
31452
31453fi
ac1cb8d3 31454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31455
31456
c122b164
DE
31457fi
31458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31459
31460
a848cd7e
SC
31461fi
31462echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31463echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31464
31465 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31466 cat >>confdefs.h <<\_ACEOF
31467#define HAVE_VSNPRINTF_DECL 1
31468_ACEOF
31469
31470 fi
31471fi
31472
31473if test "$wxUSE_UNICODE" = yes; then
31474
31475
31476
fbe47c7b
VS
31477
31478
31479
31480for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31481do
31482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31483echo "$as_me:$LINENO: checking for $ac_func" >&5
31484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31485if eval "test \"\${$as_ac_var+set}\" = set"; then
31486 echo $ECHO_N "(cached) $ECHO_C" >&6
31487else
31488 cat >conftest.$ac_ext <<_ACEOF
31489/* confdefs.h. */
31490_ACEOF
31491cat confdefs.h >>conftest.$ac_ext
31492cat >>conftest.$ac_ext <<_ACEOF
31493/* end confdefs.h. */
ac1cb8d3
VS
31494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31496#define $ac_func innocuous_$ac_func
31497
a848cd7e
SC
31498/* System header to define __stub macros and hopefully few prototypes,
31499 which can conflict with char $ac_func (); below.
31500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31501 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31502
a848cd7e
SC
31503#ifdef __STDC__
31504# include <limits.h>
31505#else
31506# include <assert.h>
31507#endif
ac1cb8d3
VS
31508
31509#undef $ac_func
31510
a848cd7e
SC
31511/* Override any gcc2 internal prototype to avoid an error. */
31512#ifdef __cplusplus
31513extern "C"
31514{
31515#endif
31516/* We use char because int might match the return type of a gcc2
31517 builtin and then its argument prototype would still apply. */
31518char $ac_func ();
31519/* The GNU C library defines this for functions which it implements
31520 to always fail with ENOSYS. Some functions are actually named
31521 something starting with __ and the normal name is an alias. */
31522#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31523choke me
31524#else
31525char (*f) () = $ac_func;
31526#endif
31527#ifdef __cplusplus
31528}
31529#endif
31530
31531int
31532main ()
31533{
31534return f != $ac_func;
31535 ;
31536 return 0;
31537}
31538_ACEOF
31539rm -f conftest.$ac_objext conftest$ac_exeext
31540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31541 (eval $ac_link) 2>conftest.er1
a848cd7e 31542 ac_status=$?
ac1cb8d3
VS
31543 grep -v '^ *+' conftest.er1 >conftest.err
31544 rm -f conftest.er1
31545 cat conftest.err >&5
a848cd7e
SC
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); } &&
fb00f58d
JS
31548 { ac_try='test -z "$ac_cxx_werror_flag"
31549 || test ! -s conftest.err'
ac1cb8d3
VS
31550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31551 (eval $ac_try) 2>&5
31552 ac_status=$?
31553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554 (exit $ac_status); }; } &&
31555 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31557 (eval $ac_try) 2>&5
31558 ac_status=$?
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; }; then
31561 eval "$as_ac_var=yes"
31562else
31563 echo "$as_me: failed program was:" >&5
31564sed 's/^/| /' conftest.$ac_ext >&5
31565
31566eval "$as_ac_var=no"
31567fi
ac1cb8d3
VS
31568rm -f conftest.err conftest.$ac_objext \
31569 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31570fi
31571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31572echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31573if test `eval echo '${'$as_ac_var'}'` = yes; then
31574 cat >>confdefs.h <<_ACEOF
31575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31576_ACEOF
31577
31578fi
31579done
31580
31581
31582 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31583echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31584 cat >conftest.$ac_ext <<_ACEOF
31585/* confdefs.h. */
31586_ACEOF
31587cat confdefs.h >>conftest.$ac_ext
31588cat >>conftest.$ac_ext <<_ACEOF
31589/* end confdefs.h. */
31590#include <wchar.h>
31591int
31592main ()
31593{
31594&_vsnwprintf;
31595 ;
31596 return 0;
31597}
31598_ACEOF
31599rm -f conftest.$ac_objext
31600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31601 (eval $ac_compile) 2>conftest.er1
a848cd7e 31602 ac_status=$?
ac1cb8d3
VS
31603 grep -v '^ *+' conftest.er1 >conftest.err
31604 rm -f conftest.er1
31605 cat conftest.err >&5
a848cd7e
SC
31606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31607 (exit $ac_status); } &&
fb00f58d
JS
31608 { ac_try='test -z "$ac_cxx_werror_flag"
31609 || test ! -s conftest.err'
ac1cb8d3
VS
31610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31611 (eval $ac_try) 2>&5
31612 ac_status=$?
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); }; } &&
31615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31617 (eval $ac_try) 2>&5
31618 ac_status=$?
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); }; }; then
31621 echo "$as_me:$LINENO: result: yes" >&5
31622echo "${ECHO_T}yes" >&6
31623 cat >>confdefs.h <<\_ACEOF
31624#define HAVE__VSNWPRINTF 1
31625_ACEOF
31626
31627else
31628 echo "$as_me: failed program was:" >&5
31629sed 's/^/| /' conftest.$ac_ext >&5
31630
31631echo "$as_me:$LINENO: result: no" >&5
31632echo "${ECHO_T}no" >&6
31633fi
ac1cb8d3 31634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31635fi
31636
31637ac_ext=c
31638ac_cpp='$CPP $CPPFLAGS'
31639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31641ac_compiler_gnu=$ac_cv_c_compiler_gnu
31642
31643
31644
31645
31646if test "$TOOLKIT" != "MSW"; then
31647
31648
31649
31650
31651ac_ext=cc
31652ac_cpp='$CXXCPP $CPPFLAGS'
31653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31656
31657
31658
31659
31660# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31661if test "${with_libiconv_prefix+set}" = set; then
31662 withval="$with_libiconv_prefix"
31663
31664 for dir in `echo "$withval" | tr : ' '`; do
31665 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31666 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31667 done
31668
31669fi;
31670
31671 echo "$as_me:$LINENO: checking for iconv" >&5
31672echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31673if test "${am_cv_func_iconv+set}" = set; then
31674 echo $ECHO_N "(cached) $ECHO_C" >&6
31675else
31676
31677 am_cv_func_iconv="no, consider installing GNU libiconv"
31678 am_cv_lib_iconv=no
31679 cat >conftest.$ac_ext <<_ACEOF
31680/* confdefs.h. */
31681_ACEOF
31682cat confdefs.h >>conftest.$ac_ext
31683cat >>conftest.$ac_ext <<_ACEOF
31684/* end confdefs.h. */
31685#include <stdlib.h>
31686#include <iconv.h>
31687int
31688main ()
31689{
31690iconv_t cd = iconv_open("","");
31691 iconv(cd,NULL,NULL,NULL,NULL);
31692 iconv_close(cd);
31693 ;
31694 return 0;
31695}
31696_ACEOF
31697rm -f conftest.$ac_objext conftest$ac_exeext
31698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31699 (eval $ac_link) 2>conftest.er1
a848cd7e 31700 ac_status=$?
ac1cb8d3
VS
31701 grep -v '^ *+' conftest.er1 >conftest.err
31702 rm -f conftest.er1
31703 cat conftest.err >&5
a848cd7e
SC
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); } &&
fb00f58d
JS
31706 { ac_try='test -z "$ac_cxx_werror_flag"
31707 || test ! -s conftest.err'
ac1cb8d3
VS
31708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31709 (eval $ac_try) 2>&5
31710 ac_status=$?
31711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712 (exit $ac_status); }; } &&
31713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31715 (eval $ac_try) 2>&5
31716 ac_status=$?
31717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718 (exit $ac_status); }; }; then
31719 am_cv_func_iconv=yes
31720else
31721 echo "$as_me: failed program was:" >&5
31722sed 's/^/| /' conftest.$ac_ext >&5
31723
31724fi
ac1cb8d3
VS
31725rm -f conftest.err conftest.$ac_objext \
31726 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31727 if test "$am_cv_func_iconv" != yes; then
31728 am_save_LIBS="$LIBS"
31729 LIBS="$LIBS -liconv"
31730 cat >conftest.$ac_ext <<_ACEOF
31731/* confdefs.h. */
31732_ACEOF
31733cat confdefs.h >>conftest.$ac_ext
31734cat >>conftest.$ac_ext <<_ACEOF
31735/* end confdefs.h. */
31736#include <stdlib.h>
31737#include <iconv.h>
31738int
31739main ()
31740{
31741iconv_t cd = iconv_open("","");
31742 iconv(cd,NULL,NULL,NULL,NULL);
31743 iconv_close(cd);
31744 ;
31745 return 0;
31746}
31747_ACEOF
31748rm -f conftest.$ac_objext conftest$ac_exeext
31749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31750 (eval $ac_link) 2>conftest.er1
a848cd7e 31751 ac_status=$?
ac1cb8d3
VS
31752 grep -v '^ *+' conftest.er1 >conftest.err
31753 rm -f conftest.er1
31754 cat conftest.err >&5
a848cd7e
SC
31755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); } &&
fb00f58d
JS
31757 { ac_try='test -z "$ac_cxx_werror_flag"
31758 || test ! -s conftest.err'
ac1cb8d3
VS
31759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31760 (eval $ac_try) 2>&5
31761 ac_status=$?
31762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763 (exit $ac_status); }; } &&
31764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31766 (eval $ac_try) 2>&5
31767 ac_status=$?
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); }; }; then
31770 am_cv_lib_iconv=yes
31771 am_cv_func_iconv=yes
31772else
31773 echo "$as_me: failed program was:" >&5
31774sed 's/^/| /' conftest.$ac_ext >&5
31775
31776fi
ac1cb8d3
VS
31777rm -f conftest.err conftest.$ac_objext \
31778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31779 LIBS="$am_save_LIBS"
31780 fi
31781
31782fi
31783echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31784echo "${ECHO_T}$am_cv_func_iconv" >&6
31785 if test "$am_cv_func_iconv" = yes; then
31786
31787cat >>confdefs.h <<\_ACEOF
31788#define HAVE_ICONV 1
31789_ACEOF
31790
31791 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31792echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31793if test "${wx_cv_func_iconv_const+set}" = set; then
31794 echo $ECHO_N "(cached) $ECHO_C" >&6
31795else
31796 cat >conftest.$ac_ext <<_ACEOF
31797/* confdefs.h. */
31798_ACEOF
31799cat confdefs.h >>conftest.$ac_ext
31800cat >>conftest.$ac_ext <<_ACEOF
31801/* end confdefs.h. */
31802
31803#include <stdlib.h>
31804#include <iconv.h>
31805extern
31806#ifdef __cplusplus
31807"C"
31808#endif
31809#if defined(__STDC__) || defined(__cplusplus)
31810size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31811#else
31812size_t iconv();
31813#endif
31814
31815int
31816main ()
31817{
31818
31819 ;
31820 return 0;
31821}
31822_ACEOF
31823rm -f conftest.$ac_objext
31824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31825 (eval $ac_compile) 2>conftest.er1
a848cd7e 31826 ac_status=$?
ac1cb8d3
VS
31827 grep -v '^ *+' conftest.er1 >conftest.err
31828 rm -f conftest.er1
31829 cat conftest.err >&5
a848cd7e
SC
31830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831 (exit $ac_status); } &&
fb00f58d
JS
31832 { ac_try='test -z "$ac_cxx_werror_flag"
31833 || test ! -s conftest.err'
ac1cb8d3
VS
31834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31835 (eval $ac_try) 2>&5
31836 ac_status=$?
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); }; } &&
31839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31841 (eval $ac_try) 2>&5
31842 ac_status=$?
31843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844 (exit $ac_status); }; }; then
31845 wx_cv_func_iconv_const="no"
31846else
31847 echo "$as_me: failed program was:" >&5
31848sed 's/^/| /' conftest.$ac_ext >&5
31849
31850wx_cv_func_iconv_const="yes"
31851
31852fi
ac1cb8d3 31853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31854
31855fi
31856echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31857echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31858
31859 iconv_const=
31860 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31861 iconv_const="const"
31862 fi
31863
31864
31865cat >>confdefs.h <<_ACEOF
31866#define ICONV_CONST $iconv_const
31867_ACEOF
31868
31869 fi
31870 LIBICONV=
31871 if test "$am_cv_lib_iconv" = yes; then
31872 LIBICONV="-liconv"
31873 fi
31874
31875
31876LIBS="$LIBICONV $LIBS"
31877ac_ext=c
31878ac_cpp='$CPP $CPPFLAGS'
31879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31881ac_compiler_gnu=$ac_cv_c_compiler_gnu
31882
31883
31884if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31885
31886for ac_func in sigaction
31887do
31888as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31889echo "$as_me:$LINENO: checking for $ac_func" >&5
31890echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31891if eval "test \"\${$as_ac_var+set}\" = set"; then
31892 echo $ECHO_N "(cached) $ECHO_C" >&6
31893else
31894 cat >conftest.$ac_ext <<_ACEOF
31895/* confdefs.h. */
31896_ACEOF
31897cat confdefs.h >>conftest.$ac_ext
31898cat >>conftest.$ac_ext <<_ACEOF
31899/* end confdefs.h. */
ac1cb8d3
VS
31900/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31902#define $ac_func innocuous_$ac_func
31903
a848cd7e
SC
31904/* System header to define __stub macros and hopefully few prototypes,
31905 which can conflict with char $ac_func (); below.
31906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31907 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31908
a848cd7e
SC
31909#ifdef __STDC__
31910# include <limits.h>
31911#else
31912# include <assert.h>
31913#endif
ac1cb8d3
VS
31914
31915#undef $ac_func
31916
a848cd7e
SC
31917/* Override any gcc2 internal prototype to avoid an error. */
31918#ifdef __cplusplus
31919extern "C"
31920{
31921#endif
31922/* We use char because int might match the return type of a gcc2
31923 builtin and then its argument prototype would still apply. */
31924char $ac_func ();
31925/* The GNU C library defines this for functions which it implements
31926 to always fail with ENOSYS. Some functions are actually named
31927 something starting with __ and the normal name is an alias. */
31928#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31929choke me
31930#else
31931char (*f) () = $ac_func;
31932#endif
31933#ifdef __cplusplus
31934}
31935#endif
31936
31937int
31938main ()
31939{
31940return f != $ac_func;
31941 ;
31942 return 0;
31943}
31944_ACEOF
31945rm -f conftest.$ac_objext conftest$ac_exeext
31946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31947 (eval $ac_link) 2>conftest.er1
a848cd7e 31948 ac_status=$?
ac1cb8d3
VS
31949 grep -v '^ *+' conftest.er1 >conftest.err
31950 rm -f conftest.er1
31951 cat conftest.err >&5
a848cd7e
SC
31952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953 (exit $ac_status); } &&
fb00f58d
JS
31954 { ac_try='test -z "$ac_c_werror_flag"
31955 || test ! -s conftest.err'
ac1cb8d3
VS
31956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31957 (eval $ac_try) 2>&5
31958 ac_status=$?
31959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960 (exit $ac_status); }; } &&
31961 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31963 (eval $ac_try) 2>&5
31964 ac_status=$?
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); }; }; then
31967 eval "$as_ac_var=yes"
31968else
31969 echo "$as_me: failed program was:" >&5
31970sed 's/^/| /' conftest.$ac_ext >&5
31971
31972eval "$as_ac_var=no"
31973fi
ac1cb8d3
VS
31974rm -f conftest.err conftest.$ac_objext \
31975 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31976fi
31977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31978echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31979if test `eval echo '${'$as_ac_var'}'` = yes; then
31980 cat >>confdefs.h <<_ACEOF
31981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31982_ACEOF
31983
31984fi
31985done
31986
31987
31988 if test "$ac_cv_func_sigaction" = "no"; then
31989 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31990echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31991 wxUSE_ON_FATAL_EXCEPTION=no
31992 fi
31993
31994 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31995
31996
31997 ac_ext=cc
31998ac_cpp='$CXXCPP $CPPFLAGS'
31999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32002
32003
32004 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32005echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32006if test "${wx_cv_type_sa_handler+set}" = set; then
32007 echo $ECHO_N "(cached) $ECHO_C" >&6
32008else
32009
32010 cat >conftest.$ac_ext <<_ACEOF
32011/* confdefs.h. */
32012_ACEOF
32013cat confdefs.h >>conftest.$ac_ext
32014cat >>conftest.$ac_ext <<_ACEOF
32015/* end confdefs.h. */
32016#include <signal.h>
32017int
32018main ()
32019{
32020
32021 extern void testSigHandler(int);
32022
32023 struct sigaction sa;
32024 sa.sa_handler = testSigHandler;
32025
32026 ;
32027 return 0;
32028}
32029_ACEOF
32030rm -f conftest.$ac_objext
32031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32032 (eval $ac_compile) 2>conftest.er1
a848cd7e 32033 ac_status=$?
ac1cb8d3
VS
32034 grep -v '^ *+' conftest.er1 >conftest.err
32035 rm -f conftest.er1
32036 cat conftest.err >&5
a848cd7e
SC
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); } &&
fb00f58d
JS
32039 { ac_try='test -z "$ac_cxx_werror_flag"
32040 || test ! -s conftest.err'
ac1cb8d3
VS
32041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32042 (eval $ac_try) 2>&5
32043 ac_status=$?
32044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); }; } &&
32046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32048 (eval $ac_try) 2>&5
32049 ac_status=$?
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); }; }; then
32052
32053 wx_cv_type_sa_handler=int
32054
32055else
32056 echo "$as_me: failed program was:" >&5
32057sed 's/^/| /' conftest.$ac_ext >&5
32058
32059
32060 wx_cv_type_sa_handler=void
32061
32062fi
ac1cb8d3 32063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32064
32065fi
32066echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32067echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32068
32069 ac_ext=c
32070ac_cpp='$CPP $CPPFLAGS'
32071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32073ac_compiler_gnu=$ac_cv_c_compiler_gnu
32074
32075
32076 cat >>confdefs.h <<_ACEOF
32077#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32078_ACEOF
32079
32080 fi
32081fi
32082
eaff0f0d
VZ
32083if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32084
32085
32086 ac_ext=cc
32087ac_cpp='$CXXCPP $CPPFLAGS'
32088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32091
32092
32093 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32094echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32095if test "${wx_cv_func_backtrace+set}" = set; then
32096 echo $ECHO_N "(cached) $ECHO_C" >&6
32097else
32098
32099 cat >conftest.$ac_ext <<_ACEOF
32100/* confdefs.h. */
32101_ACEOF
32102cat confdefs.h >>conftest.$ac_ext
32103cat >>conftest.$ac_ext <<_ACEOF
32104/* end confdefs.h. */
32105#include <execinfo.h>
32106int
32107main ()
32108{
32109
32110 void *trace[1];
32111 char **messages;
32112
32113 backtrace(trace, 1);
32114 messages = backtrace_symbols(trace, 1);
32115
32116 ;
32117 return 0;
32118}
32119_ACEOF
32120rm -f conftest.$ac_objext
32121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32122 (eval $ac_compile) 2>conftest.er1
32123 ac_status=$?
32124 grep -v '^ *+' conftest.er1 >conftest.err
32125 rm -f conftest.er1
32126 cat conftest.err >&5
32127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128 (exit $ac_status); } &&
fb00f58d
JS
32129 { ac_try='test -z "$ac_cxx_werror_flag"
32130 || test ! -s conftest.err'
eaff0f0d
VZ
32131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32132 (eval $ac_try) 2>&5
32133 ac_status=$?
32134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135 (exit $ac_status); }; } &&
32136 { ac_try='test -s conftest.$ac_objext'
32137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32138 (eval $ac_try) 2>&5
32139 ac_status=$?
32140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141 (exit $ac_status); }; }; then
32142 wx_cv_func_backtrace=yes
32143else
32144 echo "$as_me: failed program was:" >&5
32145sed 's/^/| /' conftest.$ac_ext >&5
32146
32147wx_cv_func_backtrace=no
32148
32149fi
32150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32151
32152
32153fi
32154echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
32155echo "${ECHO_T}$wx_cv_func_backtrace" >&6
32156
32157
32158 if test "$wx_cv_func_backtrace" = "no"; then
32159 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
32160echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
32161 wxUSE_STACKWALKER=no
32162 else
32163 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
32164echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
32165if test "${wx_cv_func_cxa_demangle+set}" = set; then
32166 echo $ECHO_N "(cached) $ECHO_C" >&6
32167else
32168
32169 cat >conftest.$ac_ext <<_ACEOF
32170/* confdefs.h. */
32171_ACEOF
32172cat confdefs.h >>conftest.$ac_ext
32173cat >>conftest.$ac_ext <<_ACEOF
32174/* end confdefs.h. */
32175#include <cxxabi.h>
32176int
32177main ()
32178{
32179
32180 int rc;
32181 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
32182
32183 ;
32184 return 0;
32185}
32186_ACEOF
dfe0c803
JS
32187rm -f conftest.$ac_objext conftest$ac_exeext
32188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32189 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
32190 ac_status=$?
32191 grep -v '^ *+' conftest.er1 >conftest.err
32192 rm -f conftest.er1
32193 cat conftest.err >&5
32194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195 (exit $ac_status); } &&
fb00f58d
JS
32196 { ac_try='test -z "$ac_cxx_werror_flag"
32197 || test ! -s conftest.err'
eaff0f0d
VZ
32198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32199 (eval $ac_try) 2>&5
32200 ac_status=$?
32201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202 (exit $ac_status); }; } &&
dfe0c803 32203 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
32204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32205 (eval $ac_try) 2>&5
32206 ac_status=$?
32207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208 (exit $ac_status); }; }; then
32209 wx_cv_func_cxa_demangle=yes
32210else
32211 echo "$as_me: failed program was:" >&5
32212sed 's/^/| /' conftest.$ac_ext >&5
32213
32214wx_cv_func_cxa_demangle=no
32215
32216fi
dfe0c803
JS
32217rm -f conftest.err conftest.$ac_objext \
32218 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
32219
32220
32221fi
32222echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32223echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32224
32225 if test "$wx_cv_func_cxa_demangle" = "yes"; then
32226 cat >>confdefs.h <<\_ACEOF
32227#define HAVE_CXA_DEMANGLE 1
32228_ACEOF
32229
32230 fi
32231 fi
32232
32233 ac_ext=c
32234ac_cpp='$CPP $CPPFLAGS'
32235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32237ac_compiler_gnu=$ac_cv_c_compiler_gnu
32238
32239fi
32240
898beab1
DE
32241if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32242 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32243echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32244 wxUSE_STACKWALKER=no
32245fi
32246
32247
a848cd7e
SC
32248
32249
32250for ac_func in mkstemp mktemp
32251do
32252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32253echo "$as_me:$LINENO: checking for $ac_func" >&5
32254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32255if eval "test \"\${$as_ac_var+set}\" = set"; then
32256 echo $ECHO_N "(cached) $ECHO_C" >&6
32257else
32258 cat >conftest.$ac_ext <<_ACEOF
32259/* confdefs.h. */
32260_ACEOF
32261cat confdefs.h >>conftest.$ac_ext
32262cat >>conftest.$ac_ext <<_ACEOF
32263/* end confdefs.h. */
ac1cb8d3
VS
32264/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32266#define $ac_func innocuous_$ac_func
32267
a848cd7e
SC
32268/* System header to define __stub macros and hopefully few prototypes,
32269 which can conflict with char $ac_func (); below.
32270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32271 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32272
a848cd7e
SC
32273#ifdef __STDC__
32274# include <limits.h>
32275#else
32276# include <assert.h>
32277#endif
ac1cb8d3
VS
32278
32279#undef $ac_func
32280
a848cd7e
SC
32281/* Override any gcc2 internal prototype to avoid an error. */
32282#ifdef __cplusplus
32283extern "C"
32284{
32285#endif
32286/* We use char because int might match the return type of a gcc2
32287 builtin and then its argument prototype would still apply. */
32288char $ac_func ();
32289/* The GNU C library defines this for functions which it implements
32290 to always fail with ENOSYS. Some functions are actually named
32291 something starting with __ and the normal name is an alias. */
32292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32293choke me
32294#else
32295char (*f) () = $ac_func;
32296#endif
32297#ifdef __cplusplus
32298}
32299#endif
32300
32301int
32302main ()
32303{
32304return f != $ac_func;
32305 ;
32306 return 0;
32307}
32308_ACEOF
32309rm -f conftest.$ac_objext conftest$ac_exeext
32310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32311 (eval $ac_link) 2>conftest.er1
a848cd7e 32312 ac_status=$?
ac1cb8d3
VS
32313 grep -v '^ *+' conftest.er1 >conftest.err
32314 rm -f conftest.er1
32315 cat conftest.err >&5
a848cd7e
SC
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); } &&
fb00f58d
JS
32318 { ac_try='test -z "$ac_c_werror_flag"
32319 || test ! -s conftest.err'
ac1cb8d3
VS
32320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32321 (eval $ac_try) 2>&5
32322 ac_status=$?
32323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324 (exit $ac_status); }; } &&
32325 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32327 (eval $ac_try) 2>&5
32328 ac_status=$?
32329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32330 (exit $ac_status); }; }; then
32331 eval "$as_ac_var=yes"
32332else
32333 echo "$as_me: failed program was:" >&5
32334sed 's/^/| /' conftest.$ac_ext >&5
32335
32336eval "$as_ac_var=no"
32337fi
ac1cb8d3
VS
32338rm -f conftest.err conftest.$ac_objext \
32339 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32340fi
32341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32342echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32343if test `eval echo '${'$as_ac_var'}'` = yes; then
32344 cat >>confdefs.h <<_ACEOF
32345#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32346_ACEOF
32347 break
32348fi
32349done
32350
32351
32352echo "$as_me:$LINENO: checking for statfs" >&5
32353echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32354if test "${wx_cv_func_statfs+set}" = set; then
32355 echo $ECHO_N "(cached) $ECHO_C" >&6
32356else
32357 cat >conftest.$ac_ext <<_ACEOF
32358/* confdefs.h. */
32359_ACEOF
32360cat confdefs.h >>conftest.$ac_ext
32361cat >>conftest.$ac_ext <<_ACEOF
32362/* end confdefs.h. */
32363
32364 #if defined(__BSD__)
32365 #include <sys/param.h>
32366 #include <sys/mount.h>
32367 #else
32368 #include <sys/vfs.h>
32369 #endif
32370
32371int
32372main ()
32373{
32374
32375 long l;
32376 struct statfs fs;
32377 statfs("/", &fs);
32378 l = fs.f_bsize;
32379 l += fs.f_blocks;
32380 l += fs.f_bavail;
32381
32382 ;
32383 return 0;
32384}
32385_ACEOF
32386rm -f conftest.$ac_objext
32387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32388 (eval $ac_compile) 2>conftest.er1
a848cd7e 32389 ac_status=$?
ac1cb8d3
VS
32390 grep -v '^ *+' conftest.er1 >conftest.err
32391 rm -f conftest.er1
32392 cat conftest.err >&5
a848cd7e
SC
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); } &&
fb00f58d
JS
32395 { ac_try='test -z "$ac_c_werror_flag"
32396 || test ! -s conftest.err'
ac1cb8d3
VS
32397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398 (eval $ac_try) 2>&5
32399 ac_status=$?
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; } &&
32402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32404 (eval $ac_try) 2>&5
32405 ac_status=$?
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; }; then
32408
32409 wx_cv_func_statfs=yes
32410
32411else
32412 echo "$as_me: failed program was:" >&5
32413sed 's/^/| /' conftest.$ac_ext >&5
32414
32415
32416 wx_cv_func_statfs=no
32417
32418
32419fi
ac1cb8d3 32420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32421
32422fi
32423echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32424echo "${ECHO_T}$wx_cv_func_statfs" >&6
32425
32426if test "$wx_cv_func_statfs" = "yes"; then
32427 wx_cv_type_statvfs_t="struct statfs"
32428 cat >>confdefs.h <<\_ACEOF
32429#define HAVE_STATFS 1
32430_ACEOF
32431
32432else
32433 echo "$as_me:$LINENO: checking for statvfs" >&5
32434echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32435if test "${wx_cv_func_statvfs+set}" = set; then
32436 echo $ECHO_N "(cached) $ECHO_C" >&6
32437else
32438 cat >conftest.$ac_ext <<_ACEOF
32439/* confdefs.h. */
32440_ACEOF
32441cat confdefs.h >>conftest.$ac_ext
32442cat >>conftest.$ac_ext <<_ACEOF
32443/* end confdefs.h. */
32444
32445 #include <stddef.h>
32446 #include <sys/statvfs.h>
32447
32448int
32449main ()
32450{
32451
32452 statvfs("/", NULL);
32453
32454 ;
32455 return 0;
32456}
32457_ACEOF
32458rm -f conftest.$ac_objext
32459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32460 (eval $ac_compile) 2>conftest.er1
a848cd7e 32461 ac_status=$?
ac1cb8d3
VS
32462 grep -v '^ *+' conftest.er1 >conftest.err
32463 rm -f conftest.er1
32464 cat conftest.err >&5
a848cd7e
SC
32465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 (exit $ac_status); } &&
fb00f58d
JS
32467 { ac_try='test -z "$ac_c_werror_flag"
32468 || test ! -s conftest.err'
ac1cb8d3
VS
32469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32470 (eval $ac_try) 2>&5
32471 ac_status=$?
32472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473 (exit $ac_status); }; } &&
32474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32476 (eval $ac_try) 2>&5
32477 ac_status=$?
32478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479 (exit $ac_status); }; }; then
32480 wx_cv_func_statvfs=yes
32481else
32482 echo "$as_me: failed program was:" >&5
32483sed 's/^/| /' conftest.$ac_ext >&5
32484
32485wx_cv_func_statvfs=no
32486
32487fi
ac1cb8d3 32488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32489
32490fi
32491echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32492echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32493
32494 if test "$wx_cv_func_statvfs" = "yes"; then
32495
32496
32497 ac_ext=cc
32498ac_cpp='$CXXCPP $CPPFLAGS'
32499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32502
32503
32504 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32505echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32506if test "${wx_cv_type_statvfs_t+set}" = set; then
32507 echo $ECHO_N "(cached) $ECHO_C" >&6
32508else
32509 cat >conftest.$ac_ext <<_ACEOF
32510/* confdefs.h. */
32511_ACEOF
32512cat confdefs.h >>conftest.$ac_ext
32513cat >>conftest.$ac_ext <<_ACEOF
32514/* end confdefs.h. */
32515
32516 #include <sys/statvfs.h>
32517
32518int
32519main ()
32520{
32521
32522 long l;
32523 statvfs_t fs;
32524 statvfs("/", &fs);
32525 l = fs.f_bsize;
32526 l += fs.f_blocks;
32527 l += fs.f_bavail;
32528
32529 ;
32530 return 0;
32531}
32532_ACEOF
32533rm -f conftest.$ac_objext
32534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32535 (eval $ac_compile) 2>conftest.er1
a848cd7e 32536 ac_status=$?
ac1cb8d3
VS
32537 grep -v '^ *+' conftest.er1 >conftest.err
32538 rm -f conftest.er1
32539 cat conftest.err >&5
a848cd7e
SC
32540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); } &&
fb00f58d
JS
32542 { ac_try='test -z "$ac_cxx_werror_flag"
32543 || test ! -s conftest.err'
ac1cb8d3
VS
32544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32545 (eval $ac_try) 2>&5
32546 ac_status=$?
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); }; } &&
32549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32551 (eval $ac_try) 2>&5
32552 ac_status=$?
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); }; }; then
32555 wx_cv_type_statvfs_t=statvfs_t
32556else
32557 echo "$as_me: failed program was:" >&5
32558sed 's/^/| /' conftest.$ac_ext >&5
32559
32560
32561 cat >conftest.$ac_ext <<_ACEOF
32562/* confdefs.h. */
32563_ACEOF
32564cat confdefs.h >>conftest.$ac_ext
32565cat >>conftest.$ac_ext <<_ACEOF
32566/* end confdefs.h. */
32567
32568 #include <sys/statvfs.h>
32569
32570int
32571main ()
32572{
32573
32574 long l;
32575 struct statvfs fs;
32576 statvfs("/", &fs);
32577 l = fs.f_bsize;
32578 l += fs.f_blocks;
32579 l += fs.f_bavail;
32580
32581 ;
32582 return 0;
32583}
32584_ACEOF
32585rm -f conftest.$ac_objext
32586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32587 (eval $ac_compile) 2>conftest.er1
a848cd7e 32588 ac_status=$?
ac1cb8d3
VS
32589 grep -v '^ *+' conftest.er1 >conftest.err
32590 rm -f conftest.er1
32591 cat conftest.err >&5
a848cd7e
SC
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); } &&
fb00f58d
JS
32594 { ac_try='test -z "$ac_cxx_werror_flag"
32595 || test ! -s conftest.err'
ac1cb8d3
VS
32596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32597 (eval $ac_try) 2>&5
32598 ac_status=$?
32599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600 (exit $ac_status); }; } &&
32601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32603 (eval $ac_try) 2>&5
32604 ac_status=$?
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); }; }; then
32607 wx_cv_type_statvfs_t="struct statvfs"
32608else
32609 echo "$as_me: failed program was:" >&5
32610sed 's/^/| /' conftest.$ac_ext >&5
32611
32612wx_cv_type_statvfs_t="unknown"
32613
32614fi
ac1cb8d3 32615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32616
32617
32618fi
ac1cb8d3 32619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32620
32621fi
32622echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32623echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32624
32625 ac_ext=c
32626ac_cpp='$CPP $CPPFLAGS'
32627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32629ac_compiler_gnu=$ac_cv_c_compiler_gnu
32630
32631
32632 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32633 cat >>confdefs.h <<\_ACEOF
32634#define HAVE_STATVFS 1
32635_ACEOF
32636
32637 fi
32638 else
32639 wx_cv_type_statvfs_t="unknown"
32640 fi
32641fi
32642
32643if test "$wx_cv_type_statvfs_t" != "unknown"; then
32644 cat >>confdefs.h <<_ACEOF
32645#define WX_STATFS_T $wx_cv_type_statvfs_t
32646_ACEOF
32647
32648else
32649 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32650echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32651fi
32652
32653if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32654
32655
32656for ac_func in fcntl flock
32657do
32658as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32659echo "$as_me:$LINENO: checking for $ac_func" >&5
32660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32661if eval "test \"\${$as_ac_var+set}\" = set"; then
32662 echo $ECHO_N "(cached) $ECHO_C" >&6
32663else
32664 cat >conftest.$ac_ext <<_ACEOF
32665/* confdefs.h. */
32666_ACEOF
32667cat confdefs.h >>conftest.$ac_ext
32668cat >>conftest.$ac_ext <<_ACEOF
32669/* end confdefs.h. */
ac1cb8d3
VS
32670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32672#define $ac_func innocuous_$ac_func
32673
a848cd7e
SC
32674/* System header to define __stub macros and hopefully few prototypes,
32675 which can conflict with char $ac_func (); below.
32676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32677 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32678
a848cd7e
SC
32679#ifdef __STDC__
32680# include <limits.h>
32681#else
32682# include <assert.h>
32683#endif
ac1cb8d3
VS
32684
32685#undef $ac_func
32686
a848cd7e
SC
32687/* Override any gcc2 internal prototype to avoid an error. */
32688#ifdef __cplusplus
32689extern "C"
32690{
32691#endif
32692/* We use char because int might match the return type of a gcc2
32693 builtin and then its argument prototype would still apply. */
32694char $ac_func ();
32695/* The GNU C library defines this for functions which it implements
32696 to always fail with ENOSYS. Some functions are actually named
32697 something starting with __ and the normal name is an alias. */
32698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32699choke me
32700#else
32701char (*f) () = $ac_func;
32702#endif
32703#ifdef __cplusplus
32704}
32705#endif
32706
32707int
32708main ()
32709{
32710return f != $ac_func;
32711 ;
32712 return 0;
32713}
32714_ACEOF
32715rm -f conftest.$ac_objext conftest$ac_exeext
32716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32717 (eval $ac_link) 2>conftest.er1
a848cd7e 32718 ac_status=$?
ac1cb8d3
VS
32719 grep -v '^ *+' conftest.er1 >conftest.err
32720 rm -f conftest.er1
32721 cat conftest.err >&5
a848cd7e
SC
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); } &&
fb00f58d
JS
32724 { ac_try='test -z "$ac_c_werror_flag"
32725 || test ! -s conftest.err'
ac1cb8d3
VS
32726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32727 (eval $ac_try) 2>&5
32728 ac_status=$?
32729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730 (exit $ac_status); }; } &&
32731 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32733 (eval $ac_try) 2>&5
32734 ac_status=$?
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); }; }; then
32737 eval "$as_ac_var=yes"
32738else
32739 echo "$as_me: failed program was:" >&5
32740sed 's/^/| /' conftest.$ac_ext >&5
32741
32742eval "$as_ac_var=no"
32743fi
ac1cb8d3
VS
32744rm -f conftest.err conftest.$ac_objext \
32745 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32746fi
32747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32748echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32749if test `eval echo '${'$as_ac_var'}'` = yes; then
32750 cat >>confdefs.h <<_ACEOF
32751#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32752_ACEOF
32753 break
32754fi
32755done
32756
32757
32758 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32759 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32760echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32761 wxUSE_SNGLINST_CHECKER=no
32762 fi
32763fi
32764
32765
32766for ac_func in timegm
32767do
32768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32769echo "$as_me:$LINENO: checking for $ac_func" >&5
32770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32771if eval "test \"\${$as_ac_var+set}\" = set"; then
32772 echo $ECHO_N "(cached) $ECHO_C" >&6
32773else
32774 cat >conftest.$ac_ext <<_ACEOF
32775/* confdefs.h. */
32776_ACEOF
32777cat confdefs.h >>conftest.$ac_ext
32778cat >>conftest.$ac_ext <<_ACEOF
32779/* end confdefs.h. */
ac1cb8d3
VS
32780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32782#define $ac_func innocuous_$ac_func
32783
a848cd7e
SC
32784/* System header to define __stub macros and hopefully few prototypes,
32785 which can conflict with char $ac_func (); below.
32786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32787 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32788
a848cd7e
SC
32789#ifdef __STDC__
32790# include <limits.h>
32791#else
32792# include <assert.h>
32793#endif
ac1cb8d3
VS
32794
32795#undef $ac_func
32796
a848cd7e
SC
32797/* Override any gcc2 internal prototype to avoid an error. */
32798#ifdef __cplusplus
32799extern "C"
32800{
32801#endif
32802/* We use char because int might match the return type of a gcc2
32803 builtin and then its argument prototype would still apply. */
32804char $ac_func ();
32805/* The GNU C library defines this for functions which it implements
32806 to always fail with ENOSYS. Some functions are actually named
32807 something starting with __ and the normal name is an alias. */
32808#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32809choke me
32810#else
32811char (*f) () = $ac_func;
32812#endif
32813#ifdef __cplusplus
32814}
32815#endif
32816
32817int
32818main ()
32819{
32820return f != $ac_func;
32821 ;
32822 return 0;
32823}
32824_ACEOF
32825rm -f conftest.$ac_objext conftest$ac_exeext
32826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32827 (eval $ac_link) 2>conftest.er1
a848cd7e 32828 ac_status=$?
ac1cb8d3
VS
32829 grep -v '^ *+' conftest.er1 >conftest.err
32830 rm -f conftest.er1
32831 cat conftest.err >&5
a848cd7e
SC
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); } &&
fb00f58d
JS
32834 { ac_try='test -z "$ac_c_werror_flag"
32835 || test ! -s conftest.err'
ac1cb8d3
VS
32836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32837 (eval $ac_try) 2>&5
32838 ac_status=$?
32839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); }; } &&
32841 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32843 (eval $ac_try) 2>&5
32844 ac_status=$?
32845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846 (exit $ac_status); }; }; then
32847 eval "$as_ac_var=yes"
32848else
32849 echo "$as_me: failed program was:" >&5
32850sed 's/^/| /' conftest.$ac_ext >&5
32851
32852eval "$as_ac_var=no"
32853fi
ac1cb8d3
VS
32854rm -f conftest.err conftest.$ac_objext \
32855 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32856fi
32857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32858echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32859if test `eval echo '${'$as_ac_var'}'` = yes; then
32860 cat >>confdefs.h <<_ACEOF
32861#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32862_ACEOF
32863
32864fi
32865done
32866
32867
32868
32869
32870for ac_func in putenv setenv
32871do
32872as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32873echo "$as_me:$LINENO: checking for $ac_func" >&5
32874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32875if eval "test \"\${$as_ac_var+set}\" = set"; then
32876 echo $ECHO_N "(cached) $ECHO_C" >&6
32877else
32878 cat >conftest.$ac_ext <<_ACEOF
32879/* confdefs.h. */
32880_ACEOF
32881cat confdefs.h >>conftest.$ac_ext
32882cat >>conftest.$ac_ext <<_ACEOF
32883/* end confdefs.h. */
ac1cb8d3
VS
32884/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32886#define $ac_func innocuous_$ac_func
32887
a848cd7e
SC
32888/* System header to define __stub macros and hopefully few prototypes,
32889 which can conflict with char $ac_func (); below.
32890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32891 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32892
a848cd7e
SC
32893#ifdef __STDC__
32894# include <limits.h>
32895#else
32896# include <assert.h>
32897#endif
ac1cb8d3
VS
32898
32899#undef $ac_func
32900
a848cd7e
SC
32901/* Override any gcc2 internal prototype to avoid an error. */
32902#ifdef __cplusplus
32903extern "C"
32904{
32905#endif
32906/* We use char because int might match the return type of a gcc2
32907 builtin and then its argument prototype would still apply. */
32908char $ac_func ();
32909/* The GNU C library defines this for functions which it implements
32910 to always fail with ENOSYS. Some functions are actually named
32911 something starting with __ and the normal name is an alias. */
32912#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32913choke me
32914#else
32915char (*f) () = $ac_func;
32916#endif
32917#ifdef __cplusplus
32918}
32919#endif
32920
32921int
32922main ()
32923{
32924return f != $ac_func;
32925 ;
32926 return 0;
32927}
32928_ACEOF
32929rm -f conftest.$ac_objext conftest$ac_exeext
32930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32931 (eval $ac_link) 2>conftest.er1
a848cd7e 32932 ac_status=$?
ac1cb8d3
VS
32933 grep -v '^ *+' conftest.er1 >conftest.err
32934 rm -f conftest.er1
32935 cat conftest.err >&5
a848cd7e
SC
32936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32937 (exit $ac_status); } &&
fb00f58d
JS
32938 { ac_try='test -z "$ac_c_werror_flag"
32939 || test ! -s conftest.err'
ac1cb8d3
VS
32940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32941 (eval $ac_try) 2>&5
32942 ac_status=$?
32943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944 (exit $ac_status); }; } &&
32945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32947 (eval $ac_try) 2>&5
32948 ac_status=$?
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; }; then
32951 eval "$as_ac_var=yes"
32952else
32953 echo "$as_me: failed program was:" >&5
32954sed 's/^/| /' conftest.$ac_ext >&5
32955
32956eval "$as_ac_var=no"
32957fi
ac1cb8d3
VS
32958rm -f conftest.err conftest.$ac_objext \
32959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32960fi
32961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32962echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32963if test `eval echo '${'$as_ac_var'}'` = yes; then
32964 cat >>confdefs.h <<_ACEOF
32965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32966_ACEOF
32967 break
32968fi
32969done
32970
32971
32972HAVE_SOME_SLEEP_FUNC=0
32973if test "$USE_BEOS" = 1; then
32974 cat >>confdefs.h <<\_ACEOF
32975#define HAVE_SLEEP 1
32976_ACEOF
32977
32978 HAVE_SOME_SLEEP_FUNC=1
32979fi
32980
32981if test "$USE_DARWIN" = 1; then
32982 cat >>confdefs.h <<\_ACEOF
32983#define HAVE_USLEEP 1
32984_ACEOF
32985
32986 HAVE_SOME_SLEEP_FUNC=1
32987fi
32988
32989if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32990 POSIX4_LINK=
32991
32992for ac_func in nanosleep
32993do
32994as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32995echo "$as_me:$LINENO: checking for $ac_func" >&5
32996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32997if eval "test \"\${$as_ac_var+set}\" = set"; then
32998 echo $ECHO_N "(cached) $ECHO_C" >&6
32999else
33000 cat >conftest.$ac_ext <<_ACEOF
33001/* confdefs.h. */
33002_ACEOF
33003cat confdefs.h >>conftest.$ac_ext
33004cat >>conftest.$ac_ext <<_ACEOF
33005/* end confdefs.h. */
ac1cb8d3
VS
33006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33008#define $ac_func innocuous_$ac_func
33009
a848cd7e
SC
33010/* System header to define __stub macros and hopefully few prototypes,
33011 which can conflict with char $ac_func (); below.
33012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33013 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33014
a848cd7e
SC
33015#ifdef __STDC__
33016# include <limits.h>
33017#else
33018# include <assert.h>
33019#endif
ac1cb8d3
VS
33020
33021#undef $ac_func
33022
a848cd7e
SC
33023/* Override any gcc2 internal prototype to avoid an error. */
33024#ifdef __cplusplus
33025extern "C"
33026{
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 $ac_func ();
33031/* The GNU C library defines this for functions which it implements
33032 to always fail with ENOSYS. Some functions are actually named
33033 something starting with __ and the normal name is an alias. */
33034#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33035choke me
33036#else
33037char (*f) () = $ac_func;
33038#endif
33039#ifdef __cplusplus
33040}
33041#endif
33042
33043int
33044main ()
33045{
33046return f != $ac_func;
33047 ;
33048 return 0;
33049}
33050_ACEOF
33051rm -f conftest.$ac_objext conftest$ac_exeext
33052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33053 (eval $ac_link) 2>conftest.er1
a848cd7e 33054 ac_status=$?
ac1cb8d3
VS
33055 grep -v '^ *+' conftest.er1 >conftest.err
33056 rm -f conftest.er1
33057 cat conftest.err >&5
a848cd7e
SC
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); } &&
fb00f58d
JS
33060 { ac_try='test -z "$ac_c_werror_flag"
33061 || test ! -s conftest.err'
ac1cb8d3
VS
33062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33063 (eval $ac_try) 2>&5
33064 ac_status=$?
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); }; } &&
33067 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33069 (eval $ac_try) 2>&5
33070 ac_status=$?
33071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072 (exit $ac_status); }; }; then
33073 eval "$as_ac_var=yes"
33074else
33075 echo "$as_me: failed program was:" >&5
33076sed 's/^/| /' conftest.$ac_ext >&5
33077
33078eval "$as_ac_var=no"
33079fi
ac1cb8d3
VS
33080rm -f conftest.err conftest.$ac_objext \
33081 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33082fi
33083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33084echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33085if test `eval echo '${'$as_ac_var'}'` = yes; then
33086 cat >>confdefs.h <<_ACEOF
33087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33088_ACEOF
33089 cat >>confdefs.h <<\_ACEOF
33090#define HAVE_NANOSLEEP 1
33091_ACEOF
33092
33093else
33094
33095 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
33096echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
33097if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
33098 echo $ECHO_N "(cached) $ECHO_C" >&6
33099else
33100 ac_check_lib_save_LIBS=$LIBS
33101LIBS="-lposix4 $LIBS"
33102cat >conftest.$ac_ext <<_ACEOF
33103/* confdefs.h. */
33104_ACEOF
33105cat confdefs.h >>conftest.$ac_ext
33106cat >>conftest.$ac_ext <<_ACEOF
33107/* end confdefs.h. */
33108
33109/* Override any gcc2 internal prototype to avoid an error. */
33110#ifdef __cplusplus
33111extern "C"
33112#endif
33113/* We use char because int might match the return type of a gcc2
33114 builtin and then its argument prototype would still apply. */
33115char nanosleep ();
33116int
33117main ()
33118{
33119nanosleep ();
33120 ;
33121 return 0;
33122}
33123_ACEOF
33124rm -f conftest.$ac_objext conftest$ac_exeext
33125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33126 (eval $ac_link) 2>conftest.er1
a848cd7e 33127 ac_status=$?
ac1cb8d3
VS
33128 grep -v '^ *+' conftest.er1 >conftest.err
33129 rm -f conftest.er1
33130 cat conftest.err >&5
a848cd7e
SC
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); } &&
fb00f58d
JS
33133 { ac_try='test -z "$ac_c_werror_flag"
33134 || test ! -s conftest.err'
ac1cb8d3
VS
33135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33136 (eval $ac_try) 2>&5
33137 ac_status=$?
33138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33139 (exit $ac_status); }; } &&
33140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33142 (eval $ac_try) 2>&5
33143 ac_status=$?
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); }; }; then
33146 ac_cv_lib_posix4_nanosleep=yes
33147else
33148 echo "$as_me: failed program was:" >&5
33149sed 's/^/| /' conftest.$ac_ext >&5
33150
33151ac_cv_lib_posix4_nanosleep=no
33152fi
ac1cb8d3
VS
33153rm -f conftest.err conftest.$ac_objext \
33154 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33155LIBS=$ac_check_lib_save_LIBS
33156fi
33157echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
33158echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
33159if test $ac_cv_lib_posix4_nanosleep = yes; then
33160
33161 cat >>confdefs.h <<\_ACEOF
33162#define HAVE_NANOSLEEP 1
33163_ACEOF
33164
33165 POSIX4_LINK=" -lposix4"
33166
33167else
33168
33169
33170for ac_func in usleep
33171do
33172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33173echo "$as_me:$LINENO: checking for $ac_func" >&5
33174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33175if eval "test \"\${$as_ac_var+set}\" = set"; then
33176 echo $ECHO_N "(cached) $ECHO_C" >&6
33177else
33178 cat >conftest.$ac_ext <<_ACEOF
33179/* confdefs.h. */
33180_ACEOF
33181cat confdefs.h >>conftest.$ac_ext
33182cat >>conftest.$ac_ext <<_ACEOF
33183/* end confdefs.h. */
ac1cb8d3
VS
33184/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33186#define $ac_func innocuous_$ac_func
33187
a848cd7e
SC
33188/* System header to define __stub macros and hopefully few prototypes,
33189 which can conflict with char $ac_func (); below.
33190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33191 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33192
a848cd7e
SC
33193#ifdef __STDC__
33194# include <limits.h>
33195#else
33196# include <assert.h>
33197#endif
ac1cb8d3
VS
33198
33199#undef $ac_func
33200
a848cd7e
SC
33201/* Override any gcc2 internal prototype to avoid an error. */
33202#ifdef __cplusplus
33203extern "C"
33204{
33205#endif
33206/* We use char because int might match the return type of a gcc2
33207 builtin and then its argument prototype would still apply. */
33208char $ac_func ();
33209/* The GNU C library defines this for functions which it implements
33210 to always fail with ENOSYS. Some functions are actually named
33211 something starting with __ and the normal name is an alias. */
33212#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33213choke me
33214#else
33215char (*f) () = $ac_func;
33216#endif
33217#ifdef __cplusplus
33218}
33219#endif
33220
33221int
33222main ()
33223{
33224return f != $ac_func;
33225 ;
33226 return 0;
33227}
33228_ACEOF
33229rm -f conftest.$ac_objext conftest$ac_exeext
33230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33231 (eval $ac_link) 2>conftest.er1
a848cd7e 33232 ac_status=$?
ac1cb8d3
VS
33233 grep -v '^ *+' conftest.er1 >conftest.err
33234 rm -f conftest.er1
33235 cat conftest.err >&5
a848cd7e
SC
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); } &&
fb00f58d
JS
33238 { ac_try='test -z "$ac_c_werror_flag"
33239 || test ! -s conftest.err'
ac1cb8d3
VS
33240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33241 (eval $ac_try) 2>&5
33242 ac_status=$?
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); }; } &&
33245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33247 (eval $ac_try) 2>&5
33248 ac_status=$?
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); }; }; then
33251 eval "$as_ac_var=yes"
33252else
33253 echo "$as_me: failed program was:" >&5
33254sed 's/^/| /' conftest.$ac_ext >&5
33255
33256eval "$as_ac_var=no"
33257fi
ac1cb8d3
VS
33258rm -f conftest.err conftest.$ac_objext \
33259 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33260fi
33261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33262echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33263if test `eval echo '${'$as_ac_var'}'` = yes; then
33264 cat >>confdefs.h <<_ACEOF
33265#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33266_ACEOF
33267 cat >>confdefs.h <<\_ACEOF
33268#define HAVE_USLEEP 1
33269_ACEOF
33270
33271else
33272 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33273echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33274
33275fi
33276done
33277
33278
33279
33280fi
33281
33282
33283
33284fi
33285done
33286
33287fi
33288
33289
33290
33291for ac_func in uname gethostname
33292do
33293as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33294echo "$as_me:$LINENO: checking for $ac_func" >&5
33295echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33296if eval "test \"\${$as_ac_var+set}\" = set"; then
33297 echo $ECHO_N "(cached) $ECHO_C" >&6
33298else
33299 cat >conftest.$ac_ext <<_ACEOF
33300/* confdefs.h. */
33301_ACEOF
33302cat confdefs.h >>conftest.$ac_ext
33303cat >>conftest.$ac_ext <<_ACEOF
33304/* end confdefs.h. */
ac1cb8d3
VS
33305/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33307#define $ac_func innocuous_$ac_func
33308
a848cd7e
SC
33309/* System header to define __stub macros and hopefully few prototypes,
33310 which can conflict with char $ac_func (); below.
33311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33312 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33313
a848cd7e
SC
33314#ifdef __STDC__
33315# include <limits.h>
33316#else
33317# include <assert.h>
33318#endif
ac1cb8d3
VS
33319
33320#undef $ac_func
33321
a848cd7e
SC
33322/* Override any gcc2 internal prototype to avoid an error. */
33323#ifdef __cplusplus
33324extern "C"
33325{
33326#endif
33327/* We use char because int might match the return type of a gcc2
33328 builtin and then its argument prototype would still apply. */
33329char $ac_func ();
33330/* The GNU C library defines this for functions which it implements
33331 to always fail with ENOSYS. Some functions are actually named
33332 something starting with __ and the normal name is an alias. */
33333#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33334choke me
33335#else
33336char (*f) () = $ac_func;
33337#endif
33338#ifdef __cplusplus
33339}
33340#endif
33341
33342int
33343main ()
33344{
33345return f != $ac_func;
33346 ;
33347 return 0;
33348}
33349_ACEOF
33350rm -f conftest.$ac_objext conftest$ac_exeext
33351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33352 (eval $ac_link) 2>conftest.er1
a848cd7e 33353 ac_status=$?
ac1cb8d3
VS
33354 grep -v '^ *+' conftest.er1 >conftest.err
33355 rm -f conftest.er1
33356 cat conftest.err >&5
a848cd7e
SC
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); } &&
fb00f58d
JS
33359 { ac_try='test -z "$ac_c_werror_flag"
33360 || test ! -s conftest.err'
ac1cb8d3
VS
33361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33362 (eval $ac_try) 2>&5
33363 ac_status=$?
33364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365 (exit $ac_status); }; } &&
33366 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33368 (eval $ac_try) 2>&5
33369 ac_status=$?
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); }; }; then
33372 eval "$as_ac_var=yes"
33373else
33374 echo "$as_me: failed program was:" >&5
33375sed 's/^/| /' conftest.$ac_ext >&5
33376
33377eval "$as_ac_var=no"
33378fi
ac1cb8d3
VS
33379rm -f conftest.err conftest.$ac_objext \
33380 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33381fi
33382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33383echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33384if test `eval echo '${'$as_ac_var'}'` = yes; then
33385 cat >>confdefs.h <<_ACEOF
33386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33387_ACEOF
33388 break
33389fi
33390done
33391
33392
33393
33394
33395ac_ext=cc
33396ac_cpp='$CXXCPP $CPPFLAGS'
33397ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33398ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33399ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33400
33401
33402
33403for ac_func in strtok_r
33404do
33405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33406echo "$as_me:$LINENO: checking for $ac_func" >&5
33407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33408if eval "test \"\${$as_ac_var+set}\" = set"; then
33409 echo $ECHO_N "(cached) $ECHO_C" >&6
33410else
33411 cat >conftest.$ac_ext <<_ACEOF
33412/* confdefs.h. */
33413_ACEOF
33414cat confdefs.h >>conftest.$ac_ext
33415cat >>conftest.$ac_ext <<_ACEOF
33416/* end confdefs.h. */
ac1cb8d3
VS
33417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33419#define $ac_func innocuous_$ac_func
33420
a848cd7e
SC
33421/* System header to define __stub macros and hopefully few prototypes,
33422 which can conflict with char $ac_func (); below.
33423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33424 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33425
a848cd7e
SC
33426#ifdef __STDC__
33427# include <limits.h>
33428#else
33429# include <assert.h>
33430#endif
ac1cb8d3
VS
33431
33432#undef $ac_func
33433
a848cd7e
SC
33434/* Override any gcc2 internal prototype to avoid an error. */
33435#ifdef __cplusplus
33436extern "C"
33437{
33438#endif
33439/* We use char because int might match the return type of a gcc2
33440 builtin and then its argument prototype would still apply. */
33441char $ac_func ();
33442/* The GNU C library defines this for functions which it implements
33443 to always fail with ENOSYS. Some functions are actually named
33444 something starting with __ and the normal name is an alias. */
33445#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33446choke me
33447#else
33448char (*f) () = $ac_func;
33449#endif
33450#ifdef __cplusplus
33451}
33452#endif
33453
33454int
33455main ()
33456{
33457return f != $ac_func;
33458 ;
33459 return 0;
33460}
33461_ACEOF
33462rm -f conftest.$ac_objext conftest$ac_exeext
33463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33464 (eval $ac_link) 2>conftest.er1
a848cd7e 33465 ac_status=$?
ac1cb8d3
VS
33466 grep -v '^ *+' conftest.er1 >conftest.err
33467 rm -f conftest.er1
33468 cat conftest.err >&5
a848cd7e
SC
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); } &&
fb00f58d
JS
33471 { ac_try='test -z "$ac_cxx_werror_flag"
33472 || test ! -s conftest.err'
ac1cb8d3
VS
33473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33474 (eval $ac_try) 2>&5
33475 ac_status=$?
33476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); }; } &&
33478 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33480 (eval $ac_try) 2>&5
33481 ac_status=$?
33482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483 (exit $ac_status); }; }; then
33484 eval "$as_ac_var=yes"
33485else
33486 echo "$as_me: failed program was:" >&5
33487sed 's/^/| /' conftest.$ac_ext >&5
33488
33489eval "$as_ac_var=no"
33490fi
ac1cb8d3
VS
33491rm -f conftest.err conftest.$ac_objext \
33492 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33493fi
33494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33495echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33496if test `eval echo '${'$as_ac_var'}'` = yes; then
33497 cat >>confdefs.h <<_ACEOF
33498#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33499_ACEOF
33500
33501fi
33502done
33503
33504
33505ac_ext=c
33506ac_cpp='$CPP $CPPFLAGS'
33507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33509ac_compiler_gnu=$ac_cv_c_compiler_gnu
33510
33511
33512INET_LINK=
33513
33514for ac_func in inet_addr
33515do
33516as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33517echo "$as_me:$LINENO: checking for $ac_func" >&5
33518echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33519if eval "test \"\${$as_ac_var+set}\" = set"; then
33520 echo $ECHO_N "(cached) $ECHO_C" >&6
33521else
33522 cat >conftest.$ac_ext <<_ACEOF
33523/* confdefs.h. */
33524_ACEOF
33525cat confdefs.h >>conftest.$ac_ext
33526cat >>conftest.$ac_ext <<_ACEOF
33527/* end confdefs.h. */
ac1cb8d3
VS
33528/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33530#define $ac_func innocuous_$ac_func
33531
a848cd7e
SC
33532/* System header to define __stub macros and hopefully few prototypes,
33533 which can conflict with char $ac_func (); below.
33534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33535 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33536
a848cd7e
SC
33537#ifdef __STDC__
33538# include <limits.h>
33539#else
33540# include <assert.h>
33541#endif
ac1cb8d3
VS
33542
33543#undef $ac_func
33544
a848cd7e
SC
33545/* Override any gcc2 internal prototype to avoid an error. */
33546#ifdef __cplusplus
33547extern "C"
33548{
33549#endif
33550/* We use char because int might match the return type of a gcc2
33551 builtin and then its argument prototype would still apply. */
33552char $ac_func ();
33553/* The GNU C library defines this for functions which it implements
33554 to always fail with ENOSYS. Some functions are actually named
33555 something starting with __ and the normal name is an alias. */
33556#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33557choke me
33558#else
33559char (*f) () = $ac_func;
33560#endif
33561#ifdef __cplusplus
33562}
33563#endif
33564
33565int
33566main ()
33567{
33568return f != $ac_func;
33569 ;
33570 return 0;
33571}
33572_ACEOF
33573rm -f conftest.$ac_objext conftest$ac_exeext
33574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33575 (eval $ac_link) 2>conftest.er1
a848cd7e 33576 ac_status=$?
ac1cb8d3
VS
33577 grep -v '^ *+' conftest.er1 >conftest.err
33578 rm -f conftest.er1
33579 cat conftest.err >&5
a848cd7e
SC
33580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); } &&
fb00f58d
JS
33582 { ac_try='test -z "$ac_c_werror_flag"
33583 || test ! -s conftest.err'
ac1cb8d3
VS
33584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33585 (eval $ac_try) 2>&5
33586 ac_status=$?
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); }; } &&
33589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591 (eval $ac_try) 2>&5
33592 ac_status=$?
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); }; }; then
33595 eval "$as_ac_var=yes"
33596else
33597 echo "$as_me: failed program was:" >&5
33598sed 's/^/| /' conftest.$ac_ext >&5
33599
33600eval "$as_ac_var=no"
33601fi
ac1cb8d3
VS
33602rm -f conftest.err conftest.$ac_objext \
33603 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33604fi
33605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33606echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33607if test `eval echo '${'$as_ac_var'}'` = yes; then
33608 cat >>confdefs.h <<_ACEOF
33609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33610_ACEOF
33611 cat >>confdefs.h <<\_ACEOF
33612#define HAVE_INET_ADDR 1
33613_ACEOF
33614
33615else
33616
33617 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33618echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33619if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33620 echo $ECHO_N "(cached) $ECHO_C" >&6
33621else
33622 ac_check_lib_save_LIBS=$LIBS
33623LIBS="-lnsl $LIBS"
33624cat >conftest.$ac_ext <<_ACEOF
33625/* confdefs.h. */
33626_ACEOF
33627cat confdefs.h >>conftest.$ac_ext
33628cat >>conftest.$ac_ext <<_ACEOF
33629/* end confdefs.h. */
33630
33631/* Override any gcc2 internal prototype to avoid an error. */
33632#ifdef __cplusplus
33633extern "C"
33634#endif
33635/* We use char because int might match the return type of a gcc2
33636 builtin and then its argument prototype would still apply. */
33637char inet_addr ();
33638int
33639main ()
33640{
33641inet_addr ();
33642 ;
33643 return 0;
33644}
33645_ACEOF
33646rm -f conftest.$ac_objext conftest$ac_exeext
33647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33648 (eval $ac_link) 2>conftest.er1
a848cd7e 33649 ac_status=$?
ac1cb8d3
VS
33650 grep -v '^ *+' conftest.er1 >conftest.err
33651 rm -f conftest.er1
33652 cat conftest.err >&5
a848cd7e
SC
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); } &&
fb00f58d
JS
33655 { ac_try='test -z "$ac_c_werror_flag"
33656 || test ! -s conftest.err'
ac1cb8d3
VS
33657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33658 (eval $ac_try) 2>&5
33659 ac_status=$?
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); }; } &&
33662 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33664 (eval $ac_try) 2>&5
33665 ac_status=$?
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); }; }; then
33668 ac_cv_lib_nsl_inet_addr=yes
33669else
33670 echo "$as_me: failed program was:" >&5
33671sed 's/^/| /' conftest.$ac_ext >&5
33672
33673ac_cv_lib_nsl_inet_addr=no
33674fi
ac1cb8d3
VS
33675rm -f conftest.err conftest.$ac_objext \
33676 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33677LIBS=$ac_check_lib_save_LIBS
33678fi
33679echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33680echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33681if test $ac_cv_lib_nsl_inet_addr = yes; then
33682 INET_LINK="nsl"
33683else
33684
33685 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33686echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33687if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33688 echo $ECHO_N "(cached) $ECHO_C" >&6
33689else
33690 ac_check_lib_save_LIBS=$LIBS
33691LIBS="-lresolv $LIBS"
33692cat >conftest.$ac_ext <<_ACEOF
33693/* confdefs.h. */
33694_ACEOF
33695cat confdefs.h >>conftest.$ac_ext
33696cat >>conftest.$ac_ext <<_ACEOF
33697/* end confdefs.h. */
33698
33699/* Override any gcc2 internal prototype to avoid an error. */
33700#ifdef __cplusplus
33701extern "C"
33702#endif
33703/* We use char because int might match the return type of a gcc2
33704 builtin and then its argument prototype would still apply. */
33705char inet_addr ();
33706int
33707main ()
33708{
33709inet_addr ();
33710 ;
33711 return 0;
33712}
33713_ACEOF
33714rm -f conftest.$ac_objext conftest$ac_exeext
33715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33716 (eval $ac_link) 2>conftest.er1
a848cd7e 33717 ac_status=$?
ac1cb8d3
VS
33718 grep -v '^ *+' conftest.er1 >conftest.err
33719 rm -f conftest.er1
33720 cat conftest.err >&5
a848cd7e
SC
33721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722 (exit $ac_status); } &&
fb00f58d
JS
33723 { ac_try='test -z "$ac_c_werror_flag"
33724 || test ! -s conftest.err'
ac1cb8d3
VS
33725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33726 (eval $ac_try) 2>&5
33727 ac_status=$?
33728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33729 (exit $ac_status); }; } &&
33730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33732 (eval $ac_try) 2>&5
33733 ac_status=$?
33734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735 (exit $ac_status); }; }; then
33736 ac_cv_lib_resolv_inet_addr=yes
33737else
33738 echo "$as_me: failed program was:" >&5
33739sed 's/^/| /' conftest.$ac_ext >&5
33740
33741ac_cv_lib_resolv_inet_addr=no
33742fi
ac1cb8d3
VS
33743rm -f conftest.err conftest.$ac_objext \
33744 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33745LIBS=$ac_check_lib_save_LIBS
33746fi
33747echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33748echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33749if test $ac_cv_lib_resolv_inet_addr = yes; then
33750 INET_LINK="resolv"
33751else
33752
33753 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33754echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33755if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33756 echo $ECHO_N "(cached) $ECHO_C" >&6
33757else
33758 ac_check_lib_save_LIBS=$LIBS
33759LIBS="-lsocket $LIBS"
33760cat >conftest.$ac_ext <<_ACEOF
33761/* confdefs.h. */
33762_ACEOF
33763cat confdefs.h >>conftest.$ac_ext
33764cat >>conftest.$ac_ext <<_ACEOF
33765/* end confdefs.h. */
33766
33767/* Override any gcc2 internal prototype to avoid an error. */
33768#ifdef __cplusplus
33769extern "C"
33770#endif
33771/* We use char because int might match the return type of a gcc2
33772 builtin and then its argument prototype would still apply. */
33773char inet_addr ();
33774int
33775main ()
33776{
33777inet_addr ();
33778 ;
33779 return 0;
33780}
33781_ACEOF
33782rm -f conftest.$ac_objext conftest$ac_exeext
33783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33784 (eval $ac_link) 2>conftest.er1
a848cd7e 33785 ac_status=$?
ac1cb8d3
VS
33786 grep -v '^ *+' conftest.er1 >conftest.err
33787 rm -f conftest.er1
33788 cat conftest.err >&5
a848cd7e
SC
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); } &&
fb00f58d
JS
33791 { ac_try='test -z "$ac_c_werror_flag"
33792 || test ! -s conftest.err'
ac1cb8d3
VS
33793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33794 (eval $ac_try) 2>&5
33795 ac_status=$?
33796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797 (exit $ac_status); }; } &&
33798 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33800 (eval $ac_try) 2>&5
33801 ac_status=$?
33802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803 (exit $ac_status); }; }; then
33804 ac_cv_lib_socket_inet_addr=yes
33805else
33806 echo "$as_me: failed program was:" >&5
33807sed 's/^/| /' conftest.$ac_ext >&5
33808
33809ac_cv_lib_socket_inet_addr=no
33810fi
ac1cb8d3
VS
33811rm -f conftest.err conftest.$ac_objext \
33812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33813LIBS=$ac_check_lib_save_LIBS
33814fi
33815echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33816echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33817if test $ac_cv_lib_socket_inet_addr = yes; then
33818 INET_LINK="socket"
33819
33820fi
33821
33822
33823
33824fi
33825
33826
33827
33828fi
33829
33830
33831
33832fi
33833done
33834
33835
33836
33837for ac_func in inet_aton
33838do
33839as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33840echo "$as_me:$LINENO: checking for $ac_func" >&5
33841echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33842if eval "test \"\${$as_ac_var+set}\" = set"; then
33843 echo $ECHO_N "(cached) $ECHO_C" >&6
33844else
33845 cat >conftest.$ac_ext <<_ACEOF
33846/* confdefs.h. */
33847_ACEOF
33848cat confdefs.h >>conftest.$ac_ext
33849cat >>conftest.$ac_ext <<_ACEOF
33850/* end confdefs.h. */
ac1cb8d3
VS
33851/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33853#define $ac_func innocuous_$ac_func
33854
a848cd7e
SC
33855/* System header to define __stub macros and hopefully few prototypes,
33856 which can conflict with char $ac_func (); below.
33857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33858 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33859
a848cd7e
SC
33860#ifdef __STDC__
33861# include <limits.h>
33862#else
33863# include <assert.h>
33864#endif
ac1cb8d3
VS
33865
33866#undef $ac_func
33867
a848cd7e
SC
33868/* Override any gcc2 internal prototype to avoid an error. */
33869#ifdef __cplusplus
33870extern "C"
33871{
33872#endif
33873/* We use char because int might match the return type of a gcc2
33874 builtin and then its argument prototype would still apply. */
33875char $ac_func ();
33876/* The GNU C library defines this for functions which it implements
33877 to always fail with ENOSYS. Some functions are actually named
33878 something starting with __ and the normal name is an alias. */
33879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33880choke me
33881#else
33882char (*f) () = $ac_func;
33883#endif
33884#ifdef __cplusplus
33885}
33886#endif
33887
33888int
33889main ()
33890{
33891return f != $ac_func;
33892 ;
33893 return 0;
33894}
33895_ACEOF
33896rm -f conftest.$ac_objext conftest$ac_exeext
33897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33898 (eval $ac_link) 2>conftest.er1
a848cd7e 33899 ac_status=$?
ac1cb8d3
VS
33900 grep -v '^ *+' conftest.er1 >conftest.err
33901 rm -f conftest.er1
33902 cat conftest.err >&5
a848cd7e
SC
33903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33904 (exit $ac_status); } &&
fb00f58d
JS
33905 { ac_try='test -z "$ac_c_werror_flag"
33906 || test ! -s conftest.err'
ac1cb8d3
VS
33907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33908 (eval $ac_try) 2>&5
33909 ac_status=$?
33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); }; } &&
33912 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33914 (eval $ac_try) 2>&5
33915 ac_status=$?
33916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33917 (exit $ac_status); }; }; then
33918 eval "$as_ac_var=yes"
33919else
33920 echo "$as_me: failed program was:" >&5
33921sed 's/^/| /' conftest.$ac_ext >&5
33922
33923eval "$as_ac_var=no"
33924fi
ac1cb8d3
VS
33925rm -f conftest.err conftest.$ac_objext \
33926 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33927fi
33928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33929echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33930if test `eval echo '${'$as_ac_var'}'` = yes; then
33931 cat >>confdefs.h <<_ACEOF
33932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33933_ACEOF
33934 cat >>confdefs.h <<\_ACEOF
33935#define HAVE_INET_ATON 1
33936_ACEOF
33937
33938else
33939
33940 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33941echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33942echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33943if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33944 echo $ECHO_N "(cached) $ECHO_C" >&6
33945else
33946 ac_check_lib_save_LIBS=$LIBS
33947LIBS="-l$INET_LINK $LIBS"
33948cat >conftest.$ac_ext <<_ACEOF
33949/* confdefs.h. */
33950_ACEOF
33951cat confdefs.h >>conftest.$ac_ext
33952cat >>conftest.$ac_ext <<_ACEOF
33953/* end confdefs.h. */
33954
33955/* Override any gcc2 internal prototype to avoid an error. */
33956#ifdef __cplusplus
33957extern "C"
33958#endif
33959/* We use char because int might match the return type of a gcc2
33960 builtin and then its argument prototype would still apply. */
33961char inet_aton ();
33962int
33963main ()
33964{
33965inet_aton ();
33966 ;
33967 return 0;
33968}
33969_ACEOF
33970rm -f conftest.$ac_objext conftest$ac_exeext
33971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33972 (eval $ac_link) 2>conftest.er1
a848cd7e 33973 ac_status=$?
ac1cb8d3
VS
33974 grep -v '^ *+' conftest.er1 >conftest.err
33975 rm -f conftest.er1
33976 cat conftest.err >&5
a848cd7e
SC
33977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33978 (exit $ac_status); } &&
fb00f58d
JS
33979 { ac_try='test -z "$ac_c_werror_flag"
33980 || test ! -s conftest.err'
ac1cb8d3
VS
33981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33982 (eval $ac_try) 2>&5
33983 ac_status=$?
33984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985 (exit $ac_status); }; } &&
33986 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33988 (eval $ac_try) 2>&5
33989 ac_status=$?
33990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991 (exit $ac_status); }; }; then
33992 eval "$as_ac_Lib=yes"
33993else
33994 echo "$as_me: failed program was:" >&5
33995sed 's/^/| /' conftest.$ac_ext >&5
33996
33997eval "$as_ac_Lib=no"
33998fi
ac1cb8d3
VS
33999rm -f conftest.err conftest.$ac_objext \
34000 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34001LIBS=$ac_check_lib_save_LIBS
34002fi
34003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34004echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34005if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34006 cat >>confdefs.h <<\_ACEOF
34007#define HAVE_INET_ATON 1
34008_ACEOF
34009
34010fi
34011
34012
34013fi
34014done
34015
34016
34017if test "x$INET_LINK" != "x"; then
34018 cat >>confdefs.h <<\_ACEOF
34019#define HAVE_INET_ADDR 1
34020_ACEOF
34021
34022 INET_LINK=" -l$INET_LINK"
34023fi
34024
34025fi
34026
34027
34028
34029EXTRALIBS_ESD=
34030echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34031echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34032if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34033 echo $ECHO_N "(cached) $ECHO_C" >&6
34034else
34035 ac_check_lib_save_LIBS=$LIBS
34036LIBS="-lesd $LIBS"
34037cat >conftest.$ac_ext <<_ACEOF
34038/* confdefs.h. */
34039_ACEOF
34040cat confdefs.h >>conftest.$ac_ext
34041cat >>conftest.$ac_ext <<_ACEOF
34042/* end confdefs.h. */
34043
34044/* Override any gcc2 internal prototype to avoid an error. */
34045#ifdef __cplusplus
34046extern "C"
34047#endif
34048/* We use char because int might match the return type of a gcc2
34049 builtin and then its argument prototype would still apply. */
34050char esd_close ();
34051int
34052main ()
34053{
34054esd_close ();
34055 ;
34056 return 0;
34057}
34058_ACEOF
34059rm -f conftest.$ac_objext conftest$ac_exeext
34060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34061 (eval $ac_link) 2>conftest.er1
a848cd7e 34062 ac_status=$?
ac1cb8d3
VS
34063 grep -v '^ *+' conftest.er1 >conftest.err
34064 rm -f conftest.er1
34065 cat conftest.err >&5
a848cd7e
SC
34066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067 (exit $ac_status); } &&
fb00f58d
JS
34068 { ac_try='test -z "$ac_c_werror_flag"
34069 || test ! -s conftest.err'
ac1cb8d3
VS
34070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34071 (eval $ac_try) 2>&5
34072 ac_status=$?
34073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074 (exit $ac_status); }; } &&
34075 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34077 (eval $ac_try) 2>&5
34078 ac_status=$?
34079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34080 (exit $ac_status); }; }; then
34081 ac_cv_lib_esd_esd_close=yes
34082else
34083 echo "$as_me: failed program was:" >&5
34084sed 's/^/| /' conftest.$ac_ext >&5
34085
34086ac_cv_lib_esd_esd_close=no
34087fi
ac1cb8d3
VS
34088rm -f conftest.err conftest.$ac_objext \
34089 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34090LIBS=$ac_check_lib_save_LIBS
34091fi
34092echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
34093echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
34094if test $ac_cv_lib_esd_esd_close = yes; then
34095
34096
34097for ac_header in esd.h
34098do
34099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34100if eval "test \"\${$as_ac_Header+set}\" = set"; then
34101 echo "$as_me:$LINENO: checking for $ac_header" >&5
34102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34103if eval "test \"\${$as_ac_Header+set}\" = set"; then
34104 echo $ECHO_N "(cached) $ECHO_C" >&6
34105fi
34106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34108else
34109 # Is the header compilable?
34110echo "$as_me:$LINENO: checking $ac_header usability" >&5
34111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34112cat >conftest.$ac_ext <<_ACEOF
34113/* confdefs.h. */
34114_ACEOF
34115cat confdefs.h >>conftest.$ac_ext
34116cat >>conftest.$ac_ext <<_ACEOF
34117/* end confdefs.h. */
34118$ac_includes_default
34119#include <$ac_header>
34120_ACEOF
34121rm -f conftest.$ac_objext
34122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34123 (eval $ac_compile) 2>conftest.er1
a848cd7e 34124 ac_status=$?
ac1cb8d3
VS
34125 grep -v '^ *+' conftest.er1 >conftest.err
34126 rm -f conftest.er1
34127 cat conftest.err >&5
a848cd7e
SC
34128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129 (exit $ac_status); } &&
fb00f58d
JS
34130 { ac_try='test -z "$ac_c_werror_flag"
34131 || test ! -s conftest.err'
ac1cb8d3
VS
34132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34133 (eval $ac_try) 2>&5
34134 ac_status=$?
34135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34136 (exit $ac_status); }; } &&
34137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34139 (eval $ac_try) 2>&5
34140 ac_status=$?
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); }; }; then
34143 ac_header_compiler=yes
34144else
34145 echo "$as_me: failed program was:" >&5
34146sed 's/^/| /' conftest.$ac_ext >&5
34147
34148ac_header_compiler=no
34149fi
ac1cb8d3 34150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34151echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34152echo "${ECHO_T}$ac_header_compiler" >&6
34153
34154# Is the header present?
34155echo "$as_me:$LINENO: checking $ac_header presence" >&5
34156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34157cat >conftest.$ac_ext <<_ACEOF
34158/* confdefs.h. */
34159_ACEOF
34160cat confdefs.h >>conftest.$ac_ext
34161cat >>conftest.$ac_ext <<_ACEOF
34162/* end confdefs.h. */
34163#include <$ac_header>
34164_ACEOF
34165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34167 ac_status=$?
34168 grep -v '^ *+' conftest.er1 >conftest.err
34169 rm -f conftest.er1
34170 cat conftest.err >&5
34171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34172 (exit $ac_status); } >/dev/null; then
34173 if test -s conftest.err; then
34174 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34176 else
34177 ac_cpp_err=
34178 fi
34179else
34180 ac_cpp_err=yes
34181fi
34182if test -z "$ac_cpp_err"; then
34183 ac_header_preproc=yes
34184else
34185 echo "$as_me: failed program was:" >&5
34186sed 's/^/| /' conftest.$ac_ext >&5
34187
34188 ac_header_preproc=no
34189fi
34190rm -f conftest.err conftest.$ac_ext
34191echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34192echo "${ECHO_T}$ac_header_preproc" >&6
34193
34194# So? What about this header?
ac1cb8d3
VS
34195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34196 yes:no: )
a848cd7e
SC
34197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34198echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34200echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34201 ac_header_preproc=yes
a848cd7e 34202 ;;
ac1cb8d3 34203 no:yes:* )
a848cd7e
SC
34204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34209echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34211echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34215echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34216 (
34217 cat <<\_ASBOX
ac1cb8d3
VS
34218## ----------------------------------------- ##
34219## Report this to wx-dev@lists.wxwidgets.org ##
34220## ----------------------------------------- ##
a848cd7e
SC
34221_ASBOX
34222 ) |
34223 sed "s/^/$as_me: WARNING: /" >&2
34224 ;;
34225esac
34226echo "$as_me:$LINENO: checking for $ac_header" >&5
34227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34228if eval "test \"\${$as_ac_Header+set}\" = set"; then
34229 echo $ECHO_N "(cached) $ECHO_C" >&6
34230else
ac1cb8d3 34231 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34232fi
34233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34235
34236fi
34237if test `eval echo '${'$as_ac_Header'}'` = yes; then
34238 cat >>confdefs.h <<_ACEOF
34239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34240_ACEOF
34241
34242 EXTRALIBS_ESD="-lesd"
34243
34244fi
34245
34246done
34247
34248
34249fi
34250
34251
34252
34253echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34254echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34255cat >conftest.$ac_ext <<_ACEOF
34256/* confdefs.h. */
34257_ACEOF
34258cat confdefs.h >>conftest.$ac_ext
34259cat >>conftest.$ac_ext <<_ACEOF
34260/* end confdefs.h. */
34261#ifdef __linux__
34262 #include <linux/cdrom.h>
34263 #else
34264 /* For Solaris */
34265 #include <sys/cdio.h>
34266 #endif
34267
34268int
34269main ()
34270{
34271struct cdrom_tocentry entry, old_entry;
34272 ;
34273 return 0;
34274}
34275_ACEOF
34276rm -f conftest.$ac_objext
34277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34278 (eval $ac_compile) 2>conftest.er1
a848cd7e 34279 ac_status=$?
ac1cb8d3
VS
34280 grep -v '^ *+' conftest.er1 >conftest.err
34281 rm -f conftest.er1
34282 cat conftest.err >&5
a848cd7e
SC
34283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34284 (exit $ac_status); } &&
fb00f58d
JS
34285 { ac_try='test -z "$ac_c_werror_flag"
34286 || test ! -s conftest.err'
ac1cb8d3
VS
34287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34288 (eval $ac_try) 2>&5
34289 ac_status=$?
34290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34291 (exit $ac_status); }; } &&
34292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34294 (eval $ac_try) 2>&5
34295 ac_status=$?
34296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34297 (exit $ac_status); }; }; then
34298 echo "$as_me:$LINENO: result: yes" >&5
34299echo "${ECHO_T}yes" >&6
34300 cat >>confdefs.h <<\_ACEOF
34301#define HAVE_KNOWN_CDROM_INTERFACE 1
34302_ACEOF
34303
34304else
34305 echo "$as_me: failed program was:" >&5
34306sed 's/^/| /' conftest.$ac_ext >&5
34307
34308echo "$as_me:$LINENO: result: no" >&5
34309echo "${ECHO_T}no" >&6
34310fi
ac1cb8d3 34311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34312
34313
34314cat >confcache <<\_ACEOF
34315# This file is a shell script that caches the results of configure
34316# tests run on this system so they can be shared between configure
34317# scripts and configure runs, see configure's option --config-cache.
34318# It is not useful on other systems. If it contains results you don't
34319# want to keep, you may remove or edit it.
34320#
34321# config.status only pays attention to the cache file if you give it
34322# the --recheck option to rerun configure.
34323#
34324# `ac_cv_env_foo' variables (set or unset) will be overridden when
34325# loading this file, other *unset* `ac_cv_foo' will be assigned the
34326# following values.
34327
34328_ACEOF
34329
34330# The following way of writing the cache mishandles newlines in values,
34331# but we know of no workaround that is simple, portable, and efficient.
34332# So, don't put newlines in cache variables' values.
34333# Ultrix sh set writes to stderr and can't be redirected directly,
34334# and sets the high bit in the cache file unless we assign to the vars.
34335{
34336 (set) 2>&1 |
34337 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34338 *ac_space=\ *)
34339 # `set' does not quote correctly, so add quotes (double-quote
34340 # substitution turns \\\\ into \\, and sed turns \\ into \).
34341 sed -n \
ac1cb8d3
VS
34342 "s/'/'\\\\''/g;
34343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34344 ;;
34345 *)
34346 # `set' quotes correctly as required by POSIX, so do not add quotes.
34347 sed -n \
ac1cb8d3 34348 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34349 ;;
34350 esac;
34351} |
34352 sed '
34353 t clear
34354 : clear
34355 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34356 t end
34357 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34358 : end' >>confcache
34359if diff $cache_file confcache >/dev/null 2>&1; then :; else
34360 if test -w $cache_file; then
34361 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34362 cat confcache >$cache_file
34363 else
34364 echo "not updating unwritable cache $cache_file"
34365 fi
34366fi
34367rm -f confcache
34368
34369
34370CPP_MT_FLAG=
34371if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34372
34373
34374 THREADS_LINK=
34375 THREADS_CFLAGS=
34376
34377 if test "$wxUSE_THREADS" = "yes" ; then
34378 if test "$USE_BEOS" = 1; then
34379 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34380echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34381 wxUSE_THREADS="no"
34382 fi
34383 fi
34384
34385 if test "$wxUSE_THREADS" = "yes" ; then
34386
34387
34388 THREAD_OPTS="-pthread"
34389 case "${host}" in
34390 *-*-solaris2* | *-*-sunos4* )
34391 if test "x$GCC" = "xyes"; then
34392 THREAD_OPTS="-pthreads $THREAD_OPTS"
34393 else
34394 THREAD_OPTS="-mt $THREAD_OPTS"
34395 fi
34396 ;;
34397 *-*-freebsd*)
34398 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34399 ;;
34400 *-*-darwin* | *-*-cygwin* )
34401 THREAD_OPTS=""
34402 ;;
34403 *-*-aix*)
34404 THREAD_OPTS="pthreads"
34405 ;;
34406 *-hp-hpux* )
34407 if test "x$GCC" != "xyes"; then
34408 THREAD_OPTS=""
34409 fi
34410 ;;
34411
34412 *-*-irix* )
34413 if test "x$GCC" = "xyes"; then
34414 THREAD_OPTS=""
34415 fi
34416 ;;
34417
34418 *-*-*UnixWare*)
34419 if test "x$GCC" != "xyes"; then
34420 THREAD_OPTS="-Ethread"
34421 fi
34422 ;;
34423 esac
34424
34425 THREAD_OPTS="$THREAD_OPTS pthread none"
34426
34427 THREADS_OK=no
34428 for flag in $THREAD_OPTS; do
34429 case $flag in
34430 none)
34431 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34432echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34433 ;;
34434
34435 -*)
34436 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34437echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34438 THREADS_CFLAGS="$flag"
34439 ;;
34440
34441 *)
34442 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34443echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34444 THREADS_LINK="-l$flag"
34445 ;;
34446 esac
34447
34448 save_LIBS="$LIBS"
34449 save_CFLAGS="$CFLAGS"
34450 LIBS="$THREADS_LINK $LIBS"
34451 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34452
34453 cat >conftest.$ac_ext <<_ACEOF
34454/* confdefs.h. */
34455_ACEOF
34456cat confdefs.h >>conftest.$ac_ext
34457cat >>conftest.$ac_ext <<_ACEOF
34458/* end confdefs.h. */
34459#include <pthread.h>
34460int
34461main ()
34462{
34463pthread_create(0,0,0,0);
34464 ;
34465 return 0;
34466}
34467_ACEOF
34468rm -f conftest.$ac_objext conftest$ac_exeext
34469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34470 (eval $ac_link) 2>conftest.er1
a848cd7e 34471 ac_status=$?
ac1cb8d3
VS
34472 grep -v '^ *+' conftest.er1 >conftest.err
34473 rm -f conftest.er1
34474 cat conftest.err >&5
a848cd7e
SC
34475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476 (exit $ac_status); } &&
fb00f58d
JS
34477 { ac_try='test -z "$ac_c_werror_flag"
34478 || test ! -s conftest.err'
ac1cb8d3
VS
34479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34480 (eval $ac_try) 2>&5
34481 ac_status=$?
34482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483 (exit $ac_status); }; } &&
34484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34486 (eval $ac_try) 2>&5
34487 ac_status=$?
34488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34489 (exit $ac_status); }; }; then
34490 THREADS_OK=yes
34491else
34492 echo "$as_me: failed program was:" >&5
34493sed 's/^/| /' conftest.$ac_ext >&5
34494
34495fi
ac1cb8d3
VS
34496rm -f conftest.err conftest.$ac_objext \
34497 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34498
34499 LIBS="$save_LIBS"
34500 CFLAGS="$save_CFLAGS"
34501
34502 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34503echo "${ECHO_T}$THREADS_OK" >&6
34504 if test "x$THREADS_OK" = "xyes"; then
34505 break;
34506 fi
34507
34508 THREADS_LINK=""
34509 THREADS_CFLAGS=""
34510 done
34511
34512 if test "x$THREADS_OK" != "xyes"; then
34513 wxUSE_THREADS=no
34514 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34515echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34516 else
34517 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34518 LIBS="$THREADS_LINK $LIBS"
34519
34520 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34521echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34522 flag=no
34523 case "${host}" in
34524 *-aix*)
34525 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34526 flag="-D_THREAD_SAFE"
34527 ;;
34528 *-freebsd*)
34529 flag="-D_THREAD_SAFE"
34530 ;;
34531 *-hp-hpux* )
34532 flag="-D_REENTRANT"
34533 if test "x$GCC" != "xyes"; then
34534 flag="$flag -D_RWSTD_MULTI_THREAD"
34535 fi
34536 ;;
34537 *solaris* | alpha*-osf*)
34538 flag="-D_REENTRANT"
34539 ;;
34540 esac
34541 echo "$as_me:$LINENO: result: ${flag}" >&5
34542echo "${ECHO_T}${flag}" >&6
34543 if test "x$flag" != xno; then
34544 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34545 fi
34546
34547 if test "x$THREADS_CFLAGS" != "x"; then
34548 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34549 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34550 fi
34551 fi
34552 fi
34553
34554 if test "$wxUSE_THREADS" = "yes" ; then
34555
34556for ac_func in thr_setconcurrency
34557do
34558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34559echo "$as_me:$LINENO: checking for $ac_func" >&5
34560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34561if eval "test \"\${$as_ac_var+set}\" = set"; then
34562 echo $ECHO_N "(cached) $ECHO_C" >&6
34563else
34564 cat >conftest.$ac_ext <<_ACEOF
34565/* confdefs.h. */
34566_ACEOF
34567cat confdefs.h >>conftest.$ac_ext
34568cat >>conftest.$ac_ext <<_ACEOF
34569/* end confdefs.h. */
ac1cb8d3
VS
34570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34572#define $ac_func innocuous_$ac_func
34573
a848cd7e
SC
34574/* System header to define __stub macros and hopefully few prototypes,
34575 which can conflict with char $ac_func (); below.
34576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34577 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34578
a848cd7e
SC
34579#ifdef __STDC__
34580# include <limits.h>
34581#else
34582# include <assert.h>
34583#endif
ac1cb8d3
VS
34584
34585#undef $ac_func
34586
a848cd7e
SC
34587/* Override any gcc2 internal prototype to avoid an error. */
34588#ifdef __cplusplus
34589extern "C"
34590{
34591#endif
34592/* We use char because int might match the return type of a gcc2
34593 builtin and then its argument prototype would still apply. */
34594char $ac_func ();
34595/* The GNU C library defines this for functions which it implements
34596 to always fail with ENOSYS. Some functions are actually named
34597 something starting with __ and the normal name is an alias. */
34598#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34599choke me
34600#else
34601char (*f) () = $ac_func;
34602#endif
34603#ifdef __cplusplus
34604}
34605#endif
34606
34607int
34608main ()
34609{
34610return f != $ac_func;
34611 ;
34612 return 0;
34613}
34614_ACEOF
34615rm -f conftest.$ac_objext conftest$ac_exeext
34616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34617 (eval $ac_link) 2>conftest.er1
a848cd7e 34618 ac_status=$?
ac1cb8d3
VS
34619 grep -v '^ *+' conftest.er1 >conftest.err
34620 rm -f conftest.er1
34621 cat conftest.err >&5
a848cd7e
SC
34622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623 (exit $ac_status); } &&
fb00f58d
JS
34624 { ac_try='test -z "$ac_c_werror_flag"
34625 || test ! -s conftest.err'
ac1cb8d3
VS
34626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34627 (eval $ac_try) 2>&5
34628 ac_status=$?
34629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34630 (exit $ac_status); }; } &&
34631 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34633 (eval $ac_try) 2>&5
34634 ac_status=$?
34635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636 (exit $ac_status); }; }; then
34637 eval "$as_ac_var=yes"
34638else
34639 echo "$as_me: failed program was:" >&5
34640sed 's/^/| /' conftest.$ac_ext >&5
34641
34642eval "$as_ac_var=no"
34643fi
ac1cb8d3
VS
34644rm -f conftest.err conftest.$ac_objext \
34645 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34646fi
34647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34648echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34649if test `eval echo '${'$as_ac_var'}'` = yes; then
34650 cat >>confdefs.h <<_ACEOF
34651#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34652_ACEOF
34653
34654fi
34655done
34656
34657
34658
34659for ac_header in sched.h
34660do
34661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34662if eval "test \"\${$as_ac_Header+set}\" = set"; then
34663 echo "$as_me:$LINENO: checking for $ac_header" >&5
34664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34665if eval "test \"\${$as_ac_Header+set}\" = set"; then
34666 echo $ECHO_N "(cached) $ECHO_C" >&6
34667fi
34668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34670else
34671 # Is the header compilable?
34672echo "$as_me:$LINENO: checking $ac_header usability" >&5
34673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34674cat >conftest.$ac_ext <<_ACEOF
34675/* confdefs.h. */
34676_ACEOF
34677cat confdefs.h >>conftest.$ac_ext
34678cat >>conftest.$ac_ext <<_ACEOF
34679/* end confdefs.h. */
34680$ac_includes_default
34681#include <$ac_header>
34682_ACEOF
34683rm -f conftest.$ac_objext
34684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34685 (eval $ac_compile) 2>conftest.er1
a848cd7e 34686 ac_status=$?
ac1cb8d3
VS
34687 grep -v '^ *+' conftest.er1 >conftest.err
34688 rm -f conftest.er1
34689 cat conftest.err >&5
a848cd7e
SC
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); } &&
fb00f58d
JS
34692 { ac_try='test -z "$ac_c_werror_flag"
34693 || test ! -s conftest.err'
ac1cb8d3
VS
34694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34695 (eval $ac_try) 2>&5
34696 ac_status=$?
34697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34698 (exit $ac_status); }; } &&
34699 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34701 (eval $ac_try) 2>&5
34702 ac_status=$?
34703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34704 (exit $ac_status); }; }; then
34705 ac_header_compiler=yes
34706else
34707 echo "$as_me: failed program was:" >&5
34708sed 's/^/| /' conftest.$ac_ext >&5
34709
34710ac_header_compiler=no
34711fi
ac1cb8d3 34712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34713echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34714echo "${ECHO_T}$ac_header_compiler" >&6
34715
34716# Is the header present?
34717echo "$as_me:$LINENO: checking $ac_header presence" >&5
34718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34719cat >conftest.$ac_ext <<_ACEOF
34720/* confdefs.h. */
34721_ACEOF
34722cat confdefs.h >>conftest.$ac_ext
34723cat >>conftest.$ac_ext <<_ACEOF
34724/* end confdefs.h. */
34725#include <$ac_header>
34726_ACEOF
34727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34729 ac_status=$?
34730 grep -v '^ *+' conftest.er1 >conftest.err
34731 rm -f conftest.er1
34732 cat conftest.err >&5
34733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34734 (exit $ac_status); } >/dev/null; then
34735 if test -s conftest.err; then
34736 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34738 else
34739 ac_cpp_err=
34740 fi
34741else
34742 ac_cpp_err=yes
34743fi
34744if test -z "$ac_cpp_err"; then
34745 ac_header_preproc=yes
34746else
34747 echo "$as_me: failed program was:" >&5
34748sed 's/^/| /' conftest.$ac_ext >&5
34749
34750 ac_header_preproc=no
34751fi
34752rm -f conftest.err conftest.$ac_ext
34753echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34754echo "${ECHO_T}$ac_header_preproc" >&6
34755
34756# So? What about this header?
ac1cb8d3
VS
34757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34758 yes:no: )
a848cd7e
SC
34759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34762echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34763 ac_header_preproc=yes
a848cd7e 34764 ;;
ac1cb8d3 34765 no:yes:* )
a848cd7e
SC
34766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34767echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34769echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34771echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34773echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34775echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34777echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34778 (
34779 cat <<\_ASBOX
ac1cb8d3
VS
34780## ----------------------------------------- ##
34781## Report this to wx-dev@lists.wxwidgets.org ##
34782## ----------------------------------------- ##
a848cd7e
SC
34783_ASBOX
34784 ) |
34785 sed "s/^/$as_me: WARNING: /" >&2
34786 ;;
34787esac
34788echo "$as_me:$LINENO: checking for $ac_header" >&5
34789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34790if eval "test \"\${$as_ac_Header+set}\" = set"; then
34791 echo $ECHO_N "(cached) $ECHO_C" >&6
34792else
ac1cb8d3 34793 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34794fi
34795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34797
34798fi
34799if test `eval echo '${'$as_ac_Header'}'` = yes; then
34800 cat >>confdefs.h <<_ACEOF
34801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34802_ACEOF
34803
34804fi
34805
34806done
34807
34808 if test "$ac_cv_header_sched_h" = "yes"; then
34809 echo "$as_me:$LINENO: checking for sched_yield" >&5
34810echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34811if test "${ac_cv_func_sched_yield+set}" = set; then
34812 echo $ECHO_N "(cached) $ECHO_C" >&6
34813else
34814 cat >conftest.$ac_ext <<_ACEOF
34815/* confdefs.h. */
34816_ACEOF
34817cat confdefs.h >>conftest.$ac_ext
34818cat >>conftest.$ac_ext <<_ACEOF
34819/* end confdefs.h. */
ac1cb8d3
VS
34820/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34822#define sched_yield innocuous_sched_yield
34823
a848cd7e
SC
34824/* System header to define __stub macros and hopefully few prototypes,
34825 which can conflict with char sched_yield (); below.
34826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34827 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34828
a848cd7e
SC
34829#ifdef __STDC__
34830# include <limits.h>
34831#else
34832# include <assert.h>
34833#endif
ac1cb8d3
VS
34834
34835#undef sched_yield
34836
a848cd7e
SC
34837/* Override any gcc2 internal prototype to avoid an error. */
34838#ifdef __cplusplus
34839extern "C"
34840{
34841#endif
34842/* We use char because int might match the return type of a gcc2
34843 builtin and then its argument prototype would still apply. */
34844char sched_yield ();
34845/* The GNU C library defines this for functions which it implements
34846 to always fail with ENOSYS. Some functions are actually named
34847 something starting with __ and the normal name is an alias. */
34848#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34849choke me
34850#else
34851char (*f) () = sched_yield;
34852#endif
34853#ifdef __cplusplus
34854}
34855#endif
34856
34857int
34858main ()
34859{
34860return f != sched_yield;
34861 ;
34862 return 0;
34863}
34864_ACEOF
34865rm -f conftest.$ac_objext conftest$ac_exeext
34866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34867 (eval $ac_link) 2>conftest.er1
a848cd7e 34868 ac_status=$?
ac1cb8d3
VS
34869 grep -v '^ *+' conftest.er1 >conftest.err
34870 rm -f conftest.er1
34871 cat conftest.err >&5
a848cd7e
SC
34872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873 (exit $ac_status); } &&
fb00f58d
JS
34874 { ac_try='test -z "$ac_c_werror_flag"
34875 || test ! -s conftest.err'
ac1cb8d3
VS
34876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34877 (eval $ac_try) 2>&5
34878 ac_status=$?
34879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880 (exit $ac_status); }; } &&
34881 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34883 (eval $ac_try) 2>&5
34884 ac_status=$?
34885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886 (exit $ac_status); }; }; then
34887 ac_cv_func_sched_yield=yes
34888else
34889 echo "$as_me: failed program was:" >&5
34890sed 's/^/| /' conftest.$ac_ext >&5
34891
34892ac_cv_func_sched_yield=no
34893fi
ac1cb8d3
VS
34894rm -f conftest.err conftest.$ac_objext \
34895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34896fi
34897echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34898echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34899if test $ac_cv_func_sched_yield = yes; then
34900 cat >>confdefs.h <<\_ACEOF
34901#define HAVE_SCHED_YIELD 1
34902_ACEOF
34903
34904else
34905
34906 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34907echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34908if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34909 echo $ECHO_N "(cached) $ECHO_C" >&6
34910else
34911 ac_check_lib_save_LIBS=$LIBS
34912LIBS="-lposix4 $LIBS"
34913cat >conftest.$ac_ext <<_ACEOF
34914/* confdefs.h. */
34915_ACEOF
34916cat confdefs.h >>conftest.$ac_ext
34917cat >>conftest.$ac_ext <<_ACEOF
34918/* end confdefs.h. */
34919
34920/* Override any gcc2 internal prototype to avoid an error. */
34921#ifdef __cplusplus
34922extern "C"
34923#endif
34924/* We use char because int might match the return type of a gcc2
34925 builtin and then its argument prototype would still apply. */
34926char sched_yield ();
34927int
34928main ()
34929{
34930sched_yield ();
34931 ;
34932 return 0;
34933}
34934_ACEOF
34935rm -f conftest.$ac_objext conftest$ac_exeext
34936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34937 (eval $ac_link) 2>conftest.er1
a848cd7e 34938 ac_status=$?
ac1cb8d3
VS
34939 grep -v '^ *+' conftest.er1 >conftest.err
34940 rm -f conftest.er1
34941 cat conftest.err >&5
a848cd7e
SC
34942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943 (exit $ac_status); } &&
fb00f58d
JS
34944 { ac_try='test -z "$ac_c_werror_flag"
34945 || test ! -s conftest.err'
ac1cb8d3
VS
34946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34947 (eval $ac_try) 2>&5
34948 ac_status=$?
34949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950 (exit $ac_status); }; } &&
34951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34953 (eval $ac_try) 2>&5
34954 ac_status=$?
34955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34956 (exit $ac_status); }; }; then
34957 ac_cv_lib_posix4_sched_yield=yes
34958else
34959 echo "$as_me: failed program was:" >&5
34960sed 's/^/| /' conftest.$ac_ext >&5
34961
34962ac_cv_lib_posix4_sched_yield=no
34963fi
ac1cb8d3
VS
34964rm -f conftest.err conftest.$ac_objext \
34965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34966LIBS=$ac_check_lib_save_LIBS
34967fi
34968echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34969echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34970if test $ac_cv_lib_posix4_sched_yield = yes; then
34971 cat >>confdefs.h <<\_ACEOF
34972#define HAVE_SCHED_YIELD 1
34973_ACEOF
34974 POSIX4_LINK=" -lposix4"
34975else
34976 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34977echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34978
34979fi
34980
34981
34982
34983fi
34984
34985 fi
34986
34987 HAVE_PRIOR_FUNCS=0
34988 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34989echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34990if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34991 echo $ECHO_N "(cached) $ECHO_C" >&6
34992else
34993 cat >conftest.$ac_ext <<_ACEOF
34994/* confdefs.h. */
34995_ACEOF
34996cat confdefs.h >>conftest.$ac_ext
34997cat >>conftest.$ac_ext <<_ACEOF
34998/* end confdefs.h. */
ac1cb8d3
VS
34999/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
35000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35001#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
35002
a848cd7e
SC
35003/* System header to define __stub macros and hopefully few prototypes,
35004 which can conflict with char pthread_attr_getschedpolicy (); below.
35005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35006 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35007
a848cd7e
SC
35008#ifdef __STDC__
35009# include <limits.h>
35010#else
35011# include <assert.h>
35012#endif
ac1cb8d3
VS
35013
35014#undef pthread_attr_getschedpolicy
35015
a848cd7e
SC
35016/* Override any gcc2 internal prototype to avoid an error. */
35017#ifdef __cplusplus
35018extern "C"
35019{
35020#endif
35021/* We use char because int might match the return type of a gcc2
35022 builtin and then its argument prototype would still apply. */
35023char pthread_attr_getschedpolicy ();
35024/* The GNU C library defines this for functions which it implements
35025 to always fail with ENOSYS. Some functions are actually named
35026 something starting with __ and the normal name is an alias. */
35027#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
35028choke me
35029#else
35030char (*f) () = pthread_attr_getschedpolicy;
35031#endif
35032#ifdef __cplusplus
35033}
35034#endif
35035
35036int
35037main ()
35038{
35039return f != pthread_attr_getschedpolicy;
35040 ;
35041 return 0;
35042}
35043_ACEOF
35044rm -f conftest.$ac_objext conftest$ac_exeext
35045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35046 (eval $ac_link) 2>conftest.er1
a848cd7e 35047 ac_status=$?
ac1cb8d3
VS
35048 grep -v '^ *+' conftest.er1 >conftest.err
35049 rm -f conftest.er1
35050 cat conftest.err >&5
a848cd7e
SC
35051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052 (exit $ac_status); } &&
fb00f58d
JS
35053 { ac_try='test -z "$ac_c_werror_flag"
35054 || test ! -s conftest.err'
ac1cb8d3
VS
35055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35056 (eval $ac_try) 2>&5
35057 ac_status=$?
35058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35059 (exit $ac_status); }; } &&
35060 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35062 (eval $ac_try) 2>&5
35063 ac_status=$?
35064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35065 (exit $ac_status); }; }; then
35066 ac_cv_func_pthread_attr_getschedpolicy=yes
35067else
35068 echo "$as_me: failed program was:" >&5
35069sed 's/^/| /' conftest.$ac_ext >&5
35070
35071ac_cv_func_pthread_attr_getschedpolicy=no
35072fi
ac1cb8d3
VS
35073rm -f conftest.err conftest.$ac_objext \
35074 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35075fi
35076echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
35077echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
35078if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
35079 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
35080echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
35081if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
35082 echo $ECHO_N "(cached) $ECHO_C" >&6
35083else
35084 cat >conftest.$ac_ext <<_ACEOF
35085/* confdefs.h. */
35086_ACEOF
35087cat confdefs.h >>conftest.$ac_ext
35088cat >>conftest.$ac_ext <<_ACEOF
35089/* end confdefs.h. */
ac1cb8d3
VS
35090/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
35091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35092#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
35093
a848cd7e
SC
35094/* System header to define __stub macros and hopefully few prototypes,
35095 which can conflict with char pthread_attr_setschedparam (); below.
35096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35097 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35098
a848cd7e
SC
35099#ifdef __STDC__
35100# include <limits.h>
35101#else
35102# include <assert.h>
35103#endif
ac1cb8d3
VS
35104
35105#undef pthread_attr_setschedparam
35106
a848cd7e
SC
35107/* Override any gcc2 internal prototype to avoid an error. */
35108#ifdef __cplusplus
35109extern "C"
35110{
35111#endif
35112/* We use char because int might match the return type of a gcc2
35113 builtin and then its argument prototype would still apply. */
35114char pthread_attr_setschedparam ();
35115/* The GNU C library defines this for functions which it implements
35116 to always fail with ENOSYS. Some functions are actually named
35117 something starting with __ and the normal name is an alias. */
35118#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
35119choke me
35120#else
35121char (*f) () = pthread_attr_setschedparam;
35122#endif
35123#ifdef __cplusplus
35124}
35125#endif
35126
35127int
35128main ()
35129{
35130return f != pthread_attr_setschedparam;
35131 ;
35132 return 0;
35133}
35134_ACEOF
35135rm -f conftest.$ac_objext conftest$ac_exeext
35136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35137 (eval $ac_link) 2>conftest.er1
a848cd7e 35138 ac_status=$?
ac1cb8d3
VS
35139 grep -v '^ *+' conftest.er1 >conftest.err
35140 rm -f conftest.er1
35141 cat conftest.err >&5
a848cd7e
SC
35142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35143 (exit $ac_status); } &&
fb00f58d
JS
35144 { ac_try='test -z "$ac_c_werror_flag"
35145 || test ! -s conftest.err'
ac1cb8d3
VS
35146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35147 (eval $ac_try) 2>&5
35148 ac_status=$?
35149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35150 (exit $ac_status); }; } &&
35151 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35153 (eval $ac_try) 2>&5
35154 ac_status=$?
35155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35156 (exit $ac_status); }; }; then
35157 ac_cv_func_pthread_attr_setschedparam=yes
35158else
35159 echo "$as_me: failed program was:" >&5
35160sed 's/^/| /' conftest.$ac_ext >&5
35161
35162ac_cv_func_pthread_attr_setschedparam=no
35163fi
ac1cb8d3
VS
35164rm -f conftest.err conftest.$ac_objext \
35165 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35166fi
35167echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
35168echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
35169if test $ac_cv_func_pthread_attr_setschedparam = yes; then
35170 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
35171echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
35172if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
35173 echo $ECHO_N "(cached) $ECHO_C" >&6
35174else
35175 cat >conftest.$ac_ext <<_ACEOF
35176/* confdefs.h. */
35177_ACEOF
35178cat confdefs.h >>conftest.$ac_ext
35179cat >>conftest.$ac_ext <<_ACEOF
35180/* end confdefs.h. */
ac1cb8d3
VS
35181/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
35182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35183#define sched_get_priority_max innocuous_sched_get_priority_max
35184
a848cd7e
SC
35185/* System header to define __stub macros and hopefully few prototypes,
35186 which can conflict with char sched_get_priority_max (); below.
35187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35188 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35189
a848cd7e
SC
35190#ifdef __STDC__
35191# include <limits.h>
35192#else
35193# include <assert.h>
35194#endif
ac1cb8d3
VS
35195
35196#undef sched_get_priority_max
35197
a848cd7e
SC
35198/* Override any gcc2 internal prototype to avoid an error. */
35199#ifdef __cplusplus
35200extern "C"
35201{
35202#endif
35203/* We use char because int might match the return type of a gcc2
35204 builtin and then its argument prototype would still apply. */
35205char sched_get_priority_max ();
35206/* The GNU C library defines this for functions which it implements
35207 to always fail with ENOSYS. Some functions are actually named
35208 something starting with __ and the normal name is an alias. */
35209#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
35210choke me
35211#else
35212char (*f) () = sched_get_priority_max;
35213#endif
35214#ifdef __cplusplus
35215}
35216#endif
35217
35218int
35219main ()
35220{
35221return f != sched_get_priority_max;
35222 ;
35223 return 0;
35224}
35225_ACEOF
35226rm -f conftest.$ac_objext conftest$ac_exeext
35227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35228 (eval $ac_link) 2>conftest.er1
a848cd7e 35229 ac_status=$?
ac1cb8d3
VS
35230 grep -v '^ *+' conftest.er1 >conftest.err
35231 rm -f conftest.er1
35232 cat conftest.err >&5
a848cd7e
SC
35233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35234 (exit $ac_status); } &&
fb00f58d
JS
35235 { ac_try='test -z "$ac_c_werror_flag"
35236 || test ! -s conftest.err'
ac1cb8d3
VS
35237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35238 (eval $ac_try) 2>&5
35239 ac_status=$?
35240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35241 (exit $ac_status); }; } &&
35242 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35244 (eval $ac_try) 2>&5
35245 ac_status=$?
35246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247 (exit $ac_status); }; }; then
35248 ac_cv_func_sched_get_priority_max=yes
35249else
35250 echo "$as_me: failed program was:" >&5
35251sed 's/^/| /' conftest.$ac_ext >&5
35252
35253ac_cv_func_sched_get_priority_max=no
35254fi
ac1cb8d3
VS
35255rm -f conftest.err conftest.$ac_objext \
35256 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35257fi
35258echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35259echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35260if test $ac_cv_func_sched_get_priority_max = yes; then
35261 HAVE_PRIOR_FUNCS=1
35262else
35263 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35264echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35265if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35266 echo $ECHO_N "(cached) $ECHO_C" >&6
35267else
35268 ac_check_lib_save_LIBS=$LIBS
35269LIBS="-lposix4 $LIBS"
35270cat >conftest.$ac_ext <<_ACEOF
35271/* confdefs.h. */
35272_ACEOF
35273cat confdefs.h >>conftest.$ac_ext
35274cat >>conftest.$ac_ext <<_ACEOF
35275/* end confdefs.h. */
35276
35277/* Override any gcc2 internal prototype to avoid an error. */
35278#ifdef __cplusplus
35279extern "C"
35280#endif
35281/* We use char because int might match the return type of a gcc2
35282 builtin and then its argument prototype would still apply. */
35283char sched_get_priority_max ();
35284int
35285main ()
35286{
35287sched_get_priority_max ();
35288 ;
35289 return 0;
35290}
35291_ACEOF
35292rm -f conftest.$ac_objext conftest$ac_exeext
35293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35294 (eval $ac_link) 2>conftest.er1
a848cd7e 35295 ac_status=$?
ac1cb8d3
VS
35296 grep -v '^ *+' conftest.er1 >conftest.err
35297 rm -f conftest.er1
35298 cat conftest.err >&5
a848cd7e
SC
35299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35300 (exit $ac_status); } &&
fb00f58d
JS
35301 { ac_try='test -z "$ac_c_werror_flag"
35302 || test ! -s conftest.err'
ac1cb8d3
VS
35303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35304 (eval $ac_try) 2>&5
35305 ac_status=$?
35306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307 (exit $ac_status); }; } &&
35308 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35310 (eval $ac_try) 2>&5
35311 ac_status=$?
35312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313 (exit $ac_status); }; }; then
35314 ac_cv_lib_posix4_sched_get_priority_max=yes
35315else
35316 echo "$as_me: failed program was:" >&5
35317sed 's/^/| /' conftest.$ac_ext >&5
35318
35319ac_cv_lib_posix4_sched_get_priority_max=no
35320fi
ac1cb8d3
VS
35321rm -f conftest.err conftest.$ac_objext \
35322 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35323LIBS=$ac_check_lib_save_LIBS
35324fi
35325echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35326echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35327if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35328
35329 HAVE_PRIOR_FUNCS=1
35330 POSIX4_LINK=" -lposix4"
35331
35332fi
35333
35334
35335fi
35336
35337
35338fi
35339
35340
35341fi
35342
35343
35344 if test "$HAVE_PRIOR_FUNCS" = 1; then
35345 cat >>confdefs.h <<\_ACEOF
35346#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35347_ACEOF
35348
35349 else
35350 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35351echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35352 fi
35353
35354 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35355echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35356if test "${ac_cv_func_pthread_cancel+set}" = set; then
35357 echo $ECHO_N "(cached) $ECHO_C" >&6
35358else
35359 cat >conftest.$ac_ext <<_ACEOF
35360/* confdefs.h. */
35361_ACEOF
35362cat confdefs.h >>conftest.$ac_ext
35363cat >>conftest.$ac_ext <<_ACEOF
35364/* end confdefs.h. */
ac1cb8d3
VS
35365/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35367#define pthread_cancel innocuous_pthread_cancel
35368
a848cd7e
SC
35369/* System header to define __stub macros and hopefully few prototypes,
35370 which can conflict with char pthread_cancel (); below.
35371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35372 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35373
a848cd7e
SC
35374#ifdef __STDC__
35375# include <limits.h>
35376#else
35377# include <assert.h>
35378#endif
ac1cb8d3
VS
35379
35380#undef pthread_cancel
35381
a848cd7e
SC
35382/* Override any gcc2 internal prototype to avoid an error. */
35383#ifdef __cplusplus
35384extern "C"
35385{
35386#endif
35387/* We use char because int might match the return type of a gcc2
35388 builtin and then its argument prototype would still apply. */
35389char pthread_cancel ();
35390/* The GNU C library defines this for functions which it implements
35391 to always fail with ENOSYS. Some functions are actually named
35392 something starting with __ and the normal name is an alias. */
35393#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35394choke me
35395#else
35396char (*f) () = pthread_cancel;
35397#endif
35398#ifdef __cplusplus
35399}
35400#endif
35401
35402int
35403main ()
35404{
35405return f != pthread_cancel;
35406 ;
35407 return 0;
35408}
35409_ACEOF
35410rm -f conftest.$ac_objext conftest$ac_exeext
35411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35412 (eval $ac_link) 2>conftest.er1
a848cd7e 35413 ac_status=$?
ac1cb8d3
VS
35414 grep -v '^ *+' conftest.er1 >conftest.err
35415 rm -f conftest.er1
35416 cat conftest.err >&5
a848cd7e
SC
35417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35418 (exit $ac_status); } &&
fb00f58d
JS
35419 { ac_try='test -z "$ac_c_werror_flag"
35420 || test ! -s conftest.err'
ac1cb8d3
VS
35421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35422 (eval $ac_try) 2>&5
35423 ac_status=$?
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); }; } &&
35426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35428 (eval $ac_try) 2>&5
35429 ac_status=$?
35430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431 (exit $ac_status); }; }; then
35432 ac_cv_func_pthread_cancel=yes
35433else
35434 echo "$as_me: failed program was:" >&5
35435sed 's/^/| /' conftest.$ac_ext >&5
35436
35437ac_cv_func_pthread_cancel=no
35438fi
ac1cb8d3
VS
35439rm -f conftest.err conftest.$ac_objext \
35440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35441fi
35442echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35443echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35444if test $ac_cv_func_pthread_cancel = yes; then
35445 cat >>confdefs.h <<\_ACEOF
35446#define HAVE_PTHREAD_CANCEL 1
35447_ACEOF
35448
35449else
35450 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35451echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35452fi
35453
35454
35455
35456
35457 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35458echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35459if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35460 echo $ECHO_N "(cached) $ECHO_C" >&6
35461else
35462
35463 cat >conftest.$ac_ext <<_ACEOF
35464/* confdefs.h. */
35465_ACEOF
35466cat confdefs.h >>conftest.$ac_ext
35467cat >>conftest.$ac_ext <<_ACEOF
35468/* end confdefs.h. */
35469#include <pthread.h>
35470int
35471main ()
35472{
35473
35474 pthread_mutexattr_t attr;
35475 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35476
35477 ;
35478 return 0;
35479}
35480_ACEOF
35481rm -f conftest.$ac_objext
35482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35483 (eval $ac_compile) 2>conftest.er1
a848cd7e 35484 ac_status=$?
ac1cb8d3
VS
35485 grep -v '^ *+' conftest.er1 >conftest.err
35486 rm -f conftest.er1
35487 cat conftest.err >&5
a848cd7e
SC
35488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489 (exit $ac_status); } &&
fb00f58d
JS
35490 { ac_try='test -z "$ac_c_werror_flag"
35491 || test ! -s conftest.err'
ac1cb8d3
VS
35492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35493 (eval $ac_try) 2>&5
35494 ac_status=$?
35495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496 (exit $ac_status); }; } &&
35497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35499 (eval $ac_try) 2>&5
35500 ac_status=$?
35501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502 (exit $ac_status); }; }; then
35503
35504 wx_cv_type_pthread_mutexattr_t=yes
35505
35506else
35507 echo "$as_me: failed program was:" >&5
35508sed 's/^/| /' conftest.$ac_ext >&5
35509
35510
35511 wx_cv_type_pthread_mutexattr_t=no
35512
35513
35514fi
ac1cb8d3 35515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35516
35517fi
35518echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35519echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35520
35521 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35522 cat >>confdefs.h <<\_ACEOF
35523#define HAVE_PTHREAD_MUTEXATTR_T 1
35524_ACEOF
35525
35526 else
35527 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35528echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35529if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35530 echo $ECHO_N "(cached) $ECHO_C" >&6
35531else
35532
35533 cat >conftest.$ac_ext <<_ACEOF
35534/* confdefs.h. */
35535_ACEOF
35536cat confdefs.h >>conftest.$ac_ext
35537cat >>conftest.$ac_ext <<_ACEOF
35538/* end confdefs.h. */
35539#include <pthread.h>
35540int
35541main ()
35542{
35543
35544 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35545
35546 ;
35547 return 0;
35548}
35549_ACEOF
35550rm -f conftest.$ac_objext
35551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35552 (eval $ac_compile) 2>conftest.er1
a848cd7e 35553 ac_status=$?
ac1cb8d3
VS
35554 grep -v '^ *+' conftest.er1 >conftest.err
35555 rm -f conftest.er1
35556 cat conftest.err >&5
a848cd7e
SC
35557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558 (exit $ac_status); } &&
fb00f58d
JS
35559 { ac_try='test -z "$ac_c_werror_flag"
35560 || test ! -s conftest.err'
ac1cb8d3
VS
35561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35562 (eval $ac_try) 2>&5
35563 ac_status=$?
35564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35565 (exit $ac_status); }; } &&
35566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35568 (eval $ac_try) 2>&5
35569 ac_status=$?
35570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35571 (exit $ac_status); }; }; then
35572
35573 wx_cv_type_pthread_rec_mutex_init=yes
35574
35575else
35576 echo "$as_me: failed program was:" >&5
35577sed 's/^/| /' conftest.$ac_ext >&5
35578
35579
35580 wx_cv_type_pthread_rec_mutex_init=no
35581
35582
35583fi
ac1cb8d3 35584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35585
35586fi
35587echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35588echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35589 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35590 cat >>confdefs.h <<\_ACEOF
35591#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35592_ACEOF
35593
35594 else
35595 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35596echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35597 fi
35598 fi
35599 fi
35600
35601else
35602 if test "$wxUSE_THREADS" = "yes" ; then
35603 case "${host}" in
35604 *-*-mingw32* )
35605 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35606echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35607if test "${wx_cv_cflags_mthread+set}" = set; then
35608 echo $ECHO_N "(cached) $ECHO_C" >&6
35609else
35610
35611 CFLAGS_OLD="$CFLAGS"
35612 CFLAGS="$CFLAGS -mthreads"
35613 cat >conftest.$ac_ext <<_ACEOF
35614/* confdefs.h. */
35615_ACEOF
35616cat confdefs.h >>conftest.$ac_ext
35617cat >>conftest.$ac_ext <<_ACEOF
35618/* end confdefs.h. */
35619
35620int
35621main ()
35622{
35623
35624 ;
35625 return 0;
35626}
35627_ACEOF
35628rm -f conftest.$ac_objext
35629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35630 (eval $ac_compile) 2>conftest.er1
a848cd7e 35631 ac_status=$?
ac1cb8d3
VS
35632 grep -v '^ *+' conftest.er1 >conftest.err
35633 rm -f conftest.er1
35634 cat conftest.err >&5
a848cd7e
SC
35635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35636 (exit $ac_status); } &&
fb00f58d
JS
35637 { ac_try='test -z "$ac_c_werror_flag"
35638 || test ! -s conftest.err'
ac1cb8d3
VS
35639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35640 (eval $ac_try) 2>&5
35641 ac_status=$?
35642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643 (exit $ac_status); }; } &&
35644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35646 (eval $ac_try) 2>&5
35647 ac_status=$?
35648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35649 (exit $ac_status); }; }; then
35650 wx_cv_cflags_mthread=yes
35651else
35652 echo "$as_me: failed program was:" >&5
35653sed 's/^/| /' conftest.$ac_ext >&5
35654
35655wx_cv_cflags_mthread=no
35656
35657fi
ac1cb8d3 35658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35659
35660
35661fi
35662echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35663echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35664
35665 if test "$wx_cv_cflags_mthread" = "yes"; then
35666 CXXFLAGS="$CXXFLAGS -mthreads"
35667 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35668 LDFLAGS="$LDFLAGS -mthreads"
35669 else
35670 CFLAGS="$CFLAGS_OLD"
35671 fi
35672 ;;
35673 *-pc-os2*emx )
35674 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35675 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35676 LDFLAGS="$LDFLAGS -Zmt"
35677 ;;
35678 esac
35679 fi
35680fi
35681
35682if test "$wxUSE_THREADS" = "yes"; then
35683 cat >>confdefs.h <<\_ACEOF
35684#define wxUSE_THREADS 1
35685_ACEOF
35686
35687
35688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35689else
35690 if test "$ac_cv_func_strtok_r" = "yes"; then
35691 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35692echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35693 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35694 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35695 echo "$as_me:$LINENO: result: yes" >&5
35696echo "${ECHO_T}yes" >&6
35697 else
35698 echo "$as_me:$LINENO: result: no" >&5
35699echo "${ECHO_T}no" >&6
35700 fi
35701 fi
35702fi
35703
35704if test "$WXGTK20" = 1 ; then
35705 cat >>confdefs.h <<_ACEOF
35706#define __WXGTK20__ $WXGTK20
35707_ACEOF
35708
35709 WXGTK12=1
35710fi
35711
35712if test "$WXGTK12" = 1 ; then
35713 cat >>confdefs.h <<_ACEOF
35714#define __WXGTK12__ $WXGTK12
35715_ACEOF
35716
35717fi
35718
35719if test "$WXGTK127" = 1 ; then
35720 cat >>confdefs.h <<_ACEOF
35721#define __WXGTK127__ $WXGTK127
35722_ACEOF
35723
35724fi
35725
35726if test "$WXGPE" = 1 ; then
35727 cat >>confdefs.h <<_ACEOF
35728#define __WXGPE__ $WXGPE
35729_ACEOF
35730
35731fi
35732
35733WXDEBUG=
35734
35735if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35736 WXDEBUG="-g"
35737 wxUSE_OPTIMISE=no
35738fi
35739
35740if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35741 wxUSE_DEBUG_INFO=yes
35742 WXDEBUG="-ggdb"
35743fi
35744
35745if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35746 cat >>confdefs.h <<\_ACEOF
35747#define WXDEBUG 1
35748_ACEOF
35749
35750 WXDEBUG_DEFINE="-D__WXDEBUG__"
35751else
35752 if test "$wxUSE_GTK" = 1 ; then
35753 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35754 fi
35755fi
35756
35757if test "$wxUSE_MEM_TRACING" = "yes" ; then
35758 cat >>confdefs.h <<\_ACEOF
35759#define wxUSE_MEMORY_TRACING 1
35760_ACEOF
35761
35762 cat >>confdefs.h <<\_ACEOF
35763#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35764_ACEOF
35765
35766 cat >>confdefs.h <<\_ACEOF
35767#define wxUSE_DEBUG_NEW_ALWAYS 1
35768_ACEOF
35769
35770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35771fi
35772
35773if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 35774 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
35775fi
35776
35777PROFILE=
35778if test "$wxUSE_PROFILE" = "yes" ; then
35779 PROFILE=" -pg"
35780fi
35781
35782CODE_GEN_FLAGS=
35783CODE_GEN_FLAGS_CXX=
35784if test "$GCC" = "yes" ; then
35785 if test "$wxUSE_NO_RTTI" = "yes" ; then
35786 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35787 fi
35788 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35789 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35790 fi
35791 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35792 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35793 fi
35794
35795 case "${host}" in
35796 powerpc*-*-aix* )
35797 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35798 ;;
35799 *-hppa* )
35800 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35801 ;;
35802 esac
35803fi
35804
35805OPTIMISE=
35806if test "$wxUSE_OPTIMISE" = "no" ; then
35807 if test "$GCC" = yes ; then
35808 OPTIMISE="-O0"
35809 fi
35810else
35811 if test "$GCC" = yes ; then
35812 OPTIMISE="-O2"
35813
35814 case "${host}" in
35815 i586-*-*|i686-*-* )
35816 OPTIMISE="${OPTIMISE} "
35817 ;;
35818 esac
35819 else
35820 OPTIMISE="-O"
35821 fi
35822fi
35823
35824
35825if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35826 cat >>confdefs.h <<\_ACEOF
35827#define WXWIN_COMPATIBILITY_2_2 1
35828_ACEOF
35829
35830
35831 WXWIN_COMPATIBILITY_2_4="yes"
35832fi
35833
35834if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35835 cat >>confdefs.h <<\_ACEOF
35836#define WXWIN_COMPATIBILITY_2_4 1
35837_ACEOF
35838
35839fi
35840
35841
35842if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35843 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35844#define wxUSE_GUI 1
35845_ACEOF
35846
35847
370fd4c2 35848 fi
a848cd7e
SC
35849
35850
35851if test "$wxUSE_UNIX" = "yes"; then
35852 cat >>confdefs.h <<\_ACEOF
35853#define wxUSE_UNIX 1
35854_ACEOF
35855
35856fi
35857
35858
35859if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35860
35861 HAVE_DL_FUNCS=0
35862 HAVE_SHL_FUNCS=0
35863 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35864 if test "$USE_DARWIN" = 1; then
35865 HAVE_DL_FUNCS=1
47a7e797
MW
35866 elif test "$USE_DOS" = 1; then
35867 HAVE_DL_FUNCS=0
a848cd7e
SC
35868 else
35869
35870for ac_func in dlopen
35871do
35872as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35873echo "$as_me:$LINENO: checking for $ac_func" >&5
35874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35875if eval "test \"\${$as_ac_var+set}\" = set"; then
35876 echo $ECHO_N "(cached) $ECHO_C" >&6
35877else
35878 cat >conftest.$ac_ext <<_ACEOF
35879/* confdefs.h. */
35880_ACEOF
35881cat confdefs.h >>conftest.$ac_ext
35882cat >>conftest.$ac_ext <<_ACEOF
35883/* end confdefs.h. */
ac1cb8d3
VS
35884/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35886#define $ac_func innocuous_$ac_func
35887
a848cd7e
SC
35888/* System header to define __stub macros and hopefully few prototypes,
35889 which can conflict with char $ac_func (); below.
35890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35891 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35892
a848cd7e
SC
35893#ifdef __STDC__
35894# include <limits.h>
35895#else
35896# include <assert.h>
35897#endif
ac1cb8d3
VS
35898
35899#undef $ac_func
35900
a848cd7e
SC
35901/* Override any gcc2 internal prototype to avoid an error. */
35902#ifdef __cplusplus
35903extern "C"
35904{
35905#endif
35906/* We use char because int might match the return type of a gcc2
35907 builtin and then its argument prototype would still apply. */
35908char $ac_func ();
35909/* The GNU C library defines this for functions which it implements
35910 to always fail with ENOSYS. Some functions are actually named
35911 something starting with __ and the normal name is an alias. */
35912#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35913choke me
35914#else
35915char (*f) () = $ac_func;
35916#endif
35917#ifdef __cplusplus
35918}
35919#endif
35920
35921int
35922main ()
35923{
35924return f != $ac_func;
35925 ;
35926 return 0;
35927}
35928_ACEOF
35929rm -f conftest.$ac_objext conftest$ac_exeext
35930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35931 (eval $ac_link) 2>conftest.er1
a848cd7e 35932 ac_status=$?
ac1cb8d3
VS
35933 grep -v '^ *+' conftest.er1 >conftest.err
35934 rm -f conftest.er1
35935 cat conftest.err >&5
a848cd7e
SC
35936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); } &&
fb00f58d
JS
35938 { ac_try='test -z "$ac_c_werror_flag"
35939 || test ! -s conftest.err'
ac1cb8d3
VS
35940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35941 (eval $ac_try) 2>&5
35942 ac_status=$?
35943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35944 (exit $ac_status); }; } &&
35945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35947 (eval $ac_try) 2>&5
35948 ac_status=$?
35949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35950 (exit $ac_status); }; }; then
35951 eval "$as_ac_var=yes"
35952else
35953 echo "$as_me: failed program was:" >&5
35954sed 's/^/| /' conftest.$ac_ext >&5
35955
35956eval "$as_ac_var=no"
35957fi
ac1cb8d3
VS
35958rm -f conftest.err conftest.$ac_objext \
35959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35960fi
35961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35962echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35963if test `eval echo '${'$as_ac_var'}'` = yes; then
35964 cat >>confdefs.h <<_ACEOF
35965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35966_ACEOF
35967
35968 cat >>confdefs.h <<\_ACEOF
35969#define HAVE_DLOPEN 1
35970_ACEOF
35971
35972 HAVE_DL_FUNCS=1
35973
35974else
35975
35976 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35977echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35978if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35979 echo $ECHO_N "(cached) $ECHO_C" >&6
35980else
35981 ac_check_lib_save_LIBS=$LIBS
35982LIBS="-ldl $LIBS"
35983cat >conftest.$ac_ext <<_ACEOF
35984/* confdefs.h. */
35985_ACEOF
35986cat confdefs.h >>conftest.$ac_ext
35987cat >>conftest.$ac_ext <<_ACEOF
35988/* end confdefs.h. */
35989
35990/* Override any gcc2 internal prototype to avoid an error. */
35991#ifdef __cplusplus
35992extern "C"
35993#endif
35994/* We use char because int might match the return type of a gcc2
35995 builtin and then its argument prototype would still apply. */
35996char dlopen ();
35997int
35998main ()
35999{
36000dlopen ();
36001 ;
36002 return 0;
36003}
36004_ACEOF
36005rm -f conftest.$ac_objext conftest$ac_exeext
36006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36007 (eval $ac_link) 2>conftest.er1
a848cd7e 36008 ac_status=$?
ac1cb8d3
VS
36009 grep -v '^ *+' conftest.er1 >conftest.err
36010 rm -f conftest.er1
36011 cat conftest.err >&5
a848cd7e
SC
36012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013 (exit $ac_status); } &&
fb00f58d
JS
36014 { ac_try='test -z "$ac_c_werror_flag"
36015 || test ! -s conftest.err'
ac1cb8d3
VS
36016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36017 (eval $ac_try) 2>&5
36018 ac_status=$?
36019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020 (exit $ac_status); }; } &&
36021 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023 (eval $ac_try) 2>&5
36024 ac_status=$?
36025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); }; }; then
36027 ac_cv_lib_dl_dlopen=yes
36028else
36029 echo "$as_me: failed program was:" >&5
36030sed 's/^/| /' conftest.$ac_ext >&5
36031
36032ac_cv_lib_dl_dlopen=no
36033fi
ac1cb8d3
VS
36034rm -f conftest.err conftest.$ac_objext \
36035 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36036LIBS=$ac_check_lib_save_LIBS
36037fi
36038echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36039echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
36040if test $ac_cv_lib_dl_dlopen = yes; then
36041
36042 cat >>confdefs.h <<\_ACEOF
36043#define HAVE_DLOPEN 1
36044_ACEOF
36045
36046 HAVE_DL_FUNCS=1
36047 DL_LINK=" -ldl$DL_LINK"
36048
36049else
36050
36051
36052for ac_func in shl_load
36053do
36054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36055echo "$as_me:$LINENO: checking for $ac_func" >&5
36056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36057if eval "test \"\${$as_ac_var+set}\" = set"; then
36058 echo $ECHO_N "(cached) $ECHO_C" >&6
36059else
36060 cat >conftest.$ac_ext <<_ACEOF
36061/* confdefs.h. */
36062_ACEOF
36063cat confdefs.h >>conftest.$ac_ext
36064cat >>conftest.$ac_ext <<_ACEOF
36065/* end confdefs.h. */
ac1cb8d3
VS
36066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36068#define $ac_func innocuous_$ac_func
36069
a848cd7e
SC
36070/* System header to define __stub macros and hopefully few prototypes,
36071 which can conflict with char $ac_func (); below.
36072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36073 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36074
a848cd7e
SC
36075#ifdef __STDC__
36076# include <limits.h>
36077#else
36078# include <assert.h>
36079#endif
ac1cb8d3
VS
36080
36081#undef $ac_func
36082
a848cd7e
SC
36083/* Override any gcc2 internal prototype to avoid an error. */
36084#ifdef __cplusplus
36085extern "C"
36086{
36087#endif
36088/* We use char because int might match the return type of a gcc2
36089 builtin and then its argument prototype would still apply. */
36090char $ac_func ();
36091/* The GNU C library defines this for functions which it implements
36092 to always fail with ENOSYS. Some functions are actually named
36093 something starting with __ and the normal name is an alias. */
36094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36095choke me
36096#else
36097char (*f) () = $ac_func;
36098#endif
36099#ifdef __cplusplus
36100}
36101#endif
36102
36103int
36104main ()
36105{
36106return f != $ac_func;
36107 ;
36108 return 0;
36109}
36110_ACEOF
36111rm -f conftest.$ac_objext conftest$ac_exeext
36112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36113 (eval $ac_link) 2>conftest.er1
a848cd7e 36114 ac_status=$?
ac1cb8d3
VS
36115 grep -v '^ *+' conftest.er1 >conftest.err
36116 rm -f conftest.er1
36117 cat conftest.err >&5
a848cd7e
SC
36118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119 (exit $ac_status); } &&
fb00f58d
JS
36120 { ac_try='test -z "$ac_c_werror_flag"
36121 || test ! -s conftest.err'
ac1cb8d3
VS
36122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36123 (eval $ac_try) 2>&5
36124 ac_status=$?
36125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126 (exit $ac_status); }; } &&
36127 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36129 (eval $ac_try) 2>&5
36130 ac_status=$?
36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132 (exit $ac_status); }; }; then
36133 eval "$as_ac_var=yes"
36134else
36135 echo "$as_me: failed program was:" >&5
36136sed 's/^/| /' conftest.$ac_ext >&5
36137
36138eval "$as_ac_var=no"
36139fi
ac1cb8d3
VS
36140rm -f conftest.err conftest.$ac_objext \
36141 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36142fi
36143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36144echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36145if test `eval echo '${'$as_ac_var'}'` = yes; then
36146 cat >>confdefs.h <<_ACEOF
36147#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36148_ACEOF
36149
36150 cat >>confdefs.h <<\_ACEOF
36151#define HAVE_SHL_LOAD 1
36152_ACEOF
36153
36154 HAVE_SHL_FUNCS=1
36155
36156else
36157
36158 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
36159echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
36160if test "${ac_cv_lib_shl_load_dld+set}" = set; then
36161 echo $ECHO_N "(cached) $ECHO_C" >&6
36162else
36163 ac_check_lib_save_LIBS=$LIBS
36164LIBS="-lshl_load $LIBS"
36165cat >conftest.$ac_ext <<_ACEOF
36166/* confdefs.h. */
36167_ACEOF
36168cat confdefs.h >>conftest.$ac_ext
36169cat >>conftest.$ac_ext <<_ACEOF
36170/* end confdefs.h. */
36171
36172/* Override any gcc2 internal prototype to avoid an error. */
36173#ifdef __cplusplus
36174extern "C"
36175#endif
36176/* We use char because int might match the return type of a gcc2
36177 builtin and then its argument prototype would still apply. */
36178char dld ();
36179int
36180main ()
36181{
36182dld ();
36183 ;
36184 return 0;
36185}
36186_ACEOF
36187rm -f conftest.$ac_objext conftest$ac_exeext
36188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36189 (eval $ac_link) 2>conftest.er1
a848cd7e 36190 ac_status=$?
ac1cb8d3
VS
36191 grep -v '^ *+' conftest.er1 >conftest.err
36192 rm -f conftest.er1
36193 cat conftest.err >&5
a848cd7e
SC
36194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36195 (exit $ac_status); } &&
fb00f58d
JS
36196 { ac_try='test -z "$ac_c_werror_flag"
36197 || test ! -s conftest.err'
ac1cb8d3
VS
36198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36199 (eval $ac_try) 2>&5
36200 ac_status=$?
36201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 (exit $ac_status); }; } &&
36203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36205 (eval $ac_try) 2>&5
36206 ac_status=$?
36207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36208 (exit $ac_status); }; }; then
36209 ac_cv_lib_shl_load_dld=yes
36210else
36211 echo "$as_me: failed program was:" >&5
36212sed 's/^/| /' conftest.$ac_ext >&5
36213
36214ac_cv_lib_shl_load_dld=no
36215fi
ac1cb8d3
VS
36216rm -f conftest.err conftest.$ac_objext \
36217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36218LIBS=$ac_check_lib_save_LIBS
36219fi
36220echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
36221echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
36222if test $ac_cv_lib_shl_load_dld = yes; then
36223
36224 HAVE_SHL_FUNCS=1
36225 DL_LINK=" -ldld$DL_LINK"
36226
36227fi
36228
36229
36230fi
36231done
36232
36233
36234fi
36235
36236
36237fi
36238done
36239
36240
36241 if test "$HAVE_DL_FUNCS" = 1; then
36242
36243for ac_func in dlerror
36244do
36245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36246echo "$as_me:$LINENO: checking for $ac_func" >&5
36247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36248if eval "test \"\${$as_ac_var+set}\" = set"; then
36249 echo $ECHO_N "(cached) $ECHO_C" >&6
36250else
36251 cat >conftest.$ac_ext <<_ACEOF
36252/* confdefs.h. */
36253_ACEOF
36254cat confdefs.h >>conftest.$ac_ext
36255cat >>conftest.$ac_ext <<_ACEOF
36256/* end confdefs.h. */
ac1cb8d3
VS
36257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36259#define $ac_func innocuous_$ac_func
36260
a848cd7e
SC
36261/* System header to define __stub macros and hopefully few prototypes,
36262 which can conflict with char $ac_func (); below.
36263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36264 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36265
a848cd7e
SC
36266#ifdef __STDC__
36267# include <limits.h>
36268#else
36269# include <assert.h>
36270#endif
ac1cb8d3
VS
36271
36272#undef $ac_func
36273
a848cd7e
SC
36274/* Override any gcc2 internal prototype to avoid an error. */
36275#ifdef __cplusplus
36276extern "C"
36277{
36278#endif
36279/* We use char because int might match the return type of a gcc2
36280 builtin and then its argument prototype would still apply. */
36281char $ac_func ();
36282/* The GNU C library defines this for functions which it implements
36283 to always fail with ENOSYS. Some functions are actually named
36284 something starting with __ and the normal name is an alias. */
36285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36286choke me
36287#else
36288char (*f) () = $ac_func;
36289#endif
36290#ifdef __cplusplus
36291}
36292#endif
36293
36294int
36295main ()
36296{
36297return f != $ac_func;
36298 ;
36299 return 0;
36300}
36301_ACEOF
36302rm -f conftest.$ac_objext conftest$ac_exeext
36303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36304 (eval $ac_link) 2>conftest.er1
a848cd7e 36305 ac_status=$?
ac1cb8d3
VS
36306 grep -v '^ *+' conftest.er1 >conftest.err
36307 rm -f conftest.er1
36308 cat conftest.err >&5
a848cd7e
SC
36309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310 (exit $ac_status); } &&
fb00f58d
JS
36311 { ac_try='test -z "$ac_c_werror_flag"
36312 || test ! -s conftest.err'
ac1cb8d3
VS
36313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36314 (eval $ac_try) 2>&5
36315 ac_status=$?
36316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36317 (exit $ac_status); }; } &&
36318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36320 (eval $ac_try) 2>&5
36321 ac_status=$?
36322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36323 (exit $ac_status); }; }; then
36324 eval "$as_ac_var=yes"
36325else
36326 echo "$as_me: failed program was:" >&5
36327sed 's/^/| /' conftest.$ac_ext >&5
36328
36329eval "$as_ac_var=no"
36330fi
ac1cb8d3
VS
36331rm -f conftest.err conftest.$ac_objext \
36332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36333fi
36334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36336if test `eval echo '${'$as_ac_var'}'` = yes; then
36337 cat >>confdefs.h <<_ACEOF
36338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36339_ACEOF
36340 cat >>confdefs.h <<\_ACEOF
36341#define HAVE_DLERROR 1
36342_ACEOF
36343
36344else
36345
36346 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
36347echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
36348if test "${ac_cv_lib_dl_dlerror+set}" = set; then
36349 echo $ECHO_N "(cached) $ECHO_C" >&6
36350else
36351 ac_check_lib_save_LIBS=$LIBS
36352LIBS="-ldl $LIBS"
36353cat >conftest.$ac_ext <<_ACEOF
36354/* confdefs.h. */
36355_ACEOF
36356cat confdefs.h >>conftest.$ac_ext
36357cat >>conftest.$ac_ext <<_ACEOF
36358/* end confdefs.h. */
36359
36360/* Override any gcc2 internal prototype to avoid an error. */
36361#ifdef __cplusplus
36362extern "C"
36363#endif
36364/* We use char because int might match the return type of a gcc2
36365 builtin and then its argument prototype would still apply. */
36366char dlerror ();
36367int
36368main ()
36369{
36370dlerror ();
36371 ;
36372 return 0;
36373}
36374_ACEOF
36375rm -f conftest.$ac_objext conftest$ac_exeext
36376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36377 (eval $ac_link) 2>conftest.er1
a848cd7e 36378 ac_status=$?
ac1cb8d3
VS
36379 grep -v '^ *+' conftest.er1 >conftest.err
36380 rm -f conftest.er1
36381 cat conftest.err >&5
a848cd7e
SC
36382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36383 (exit $ac_status); } &&
fb00f58d
JS
36384 { ac_try='test -z "$ac_c_werror_flag"
36385 || test ! -s conftest.err'
ac1cb8d3
VS
36386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36387 (eval $ac_try) 2>&5
36388 ac_status=$?
36389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36390 (exit $ac_status); }; } &&
36391 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36393 (eval $ac_try) 2>&5
36394 ac_status=$?
36395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396 (exit $ac_status); }; }; then
36397 ac_cv_lib_dl_dlerror=yes
36398else
36399 echo "$as_me: failed program was:" >&5
36400sed 's/^/| /' conftest.$ac_ext >&5
36401
36402ac_cv_lib_dl_dlerror=no
36403fi
ac1cb8d3
VS
36404rm -f conftest.err conftest.$ac_objext \
36405 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36406LIBS=$ac_check_lib_save_LIBS
36407fi
36408echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
36409echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
36410if test $ac_cv_lib_dl_dlerror = yes; then
36411 cat >>confdefs.h <<\_ACEOF
36412#define HAVE_DLERROR 1
36413_ACEOF
36414
36415fi
36416
36417
36418
36419fi
36420done
36421
36422 fi
36423 fi
36424
36425 if test "$HAVE_DL_FUNCS" = 0; then
36426 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 36427 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
36428 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36429echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36430 wxUSE_DYNAMIC_LOADER=no
36431 wxUSE_DYNLIB_CLASS=no
36432 else
36433 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36434echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36435 fi
36436 fi
36437 fi
36438 fi
36439fi
36440
36441if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36442 cat >>confdefs.h <<\_ACEOF
36443#define wxUSE_DYNAMIC_LOADER 1
36444_ACEOF
36445
36446fi
36447if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36448 cat >>confdefs.h <<\_ACEOF
36449#define wxUSE_DYNLIB_CLASS 1
36450_ACEOF
36451
36452fi
36453
36454
36455
36456if test "$wxUSE_PLUGINS" = "yes" ; then
36457 if test "$wxUSE_SHARED" = "no" ; then
36458 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36459echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36460 wxUSE_PLUGINS=no
36461 fi
36462 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36463 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36464echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36465 wxUSE_PLUGINS=no
36466 fi
36467 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36468 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36469echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36470 wxUSE_PLUGINS=no
36471 fi
36472 if test "$wxUSE_PLUGINS" = "yes" ; then
36473 cat >>confdefs.h <<\_ACEOF
36474#define wxUSE_PLUGINS 1
36475_ACEOF
36476
36477 fi
36478fi
36479
36480
36481if test "$wxUSE_STL" = "yes"; then
36482 cat >>confdefs.h <<\_ACEOF
36483#define wxUSE_STL 1
36484_ACEOF
36485
36486fi
36487
36488if test "$wxUSE_APPLE_IEEE" = "yes"; then
36489 cat >>confdefs.h <<\_ACEOF
36490#define wxUSE_APPLE_IEEE 1
36491_ACEOF
36492
36493fi
36494
36495if test "$wxUSE_TIMER" = "yes"; then
36496 cat >>confdefs.h <<\_ACEOF
36497#define wxUSE_TIMER 1
36498_ACEOF
36499
36500fi
36501
9c112555 36502if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36503
36504for ac_header in sys/soundcard.h
36505do
36506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36507if eval "test \"\${$as_ac_Header+set}\" = set"; then
36508 echo "$as_me:$LINENO: checking for $ac_header" >&5
36509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36510if eval "test \"\${$as_ac_Header+set}\" = set"; then
36511 echo $ECHO_N "(cached) $ECHO_C" >&6
36512fi
36513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36515else
36516 # Is the header compilable?
36517echo "$as_me:$LINENO: checking $ac_header usability" >&5
36518echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36519cat >conftest.$ac_ext <<_ACEOF
36520/* confdefs.h. */
36521_ACEOF
36522cat confdefs.h >>conftest.$ac_ext
36523cat >>conftest.$ac_ext <<_ACEOF
36524/* end confdefs.h. */
36525$ac_includes_default
36526#include <$ac_header>
36527_ACEOF
36528rm -f conftest.$ac_objext
36529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36530 (eval $ac_compile) 2>conftest.er1
a848cd7e 36531 ac_status=$?
ac1cb8d3
VS
36532 grep -v '^ *+' conftest.er1 >conftest.err
36533 rm -f conftest.er1
36534 cat conftest.err >&5
a848cd7e
SC
36535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36536 (exit $ac_status); } &&
fb00f58d
JS
36537 { ac_try='test -z "$ac_c_werror_flag"
36538 || test ! -s conftest.err'
ac1cb8d3
VS
36539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36540 (eval $ac_try) 2>&5
36541 ac_status=$?
36542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36543 (exit $ac_status); }; } &&
36544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36546 (eval $ac_try) 2>&5
36547 ac_status=$?
36548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36549 (exit $ac_status); }; }; then
36550 ac_header_compiler=yes
36551else
36552 echo "$as_me: failed program was:" >&5
36553sed 's/^/| /' conftest.$ac_ext >&5
36554
36555ac_header_compiler=no
36556fi
ac1cb8d3 36557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36558echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36559echo "${ECHO_T}$ac_header_compiler" >&6
36560
36561# Is the header present?
36562echo "$as_me:$LINENO: checking $ac_header presence" >&5
36563echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36564cat >conftest.$ac_ext <<_ACEOF
36565/* confdefs.h. */
36566_ACEOF
36567cat confdefs.h >>conftest.$ac_ext
36568cat >>conftest.$ac_ext <<_ACEOF
36569/* end confdefs.h. */
36570#include <$ac_header>
36571_ACEOF
36572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36574 ac_status=$?
36575 grep -v '^ *+' conftest.er1 >conftest.err
36576 rm -f conftest.er1
36577 cat conftest.err >&5
36578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36579 (exit $ac_status); } >/dev/null; then
36580 if test -s conftest.err; then
36581 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36583 else
36584 ac_cpp_err=
36585 fi
36586else
36587 ac_cpp_err=yes
36588fi
36589if test -z "$ac_cpp_err"; then
36590 ac_header_preproc=yes
36591else
36592 echo "$as_me: failed program was:" >&5
36593sed 's/^/| /' conftest.$ac_ext >&5
36594
36595 ac_header_preproc=no
36596fi
36597rm -f conftest.err conftest.$ac_ext
36598echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36599echo "${ECHO_T}$ac_header_preproc" >&6
36600
36601# So? What about this header?
ac1cb8d3
VS
36602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36603 yes:no: )
a848cd7e
SC
36604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36605echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36607echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36608 ac_header_preproc=yes
a848cd7e 36609 ;;
ac1cb8d3 36610 no:yes:* )
a848cd7e
SC
36611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36612echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36614echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36616echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36618echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36622echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36623 (
36624 cat <<\_ASBOX
ac1cb8d3
VS
36625## ----------------------------------------- ##
36626## Report this to wx-dev@lists.wxwidgets.org ##
36627## ----------------------------------------- ##
a848cd7e
SC
36628_ASBOX
36629 ) |
36630 sed "s/^/$as_me: WARNING: /" >&2
36631 ;;
36632esac
36633echo "$as_me:$LINENO: checking for $ac_header" >&5
36634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36635if eval "test \"\${$as_ac_Header+set}\" = set"; then
36636 echo $ECHO_N "(cached) $ECHO_C" >&6
36637else
ac1cb8d3 36638 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36639fi
36640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36642
36643fi
36644if test `eval echo '${'$as_ac_Header'}'` = yes; then
36645 cat >>confdefs.h <<_ACEOF
36646#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36647_ACEOF
36648
9c112555
MW
36649else
36650 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
a848cd7e
SC
36651fi
36652
36653done
36654
9c112555
MW
36655fi
36656WITH_PLUGIN_SDL=0
36657if test "$wxUSE_SOUND" = "yes"; then
36658 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36659 if test "$wxUSE_LIBSDL" != "no"; then
36660
36661# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36662if test "${with_sdl_prefix+set}" = set; then
36663 withval="$with_sdl_prefix"
36664 sdl_prefix="$withval"
36665else
36666 sdl_prefix=""
36667fi;
36668
36669# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36670if test "${with_sdl_exec_prefix+set}" = set; then
36671 withval="$with_sdl_exec_prefix"
36672 sdl_exec_prefix="$withval"
36673else
36674 sdl_exec_prefix=""
36675fi;
36676# Check whether --enable-sdltest or --disable-sdltest was given.
36677if test "${enable_sdltest+set}" = set; then
36678 enableval="$enable_sdltest"
36679
36680else
36681 enable_sdltest=yes
36682fi;
36683
36684 if test x$sdl_exec_prefix != x ; then
36685 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36686 if test x${SDL_CONFIG+set} != xset ; then
36687 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36688 fi
36689 fi
36690 if test x$sdl_prefix != x ; then
36691 sdl_args="$sdl_args --prefix=$sdl_prefix"
36692 if test x${SDL_CONFIG+set} != xset ; then
36693 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36694 fi
36695 fi
36696
36697
36698 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36699 # Extract the first word of "sdl-config", so it can be a program name with args.
36700set dummy sdl-config; ac_word=$2
36701echo "$as_me:$LINENO: checking for $ac_word" >&5
36702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36703if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36704 echo $ECHO_N "(cached) $ECHO_C" >&6
36705else
36706 case $SDL_CONFIG in
36707 [\\/]* | ?:[\\/]*)
36708 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36709 ;;
36710 *)
36711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36712for as_dir in $PATH
36713do
36714 IFS=$as_save_IFS
36715 test -z "$as_dir" && as_dir=.
36716 for ac_exec_ext in '' $ac_executable_extensions; do
36717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36718 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36720 break 2
36721 fi
36722done
36723done
36724
36725 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36726 ;;
36727esac
36728fi
36729SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36730
36731if test -n "$SDL_CONFIG"; then
36732 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36733echo "${ECHO_T}$SDL_CONFIG" >&6
36734else
36735 echo "$as_me:$LINENO: result: no" >&5
36736echo "${ECHO_T}no" >&6
36737fi
36738
36739 min_sdl_version=1.2.0
36740 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36741echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36742 no_sdl=""
36743 if test "$SDL_CONFIG" = "no" ; then
36744 no_sdl=yes
36745 else
36746 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36747 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36748
36749 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36750 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36751 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36752 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36753 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36754 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36755 if test "x$enable_sdltest" = "xyes" ; then
36756 ac_save_CFLAGS="$CFLAGS"
94acd38e 36757 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36758 ac_save_LIBS="$LIBS"
36759 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36760 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36761 LIBS="$LIBS $SDL_LIBS"
36762 rm -f conf.sdltest
36763 if test "$cross_compiling" = yes; then
36764 echo $ac_n "cross compiling; assumed OK... $ac_c"
36765else
36766 cat >conftest.$ac_ext <<_ACEOF
36767/* confdefs.h. */
36768_ACEOF
36769cat confdefs.h >>conftest.$ac_ext
36770cat >>conftest.$ac_ext <<_ACEOF
36771/* end confdefs.h. */
36772
36773#include <stdio.h>
36774#include <stdlib.h>
36775#include <string.h>
36776#include "SDL.h"
36777
36778char*
36779my_strdup (char *str)
36780{
36781 char *new_str;
36782
36783 if (str)
36784 {
36785 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36786 strcpy (new_str, str);
36787 }
36788 else
36789 new_str = NULL;
36790
36791 return new_str;
36792}
36793
36794int main (int argc, char *argv[])
36795{
36796 int major, minor, micro;
36797 char *tmp_version;
36798
36799 /* This hangs on some systems (?)
36800 system ("touch conf.sdltest");
36801 */
36802 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36803
36804 /* HP/UX 9 (%@#!) writes to sscanf strings */
36805 tmp_version = my_strdup("$min_sdl_version");
36806 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36807 printf("%s, bad version string\n", "$min_sdl_version");
36808 exit(1);
36809 }
36810
36811 if (($sdl_major_version > major) ||
36812 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36813 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36814 {
36815 return 0;
36816 }
36817 else
36818 {
36819 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36820 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36821 printf("*** best to upgrade to the required version.\n");
36822 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36823 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36824 printf("*** config.cache before re-running configure\n");
36825 return 1;
36826 }
36827}
36828
36829
36830_ACEOF
36831rm -f conftest$ac_exeext
36832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36833 (eval $ac_link) 2>&5
36834 ac_status=$?
36835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36838 (eval $ac_try) 2>&5
36839 ac_status=$?
36840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36841 (exit $ac_status); }; }; then
36842 :
36843else
36844 echo "$as_me: program exited with status $ac_status" >&5
36845echo "$as_me: failed program was:" >&5
36846sed 's/^/| /' conftest.$ac_ext >&5
36847
36848( exit $ac_status )
36849no_sdl=yes
36850fi
ac1cb8d3 36851rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36852fi
36853 CFLAGS="$ac_save_CFLAGS"
94acd38e 36854 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36855 LIBS="$ac_save_LIBS"
36856 fi
36857 fi
36858 if test "x$no_sdl" = x ; then
36859 echo "$as_me:$LINENO: result: yes" >&5
36860echo "${ECHO_T}yes" >&6
36861
36862 EXTRALIBS_SDL="$SDL_LIBS"
36863 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36864 cat >>confdefs.h <<\_ACEOF
36865#define wxUSE_LIBSDL 1
36866_ACEOF
36867
36868
36869 else
36870 echo "$as_me:$LINENO: result: no" >&5
36871echo "${ECHO_T}no" >&6
36872 if test "$SDL_CONFIG" = "no" ; then
36873 echo "*** The sdl-config script installed by SDL could not be found"
36874 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36875 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36876 echo "*** full path to sdl-config."
36877 else
36878 if test -f conf.sdltest ; then
36879 :
36880 else
36881 echo "*** Could not run SDL test program, checking why..."
36882 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36883 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36884 LIBS="$LIBS $SDL_LIBS"
36885 cat >conftest.$ac_ext <<_ACEOF
36886/* confdefs.h. */
36887_ACEOF
36888cat confdefs.h >>conftest.$ac_ext
36889cat >>conftest.$ac_ext <<_ACEOF
36890/* end confdefs.h. */
36891
36892#include <stdio.h>
36893#include "SDL.h"
36894
36895int main(int argc, char *argv[])
36896{ return 0; }
36897#undef main
36898#define main K_and_R_C_main
36899
36900int
36901main ()
36902{
36903 return 0;
36904 ;
36905 return 0;
36906}
36907_ACEOF
36908rm -f conftest.$ac_objext conftest$ac_exeext
36909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36910 (eval $ac_link) 2>conftest.er1
a848cd7e 36911 ac_status=$?
ac1cb8d3
VS
36912 grep -v '^ *+' conftest.er1 >conftest.err
36913 rm -f conftest.er1
36914 cat conftest.err >&5
a848cd7e
SC
36915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36916 (exit $ac_status); } &&
fb00f58d
JS
36917 { ac_try='test -z "$ac_c_werror_flag"
36918 || test ! -s conftest.err'
ac1cb8d3
VS
36919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36920 (eval $ac_try) 2>&5
36921 ac_status=$?
36922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923 (exit $ac_status); }; } &&
36924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36926 (eval $ac_try) 2>&5
36927 ac_status=$?
36928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36929 (exit $ac_status); }; }; then
36930 echo "*** The test program compiled, but did not run. This usually means"
36931 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36932 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36933 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36934 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36935 echo "*** is required on your system"
36936 echo "***"
36937 echo "*** If you have an old version installed, it is best to remove it, although"
36938 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36939else
36940 echo "$as_me: failed program was:" >&5
36941sed 's/^/| /' conftest.$ac_ext >&5
36942
36943 echo "*** The test program failed to compile or link. See the file config.log for the"
36944 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36945 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36946 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36947fi
ac1cb8d3
VS
36948rm -f conftest.err conftest.$ac_objext \
36949 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36950 CFLAGS="$ac_save_CFLAGS"
94acd38e 36951 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36952 LIBS="$ac_save_LIBS"
36953 fi
36954 fi
36955 SDL_CFLAGS=""
36956 SDL_LIBS=""
36957 wxUSE_LIBSDL="no"
36958 fi
36959
36960
36961 rm -f conf.sdltest
36962
36963 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36964 WITH_PLUGIN_SDL=1
36965 fi
36966 fi
36967 fi
36968
36969 cat >>confdefs.h <<\_ACEOF
36970#define wxUSE_SOUND 1
36971_ACEOF
36972
36973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36974fi
36975
d1c38808
VZ
36976if test "$WXGTK20" = 1; then
36977 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36978 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36979
36980
36981 succeeded=no
36982
36983 if test -z "$PKG_CONFIG"; then
36984 # Extract the first word of "pkg-config", so it can be a program name with args.
36985set dummy pkg-config; ac_word=$2
36986echo "$as_me:$LINENO: checking for $ac_word" >&5
36987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36988if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36989 echo $ECHO_N "(cached) $ECHO_C" >&6
36990else
36991 case $PKG_CONFIG in
36992 [\\/]* | ?:[\\/]*)
36993 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36994 ;;
36995 *)
36996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36997for as_dir in $PATH
36998do
36999 IFS=$as_save_IFS
37000 test -z "$as_dir" && as_dir=.
37001 for ac_exec_ext in '' $ac_executable_extensions; do
37002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37003 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37005 break 2
37006 fi
37007done
37008done
37009
37010 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
37011 ;;
37012esac
37013fi
37014PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37015
37016if test -n "$PKG_CONFIG"; then
37017 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37018echo "${ECHO_T}$PKG_CONFIG" >&6
37019else
37020 echo "$as_me:$LINENO: result: no" >&5
37021echo "${ECHO_T}no" >&6
37022fi
37023
37024 fi
37025
37026 if test "$PKG_CONFIG" = "no" ; then
37027 echo "*** The pkg-config script could not be found. Make sure it is"
37028 echo "*** in your path, or set the PKG_CONFIG environment variable"
37029 echo "*** to the full path to pkg-config."
37030 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
37031 else
37032 PKG_CONFIG_MIN_VERSION=0.9.0
37033 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
37034 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
37035echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 37036
ffa762ff 37037 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
37038 echo "$as_me:$LINENO: result: yes" >&5
37039echo "${ECHO_T}yes" >&6
37040 succeeded=yes
37041
37042 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
37043echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 37044 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37045 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
37046echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
37047
37048 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
37049echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 37050 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37051 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
37052echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
37053 else
37054 LIBGNOMEPRINTUI_CFLAGS=""
37055 LIBGNOMEPRINTUI_LIBS=""
37056 ## If we have a custom action on failure, don't print errors, but
37057 ## do set a variable so people can do so.
ffa762ff 37058 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37059
37060 fi
37061
37062
37063
37064 else
37065 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
37066 echo "*** See http://www.freedesktop.org/software/pkgconfig"
37067 fi
37068 fi
37069
37070 if test $succeeded = yes; then
37071
d1c38808
VZ
37072 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
37073 cat >>confdefs.h <<\_ACEOF
37074#define wxUSE_LIBGNOMEPRINT 1
37075_ACEOF
37076
37077
37078 else
37079
37080 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
37081echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
37082 wxUSE_LIBGNOMEPRINT="no"
37083
37084
37085 fi
37086
37087 fi
37088 fi
37089fi
37090
37091
a848cd7e
SC
37092if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
37093 cat >>confdefs.h <<\_ACEOF
37094#define wxUSE_CMDLINE_PARSER 1
37095_ACEOF
37096
37097fi
37098
37099if test "$wxUSE_STOPWATCH" = "yes"; then
37100 cat >>confdefs.h <<\_ACEOF
37101#define wxUSE_STOPWATCH 1
37102_ACEOF
37103
37104fi
37105
37106if test "$wxUSE_DATETIME" = "yes"; then
37107 cat >>confdefs.h <<\_ACEOF
37108#define wxUSE_DATETIME 1
37109_ACEOF
37110
37111fi
37112
37113if test "$wxUSE_FILE" = "yes"; then
37114 cat >>confdefs.h <<\_ACEOF
37115#define wxUSE_FILE 1
37116_ACEOF
37117
37118fi
37119
37120if test "$wxUSE_FFILE" = "yes"; then
37121 cat >>confdefs.h <<\_ACEOF
37122#define wxUSE_FFILE 1
37123_ACEOF
37124
37125fi
37126
37127if test "$wxUSE_FILESYSTEM" = "yes"; then
37128 cat >>confdefs.h <<\_ACEOF
37129#define wxUSE_FILESYSTEM 1
37130_ACEOF
37131
37132fi
37133
37134if test "$wxUSE_FS_ZIP" = "yes"; then
37135 cat >>confdefs.h <<\_ACEOF
37136#define wxUSE_FS_ZIP 1
37137_ACEOF
37138
37139fi
37140
9e8e867f 37141if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 37142 cat >>confdefs.h <<\_ACEOF
9e8e867f 37143#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
37144_ACEOF
37145
37146fi
37147
37148if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 37149 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
37150 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
37151echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
37152 elif test "$wxUSE_ZLIB" = "no"; then
37153 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
37154echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
37155 else
37156 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37157#define wxUSE_ZIPSTREAM 1
37158_ACEOF
37159
81f90336 37160 fi
a848cd7e
SC
37161fi
37162
a848cd7e
SC
37163if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37164 cat >>confdefs.h <<\_ACEOF
37165#define wxUSE_ON_FATAL_EXCEPTION 1
37166_ACEOF
37167
37168fi
37169
eaff0f0d
VZ
37170if test "$wxUSE_STACKWALKER" = "yes"; then
37171 cat >>confdefs.h <<\_ACEOF
37172#define wxUSE_STACKWALKER 1
37173_ACEOF
37174
37175fi
37176
36b6448c 37177if test "$wxUSE_DEBUGREPORT" = "yes"; then
489c9090
MW
37178 if test "$USE_OS2" = "1" -o "$USE_WIN32" = "1"; then
37179 { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported by this compiler, disabled" >&5
37180echo "$as_me: WARNING: Creating debug reports not supported by this compiler, disabled" >&2;}
dfe0c803
JS
37181 wxUSE_DEBUGREPORT=no
37182 else
37183 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
37184#define wxUSE_DEBUGREPORT 1
37185_ACEOF
37186
21dfc162
MW
37187 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
37189 fi
dfe0c803 37190 fi
36b6448c
VZ
37191fi
37192
a848cd7e
SC
37193if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37194 cat >>confdefs.h <<\_ACEOF
37195#define wxUSE_SNGLINST_CHECKER 1
37196_ACEOF
37197
37198fi
37199
37200if test "$wxUSE_BUSYINFO" = "yes"; then
37201 cat >>confdefs.h <<\_ACEOF
37202#define wxUSE_BUSYINFO 1
37203_ACEOF
37204
37205fi
37206
37207if test "$wxUSE_STD_IOSTREAM" = "yes"; then
37208 cat >>confdefs.h <<\_ACEOF
37209#define wxUSE_STD_IOSTREAM 1
37210_ACEOF
37211
37212fi
37213
59746b65
MW
37214if test "$wxUSE_STD_STRING" = "yes"; then
37215 cat >>confdefs.h <<\_ACEOF
37216#define wxUSE_STD_STRING 1
37217_ACEOF
37218
37219fi
37220
07158944
VZ
37221if test "$wxUSE_STDPATHS" = "yes"; then
37222 cat >>confdefs.h <<\_ACEOF
37223#define wxUSE_STDPATHS 1
37224_ACEOF
37225
37226fi
37227
a848cd7e
SC
37228if test "$wxUSE_TEXTBUFFER" = "yes"; then
37229 cat >>confdefs.h <<\_ACEOF
37230#define wxUSE_TEXTBUFFER 1
37231_ACEOF
37232
37233fi
37234
37235if test "$wxUSE_TEXTFILE" = "yes"; then
37236 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
37237 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
37238echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
37239 else
37240 cat >>confdefs.h <<\_ACEOF
37241#define wxUSE_TEXTFILE 1
37242_ACEOF
37243
37244 fi
37245fi
37246
37247if test "$wxUSE_CONFIG" = "yes" ; then
37248 if test "$wxUSE_TEXTFILE" != "yes"; then
37249 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
37250echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
37251 else
37252 cat >>confdefs.h <<\_ACEOF
37253#define wxUSE_CONFIG 1
89be85c2
VS
37254_ACEOF
37255
37256 cat >>confdefs.h <<\_ACEOF
37257#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
37258_ACEOF
37259
37260 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
37261 fi
37262fi
37263
37264if test "$wxUSE_INTL" = "yes" ; then
37265 if test "$wxUSE_FILE" != "yes"; then
37266 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
37267echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
37268 else
37269 cat >>confdefs.h <<\_ACEOF
37270#define wxUSE_INTL 1
37271_ACEOF
37272
37273 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37274 GUIDIST="$GUIDIST INTL_DIST"
37275 fi
37276fi
37277
37278if test "$wxUSE_LOG" = "yes"; then
37279 cat >>confdefs.h <<\_ACEOF
37280#define wxUSE_LOG 1
37281_ACEOF
37282
37283
37284 if test "$wxUSE_LOGGUI" = "yes"; then
37285 cat >>confdefs.h <<\_ACEOF
37286#define wxUSE_LOGGUI 1
37287_ACEOF
37288
37289 fi
37290
37291 if test "$wxUSE_LOGWINDOW" = "yes"; then
37292 cat >>confdefs.h <<\_ACEOF
37293#define wxUSE_LOGWINDOW 1
37294_ACEOF
37295
37296 fi
37297
37298 if test "$wxUSE_LOGDIALOG" = "yes"; then
37299 cat >>confdefs.h <<\_ACEOF
37300#define wxUSE_LOG_DIALOG 1
37301_ACEOF
37302
37303 fi
0b78747f
MW
37304
37305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
37306fi
37307
37308if test "$wxUSE_LONGLONG" = "yes"; then
37309 cat >>confdefs.h <<\_ACEOF
37310#define wxUSE_LONGLONG 1
37311_ACEOF
37312
37313fi
37314
37315if test "$wxUSE_GEOMETRY" = "yes"; then
37316 cat >>confdefs.h <<\_ACEOF
37317#define wxUSE_GEOMETRY 1
37318_ACEOF
37319
37320fi
37321
a848cd7e
SC
37322if test "$wxUSE_STREAMS" = "yes" ; then
37323 cat >>confdefs.h <<\_ACEOF
37324#define wxUSE_STREAMS 1
37325_ACEOF
37326
37327fi
37328
37329
37330if test "$wxUSE_DATETIME" = "yes"; then
37331
37332for ac_func in strptime
37333do
37334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37335echo "$as_me:$LINENO: checking for $ac_func" >&5
37336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37337if eval "test \"\${$as_ac_var+set}\" = set"; then
37338 echo $ECHO_N "(cached) $ECHO_C" >&6
37339else
37340 cat >conftest.$ac_ext <<_ACEOF
37341/* confdefs.h. */
37342_ACEOF
37343cat confdefs.h >>conftest.$ac_ext
37344cat >>conftest.$ac_ext <<_ACEOF
37345/* end confdefs.h. */
ac1cb8d3
VS
37346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37348#define $ac_func innocuous_$ac_func
37349
a848cd7e
SC
37350/* System header to define __stub macros and hopefully few prototypes,
37351 which can conflict with char $ac_func (); below.
37352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37353 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37354
a848cd7e
SC
37355#ifdef __STDC__
37356# include <limits.h>
37357#else
37358# include <assert.h>
37359#endif
ac1cb8d3
VS
37360
37361#undef $ac_func
37362
a848cd7e
SC
37363/* Override any gcc2 internal prototype to avoid an error. */
37364#ifdef __cplusplus
37365extern "C"
37366{
37367#endif
37368/* We use char because int might match the return type of a gcc2
37369 builtin and then its argument prototype would still apply. */
37370char $ac_func ();
37371/* The GNU C library defines this for functions which it implements
37372 to always fail with ENOSYS. Some functions are actually named
37373 something starting with __ and the normal name is an alias. */
37374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37375choke me
37376#else
37377char (*f) () = $ac_func;
37378#endif
37379#ifdef __cplusplus
37380}
37381#endif
37382
37383int
37384main ()
37385{
37386return f != $ac_func;
37387 ;
37388 return 0;
37389}
37390_ACEOF
37391rm -f conftest.$ac_objext conftest$ac_exeext
37392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37393 (eval $ac_link) 2>conftest.er1
a848cd7e 37394 ac_status=$?
ac1cb8d3
VS
37395 grep -v '^ *+' conftest.er1 >conftest.err
37396 rm -f conftest.er1
37397 cat conftest.err >&5
a848cd7e
SC
37398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399 (exit $ac_status); } &&
fb00f58d
JS
37400 { ac_try='test -z "$ac_c_werror_flag"
37401 || test ! -s conftest.err'
ac1cb8d3
VS
37402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37403 (eval $ac_try) 2>&5
37404 ac_status=$?
37405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37406 (exit $ac_status); }; } &&
37407 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37409 (eval $ac_try) 2>&5
37410 ac_status=$?
37411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); }; }; then
37413 eval "$as_ac_var=yes"
37414else
37415 echo "$as_me: failed program was:" >&5
37416sed 's/^/| /' conftest.$ac_ext >&5
37417
37418eval "$as_ac_var=no"
37419fi
ac1cb8d3
VS
37420rm -f conftest.err conftest.$ac_objext \
37421 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37422fi
37423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37424echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37425if test `eval echo '${'$as_ac_var'}'` = yes; then
37426 cat >>confdefs.h <<_ACEOF
37427#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37428_ACEOF
37429
37430fi
37431done
37432
37433
37434 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
37435echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
37436if test "${wx_cv_var_timezone+set}" = set; then
37437 echo $ECHO_N "(cached) $ECHO_C" >&6
37438else
37439
37440 cat >conftest.$ac_ext <<_ACEOF
37441/* confdefs.h. */
37442_ACEOF
37443cat confdefs.h >>conftest.$ac_ext
37444cat >>conftest.$ac_ext <<_ACEOF
37445/* end confdefs.h. */
37446
37447 #include <time.h>
37448
37449int
37450main ()
37451{
37452
37453 int tz;
37454 tz = timezone;
37455
37456 ;
37457 return 0;
37458}
37459_ACEOF
37460rm -f conftest.$ac_objext
37461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37462 (eval $ac_compile) 2>conftest.er1
a848cd7e 37463 ac_status=$?
ac1cb8d3
VS
37464 grep -v '^ *+' conftest.er1 >conftest.err
37465 rm -f conftest.er1
37466 cat conftest.err >&5
a848cd7e
SC
37467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468 (exit $ac_status); } &&
fb00f58d
JS
37469 { ac_try='test -z "$ac_c_werror_flag"
37470 || test ! -s conftest.err'
ac1cb8d3
VS
37471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37472 (eval $ac_try) 2>&5
37473 ac_status=$?
37474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475 (exit $ac_status); }; } &&
37476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37478 (eval $ac_try) 2>&5
37479 ac_status=$?
37480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37481 (exit $ac_status); }; }; then
37482
37483 wx_cv_var_timezone=timezone
37484
37485else
37486 echo "$as_me: failed program was:" >&5
37487sed 's/^/| /' conftest.$ac_ext >&5
37488
37489
37490 cat >conftest.$ac_ext <<_ACEOF
37491/* confdefs.h. */
37492_ACEOF
37493cat confdefs.h >>conftest.$ac_ext
37494cat >>conftest.$ac_ext <<_ACEOF
37495/* end confdefs.h. */
37496
37497 #include <time.h>
37498
37499int
37500main ()
37501{
37502
37503 int tz;
37504 tz = _timezone;
37505
37506 ;
37507 return 0;
37508}
37509_ACEOF
37510rm -f conftest.$ac_objext
37511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37512 (eval $ac_compile) 2>conftest.er1
a848cd7e 37513 ac_status=$?
ac1cb8d3
VS
37514 grep -v '^ *+' conftest.er1 >conftest.err
37515 rm -f conftest.er1
37516 cat conftest.err >&5
a848cd7e
SC
37517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37518 (exit $ac_status); } &&
fb00f58d
JS
37519 { ac_try='test -z "$ac_c_werror_flag"
37520 || test ! -s conftest.err'
ac1cb8d3
VS
37521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37522 (eval $ac_try) 2>&5
37523 ac_status=$?
37524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37525 (exit $ac_status); }; } &&
37526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37528 (eval $ac_try) 2>&5
37529 ac_status=$?
37530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37531 (exit $ac_status); }; }; then
37532
37533 wx_cv_var_timezone=_timezone
37534
37535else
37536 echo "$as_me: failed program was:" >&5
37537sed 's/^/| /' conftest.$ac_ext >&5
37538
37539
37540 cat >conftest.$ac_ext <<_ACEOF
37541/* confdefs.h. */
37542_ACEOF
37543cat confdefs.h >>conftest.$ac_ext
37544cat >>conftest.$ac_ext <<_ACEOF
37545/* end confdefs.h. */
37546
37547 #include <time.h>
37548
37549int
37550main ()
37551{
37552
37553 int tz;
37554 tz = __timezone;
37555
37556 ;
37557 return 0;
37558}
37559_ACEOF
37560rm -f conftest.$ac_objext
37561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37562 (eval $ac_compile) 2>conftest.er1
a848cd7e 37563 ac_status=$?
ac1cb8d3
VS
37564 grep -v '^ *+' conftest.er1 >conftest.err
37565 rm -f conftest.er1
37566 cat conftest.err >&5
a848cd7e
SC
37567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37568 (exit $ac_status); } &&
fb00f58d
JS
37569 { ac_try='test -z "$ac_c_werror_flag"
37570 || test ! -s conftest.err'
ac1cb8d3
VS
37571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37572 (eval $ac_try) 2>&5
37573 ac_status=$?
37574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37575 (exit $ac_status); }; } &&
37576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37578 (eval $ac_try) 2>&5
37579 ac_status=$?
37580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37581 (exit $ac_status); }; }; then
37582
37583 wx_cv_var_timezone=__timezone
37584
37585else
37586 echo "$as_me: failed program was:" >&5
37587sed 's/^/| /' conftest.$ac_ext >&5
37588
37589
37590 if test "$USE_DOS" = 0 ; then
37591 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37592echo "$as_me: WARNING: no timezone variable" >&2;}
37593 fi
37594
37595
37596fi
ac1cb8d3 37597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37598
37599
37600fi
ac1cb8d3 37601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37602
37603
37604fi
ac1cb8d3 37605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37606
37607
37608fi
37609echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37610echo "${ECHO_T}$wx_cv_var_timezone" >&6
37611
37612 if test "x$wx_cv_var_timezone" != x ; then
37613 cat >>confdefs.h <<_ACEOF
37614#define WX_TIMEZONE $wx_cv_var_timezone
37615_ACEOF
37616
37617 fi
37618
37619
37620for ac_func in localtime
37621do
37622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37623echo "$as_me:$LINENO: checking for $ac_func" >&5
37624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37625if eval "test \"\${$as_ac_var+set}\" = set"; then
37626 echo $ECHO_N "(cached) $ECHO_C" >&6
37627else
37628 cat >conftest.$ac_ext <<_ACEOF
37629/* confdefs.h. */
37630_ACEOF
37631cat confdefs.h >>conftest.$ac_ext
37632cat >>conftest.$ac_ext <<_ACEOF
37633/* end confdefs.h. */
ac1cb8d3
VS
37634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37636#define $ac_func innocuous_$ac_func
37637
a848cd7e
SC
37638/* System header to define __stub macros and hopefully few prototypes,
37639 which can conflict with char $ac_func (); below.
37640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37641 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37642
a848cd7e
SC
37643#ifdef __STDC__
37644# include <limits.h>
37645#else
37646# include <assert.h>
37647#endif
ac1cb8d3
VS
37648
37649#undef $ac_func
37650
a848cd7e
SC
37651/* Override any gcc2 internal prototype to avoid an error. */
37652#ifdef __cplusplus
37653extern "C"
37654{
37655#endif
37656/* We use char because int might match the return type of a gcc2
37657 builtin and then its argument prototype would still apply. */
37658char $ac_func ();
37659/* The GNU C library defines this for functions which it implements
37660 to always fail with ENOSYS. Some functions are actually named
37661 something starting with __ and the normal name is an alias. */
37662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37663choke me
37664#else
37665char (*f) () = $ac_func;
37666#endif
37667#ifdef __cplusplus
37668}
37669#endif
37670
37671int
37672main ()
37673{
37674return f != $ac_func;
37675 ;
37676 return 0;
37677}
37678_ACEOF
37679rm -f conftest.$ac_objext conftest$ac_exeext
37680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37681 (eval $ac_link) 2>conftest.er1
a848cd7e 37682 ac_status=$?
ac1cb8d3
VS
37683 grep -v '^ *+' conftest.er1 >conftest.err
37684 rm -f conftest.er1
37685 cat conftest.err >&5
a848cd7e
SC
37686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37687 (exit $ac_status); } &&
fb00f58d
JS
37688 { ac_try='test -z "$ac_c_werror_flag"
37689 || test ! -s conftest.err'
ac1cb8d3
VS
37690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37691 (eval $ac_try) 2>&5
37692 ac_status=$?
37693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37694 (exit $ac_status); }; } &&
37695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37697 (eval $ac_try) 2>&5
37698 ac_status=$?
37699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37700 (exit $ac_status); }; }; then
37701 eval "$as_ac_var=yes"
37702else
37703 echo "$as_me: failed program was:" >&5
37704sed 's/^/| /' conftest.$ac_ext >&5
37705
37706eval "$as_ac_var=no"
37707fi
ac1cb8d3
VS
37708rm -f conftest.err conftest.$ac_objext \
37709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37710fi
37711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37712echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37713if test `eval echo '${'$as_ac_var'}'` = yes; then
37714 cat >>confdefs.h <<_ACEOF
37715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37716_ACEOF
37717
37718fi
37719done
37720
37721
37722 if test "$ac_cv_func_localtime" = "yes"; then
37723 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37724echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37725if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37726 echo $ECHO_N "(cached) $ECHO_C" >&6
37727else
37728
37729 cat >conftest.$ac_ext <<_ACEOF
37730/* confdefs.h. */
37731_ACEOF
37732cat confdefs.h >>conftest.$ac_ext
37733cat >>conftest.$ac_ext <<_ACEOF
37734/* end confdefs.h. */
37735
37736 #include <time.h>
37737
37738int
37739main ()
37740{
37741
37742 struct tm tm;
37743 tm.tm_gmtoff++;
37744
37745 ;
37746 return 0;
37747}
37748_ACEOF
37749rm -f conftest.$ac_objext
37750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37751 (eval $ac_compile) 2>conftest.er1
a848cd7e 37752 ac_status=$?
ac1cb8d3
VS
37753 grep -v '^ *+' conftest.er1 >conftest.err
37754 rm -f conftest.er1
37755 cat conftest.err >&5
a848cd7e
SC
37756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37757 (exit $ac_status); } &&
fb00f58d
JS
37758 { ac_try='test -z "$ac_c_werror_flag"
37759 || test ! -s conftest.err'
ac1cb8d3
VS
37760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37761 (eval $ac_try) 2>&5
37762 ac_status=$?
37763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764 (exit $ac_status); }; } &&
37765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37767 (eval $ac_try) 2>&5
37768 ac_status=$?
37769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770 (exit $ac_status); }; }; then
37771
37772 wx_cv_struct_tm_has_gmtoff=yes
37773
37774else
37775 echo "$as_me: failed program was:" >&5
37776sed 's/^/| /' conftest.$ac_ext >&5
37777
37778wx_cv_struct_tm_has_gmtoff=no
37779
37780fi
ac1cb8d3 37781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37782
37783fi
37784echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37785echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37786 fi
37787
37788 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37789 cat >>confdefs.h <<\_ACEOF
37790#define WX_GMTOFF_IN_TM 1
37791_ACEOF
37792
37793 fi
37794
37795
37796
37797for ac_func in gettimeofday ftime
37798do
37799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37800echo "$as_me:$LINENO: checking for $ac_func" >&5
37801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37802if eval "test \"\${$as_ac_var+set}\" = set"; then
37803 echo $ECHO_N "(cached) $ECHO_C" >&6
37804else
37805 cat >conftest.$ac_ext <<_ACEOF
37806/* confdefs.h. */
37807_ACEOF
37808cat confdefs.h >>conftest.$ac_ext
37809cat >>conftest.$ac_ext <<_ACEOF
37810/* end confdefs.h. */
ac1cb8d3
VS
37811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37813#define $ac_func innocuous_$ac_func
37814
a848cd7e
SC
37815/* System header to define __stub macros and hopefully few prototypes,
37816 which can conflict with char $ac_func (); below.
37817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37818 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37819
a848cd7e
SC
37820#ifdef __STDC__
37821# include <limits.h>
37822#else
37823# include <assert.h>
37824#endif
ac1cb8d3
VS
37825
37826#undef $ac_func
37827
a848cd7e
SC
37828/* Override any gcc2 internal prototype to avoid an error. */
37829#ifdef __cplusplus
37830extern "C"
37831{
37832#endif
37833/* We use char because int might match the return type of a gcc2
37834 builtin and then its argument prototype would still apply. */
37835char $ac_func ();
37836/* The GNU C library defines this for functions which it implements
37837 to always fail with ENOSYS. Some functions are actually named
37838 something starting with __ and the normal name is an alias. */
37839#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37840choke me
37841#else
37842char (*f) () = $ac_func;
37843#endif
37844#ifdef __cplusplus
37845}
37846#endif
37847
37848int
37849main ()
37850{
37851return f != $ac_func;
37852 ;
37853 return 0;
37854}
37855_ACEOF
37856rm -f conftest.$ac_objext conftest$ac_exeext
37857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37858 (eval $ac_link) 2>conftest.er1
a848cd7e 37859 ac_status=$?
ac1cb8d3
VS
37860 grep -v '^ *+' conftest.er1 >conftest.err
37861 rm -f conftest.er1
37862 cat conftest.err >&5
a848cd7e
SC
37863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37864 (exit $ac_status); } &&
fb00f58d
JS
37865 { ac_try='test -z "$ac_c_werror_flag"
37866 || test ! -s conftest.err'
ac1cb8d3
VS
37867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37868 (eval $ac_try) 2>&5
37869 ac_status=$?
37870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871 (exit $ac_status); }; } &&
37872 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37874 (eval $ac_try) 2>&5
37875 ac_status=$?
37876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37877 (exit $ac_status); }; }; then
37878 eval "$as_ac_var=yes"
37879else
37880 echo "$as_me: failed program was:" >&5
37881sed 's/^/| /' conftest.$ac_ext >&5
37882
37883eval "$as_ac_var=no"
37884fi
ac1cb8d3
VS
37885rm -f conftest.err conftest.$ac_objext \
37886 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37887fi
37888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37889echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37890if test `eval echo '${'$as_ac_var'}'` = yes; then
37891 cat >>confdefs.h <<_ACEOF
37892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37893_ACEOF
37894 break
37895fi
37896done
37897
37898
37899 if test "$ac_cv_func_gettimeofday" = "yes"; then
37900 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37901echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37902if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37903 echo $ECHO_N "(cached) $ECHO_C" >&6
37904else
37905
37906
37907
37908 ac_ext=cc
37909ac_cpp='$CXXCPP $CPPFLAGS'
37910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37913
37914
37915 cat >conftest.$ac_ext <<_ACEOF
37916/* confdefs.h. */
37917_ACEOF
37918cat confdefs.h >>conftest.$ac_ext
37919cat >>conftest.$ac_ext <<_ACEOF
37920/* end confdefs.h. */
37921
37922 #include <sys/time.h>
37923 #include <unistd.h>
37924
37925int
37926main ()
37927{
37928
37929 struct timeval tv;
37930 gettimeofday(&tv, NULL);
37931
37932 ;
37933 return 0;
37934}
37935_ACEOF
37936rm -f conftest.$ac_objext
37937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37938 (eval $ac_compile) 2>conftest.er1
a848cd7e 37939 ac_status=$?
ac1cb8d3
VS
37940 grep -v '^ *+' conftest.er1 >conftest.err
37941 rm -f conftest.er1
37942 cat conftest.err >&5
a848cd7e
SC
37943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944 (exit $ac_status); } &&
fb00f58d
JS
37945 { ac_try='test -z "$ac_cxx_werror_flag"
37946 || test ! -s conftest.err'
ac1cb8d3
VS
37947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37948 (eval $ac_try) 2>&5
37949 ac_status=$?
37950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37951 (exit $ac_status); }; } &&
37952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37954 (eval $ac_try) 2>&5
37955 ac_status=$?
37956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37957 (exit $ac_status); }; }; then
37958 wx_cv_func_gettimeofday_has_2_args=yes
37959else
37960 echo "$as_me: failed program was:" >&5
37961sed 's/^/| /' conftest.$ac_ext >&5
37962
37963cat >conftest.$ac_ext <<_ACEOF
37964/* confdefs.h. */
37965_ACEOF
37966cat confdefs.h >>conftest.$ac_ext
37967cat >>conftest.$ac_ext <<_ACEOF
37968/* end confdefs.h. */
37969
37970 #include <sys/time.h>
37971 #include <unistd.h>
37972
37973int
37974main ()
37975{
37976
37977 struct timeval tv;
37978 gettimeofday(&tv);
37979
37980 ;
37981 return 0;
37982}
37983_ACEOF
37984rm -f conftest.$ac_objext
37985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37986 (eval $ac_compile) 2>conftest.er1
a848cd7e 37987 ac_status=$?
ac1cb8d3
VS
37988 grep -v '^ *+' conftest.er1 >conftest.err
37989 rm -f conftest.er1
37990 cat conftest.err >&5
a848cd7e
SC
37991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37992 (exit $ac_status); } &&
fb00f58d
JS
37993 { ac_try='test -z "$ac_cxx_werror_flag"
37994 || test ! -s conftest.err'
ac1cb8d3
VS
37995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37996 (eval $ac_try) 2>&5
37997 ac_status=$?
37998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37999 (exit $ac_status); }; } &&
38000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38002 (eval $ac_try) 2>&5
38003 ac_status=$?
38004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38005 (exit $ac_status); }; }; then
38006 wx_cv_func_gettimeofday_has_2_args=no
38007else
38008 echo "$as_me: failed program was:" >&5
38009sed 's/^/| /' conftest.$ac_ext >&5
38010
38011
38012 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
38013echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
38014 wx_cv_func_gettimeofday_has_2_args=unknown
38015
38016
38017fi
ac1cb8d3 38018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38019
38020fi
ac1cb8d3 38021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38022 ac_ext=c
38023ac_cpp='$CPP $CPPFLAGS'
38024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38026ac_compiler_gnu=$ac_cv_c_compiler_gnu
38027
38028
38029fi
38030echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
38031echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
38032
38033 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
38034 cat >>confdefs.h <<\_ACEOF
38035#define WX_GETTIMEOFDAY_NO_TZ 1
38036_ACEOF
38037
38038 fi
38039 fi
38040
38041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
38042fi
38043
38044
38045if test "$wxUSE_SOCKETS" = "yes"; then
38046 if test "$wxUSE_MGL" = "1"; then
38047 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
38048echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
38049 wxUSE_SOCKETS="no"
38050 fi
38051fi
38052
38053if test "$wxUSE_SOCKETS" = "yes"; then
38054 if test "$TOOLKIT" != "MSW"; then
38055 echo "$as_me:$LINENO: checking for socket" >&5
38056echo $ECHO_N "checking for socket... $ECHO_C" >&6
38057if test "${ac_cv_func_socket+set}" = set; then
38058 echo $ECHO_N "(cached) $ECHO_C" >&6
38059else
38060 cat >conftest.$ac_ext <<_ACEOF
38061/* confdefs.h. */
38062_ACEOF
38063cat confdefs.h >>conftest.$ac_ext
38064cat >>conftest.$ac_ext <<_ACEOF
38065/* end confdefs.h. */
ac1cb8d3
VS
38066/* Define socket to an innocuous variant, in case <limits.h> declares socket.
38067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38068#define socket innocuous_socket
38069
a848cd7e
SC
38070/* System header to define __stub macros and hopefully few prototypes,
38071 which can conflict with char socket (); below.
38072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38073 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38074
a848cd7e
SC
38075#ifdef __STDC__
38076# include <limits.h>
38077#else
38078# include <assert.h>
38079#endif
ac1cb8d3
VS
38080
38081#undef socket
38082
a848cd7e
SC
38083/* Override any gcc2 internal prototype to avoid an error. */
38084#ifdef __cplusplus
38085extern "C"
38086{
38087#endif
38088/* We use char because int might match the return type of a gcc2
38089 builtin and then its argument prototype would still apply. */
38090char socket ();
38091/* The GNU C library defines this for functions which it implements
38092 to always fail with ENOSYS. Some functions are actually named
38093 something starting with __ and the normal name is an alias. */
38094#if defined (__stub_socket) || defined (__stub___socket)
38095choke me
38096#else
38097char (*f) () = socket;
38098#endif
38099#ifdef __cplusplus
38100}
38101#endif
38102
38103int
38104main ()
38105{
38106return f != socket;
38107 ;
38108 return 0;
38109}
38110_ACEOF
38111rm -f conftest.$ac_objext conftest$ac_exeext
38112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38113 (eval $ac_link) 2>conftest.er1
a848cd7e 38114 ac_status=$?
ac1cb8d3
VS
38115 grep -v '^ *+' conftest.er1 >conftest.err
38116 rm -f conftest.er1
38117 cat conftest.err >&5
a848cd7e
SC
38118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38119 (exit $ac_status); } &&
fb00f58d
JS
38120 { ac_try='test -z "$ac_c_werror_flag"
38121 || test ! -s conftest.err'
ac1cb8d3
VS
38122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38123 (eval $ac_try) 2>&5
38124 ac_status=$?
38125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38126 (exit $ac_status); }; } &&
38127 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38129 (eval $ac_try) 2>&5
38130 ac_status=$?
38131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38132 (exit $ac_status); }; }; then
38133 ac_cv_func_socket=yes
38134else
38135 echo "$as_me: failed program was:" >&5
38136sed 's/^/| /' conftest.$ac_ext >&5
38137
38138ac_cv_func_socket=no
38139fi
ac1cb8d3
VS
38140rm -f conftest.err conftest.$ac_objext \
38141 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38142fi
38143echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
38144echo "${ECHO_T}$ac_cv_func_socket" >&6
38145if test $ac_cv_func_socket = yes; then
38146 :
38147else
38148
38149 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38150echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
38151if test "${ac_cv_lib_socket_socket+set}" = set; then
38152 echo $ECHO_N "(cached) $ECHO_C" >&6
38153else
38154 ac_check_lib_save_LIBS=$LIBS
38155LIBS="-lsocket $LIBS"
38156cat >conftest.$ac_ext <<_ACEOF
38157/* confdefs.h. */
38158_ACEOF
38159cat confdefs.h >>conftest.$ac_ext
38160cat >>conftest.$ac_ext <<_ACEOF
38161/* end confdefs.h. */
38162
38163/* Override any gcc2 internal prototype to avoid an error. */
38164#ifdef __cplusplus
38165extern "C"
38166#endif
38167/* We use char because int might match the return type of a gcc2
38168 builtin and then its argument prototype would still apply. */
38169char socket ();
38170int
38171main ()
38172{
38173socket ();
38174 ;
38175 return 0;
38176}
38177_ACEOF
38178rm -f conftest.$ac_objext conftest$ac_exeext
38179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38180 (eval $ac_link) 2>conftest.er1
a848cd7e 38181 ac_status=$?
ac1cb8d3
VS
38182 grep -v '^ *+' conftest.er1 >conftest.err
38183 rm -f conftest.er1
38184 cat conftest.err >&5
a848cd7e
SC
38185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186 (exit $ac_status); } &&
fb00f58d
JS
38187 { ac_try='test -z "$ac_c_werror_flag"
38188 || test ! -s conftest.err'
ac1cb8d3
VS
38189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38190 (eval $ac_try) 2>&5
38191 ac_status=$?
38192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38193 (exit $ac_status); }; } &&
38194 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38196 (eval $ac_try) 2>&5
38197 ac_status=$?
38198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199 (exit $ac_status); }; }; then
38200 ac_cv_lib_socket_socket=yes
38201else
38202 echo "$as_me: failed program was:" >&5
38203sed 's/^/| /' conftest.$ac_ext >&5
38204
38205ac_cv_lib_socket_socket=no
38206fi
ac1cb8d3
VS
38207rm -f conftest.err conftest.$ac_objext \
38208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38209LIBS=$ac_check_lib_save_LIBS
38210fi
38211echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38212echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
38213if test $ac_cv_lib_socket_socket = yes; then
38214 if test "$INET_LINK" != " -lsocket"; then
38215 INET_LINK="$INET_LINK -lsocket"
38216 fi
38217else
38218
38219 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
38220echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
38221 wxUSE_SOCKETS=no
38222
38223
38224fi
38225
38226
38227
38228fi
38229
38230 fi
38231fi
38232
38233if test "$wxUSE_SOCKETS" = "yes" ; then
38234 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
38235 ac_ext=cc
38236ac_cpp='$CXXCPP $CPPFLAGS'
38237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38240
38241 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
38242echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
38243if test "${wx_cv_type_getsockname3+set}" = set; then
38244 echo $ECHO_N "(cached) $ECHO_C" >&6
38245else
38246
38247 cat >conftest.$ac_ext <<_ACEOF
38248/* confdefs.h. */
38249_ACEOF
38250cat confdefs.h >>conftest.$ac_ext
38251cat >>conftest.$ac_ext <<_ACEOF
38252/* end confdefs.h. */
38253
38254 #include <sys/types.h>
38255 #include <sys/socket.h>
38256
38257int
38258main ()
38259{
38260
38261 socklen_t len;
38262 getsockname(0, 0, &len);
38263
38264 ;
38265 return 0;
38266}
38267_ACEOF
38268rm -f conftest.$ac_objext
38269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38270 (eval $ac_compile) 2>conftest.er1
a848cd7e 38271 ac_status=$?
ac1cb8d3
VS
38272 grep -v '^ *+' conftest.er1 >conftest.err
38273 rm -f conftest.er1
38274 cat conftest.err >&5
a848cd7e
SC
38275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38276 (exit $ac_status); } &&
fb00f58d
JS
38277 { ac_try='test -z "$ac_cxx_werror_flag"
38278 || test ! -s conftest.err'
ac1cb8d3
VS
38279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38280 (eval $ac_try) 2>&5
38281 ac_status=$?
38282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38283 (exit $ac_status); }; } &&
38284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38286 (eval $ac_try) 2>&5
38287 ac_status=$?
38288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38289 (exit $ac_status); }; }; then
38290 wx_cv_type_getsockname3=socklen_t
38291else
38292 echo "$as_me: failed program was:" >&5
38293sed 's/^/| /' conftest.$ac_ext >&5
38294
38295
38296 CFLAGS_OLD="$CFLAGS"
38297 if test "$GCC" = yes ; then
38298 CFLAGS="$CFLAGS -Werror"
38299 fi
38300
38301 cat >conftest.$ac_ext <<_ACEOF
38302/* confdefs.h. */
38303_ACEOF
38304cat confdefs.h >>conftest.$ac_ext
38305cat >>conftest.$ac_ext <<_ACEOF
38306/* end confdefs.h. */
38307
38308 #include <sys/types.h>
38309 #include <sys/socket.h>
38310
38311int
38312main ()
38313{
38314
38315 size_t len;
38316 getsockname(0, 0, &len);
38317
38318 ;
38319 return 0;
38320}
38321_ACEOF
38322rm -f conftest.$ac_objext
38323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38324 (eval $ac_compile) 2>conftest.er1
a848cd7e 38325 ac_status=$?
ac1cb8d3
VS
38326 grep -v '^ *+' conftest.er1 >conftest.err
38327 rm -f conftest.er1
38328 cat conftest.err >&5
a848cd7e
SC
38329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38330 (exit $ac_status); } &&
fb00f58d
JS
38331 { ac_try='test -z "$ac_cxx_werror_flag"
38332 || test ! -s conftest.err'
ac1cb8d3
VS
38333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38334 (eval $ac_try) 2>&5
38335 ac_status=$?
38336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38337 (exit $ac_status); }; } &&
38338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38340 (eval $ac_try) 2>&5
38341 ac_status=$?
38342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38343 (exit $ac_status); }; }; then
38344 wx_cv_type_getsockname3=size_t
38345else
38346 echo "$as_me: failed program was:" >&5
38347sed 's/^/| /' conftest.$ac_ext >&5
38348
38349cat >conftest.$ac_ext <<_ACEOF
38350/* confdefs.h. */
38351_ACEOF
38352cat confdefs.h >>conftest.$ac_ext
38353cat >>conftest.$ac_ext <<_ACEOF
38354/* end confdefs.h. */
38355
38356 #include <sys/types.h>
38357 #include <sys/socket.h>
38358
38359int
38360main ()
38361{
38362
38363 int len;
38364 getsockname(0, 0, &len);
38365
38366 ;
38367 return 0;
38368}
38369_ACEOF
38370rm -f conftest.$ac_objext
38371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38372 (eval $ac_compile) 2>conftest.er1
a848cd7e 38373 ac_status=$?
ac1cb8d3
VS
38374 grep -v '^ *+' conftest.er1 >conftest.err
38375 rm -f conftest.er1
38376 cat conftest.err >&5
a848cd7e
SC
38377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38378 (exit $ac_status); } &&
fb00f58d
JS
38379 { ac_try='test -z "$ac_cxx_werror_flag"
38380 || test ! -s conftest.err'
ac1cb8d3
VS
38381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38382 (eval $ac_try) 2>&5
38383 ac_status=$?
38384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385 (exit $ac_status); }; } &&
38386 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38388 (eval $ac_try) 2>&5
38389 ac_status=$?
38390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391 (exit $ac_status); }; }; then
38392 wx_cv_type_getsockname3=int
38393else
38394 echo "$as_me: failed program was:" >&5
38395sed 's/^/| /' conftest.$ac_ext >&5
38396
38397wx_cv_type_getsockname3=unknown
38398
38399fi
ac1cb8d3 38400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38401
38402fi
ac1cb8d3 38403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38404
38405 CFLAGS="$CFLAGS_OLD"
38406
38407
38408fi
ac1cb8d3 38409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38410
38411fi
38412echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
38413echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
38414
38415 if test "$wx_cv_type_getsockname3" = "unknown"; then
38416 wxUSE_SOCKETS=no
38417 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38418echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38419 else
38420 cat >>confdefs.h <<_ACEOF
38421#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
38422_ACEOF
38423
38424 fi
38425 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
38426echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
38427if test "${wx_cv_type_getsockopt5+set}" = set; then
38428 echo $ECHO_N "(cached) $ECHO_C" >&6
38429else
38430
38431 cat >conftest.$ac_ext <<_ACEOF
38432/* confdefs.h. */
38433_ACEOF
38434cat confdefs.h >>conftest.$ac_ext
38435cat >>conftest.$ac_ext <<_ACEOF
38436/* end confdefs.h. */
38437
38438 #include <sys/types.h>
38439 #include <sys/socket.h>
38440
38441int
38442main ()
38443{
38444
38445 socklen_t len;
38446 getsockopt(0, 0, 0, 0, &len);
38447
38448 ;
38449 return 0;
38450}
38451_ACEOF
38452rm -f conftest.$ac_objext
38453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38454 (eval $ac_compile) 2>conftest.er1
38455 ac_status=$?
38456 grep -v '^ *+' conftest.er1 >conftest.err
38457 rm -f conftest.er1
38458 cat conftest.err >&5
38459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38460 (exit $ac_status); } &&
fb00f58d
JS
38461 { ac_try='test -z "$ac_cxx_werror_flag"
38462 || test ! -s conftest.err'
5b674b9d
DE
38463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38464 (eval $ac_try) 2>&5
38465 ac_status=$?
38466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38467 (exit $ac_status); }; } &&
38468 { ac_try='test -s conftest.$ac_objext'
38469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38470 (eval $ac_try) 2>&5
38471 ac_status=$?
38472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38473 (exit $ac_status); }; }; then
38474 wx_cv_type_getsockopt5=socklen_t
38475else
38476 echo "$as_me: failed program was:" >&5
38477sed 's/^/| /' conftest.$ac_ext >&5
38478
38479
38480 CFLAGS_OLD="$CFLAGS"
38481 if test "$GCC" = yes ; then
38482 CFLAGS="$CFLAGS -Werror"
38483 fi
38484
38485 cat >conftest.$ac_ext <<_ACEOF
38486/* confdefs.h. */
38487_ACEOF
38488cat confdefs.h >>conftest.$ac_ext
38489cat >>conftest.$ac_ext <<_ACEOF
38490/* end confdefs.h. */
38491
38492 #include <sys/types.h>
38493 #include <sys/socket.h>
38494
38495int
38496main ()
38497{
38498
38499 size_t len;
38500 getsockopt(0, 0, 0, 0, &len);
38501
38502 ;
38503 return 0;
38504}
38505_ACEOF
38506rm -f conftest.$ac_objext
38507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38508 (eval $ac_compile) 2>conftest.er1
38509 ac_status=$?
38510 grep -v '^ *+' conftest.er1 >conftest.err
38511 rm -f conftest.er1
38512 cat conftest.err >&5
38513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514 (exit $ac_status); } &&
fb00f58d
JS
38515 { ac_try='test -z "$ac_cxx_werror_flag"
38516 || test ! -s conftest.err'
5b674b9d
DE
38517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38518 (eval $ac_try) 2>&5
38519 ac_status=$?
38520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521 (exit $ac_status); }; } &&
38522 { ac_try='test -s conftest.$ac_objext'
38523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38524 (eval $ac_try) 2>&5
38525 ac_status=$?
38526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); }; }; then
38528 wx_cv_type_getsockopt5=size_t
38529else
38530 echo "$as_me: failed program was:" >&5
38531sed 's/^/| /' conftest.$ac_ext >&5
38532
38533cat >conftest.$ac_ext <<_ACEOF
38534/* confdefs.h. */
38535_ACEOF
38536cat confdefs.h >>conftest.$ac_ext
38537cat >>conftest.$ac_ext <<_ACEOF
38538/* end confdefs.h. */
38539
38540 #include <sys/types.h>
38541 #include <sys/socket.h>
38542
38543int
38544main ()
38545{
38546
38547 int len;
38548 getsockopt(0, 0, 0, 0, &len);
38549
38550 ;
38551 return 0;
38552}
38553_ACEOF
38554rm -f conftest.$ac_objext
38555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38556 (eval $ac_compile) 2>conftest.er1
38557 ac_status=$?
38558 grep -v '^ *+' conftest.er1 >conftest.err
38559 rm -f conftest.er1
38560 cat conftest.err >&5
38561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38562 (exit $ac_status); } &&
fb00f58d
JS
38563 { ac_try='test -z "$ac_cxx_werror_flag"
38564 || test ! -s conftest.err'
5b674b9d
DE
38565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38566 (eval $ac_try) 2>&5
38567 ac_status=$?
38568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38569 (exit $ac_status); }; } &&
38570 { ac_try='test -s conftest.$ac_objext'
38571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38572 (eval $ac_try) 2>&5
38573 ac_status=$?
38574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38575 (exit $ac_status); }; }; then
38576 wx_cv_type_getsockopt5=int
38577else
38578 echo "$as_me: failed program was:" >&5
38579sed 's/^/| /' conftest.$ac_ext >&5
38580
38581wx_cv_type_getsockopt5=unknown
38582
38583fi
38584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38585
38586fi
38587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38588
38589 CFLAGS="$CFLAGS_OLD"
38590
38591
38592fi
38593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38594
38595fi
38596echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38597echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38598
38599 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38600 wxUSE_SOCKETS=no
38601 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38602echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38603 else
38604 cat >>confdefs.h <<_ACEOF
38605#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38606_ACEOF
38607
38608 fi
4d4ff94c
VZ
38609 ac_ext=c
38610ac_cpp='$CPP $CPPFLAGS'
38611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38613ac_compiler_gnu=$ac_cv_c_compiler_gnu
38614
a848cd7e
SC
38615 fi
38616fi
38617
38618if test "$wxUSE_SOCKETS" = "yes" ; then
38619 cat >>confdefs.h <<\_ACEOF
38620#define wxUSE_SOCKETS 1
38621_ACEOF
38622
38623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38624fi
38625
38626if test "$wxUSE_PROTOCOL" = "yes"; then
38627 if test "$wxUSE_SOCKETS" != "yes"; then
38628 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38629echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38630 wxUSE_PROTOCOL=no
38631 fi
38632fi
38633
38634if test "$wxUSE_PROTOCOL" = "yes"; then
38635 cat >>confdefs.h <<\_ACEOF
38636#define wxUSE_PROTOCOL 1
38637_ACEOF
38638
38639
38640 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38641 cat >>confdefs.h <<\_ACEOF
38642#define wxUSE_PROTOCOL_HTTP 1
38643_ACEOF
38644
38645 fi
38646 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38647 cat >>confdefs.h <<\_ACEOF
38648#define wxUSE_PROTOCOL_FTP 1
38649_ACEOF
38650
38651 fi
38652 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38653 cat >>confdefs.h <<\_ACEOF
38654#define wxUSE_PROTOCOL_FILE 1
38655_ACEOF
38656
38657 fi
38658else
38659 if test "$wxUSE_FS_INET" = "yes"; then
38660 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38661echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38662 wxUSE_FS_INET="no"
38663 fi
38664fi
38665
38666if test "$wxUSE_URL" = "yes"; then
38667 if test "$wxUSE_PROTOCOL" != "yes"; then
38668 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38669echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38670 wxUSE_URL=no
38671 fi
38672 if test "$wxUSE_URL" = "yes"; then
38673 cat >>confdefs.h <<\_ACEOF
38674#define wxUSE_URL 1
38675_ACEOF
38676
38677 fi
38678fi
38679
38680if test "$wxUSE_FS_INET" = "yes"; then
38681 cat >>confdefs.h <<\_ACEOF
38682#define wxUSE_FS_INET 1
38683_ACEOF
38684
38685fi
38686
38687
38688if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 38689 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 38690
4cb1d3da 38691 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
38692
38693for ac_header in linux/joystick.h
38694do
38695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38696if eval "test \"\${$as_ac_Header+set}\" = set"; then
38697 echo "$as_me:$LINENO: checking for $ac_header" >&5
38698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38699if eval "test \"\${$as_ac_Header+set}\" = set"; then
38700 echo $ECHO_N "(cached) $ECHO_C" >&6
38701fi
38702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38704else
38705 # Is the header compilable?
38706echo "$as_me:$LINENO: checking $ac_header usability" >&5
38707echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38708cat >conftest.$ac_ext <<_ACEOF
38709/* confdefs.h. */
38710_ACEOF
38711cat confdefs.h >>conftest.$ac_ext
38712cat >>conftest.$ac_ext <<_ACEOF
38713/* end confdefs.h. */
38714$ac_includes_default
38715#include <$ac_header>
38716_ACEOF
38717rm -f conftest.$ac_objext
38718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38719 (eval $ac_compile) 2>conftest.er1
a848cd7e 38720 ac_status=$?
ac1cb8d3
VS
38721 grep -v '^ *+' conftest.er1 >conftest.err
38722 rm -f conftest.er1
38723 cat conftest.err >&5
a848cd7e
SC
38724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725 (exit $ac_status); } &&
fb00f58d
JS
38726 { ac_try='test -z "$ac_c_werror_flag"
38727 || test ! -s conftest.err'
ac1cb8d3
VS
38728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38729 (eval $ac_try) 2>&5
38730 ac_status=$?
38731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38732 (exit $ac_status); }; } &&
38733 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38735 (eval $ac_try) 2>&5
38736 ac_status=$?
38737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38738 (exit $ac_status); }; }; then
38739 ac_header_compiler=yes
38740else
38741 echo "$as_me: failed program was:" >&5
38742sed 's/^/| /' conftest.$ac_ext >&5
38743
38744ac_header_compiler=no
38745fi
ac1cb8d3 38746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38748echo "${ECHO_T}$ac_header_compiler" >&6
38749
38750# Is the header present?
38751echo "$as_me:$LINENO: checking $ac_header presence" >&5
38752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38753cat >conftest.$ac_ext <<_ACEOF
38754/* confdefs.h. */
38755_ACEOF
38756cat confdefs.h >>conftest.$ac_ext
38757cat >>conftest.$ac_ext <<_ACEOF
38758/* end confdefs.h. */
38759#include <$ac_header>
38760_ACEOF
38761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38763 ac_status=$?
38764 grep -v '^ *+' conftest.er1 >conftest.err
38765 rm -f conftest.er1
38766 cat conftest.err >&5
38767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38768 (exit $ac_status); } >/dev/null; then
38769 if test -s conftest.err; then
38770 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38772 else
38773 ac_cpp_err=
38774 fi
38775else
38776 ac_cpp_err=yes
38777fi
38778if test -z "$ac_cpp_err"; then
38779 ac_header_preproc=yes
38780else
38781 echo "$as_me: failed program was:" >&5
38782sed 's/^/| /' conftest.$ac_ext >&5
38783
38784 ac_header_preproc=no
38785fi
38786rm -f conftest.err conftest.$ac_ext
38787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38788echo "${ECHO_T}$ac_header_preproc" >&6
38789
38790# So? What about this header?
ac1cb8d3
VS
38791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38792 yes:no: )
a848cd7e
SC
38793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38797 ac_header_preproc=yes
a848cd7e 38798 ;;
ac1cb8d3 38799 no:yes:* )
a848cd7e
SC
38800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38803echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38807echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38812 (
38813 cat <<\_ASBOX
ac1cb8d3
VS
38814## ----------------------------------------- ##
38815## Report this to wx-dev@lists.wxwidgets.org ##
38816## ----------------------------------------- ##
a848cd7e
SC
38817_ASBOX
38818 ) |
38819 sed "s/^/$as_me: WARNING: /" >&2
38820 ;;
38821esac
38822echo "$as_me:$LINENO: checking for $ac_header" >&5
38823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38824if eval "test \"\${$as_ac_Header+set}\" = set"; then
38825 echo $ECHO_N "(cached) $ECHO_C" >&6
38826else
ac1cb8d3 38827 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38828fi
38829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38831
38832fi
38833if test `eval echo '${'$as_ac_Header'}'` = yes; then
38834 cat >>confdefs.h <<_ACEOF
38835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38836_ACEOF
38837
38838fi
38839
38840done
38841
38842 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38843 wxUSE_JOYSTICK=no
38844 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38845echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38846 fi
4cb1d3da
RN
38847 else
38848 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38849 wxUSE_JOYSTICK=no
38850 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38851echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38852 fi
a848cd7e 38853 fi
a848cd7e 38854
4cb1d3da
RN
38855
38856 if test "$wxUSE_JOYSTICK" = "yes"; then
38857 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38858#define wxUSE_JOYSTICK 1
38859_ACEOF
38860
4cb1d3da
RN
38861 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38862 fi
a848cd7e
SC
38863 fi
38864fi
38865
38866
38867
38868if test "$wxUSE_FONTMAP" = "yes" ; then
38869 cat >>confdefs.h <<\_ACEOF
38870#define wxUSE_FONTMAP 1
38871_ACEOF
38872
38873fi
38874
38875if test "$wxUSE_UNICODE" = "yes" ; then
38876 cat >>confdefs.h <<\_ACEOF
38877#define wxUSE_UNICODE 1
38878_ACEOF
38879
38880
38881 if test "$USE_WIN32" != 1; then
38882 wxUSE_UNICODE_MSLU=no
38883 fi
38884
38885 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38886 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38887echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38888if test "${ac_cv_lib_unicows_main+set}" = set; then
38889 echo $ECHO_N "(cached) $ECHO_C" >&6
38890else
38891 ac_check_lib_save_LIBS=$LIBS
38892LIBS="-lunicows $LIBS"
38893cat >conftest.$ac_ext <<_ACEOF
38894/* confdefs.h. */
38895_ACEOF
38896cat confdefs.h >>conftest.$ac_ext
38897cat >>conftest.$ac_ext <<_ACEOF
38898/* end confdefs.h. */
38899
38900
38901int
38902main ()
38903{
38904main ();
38905 ;
38906 return 0;
38907}
38908_ACEOF
38909rm -f conftest.$ac_objext conftest$ac_exeext
38910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38911 (eval $ac_link) 2>conftest.er1
a848cd7e 38912 ac_status=$?
ac1cb8d3
VS
38913 grep -v '^ *+' conftest.er1 >conftest.err
38914 rm -f conftest.er1
38915 cat conftest.err >&5
a848cd7e
SC
38916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38917 (exit $ac_status); } &&
fb00f58d
JS
38918 { ac_try='test -z "$ac_c_werror_flag"
38919 || test ! -s conftest.err'
ac1cb8d3
VS
38920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38921 (eval $ac_try) 2>&5
38922 ac_status=$?
38923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38924 (exit $ac_status); }; } &&
38925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38927 (eval $ac_try) 2>&5
38928 ac_status=$?
38929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38930 (exit $ac_status); }; }; then
38931 ac_cv_lib_unicows_main=yes
38932else
38933 echo "$as_me: failed program was:" >&5
38934sed 's/^/| /' conftest.$ac_ext >&5
38935
38936ac_cv_lib_unicows_main=no
38937fi
ac1cb8d3
VS
38938rm -f conftest.err conftest.$ac_objext \
38939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38940LIBS=$ac_check_lib_save_LIBS
38941fi
38942echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38943echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38944if test $ac_cv_lib_unicows_main = yes; then
38945
38946 cat >>confdefs.h <<\_ACEOF
38947#define wxUSE_UNICODE_MSLU 1
38948_ACEOF
38949
38950
38951else
38952
38953 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38954 Applications will only run on Windows NT/2000/XP!" >&5
38955echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38956 Applications will only run on Windows NT/2000/XP!" >&2;}
38957 wxUSE_UNICODE_MSLU=no
38958
38959fi
38960
38961 fi
38962fi
38963
38964if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38965 cat >>confdefs.h <<\_ACEOF
38966#define wxUSE_EXPERIMENTAL_PRINTF 1
38967_ACEOF
38968
38969fi
38970
38971
38972if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38973 cat >>confdefs.h <<\_ACEOF
38974#define wxUSE_POSTSCRIPT 1
38975_ACEOF
38976
38977fi
38978
38979cat >>confdefs.h <<\_ACEOF
38980#define wxUSE_AFM_FOR_POSTSCRIPT 1
38981_ACEOF
38982
38983
38984cat >>confdefs.h <<\_ACEOF
38985#define wxUSE_NORMALIZED_PS_FONTS 1
38986_ACEOF
38987
38988
38989
38990if test "$wxUSE_CONSTRAINTS" = "yes"; then
38991 cat >>confdefs.h <<\_ACEOF
38992#define wxUSE_CONSTRAINTS 1
38993_ACEOF
38994
38995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38996fi
38997
8a7b1113
VZ
38998if test "$wxUSE_MDI" = "yes"; then
38999 cat >>confdefs.h <<\_ACEOF
39000#define wxUSE_MDI 1
39001_ACEOF
39002
39003
39004 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39005 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39006#define wxUSE_MDI_ARCHITECTURE 1
39007_ACEOF
39008
8a7b1113
VZ
39009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
39010 fi
a848cd7e
SC
39011fi
39012
39013if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
39014 cat >>confdefs.h <<\_ACEOF
39015#define wxUSE_DOC_VIEW_ARCHITECTURE 1
39016_ACEOF
39017
39018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
39019 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
39021 fi
39022fi
39023
39024if test "$wxUSE_HELP" = "yes"; then
39025 cat >>confdefs.h <<\_ACEOF
39026#define wxUSE_HELP 1
39027_ACEOF
39028
39029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
39030
39031 if test "$wxUSE_MSW" = 1; then
39032 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
39033 cat >>confdefs.h <<\_ACEOF
39034#define wxUSE_MS_HTML_HELP 1
39035_ACEOF
39036
39037 fi
39038 fi
39039
39040 if test "$wxUSE_WXHTML_HELP" = "yes"; then
39041 if test "$wxUSE_HTML" = "yes"; then
39042 cat >>confdefs.h <<\_ACEOF
39043#define wxUSE_WXHTML_HELP 1
39044_ACEOF
39045
39046 else
39047 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
39048echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
39049 wxUSE_WXHTML_HELP=no
39050 fi
39051 fi
39052fi
39053
39054if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39055 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39056 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
39057echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
39058 else
39059 cat >>confdefs.h <<\_ACEOF
39060#define wxUSE_PRINTING_ARCHITECTURE 1
39061_ACEOF
39062
39063 fi
39064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
39065fi
39066
39067if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
39068 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
39069echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
39070 { (exit 1); exit 1; }; }
39071fi
39072
39073
39074if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
39075 -o "$wxUSE_CLIPBOARD" = "yes" \
39076 -o "$wxUSE_OLE" = "yes" \
39077 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
39078
39079for ac_header in ole2.h
39080do
39081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39082if eval "test \"\${$as_ac_Header+set}\" = set"; then
39083 echo "$as_me:$LINENO: checking for $ac_header" >&5
39084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39085if eval "test \"\${$as_ac_Header+set}\" = set"; then
39086 echo $ECHO_N "(cached) $ECHO_C" >&6
39087fi
39088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39090else
39091 # Is the header compilable?
39092echo "$as_me:$LINENO: checking $ac_header usability" >&5
39093echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39094cat >conftest.$ac_ext <<_ACEOF
39095/* confdefs.h. */
39096_ACEOF
39097cat confdefs.h >>conftest.$ac_ext
39098cat >>conftest.$ac_ext <<_ACEOF
39099/* end confdefs.h. */
39100$ac_includes_default
39101#include <$ac_header>
39102_ACEOF
39103rm -f conftest.$ac_objext
39104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39105 (eval $ac_compile) 2>conftest.er1
a848cd7e 39106 ac_status=$?
ac1cb8d3
VS
39107 grep -v '^ *+' conftest.er1 >conftest.err
39108 rm -f conftest.er1
39109 cat conftest.err >&5
a848cd7e
SC
39110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39111 (exit $ac_status); } &&
fb00f58d
JS
39112 { ac_try='test -z "$ac_c_werror_flag"
39113 || test ! -s conftest.err'
ac1cb8d3
VS
39114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39115 (eval $ac_try) 2>&5
39116 ac_status=$?
39117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39118 (exit $ac_status); }; } &&
39119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39121 (eval $ac_try) 2>&5
39122 ac_status=$?
39123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39124 (exit $ac_status); }; }; then
39125 ac_header_compiler=yes
39126else
39127 echo "$as_me: failed program was:" >&5
39128sed 's/^/| /' conftest.$ac_ext >&5
39129
39130ac_header_compiler=no
39131fi
ac1cb8d3 39132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39133echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39134echo "${ECHO_T}$ac_header_compiler" >&6
39135
39136# Is the header present?
39137echo "$as_me:$LINENO: checking $ac_header presence" >&5
39138echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39139cat >conftest.$ac_ext <<_ACEOF
39140/* confdefs.h. */
39141_ACEOF
39142cat confdefs.h >>conftest.$ac_ext
39143cat >>conftest.$ac_ext <<_ACEOF
39144/* end confdefs.h. */
39145#include <$ac_header>
39146_ACEOF
39147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39149 ac_status=$?
39150 grep -v '^ *+' conftest.er1 >conftest.err
39151 rm -f conftest.er1
39152 cat conftest.err >&5
39153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154 (exit $ac_status); } >/dev/null; then
39155 if test -s conftest.err; then
39156 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39158 else
39159 ac_cpp_err=
39160 fi
39161else
39162 ac_cpp_err=yes
39163fi
39164if test -z "$ac_cpp_err"; then
39165 ac_header_preproc=yes
39166else
39167 echo "$as_me: failed program was:" >&5
39168sed 's/^/| /' conftest.$ac_ext >&5
39169
39170 ac_header_preproc=no
39171fi
39172rm -f conftest.err conftest.$ac_ext
39173echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39174echo "${ECHO_T}$ac_header_preproc" >&6
39175
39176# So? What about this header?
ac1cb8d3
VS
39177case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39178 yes:no: )
a848cd7e
SC
39179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39180echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39182echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39183 ac_header_preproc=yes
a848cd7e 39184 ;;
ac1cb8d3 39185 no:yes:* )
a848cd7e
SC
39186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39187echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39189echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39191echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39193echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39195echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39197echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39198 (
39199 cat <<\_ASBOX
ac1cb8d3
VS
39200## ----------------------------------------- ##
39201## Report this to wx-dev@lists.wxwidgets.org ##
39202## ----------------------------------------- ##
a848cd7e
SC
39203_ASBOX
39204 ) |
39205 sed "s/^/$as_me: WARNING: /" >&2
39206 ;;
39207esac
39208echo "$as_me:$LINENO: checking for $ac_header" >&5
39209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39210if eval "test \"\${$as_ac_Header+set}\" = set"; then
39211 echo $ECHO_N "(cached) $ECHO_C" >&6
39212else
ac1cb8d3 39213 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39214fi
39215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39216echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39217
39218fi
39219if test `eval echo '${'$as_ac_Header'}'` = yes; then
39220 cat >>confdefs.h <<_ACEOF
39221#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39222_ACEOF
39223
39224fi
39225
39226done
39227
39228
39229 if test "$ac_cv_header_ole2_h" = "yes" ; then
39230 if test "$GCC" = yes ; then
39231
39232
39233 ac_ext=cc
39234ac_cpp='$CXXCPP $CPPFLAGS'
39235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39238
39239
39240 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
39241echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
39242 cat >conftest.$ac_ext <<_ACEOF
39243/* confdefs.h. */
39244_ACEOF
39245cat confdefs.h >>conftest.$ac_ext
39246cat >>conftest.$ac_ext <<_ACEOF
39247/* end confdefs.h. */
39248#include <windows.h>
39249 #include <ole2.h>
39250int
39251main ()
39252{
39253
39254 ;
39255 return 0;
39256}
39257_ACEOF
39258rm -f conftest.$ac_objext
39259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39260 (eval $ac_compile) 2>conftest.er1
a848cd7e 39261 ac_status=$?
ac1cb8d3
VS
39262 grep -v '^ *+' conftest.er1 >conftest.err
39263 rm -f conftest.er1
39264 cat conftest.err >&5
a848cd7e
SC
39265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39266 (exit $ac_status); } &&
fb00f58d
JS
39267 { ac_try='test -z "$ac_cxx_werror_flag"
39268 || test ! -s conftest.err'
ac1cb8d3
VS
39269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39270 (eval $ac_try) 2>&5
39271 ac_status=$?
39272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39273 (exit $ac_status); }; } &&
39274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39276 (eval $ac_try) 2>&5
39277 ac_status=$?
39278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39279 (exit $ac_status); }; }; then
39280 echo "$as_me:$LINENO: result: no" >&5
39281echo "${ECHO_T}no" >&6
39282else
39283 echo "$as_me: failed program was:" >&5
39284sed 's/^/| /' conftest.$ac_ext >&5
39285
39286echo "$as_me:$LINENO: result: yes" >&5
39287echo "${ECHO_T}yes" >&6
39288 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
39289fi
ac1cb8d3 39290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39291 ac_ext=c
39292ac_cpp='$CPP $CPPFLAGS'
39293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39295ac_compiler_gnu=$ac_cv_c_compiler_gnu
39296
a848cd7e
SC
39297 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
39298 if test "$wxUSE_OLE" = "yes" ; then
39299 cat >>confdefs.h <<\_ACEOF
39300#define wxUSE_OLE 1
39301_ACEOF
39302
0b78747f 39303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
39304 fi
39305 fi
39306
39307 if test "$wxUSE_DATAOBJ" = "yes" ; then
39308 cat >>confdefs.h <<\_ACEOF
39309#define wxUSE_DATAOBJ 1
39310_ACEOF
39311
39312 fi
39313 else
39314 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
39315echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
39316
39317 wxUSE_CLIPBOARD=no
39318 wxUSE_DRAG_AND_DROP=no
39319 wxUSE_DATAOBJ=no
39320 wxUSE_OLE=no
39321 fi
39322
39323 if test "$wxUSE_METAFILE" = "yes"; then
39324 cat >>confdefs.h <<\_ACEOF
39325#define wxUSE_METAFILE 1
39326_ACEOF
39327
39328
39329 cat >>confdefs.h <<\_ACEOF
39330#define wxUSE_ENH_METAFILE 1
39331_ACEOF
39332
39333 fi
39334fi
39335
39336if test "$wxUSE_IPC" = "yes"; then
0b78747f 39337 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
39338 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
39339echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 39340 wxUSE_IPC=no
a848cd7e
SC
39341 fi
39342
0b78747f
MW
39343 if test "$wxUSE_IPC" = "yes"; then
39344 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39345#define wxUSE_IPC 1
39346_ACEOF
39347
0b78747f
MW
39348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
39349 fi
a848cd7e
SC
39350fi
39351
39352if test "$wxUSE_CLIPBOARD" = "yes"; then
39353 if test "$wxUSE_MGL" = 1; then
39354 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
39355echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
39356 wxUSE_CLIPBOARD=no
39357 fi
39358
39359 if test "$wxUSE_CLIPBOARD" = "yes"; then
39360 cat >>confdefs.h <<\_ACEOF
39361#define wxUSE_CLIPBOARD 1
39362_ACEOF
39363
39364
39365 cat >>confdefs.h <<\_ACEOF
39366#define wxUSE_DATAOBJ 1
39367_ACEOF
39368
39369 fi
39370fi
39371
39372if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
39373 if test "$wxUSE_GTK" = 1; then
39374 if test "$WXGTK12" != 1; then
39375 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
39376echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
39377 wxUSE_DRAG_AND_DROP=no
39378 fi
39379 fi
39380
39381 if test "$wxUSE_MOTIF" = 1; then
39382 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
39383echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
39384 wxUSE_DRAG_AND_DROP=no
39385 fi
39386
39387 if test "$wxUSE_X11" = 1; then
39388 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
39389echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
39390 wxUSE_DRAG_AND_DROP=no
39391 fi
39392
39393 if test "$wxUSE_MGL" = 1; then
39394 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
39395echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
39396 wxUSE_DRAG_AND_DROP=no
39397 fi
39398
39399 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
39400 cat >>confdefs.h <<\_ACEOF
39401#define wxUSE_DRAG_AND_DROP 1
39402_ACEOF
39403
39404 fi
39405
39406fi
39407
39408if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
39409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
39410fi
39411
39412if test "$wxUSE_SPLINES" = "yes" ; then
39413 cat >>confdefs.h <<\_ACEOF
39414#define wxUSE_SPLINES 1
39415_ACEOF
39416
39417fi
39418
fbe2ca43
SN
39419if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
39420 cat >>confdefs.h <<\_ACEOF
39421#define wxUSE_MOUSEWHEEL 1
39422_ACEOF
39423
39424fi
39425
a848cd7e
SC
39426
39427USES_CONTROLS=0
39428if test "$wxUSE_CONTROLS" = "yes"; then
39429 USES_CONTROLS=1
39430fi
39431
39432if test "$wxUSE_ACCEL" = "yes"; then
39433 cat >>confdefs.h <<\_ACEOF
39434#define wxUSE_ACCEL 1
39435_ACEOF
39436
39437 USES_CONTROLS=1
39438fi
39439
39440if test "$wxUSE_BUTTON" = "yes"; then
39441 cat >>confdefs.h <<\_ACEOF
39442#define wxUSE_BUTTON 1
39443_ACEOF
39444
39445 USES_CONTROLS=1
39446fi
39447
39448if test "$wxUSE_BMPBUTTON" = "yes"; then
39449 cat >>confdefs.h <<\_ACEOF
39450#define wxUSE_BMPBUTTON 1
39451_ACEOF
39452
39453 USES_CONTROLS=1
39454fi
39455
39456if test "$wxUSE_CALCTRL" = "yes"; then
39457 cat >>confdefs.h <<\_ACEOF
39458#define wxUSE_CALENDARCTRL 1
39459_ACEOF
39460
39461 USES_CONTROLS=1
39462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
39463fi
39464
39465if test "$wxUSE_CARET" = "yes"; then
39466 cat >>confdefs.h <<\_ACEOF
39467#define wxUSE_CARET 1
39468_ACEOF
39469
39470 USES_CONTROLS=1
39471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
39472fi
39473
39474if test "$wxUSE_COMBOBOX" = "yes"; then
39475 cat >>confdefs.h <<\_ACEOF
39476#define wxUSE_COMBOBOX 1
39477_ACEOF
39478
39479 USES_CONTROLS=1
39480fi
39481
39482if test "$wxUSE_CHOICE" = "yes"; then
39483 cat >>confdefs.h <<\_ACEOF
39484#define wxUSE_CHOICE 1
39485_ACEOF
39486
39487 USES_CONTROLS=1
39488fi
39489
92bbdbcd
WS
39490if test "$wxUSE_CHOICEBOOK" = "yes"; then
39491 cat >>confdefs.h <<\_ACEOF
39492#define wxUSE_CHOICEBOOK 1
39493_ACEOF
39494
39495 USES_CONTROLS=1
39496fi
39497
a848cd7e
SC
39498if test "$wxUSE_CHECKBOX" = "yes"; then
39499 cat >>confdefs.h <<\_ACEOF
39500#define wxUSE_CHECKBOX 1
39501_ACEOF
39502
39503 USES_CONTROLS=1
39504fi
39505
39506if test "$wxUSE_CHECKLST" = "yes"; then
39507 cat >>confdefs.h <<\_ACEOF
39508#define wxUSE_CHECKLISTBOX 1
39509_ACEOF
39510
39511 USES_CONTROLS=1
39512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
39513fi
39514
da98e9be
VZ
39515if test "$wxUSE_DATEPICKCTRL" = "yes"; then
39516 cat >>confdefs.h <<\_ACEOF
39517#define wxUSE_DATEPICKCTRL 1
39518_ACEOF
39519
39520 USES_CONTROLS=1
39521fi
39522
a848cd7e
SC
39523if test "$wxUSE_DISPLAY" = "yes"; then
39524 cat >>confdefs.h <<\_ACEOF
39525#define wxUSE_DISPLAY 1
39526_ACEOF
39527
0b78747f 39528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
39529fi
39530
39531if test "$wxUSE_GAUGE" = "yes"; then
39532 cat >>confdefs.h <<\_ACEOF
39533#define wxUSE_GAUGE 1
39534_ACEOF
39535
39536 USES_CONTROLS=1
39537fi
39538
39539if test "$wxUSE_GRID" = "yes"; then
39540 cat >>confdefs.h <<\_ACEOF
39541#define wxUSE_GRID 1
39542_ACEOF
39543
39544 USES_CONTROLS=1
39545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39546fi
39547
39548if test "$wxUSE_IMAGLIST" = "yes"; then
39549 cat >>confdefs.h <<\_ACEOF
39550#define wxUSE_IMAGLIST 1
39551_ACEOF
39552
39553fi
39554
39555if test "$wxUSE_LISTBOOK" = "yes"; then
39556 cat >>confdefs.h <<\_ACEOF
39557#define wxUSE_LISTBOOK 1
39558_ACEOF
39559
39560 USES_CONTROLS=1
39561fi
39562
39563if test "$wxUSE_LISTBOX" = "yes"; then
39564 cat >>confdefs.h <<\_ACEOF
39565#define wxUSE_LISTBOX 1
39566_ACEOF
39567
39568 USES_CONTROLS=1
0b78747f 39569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
39570fi
39571
39572if test "$wxUSE_LISTCTRL" = "yes"; then
39573 if test "$wxUSE_IMAGLIST" = "yes"; then
39574 cat >>confdefs.h <<\_ACEOF
39575#define wxUSE_LISTCTRL 1
39576_ACEOF
39577
39578 USES_CONTROLS=1
39579 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39580 else
39581 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39582echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39583 fi
39584fi
39585
39586if test "$wxUSE_NOTEBOOK" = "yes"; then
39587 cat >>confdefs.h <<\_ACEOF
39588#define wxUSE_NOTEBOOK 1
39589_ACEOF
39590
39591 USES_CONTROLS=1
39592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39593fi
39594
39595
39596if test "$wxUSE_RADIOBOX" = "yes"; then
39597 cat >>confdefs.h <<\_ACEOF
39598#define wxUSE_RADIOBOX 1
39599_ACEOF
39600
39601 USES_CONTROLS=1
39602fi
39603
39604if test "$wxUSE_RADIOBTN" = "yes"; then
39605 cat >>confdefs.h <<\_ACEOF
39606#define wxUSE_RADIOBTN 1
39607_ACEOF
39608
39609 USES_CONTROLS=1
39610fi
39611
39612if test "$wxUSE_SASH" = "yes"; then
39613 cat >>confdefs.h <<\_ACEOF
39614#define wxUSE_SASH 1
39615_ACEOF
39616
39617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
39618fi
39619
39620if test "$wxUSE_SCROLLBAR" = "yes"; then
39621 cat >>confdefs.h <<\_ACEOF
39622#define wxUSE_SCROLLBAR 1
39623_ACEOF
39624
39625 USES_CONTROLS=1
39626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
39627fi
39628
39629if test "$wxUSE_SLIDER" = "yes"; then
39630 cat >>confdefs.h <<\_ACEOF
39631#define wxUSE_SLIDER 1
39632_ACEOF
39633
39634 USES_CONTROLS=1
39635fi
39636
39637if test "$wxUSE_SPINBTN" = "yes"; then
39638 cat >>confdefs.h <<\_ACEOF
39639#define wxUSE_SPINBTN 1
39640_ACEOF
39641
39642 USES_CONTROLS=1
39643fi
39644
39645if test "$wxUSE_SPINCTRL" = "yes"; then
39646 cat >>confdefs.h <<\_ACEOF
39647#define wxUSE_SPINCTRL 1
39648_ACEOF
39649
39650 USES_CONTROLS=1
39651fi
39652
39653if test "$wxUSE_SPLITTER" = "yes"; then
39654 cat >>confdefs.h <<\_ACEOF
39655#define wxUSE_SPLITTER 1
39656_ACEOF
39657
39658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
39659fi
39660
39661if test "$wxUSE_STATBMP" = "yes"; then
39662 cat >>confdefs.h <<\_ACEOF
39663#define wxUSE_STATBMP 1
39664_ACEOF
39665
39666 USES_CONTROLS=1
39667fi
39668
39669if test "$wxUSE_STATBOX" = "yes"; then
39670 cat >>confdefs.h <<\_ACEOF
39671#define wxUSE_STATBOX 1
39672_ACEOF
39673
39674 USES_CONTROLS=1
39675fi
39676
39677if test "$wxUSE_STATTEXT" = "yes"; then
39678 cat >>confdefs.h <<\_ACEOF
39679#define wxUSE_STATTEXT 1
39680_ACEOF
39681
39682 USES_CONTROLS=1
39683fi
39684
39685if test "$wxUSE_STATLINE" = "yes"; then
39686 cat >>confdefs.h <<\_ACEOF
39687#define wxUSE_STATLINE 1
39688_ACEOF
39689
39690 USES_CONTROLS=1
39691fi
39692
39693if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
39694 cat >>confdefs.h <<\_ACEOF
39695#define wxUSE_NATIVE_STATUSBAR 1
39696_ACEOF
39697
a848cd7e
SC
39698 cat >>confdefs.h <<\_ACEOF
39699#define wxUSE_STATUSBAR 1
39700_ACEOF
39701
39702 USES_CONTROLS=1
39703
39704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39705fi
39706
39707if test "$wxUSE_TABDIALOG" = "yes"; then
39708 cat >>confdefs.h <<\_ACEOF
39709#define wxUSE_TAB_DIALOG 1
39710_ACEOF
39711
a848cd7e
SC
39712fi
39713
39714if test "$wxUSE_TEXTCTRL" = "yes"; then
39715 cat >>confdefs.h <<\_ACEOF
39716#define wxUSE_TEXTCTRL 1
39717_ACEOF
39718
39719 USES_CONTROLS=1
39720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39721fi
39722
39723if test "$wxUSE_TOGGLEBTN" = "yes"; then
39724 if test "$wxUSE_COCOA" = 1 ; then
39725 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39726echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39727 wxUSE_TOGGLEBTN=no
39728 fi
39729 if test "$wxUSE_UNIVERSAL" = "yes"; then
39730 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39731echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39732 wxUSE_TOGGLEBTN=no
39733 fi
39734
39735 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39736 cat >>confdefs.h <<\_ACEOF
39737#define wxUSE_TOGGLEBTN 1
39738_ACEOF
39739
39740 USES_CONTROLS=1
39741 fi
39742fi
39743
39744if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39745 cat >>confdefs.h <<\_ACEOF
39746#define wxUSE_TOOLBAR_SIMPLE 1
39747_ACEOF
39748
39749 wxUSE_TOOLBAR="yes"
39750 USES_CONTROLS=1
39751fi
39752
39753if test "$wxUSE_TOOLBAR" = "yes"; then
39754 cat >>confdefs.h <<\_ACEOF
39755#define wxUSE_TOOLBAR 1
39756_ACEOF
39757
39758 USES_CONTROLS=1
39759
39760 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39761 wxUSE_TOOLBAR_NATIVE="yes"
39762 fi
39763
39764 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39765 cat >>confdefs.h <<\_ACEOF
39766#define wxUSE_TOOLBAR_NATIVE 1
39767_ACEOF
39768
39769 USES_CONTROLS=1
39770 fi
39771
39772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39773fi
39774
39775if test "$wxUSE_TOOLTIPS" = "yes"; then
39776 if test "$wxUSE_MOTIF" = 1; then
39777 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39778echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39779 else
39780 if test "$wxUSE_UNIVERSAL" = "yes"; then
39781 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39782echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39783 else
39784 cat >>confdefs.h <<\_ACEOF
39785#define wxUSE_TOOLTIPS 1
39786_ACEOF
39787
39788 fi
39789 fi
39790fi
39791
39792if test "$wxUSE_TREECTRL" = "yes"; then
39793 if test "$wxUSE_IMAGLIST" = "yes"; then
39794 cat >>confdefs.h <<\_ACEOF
39795#define wxUSE_TREECTRL 1
39796_ACEOF
39797
39798 USES_CONTROLS=1
39799 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39800 else
39801 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39802echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39803 fi
39804fi
39805
39806if test "$wxUSE_POPUPWIN" = "yes"; then
39807 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39808 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39809echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39810 else
39811 if test "$wxUSE_PM" = 1; then
39812 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39813echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39814 else
39815 cat >>confdefs.h <<\_ACEOF
39816#define wxUSE_POPUPWIN 1
39817_ACEOF
39818
0b78747f 39819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39820
39821 USES_CONTROLS=1
39822 fi
39823 fi
39824fi
39825
0dcd06dd 39826if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39827 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39828 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39829echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39830 else
39831 cat >>confdefs.h <<\_ACEOF
39832#define wxUSE_DIALUP_MANAGER 1
39833_ACEOF
39834
39835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39836 fi
39837fi
39838
a848cd7e
SC
39839if test "$wxUSE_TIPWINDOW" = "yes"; then
39840 if test "$wxUSE_PM" = 1; then
39841 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39842echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39843 else
39844 cat >>confdefs.h <<\_ACEOF
39845#define wxUSE_TIPWINDOW 1
39846_ACEOF
39847
39848 fi
39849fi
39850
39851if test "$USES_CONTROLS" = 1; then
39852 cat >>confdefs.h <<\_ACEOF
39853#define wxUSE_CONTROLS 1
39854_ACEOF
39855
39856fi
39857
39858
39859if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39860 cat >>confdefs.h <<\_ACEOF
39861#define wxUSE_ACCESSIBILITY 1
39862_ACEOF
39863
39864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39865fi
39866
39867if test "$wxUSE_DRAGIMAGE" = "yes"; then
39868 cat >>confdefs.h <<\_ACEOF
39869#define wxUSE_DRAGIMAGE 1
39870_ACEOF
39871
39872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39873fi
39874
39875if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39876 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39877 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39878echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39879 else
39880 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39881#define wxUSE_EXCEPTIONS 1
39882_ACEOF
39883
07bea8f0
VS
39884 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39885 fi
a848cd7e
SC
39886fi
39887
39888USE_HTML=0
39889if test "$wxUSE_HTML" = "yes"; then
39890 cat >>confdefs.h <<\_ACEOF
39891#define wxUSE_HTML 1
39892_ACEOF
39893
39894 USE_HTML=1
39895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39896 if test "$wxUSE_MAC" = 1; then
39897 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39898 fi
a848cd7e 39899fi
646b6ec1 39900if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39901 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39902 old_CPPFLAGS="$CPPFLAGS"
39903 CPPFLAGS="$CPPFLAGS -x objective-c++"
39904 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39905echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39906if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39907 echo $ECHO_N "(cached) $ECHO_C" >&6
39908else
39909 cat >conftest.$ac_ext <<_ACEOF
39910/* confdefs.h. */
39911_ACEOF
39912cat confdefs.h >>conftest.$ac_ext
39913cat >>conftest.$ac_ext <<_ACEOF
39914/* end confdefs.h. */
39915#include <Carbon/Carbon.h>
39916
39917#include <WebKit/HIWebView.h>
39918_ACEOF
39919rm -f conftest.$ac_objext
39920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39921 (eval $ac_compile) 2>conftest.er1
39922 ac_status=$?
39923 grep -v '^ *+' conftest.er1 >conftest.err
39924 rm -f conftest.er1
39925 cat conftest.err >&5
39926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39927 (exit $ac_status); } &&
fb00f58d
JS
39928 { ac_try='test -z "$ac_c_werror_flag"
39929 || test ! -s conftest.err'
07bea8f0
VS
39930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39931 (eval $ac_try) 2>&5
39932 ac_status=$?
39933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39934 (exit $ac_status); }; } &&
39935 { ac_try='test -s conftest.$ac_objext'
39936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39937 (eval $ac_try) 2>&5
39938 ac_status=$?
39939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39940 (exit $ac_status); }; }; then
39941 ac_cv_header_WebKit_HIWebView_h=yes
39942else
39943 echo "$as_me: failed program was:" >&5
39944sed 's/^/| /' conftest.$ac_ext >&5
39945
39946ac_cv_header_WebKit_HIWebView_h=no
39947fi
39948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39949fi
39950echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39951echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39952if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39953
39954 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39955#define wxUSE_WEBKIT 1
39956_ACEOF
39957
07bea8f0
VS
39958 WEBKIT_LINK="-framework WebKit"
39959
39960else
39961
39962 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39963echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39964 wxUSE_WEBKIT=no
39965
646b6ec1
VS
39966fi
39967
07bea8f0
VS
39968
39969 CPPFLAGS="$old_CPPFLAGS"
39970 elif test "$wxUSE_COCOA" = 1; then
39971 cat >>confdefs.h <<\_ACEOF
39972#define wxUSE_WEBKIT 1
39973_ACEOF
39974
39975 else
39976 wxUSE_WEBKIT=no
39977 fi
39978fi
39979
9a8f0513
VS
39980USE_XRC=0
39981if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39982 if test "$wxUSE_XML" != "yes"; then
39983 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39984echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39985 wxUSE_XRC=no
39986 else
39987 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39988#define wxUSE_XRC 1
39989_ACEOF
39990
d2ebf0b7
VS
39991 USE_XRC=1
39992 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39993 fi
9a8f0513 39994fi
07bea8f0 39995
a848cd7e
SC
39996if test "$wxUSE_MENUS" = "yes"; then
39997 cat >>confdefs.h <<\_ACEOF
39998#define wxUSE_MENUS 1
39999_ACEOF
40000
40001 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
40002fi
40003
40004if test "$wxUSE_METAFILE" = "yes"; then
40005 cat >>confdefs.h <<\_ACEOF
40006#define wxUSE_METAFILE 1
40007_ACEOF
40008
40009fi
40010
40011if test "$wxUSE_MIMETYPE" = "yes"; then
40012 cat >>confdefs.h <<\_ACEOF
40013#define wxUSE_MIMETYPE 1
40014_ACEOF
40015
40016fi
40017
40018if test "$wxUSE_MINIFRAME" = "yes"; then
40019 cat >>confdefs.h <<\_ACEOF
40020#define wxUSE_MINIFRAME 1
40021_ACEOF
40022
40023 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
40024fi
40025
40026if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
40027 cat >>confdefs.h <<\_ACEOF
40028#define wxUSE_SYSTEM_OPTIONS 1
40029_ACEOF
40030
40031 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 40032 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
40033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
40034 fi
40035fi
40036
40037
40038if test "$wxUSE_VALIDATORS" = "yes"; then
40039 cat >>confdefs.h <<\_ACEOF
40040#define wxUSE_VALIDATORS 1
40041_ACEOF
40042
40043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
40044fi
40045
40046if test "$wxUSE_PALETTE" = "yes" ; then
40047 cat >>confdefs.h <<\_ACEOF
40048#define wxUSE_PALETTE 1
40049_ACEOF
40050
40051fi
40052
40053if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
40054 LIBS=" -lunicows $LIBS"
40055fi
40056
40057
40058if test "$wxUSE_IMAGE" = "yes" ; then
40059 cat >>confdefs.h <<\_ACEOF
40060#define wxUSE_IMAGE 1
40061_ACEOF
40062
40063
40064 if test "$wxUSE_GIF" = "yes" ; then
40065 cat >>confdefs.h <<\_ACEOF
40066#define wxUSE_GIF 1
40067_ACEOF
40068
40069 fi
40070
40071 if test "$wxUSE_PCX" = "yes" ; then
40072 cat >>confdefs.h <<\_ACEOF
40073#define wxUSE_PCX 1
40074_ACEOF
40075
40076 fi
40077
40078 if test "$wxUSE_IFF" = "yes" ; then
40079 cat >>confdefs.h <<\_ACEOF
40080#define wxUSE_IFF 1
40081_ACEOF
40082
40083 fi
40084
40085 if test "$wxUSE_PNM" = "yes" ; then
40086 cat >>confdefs.h <<\_ACEOF
40087#define wxUSE_PNM 1
40088_ACEOF
40089
40090 fi
40091
40092 if test "$wxUSE_XPM" = "yes" ; then
40093 cat >>confdefs.h <<\_ACEOF
40094#define wxUSE_XPM 1
40095_ACEOF
40096
40097 fi
40098
40099 if test "$wxUSE_ICO_CUR" = "yes" ; then
40100 cat >>confdefs.h <<\_ACEOF
40101#define wxUSE_ICO_CUR 1
40102_ACEOF
40103
40104 fi
40105fi
40106
40107
40108if test "$wxUSE_CHOICEDLG" = "yes"; then
40109 cat >>confdefs.h <<\_ACEOF
40110#define wxUSE_CHOICEDLG 1
40111_ACEOF
40112
40113fi
40114
40115if test "$wxUSE_COLOURDLG" = "yes"; then
40116 cat >>confdefs.h <<\_ACEOF
40117#define wxUSE_COLOURDLG 1
40118_ACEOF
40119
40120fi
40121
40122if test "$wxUSE_FILEDLG" = "yes"; then
40123 cat >>confdefs.h <<\_ACEOF
40124#define wxUSE_FILEDLG 1
40125_ACEOF
40126
40127fi
40128
40129if test "$wxUSE_FINDREPLDLG" = "yes"; then
40130 cat >>confdefs.h <<\_ACEOF
40131#define wxUSE_FINDREPLDLG 1
40132_ACEOF
40133
40134fi
40135
40136if test "$wxUSE_FONTDLG" = "yes"; then
40137 cat >>confdefs.h <<\_ACEOF
40138#define wxUSE_FONTDLG 1
40139_ACEOF
40140
40141fi
40142
40143if test "$wxUSE_DIRDLG" = "yes"; then
40144 if test "$wxUSE_TREECTRL" != "yes"; then
40145 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
40146echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
40147 else
40148 cat >>confdefs.h <<\_ACEOF
40149#define wxUSE_DIRDLG 1
40150_ACEOF
40151
40152 fi
40153fi
40154
40155if test "$wxUSE_MSGDLG" = "yes"; then
40156 cat >>confdefs.h <<\_ACEOF
40157#define wxUSE_MSGDLG 1
40158_ACEOF
40159
40160fi
40161
40162if test "$wxUSE_NUMBERDLG" = "yes"; then
40163 cat >>confdefs.h <<\_ACEOF
40164#define wxUSE_NUMBERDLG 1
40165_ACEOF
40166
40167fi
40168
40169if test "$wxUSE_PROGRESSDLG" = "yes"; then
40170 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40171 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
40172echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
40173 else
40174 cat >>confdefs.h <<\_ACEOF
40175#define wxUSE_PROGRESSDLG 1
40176_ACEOF
40177
40178 fi
40179fi
40180
40181if test "$wxUSE_SPLASH" = "yes"; then
40182 cat >>confdefs.h <<\_ACEOF
40183#define wxUSE_SPLASH 1
40184_ACEOF
40185
2057db16 40186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
40187fi
40188
40189if test "$wxUSE_STARTUP_TIPS" = "yes"; then
40190 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40191 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
40192echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
40193 else
40194 cat >>confdefs.h <<\_ACEOF
40195#define wxUSE_STARTUP_TIPS 1
40196_ACEOF
40197
40198 fi
40199fi
40200
40201if test "$wxUSE_TEXTDLG" = "yes"; then
40202 cat >>confdefs.h <<\_ACEOF
40203#define wxUSE_TEXTDLG 1
40204_ACEOF
40205
40206fi
40207
40208if test "$wxUSE_WIZARDDLG" = "yes"; then
40209 cat >>confdefs.h <<\_ACEOF
40210#define wxUSE_WIZARDDLG 1
40211_ACEOF
40212
40213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
40214fi
40215
40216
ce756cb0
RN
40217if test "$wxUSE_MEDIACTRL" = "yes"; then
40218 if test "$wxUSE_MSW" = 1; then
40219 wxUSE_DIRECTSHOW="yes"
40220
40221for ac_header in dshow.h
40222do
40223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40224echo "$as_me:$LINENO: checking for $ac_header" >&5
40225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40226if eval "test \"\${$as_ac_Header+set}\" = set"; then
40227 echo $ECHO_N "(cached) $ECHO_C" >&6
40228else
40229 cat >conftest.$ac_ext <<_ACEOF
40230/* confdefs.h. */
40231_ACEOF
40232cat confdefs.h >>conftest.$ac_ext
40233cat >>conftest.$ac_ext <<_ACEOF
40234/* end confdefs.h. */
40235#include <windows.h>
40236
40237#include <$ac_header>
40238_ACEOF
40239rm -f conftest.$ac_objext
40240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40241 (eval $ac_compile) 2>conftest.er1
40242 ac_status=$?
40243 grep -v '^ *+' conftest.er1 >conftest.err
40244 rm -f conftest.er1
40245 cat conftest.err >&5
40246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40247 (exit $ac_status); } &&
fb00f58d
JS
40248 { ac_try='test -z "$ac_c_werror_flag"
40249 || test ! -s conftest.err'
ce756cb0
RN
40250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40251 (eval $ac_try) 2>&5
40252 ac_status=$?
40253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254 (exit $ac_status); }; } &&
40255 { ac_try='test -s conftest.$ac_objext'
40256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40257 (eval $ac_try) 2>&5
40258 ac_status=$?
40259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40260 (exit $ac_status); }; }; then
40261 eval "$as_ac_Header=yes"
40262else
40263 echo "$as_me: failed program was:" >&5
40264sed 's/^/| /' conftest.$ac_ext >&5
40265
40266eval "$as_ac_Header=no"
40267fi
40268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40269fi
40270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40272if test `eval echo '${'$as_ac_Header'}'` = yes; then
40273 cat >>confdefs.h <<_ACEOF
40274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40275_ACEOF
40276
40277else
40278
40279 wxUSE_DIRECTSHOW="no"
40280 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
40281echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
40282
40283fi
40284
40285done
40286
40287
40288 if test "$wxUSE_DIRECTSHOW" = "yes"; then
40289 cat >>confdefs.h <<\_ACEOF
40290#define wxUSE_DIRECTSHOW 1
40291_ACEOF
40292
40293 LIBS="$LIBS -lstrmiids"
40294 fi
40295 fi
40296
40297 if test "$wxUSE_GTK" = 1; then
40298 wxUSE_GSTREAMER="yes"
40299
ce756cb0 40300
dae87f93 40301 succeeded=no
ce756cb0 40302
dae87f93
RN
40303 if test -z "$PKG_CONFIG"; then
40304 # Extract the first word of "pkg-config", so it can be a program name with args.
40305set dummy pkg-config; ac_word=$2
40306echo "$as_me:$LINENO: checking for $ac_word" >&5
40307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40308if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40309 echo $ECHO_N "(cached) $ECHO_C" >&6
40310else
40311 case $PKG_CONFIG in
40312 [\\/]* | ?:[\\/]*)
40313 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40314 ;;
40315 *)
40316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40317for as_dir in $PATH
40318do
40319 IFS=$as_save_IFS
40320 test -z "$as_dir" && as_dir=.
40321 for ac_exec_ext in '' $ac_executable_extensions; do
40322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40323 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40325 break 2
40326 fi
40327done
40328done
40329
40330 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40331 ;;
40332esac
40333fi
40334PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40335
40336if test -n "$PKG_CONFIG"; then
40337 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40338echo "${ECHO_T}$PKG_CONFIG" >&6
40339else
40340 echo "$as_me:$LINENO: result: no" >&5
40341echo "${ECHO_T}no" >&6
40342fi
40343
40344 fi
40345
40346 if test "$PKG_CONFIG" = "no" ; then
40347 echo "*** The pkg-config script could not be found. Make sure it is"
40348 echo "*** in your path, or set the PKG_CONFIG environment variable"
40349 echo "*** to the full path to pkg-config."
40350 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40351 else
40352 PKG_CONFIG_MIN_VERSION=0.9.0
40353 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40354 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
40355echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
40356
40357 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
40358 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40359echo "${ECHO_T}yes" >&6
dae87f93 40360 succeeded=yes
ce756cb0 40361
dae87f93
RN
40362 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
40363echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
40364 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
40365 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
40366echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
40367
40368 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
40369echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
40370 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
40371 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
40372echo "${ECHO_T}$GSTREAMER_LIBS" >&6
40373 else
40374 GSTREAMER_CFLAGS=""
40375 GSTREAMER_LIBS=""
40376 ## If we have a custom action on failure, don't print errors, but
40377 ## do set a variable so people can do so.
40378 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 40379
dae87f93
RN
40380 fi
40381
40382
40383
40384 else
40385 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40386 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40387 fi
40388 fi
40389
40390 if test $succeeded = yes; then
40391
40392 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
40393 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 40394
ce756cb0 40395 else
dae87f93
RN
40396
40397 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
40398echo "$as_me: WARNING: GStreamer installation not found" >&2;}
40399 wxUSE_GSTREAMER="no"
40400
40401 fi
40402
40403
40404
40405
40406
40407 if test "x$GST_INSPECT" == "x"; then
40408 # Extract the first word of "gst-inspect", so it can be a program name with args.
40409set dummy gst-inspect; ac_word=$2
40410echo "$as_me:$LINENO: checking for $ac_word" >&5
40411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40412if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
40413 echo $ECHO_N "(cached) $ECHO_C" >&6
40414else
40415 if test -n "$GST_INSPECT"; then
40416 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
40417else
40418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40419for as_dir in $PATH
40420do
40421 IFS=$as_save_IFS
40422 test -z "$as_dir" && as_dir=.
40423 for ac_exec_ext in '' $ac_executable_extensions; do
40424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40425 ac_cv_prog_GST_INSPECT="gst-inspect"
40426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40427 break 2
ce756cb0 40428 fi
dae87f93
RN
40429done
40430done
40431
40432fi
40433fi
40434GST_INSPECT=$ac_cv_prog_GST_INSPECT
40435if test -n "$GST_INSPECT"; then
40436 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
40437echo "${ECHO_T}$GST_INSPECT" >&6
40438else
40439 echo "$as_me:$LINENO: result: no" >&5
40440echo "${ECHO_T}no" >&6
40441fi
40442
40443 fi
40444
40445 if test "x$GST_INSPECT" != "x"; then
40446 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40447echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40448 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40449 echo "$as_me:$LINENO: result: found." >&5
40450echo "${ECHO_T}found." >&6
ce756cb0 40451
ce756cb0 40452 else
dae87f93
RN
40453 echo "$as_me:$LINENO: result: not found." >&5
40454echo "${ECHO_T}not found." >&6
40455
40456 wxUSE_GSTREAMER="no"
40457 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40458echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40459
40460 fi
40461 fi
40462
40463
40464 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40465echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40466if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40467 echo $ECHO_N "(cached) $ECHO_C" >&6
40468else
40469 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40470/* confdefs.h. */
40471_ACEOF
40472cat confdefs.h >>conftest.$ac_ext
40473cat >>conftest.$ac_ext <<_ACEOF
40474/* end confdefs.h. */
dae87f93 40475#include <gst/gst.h>
ce756cb0 40476
dae87f93 40477#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40478_ACEOF
40479rm -f conftest.$ac_objext
40480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40481 (eval $ac_compile) 2>conftest.er1
40482 ac_status=$?
40483 grep -v '^ *+' conftest.er1 >conftest.err
40484 rm -f conftest.er1
40485 cat conftest.err >&5
40486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40487 (exit $ac_status); } &&
fb00f58d
JS
40488 { ac_try='test -z "$ac_c_werror_flag"
40489 || test ! -s conftest.err'
ce756cb0
RN
40490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40491 (eval $ac_try) 2>&5
40492 ac_status=$?
40493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40494 (exit $ac_status); }; } &&
40495 { ac_try='test -s conftest.$ac_objext'
40496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40497 (eval $ac_try) 2>&5
40498 ac_status=$?
40499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40500 (exit $ac_status); }; }; then
dae87f93 40501 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40502else
40503 echo "$as_me: failed program was:" >&5
40504sed 's/^/| /' conftest.$ac_ext >&5
40505
dae87f93 40506ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40507fi
40508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40509fi
40510echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40511echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40512if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40513 :
40514else
ce756cb0 40515
dae87f93
RN
40516 wxUSE_GSTREAMER="no"
40517 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40518echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 40519
dae87f93 40520fi
ce756cb0 40521
dae87f93
RN
40522
40523
40524 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
40525echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40526
40527ac_find_libraries=
40528for ac_dir in $SEARCH_LIB /usr/lib;
40529 do
40530 for ac_extension in a so sl dylib; do
40531 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40532 ac_find_libraries=$ac_dir
40533 break 2
40534 fi
40535 done
40536 done
40537
ce756cb0 40538
dae87f93
RN
40539 if test "$ac_find_libraries" = "" ; then
40540 echo "$as_me:$LINENO: result: no" >&5
40541echo "${ECHO_T}no" >&6
40542 wxUSE_GSTREAMER="no"
40543 else
40544 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40545echo "${ECHO_T}yes" >&6
dae87f93 40546 fi
ce756cb0 40547
dae87f93
RN
40548 if test "$wxUSE_GSTREAMER" = "yes"; then
40549 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40550#define wxUSE_GSTREAMER 1
40551_ACEOF
40552
dae87f93
RN
40553 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40554echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40555 fi
40556 fi
40557 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40558 cat >>confdefs.h <<\_ACEOF
40559#define wxUSE_MEDIACTRL 1
40560_ACEOF
40561
40562fi
40563
40564
a848cd7e
SC
40565if test "$cross_compiling" = "yes"; then
40566 OSINFO="\"$host\""
40567else
40568 OSINFO=`uname -s -r -m`
40569 OSINFO="\"$OSINFO\""
40570fi
40571
40572cat >>confdefs.h <<_ACEOF
40573#define WXWIN_OS_DESCRIPTION $OSINFO
40574_ACEOF
40575
40576
40577
40578if test "x$prefix" != "xNONE"; then
40579 wxPREFIX=$prefix
40580else
40581 wxPREFIX=$ac_default_prefix
40582fi
40583
40584cat >>confdefs.h <<_ACEOF
40585#define wxINSTALL_PREFIX "$wxPREFIX"
40586_ACEOF
40587
40588
a848cd7e
SC
40589
40590
40591CORE_BASE_LIBS="net base"
40592CORE_GUI_LIBS="adv core"
40593
40594if test "$wxUSE_XML" = "yes" ; then
40595 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40596fi
40597if test "$wxUSE_ODBC" != "no" ; then
40598 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40599 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40600fi
40601if test "$wxUSE_HTML" = "yes" ; then
40602 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40603fi
61639efb
VZ
40604if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40605 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40606fi
9a8f0513
VS
40607if test "$wxUSE_XRC" = "yes" ; then
40608 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40609fi
a848cd7e
SC
40610
40611if test "$wxUSE_GUI" != "yes"; then
40612 CORE_GUI_LIBS=""
40613fi
40614
40615
40616
40617
40618
40619
40620
40621
40622if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 40623 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
40624 if test "$USE_DARWIN" = 1; then
40625 LDFLAGS="$LDFLAGS -framework QuickTime"
40626 else
40627 LDFLAGS="$LDFLAGS -lQuickTimeLib"
40628 fi
07bea8f0 40629 fi
5dcf30a0 40630 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
40631 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40632 else
40633 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 40634 fi
59746b65
MW
40635elif test "$USE_DARWIN" = 1; then
40636 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System"
a848cd7e
SC
40637fi
40638if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 40639 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
40640 if test "$wxUSE_MEDIACTRL" = "yes"; then
40641 LDFLAGS="$LDFLAGS -framework QuickTime"
40642 fi
a848cd7e
SC
40643fi
40644
40645
40646LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40647
40648have_cos=0
40649have_floor=0
40650
40651for ac_func in cos
40652do
40653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40654echo "$as_me:$LINENO: checking for $ac_func" >&5
40655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40656if eval "test \"\${$as_ac_var+set}\" = set"; then
40657 echo $ECHO_N "(cached) $ECHO_C" >&6
40658else
40659 cat >conftest.$ac_ext <<_ACEOF
40660/* confdefs.h. */
40661_ACEOF
40662cat confdefs.h >>conftest.$ac_ext
40663cat >>conftest.$ac_ext <<_ACEOF
40664/* end confdefs.h. */
ac1cb8d3
VS
40665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40667#define $ac_func innocuous_$ac_func
40668
a848cd7e
SC
40669/* System header to define __stub macros and hopefully few prototypes,
40670 which can conflict with char $ac_func (); below.
40671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40672 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40673
a848cd7e
SC
40674#ifdef __STDC__
40675# include <limits.h>
40676#else
40677# include <assert.h>
40678#endif
ac1cb8d3
VS
40679
40680#undef $ac_func
40681
a848cd7e
SC
40682/* Override any gcc2 internal prototype to avoid an error. */
40683#ifdef __cplusplus
40684extern "C"
40685{
40686#endif
40687/* We use char because int might match the return type of a gcc2
40688 builtin and then its argument prototype would still apply. */
40689char $ac_func ();
40690/* The GNU C library defines this for functions which it implements
40691 to always fail with ENOSYS. Some functions are actually named
40692 something starting with __ and the normal name is an alias. */
40693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40694choke me
40695#else
40696char (*f) () = $ac_func;
40697#endif
40698#ifdef __cplusplus
40699}
40700#endif
40701
40702int
40703main ()
40704{
40705return f != $ac_func;
40706 ;
40707 return 0;
40708}
40709_ACEOF
40710rm -f conftest.$ac_objext conftest$ac_exeext
40711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40712 (eval $ac_link) 2>conftest.er1
a848cd7e 40713 ac_status=$?
ac1cb8d3
VS
40714 grep -v '^ *+' conftest.er1 >conftest.err
40715 rm -f conftest.er1
40716 cat conftest.err >&5
a848cd7e
SC
40717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40718 (exit $ac_status); } &&
fb00f58d
JS
40719 { ac_try='test -z "$ac_c_werror_flag"
40720 || test ! -s conftest.err'
ac1cb8d3
VS
40721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40722 (eval $ac_try) 2>&5
40723 ac_status=$?
40724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40725 (exit $ac_status); }; } &&
40726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40728 (eval $ac_try) 2>&5
40729 ac_status=$?
40730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40731 (exit $ac_status); }; }; then
40732 eval "$as_ac_var=yes"
40733else
40734 echo "$as_me: failed program was:" >&5
40735sed 's/^/| /' conftest.$ac_ext >&5
40736
40737eval "$as_ac_var=no"
40738fi
ac1cb8d3
VS
40739rm -f conftest.err conftest.$ac_objext \
40740 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40741fi
40742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40743echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40744if test `eval echo '${'$as_ac_var'}'` = yes; then
40745 cat >>confdefs.h <<_ACEOF
40746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40747_ACEOF
40748 have_cos=1
40749fi
40750done
40751
40752
40753for ac_func in floor
40754do
40755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40756echo "$as_me:$LINENO: checking for $ac_func" >&5
40757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40758if eval "test \"\${$as_ac_var+set}\" = set"; then
40759 echo $ECHO_N "(cached) $ECHO_C" >&6
40760else
40761 cat >conftest.$ac_ext <<_ACEOF
40762/* confdefs.h. */
40763_ACEOF
40764cat confdefs.h >>conftest.$ac_ext
40765cat >>conftest.$ac_ext <<_ACEOF
40766/* end confdefs.h. */
ac1cb8d3
VS
40767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40769#define $ac_func innocuous_$ac_func
40770
a848cd7e
SC
40771/* System header to define __stub macros and hopefully few prototypes,
40772 which can conflict with char $ac_func (); below.
40773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40774 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40775
a848cd7e
SC
40776#ifdef __STDC__
40777# include <limits.h>
40778#else
40779# include <assert.h>
40780#endif
ac1cb8d3
VS
40781
40782#undef $ac_func
40783
a848cd7e
SC
40784/* Override any gcc2 internal prototype to avoid an error. */
40785#ifdef __cplusplus
40786extern "C"
40787{
40788#endif
40789/* We use char because int might match the return type of a gcc2
40790 builtin and then its argument prototype would still apply. */
40791char $ac_func ();
40792/* The GNU C library defines this for functions which it implements
40793 to always fail with ENOSYS. Some functions are actually named
40794 something starting with __ and the normal name is an alias. */
40795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40796choke me
40797#else
40798char (*f) () = $ac_func;
40799#endif
40800#ifdef __cplusplus
40801}
40802#endif
40803
40804int
40805main ()
40806{
40807return f != $ac_func;
40808 ;
40809 return 0;
40810}
40811_ACEOF
40812rm -f conftest.$ac_objext conftest$ac_exeext
40813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40814 (eval $ac_link) 2>conftest.er1
a848cd7e 40815 ac_status=$?
ac1cb8d3
VS
40816 grep -v '^ *+' conftest.er1 >conftest.err
40817 rm -f conftest.er1
40818 cat conftest.err >&5
a848cd7e
SC
40819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40820 (exit $ac_status); } &&
fb00f58d
JS
40821 { ac_try='test -z "$ac_c_werror_flag"
40822 || test ! -s conftest.err'
ac1cb8d3
VS
40823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40824 (eval $ac_try) 2>&5
40825 ac_status=$?
40826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40827 (exit $ac_status); }; } &&
40828 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40830 (eval $ac_try) 2>&5
40831 ac_status=$?
40832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40833 (exit $ac_status); }; }; then
40834 eval "$as_ac_var=yes"
40835else
40836 echo "$as_me: failed program was:" >&5
40837sed 's/^/| /' conftest.$ac_ext >&5
40838
40839eval "$as_ac_var=no"
40840fi
ac1cb8d3
VS
40841rm -f conftest.err conftest.$ac_objext \
40842 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40843fi
40844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40845echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40846if test `eval echo '${'$as_ac_var'}'` = yes; then
40847 cat >>confdefs.h <<_ACEOF
40848#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40849_ACEOF
40850 have_floor=1
40851fi
40852done
40853
40854echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40855echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40856if test "$have_cos" = 1 -a "$have_floor" = 1; then
40857 echo "$as_me:$LINENO: result: yes" >&5
40858echo "${ECHO_T}yes" >&6
40859else
40860 echo "$as_me:$LINENO: result: no" >&5
40861echo "${ECHO_T}no" >&6
40862 LIBS="$LIBS -lm"
40863 # use different functions to avoid configure caching
40864 have_sin=0
40865 have_ceil=0
40866
40867for ac_func in sin
40868do
40869as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40870echo "$as_me:$LINENO: checking for $ac_func" >&5
40871echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40872if eval "test \"\${$as_ac_var+set}\" = set"; then
40873 echo $ECHO_N "(cached) $ECHO_C" >&6
40874else
40875 cat >conftest.$ac_ext <<_ACEOF
40876/* confdefs.h. */
40877_ACEOF
40878cat confdefs.h >>conftest.$ac_ext
40879cat >>conftest.$ac_ext <<_ACEOF
40880/* end confdefs.h. */
ac1cb8d3
VS
40881/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40883#define $ac_func innocuous_$ac_func
40884
a848cd7e
SC
40885/* System header to define __stub macros and hopefully few prototypes,
40886 which can conflict with char $ac_func (); below.
40887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40888 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40889
a848cd7e
SC
40890#ifdef __STDC__
40891# include <limits.h>
40892#else
40893# include <assert.h>
40894#endif
ac1cb8d3
VS
40895
40896#undef $ac_func
40897
a848cd7e
SC
40898/* Override any gcc2 internal prototype to avoid an error. */
40899#ifdef __cplusplus
40900extern "C"
40901{
40902#endif
40903/* We use char because int might match the return type of a gcc2
40904 builtin and then its argument prototype would still apply. */
40905char $ac_func ();
40906/* The GNU C library defines this for functions which it implements
40907 to always fail with ENOSYS. Some functions are actually named
40908 something starting with __ and the normal name is an alias. */
40909#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40910choke me
40911#else
40912char (*f) () = $ac_func;
40913#endif
40914#ifdef __cplusplus
40915}
40916#endif
40917
40918int
40919main ()
40920{
40921return f != $ac_func;
40922 ;
40923 return 0;
40924}
40925_ACEOF
40926rm -f conftest.$ac_objext conftest$ac_exeext
40927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40928 (eval $ac_link) 2>conftest.er1
a848cd7e 40929 ac_status=$?
ac1cb8d3
VS
40930 grep -v '^ *+' conftest.er1 >conftest.err
40931 rm -f conftest.er1
40932 cat conftest.err >&5
a848cd7e
SC
40933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40934 (exit $ac_status); } &&
fb00f58d
JS
40935 { ac_try='test -z "$ac_c_werror_flag"
40936 || test ! -s conftest.err'
ac1cb8d3
VS
40937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40938 (eval $ac_try) 2>&5
40939 ac_status=$?
40940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40941 (exit $ac_status); }; } &&
40942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40944 (eval $ac_try) 2>&5
40945 ac_status=$?
40946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40947 (exit $ac_status); }; }; then
40948 eval "$as_ac_var=yes"
40949else
40950 echo "$as_me: failed program was:" >&5
40951sed 's/^/| /' conftest.$ac_ext >&5
40952
40953eval "$as_ac_var=no"
40954fi
ac1cb8d3
VS
40955rm -f conftest.err conftest.$ac_objext \
40956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40957fi
40958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40959echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40960if test `eval echo '${'$as_ac_var'}'` = yes; then
40961 cat >>confdefs.h <<_ACEOF
40962#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40963_ACEOF
40964 have_sin=1
40965fi
40966done
40967
40968
40969for ac_func in ceil
40970do
40971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40972echo "$as_me:$LINENO: checking for $ac_func" >&5
40973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40974if eval "test \"\${$as_ac_var+set}\" = set"; then
40975 echo $ECHO_N "(cached) $ECHO_C" >&6
40976else
40977 cat >conftest.$ac_ext <<_ACEOF
40978/* confdefs.h. */
40979_ACEOF
40980cat confdefs.h >>conftest.$ac_ext
40981cat >>conftest.$ac_ext <<_ACEOF
40982/* end confdefs.h. */
ac1cb8d3
VS
40983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40985#define $ac_func innocuous_$ac_func
40986
a848cd7e
SC
40987/* System header to define __stub macros and hopefully few prototypes,
40988 which can conflict with char $ac_func (); below.
40989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40990 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40991
a848cd7e
SC
40992#ifdef __STDC__
40993# include <limits.h>
40994#else
40995# include <assert.h>
40996#endif
ac1cb8d3
VS
40997
40998#undef $ac_func
40999
a848cd7e
SC
41000/* Override any gcc2 internal prototype to avoid an error. */
41001#ifdef __cplusplus
41002extern "C"
41003{
41004#endif
41005/* We use char because int might match the return type of a gcc2
41006 builtin and then its argument prototype would still apply. */
41007char $ac_func ();
41008/* The GNU C library defines this for functions which it implements
41009 to always fail with ENOSYS. Some functions are actually named
41010 something starting with __ and the normal name is an alias. */
41011#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41012choke me
41013#else
41014char (*f) () = $ac_func;
41015#endif
41016#ifdef __cplusplus
41017}
41018#endif
41019
41020int
41021main ()
41022{
41023return f != $ac_func;
41024 ;
41025 return 0;
41026}
41027_ACEOF
41028rm -f conftest.$ac_objext conftest$ac_exeext
41029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41030 (eval $ac_link) 2>conftest.er1
a848cd7e 41031 ac_status=$?
ac1cb8d3
VS
41032 grep -v '^ *+' conftest.er1 >conftest.err
41033 rm -f conftest.er1
41034 cat conftest.err >&5
a848cd7e
SC
41035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036 (exit $ac_status); } &&
fb00f58d
JS
41037 { ac_try='test -z "$ac_c_werror_flag"
41038 || test ! -s conftest.err'
ac1cb8d3
VS
41039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41040 (eval $ac_try) 2>&5
41041 ac_status=$?
41042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41043 (exit $ac_status); }; } &&
41044 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41046 (eval $ac_try) 2>&5
41047 ac_status=$?
41048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41049 (exit $ac_status); }; }; then
41050 eval "$as_ac_var=yes"
41051else
41052 echo "$as_me: failed program was:" >&5
41053sed 's/^/| /' conftest.$ac_ext >&5
41054
41055eval "$as_ac_var=no"
41056fi
ac1cb8d3
VS
41057rm -f conftest.err conftest.$ac_objext \
41058 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41059fi
41060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41061echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41062if test `eval echo '${'$as_ac_var'}'` = yes; then
41063 cat >>confdefs.h <<_ACEOF
41064#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41065_ACEOF
41066 have_ceil=1
41067fi
41068done
41069
41070 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
41071echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
41072 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
41073 echo "$as_me:$LINENO: result: yes" >&5
41074echo "${ECHO_T}yes" >&6
41075 else
41076 echo "$as_me:$LINENO: result: no" >&5
41077echo "${ECHO_T}no" >&6
41078 # not sure we should warn the user, crash, etc.
41079 fi
41080fi
41081
41082if test "$wxUSE_GUI" = "yes"; then
41083
41084
8bce5cda
MW
41085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
41086 dynamic erase event exec font image minimal mobile \
41087 mobile/wxedit mobile/styles propsize render \
41088 richedit rotate shaped vscroll widgets"
a848cd7e
SC
41089
41090 if test "$wxUSE_MONOLITHIC" != "yes"; then
41091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
41092 fi
0b78747f 41093 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
41094 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
41095 if test "$wxUSE_UNIVERSAL" != "yes"; then
41096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
41097 fi
41098 fi
41099 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
41100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 41101 fi
a848cd7e
SC
41102else
41103 SAMPLES_SUBDIRS="console"
41104fi
41105
41106
ceec2216 41107INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
41108-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
41109
41110if test "$GXX" = yes ; then
5294a27e
VZ
41111 CWARNINGS="-Wall"
41112 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
41113 fi
41114
41115EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
41116
0c3c69fc 41117CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 41118CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 41119CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 41120
95986553
DE
41121if test "x$MWCC" = "xyes"; then
41122
41123 CC="$CC -cwd source -I-"
41124 CXX="$CXX -cwd source -I-"
41125fi
41126
a848cd7e 41127
0c3c69fc 41128LIBS=`echo $LIBS`
a848cd7e
SC
41129EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
41130EXTRALIBS_XML="$EXPAT_LINK"
41131EXTRALIBS_HTML="$MSPACK_LINK"
41132EXTRALIBS_ODBC="$ODBC_LINK"
41133if test "$wxUSE_GUI" = "yes"; then
2e350179 41134 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
41135fi
41136if test "$wxUSE_OPENGL" = "yes"; then
41137 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
41138fi
41139
41140LDFLAGS="$LDFLAGS $PROFILE"
41141
41142if test "$wxUSE_GTK" = 1; then
41143 WXCONFIG_INCLUDE=
41144else
41145 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
41146fi
41147
41148WXCONFIG_EXTRALIBS="$LIBS"
41149
41150if test "$wxUSE_REGEX" = "builtin" ; then
74802184 41151 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
41152fi
41153if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 41154 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
41155fi
41156if test "$wxUSE_ODBC" = "builtin" ; then
74802184 41157 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
41158fi
41159if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 41160 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
41161fi
41162if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 41163 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
41164fi
41165if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 41166 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
41167fi
41168if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 41169 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
41170fi
41171
41172for i in $wxconfig_3rdparty ; do
74802184 41173 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
41174done
41175
41176
41177if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
41178 WXUNIV=1
41179else
41180 WXUNIV=0
41181fi
41182
41183
41184
41185
41186
41187
41188
41189
41190
41191if test $wxUSE_MONOLITHIC = "yes" ; then
41192 MONOLITHIC=1
41193else
41194 MONOLITHIC=0
41195fi
41196
41197if test $wxUSE_PLUGINS = "yes" ; then
41198 USE_PLUGINS=1
41199else
41200 USE_PLUGINS=0
41201fi
41202
41203if test $wxUSE_ODBC != "no" ; then
41204 USE_ODBC=1
41205else
41206 USE_ODBC=0
41207fi
41208
16358932
VZ
41209if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41210 USE_QA=1
41211else
41212 USE_QA=0
41213fi
41214
a848cd7e
SC
41215if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
41216 OFFICIAL_BUILD=1
41217else
41218 OFFICIAL_BUILD=0
41219fi
41220
41221
41222
41223
41224
41225
41226
41227
41228
41229
41230
41231
41232
41233
41234
41235
41236
41237
41238
ceec2216 41239
d1c38808 41240
a848cd7e
SC
41241
41242
41243TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
41244
41245
41246
41247
41248
41249
41250
41251
4d4ff94c
VZ
41252case "$TOOLKIT" in
41253 GTK)
41254 TOOLKIT_USER="GTK+"
41255 if test "$WXGTK20" = 1; then
41256 TOOLKIT_USER="$TOOLKIT_USER 2"
41257 fi
9a8f0513 41258 ;;
4d4ff94c
VZ
41259
41260 *)
41261 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 41262 ;;
4d4ff94c 41263esac
a848cd7e 41264
fb00f58d
JS
41265if test "$wxUSE_WINE" = "yes"; then
41266 BAKEFILE_FORCE_PLATFORM=win32
41267fi
41268
9a8f0513 41269
1e9e8aba
DE
41270
41271
a848cd7e
SC
41272 if test "x$BAKEFILE_HOST" = "x"; then
41273 BAKEFILE_HOST="${host}"
41274 fi
41275
41276 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
41277
41278 if test -n "$ac_tool_prefix"; then
41279 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
41280set dummy ${ac_tool_prefix}ranlib; ac_word=$2
41281echo "$as_me:$LINENO: checking for $ac_word" >&5
41282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41283if test "${ac_cv_prog_RANLIB+set}" = set; then
41284 echo $ECHO_N "(cached) $ECHO_C" >&6
41285else
41286 if test -n "$RANLIB"; then
41287 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
41288else
41289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41290for as_dir in $PATH
41291do
41292 IFS=$as_save_IFS
41293 test -z "$as_dir" && as_dir=.
41294 for ac_exec_ext in '' $ac_executable_extensions; do
41295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41296 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
41297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41298 break 2
41299 fi
41300done
41301done
41302
41303fi
41304fi
41305RANLIB=$ac_cv_prog_RANLIB
41306if test -n "$RANLIB"; then
41307 echo "$as_me:$LINENO: result: $RANLIB" >&5
41308echo "${ECHO_T}$RANLIB" >&6
41309else
41310 echo "$as_me:$LINENO: result: no" >&5
41311echo "${ECHO_T}no" >&6
41312fi
41313
41314fi
41315if test -z "$ac_cv_prog_RANLIB"; then
41316 ac_ct_RANLIB=$RANLIB
41317 # Extract the first word of "ranlib", so it can be a program name with args.
41318set dummy ranlib; ac_word=$2
41319echo "$as_me:$LINENO: checking for $ac_word" >&5
41320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41321if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41322 echo $ECHO_N "(cached) $ECHO_C" >&6
41323else
41324 if test -n "$ac_ct_RANLIB"; then
41325 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41326else
41327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41328for as_dir in $PATH
41329do
41330 IFS=$as_save_IFS
41331 test -z "$as_dir" && as_dir=.
41332 for ac_exec_ext in '' $ac_executable_extensions; do
41333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41334 ac_cv_prog_ac_ct_RANLIB="ranlib"
41335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41336 break 2
41337 fi
41338done
41339done
41340
41341 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41342fi
41343fi
41344ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41345if test -n "$ac_ct_RANLIB"; then
41346 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41347echo "${ECHO_T}$ac_ct_RANLIB" >&6
41348else
41349 echo "$as_me:$LINENO: result: no" >&5
41350echo "${ECHO_T}no" >&6
41351fi
41352
41353 RANLIB=$ac_ct_RANLIB
41354else
41355 RANLIB="$ac_cv_prog_RANLIB"
41356fi
41357
41358 # Find a good install program. We prefer a C program (faster),
41359# so one script is as good as another. But avoid the broken or
41360# incompatible versions:
41361# SysV /etc/install, /usr/sbin/install
41362# SunOS /usr/etc/install
41363# IRIX /sbin/install
41364# AIX /bin/install
41365# AmigaOS /C/install, which installs bootblocks on floppy discs
41366# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
41367# AFS /usr/afsws/bin/install, which mishandles nonexistent args
41368# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 41369# OS/2's system install, which has a completely different semantic
a848cd7e
SC
41370# ./install, which can be erroneously created by make from ./install.sh.
41371echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
41372echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
41373if test -z "$INSTALL"; then
41374if test "${ac_cv_path_install+set}" = set; then
41375 echo $ECHO_N "(cached) $ECHO_C" >&6
41376else
41377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41378for as_dir in $PATH
41379do
41380 IFS=$as_save_IFS
41381 test -z "$as_dir" && as_dir=.
41382 # Account for people who put trailing slashes in PATH elements.
41383case $as_dir/ in
41384 ./ | .// | /cC/* | \
41385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 41386 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
41387 /usr/ucb/* ) ;;
41388 *)
41389 # OSF1 and SCO ODT 3.0 have their own names for install.
41390 # Don't use installbsd from OSF since it installs stuff as root
41391 # by default.
41392 for ac_prog in ginstall scoinst install; do
41393 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
41394 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
41395 if test $ac_prog = install &&
41396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41397 # AIX install. It has an incompatible calling convention.
41398 :
41399 elif test $ac_prog = install &&
41400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41401 # program-specific install script used by HP pwplus--don't use.
41402 :
41403 else
41404 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
41405 break 3
41406 fi
41407 fi
a848cd7e
SC
41408 done
41409 done
41410 ;;
41411esac
41412done
41413
41414
41415fi
41416 if test "${ac_cv_path_install+set}" = set; then
41417 INSTALL=$ac_cv_path_install
41418 else
41419 # As a last resort, use the slow shell script. We don't cache a
41420 # path for INSTALL within a source directory, because that will
41421 # break other packages using the cache if that directory is
41422 # removed, or if the path is relative.
41423 INSTALL=$ac_install_sh
41424 fi
41425fi
41426echo "$as_me:$LINENO: result: $INSTALL" >&5
41427echo "${ECHO_T}$INSTALL" >&6
41428
41429# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
41430# It thinks the first close brace ends the variable substitution.
41431test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
41432
41433test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
41434
41435test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
41436
41437 echo "$as_me:$LINENO: checking whether ln -s works" >&5
41438echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
41439LN_S=$as_ln_s
41440if test "$LN_S" = "ln -s"; then
41441 echo "$as_me:$LINENO: result: yes" >&5
41442echo "${ECHO_T}yes" >&6
41443else
41444 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41445echo "${ECHO_T}no, using $LN_S" >&6
41446fi
41447
41448
41449 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41450echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41451set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41452if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41453 echo $ECHO_N "(cached) $ECHO_C" >&6
41454else
41455 cat >conftest.make <<\_ACEOF
41456all:
41457 @echo 'ac_maketemp="$(MAKE)"'
41458_ACEOF
41459# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41460eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41461if test -n "$ac_maketemp"; then
41462 eval ac_cv_prog_make_${ac_make}_set=yes
41463else
41464 eval ac_cv_prog_make_${ac_make}_set=no
41465fi
41466rm -f conftest.make
41467fi
41468if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41469 echo "$as_me:$LINENO: result: yes" >&5
41470echo "${ECHO_T}yes" >&6
41471 SET_MAKE=
41472else
41473 echo "$as_me:$LINENO: result: no" >&5
41474echo "${ECHO_T}no" >&6
41475 SET_MAKE="MAKE=${MAKE-make}"
41476fi
41477
41478
41479
41480 if test -n "$ac_tool_prefix"; then
41481 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41482set dummy ${ac_tool_prefix}ar; ac_word=$2
41483echo "$as_me:$LINENO: checking for $ac_word" >&5
41484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41485if test "${ac_cv_prog_AR+set}" = set; then
41486 echo $ECHO_N "(cached) $ECHO_C" >&6
41487else
41488 if test -n "$AR"; then
41489 ac_cv_prog_AR="$AR" # Let the user override the test.
41490else
41491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41492for as_dir in $PATH
41493do
41494 IFS=$as_save_IFS
41495 test -z "$as_dir" && as_dir=.
41496 for ac_exec_ext in '' $ac_executable_extensions; do
41497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41498 ac_cv_prog_AR="${ac_tool_prefix}ar"
41499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41500 break 2
41501 fi
41502done
41503done
41504
41505fi
41506fi
41507AR=$ac_cv_prog_AR
41508if test -n "$AR"; then
41509 echo "$as_me:$LINENO: result: $AR" >&5
41510echo "${ECHO_T}$AR" >&6
41511else
41512 echo "$as_me:$LINENO: result: no" >&5
41513echo "${ECHO_T}no" >&6
41514fi
41515
41516fi
41517if test -z "$ac_cv_prog_AR"; then
41518 ac_ct_AR=$AR
41519 # Extract the first word of "ar", so it can be a program name with args.
41520set dummy ar; ac_word=$2
41521echo "$as_me:$LINENO: checking for $ac_word" >&5
41522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41523if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41524 echo $ECHO_N "(cached) $ECHO_C" >&6
41525else
41526 if test -n "$ac_ct_AR"; then
41527 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41528else
41529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41530for as_dir in $PATH
41531do
41532 IFS=$as_save_IFS
41533 test -z "$as_dir" && as_dir=.
41534 for ac_exec_ext in '' $ac_executable_extensions; do
41535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41536 ac_cv_prog_ac_ct_AR="ar"
41537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41538 break 2
41539 fi
41540done
41541done
41542
41543 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41544fi
41545fi
41546ac_ct_AR=$ac_cv_prog_ac_ct_AR
41547if test -n "$ac_ct_AR"; then
41548 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41549echo "${ECHO_T}$ac_ct_AR" >&6
41550else
41551 echo "$as_me:$LINENO: result: no" >&5
41552echo "${ECHO_T}no" >&6
41553fi
41554
41555 AR=$ac_ct_AR
41556else
41557 AR="$ac_cv_prog_AR"
41558fi
41559
41560 if test -n "$ac_tool_prefix"; then
41561 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41562set dummy ${ac_tool_prefix}strip; ac_word=$2
41563echo "$as_me:$LINENO: checking for $ac_word" >&5
41564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41565if test "${ac_cv_prog_STRIP+set}" = set; then
41566 echo $ECHO_N "(cached) $ECHO_C" >&6
41567else
41568 if test -n "$STRIP"; then
41569 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41570else
41571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41572for as_dir in $PATH
41573do
41574 IFS=$as_save_IFS
41575 test -z "$as_dir" && as_dir=.
41576 for ac_exec_ext in '' $ac_executable_extensions; do
41577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41578 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41580 break 2
41581 fi
41582done
41583done
41584
41585fi
41586fi
41587STRIP=$ac_cv_prog_STRIP
41588if test -n "$STRIP"; then
41589 echo "$as_me:$LINENO: result: $STRIP" >&5
41590echo "${ECHO_T}$STRIP" >&6
41591else
41592 echo "$as_me:$LINENO: result: no" >&5
41593echo "${ECHO_T}no" >&6
41594fi
41595
41596fi
41597if test -z "$ac_cv_prog_STRIP"; then
41598 ac_ct_STRIP=$STRIP
41599 # Extract the first word of "strip", so it can be a program name with args.
41600set dummy strip; ac_word=$2
41601echo "$as_me:$LINENO: checking for $ac_word" >&5
41602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41603if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41604 echo $ECHO_N "(cached) $ECHO_C" >&6
41605else
41606 if test -n "$ac_ct_STRIP"; then
41607 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41608else
41609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41610for as_dir in $PATH
41611do
41612 IFS=$as_save_IFS
41613 test -z "$as_dir" && as_dir=.
41614 for ac_exec_ext in '' $ac_executable_extensions; do
41615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41616 ac_cv_prog_ac_ct_STRIP="strip"
41617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41618 break 2
41619 fi
41620done
41621done
41622
41623 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41624fi
41625fi
41626ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41627if test -n "$ac_ct_STRIP"; then
41628 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41629echo "${ECHO_T}$ac_ct_STRIP" >&6
41630else
41631 echo "$as_me:$LINENO: result: no" >&5
41632echo "${ECHO_T}no" >&6
41633fi
41634
41635 STRIP=$ac_ct_STRIP
41636else
41637 STRIP="$ac_cv_prog_STRIP"
41638fi
41639
41640 if test -n "$ac_tool_prefix"; then
41641 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41642set dummy ${ac_tool_prefix}nm; ac_word=$2
41643echo "$as_me:$LINENO: checking for $ac_word" >&5
41644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41645if test "${ac_cv_prog_NM+set}" = set; then
41646 echo $ECHO_N "(cached) $ECHO_C" >&6
41647else
41648 if test -n "$NM"; then
41649 ac_cv_prog_NM="$NM" # Let the user override the test.
41650else
41651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41652for as_dir in $PATH
41653do
41654 IFS=$as_save_IFS
41655 test -z "$as_dir" && as_dir=.
41656 for ac_exec_ext in '' $ac_executable_extensions; do
41657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41658 ac_cv_prog_NM="${ac_tool_prefix}nm"
41659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41660 break 2
41661 fi
41662done
41663done
41664
41665fi
41666fi
41667NM=$ac_cv_prog_NM
41668if test -n "$NM"; then
41669 echo "$as_me:$LINENO: result: $NM" >&5
41670echo "${ECHO_T}$NM" >&6
41671else
41672 echo "$as_me:$LINENO: result: no" >&5
41673echo "${ECHO_T}no" >&6
41674fi
41675
41676fi
41677if test -z "$ac_cv_prog_NM"; then
41678 ac_ct_NM=$NM
41679 # Extract the first word of "nm", so it can be a program name with args.
41680set dummy nm; ac_word=$2
41681echo "$as_me:$LINENO: checking for $ac_word" >&5
41682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41683if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41684 echo $ECHO_N "(cached) $ECHO_C" >&6
41685else
41686 if test -n "$ac_ct_NM"; then
41687 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41688else
41689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41690for as_dir in $PATH
41691do
41692 IFS=$as_save_IFS
41693 test -z "$as_dir" && as_dir=.
41694 for ac_exec_ext in '' $ac_executable_extensions; do
41695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41696 ac_cv_prog_ac_ct_NM="nm"
41697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41698 break 2
41699 fi
41700done
41701done
41702
41703 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41704fi
41705fi
41706ac_ct_NM=$ac_cv_prog_ac_ct_NM
41707if test -n "$ac_ct_NM"; then
41708 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41709echo "${ECHO_T}$ac_ct_NM" >&6
41710else
41711 echo "$as_me:$LINENO: result: no" >&5
41712echo "${ECHO_T}no" >&6
41713fi
41714
41715 NM=$ac_ct_NM
41716else
41717 NM="$ac_cv_prog_NM"
41718fi
41719
41720
41721 case ${BAKEFILE_HOST} in
41722 *-hp-hpux* )
1e9e8aba 41723 INSTALL_DIR="mkdir -p"
a848cd7e
SC
41724 ;;
41725 *) INSTALL_DIR="$INSTALL -d"
41726 ;;
41727 esac
41728
41729
41730 LDFLAGS_GUI=
41731 case ${BAKEFILE_HOST} in
41732 *-*-cygwin* | *-*-mingw32* )
41733 LDFLAGS_GUI="-mwindows"
41734 esac
41735
41736
41737 fi
41738
41739 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41740echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41741if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41742 echo $ECHO_N "(cached) $ECHO_C" >&6
41743else
41744
41745 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41746 egrep -s GNU > /dev/null); then
41747 bakefile_cv_prog_makeisgnu="yes"
41748 else
41749 bakefile_cv_prog_makeisgnu="no"
41750 fi
41751
41752fi
41753echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41754echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41755
41756 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41757 IF_GNU_MAKE=""
41758 else
41759 IF_GNU_MAKE="#"
41760 fi
41761
41762
41763
41764 PLATFORM_UNIX=0
41765 PLATFORM_WIN32=0
41766 PLATFORM_MSDOS=0
41767 PLATFORM_MAC=0
1e9e8aba 41768 PLATFORM_MACOS=0
a848cd7e
SC
41769 PLATFORM_MACOSX=0
41770 PLATFORM_OS2=0
1e9e8aba 41771 PLATFORM_BEOS=0
a848cd7e
SC
41772
41773 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41774 case "${BAKEFILE_HOST}" in
41775 *-*-cygwin* | *-*-mingw32* )
41776 PLATFORM_WIN32=1
41777 ;;
41778 *-pc-msdosdjgpp )
41779 PLATFORM_MSDOS=1
41780 ;;
41781 *-pc-os2_emx | *-pc-os2-emx )
41782 PLATFORM_OS2=1
41783 ;;
41784 powerpc-*-darwin* )
41785 PLATFORM_MAC=1
41786 PLATFORM_MACOSX=1
41787 ;;
1e9e8aba
DE
41788 *-*-beos* )
41789 PLATFORM_BEOS=1
41790 ;;
41791 powerpc-apple-macos* )
41792 PLATFORM_MAC=1
41793 PLATFORM_MACOS=1
41794 ;;
a848cd7e
SC
41795 * )
41796 PLATFORM_UNIX=1
41797 ;;
41798 esac
41799 else
41800 case "$BAKEFILE_FORCE_PLATFORM" in
41801 win32 )
41802 PLATFORM_WIN32=1
41803 ;;
41804 msdos )
41805 PLATFORM_MSDOS=1
41806 ;;
41807 os2 )
41808 PLATFORM_OS2=1
41809 ;;
41810 darwin )
41811 PLATFORM_MAC=1
41812 PLATFORM_MACOSX=1
41813 ;;
41814 unix )
41815 PLATFORM_UNIX=1
41816 ;;
1e9e8aba
DE
41817 beos )
41818 PLATFORM_BEOS=1
41819 ;;
a848cd7e
SC
41820 * )
41821 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41822echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41823 { (exit 1); exit 1; }; }
41824 ;;
41825 esac
41826 fi
41827
41828
41829
41830
41831
41832
41833
41834
41835
1e9e8aba
DE
41836
41837
a848cd7e
SC
41838 # Check whether --enable-omf or --disable-omf was given.
41839if test "${enable_omf+set}" = set; then
41840 enableval="$enable_omf"
41841 bk_os2_use_omf="$enableval"
41842fi;
41843
41844 case "${BAKEFILE_HOST}" in
41845 *-*-darwin* )
41846 CFLAGS="$CFLAGS -fno-common"
41847 CXXFLAGS="$CXXFLAGS -fno-common"
41848 ;;
41849
41850 *-pc-os2_emx | *-pc-os2-emx )
41851 if test "x$bk_os2_use_omf" = "xyes" ; then
41852 AR=emxomfar
41853 RANLIB=:
41854 LDFLAGS="-Zomf $LDFLAGS"
41855 CFLAGS="-Zomf $CFLAGS"
41856 CXXFLAGS="-Zomf $CXXFLAGS"
41857 OS2_LIBEXT="lib"
41858 else
41859 OS2_LIBEXT="a"
41860 fi
41861 ;;
1e9e8aba
DE
41862
41863 i*86-*-beos* )
41864 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41865 ;;
a848cd7e
SC
41866 esac
41867
41868
41869 SO_SUFFIX="so"
41870 SO_SUFFIX_MODULE="so"
41871 EXEEXT=""
41872 LIBPREFIX="lib"
41873 LIBEXT=".a"
41874 DLLPREFIX="lib"
41875 DLLPREFIX_MODULE=""
41876 DLLIMP_SUFFIX=""
41877
41878 case "${BAKEFILE_HOST}" in
41879 *-hp-hpux* )
41880 SO_SUFFIX="sl"
41881 SO_SUFFIX_MODULE="sl"
41882 ;;
41883 *-*-aix* )
41884 SO_SUFFIX="a"
41885 SO_SUFFIX_MODULE="a"
41886 ;;
41887 *-*-cygwin* | *-*-mingw32* )
41888 SO_SUFFIX="dll"
41889 SO_SUFFIX_MODULE="dll"
41890 DLLIMP_SUFFIX="dll.a"
41891 EXEEXT=".exe"
41892 DLLPREFIX=""
41893 ;;
41894 *-pc-msdosdjgpp )
41895 EXEEXT=".exe"
41896 DLLPREFIX=""
41897 ;;
41898 *-pc-os2_emx | *-pc-os2-emx )
41899 SO_SUFFIX="dll"
41900 SO_SUFFIX_MODULE="dll"
41901 DLLIMP_SUFFIX=$OS2_LIBEXT
41902 EXEEXT=".exe"
41903 DLLPREFIX=""
41904 LIBPREFIX=""
41905 LIBEXT=".$OS2_LIBEXT"
41906 ;;
41907 powerpc-*-darwin* )
41908 SO_SUFFIX="dylib"
41909 SO_SUFFIX_MODULE="bundle"
41910 ;;
41911 esac
41912
41913 if test "x$DLLIMP_SUFFIX" = "x" ; then
41914 DLLIMP_SUFFIX="$SO_SUFFIX"
41915 fi
41916
41917
41918
41919
41920
41921
41922
41923
41924
41925
41926
1e9e8aba
DE
41927 PIC_FLAG=""
41928 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41929 PIC_FLAG="-fPIC"
41930 fi
41931
1e9e8aba
DE
41932 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41933 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41934
a848cd7e
SC
41935 case "${BAKEFILE_HOST}" in
41936 *-hp-hpux* )
1e9e8aba 41937 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41938 LDFLAGS="$LDFLAGS -L/usr/lib"
41939
41940 SHARED_LD_CC="${CC} -b -o"
41941 SHARED_LD_CXX="${CXX} -b -o"
41942 PIC_FLAG="+Z"
41943 fi
41944 ;;
41945
41946 *-*-linux* )
41947 if test "x$GCC" != "xyes"; then
41948 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41949echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41950if test "${bakefile_cv_prog_icc+set}" = set; then
41951 echo $ECHO_N "(cached) $ECHO_C" >&6
41952else
41953
41954 cat >conftest.$ac_ext <<_ACEOF
41955/* confdefs.h. */
41956_ACEOF
41957cat confdefs.h >>conftest.$ac_ext
41958cat >>conftest.$ac_ext <<_ACEOF
41959/* end confdefs.h. */
41960
41961int
41962main ()
41963{
41964
41965 #ifndef __INTEL_COMPILER
41966 #error Not icc
41967 #endif
41968
41969 ;
41970 return 0;
41971}
41972_ACEOF
41973rm -f conftest.$ac_objext
41974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41975 (eval $ac_compile) 2>conftest.er1
a848cd7e 41976 ac_status=$?
ac1cb8d3
VS
41977 grep -v '^ *+' conftest.er1 >conftest.err
41978 rm -f conftest.er1
41979 cat conftest.err >&5
a848cd7e
SC
41980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41981 (exit $ac_status); } &&
fb00f58d
JS
41982 { ac_try='test -z "$ac_c_werror_flag"
41983 || test ! -s conftest.err'
ac1cb8d3
VS
41984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41985 (eval $ac_try) 2>&5
41986 ac_status=$?
41987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41988 (exit $ac_status); }; } &&
41989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41991 (eval $ac_try) 2>&5
41992 ac_status=$?
41993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41994 (exit $ac_status); }; }; then
41995 bakefile_cv_prog_icc=yes
41996else
41997 echo "$as_me: failed program was:" >&5
41998sed 's/^/| /' conftest.$ac_ext >&5
41999
42000bakefile_cv_prog_icc=no
42001
42002fi
ac1cb8d3 42003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42004
42005fi
42006echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
42007echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
42008 if test "$bakefile_cv_prog_icc" = "yes"; then
42009 PIC_FLAG="-KPIC"
42010 fi
42011 fi
42012 ;;
42013
42014 *-*-solaris2* )
42015 if test "x$GCC" != xyes ; then
42016 SHARED_LD_CC="${CC} -G -o"
42017 SHARED_LD_CXX="${CXX} -G -o"
42018 PIC_FLAG="-KPIC"
42019 fi
42020 ;;
42021
42022 *-*-darwin* )
42023
42024 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
42025echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
42026if test "${wx_cv_gcc31+set}" = set; then
42027 echo $ECHO_N "(cached) $ECHO_C" >&6
42028else
42029
42030 cat >conftest.$ac_ext <<_ACEOF
42031/* confdefs.h. */
42032_ACEOF
42033cat confdefs.h >>conftest.$ac_ext
42034cat >>conftest.$ac_ext <<_ACEOF
42035/* end confdefs.h. */
42036
42037int
42038main ()
42039{
42040
42041 #if (__GNUC__ < 3) || \
42042 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
42043 #error old gcc
42044 #endif
42045
42046 ;
42047 return 0;
42048}
42049_ACEOF
42050rm -f conftest.$ac_objext
42051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42052 (eval $ac_compile) 2>conftest.er1
a848cd7e 42053 ac_status=$?
ac1cb8d3
VS
42054 grep -v '^ *+' conftest.er1 >conftest.err
42055 rm -f conftest.er1
42056 cat conftest.err >&5
a848cd7e
SC
42057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42058 (exit $ac_status); } &&
fb00f58d
JS
42059 { ac_try='test -z "$ac_c_werror_flag"
42060 || test ! -s conftest.err'
ac1cb8d3
VS
42061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42062 (eval $ac_try) 2>&5
42063 ac_status=$?
42064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42065 (exit $ac_status); }; } &&
42066 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42068 (eval $ac_try) 2>&5
42069 ac_status=$?
42070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42071 (exit $ac_status); }; }; then
42072
42073 wx_cv_gcc31=yes
42074
42075else
42076 echo "$as_me: failed program was:" >&5
42077sed 's/^/| /' conftest.$ac_ext >&5
42078
42079
42080 wx_cv_gcc31=no
42081
42082
42083fi
ac1cb8d3 42084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42085
42086fi
42087echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
42088echo "${ECHO_T}$wx_cv_gcc31" >&6
42089 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
42090
42091D='$'
42092cat <<EOF >shared-ld-sh
a848cd7e
SC
42093#!/bin/sh
42094#-----------------------------------------------------------------------------
42095#-- Name: distrib/mac/shared-ld-sh
42096#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
42097#-- Author: Gilles Depeyrot
42098#-- Copyright: (c) 2002 Gilles Depeyrot
42099#-- Licence: any use permitted
42100#-----------------------------------------------------------------------------
42101
42102verbose=0
42103args=""
42104objects=""
42105linking_flag="-dynamiclib"
42106
473276a9
VS
42107while test ${D}# -gt 0; do
42108 case ${D}1 in
a848cd7e
SC
42109
42110 -v)
42111 verbose=1
42112 ;;
42113
42114 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
42115 # collect these options and values
473276a9 42116 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
42117 shift
42118 ;;
42119
df1b269d 42120 -l*|-L*|-Wl,*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 42121 # collect these options
473276a9 42122 args="${D}{args} ${D}1"
a848cd7e
SC
42123 ;;
42124
42125 -dynamiclib|-bundle)
473276a9 42126 linking_flag="${D}1"
a848cd7e
SC
42127 ;;
42128
42129 -*)
473276a9 42130 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
42131 exit 1
42132 ;;
42133
42134 *.o | *.a | *.dylib)
42135 # collect object files
473276a9 42136 objects="${D}{objects} ${D}1"
a848cd7e
SC
42137 ;;
42138
42139 *)
473276a9 42140 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
42141 exit 1
42142 ;;
42143
42144 esac
42145 shift
42146done
42147
42148#
42149# Link one module containing all the others
42150#
473276a9
VS
42151if test ${D}{verbose} = 1; then
42152 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 42153fi
473276a9
VS
42154c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
42155status=${D}?
42156if test ${D}{status} != 0; then
42157 exit ${D}{status}
a848cd7e
SC
42158fi
42159
42160#
42161# Link the shared library from the single module created
42162#
473276a9
VS
42163if test ${D}{verbose} = 1; then
42164 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 42165fi
473276a9
VS
42166c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
42167status=${D}?
42168if test ${D}{status} != 0; then
42169 exit ${D}{status}
a848cd7e
SC
42170fi
42171
42172#
42173# Remove intermediate module
42174#
473276a9 42175rm -f master.${D}${D}.o
a848cd7e
SC
42176
42177exit 0
42178EOF
473276a9 42179
a848cd7e
SC
42180 chmod +x shared-ld-sh
42181
42182 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
42183 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
42184 SHARED_LD_CXX="$SHARED_LD_CC"
42185 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
42186 else
42187 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
42188 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
42189 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
42190 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
42191 fi
42192
42193 PIC_FLAG="-dynamic -fPIC"
42194 ;;
42195
42196 *-*-aix* )
42197 if test "x$GCC" != "xyes"; then
42198 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
42199set dummy makeC++SharedLib; ac_word=$2
42200echo "$as_me:$LINENO: checking for $ac_word" >&5
42201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42202if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
42203 echo $ECHO_N "(cached) $ECHO_C" >&6
42204else
42205 if test -n "$AIX_CXX_LD"; then
42206 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
42207else
42208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42209for as_dir in $PATH
42210do
42211 IFS=$as_save_IFS
42212 test -z "$as_dir" && as_dir=.
42213 for ac_exec_ext in '' $ac_executable_extensions; do
42214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42215 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
42216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42217 break 2
42218 fi
42219done
42220done
42221
42222 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
42223fi
42224fi
42225AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
42226if test -n "$AIX_CXX_LD"; then
42227 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
42228echo "${ECHO_T}$AIX_CXX_LD" >&6
42229else
42230 echo "$as_me:$LINENO: result: no" >&5
42231echo "${ECHO_T}no" >&6
42232fi
42233
42234 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
42235 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
42236 fi
42237 ;;
42238
42239 *-*-beos* )
1e9e8aba
DE
42240 SHARED_LD_CC="${LD} -nostart -o"
42241 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
42242 ;;
42243
42244 *-*-irix* )
42245 if test "x$GCC" != "xyes"; then
42246 PIC_FLAG="-KPIC"
42247 fi
42248 ;;
42249
42250 *-*-cygwin* | *-*-mingw32* )
42251 PIC_FLAG=""
1e9e8aba
DE
42252 SHARED_LD_CC="\$(CC) -shared -o"
42253 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
42254 ;;
42255
42256 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
42257 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42258 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 42259 PIC_FLAG=""
473276a9
VS
42260
42261D='$'
42262cat <<EOF >dllar.sh
42263#!/bin/sh
42264#
42265# dllar - a tool to build both a .dll and an .a file
42266# from a set of object (.o) files for EMX/OS2.
42267#
42268# Written by Andrew Zabolotny, bit@freya.etu.ru
42269# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
42270#
42271# This script will accept a set of files on the command line.
42272# All the public symbols from the .o files will be exported into
42273# a .DEF file, then linker will be run (through gcc) against them to
42274# build a shared library consisting of all given .o files. All libraries
42275# (.a) will be first decompressed into component .o files then act as
42276# described above. You can optionally give a description (-d "description")
42277# which will be put into .DLL. To see the list of accepted options (as well
42278# as command-line format) simply run this program without options. The .DLL
42279# is built to be imported by name (there is no guarantee that new versions
42280# of the library you build will have same ordinals for same symbols).
42281#
42282# dllar is free software; you can redistribute it and/or modify
42283# it under the terms of the GNU General Public License as published by
42284# the Free Software Foundation; either version 2, or (at your option)
42285# any later version.
42286#
42287# dllar is distributed in the hope that it will be useful,
42288# but WITHOUT ANY WARRANTY; without even the implied warranty of
42289# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42290# GNU General Public License for more details.
42291#
42292# You should have received a copy of the GNU General Public License
42293# along with dllar; see the file COPYING. If not, write to the Free
42294# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42295# 02111-1307, USA.
42296
42297# To successfuly run this program you will need:
42298# - Current drive should have LFN support (HPFS, ext2, network, etc)
42299# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
42300# - gcc
42301# (used to build the .dll)
42302# - emxexp
42303# (used to create .def file from .o files)
42304# - emximp
42305# (used to create .a file from .def file)
42306# - GNU text utilites (cat, sort, uniq)
42307# used to process emxexp output
42308# - GNU file utilities (mv, rm)
42309# - GNU sed
42310# - lxlite (optional, see flag below)
42311# (used for general .dll cleanup)
42312#
42313
42314flag_USE_LXLITE=1;
42315
42316#
42317# helper functions
42318# basnam, variant of basename, which does _not_ remove the path, _iff_
42319# second argument (suffix to remove) is given
42320basnam(){
42321 case ${D}# in
42322 1)
1e9e8aba 42323 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
42324 ;;
42325 2)
42326 echo ${D}1 | sed 's/'${D}2'${D}//'
42327 ;;
42328 *)
42329 echo "error in basnam ${D}*"
42330 exit 8
42331 ;;
42332 esac
42333}
42334
42335# Cleanup temporary files and output
42336CleanUp() {
42337 cd ${D}curDir
42338 for i in ${D}inputFiles ; do
42339 case ${D}i in
42340 *!)
42341 rm -rf \`basnam ${D}i !\`
42342 ;;
42343 *)
42344 ;;
42345 esac
42346 done
42347
42348 # Kill result in case of failure as there is just to many stupid make/nmake
42349 # things out there which doesn't do this.
1e9e8aba 42350 if [ ${D}# -eq 0 ]; then
473276a9
VS
42351 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
42352 fi
42353}
42354
42355# Print usage and exit script with rc=1.
42356PrintHelp() {
b1d22ded
DE
42357 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
42358 echo ' [-name-mangler-script script.sh]'
42359 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
42360 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
42361 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 42362 echo ' [*.o] [*.a]'
473276a9
VS
42363 echo '*> "output_file" should have no extension.'
42364 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
42365 echo ' The import library name is derived from this and is set to "name".a,'
42366 echo ' unless overridden by -import'
42367 echo '*> "importlib_name" should have no extension.'
42368 echo ' If it has the .o, or .a extension, it is automatically removed.'
42369 echo ' This name is used as the import library name and may be longer and'
42370 echo ' more descriptive than the DLL name which has to follow the old '
42371 echo ' 8.3 convention of FAT.'
b1d22ded
DE
42372 echo '*> "script.sh may be given to override the output_file name by a'
42373 echo ' different name. It is mainly useful if the regular make process'
42374 echo ' of some package does not take into account OS/2 restriction of'
42375 echo ' DLL name lengths. It takes the importlib name as input and is'
42376 echo ' supposed to procude a shorter name as output. The script should'
42377 echo ' expect to get importlib_name without extension and should produce'
42378 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
42379 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
42380 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
42381 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
42382 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
42383 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
42384 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
42385 echo ' If the last character of a symbol is "*", all symbols beginning'
42386 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 42387 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 42388 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 42389 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 42390 echo ' C runtime DLLs.'
b1d22ded 42391 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
42392 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
42393 echo ' unchanged to GCC at the end of command line.'
42394 echo '*> If you create a DLL from a library and you do not specify -o,'
42395 echo ' the basename for DLL and import library will be set to library name,'
42396 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
42397 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
42398 echo ' library will be renamed into gcc_s.a.'
42399 echo '--------'
42400 echo 'Example:'
42401 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
42402 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
42403 CleanUp
42404 exit 1
42405}
42406
42407# Execute a command.
42408# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
42409# @Uses Whatever CleanUp() uses.
42410doCommand() {
42411 echo "${D}*"
42412 eval ${D}*
42413 rcCmd=${D}?
42414
1e9e8aba 42415 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
42416 echo "command failed, exit code="${D}rcCmd
42417 CleanUp
42418 exit ${D}rcCmd
42419 fi
42420}
42421
42422# main routine
42423# setup globals
42424cmdLine=${D}*
42425outFile=""
42426outimpFile=""
42427inputFiles=""
b1d22ded 42428renameScript=""
473276a9
VS
42429description=""
42430CC=gcc.exe
42431CFLAGS="-s -Zcrtdll"
42432EXTRA_CFLAGS=""
42433EXPORT_BY_ORDINALS=0
42434exclude_symbols=""
42435library_flags=""
42436curDir=\`pwd\`
42437curDirS=curDir
42438case ${D}curDirS in
42439*/)
42440 ;;
42441*)
42442 curDirS=${D}{curDirS}"/"
42443 ;;
42444esac
42445# Parse commandline
42446libsToLink=0
b1d22ded 42447omfLinking=0
1e9e8aba 42448while [ ${D}1 ]; do
473276a9
VS
42449 case ${D}1 in
42450 -ord*)
42451 EXPORT_BY_ORDINALS=1;
42452 ;;
42453 -o*)
42454 shift
42455 outFile=${D}1
42456 ;;
42457 -i*)
42458 shift
42459 outimpFile=${D}1
42460 ;;
b1d22ded
DE
42461 -name-mangler-script)
42462 shift
42463 renameScript=${D}1
42464 ;;
473276a9
VS
42465 -d*)
42466 shift
42467 description=${D}1
42468 ;;
42469 -f*)
42470 shift
42471 CFLAGS=${D}1
42472 ;;
42473 -c*)
42474 shift
42475 CC=${D}1
42476 ;;
42477 -h*)
42478 PrintHelp
42479 ;;
42480 -ex*)
42481 shift
42482 exclude_symbols=${D}{exclude_symbols}${D}1" "
42483 ;;
42484 -libf*)
42485 shift
42486 library_flags=${D}{library_flags}${D}1" "
42487 ;;
42488 -nocrt*)
42489 CFLAGS="-s"
42490 ;;
42491 -nolxl*)
42492 flag_USE_LXLITE=0
42493 ;;
42494 -* | /*)
42495 case ${D}1 in
42496 -L* | -l*)
42497 libsToLink=1
42498 ;;
b1d22ded
DE
42499 -Zomf)
42500 omfLinking=1
42501 ;;
473276a9
VS
42502 *)
42503 ;;
42504 esac
42505 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42506 ;;
b1d22ded
DE
42507 *.dll)
42508 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42509 if [ ${D}omfLinking -eq 1 ]; then
42510 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42511 else
42512 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42513 fi
42514 ;;
473276a9
VS
42515 *)
42516 found=0;
1e9e8aba 42517 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
42518 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42519 else
42520 for file in ${D}1 ; do
1e9e8aba 42521 if [ -f ${D}file ]; then
473276a9
VS
42522 inputFiles="${D}{inputFiles} ${D}file"
42523 found=1
42524 fi
42525 done
1e9e8aba 42526 if [ ${D}found -eq 0 ]; then
473276a9
VS
42527 echo "ERROR: No file(s) found: "${D}1
42528 exit 8
42529 fi
42530 fi
42531 ;;
42532 esac
42533 shift
42534done # iterate cmdline words
42535
42536#
1e9e8aba 42537if [ -z "${D}inputFiles" ]; then
473276a9
VS
42538 echo "dllar: no input files"
42539 PrintHelp
42540fi
42541
42542# Now extract all .o files from .a files
42543newInputFiles=""
42544for file in ${D}inputFiles ; do
42545 case ${D}file in
42546 *.a | *.lib)
42547 case ${D}file in
42548 *.a)
42549 suffix=".a"
42550 AR="ar"
42551 ;;
42552 *.lib)
42553 suffix=".lib"
42554 AR="emxomfar"
42555 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42556 ;;
42557 *)
42558 ;;
42559 esac
42560 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42561 mkdir ${D}dirname
1e9e8aba 42562 if [ ${D}? -ne 0 ]; then
473276a9
VS
42563 echo "Failed to create subdirectory ./${D}dirname"
42564 CleanUp
42565 exit 8;
42566 fi
42567 # Append '!' to indicate archive
42568 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42569 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42570 cd ${D}curDir
42571 found=0;
42572 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42573 if [ -f ${D}subfile ]; then
473276a9 42574 found=1
1e9e8aba 42575 if [ -s ${D}subfile ]; then
473276a9
VS
42576 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42577 newInputFiles="${D}newInputFiles ${D}subfile"
42578 fi
42579 fi
42580 done
1e9e8aba
DE
42581 if [ ${D}found -eq 0 ]; then
42582 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42583 fi
42584 ;;
42585 *)
42586 newInputFiles="${D}{newInputFiles} ${D}file"
42587 ;;
42588 esac
42589done
42590inputFiles="${D}newInputFiles"
42591
42592# Output filename(s).
42593do_backup=0;
1e9e8aba 42594if [ -z ${D}outFile ]; then
473276a9
VS
42595 do_backup=1;
42596 set outFile ${D}inputFiles; outFile=${D}2
42597fi
42598
42599# If it is an archive, remove the '!' and the '_%' suffixes
42600case ${D}outFile in
42601*_%!)
42602 outFile=\`basnam ${D}outFile _%!\`
42603 ;;
42604*)
42605 ;;
42606esac
42607case ${D}outFile in
42608*.dll)
42609 outFile=\`basnam ${D}outFile .dll\`
42610 ;;
42611*.DLL)
42612 outFile=\`basnam ${D}outFile .DLL\`
42613 ;;
42614*.o)
42615 outFile=\`basnam ${D}outFile .o\`
42616 ;;
42617*.obj)
42618 outFile=\`basnam ${D}outFile .obj\`
42619 ;;
42620*.a)
42621 outFile=\`basnam ${D}outFile .a\`
42622 ;;
42623*.lib)
42624 outFile=\`basnam ${D}outFile .lib\`
42625 ;;
42626*)
42627 ;;
42628esac
42629case ${D}outimpFile in
42630*.a)
42631 outimpFile=\`basnam ${D}outimpFile .a\`
42632 ;;
42633*.lib)
42634 outimpFile=\`basnam ${D}outimpFile .lib\`
42635 ;;
42636*)
42637 ;;
42638esac
1e9e8aba 42639if [ -z ${D}outimpFile ]; then
473276a9
VS
42640 outimpFile=${D}outFile
42641fi
42642defFile="${D}{outFile}.def"
42643arcFile="${D}{outimpFile}.a"
42644arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
42645
42646#create ${D}dllFile as something matching 8.3 restrictions,
42647if [ -z ${D}renameScript ] ; then
42648 dllFile="${D}outFile"
42649else
42650 dllFile=\`${D}renameScript ${D}outimpFile\`
42651fi
473276a9 42652
1e9e8aba
DE
42653if [ ${D}do_backup -ne 0 ] ; then
42654 if [ -f ${D}arcFile ] ; then
473276a9
VS
42655 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42656 fi
1e9e8aba 42657 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
42658 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42659 fi
42660fi
42661
42662# Extract public symbols from all the object files.
42663tmpdefFile=${D}{defFile}_%
42664rm -f ${D}tmpdefFile
42665for file in ${D}inputFiles ; do
42666 case ${D}file in
42667 *!)
42668 ;;
42669 *)
42670 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42671 ;;
42672 esac
42673done
42674
42675# Create the def file.
42676rm -f ${D}defFile
42677echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
42678dllFile="${D}{dllFile}.dll"
42679if [ ! -z ${D}description ]; then
1e9e8aba 42680 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
42681fi
42682echo "EXPORTS" >> ${D}defFile
42683
42684doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42685grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42686
42687# Checks if the export is ok or not.
42688for word in ${D}exclude_symbols; do
42689 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42690 mv ${D}{tmpdefFile}% ${D}tmpdefFile
42691done
42692
42693
1e9e8aba
DE
42694if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42695 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
42696 sed '
42697 N
42698 : loop
1e9e8aba 42699 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
42700 t loop
42701 ' > ${D}{tmpdefFile}%
42702 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42703else
42704 rm -f ${D}{tmpdefFile}%
42705fi
42706cat ${D}tmpdefFile >> ${D}defFile
42707rm -f ${D}tmpdefFile
42708
42709# Do linking, create implib, and apply lxlite.
42710gccCmdl="";
42711for file in ${D}inputFiles ; do
42712 case ${D}file in
42713 *!)
42714 ;;
42715 *)
42716 gccCmdl="${D}gccCmdl ${D}file"
42717 ;;
42718 esac
42719done
42720doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42721touch "${D}{outFile}.dll"
42722
42723doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 42724if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 42725 add_flags="";
1e9e8aba 42726 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
42727 add_flags="-ynd"
42728 fi
42729 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42730fi
42731doCommand "emxomf -s -l ${D}arcFile"
42732
42733# Successful exit.
42734CleanUp 1
42735exit 0
42736EOF
42737
42738 chmod +x dllar.sh
a848cd7e
SC
42739 ;;
42740
1e9e8aba 42741 powerpc-apple-macos* | \
a848cd7e
SC
42742 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42743 *-*-sunos4* | \
42744 *-*-osf* | \
42745 *-*-dgux5* | \
47a7e797
MW
42746 *-*-sysv5* | \
42747 *-pc-msdosdjgpp )
a848cd7e
SC
42748 ;;
42749
42750 *)
42751 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42752echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42753 { (exit 1); exit 1; }; }
42754 esac
42755
2057db16
VS
42756 if test "x$PIC_FLAG" != "x" ; then
42757 PIC_FLAG="$PIC_FLAG -DPIC"
42758 fi
42759
a848cd7e
SC
42760 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42761 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42762 fi
42763 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42764 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42765 fi
42766
42767
42768
42769
42770
42771
42772
42773
42774 USE_SOVERSION=0
42775 USE_SOVERLINUX=0
42776 USE_SOVERSOLARIS=0
42777 USE_SOSYMLINKS=0
42778 USE_MACVERSION=0
42779 SONAME_FLAG=
42780
42781 case "${BAKEFILE_HOST}" in
b1d22ded 42782 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42783 SONAME_FLAG="-Wl,-soname,"
42784 USE_SOVERSION=1
42785 USE_SOVERLINUX=1
42786 USE_SOSYMLINKS=1
42787 ;;
42788
a848cd7e
SC
42789 *-*-solaris2* )
42790 SONAME_FLAG="-h "
42791 USE_SOVERSION=1
42792 USE_SOVERSOLARIS=1
42793 USE_SOSYMLINKS=1
42794 ;;
42795
42796 *-*-darwin* )
42797 USE_MACVERSION=1
42798 USE_SOVERSION=1
42799 USE_SOSYMLINKS=1
42800 ;;
42801 esac
42802
42803
42804
42805
42806
42807
42808
42809
42810
42811 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42812echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42813 DEPS_TRACKING=0
42814
42815 if test "x$GCC" = "xyes"; then
42816 DEPSMODE=gcc
42817 DEPS_TRACKING=1
42818 case "${BAKEFILE_HOST}" in
42819 powerpc-*-darwin* )
42820 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42821 ;;
42822 * )
42823 DEPSFLAG_GCC="-MMD"
42824 ;;
42825 esac
42826 echo "$as_me:$LINENO: result: gcc" >&5
42827echo "${ECHO_T}gcc" >&6
b1d22ded 42828 elif test "x$MWCC" = "xyes"; then
81f90336 42829 DEPSMODE=mwcc
b1d22ded 42830 DEPS_TRACKING=1
81f90336 42831 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42832 echo "$as_me:$LINENO: result: mwcc" >&5
42833echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42834 else
42835 echo "$as_me:$LINENO: result: none" >&5
42836echo "${ECHO_T}none" >&6
42837 fi
42838
42839 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42840
42841D='$'
42842cat <<EOF >bk-deps
a848cd7e
SC
42843#!/bin/sh
42844
42845# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42846# script. It is used to track C/C++ files dependencies in portable way.
42847#
42848# Permission is given to use this file in any way.
42849
473276a9 42850DEPSMODE=${DEPSMODE}
a848cd7e 42851DEPSDIR=.deps
473276a9 42852DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42853DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42854
473276a9 42855mkdir -p ${D}DEPSDIR
a848cd7e 42856
473276a9
VS
42857if test ${D}DEPSMODE = gcc ; then
42858 ${D}* ${D}{DEPSFLAG_GCC}
42859 status=${D}?
42860 if test ${D}{status} != 0 ; then
42861 exit ${D}{status}
a848cd7e
SC
42862 fi
42863 # move created file to the location we want it in:
473276a9
VS
42864 while test ${D}# -gt 0; do
42865 case "${D}1" in
a848cd7e
SC
42866 -o )
42867 shift
473276a9 42868 objfile=${D}1
a848cd7e
SC
42869 ;;
42870 -* )
42871 ;;
42872 * )
473276a9 42873 srcfile=${D}1
a848cd7e
SC
42874 ;;
42875 esac
42876 shift
42877 done
1e9e8aba
DE
42878 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42879 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42880 if test -f ${D}depfile ; then
42881 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42882 rm -f ${D}depfile
a848cd7e 42883 else
1e9e8aba 42884 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42885 if test -f ${D}depfile ; then
42886 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42887 rm -f ${D}depfile
a848cd7e
SC
42888 fi
42889 fi
42890 exit 0
81f90336
MW
42891elif test ${D}DEPSMODE = mwcc ; then
42892 ${D}*
42893 status=${D}?
42894 if test ${D}{status} != 0 ; then
42895 exit ${D}{status}
42896 fi
42897 # Run mwcc again with -MM and redirect into the dep file we want
42898 # NOTE: We can't use shift here because we need ${D}* to be valid
42899 prevarg=
42900 for arg in ${D}* ; do
42901 if test "${D}prevarg" = "-o"; then
42902 objfile=${D}arg
42903 else
42904 case "${D}arg" in
42905 -* )
42906 ;;
42907 * )
42908 srcfile=${D}arg
42909 ;;
42910 esac
42911 fi
42912 prevarg="${D}arg"
42913 done
42914 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42915 exit 0
a848cd7e 42916else
473276a9
VS
42917 ${D}*
42918 exit ${D}?
a848cd7e
SC
42919fi
42920EOF
473276a9 42921
a848cd7e
SC
42922 chmod +x bk-deps
42923 fi
42924
42925
42926
42927
42928 RESCOMP=
42929 SETFILE=
42930
42931 case ${BAKEFILE_HOST} in
42932 *-*-cygwin* | *-*-mingw32* )
42933 if test "$build" != "$host" ; then
42934 RESCOMP=$host_alias-windres
42935 else
42936 # Extract the first word of "windres", so it can be a program name with args.
42937set dummy windres; ac_word=$2
42938echo "$as_me:$LINENO: checking for $ac_word" >&5
42939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42940if test "${ac_cv_prog_RESCOMP+set}" = set; then
42941 echo $ECHO_N "(cached) $ECHO_C" >&6
42942else
42943 if test -n "$RESCOMP"; then
42944 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42945else
42946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42947for as_dir in $PATH
42948do
42949 IFS=$as_save_IFS
42950 test -z "$as_dir" && as_dir=.
42951 for ac_exec_ext in '' $ac_executable_extensions; do
42952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42953 ac_cv_prog_RESCOMP="windres"
42954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42955 break 2
42956 fi
42957done
42958done
42959
42960 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42961fi
42962fi
42963RESCOMP=$ac_cv_prog_RESCOMP
42964if test -n "$RESCOMP"; then
42965 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42966echo "${ECHO_T}$RESCOMP" >&6
42967else
42968 echo "$as_me:$LINENO: result: no" >&5
42969echo "${ECHO_T}no" >&6
42970fi
42971
42972 fi
42973 ;;
42974
1e9e8aba 42975 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42976 # Extract the first word of "Rez", so it can be a program name with args.
42977set dummy Rez; ac_word=$2
42978echo "$as_me:$LINENO: checking for $ac_word" >&5
42979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42980if test "${ac_cv_prog_RESCOMP+set}" = set; then
42981 echo $ECHO_N "(cached) $ECHO_C" >&6
42982else
42983 if test -n "$RESCOMP"; then
42984 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42985else
42986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42987for as_dir in $PATH
42988do
42989 IFS=$as_save_IFS
42990 test -z "$as_dir" && as_dir=.
42991 for ac_exec_ext in '' $ac_executable_extensions; do
42992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42993 ac_cv_prog_RESCOMP="Rez"
42994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42995 break 2
42996 fi
42997done
42998done
42999
43000 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
43001fi
43002fi
43003RESCOMP=$ac_cv_prog_RESCOMP
43004if test -n "$RESCOMP"; then
43005 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43006echo "${ECHO_T}$RESCOMP" >&6
43007else
43008 echo "$as_me:$LINENO: result: no" >&5
43009echo "${ECHO_T}no" >&6
43010fi
43011
43012 # Extract the first word of "SetFile", so it can be a program name with args.
43013set dummy SetFile; ac_word=$2
43014echo "$as_me:$LINENO: checking for $ac_word" >&5
43015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43016if test "${ac_cv_prog_SETFILE+set}" = set; then
43017 echo $ECHO_N "(cached) $ECHO_C" >&6
43018else
43019 if test -n "$SETFILE"; then
43020 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
43021else
43022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43023for as_dir in $PATH
43024do
43025 IFS=$as_save_IFS
43026 test -z "$as_dir" && as_dir=.
43027 for ac_exec_ext in '' $ac_executable_extensions; do
43028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43029 ac_cv_prog_SETFILE="SetFile"
43030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43031 break 2
43032 fi
43033done
43034done
43035
43036 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
43037fi
43038fi
43039SETFILE=$ac_cv_prog_SETFILE
43040if test -n "$SETFILE"; then
43041 echo "$as_me:$LINENO: result: $SETFILE" >&5
43042echo "${ECHO_T}$SETFILE" >&6
43043else
43044 echo "$as_me:$LINENO: result: no" >&5
43045echo "${ECHO_T}no" >&6
43046fi
43047
43048 ;;
43049 esac
43050
43051
43052
43053
43054
fbb7dfff 43055 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 43056
dcc1b6ad 43057
fbb7dfff 43058BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 43059
646b6ec1 43060
74b84332 43061
a848cd7e
SC
43062 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
43063if test "${enable_precomp_headers+set}" = set; then
43064 enableval="$enable_precomp_headers"
43065 bk_use_pch="$enableval"
43066fi;
43067
43068 GCC_PCH=0
43069
43070 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
43071 if test "x$GCC" = "xyes"; then
43072 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
43073echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
43074 cat >conftest.$ac_ext <<_ACEOF
43075/* confdefs.h. */
43076_ACEOF
43077cat confdefs.h >>conftest.$ac_ext
43078cat >>conftest.$ac_ext <<_ACEOF
43079/* end confdefs.h. */
43080
43081int
43082main ()
43083{
43084
43085 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
43086 #error "no pch support"
43087 #endif
43088 #if (__GNUC__ < 3)
43089 #error "no pch support"
43090 #endif
43091 #if (__GNUC__ == 3) && \
43092 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
43093 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
43094 #error "no pch support"
43095 #endif
43096
43097 ;
43098 return 0;
43099}
43100_ACEOF
43101rm -f conftest.$ac_objext
43102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43103 (eval $ac_compile) 2>conftest.er1
a848cd7e 43104 ac_status=$?
ac1cb8d3
VS
43105 grep -v '^ *+' conftest.er1 >conftest.err
43106 rm -f conftest.er1
43107 cat conftest.err >&5
a848cd7e
SC
43108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43109 (exit $ac_status); } &&
fb00f58d
JS
43110 { ac_try='test -z "$ac_c_werror_flag"
43111 || test ! -s conftest.err'
ac1cb8d3
VS
43112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43113 (eval $ac_try) 2>&5
43114 ac_status=$?
43115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43116 (exit $ac_status); }; } &&
43117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43119 (eval $ac_try) 2>&5
43120 ac_status=$?
43121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43122 (exit $ac_status); }; }; then
43123
43124 echo "$as_me:$LINENO: result: yes" >&5
43125echo "${ECHO_T}yes" >&6
a848cd7e
SC
43126 GCC_PCH=1
43127
43128else
43129 echo "$as_me: failed program was:" >&5
43130sed 's/^/| /' conftest.$ac_ext >&5
43131
43132
43133 echo "$as_me:$LINENO: result: no" >&5
43134echo "${ECHO_T}no" >&6
43135
43136fi
ac1cb8d3 43137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43138 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
43139
43140D='$'
43141cat <<EOF >bk-make-pch
a848cd7e
SC
43142#!/bin/sh
43143
43144# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43145# script. It is used to generated precompiled headers.
43146#
43147# Permission is given to use this file in any way.
43148
1e9e8aba
DE
43149outfile="${D}{1}"
43150header="${D}{2}"
a848cd7e
SC
43151shift
43152shift
43153
43154compiler=
43155headerfile=
1e9e8aba
DE
43156while test ${D}{#} -gt 0; do
43157 case "${D}{1}" in
a848cd7e 43158 -I* )
1e9e8aba
DE
43159 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
43160 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
43161 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
43162 fi
43163 ;;
43164 esac
1e9e8aba 43165 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
43166 shift
43167done
43168
1e9e8aba
DE
43169if test "x${D}{headerfile}" = "x" ; then
43170 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 43171else
1e9e8aba
DE
43172 if test -f ${D}{outfile} ; then
43173 rm -f ${D}{outfile}
a848cd7e 43174 else
1e9e8aba 43175 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 43176 fi
1e9e8aba 43177 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
43178 mkdir -p .deps
43179 # can do this because gcc is >= 3.4:
1e9e8aba
DE
43180 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
43181 exit ${D}{?}
a848cd7e
SC
43182fi
43183EOF
1e9e8aba 43184
a848cd7e
SC
43185 chmod +x bk-make-pch
43186 fi
43187 fi
43188 fi
43189
43190
43191
a848cd7e
SC
43192 COND_BUILD_DEBUG="#"
43193 if test "x$BUILD" = "xdebug" ; then
43194 COND_BUILD_DEBUG=""
43195 fi
43196
43197 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
43198 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
43199 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
43200 fi
43201
43202 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
43203 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
43204 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
43205 fi
43206
43207 COND_BUILD_DEBUG_UNICODE_0="#"
43208 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
43209 COND_BUILD_DEBUG_UNICODE_0=""
43210 fi
43211
43212 COND_BUILD_DEBUG_UNICODE_1="#"
43213 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
43214 COND_BUILD_DEBUG_UNICODE_1=""
43215 fi
43216
43217 COND_BUILD_RELEASE="#"
43218 if test "x$BUILD" = "xrelease" ; then
43219 COND_BUILD_RELEASE=""
43220 fi
43221
43222 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
43223 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
43224 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
43225 fi
43226
43227 COND_BUILD_RELEASE_UNICODE_0="#"
43228 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
43229 COND_BUILD_RELEASE_UNICODE_0=""
43230 fi
43231
43232 COND_BUILD_RELEASE_UNICODE_1="#"
43233 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
43234 COND_BUILD_RELEASE_UNICODE_1=""
43235 fi
43236
43237 COND_DEBUG_FLAG_1="#"
43238 if test "x$DEBUG_FLAG" = "x1" ; then
43239 COND_DEBUG_FLAG_1=""
43240 fi
43241
43242 COND_DEBUG_INFO_0="#"
43243 if test "x$DEBUG_INFO" = "x0" ; then
43244 COND_DEBUG_INFO_0=""
43245 fi
43246
43247 COND_DEBUG_INFO_1="#"
43248 if test "x$DEBUG_INFO" = "x1" ; then
43249 COND_DEBUG_INFO_1=""
43250 fi
43251
43252 COND_DEPS_TRACKING_0="#"
43253 if test "x$DEPS_TRACKING" = "x0" ; then
43254 COND_DEPS_TRACKING_0=""
43255 fi
43256
43257 COND_DEPS_TRACKING_1="#"
43258 if test "x$DEPS_TRACKING" = "x1" ; then
43259 COND_DEPS_TRACKING_1=""
43260 fi
43261
43262 COND_GCC_PCH_1="#"
43263 if test "x$GCC_PCH" = "x1" ; then
43264 COND_GCC_PCH_1=""
43265 fi
43266
43267 COND_MONOLITHIC_0="#"
43268 if test "x$MONOLITHIC" = "x0" ; then
43269 COND_MONOLITHIC_0=""
43270 fi
43271
43272 COND_MONOLITHIC_0_SHARED_0="#"
43273 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
43274 COND_MONOLITHIC_0_SHARED_0=""
43275 fi
43276
43277 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
43278 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
43279 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
43280 fi
43281
90970d69
DE
43282 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
43283 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43284 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
43285 fi
43286
a848cd7e
SC
43287 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
43288 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43289 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
43290 fi
43291
6671c68b
VZ
43292 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
43293 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43294 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
43295 fi
43296
a848cd7e
SC
43297 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
43298 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
43299 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
43300 fi
43301
ceec2216
RL
43302 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
43303 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43304 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
43305 fi
43306
a848cd7e
SC
43307 COND_MONOLITHIC_0_SHARED_1="#"
43308 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
43309 COND_MONOLITHIC_0_SHARED_1=""
43310 fi
43311
43312 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
43313 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
43314 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
43315 fi
43316
90970d69
DE
43317 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
43318 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43319 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
43320 fi
43321
a848cd7e
SC
43322 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
43323 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43324 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
43325 fi
43326
6671c68b
VZ
43327 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
43328 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43329 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
43330 fi
43331
a848cd7e
SC
43332 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
43333 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
43334 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
43335 fi
43336
ceec2216
RL
43337 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
43338 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43339 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
43340 fi
43341
a848cd7e
SC
43342 COND_MONOLITHIC_0_USE_ODBC_1="#"
43343 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
43344 COND_MONOLITHIC_0_USE_ODBC_1=""
43345 fi
43346
43347 COND_MONOLITHIC_1="#"
43348 if test "x$MONOLITHIC" = "x1" ; then
43349 COND_MONOLITHIC_1=""
43350 fi
43351
43352 COND_MONOLITHIC_1_SHARED_0="#"
43353 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
43354 COND_MONOLITHIC_1_SHARED_0=""
43355 fi
43356
43357 COND_MONOLITHIC_1_SHARED_1="#"
43358 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
43359 COND_MONOLITHIC_1_SHARED_1=""
43360 fi
43361
43362 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
43363 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
43364 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
43365 fi
43366
43367 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
43368 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
43369 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
43370 fi
43371
43372 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
43373 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43374 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
43375 fi
43376
43377 COND_PLATFORM_MACOSX_1="#"
43378 if test "x$PLATFORM_MACOSX" = "x1" ; then
43379 COND_PLATFORM_MACOSX_1=""
43380 fi
43381
a30f955f
VS
43382 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
43383 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
43384 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
43385 fi
43386
a848cd7e
SC
43387 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
43388 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
43389 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
43390 fi
43391
43392 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
43393 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
43394 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
43395 fi
43396
43397 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
43398 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
43399 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
43400 fi
43401
fc480dc1
DE
43402 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
43403 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43404 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
43405 fi
43406
1e9e8aba
DE
43407 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43408 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43409 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43410 fi
43411
ebee3cd0
VS
43412 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
43413 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
43414 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
43415 fi
43416
43417 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
43418 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
43419 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
43420 fi
43421
a848cd7e
SC
43422 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
43423 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
43424 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
43425 fi
43426
43427 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
43428 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
43429 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
43430 fi
43431
b48a2016
DE
43432 COND_PLATFORM_MACOS_1="#"
43433 if test "x$PLATFORM_MACOS" = "x1" ; then
43434 COND_PLATFORM_MACOS_1=""
43435 fi
43436
a848cd7e
SC
43437 COND_PLATFORM_MAC_1="#"
43438 if test "x$PLATFORM_MAC" = "x1" ; then
43439 COND_PLATFORM_MAC_1=""
43440 fi
43441
83d8eb47
MW
43442 COND_PLATFORM_MSDOS_1="#"
43443 if test "x$PLATFORM_MSDOS" = "x1" ; then
43444 COND_PLATFORM_MSDOS_1=""
43445 fi
43446
a848cd7e
SC
43447 COND_PLATFORM_OS2_1="#"
43448 if test "x$PLATFORM_OS2" = "x1" ; then
43449 COND_PLATFORM_OS2_1=""
43450 fi
43451
43452 COND_PLATFORM_UNIX_0="#"
43453 if test "x$PLATFORM_UNIX" = "x0" ; then
43454 COND_PLATFORM_UNIX_0=""
43455 fi
43456
43457 COND_PLATFORM_UNIX_1="#"
43458 if test "x$PLATFORM_UNIX" = "x1" ; then
43459 COND_PLATFORM_UNIX_1=""
43460 fi
43461
43462 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
43463 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
43464 COND_PLATFORM_UNIX_1_USE_GUI_1=""
43465 fi
43466
43467 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
43468 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
43469 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
43470 fi
43471
43472 COND_PLATFORM_WIN32_0="#"
43473 if test "x$PLATFORM_WIN32" = "x0" ; then
43474 COND_PLATFORM_WIN32_0=""
43475 fi
43476
43477 COND_PLATFORM_WIN32_1="#"
43478 if test "x$PLATFORM_WIN32" = "x1" ; then
43479 COND_PLATFORM_WIN32_1=""
43480 fi
43481
43482 COND_SHARED_0="#"
43483 if test "x$SHARED" = "x0" ; then
43484 COND_SHARED_0=""
43485 fi
43486
ceec2216
RL
43487 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
43488 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
43489 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
43490 fi
43491
43492 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
43493 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43494 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43495 fi
43496
43497 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43498 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
43499 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
43500 fi
43501
a848cd7e
SC
43502 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
43503 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43504 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
43505 fi
43506
43507 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43508 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43509 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43510 fi
43511
43512 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43513 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43514 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43515 fi
43516
43517 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43518 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43519 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43520 fi
43521
52ada004
RL
43522 COND_SHARED_0_USE_XRC_1="#"
43523 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43524 COND_SHARED_0_USE_XRC_1=""
43525 fi
43526
a848cd7e
SC
43527 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
43528 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
43529 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
43530 fi
43531
43532 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
43533 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
43534 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
43535 fi
43536
43537 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
43538 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
43539 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
43540 fi
43541
43542 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
43543 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
43544 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
43545 fi
43546
43547 COND_SHARED_1="#"
43548 if test "x$SHARED" = "x1" ; then
43549 COND_SHARED_1=""
43550 fi
43551
43552 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43553 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43554 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43555 fi
43556
52ada004
RL
43557 COND_SHARED_1_USE_XRC_1="#"
43558 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43559 COND_SHARED_1_USE_XRC_1=""
43560 fi
43561
a30f955f
VS
43562 COND_TOOLKIT_="#"
43563 if test "x$TOOLKIT" = "x" ; then
43564 COND_TOOLKIT_=""
43565 fi
43566
a848cd7e
SC
43567 COND_TOOLKIT_COCOA="#"
43568 if test "x$TOOLKIT" = "xCOCOA" ; then
43569 COND_TOOLKIT_COCOA=""
43570 fi
43571
a49baeab
DE
43572 COND_TOOLKIT_COCOA_USE_GUI_1="#"
43573 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43574 COND_TOOLKIT_COCOA_USE_GUI_1=""
43575 fi
43576
a848cd7e
SC
43577 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43578 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43579 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43580 fi
43581
43582 COND_TOOLKIT_GTK="#"
43583 if test "x$TOOLKIT" = "xGTK" ; then
43584 COND_TOOLKIT_GTK=""
43585 fi
43586
43587 COND_TOOLKIT_GTK_USE_GUI_1="#"
43588 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43589 COND_TOOLKIT_GTK_USE_GUI_1=""
43590 fi
43591
43592 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43593 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43594 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43595 fi
43596
43597 COND_TOOLKIT_MAC="#"
43598 if test "x$TOOLKIT" = "xMAC" ; then
43599 COND_TOOLKIT_MAC=""
43600 fi
43601
43602 COND_TOOLKIT_MAC_USE_GUI_1="#"
43603 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43604 COND_TOOLKIT_MAC_USE_GUI_1=""
43605 fi
43606
43607 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43608 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43609 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43610 fi
43611
43612 COND_TOOLKIT_MGL="#"
43613 if test "x$TOOLKIT" = "xMGL" ; then
43614 COND_TOOLKIT_MGL=""
43615 fi
43616
43617 COND_TOOLKIT_MGL_USE_GUI_1="#"
43618 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43619 COND_TOOLKIT_MGL_USE_GUI_1=""
43620 fi
43621
43622 COND_TOOLKIT_MOTIF="#"
43623 if test "x$TOOLKIT" = "xMOTIF" ; then
43624 COND_TOOLKIT_MOTIF=""
43625 fi
43626
43627 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
43628 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
43629 COND_TOOLKIT_MOTIF_USE_GUI_1=""
43630 fi
43631
43632 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
43633 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43634 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
43635 fi
43636
43637 COND_TOOLKIT_MSW="#"
43638 if test "x$TOOLKIT" = "xMSW" ; then
43639 COND_TOOLKIT_MSW=""
43640 fi
43641
43642 COND_TOOLKIT_MSW_USE_GUI_1="#"
43643 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
43644 COND_TOOLKIT_MSW_USE_GUI_1=""
43645 fi
43646
43647 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
43648 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43649 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
43650 fi
43651
43652 COND_TOOLKIT_PM="#"
43653 if test "x$TOOLKIT" = "xPM" ; then
43654 COND_TOOLKIT_PM=""
43655 fi
43656
43657 COND_TOOLKIT_PM_USE_GUI_1="#"
43658 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
43659 COND_TOOLKIT_PM_USE_GUI_1=""
43660 fi
43661
43662 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
43663 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43664 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
43665 fi
43666
3fd9c298
DE
43667 COND_TOOLKIT_WINCE="#"
43668 if test "x$TOOLKIT" = "xWINCE" ; then
43669 COND_TOOLKIT_WINCE=""
43670 fi
43671
43672 COND_TOOLKIT_WINCE_USE_GUI_1="#"
43673 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
43674 COND_TOOLKIT_WINCE_USE_GUI_1=""
43675 fi
43676
43677 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
43678 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43679 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
43680 fi
43681
a848cd7e
SC
43682 COND_TOOLKIT_X11="#"
43683 if test "x$TOOLKIT" = "xX11" ; then
43684 COND_TOOLKIT_X11=""
43685 fi
43686
43687 COND_TOOLKIT_X11_USE_GUI_1="#"
43688 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
43689 COND_TOOLKIT_X11_USE_GUI_1=""
43690 fi
43691
43692 COND_UNICODE_1="#"
43693 if test "x$UNICODE" = "x1" ; then
43694 COND_UNICODE_1=""
43695 fi
43696
43697 COND_USE_EXCEPTIONS_0="#"
43698 if test "x$USE_EXCEPTIONS" = "x0" ; then
43699 COND_USE_EXCEPTIONS_0=""
43700 fi
43701
43702 COND_USE_EXCEPTIONS_1="#"
43703 if test "x$USE_EXCEPTIONS" = "x1" ; then
43704 COND_USE_EXCEPTIONS_1=""
43705 fi
43706
43707 COND_USE_GUI_0="#"
43708 if test "x$USE_GUI" = "x0" ; then
43709 COND_USE_GUI_0=""
43710 fi
43711
43712 COND_USE_GUI_1="#"
43713 if test "x$USE_GUI" = "x1" ; then
43714 COND_USE_GUI_1=""
43715 fi
43716
43717 COND_USE_GUI_1_WXUNIV_0="#"
43718 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43719 COND_USE_GUI_1_WXUNIV_0=""
43720 fi
43721
43722 COND_USE_GUI_1_WXUNIV_1="#"
43723 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43724 COND_USE_GUI_1_WXUNIV_1=""
43725 fi
43726
43727 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43728 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43729 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43730 fi
43731
43732 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43733 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43734 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43735 fi
43736
43737 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43738 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43739 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43740 fi
43741
ceec2216
RL
43742 COND_USE_ODBC_1="#"
43743 if test "x$USE_ODBC" = "x1" ; then
43744 COND_USE_ODBC_1=""
43745 fi
43746
ffa0583f
RL
43747 COND_USE_OPENGL_1="#"
43748 if test "x$USE_OPENGL" = "x1" ; then
43749 COND_USE_OPENGL_1=""
43750 fi
43751
a848cd7e
SC
43752 COND_USE_PLUGINS_0="#"
43753 if test "x$USE_PLUGINS" = "x0" ; then
43754 COND_USE_PLUGINS_0=""
43755 fi
43756
0b78747f
MW
43757 COND_USE_RTTI_0="#"
43758 if test "x$USE_RTTI" = "x0" ; then
43759 COND_USE_RTTI_0=""
43760 fi
43761
43762 COND_USE_RTTI_1="#"
43763 if test "x$USE_RTTI" = "x1" ; then
43764 COND_USE_RTTI_1=""
43765 fi
43766
a848cd7e
SC
43767 COND_USE_SOSYMLINKS_1="#"
43768 if test "x$USE_SOSYMLINKS" = "x1" ; then
43769 COND_USE_SOSYMLINKS_1=""
43770 fi
43771
43772 COND_USE_SOVERLINUX_1="#"
43773 if test "x$USE_SOVERLINUX" = "x1" ; then
43774 COND_USE_SOVERLINUX_1=""
43775 fi
43776
43777 COND_USE_SOVERSION_0="#"
43778 if test "x$USE_SOVERSION" = "x0" ; then
43779 COND_USE_SOVERSION_0=""
43780 fi
43781
43782 COND_USE_SOVERSOLARIS_1="#"
43783 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43784 COND_USE_SOVERSOLARIS_1=""
43785 fi
43786
0b78747f
MW
43787 COND_USE_THREADS_0="#"
43788 if test "x$USE_THREADS" = "x0" ; then
43789 COND_USE_THREADS_0=""
43790 fi
43791
43792 COND_USE_THREADS_1="#"
43793 if test "x$USE_THREADS" = "x1" ; then
43794 COND_USE_THREADS_1=""
43795 fi
43796
a13a7f89
RL
43797 COND_USE_XRC_1="#"
43798 if test "x$USE_XRC" = "x1" ; then
43799 COND_USE_XRC_1=""
43800 fi
43801
a848cd7e
SC
43802 COND_WITH_PLUGIN_SDL_1="#"
43803 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43804 COND_WITH_PLUGIN_SDL_1=""
43805 fi
43806
1e6eb025
VZ
43807 COND_WXUNIV_0="#"
43808 if test "x$WXUNIV" = "x0" ; then
43809 COND_WXUNIV_0=""
43810 fi
43811
a848cd7e
SC
43812 COND_WXUNIV_1="#"
43813 if test "x$WXUNIV" = "x1" ; then
43814 COND_WXUNIV_1=""
43815 fi
43816
43817 COND_WXUSE_EXPAT_BUILTIN="#"
43818 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43819 COND_WXUSE_EXPAT_BUILTIN=""
43820 fi
43821
43822 COND_WXUSE_LIBJPEG_BUILTIN="#"
43823 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43824 COND_WXUSE_LIBJPEG_BUILTIN=""
43825 fi
43826
43827 COND_WXUSE_LIBPNG_BUILTIN="#"
43828 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43829 COND_WXUSE_LIBPNG_BUILTIN=""
43830 fi
43831
43832 COND_WXUSE_LIBTIFF_BUILTIN="#"
43833 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43834 COND_WXUSE_LIBTIFF_BUILTIN=""
43835 fi
43836
43837 COND_WXUSE_ODBC_BUILTIN="#"
43838 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43839 COND_WXUSE_ODBC_BUILTIN=""
43840 fi
43841
43842 COND_WXUSE_REGEX_BUILTIN="#"
43843 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43844 COND_WXUSE_REGEX_BUILTIN=""
43845 fi
43846
43847 COND_WXUSE_ZLIB_BUILTIN="#"
43848 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43849 COND_WXUSE_ZLIB_BUILTIN=""
43850 fi
43851
43852
43853
2057db16
VS
43854 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43855 { { 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
43856echo "$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;}
43857 { (exit 1); exit 1; }; }
43858 fi
43859
a848cd7e 43860
fb00f58d
JS
43861if test "$wxUSE_WINE" = "yes"; then
43862 RESCOMP=wrc
43863fi
43864
ceec2216
RL
43865if test "$wxUSE_SHARED" = "yes"; then
43866
43867 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43868 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43869
5b674b9d
DE
43870 case "${host}" in
43871 *-pc-os2_emx | *-pc-os2-emx )
43872 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43873 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43874 cp -p ${srcdir}/src/os2/dllnames.sh .
43875 cp -p ${srcdir}/src/os2/dllar.sh .
43876 ;;
43877 esac
ceec2216
RL
43878else
43879
43880 EXE_LINKER="$CXX -o"
43881
43882fi
69120ee4
VZ
43883if test "$wxUSE_OMF" = "yes"; then
43884 case "${host}" in
43885 *-pc-os2_emx | *-pc-os2-emx )
43886 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43887 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43888 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43889 ;;
43890 esac
43891fi
a848cd7e 43892
74b84332 43893GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43894PCH_FLAGS=""
43895if test $GCC_PCH = 1 ; then
43896 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43897 PCH_FLAGS="-DWX_PRECOMP"
43898else
a848cd7e
SC
43899 case "${host}" in
43900 powerpc-*-darwin* )
74b84332 43901 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43902 ;;
bea8e651 43903 *-*-mingw32* )
1f344abf
VS
43904 if test "$wxUSE_STL" = "yes" -o \
43905 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43906 "$wxUSE_NO_RTTI" != "yes"; then
43907 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43908echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43909 cat >conftest.$ac_ext <<_ACEOF
43910/* confdefs.h. */
43911_ACEOF
43912cat confdefs.h >>conftest.$ac_ext
43913cat >>conftest.$ac_ext <<_ACEOF
43914/* end confdefs.h. */
43915
3314e67b
RR
43916int
43917main ()
43918{
43919#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43920 #error "Not GCC 3.2 or greater"
43921 #endif
43922
43923 ;
43924 return 0;
43925}
43926_ACEOF
43927rm -f conftest.$ac_objext
43928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43929 (eval $ac_compile) 2>conftest.er1
43930 ac_status=$?
43931 grep -v '^ *+' conftest.er1 >conftest.err
43932 rm -f conftest.er1
43933 cat conftest.err >&5
43934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43935 (exit $ac_status); } &&
fb00f58d
JS
43936 { ac_try='test -z "$ac_c_werror_flag"
43937 || test ! -s conftest.err'
3314e67b
RR
43938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43939 (eval $ac_try) 2>&5
43940 ac_status=$?
43941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43942 (exit $ac_status); }; } &&
43943 { ac_try='test -s conftest.$ac_objext'
43944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43945 (eval $ac_try) 2>&5
43946 ac_status=$?
43947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43948 (exit $ac_status); }; }; then
43949 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43950 echo "$as_me:$LINENO: result: yes" >&5
43951echo "${ECHO_T}yes" >&6
43952else
43953 echo "$as_me: failed program was:" >&5
43954sed 's/^/| /' conftest.$ac_ext >&5
43955
43956echo "$as_me:$LINENO: result: no" >&5
43957echo "${ECHO_T}no" >&6
43958fi
43959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43960 fi
43961 ;;
43962 *-pc-os2_emx | *-pc-os2-emx )
43963 if test "$wxUSE_STL" = "yes"; then
43964 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43965echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43966 cat >conftest.$ac_ext <<_ACEOF
43967/* confdefs.h. */
43968_ACEOF
43969cat confdefs.h >>conftest.$ac_ext
43970cat >>conftest.$ac_ext <<_ACEOF
43971/* end confdefs.h. */
43972
bea8e651
MB
43973int
43974main ()
43975{
1f344abf 43976#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43977 #error "Not GCC 3.2 or greater"
43978 #endif
43979
43980 ;
43981 return 0;
43982}
43983_ACEOF
43984rm -f conftest.$ac_objext
43985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43986 (eval $ac_compile) 2>conftest.er1
bea8e651 43987 ac_status=$?
ac1cb8d3
VS
43988 grep -v '^ *+' conftest.er1 >conftest.err
43989 rm -f conftest.er1
43990 cat conftest.err >&5
bea8e651
MB
43991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43992 (exit $ac_status); } &&
fb00f58d
JS
43993 { ac_try='test -z "$ac_c_werror_flag"
43994 || test ! -s conftest.err'
ac1cb8d3
VS
43995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43996 (eval $ac_try) 2>&5
43997 ac_status=$?
43998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43999 (exit $ac_status); }; } &&
44000 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
44001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44002 (eval $ac_try) 2>&5
44003 ac_status=$?
44004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44005 (exit $ac_status); }; }; then
74b84332 44006 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
44007 echo "$as_me:$LINENO: result: yes" >&5
44008echo "${ECHO_T}yes" >&6
44009else
44010 echo "$as_me: failed program was:" >&5
44011sed 's/^/| /' conftest.$ac_ext >&5
44012
44013echo "$as_me:$LINENO: result: no" >&5
44014echo "${ECHO_T}no" >&6
44015fi
ac1cb8d3 44016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
44017 fi
44018 ;;
a848cd7e
SC
44019 esac
44020fi
d2083416 44021CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
44022
44023
44024SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
44025
44026
44027
44028
44029
44030
44031
44032
44033
44034
44035
44036
44037
44038
44039
44040
44041
44042
44043
44044
44045
44046
44047
44048
44049
44050
44051
44052
44053
44054
44055
44056
44057
44058
44059
44060
44061
44062
44063
44064
44065
44066
a848cd7e
SC
44067
44068
44069
44070
44071
44072
44073
44074
44075
44076
44077
44078
44079
44080
44081
44082
44083
44084
74b84332 44085
a848cd7e
SC
44086
44087
44088echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44089echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44090set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44091if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44092 echo $ECHO_N "(cached) $ECHO_C" >&6
44093else
44094 cat >conftest.make <<\_ACEOF
44095all:
44096 @echo 'ac_maketemp="$(MAKE)"'
44097_ACEOF
44098# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44099eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44100if test -n "$ac_maketemp"; then
44101 eval ac_cv_prog_make_${ac_make}_set=yes
44102else
44103 eval ac_cv_prog_make_${ac_make}_set=no
44104fi
44105rm -f conftest.make
44106fi
44107if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
44108 echo "$as_me:$LINENO: result: yes" >&5
44109echo "${ECHO_T}yes" >&6
44110 SET_MAKE=
44111else
44112 echo "$as_me:$LINENO: result: no" >&5
44113echo "${ECHO_T}no" >&6
44114 SET_MAKE="MAKE=${MAKE-make}"
44115fi
44116
44117
a848cd7e 44118
ceec2216
RL
44119 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
44120
a848cd7e 44121
ceec2216 44122 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 44123
a848cd7e 44124
ceec2216 44125 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 44126
ceec2216
RL
44127
44128 ac_config_files="$ac_config_files version-script Makefile"
44129
44130
44131 ac_config_commands="$ac_config_commands wx-config
44132 "
a848cd7e
SC
44133
44134
9103d280
RL
44135
44136
a848cd7e
SC
44137if test "$wxUSE_GUI" = "yes"; then
44138 SUBDIRS="samples demos utils contrib"
44139else SUBDIRS="samples utils"
44140fi
44141
44142
44143
44144# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
44145if test "${with_cppunit_prefix+set}" = set; then
44146 withval="$with_cppunit_prefix"
44147 cppunit_config_prefix="$withval"
44148else
44149 cppunit_config_prefix=""
44150fi;
44151
44152# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
44153if test "${with_cppunit_exec_prefix+set}" = set; then
44154 withval="$with_cppunit_exec_prefix"
44155 cppunit_config_exec_prefix="$withval"
44156else
44157 cppunit_config_exec_prefix=""
44158fi;
44159
44160 if test x$cppunit_config_exec_prefix != x ; then
44161 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
44162 if test x${CPPUNIT_CONFIG+set} != xset ; then
44163 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
44164 fi
44165 fi
44166 if test x$cppunit_config_prefix != x ; then
44167 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
44168 if test x${CPPUNIT_CONFIG+set} != xset ; then
44169 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
44170 fi
44171 fi
44172
44173 # Extract the first word of "cppunit-config", so it can be a program name with args.
44174set dummy cppunit-config; ac_word=$2
44175echo "$as_me:$LINENO: checking for $ac_word" >&5
44176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44177if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
44178 echo $ECHO_N "(cached) $ECHO_C" >&6
44179else
44180 case $CPPUNIT_CONFIG in
44181 [\\/]* | ?:[\\/]*)
44182 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
44183 ;;
44184 *)
44185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44186for as_dir in $PATH
44187do
44188 IFS=$as_save_IFS
44189 test -z "$as_dir" && as_dir=.
44190 for ac_exec_ext in '' $ac_executable_extensions; do
44191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44192 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44194 break 2
44195 fi
44196done
44197done
44198
44199 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
44200 ;;
44201esac
44202fi
44203CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
44204
44205if test -n "$CPPUNIT_CONFIG"; then
44206 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
44207echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
44208else
44209 echo "$as_me:$LINENO: result: no" >&5
44210echo "${ECHO_T}no" >&6
44211fi
44212
44213 cppunit_version_min=1.8.0
44214
44215 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
44216echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
44217 no_cppunit=""
44218 if test "$CPPUNIT_CONFIG" = "no" ; then
44219 no_cppunit=yes
44220 else
44221 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
44222 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
44223 cppunit_version=`$CPPUNIT_CONFIG --version`
44224
44225 cppunit_major_version=`echo $cppunit_version | \
44226 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44227 cppunit_minor_version=`echo $cppunit_version | \
44228 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44229 cppunit_micro_version=`echo $cppunit_version | \
44230 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44231
44232 cppunit_major_min=`echo $cppunit_version_min | \
44233 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44234 cppunit_minor_min=`echo $cppunit_version_min | \
44235 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44236 cppunit_micro_min=`echo $cppunit_version_min | \
44237 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44238
44239 cppunit_version_proper=`expr \
44240 $cppunit_major_version \> $cppunit_major_min \| \
44241 $cppunit_major_version \= $cppunit_major_min \& \
44242 $cppunit_minor_version \> $cppunit_minor_min \| \
44243 $cppunit_major_version \= $cppunit_major_min \& \
44244 $cppunit_minor_version \= $cppunit_minor_min \& \
44245 $cppunit_micro_version \>= $cppunit_micro_min `
44246
44247 if test "$cppunit_version_proper" = "1" ; then
44248 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
44249echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
44250 else
44251 echo "$as_me:$LINENO: result: no" >&5
44252echo "${ECHO_T}no" >&6
44253 no_cppunit=yes
44254 fi
44255 fi
44256
44257 if test "x$no_cppunit" = x ; then
c2218763 44258 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
44259 else
44260 CPPUNIT_CFLAGS=""
44261 CPPUNIT_LIBS=""
c2218763 44262 :
a848cd7e
SC
44263 fi
44264
44265
44266
44267
44268
44269for subdir in `echo $SUBDIRS`; do
44270 if test -d ${srcdir}/${subdir} ; then
44271 if test "$wxUSE_GUI" = "yes"; then
44272 if test ${subdir} = "samples"; then
44273 makefiles="samples/Makefile.in $makefiles"
44274 for sample in `echo $SAMPLES_SUBDIRS`; do
44275 if test -d $srcdir/samples/$sample; then
44276 makefiles="samples/$sample/Makefile.in $makefiles"
44277 fi
44278 done
9c112555
MW
44279 else
44280 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
44281 eval "disabled=\$$disabled_var"
44282 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
44283 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
44284 fi
44285 else if test ${subdir} = "samples"; then
44286 makefiles="samples/Makefile.in samples/console/Makefile.in"
44287 elif test ${subdir} = "utils"; then
6537ccf8
VS
44288 makefiles=""
44289 for util in HelpGen tex2rtf ; do
44290 if test -d $srcdir/utils/$util ; then
44291 makefiles="utils/$util/Makefile.in \
44292 utils/$util/src/Makefile.in \
44293 $makefiles"
44294 fi
44295 done
a848cd7e
SC
44296 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
44297 fi
44298 fi
44299
44300 for mkin in $makefiles ; do
44301 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
44302 ac_config_files="$ac_config_files $mk"
44303
44304 done
44305 fi
44306done
44307
44308
44309cat >confcache <<\_ACEOF
44310# This file is a shell script that caches the results of configure
44311# tests run on this system so they can be shared between configure
44312# scripts and configure runs, see configure's option --config-cache.
44313# It is not useful on other systems. If it contains results you don't
44314# want to keep, you may remove or edit it.
44315#
44316# config.status only pays attention to the cache file if you give it
44317# the --recheck option to rerun configure.
44318#
44319# `ac_cv_env_foo' variables (set or unset) will be overridden when
44320# loading this file, other *unset* `ac_cv_foo' will be assigned the
44321# following values.
44322
44323_ACEOF
44324
44325# The following way of writing the cache mishandles newlines in values,
44326# but we know of no workaround that is simple, portable, and efficient.
44327# So, don't put newlines in cache variables' values.
44328# Ultrix sh set writes to stderr and can't be redirected directly,
44329# and sets the high bit in the cache file unless we assign to the vars.
44330{
44331 (set) 2>&1 |
44332 case `(ac_space=' '; set | grep ac_space) 2>&1` in
44333 *ac_space=\ *)
44334 # `set' does not quote correctly, so add quotes (double-quote
44335 # substitution turns \\\\ into \\, and sed turns \\ into \).
44336 sed -n \
ac1cb8d3
VS
44337 "s/'/'\\\\''/g;
44338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
44339 ;;
44340 *)
44341 # `set' quotes correctly as required by POSIX, so do not add quotes.
44342 sed -n \
ac1cb8d3 44343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
44344 ;;
44345 esac;
44346} |
44347 sed '
44348 t clear
44349 : clear
44350 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44351 t end
44352 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44353 : end' >>confcache
44354if diff $cache_file confcache >/dev/null 2>&1; then :; else
44355 if test -w $cache_file; then
44356 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
44357 cat confcache >$cache_file
44358 else
44359 echo "not updating unwritable cache $cache_file"
44360 fi
44361fi
44362rm -f confcache
44363
44364test "x$prefix" = xNONE && prefix=$ac_default_prefix
44365# Let make expand exec_prefix.
44366test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44367
44368# VPATH may cause trouble with some makes, so we remove $(srcdir),
44369# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44370# trailing colons and then remove the whole line if VPATH becomes empty
44371# (actually we leave an empty line to preserve line numbers).
44372if test "x$srcdir" = x.; then
ac1cb8d3 44373 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
44374s/:*\$(srcdir):*/:/;
44375s/:*\${srcdir}:*/:/;
44376s/:*@srcdir@:*/:/;
ac1cb8d3 44377s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 44378s/:*$//;
ac1cb8d3 44379s/^[^=]*=[ ]*$//;
a848cd7e
SC
44380}'
44381fi
44382
44383DEFS=-DHAVE_CONFIG_H
44384
44385ac_libobjs=
44386ac_ltlibobjs=
44387for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44388 # 1. Remove the extension, and $U if already installed.
44389 ac_i=`echo "$ac_i" |
ac1cb8d3 44390 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
44391 # 2. Add them.
44392 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44393 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44394done
44395LIBOBJS=$ac_libobjs
44396
44397LTLIBOBJS=$ac_ltlibobjs
44398
44399
44400
44401: ${CONFIG_STATUS=./config.status}
44402ac_clean_files_save=$ac_clean_files
44403ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44404{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44405echo "$as_me: creating $CONFIG_STATUS" >&6;}
44406cat >$CONFIG_STATUS <<_ACEOF
44407#! $SHELL
44408# Generated by $as_me.
44409# Run this file to recreate the current configuration.
44410# Compiler output produced by configure, useful for debugging
44411# configure, is in config.log if it exists.
44412
44413debug=false
44414ac_cs_recheck=false
44415ac_cs_silent=false
44416SHELL=\${CONFIG_SHELL-$SHELL}
44417_ACEOF
44418
44419cat >>$CONFIG_STATUS <<\_ACEOF
44420## --------------------- ##
44421## M4sh Initialization. ##
44422## --------------------- ##
44423
44424# Be Bourne compatible
44425if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44426 emulate sh
44427 NULLCMD=:
44428 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44429 # is contrary to our usage. Disable this feature.
44430 alias -g '${1+"$@"}'='"$@"'
44431elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44432 set -o posix
44433fi
ac1cb8d3 44434DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
44435
44436# Support unset when possible.
ac1cb8d3 44437if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
44438 as_unset=unset
44439else
44440 as_unset=false
44441fi
44442
44443
44444# Work around bugs in pre-3.0 UWIN ksh.
44445$as_unset ENV MAIL MAILPATH
44446PS1='$ '
44447PS2='> '
44448PS4='+ '
44449
44450# NLS nuisances.
44451for as_var in \
44452 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44453 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44454 LC_TELEPHONE LC_TIME
44455do
ac1cb8d3 44456 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
44457 eval $as_var=C; export $as_var
44458 else
44459 $as_unset $as_var
44460 fi
44461done
44462
44463# Required to use basename.
44464if expr a : '\(a\)' >/dev/null 2>&1; then
44465 as_expr=expr
44466else
44467 as_expr=false
44468fi
44469
44470if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44471 as_basename=basename
44472else
44473 as_basename=false
44474fi
44475
44476
44477# Name of the executable.
44478as_me=`$as_basename "$0" ||
44479$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44480 X"$0" : 'X\(//\)$' \| \
44481 X"$0" : 'X\(/\)$' \| \
44482 . : '\(.\)' 2>/dev/null ||
44483echo X/"$0" |
44484 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44485 /^X\/\(\/\/\)$/{ s//\1/; q; }
44486 /^X\/\(\/\).*/{ s//\1/; q; }
44487 s/.*/./; q'`
44488
44489
44490# PATH needs CR, and LINENO needs CR and PATH.
44491# Avoid depending upon Character Ranges.
44492as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44493as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44494as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44495as_cr_digits='0123456789'
44496as_cr_alnum=$as_cr_Letters$as_cr_digits
44497
44498# The user is always right.
44499if test "${PATH_SEPARATOR+set}" != set; then
44500 echo "#! /bin/sh" >conf$$.sh
44501 echo "exit 0" >>conf$$.sh
44502 chmod +x conf$$.sh
44503 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44504 PATH_SEPARATOR=';'
44505 else
44506 PATH_SEPARATOR=:
44507 fi
44508 rm -f conf$$.sh
44509fi
44510
44511
44512 as_lineno_1=$LINENO
44513 as_lineno_2=$LINENO
44514 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44515 test "x$as_lineno_1" != "x$as_lineno_2" &&
44516 test "x$as_lineno_3" = "x$as_lineno_2" || {
44517 # Find who we are. Look in the path if we contain no path at all
44518 # relative or not.
44519 case $0 in
44520 *[\\/]* ) as_myself=$0 ;;
44521 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44522for as_dir in $PATH
44523do
44524 IFS=$as_save_IFS
44525 test -z "$as_dir" && as_dir=.
44526 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44527done
44528
44529 ;;
44530 esac
44531 # We did not find ourselves, most probably we were run as `sh COMMAND'
44532 # in which case we are not to be found in the path.
44533 if test "x$as_myself" = x; then
44534 as_myself=$0
44535 fi
44536 if test ! -f "$as_myself"; then
44537 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44538echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44539 { (exit 1); exit 1; }; }
44540 fi
44541 case $CONFIG_SHELL in
44542 '')
44543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44544for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44545do
44546 IFS=$as_save_IFS
44547 test -z "$as_dir" && as_dir=.
44548 for as_base in sh bash ksh sh5; do
44549 case $as_dir in
44550 /*)
44551 if ("$as_dir/$as_base" -c '
44552 as_lineno_1=$LINENO
44553 as_lineno_2=$LINENO
44554 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44555 test "x$as_lineno_1" != "x$as_lineno_2" &&
44556 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
44557 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44558 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44559 CONFIG_SHELL=$as_dir/$as_base
44560 export CONFIG_SHELL
44561 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44562 fi;;
44563 esac
44564 done
44565done
44566;;
44567 esac
44568
44569 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44570 # uniformly replaced by the line number. The first 'sed' inserts a
44571 # line-number line before each line; the second 'sed' does the real
44572 # work. The second script uses 'N' to pair each line-number line
44573 # with the numbered line, and appends trailing '-' during
44574 # substitution so that $LINENO is not a special case at line end.
44575 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44576 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44577 sed '=' <$as_myself |
44578 sed '
44579 N
44580 s,$,-,
44581 : loop
44582 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44583 t loop
44584 s,-$,,
44585 s,^['$as_cr_digits']*\n,,
44586 ' >$as_me.lineno &&
44587 chmod +x $as_me.lineno ||
44588 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44589echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44590 { (exit 1); exit 1; }; }
44591
44592 # Don't try to exec as it changes $[0], causing all sort of problems
44593 # (the dirname of $[0] is not the place where we might find the
44594 # original and so on. Autoconf is especially sensible to this).
44595 . ./$as_me.lineno
44596 # Exit status is that of the last command.
44597 exit
44598}
44599
44600
44601case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44602 *c*,-n*) ECHO_N= ECHO_C='
44603' ECHO_T=' ' ;;
44604 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44605 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44606esac
44607
44608if expr a : '\(a\)' >/dev/null 2>&1; then
44609 as_expr=expr
44610else
44611 as_expr=false
44612fi
44613
44614rm -f conf$$ conf$$.exe conf$$.file
44615echo >conf$$.file
44616if ln -s conf$$.file conf$$ 2>/dev/null; then
44617 # We could just check for DJGPP; but this test a) works b) is more generic
44618 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44619 if test -f conf$$.exe; then
44620 # Don't use ln at all; we don't have any links
44621 as_ln_s='cp -p'
44622 else
44623 as_ln_s='ln -s'
44624 fi
44625elif ln conf$$.file conf$$ 2>/dev/null; then
44626 as_ln_s=ln
44627else
44628 as_ln_s='cp -p'
44629fi
44630rm -f conf$$ conf$$.exe conf$$.file
44631
44632if mkdir -p . 2>/dev/null; then
44633 as_mkdir_p=:
44634else
ac1cb8d3 44635 test -d ./-p && rmdir ./-p
a848cd7e
SC
44636 as_mkdir_p=false
44637fi
44638
44639as_executable_p="test -f"
44640
44641# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 44642as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44643
44644# Sed expression to map a string onto a valid variable name.
ac1cb8d3 44645as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44646
44647
44648# IFS
44649# We need space, tab and new line, in precisely that order.
44650as_nl='
44651'
44652IFS=" $as_nl"
44653
44654# CDPATH.
44655$as_unset CDPATH
44656
44657exec 6>&1
44658
44659# Open the log real soon, to keep \$[0] and so on meaningful, and to
44660# report actual input values of CONFIG_FILES etc. instead of their
44661# values after options handling. Logging --version etc. is OK.
44662exec 5>>config.log
44663{
44664 echo
44665 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44666## Running $as_me. ##
44667_ASBOX
44668} >&5
44669cat >&5 <<_CSEOF
44670
e0d84535 44671This file was extended by wxWidgets $as_me 2.6.0, which was
ac1cb8d3 44672generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
44673
44674 CONFIG_FILES = $CONFIG_FILES
44675 CONFIG_HEADERS = $CONFIG_HEADERS
44676 CONFIG_LINKS = $CONFIG_LINKS
44677 CONFIG_COMMANDS = $CONFIG_COMMANDS
44678 $ $0 $@
44679
44680_CSEOF
44681echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44682echo >&5
44683_ACEOF
44684
44685# Files that config.status was made for.
44686if test -n "$ac_config_files"; then
44687 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44688fi
44689
44690if test -n "$ac_config_headers"; then
44691 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44692fi
44693
44694if test -n "$ac_config_links"; then
44695 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44696fi
44697
44698if test -n "$ac_config_commands"; then
44699 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44700fi
44701
44702cat >>$CONFIG_STATUS <<\_ACEOF
44703
44704ac_cs_usage="\
44705\`$as_me' instantiates files from templates according to the
44706current configuration.
44707
44708Usage: $0 [OPTIONS] [FILE]...
44709
44710 -h, --help print this help, then exit
44711 -V, --version print version number, then exit
44712 -q, --quiet do not print progress messages
44713 -d, --debug don't remove temporary files
44714 --recheck update $as_me by reconfiguring in the same conditions
44715 --file=FILE[:TEMPLATE]
ac1cb8d3 44716 instantiate the configuration file FILE
a848cd7e 44717 --header=FILE[:TEMPLATE]
ac1cb8d3 44718 instantiate the configuration header FILE
a848cd7e
SC
44719
44720Configuration files:
44721$config_files
44722
44723Configuration headers:
44724$config_headers
44725
44726Configuration commands:
44727$config_commands
44728
44729Report bugs to <bug-autoconf@gnu.org>."
44730_ACEOF
44731
44732cat >>$CONFIG_STATUS <<_ACEOF
44733ac_cs_version="\\
e0d84535 44734wxWidgets config.status 2.6.0
ac1cb8d3 44735configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
44736 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44737
ac1cb8d3 44738Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
44739This config.status script is free software; the Free Software Foundation
44740gives unlimited permission to copy, distribute and modify it."
44741srcdir=$srcdir
44742INSTALL="$INSTALL"
44743_ACEOF
44744
44745cat >>$CONFIG_STATUS <<\_ACEOF
44746# If no file are specified by the user, then we need to provide default
44747# value. By we need to know if files were specified by the user.
44748ac_need_defaults=:
44749while test $# != 0
44750do
44751 case $1 in
44752 --*=*)
44753 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44754 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44755 ac_shift=:
44756 ;;
44757 -*)
44758 ac_option=$1
44759 ac_optarg=$2
44760 ac_shift=shift
44761 ;;
44762 *) # This is not an option, so the user has probably given explicit
44763 # arguments.
44764 ac_option=$1
44765 ac_need_defaults=false;;
44766 esac
44767
44768 case $ac_option in
44769 # Handling of the options.
44770_ACEOF
44771cat >>$CONFIG_STATUS <<\_ACEOF
44772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44773 ac_cs_recheck=: ;;
44774 --version | --vers* | -V )
44775 echo "$ac_cs_version"; exit 0 ;;
44776 --he | --h)
44777 # Conflict between --help and --header
44778 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44779Try \`$0 --help' for more information." >&5
44780echo "$as_me: error: ambiguous option: $1
44781Try \`$0 --help' for more information." >&2;}
44782 { (exit 1); exit 1; }; };;
44783 --help | --hel | -h )
44784 echo "$ac_cs_usage"; exit 0 ;;
44785 --debug | --d* | -d )
44786 debug=: ;;
44787 --file | --fil | --fi | --f )
44788 $ac_shift
44789 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44790 ac_need_defaults=false;;
44791 --header | --heade | --head | --hea )
44792 $ac_shift
44793 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44794 ac_need_defaults=false;;
44795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44796 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44797 ac_cs_silent=: ;;
44798
44799 # This is an error.
44800 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44801Try \`$0 --help' for more information." >&5
44802echo "$as_me: error: unrecognized option: $1
44803Try \`$0 --help' for more information." >&2;}
44804 { (exit 1); exit 1; }; } ;;
44805
44806 *) ac_config_targets="$ac_config_targets $1" ;;
44807
44808 esac
44809 shift
44810done
44811
44812ac_configure_extra_args=
44813
44814if $ac_cs_silent; then
44815 exec 6>/dev/null
44816 ac_configure_extra_args="$ac_configure_extra_args --silent"
44817fi
44818
44819_ACEOF
44820cat >>$CONFIG_STATUS <<_ACEOF
44821if \$ac_cs_recheck; then
44822 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44823 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44824fi
44825
44826_ACEOF
44827
44828cat >>$CONFIG_STATUS <<_ACEOF
44829#
44830# INIT-COMMANDS section.
44831#
44832
ceec2216
RL
44833 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44834 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44835 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44836 LN_S="${LN_S}"
a848cd7e
SC
44837
44838
44839_ACEOF
44840
44841
44842
44843cat >>$CONFIG_STATUS <<\_ACEOF
44844for ac_config_target in $ac_config_targets
44845do
44846 case "$ac_config_target" in
44847 # Handling of arguments.
ceec2216
RL
44848 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44849 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44850 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44851 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44852 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44853 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44854 "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
44855 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44856echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44857 { (exit 1); exit 1; }; };;
44858 esac
44859done
44860
44861# If the user did not use the arguments to specify the items to instantiate,
44862# then the envvar interface is used. Set only those that are not.
44863# We use the long form for the default assignment because of an extremely
44864# bizarre bug on SunOS 4.1.3.
44865if $ac_need_defaults; then
44866 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44867 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44868 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44869fi
44870
44871# Have a temporary directory for convenience. Make it in the build tree
44872# simply because there is no reason to put it here, and in addition,
44873# creating and moving files from /tmp can sometimes cause problems.
44874# Create a temporary directory, and hook for its removal unless debugging.
44875$debug ||
44876{
44877 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44878 trap '{ (exit 1); exit 1; }' 1 2 13 15
44879}
44880
44881# Create a (secure) tmp directory for tmp files.
44882
44883{
44884 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44885 test -n "$tmp" && test -d "$tmp"
44886} ||
44887{
44888 tmp=./confstat$$-$RANDOM
44889 (umask 077 && mkdir $tmp)
44890} ||
44891{
44892 echo "$me: cannot create a temporary directory in ." >&2
44893 { (exit 1); exit 1; }
44894}
44895
44896_ACEOF
44897
44898cat >>$CONFIG_STATUS <<_ACEOF
44899
44900#
44901# CONFIG_FILES section.
44902#
44903
44904# No need to generate the scripts if there are no CONFIG_FILES.
44905# This happens for instance when ./config.status config.h
44906if test -n "\$CONFIG_FILES"; then
44907 # Protect against being on the right side of a sed subst in config.status.
44908 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44909 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44910s,@SHELL@,$SHELL,;t t
44911s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44912s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44913s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44914s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44915s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44916s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44917s,@exec_prefix@,$exec_prefix,;t t
44918s,@prefix@,$prefix,;t t
44919s,@program_transform_name@,$program_transform_name,;t t
44920s,@bindir@,$bindir,;t t
44921s,@sbindir@,$sbindir,;t t
44922s,@libexecdir@,$libexecdir,;t t
44923s,@datadir@,$datadir,;t t
44924s,@sysconfdir@,$sysconfdir,;t t
44925s,@sharedstatedir@,$sharedstatedir,;t t
44926s,@localstatedir@,$localstatedir,;t t
44927s,@libdir@,$libdir,;t t
44928s,@includedir@,$includedir,;t t
44929s,@oldincludedir@,$oldincludedir,;t t
44930s,@infodir@,$infodir,;t t
44931s,@mandir@,$mandir,;t t
44932s,@build_alias@,$build_alias,;t t
44933s,@host_alias@,$host_alias,;t t
44934s,@target_alias@,$target_alias,;t t
44935s,@DEFS@,$DEFS,;t t
44936s,@ECHO_C@,$ECHO_C,;t t
44937s,@ECHO_N@,$ECHO_N,;t t
44938s,@ECHO_T@,$ECHO_T,;t t
44939s,@LIBS@,$LIBS,;t t
44940s,@build@,$build,;t t
44941s,@build_cpu@,$build_cpu,;t t
44942s,@build_vendor@,$build_vendor,;t t
44943s,@build_os@,$build_os,;t t
44944s,@host@,$host,;t t
44945s,@host_cpu@,$host_cpu,;t t
44946s,@host_vendor@,$host_vendor,;t t
44947s,@host_os@,$host_os,;t t
44948s,@target@,$target,;t t
44949s,@target_cpu@,$target_cpu,;t t
44950s,@target_vendor@,$target_vendor,;t t
44951s,@target_os@,$target_os,;t t
44952s,@CC@,$CC,;t t
44953s,@CFLAGS@,$CFLAGS,;t t
44954s,@LDFLAGS@,$LDFLAGS,;t t
44955s,@CPPFLAGS@,$CPPFLAGS,;t t
44956s,@ac_ct_CC@,$ac_ct_CC,;t t
44957s,@EXEEXT@,$EXEEXT,;t t
44958s,@OBJEXT@,$OBJEXT,;t t
44959s,@CPP@,$CPP,;t t
44960s,@EGREP@,$EGREP,;t t
44961s,@CXX@,$CXX,;t t
44962s,@CXXFLAGS@,$CXXFLAGS,;t t
44963s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44964s,@RANLIB@,$RANLIB,;t t
44965s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44966s,@AR@,$AR,;t t
44967s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44968s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44969s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44970s,@STRIP@,$STRIP,;t t
44971s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44972s,@LN_S@,$LN_S,;t t
44973s,@CXXCPP@,$CXXCPP,;t t
44974s,@subdirs@,$subdirs,;t t
44975s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44976s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44977s,@GTK_LIBS@,$GTK_LIBS,;t t
44978s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44979s,@X_CFLAGS@,$X_CFLAGS,;t t
44980s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44981s,@X_LIBS@,$X_LIBS,;t t
44982s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44983s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44984s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44985s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44986s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44987s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44988s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44989s,@RESCOMP@,$RESCOMP,;t t
44990s,@DEREZ@,$DEREZ,;t t
44991s,@SETFILE@,$SETFILE,;t t
44992s,@LIBICONV@,$LIBICONV,;t t
44993s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44994s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44995s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44996s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44997s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44998s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44999s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
45000s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
45001s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
45002s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
45003s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
45004s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
45005s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
45006s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
45007s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
45008s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
45009s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
45010s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
45011s,@VENDOR@,$VENDOR,;t t
45012s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
45013s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
45014s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
45015s,@WXUNIV@,$WXUNIV,;t t
45016s,@MONOLITHIC@,$MONOLITHIC,;t t
45017s,@USE_PLUGINS@,$USE_PLUGINS,;t t
45018s,@EXTRALIBS@,$EXTRALIBS,;t t
45019s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
45020s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
45021s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
45022s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
45023s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
45024s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
45025s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 45026s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
45027s,@UNICODE@,$UNICODE,;t t
45028s,@BUILD@,$BUILD,;t t
45029s,@DEBUG_INFO@,$DEBUG_INFO,;t t
45030s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
45031s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
45032s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
45033s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
45034s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
45035s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
45036s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
45037s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
45038s,@SET_MAKE@,$SET_MAKE,;t t
45039s,@MAKE_SET@,$MAKE_SET,;t t
45040s,@ac_ct_AR@,$ac_ct_AR,;t t
45041s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45042s,@NM@,$NM,;t t
45043s,@ac_ct_NM@,$ac_ct_NM,;t t
45044s,@INSTALL_DIR@,$INSTALL_DIR,;t t
45045s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
45046s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
45047s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
45048s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
45049s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 45050s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
45051s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
45052s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 45053s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
45054s,@SO_SUFFIX@,$SO_SUFFIX,;t t
45055s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
45056s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
45057s,@LIBPREFIX@,$LIBPREFIX,;t t
45058s,@LIBEXT@,$LIBEXT,;t t
45059s,@DLLPREFIX@,$DLLPREFIX,;t t
45060s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
45061s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
45062s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
45063s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
45064s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
45065s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
45066s,@PIC_FLAG@,$PIC_FLAG,;t t
45067s,@USE_SOVERSION@,$USE_SOVERSION,;t t
45068s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
45069s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
45070s,@USE_MACVERSION@,$USE_MACVERSION,;t t
45071s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
45072s,@SONAME_FLAG@,$SONAME_FLAG,;t t
45073s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45074s,@GCC_PCH@,$GCC_PCH,;t t
45075s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
45076s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
45077s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
45078s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
45079s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
45080s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
45081s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
45082s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
45083s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
45084s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
45085s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
45086s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
45087s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
45088s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45089s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
45090s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
45091s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
45092s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 45093s,@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 45094s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 45095s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
a848cd7e 45096s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 45097s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45098s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
45099s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 45100s,@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 45101s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 45102s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
a848cd7e 45103s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 45104s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
45105s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
45106s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
45107s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
45108s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
45109s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
45110s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
45111s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
45112s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 45113s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
45114s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
45115s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
45116s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 45117s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 45118s,@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
45119s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
45120s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
45121s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
45122s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 45123s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e 45124s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 45125s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
45126s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
45127s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
45128s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
45129s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
45130s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
45131s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
45132s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45133s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
45134s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
45135s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
45136s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
45137s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
45138s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45139s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45140s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52ada004 45141s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45142s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
45143s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
45144s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
45145s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45146s,@COND_SHARED_1@,$COND_SHARED_1,;t t
45147s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
52ada004 45148s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 45149s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 45150s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 45151s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
45152s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
45153s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
45154s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
45155s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
45156s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
45157s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
45158s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
45159s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
45160s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
45161s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
45162s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
45163s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
45164s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
45165s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
45166s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
45167s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
45168s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
45169s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
45170s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
45171s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
45172s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
45173s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
45174s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
45175s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
45176s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
45177s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
45178s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
45179s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
45180s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
45181s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
45182s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45183s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45184s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 45185s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 45186s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 45187s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
45188s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
45189s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
45190s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
45191s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
45192s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
45193s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
45194s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
45195s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 45196s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 45197s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 45198s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
45199s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
45200s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
45201s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
45202s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
45203s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
45204s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
45205s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
45206s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 45207s,@SHARED@,$SHARED,;t t
a848cd7e
SC
45208s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
45209s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
45210s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
45211s,@USE_GUI@,$USE_GUI,;t t
45212s,@AFMINSTALL@,$AFMINSTALL,;t t
45213s,@WIN32INSTALL@,$WIN32INSTALL,;t t
45214s,@TOOLKIT@,$TOOLKIT,;t t
45215s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 45216s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 45217s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
45218s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
45219s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 45220s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
45221s,@WIDGET_SET@,$WIDGET_SET,;t t
45222s,@WX_RELEASE@,$WX_RELEASE,;t t
45223s,@WX_VERSION@,$WX_VERSION,;t t
45224s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
45225s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
45226s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 45227s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
45228s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
45229s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
45230s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
45231s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 45232s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
45233s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
45234s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 45235s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 45236s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
45237s,@DISTDIR@,$DISTDIR,;t t
45238s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
45239s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
45240s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
45241s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
45242s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
45243s,@RESFLAGS@,$RESFLAGS,;t t
45244s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
45245s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
45246s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
45247s,@LIBWXMACRES@,$LIBWXMACRES,;t t
45248s,@MACRESCOMP@,$MACRESCOMP,;t t
45249s,@MACSETFILE@,$MACSETFILE,;t t
45250s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
45251s,@GCC@,$GCC,;t t
a848cd7e 45252s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
45253s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
45254s,@LIBOBJS@,$LIBOBJS,;t t
45255s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45256CEOF
45257
45258_ACEOF
45259
45260 cat >>$CONFIG_STATUS <<\_ACEOF
45261 # Split the substitutions into bite-sized pieces for seds with
45262 # small command number limits, like on Digital OSF/1 and HP-UX.
45263 ac_max_sed_lines=48
45264 ac_sed_frag=1 # Number of current file.
45265 ac_beg=1 # First line for current file.
45266 ac_end=$ac_max_sed_lines # Line after last line for current file.
45267 ac_more_lines=:
45268 ac_sed_cmds=
45269 while $ac_more_lines; do
45270 if test $ac_beg -gt 1; then
45271 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45272 else
45273 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45274 fi
45275 if test ! -s $tmp/subs.frag; then
45276 ac_more_lines=false
45277 else
45278 # The purpose of the label and of the branching condition is to
45279 # speed up the sed processing (if there are no `@' at all, there
45280 # is no need to browse any of the substitutions).
45281 # These are the two extra sed commands mentioned above.
45282 (echo ':t
45283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45284 if test -z "$ac_sed_cmds"; then
ac1cb8d3 45285 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 45286 else
ac1cb8d3 45287 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
45288 fi
45289 ac_sed_frag=`expr $ac_sed_frag + 1`
45290 ac_beg=$ac_end
45291 ac_end=`expr $ac_end + $ac_max_sed_lines`
45292 fi
45293 done
45294 if test -z "$ac_sed_cmds"; then
45295 ac_sed_cmds=cat
45296 fi
45297fi # test -n "$CONFIG_FILES"
45298
45299_ACEOF
45300cat >>$CONFIG_STATUS <<\_ACEOF
45301for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45302 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45303 case $ac_file in
45304 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45305 cat >$tmp/stdin
45306 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45307 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45308 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45310 * ) ac_file_in=$ac_file.in ;;
45311 esac
45312
45313 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45314 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45315$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45316 X"$ac_file" : 'X\(//\)[^/]' \| \
45317 X"$ac_file" : 'X\(//\)$' \| \
45318 X"$ac_file" : 'X\(/\)' \| \
45319 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45320echo X"$ac_file" |
45321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45323 /^X\(\/\/\)$/{ s//\1/; q; }
45324 /^X\(\/\).*/{ s//\1/; q; }
45325 s/.*/./; q'`
45326 { if $as_mkdir_p; then
45327 mkdir -p "$ac_dir"
45328 else
45329 as_dir="$ac_dir"
45330 as_dirs=
45331 while test ! -d "$as_dir"; do
45332 as_dirs="$as_dir $as_dirs"
45333 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45335 X"$as_dir" : 'X\(//\)[^/]' \| \
45336 X"$as_dir" : 'X\(//\)$' \| \
45337 X"$as_dir" : 'X\(/\)' \| \
45338 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45339echo X"$as_dir" |
45340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45342 /^X\(\/\/\)$/{ s//\1/; q; }
45343 /^X\(\/\).*/{ s//\1/; q; }
45344 s/.*/./; q'`
45345 done
45346 test ! -n "$as_dirs" || mkdir $as_dirs
45347 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45348echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45349 { (exit 1); exit 1; }; }; }
45350
45351 ac_builddir=.
45352
45353if test "$ac_dir" != .; then
45354 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45355 # A "../" for each directory in $ac_dir_suffix.
45356 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45357else
45358 ac_dir_suffix= ac_top_builddir=
45359fi
45360
45361case $srcdir in
45362 .) # No --srcdir option. We are building in place.
45363 ac_srcdir=.
45364 if test -z "$ac_top_builddir"; then
45365 ac_top_srcdir=.
45366 else
45367 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45368 fi ;;
45369 [\\/]* | ?:[\\/]* ) # Absolute path.
45370 ac_srcdir=$srcdir$ac_dir_suffix;
45371 ac_top_srcdir=$srcdir ;;
45372 *) # Relative path.
45373 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45374 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45375esac
ac1cb8d3
VS
45376
45377# Do not use `cd foo && pwd` to compute absolute paths, because
45378# the directories may not exist.
45379case `pwd` in
45380.) ac_abs_builddir="$ac_dir";;
45381*)
45382 case "$ac_dir" in
45383 .) ac_abs_builddir=`pwd`;;
45384 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45385 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45386 esac;;
45387esac
45388case $ac_abs_builddir in
45389.) ac_abs_top_builddir=${ac_top_builddir}.;;
45390*)
45391 case ${ac_top_builddir}. in
45392 .) ac_abs_top_builddir=$ac_abs_builddir;;
45393 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45394 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45395 esac;;
45396esac
45397case $ac_abs_builddir in
45398.) ac_abs_srcdir=$ac_srcdir;;
45399*)
45400 case $ac_srcdir in
45401 .) ac_abs_srcdir=$ac_abs_builddir;;
45402 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45403 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45404 esac;;
45405esac
45406case $ac_abs_builddir in
45407.) ac_abs_top_srcdir=$ac_top_srcdir;;
45408*)
45409 case $ac_top_srcdir in
45410 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45411 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45412 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45413 esac;;
45414esac
a848cd7e
SC
45415
45416
45417 case $INSTALL in
45418 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45419 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45420 esac
45421
fb00f58d
JS
45422 if test x"$ac_file" != x-; then
45423 { echo "$as_me:$LINENO: creating $ac_file" >&5
45424echo "$as_me: creating $ac_file" >&6;}
45425 rm -f "$ac_file"
45426 fi
a848cd7e
SC
45427 # Let's still pretend it is `configure' which instantiates (i.e., don't
45428 # use $as_me), people would be surprised to read:
45429 # /* config.h. Generated by config.status. */
45430 if test x"$ac_file" = x-; then
45431 configure_input=
45432 else
45433 configure_input="$ac_file. "
45434 fi
45435 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 45436 sed 's,.*/,,'` by configure."
a848cd7e
SC
45437
45438 # First look for the input files in the build tree, otherwise in the
45439 # src tree.
45440 ac_file_inputs=`IFS=:
45441 for f in $ac_file_in; do
45442 case $f in
45443 -) echo $tmp/stdin ;;
45444 [\\/$]*)
ac1cb8d3
VS
45445 # Absolute (can't be DOS-style, as IFS=:)
45446 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45447echo "$as_me: error: cannot find input file: $f" >&2;}
45448 { (exit 1); exit 1; }; }
ac1cb8d3 45449 echo "$f";;
a848cd7e 45450 *) # Relative
ac1cb8d3
VS
45451 if test -f "$f"; then
45452 # Build tree
45453 echo "$f"
45454 elif test -f "$srcdir/$f"; then
45455 # Source tree
45456 echo "$srcdir/$f"
45457 else
45458 # /dev/null tree
45459 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45460echo "$as_me: error: cannot find input file: $f" >&2;}
45461 { (exit 1); exit 1; }; }
ac1cb8d3 45462 fi;;
a848cd7e
SC
45463 esac
45464 done` || { (exit 1); exit 1; }
45465_ACEOF
45466cat >>$CONFIG_STATUS <<_ACEOF
45467 sed "$ac_vpsub
45468$extrasub
45469_ACEOF
45470cat >>$CONFIG_STATUS <<\_ACEOF
45471:t
45472/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45473s,@configure_input@,$configure_input,;t t
45474s,@srcdir@,$ac_srcdir,;t t
45475s,@abs_srcdir@,$ac_abs_srcdir,;t t
45476s,@top_srcdir@,$ac_top_srcdir,;t t
45477s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45478s,@builddir@,$ac_builddir,;t t
45479s,@abs_builddir@,$ac_abs_builddir,;t t
45480s,@top_builddir@,$ac_top_builddir,;t t
45481s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45482s,@INSTALL@,$ac_INSTALL,;t t
45483" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45484 rm -f $tmp/stdin
45485 if test x"$ac_file" != x-; then
45486 mv $tmp/out $ac_file
45487 else
45488 cat $tmp/out
45489 rm -f $tmp/out
45490 fi
45491
ceec2216
RL
45492 # Run the commands associated with the file.
45493 case $ac_file in
45494 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
45495 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
45496 esac
a848cd7e
SC
45497done
45498_ACEOF
45499cat >>$CONFIG_STATUS <<\_ACEOF
45500
45501#
45502# CONFIG_HEADER section.
45503#
45504
45505# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45506# NAME is the cpp macro being defined and VALUE is the value it is being given.
45507#
45508# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
45509ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45510ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
45511ac_dC=' '
45512ac_dD=',;t'
45513# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 45514ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
45515ac_uB='$,\1#\2define\3'
45516ac_uC=' '
45517ac_uD=',;t'
45518
45519for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45520 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45521 case $ac_file in
45522 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45523 cat >$tmp/stdin
45524 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45525 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45526 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45527 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45528 * ) ac_file_in=$ac_file.in ;;
45529 esac
45530
45531 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45532echo "$as_me: creating $ac_file" >&6;}
45533
45534 # First look for the input files in the build tree, otherwise in the
45535 # src tree.
45536 ac_file_inputs=`IFS=:
45537 for f in $ac_file_in; do
45538 case $f in
45539 -) echo $tmp/stdin ;;
45540 [\\/$]*)
ac1cb8d3
VS
45541 # Absolute (can't be DOS-style, as IFS=:)
45542 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45543echo "$as_me: error: cannot find input file: $f" >&2;}
45544 { (exit 1); exit 1; }; }
ac1cb8d3
VS
45545 # Do quote $f, to prevent DOS paths from being IFS'd.
45546 echo "$f";;
a848cd7e 45547 *) # Relative
ac1cb8d3
VS
45548 if test -f "$f"; then
45549 # Build tree
45550 echo "$f"
45551 elif test -f "$srcdir/$f"; then
45552 # Source tree
45553 echo "$srcdir/$f"
45554 else
45555 # /dev/null tree
45556 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45557echo "$as_me: error: cannot find input file: $f" >&2;}
45558 { (exit 1); exit 1; }; }
ac1cb8d3 45559 fi;;
a848cd7e
SC
45560 esac
45561 done` || { (exit 1); exit 1; }
45562 # Remove the trailing spaces.
ac1cb8d3 45563 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
45564
45565_ACEOF
45566
45567# Transform confdefs.h into two sed scripts, `conftest.defines' and
45568# `conftest.undefs', that substitutes the proper values into
45569# config.h.in to produce config.h. The first handles `#define'
45570# templates, and the second `#undef' templates.
45571# And first: Protect against being on the right side of a sed subst in
45572# config.status. Protect against being in an unquoted here document
45573# in config.status.
45574rm -f conftest.defines conftest.undefs
45575# Using a here document instead of a string reduces the quoting nightmare.
45576# Putting comments in sed scripts is not portable.
45577#
45578# `end' is used to avoid that the second main sed command (meant for
45579# 0-ary CPP macros) applies to n-ary macro definitions.
45580# See the Autoconf documentation for `clear'.
45581cat >confdef2sed.sed <<\_ACEOF
45582s/[\\&,]/\\&/g
45583s,[\\$`],\\&,g
45584t clear
45585: clear
ac1cb8d3 45586s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 45587t end
ac1cb8d3 45588s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
45589: end
45590_ACEOF
45591# If some macros were called several times there might be several times
45592# the same #defines, which is useless. Nevertheless, we may not want to
45593# sort them, since we want the *last* AC-DEFINE to be honored.
45594uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45595sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45596rm -f confdef2sed.sed
45597
45598# This sed command replaces #undef with comments. This is necessary, for
45599# example, in the case of _POSIX_SOURCE, which is predefined and required
45600# on some systems where configure will not decide to define it.
45601cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 45602s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
45603_ACEOF
45604
45605# Break up conftest.defines because some shells have a limit on the size
45606# of here documents, and old seds have small limits too (100 cmds).
45607echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 45608echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
45609echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45610echo ' :' >>$CONFIG_STATUS
45611rm -f conftest.tail
45612while grep . conftest.defines >/dev/null
45613do
45614 # Write a limited-size here document to $tmp/defines.sed.
45615 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45616 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 45617 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
45618 # Work around the forget-to-reset-the-flag bug.
45619 echo 't clr' >>$CONFIG_STATUS
45620 echo ': clr' >>$CONFIG_STATUS
45621 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45622 echo 'CEOF
45623 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45624 rm -f $tmp/in
45625 mv $tmp/out $tmp/in
45626' >>$CONFIG_STATUS
45627 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45628 rm -f conftest.defines
45629 mv conftest.tail conftest.defines
45630done
45631rm -f conftest.defines
45632echo ' fi # grep' >>$CONFIG_STATUS
45633echo >>$CONFIG_STATUS
45634
45635# Break up conftest.undefs because some shells have a limit on the size
45636# of here documents, and old seds have small limits too (100 cmds).
45637echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45638rm -f conftest.tail
45639while grep . conftest.undefs >/dev/null
45640do
45641 # Write a limited-size here document to $tmp/undefs.sed.
45642 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45643 # Speed up: don't consider the non `#undef'
ac1cb8d3 45644 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
45645 # Work around the forget-to-reset-the-flag bug.
45646 echo 't clr' >>$CONFIG_STATUS
45647 echo ': clr' >>$CONFIG_STATUS
45648 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45649 echo 'CEOF
45650 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45651 rm -f $tmp/in
45652 mv $tmp/out $tmp/in
45653' >>$CONFIG_STATUS
45654 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45655 rm -f conftest.undefs
45656 mv conftest.tail conftest.undefs
45657done
45658rm -f conftest.undefs
45659
45660cat >>$CONFIG_STATUS <<\_ACEOF
45661 # Let's still pretend it is `configure' which instantiates (i.e., don't
45662 # use $as_me), people would be surprised to read:
45663 # /* config.h. Generated by config.status. */
45664 if test x"$ac_file" = x-; then
45665 echo "/* Generated by configure. */" >$tmp/config.h
45666 else
45667 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45668 fi
45669 cat $tmp/in >>$tmp/config.h
45670 rm -f $tmp/in
45671 if test x"$ac_file" != x-; then
45672 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45673 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45674echo "$as_me: $ac_file is unchanged" >&6;}
45675 else
45676 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45677$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45678 X"$ac_file" : 'X\(//\)[^/]' \| \
45679 X"$ac_file" : 'X\(//\)$' \| \
45680 X"$ac_file" : 'X\(/\)' \| \
45681 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45682echo X"$ac_file" |
45683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45685 /^X\(\/\/\)$/{ s//\1/; q; }
45686 /^X\(\/\).*/{ s//\1/; q; }
45687 s/.*/./; q'`
45688 { if $as_mkdir_p; then
45689 mkdir -p "$ac_dir"
45690 else
45691 as_dir="$ac_dir"
45692 as_dirs=
45693 while test ! -d "$as_dir"; do
45694 as_dirs="$as_dir $as_dirs"
45695 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45696$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45697 X"$as_dir" : 'X\(//\)[^/]' \| \
45698 X"$as_dir" : 'X\(//\)$' \| \
45699 X"$as_dir" : 'X\(/\)' \| \
45700 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45701echo X"$as_dir" |
45702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45704 /^X\(\/\/\)$/{ s//\1/; q; }
45705 /^X\(\/\).*/{ s//\1/; q; }
45706 s/.*/./; q'`
45707 done
45708 test ! -n "$as_dirs" || mkdir $as_dirs
45709 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45710echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45711 { (exit 1); exit 1; }; }; }
45712
45713 rm -f $ac_file
45714 mv $tmp/config.h $ac_file
45715 fi
45716 else
45717 cat $tmp/config.h
45718 rm -f $tmp/config.h
45719 fi
45720done
45721_ACEOF
45722cat >>$CONFIG_STATUS <<\_ACEOF
45723
45724#
45725# CONFIG_COMMANDS section.
45726#
45727for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45728 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45729 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45730 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45731$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45732 X"$ac_dest" : 'X\(//\)[^/]' \| \
45733 X"$ac_dest" : 'X\(//\)$' \| \
45734 X"$ac_dest" : 'X\(/\)' \| \
45735 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45736echo X"$ac_dest" |
45737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45739 /^X\(\/\/\)$/{ s//\1/; q; }
45740 /^X\(\/\).*/{ s//\1/; q; }
45741 s/.*/./; q'`
ac1cb8d3
VS
45742 { if $as_mkdir_p; then
45743 mkdir -p "$ac_dir"
45744 else
45745 as_dir="$ac_dir"
45746 as_dirs=
45747 while test ! -d "$as_dir"; do
45748 as_dirs="$as_dir $as_dirs"
45749 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45750$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45751 X"$as_dir" : 'X\(//\)[^/]' \| \
45752 X"$as_dir" : 'X\(//\)$' \| \
45753 X"$as_dir" : 'X\(/\)' \| \
45754 . : '\(.\)' 2>/dev/null ||
45755echo X"$as_dir" |
45756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45758 /^X\(\/\/\)$/{ s//\1/; q; }
45759 /^X\(\/\).*/{ s//\1/; q; }
45760 s/.*/./; q'`
45761 done
45762 test ! -n "$as_dirs" || mkdir $as_dirs
45763 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45764echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45765 { (exit 1); exit 1; }; }; }
45766
a848cd7e
SC
45767 ac_builddir=.
45768
45769if test "$ac_dir" != .; then
45770 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45771 # A "../" for each directory in $ac_dir_suffix.
45772 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45773else
45774 ac_dir_suffix= ac_top_builddir=
45775fi
45776
45777case $srcdir in
45778 .) # No --srcdir option. We are building in place.
45779 ac_srcdir=.
45780 if test -z "$ac_top_builddir"; then
45781 ac_top_srcdir=.
45782 else
45783 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45784 fi ;;
45785 [\\/]* | ?:[\\/]* ) # Absolute path.
45786 ac_srcdir=$srcdir$ac_dir_suffix;
45787 ac_top_srcdir=$srcdir ;;
45788 *) # Relative path.
45789 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45790 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45791esac
ac1cb8d3
VS
45792
45793# Do not use `cd foo && pwd` to compute absolute paths, because
45794# the directories may not exist.
45795case `pwd` in
45796.) ac_abs_builddir="$ac_dir";;
45797*)
45798 case "$ac_dir" in
45799 .) ac_abs_builddir=`pwd`;;
45800 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45801 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45802 esac;;
45803esac
45804case $ac_abs_builddir in
45805.) ac_abs_top_builddir=${ac_top_builddir}.;;
45806*)
45807 case ${ac_top_builddir}. in
45808 .) ac_abs_top_builddir=$ac_abs_builddir;;
45809 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45810 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45811 esac;;
45812esac
45813case $ac_abs_builddir in
45814.) ac_abs_srcdir=$ac_srcdir;;
45815*)
45816 case $ac_srcdir in
45817 .) ac_abs_srcdir=$ac_abs_builddir;;
45818 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45819 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45820 esac;;
45821esac
45822case $ac_abs_builddir in
45823.) ac_abs_top_srcdir=$ac_top_srcdir;;
45824*)
45825 case $ac_top_srcdir in
45826 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45827 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45828 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45829 esac;;
45830esac
a848cd7e
SC
45831
45832
45833 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45834echo "$as_me: executing $ac_dest commands" >&6;}
45835 case $ac_dest in
ceec2216
RL
45836 wx-config ) rm -f wx-config
45837 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45838 ;;
a848cd7e
SC
45839 esac
45840done
45841_ACEOF
45842
45843cat >>$CONFIG_STATUS <<\_ACEOF
45844
45845{ (exit 0); exit 0; }
45846_ACEOF
45847chmod +x $CONFIG_STATUS
45848ac_clean_files=$ac_clean_files_save
45849
45850
45851# configure is writing to config.log, and then calls config.status.
45852# config.status does its own redirection, appending to config.log.
45853# Unfortunately, on DOS this fails, as config.log is still kept open
45854# by configure, so config.status won't be able to write to it; its
45855# output is simply discarded. So we exec the FD to /dev/null,
45856# effectively closing config.log, so it can be properly (re)opened and
45857# appended to by config.status. When coming back to configure, we
45858# need to make the FD available again.
45859if test "$no_create" != yes; then
45860 ac_cs_success=:
45861 ac_config_status_args=
45862 test "$silent" = yes &&
45863 ac_config_status_args="$ac_config_status_args --quiet"
45864 exec 5>/dev/null
45865 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45866 exec 5>>config.log
45867 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45868 # would make configure fail if this is the last instruction.
45869 $ac_cs_success || { (exit 1); exit 1; }
45870fi
45871
45872#
45873# CONFIG_SUBDIRS section.
45874#
45875if test "$no_recursion" != yes; then
45876
45877 # Remove --cache-file and --srcdir arguments so they do not pile up.
45878 ac_sub_configure_args=
45879 ac_prev=
45880 for ac_arg in $ac_configure_args; do
45881 if test -n "$ac_prev"; then
45882 ac_prev=
45883 continue
45884 fi
45885 case $ac_arg in
45886 -cache-file | --cache-file | --cache-fil | --cache-fi \
45887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45888 ac_prev=cache_file ;;
45889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45891 | --c=*)
45892 ;;
45893 --config-cache | -C)
45894 ;;
45895 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45896 ac_prev=srcdir ;;
45897 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45898 ;;
45899 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45900 ac_prev=prefix ;;
45901 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45902 ;;
45903 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45904 esac
45905 done
45906
45907 # Always prepend --prefix to ensure using the same prefix
45908 # in subdir configurations.
45909 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45910
45911 ac_popdir=`pwd`
45912 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45913
45914 # Do not complain, so a configure script can configure whichever
45915 # parts of a large source tree are present.
45916 test -d $srcdir/$ac_dir || continue
45917
45918 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45919echo "$as_me: configuring in $ac_dir" >&6;}
45920 { if $as_mkdir_p; then
45921 mkdir -p "$ac_dir"
45922 else
45923 as_dir="$ac_dir"
45924 as_dirs=
45925 while test ! -d "$as_dir"; do
45926 as_dirs="$as_dir $as_dirs"
45927 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45928$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45929 X"$as_dir" : 'X\(//\)[^/]' \| \
45930 X"$as_dir" : 'X\(//\)$' \| \
45931 X"$as_dir" : 'X\(/\)' \| \
45932 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45933echo X"$as_dir" |
45934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45936 /^X\(\/\/\)$/{ s//\1/; q; }
45937 /^X\(\/\).*/{ s//\1/; q; }
45938 s/.*/./; q'`
45939 done
45940 test ! -n "$as_dirs" || mkdir $as_dirs
45941 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45942echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45943 { (exit 1); exit 1; }; }; }
45944
45945 ac_builddir=.
45946
45947if test "$ac_dir" != .; then
45948 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45949 # A "../" for each directory in $ac_dir_suffix.
45950 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45951else
45952 ac_dir_suffix= ac_top_builddir=
45953fi
45954
45955case $srcdir in
45956 .) # No --srcdir option. We are building in place.
45957 ac_srcdir=.
45958 if test -z "$ac_top_builddir"; then
45959 ac_top_srcdir=.
45960 else
45961 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45962 fi ;;
45963 [\\/]* | ?:[\\/]* ) # Absolute path.
45964 ac_srcdir=$srcdir$ac_dir_suffix;
45965 ac_top_srcdir=$srcdir ;;
45966 *) # Relative path.
45967 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45968 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45969esac
ac1cb8d3
VS
45970
45971# Do not use `cd foo && pwd` to compute absolute paths, because
45972# the directories may not exist.
45973case `pwd` in
45974.) ac_abs_builddir="$ac_dir";;
45975*)
45976 case "$ac_dir" in
45977 .) ac_abs_builddir=`pwd`;;
45978 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45979 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45980 esac;;
45981esac
45982case $ac_abs_builddir in
45983.) ac_abs_top_builddir=${ac_top_builddir}.;;
45984*)
45985 case ${ac_top_builddir}. in
45986 .) ac_abs_top_builddir=$ac_abs_builddir;;
45987 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45988 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45989 esac;;
45990esac
45991case $ac_abs_builddir in
45992.) ac_abs_srcdir=$ac_srcdir;;
45993*)
45994 case $ac_srcdir in
45995 .) ac_abs_srcdir=$ac_abs_builddir;;
45996 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45997 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45998 esac;;
45999esac
46000case $ac_abs_builddir in
46001.) ac_abs_top_srcdir=$ac_top_srcdir;;
46002*)
46003 case $ac_top_srcdir in
46004 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46005 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46006 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46007 esac;;
46008esac
a848cd7e
SC
46009
46010
46011 cd $ac_dir
46012
46013 # Check for guested configure; otherwise get Cygnus style configure.
46014 if test -f $ac_srcdir/configure.gnu; then
46015 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
46016 elif test -f $ac_srcdir/configure; then
46017 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
46018 elif test -f $ac_srcdir/configure.in; then
46019 ac_sub_configure=$ac_configure
46020 else
46021 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
46022echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
46023 ac_sub_configure=
46024 fi
46025
46026 # The recursion is here.
46027 if test -n "$ac_sub_configure"; then
46028 # Make the cache file name correct relative to the subdirectory.
46029 case $cache_file in
46030 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
46031 *) # Relative path.
ac1cb8d3 46032 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
46033 esac
46034
46035 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
46036echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
46037 # The eval makes quoting arguments work.
46038 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
46039 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
46040 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
46041echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
46042 { (exit 1); exit 1; }; }
46043 fi
46044
fb00f58d 46045 cd $ac_popdir
a848cd7e
SC
46046 done
46047fi
46048
46049
46050echo
77ffb593 46051echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 46052echo ""
4d4ff94c 46053echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 46054echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 46055
77ffb593
JS
46056echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
46057echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
46058echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 46059
77ffb593
JS
46060echo " What level of wxWidgets compatibility should be enabled?"
46061echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
46062echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 46063
77ffb593 46064echo " Which libraries should wxWidgets use?"
a848cd7e
SC
46065echo " jpeg ${wxUSE_LIBJPEG-none}"
46066echo " png ${wxUSE_LIBPNG-none}"
46067echo " regex ${wxUSE_REGEX}"
46068echo " tiff ${wxUSE_LIBTIFF-none}"
46069if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
46070echo " xpm ${wxUSE_LIBXPM-none}"
46071fi
46072echo " zlib ${wxUSE_ZLIB}"
46073echo " odbc ${wxUSE_ODBC}"
46074echo " expat ${wxUSE_EXPAT}"
46075echo " libmspack ${wxUSE_LIBMSPACK}"
46076echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 46077echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
46078
46079echo ""
46080