]> git.saurik.com Git - wxWidgets.git/blame - configure
rv hack
[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"
52ada004 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_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
9dd0f6c2 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
1666wx_subrelease_number=0
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
1946 LIBS="$LIBS -lstdc++"
1947 ;;
1948
1949 *-pc-os2_emx | *-pc-os2-emx )
1950 cat >>confdefs.h <<\_ACEOF
1951#define __EMX__ 1
1952_ACEOF
1953
1954 USE_OS2=1
1955 cat >>confdefs.h <<\_ACEOF
1956#define __OS2__ 1
1957_ACEOF
1958
1959 PROGRAM_EXT=".exe"
1960 DEFAULT_DEFAULT_wxUSE_PM=1
1961 CXX=gcc
1962 LDFLAGS="$LDFLAGS -Zcrtdll"
1963 ac_executable_extensions=".exe"
1964 export ac_executable_extensions
1965 ac_save_IFS="$IFS"
1966 IFS='\\'
1967 ac_TEMP_PATH=
1968 for ac_dir in $PATH; do
1969 IFS=$ac_save_IFS
1970 if test -z "$ac_TEMP_PATH"; then
1971 ac_TEMP_PATH="$ac_dir"
1972 else
1973 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1974 fi
1975 done
1976 export PATH="$ac_TEMP_PATH"
1977 unset ac_TEMP_PATH
a03b8b04 1978 DEFAULT_STD_FLAG=no
a848cd7e
SC
1979 ;;
1980
1981 powerpc-*-darwin* )
1982 USE_BSD=1
1983 USE_DARWIN=1
1984 SO_SUFFIX=dylib
1985 cat >>confdefs.h <<\_ACEOF
1986#define __BSD__ 1
1987_ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990#define __DARWIN__ 1
a848cd7e
SC
1991_ACEOF
1992
1993 cat >>confdefs.h <<\_ACEOF
1994#define TARGET_CARBON 1
1995_ACEOF
1996
1997 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1998 DEFAULT_STD_FLAG=no
a848cd7e 1999 ;;
1e9e8aba
DE
2000 powerpc-apple-macos* )
2001 USE_UNIX=0
2002 ac_cv_c_bigendian=yes
2003 SO_SUFFIX=shlib
2004 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2005 DEFAULT_STD_FLAG=no
1e9e8aba 2006 ;;
a848cd7e
SC
2007
2008 *-*-beos* )
2009 USE_BEOS=1
2010 cat >>confdefs.h <<\_ACEOF
2011#define __BEOS__ 1
2012_ACEOF
2013
2014 ;;
2015
2016 *)
2017 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2018echo "$as_me: error: unknown system type ${host}." >&2;}
2019 { (exit 1); exit 1; }; }
2020esac
2021
2022
2023
2024
2025 wx_arg_cache_file="configarg.cache"
2026 echo "loading argument cache $wx_arg_cache_file"
2027 rm -f ${wx_arg_cache_file}.tmp
2028 touch ${wx_arg_cache_file}.tmp
2029 touch ${wx_arg_cache_file}
2030
2031
2032DEBUG_CONFIGURE=0
2033if test $DEBUG_CONFIGURE = 1; then
2034 DEFAULT_wxUSE_UNIVERSAL=no
2035 DEFAULT_wxUSE_STL=no
2036
2037 DEFAULT_wxUSE_NANOX=no
2038
2039 DEFAULT_wxUSE_THREADS=yes
2040
2041 DEFAULT_wxUSE_SHARED=yes
2042 DEFAULT_wxUSE_OPTIMISE=no
2043 DEFAULT_wxUSE_PROFILE=no
2044 DEFAULT_wxUSE_NO_DEPS=no
2045 DEFAULT_wxUSE_NO_RTTI=no
2046 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2047 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2048 DEFAULT_wxUSE_PERMISSIVE=no
2049 DEFAULT_wxUSE_DEBUG_FLAG=yes
2050 DEFAULT_wxUSE_DEBUG_INFO=yes
2051 DEFAULT_wxUSE_DEBUG_GDB=yes
2052 DEFAULT_wxUSE_MEM_TRACING=no
2053 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2054 DEFAULT_wxUSE_DMALLOC=no
2055 DEFAULT_wxUSE_APPLE_IEEE=no
2056
2057 DEFAULT_wxUSE_EXCEPTIONS=no
2058 DEFAULT_wxUSE_LOG=yes
2059 DEFAULT_wxUSE_LOGWINDOW=no
2060 DEFAULT_wxUSE_LOGGUI=no
2061 DEFAULT_wxUSE_LOGDIALOG=no
2062
2063 DEFAULT_wxUSE_GUI=yes
2064 DEFAULT_wxUSE_CONTROLS=no
2065
2066 DEFAULT_wxUSE_REGEX=no
2067 DEFAULT_wxUSE_XML=no
2068 DEFAULT_wxUSE_EXPAT=no
2069 DEFAULT_wxUSE_ZLIB=no
2070 DEFAULT_wxUSE_LIBPNG=no
2071 DEFAULT_wxUSE_LIBJPEG=no
2072 DEFAULT_wxUSE_LIBTIFF=no
2073 DEFAULT_wxUSE_LIBXPM=no
2074 DEFAULT_wxUSE_LIBMSPACK=no
2075 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2076 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2077 DEFAULT_wxUSE_ODBC=no
2078 DEFAULT_wxUSE_OPENGL=no
2079
2080 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2081 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2082 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2083 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2084 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2085 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2086 DEFAULT_wxUSE_CMDLINE_PARSER=no
2087 DEFAULT_wxUSE_DATETIME=no
2088 DEFAULT_wxUSE_TIMER=no
2089 DEFAULT_wxUSE_STOPWATCH=no
2090 DEFAULT_wxUSE_FILE=no
2091 DEFAULT_wxUSE_FFILE=no
07158944 2092 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2093 DEFAULT_wxUSE_TEXTBUFFER=no
2094 DEFAULT_wxUSE_TEXTFILE=no
2095 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2096 DEFAULT_wxUSE_MEDIACTRL=no
2097 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2098 DEFAULT_wxUSE_INTL=no
2099 DEFAULT_wxUSE_CONFIG=no
2100 DEFAULT_wxUSE_FONTMAP=no
2101 DEFAULT_wxUSE_STREAMS=no
2102 DEFAULT_wxUSE_SOCKETS=no
2103 DEFAULT_wxUSE_OLE=no
2104 DEFAULT_wxUSE_DATAOBJ=no
2105 DEFAULT_wxUSE_DIALUP_MANAGER=no
2106 DEFAULT_wxUSE_JOYSTICK=no
2107 DEFAULT_wxUSE_DYNLIB_CLASS=no
2108 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2109 DEFAULT_wxUSE_LONGLONG=no
2110 DEFAULT_wxUSE_GEOMETRY=no
2111
2112 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2113 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2114 DEFAULT_wxUSE_POSTSCRIPT=no
2115
2116 DEFAULT_wxUSE_CLIPBOARD=no
2117 DEFAULT_wxUSE_TOOLTIPS=no
2118 DEFAULT_wxUSE_DRAG_AND_DROP=no
2119 DEFAULT_wxUSE_DRAGIMAGE=no
2120 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2121 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2122
8a7b1113 2123 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2124 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2125 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2126 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2127
2128 DEFAULT_wxUSE_RESOURCES=no
2129 DEFAULT_wxUSE_CONSTRAINTS=no
2130 DEFAULT_wxUSE_IPC=no
2131 DEFAULT_wxUSE_HELP=no
2132 DEFAULT_wxUSE_MS_HTML_HELP=no
2133 DEFAULT_wxUSE_WXHTML_HELP=no
2134 DEFAULT_wxUSE_TREELAYOUT=no
2135 DEFAULT_wxUSE_METAFILE=no
2136 DEFAULT_wxUSE_MIMETYPE=no
2137 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2138 DEFAULT_wxUSE_PROTOCOL=no
2139 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2140 DEFAULT_wxUSE_PROTOCOL_FTP=no
2141 DEFAULT_wxUSE_PROTOCOL_FILE=no
2142 DEFAULT_wxUSE_URL=no
2143
2144 DEFAULT_wxUSE_COMMONDLGS=no
2145 DEFAULT_wxUSE_CHOICEDLG=no
2146 DEFAULT_wxUSE_COLOURDLG=no
2147 DEFAULT_wxUSE_DIRDLG=no
2148 DEFAULT_wxUSE_FILEDLG=no
2149 DEFAULT_wxUSE_FINDREPLDLG=no
2150 DEFAULT_wxUSE_FONTDLG=no
2151 DEFAULT_wxUSE_MSGDLG=no
2152 DEFAULT_wxUSE_NUMBERDLG=no
2153 DEFAULT_wxUSE_TEXTDLG=no
2154 DEFAULT_wxUSE_SPLASH=no
2155 DEFAULT_wxUSE_STARTUP_TIPS=no
2156 DEFAULT_wxUSE_PROGRESSDLG=no
2157 DEFAULT_wxUSE_WIZARDDLG=no
2158
2159 DEFAULT_wxUSE_MENUS=no
2160 DEFAULT_wxUSE_MINIFRAME=no
2161 DEFAULT_wxUSE_HTML=no
9a8f0513 2162 DEFAULT_wxUSE_XRC=no
646b6ec1 2163 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2164 DEFAULT_wxUSE_FILESYSTEM=no
2165 DEFAULT_wxUSE_FS_INET=no
2166 DEFAULT_wxUSE_FS_ZIP=no
2167 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2168 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2169 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2170 DEFAULT_wxUSE_VALIDATORS=no
2171
2172 DEFAULT_wxUSE_ACCEL=no
2173 DEFAULT_wxUSE_BUTTON=no
2174 DEFAULT_wxUSE_BMPBUTTON=no
2175 DEFAULT_wxUSE_CALCTRL=no
2176 DEFAULT_wxUSE_CARET=no
2177 DEFAULT_wxUSE_CHECKBOX=no
2178 DEFAULT_wxUSE_CHECKLST=no
2179 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2180 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2181 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2182 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2183 DEFAULT_wxUSE_DISPLAY=no
2184 DEFAULT_wxUSE_GAUGE=no
2185 DEFAULT_wxUSE_GRID=no
2186 DEFAULT_wxUSE_IMAGLIST=no
2187 DEFAULT_wxUSE_LISTBOOK=no
2188 DEFAULT_wxUSE_LISTBOX=no
2189 DEFAULT_wxUSE_LISTCTRL=no
2190 DEFAULT_wxUSE_NOTEBOOK=no
2191 DEFAULT_wxUSE_RADIOBOX=no
2192 DEFAULT_wxUSE_RADIOBTN=no
2193 DEFAULT_wxUSE_SASH=no
2194 DEFAULT_wxUSE_SCROLLBAR=no
2195 DEFAULT_wxUSE_SLIDER=no
2196 DEFAULT_wxUSE_SPINBTN=no
2197 DEFAULT_wxUSE_SPINCTRL=no
2198 DEFAULT_wxUSE_SPLITTER=no
2199 DEFAULT_wxUSE_STATBMP=no
2200 DEFAULT_wxUSE_STATBOX=no
2201 DEFAULT_wxUSE_STATLINE=no
2202 DEFAULT_wxUSE_STATTEXT=no
2203 DEFAULT_wxUSE_STATUSBAR=yes
2204 DEFAULT_wxUSE_TABDIALOG=no
2205 DEFAULT_wxUSE_TEXTCTRL=no
2206 DEFAULT_wxUSE_TOGGLEBTN=no
2207 DEFAULT_wxUSE_TOOLBAR=no
2208 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2209 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2210 DEFAULT_wxUSE_TREECTRL=no
2211 DEFAULT_wxUSE_POPUPWIN=no
2212 DEFAULT_wxUSE_TIPWINDOW=no
2213
2214 DEFAULT_wxUSE_UNICODE=no
2215 DEFAULT_wxUSE_UNICODE_MSLU=no
2216 DEFAULT_wxUSE_WCSRTOMBS=no
2217
2218 DEFAULT_wxUSE_PALETTE=no
2219 DEFAULT_wxUSE_IMAGE=no
2220 DEFAULT_wxUSE_GIF=no
2221 DEFAULT_wxUSE_PCX=no
2222 DEFAULT_wxUSE_PNM=no
2223 DEFAULT_wxUSE_IFF=no
2224 DEFAULT_wxUSE_XPM=no
2225 DEFAULT_wxUSE_ICO_CUR=no
2226 DEFAULT_wxUSE_ACCESSIBILITY=no
2227
2228 DEFAULT_wxUSE_MONOLITHIC=no
2229 DEFAULT_wxUSE_PLUGINS=no
2230 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2231else
2232 DEFAULT_wxUSE_UNIVERSAL=no
2233 DEFAULT_wxUSE_STL=no
2234
2235 DEFAULT_wxUSE_NANOX=no
2236
2237 DEFAULT_wxUSE_THREADS=yes
2238
2239 DEFAULT_wxUSE_SHARED=yes
2240 DEFAULT_wxUSE_OPTIMISE=yes
2241 DEFAULT_wxUSE_PROFILE=no
2242 DEFAULT_wxUSE_NO_DEPS=no
2243 DEFAULT_wxUSE_NO_RTTI=no
2244 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2245 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2246 DEFAULT_wxUSE_PERMISSIVE=no
2247 DEFAULT_wxUSE_DEBUG_FLAG=no
2248 DEFAULT_wxUSE_DEBUG_INFO=no
2249 DEFAULT_wxUSE_DEBUG_GDB=no
2250 DEFAULT_wxUSE_MEM_TRACING=no
2251 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2252 DEFAULT_wxUSE_DMALLOC=no
2253 DEFAULT_wxUSE_APPLE_IEEE=yes
2254
2255 DEFAULT_wxUSE_EXCEPTIONS=yes
2256 DEFAULT_wxUSE_LOG=yes
2257 DEFAULT_wxUSE_LOGWINDOW=yes
2258 DEFAULT_wxUSE_LOGGUI=yes
2259 DEFAULT_wxUSE_LOGDIALOG=yes
2260
2261 DEFAULT_wxUSE_GUI=yes
2262
2263 DEFAULT_wxUSE_REGEX=yes
2264 DEFAULT_wxUSE_XML=yes
2265 DEFAULT_wxUSE_EXPAT=yes
2266 DEFAULT_wxUSE_ZLIB=yes
2267 DEFAULT_wxUSE_LIBPNG=yes
2268 DEFAULT_wxUSE_LIBJPEG=yes
2269 DEFAULT_wxUSE_LIBTIFF=yes
2270 DEFAULT_wxUSE_LIBXPM=yes
2271 DEFAULT_wxUSE_LIBMSPACK=yes
2272 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2273 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2274 DEFAULT_wxUSE_ODBC=no
52cb607e 2275 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2276
2277 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2278 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2279 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2280 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2281 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2282 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2283 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2284 DEFAULT_wxUSE_DATETIME=yes
2285 DEFAULT_wxUSE_TIMER=yes
2286 DEFAULT_wxUSE_STOPWATCH=yes
2287 DEFAULT_wxUSE_FILE=yes
2288 DEFAULT_wxUSE_FFILE=yes
07158944 2289 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2290 DEFAULT_wxUSE_TEXTBUFFER=yes
2291 DEFAULT_wxUSE_TEXTFILE=yes
2292 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2293 DEFAULT_wxUSE_MEDIACTRL=no
2294 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2295 DEFAULT_wxUSE_INTL=yes
2296 DEFAULT_wxUSE_CONFIG=yes
2297 DEFAULT_wxUSE_FONTMAP=yes
2298 DEFAULT_wxUSE_STREAMS=yes
2299 DEFAULT_wxUSE_SOCKETS=yes
2300 DEFAULT_wxUSE_OLE=yes
2301 DEFAULT_wxUSE_DATAOBJ=yes
2302 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2303 DEFAULT_wxUSE_JOYSTICK=yes
2304 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2305 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2306 DEFAULT_wxUSE_LONGLONG=yes
2307 DEFAULT_wxUSE_GEOMETRY=yes
2308
2309 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2310 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2311 DEFAULT_wxUSE_POSTSCRIPT=yes
2312
2313 DEFAULT_wxUSE_CLIPBOARD=yes
2314 DEFAULT_wxUSE_TOOLTIPS=yes
2315 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2316 DEFAULT_wxUSE_DRAGIMAGE=yes
2317 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2318 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2319
8a7b1113 2320 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2321 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2322 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2323 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2324
2325 DEFAULT_wxUSE_RESOURCES=no
2326 DEFAULT_wxUSE_CONSTRAINTS=yes
2327 DEFAULT_wxUSE_IPC=yes
2328 DEFAULT_wxUSE_HELP=yes
2329 DEFAULT_wxUSE_MS_HTML_HELP=yes
2330 DEFAULT_wxUSE_WXHTML_HELP=yes
2331 DEFAULT_wxUSE_TREELAYOUT=yes
2332 DEFAULT_wxUSE_METAFILE=yes
2333 DEFAULT_wxUSE_MIMETYPE=yes
2334 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2335 DEFAULT_wxUSE_PROTOCOL=yes
2336 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2337 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2338 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2339 DEFAULT_wxUSE_URL=yes
2340
2341 DEFAULT_wxUSE_COMMONDLGS=yes
2342 DEFAULT_wxUSE_CHOICEDLG=yes
2343 DEFAULT_wxUSE_COLOURDLG=yes
2344 DEFAULT_wxUSE_DIRDLG=yes
2345 DEFAULT_wxUSE_FILEDLG=yes
2346 DEFAULT_wxUSE_FINDREPLDLG=yes
2347 DEFAULT_wxUSE_FONTDLG=yes
2348 DEFAULT_wxUSE_MSGDLG=yes
2349 DEFAULT_wxUSE_NUMBERDLG=yes
2350 DEFAULT_wxUSE_TEXTDLG=yes
2351 DEFAULT_wxUSE_SPLASH=yes
2352 DEFAULT_wxUSE_STARTUP_TIPS=yes
2353 DEFAULT_wxUSE_PROGRESSDLG=yes
2354 DEFAULT_wxUSE_WIZARDDLG=yes
2355
2356 DEFAULT_wxUSE_MENUS=yes
2357 DEFAULT_wxUSE_MINIFRAME=yes
2358 DEFAULT_wxUSE_HTML=yes
9a8f0513 2359 DEFAULT_wxUSE_XRC=yes
646b6ec1 2360 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2361 DEFAULT_wxUSE_FILESYSTEM=yes
2362 DEFAULT_wxUSE_FS_INET=yes
2363 DEFAULT_wxUSE_FS_ZIP=yes
2364 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2365 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2366 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2367 DEFAULT_wxUSE_VALIDATORS=yes
2368
2369 DEFAULT_wxUSE_ACCEL=yes
2370 DEFAULT_wxUSE_BUTTON=yes
2371 DEFAULT_wxUSE_BMPBUTTON=yes
2372 DEFAULT_wxUSE_CALCTRL=yes
2373 DEFAULT_wxUSE_CARET=yes
2374 DEFAULT_wxUSE_CHECKBOX=yes
2375 DEFAULT_wxUSE_CHECKLST=yes
2376 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2377 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2378 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2379 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2380 DEFAULT_wxUSE_DISPLAY=yes
2381 DEFAULT_wxUSE_GAUGE=yes
2382 DEFAULT_wxUSE_GRID=yes
2383 DEFAULT_wxUSE_IMAGLIST=yes
2384 DEFAULT_wxUSE_LISTBOOK=yes
2385 DEFAULT_wxUSE_LISTBOX=yes
2386 DEFAULT_wxUSE_LISTCTRL=yes
2387 DEFAULT_wxUSE_NOTEBOOK=yes
2388 DEFAULT_wxUSE_RADIOBOX=yes
2389 DEFAULT_wxUSE_RADIOBTN=yes
2390 DEFAULT_wxUSE_SASH=yes
2391 DEFAULT_wxUSE_SCROLLBAR=yes
2392 DEFAULT_wxUSE_SLIDER=yes
2393 DEFAULT_wxUSE_SPINBTN=yes
2394 DEFAULT_wxUSE_SPINCTRL=yes
2395 DEFAULT_wxUSE_SPLITTER=yes
2396 DEFAULT_wxUSE_STATBMP=yes
2397 DEFAULT_wxUSE_STATBOX=yes
2398 DEFAULT_wxUSE_STATLINE=yes
2399 DEFAULT_wxUSE_STATTEXT=yes
2400 DEFAULT_wxUSE_STATUSBAR=yes
2401 DEFAULT_wxUSE_TABDIALOG=no
2402 DEFAULT_wxUSE_TEXTCTRL=yes
2403 DEFAULT_wxUSE_TOGGLEBTN=yes
2404 DEFAULT_wxUSE_TOOLBAR=yes
2405 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2406 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2407 DEFAULT_wxUSE_TREECTRL=yes
2408 DEFAULT_wxUSE_POPUPWIN=yes
2409 DEFAULT_wxUSE_TIPWINDOW=yes
2410
78de529b 2411 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2412 DEFAULT_wxUSE_UNICODE_MSLU=yes
2413 DEFAULT_wxUSE_WCSRTOMBS=no
2414
2415 DEFAULT_wxUSE_PALETTE=yes
2416 DEFAULT_wxUSE_IMAGE=yes
2417 DEFAULT_wxUSE_GIF=yes
2418 DEFAULT_wxUSE_PCX=yes
2419 DEFAULT_wxUSE_IFF=no
2420 DEFAULT_wxUSE_PNM=yes
2421 DEFAULT_wxUSE_XPM=yes
2422 DEFAULT_wxUSE_ICO_CUR=yes
2423 DEFAULT_wxUSE_ACCESSIBILITY=no
2424
2425 DEFAULT_wxUSE_MONOLITHIC=no
2426 DEFAULT_wxUSE_PLUGINS=no
2427 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2428
f34ca037 2429 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2430fi
2431
2432
2433
f34ca037 2434
a848cd7e
SC
2435for toolkit in `echo $ALL_TOOLKITS`; do
2436 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2437 if test "x$LINE" != "x" ; then
2438 has_toolkit_in_cache=1
2439 eval "DEFAULT_$LINE"
2440 eval "CACHE_$toolkit=1"
f34ca037
MW
2441
2442 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2443 if test "x$LINE" != "x" ; then
2444 eval "DEFAULT_$LINE"
2445 fi
a848cd7e
SC
2446 fi
2447done
2448
2449
2450
2451 enablestring=
2452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2453echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2454 no_cache=0
2455 # Check whether --enable-gui or --disable-gui was given.
2456if test "${enable_gui+set}" = set; then
2457 enableval="$enable_gui"
2458
2459 if test "$enableval" = yes; then
2460 ac_cv_use_gui='wxUSE_GUI=yes'
2461 else
2462 ac_cv_use_gui='wxUSE_GUI=no'
2463 fi
2464
2465else
2466
2467 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2468 if test "x$LINE" != x ; then
2469 eval "DEFAULT_$LINE"
2470 else
2471 no_cache=1
2472 fi
2473
2474 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2475
2476fi;
2477
2478 eval "$ac_cv_use_gui"
2479 if test "$no_cache" != 1; then
2480 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2481 fi
2482
2483 if test "$wxUSE_GUI" = yes; then
2484 echo "$as_me:$LINENO: result: yes" >&5
2485echo "${ECHO_T}yes" >&6
2486 else
2487 echo "$as_me:$LINENO: result: no" >&5
2488echo "${ECHO_T}no" >&6
2489 fi
2490
2491
2492 enablestring=
2493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2494echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2495 no_cache=0
2496 # Check whether --enable-monolithic or --disable-monolithic was given.
2497if test "${enable_monolithic+set}" = set; then
2498 enableval="$enable_monolithic"
2499
2500 if test "$enableval" = yes; then
2501 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2502 else
2503 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2504 fi
2505
2506else
2507
2508 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2516
2517fi;
2518
2519 eval "$ac_cv_use_monolithic"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_MONOLITHIC" = yes; then
2525 echo "$as_me:$LINENO: result: yes" >&5
2526echo "${ECHO_T}yes" >&6
2527 else
2528 echo "$as_me:$LINENO: result: no" >&5
2529echo "${ECHO_T}no" >&6
2530 fi
2531
2532
2533 enablestring=
2534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2535echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2536 no_cache=0
2537 # Check whether --enable-plugins or --disable-plugins was given.
2538if test "${enable_plugins+set}" = set; then
2539 enableval="$enable_plugins"
2540
2541 if test "$enableval" = yes; then
2542 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2543 else
2544 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2545 fi
2546
2547else
2548
2549 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2550 if test "x$LINE" != x ; then
2551 eval "DEFAULT_$LINE"
2552 else
2553 no_cache=1
2554 fi
2555
2556 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2557
2558fi;
2559
2560 eval "$ac_cv_use_plugins"
2561 if test "$no_cache" != 1; then
2562 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2563 fi
2564
2565 if test "$wxUSE_PLUGINS" = yes; then
2566 echo "$as_me:$LINENO: result: yes" >&5
2567echo "${ECHO_T}yes" >&6
2568 else
2569 echo "$as_me:$LINENO: result: no" >&5
2570echo "${ECHO_T}no" >&6
2571 fi
2572
2573
2574if test "$wxUSE_GUI" = "yes"; then
2575
2576
2577 enablestring=
2578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2579echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2580 no_cache=0
2581 # Check whether --enable-universal or --disable-universal was given.
2582if test "${enable_universal+set}" = set; then
2583 enableval="$enable_universal"
2584
2585 if test "$enableval" = yes; then
2586 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2587 else
2588 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2589 fi
2590
2591else
2592
2593 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2594 if test "x$LINE" != x ; then
2595 eval "DEFAULT_$LINE"
2596 else
2597 no_cache=1
2598 fi
2599
2600 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2601
2602fi;
2603
2604 eval "$ac_cv_use_universal"
2605 if test "$no_cache" != 1; then
2606 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2607 fi
2608
2609 if test "$wxUSE_UNIVERSAL" = yes; then
2610 echo "$as_me:$LINENO: result: yes" >&5
2611echo "${ECHO_T}yes" >&6
2612 else
2613 echo "$as_me:$LINENO: result: no" >&5
2614echo "${ECHO_T}no" >&6
2615 fi
2616
2617
2618# Check whether --with-gtk or --without-gtk was given.
2619if test "${with_gtk+set}" = set; then
2620 withval="$with_gtk"
2621 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2622fi;
2623
2624# Check whether --with-motif or --without-motif was given.
2625if test "${with_motif+set}" = set; then
2626 withval="$with_motif"
2627 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2628fi;
2629
2630# Check whether --with-mac or --without-mac was given.
2631if test "${with_mac+set}" = set; then
2632 withval="$with_mac"
c228d3a4 2633 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2634fi;
2635
2636# Check whether --with-cocoa or --without-cocoa was given.
2637if test "${with_cocoa+set}" = set; then
2638 withval="$with_cocoa"
c228d3a4 2639 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2640fi;
2641
2642# Check whether --with-wine or --without-wine was given.
2643if test "${with_wine+set}" = set; then
2644 withval="$with_wine"
2645 wxUSE_WINE="$withval" CACHE_WINE=1
2646fi;
2647
2648# Check whether --with-msw or --without-msw was given.
2649if test "${with_msw+set}" = set; then
2650 withval="$with_msw"
2651 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-pm or --without-pm was given.
2655if test "${with_pm+set}" = set; then
2656 withval="$with_pm"
2657 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660# Check whether --with-mgl or --without-mgl was given.
2661if test "${with_mgl+set}" = set; then
2662 withval="$with_mgl"
2663 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2664fi;
2665
2666# Check whether --with-microwin or --without-microwin was given.
2667if test "${with_microwin+set}" = set; then
2668 withval="$with_microwin"
2669 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2670fi;
2671
2672# Check whether --with-x11 or --without-x11 was given.
2673if test "${with_x11+set}" = set; then
2674 withval="$with_x11"
2675 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2676fi;
2677
2678 enablestring=
2679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2680echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2681 no_cache=0
2682 # Check whether --enable-nanox or --disable-nanox was given.
2683if test "${enable_nanox+set}" = set; then
2684 enableval="$enable_nanox"
2685
2686 if test "$enableval" = yes; then
2687 ac_cv_use_nanox='wxUSE_NANOX=yes'
2688 else
2689 ac_cv_use_nanox='wxUSE_NANOX=no'
2690 fi
2691
2692else
2693
2694 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2695 if test "x$LINE" != x ; then
2696 eval "DEFAULT_$LINE"
2697 else
2698 no_cache=1
2699 fi
2700
2701 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2702
2703fi;
2704
2705 eval "$ac_cv_use_nanox"
2706 if test "$no_cache" != 1; then
2707 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2708 fi
2709
2710 if test "$wxUSE_NANOX" = yes; then
2711 echo "$as_me:$LINENO: result: yes" >&5
2712echo "${ECHO_T}yes" >&6
2713 else
2714 echo "$as_me:$LINENO: result: no" >&5
2715echo "${ECHO_T}no" >&6
2716 fi
2717
2718
f34ca037
MW
2719# Check whether --enable-gtk2 or --disable-gtk2 was given.
2720if test "${enable_gtk2+set}" = set; then
2721 enableval="$enable_gtk2"
2722 wxUSE_GTK2="$enableval"
2723fi;
a848cd7e 2724
a848cd7e
SC
2725 enablestring=
2726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2727echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2728 no_cache=0
2729 # Check whether --enable-gpe or --disable-gpe was given.
2730if test "${enable_gpe+set}" = set; then
2731 enableval="$enable_gpe"
2732
2733 if test "$enableval" = yes; then
2734 ac_cv_use_gpe='wxUSE_GPE=yes'
2735 else
2736 ac_cv_use_gpe='wxUSE_GPE=no'
2737 fi
2738
2739else
2740
2741 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2742 if test "x$LINE" != x ; then
2743 eval "DEFAULT_$LINE"
2744 else
2745 no_cache=1
2746 fi
2747
2748 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2749
2750fi;
2751
2752 eval "$ac_cv_use_gpe"
2753 if test "$no_cache" != 1; then
2754 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2755 fi
2756
2757 if test "$wxUSE_GPE" = yes; then
2758 echo "$as_me:$LINENO: result: yes" >&5
2759echo "${ECHO_T}yes" >&6
2760 else
2761 echo "$as_me:$LINENO: result: no" >&5
2762echo "${ECHO_T}no" >&6
2763 fi
2764
2765
2766
2767 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2768echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2769 no_cache=0
2770
2771# Check whether --with-libpng or --without-libpng was given.
2772if test "${with_libpng+set}" = set; then
2773 withval="$with_libpng"
2774
2775 if test "$withval" = yes; then
2776 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2777 elif test "$withval" = no; then
2778 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2779 elif test "$withval" = sys; then
2780 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2781 elif test "$withval" = builtin; then
2782 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2783 else
2784 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2785echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2786 { (exit 1); exit 1; }; }
2787 fi
2788
2789else
2790
2791 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2792 if test "x$LINE" != x ; then
2793 eval "DEFAULT_$LINE"
2794 else
2795 no_cache=1
2796 fi
2797
2798 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2799
2800fi;
2801
2802 eval "$ac_cv_use_libpng"
2803 if test "$no_cache" != 1; then
2804 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2805 fi
2806
2807 if test "$wxUSE_LIBPNG" = yes; then
2808 echo "$as_me:$LINENO: result: yes" >&5
2809echo "${ECHO_T}yes" >&6
2810 elif test "$wxUSE_LIBPNG" = no; then
2811 echo "$as_me:$LINENO: result: no" >&5
2812echo "${ECHO_T}no" >&6
2813 elif test "$wxUSE_LIBPNG" = sys; then
2814 echo "$as_me:$LINENO: result: system version" >&5
2815echo "${ECHO_T}system version" >&6
2816 elif test "$wxUSE_LIBPNG" = builtin; then
2817 echo "$as_me:$LINENO: result: builtin version" >&5
2818echo "${ECHO_T}builtin version" >&6
2819 else
2820 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2821echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2822 { (exit 1); exit 1; }; }
2823 fi
2824
2825
2826 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2827echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2828 no_cache=0
2829
2830# Check whether --with-libjpeg or --without-libjpeg was given.
2831if test "${with_libjpeg+set}" = set; then
2832 withval="$with_libjpeg"
2833
2834 if test "$withval" = yes; then
2835 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2836 elif test "$withval" = no; then
2837 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2838 elif test "$withval" = sys; then
2839 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2840 elif test "$withval" = builtin; then
2841 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2842 else
2843 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2844echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2845 { (exit 1); exit 1; }; }
2846 fi
2847
2848else
2849
2850 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2851 if test "x$LINE" != x ; then
2852 eval "DEFAULT_$LINE"
2853 else
2854 no_cache=1
2855 fi
2856
2857 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2858
2859fi;
2860
2861 eval "$ac_cv_use_libjpeg"
2862 if test "$no_cache" != 1; then
2863 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2864 fi
2865
2866 if test "$wxUSE_LIBJPEG" = yes; then
2867 echo "$as_me:$LINENO: result: yes" >&5
2868echo "${ECHO_T}yes" >&6
2869 elif test "$wxUSE_LIBJPEG" = no; then
2870 echo "$as_me:$LINENO: result: no" >&5
2871echo "${ECHO_T}no" >&6
2872 elif test "$wxUSE_LIBJPEG" = sys; then
2873 echo "$as_me:$LINENO: result: system version" >&5
2874echo "${ECHO_T}system version" >&6
2875 elif test "$wxUSE_LIBJPEG" = builtin; then
2876 echo "$as_me:$LINENO: result: builtin version" >&5
2877echo "${ECHO_T}builtin version" >&6
2878 else
2879 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2880echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2881 { (exit 1); exit 1; }; }
2882 fi
2883
2884
2885 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2886echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2887 no_cache=0
2888
2889# Check whether --with-libtiff or --without-libtiff was given.
2890if test "${with_libtiff+set}" = set; then
2891 withval="$with_libtiff"
2892
2893 if test "$withval" = yes; then
2894 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2895 elif test "$withval" = no; then
2896 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2897 elif test "$withval" = sys; then
2898 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2899 elif test "$withval" = builtin; then
2900 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2901 else
2902 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2903echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2904 { (exit 1); exit 1; }; }
2905 fi
2906
2907else
2908
2909 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2910 if test "x$LINE" != x ; then
2911 eval "DEFAULT_$LINE"
2912 else
2913 no_cache=1
2914 fi
2915
2916 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2917
2918fi;
2919
2920 eval "$ac_cv_use_libtiff"
2921 if test "$no_cache" != 1; then
2922 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2923 fi
2924
2925 if test "$wxUSE_LIBTIFF" = yes; then
2926 echo "$as_me:$LINENO: result: yes" >&5
2927echo "${ECHO_T}yes" >&6
2928 elif test "$wxUSE_LIBTIFF" = no; then
2929 echo "$as_me:$LINENO: result: no" >&5
2930echo "${ECHO_T}no" >&6
2931 elif test "$wxUSE_LIBTIFF" = sys; then
2932 echo "$as_me:$LINENO: result: system version" >&5
2933echo "${ECHO_T}system version" >&6
2934 elif test "$wxUSE_LIBTIFF" = builtin; then
2935 echo "$as_me:$LINENO: result: builtin version" >&5
2936echo "${ECHO_T}builtin version" >&6
2937 else
2938 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2939echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2940 { (exit 1); exit 1; }; }
2941 fi
2942
2943
2944 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2945echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2946 no_cache=0
2947
2948# Check whether --with-libxpm or --without-libxpm was given.
2949if test "${with_libxpm+set}" = set; then
2950 withval="$with_libxpm"
2951
2952 if test "$withval" = yes; then
2953 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2954 elif test "$withval" = no; then
2955 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2956 elif test "$withval" = sys; then
2957 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2958 elif test "$withval" = builtin; then
2959 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2960 else
2961 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2962echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2963 { (exit 1); exit 1; }; }
2964 fi
2965
2966else
2967
2968 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2969 if test "x$LINE" != x ; then
2970 eval "DEFAULT_$LINE"
2971 else
2972 no_cache=1
2973 fi
2974
2975 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2976
2977fi;
2978
2979 eval "$ac_cv_use_libxpm"
2980 if test "$no_cache" != 1; then
2981 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2982 fi
2983
2984 if test "$wxUSE_LIBXPM" = yes; then
2985 echo "$as_me:$LINENO: result: yes" >&5
2986echo "${ECHO_T}yes" >&6
2987 elif test "$wxUSE_LIBXPM" = no; then
2988 echo "$as_me:$LINENO: result: no" >&5
2989echo "${ECHO_T}no" >&6
2990 elif test "$wxUSE_LIBXPM" = sys; then
2991 echo "$as_me:$LINENO: result: system version" >&5
2992echo "${ECHO_T}system version" >&6
2993 elif test "$wxUSE_LIBXPM" = builtin; then
2994 echo "$as_me:$LINENO: result: builtin version" >&5
2995echo "${ECHO_T}builtin version" >&6
2996 else
2997 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2998echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2999 { (exit 1); exit 1; }; }
3000 fi
3001
3002
3003 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3004echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3005 no_cache=0
3006
3007# Check whether --with-libmspack or --without-libmspack was given.
3008if test "${with_libmspack+set}" = set; then
3009 withval="$with_libmspack"
3010
3011 if test "$withval" = yes; then
3012 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3013 else
3014 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3015 fi
3016
3017else
3018
3019 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3020 if test "x$LINE" != x ; then
3021 eval "DEFAULT_$LINE"
3022 else
3023 no_cache=1
3024 fi
3025
3026 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3027
3028fi;
3029
3030 eval "$ac_cv_use_libmspack"
3031 if test "$no_cache" != 1; then
3032 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3033 fi
3034
3035 if test "$wxUSE_LIBMSPACK" = yes; then
3036 echo "$as_me:$LINENO: result: yes" >&5
3037echo "${ECHO_T}yes" >&6
3038 else
3039 echo "$as_me:$LINENO: result: no" >&5
3040echo "${ECHO_T}no" >&6
3041 fi
3042
3043
3044 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3045echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3046 no_cache=0
3047
3048# Check whether --with-sdl or --without-sdl was given.
3049if test "${with_sdl+set}" = set; then
3050 withval="$with_sdl"
3051
3052 if test "$withval" = yes; then
3053 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3054 else
3055 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3056 fi
3057
3058else
3059
3060 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3061 if test "x$LINE" != x ; then
3062 eval "DEFAULT_$LINE"
3063 else
3064 no_cache=1
3065 fi
3066
3067 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3068
3069fi;
3070
3071 eval "$ac_cv_use_sdl"
3072 if test "$no_cache" != 1; then
3073 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3074 fi
3075
3076 if test "$wxUSE_LIBSDL" = yes; then
3077 echo "$as_me:$LINENO: result: yes" >&5
3078echo "${ECHO_T}yes" >&6
3079 else
3080 echo "$as_me:$LINENO: result: no" >&5
3081echo "${ECHO_T}no" >&6
3082 fi
3083
3084
d1c38808
VZ
3085 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3086echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3087 no_cache=0
3088
3089# Check whether --with-gnomeprint or --without-gnomeprint was given.
3090if test "${with_gnomeprint+set}" = set; then
3091 withval="$with_gnomeprint"
3092
3093 if test "$withval" = yes; then
3094 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3095 else
3096 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3097 fi
3098
3099else
3100
3101 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3102 if test "x$LINE" != x ; then
3103 eval "DEFAULT_$LINE"
3104 else
3105 no_cache=1
3106 fi
3107
3108 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3109
3110fi;
3111
3112 eval "$ac_cv_use_gnomeprint"
3113 if test "$no_cache" != 1; then
3114 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3115 fi
3116
3117 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3118 echo "$as_me:$LINENO: result: yes" >&5
3119echo "${ECHO_T}yes" >&6
3120 else
3121 echo "$as_me:$LINENO: result: no" >&5
3122echo "${ECHO_T}no" >&6
3123 fi
3124
3125
a848cd7e
SC
3126 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3127echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3128 no_cache=0
3129
3130# Check whether --with-opengl or --without-opengl was given.
3131if test "${with_opengl+set}" = set; then
3132 withval="$with_opengl"
3133
3134 if test "$withval" = yes; then
3135 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3136 else
3137 ac_cv_use_opengl='wxUSE_OPENGL=no'
3138 fi
3139
3140else
3141
3142 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3143 if test "x$LINE" != x ; then
3144 eval "DEFAULT_$LINE"
3145 else
3146 no_cache=1
3147 fi
3148
3149 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3150
3151fi;
3152
3153 eval "$ac_cv_use_opengl"
3154 if test "$no_cache" != 1; then
3155 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3156 fi
3157
3158 if test "$wxUSE_OPENGL" = yes; then
3159 echo "$as_me:$LINENO: result: yes" >&5
3160echo "${ECHO_T}yes" >&6
3161 else
3162 echo "$as_me:$LINENO: result: no" >&5
3163echo "${ECHO_T}no" >&6
3164 fi
3165
3166
3167fi
3168
3169
3170 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3171echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3172 no_cache=0
3173
3174# Check whether --with-dmalloc or --without-dmalloc was given.
3175if test "${with_dmalloc+set}" = set; then
3176 withval="$with_dmalloc"
3177
3178 if test "$withval" = yes; then
3179 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3180 else
3181 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3182 fi
3183
3184else
3185
3186 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3187 if test "x$LINE" != x ; then
3188 eval "DEFAULT_$LINE"
3189 else
3190 no_cache=1
3191 fi
3192
3193 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3194
3195fi;
3196
3197 eval "$ac_cv_use_dmalloc"
3198 if test "$no_cache" != 1; then
3199 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3200 fi
3201
3202 if test "$wxUSE_DMALLOC" = yes; then
3203 echo "$as_me:$LINENO: result: yes" >&5
3204echo "${ECHO_T}yes" >&6
3205 else
3206 echo "$as_me:$LINENO: result: no" >&5
3207echo "${ECHO_T}no" >&6
3208 fi
3209
3210
3211 echo "$as_me:$LINENO: checking for --with-regex" >&5
3212echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3213 no_cache=0
3214
3215# Check whether --with-regex or --without-regex was given.
3216if test "${with_regex+set}" = set; then
3217 withval="$with_regex"
3218
3219 if test "$withval" = yes; then
3220 ac_cv_use_regex='wxUSE_REGEX=yes'
3221 elif test "$withval" = no; then
3222 ac_cv_use_regex='wxUSE_REGEX=no'
3223 elif test "$withval" = sys; then
3224 ac_cv_use_regex='wxUSE_REGEX=sys'
3225 elif test "$withval" = builtin; then
3226 ac_cv_use_regex='wxUSE_REGEX=builtin'
3227 else
3228 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3229echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3230 { (exit 1); exit 1; }; }
3231 fi
3232
3233else
3234
3235 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3236 if test "x$LINE" != x ; then
3237 eval "DEFAULT_$LINE"
3238 else
3239 no_cache=1
3240 fi
3241
3242 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3243
3244fi;
3245
3246 eval "$ac_cv_use_regex"
3247 if test "$no_cache" != 1; then
3248 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3249 fi
3250
3251 if test "$wxUSE_REGEX" = yes; then
3252 echo "$as_me:$LINENO: result: yes" >&5
3253echo "${ECHO_T}yes" >&6
3254 elif test "$wxUSE_REGEX" = no; then
3255 echo "$as_me:$LINENO: result: no" >&5
3256echo "${ECHO_T}no" >&6
3257 elif test "$wxUSE_REGEX" = sys; then
3258 echo "$as_me:$LINENO: result: system version" >&5
3259echo "${ECHO_T}system version" >&6
3260 elif test "$wxUSE_REGEX" = builtin; then
3261 echo "$as_me:$LINENO: result: builtin version" >&5
3262echo "${ECHO_T}builtin version" >&6
3263 else
3264 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3265echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3266 { (exit 1); exit 1; }; }
3267 fi
3268
3269
3270 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3271echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3272 no_cache=0
3273
3274# Check whether --with-zlib or --without-zlib was given.
3275if test "${with_zlib+set}" = set; then
3276 withval="$with_zlib"
3277
3278 if test "$withval" = yes; then
3279 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3280 elif test "$withval" = no; then
3281 ac_cv_use_zlib='wxUSE_ZLIB=no'
3282 elif test "$withval" = sys; then
3283 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3284 elif test "$withval" = builtin; then
3285 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3286 else
3287 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3288echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3289 { (exit 1); exit 1; }; }
3290 fi
3291
3292else
3293
3294 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3295 if test "x$LINE" != x ; then
3296 eval "DEFAULT_$LINE"
3297 else
3298 no_cache=1
3299 fi
3300
3301 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3302
3303fi;
3304
3305 eval "$ac_cv_use_zlib"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_ZLIB" = yes; then
3311 echo "$as_me:$LINENO: result: yes" >&5
3312echo "${ECHO_T}yes" >&6
3313 elif test "$wxUSE_ZLIB" = no; then
3314 echo "$as_me:$LINENO: result: no" >&5
3315echo "${ECHO_T}no" >&6
3316 elif test "$wxUSE_ZLIB" = sys; then
3317 echo "$as_me:$LINENO: result: system version" >&5
3318echo "${ECHO_T}system version" >&6
3319 elif test "$wxUSE_ZLIB" = builtin; then
3320 echo "$as_me:$LINENO: result: builtin version" >&5
3321echo "${ECHO_T}builtin version" >&6
3322 else
3323 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3324echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3325 { (exit 1); exit 1; }; }
3326 fi
3327
3328
3329 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3330echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3331 no_cache=0
3332
3333# Check whether --with-odbc or --without-odbc was given.
3334if test "${with_odbc+set}" = set; then
3335 withval="$with_odbc"
3336
3337 if test "$withval" = yes; then
3338 ac_cv_use_odbc='wxUSE_ODBC=yes'
3339 elif test "$withval" = no; then
3340 ac_cv_use_odbc='wxUSE_ODBC=no'
3341 elif test "$withval" = sys; then
3342 ac_cv_use_odbc='wxUSE_ODBC=sys'
3343 elif test "$withval" = builtin; then
3344 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3345 else
3346 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3347echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3348 { (exit 1); exit 1; }; }
3349 fi
3350
3351else
3352
3353 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3354 if test "x$LINE" != x ; then
3355 eval "DEFAULT_$LINE"
3356 else
3357 no_cache=1
3358 fi
3359
3360 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3361
3362fi;
3363
3364 eval "$ac_cv_use_odbc"
3365 if test "$no_cache" != 1; then
3366 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3367 fi
3368
3369 if test "$wxUSE_ODBC" = yes; then
3370 echo "$as_me:$LINENO: result: yes" >&5
3371echo "${ECHO_T}yes" >&6
3372 elif test "$wxUSE_ODBC" = no; then
3373 echo "$as_me:$LINENO: result: no" >&5
3374echo "${ECHO_T}no" >&6
3375 elif test "$wxUSE_ODBC" = sys; then
3376 echo "$as_me:$LINENO: result: system version" >&5
3377echo "${ECHO_T}system version" >&6
3378 elif test "$wxUSE_ODBC" = builtin; then
3379 echo "$as_me:$LINENO: result: builtin version" >&5
3380echo "${ECHO_T}builtin version" >&6
3381 else
3382 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3383echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3384 { (exit 1); exit 1; }; }
3385 fi
3386
3387
3388 echo "$as_me:$LINENO: checking for --with-expat" >&5
3389echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3390 no_cache=0
3391
3392# Check whether --with-expat or --without-expat was given.
3393if test "${with_expat+set}" = set; then
3394 withval="$with_expat"
3395
3396 if test "$withval" = yes; then
3397 ac_cv_use_expat='wxUSE_EXPAT=yes'
3398 elif test "$withval" = no; then
3399 ac_cv_use_expat='wxUSE_EXPAT=no'
3400 elif test "$withval" = sys; then
3401 ac_cv_use_expat='wxUSE_EXPAT=sys'
3402 elif test "$withval" = builtin; then
3403 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3404 else
3405 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3406echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3407 { (exit 1); exit 1; }; }
3408 fi
3409
3410else
3411
3412 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3413 if test "x$LINE" != x ; then
3414 eval "DEFAULT_$LINE"
3415 else
3416 no_cache=1
3417 fi
3418
3419 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3420
3421fi;
3422
3423 eval "$ac_cv_use_expat"
3424 if test "$no_cache" != 1; then
3425 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3426 fi
3427
3428 if test "$wxUSE_EXPAT" = yes; then
3429 echo "$as_me:$LINENO: result: yes" >&5
3430echo "${ECHO_T}yes" >&6
3431 elif test "$wxUSE_EXPAT" = no; then
3432 echo "$as_me:$LINENO: result: no" >&5
3433echo "${ECHO_T}no" >&6
3434 elif test "$wxUSE_EXPAT" = sys; then
3435 echo "$as_me:$LINENO: result: system version" >&5
3436echo "${ECHO_T}system version" >&6
3437 elif test "$wxUSE_EXPAT" = builtin; then
3438 echo "$as_me:$LINENO: result: builtin version" >&5
3439echo "${ECHO_T}builtin version" >&6
3440 else
3441 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3442echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3443 { (exit 1); exit 1; }; }
3444 fi
3445
3446
3447
3448
3449 enablestring=
3450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3451echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3452 no_cache=0
3453 # Check whether --enable-shared or --disable-shared was given.
3454if test "${enable_shared+set}" = set; then
3455 enableval="$enable_shared"
3456
3457 if test "$enableval" = yes; then
3458 ac_cv_use_shared='wxUSE_SHARED=yes'
3459 else
3460 ac_cv_use_shared='wxUSE_SHARED=no'
3461 fi
3462
3463else
3464
3465 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3466 if test "x$LINE" != x ; then
3467 eval "DEFAULT_$LINE"
3468 else
3469 no_cache=1
3470 fi
3471
3472 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3473
3474fi;
3475
3476 eval "$ac_cv_use_shared"
3477 if test "$no_cache" != 1; then
3478 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3479 fi
3480
3481 if test "$wxUSE_SHARED" = yes; then
3482 echo "$as_me:$LINENO: result: yes" >&5
3483echo "${ECHO_T}yes" >&6
3484 else
3485 echo "$as_me:$LINENO: result: no" >&5
3486echo "${ECHO_T}no" >&6
3487 fi
3488
3489
3490 enablestring=
3491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3492echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3493 no_cache=0
3494 # Check whether --enable-optimise or --disable-optimise was given.
3495if test "${enable_optimise+set}" = set; then
3496 enableval="$enable_optimise"
3497
3498 if test "$enableval" = yes; then
3499 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3500 else
3501 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3502 fi
3503
3504else
3505
3506 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3507 if test "x$LINE" != x ; then
3508 eval "DEFAULT_$LINE"
3509 else
3510 no_cache=1
3511 fi
3512
3513 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3514
3515fi;
3516
3517 eval "$ac_cv_use_optimise"
3518 if test "$no_cache" != 1; then
3519 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3520 fi
3521
3522 if test "$wxUSE_OPTIMISE" = yes; then
3523 echo "$as_me:$LINENO: result: yes" >&5
3524echo "${ECHO_T}yes" >&6
3525 else
3526 echo "$as_me:$LINENO: result: no" >&5
3527echo "${ECHO_T}no" >&6
3528 fi
3529
3530
3531 enablestring=
3532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3533echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3534 no_cache=0
3535 # Check whether --enable-debug or --disable-debug was given.
3536if test "${enable_debug+set}" = set; then
3537 enableval="$enable_debug"
3538
3539 if test "$enableval" = yes; then
3540 ac_cv_use_debug='wxUSE_DEBUG=yes'
3541 else
3542 ac_cv_use_debug='wxUSE_DEBUG=no'
3543 fi
3544
3545else
3546
3547 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3548 if test "x$LINE" != x ; then
3549 eval "DEFAULT_$LINE"
3550 else
3551 no_cache=1
3552 fi
3553
3554 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3555
3556fi;
3557
3558 eval "$ac_cv_use_debug"
3559 if test "$no_cache" != 1; then
3560 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3561 fi
3562
3563 if test "$wxUSE_DEBUG" = yes; then
3564 echo "$as_me:$LINENO: result: yes" >&5
3565echo "${ECHO_T}yes" >&6
3566 else
3567 echo "$as_me:$LINENO: result: no" >&5
3568echo "${ECHO_T}no" >&6
3569 fi
3570
3571
3572 enablestring=
3573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3574echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3575 no_cache=0
3576 # Check whether --enable-stl or --disable-stl was given.
3577if test "${enable_stl+set}" = set; then
3578 enableval="$enable_stl"
3579
3580 if test "$enableval" = yes; then
3581 ac_cv_use_stl='wxUSE_STL=yes'
3582 else
3583 ac_cv_use_stl='wxUSE_STL=no'
3584 fi
3585
3586else
3587
3588 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3589 if test "x$LINE" != x ; then
3590 eval "DEFAULT_$LINE"
3591 else
3592 no_cache=1
3593 fi
3594
3595 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3596
3597fi;
3598
3599 eval "$ac_cv_use_stl"
3600 if test "$no_cache" != 1; then
3601 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3602 fi
3603
3604 if test "$wxUSE_STL" = yes; then
3605 echo "$as_me:$LINENO: result: yes" >&5
3606echo "${ECHO_T}yes" >&6
3607 else
3608 echo "$as_me:$LINENO: result: no" >&5
3609echo "${ECHO_T}no" >&6
3610 fi
3611
3612if test "$USE_OS2" = "1"; then
69120ee4 3613 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3614
3615 enablestring=
3616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3617echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3618 no_cache=0
3619 # Check whether --enable-omf or --disable-omf was given.
3620if test "${enable_omf+set}" = set; then
3621 enableval="$enable_omf"
3622
3623 if test "$enableval" = yes; then
3624 ac_cv_use_omf='wxUSE_OMF=yes'
3625 else
3626 ac_cv_use_omf='wxUSE_OMF=no'
3627 fi
3628
3629else
3630
3631 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3632 if test "x$LINE" != x ; then
3633 eval "DEFAULT_$LINE"
3634 else
3635 no_cache=1
3636 fi
3637
3638 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3639
3640fi;
3641
3642 eval "$ac_cv_use_omf"
3643 if test "$no_cache" != 1; then
3644 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3645 fi
3646
3647 if test "$wxUSE_OMF" = yes; then
3648 echo "$as_me:$LINENO: result: yes" >&5
3649echo "${ECHO_T}yes" >&6
3650 else
3651 echo "$as_me:$LINENO: result: no" >&5
3652echo "${ECHO_T}no" >&6
3653 fi
3654
3655fi
3656
3657if test "$wxUSE_DEBUG" = "yes"; then
3658 DEFAULT_wxUSE_DEBUG_FLAG=yes
3659 DEFAULT_wxUSE_DEBUG_INFO=yes
3660 BUILD=debug
3661elif test "$wxUSE_DEBUG" = "no"; then
3662 DEFAULT_wxUSE_DEBUG_FLAG=no
3663 DEFAULT_wxUSE_DEBUG_INFO=no
3664 BUILD=release
3665fi
3666
3667
3668 enablestring=
3669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3670echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3671 no_cache=0
3672 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3673if test "${enable_debug_flag+set}" = set; then
3674 enableval="$enable_debug_flag"
3675
3676 if test "$enableval" = yes; then
3677 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3678 else
3679 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3680 fi
3681
3682else
3683
3684 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3685 if test "x$LINE" != x ; then
3686 eval "DEFAULT_$LINE"
3687 else
3688 no_cache=1
3689 fi
3690
3691 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3692
3693fi;
3694
3695 eval "$ac_cv_use_debug_flag"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_DEBUG_FLAG" = yes; then
3701 echo "$as_me:$LINENO: result: yes" >&5
3702echo "${ECHO_T}yes" >&6
3703 else
3704 echo "$as_me:$LINENO: result: no" >&5
3705echo "${ECHO_T}no" >&6
3706 fi
3707
3708
3709 enablestring=
3710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3711echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3712 no_cache=0
3713 # Check whether --enable-debug_info or --disable-debug_info was given.
3714if test "${enable_debug_info+set}" = set; then
3715 enableval="$enable_debug_info"
3716
3717 if test "$enableval" = yes; then
3718 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3719 else
3720 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3721 fi
3722
3723else
3724
3725 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3726 if test "x$LINE" != x ; then
3727 eval "DEFAULT_$LINE"
3728 else
3729 no_cache=1
3730 fi
3731
3732 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3733
3734fi;
3735
3736 eval "$ac_cv_use_debug_info"
3737 if test "$no_cache" != 1; then
3738 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3739 fi
3740
3741 if test "$wxUSE_DEBUG_INFO" = yes; then
3742 echo "$as_me:$LINENO: result: yes" >&5
3743echo "${ECHO_T}yes" >&6
3744 else
3745 echo "$as_me:$LINENO: result: no" >&5
3746echo "${ECHO_T}no" >&6
3747 fi
3748
3749
3750 enablestring=
3751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3752echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3753 no_cache=0
3754 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3755if test "${enable_debug_gdb+set}" = set; then
3756 enableval="$enable_debug_gdb"
3757
3758 if test "$enableval" = yes; then
3759 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3760 else
3761 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3762 fi
3763
3764else
3765
3766 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3774
3775fi;
3776
3777 eval "$ac_cv_use_debug_gdb"
3778 if test "$no_cache" != 1; then
3779 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3780 fi
3781
3782 if test "$wxUSE_DEBUG_GDB" = yes; then
3783 echo "$as_me:$LINENO: result: yes" >&5
3784echo "${ECHO_T}yes" >&6
3785 else
3786 echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6
3788 fi
3789
3790
3791 enablestring=
3792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3793echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3794 no_cache=0
3795 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3796if test "${enable_debug_cntxt+set}" = set; then
3797 enableval="$enable_debug_cntxt"
3798
3799 if test "$enableval" = yes; then
3800 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3801 else
3802 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3803 fi
3804
3805else
3806
3807 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3815
3816fi;
3817
3818 eval "$ac_cv_use_debug_cntxt"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3824 echo "$as_me:$LINENO: result: yes" >&5
3825echo "${ECHO_T}yes" >&6
3826 else
3827 echo "$as_me:$LINENO: result: no" >&5
3828echo "${ECHO_T}no" >&6
3829 fi
3830
3831
3832 enablestring=
3833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3834echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3835 no_cache=0
3836 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3837if test "${enable_mem_tracing+set}" = set; then
3838 enableval="$enable_mem_tracing"
3839
3840 if test "$enableval" = yes; then
3841 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3842 else
3843 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3844 fi
3845
3846else
3847
3848 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3849 if test "x$LINE" != x ; then
3850 eval "DEFAULT_$LINE"
3851 else
3852 no_cache=1
3853 fi
3854
3855 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3856
3857fi;
3858
3859 eval "$ac_cv_use_mem_tracing"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_MEM_TRACING" = yes; then
3865 echo "$as_me:$LINENO: result: yes" >&5
3866echo "${ECHO_T}yes" >&6
3867 else
3868 echo "$as_me:$LINENO: result: no" >&5
3869echo "${ECHO_T}no" >&6
3870 fi
3871
3872
3873 enablestring=
3874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3875echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3876 no_cache=0
3877 # Check whether --enable-profile or --disable-profile was given.
3878if test "${enable_profile+set}" = set; then
3879 enableval="$enable_profile"
3880
3881 if test "$enableval" = yes; then
3882 ac_cv_use_profile='wxUSE_PROFILE=yes'
3883 else
3884 ac_cv_use_profile='wxUSE_PROFILE=no'
3885 fi
3886
3887else
3888
3889 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3890 if test "x$LINE" != x ; then
3891 eval "DEFAULT_$LINE"
3892 else
3893 no_cache=1
3894 fi
3895
3896 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3897
3898fi;
3899
3900 eval "$ac_cv_use_profile"
3901 if test "$no_cache" != 1; then
3902 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3903 fi
3904
3905 if test "$wxUSE_PROFILE" = yes; then
3906 echo "$as_me:$LINENO: result: yes" >&5
3907echo "${ECHO_T}yes" >&6
3908 else
3909 echo "$as_me:$LINENO: result: no" >&5
3910echo "${ECHO_T}no" >&6
3911 fi
3912
3913
3914 enablestring=
3915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3916echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3917 no_cache=0
3918 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3919if test "${enable_no_rtti+set}" = set; then
3920 enableval="$enable_no_rtti"
3921
3922 if test "$enableval" = yes; then
3923 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3924 else
3925 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3926 fi
3927
3928else
3929
3930 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3931 if test "x$LINE" != x ; then
3932 eval "DEFAULT_$LINE"
3933 else
3934 no_cache=1
3935 fi
3936
3937 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3938
3939fi;
3940
3941 eval "$ac_cv_use_no_rtti"
3942 if test "$no_cache" != 1; then
3943 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3944 fi
3945
3946 if test "$wxUSE_NO_RTTI" = yes; then
3947 echo "$as_me:$LINENO: result: yes" >&5
3948echo "${ECHO_T}yes" >&6
3949 else
3950 echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6
3952 fi
3953
3954
3955 enablestring=
3956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3957echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3958 no_cache=0
3959 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3960if test "${enable_no_exceptions+set}" = set; then
3961 enableval="$enable_no_exceptions"
3962
3963 if test "$enableval" = yes; then
3964 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3965 else
3966 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3967 fi
3968
3969else
3970
3971 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3972 if test "x$LINE" != x ; then
3973 eval "DEFAULT_$LINE"
3974 else
3975 no_cache=1
3976 fi
3977
3978 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3979
3980fi;
3981
3982 eval "$ac_cv_use_no_exceptions"
3983 if test "$no_cache" != 1; then
3984 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3985 fi
3986
3987 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3988 echo "$as_me:$LINENO: result: yes" >&5
3989echo "${ECHO_T}yes" >&6
3990 else
3991 echo "$as_me:$LINENO: result: no" >&5
3992echo "${ECHO_T}no" >&6
3993 fi
3994
3995
3996 enablestring=
3997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3998echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3999 no_cache=0
4000 # Check whether --enable-permissive or --disable-permissive was given.
4001if test "${enable_permissive+set}" = set; then
4002 enableval="$enable_permissive"
4003
4004 if test "$enableval" = yes; then
4005 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4006 else
4007 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4008 fi
4009
4010else
4011
4012 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4013 if test "x$LINE" != x ; then
4014 eval "DEFAULT_$LINE"
4015 else
4016 no_cache=1
4017 fi
4018
4019 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4020
4021fi;
4022
4023 eval "$ac_cv_use_permissive"
4024 if test "$no_cache" != 1; then
4025 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4026 fi
4027
4028 if test "$wxUSE_PERMISSIVE" = yes; then
4029 echo "$as_me:$LINENO: result: yes" >&5
4030echo "${ECHO_T}yes" >&6
4031 else
4032 echo "$as_me:$LINENO: result: no" >&5
4033echo "${ECHO_T}no" >&6
4034 fi
4035
4036
4037 enablestring=
4038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4039echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4040 no_cache=0
4041 # Check whether --enable-no_deps or --disable-no_deps was given.
4042if test "${enable_no_deps+set}" = set; then
4043 enableval="$enable_no_deps"
4044
4045 if test "$enableval" = yes; then
4046 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4047 else
4048 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4049 fi
4050
4051else
4052
4053 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4054 if test "x$LINE" != x ; then
4055 eval "DEFAULT_$LINE"
4056 else
4057 no_cache=1
4058 fi
4059
4060 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4061
4062fi;
4063
4064 eval "$ac_cv_use_no_deps"
4065 if test "$no_cache" != 1; then
4066 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4067 fi
4068
4069 if test "$wxUSE_NO_DEPS" = yes; then
4070 echo "$as_me:$LINENO: result: yes" >&5
4071echo "${ECHO_T}yes" >&6
4072 else
4073 echo "$as_me:$LINENO: result: no" >&5
4074echo "${ECHO_T}no" >&6
4075 fi
4076
4077
4078
4079 enablestring=
4080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4081echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4082 no_cache=0
4083 # Check whether --enable-compat22 or --disable-compat22 was given.
4084if test "${enable_compat22+set}" = set; then
4085 enableval="$enable_compat22"
4086
4087 if test "$enableval" = yes; then
4088 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4089 else
4090 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4091 fi
4092
4093else
4094
4095 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4096 if test "x$LINE" != x ; then
4097 eval "DEFAULT_$LINE"
4098 else
4099 no_cache=1
4100 fi
4101
4102 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4103
4104fi;
4105
4106 eval "$ac_cv_use_compat22"
4107 if test "$no_cache" != 1; then
4108 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4109 fi
4110
4111 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4112 echo "$as_me:$LINENO: result: yes" >&5
4113echo "${ECHO_T}yes" >&6
4114 else
4115 echo "$as_me:$LINENO: result: no" >&5
4116echo "${ECHO_T}no" >&6
4117 fi
4118
4119
4120 enablestring=disable
4121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4122echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4123 no_cache=0
4124 # Check whether --enable-compat24 or --disable-compat24 was given.
4125if test "${enable_compat24+set}" = set; then
4126 enableval="$enable_compat24"
4127
4128 if test "$enableval" = yes; then
4129 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4130 else
4131 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4132 fi
4133
4134else
4135
4136 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4137 if test "x$LINE" != x ; then
4138 eval "DEFAULT_$LINE"
4139 else
4140 no_cache=1
4141 fi
4142
4143 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4144
4145fi;
4146
4147 eval "$ac_cv_use_compat24"
4148 if test "$no_cache" != 1; then
4149 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4150 fi
4151
4152 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4153 echo "$as_me:$LINENO: result: yes" >&5
4154echo "${ECHO_T}yes" >&6
4155 else
4156 echo "$as_me:$LINENO: result: no" >&5
4157echo "${ECHO_T}no" >&6
4158 fi
4159
4160
ffa0583f
RL
4161
4162 enablestring=
4163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4164echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4165 no_cache=0
4166 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4167if test "${enable_rpath+set}" = set; then
4168 enableval="$enable_rpath"
ffa0583f
RL
4169
4170 if test "$enableval" = yes; then
4171 ac_cv_use_rpath='wxUSE_RPATH=yes'
4172 else
4173 ac_cv_use_rpath='wxUSE_RPATH=no'
4174 fi
4175
4176else
4177
4178 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4179 if test "x$LINE" != x ; then
4180 eval "DEFAULT_$LINE"
4181 else
4182 no_cache=1
4183 fi
4184
4185 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4186
a848cd7e
SC
4187fi;
4188
ffa0583f
RL
4189 eval "$ac_cv_use_rpath"
4190 if test "$no_cache" != 1; then
4191 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4192 fi
4193
4194 if test "$wxUSE_RPATH" = yes; then
4195 echo "$as_me:$LINENO: result: yes" >&5
4196echo "${ECHO_T}yes" >&6
4197 else
4198 echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200 fi
4201
a848cd7e
SC
4202
4203
4204
4205
4206 enablestring=
4207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4208echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4209 no_cache=0
4210 # Check whether --enable-intl or --disable-intl was given.
4211if test "${enable_intl+set}" = set; then
4212 enableval="$enable_intl"
4213
4214 if test "$enableval" = yes; then
4215 ac_cv_use_intl='wxUSE_INTL=yes'
4216 else
4217 ac_cv_use_intl='wxUSE_INTL=no'
4218 fi
4219
4220else
4221
4222 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
4229 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4230
4231fi;
4232
4233 eval "$ac_cv_use_intl"
4234 if test "$no_cache" != 1; then
4235 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4236 fi
4237
4238 if test "$wxUSE_INTL" = yes; then
4239 echo "$as_me:$LINENO: result: yes" >&5
4240echo "${ECHO_T}yes" >&6
4241 else
4242 echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244 fi
4245
4246
4247 enablestring=
4248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4249echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4250 no_cache=0
4251 # Check whether --enable-config or --disable-config was given.
4252if test "${enable_config+set}" = set; then
4253 enableval="$enable_config"
4254
4255 if test "$enableval" = yes; then
4256 ac_cv_use_config='wxUSE_CONFIG=yes'
4257 else
4258 ac_cv_use_config='wxUSE_CONFIG=no'
4259 fi
4260
4261else
4262
4263 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4271
4272fi;
4273
4274 eval "$ac_cv_use_config"
4275 if test "$no_cache" != 1; then
4276 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4277 fi
4278
4279 if test "$wxUSE_CONFIG" = yes; then
4280 echo "$as_me:$LINENO: result: yes" >&5
4281echo "${ECHO_T}yes" >&6
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6
4285 fi
4286
4287
4288
4289 enablestring=
4290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4291echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4292 no_cache=0
4293 # Check whether --enable-protocols or --disable-protocols was given.
4294if test "${enable_protocols+set}" = set; then
4295 enableval="$enable_protocols"
4296
4297 if test "$enableval" = yes; then
4298 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4299 else
4300 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4301 fi
4302
4303else
4304
4305 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4306 if test "x$LINE" != x ; then
4307 eval "DEFAULT_$LINE"
4308 else
4309 no_cache=1
4310 fi
4311
4312 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4313
4314fi;
4315
4316 eval "$ac_cv_use_protocols"
4317 if test "$no_cache" != 1; then
4318 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4319 fi
4320
4321 if test "$wxUSE_PROTOCOL" = yes; then
4322 echo "$as_me:$LINENO: result: yes" >&5
4323echo "${ECHO_T}yes" >&6
4324 else
4325 echo "$as_me:$LINENO: result: no" >&5
4326echo "${ECHO_T}no" >&6
4327 fi
4328
4329
4330 enablestring=
4331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4332echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4333 no_cache=0
4334 # Check whether --enable-ftp or --disable-ftp was given.
4335if test "${enable_ftp+set}" = set; then
4336 enableval="$enable_ftp"
4337
4338 if test "$enableval" = yes; then
4339 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4340 else
4341 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4342 fi
4343
4344else
4345
4346 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4347 if test "x$LINE" != x ; then
4348 eval "DEFAULT_$LINE"
4349 else
4350 no_cache=1
4351 fi
4352
4353 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4354
4355fi;
4356
4357 eval "$ac_cv_use_ftp"
4358 if test "$no_cache" != 1; then
4359 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4360 fi
4361
4362 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4363 echo "$as_me:$LINENO: result: yes" >&5
4364echo "${ECHO_T}yes" >&6
4365 else
4366 echo "$as_me:$LINENO: result: no" >&5
4367echo "${ECHO_T}no" >&6
4368 fi
4369
4370
4371 enablestring=
4372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4373echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4374 no_cache=0
4375 # Check whether --enable-http or --disable-http was given.
4376if test "${enable_http+set}" = set; then
4377 enableval="$enable_http"
4378
4379 if test "$enableval" = yes; then
4380 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4381 else
4382 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4383 fi
4384
4385else
4386
4387 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4388 if test "x$LINE" != x ; then
4389 eval "DEFAULT_$LINE"
4390 else
4391 no_cache=1
4392 fi
4393
4394 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4395
4396fi;
4397
4398 eval "$ac_cv_use_http"
4399 if test "$no_cache" != 1; then
4400 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4401 fi
4402
4403 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4404 echo "$as_me:$LINENO: result: yes" >&5
4405echo "${ECHO_T}yes" >&6
4406 else
4407 echo "$as_me:$LINENO: result: no" >&5
4408echo "${ECHO_T}no" >&6
4409 fi
4410
4411
4412 enablestring=
4413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4414echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4415 no_cache=0
4416 # Check whether --enable-fileproto or --disable-fileproto was given.
4417if test "${enable_fileproto+set}" = set; then
4418 enableval="$enable_fileproto"
4419
4420 if test "$enableval" = yes; then
4421 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4422 else
4423 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4424 fi
4425
4426else
4427
4428 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4429 if test "x$LINE" != x ; then
4430 eval "DEFAULT_$LINE"
4431 else
4432 no_cache=1
4433 fi
4434
4435 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4436
4437fi;
4438
4439 eval "$ac_cv_use_fileproto"
4440 if test "$no_cache" != 1; then
4441 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4442 fi
4443
4444 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4445 echo "$as_me:$LINENO: result: yes" >&5
4446echo "${ECHO_T}yes" >&6
4447 else
4448 echo "$as_me:$LINENO: result: no" >&5
4449echo "${ECHO_T}no" >&6
4450 fi
4451
4452
4453 enablestring=
4454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4455echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4456 no_cache=0
4457 # Check whether --enable-sockets or --disable-sockets was given.
4458if test "${enable_sockets+set}" = set; then
4459 enableval="$enable_sockets"
4460
4461 if test "$enableval" = yes; then
4462 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4463 else
4464 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4465 fi
4466
4467else
4468
4469 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4470 if test "x$LINE" != x ; then
4471 eval "DEFAULT_$LINE"
4472 else
4473 no_cache=1
4474 fi
4475
4476 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4477
4478fi;
4479
4480 eval "$ac_cv_use_sockets"
4481 if test "$no_cache" != 1; then
4482 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4483 fi
4484
4485 if test "$wxUSE_SOCKETS" = yes; then
4486 echo "$as_me:$LINENO: result: yes" >&5
4487echo "${ECHO_T}yes" >&6
4488 else
4489 echo "$as_me:$LINENO: result: no" >&5
4490echo "${ECHO_T}no" >&6
4491 fi
4492
4493
4494 enablestring=
4495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4496echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4497 no_cache=0
4498 # Check whether --enable-ole or --disable-ole was given.
4499if test "${enable_ole+set}" = set; then
4500 enableval="$enable_ole"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_ole='wxUSE_OLE=yes'
4504 else
4505 ac_cv_use_ole='wxUSE_OLE=no'
4506 fi
4507
4508else
4509
4510 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4518
4519fi;
4520
4521 eval "$ac_cv_use_ole"
4522 if test "$no_cache" != 1; then
4523 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4524 fi
4525
4526 if test "$wxUSE_OLE" = yes; then
4527 echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6
4529 else
4530 echo "$as_me:$LINENO: result: no" >&5
4531echo "${ECHO_T}no" >&6
4532 fi
4533
4534
4535 enablestring=
4536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4537echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4538 no_cache=0
4539 # Check whether --enable-dataobj or --disable-dataobj was given.
4540if test "${enable_dataobj+set}" = set; then
4541 enableval="$enable_dataobj"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4545 else
4546 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4547 fi
4548
4549else
4550
4551 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4559
4560fi;
4561
4562 eval "$ac_cv_use_dataobj"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_DATAOBJ" = yes; then
4568 echo "$as_me:$LINENO: result: yes" >&5
4569echo "${ECHO_T}yes" >&6
4570 else
4571 echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6
4573 fi
4574
4575
4576
4577 enablestring=
4578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4579echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4580 no_cache=0
4581 # Check whether --enable-ipc or --disable-ipc was given.
4582if test "${enable_ipc+set}" = set; then
4583 enableval="$enable_ipc"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_ipc='wxUSE_IPC=yes'
4587 else
4588 ac_cv_use_ipc='wxUSE_IPC=no'
4589 fi
4590
4591else
4592
4593 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4601
4602fi;
4603
4604 eval "$ac_cv_use_ipc"
4605 if test "$no_cache" != 1; then
4606 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4607 fi
4608
4609 if test "$wxUSE_IPC" = yes; then
4610 echo "$as_me:$LINENO: result: yes" >&5
4611echo "${ECHO_T}yes" >&6
4612 else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615 fi
4616
4617
4618
4619 enablestring=
4620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4621echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4622 no_cache=0
4623 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4624if test "${enable_apple_ieee+set}" = set; then
4625 enableval="$enable_apple_ieee"
4626
4627 if test "$enableval" = yes; then
4628 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4629 else
4630 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4631 fi
4632
4633else
4634
4635 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4636 if test "x$LINE" != x ; then
4637 eval "DEFAULT_$LINE"
4638 else
4639 no_cache=1
4640 fi
4641
4642 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4643
4644fi;
4645
4646 eval "$ac_cv_use_apple_ieee"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_APPLE_IEEE" = yes; then
4652 echo "$as_me:$LINENO: result: yes" >&5
4653echo "${ECHO_T}yes" >&6
4654 else
4655 echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6
4657 fi
4658
4659
81f90336
MW
4660 enablestring=
4661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4662echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4663 no_cache=0
4664 # Check whether --enable-arcstream or --disable-arcstream was given.
4665if test "${enable_arcstream+set}" = set; then
4666 enableval="$enable_arcstream"
4667
4668 if test "$enableval" = yes; then
9e8e867f 4669 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4670 else
9e8e867f 4671 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4672 fi
4673
4674else
4675
9e8e867f 4676 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4677 if test "x$LINE" != x ; then
4678 eval "DEFAULT_$LINE"
4679 else
4680 no_cache=1
4681 fi
4682
9e8e867f 4683 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4684
4685fi;
4686
4687 eval "$ac_cv_use_arcstream"
4688 if test "$no_cache" != 1; then
4689 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4690 fi
4691
9e8e867f 4692 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4693 echo "$as_me:$LINENO: result: yes" >&5
4694echo "${ECHO_T}yes" >&6
4695 else
4696 echo "$as_me:$LINENO: result: no" >&5
4697echo "${ECHO_T}no" >&6
4698 fi
4699
4700
a848cd7e 4701 enablestring=
36b6448c
VZ
4702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4703echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4704 no_cache=0
36b6448c
VZ
4705 # Check whether --enable-backtrace or --disable-backtrace was given.
4706if test "${enable_backtrace+set}" = set; then
4707 enableval="$enable_backtrace"
a848cd7e
SC
4708
4709 if test "$enableval" = yes; then
36b6448c 4710 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4711 else
36b6448c 4712 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4713 fi
4714
4715else
4716
36b6448c 4717 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4718 if test "x$LINE" != x ; then
4719 eval "DEFAULT_$LINE"
4720 else
4721 no_cache=1
4722 fi
4723
36b6448c 4724 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4725
4726fi;
4727
36b6448c 4728 eval "$ac_cv_use_backtrace"
a848cd7e 4729 if test "$no_cache" != 1; then
36b6448c 4730 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4731 fi
4732
36b6448c 4733 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4734 echo "$as_me:$LINENO: result: yes" >&5
4735echo "${ECHO_T}yes" >&6
4736 else
4737 echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6
4739 fi
4740
4741
eaff0f0d 4742 enablestring=
36b6448c
VZ
4743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4744echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4745 no_cache=0
36b6448c
VZ
4746 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4747if test "${enable_catch_segvs+set}" = set; then
4748 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4749
4750 if test "$enableval" = yes; then
36b6448c 4751 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4752 else
36b6448c 4753 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4754 fi
4755
4756else
4757
36b6448c 4758 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4759 if test "x$LINE" != x ; then
4760 eval "DEFAULT_$LINE"
4761 else
4762 no_cache=1
4763 fi
4764
36b6448c 4765 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4766
4767fi;
4768
36b6448c 4769 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4770 if test "$no_cache" != 1; then
36b6448c 4771 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4772 fi
4773
36b6448c 4774 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4775 echo "$as_me:$LINENO: result: yes" >&5
4776echo "${ECHO_T}yes" >&6
4777 else
4778 echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6
4780 fi
4781
4782
a848cd7e
SC
4783 enablestring=
4784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4785echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4786 no_cache=0
4787 # Check whether --enable-cmdline or --disable-cmdline was given.
4788if test "${enable_cmdline+set}" = set; then
4789 enableval="$enable_cmdline"
4790
4791 if test "$enableval" = yes; then
4792 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4793 else
4794 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4795 fi
4796
4797else
4798
4799 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4800 if test "x$LINE" != x ; then
4801 eval "DEFAULT_$LINE"
4802 else
4803 no_cache=1
4804 fi
4805
4806 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4807
4808fi;
4809
4810 eval "$ac_cv_use_cmdline"
4811 if test "$no_cache" != 1; then
4812 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4813 fi
4814
4815 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4816 echo "$as_me:$LINENO: result: yes" >&5
4817echo "${ECHO_T}yes" >&6
4818 else
4819 echo "$as_me:$LINENO: result: no" >&5
4820echo "${ECHO_T}no" >&6
4821 fi
4822
4823
4824 enablestring=
4825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4826echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4827 no_cache=0
4828 # Check whether --enable-datetime or --disable-datetime was given.
4829if test "${enable_datetime+set}" = set; then
4830 enableval="$enable_datetime"
4831
4832 if test "$enableval" = yes; then
4833 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4834 else
4835 ac_cv_use_datetime='wxUSE_DATETIME=no'
4836 fi
4837
4838else
4839
4840 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4841 if test "x$LINE" != x ; then
4842 eval "DEFAULT_$LINE"
4843 else
4844 no_cache=1
4845 fi
4846
4847 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4848
4849fi;
4850
4851 eval "$ac_cv_use_datetime"
4852 if test "$no_cache" != 1; then
4853 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4854 fi
4855
4856 if test "$wxUSE_DATETIME" = yes; then
4857 echo "$as_me:$LINENO: result: yes" >&5
4858echo "${ECHO_T}yes" >&6
4859 else
4860 echo "$as_me:$LINENO: result: no" >&5
4861echo "${ECHO_T}no" >&6
4862 fi
4863
4864
36b6448c
VZ
4865 enablestring=
4866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4867echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4868 no_cache=0
4869 # Check whether --enable-debugreport or --disable-debugreport was given.
4870if test "${enable_debugreport+set}" = set; then
4871 enableval="$enable_debugreport"
4872
4873 if test "$enableval" = yes; then
4874 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4875 else
4876 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4877 fi
4878
4879else
4880
4881 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4882 if test "x$LINE" != x ; then
4883 eval "DEFAULT_$LINE"
4884 else
4885 no_cache=1
4886 fi
4887
4888 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4889
4890fi;
4891
4892 eval "$ac_cv_use_debugreport"
4893 if test "$no_cache" != 1; then
4894 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4895 fi
4896
4897 if test "$wxUSE_DEBUGREPORT" = yes; then
4898 echo "$as_me:$LINENO: result: yes" >&5
4899echo "${ECHO_T}yes" >&6
4900 else
4901 echo "$as_me:$LINENO: result: no" >&5
4902echo "${ECHO_T}no" >&6
4903 fi
4904
4905
a848cd7e
SC
4906 enablestring=
4907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4908echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4909 no_cache=0
4910 # Check whether --enable-dialupman or --disable-dialupman was given.
4911if test "${enable_dialupman+set}" = set; then
4912 enableval="$enable_dialupman"
4913
4914 if test "$enableval" = yes; then
4915 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4916 else
4917 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4918 fi
4919
4920else
4921
4922 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4923 if test "x$LINE" != x ; then
4924 eval "DEFAULT_$LINE"
4925 else
4926 no_cache=1
4927 fi
4928
4929 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4930
4931fi;
4932
4933 eval "$ac_cv_use_dialupman"
4934 if test "$no_cache" != 1; then
4935 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4936 fi
4937
4938 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4939 echo "$as_me:$LINENO: result: yes" >&5
4940echo "${ECHO_T}yes" >&6
4941 else
4942 echo "$as_me:$LINENO: result: no" >&5
4943echo "${ECHO_T}no" >&6
4944 fi
4945
4946
4947 enablestring=
4948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4949echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4950 no_cache=0
4951 # Check whether --enable-dynlib or --disable-dynlib was given.
4952if test "${enable_dynlib+set}" = set; then
4953 enableval="$enable_dynlib"
4954
4955 if test "$enableval" = yes; then
4956 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4957 else
4958 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4959 fi
4960
4961else
4962
4963 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4964 if test "x$LINE" != x ; then
4965 eval "DEFAULT_$LINE"
4966 else
4967 no_cache=1
4968 fi
4969
4970 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4971
4972fi;
4973
4974 eval "$ac_cv_use_dynlib"
4975 if test "$no_cache" != 1; then
4976 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4977 fi
4978
4979 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4980 echo "$as_me:$LINENO: result: yes" >&5
4981echo "${ECHO_T}yes" >&6
4982 else
4983 echo "$as_me:$LINENO: result: no" >&5
4984echo "${ECHO_T}no" >&6
4985 fi
4986
4987
4988 enablestring=
4989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4990echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4991 no_cache=0
4992 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4993if test "${enable_dynamicloader+set}" = set; then
4994 enableval="$enable_dynamicloader"
4995
4996 if test "$enableval" = yes; then
4997 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4998 else
4999 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5000 fi
5001
5002else
5003
5004 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5005 if test "x$LINE" != x ; then
5006 eval "DEFAULT_$LINE"
5007 else
5008 no_cache=1
5009 fi
5010
5011 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5012
5013fi;
5014
5015 eval "$ac_cv_use_dynamicloader"
5016 if test "$no_cache" != 1; then
5017 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5018 fi
5019
5020 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5021 echo "$as_me:$LINENO: result: yes" >&5
5022echo "${ECHO_T}yes" >&6
5023 else
5024 echo "$as_me:$LINENO: result: no" >&5
5025echo "${ECHO_T}no" >&6
5026 fi
5027
5028
5029 enablestring=
5030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5031echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5032 no_cache=0
5033 # Check whether --enable-exceptions or --disable-exceptions was given.
5034if test "${enable_exceptions+set}" = set; then
5035 enableval="$enable_exceptions"
5036
5037 if test "$enableval" = yes; then
5038 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5039 else
5040 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5041 fi
5042
5043else
5044
5045 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5046 if test "x$LINE" != x ; then
5047 eval "DEFAULT_$LINE"
5048 else
5049 no_cache=1
5050 fi
5051
5052 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5053
5054fi;
5055
5056 eval "$ac_cv_use_exceptions"
5057 if test "$no_cache" != 1; then
5058 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5059 fi
5060
5061 if test "$wxUSE_EXCEPTIONS" = yes; then
5062 echo "$as_me:$LINENO: result: yes" >&5
5063echo "${ECHO_T}yes" >&6
5064 else
5065 echo "$as_me:$LINENO: result: no" >&5
5066echo "${ECHO_T}no" >&6
5067 fi
5068
5069
5070 enablestring=
5071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5072echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5073 no_cache=0
5074 # Check whether --enable-ffile or --disable-ffile was given.
5075if test "${enable_ffile+set}" = set; then
5076 enableval="$enable_ffile"
5077
5078 if test "$enableval" = yes; then
5079 ac_cv_use_ffile='wxUSE_FFILE=yes'
5080 else
5081 ac_cv_use_ffile='wxUSE_FFILE=no'
5082 fi
5083
5084else
5085
5086 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5087 if test "x$LINE" != x ; then
5088 eval "DEFAULT_$LINE"
5089 else
5090 no_cache=1
5091 fi
5092
5093 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5094
5095fi;
5096
5097 eval "$ac_cv_use_ffile"
5098 if test "$no_cache" != 1; then
5099 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5100 fi
5101
5102 if test "$wxUSE_FFILE" = yes; then
5103 echo "$as_me:$LINENO: result: yes" >&5
5104echo "${ECHO_T}yes" >&6
5105 else
5106 echo "$as_me:$LINENO: result: no" >&5
5107echo "${ECHO_T}no" >&6
5108 fi
5109
5110
5111 enablestring=
5112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5113echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5114 no_cache=0
5115 # Check whether --enable-file or --disable-file was given.
5116if test "${enable_file+set}" = set; then
5117 enableval="$enable_file"
5118
5119 if test "$enableval" = yes; then
5120 ac_cv_use_file='wxUSE_FILE=yes'
5121 else
5122 ac_cv_use_file='wxUSE_FILE=no'
5123 fi
5124
5125else
5126
5127 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5128 if test "x$LINE" != x ; then
5129 eval "DEFAULT_$LINE"
5130 else
5131 no_cache=1
5132 fi
5133
5134 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5135
5136fi;
5137
5138 eval "$ac_cv_use_file"
5139 if test "$no_cache" != 1; then
5140 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5141 fi
5142
5143 if test "$wxUSE_FILE" = yes; then
5144 echo "$as_me:$LINENO: result: yes" >&5
5145echo "${ECHO_T}yes" >&6
5146 else
5147 echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6
5149 fi
5150
5151
5152 enablestring=
5153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5154echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5155 no_cache=0
5156 # Check whether --enable-filesystem or --disable-filesystem was given.
5157if test "${enable_filesystem+set}" = set; then
5158 enableval="$enable_filesystem"
5159
5160 if test "$enableval" = yes; then
5161 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5162 else
5163 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5164 fi
5165
5166else
5167
5168 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5169 if test "x$LINE" != x ; then
5170 eval "DEFAULT_$LINE"
5171 else
5172 no_cache=1
5173 fi
5174
5175 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5176
5177fi;
5178
5179 eval "$ac_cv_use_filesystem"
5180 if test "$no_cache" != 1; then
5181 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5182 fi
5183
5184 if test "$wxUSE_FILESYSTEM" = yes; then
5185 echo "$as_me:$LINENO: result: yes" >&5
5186echo "${ECHO_T}yes" >&6
5187 else
5188 echo "$as_me:$LINENO: result: no" >&5
5189echo "${ECHO_T}no" >&6
5190 fi
5191
5192
5193 enablestring=
5194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5195echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5196 no_cache=0
5197 # Check whether --enable-fontmap or --disable-fontmap was given.
5198if test "${enable_fontmap+set}" = set; then
5199 enableval="$enable_fontmap"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5203 else
5204 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5205 fi
5206
5207else
5208
5209 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5217
5218fi;
5219
5220 eval "$ac_cv_use_fontmap"
5221 if test "$no_cache" != 1; then
5222 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5223 fi
5224
5225 if test "$wxUSE_FONTMAP" = yes; then
5226 echo "$as_me:$LINENO: result: yes" >&5
5227echo "${ECHO_T}yes" >&6
5228 else
5229 echo "$as_me:$LINENO: result: no" >&5
5230echo "${ECHO_T}no" >&6
5231 fi
5232
5233
5234 enablestring=
5235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5236echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5237 no_cache=0
5238 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5239if test "${enable_fs_inet+set}" = set; then
5240 enableval="$enable_fs_inet"
5241
5242 if test "$enableval" = yes; then
5243 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5244 else
5245 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5246 fi
5247
5248else
5249
5250 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5251 if test "x$LINE" != x ; then
5252 eval "DEFAULT_$LINE"
5253 else
5254 no_cache=1
5255 fi
5256
5257 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5258
5259fi;
5260
5261 eval "$ac_cv_use_fs_inet"
5262 if test "$no_cache" != 1; then
5263 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5264 fi
5265
5266 if test "$wxUSE_FS_INET" = yes; then
5267 echo "$as_me:$LINENO: result: yes" >&5
5268echo "${ECHO_T}yes" >&6
5269 else
5270 echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6
5272 fi
5273
5274
5275 enablestring=
5276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5277echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5278 no_cache=0
5279 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5280if test "${enable_fs_zip+set}" = set; then
5281 enableval="$enable_fs_zip"
5282
5283 if test "$enableval" = yes; then
5284 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5285 else
5286 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5287 fi
5288
5289else
5290
5291 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5292 if test "x$LINE" != x ; then
5293 eval "DEFAULT_$LINE"
5294 else
5295 no_cache=1
5296 fi
5297
5298 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5299
5300fi;
5301
5302 eval "$ac_cv_use_fs_zip"
5303 if test "$no_cache" != 1; then
5304 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5305 fi
5306
5307 if test "$wxUSE_FS_ZIP" = yes; then
5308 echo "$as_me:$LINENO: result: yes" >&5
5309echo "${ECHO_T}yes" >&6
5310 else
5311 echo "$as_me:$LINENO: result: no" >&5
5312echo "${ECHO_T}no" >&6
5313 fi
5314
5315
5316 enablestring=
5317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5318echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5319 no_cache=0
5320 # Check whether --enable-geometry or --disable-geometry was given.
5321if test "${enable_geometry+set}" = set; then
5322 enableval="$enable_geometry"
5323
5324 if test "$enableval" = yes; then
5325 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5326 else
5327 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5328 fi
5329
5330else
5331
5332 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5333 if test "x$LINE" != x ; then
5334 eval "DEFAULT_$LINE"
5335 else
5336 no_cache=1
5337 fi
5338
5339 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5340
5341fi;
5342
5343 eval "$ac_cv_use_geometry"
5344 if test "$no_cache" != 1; then
5345 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5346 fi
5347
5348 if test "$wxUSE_GEOMETRY" = yes; then
5349 echo "$as_me:$LINENO: result: yes" >&5
5350echo "${ECHO_T}yes" >&6
5351 else
5352 echo "$as_me:$LINENO: result: no" >&5
5353echo "${ECHO_T}no" >&6
5354 fi
5355
5356
5357 enablestring=
5358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5359echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5360 no_cache=0
5361 # Check whether --enable-log or --disable-log was given.
5362if test "${enable_log+set}" = set; then
5363 enableval="$enable_log"
5364
5365 if test "$enableval" = yes; then
5366 ac_cv_use_log='wxUSE_LOG=yes'
5367 else
5368 ac_cv_use_log='wxUSE_LOG=no'
5369 fi
5370
5371else
5372
5373 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5381
5382fi;
5383
5384 eval "$ac_cv_use_log"
5385 if test "$no_cache" != 1; then
5386 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5387 fi
5388
5389 if test "$wxUSE_LOG" = yes; then
5390 echo "$as_me:$LINENO: result: yes" >&5
5391echo "${ECHO_T}yes" >&6
5392 else
5393 echo "$as_me:$LINENO: result: no" >&5
5394echo "${ECHO_T}no" >&6
5395 fi
5396
5397
5398 enablestring=
5399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5400echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5401 no_cache=0
5402 # Check whether --enable-longlong or --disable-longlong was given.
5403if test "${enable_longlong+set}" = set; then
5404 enableval="$enable_longlong"
5405
5406 if test "$enableval" = yes; then
5407 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5408 else
5409 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5410 fi
5411
5412else
5413
5414 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5415 if test "x$LINE" != x ; then
5416 eval "DEFAULT_$LINE"
5417 else
5418 no_cache=1
5419 fi
5420
5421 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5422
5423fi;
5424
5425 eval "$ac_cv_use_longlong"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_LONGLONG" = yes; then
5431 echo "$as_me:$LINENO: result: yes" >&5
5432echo "${ECHO_T}yes" >&6
5433 else
5434 echo "$as_me:$LINENO: result: no" >&5
5435echo "${ECHO_T}no" >&6
5436 fi
5437
5438
5439 enablestring=
5440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5441echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5442 no_cache=0
5443 # Check whether --enable-mimetype or --disable-mimetype was given.
5444if test "${enable_mimetype+set}" = set; then
5445 enableval="$enable_mimetype"
5446
5447 if test "$enableval" = yes; then
5448 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5449 else
5450 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5451 fi
5452
5453else
5454
5455 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5456 if test "x$LINE" != x ; then
5457 eval "DEFAULT_$LINE"
5458 else
5459 no_cache=1
5460 fi
5461
5462 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5463
5464fi;
5465
5466 eval "$ac_cv_use_mimetype"
5467 if test "$no_cache" != 1; then
5468 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5469 fi
5470
5471 if test "$wxUSE_MIMETYPE" = yes; then
5472 echo "$as_me:$LINENO: result: yes" >&5
5473echo "${ECHO_T}yes" >&6
5474 else
5475 echo "$as_me:$LINENO: result: no" >&5
5476echo "${ECHO_T}no" >&6
5477 fi
5478
5479
5480 enablestring=
5481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5482echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5483 no_cache=0
5484 # Check whether --enable-mslu or --disable-mslu was given.
5485if test "${enable_mslu+set}" = set; then
5486 enableval="$enable_mslu"
5487
5488 if test "$enableval" = yes; then
5489 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5490 else
5491 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5492 fi
5493
5494else
5495
5496 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5497 if test "x$LINE" != x ; then
5498 eval "DEFAULT_$LINE"
5499 else
5500 no_cache=1
5501 fi
5502
5503 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5504
5505fi;
5506
5507 eval "$ac_cv_use_mslu"
5508 if test "$no_cache" != 1; then
5509 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5510 fi
5511
5512 if test "$wxUSE_UNICODE_MSLU" = yes; then
5513 echo "$as_me:$LINENO: result: yes" >&5
5514echo "${ECHO_T}yes" >&6
5515 else
5516 echo "$as_me:$LINENO: result: no" >&5
5517echo "${ECHO_T}no" >&6
5518 fi
5519
5520
5521 enablestring=
5522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5523echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5524 no_cache=0
5525 # Check whether --enable-snglinst or --disable-snglinst was given.
5526if test "${enable_snglinst+set}" = set; then
5527 enableval="$enable_snglinst"
5528
5529 if test "$enableval" = yes; then
5530 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5531 else
5532 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5533 fi
5534
5535else
5536
5537 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5538 if test "x$LINE" != x ; then
5539 eval "DEFAULT_$LINE"
5540 else
5541 no_cache=1
5542 fi
5543
5544 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5545
5546fi;
5547
5548 eval "$ac_cv_use_snglinst"
5549 if test "$no_cache" != 1; then
5550 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5551 fi
5552
5553 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5554 echo "$as_me:$LINENO: result: yes" >&5
5555echo "${ECHO_T}yes" >&6
5556 else
5557 echo "$as_me:$LINENO: result: no" >&5
5558echo "${ECHO_T}no" >&6
5559 fi
5560
5561
5562 enablestring=
07158944
VZ
5563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5564echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5565 no_cache=0
07158944
VZ
5566 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5567if test "${enable_std_iostreams+set}" = set; then
5568 enableval="$enable_std_iostreams"
a848cd7e
SC
5569
5570 if test "$enableval" = yes; then
07158944 5571 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5572 else
07158944 5573 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5574 fi
5575
5576else
5577
07158944 5578 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5579 if test "x$LINE" != x ; then
5580 eval "DEFAULT_$LINE"
5581 else
5582 no_cache=1
5583 fi
5584
07158944 5585 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5586
5587fi;
5588
07158944 5589 eval "$ac_cv_use_std_iostreams"
a848cd7e 5590 if test "$no_cache" != 1; then
07158944 5591 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5592 fi
5593
07158944 5594 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5595 echo "$as_me:$LINENO: result: yes" >&5
5596echo "${ECHO_T}yes" >&6
5597 else
5598 echo "$as_me:$LINENO: result: no" >&5
5599echo "${ECHO_T}no" >&6
5600 fi
5601
5602
59746b65
MW
5603 enablestring=
5604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5605echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5606 no_cache=0
5607 # Check whether --enable-std_string or --disable-std_string was given.
5608if test "${enable_std_string+set}" = set; then
5609 enableval="$enable_std_string"
5610
5611 if test "$enableval" = yes; then
5612 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5613 else
5614 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5615 fi
5616
5617else
5618
5619 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5620 if test "x$LINE" != x ; then
5621 eval "DEFAULT_$LINE"
5622 else
5623 no_cache=1
5624 fi
5625
5626 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5627
5628fi;
5629
5630 eval "$ac_cv_use_std_string"
5631 if test "$no_cache" != 1; then
5632 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5633 fi
5634
5635 if test "$wxUSE_STD_STRING" = yes; then
5636 echo "$as_me:$LINENO: result: yes" >&5
5637echo "${ECHO_T}yes" >&6
5638 else
5639 echo "$as_me:$LINENO: result: no" >&5
5640echo "${ECHO_T}no" >&6
5641 fi
5642
5643
a848cd7e 5644 enablestring=
07158944
VZ
5645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5646echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5647 no_cache=0
07158944
VZ
5648 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5649if test "${enable_stdpaths+set}" = set; then
5650 enableval="$enable_stdpaths"
a848cd7e
SC
5651
5652 if test "$enableval" = yes; then
07158944 5653 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5654 else
07158944 5655 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5656 fi
5657
5658else
5659
07158944 5660 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5661 if test "x$LINE" != x ; then
5662 eval "DEFAULT_$LINE"
5663 else
5664 no_cache=1
5665 fi
5666
07158944 5667 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5668
5669fi;
5670
07158944 5671 eval "$ac_cv_use_stdpaths"
a848cd7e 5672 if test "$no_cache" != 1; then
07158944 5673 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5674 fi
5675
07158944 5676 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5677 echo "$as_me:$LINENO: result: yes" >&5
5678echo "${ECHO_T}yes" >&6
5679 else
5680 echo "$as_me:$LINENO: result: no" >&5
5681echo "${ECHO_T}no" >&6
5682 fi
5683
5684
5685 enablestring=
5686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5687echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5688 no_cache=0
5689 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5690if test "${enable_stopwatch+set}" = set; then
5691 enableval="$enable_stopwatch"
5692
5693 if test "$enableval" = yes; then
5694 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5695 else
5696 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5697 fi
5698
5699else
5700
5701 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5702 if test "x$LINE" != x ; then
5703 eval "DEFAULT_$LINE"
5704 else
5705 no_cache=1
5706 fi
5707
5708 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5709
5710fi;
5711
5712 eval "$ac_cv_use_stopwatch"
5713 if test "$no_cache" != 1; then
5714 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5715 fi
5716
5717 if test "$wxUSE_STOPWATCH" = yes; then
5718 echo "$as_me:$LINENO: result: yes" >&5
5719echo "${ECHO_T}yes" >&6
5720 else
5721 echo "$as_me:$LINENO: result: no" >&5
5722echo "${ECHO_T}no" >&6
5723 fi
5724
5725
07158944
VZ
5726 enablestring=
5727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5728echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5729 no_cache=0
5730 # Check whether --enable-streams or --disable-streams was given.
5731if test "${enable_streams+set}" = set; then
5732 enableval="$enable_streams"
5733
5734 if test "$enableval" = yes; then
5735 ac_cv_use_streams='wxUSE_STREAMS=yes'
5736 else
5737 ac_cv_use_streams='wxUSE_STREAMS=no'
5738 fi
5739
5740else
5741
5742 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5743 if test "x$LINE" != x ; then
5744 eval "DEFAULT_$LINE"
5745 else
5746 no_cache=1
5747 fi
5748
5749 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5750
5751fi;
5752
5753 eval "$ac_cv_use_streams"
5754 if test "$no_cache" != 1; then
5755 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5756 fi
5757
5758 if test "$wxUSE_STREAMS" = yes; then
5759 echo "$as_me:$LINENO: result: yes" >&5
5760echo "${ECHO_T}yes" >&6
5761 else
5762 echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6
5764 fi
5765
5766
a848cd7e
SC
5767 enablestring=
5768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5769echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5770 no_cache=0
5771 # Check whether --enable-system_options or --disable-system_options was given.
5772if test "${enable_system_options+set}" = set; then
5773 enableval="$enable_system_options"
5774
5775 if test "$enableval" = yes; then
5776 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5777 else
5778 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5779 fi
5780
5781else
5782
5783 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5784 if test "x$LINE" != x ; then
5785 eval "DEFAULT_$LINE"
5786 else
5787 no_cache=1
5788 fi
5789
5790 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5791
5792fi;
5793
5794 eval "$ac_cv_use_system_options"
5795 if test "$no_cache" != 1; then
5796 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5797 fi
5798
5799 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5800 echo "$as_me:$LINENO: result: yes" >&5
5801echo "${ECHO_T}yes" >&6
5802 else
5803 echo "$as_me:$LINENO: result: no" >&5
5804echo "${ECHO_T}no" >&6
5805 fi
5806
5807
5808 enablestring=
5809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5810echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5811 no_cache=0
5812 # Check whether --enable-textbuf or --disable-textbuf was given.
5813if test "${enable_textbuf+set}" = set; then
5814 enableval="$enable_textbuf"
5815
5816 if test "$enableval" = yes; then
5817 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5818 else
5819 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5820 fi
5821
5822else
5823
5824 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5825 if test "x$LINE" != x ; then
5826 eval "DEFAULT_$LINE"
5827 else
5828 no_cache=1
5829 fi
5830
5831 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5832
5833fi;
5834
5835 eval "$ac_cv_use_textbuf"
5836 if test "$no_cache" != 1; then
5837 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5838 fi
5839
5840 if test "$wxUSE_TEXTBUFFER" = yes; then
5841 echo "$as_me:$LINENO: result: yes" >&5
5842echo "${ECHO_T}yes" >&6
5843 else
5844 echo "$as_me:$LINENO: result: no" >&5
5845echo "${ECHO_T}no" >&6
5846 fi
5847
5848
5849 enablestring=
5850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5851echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5852 no_cache=0
5853 # Check whether --enable-textfile or --disable-textfile was given.
5854if test "${enable_textfile+set}" = set; then
5855 enableval="$enable_textfile"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5859 else
5860 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5861 fi
5862
5863else
5864
5865 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5873
5874fi;
5875
5876 eval "$ac_cv_use_textfile"
5877 if test "$no_cache" != 1; then
5878 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5879 fi
5880
5881 if test "$wxUSE_TEXTFILE" = yes; then
5882 echo "$as_me:$LINENO: result: yes" >&5
5883echo "${ECHO_T}yes" >&6
5884 else
5885 echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6
5887 fi
5888
5889
5890 enablestring=
5891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5892echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5893 no_cache=0
5894 # Check whether --enable-timer or --disable-timer was given.
5895if test "${enable_timer+set}" = set; then
5896 enableval="$enable_timer"
5897
5898 if test "$enableval" = yes; then
5899 ac_cv_use_timer='wxUSE_TIMER=yes'
5900 else
5901 ac_cv_use_timer='wxUSE_TIMER=no'
5902 fi
5903
5904else
5905
5906 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5907 if test "x$LINE" != x ; then
5908 eval "DEFAULT_$LINE"
5909 else
5910 no_cache=1
5911 fi
5912
5913 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5914
5915fi;
5916
5917 eval "$ac_cv_use_timer"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_TIMER" = yes; then
5923 echo "$as_me:$LINENO: result: yes" >&5
5924echo "${ECHO_T}yes" >&6
5925 else
5926 echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
5928 fi
5929
5930
5931 enablestring=
5932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5933echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5934 no_cache=0
5935 # Check whether --enable-unicode or --disable-unicode was given.
5936if test "${enable_unicode+set}" = set; then
5937 enableval="$enable_unicode"
5938
5939 if test "$enableval" = yes; then
5940 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5941 else
5942 ac_cv_use_unicode='wxUSE_UNICODE=no'
5943 fi
5944
5945else
5946
5947 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5948 if test "x$LINE" != x ; then
5949 eval "DEFAULT_$LINE"
5950 else
5951 no_cache=1
5952 fi
5953
5954 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5955
5956fi;
5957
5958 eval "$ac_cv_use_unicode"
5959 if test "$no_cache" != 1; then
5960 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5961 fi
5962
5963 if test "$wxUSE_UNICODE" = yes; then
5964 echo "$as_me:$LINENO: result: yes" >&5
5965echo "${ECHO_T}yes" >&6
5966 else
5967 echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6
5969 fi
5970
5971
5972 enablestring=
5973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5974echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5975 no_cache=0
5976 # Check whether --enable-sound or --disable-sound was given.
5977if test "${enable_sound+set}" = set; then
5978 enableval="$enable_sound"
5979
5980 if test "$enableval" = yes; then
5981 ac_cv_use_sound='wxUSE_SOUND=yes'
5982 else
5983 ac_cv_use_sound='wxUSE_SOUND=no'
5984 fi
5985
5986else
5987
5988 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5989 if test "x$LINE" != x ; then
5990 eval "DEFAULT_$LINE"
5991 else
5992 no_cache=1
5993 fi
5994
5995 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5996
5997fi;
5998
5999 eval "$ac_cv_use_sound"
6000 if test "$no_cache" != 1; then
6001 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6002 fi
6003
6004 if test "$wxUSE_SOUND" = yes; then
6005 echo "$as_me:$LINENO: result: yes" >&5
6006echo "${ECHO_T}yes" >&6
6007 else
6008 echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6
6010 fi
6011
6012
3b57de8b
RL
6013 enablestring=
6014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6015echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6016 no_cache=0
6017 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6018if test "${enable_mediactrl+set}" = set; then
6019 enableval="$enable_mediactrl"
6020
6021 if test "$enableval" = yes; then
6022 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6023 else
6024 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6025 fi
6026
6027else
6028
6029 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6030 if test "x$LINE" != x ; then
6031 eval "DEFAULT_$LINE"
6032 else
6033 no_cache=1
6034 fi
6035
6036 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6037
6038fi;
6039
6040 eval "$ac_cv_use_mediactrl"
6041 if test "$no_cache" != 1; then
6042 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6043 fi
6044
6045 if test "$wxUSE_MEDIACTRL" = yes; then
6046 echo "$as_me:$LINENO: result: yes" >&5
6047echo "${ECHO_T}yes" >&6
6048 else
6049 echo "$as_me:$LINENO: result: no" >&5
6050echo "${ECHO_T}no" >&6
6051 fi
6052
6053
a848cd7e
SC
6054 enablestring=
6055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6056echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6057 no_cache=0
6058 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6059if test "${enable_wxprintfv+set}" = set; then
6060 enableval="$enable_wxprintfv"
6061
6062 if test "$enableval" = yes; then
6063 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6064 else
6065 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6066 fi
6067
6068else
6069
6070 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6071 if test "x$LINE" != x ; then
6072 eval "DEFAULT_$LINE"
6073 else
6074 no_cache=1
6075 fi
6076
6077 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6078
6079fi;
6080
6081 eval "$ac_cv_use_wxprintfv"
6082 if test "$no_cache" != 1; then
6083 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6084 fi
6085
6086 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6087 echo "$as_me:$LINENO: result: yes" >&5
6088echo "${ECHO_T}yes" >&6
6089 else
6090 echo "$as_me:$LINENO: result: no" >&5
6091echo "${ECHO_T}no" >&6
6092 fi
6093
6094
6095 enablestring=
6096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6097echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6098 no_cache=0
6099 # Check whether --enable-zipstream or --disable-zipstream was given.
6100if test "${enable_zipstream+set}" = set; then
6101 enableval="$enable_zipstream"
6102
6103 if test "$enableval" = yes; then
6104 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6105 else
6106 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6107 fi
6108
6109else
6110
6111 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6112 if test "x$LINE" != x ; then
6113 eval "DEFAULT_$LINE"
6114 else
6115 no_cache=1
6116 fi
6117
6118 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6119
6120fi;
6121
6122 eval "$ac_cv_use_zipstream"
6123 if test "$no_cache" != 1; then
6124 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6125 fi
6126
6127 if test "$wxUSE_ZIPSTREAM" = yes; then
6128 echo "$as_me:$LINENO: result: yes" >&5
6129echo "${ECHO_T}yes" >&6
6130 else
6131 echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6
6133 fi
6134
6135
a848cd7e
SC
6136
6137 enablestring=
6138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6139echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6140 no_cache=0
6141 # Check whether --enable-url or --disable-url was given.
6142if test "${enable_url+set}" = set; then
6143 enableval="$enable_url"
6144
6145 if test "$enableval" = yes; then
6146 ac_cv_use_url='wxUSE_URL=yes'
6147 else
6148 ac_cv_use_url='wxUSE_URL=no'
6149 fi
6150
6151else
6152
6153 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6154 if test "x$LINE" != x ; then
6155 eval "DEFAULT_$LINE"
6156 else
6157 no_cache=1
6158 fi
6159
6160 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6161
6162fi;
6163
6164 eval "$ac_cv_use_url"
6165 if test "$no_cache" != 1; then
6166 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6167 fi
6168
6169 if test "$wxUSE_URL" = yes; then
6170 echo "$as_me:$LINENO: result: yes" >&5
6171echo "${ECHO_T}yes" >&6
6172 else
6173 echo "$as_me:$LINENO: result: no" >&5
6174echo "${ECHO_T}no" >&6
6175 fi
6176
6177
6178 enablestring=
6179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6180echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6181 no_cache=0
6182 # Check whether --enable-protocol or --disable-protocol was given.
6183if test "${enable_protocol+set}" = set; then
6184 enableval="$enable_protocol"
6185
6186 if test "$enableval" = yes; then
6187 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6188 else
6189 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6190 fi
6191
6192else
6193
6194 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6195 if test "x$LINE" != x ; then
6196 eval "DEFAULT_$LINE"
6197 else
6198 no_cache=1
6199 fi
6200
6201 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6202
6203fi;
6204
6205 eval "$ac_cv_use_protocol"
6206 if test "$no_cache" != 1; then
6207 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6208 fi
6209
6210 if test "$wxUSE_PROTOCOL" = yes; then
6211 echo "$as_me:$LINENO: result: yes" >&5
6212echo "${ECHO_T}yes" >&6
6213 else
6214 echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6
6216 fi
6217
6218
6219 enablestring=
6220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6221echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6222 no_cache=0
6223 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6224if test "${enable_protocol_http+set}" = set; then
6225 enableval="$enable_protocol_http"
6226
6227 if test "$enableval" = yes; then
6228 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6229 else
6230 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6231 fi
6232
6233else
6234
6235 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6236 if test "x$LINE" != x ; then
6237 eval "DEFAULT_$LINE"
6238 else
6239 no_cache=1
6240 fi
6241
6242 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6243
6244fi;
6245
6246 eval "$ac_cv_use_protocol_http"
6247 if test "$no_cache" != 1; then
6248 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6249 fi
6250
6251 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6252 echo "$as_me:$LINENO: result: yes" >&5
6253echo "${ECHO_T}yes" >&6
6254 else
6255 echo "$as_me:$LINENO: result: no" >&5
6256echo "${ECHO_T}no" >&6
6257 fi
6258
6259
6260 enablestring=
6261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6262echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6263 no_cache=0
6264 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6265if test "${enable_protocol_ftp+set}" = set; then
6266 enableval="$enable_protocol_ftp"
6267
6268 if test "$enableval" = yes; then
6269 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6270 else
6271 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6272 fi
6273
6274else
6275
6276 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6277 if test "x$LINE" != x ; then
6278 eval "DEFAULT_$LINE"
6279 else
6280 no_cache=1
6281 fi
6282
6283 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6284
6285fi;
6286
6287 eval "$ac_cv_use_protocol_ftp"
6288 if test "$no_cache" != 1; then
6289 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6290 fi
6291
6292 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6293 echo "$as_me:$LINENO: result: yes" >&5
6294echo "${ECHO_T}yes" >&6
6295 else
6296 echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6
6298 fi
6299
6300
6301 enablestring=
6302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6303echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6304 no_cache=0
6305 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6306if test "${enable_protocol_file+set}" = set; then
6307 enableval="$enable_protocol_file"
6308
6309 if test "$enableval" = yes; then
6310 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6311 else
6312 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6313 fi
6314
6315else
6316
6317 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6318 if test "x$LINE" != x ; then
6319 eval "DEFAULT_$LINE"
6320 else
6321 no_cache=1
6322 fi
6323
6324 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6325
6326fi;
6327
6328 eval "$ac_cv_use_protocol_file"
6329 if test "$no_cache" != 1; then
6330 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6331 fi
6332
6333 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6334 echo "$as_me:$LINENO: result: yes" >&5
6335echo "${ECHO_T}yes" >&6
6336 else
6337 echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6
6339 fi
6340
6341
6342
6343
6344
6345 enablestring=
6346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6347echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6348 no_cache=0
6349 # Check whether --enable-threads or --disable-threads was given.
6350if test "${enable_threads+set}" = set; then
6351 enableval="$enable_threads"
6352
6353 if test "$enableval" = yes; then
6354 ac_cv_use_threads='wxUSE_THREADS=yes'
6355 else
6356 ac_cv_use_threads='wxUSE_THREADS=no'
6357 fi
6358
6359else
6360
6361 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6362 if test "x$LINE" != x ; then
6363 eval "DEFAULT_$LINE"
6364 else
6365 no_cache=1
6366 fi
6367
6368 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6369
6370fi;
6371
6372 eval "$ac_cv_use_threads"
6373 if test "$no_cache" != 1; then
6374 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6375 fi
6376
6377 if test "$wxUSE_THREADS" = yes; then
6378 echo "$as_me:$LINENO: result: yes" >&5
6379echo "${ECHO_T}yes" >&6
6380 else
6381 echo "$as_me:$LINENO: result: no" >&5
6382echo "${ECHO_T}no" >&6
6383 fi
6384
6385
6386if test "$wxUSE_GUI" = "yes"; then
6387
6388
6389
6390 enablestring=
6391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6392echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6393 no_cache=0
6394 # Check whether --enable-docview or --disable-docview was given.
6395if test "${enable_docview+set}" = set; then
6396 enableval="$enable_docview"
6397
6398 if test "$enableval" = yes; then
6399 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6400 else
6401 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6402 fi
6403
6404else
6405
6406 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6407 if test "x$LINE" != x ; then
6408 eval "DEFAULT_$LINE"
6409 else
6410 no_cache=1
6411 fi
6412
6413 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6414
6415fi;
6416
6417 eval "$ac_cv_use_docview"
6418 if test "$no_cache" != 1; then
6419 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6420 fi
6421
6422 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6423 echo "$as_me:$LINENO: result: yes" >&5
6424echo "${ECHO_T}yes" >&6
6425 else
6426 echo "$as_me:$LINENO: result: no" >&5
6427echo "${ECHO_T}no" >&6
6428 fi
6429
6430
6431 enablestring=
6432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6433echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6434 no_cache=0
6435 # Check whether --enable-help or --disable-help was given.
6436if test "${enable_help+set}" = set; then
6437 enableval="$enable_help"
6438
6439 if test "$enableval" = yes; then
6440 ac_cv_use_help='wxUSE_HELP=yes'
6441 else
6442 ac_cv_use_help='wxUSE_HELP=no'
6443 fi
6444
6445else
6446
6447 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6448 if test "x$LINE" != x ; then
6449 eval "DEFAULT_$LINE"
6450 else
6451 no_cache=1
6452 fi
6453
6454 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6455
6456fi;
6457
6458 eval "$ac_cv_use_help"
6459 if test "$no_cache" != 1; then
6460 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6461 fi
6462
6463 if test "$wxUSE_HELP" = yes; then
6464 echo "$as_me:$LINENO: result: yes" >&5
6465echo "${ECHO_T}yes" >&6
6466 else
6467 echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6
6469 fi
6470
6471
6472 enablestring=
6473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6474echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6475 no_cache=0
6476 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6477if test "${enable_mshtmlhelp+set}" = set; then
6478 enableval="$enable_mshtmlhelp"
6479
6480 if test "$enableval" = yes; then
6481 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6482 else
6483 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6484 fi
6485
6486else
6487
6488 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6489 if test "x$LINE" != x ; then
6490 eval "DEFAULT_$LINE"
6491 else
6492 no_cache=1
6493 fi
6494
6495 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6496
6497fi;
6498
6499 eval "$ac_cv_use_mshtmlhelp"
6500 if test "$no_cache" != 1; then
6501 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6502 fi
6503
6504 if test "$wxUSE_MS_HTML_HELP" = yes; then
6505 echo "$as_me:$LINENO: result: yes" >&5
6506echo "${ECHO_T}yes" >&6
6507 else
6508 echo "$as_me:$LINENO: result: no" >&5
6509echo "${ECHO_T}no" >&6
6510 fi
6511
6512
6513 enablestring=
6514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6515echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6516 no_cache=0
6517 # Check whether --enable-html or --disable-html was given.
6518if test "${enable_html+set}" = set; then
6519 enableval="$enable_html"
6520
6521 if test "$enableval" = yes; then
6522 ac_cv_use_html='wxUSE_HTML=yes'
6523 else
6524 ac_cv_use_html='wxUSE_HTML=no'
6525 fi
6526
6527else
6528
6529 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6530 if test "x$LINE" != x ; then
6531 eval "DEFAULT_$LINE"
6532 else
6533 no_cache=1
6534 fi
6535
6536 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6537
6538fi;
6539
6540 eval "$ac_cv_use_html"
6541 if test "$no_cache" != 1; then
6542 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6543 fi
6544
6545 if test "$wxUSE_HTML" = yes; then
6546 echo "$as_me:$LINENO: result: yes" >&5
6547echo "${ECHO_T}yes" >&6
6548 else
6549 echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6
6551 fi
6552
6553
6554 enablestring=
6555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6556echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6557 no_cache=0
6558 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6559if test "${enable_htmlhelp+set}" = set; then
6560 enableval="$enable_htmlhelp"
6561
6562 if test "$enableval" = yes; then
6563 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6564 else
6565 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6566 fi
6567
6568else
6569
6570 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6571 if test "x$LINE" != x ; then
6572 eval "DEFAULT_$LINE"
6573 else
6574 no_cache=1
6575 fi
6576
6577 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6578
6579fi;
6580
6581 eval "$ac_cv_use_htmlhelp"
6582 if test "$no_cache" != 1; then
6583 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6584 fi
6585
6586 if test "$wxUSE_WXHTML_HELP" = yes; then
6587 echo "$as_me:$LINENO: result: yes" >&5
6588echo "${ECHO_T}yes" >&6
6589 else
6590 echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6
6592 fi
6593
6594
9a8f0513
VS
6595 enablestring=
6596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6597echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6598 no_cache=0
6599 # Check whether --enable-xrc or --disable-xrc was given.
6600if test "${enable_xrc+set}" = set; then
6601 enableval="$enable_xrc"
6602
6603 if test "$enableval" = yes; then
6604 ac_cv_use_xrc='wxUSE_XRC=yes'
6605 else
6606 ac_cv_use_xrc='wxUSE_XRC=no'
6607 fi
6608
6609else
6610
6611 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6612 if test "x$LINE" != x ; then
6613 eval "DEFAULT_$LINE"
6614 else
6615 no_cache=1
6616 fi
6617
6618 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6619
6620fi;
6621
6622 eval "$ac_cv_use_xrc"
6623 if test "$no_cache" != 1; then
6624 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6625 fi
6626
6627 if test "$wxUSE_XRC" = yes; then
6628 echo "$as_me:$LINENO: result: yes" >&5
6629echo "${ECHO_T}yes" >&6
6630 else
6631 echo "$as_me:$LINENO: result: no" >&5
6632echo "${ECHO_T}no" >&6
6633 fi
6634
6635
a848cd7e
SC
6636 enablestring=
6637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6638echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6639 no_cache=0
6640 # Check whether --enable-constraints or --disable-constraints was given.
6641if test "${enable_constraints+set}" = set; then
6642 enableval="$enable_constraints"
6643
6644 if test "$enableval" = yes; then
6645 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6646 else
6647 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6648 fi
6649
6650else
6651
6652 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6653 if test "x$LINE" != x ; then
6654 eval "DEFAULT_$LINE"
6655 else
6656 no_cache=1
6657 fi
6658
6659 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6660
6661fi;
6662
6663 eval "$ac_cv_use_constraints"
6664 if test "$no_cache" != 1; then
6665 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6666 fi
6667
6668 if test "$wxUSE_CONSTRAINTS" = yes; then
6669 echo "$as_me:$LINENO: result: yes" >&5
6670echo "${ECHO_T}yes" >&6
6671 else
6672 echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6
6674 fi
6675
6676
6677 enablestring=
6678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6679echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6680 no_cache=0
6681 # Check whether --enable-printarch or --disable-printarch was given.
6682if test "${enable_printarch+set}" = set; then
6683 enableval="$enable_printarch"
6684
6685 if test "$enableval" = yes; then
6686 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6687 else
6688 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6689 fi
6690
6691else
6692
6693 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6694 if test "x$LINE" != x ; then
6695 eval "DEFAULT_$LINE"
6696 else
6697 no_cache=1
6698 fi
6699
6700 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6701
6702fi;
6703
6704 eval "$ac_cv_use_printarch"
6705 if test "$no_cache" != 1; then
6706 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6707 fi
6708
6709 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6710 echo "$as_me:$LINENO: result: yes" >&5
6711echo "${ECHO_T}yes" >&6
6712 else
6713 echo "$as_me:$LINENO: result: no" >&5
6714echo "${ECHO_T}no" >&6
6715 fi
6716
6717
6718 enablestring=
6719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6720echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6721 no_cache=0
6722 # Check whether --enable-mdi or --disable-mdi was given.
6723if test "${enable_mdi+set}" = set; then
6724 enableval="$enable_mdi"
6725
6726 if test "$enableval" = yes; then
8a7b1113 6727 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6728 else
8a7b1113 6729 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6730 fi
6731
6732else
6733
8a7b1113 6734 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6735 if test "x$LINE" != x ; then
6736 eval "DEFAULT_$LINE"
6737 else
6738 no_cache=1
6739 fi
6740
8a7b1113 6741 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6742
6743fi;
6744
6745 eval "$ac_cv_use_mdi"
6746 if test "$no_cache" != 1; then
6747 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6748 fi
6749
8a7b1113
VZ
6750 if test "$wxUSE_MDI" = yes; then
6751 echo "$as_me:$LINENO: result: yes" >&5
6752echo "${ECHO_T}yes" >&6
6753 else
6754 echo "$as_me:$LINENO: result: no" >&5
6755echo "${ECHO_T}no" >&6
6756 fi
6757
6758
6759 enablestring=
6760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6761echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6762 no_cache=0
6763 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6764if test "${enable_mdidoc+set}" = set; then
6765 enableval="$enable_mdidoc"
6766
6767 if test "$enableval" = yes; then
6768 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6769 else
6770 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6771 fi
6772
6773else
6774
6775 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6776 if test "x$LINE" != x ; then
6777 eval "DEFAULT_$LINE"
6778 else
6779 no_cache=1
6780 fi
6781
6782 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6783
6784fi;
6785
6786 eval "$ac_cv_use_mdidoc"
6787 if test "$no_cache" != 1; then
6788 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6789 fi
6790
a848cd7e
SC
6791 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6792 echo "$as_me:$LINENO: result: yes" >&5
6793echo "${ECHO_T}yes" >&6
6794 else
6795 echo "$as_me:$LINENO: result: no" >&5
6796echo "${ECHO_T}no" >&6
6797 fi
6798
6799
6800 enablestring=
6801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6802echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6803 no_cache=0
6804 # Check whether --enable-loggui or --disable-loggui was given.
6805if test "${enable_loggui+set}" = set; then
6806 enableval="$enable_loggui"
6807
6808 if test "$enableval" = yes; then
6809 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6810 else
6811 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6812 fi
6813
6814else
6815
6816 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6817 if test "x$LINE" != x ; then
6818 eval "DEFAULT_$LINE"
6819 else
6820 no_cache=1
6821 fi
6822
6823 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6824
6825fi;
6826
6827 eval "$ac_cv_use_loggui"
6828 if test "$no_cache" != 1; then
6829 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6830 fi
6831
6832 if test "$wxUSE_LOGGUI" = yes; then
6833 echo "$as_me:$LINENO: result: yes" >&5
6834echo "${ECHO_T}yes" >&6
6835 else
6836 echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6
6838 fi
6839
6840
6841 enablestring=
6842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6843echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6844 no_cache=0
6845 # Check whether --enable-logwin or --disable-logwin was given.
6846if test "${enable_logwin+set}" = set; then
6847 enableval="$enable_logwin"
6848
6849 if test "$enableval" = yes; then
6850 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6851 else
6852 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6853 fi
6854
6855else
6856
6857 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6858 if test "x$LINE" != x ; then
6859 eval "DEFAULT_$LINE"
6860 else
6861 no_cache=1
6862 fi
6863
6864 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6865
6866fi;
6867
6868 eval "$ac_cv_use_logwin"
6869 if test "$no_cache" != 1; then
6870 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6871 fi
6872
6873 if test "$wxUSE_LOGWINDOW" = yes; then
6874 echo "$as_me:$LINENO: result: yes" >&5
6875echo "${ECHO_T}yes" >&6
6876 else
6877 echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6
6879 fi
6880
6881
6882 enablestring=
6883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6884echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6885 no_cache=0
6886 # Check whether --enable-logdialog or --disable-logdialog was given.
6887if test "${enable_logdialog+set}" = set; then
6888 enableval="$enable_logdialog"
6889
6890 if test "$enableval" = yes; then
6891 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6892 else
6893 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6894 fi
6895
6896else
6897
6898 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6899 if test "x$LINE" != x ; then
6900 eval "DEFAULT_$LINE"
6901 else
6902 no_cache=1
6903 fi
6904
6905 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6906
6907fi;
6908
6909 eval "$ac_cv_use_logdialog"
6910 if test "$no_cache" != 1; then
6911 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6912 fi
6913
6914 if test "$wxUSE_LOGDIALOG" = yes; then
6915 echo "$as_me:$LINENO: result: yes" >&5
6916echo "${ECHO_T}yes" >&6
6917 else
6918 echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6
6920 fi
6921
6922
646b6ec1
VS
6923 enablestring=
6924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6925echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6926 no_cache=0
6927 # Check whether --enable-webkit or --disable-webkit was given.
6928if test "${enable_webkit+set}" = set; then
6929 enableval="$enable_webkit"
6930
6931 if test "$enableval" = yes; then
6932 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6933 else
6934 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6935 fi
6936
6937else
6938
6939 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6940 if test "x$LINE" != x ; then
6941 eval "DEFAULT_$LINE"
6942 else
6943 no_cache=1
6944 fi
6945
6946 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6947
6948fi;
6949
6950 eval "$ac_cv_use_webkit"
6951 if test "$no_cache" != 1; then
6952 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6953 fi
6954
6955 if test "$wxUSE_WEBKIT" = yes; then
6956 echo "$as_me:$LINENO: result: yes" >&5
6957echo "${ECHO_T}yes" >&6
6958 else
6959 echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6
6961 fi
6962
6963
a848cd7e
SC
6964
6965 enablestring=
6966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6967echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6968 no_cache=0
6969 # Check whether --enable-postscript or --disable-postscript was given.
6970if test "${enable_postscript+set}" = set; then
6971 enableval="$enable_postscript"
6972
6973 if test "$enableval" = yes; then
6974 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6975 else
6976 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6977 fi
6978
6979else
6980
6981 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6989
6990fi;
6991
6992 eval "$ac_cv_use_postscript"
6993 if test "$no_cache" != 1; then
6994 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6995 fi
6996
6997 if test "$wxUSE_POSTSCRIPT" = yes; then
6998 echo "$as_me:$LINENO: result: yes" >&5
6999echo "${ECHO_T}yes" >&6
7000 else
7001 echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6
7003 fi
7004
7005
7006
7007
7008
7009 enablestring=
7010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7011echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7012 no_cache=0
7013 # Check whether --enable-prologio or --disable-prologio was given.
7014if test "${enable_prologio+set}" = set; then
7015 enableval="$enable_prologio"
7016
7017 if test "$enableval" = yes; then
7018 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7019 else
7020 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7021 fi
7022
7023else
7024
7025 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7026 if test "x$LINE" != x ; then
7027 eval "DEFAULT_$LINE"
7028 else
7029 no_cache=1
7030 fi
7031
7032 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7033
7034fi;
7035
7036 eval "$ac_cv_use_prologio"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_PROLOGIO" = yes; then
7042 echo "$as_me:$LINENO: result: yes" >&5
7043echo "${ECHO_T}yes" >&6
7044 else
7045 echo "$as_me:$LINENO: result: no" >&5
7046echo "${ECHO_T}no" >&6
7047 fi
7048
7049
7050 enablestring=
7051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7052echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7053 no_cache=0
7054 # Check whether --enable-resources or --disable-resources was given.
7055if test "${enable_resources+set}" = set; then
7056 enableval="$enable_resources"
7057
7058 if test "$enableval" = yes; then
7059 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7060 else
7061 ac_cv_use_resources='wxUSE_RESOURCES=no'
7062 fi
7063
7064else
7065
7066 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7067 if test "x$LINE" != x ; then
7068 eval "DEFAULT_$LINE"
7069 else
7070 no_cache=1
7071 fi
7072
7073 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7074
7075fi;
7076
7077 eval "$ac_cv_use_resources"
7078 if test "$no_cache" != 1; then
7079 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7080 fi
7081
7082 if test "$wxUSE_RESOURCES" = yes; then
7083 echo "$as_me:$LINENO: result: yes" >&5
7084echo "${ECHO_T}yes" >&6
7085 else
7086 echo "$as_me:$LINENO: result: no" >&5
7087echo "${ECHO_T}no" >&6
7088 fi
7089
7090
7091
7092
7093 enablestring=
7094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7095echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7096 no_cache=0
7097 # Check whether --enable-clipboard or --disable-clipboard was given.
7098if test "${enable_clipboard+set}" = set; then
7099 enableval="$enable_clipboard"
7100
7101 if test "$enableval" = yes; then
7102 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7103 else
7104 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7105 fi
7106
7107else
7108
7109 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7117
7118fi;
7119
7120 eval "$ac_cv_use_clipboard"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_CLIPBOARD" = yes; then
7126 echo "$as_me:$LINENO: result: yes" >&5
7127echo "${ECHO_T}yes" >&6
7128 else
7129 echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6
7131 fi
7132
7133
7134 enablestring=
7135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7136echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7137 no_cache=0
7138 # Check whether --enable-dnd or --disable-dnd was given.
7139if test "${enable_dnd+set}" = set; then
7140 enableval="$enable_dnd"
7141
7142 if test "$enableval" = yes; then
7143 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7144 else
7145 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7146 fi
7147
7148else
7149
7150 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7151 if test "x$LINE" != x ; then
7152 eval "DEFAULT_$LINE"
7153 else
7154 no_cache=1
7155 fi
7156
7157 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7158
7159fi;
7160
7161 eval "$ac_cv_use_dnd"
7162 if test "$no_cache" != 1; then
7163 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7164 fi
7165
7166 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7167 echo "$as_me:$LINENO: result: yes" >&5
7168echo "${ECHO_T}yes" >&6
7169 else
7170 echo "$as_me:$LINENO: result: no" >&5
7171echo "${ECHO_T}no" >&6
7172 fi
7173
7174
7175 enablestring=
7176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7177echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7178 no_cache=0
7179 # Check whether --enable-metafile or --disable-metafile was given.
7180if test "${enable_metafile+set}" = set; then
7181 enableval="$enable_metafile"
7182
7183 if test "$enableval" = yes; then
7184 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7185 else
7186 ac_cv_use_metafile='wxUSE_METAFILE=no'
7187 fi
7188
7189else
7190
7191 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7192 if test "x$LINE" != x ; then
7193 eval "DEFAULT_$LINE"
7194 else
7195 no_cache=1
7196 fi
7197
7198 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7199
7200fi;
7201
7202 eval "$ac_cv_use_metafile"
7203 if test "$no_cache" != 1; then
7204 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7205 fi
7206
7207 if test "$wxUSE_METAFILE" = yes; then
7208 echo "$as_me:$LINENO: result: yes" >&5
7209echo "${ECHO_T}yes" >&6
7210 else
7211 echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6
7213 fi
7214
7215
7216
7217
7218
7219 enablestring=
7220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7221echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7222 no_cache=0
7223 # Check whether --enable-controls or --disable-controls was given.
7224if test "${enable_controls+set}" = set; then
7225 enableval="$enable_controls"
7226
7227 if test "$enableval" = yes; then
7228 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7229 else
7230 ac_cv_use_controls='wxUSE_CONTROLS=no'
7231 fi
7232
7233else
7234
7235 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7236 if test "x$LINE" != x ; then
7237 eval "DEFAULT_$LINE"
7238 else
7239 no_cache=1
7240 fi
7241
7242 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7243
7244fi;
7245
7246 eval "$ac_cv_use_controls"
7247 if test "$no_cache" != 1; then
7248 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7249 fi
7250
7251 if test "$wxUSE_CONTROLS" = yes; then
7252 echo "$as_me:$LINENO: result: yes" >&5
7253echo "${ECHO_T}yes" >&6
7254 else
7255 echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257 fi
7258
7259
7260if test "$wxUSE_CONTROLS" = "yes"; then
7261 DEFAULT_wxUSE_ACCEL=yes
7262 DEFAULT_wxUSE_BMPBUTTON=yes
7263 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7264 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7265 DEFAULT_wxUSE_CARET=yes
7266 DEFAULT_wxUSE_COMBOBOX=yes
7267 DEFAULT_wxUSE_CHECKBOX=yes
7268 DEFAULT_wxUSE_CHECKLISTBOX=yes
7269 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7270 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7271 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7272 DEFAULT_wxUSE_GAUGE=yes
7273 DEFAULT_wxUSE_GRID=yes
7274 DEFAULT_wxUSE_IMAGLIST=yes
7275 DEFAULT_wxUSE_LISTBOOK=yes
7276 DEFAULT_wxUSE_LISTBOX=yes
7277 DEFAULT_wxUSE_LISTCTRL=yes
7278 DEFAULT_wxUSE_NOTEBOOK=yes
7279 DEFAULT_wxUSE_RADIOBOX=yes
7280 DEFAULT_wxUSE_RADIOBTN=yes
7281 DEFAULT_wxUSE_SASH=yes
7282 DEFAULT_wxUSE_SCROLLBAR=yes
7283 DEFAULT_wxUSE_SLIDER=yes
7284 DEFAULT_wxUSE_SPINBTN=yes
7285 DEFAULT_wxUSE_SPINCTRL=yes
7286 DEFAULT_wxUSE_SPLITTER=yes
7287 DEFAULT_wxUSE_STATBMP=yes
7288 DEFAULT_wxUSE_STATBOX=yes
7289 DEFAULT_wxUSE_STATLINE=yes
7290 DEFAULT_wxUSE_STATUSBAR=yes
7291 DEFAULT_wxUSE_TAB_DIALOG=yes
7292 DEFAULT_wxUSE_TOGGLEBTN=yes
7293 DEFAULT_wxUSE_TOOLBAR=yes
7294 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7295 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7296 DEFAULT_wxUSE_TOOLTIPS=yes
7297 DEFAULT_wxUSE_TREECTRL=yes
7298 DEFAULT_wxUSE_POPUPWIN=yes
7299 DEFAULT_wxUSE_TIPWINDOW=yes
7300elif test "$wxUSE_CONTROLS" = "no"; then
7301 DEFAULT_wxUSE_ACCEL=no
7302 DEFAULT_wxUSE_BMPBUTTON=no
7303 DEFAULT_wxUSE_BUTTON=no
7304 DEFAULT_wxUSE_CALCTRL=no
7305 DEFAULT_wxUSE_CARET=no
7306 DEFAULT_wxUSE_COMBOBOX=no
7307 DEFAULT_wxUSE_CHECKBOX=no
7308 DEFAULT_wxUSE_CHECKLISTBOX=no
7309 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7310 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7311 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7312 DEFAULT_wxUSE_GAUGE=no
7313 DEFAULT_wxUSE_GRID=no
7314 DEFAULT_wxUSE_IMAGLIST=no
7315 DEFAULT_wxUSE_LISTBOOK=no
7316 DEFAULT_wxUSE_LISTBOX=no
7317 DEFAULT_wxUSE_LISTCTRL=no
7318 DEFAULT_wxUSE_NOTEBOOK=no
7319 DEFAULT_wxUSE_RADIOBOX=no
7320 DEFAULT_wxUSE_RADIOBTN=no
7321 DEFAULT_wxUSE_SASH=no
7322 DEFAULT_wxUSE_SCROLLBAR=no
7323 DEFAULT_wxUSE_SLIDER=no
7324 DEFAULT_wxUSE_SPINBTN=no
7325 DEFAULT_wxUSE_SPINCTRL=no
7326 DEFAULT_wxUSE_SPLITTER=no
7327 DEFAULT_wxUSE_STATBMP=no
7328 DEFAULT_wxUSE_STATBOX=no
7329 DEFAULT_wxUSE_STATLINE=no
7330 DEFAULT_wxUSE_STATUSBAR=no
7331 DEFAULT_wxUSE_TAB_DIALOG=no
7332 DEFAULT_wxUSE_TOGGLEBTN=no
7333 DEFAULT_wxUSE_TOOLBAR=no
7334 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7335 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7336 DEFAULT_wxUSE_TOOLTIPS=no
7337 DEFAULT_wxUSE_TREECTRL=no
7338 DEFAULT_wxUSE_POPUPWIN=no
7339 DEFAULT_wxUSE_TIPWINDOW=no
7340fi
7341
a848cd7e
SC
7342
7343 enablestring=
7344 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7345echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7346 no_cache=0
7347 # Check whether --enable-accel or --disable-accel was given.
7348if test "${enable_accel+set}" = set; then
7349 enableval="$enable_accel"
7350
7351 if test "$enableval" = yes; then
7352 ac_cv_use_accel='wxUSE_ACCEL=yes'
7353 else
7354 ac_cv_use_accel='wxUSE_ACCEL=no'
7355 fi
7356
7357else
7358
7359 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7360 if test "x$LINE" != x ; then
7361 eval "DEFAULT_$LINE"
7362 else
7363 no_cache=1
7364 fi
7365
7366 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7367
7368fi;
7369
7370 eval "$ac_cv_use_accel"
7371 if test "$no_cache" != 1; then
7372 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7373 fi
7374
7375 if test "$wxUSE_ACCEL" = yes; then
7376 echo "$as_me:$LINENO: result: yes" >&5
7377echo "${ECHO_T}yes" >&6
7378 else
7379 echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6
7381 fi
7382
7383
7384 enablestring=
7385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7386echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7387 no_cache=0
7388 # Check whether --enable-button or --disable-button was given.
7389if test "${enable_button+set}" = set; then
7390 enableval="$enable_button"
7391
7392 if test "$enableval" = yes; then
7393 ac_cv_use_button='wxUSE_BUTTON=yes'
7394 else
7395 ac_cv_use_button='wxUSE_BUTTON=no'
7396 fi
7397
7398else
7399
7400 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7401 if test "x$LINE" != x ; then
7402 eval "DEFAULT_$LINE"
7403 else
7404 no_cache=1
7405 fi
7406
7407 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7408
7409fi;
7410
7411 eval "$ac_cv_use_button"
7412 if test "$no_cache" != 1; then
7413 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7414 fi
7415
7416 if test "$wxUSE_BUTTON" = yes; then
7417 echo "$as_me:$LINENO: result: yes" >&5
7418echo "${ECHO_T}yes" >&6
7419 else
7420 echo "$as_me:$LINENO: result: no" >&5
7421echo "${ECHO_T}no" >&6
7422 fi
7423
7424
7425 enablestring=
7426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7427echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7428 no_cache=0
7429 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7430if test "${enable_bmpbutton+set}" = set; then
7431 enableval="$enable_bmpbutton"
7432
7433 if test "$enableval" = yes; then
7434 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7435 else
7436 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7437 fi
7438
7439else
7440
7441 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7442 if test "x$LINE" != x ; then
7443 eval "DEFAULT_$LINE"
7444 else
7445 no_cache=1
7446 fi
7447
7448 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7449
7450fi;
7451
7452 eval "$ac_cv_use_bmpbutton"
7453 if test "$no_cache" != 1; then
7454 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7455 fi
7456
7457 if test "$wxUSE_BMPBUTTON" = yes; then
7458 echo "$as_me:$LINENO: result: yes" >&5
7459echo "${ECHO_T}yes" >&6
7460 else
7461 echo "$as_me:$LINENO: result: no" >&5
7462echo "${ECHO_T}no" >&6
7463 fi
7464
7465
7466 enablestring=
7467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7468echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7469 no_cache=0
7470 # Check whether --enable-calendar or --disable-calendar was given.
7471if test "${enable_calendar+set}" = set; then
7472 enableval="$enable_calendar"
7473
7474 if test "$enableval" = yes; then
7475 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7476 else
7477 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7478 fi
7479
7480else
7481
7482 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7483 if test "x$LINE" != x ; then
7484 eval "DEFAULT_$LINE"
7485 else
7486 no_cache=1
7487 fi
7488
7489 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7490
7491fi;
7492
7493 eval "$ac_cv_use_calendar"
7494 if test "$no_cache" != 1; then
7495 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7496 fi
7497
7498 if test "$wxUSE_CALCTRL" = yes; then
7499 echo "$as_me:$LINENO: result: yes" >&5
7500echo "${ECHO_T}yes" >&6
7501 else
7502 echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6
7504 fi
7505
7506
7507 enablestring=
7508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7509echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7510 no_cache=0
7511 # Check whether --enable-caret or --disable-caret was given.
7512if test "${enable_caret+set}" = set; then
7513 enableval="$enable_caret"
7514
7515 if test "$enableval" = yes; then
7516 ac_cv_use_caret='wxUSE_CARET=yes'
7517 else
7518 ac_cv_use_caret='wxUSE_CARET=no'
7519 fi
7520
7521else
7522
7523 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7524 if test "x$LINE" != x ; then
7525 eval "DEFAULT_$LINE"
7526 else
7527 no_cache=1
7528 fi
7529
7530 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7531
7532fi;
7533
7534 eval "$ac_cv_use_caret"
7535 if test "$no_cache" != 1; then
7536 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7537 fi
7538
7539 if test "$wxUSE_CARET" = yes; then
7540 echo "$as_me:$LINENO: result: yes" >&5
7541echo "${ECHO_T}yes" >&6
7542 else
7543 echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6
7545 fi
7546
7547
7548 enablestring=
7549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7550echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7551 no_cache=0
7552 # Check whether --enable-checkbox or --disable-checkbox was given.
7553if test "${enable_checkbox+set}" = set; then
7554 enableval="$enable_checkbox"
7555
7556 if test "$enableval" = yes; then
7557 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7558 else
7559 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7560 fi
7561
7562else
7563
7564 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7565 if test "x$LINE" != x ; then
7566 eval "DEFAULT_$LINE"
7567 else
7568 no_cache=1
7569 fi
7570
7571 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7572
7573fi;
7574
7575 eval "$ac_cv_use_checkbox"
7576 if test "$no_cache" != 1; then
7577 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7578 fi
7579
7580 if test "$wxUSE_CHECKBOX" = yes; then
7581 echo "$as_me:$LINENO: result: yes" >&5
7582echo "${ECHO_T}yes" >&6
7583 else
7584 echo "$as_me:$LINENO: result: no" >&5
7585echo "${ECHO_T}no" >&6
7586 fi
7587
7588
7589 enablestring=
7590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7591echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7592 no_cache=0
7593 # Check whether --enable-checklst or --disable-checklst was given.
7594if test "${enable_checklst+set}" = set; then
7595 enableval="$enable_checklst"
7596
7597 if test "$enableval" = yes; then
7598 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7599 else
7600 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7601 fi
7602
7603else
7604
7605 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7606 if test "x$LINE" != x ; then
7607 eval "DEFAULT_$LINE"
7608 else
7609 no_cache=1
7610 fi
7611
7612 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7613
7614fi;
7615
7616 eval "$ac_cv_use_checklst"
7617 if test "$no_cache" != 1; then
7618 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7619 fi
7620
7621 if test "$wxUSE_CHECKLST" = yes; then
7622 echo "$as_me:$LINENO: result: yes" >&5
7623echo "${ECHO_T}yes" >&6
7624 else
7625 echo "$as_me:$LINENO: result: no" >&5
7626echo "${ECHO_T}no" >&6
7627 fi
7628
7629
7630 enablestring=
7631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7632echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7633 no_cache=0
7634 # Check whether --enable-choice or --disable-choice was given.
7635if test "${enable_choice+set}" = set; then
7636 enableval="$enable_choice"
7637
7638 if test "$enableval" = yes; then
7639 ac_cv_use_choice='wxUSE_CHOICE=yes'
7640 else
7641 ac_cv_use_choice='wxUSE_CHOICE=no'
7642 fi
7643
7644else
7645
7646 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7647 if test "x$LINE" != x ; then
7648 eval "DEFAULT_$LINE"
7649 else
7650 no_cache=1
7651 fi
7652
7653 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7654
7655fi;
7656
7657 eval "$ac_cv_use_choice"
7658 if test "$no_cache" != 1; then
7659 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7660 fi
7661
7662 if test "$wxUSE_CHOICE" = yes; then
7663 echo "$as_me:$LINENO: result: yes" >&5
7664echo "${ECHO_T}yes" >&6
7665 else
7666 echo "$as_me:$LINENO: result: no" >&5
7667echo "${ECHO_T}no" >&6
7668 fi
7669
7670
92bbdbcd
WS
7671 enablestring=
7672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7673echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7674 no_cache=0
7675 # Check whether --enable-choicebook or --disable-choicebook was given.
7676if test "${enable_choicebook+set}" = set; then
7677 enableval="$enable_choicebook"
7678
7679 if test "$enableval" = yes; then
7680 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7681 else
7682 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7683 fi
7684
7685else
7686
7687 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7688 if test "x$LINE" != x ; then
7689 eval "DEFAULT_$LINE"
7690 else
7691 no_cache=1
7692 fi
7693
7694 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7695
7696fi;
7697
7698 eval "$ac_cv_use_choicebook"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_CHOICEBOOK" = yes; then
7704 echo "$as_me:$LINENO: result: yes" >&5
7705echo "${ECHO_T}yes" >&6
7706 else
7707 echo "$as_me:$LINENO: result: no" >&5
7708echo "${ECHO_T}no" >&6
7709 fi
7710
7711
a848cd7e
SC
7712 enablestring=
7713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7714echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7715 no_cache=0
7716 # Check whether --enable-combobox or --disable-combobox was given.
7717if test "${enable_combobox+set}" = set; then
7718 enableval="$enable_combobox"
7719
7720 if test "$enableval" = yes; then
7721 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7722 else
7723 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7724 fi
7725
7726else
7727
7728 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7729 if test "x$LINE" != x ; then
7730 eval "DEFAULT_$LINE"
7731 else
7732 no_cache=1
7733 fi
7734
7735 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7736
7737fi;
7738
7739 eval "$ac_cv_use_combobox"
7740 if test "$no_cache" != 1; then
7741 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7742 fi
7743
7744 if test "$wxUSE_COMBOBOX" = yes; then
7745 echo "$as_me:$LINENO: result: yes" >&5
7746echo "${ECHO_T}yes" >&6
7747 else
7748 echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6
7750 fi
7751
7752
da98e9be
VZ
7753 enablestring=
7754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7755echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7756 no_cache=0
7757 # Check whether --enable-datepick or --disable-datepick was given.
7758if test "${enable_datepick+set}" = set; then
7759 enableval="$enable_datepick"
7760
7761 if test "$enableval" = yes; then
7762 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7763 else
7764 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7765 fi
7766
7767else
7768
7769 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7770 if test "x$LINE" != x ; then
7771 eval "DEFAULT_$LINE"
7772 else
7773 no_cache=1
7774 fi
7775
7776 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7777
7778fi;
7779
7780 eval "$ac_cv_use_datepick"
7781 if test "$no_cache" != 1; then
7782 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7783 fi
7784
7785 if test "$wxUSE_DATEPICKCTRL" = yes; then
7786 echo "$as_me:$LINENO: result: yes" >&5
7787echo "${ECHO_T}yes" >&6
7788 else
7789 echo "$as_me:$LINENO: result: no" >&5
7790echo "${ECHO_T}no" >&6
7791 fi
7792
7793
a848cd7e
SC
7794 enablestring=
7795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7796echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7797 no_cache=0
7798 # Check whether --enable-display or --disable-display was given.
7799if test "${enable_display+set}" = set; then
7800 enableval="$enable_display"
7801
7802 if test "$enableval" = yes; then
7803 ac_cv_use_display='wxUSE_DISPLAY=yes'
7804 else
7805 ac_cv_use_display='wxUSE_DISPLAY=no'
7806 fi
7807
7808else
7809
7810 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7811 if test "x$LINE" != x ; then
7812 eval "DEFAULT_$LINE"
7813 else
7814 no_cache=1
7815 fi
7816
7817 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7818
7819fi;
7820
7821 eval "$ac_cv_use_display"
7822 if test "$no_cache" != 1; then
7823 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7824 fi
7825
7826 if test "$wxUSE_DISPLAY" = yes; then
7827 echo "$as_me:$LINENO: result: yes" >&5
7828echo "${ECHO_T}yes" >&6
7829 else
7830 echo "$as_me:$LINENO: result: no" >&5
7831echo "${ECHO_T}no" >&6
7832 fi
7833
7834
7835 enablestring=
7836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7837echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7838 no_cache=0
7839 # Check whether --enable-gauge or --disable-gauge was given.
7840if test "${enable_gauge+set}" = set; then
7841 enableval="$enable_gauge"
7842
7843 if test "$enableval" = yes; then
7844 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7845 else
7846 ac_cv_use_gauge='wxUSE_GAUGE=no'
7847 fi
7848
7849else
7850
7851 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7852 if test "x$LINE" != x ; then
7853 eval "DEFAULT_$LINE"
7854 else
7855 no_cache=1
7856 fi
7857
7858 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7859
7860fi;
7861
7862 eval "$ac_cv_use_gauge"
7863 if test "$no_cache" != 1; then
7864 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7865 fi
7866
7867 if test "$wxUSE_GAUGE" = yes; then
7868 echo "$as_me:$LINENO: result: yes" >&5
7869echo "${ECHO_T}yes" >&6
7870 else
7871 echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
7873 fi
7874
7875
7876 enablestring=
7877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7878echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7879 no_cache=0
7880 # Check whether --enable-grid or --disable-grid was given.
7881if test "${enable_grid+set}" = set; then
7882 enableval="$enable_grid"
7883
7884 if test "$enableval" = yes; then
7885 ac_cv_use_grid='wxUSE_GRID=yes'
7886 else
7887 ac_cv_use_grid='wxUSE_GRID=no'
7888 fi
7889
7890else
7891
7892 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7893 if test "x$LINE" != x ; then
7894 eval "DEFAULT_$LINE"
7895 else
7896 no_cache=1
7897 fi
7898
7899 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7900
7901fi;
7902
7903 eval "$ac_cv_use_grid"
7904 if test "$no_cache" != 1; then
7905 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7906 fi
7907
7908 if test "$wxUSE_GRID" = yes; then
7909 echo "$as_me:$LINENO: result: yes" >&5
7910echo "${ECHO_T}yes" >&6
7911 else
7912 echo "$as_me:$LINENO: result: no" >&5
7913echo "${ECHO_T}no" >&6
7914 fi
7915
7916
7917 enablestring=
7918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7919echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7920 no_cache=0
7921 # Check whether --enable-imaglist or --disable-imaglist was given.
7922if test "${enable_imaglist+set}" = set; then
7923 enableval="$enable_imaglist"
7924
7925 if test "$enableval" = yes; then
7926 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7927 else
7928 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7929 fi
7930
7931else
7932
7933 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7934 if test "x$LINE" != x ; then
7935 eval "DEFAULT_$LINE"
7936 else
7937 no_cache=1
7938 fi
7939
7940 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7941
7942fi;
7943
7944 eval "$ac_cv_use_imaglist"
7945 if test "$no_cache" != 1; then
7946 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7947 fi
7948
7949 if test "$wxUSE_IMAGLIST" = yes; then
7950 echo "$as_me:$LINENO: result: yes" >&5
7951echo "${ECHO_T}yes" >&6
7952 else
7953 echo "$as_me:$LINENO: result: no" >&5
7954echo "${ECHO_T}no" >&6
7955 fi
7956
7957
7958 enablestring=
7959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7960echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7961 no_cache=0
7962 # Check whether --enable-listbook or --disable-listbook was given.
7963if test "${enable_listbook+set}" = set; then
7964 enableval="$enable_listbook"
7965
7966 if test "$enableval" = yes; then
7967 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7968 else
7969 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7970 fi
7971
7972else
7973
7974 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7975 if test "x$LINE" != x ; then
7976 eval "DEFAULT_$LINE"
7977 else
7978 no_cache=1
7979 fi
7980
7981 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7982
7983fi;
7984
7985 eval "$ac_cv_use_listbook"
7986 if test "$no_cache" != 1; then
7987 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7988 fi
7989
7990 if test "$wxUSE_LISTBOOK" = yes; then
7991 echo "$as_me:$LINENO: result: yes" >&5
7992echo "${ECHO_T}yes" >&6
7993 else
7994 echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6
7996 fi
7997
7998
7999 enablestring=
8000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8001echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8002 no_cache=0
8003 # Check whether --enable-listbox or --disable-listbox was given.
8004if test "${enable_listbox+set}" = set; then
8005 enableval="$enable_listbox"
8006
8007 if test "$enableval" = yes; then
8008 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8009 else
8010 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8011 fi
8012
8013else
8014
8015 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8016 if test "x$LINE" != x ; then
8017 eval "DEFAULT_$LINE"
8018 else
8019 no_cache=1
8020 fi
8021
8022 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8023
8024fi;
8025
8026 eval "$ac_cv_use_listbox"
8027 if test "$no_cache" != 1; then
8028 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8029 fi
8030
8031 if test "$wxUSE_LISTBOX" = yes; then
8032 echo "$as_me:$LINENO: result: yes" >&5
8033echo "${ECHO_T}yes" >&6
8034 else
8035 echo "$as_me:$LINENO: result: no" >&5
8036echo "${ECHO_T}no" >&6
8037 fi
8038
8039
8040 enablestring=
8041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8042echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8043 no_cache=0
8044 # Check whether --enable-listctrl or --disable-listctrl was given.
8045if test "${enable_listctrl+set}" = set; then
8046 enableval="$enable_listctrl"
8047
8048 if test "$enableval" = yes; then
8049 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8050 else
8051 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8052 fi
8053
8054else
8055
8056 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8057 if test "x$LINE" != x ; then
8058 eval "DEFAULT_$LINE"
8059 else
8060 no_cache=1
8061 fi
8062
8063 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8064
8065fi;
8066
8067 eval "$ac_cv_use_listctrl"
8068 if test "$no_cache" != 1; then
8069 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8070 fi
8071
8072 if test "$wxUSE_LISTCTRL" = yes; then
8073 echo "$as_me:$LINENO: result: yes" >&5
8074echo "${ECHO_T}yes" >&6
8075 else
8076 echo "$as_me:$LINENO: result: no" >&5
8077echo "${ECHO_T}no" >&6
8078 fi
8079
8080
8081 enablestring=
8082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8083echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8084 no_cache=0
8085 # Check whether --enable-notebook or --disable-notebook was given.
8086if test "${enable_notebook+set}" = set; then
8087 enableval="$enable_notebook"
8088
8089 if test "$enableval" = yes; then
8090 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8091 else
8092 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8093 fi
8094
8095else
8096
8097 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8098 if test "x$LINE" != x ; then
8099 eval "DEFAULT_$LINE"
8100 else
8101 no_cache=1
8102 fi
8103
8104 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8105
8106fi;
8107
8108 eval "$ac_cv_use_notebook"
8109 if test "$no_cache" != 1; then
8110 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8111 fi
8112
8113 if test "$wxUSE_NOTEBOOK" = yes; then
8114 echo "$as_me:$LINENO: result: yes" >&5
8115echo "${ECHO_T}yes" >&6
8116 else
8117 echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6
8119 fi
8120
8121
8122 enablestring=
8123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8124echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8125 no_cache=0
8126 # Check whether --enable-radiobox or --disable-radiobox was given.
8127if test "${enable_radiobox+set}" = set; then
8128 enableval="$enable_radiobox"
8129
8130 if test "$enableval" = yes; then
8131 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8132 else
8133 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8134 fi
8135
8136else
8137
8138 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8139 if test "x$LINE" != x ; then
8140 eval "DEFAULT_$LINE"
8141 else
8142 no_cache=1
8143 fi
8144
8145 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8146
8147fi;
8148
8149 eval "$ac_cv_use_radiobox"
8150 if test "$no_cache" != 1; then
8151 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8152 fi
8153
8154 if test "$wxUSE_RADIOBOX" = yes; then
8155 echo "$as_me:$LINENO: result: yes" >&5
8156echo "${ECHO_T}yes" >&6
8157 else
8158 echo "$as_me:$LINENO: result: no" >&5
8159echo "${ECHO_T}no" >&6
8160 fi
8161
8162
8163 enablestring=
8164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8165echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8166 no_cache=0
8167 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8168if test "${enable_radiobtn+set}" = set; then
8169 enableval="$enable_radiobtn"
8170
8171 if test "$enableval" = yes; then
8172 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8173 else
8174 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8175 fi
8176
8177else
8178
8179 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8180 if test "x$LINE" != x ; then
8181 eval "DEFAULT_$LINE"
8182 else
8183 no_cache=1
8184 fi
8185
8186 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8187
8188fi;
8189
8190 eval "$ac_cv_use_radiobtn"
8191 if test "$no_cache" != 1; then
8192 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8193 fi
8194
8195 if test "$wxUSE_RADIOBTN" = yes; then
8196 echo "$as_me:$LINENO: result: yes" >&5
8197echo "${ECHO_T}yes" >&6
8198 else
8199 echo "$as_me:$LINENO: result: no" >&5
8200echo "${ECHO_T}no" >&6
8201 fi
8202
8203
8204 enablestring=
8205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8206echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8207 no_cache=0
8208 # Check whether --enable-sash or --disable-sash was given.
8209if test "${enable_sash+set}" = set; then
8210 enableval="$enable_sash"
8211
8212 if test "$enableval" = yes; then
8213 ac_cv_use_sash='wxUSE_SASH=yes'
8214 else
8215 ac_cv_use_sash='wxUSE_SASH=no'
8216 fi
8217
8218else
8219
8220 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8221 if test "x$LINE" != x ; then
8222 eval "DEFAULT_$LINE"
8223 else
8224 no_cache=1
8225 fi
8226
8227 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8228
8229fi;
8230
8231 eval "$ac_cv_use_sash"
8232 if test "$no_cache" != 1; then
8233 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8234 fi
8235
8236 if test "$wxUSE_SASH" = yes; then
8237 echo "$as_me:$LINENO: result: yes" >&5
8238echo "${ECHO_T}yes" >&6
8239 else
8240 echo "$as_me:$LINENO: result: no" >&5
8241echo "${ECHO_T}no" >&6
8242 fi
8243
8244
8245 enablestring=
8246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8247echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8248 no_cache=0
8249 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8250if test "${enable_scrollbar+set}" = set; then
8251 enableval="$enable_scrollbar"
8252
8253 if test "$enableval" = yes; then
8254 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8255 else
8256 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8257 fi
8258
8259else
8260
8261 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8262 if test "x$LINE" != x ; then
8263 eval "DEFAULT_$LINE"
8264 else
8265 no_cache=1
8266 fi
8267
8268 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8269
8270fi;
8271
8272 eval "$ac_cv_use_scrollbar"
8273 if test "$no_cache" != 1; then
8274 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8275 fi
8276
8277 if test "$wxUSE_SCROLLBAR" = yes; then
8278 echo "$as_me:$LINENO: result: yes" >&5
8279echo "${ECHO_T}yes" >&6
8280 else
8281 echo "$as_me:$LINENO: result: no" >&5
8282echo "${ECHO_T}no" >&6
8283 fi
8284
8285
8286 enablestring=
8287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8288echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8289 no_cache=0
8290 # Check whether --enable-slider or --disable-slider was given.
8291if test "${enable_slider+set}" = set; then
8292 enableval="$enable_slider"
8293
8294 if test "$enableval" = yes; then
8295 ac_cv_use_slider='wxUSE_SLIDER=yes'
8296 else
8297 ac_cv_use_slider='wxUSE_SLIDER=no'
8298 fi
8299
8300else
8301
8302 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8303 if test "x$LINE" != x ; then
8304 eval "DEFAULT_$LINE"
8305 else
8306 no_cache=1
8307 fi
8308
8309 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8310
8311fi;
8312
8313 eval "$ac_cv_use_slider"
8314 if test "$no_cache" != 1; then
8315 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8316 fi
8317
8318 if test "$wxUSE_SLIDER" = yes; then
8319 echo "$as_me:$LINENO: result: yes" >&5
8320echo "${ECHO_T}yes" >&6
8321 else
8322 echo "$as_me:$LINENO: result: no" >&5
8323echo "${ECHO_T}no" >&6
8324 fi
8325
8326
8327 enablestring=
8328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8329echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8330 no_cache=0
8331 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8332if test "${enable_spinbtn+set}" = set; then
8333 enableval="$enable_spinbtn"
8334
8335 if test "$enableval" = yes; then
8336 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8337 else
8338 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8339 fi
8340
8341else
8342
8343 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8344 if test "x$LINE" != x ; then
8345 eval "DEFAULT_$LINE"
8346 else
8347 no_cache=1
8348 fi
8349
8350 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8351
8352fi;
8353
8354 eval "$ac_cv_use_spinbtn"
8355 if test "$no_cache" != 1; then
8356 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8357 fi
8358
8359 if test "$wxUSE_SPINBTN" = yes; then
8360 echo "$as_me:$LINENO: result: yes" >&5
8361echo "${ECHO_T}yes" >&6
8362 else
8363 echo "$as_me:$LINENO: result: no" >&5
8364echo "${ECHO_T}no" >&6
8365 fi
8366
8367
8368 enablestring=
8369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8370echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8371 no_cache=0
8372 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8373if test "${enable_spinctrl+set}" = set; then
8374 enableval="$enable_spinctrl"
8375
8376 if test "$enableval" = yes; then
8377 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8378 else
8379 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8380 fi
8381
8382else
8383
8384 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8385 if test "x$LINE" != x ; then
8386 eval "DEFAULT_$LINE"
8387 else
8388 no_cache=1
8389 fi
8390
8391 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8392
8393fi;
8394
8395 eval "$ac_cv_use_spinctrl"
8396 if test "$no_cache" != 1; then
8397 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8398 fi
8399
8400 if test "$wxUSE_SPINCTRL" = yes; then
8401 echo "$as_me:$LINENO: result: yes" >&5
8402echo "${ECHO_T}yes" >&6
8403 else
8404 echo "$as_me:$LINENO: result: no" >&5
8405echo "${ECHO_T}no" >&6
8406 fi
8407
8408
8409 enablestring=
8410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8411echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8412 no_cache=0
8413 # Check whether --enable-splitter or --disable-splitter was given.
8414if test "${enable_splitter+set}" = set; then
8415 enableval="$enable_splitter"
8416
8417 if test "$enableval" = yes; then
8418 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8419 else
8420 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8421 fi
8422
8423else
8424
8425 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8426 if test "x$LINE" != x ; then
8427 eval "DEFAULT_$LINE"
8428 else
8429 no_cache=1
8430 fi
8431
8432 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8433
8434fi;
8435
8436 eval "$ac_cv_use_splitter"
8437 if test "$no_cache" != 1; then
8438 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8439 fi
8440
8441 if test "$wxUSE_SPLITTER" = yes; then
8442 echo "$as_me:$LINENO: result: yes" >&5
8443echo "${ECHO_T}yes" >&6
8444 else
8445 echo "$as_me:$LINENO: result: no" >&5
8446echo "${ECHO_T}no" >&6
8447 fi
8448
8449
8450 enablestring=
8451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8452echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8453 no_cache=0
8454 # Check whether --enable-statbmp or --disable-statbmp was given.
8455if test "${enable_statbmp+set}" = set; then
8456 enableval="$enable_statbmp"
8457
8458 if test "$enableval" = yes; then
8459 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8460 else
8461 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8462 fi
8463
8464else
8465
8466 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8467 if test "x$LINE" != x ; then
8468 eval "DEFAULT_$LINE"
8469 else
8470 no_cache=1
8471 fi
8472
8473 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8474
8475fi;
8476
8477 eval "$ac_cv_use_statbmp"
8478 if test "$no_cache" != 1; then
8479 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8480 fi
8481
8482 if test "$wxUSE_STATBMP" = yes; then
8483 echo "$as_me:$LINENO: result: yes" >&5
8484echo "${ECHO_T}yes" >&6
8485 else
8486 echo "$as_me:$LINENO: result: no" >&5
8487echo "${ECHO_T}no" >&6
8488 fi
8489
8490
8491 enablestring=
8492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8493echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8494 no_cache=0
8495 # Check whether --enable-statbox or --disable-statbox was given.
8496if test "${enable_statbox+set}" = set; then
8497 enableval="$enable_statbox"
8498
8499 if test "$enableval" = yes; then
8500 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8501 else
8502 ac_cv_use_statbox='wxUSE_STATBOX=no'
8503 fi
8504
8505else
8506
8507 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8508 if test "x$LINE" != x ; then
8509 eval "DEFAULT_$LINE"
8510 else
8511 no_cache=1
8512 fi
8513
8514 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8515
8516fi;
8517
8518 eval "$ac_cv_use_statbox"
8519 if test "$no_cache" != 1; then
8520 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8521 fi
8522
8523 if test "$wxUSE_STATBOX" = yes; then
8524 echo "$as_me:$LINENO: result: yes" >&5
8525echo "${ECHO_T}yes" >&6
8526 else
8527 echo "$as_me:$LINENO: result: no" >&5
8528echo "${ECHO_T}no" >&6
8529 fi
8530
8531
8532 enablestring=
8533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8534echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8535 no_cache=0
8536 # Check whether --enable-statline or --disable-statline was given.
8537if test "${enable_statline+set}" = set; then
8538 enableval="$enable_statline"
8539
8540 if test "$enableval" = yes; then
8541 ac_cv_use_statline='wxUSE_STATLINE=yes'
8542 else
8543 ac_cv_use_statline='wxUSE_STATLINE=no'
8544 fi
8545
8546else
8547
8548 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8549 if test "x$LINE" != x ; then
8550 eval "DEFAULT_$LINE"
8551 else
8552 no_cache=1
8553 fi
8554
8555 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8556
8557fi;
8558
8559 eval "$ac_cv_use_statline"
8560 if test "$no_cache" != 1; then
8561 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8562 fi
8563
8564 if test "$wxUSE_STATLINE" = yes; then
8565 echo "$as_me:$LINENO: result: yes" >&5
8566echo "${ECHO_T}yes" >&6
8567 else
8568 echo "$as_me:$LINENO: result: no" >&5
8569echo "${ECHO_T}no" >&6
8570 fi
8571
8572
8573 enablestring=
8574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8575echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8576 no_cache=0
8577 # Check whether --enable-stattext or --disable-stattext was given.
8578if test "${enable_stattext+set}" = set; then
8579 enableval="$enable_stattext"
8580
8581 if test "$enableval" = yes; then
8582 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8583 else
8584 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8585 fi
8586
8587else
8588
8589 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8590 if test "x$LINE" != x ; then
8591 eval "DEFAULT_$LINE"
8592 else
8593 no_cache=1
8594 fi
8595
8596 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8597
8598fi;
8599
8600 eval "$ac_cv_use_stattext"
8601 if test "$no_cache" != 1; then
8602 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8603 fi
8604
8605 if test "$wxUSE_STATTEXT" = yes; then
8606 echo "$as_me:$LINENO: result: yes" >&5
8607echo "${ECHO_T}yes" >&6
8608 else
8609 echo "$as_me:$LINENO: result: no" >&5
8610echo "${ECHO_T}no" >&6
8611 fi
8612
8613
8614 enablestring=
8615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8616echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8617 no_cache=0
8618 # Check whether --enable-statusbar or --disable-statusbar was given.
8619if test "${enable_statusbar+set}" = set; then
8620 enableval="$enable_statusbar"
8621
8622 if test "$enableval" = yes; then
8623 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8624 else
8625 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8626 fi
8627
8628else
8629
8630 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8631 if test "x$LINE" != x ; then
8632 eval "DEFAULT_$LINE"
8633 else
8634 no_cache=1
8635 fi
8636
8637 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8638
8639fi;
8640
8641 eval "$ac_cv_use_statusbar"
8642 if test "$no_cache" != 1; then
8643 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8644 fi
8645
8646 if test "$wxUSE_STATUSBAR" = yes; then
8647 echo "$as_me:$LINENO: result: yes" >&5
8648echo "${ECHO_T}yes" >&6
8649 else
8650 echo "$as_me:$LINENO: result: no" >&5
8651echo "${ECHO_T}no" >&6
8652 fi
8653
8654
8655 enablestring=
8656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8657echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8658 no_cache=0
8659 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8660if test "${enable_tabdialog+set}" = set; then
8661 enableval="$enable_tabdialog"
8662
8663 if test "$enableval" = yes; then
8664 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8665 else
8666 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8667 fi
8668
8669else
8670
8671 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8672 if test "x$LINE" != x ; then
8673 eval "DEFAULT_$LINE"
8674 else
8675 no_cache=1
8676 fi
8677
8678 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8679
8680fi;
8681
8682 eval "$ac_cv_use_tabdialog"
8683 if test "$no_cache" != 1; then
8684 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8685 fi
8686
8687 if test "$wxUSE_TABDIALOG" = yes; then
8688 echo "$as_me:$LINENO: result: yes" >&5
8689echo "${ECHO_T}yes" >&6
8690 else
8691 echo "$as_me:$LINENO: result: no" >&5
8692echo "${ECHO_T}no" >&6
8693 fi
8694
8695
8696 enablestring=
8697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8698echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8699 no_cache=0
8700 # Check whether --enable-textctrl or --disable-textctrl was given.
8701if test "${enable_textctrl+set}" = set; then
8702 enableval="$enable_textctrl"
8703
8704 if test "$enableval" = yes; then
8705 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8706 else
8707 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8708 fi
8709
8710else
8711
8712 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8713 if test "x$LINE" != x ; then
8714 eval "DEFAULT_$LINE"
8715 else
8716 no_cache=1
8717 fi
8718
8719 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8720
8721fi;
8722
8723 eval "$ac_cv_use_textctrl"
8724 if test "$no_cache" != 1; then
8725 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8726 fi
8727
8728 if test "$wxUSE_TEXTCTRL" = yes; then
8729 echo "$as_me:$LINENO: result: yes" >&5
8730echo "${ECHO_T}yes" >&6
8731 else
8732 echo "$as_me:$LINENO: result: no" >&5
8733echo "${ECHO_T}no" >&6
8734 fi
8735
8736
8737 enablestring=
8738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8739echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8740 no_cache=0
8741 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8742if test "${enable_togglebtn+set}" = set; then
8743 enableval="$enable_togglebtn"
8744
8745 if test "$enableval" = yes; then
8746 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8747 else
8748 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8749 fi
8750
8751else
8752
8753 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8754 if test "x$LINE" != x ; then
8755 eval "DEFAULT_$LINE"
8756 else
8757 no_cache=1
8758 fi
8759
8760 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8761
8762fi;
8763
8764 eval "$ac_cv_use_togglebtn"
8765 if test "$no_cache" != 1; then
8766 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8767 fi
8768
8769 if test "$wxUSE_TOGGLEBTN" = yes; then
8770 echo "$as_me:$LINENO: result: yes" >&5
8771echo "${ECHO_T}yes" >&6
8772 else
8773 echo "$as_me:$LINENO: result: no" >&5
8774echo "${ECHO_T}no" >&6
8775 fi
8776
8777
8778 enablestring=
8779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8780echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8781 no_cache=0
8782 # Check whether --enable-toolbar or --disable-toolbar was given.
8783if test "${enable_toolbar+set}" = set; then
8784 enableval="$enable_toolbar"
8785
8786 if test "$enableval" = yes; then
8787 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8788 else
8789 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8790 fi
8791
8792else
8793
8794 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8795 if test "x$LINE" != x ; then
8796 eval "DEFAULT_$LINE"
8797 else
8798 no_cache=1
8799 fi
8800
8801 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8802
8803fi;
8804
8805 eval "$ac_cv_use_toolbar"
8806 if test "$no_cache" != 1; then
8807 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8808 fi
8809
8810 if test "$wxUSE_TOOLBAR" = yes; then
8811 echo "$as_me:$LINENO: result: yes" >&5
8812echo "${ECHO_T}yes" >&6
8813 else
8814 echo "$as_me:$LINENO: result: no" >&5
8815echo "${ECHO_T}no" >&6
8816 fi
8817
8818
8819 enablestring=
8820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8821echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8822 no_cache=0
8823 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8824if test "${enable_tbarnative+set}" = set; then
8825 enableval="$enable_tbarnative"
8826
8827 if test "$enableval" = yes; then
8828 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8829 else
8830 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8831 fi
8832
8833else
8834
8835 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8836 if test "x$LINE" != x ; then
8837 eval "DEFAULT_$LINE"
8838 else
8839 no_cache=1
8840 fi
8841
8842 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8843
8844fi;
8845
8846 eval "$ac_cv_use_tbarnative"
8847 if test "$no_cache" != 1; then
8848 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8849 fi
8850
8851 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8852 echo "$as_me:$LINENO: result: yes" >&5
8853echo "${ECHO_T}yes" >&6
8854 else
8855 echo "$as_me:$LINENO: result: no" >&5
8856echo "${ECHO_T}no" >&6
8857 fi
8858
8859
8860 enablestring=
8861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8862echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8863 no_cache=0
8864 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8865if test "${enable_tbarsmpl+set}" = set; then
8866 enableval="$enable_tbarsmpl"
8867
8868 if test "$enableval" = yes; then
8869 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8870 else
8871 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8872 fi
8873
8874else
8875
8876 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8877 if test "x$LINE" != x ; then
8878 eval "DEFAULT_$LINE"
8879 else
8880 no_cache=1
8881 fi
8882
8883 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8884
8885fi;
8886
8887 eval "$ac_cv_use_tbarsmpl"
8888 if test "$no_cache" != 1; then
8889 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8890 fi
8891
8892 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8893 echo "$as_me:$LINENO: result: yes" >&5
8894echo "${ECHO_T}yes" >&6
8895 else
8896 echo "$as_me:$LINENO: result: no" >&5
8897echo "${ECHO_T}no" >&6
8898 fi
8899
8900
8901 enablestring=
8902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8903echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8904 no_cache=0
8905 # Check whether --enable-treectrl or --disable-treectrl was given.
8906if test "${enable_treectrl+set}" = set; then
8907 enableval="$enable_treectrl"
8908
8909 if test "$enableval" = yes; then
8910 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8911 else
8912 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8913 fi
8914
8915else
8916
8917 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8918 if test "x$LINE" != x ; then
8919 eval "DEFAULT_$LINE"
8920 else
8921 no_cache=1
8922 fi
8923
8924 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8925
8926fi;
8927
8928 eval "$ac_cv_use_treectrl"
8929 if test "$no_cache" != 1; then
8930 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8931 fi
8932
8933 if test "$wxUSE_TREECTRL" = yes; then
8934 echo "$as_me:$LINENO: result: yes" >&5
8935echo "${ECHO_T}yes" >&6
8936 else
8937 echo "$as_me:$LINENO: result: no" >&5
8938echo "${ECHO_T}no" >&6
8939 fi
8940
8941
8942 enablestring=
8943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8944echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8945 no_cache=0
8946 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8947if test "${enable_tipwindow+set}" = set; then
8948 enableval="$enable_tipwindow"
8949
8950 if test "$enableval" = yes; then
8951 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8952 else
8953 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8954 fi
8955
8956else
8957
8958 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8959 if test "x$LINE" != x ; then
8960 eval "DEFAULT_$LINE"
8961 else
8962 no_cache=1
8963 fi
8964
8965 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8966
8967fi;
8968
8969 eval "$ac_cv_use_tipwindow"
8970 if test "$no_cache" != 1; then
8971 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8972 fi
8973
8974 if test "$wxUSE_TIPWINDOW" = yes; then
8975 echo "$as_me:$LINENO: result: yes" >&5
8976echo "${ECHO_T}yes" >&6
8977 else
8978 echo "$as_me:$LINENO: result: no" >&5
8979echo "${ECHO_T}no" >&6
8980 fi
8981
8982
8983 enablestring=
8984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8985echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8986 no_cache=0
8987 # Check whether --enable-popupwin or --disable-popupwin was given.
8988if test "${enable_popupwin+set}" = set; then
8989 enableval="$enable_popupwin"
8990
8991 if test "$enableval" = yes; then
8992 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8993 else
8994 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8995 fi
8996
8997else
8998
8999 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9000 if test "x$LINE" != x ; then
9001 eval "DEFAULT_$LINE"
9002 else
9003 no_cache=1
9004 fi
9005
9006 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9007
9008fi;
9009
9010 eval "$ac_cv_use_popupwin"
9011 if test "$no_cache" != 1; then
9012 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9013 fi
9014
9015 if test "$wxUSE_POPUPWIN" = yes; then
9016 echo "$as_me:$LINENO: result: yes" >&5
9017echo "${ECHO_T}yes" >&6
9018 else
9019 echo "$as_me:$LINENO: result: no" >&5
9020echo "${ECHO_T}no" >&6
9021 fi
9022
9023
9024
9025
9026 enablestring=
9027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9028echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9029 no_cache=0
9030 # Check whether --enable-commondlg or --disable-commondlg was given.
9031if test "${enable_commondlg+set}" = set; then
9032 enableval="$enable_commondlg"
9033
9034 if test "$enableval" = yes; then
9035 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9036 else
9037 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9038 fi
9039
9040else
9041
9042 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9043 if test "x$LINE" != x ; then
9044 eval "DEFAULT_$LINE"
9045 else
9046 no_cache=1
9047 fi
9048
9049 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9050
9051fi;
9052
9053 eval "$ac_cv_use_commondlg"
9054 if test "$no_cache" != 1; then
9055 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9056 fi
9057
9058 if test "$wxUSE_COMMONDLGS" = yes; then
9059 echo "$as_me:$LINENO: result: yes" >&5
9060echo "${ECHO_T}yes" >&6
9061 else
9062 echo "$as_me:$LINENO: result: no" >&5
9063echo "${ECHO_T}no" >&6
9064 fi
9065
9066
9067 enablestring=
9068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9069echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9070 no_cache=0
9071 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9072if test "${enable_choicedlg+set}" = set; then
9073 enableval="$enable_choicedlg"
9074
9075 if test "$enableval" = yes; then
9076 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9077 else
9078 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9079 fi
9080
9081else
9082
9083 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9084 if test "x$LINE" != x ; then
9085 eval "DEFAULT_$LINE"
9086 else
9087 no_cache=1
9088 fi
9089
9090 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9091
9092fi;
9093
9094 eval "$ac_cv_use_choicedlg"
9095 if test "$no_cache" != 1; then
9096 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9097 fi
9098
9099 if test "$wxUSE_CHOICEDLG" = yes; then
9100 echo "$as_me:$LINENO: result: yes" >&5
9101echo "${ECHO_T}yes" >&6
9102 else
9103 echo "$as_me:$LINENO: result: no" >&5
9104echo "${ECHO_T}no" >&6
9105 fi
9106
9107
9108 enablestring=
9109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9110echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9111 no_cache=0
9112 # Check whether --enable-coldlg or --disable-coldlg was given.
9113if test "${enable_coldlg+set}" = set; then
9114 enableval="$enable_coldlg"
9115
9116 if test "$enableval" = yes; then
9117 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9118 else
9119 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9120 fi
9121
9122else
9123
9124 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9125 if test "x$LINE" != x ; then
9126 eval "DEFAULT_$LINE"
9127 else
9128 no_cache=1
9129 fi
9130
9131 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9132
9133fi;
9134
9135 eval "$ac_cv_use_coldlg"
9136 if test "$no_cache" != 1; then
9137 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9138 fi
9139
9140 if test "$wxUSE_COLOURDLG" = yes; then
9141 echo "$as_me:$LINENO: result: yes" >&5
9142echo "${ECHO_T}yes" >&6
9143 else
9144 echo "$as_me:$LINENO: result: no" >&5
9145echo "${ECHO_T}no" >&6
9146 fi
9147
9148
9149 enablestring=
9150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9151echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9152 no_cache=0
9153 # Check whether --enable-filedlg or --disable-filedlg was given.
9154if test "${enable_filedlg+set}" = set; then
9155 enableval="$enable_filedlg"
9156
9157 if test "$enableval" = yes; then
9158 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9159 else
9160 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9161 fi
9162
9163else
9164
9165 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9166 if test "x$LINE" != x ; then
9167 eval "DEFAULT_$LINE"
9168 else
9169 no_cache=1
9170 fi
9171
9172 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9173
9174fi;
9175
9176 eval "$ac_cv_use_filedlg"
9177 if test "$no_cache" != 1; then
9178 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9179 fi
9180
9181 if test "$wxUSE_FILEDLG" = yes; then
9182 echo "$as_me:$LINENO: result: yes" >&5
9183echo "${ECHO_T}yes" >&6
9184 else
9185 echo "$as_me:$LINENO: result: no" >&5
9186echo "${ECHO_T}no" >&6
9187 fi
9188
9189
9190 enablestring=
9191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9192echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9193 no_cache=0
9194 # Check whether --enable-finddlg or --disable-finddlg was given.
9195if test "${enable_finddlg+set}" = set; then
9196 enableval="$enable_finddlg"
9197
9198 if test "$enableval" = yes; then
9199 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9200 else
9201 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9202 fi
9203
9204else
9205
9206 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9207 if test "x$LINE" != x ; then
9208 eval "DEFAULT_$LINE"
9209 else
9210 no_cache=1
9211 fi
9212
9213 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9214
9215fi;
9216
9217 eval "$ac_cv_use_finddlg"
9218 if test "$no_cache" != 1; then
9219 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9220 fi
9221
9222 if test "$wxUSE_FINDREPLDLG" = yes; then
9223 echo "$as_me:$LINENO: result: yes" >&5
9224echo "${ECHO_T}yes" >&6
9225 else
9226 echo "$as_me:$LINENO: result: no" >&5
9227echo "${ECHO_T}no" >&6
9228 fi
9229
9230
9231 enablestring=
9232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9233echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9234 no_cache=0
9235 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9236if test "${enable_fontdlg+set}" = set; then
9237 enableval="$enable_fontdlg"
9238
9239 if test "$enableval" = yes; then
9240 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9241 else
9242 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9243 fi
9244
9245else
9246
9247 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9248 if test "x$LINE" != x ; then
9249 eval "DEFAULT_$LINE"
9250 else
9251 no_cache=1
9252 fi
9253
9254 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9255
9256fi;
9257
9258 eval "$ac_cv_use_fontdlg"
9259 if test "$no_cache" != 1; then
9260 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9261 fi
9262
9263 if test "$wxUSE_FONTDLG" = yes; then
9264 echo "$as_me:$LINENO: result: yes" >&5
9265echo "${ECHO_T}yes" >&6
9266 else
9267 echo "$as_me:$LINENO: result: no" >&5
9268echo "${ECHO_T}no" >&6
9269 fi
9270
9271
9272 enablestring=
9273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9274echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9275 no_cache=0
9276 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9277if test "${enable_dirdlg+set}" = set; then
9278 enableval="$enable_dirdlg"
9279
9280 if test "$enableval" = yes; then
9281 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9282 else
9283 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9284 fi
9285
9286else
9287
9288 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9289 if test "x$LINE" != x ; then
9290 eval "DEFAULT_$LINE"
9291 else
9292 no_cache=1
9293 fi
9294
9295 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9296
9297fi;
9298
9299 eval "$ac_cv_use_dirdlg"
9300 if test "$no_cache" != 1; then
9301 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9302 fi
9303
9304 if test "$wxUSE_DIRDLG" = yes; then
9305 echo "$as_me:$LINENO: result: yes" >&5
9306echo "${ECHO_T}yes" >&6
9307 else
9308 echo "$as_me:$LINENO: result: no" >&5
9309echo "${ECHO_T}no" >&6
9310 fi
9311
9312
9313 enablestring=
9314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9315echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9316 no_cache=0
9317 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9318if test "${enable_msgdlg+set}" = set; then
9319 enableval="$enable_msgdlg"
9320
9321 if test "$enableval" = yes; then
9322 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9323 else
9324 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9325 fi
9326
9327else
9328
9329 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9330 if test "x$LINE" != x ; then
9331 eval "DEFAULT_$LINE"
9332 else
9333 no_cache=1
9334 fi
9335
9336 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9337
9338fi;
9339
9340 eval "$ac_cv_use_msgdlg"
9341 if test "$no_cache" != 1; then
9342 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9343 fi
9344
9345 if test "$wxUSE_MSGDLG" = yes; then
9346 echo "$as_me:$LINENO: result: yes" >&5
9347echo "${ECHO_T}yes" >&6
9348 else
9349 echo "$as_me:$LINENO: result: no" >&5
9350echo "${ECHO_T}no" >&6
9351 fi
9352
9353
9354 enablestring=
9355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9356echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9357 no_cache=0
9358 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9359if test "${enable_numberdlg+set}" = set; then
9360 enableval="$enable_numberdlg"
9361
9362 if test "$enableval" = yes; then
9363 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9364 else
9365 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9366 fi
9367
9368else
9369
9370 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9371 if test "x$LINE" != x ; then
9372 eval "DEFAULT_$LINE"
9373 else
9374 no_cache=1
9375 fi
9376
9377 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9378
9379fi;
9380
9381 eval "$ac_cv_use_numberdlg"
9382 if test "$no_cache" != 1; then
9383 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9384 fi
9385
9386 if test "$wxUSE_NUMBERDLG" = yes; then
9387 echo "$as_me:$LINENO: result: yes" >&5
9388echo "${ECHO_T}yes" >&6
9389 else
9390 echo "$as_me:$LINENO: result: no" >&5
9391echo "${ECHO_T}no" >&6
9392 fi
9393
9394
9395 enablestring=
9396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9397echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9398 no_cache=0
9399 # Check whether --enable-splash or --disable-splash was given.
9400if test "${enable_splash+set}" = set; then
9401 enableval="$enable_splash"
9402
9403 if test "$enableval" = yes; then
9404 ac_cv_use_splash='wxUSE_SPLASH=yes'
9405 else
9406 ac_cv_use_splash='wxUSE_SPLASH=no'
9407 fi
9408
9409else
9410
9411 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9412 if test "x$LINE" != x ; then
9413 eval "DEFAULT_$LINE"
9414 else
9415 no_cache=1
9416 fi
9417
9418 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9419
9420fi;
9421
9422 eval "$ac_cv_use_splash"
9423 if test "$no_cache" != 1; then
9424 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9425 fi
9426
9427 if test "$wxUSE_SPLASH" = yes; then
9428 echo "$as_me:$LINENO: result: yes" >&5
9429echo "${ECHO_T}yes" >&6
9430 else
9431 echo "$as_me:$LINENO: result: no" >&5
9432echo "${ECHO_T}no" >&6
9433 fi
9434
9435
9436 enablestring=
9437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9438echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9439 no_cache=0
9440 # Check whether --enable-textdlg or --disable-textdlg was given.
9441if test "${enable_textdlg+set}" = set; then
9442 enableval="$enable_textdlg"
9443
9444 if test "$enableval" = yes; then
9445 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9446 else
9447 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9448 fi
9449
9450else
9451
9452 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9453 if test "x$LINE" != x ; then
9454 eval "DEFAULT_$LINE"
9455 else
9456 no_cache=1
9457 fi
9458
9459 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9460
9461fi;
9462
9463 eval "$ac_cv_use_textdlg"
9464 if test "$no_cache" != 1; then
9465 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9466 fi
9467
9468 if test "$wxUSE_TEXTDLG" = yes; then
9469 echo "$as_me:$LINENO: result: yes" >&5
9470echo "${ECHO_T}yes" >&6
9471 else
9472 echo "$as_me:$LINENO: result: no" >&5
9473echo "${ECHO_T}no" >&6
9474 fi
9475
9476
9477 enablestring=
9478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9479echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9480 no_cache=0
9481 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9482if test "${enable_tipdlg+set}" = set; then
9483 enableval="$enable_tipdlg"
9484
9485 if test "$enableval" = yes; then
9486 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9487 else
9488 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9489 fi
9490
9491else
9492
9493 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9494 if test "x$LINE" != x ; then
9495 eval "DEFAULT_$LINE"
9496 else
9497 no_cache=1
9498 fi
9499
9500 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9501
9502fi;
9503
9504 eval "$ac_cv_use_tipdlg"
9505 if test "$no_cache" != 1; then
9506 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9507 fi
9508
9509 if test "$wxUSE_STARTUP_TIPS" = yes; then
9510 echo "$as_me:$LINENO: result: yes" >&5
9511echo "${ECHO_T}yes" >&6
9512 else
9513 echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
9515 fi
9516
9517
9518 enablestring=
9519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9520echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9521 no_cache=0
9522 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9523if test "${enable_progressdlg+set}" = set; then
9524 enableval="$enable_progressdlg"
9525
9526 if test "$enableval" = yes; then
9527 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9528 else
9529 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9530 fi
9531
9532else
9533
9534 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9535 if test "x$LINE" != x ; then
9536 eval "DEFAULT_$LINE"
9537 else
9538 no_cache=1
9539 fi
9540
9541 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9542
9543fi;
9544
9545 eval "$ac_cv_use_progressdlg"
9546 if test "$no_cache" != 1; then
9547 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9548 fi
9549
9550 if test "$wxUSE_PROGRESSDLG" = yes; then
9551 echo "$as_me:$LINENO: result: yes" >&5
9552echo "${ECHO_T}yes" >&6
9553 else
9554 echo "$as_me:$LINENO: result: no" >&5
9555echo "${ECHO_T}no" >&6
9556 fi
9557
9558
9559 enablestring=
9560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9561echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9562 no_cache=0
9563 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9564if test "${enable_wizarddlg+set}" = set; then
9565 enableval="$enable_wizarddlg"
9566
9567 if test "$enableval" = yes; then
9568 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9569 else
9570 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9571 fi
9572
9573else
9574
9575 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9576 if test "x$LINE" != x ; then
9577 eval "DEFAULT_$LINE"
9578 else
9579 no_cache=1
9580 fi
9581
9582 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9583
9584fi;
9585
9586 eval "$ac_cv_use_wizarddlg"
9587 if test "$no_cache" != 1; then
9588 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9589 fi
9590
9591 if test "$wxUSE_WIZARDDLG" = yes; then
9592 echo "$as_me:$LINENO: result: yes" >&5
9593echo "${ECHO_T}yes" >&6
9594 else
9595 echo "$as_me:$LINENO: result: no" >&5
9596echo "${ECHO_T}no" >&6
9597 fi
9598
9599
9600
9601
9602 enablestring=
9603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9604echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9605 no_cache=0
9606 # Check whether --enable-menus or --disable-menus was given.
9607if test "${enable_menus+set}" = set; then
9608 enableval="$enable_menus"
9609
9610 if test "$enableval" = yes; then
9611 ac_cv_use_menus='wxUSE_MENUS=yes'
9612 else
9613 ac_cv_use_menus='wxUSE_MENUS=no'
9614 fi
9615
9616else
9617
9618 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9619 if test "x$LINE" != x ; then
9620 eval "DEFAULT_$LINE"
9621 else
9622 no_cache=1
9623 fi
9624
9625 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9626
9627fi;
9628
9629 eval "$ac_cv_use_menus"
9630 if test "$no_cache" != 1; then
9631 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9632 fi
9633
9634 if test "$wxUSE_MENUS" = yes; then
9635 echo "$as_me:$LINENO: result: yes" >&5
9636echo "${ECHO_T}yes" >&6
9637 else
9638 echo "$as_me:$LINENO: result: no" >&5
9639echo "${ECHO_T}no" >&6
9640 fi
9641
9642
9643 enablestring=
9644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9645echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9646 no_cache=0
9647 # Check whether --enable-miniframe or --disable-miniframe was given.
9648if test "${enable_miniframe+set}" = set; then
9649 enableval="$enable_miniframe"
9650
9651 if test "$enableval" = yes; then
9652 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9653 else
9654 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9655 fi
9656
9657else
9658
9659 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9660 if test "x$LINE" != x ; then
9661 eval "DEFAULT_$LINE"
9662 else
9663 no_cache=1
9664 fi
9665
9666 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9667
9668fi;
9669
9670 eval "$ac_cv_use_miniframe"
9671 if test "$no_cache" != 1; then
9672 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9673 fi
9674
9675 if test "$wxUSE_MINIFRAME" = yes; then
9676 echo "$as_me:$LINENO: result: yes" >&5
9677echo "${ECHO_T}yes" >&6
9678 else
9679 echo "$as_me:$LINENO: result: no" >&5
9680echo "${ECHO_T}no" >&6
9681 fi
9682
9683
9684 enablestring=
9685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9686echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9687 no_cache=0
9688 # Check whether --enable-tooltips or --disable-tooltips was given.
9689if test "${enable_tooltips+set}" = set; then
9690 enableval="$enable_tooltips"
9691
9692 if test "$enableval" = yes; then
9693 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9694 else
9695 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9696 fi
9697
9698else
9699
9700 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9701 if test "x$LINE" != x ; then
9702 eval "DEFAULT_$LINE"
9703 else
9704 no_cache=1
9705 fi
9706
9707 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9708
9709fi;
9710
9711 eval "$ac_cv_use_tooltips"
9712 if test "$no_cache" != 1; then
9713 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9714 fi
9715
9716 if test "$wxUSE_TOOLTIPS" = yes; then
9717 echo "$as_me:$LINENO: result: yes" >&5
9718echo "${ECHO_T}yes" >&6
9719 else
9720 echo "$as_me:$LINENO: result: no" >&5
9721echo "${ECHO_T}no" >&6
9722 fi
9723
9724
9725 enablestring=
9726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9727echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9728 no_cache=0
9729 # Check whether --enable-splines or --disable-splines was given.
9730if test "${enable_splines+set}" = set; then
9731 enableval="$enable_splines"
9732
9733 if test "$enableval" = yes; then
9734 ac_cv_use_splines='wxUSE_SPLINES=yes'
9735 else
9736 ac_cv_use_splines='wxUSE_SPLINES=no'
9737 fi
9738
9739else
9740
9741 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9742 if test "x$LINE" != x ; then
9743 eval "DEFAULT_$LINE"
9744 else
9745 no_cache=1
9746 fi
9747
9748 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9749
9750fi;
9751
9752 eval "$ac_cv_use_splines"
9753 if test "$no_cache" != 1; then
9754 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9755 fi
9756
9757 if test "$wxUSE_SPLINES" = yes; then
9758 echo "$as_me:$LINENO: result: yes" >&5
9759echo "${ECHO_T}yes" >&6
9760 else
9761 echo "$as_me:$LINENO: result: no" >&5
9762echo "${ECHO_T}no" >&6
9763 fi
9764
9765
fbe2ca43
SN
9766 enablestring=
9767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9768echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9769 no_cache=0
9770 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9771if test "${enable_mousewheel+set}" = set; then
9772 enableval="$enable_mousewheel"
9773
9774 if test "$enableval" = yes; then
9775 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9776 else
9777 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9778 fi
9779
9780else
9781
9782 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9783 if test "x$LINE" != x ; then
9784 eval "DEFAULT_$LINE"
9785 else
9786 no_cache=1
9787 fi
9788
9789 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9790
9791fi;
9792
9793 eval "$ac_cv_use_mousewheel"
9794 if test "$no_cache" != 1; then
9795 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9796 fi
9797
9798 if test "$wxUSE_MOUSEWHEEL" = yes; then
9799 echo "$as_me:$LINENO: result: yes" >&5
9800echo "${ECHO_T}yes" >&6
9801 else
9802 echo "$as_me:$LINENO: result: no" >&5
9803echo "${ECHO_T}no" >&6
9804 fi
9805
9806
a848cd7e
SC
9807 enablestring=
9808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9809echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9810 no_cache=0
9811 # Check whether --enable-validators or --disable-validators was given.
9812if test "${enable_validators+set}" = set; then
9813 enableval="$enable_validators"
9814
9815 if test "$enableval" = yes; then
9816 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9817 else
9818 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9819 fi
9820
9821else
9822
9823 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9824 if test "x$LINE" != x ; then
9825 eval "DEFAULT_$LINE"
9826 else
9827 no_cache=1
9828 fi
9829
9830 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9831
9832fi;
9833
9834 eval "$ac_cv_use_validators"
9835 if test "$no_cache" != 1; then
9836 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9837 fi
9838
9839 if test "$wxUSE_VALIDATORS" = yes; then
9840 echo "$as_me:$LINENO: result: yes" >&5
9841echo "${ECHO_T}yes" >&6
9842 else
9843 echo "$as_me:$LINENO: result: no" >&5
9844echo "${ECHO_T}no" >&6
9845 fi
9846
9847
9848 enablestring=
9849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9850echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9851 no_cache=0
9852 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9853if test "${enable_busyinfo+set}" = set; then
9854 enableval="$enable_busyinfo"
9855
9856 if test "$enableval" = yes; then
9857 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9858 else
9859 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9860 fi
9861
9862else
9863
9864 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9865 if test "x$LINE" != x ; then
9866 eval "DEFAULT_$LINE"
9867 else
9868 no_cache=1
9869 fi
9870
9871 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9872
9873fi;
9874
9875 eval "$ac_cv_use_busyinfo"
9876 if test "$no_cache" != 1; then
9877 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9878 fi
9879
9880 if test "$wxUSE_BUSYINFO" = yes; then
9881 echo "$as_me:$LINENO: result: yes" >&5
9882echo "${ECHO_T}yes" >&6
9883 else
9884 echo "$as_me:$LINENO: result: no" >&5
9885echo "${ECHO_T}no" >&6
9886 fi
9887
9888
9889 enablestring=
9890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9891echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9892 no_cache=0
9893 # Check whether --enable-joystick or --disable-joystick was given.
9894if test "${enable_joystick+set}" = set; then
9895 enableval="$enable_joystick"
9896
9897 if test "$enableval" = yes; then
9898 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9899 else
9900 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9901 fi
9902
9903else
9904
9905 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9906 if test "x$LINE" != x ; then
9907 eval "DEFAULT_$LINE"
9908 else
9909 no_cache=1
9910 fi
9911
9912 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9913
9914fi;
9915
9916 eval "$ac_cv_use_joystick"
9917 if test "$no_cache" != 1; then
9918 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9919 fi
9920
9921 if test "$wxUSE_JOYSTICK" = yes; then
9922 echo "$as_me:$LINENO: result: yes" >&5
9923echo "${ECHO_T}yes" >&6
9924 else
9925 echo "$as_me:$LINENO: result: no" >&5
9926echo "${ECHO_T}no" >&6
9927 fi
9928
9929
9930 enablestring=
9931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9932echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9933 no_cache=0
9934 # Check whether --enable-metafile or --disable-metafile was given.
9935if test "${enable_metafile+set}" = set; then
9936 enableval="$enable_metafile"
9937
9938 if test "$enableval" = yes; then
9939 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9940 else
9941 ac_cv_use_metafile='wxUSE_METAFILE=no'
9942 fi
9943
9944else
9945
9946 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9947 if test "x$LINE" != x ; then
9948 eval "DEFAULT_$LINE"
9949 else
9950 no_cache=1
9951 fi
9952
9953 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9954
9955fi;
9956
9957 eval "$ac_cv_use_metafile"
9958 if test "$no_cache" != 1; then
9959 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9960 fi
9961
9962 if test "$wxUSE_METAFILE" = yes; then
9963 echo "$as_me:$LINENO: result: yes" >&5
9964echo "${ECHO_T}yes" >&6
9965 else
9966 echo "$as_me:$LINENO: result: no" >&5
9967echo "${ECHO_T}no" >&6
9968 fi
9969
9970
9971 enablestring=
9972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9973echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9974 no_cache=0
9975 # Check whether --enable-dragimage or --disable-dragimage was given.
9976if test "${enable_dragimage+set}" = set; then
9977 enableval="$enable_dragimage"
9978
9979 if test "$enableval" = yes; then
9980 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9981 else
9982 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9983 fi
9984
9985else
9986
9987 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9988 if test "x$LINE" != x ; then
9989 eval "DEFAULT_$LINE"
9990 else
9991 no_cache=1
9992 fi
9993
9994 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9995
9996fi;
9997
9998 eval "$ac_cv_use_dragimage"
9999 if test "$no_cache" != 1; then
10000 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10001 fi
10002
10003 if test "$wxUSE_DRAGIMAGE" = yes; then
10004 echo "$as_me:$LINENO: result: yes" >&5
10005echo "${ECHO_T}yes" >&6
10006 else
10007 echo "$as_me:$LINENO: result: no" >&5
10008echo "${ECHO_T}no" >&6
10009 fi
10010
10011
10012 enablestring=
10013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10014echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10015 no_cache=0
10016 # Check whether --enable-accessibility or --disable-accessibility was given.
10017if test "${enable_accessibility+set}" = set; then
10018 enableval="$enable_accessibility"
10019
10020 if test "$enableval" = yes; then
10021 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10022 else
10023 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10024 fi
10025
10026else
10027
10028 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10029 if test "x$LINE" != x ; then
10030 eval "DEFAULT_$LINE"
10031 else
10032 no_cache=1
10033 fi
10034
10035 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10036
10037fi;
10038
10039 eval "$ac_cv_use_accessibility"
10040 if test "$no_cache" != 1; then
10041 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10042 fi
10043
10044 if test "$wxUSE_ACCESSIBILITY" = yes; then
10045 echo "$as_me:$LINENO: result: yes" >&5
10046echo "${ECHO_T}yes" >&6
10047 else
10048 echo "$as_me:$LINENO: result: no" >&5
10049echo "${ECHO_T}no" >&6
10050 fi
10051
10052
10053
10054
10055 enablestring=
10056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10057echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10058 no_cache=0
10059 # Check whether --enable-palette or --disable-palette was given.
10060if test "${enable_palette+set}" = set; then
10061 enableval="$enable_palette"
10062
10063 if test "$enableval" = yes; then
10064 ac_cv_use_palette='wxUSE_PALETTE=yes'
10065 else
10066 ac_cv_use_palette='wxUSE_PALETTE=no'
10067 fi
10068
10069else
10070
10071 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10072 if test "x$LINE" != x ; then
10073 eval "DEFAULT_$LINE"
10074 else
10075 no_cache=1
10076 fi
10077
10078 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10079
10080fi;
10081
10082 eval "$ac_cv_use_palette"
10083 if test "$no_cache" != 1; then
10084 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10085 fi
10086
10087 if test "$wxUSE_PALETTE" = yes; then
10088 echo "$as_me:$LINENO: result: yes" >&5
10089echo "${ECHO_T}yes" >&6
10090 else
10091 echo "$as_me:$LINENO: result: no" >&5
10092echo "${ECHO_T}no" >&6
10093 fi
10094
10095
10096 enablestring=
10097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10098echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10099 no_cache=0
10100 # Check whether --enable-image or --disable-image was given.
10101if test "${enable_image+set}" = set; then
10102 enableval="$enable_image"
10103
10104 if test "$enableval" = yes; then
10105 ac_cv_use_image='wxUSE_IMAGE=yes'
10106 else
10107 ac_cv_use_image='wxUSE_IMAGE=no'
10108 fi
10109
10110else
10111
10112 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10113 if test "x$LINE" != x ; then
10114 eval "DEFAULT_$LINE"
10115 else
10116 no_cache=1
10117 fi
10118
10119 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10120
10121fi;
10122
10123 eval "$ac_cv_use_image"
10124 if test "$no_cache" != 1; then
10125 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10126 fi
10127
10128 if test "$wxUSE_IMAGE" = yes; then
10129 echo "$as_me:$LINENO: result: yes" >&5
10130echo "${ECHO_T}yes" >&6
10131 else
10132 echo "$as_me:$LINENO: result: no" >&5
10133echo "${ECHO_T}no" >&6
10134 fi
10135
10136
10137 enablestring=
10138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10139echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10140 no_cache=0
10141 # Check whether --enable-gif or --disable-gif was given.
10142if test "${enable_gif+set}" = set; then
10143 enableval="$enable_gif"
10144
10145 if test "$enableval" = yes; then
10146 ac_cv_use_gif='wxUSE_GIF=yes'
10147 else
10148 ac_cv_use_gif='wxUSE_GIF=no'
10149 fi
10150
10151else
10152
10153 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10154 if test "x$LINE" != x ; then
10155 eval "DEFAULT_$LINE"
10156 else
10157 no_cache=1
10158 fi
10159
10160 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10161
10162fi;
10163
10164 eval "$ac_cv_use_gif"
10165 if test "$no_cache" != 1; then
10166 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10167 fi
10168
10169 if test "$wxUSE_GIF" = yes; then
10170 echo "$as_me:$LINENO: result: yes" >&5
10171echo "${ECHO_T}yes" >&6
10172 else
10173 echo "$as_me:$LINENO: result: no" >&5
10174echo "${ECHO_T}no" >&6
10175 fi
10176
10177
10178 enablestring=
10179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10180echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10181 no_cache=0
10182 # Check whether --enable-pcx or --disable-pcx was given.
10183if test "${enable_pcx+set}" = set; then
10184 enableval="$enable_pcx"
10185
10186 if test "$enableval" = yes; then
10187 ac_cv_use_pcx='wxUSE_PCX=yes'
10188 else
10189 ac_cv_use_pcx='wxUSE_PCX=no'
10190 fi
10191
10192else
10193
10194 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10195 if test "x$LINE" != x ; then
10196 eval "DEFAULT_$LINE"
10197 else
10198 no_cache=1
10199 fi
10200
10201 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10202
10203fi;
10204
10205 eval "$ac_cv_use_pcx"
10206 if test "$no_cache" != 1; then
10207 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10208 fi
10209
10210 if test "$wxUSE_PCX" = yes; then
10211 echo "$as_me:$LINENO: result: yes" >&5
10212echo "${ECHO_T}yes" >&6
10213 else
10214 echo "$as_me:$LINENO: result: no" >&5
10215echo "${ECHO_T}no" >&6
10216 fi
10217
10218
10219 enablestring=
10220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10221echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10222 no_cache=0
10223 # Check whether --enable-iff or --disable-iff was given.
10224if test "${enable_iff+set}" = set; then
10225 enableval="$enable_iff"
10226
10227 if test "$enableval" = yes; then
10228 ac_cv_use_iff='wxUSE_IFF=yes'
10229 else
10230 ac_cv_use_iff='wxUSE_IFF=no'
10231 fi
10232
10233else
10234
10235 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10236 if test "x$LINE" != x ; then
10237 eval "DEFAULT_$LINE"
10238 else
10239 no_cache=1
10240 fi
10241
10242 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10243
10244fi;
10245
10246 eval "$ac_cv_use_iff"
10247 if test "$no_cache" != 1; then
10248 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10249 fi
10250
10251 if test "$wxUSE_IFF" = yes; then
10252 echo "$as_me:$LINENO: result: yes" >&5
10253echo "${ECHO_T}yes" >&6
10254 else
10255 echo "$as_me:$LINENO: result: no" >&5
10256echo "${ECHO_T}no" >&6
10257 fi
10258
10259
10260 enablestring=
10261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10262echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10263 no_cache=0
10264 # Check whether --enable-pnm or --disable-pnm was given.
10265if test "${enable_pnm+set}" = set; then
10266 enableval="$enable_pnm"
10267
10268 if test "$enableval" = yes; then
10269 ac_cv_use_pnm='wxUSE_PNM=yes'
10270 else
10271 ac_cv_use_pnm='wxUSE_PNM=no'
10272 fi
10273
10274else
10275
10276 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10277 if test "x$LINE" != x ; then
10278 eval "DEFAULT_$LINE"
10279 else
10280 no_cache=1
10281 fi
10282
10283 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10284
10285fi;
10286
10287 eval "$ac_cv_use_pnm"
10288 if test "$no_cache" != 1; then
10289 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10290 fi
10291
10292 if test "$wxUSE_PNM" = yes; then
10293 echo "$as_me:$LINENO: result: yes" >&5
10294echo "${ECHO_T}yes" >&6
10295 else
10296 echo "$as_me:$LINENO: result: no" >&5
10297echo "${ECHO_T}no" >&6
10298 fi
10299
10300
10301 enablestring=
10302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10303echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10304 no_cache=0
10305 # Check whether --enable-xpm or --disable-xpm was given.
10306if test "${enable_xpm+set}" = set; then
10307 enableval="$enable_xpm"
10308
10309 if test "$enableval" = yes; then
10310 ac_cv_use_xpm='wxUSE_XPM=yes'
10311 else
10312 ac_cv_use_xpm='wxUSE_XPM=no'
10313 fi
10314
10315else
10316
10317 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10318 if test "x$LINE" != x ; then
10319 eval "DEFAULT_$LINE"
10320 else
10321 no_cache=1
10322 fi
10323
10324 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10325
10326fi;
10327
10328 eval "$ac_cv_use_xpm"
10329 if test "$no_cache" != 1; then
10330 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10331 fi
10332
10333 if test "$wxUSE_XPM" = yes; then
10334 echo "$as_me:$LINENO: result: yes" >&5
10335echo "${ECHO_T}yes" >&6
10336 else
10337 echo "$as_me:$LINENO: result: no" >&5
10338echo "${ECHO_T}no" >&6
10339 fi
10340
10341
10342 enablestring=
10343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10344echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10345 no_cache=0
10346 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10347if test "${enable_ico_cur+set}" = set; then
10348 enableval="$enable_ico_cur"
10349
10350 if test "$enableval" = yes; then
10351 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10352 else
10353 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10354 fi
10355
10356else
10357
10358 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10359 if test "x$LINE" != x ; then
10360 eval "DEFAULT_$LINE"
10361 else
10362 no_cache=1
10363 fi
10364
10365 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10366
10367fi;
10368
10369 eval "$ac_cv_use_ico_cur"
10370 if test "$no_cache" != 1; then
10371 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10372 fi
10373
10374 if test "$wxUSE_ICO_CUR" = yes; then
10375 echo "$as_me:$LINENO: result: yes" >&5
10376echo "${ECHO_T}yes" >&6
10377 else
10378 echo "$as_me:$LINENO: result: no" >&5
10379echo "${ECHO_T}no" >&6
10380 fi
10381
10382
10383fi
10384
10385
10386
ceec2216
RL
10387# Check whether --with-flavour or --without-flavour was given.
10388if test "${with_flavour+set}" = set; then
10389 withval="$with_flavour"
10390 WX_FLAVOUR="$withval"
10391fi;
10392
10393
10394
a848cd7e
SC
10395 enablestring=
10396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10397echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10398 no_cache=0
10399 # Check whether --enable-official_build or --disable-official_build was given.
10400if test "${enable_official_build+set}" = set; then
10401 enableval="$enable_official_build"
10402
10403 if test "$enableval" = yes; then
10404 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10405 else
10406 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10407 fi
10408
10409else
10410
10411 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10412 if test "x$LINE" != x ; then
10413 eval "DEFAULT_$LINE"
10414 else
10415 no_cache=1
10416 fi
10417
10418 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10419
10420fi;
10421
10422 eval "$ac_cv_use_official_build"
10423 if test "$no_cache" != 1; then
10424 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10425 fi
10426
10427 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10428 echo "$as_me:$LINENO: result: yes" >&5
10429echo "${ECHO_T}yes" >&6
10430 else
10431 echo "$as_me:$LINENO: result: no" >&5
10432echo "${ECHO_T}no" >&6
10433 fi
10434
10435# Check whether --enable-vendor or --disable-vendor was given.
10436if test "${enable_vendor+set}" = set; then
10437 enableval="$enable_vendor"
10438 VENDOR="$enableval"
10439fi;
10440if test "x$VENDOR" = "x"; then
10441 VENDOR="custom"
10442fi
10443
a848cd7e
SC
10444
10445
10446
10447 echo "saving argument cache $wx_arg_cache_file"
10448 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10449
10450
10451
10452echo "$as_me:$LINENO: checking for toolkit" >&5
10453echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10454
10455# In Wine, we need to default to MSW, not GTK or MOTIF
10456if test "$wxUSE_WINE" = "yes"; then
10457 DEFAULT_DEFAULT_wxUSE_GTK=0
10458 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10459 DEFAULT_DEFAULT_wxUSE_MSW=1
10460 wxUSE_SHARED=no
10461fi
10462
f597b41c 10463
a848cd7e
SC
10464if test "$wxUSE_GUI" = "yes"; then
10465
10466 if test "$USE_BEOS" = 1; then
10467 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10468echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10469 { (exit 1); exit 1; }; }
10470 fi
10471
10472 if test "$TOOLKIT_GIVEN" = 1; then
10473 for toolkit in `echo $ALL_TOOLKITS`; do
10474 var=wxUSE_$toolkit
10475 eval "value=\$${var}"
f34ca037
MW
10476 if test "x$value" = "xno"; then
10477 eval "$var=0"
10478 elif test "x$value" != "x"; then
10479 eval "$var=1"
10480 fi
10481
10482 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10483 eval "wx${toolkit}_VERSION=$value"
10484 fi
a848cd7e
SC
10485 done
10486 else
10487 for toolkit in `echo $ALL_TOOLKITS`; do
10488 if test "$has_toolkit_in_cache" != 1; then
10489 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10490 else
10491 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10492
10493 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10494 if test "x$version" != "x"; then
10495 eval "wx${toolkit}_VERSION=$version"
10496 fi
a848cd7e
SC
10497 fi
10498 eval "wxUSE_$toolkit=\$${var}"
10499 done
10500 fi
10501
10502 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10503 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10504 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10505
10506 case "${host}" in
10507 *-pc-os2_emx | *-pc-os2-emx )
10508 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10509 esac
10510
10511 case "$NUM_TOOLKITS" in
10512 1)
10513 ;;
10514 0)
10515 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10516echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10517 { (exit 1); exit 1; }; }
10518 ;;
10519 *)
10520 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10521echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10522 { (exit 1); exit 1; }; }
10523 esac
10524
f34ca037
MW
10525 # to be removed when --disable-gtk2 isn't needed
10526 if test "x$wxUSE_GTK2" = "xyes"; then
10527 wxGTK_VERSION=2
10528 elif test "x$wxUSE_GTK2" = "xno"; then
10529 wxGTK_VERSION=1
10530 fi
10531
a848cd7e
SC
10532 for toolkit in `echo $ALL_TOOLKITS`; do
10533 var=wxUSE_$toolkit
10534 eval "value=\$${var}"
10535 if test "x$value" != x; then
10536 cache_var=CACHE_$toolkit
10537 eval "cache=\$${cache_var}"
10538 if test "$cache" = 1; then
10539 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10540 eval "version=\$wx${toolkit}_VERSION"
10541 if test "x$version" != "x"; then
10542 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10543 fi
a848cd7e
SC
10544 fi
10545 if test "$value" = 1; then
10546 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10547 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10548echo "${ECHO_T}$toolkit_echo" >&6
10549 fi
10550 fi
10551 done
10552else
10553 if test "x$host_alias" != "x"; then
10554 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10555echo "${ECHO_T}base ($host_alias hosted) only" >&6
10556 else
10557 echo "$as_me:$LINENO: result: base only" >&5
10558echo "${ECHO_T}base only" >&6
10559 fi
10560fi
10561
10562wants_win32=0
10563doesnt_want_win32=0
10564case "${host}" in
10565 *-*-cygwin*)
10566 if test "$wxUSE_MSW" = 1 ; then
10567 wants_win32=1
10568 else
10569 doesnt_want_win32=1
10570 fi
10571 ;;
10572 *-*-mingw*)
10573 wants_win32=1
10574 ;;
10575esac
10576
10577if test "$wxUSE_WINE" = "yes"; then
10578 wants_win32=1
10579 CC=winegcc
10580 CXX=wineg++
10581 RESCOMP=wrc
10582 LDFLAGS_GUI="-mwindows"
10583fi
10584
10585if test "$wants_win32" = 1 ; then
10586 USE_UNIX=0
10587 USE_WIN32=1
10588 cat >>confdefs.h <<\_ACEOF
10589#define __WIN32__ 1
10590_ACEOF
10591
10592 cat >>confdefs.h <<\_ACEOF
10593#define __WIN95__ 1
10594_ACEOF
10595
10596 cat >>confdefs.h <<\_ACEOF
10597#define __WINDOWS__ 1
10598_ACEOF
10599
10600 cat >>confdefs.h <<\_ACEOF
10601#define __GNUWIN32__ 1
10602_ACEOF
10603
10604 cat >>confdefs.h <<\_ACEOF
10605#define STRICT 1
10606_ACEOF
10607
10608 cat >>confdefs.h <<\_ACEOF
10609#define WINVER 0x0400
10610_ACEOF
10611
10612fi
10613if test "$doesnt_want_win32" = 1 ; then
10614 USE_UNIX=1
10615 USE_WIN32=0
10616fi
10617
10618if test "$USE_UNIX" = 1 ; then
10619 wxUSE_UNIX=yes
10620 cat >>confdefs.h <<\_ACEOF
10621#define __UNIX__ 1
10622_ACEOF
10623
10624fi
10625
10626
10627cat >confcache <<\_ACEOF
10628# This file is a shell script that caches the results of configure
10629# tests run on this system so they can be shared between configure
10630# scripts and configure runs, see configure's option --config-cache.
10631# It is not useful on other systems. If it contains results you don't
10632# want to keep, you may remove or edit it.
10633#
10634# config.status only pays attention to the cache file if you give it
10635# the --recheck option to rerun configure.
10636#
10637# `ac_cv_env_foo' variables (set or unset) will be overridden when
10638# loading this file, other *unset* `ac_cv_foo' will be assigned the
10639# following values.
10640
10641_ACEOF
10642
10643# The following way of writing the cache mishandles newlines in values,
10644# but we know of no workaround that is simple, portable, and efficient.
10645# So, don't put newlines in cache variables' values.
10646# Ultrix sh set writes to stderr and can't be redirected directly,
10647# and sets the high bit in the cache file unless we assign to the vars.
10648{
10649 (set) 2>&1 |
10650 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10651 *ac_space=\ *)
10652 # `set' does not quote correctly, so add quotes (double-quote
10653 # substitution turns \\\\ into \\, and sed turns \\ into \).
10654 sed -n \
ac1cb8d3
VS
10655 "s/'/'\\\\''/g;
10656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10657 ;;
10658 *)
10659 # `set' quotes correctly as required by POSIX, so do not add quotes.
10660 sed -n \
ac1cb8d3 10661 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10662 ;;
10663 esac;
10664} |
10665 sed '
10666 t clear
10667 : clear
10668 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10669 t end
10670 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10671 : end' >>confcache
10672if diff $cache_file confcache >/dev/null 2>&1; then :; else
10673 if test -w $cache_file; then
10674 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10675 cat confcache >$cache_file
10676 else
10677 echo "not updating unwritable cache $cache_file"
10678 fi
10679fi
10680rm -f confcache
10681
10682if test "$build" != "$host" ; then
1e9e8aba 10683 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10684 CC=$host_alias-gcc
10685 CXX=$host_alias-c++
10686 AR=$host_alias-ar
10687 RANLIB=$host_alias-ranlib
10688 DLLTOOL=$host_alias-dlltool
10689 RESCOMP=$host_alias-windres
a848cd7e 10690 STRIP=$host_alias-strip
1e9e8aba
DE
10691 elif test "x$CC" '!=' "x"; then
10692 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10693 else
10694 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10695echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10696 { (exit 1); exit 1; }; }
10697 fi
10698fi
10699
10700CFLAGS=${CFLAGS:=}
6dcfc289
DE
10701
10702
10703 ac_ext=c
a848cd7e
SC
10704ac_cpp='$CPP $CPPFLAGS'
10705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10707ac_compiler_gnu=$ac_cv_c_compiler_gnu
10708if test -n "$ac_tool_prefix"; then
10709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10710set dummy ${ac_tool_prefix}gcc; ac_word=$2
10711echo "$as_me:$LINENO: checking for $ac_word" >&5
10712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10713if test "${ac_cv_prog_CC+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10715else
10716 if test -n "$CC"; then
10717 ac_cv_prog_CC="$CC" # Let the user override the test.
10718else
10719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720for as_dir in $PATH
10721do
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10726 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 break 2
10729 fi
10730done
10731done
10732
10733fi
10734fi
10735CC=$ac_cv_prog_CC
10736if test -n "$CC"; then
10737 echo "$as_me:$LINENO: result: $CC" >&5
10738echo "${ECHO_T}$CC" >&6
10739else
10740 echo "$as_me:$LINENO: result: no" >&5
10741echo "${ECHO_T}no" >&6
10742fi
10743
10744fi
10745if test -z "$ac_cv_prog_CC"; then
10746 ac_ct_CC=$CC
10747 # Extract the first word of "gcc", so it can be a program name with args.
10748set dummy gcc; ac_word=$2
10749echo "$as_me:$LINENO: checking for $ac_word" >&5
10750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10751if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753else
10754 if test -n "$ac_ct_CC"; then
10755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10756else
10757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758for as_dir in $PATH
10759do
10760 IFS=$as_save_IFS
10761 test -z "$as_dir" && as_dir=.
10762 for ac_exec_ext in '' $ac_executable_extensions; do
10763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10764 ac_cv_prog_ac_ct_CC="gcc"
10765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10766 break 2
10767 fi
10768done
10769done
10770
10771fi
10772fi
10773ac_ct_CC=$ac_cv_prog_ac_ct_CC
10774if test -n "$ac_ct_CC"; then
10775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10776echo "${ECHO_T}$ac_ct_CC" >&6
10777else
10778 echo "$as_me:$LINENO: result: no" >&5
10779echo "${ECHO_T}no" >&6
10780fi
10781
10782 CC=$ac_ct_CC
10783else
10784 CC="$ac_cv_prog_CC"
10785fi
10786
10787if test -z "$CC"; then
10788 if test -n "$ac_tool_prefix"; then
10789 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10790set dummy ${ac_tool_prefix}cc; ac_word=$2
10791echo "$as_me:$LINENO: checking for $ac_word" >&5
10792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10793if test "${ac_cv_prog_CC+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795else
10796 if test -n "$CC"; then
10797 ac_cv_prog_CC="$CC" # Let the user override the test.
10798else
10799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800for as_dir in $PATH
10801do
10802 IFS=$as_save_IFS
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10806 ac_cv_prog_CC="${ac_tool_prefix}cc"
10807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10808 break 2
10809 fi
10810done
10811done
10812
10813fi
10814fi
10815CC=$ac_cv_prog_CC
10816if test -n "$CC"; then
10817 echo "$as_me:$LINENO: result: $CC" >&5
10818echo "${ECHO_T}$CC" >&6
10819else
10820 echo "$as_me:$LINENO: result: no" >&5
10821echo "${ECHO_T}no" >&6
10822fi
10823
10824fi
10825if test -z "$ac_cv_prog_CC"; then
10826 ac_ct_CC=$CC
10827 # Extract the first word of "cc", so it can be a program name with args.
10828set dummy cc; ac_word=$2
10829echo "$as_me:$LINENO: checking for $ac_word" >&5
10830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10831if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10833else
10834 if test -n "$ac_ct_CC"; then
10835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10836else
10837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838for as_dir in $PATH
10839do
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
10843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10844 ac_cv_prog_ac_ct_CC="cc"
10845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 break 2
10847 fi
10848done
10849done
10850
10851fi
10852fi
10853ac_ct_CC=$ac_cv_prog_ac_ct_CC
10854if test -n "$ac_ct_CC"; then
10855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10856echo "${ECHO_T}$ac_ct_CC" >&6
10857else
10858 echo "$as_me:$LINENO: result: no" >&5
10859echo "${ECHO_T}no" >&6
10860fi
10861
10862 CC=$ac_ct_CC
10863else
10864 CC="$ac_cv_prog_CC"
10865fi
10866
10867fi
10868if test -z "$CC"; then
10869 # Extract the first word of "cc", so it can be a program name with args.
10870set dummy cc; ac_word=$2
10871echo "$as_me:$LINENO: checking for $ac_word" >&5
10872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10873if test "${ac_cv_prog_CC+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875else
10876 if test -n "$CC"; then
10877 ac_cv_prog_CC="$CC" # Let the user override the test.
10878else
10879 ac_prog_rejected=no
10880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881for as_dir in $PATH
10882do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10888 ac_prog_rejected=yes
10889 continue
10890 fi
10891 ac_cv_prog_CC="cc"
10892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10893 break 2
10894 fi
10895done
10896done
10897
10898if test $ac_prog_rejected = yes; then
10899 # We found a bogon in the path, so make sure we never use it.
10900 set dummy $ac_cv_prog_CC
10901 shift
10902 if test $# != 0; then
10903 # We chose a different compiler from the bogus one.
10904 # However, it has the same basename, so the bogon will be chosen
10905 # first if we set CC to just the basename; use the full file name.
10906 shift
10907 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10908 fi
10909fi
10910fi
10911fi
10912CC=$ac_cv_prog_CC
10913if test -n "$CC"; then
10914 echo "$as_me:$LINENO: result: $CC" >&5
10915echo "${ECHO_T}$CC" >&6
10916else
10917 echo "$as_me:$LINENO: result: no" >&5
10918echo "${ECHO_T}no" >&6
10919fi
10920
10921fi
10922if test -z "$CC"; then
10923 if test -n "$ac_tool_prefix"; then
10924 for ac_prog in cl
10925 do
10926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10927set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10928echo "$as_me:$LINENO: checking for $ac_word" >&5
10929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10930if test "${ac_cv_prog_CC+set}" = set; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10932else
10933 if test -n "$CC"; then
10934 ac_cv_prog_CC="$CC" # Let the user override the test.
10935else
10936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937for as_dir in $PATH
10938do
10939 IFS=$as_save_IFS
10940 test -z "$as_dir" && as_dir=.
10941 for ac_exec_ext in '' $ac_executable_extensions; do
10942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10943 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 break 2
10946 fi
10947done
10948done
10949
10950fi
10951fi
10952CC=$ac_cv_prog_CC
10953if test -n "$CC"; then
10954 echo "$as_me:$LINENO: result: $CC" >&5
10955echo "${ECHO_T}$CC" >&6
10956else
10957 echo "$as_me:$LINENO: result: no" >&5
10958echo "${ECHO_T}no" >&6
10959fi
10960
10961 test -n "$CC" && break
10962 done
10963fi
10964if test -z "$CC"; then
10965 ac_ct_CC=$CC
10966 for ac_prog in cl
10967do
10968 # Extract the first word of "$ac_prog", so it can be a program name with args.
10969set dummy $ac_prog; ac_word=$2
10970echo "$as_me:$LINENO: checking for $ac_word" >&5
10971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10972if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974else
10975 if test -n "$ac_ct_CC"; then
10976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10977else
10978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979for as_dir in $PATH
10980do
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10985 ac_cv_prog_ac_ct_CC="$ac_prog"
10986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 break 2
10988 fi
10989done
10990done
10991
10992fi
10993fi
10994ac_ct_CC=$ac_cv_prog_ac_ct_CC
10995if test -n "$ac_ct_CC"; then
10996 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10997echo "${ECHO_T}$ac_ct_CC" >&6
10998else
10999 echo "$as_me:$LINENO: result: no" >&5
11000echo "${ECHO_T}no" >&6
11001fi
11002
11003 test -n "$ac_ct_CC" && break
11004done
11005
11006 CC=$ac_ct_CC
11007fi
11008
11009fi
11010
11011
11012test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11013See \`config.log' for more details." >&5
11014echo "$as_me: error: no acceptable C compiler found in \$PATH
11015See \`config.log' for more details." >&2;}
11016 { (exit 1); exit 1; }; }
11017
11018# Provide some information about the compiler.
11019echo "$as_me:$LINENO:" \
11020 "checking for C compiler version" >&5
11021ac_compiler=`set X $ac_compile; echo $2`
11022{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11023 (eval $ac_compiler --version </dev/null >&5) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }
11027{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11028 (eval $ac_compiler -v </dev/null >&5) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }
11032{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11033 (eval $ac_compiler -V </dev/null >&5) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }
11037
11038cat >conftest.$ac_ext <<_ACEOF
11039/* confdefs.h. */
11040_ACEOF
11041cat confdefs.h >>conftest.$ac_ext
11042cat >>conftest.$ac_ext <<_ACEOF
11043/* end confdefs.h. */
11044
11045int
11046main ()
11047{
11048
11049 ;
11050 return 0;
11051}
11052_ACEOF
11053ac_clean_files_save=$ac_clean_files
11054ac_clean_files="$ac_clean_files a.out a.exe b.out"
11055# Try to create an executable without -o first, disregard a.out.
11056# It will help us diagnose broken compilers, and finding out an intuition
11057# of exeext.
ac1cb8d3
VS
11058echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11059echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11060ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11061if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11062 (eval $ac_link_default) 2>&5
11063 ac_status=$?
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; then
11066 # Find the output, starting from the most likely. This scheme is
11067# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11068# resort.
11069
11070# Be careful to initialize this variable, since it used to be cached.
11071# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11072ac_cv_exeext=
11073# b.out is created by i960 compilers.
11074for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11075do
11076 test -f "$ac_file" || continue
11077 case $ac_file in
11078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11079 ;;
a848cd7e 11080 conftest.$ac_ext )
ac1cb8d3
VS
11081 # This is the source file.
11082 ;;
a848cd7e 11083 [ab].out )
ac1cb8d3
VS
11084 # We found the default executable, but exeext='' is most
11085 # certainly right.
11086 break;;
a848cd7e 11087 *.* )
ac1cb8d3
VS
11088 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11089 # FIXME: I believe we export ac_cv_exeext for Libtool,
11090 # but it would be cool to find out if it's true. Does anybody
11091 # maintain Libtool? --akim.
11092 export ac_cv_exeext
11093 break;;
a848cd7e 11094 * )
ac1cb8d3 11095 break;;
a848cd7e
SC
11096 esac
11097done
11098else
11099 echo "$as_me: failed program was:" >&5
11100sed 's/^/| /' conftest.$ac_ext >&5
11101
11102{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11103See \`config.log' for more details." >&5
11104echo "$as_me: error: C compiler cannot create executables
11105See \`config.log' for more details." >&2;}
11106 { (exit 77); exit 77; }; }
11107fi
11108
11109ac_exeext=$ac_cv_exeext
11110echo "$as_me:$LINENO: result: $ac_file" >&5
11111echo "${ECHO_T}$ac_file" >&6
11112
11113# Check the compiler produces executables we can run. If not, either
11114# the compiler is broken, or we cross compile.
11115echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11116echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11117# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11118# If not cross compiling, check that we can run a simple program.
11119if test "$cross_compiling" != yes; then
11120 if { ac_try='./$ac_file'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11126 cross_compiling=no
11127 else
11128 if test "$cross_compiling" = maybe; then
11129 cross_compiling=yes
11130 else
11131 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11132If you meant to cross compile, use \`--host'.
11133See \`config.log' for more details." >&5
11134echo "$as_me: error: cannot run C compiled programs.
11135If you meant to cross compile, use \`--host'.
11136See \`config.log' for more details." >&2;}
11137 { (exit 1); exit 1; }; }
11138 fi
11139 fi
11140fi
11141echo "$as_me:$LINENO: result: yes" >&5
11142echo "${ECHO_T}yes" >&6
11143
11144rm -f a.out a.exe conftest$ac_cv_exeext b.out
11145ac_clean_files=$ac_clean_files_save
11146# Check the compiler produces executables we can run. If not, either
11147# the compiler is broken, or we cross compile.
11148echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11149echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11150echo "$as_me:$LINENO: result: $cross_compiling" >&5
11151echo "${ECHO_T}$cross_compiling" >&6
11152
11153echo "$as_me:$LINENO: checking for suffix of executables" >&5
11154echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; then
11160 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11161# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11162# work properly (i.e., refer to `conftest.exe'), while it won't with
11163# `rm'.
11164for ac_file in conftest.exe conftest conftest.*; do
11165 test -f "$ac_file" || continue
11166 case $ac_file in
11167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11168 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11169 export ac_cv_exeext
11170 break;;
a848cd7e
SC
11171 * ) break;;
11172 esac
11173done
11174else
11175 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11176See \`config.log' for more details." >&5
11177echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11178See \`config.log' for more details." >&2;}
11179 { (exit 1); exit 1; }; }
11180fi
11181
11182rm -f conftest$ac_cv_exeext
11183echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11184echo "${ECHO_T}$ac_cv_exeext" >&6
11185
11186rm -f conftest.$ac_ext
11187EXEEXT=$ac_cv_exeext
11188ac_exeext=$EXEEXT
11189echo "$as_me:$LINENO: checking for suffix of object files" >&5
11190echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11191if test "${ac_cv_objext+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193else
11194 cat >conftest.$ac_ext <<_ACEOF
11195/* confdefs.h. */
11196_ACEOF
11197cat confdefs.h >>conftest.$ac_ext
11198cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h. */
11200
11201int
11202main ()
11203{
11204
11205 ;
11206 return 0;
11207}
11208_ACEOF
11209rm -f conftest.o conftest.obj
11210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11211 (eval $ac_compile) 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; then
11215 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11216 case $ac_file in
11217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11218 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11219 break;;
11220 esac
11221done
11222else
11223 echo "$as_me: failed program was:" >&5
11224sed 's/^/| /' conftest.$ac_ext >&5
11225
11226{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11227See \`config.log' for more details." >&5
11228echo "$as_me: error: cannot compute suffix of object files: cannot compile
11229See \`config.log' for more details." >&2;}
11230 { (exit 1); exit 1; }; }
11231fi
11232
11233rm -f conftest.$ac_cv_objext conftest.$ac_ext
11234fi
11235echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11236echo "${ECHO_T}$ac_cv_objext" >&6
11237OBJEXT=$ac_cv_objext
11238ac_objext=$OBJEXT
11239echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11240echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11241if test "${ac_cv_c_compiler_gnu+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243else
11244 cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
11250
11251int
11252main ()
11253{
11254#ifndef __GNUC__
11255 choke me
11256#endif
11257
11258 ;
11259 return 0;
11260}
11261_ACEOF
11262rm -f conftest.$ac_objext
11263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11264 (eval $ac_compile) 2>conftest.er1
a848cd7e 11265 ac_status=$?
ac1cb8d3
VS
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
a848cd7e
SC
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
9dd0f6c2 11271 { ac_try='test -z "$ac_c_werror_flag" || 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); } &&
9dd0f6c2 11329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 ac_cv_prog_cc_g=yes
11342else
11343 echo "$as_me: failed program was:" >&5
11344sed 's/^/| /' conftest.$ac_ext >&5
11345
11346ac_cv_prog_cc_g=no
11347fi
ac1cb8d3 11348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11349fi
11350echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11351echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11352if test "$ac_test_CFLAGS" = set; then
11353 CFLAGS=$ac_save_CFLAGS
11354elif test $ac_cv_prog_cc_g = yes; then
11355 if test "$GCC" = yes; then
11356 CFLAGS="-g -O2"
11357 else
11358 CFLAGS="-g"
11359 fi
11360else
11361 if test "$GCC" = yes; then
11362 CFLAGS="-O2"
11363 else
11364 CFLAGS=
11365 fi
11366fi
11367echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11368echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11369if test "${ac_cv_prog_cc_stdc+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371else
11372 ac_cv_prog_cc_stdc=no
11373ac_save_CC=$CC
11374cat >conftest.$ac_ext <<_ACEOF
11375/* confdefs.h. */
11376_ACEOF
11377cat confdefs.h >>conftest.$ac_ext
11378cat >>conftest.$ac_ext <<_ACEOF
11379/* end confdefs.h. */
11380#include <stdarg.h>
11381#include <stdio.h>
11382#include <sys/types.h>
11383#include <sys/stat.h>
11384/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11385struct buf { int x; };
11386FILE * (*rcsopen) (struct buf *, struct stat *, int);
11387static char *e (p, i)
11388 char **p;
11389 int i;
11390{
11391 return p[i];
11392}
11393static char *f (char * (*g) (char **, int), char **p, ...)
11394{
11395 char *s;
11396 va_list v;
11397 va_start (v,p);
11398 s = g (p, va_arg (v,int));
11399 va_end (v);
11400 return s;
11401}
ac1cb8d3
VS
11402
11403/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11404 function prototypes and stuff, but not '\xHH' hex character constants.
11405 These don't provoke an error unfortunately, instead are silently treated
11406 as 'x'. The following induces an error, until -std1 is added to get
11407 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11408 array size at least. It's necessary to write '\x00'==0 to get something
11409 that's true only with -std1. */
11410int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11411
a848cd7e
SC
11412int test (int i, double x);
11413struct s1 {int (*f) (int a);};
11414struct s2 {int (*f) (double a);};
11415int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11416int argc;
11417char **argv;
11418int
11419main ()
11420{
11421return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11422 ;
11423 return 0;
11424}
11425_ACEOF
11426# Don't try gcc -ansi; that turns off useful extensions and
11427# breaks some systems' header files.
11428# AIX -qlanglvl=ansi
11429# Ultrix and OSF/1 -std1
11430# HP-UX 10.20 and later -Ae
11431# HP-UX older versions -Aa -D_HPUX_SOURCE
11432# SVR4 -Xc -D__EXTENSIONS__
11433for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11434do
11435 CC="$ac_save_CC $ac_arg"
11436 rm -f conftest.$ac_objext
11437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11438 (eval $ac_compile) 2>conftest.er1
a848cd7e 11439 ac_status=$?
ac1cb8d3
VS
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
a848cd7e
SC
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } &&
9dd0f6c2 11445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; } &&
11451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 ac_cv_prog_cc_stdc=$ac_arg
11458break
11459else
11460 echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463fi
ac1cb8d3 11464rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11465done
11466rm -f conftest.$ac_ext conftest.$ac_objext
11467CC=$ac_save_CC
11468
11469fi
11470
11471case "x$ac_cv_prog_cc_stdc" in
11472 x|xno)
11473 echo "$as_me:$LINENO: result: none needed" >&5
11474echo "${ECHO_T}none needed" >&6 ;;
11475 *)
11476 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11477echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11478 CC="$CC $ac_cv_prog_cc_stdc" ;;
11479esac
11480
11481# Some people use a C++ compiler to compile C. Since we use `exit',
11482# in C++ we need to declare it. In case someone uses the same compiler
11483# for both compiling C and C++ we need to have the C++ compiler decide
11484# the declaration of exit, since it's the most demanding environment.
11485cat >conftest.$ac_ext <<_ACEOF
11486#ifndef __cplusplus
11487 choke me
11488#endif
11489_ACEOF
11490rm -f conftest.$ac_objext
11491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11492 (eval $ac_compile) 2>conftest.er1
a848cd7e 11493 ac_status=$?
ac1cb8d3
VS
11494 grep -v '^ *+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
a848cd7e
SC
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
9dd0f6c2 11499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 for ac_declaration in \
ac1cb8d3 11512 '' \
a848cd7e
SC
11513 'extern "C" void std::exit (int) throw (); using std::exit;' \
11514 'extern "C" void std::exit (int); using std::exit;' \
11515 'extern "C" void exit (int) throw ();' \
11516 'extern "C" void exit (int);' \
11517 'void exit (int);'
11518do
11519 cat >conftest.$ac_ext <<_ACEOF
11520/* confdefs.h. */
11521_ACEOF
11522cat confdefs.h >>conftest.$ac_ext
11523cat >>conftest.$ac_ext <<_ACEOF
11524/* end confdefs.h. */
de59c161 11525$ac_declaration
ac1cb8d3 11526#include <stdlib.h>
a848cd7e
SC
11527int
11528main ()
11529{
11530exit (42);
11531 ;
11532 return 0;
11533}
11534_ACEOF
11535rm -f conftest.$ac_objext
11536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11537 (eval $ac_compile) 2>conftest.er1
a848cd7e 11538 ac_status=$?
ac1cb8d3
VS
11539 grep -v '^ *+' conftest.er1 >conftest.err
11540 rm -f conftest.er1
11541 cat conftest.err >&5
a848cd7e
SC
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } &&
9dd0f6c2 11544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 (eval $ac_try) 2>&5
11553 ac_status=$?
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; }; then
11556 :
11557else
11558 echo "$as_me: failed program was:" >&5
11559sed 's/^/| /' conftest.$ac_ext >&5
11560
11561continue
11562fi
ac1cb8d3 11563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11564 cat >conftest.$ac_ext <<_ACEOF
11565/* confdefs.h. */
11566_ACEOF
11567cat confdefs.h >>conftest.$ac_ext
11568cat >>conftest.$ac_ext <<_ACEOF
11569/* end confdefs.h. */
11570$ac_declaration
11571int
11572main ()
11573{
11574exit (42);
11575 ;
11576 return 0;
11577}
11578_ACEOF
11579rm -f conftest.$ac_objext
11580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11581 (eval $ac_compile) 2>conftest.er1
a848cd7e 11582 ac_status=$?
ac1cb8d3
VS
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
a848cd7e
SC
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
9dd0f6c2 11588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11597 ac_status=$?
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; }; then
11600 break
11601else
11602 echo "$as_me: failed program was:" >&5
11603sed 's/^/| /' conftest.$ac_ext >&5
11604
11605fi
ac1cb8d3 11606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11607done
11608rm -f conftest*
11609if test -n "$ac_declaration"; then
11610 echo '#ifdef __cplusplus' >>confdefs.h
11611 echo $ac_declaration >>confdefs.h
11612 echo '#endif' >>confdefs.h
11613fi
11614
11615else
11616 echo "$as_me: failed program was:" >&5
11617sed 's/^/| /' conftest.$ac_ext >&5
11618
11619fi
ac1cb8d3 11620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11621ac_ext=c
11622ac_cpp='$CPP $CPPFLAGS'
11623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11625ac_compiler_gnu=$ac_cv_c_compiler_gnu
11626
6dcfc289 11627 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11628echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11629if test "${wx_cv_c_exto+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631else
11632 cat >conftest.$ac_ext <<_ACEOF
11633/* confdefs.h. */
11634_ACEOF
11635cat confdefs.h >>conftest.$ac_ext
11636cat >>conftest.$ac_ext <<_ACEOF
11637/* end confdefs.h. */
11638
11639int
11640main ()
11641{
11642
11643 ;
11644 return 0;
11645}
11646_ACEOF
11647rm -f conftest.$ac_objext conftest.$ac_ext.o
11648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11649 (eval $ac_compile) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; then
11653 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11654 case $ac_file in
11655 conftest.$ac_ext.o)
11656 wx_cv_c_exto="-ext o"
11657 ;;
11658 *)
11659 ;;
11660 esac
11661done
11662else
11663 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11664See \`config.log' for more details." >&5
11665echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11666See \`config.log' for more details." >&2;}
11667 { (exit 1); exit 1; }; }
11668
11669fi
11670
11671rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11672
11673fi
11674echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11675echo "${ECHO_T}$wx_cv_c_exto" >&6
11676if test "x$wx_cv_c_exto" '!=' "x"; then
11677 if test "c" = "c"; then
11678 CFLAGS="$wx_cv_c_exto $CFLAGS"
11679 fi
11680 if test "c" = "cxx"; then
11681 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11682 fi
11683fi
11684
6dcfc289
DE
11685 if test "x$wx_cv_c_exto" '!=' "x"; then
11686 unset ac_cv_prog_cc_g
11687 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11688ac_save_CFLAGS=$CFLAGS
52ada004 11689CFLAGS="-g"
480ccd21
DE
11690echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11691echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11692if test "${ac_cv_prog_cc_g+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694else
11695 cat >conftest.$ac_ext <<_ACEOF
11696/* confdefs.h. */
11697_ACEOF
11698cat confdefs.h >>conftest.$ac_ext
11699cat >>conftest.$ac_ext <<_ACEOF
11700/* end confdefs.h. */
11701
11702int
11703main ()
11704{
11705
11706 ;
11707 return 0;
11708}
11709_ACEOF
11710rm -f conftest.$ac_objext
11711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
9dd0f6c2 11719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; } &&
11725 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11731 ac_cv_prog_cc_g=yes
11732else
11733 echo "$as_me: failed program was:" >&5
11734sed 's/^/| /' conftest.$ac_ext >&5
11735
11736ac_cv_prog_cc_g=no
11737fi
11738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11739fi
11740echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11741echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11742if test "$ac_test_CFLAGS" = set; then
11743 CFLAGS=$ac_save_CFLAGS
11744elif test $ac_cv_prog_cc_g = yes; then
11745 if test "$GCC" = yes; then
11746 CFLAGS="-g -O2"
11747 else
11748 CFLAGS="-g"
11749 fi
11750else
11751 if test "$GCC" = yes; then
11752 CFLAGS="-O2"
11753 else
11754 CFLAGS=
11755 fi
11756fi
6dcfc289
DE
11757 fi
11758 ac_ext=c
95986553
DE
11759ac_cpp='$CPP $CPPFLAGS'
11760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11762ac_compiler_gnu=$ac_cv_c_compiler_gnu
11763
11764echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11765echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11766if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768else
11769 cat >conftest.$ac_ext <<_ACEOF
11770/* confdefs.h. */
11771_ACEOF
11772cat confdefs.h >>conftest.$ac_ext
11773cat >>conftest.$ac_ext <<_ACEOF
11774/* end confdefs.h. */
11775
11776int
11777main ()
11778{
11779#ifndef __MWERKS__
11780 choke me
11781#endif
11782
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
9dd0f6c2 11796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 bakefile_compiler_mwerks=yes
11809else
11810 echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
11813bakefile_compiler_mwerks=no
11814fi
11815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11816 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11817
11818fi
11819echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11820echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11821
0e6fa1d9 11822MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11823ac_ext=c
11824ac_cpp='$CPP $CPPFLAGS'
11825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11827ac_compiler_gnu=$ac_cv_c_compiler_gnu
11828
11829
6dcfc289 11830 ac_ext=c
9273ffba
DE
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
11836echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11837echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11838if test "${wx_cv_c_compiler_xlc+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11840else
11841 cat >conftest.$ac_ext <<_ACEOF
11842/* confdefs.h. */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h. */
11847
11848int
11849main ()
11850{
11851#ifndef __xlC__
11852 choke me
11853#endif
11854
11855 ;
11856 return 0;
11857}
11858_ACEOF
11859rm -f conftest.$ac_objext
11860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11861 (eval $ac_compile) 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
9dd0f6c2 11868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; } &&
11874 { ac_try='test -s conftest.$ac_objext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 wx_compiler_xlc=yes
11881else
11882 echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
11884
11885wx_compiler_xlc=no
11886fi
11887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11888 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11889
11890fi
11891echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11892echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11893
0e6fa1d9 11894XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11895ac_ext=c
11896ac_cpp='$CPP $CPPFLAGS'
11897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11899ac_compiler_gnu=$ac_cv_c_compiler_gnu
11900
11901
a848cd7e 11902
6dcfc289 11903
a848cd7e
SC
11904ac_ext=c
11905ac_cpp='$CPP $CPPFLAGS'
11906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11908ac_compiler_gnu=$ac_cv_c_compiler_gnu
11909echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11910echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11911# On Suns, sometimes $CPP names a directory.
11912if test -n "$CPP" && test -d "$CPP"; then
11913 CPP=
11914fi
11915if test -z "$CPP"; then
11916 if test "${ac_cv_prog_CPP+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918else
11919 # Double quotes because CPP needs to be expanded
11920 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11921 do
11922 ac_preproc_ok=false
11923for ac_c_preproc_warn_flag in '' yes
11924do
11925 # Use a header file that comes with gcc, so configuring glibc
11926 # with a fresh cross-compiler works.
11927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11928 # <limits.h> exists even on freestanding compilers.
11929 # On the NeXT, cc -E runs the code through the compiler's parser,
11930 # not just through cpp. "Syntax error" is here to catch this case.
11931 cat >conftest.$ac_ext <<_ACEOF
11932/* confdefs.h. */
11933_ACEOF
11934cat confdefs.h >>conftest.$ac_ext
11935cat >>conftest.$ac_ext <<_ACEOF
11936/* end confdefs.h. */
11937#ifdef __STDC__
11938# include <limits.h>
11939#else
11940# include <assert.h>
11941#endif
ac1cb8d3 11942 Syntax error
a848cd7e
SC
11943_ACEOF
11944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11946 ac_status=$?
11947 grep -v '^ *+' conftest.er1 >conftest.err
11948 rm -f conftest.er1
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } >/dev/null; then
11952 if test -s conftest.err; then
11953 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11955 else
11956 ac_cpp_err=
11957 fi
11958else
11959 ac_cpp_err=yes
11960fi
11961if test -z "$ac_cpp_err"; then
11962 :
11963else
11964 echo "$as_me: failed program was:" >&5
11965sed 's/^/| /' conftest.$ac_ext >&5
11966
11967 # Broken: fails on valid input.
11968continue
11969fi
11970rm -f conftest.err conftest.$ac_ext
11971
11972 # OK, works on sane cases. Now check whether non-existent headers
11973 # can be detected and how.
11974 cat >conftest.$ac_ext <<_ACEOF
11975/* confdefs.h. */
11976_ACEOF
11977cat confdefs.h >>conftest.$ac_ext
11978cat >>conftest.$ac_ext <<_ACEOF
11979/* end confdefs.h. */
11980#include <ac_nonexistent.h>
11981_ACEOF
11982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } >/dev/null; then
11990 if test -s conftest.err; then
11991 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11993 else
11994 ac_cpp_err=
11995 fi
11996else
11997 ac_cpp_err=yes
11998fi
11999if test -z "$ac_cpp_err"; then
12000 # Broken: success on invalid input.
12001continue
12002else
12003 echo "$as_me: failed program was:" >&5
12004sed 's/^/| /' conftest.$ac_ext >&5
12005
12006 # Passes both tests.
12007ac_preproc_ok=:
12008break
12009fi
12010rm -f conftest.err conftest.$ac_ext
12011
12012done
12013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12014rm -f conftest.err conftest.$ac_ext
12015if $ac_preproc_ok; then
12016 break
12017fi
12018
12019 done
12020 ac_cv_prog_CPP=$CPP
12021
12022fi
12023 CPP=$ac_cv_prog_CPP
12024else
12025 ac_cv_prog_CPP=$CPP
12026fi
12027echo "$as_me:$LINENO: result: $CPP" >&5
12028echo "${ECHO_T}$CPP" >&6
12029ac_preproc_ok=false
12030for ac_c_preproc_warn_flag in '' yes
12031do
12032 # Use a header file that comes with gcc, so configuring glibc
12033 # with a fresh cross-compiler works.
12034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035 # <limits.h> exists even on freestanding compilers.
12036 # On the NeXT, cc -E runs the code through the compiler's parser,
12037 # not just through cpp. "Syntax error" is here to catch this case.
12038 cat >conftest.$ac_ext <<_ACEOF
12039/* confdefs.h. */
12040_ACEOF
12041cat confdefs.h >>conftest.$ac_ext
12042cat >>conftest.$ac_ext <<_ACEOF
12043/* end confdefs.h. */
12044#ifdef __STDC__
12045# include <limits.h>
12046#else
12047# include <assert.h>
12048#endif
ac1cb8d3 12049 Syntax error
a848cd7e
SC
12050_ACEOF
12051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12053 ac_status=$?
12054 grep -v '^ *+' conftest.er1 >conftest.err
12055 rm -f conftest.er1
12056 cat conftest.err >&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } >/dev/null; then
12059 if test -s conftest.err; then
12060 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12062 else
12063 ac_cpp_err=
12064 fi
12065else
12066 ac_cpp_err=yes
12067fi
12068if test -z "$ac_cpp_err"; then
12069 :
12070else
12071 echo "$as_me: failed program was:" >&5
12072sed 's/^/| /' conftest.$ac_ext >&5
12073
12074 # Broken: fails on valid input.
12075continue
12076fi
12077rm -f conftest.err conftest.$ac_ext
12078
12079 # OK, works on sane cases. Now check whether non-existent headers
12080 # can be detected and how.
12081 cat >conftest.$ac_ext <<_ACEOF
12082/* confdefs.h. */
12083_ACEOF
12084cat confdefs.h >>conftest.$ac_ext
12085cat >>conftest.$ac_ext <<_ACEOF
12086/* end confdefs.h. */
12087#include <ac_nonexistent.h>
12088_ACEOF
12089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } >/dev/null; then
12097 if test -s conftest.err; then
12098 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12100 else
12101 ac_cpp_err=
12102 fi
12103else
12104 ac_cpp_err=yes
12105fi
12106if test -z "$ac_cpp_err"; then
12107 # Broken: success on invalid input.
12108continue
12109else
12110 echo "$as_me: failed program was:" >&5
12111sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 # Passes both tests.
12114ac_preproc_ok=:
12115break
12116fi
12117rm -f conftest.err conftest.$ac_ext
12118
12119done
12120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12121rm -f conftest.err conftest.$ac_ext
12122if $ac_preproc_ok; then
12123 :
12124else
12125 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12126See \`config.log' for more details." >&5
12127echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12128See \`config.log' for more details." >&2;}
12129 { (exit 1); exit 1; }; }
12130fi
12131
12132ac_ext=c
12133ac_cpp='$CPP $CPPFLAGS'
12134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12136ac_compiler_gnu=$ac_cv_c_compiler_gnu
12137
12138
12139echo "$as_me:$LINENO: checking for egrep" >&5
12140echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12141if test "${ac_cv_prog_egrep+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143else
12144 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12145 then ac_cv_prog_egrep='grep -E'
12146 else ac_cv_prog_egrep='egrep'
12147 fi
12148fi
12149echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12150echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12151 EGREP=$ac_cv_prog_egrep
12152
12153
12154if test $ac_cv_c_compiler_gnu = yes; then
12155 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12156echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12157if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159else
12160 ac_pattern="Autoconf.*'x'"
12161 cat >conftest.$ac_ext <<_ACEOF
12162/* confdefs.h. */
12163_ACEOF
12164cat confdefs.h >>conftest.$ac_ext
12165cat >>conftest.$ac_ext <<_ACEOF
12166/* end confdefs.h. */
12167#include <sgtty.h>
12168Autoconf TIOCGETP
12169_ACEOF
12170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12171 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12172 ac_cv_prog_gcc_traditional=yes
12173else
12174 ac_cv_prog_gcc_traditional=no
12175fi
12176rm -f conftest*
12177
12178
12179 if test $ac_cv_prog_gcc_traditional = no; then
12180 cat >conftest.$ac_ext <<_ACEOF
12181/* confdefs.h. */
12182_ACEOF
12183cat confdefs.h >>conftest.$ac_ext
12184cat >>conftest.$ac_ext <<_ACEOF
12185/* end confdefs.h. */
12186#include <termio.h>
12187Autoconf TCGETA
12188_ACEOF
12189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12190 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12191 ac_cv_prog_gcc_traditional=yes
12192fi
12193rm -f conftest*
12194
12195 fi
12196fi
12197echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12198echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12199 if test $ac_cv_prog_gcc_traditional = yes; then
12200 CC="$CC -traditional"
12201 fi
12202fi
12203
12204
12205
12206
12207ac_ext=cc
12208ac_cpp='$CXXCPP $CPPFLAGS'
12209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12212
12213
12214CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12215
12216
12217 ac_ext=cc
a848cd7e
SC
12218ac_cpp='$CXXCPP $CPPFLAGS'
12219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12222if test -n "$ac_tool_prefix"; then
12223 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12224 do
12225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12227echo "$as_me:$LINENO: checking for $ac_word" >&5
12228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12229if test "${ac_cv_prog_CXX+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231else
12232 if test -n "$CXX"; then
12233 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12234else
12235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12244 break 2
12245 fi
12246done
12247done
12248
12249fi
12250fi
12251CXX=$ac_cv_prog_CXX
12252if test -n "$CXX"; then
12253 echo "$as_me:$LINENO: result: $CXX" >&5
12254echo "${ECHO_T}$CXX" >&6
12255else
12256 echo "$as_me:$LINENO: result: no" >&5
12257echo "${ECHO_T}no" >&6
12258fi
12259
12260 test -n "$CXX" && break
12261 done
12262fi
12263if test -z "$CXX"; then
12264 ac_ct_CXX=$CXX
12265 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12266do
12267 # Extract the first word of "$ac_prog", so it can be a program name with args.
12268set dummy $ac_prog; ac_word=$2
12269echo "$as_me:$LINENO: checking for $ac_word" >&5
12270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12271if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273else
12274 if test -n "$ac_ct_CXX"; then
12275 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12276else
12277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278for as_dir in $PATH
12279do
12280 IFS=$as_save_IFS
12281 test -z "$as_dir" && as_dir=.
12282 for ac_exec_ext in '' $ac_executable_extensions; do
12283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12284 ac_cv_prog_ac_ct_CXX="$ac_prog"
12285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12286 break 2
12287 fi
12288done
12289done
12290
12291fi
12292fi
12293ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12294if test -n "$ac_ct_CXX"; then
12295 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12296echo "${ECHO_T}$ac_ct_CXX" >&6
12297else
12298 echo "$as_me:$LINENO: result: no" >&5
12299echo "${ECHO_T}no" >&6
12300fi
12301
12302 test -n "$ac_ct_CXX" && break
12303done
12304test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12305
12306 CXX=$ac_ct_CXX
12307fi
12308
12309
12310# Provide some information about the compiler.
12311echo "$as_me:$LINENO:" \
12312 "checking for C++ compiler version" >&5
12313ac_compiler=`set X $ac_compile; echo $2`
12314{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12315 (eval $ac_compiler --version </dev/null >&5) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }
12319{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12320 (eval $ac_compiler -v </dev/null >&5) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }
12324{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12325 (eval $ac_compiler -V </dev/null >&5) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }
12329
12330echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12331echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12332if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12334else
12335 cat >conftest.$ac_ext <<_ACEOF
12336/* confdefs.h. */
12337_ACEOF
12338cat confdefs.h >>conftest.$ac_ext
12339cat >>conftest.$ac_ext <<_ACEOF
12340/* end confdefs.h. */
12341
12342int
12343main ()
12344{
12345#ifndef __GNUC__
12346 choke me
12347#endif
12348
12349 ;
12350 return 0;
12351}
12352_ACEOF
12353rm -f conftest.$ac_objext
12354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12355 (eval $ac_compile) 2>conftest.er1
a848cd7e 12356 ac_status=$?
ac1cb8d3
VS
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
a848cd7e
SC
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
9dd0f6c2 12362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_compiler_gnu=yes
12375else
12376 echo "$as_me: failed program was:" >&5
12377sed 's/^/| /' conftest.$ac_ext >&5
12378
12379ac_compiler_gnu=no
12380fi
ac1cb8d3 12381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12382ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12383
12384fi
12385echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12386echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12387GXX=`test $ac_compiler_gnu = yes && echo yes`
12388ac_test_CXXFLAGS=${CXXFLAGS+set}
12389ac_save_CXXFLAGS=$CXXFLAGS
12390CXXFLAGS="-g"
12391echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12392echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12393if test "${ac_cv_prog_cxx_g+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395else
12396 cat >conftest.$ac_ext <<_ACEOF
12397/* confdefs.h. */
12398_ACEOF
12399cat confdefs.h >>conftest.$ac_ext
12400cat >>conftest.$ac_ext <<_ACEOF
12401/* end confdefs.h. */
12402
12403int
12404main ()
12405{
12406
12407 ;
12408 return 0;
12409}
12410_ACEOF
12411rm -f conftest.$ac_objext
12412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12413 (eval $ac_compile) 2>conftest.er1
a848cd7e 12414 ac_status=$?
ac1cb8d3
VS
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
a848cd7e
SC
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
9dd0f6c2 12420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; } &&
12426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
12432 ac_cv_prog_cxx_g=yes
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437ac_cv_prog_cxx_g=no
12438fi
ac1cb8d3 12439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12440fi
12441echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12442echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12443if test "$ac_test_CXXFLAGS" = set; then
12444 CXXFLAGS=$ac_save_CXXFLAGS
12445elif test $ac_cv_prog_cxx_g = yes; then
12446 if test "$GXX" = yes; then
52ada004 12447 CXXFLAGS="-g -O2"
a848cd7e 12448 else
52ada004 12449 CXXFLAGS="-g"
a848cd7e
SC
12450 fi
12451else
12452 if test "$GXX" = yes; then
12453 CXXFLAGS="-O2"
12454 else
12455 CXXFLAGS=
12456 fi
12457fi
12458for ac_declaration in \
ac1cb8d3 12459 '' \
a848cd7e
SC
12460 'extern "C" void std::exit (int) throw (); using std::exit;' \
12461 'extern "C" void std::exit (int); using std::exit;' \
12462 'extern "C" void exit (int) throw ();' \
12463 'extern "C" void exit (int);' \
12464 'void exit (int);'
12465do
12466 cat >conftest.$ac_ext <<_ACEOF
12467/* confdefs.h. */
12468_ACEOF
12469cat confdefs.h >>conftest.$ac_ext
12470cat >>conftest.$ac_ext <<_ACEOF
12471/* end confdefs.h. */
de59c161 12472$ac_declaration
ac1cb8d3 12473#include <stdlib.h>
a848cd7e
SC
12474int
12475main ()
12476{
12477exit (42);
12478 ;
12479 return 0;
12480}
12481_ACEOF
12482rm -f conftest.$ac_objext
12483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12484 (eval $ac_compile) 2>conftest.er1
a848cd7e 12485 ac_status=$?
ac1cb8d3
VS
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
a848cd7e
SC
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
9dd0f6c2 12491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 :
12504else
12505 echo "$as_me: failed program was:" >&5
12506sed 's/^/| /' conftest.$ac_ext >&5
12507
12508continue
12509fi
ac1cb8d3 12510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12511 cat >conftest.$ac_ext <<_ACEOF
12512/* confdefs.h. */
12513_ACEOF
12514cat confdefs.h >>conftest.$ac_ext
12515cat >>conftest.$ac_ext <<_ACEOF
12516/* end confdefs.h. */
12517$ac_declaration
12518int
12519main ()
12520{
12521exit (42);
12522 ;
12523 return 0;
12524}
12525_ACEOF
12526rm -f conftest.$ac_objext
12527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12528 (eval $ac_compile) 2>conftest.er1
a848cd7e 12529 ac_status=$?
ac1cb8d3
VS
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
a848cd7e
SC
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
9dd0f6c2 12535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 break
12548else
12549 echo "$as_me: failed program was:" >&5
12550sed 's/^/| /' conftest.$ac_ext >&5
12551
12552fi
ac1cb8d3 12553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12554done
12555rm -f conftest*
12556if test -n "$ac_declaration"; then
12557 echo '#ifdef __cplusplus' >>confdefs.h
12558 echo $ac_declaration >>confdefs.h
12559 echo '#endif' >>confdefs.h
12560fi
12561
12562ac_ext=cc
12563ac_cpp='$CXXCPP $CPPFLAGS'
12564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12567
6dcfc289 12568 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12569echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12570if test "${wx_cv_cxx_exto+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572else
12573 cat >conftest.$ac_ext <<_ACEOF
12574/* confdefs.h. */
12575_ACEOF
12576cat confdefs.h >>conftest.$ac_ext
12577cat >>conftest.$ac_ext <<_ACEOF
12578/* end confdefs.h. */
12579
12580int
12581main ()
12582{
12583
12584 ;
12585 return 0;
12586}
12587_ACEOF
12588rm -f conftest.$ac_objext conftest.$ac_ext.o
12589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12590 (eval $ac_compile) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; then
12594 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12595 case $ac_file in
12596 conftest.$ac_ext.o)
12597 wx_cv_cxx_exto="-ext o"
12598 ;;
12599 *)
12600 ;;
12601 esac
12602done
12603else
12604 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12605See \`config.log' for more details." >&5
12606echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12607See \`config.log' for more details." >&2;}
12608 { (exit 1); exit 1; }; }
12609
12610fi
12611
12612rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12613
12614fi
12615echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12616echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12617if test "x$wx_cv_cxx_exto" '!=' "x"; then
12618 if test "cxx" = "c"; then
12619 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12620 fi
12621 if test "cxx" = "cxx"; then
12622 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12623 fi
12624fi
12625
6dcfc289
DE
12626 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12627 unset ac_cv_prog_cxx_g
12628 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12629ac_save_CXXFLAGS=$CXXFLAGS
12630CXXFLAGS="-g"
12631echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12632echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12633if test "${ac_cv_prog_cxx_g+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12635else
12636 cat >conftest.$ac_ext <<_ACEOF
12637/* confdefs.h. */
12638_ACEOF
12639cat confdefs.h >>conftest.$ac_ext
12640cat >>conftest.$ac_ext <<_ACEOF
12641/* end confdefs.h. */
12642
12643int
12644main ()
12645{
12646
12647 ;
12648 return 0;
12649}
12650_ACEOF
12651rm -f conftest.$ac_objext
12652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653 (eval $ac_compile) 2>conftest.er1
12654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
9dd0f6c2 12660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; } &&
12666 { ac_try='test -s conftest.$ac_objext'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 ac_cv_prog_cxx_g=yes
12673else
12674 echo "$as_me: failed program was:" >&5
12675sed 's/^/| /' conftest.$ac_ext >&5
12676
12677ac_cv_prog_cxx_g=no
12678fi
12679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12680fi
12681echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12682echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12683if test "$ac_test_CXXFLAGS" = set; then
12684 CXXFLAGS=$ac_save_CXXFLAGS
12685elif test $ac_cv_prog_cxx_g = yes; then
12686 if test "$GXX" = yes; then
52ada004 12687 CXXFLAGS="-g -O2"
480ccd21 12688 else
52ada004 12689 CXXFLAGS="-g"
480ccd21
DE
12690 fi
12691else
12692 if test "$GXX" = yes; then
12693 CXXFLAGS="-O2"
12694 else
12695 CXXFLAGS=
12696 fi
12697fi
6dcfc289
DE
12698 fi
12699 ac_ext=cc
95986553
DE
12700ac_cpp='$CXXCPP $CPPFLAGS'
12701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12704
12705echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12706echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12707if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12709else
12710 cat >conftest.$ac_ext <<_ACEOF
12711/* confdefs.h. */
12712_ACEOF
12713cat confdefs.h >>conftest.$ac_ext
12714cat >>conftest.$ac_ext <<_ACEOF
12715/* end confdefs.h. */
12716
12717int
12718main ()
12719{
12720#ifndef __MWERKS__
12721 choke me
12722#endif
12723
12724 ;
12725 return 0;
12726}
12727_ACEOF
12728rm -f conftest.$ac_objext
12729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730 (eval $ac_compile) 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
9dd0f6c2 12737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 bakefile_compiler_mwerks=yes
12750else
12751 echo "$as_me: failed program was:" >&5
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
12754bakefile_compiler_mwerks=no
12755fi
12756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12757 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12758
12759fi
12760echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12761echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12762
0e6fa1d9 12763MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12764ac_ext=cc
12765ac_cpp='$CXXCPP $CPPFLAGS'
12766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12769
12770
6dcfc289 12771 ac_ext=cc
9273ffba
DE
12772ac_cpp='$CXXCPP $CPPFLAGS'
12773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12776
12777echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12778echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12779if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781else
12782 cat >conftest.$ac_ext <<_ACEOF
12783/* confdefs.h. */
12784_ACEOF
12785cat confdefs.h >>conftest.$ac_ext
12786cat >>conftest.$ac_ext <<_ACEOF
12787/* end confdefs.h. */
12788
12789int
12790main ()
12791{
12792#ifndef __xlC__
12793 choke me
12794#endif
12795
12796 ;
12797 return 0;
12798}
12799_ACEOF
12800rm -f conftest.$ac_objext
12801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802 (eval $ac_compile) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
9dd0f6c2 12809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest.$ac_objext'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; }; then
12821 wx_compiler_xlc=yes
12822else
12823 echo "$as_me: failed program was:" >&5
12824sed 's/^/| /' conftest.$ac_ext >&5
12825
12826wx_compiler_xlc=no
12827fi
12828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12829 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12830
12831fi
12832echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12833echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12834
0e6fa1d9 12835XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12836ac_ext=cc
12837ac_cpp='$CXXCPP $CPPFLAGS'
12838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12841
12842
95986553 12843
6dcfc289 12844
a848cd7e
SC
12845ac_ext=c
12846ac_cpp='$CPP $CPPFLAGS'
12847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12849ac_compiler_gnu=$ac_cv_c_compiler_gnu
12850
12851
a848cd7e
SC
12852if test -n "$ac_tool_prefix"; then
12853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12854set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12855echo "$as_me:$LINENO: checking for $ac_word" >&5
12856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12857if test "${ac_cv_prog_RANLIB+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12859else
12860 if test -n "$RANLIB"; then
12861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12862else
12863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12864for as_dir in $PATH
12865do
12866 IFS=$as_save_IFS
12867 test -z "$as_dir" && as_dir=.
12868 for ac_exec_ext in '' $ac_executable_extensions; do
12869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12872 break 2
12873 fi
12874done
12875done
12876
12877fi
12878fi
12879RANLIB=$ac_cv_prog_RANLIB
12880if test -n "$RANLIB"; then
12881 echo "$as_me:$LINENO: result: $RANLIB" >&5
12882echo "${ECHO_T}$RANLIB" >&6
12883else
12884 echo "$as_me:$LINENO: result: no" >&5
12885echo "${ECHO_T}no" >&6
12886fi
12887
12888fi
12889if test -z "$ac_cv_prog_RANLIB"; then
12890 ac_ct_RANLIB=$RANLIB
12891 # Extract the first word of "ranlib", so it can be a program name with args.
12892set dummy ranlib; ac_word=$2
12893echo "$as_me:$LINENO: checking for $ac_word" >&5
12894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12895if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897else
12898 if test -n "$ac_ct_RANLIB"; then
12899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12900else
12901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902for as_dir in $PATH
12903do
12904 IFS=$as_save_IFS
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12908 ac_cv_prog_ac_ct_RANLIB="ranlib"
12909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12910 break 2
12911 fi
12912done
12913done
12914
12915 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12916fi
12917fi
12918ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12919if test -n "$ac_ct_RANLIB"; then
12920 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12921echo "${ECHO_T}$ac_ct_RANLIB" >&6
12922else
12923 echo "$as_me:$LINENO: result: no" >&5
12924echo "${ECHO_T}no" >&6
12925fi
12926
12927 RANLIB=$ac_ct_RANLIB
12928else
12929 RANLIB="$ac_cv_prog_RANLIB"
12930fi
12931
12932
12933# Extract the first word of "ar", so it can be a program name with args.
12934set dummy ar; ac_word=$2
12935echo "$as_me:$LINENO: checking for $ac_word" >&5
12936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12937if test "${ac_cv_prog_AR+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939else
12940 if test -n "$AR"; then
12941 ac_cv_prog_AR="$AR" # Let the user override the test.
12942else
12943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944for as_dir in $PATH
12945do
12946 IFS=$as_save_IFS
12947 test -z "$as_dir" && as_dir=.
12948 for ac_exec_ext in '' $ac_executable_extensions; do
12949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12950 ac_cv_prog_AR="ar"
12951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12952 break 2
12953 fi
12954done
12955done
12956
12957fi
12958fi
12959AR=$ac_cv_prog_AR
12960if test -n "$AR"; then
12961 echo "$as_me:$LINENO: result: $AR" >&5
12962echo "${ECHO_T}$AR" >&6
12963else
12964 echo "$as_me:$LINENO: result: no" >&5
12965echo "${ECHO_T}no" >&6
12966fi
12967
12968if test "x$AR" = "x" ; then
77ffb593
JS
12969 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12970echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12971 { (exit 1); exit 1; }; }
12972fi
12973
12974# Find a good install program. We prefer a C program (faster),
12975# so one script is as good as another. But avoid the broken or
12976# incompatible versions:
12977# SysV /etc/install, /usr/sbin/install
12978# SunOS /usr/etc/install
12979# IRIX /sbin/install
12980# AIX /bin/install
12981# AmigaOS /C/install, which installs bootblocks on floppy discs
12982# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12983# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12984# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12985# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12986# ./install, which can be erroneously created by make from ./install.sh.
12987echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12988echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12989if test -z "$INSTALL"; then
12990if test "${ac_cv_path_install+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12992else
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994for as_dir in $PATH
12995do
12996 IFS=$as_save_IFS
12997 test -z "$as_dir" && as_dir=.
12998 # Account for people who put trailing slashes in PATH elements.
12999case $as_dir/ in
13000 ./ | .// | /cC/* | \
13001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13003 /usr/ucb/* ) ;;
13004 *)
13005 # OSF1 and SCO ODT 3.0 have their own names for install.
13006 # Don't use installbsd from OSF since it installs stuff as root
13007 # by default.
13008 for ac_prog in ginstall scoinst install; do
13009 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13010 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13011 if test $ac_prog = install &&
13012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13013 # AIX install. It has an incompatible calling convention.
13014 :
13015 elif test $ac_prog = install &&
13016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13017 # program-specific install script used by HP pwplus--don't use.
13018 :
13019 else
13020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13021 break 3
13022 fi
13023 fi
a848cd7e
SC
13024 done
13025 done
13026 ;;
13027esac
13028done
13029
13030
13031fi
13032 if test "${ac_cv_path_install+set}" = set; then
13033 INSTALL=$ac_cv_path_install
13034 else
13035 # As a last resort, use the slow shell script. We don't cache a
13036 # path for INSTALL within a source directory, because that will
13037 # break other packages using the cache if that directory is
13038 # removed, or if the path is relative.
13039 INSTALL=$ac_install_sh
13040 fi
13041fi
13042echo "$as_me:$LINENO: result: $INSTALL" >&5
13043echo "${ECHO_T}$INSTALL" >&6
13044
13045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13046# It thinks the first close brace ends the variable substitution.
13047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13048
13049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13050
13051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13052
13053
13054case ${INSTALL} in
13055 /* ) # Absolute
13056 ;;
13057 ?:* ) # Drive letter, considered as absolute.
13058 ;;
13059 *)
13060 INSTALL=`pwd`/${INSTALL} ;;
13061esac
13062
a848cd7e
SC
13063
13064case "${host}" in
13065
13066 powerpc-*-darwin* )
13067 INSTALL_PROGRAM="cp -fp"
13068 INSTALL_DATA="cp -fp"
13069 ;;
13070 *)
13071 ;;
13072esac
13073
13074# Extract the first word of "strip", so it can be a program name with args.
13075set dummy strip; ac_word=$2
13076echo "$as_me:$LINENO: checking for $ac_word" >&5
13077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13078if test "${ac_cv_prog_STRIP+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13080else
13081 if test -n "$STRIP"; then
13082 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13083else
13084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085for as_dir in $PATH
13086do
13087 IFS=$as_save_IFS
13088 test -z "$as_dir" && as_dir=.
13089 for ac_exec_ext in '' $ac_executable_extensions; do
13090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13091 ac_cv_prog_STRIP="strip"
13092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13093 break 2
13094 fi
13095done
13096done
13097
13098 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13099fi
13100fi
13101STRIP=$ac_cv_prog_STRIP
13102if test -n "$STRIP"; then
13103 echo "$as_me:$LINENO: result: $STRIP" >&5
13104echo "${ECHO_T}$STRIP" >&6
13105else
13106 echo "$as_me:$LINENO: result: no" >&5
13107echo "${ECHO_T}no" >&6
13108fi
13109
13110
13111echo "$as_me:$LINENO: checking if make is GNU make" >&5
13112echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13113if test "${wx_cv_prog_makeisgnu+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13115else
13116
13117 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13118 egrep -s GNU > /dev/null); then
13119 wx_cv_prog_makeisgnu="yes"
13120 else
13121 wx_cv_prog_makeisgnu="no"
13122 fi
13123
13124fi
13125echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13126echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13127
13128if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13129 IF_GNU_MAKE=""
13130else
13131 IF_GNU_MAKE="#"
13132fi
13133
13134
13135
13136if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13137echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13138echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13139if test "${wx_cv_prog_makevpath+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13141else
13142
13143cat - << EOF > confMake
13144check : file
13145 cp \$? \$@
13146 cp \$? final_file
13147EOF
13148
13149if test ! -d sub ; then
13150 mkdir sub
13151fi
13152echo dummy > sub/file
13153${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13154RESULT=$?
13155rm -f sub/file check final_file confMake
13156rmdir sub
13157if test "$RESULT" = 0; then
13158 wx_cv_prog_makevpath="yes"
13159else
13160 wx_cv_prog_makevpath="no"
13161fi
13162
13163fi
13164echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13165echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13166
13167if test "x$wx_cv_prog_makevpath" != "xyes"; then
13168{ { echo "$as_me:$LINENO: error:
13169You need a make-utility that is able to use the variable
13170VPATH correctly.
13171If your version of make does not support VPATH correctly,
13172please install GNU-make (possibly as gmake), and start
13173configure with the following command:
13174export MAKE=gmake; ./configure for sh-type shells
13175setenv MAKE gmake; ./configure for csh-type shells
13176Also please do remember to use gmake in this case every time
13177you are trying to compile.
13178" >&5
13179echo "$as_me: error:
13180You need a make-utility that is able to use the variable
13181VPATH correctly.
13182If your version of make does not support VPATH correctly,
13183please install GNU-make (possibly as gmake), and start
13184configure with the following command:
13185export MAKE=gmake; ./configure for sh-type shells
13186setenv MAKE gmake; ./configure for csh-type shells
13187Also please do remember to use gmake in this case every time
13188you are trying to compile.
13189" >&2;}
13190 { (exit 1); exit 1; }; }
13191fi fi
13192echo "$as_me:$LINENO: checking whether ln -s works" >&5
13193echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13194LN_S=$as_ln_s
13195if test "$LN_S" = "ln -s"; then
13196 echo "$as_me:$LINENO: result: yes" >&5
13197echo "${ECHO_T}yes" >&6
13198else
13199 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13200echo "${ECHO_T}no, using $LN_S" >&6
13201fi
13202
13203
13204
9273ffba
DE
13205if test "x$XLCXX" = "xyes"; then
13206 CXXFLAGS="$CXXFLAGS -qunique"
13207fi
13208
13209
4d7ec9f1
DE
13210case "${host}" in
13211 powerpc-*-darwin* )
13212 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13213echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13214 cat >conftest.$ac_ext <<_ACEOF
13215/* confdefs.h. */
13216_ACEOF
13217cat confdefs.h >>conftest.$ac_ext
13218cat >>conftest.$ac_ext <<_ACEOF
13219/* end confdefs.h. */
13220
13221int
13222main ()
13223{
13224#ifndef __POWERPC__
13225 choke me for lack of PowerPC
13226#endif
13227
13228 ;
13229 return 0;
13230}
13231_ACEOF
13232rm -f conftest.$ac_objext
13233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 (eval $ac_compile) 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
9dd0f6c2 13241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest.$ac_objext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 echo "$as_me:$LINENO: result: yes" >&5
13254echo "${ECHO_T}yes" >&6
13255else
13256 echo "$as_me: failed program was:" >&5
13257sed 's/^/| /' conftest.$ac_ext >&5
13258
13259echo "$as_me:$LINENO: result: no" >&5
13260echo "${ECHO_T}no" >&6
13261 cat >>confdefs.h <<\_ACEOF
13262#define __POWERPC__ 1
13263_ACEOF
13264
13265
13266fi
13267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13268 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13269echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13270 cat >conftest.$ac_ext <<_ACEOF
13271/* confdefs.h. */
13272_ACEOF
13273cat confdefs.h >>conftest.$ac_ext
13274cat >>conftest.$ac_ext <<_ACEOF
13275/* end confdefs.h. */
13276#include <CoreFoundation/CFBase.h>
13277
13278int
13279main ()
13280{
13281
13282 ;
13283 return 0;
13284}
13285_ACEOF
13286rm -f conftest.$ac_objext
13287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13288 (eval $ac_compile) 2>conftest.er1
13289 ac_status=$?
13290 grep -v '^ *+' conftest.er1 >conftest.err
13291 rm -f conftest.er1
13292 cat conftest.err >&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } &&
9dd0f6c2 13295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest.$ac_objext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 echo "$as_me:$LINENO: result: yes" >&5
13308echo "${ECHO_T}yes" >&6
13309else
13310 echo "$as_me: failed program was:" >&5
13311sed 's/^/| /' conftest.$ac_ext >&5
13312
13313echo "$as_me:$LINENO: result: no" >&5
13314echo "${ECHO_T}no" >&6
13315 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13316echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13317 cat >conftest.$ac_ext <<_ACEOF
13318/* confdefs.h. */
13319_ACEOF
13320cat confdefs.h >>conftest.$ac_ext
13321cat >>conftest.$ac_ext <<_ACEOF
13322/* end confdefs.h. */
13323#define __CF_USE_FRAMEWORK_INCLUDES__
13324#include <CoreFoundation/CFBase.h>
13325
13326int
13327main ()
13328{
13329
13330 ;
13331 return 0;
13332}
13333_ACEOF
13334rm -f conftest.$ac_objext
13335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13336 (eval $ac_compile) 2>conftest.er1
13337 ac_status=$?
13338 grep -v '^ *+' conftest.er1 >conftest.err
13339 rm -f conftest.er1
13340 cat conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } &&
9dd0f6c2 13343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345 (eval $ac_try) 2>&5
13346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try='test -s conftest.$ac_objext'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13355 echo "$as_me:$LINENO: result: yes" >&5
13356echo "${ECHO_T}yes" >&6
13357 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13358else
13359 echo "$as_me: failed program was:" >&5
13360sed 's/^/| /' conftest.$ac_ext >&5
13361
13362{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13363See \`config.log' for more details." >&5
13364echo "$as_me: error: no. CoreFoundation not available.
13365See \`config.log' for more details." >&2;}
13366 { (exit 1); exit 1; }; }
13367
13368fi
13369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13370
13371
13372fi
13373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13374 ;;
13375esac
13376
a848cd7e
SC
13377case "${host}" in
13378 *-pc-os2_emx | *-pc-os2-emx )
13379 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13380 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13381echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13382if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384else
13385 ac_check_lib_save_LIBS=$LIBS
13386LIBS="-lcExt $LIBS"
13387cat >conftest.$ac_ext <<_ACEOF
13388/* confdefs.h. */
13389_ACEOF
13390cat confdefs.h >>conftest.$ac_ext
13391cat >>conftest.$ac_ext <<_ACEOF
13392/* end confdefs.h. */
13393
13394/* Override any gcc2 internal prototype to avoid an error. */
13395#ifdef __cplusplus
13396extern "C"
13397#endif
13398/* We use char because int might match the return type of a gcc2
13399 builtin and then its argument prototype would still apply. */
13400char drand48 ();
13401int
13402main ()
13403{
13404drand48 ();
13405 ;
13406 return 0;
13407}
13408_ACEOF
13409rm -f conftest.$ac_objext conftest$ac_exeext
13410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13411 (eval $ac_link) 2>conftest.er1
a848cd7e 13412 ac_status=$?
ac1cb8d3
VS
13413 grep -v '^ *+' conftest.er1 >conftest.err
13414 rm -f conftest.er1
13415 cat conftest.err >&5
a848cd7e
SC
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
9dd0f6c2 13418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; } &&
13424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
13430 ac_cv_lib_cExt_drand48=yes
13431else
13432 echo "$as_me: failed program was:" >&5
13433sed 's/^/| /' conftest.$ac_ext >&5
13434
13435ac_cv_lib_cExt_drand48=no
13436fi
ac1cb8d3
VS
13437rm -f conftest.err conftest.$ac_objext \
13438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13439LIBS=$ac_check_lib_save_LIBS
13440fi
13441echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13442echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13443if test $ac_cv_lib_cExt_drand48 = yes; then
13444 LIBS="$LIBS -lcExt"
13445fi
13446
13447 else
13448 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13449 fi
69120ee4
VZ
13450 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13451echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13452if test "${wx_cv_gccversion+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454else
13455
391a765e
VS
13456 if test "$cross_compiling" = yes; then
13457 wx_cv_gccversion="EMX2"
13458
13459else
13460 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13461/* confdefs.h. */
13462_ACEOF
13463cat confdefs.h >>conftest.$ac_ext
13464cat >>conftest.$ac_ext <<_ACEOF
13465/* end confdefs.h. */
13466
391a765e 13467 #include <stdio.h>
a848cd7e 13468
391a765e
VS
13469 int main()
13470 {
13471 FILE *f=fopen("conftestval", "w");
13472 if (!f) exit(1);
13473 fprintf(f,
a848cd7e 13474 #if (__GNUC__ < 3)
391a765e
VS
13475 "EMX2"
13476 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13477 "EMX3"
13478 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13479 "Innotek5"
13480 #else
13481 "Innotek6"
a848cd7e 13482 #endif
391a765e
VS
13483 );
13484 exit(0);
13485 }
a848cd7e 13486
a848cd7e 13487_ACEOF
391a765e
VS
13488rm -f conftest$ac_exeext
13489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13490 (eval $ac_link) 2>&5
ac1cb8d3
VS
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
391a765e 13499 wx_cv_gccversion=`cat conftestval`
a848cd7e 13500else
391a765e
VS
13501 echo "$as_me: program exited with status $ac_status" >&5
13502echo "$as_me: failed program was:" >&5
a848cd7e
SC
13503sed 's/^/| /' conftest.$ac_ext >&5
13504
391a765e
VS
13505( exit $ac_status )
13506wx_cv_gccversion="EMX2"
a848cd7e 13507fi
391a765e 13508rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13509fi
a848cd7e
SC
13510
13511fi
13512echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13513echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13514 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13515 LIBS="$LIBS -lstdcpp"
13516 LDFLAGS="$LDFLAGS -Zsysv-signals"
13517 else
391a765e 13518 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13519 LIBS="$LIBS -lstdcxx"
13520 LDFLAGS="$LDFLAGS -Zsysv-signals"
13521 else
13522 LIBS="$LIBS -lstdc++"
13523 fi
13524 fi
94acd38e
DE
13525 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13526 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13527echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13528 wxUSE_OMF=yes
2da0c077 13529 enable_omf=yes
a848cd7e
SC
13530 fi
13531 ;;
13532 *)
13533
13534
13535
13536 ac_ext=cc
13537ac_cpp='$CXXCPP $CPPFLAGS'
13538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13541
13542
95986553 13543 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13544echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13545if test "${ac_cv_string_strcasecmp+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13547else
13548
13549 cat >conftest.$ac_ext <<_ACEOF
13550/* confdefs.h. */
13551_ACEOF
13552cat confdefs.h >>conftest.$ac_ext
13553cat >>conftest.$ac_ext <<_ACEOF
13554/* end confdefs.h. */
13555
13556 #include <string.h>
13557
13558int
13559main ()
13560{
13561
13562 strcasecmp("foo", "bar");
13563
13564 ;
13565 return 0;
13566}
13567_ACEOF
13568rm -f conftest.$ac_objext conftest$ac_exeext
13569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13570 (eval $ac_link) 2>conftest.er1
a848cd7e 13571 ac_status=$?
ac1cb8d3
VS
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
a848cd7e
SC
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
9dd0f6c2 13577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_string_strcasecmp=yes
13590else
13591 echo "$as_me: failed program was:" >&5
13592sed 's/^/| /' conftest.$ac_ext >&5
13593
13594ac_cv_string_strcasecmp=no
13595
13596fi
ac1cb8d3
VS
13597rm -f conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13599
13600fi
13601echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13602echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13603
13604 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13605 cat >>confdefs.h <<\_ACEOF
13606#define HAVE_STRCASECMP_IN_STRING_H 1
13607_ACEOF
13608
13609 else
13610 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13611echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13612if test "${ac_cv_strings_strcasecmp+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13614else
13615
13616 cat >conftest.$ac_ext <<_ACEOF
13617/* confdefs.h. */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
13621/* end confdefs.h. */
13622
13623 #include <strings.h>
13624
13625int
13626main ()
13627{
13628
13629 strcasecmp("foo", "bar");
13630
13631 ;
13632 return 0;
13633}
13634_ACEOF
13635rm -f conftest.$ac_objext conftest$ac_exeext
13636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13637 (eval $ac_link) 2>conftest.er1
a848cd7e 13638 ac_status=$?
ac1cb8d3
VS
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
a848cd7e
SC
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
9dd0f6c2 13644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; } &&
13650 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_strings_strcasecmp=yes
13657else
13658 echo "$as_me: failed program was:" >&5
13659sed 's/^/| /' conftest.$ac_ext >&5
13660
13661ac_cv_strings_strcasecmp=no
13662
13663fi
ac1cb8d3
VS
13664rm -f conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13666
13667fi
13668echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13669echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13670
0c3c69fc 13671 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13672 cat >>confdefs.h <<\_ACEOF
13673#define HAVE_STRCASECMP_IN_STRINGS_H 1
13674_ACEOF
13675
13676 else
13677 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13678echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13679 { (exit 1); exit 1; }; }
13680 fi
13681 fi
13682
13683 ac_ext=c
13684ac_cpp='$CPP $CPPFLAGS'
13685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13687ac_compiler_gnu=$ac_cv_c_compiler_gnu
13688
13689 ;;
13690esac
13691
13692
13693echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13694echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13695if test "${ac_cv_header_stdc+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13697else
13698 cat >conftest.$ac_ext <<_ACEOF
13699/* confdefs.h. */
13700_ACEOF
13701cat confdefs.h >>conftest.$ac_ext
13702cat >>conftest.$ac_ext <<_ACEOF
13703/* end confdefs.h. */
13704#include <stdlib.h>
13705#include <stdarg.h>
13706#include <string.h>
13707#include <float.h>
13708
13709int
13710main ()
13711{
13712
13713 ;
13714 return 0;
13715}
13716_ACEOF
13717rm -f conftest.$ac_objext
13718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13719 (eval $ac_compile) 2>conftest.er1
a848cd7e 13720 ac_status=$?
ac1cb8d3
VS
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
a848cd7e
SC
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
9dd0f6c2 13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; } &&
13732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_cv_header_stdc=yes
13739else
13740 echo "$as_me: failed program was:" >&5
13741sed 's/^/| /' conftest.$ac_ext >&5
13742
13743ac_cv_header_stdc=no
13744fi
ac1cb8d3 13745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13746
13747if test $ac_cv_header_stdc = yes; then
13748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13749 cat >conftest.$ac_ext <<_ACEOF
13750/* confdefs.h. */
13751_ACEOF
13752cat confdefs.h >>conftest.$ac_ext
13753cat >>conftest.$ac_ext <<_ACEOF
13754/* end confdefs.h. */
13755#include <string.h>
13756
13757_ACEOF
13758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13759 $EGREP "memchr" >/dev/null 2>&1; then
13760 :
13761else
13762 ac_cv_header_stdc=no
13763fi
13764rm -f conftest*
13765
13766fi
13767
13768if test $ac_cv_header_stdc = yes; then
13769 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13770 cat >conftest.$ac_ext <<_ACEOF
13771/* confdefs.h. */
13772_ACEOF
13773cat confdefs.h >>conftest.$ac_ext
13774cat >>conftest.$ac_ext <<_ACEOF
13775/* end confdefs.h. */
13776#include <stdlib.h>
13777
13778_ACEOF
13779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13780 $EGREP "free" >/dev/null 2>&1; then
13781 :
13782else
13783 ac_cv_header_stdc=no
13784fi
13785rm -f conftest*
13786
13787fi
13788
13789if test $ac_cv_header_stdc = yes; then
13790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13791 if test "$cross_compiling" = yes; then
13792 :
13793else
13794 cat >conftest.$ac_ext <<_ACEOF
13795/* confdefs.h. */
13796_ACEOF
13797cat confdefs.h >>conftest.$ac_ext
13798cat >>conftest.$ac_ext <<_ACEOF
13799/* end confdefs.h. */
13800#include <ctype.h>
13801#if ((' ' & 0x0FF) == 0x020)
13802# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13803# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13804#else
13805# define ISLOWER(c) \
ac1cb8d3
VS
13806 (('a' <= (c) && (c) <= 'i') \
13807 || ('j' <= (c) && (c) <= 'r') \
13808 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13809# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13810#endif
13811
13812#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13813int
13814main ()
13815{
13816 int i;
13817 for (i = 0; i < 256; i++)
13818 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13819 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13820 exit(2);
13821 exit (0);
13822}
13823_ACEOF
13824rm -f conftest$ac_exeext
13825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13826 (eval $ac_link) 2>&5
13827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13835 :
13836else
13837 echo "$as_me: program exited with status $ac_status" >&5
13838echo "$as_me: failed program was:" >&5
13839sed 's/^/| /' conftest.$ac_ext >&5
13840
13841( exit $ac_status )
13842ac_cv_header_stdc=no
13843fi
ac1cb8d3 13844rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13845fi
13846fi
13847fi
13848echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13849echo "${ECHO_T}$ac_cv_header_stdc" >&6
13850if test $ac_cv_header_stdc = yes; then
13851
13852cat >>confdefs.h <<\_ACEOF
13853#define STDC_HEADERS 1
13854_ACEOF
13855
13856fi
13857
13858# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13869 inttypes.h stdint.h unistd.h
a848cd7e
SC
13870do
13871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13872echo "$as_me:$LINENO: checking for $ac_header" >&5
13873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13874if eval "test \"\${$as_ac_Header+set}\" = set"; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877 cat >conftest.$ac_ext <<_ACEOF
13878/* confdefs.h. */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
13882/* end confdefs.h. */
13883$ac_includes_default
13884
13885#include <$ac_header>
13886_ACEOF
13887rm -f conftest.$ac_objext
13888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13889 (eval $ac_compile) 2>conftest.er1
a848cd7e 13890 ac_status=$?
ac1cb8d3
VS
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
a848cd7e
SC
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } &&
9dd0f6c2 13896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908 eval "$as_ac_Header=yes"
13909else
13910 echo "$as_me: failed program was:" >&5
13911sed 's/^/| /' conftest.$ac_ext >&5
13912
13913eval "$as_ac_Header=no"
13914fi
ac1cb8d3 13915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13916fi
13917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13919if test `eval echo '${'$as_ac_Header'}'` = yes; then
13920 cat >>confdefs.h <<_ACEOF
13921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13922_ACEOF
13923
13924fi
13925
13926done
13927
13928
13929
13930for ac_header in stdlib.h
13931do
13932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13933if eval "test \"\${$as_ac_Header+set}\" = set"; then
13934 echo "$as_me:$LINENO: checking for $ac_header" >&5
13935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13936if eval "test \"\${$as_ac_Header+set}\" = set"; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13938fi
13939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13941else
13942 # Is the header compilable?
13943echo "$as_me:$LINENO: checking $ac_header usability" >&5
13944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13945cat >conftest.$ac_ext <<_ACEOF
13946/* confdefs.h. */
13947_ACEOF
13948cat confdefs.h >>conftest.$ac_ext
13949cat >>conftest.$ac_ext <<_ACEOF
13950/* end confdefs.h. */
13951$ac_includes_default
13952#include <$ac_header>
13953_ACEOF
13954rm -f conftest.$ac_objext
13955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13956 (eval $ac_compile) 2>conftest.er1
a848cd7e 13957 ac_status=$?
ac1cb8d3
VS
13958 grep -v '^ *+' conftest.er1 >conftest.err
13959 rm -f conftest.er1
13960 cat conftest.err >&5
a848cd7e
SC
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } &&
9dd0f6c2 13963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; } &&
13969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 ac_header_compiler=yes
13976else
13977 echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
13980ac_header_compiler=no
13981fi
ac1cb8d3 13982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13983echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13984echo "${ECHO_T}$ac_header_compiler" >&6
13985
13986# Is the header present?
13987echo "$as_me:$LINENO: checking $ac_header presence" >&5
13988echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13989cat >conftest.$ac_ext <<_ACEOF
13990/* confdefs.h. */
13991_ACEOF
13992cat confdefs.h >>conftest.$ac_ext
13993cat >>conftest.$ac_ext <<_ACEOF
13994/* end confdefs.h. */
13995#include <$ac_header>
13996_ACEOF
13997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } >/dev/null; then
14005 if test -s conftest.err; then
14006 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14008 else
14009 ac_cpp_err=
14010 fi
14011else
14012 ac_cpp_err=yes
14013fi
14014if test -z "$ac_cpp_err"; then
14015 ac_header_preproc=yes
14016else
14017 echo "$as_me: failed program was:" >&5
14018sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 ac_header_preproc=no
14021fi
14022rm -f conftest.err conftest.$ac_ext
14023echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14024echo "${ECHO_T}$ac_header_preproc" >&6
14025
14026# So? What about this header?
ac1cb8d3
VS
14027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14028 yes:no: )
a848cd7e
SC
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14030echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14032echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14033 ac_header_preproc=yes
a848cd7e 14034 ;;
ac1cb8d3 14035 no:yes:* )
a848cd7e
SC
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14037echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14039echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14041echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14043echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14047echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14048 (
14049 cat <<\_ASBOX
ac1cb8d3
VS
14050## ----------------------------------------- ##
14051## Report this to wx-dev@lists.wxwidgets.org ##
14052## ----------------------------------------- ##
a848cd7e
SC
14053_ASBOX
14054 ) |
14055 sed "s/^/$as_me: WARNING: /" >&2
14056 ;;
14057esac
14058echo "$as_me:$LINENO: checking for $ac_header" >&5
14059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14060if eval "test \"\${$as_ac_Header+set}\" = set"; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062else
ac1cb8d3 14063 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14064fi
14065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14067
14068fi
14069if test `eval echo '${'$as_ac_Header'}'` = yes; then
14070 cat >>confdefs.h <<_ACEOF
14071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14072_ACEOF
14073
14074fi
14075
14076done
14077
14078
14079for ac_header in malloc.h
14080do
14081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14082if eval "test \"\${$as_ac_Header+set}\" = set"; then
14083 echo "$as_me:$LINENO: checking for $ac_header" >&5
14084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14085if eval "test \"\${$as_ac_Header+set}\" = set"; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14087fi
14088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14090else
14091 # Is the header compilable?
14092echo "$as_me:$LINENO: checking $ac_header usability" >&5
14093echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14094cat >conftest.$ac_ext <<_ACEOF
14095/* confdefs.h. */
14096_ACEOF
14097cat confdefs.h >>conftest.$ac_ext
14098cat >>conftest.$ac_ext <<_ACEOF
14099/* end confdefs.h. */
14100$ac_includes_default
14101#include <$ac_header>
14102_ACEOF
14103rm -f conftest.$ac_objext
14104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14105 (eval $ac_compile) 2>conftest.er1
a848cd7e 14106 ac_status=$?
ac1cb8d3
VS
14107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -f conftest.er1
14109 cat conftest.err >&5
a848cd7e
SC
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
9dd0f6c2 14112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14115 ac_status=$?
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; } &&
14118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
14124 ac_header_compiler=yes
14125else
14126 echo "$as_me: failed program was:" >&5
14127sed 's/^/| /' conftest.$ac_ext >&5
14128
14129ac_header_compiler=no
14130fi
ac1cb8d3 14131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14133echo "${ECHO_T}$ac_header_compiler" >&6
14134
14135# Is the header present?
14136echo "$as_me:$LINENO: checking $ac_header presence" >&5
14137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14138cat >conftest.$ac_ext <<_ACEOF
14139/* confdefs.h. */
14140_ACEOF
14141cat confdefs.h >>conftest.$ac_ext
14142cat >>conftest.$ac_ext <<_ACEOF
14143/* end confdefs.h. */
14144#include <$ac_header>
14145_ACEOF
14146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } >/dev/null; then
14154 if test -s conftest.err; then
14155 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14157 else
14158 ac_cpp_err=
14159 fi
14160else
14161 ac_cpp_err=yes
14162fi
14163if test -z "$ac_cpp_err"; then
14164 ac_header_preproc=yes
14165else
14166 echo "$as_me: failed program was:" >&5
14167sed 's/^/| /' conftest.$ac_ext >&5
14168
14169 ac_header_preproc=no
14170fi
14171rm -f conftest.err conftest.$ac_ext
14172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14173echo "${ECHO_T}$ac_header_preproc" >&6
14174
14175# So? What about this header?
ac1cb8d3
VS
14176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14177 yes:no: )
a848cd7e
SC
14178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14182 ac_header_preproc=yes
a848cd7e 14183 ;;
ac1cb8d3 14184 no:yes:* )
a848cd7e
SC
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14197 (
14198 cat <<\_ASBOX
ac1cb8d3
VS
14199## ----------------------------------------- ##
14200## Report this to wx-dev@lists.wxwidgets.org ##
14201## ----------------------------------------- ##
a848cd7e
SC
14202_ASBOX
14203 ) |
14204 sed "s/^/$as_me: WARNING: /" >&2
14205 ;;
14206esac
14207echo "$as_me:$LINENO: checking for $ac_header" >&5
14208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14209if eval "test \"\${$as_ac_Header+set}\" = set"; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14211else
ac1cb8d3 14212 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14213fi
14214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14216
14217fi
14218if test `eval echo '${'$as_ac_Header'}'` = yes; then
14219 cat >>confdefs.h <<_ACEOF
14220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14221_ACEOF
14222
14223fi
14224
14225done
14226
14227
14228for ac_header in unistd.h
14229do
14230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14231if eval "test \"\${$as_ac_Header+set}\" = set"; then
14232 echo "$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
14236fi
14237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14239else
14240 # Is the header compilable?
14241echo "$as_me:$LINENO: checking $ac_header usability" >&5
14242echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14243cat >conftest.$ac_ext <<_ACEOF
14244/* confdefs.h. */
14245_ACEOF
14246cat confdefs.h >>conftest.$ac_ext
14247cat >>conftest.$ac_ext <<_ACEOF
14248/* end confdefs.h. */
14249$ac_includes_default
14250#include <$ac_header>
14251_ACEOF
14252rm -f conftest.$ac_objext
14253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14254 (eval $ac_compile) 2>conftest.er1
a848cd7e 14255 ac_status=$?
ac1cb8d3
VS
14256 grep -v '^ *+' conftest.er1 >conftest.err
14257 rm -f conftest.er1
14258 cat conftest.err >&5
a848cd7e
SC
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } &&
9dd0f6c2 14261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14264 ac_status=$?
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; } &&
14267 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 ac_header_compiler=yes
14274else
14275 echo "$as_me: failed program was:" >&5
14276sed 's/^/| /' conftest.$ac_ext >&5
14277
14278ac_header_compiler=no
14279fi
ac1cb8d3 14280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14281echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14282echo "${ECHO_T}$ac_header_compiler" >&6
14283
14284# Is the header present?
14285echo "$as_me:$LINENO: checking $ac_header presence" >&5
14286echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14287cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
14293#include <$ac_header>
14294_ACEOF
14295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14297 ac_status=$?
14298 grep -v '^ *+' conftest.er1 >conftest.err
14299 rm -f conftest.er1
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } >/dev/null; then
14303 if test -s conftest.err; then
14304 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14306 else
14307 ac_cpp_err=
14308 fi
14309else
14310 ac_cpp_err=yes
14311fi
14312if test -z "$ac_cpp_err"; then
14313 ac_header_preproc=yes
14314else
14315 echo "$as_me: failed program was:" >&5
14316sed 's/^/| /' conftest.$ac_ext >&5
14317
14318 ac_header_preproc=no
14319fi
14320rm -f conftest.err conftest.$ac_ext
14321echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14322echo "${ECHO_T}$ac_header_preproc" >&6
14323
14324# So? What about this header?
ac1cb8d3
VS
14325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14326 yes:no: )
a848cd7e
SC
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14328echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14330echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14331 ac_header_preproc=yes
a848cd7e 14332 ;;
ac1cb8d3 14333 no:yes:* )
a848cd7e
SC
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14335echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14337echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14339echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14341echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14345echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14346 (
14347 cat <<\_ASBOX
ac1cb8d3
VS
14348## ----------------------------------------- ##
14349## Report this to wx-dev@lists.wxwidgets.org ##
14350## ----------------------------------------- ##
a848cd7e
SC
14351_ASBOX
14352 ) |
14353 sed "s/^/$as_me: WARNING: /" >&2
14354 ;;
14355esac
14356echo "$as_me:$LINENO: checking for $ac_header" >&5
14357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14358if eval "test \"\${$as_ac_Header+set}\" = set"; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360else
ac1cb8d3 14361 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14362fi
14363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14364echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14365
14366fi
14367if test `eval echo '${'$as_ac_Header'}'` = yes; then
14368 cat >>confdefs.h <<_ACEOF
14369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14370_ACEOF
14371
14372fi
14373
14374done
14375
14376
14377for ac_header in wchar.h
14378do
14379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14380if eval "test \"\${$as_ac_Header+set}\" = set"; then
14381 echo "$as_me:$LINENO: checking for $ac_header" >&5
14382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14383if eval "test \"\${$as_ac_Header+set}\" = set"; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385fi
14386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14388else
14389 # Is the header compilable?
14390echo "$as_me:$LINENO: checking $ac_header usability" >&5
14391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14392cat >conftest.$ac_ext <<_ACEOF
14393/* confdefs.h. */
14394_ACEOF
14395cat confdefs.h >>conftest.$ac_ext
14396cat >>conftest.$ac_ext <<_ACEOF
14397/* end confdefs.h. */
14398$ac_includes_default
14399#include <$ac_header>
14400_ACEOF
14401rm -f conftest.$ac_objext
14402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14403 (eval $ac_compile) 2>conftest.er1
a848cd7e 14404 ac_status=$?
ac1cb8d3
VS
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
a848cd7e
SC
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
9dd0f6c2 14410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; } &&
14416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 ac_header_compiler=yes
14423else
14424 echo "$as_me: failed program was:" >&5
14425sed 's/^/| /' conftest.$ac_ext >&5
14426
14427ac_header_compiler=no
14428fi
ac1cb8d3 14429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14431echo "${ECHO_T}$ac_header_compiler" >&6
14432
14433# Is the header present?
14434echo "$as_me:$LINENO: checking $ac_header presence" >&5
14435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14436cat >conftest.$ac_ext <<_ACEOF
14437/* confdefs.h. */
14438_ACEOF
14439cat confdefs.h >>conftest.$ac_ext
14440cat >>conftest.$ac_ext <<_ACEOF
14441/* end confdefs.h. */
14442#include <$ac_header>
14443_ACEOF
14444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14446 ac_status=$?
14447 grep -v '^ *+' conftest.er1 >conftest.err
14448 rm -f conftest.er1
14449 cat conftest.err >&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } >/dev/null; then
14452 if test -s conftest.err; then
14453 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14455 else
14456 ac_cpp_err=
14457 fi
14458else
14459 ac_cpp_err=yes
14460fi
14461if test -z "$ac_cpp_err"; then
14462 ac_header_preproc=yes
14463else
14464 echo "$as_me: failed program was:" >&5
14465sed 's/^/| /' conftest.$ac_ext >&5
14466
14467 ac_header_preproc=no
14468fi
14469rm -f conftest.err conftest.$ac_ext
14470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14471echo "${ECHO_T}$ac_header_preproc" >&6
14472
14473# So? What about this header?
ac1cb8d3
VS
14474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14475 yes:no: )
a848cd7e
SC
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14480 ac_header_preproc=yes
a848cd7e 14481 ;;
ac1cb8d3 14482 no:yes:* )
a848cd7e
SC
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14495 (
14496 cat <<\_ASBOX
ac1cb8d3
VS
14497## ----------------------------------------- ##
14498## Report this to wx-dev@lists.wxwidgets.org ##
14499## ----------------------------------------- ##
a848cd7e
SC
14500_ASBOX
14501 ) |
14502 sed "s/^/$as_me: WARNING: /" >&2
14503 ;;
14504esac
14505echo "$as_me:$LINENO: checking for $ac_header" >&5
14506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14507if eval "test \"\${$as_ac_Header+set}\" = set"; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509else
ac1cb8d3 14510 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14511fi
14512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14514
14515fi
14516if test `eval echo '${'$as_ac_Header'}'` = yes; then
14517 cat >>confdefs.h <<_ACEOF
14518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14519_ACEOF
14520
14521fi
14522
14523done
14524
14525
14526if test "$ac_cv_header_wchar_h" != "yes"; then
14527
14528for ac_header in wcstr.h
14529do
14530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14531if eval "test \"\${$as_ac_Header+set}\" = set"; then
14532 echo "$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
14536fi
14537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14539else
14540 # Is the header compilable?
14541echo "$as_me:$LINENO: checking $ac_header usability" >&5
14542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14543cat >conftest.$ac_ext <<_ACEOF
14544/* confdefs.h. */
14545_ACEOF
14546cat confdefs.h >>conftest.$ac_ext
14547cat >>conftest.$ac_ext <<_ACEOF
14548/* end confdefs.h. */
14549$ac_includes_default
14550#include <$ac_header>
14551_ACEOF
14552rm -f conftest.$ac_objext
14553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14554 (eval $ac_compile) 2>conftest.er1
a848cd7e 14555 ac_status=$?
ac1cb8d3
VS
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
a848cd7e
SC
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
9dd0f6c2 14561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; } &&
14567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 ac_header_compiler=yes
14574else
14575 echo "$as_me: failed program was:" >&5
14576sed 's/^/| /' conftest.$ac_ext >&5
14577
14578ac_header_compiler=no
14579fi
ac1cb8d3 14580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14582echo "${ECHO_T}$ac_header_compiler" >&6
14583
14584# Is the header present?
14585echo "$as_me:$LINENO: checking $ac_header presence" >&5
14586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14587cat >conftest.$ac_ext <<_ACEOF
14588/* confdefs.h. */
14589_ACEOF
14590cat confdefs.h >>conftest.$ac_ext
14591cat >>conftest.$ac_ext <<_ACEOF
14592/* end confdefs.h. */
14593#include <$ac_header>
14594_ACEOF
14595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14597 ac_status=$?
14598 grep -v '^ *+' conftest.er1 >conftest.err
14599 rm -f conftest.er1
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } >/dev/null; then
14603 if test -s conftest.err; then
14604 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14606 else
14607 ac_cpp_err=
14608 fi
14609else
14610 ac_cpp_err=yes
14611fi
14612if test -z "$ac_cpp_err"; then
14613 ac_header_preproc=yes
14614else
14615 echo "$as_me: failed program was:" >&5
14616sed 's/^/| /' conftest.$ac_ext >&5
14617
14618 ac_header_preproc=no
14619fi
14620rm -f conftest.err conftest.$ac_ext
14621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14622echo "${ECHO_T}$ac_header_preproc" >&6
14623
14624# So? What about this header?
ac1cb8d3
VS
14625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14626 yes:no: )
a848cd7e
SC
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14631 ac_header_preproc=yes
a848cd7e 14632 ;;
ac1cb8d3 14633 no:yes:* )
a848cd7e
SC
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14646 (
14647 cat <<\_ASBOX
ac1cb8d3
VS
14648## ----------------------------------------- ##
14649## Report this to wx-dev@lists.wxwidgets.org ##
14650## ----------------------------------------- ##
a848cd7e
SC
14651_ASBOX
14652 ) |
14653 sed "s/^/$as_me: WARNING: /" >&2
14654 ;;
14655esac
14656echo "$as_me:$LINENO: checking for $ac_header" >&5
14657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14658if eval "test \"\${$as_ac_Header+set}\" = set"; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14660else
ac1cb8d3 14661 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14662fi
14663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14665
14666fi
14667if test `eval echo '${'$as_ac_Header'}'` = yes; then
14668 cat >>confdefs.h <<_ACEOF
14669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14670_ACEOF
14671
14672fi
14673
14674done
14675
14676fi
14677
14678
14679for ac_header in fnmatch.h
14680do
14681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14682if eval "test \"\${$as_ac_Header+set}\" = set"; then
14683 echo "$as_me:$LINENO: checking for $ac_header" >&5
14684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14685if eval "test \"\${$as_ac_Header+set}\" = set"; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14687fi
14688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14690else
14691 # Is the header compilable?
14692echo "$as_me:$LINENO: checking $ac_header usability" >&5
14693echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14694cat >conftest.$ac_ext <<_ACEOF
14695/* confdefs.h. */
14696_ACEOF
14697cat confdefs.h >>conftest.$ac_ext
14698cat >>conftest.$ac_ext <<_ACEOF
14699/* end confdefs.h. */
14700$ac_includes_default
14701#include <$ac_header>
14702_ACEOF
14703rm -f conftest.$ac_objext
14704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14705 (eval $ac_compile) 2>conftest.er1
a848cd7e 14706 ac_status=$?
ac1cb8d3
VS
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
a848cd7e
SC
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } &&
9dd0f6c2 14712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; } &&
14718 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_header_compiler=yes
14725else
14726 echo "$as_me: failed program was:" >&5
14727sed 's/^/| /' conftest.$ac_ext >&5
14728
14729ac_header_compiler=no
14730fi
ac1cb8d3 14731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14732echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14733echo "${ECHO_T}$ac_header_compiler" >&6
14734
14735# Is the header present?
14736echo "$as_me:$LINENO: checking $ac_header presence" >&5
14737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14738cat >conftest.$ac_ext <<_ACEOF
14739/* confdefs.h. */
14740_ACEOF
14741cat confdefs.h >>conftest.$ac_ext
14742cat >>conftest.$ac_ext <<_ACEOF
14743/* end confdefs.h. */
14744#include <$ac_header>
14745_ACEOF
14746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14748 ac_status=$?
14749 grep -v '^ *+' conftest.er1 >conftest.err
14750 rm -f conftest.er1
14751 cat conftest.err >&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } >/dev/null; then
14754 if test -s conftest.err; then
14755 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14757 else
14758 ac_cpp_err=
14759 fi
14760else
14761 ac_cpp_err=yes
14762fi
14763if test -z "$ac_cpp_err"; then
14764 ac_header_preproc=yes
14765else
14766 echo "$as_me: failed program was:" >&5
14767sed 's/^/| /' conftest.$ac_ext >&5
14768
14769 ac_header_preproc=no
14770fi
14771rm -f conftest.err conftest.$ac_ext
14772echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14773echo "${ECHO_T}$ac_header_preproc" >&6
14774
14775# So? What about this header?
ac1cb8d3
VS
14776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14777 yes:no: )
a848cd7e
SC
14778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14779echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14781echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14782 ac_header_preproc=yes
a848cd7e 14783 ;;
ac1cb8d3 14784 no:yes:* )
a848cd7e
SC
14785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14786echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14788echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14790echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14792echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14794echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14796echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14797 (
14798 cat <<\_ASBOX
ac1cb8d3
VS
14799## ----------------------------------------- ##
14800## Report this to wx-dev@lists.wxwidgets.org ##
14801## ----------------------------------------- ##
a848cd7e
SC
14802_ASBOX
14803 ) |
14804 sed "s/^/$as_me: WARNING: /" >&2
14805 ;;
14806esac
14807echo "$as_me:$LINENO: checking for $ac_header" >&5
14808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14809if eval "test \"\${$as_ac_Header+set}\" = set"; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811else
ac1cb8d3 14812 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14813fi
14814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14815echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14816
14817fi
14818if test `eval echo '${'$as_ac_Header'}'` = yes; then
14819 cat >>confdefs.h <<_ACEOF
14820#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14821_ACEOF
14822
14823fi
14824
14825done
14826
14827
14828if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14829
14830for ac_func in fnmatch
14831do
14832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14833echo "$as_me:$LINENO: checking for $ac_func" >&5
14834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14835if eval "test \"\${$as_ac_var+set}\" = set"; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14837else
14838 cat >conftest.$ac_ext <<_ACEOF
14839/* confdefs.h. */
14840_ACEOF
14841cat confdefs.h >>conftest.$ac_ext
14842cat >>conftest.$ac_ext <<_ACEOF
14843/* end confdefs.h. */
ac1cb8d3
VS
14844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14846#define $ac_func innocuous_$ac_func
14847
a848cd7e
SC
14848/* System header to define __stub macros and hopefully few prototypes,
14849 which can conflict with char $ac_func (); below.
14850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14851 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14852
a848cd7e
SC
14853#ifdef __STDC__
14854# include <limits.h>
14855#else
14856# include <assert.h>
14857#endif
ac1cb8d3
VS
14858
14859#undef $ac_func
14860
a848cd7e
SC
14861/* Override any gcc2 internal prototype to avoid an error. */
14862#ifdef __cplusplus
14863extern "C"
14864{
14865#endif
14866/* We use char because int might match the return type of a gcc2
14867 builtin and then its argument prototype would still apply. */
14868char $ac_func ();
14869/* The GNU C library defines this for functions which it implements
14870 to always fail with ENOSYS. Some functions are actually named
14871 something starting with __ and the normal name is an alias. */
14872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14873choke me
14874#else
14875char (*f) () = $ac_func;
14876#endif
14877#ifdef __cplusplus
14878}
14879#endif
14880
14881int
14882main ()
14883{
14884return f != $ac_func;
14885 ;
14886 return 0;
14887}
14888_ACEOF
14889rm -f conftest.$ac_objext conftest$ac_exeext
14890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14891 (eval $ac_link) 2>conftest.er1
a848cd7e 14892 ac_status=$?
ac1cb8d3
VS
14893 grep -v '^ *+' conftest.er1 >conftest.err
14894 rm -f conftest.er1
14895 cat conftest.err >&5
a848cd7e
SC
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
9dd0f6c2 14898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; } &&
14904 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14907 ac_status=$?
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; }; then
14910 eval "$as_ac_var=yes"
14911else
14912 echo "$as_me: failed program was:" >&5
14913sed 's/^/| /' conftest.$ac_ext >&5
14914
14915eval "$as_ac_var=no"
14916fi
ac1cb8d3
VS
14917rm -f conftest.err conftest.$ac_objext \
14918 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14919fi
14920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14921echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14922if test `eval echo '${'$as_ac_var'}'` = yes; then
14923 cat >>confdefs.h <<_ACEOF
14924#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14925_ACEOF
14926
14927fi
14928done
14929
14930fi
14931
14932
14933for ac_header in langinfo.h
14934do
14935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14936if eval "test \"\${$as_ac_Header+set}\" = set"; then
14937 echo "$as_me:$LINENO: checking for $ac_header" >&5
14938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14939if eval "test \"\${$as_ac_Header+set}\" = set"; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
14941fi
14942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14944else
14945 # Is the header compilable?
14946echo "$as_me:$LINENO: checking $ac_header usability" >&5
14947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14948cat >conftest.$ac_ext <<_ACEOF
14949/* confdefs.h. */
14950_ACEOF
14951cat confdefs.h >>conftest.$ac_ext
14952cat >>conftest.$ac_ext <<_ACEOF
14953/* end confdefs.h. */
14954$ac_includes_default
14955#include <$ac_header>
14956_ACEOF
14957rm -f conftest.$ac_objext
14958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14959 (eval $ac_compile) 2>conftest.er1
a848cd7e 14960 ac_status=$?
ac1cb8d3
VS
14961 grep -v '^ *+' conftest.er1 >conftest.err
14962 rm -f conftest.er1
14963 cat conftest.err >&5
a848cd7e
SC
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } &&
9dd0f6c2 14966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; } &&
14972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
14978 ac_header_compiler=yes
14979else
14980 echo "$as_me: failed program was:" >&5
14981sed 's/^/| /' conftest.$ac_ext >&5
14982
14983ac_header_compiler=no
14984fi
ac1cb8d3 14985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14986echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14987echo "${ECHO_T}$ac_header_compiler" >&6
14988
14989# Is the header present?
14990echo "$as_me:$LINENO: checking $ac_header presence" >&5
14991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14992cat >conftest.$ac_ext <<_ACEOF
14993/* confdefs.h. */
14994_ACEOF
14995cat confdefs.h >>conftest.$ac_ext
14996cat >>conftest.$ac_ext <<_ACEOF
14997/* end confdefs.h. */
14998#include <$ac_header>
14999_ACEOF
15000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15002 ac_status=$?
15003 grep -v '^ *+' conftest.er1 >conftest.err
15004 rm -f conftest.er1
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } >/dev/null; then
15008 if test -s conftest.err; then
15009 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15011 else
15012 ac_cpp_err=
15013 fi
15014else
15015 ac_cpp_err=yes
15016fi
15017if test -z "$ac_cpp_err"; then
15018 ac_header_preproc=yes
15019else
15020 echo "$as_me: failed program was:" >&5
15021sed 's/^/| /' conftest.$ac_ext >&5
15022
15023 ac_header_preproc=no
15024fi
15025rm -f conftest.err conftest.$ac_ext
15026echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15027echo "${ECHO_T}$ac_header_preproc" >&6
15028
15029# So? What about this header?
ac1cb8d3
VS
15030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15031 yes:no: )
a848cd7e
SC
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15036 ac_header_preproc=yes
a848cd7e 15037 ;;
ac1cb8d3 15038 no:yes:* )
a848cd7e
SC
15039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15051 (
15052 cat <<\_ASBOX
ac1cb8d3
VS
15053## ----------------------------------------- ##
15054## Report this to wx-dev@lists.wxwidgets.org ##
15055## ----------------------------------------- ##
a848cd7e
SC
15056_ASBOX
15057 ) |
15058 sed "s/^/$as_me: WARNING: /" >&2
15059 ;;
15060esac
15061echo "$as_me:$LINENO: checking for $ac_header" >&5
15062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15063if eval "test \"\${$as_ac_Header+set}\" = set"; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15065else
ac1cb8d3 15066 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15067fi
15068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15070
15071fi
15072if test `eval echo '${'$as_ac_Header'}'` = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15075_ACEOF
15076
15077fi
15078
15079done
15080
15081
15082case "${host}" in
15083 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15084 if test $ac_cv_header_langinfo_h = "yes" \
15085 -a \( "$wx_cv_gccversion" = "EMX2" \
15086 -o "$wx_cv_gccversion" = "EMX3" \
15087 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15088 LIBS="$LIBS -lintl"
15089 fi
15090 ;;
15091esac
15092
15093if test "$wxUSE_GUI" = "yes"; then
15094 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15095
15096for ac_header in X11/Xlib.h
15097do
15098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15099if eval "test \"\${$as_ac_Header+set}\" = set"; then
15100 echo "$as_me:$LINENO: checking for $ac_header" >&5
15101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15102if eval "test \"\${$as_ac_Header+set}\" = set"; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15104fi
15105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15107else
15108 # Is the header compilable?
15109echo "$as_me:$LINENO: checking $ac_header usability" >&5
15110echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15111cat >conftest.$ac_ext <<_ACEOF
15112/* confdefs.h. */
15113_ACEOF
15114cat confdefs.h >>conftest.$ac_ext
15115cat >>conftest.$ac_ext <<_ACEOF
15116/* end confdefs.h. */
15117$ac_includes_default
15118#include <$ac_header>
15119_ACEOF
15120rm -f conftest.$ac_objext
15121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15122 (eval $ac_compile) 2>conftest.er1
a848cd7e 15123 ac_status=$?
ac1cb8d3
VS
15124 grep -v '^ *+' conftest.er1 >conftest.err
15125 rm -f conftest.er1
15126 cat conftest.err >&5
a848cd7e
SC
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } &&
9dd0f6c2 15129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15132 ac_status=$?
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; } &&
15135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; }; then
15141 ac_header_compiler=yes
15142else
15143 echo "$as_me: failed program was:" >&5
15144sed 's/^/| /' conftest.$ac_ext >&5
15145
15146ac_header_compiler=no
15147fi
ac1cb8d3 15148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15150echo "${ECHO_T}$ac_header_compiler" >&6
15151
15152# Is the header present?
15153echo "$as_me:$LINENO: checking $ac_header presence" >&5
15154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15155cat >conftest.$ac_ext <<_ACEOF
15156/* confdefs.h. */
15157_ACEOF
15158cat confdefs.h >>conftest.$ac_ext
15159cat >>conftest.$ac_ext <<_ACEOF
15160/* end confdefs.h. */
15161#include <$ac_header>
15162_ACEOF
15163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15165 ac_status=$?
15166 grep -v '^ *+' conftest.er1 >conftest.err
15167 rm -f conftest.er1
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } >/dev/null; then
15171 if test -s conftest.err; then
15172 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15174 else
15175 ac_cpp_err=
15176 fi
15177else
15178 ac_cpp_err=yes
15179fi
15180if test -z "$ac_cpp_err"; then
15181 ac_header_preproc=yes
15182else
15183 echo "$as_me: failed program was:" >&5
15184sed 's/^/| /' conftest.$ac_ext >&5
15185
15186 ac_header_preproc=no
15187fi
15188rm -f conftest.err conftest.$ac_ext
15189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15190echo "${ECHO_T}$ac_header_preproc" >&6
15191
15192# So? What about this header?
ac1cb8d3
VS
15193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15194 yes:no: )
a848cd7e
SC
15195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15199 ac_header_preproc=yes
a848cd7e 15200 ;;
ac1cb8d3 15201 no:yes:* )
a848cd7e
SC
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15209echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15214 (
15215 cat <<\_ASBOX
ac1cb8d3
VS
15216## ----------------------------------------- ##
15217## Report this to wx-dev@lists.wxwidgets.org ##
15218## ----------------------------------------- ##
a848cd7e
SC
15219_ASBOX
15220 ) |
15221 sed "s/^/$as_me: WARNING: /" >&2
15222 ;;
15223esac
15224echo "$as_me:$LINENO: checking for $ac_header" >&5
15225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15226if eval "test \"\${$as_ac_Header+set}\" = set"; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15228else
ac1cb8d3 15229 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15230fi
15231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15233
15234fi
15235if test `eval echo '${'$as_ac_Header'}'` = yes; then
15236 cat >>confdefs.h <<_ACEOF
15237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15238_ACEOF
15239
15240fi
15241
15242done
15243
15244
15245for ac_header in X11/XKBlib.h
15246do
15247as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15248echo "$as_me:$LINENO: checking for $ac_header" >&5
15249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15250if eval "test \"\${$as_ac_Header+set}\" = set"; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15252else
15253 cat >conftest.$ac_ext <<_ACEOF
15254/* confdefs.h. */
15255_ACEOF
15256cat confdefs.h >>conftest.$ac_ext
15257cat >>conftest.$ac_ext <<_ACEOF
15258/* end confdefs.h. */
15259
15260 #if HAVE_X11_XLIB_H
15261 #include <X11/Xlib.h>
15262 #endif
15263
15264
15265#include <$ac_header>
15266_ACEOF
15267rm -f conftest.$ac_objext
15268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15269 (eval $ac_compile) 2>conftest.er1
a848cd7e 15270 ac_status=$?
ac1cb8d3
VS
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
a848cd7e
SC
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } &&
9dd0f6c2 15276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; } &&
15282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15288 eval "$as_ac_Header=yes"
15289else
15290 echo "$as_me: failed program was:" >&5
15291sed 's/^/| /' conftest.$ac_ext >&5
15292
15293eval "$as_ac_Header=no"
15294fi
ac1cb8d3 15295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15296fi
15297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15299if test `eval echo '${'$as_ac_Header'}'` = yes; then
15300 cat >>confdefs.h <<_ACEOF
15301#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15302_ACEOF
15303
15304fi
15305
15306done
15307
15308 fi
15309fi
15310
15311
15312echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15313echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15314if test "${ac_cv_c_const+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15316else
15317 cat >conftest.$ac_ext <<_ACEOF
15318/* confdefs.h. */
15319_ACEOF
15320cat confdefs.h >>conftest.$ac_ext
15321cat >>conftest.$ac_ext <<_ACEOF
15322/* end confdefs.h. */
15323
15324int
15325main ()
15326{
15327/* FIXME: Include the comments suggested by Paul. */
15328#ifndef __cplusplus
15329 /* Ultrix mips cc rejects this. */
15330 typedef int charset[2];
15331 const charset x;
15332 /* SunOS 4.1.1 cc rejects this. */
15333 char const *const *ccp;
15334 char **p;
15335 /* NEC SVR4.0.2 mips cc rejects this. */
15336 struct point {int x, y;};
15337 static struct point const zero = {0,0};
15338 /* AIX XL C 1.02.0.0 rejects this.
15339 It does not let you subtract one const X* pointer from another in
15340 an arm of an if-expression whose if-part is not a constant
15341 expression */
15342 const char *g = "string";
15343 ccp = &g + (g ? g-g : 0);
15344 /* HPUX 7.0 cc rejects these. */
15345 ++ccp;
15346 p = (char**) ccp;
15347 ccp = (char const *const *) p;
15348 { /* SCO 3.2v4 cc rejects this. */
15349 char *t;
15350 char const *s = 0 ? (char *) 0 : (char const *) 0;
15351
15352 *t++ = 0;
15353 }
15354 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15355 int x[] = {25, 17};
15356 const int *foo = &x[0];
15357 ++foo;
15358 }
15359 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15360 typedef const int *iptr;
15361 iptr p = 0;
15362 ++p;
15363 }
15364 { /* AIX XL C 1.02.0.0 rejects this saying
15365 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15366 struct s { int j; const int *ap[3]; };
15367 struct s *b; b->j = 5;
15368 }
15369 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15370 const int foo = 10;
15371 }
15372#endif
15373
15374 ;
15375 return 0;
15376}
15377_ACEOF
15378rm -f conftest.$ac_objext
15379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15380 (eval $ac_compile) 2>conftest.er1
a848cd7e 15381 ac_status=$?
ac1cb8d3
VS
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
a848cd7e
SC
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
9dd0f6c2 15387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15399 ac_cv_c_const=yes
15400else
15401 echo "$as_me: failed program was:" >&5
15402sed 's/^/| /' conftest.$ac_ext >&5
15403
15404ac_cv_c_const=no
15405fi
ac1cb8d3 15406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15407fi
15408echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15409echo "${ECHO_T}$ac_cv_c_const" >&6
15410if test $ac_cv_c_const = no; then
15411
15412cat >>confdefs.h <<\_ACEOF
15413#define const
15414_ACEOF
15415
15416fi
15417
15418echo "$as_me:$LINENO: checking for inline" >&5
15419echo $ECHO_N "checking for inline... $ECHO_C" >&6
15420if test "${ac_cv_c_inline+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15422else
15423 ac_cv_c_inline=no
15424for ac_kw in inline __inline__ __inline; do
15425 cat >conftest.$ac_ext <<_ACEOF
15426/* confdefs.h. */
15427_ACEOF
15428cat confdefs.h >>conftest.$ac_ext
15429cat >>conftest.$ac_ext <<_ACEOF
15430/* end confdefs.h. */
15431#ifndef __cplusplus
15432typedef int foo_t;
15433static $ac_kw foo_t static_foo () {return 0; }
15434$ac_kw foo_t foo () {return 0; }
15435#endif
15436
15437_ACEOF
15438rm -f conftest.$ac_objext
15439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15440 (eval $ac_compile) 2>conftest.er1
a848cd7e 15441 ac_status=$?
ac1cb8d3
VS
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
a848cd7e
SC
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
9dd0f6c2 15447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15450 ac_status=$?
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; } &&
15453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15459 ac_cv_c_inline=$ac_kw; break
15460else
15461 echo "$as_me: failed program was:" >&5
15462sed 's/^/| /' conftest.$ac_ext >&5
15463
15464fi
ac1cb8d3 15465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15466done
15467
15468fi
15469echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15470echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15471
15472
a848cd7e
SC
15473case $ac_cv_c_inline in
15474 inline | yes) ;;
ac1cb8d3
VS
15475 *)
15476 case $ac_cv_c_inline in
15477 no) ac_val=;;
15478 *) ac_val=$ac_cv_c_inline;;
15479 esac
15480 cat >>confdefs.h <<_ACEOF
15481#ifndef __cplusplus
15482#define inline $ac_val
15483#endif
de59c161 15484_ACEOF
ac1cb8d3 15485 ;;
a848cd7e
SC
15486esac
15487
15488
15489echo "$as_me:$LINENO: checking for char" >&5
15490echo $ECHO_N "checking for char... $ECHO_C" >&6
15491if test "${ac_cv_type_char+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493else
15494 cat >conftest.$ac_ext <<_ACEOF
15495/* confdefs.h. */
15496_ACEOF
15497cat confdefs.h >>conftest.$ac_ext
15498cat >>conftest.$ac_ext <<_ACEOF
15499/* end confdefs.h. */
15500$ac_includes_default
15501int
15502main ()
15503{
15504if ((char *) 0)
15505 return 0;
15506if (sizeof (char))
15507 return 0;
15508 ;
15509 return 0;
15510}
15511_ACEOF
15512rm -f conftest.$ac_objext
15513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15514 (eval $ac_compile) 2>conftest.er1
a848cd7e 15515 ac_status=$?
ac1cb8d3
VS
15516 grep -v '^ *+' conftest.er1 >conftest.err
15517 rm -f conftest.er1
15518 cat conftest.err >&5
a848cd7e
SC
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } &&
9dd0f6c2 15521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; } &&
15527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533 ac_cv_type_char=yes
15534else
15535 echo "$as_me: failed program was:" >&5
15536sed 's/^/| /' conftest.$ac_ext >&5
15537
15538ac_cv_type_char=no
15539fi
ac1cb8d3 15540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15541fi
15542echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15543echo "${ECHO_T}$ac_cv_type_char" >&6
15544
15545echo "$as_me:$LINENO: checking size of char" >&5
15546echo $ECHO_N "checking size of char... $ECHO_C" >&6
15547if test "${ac_cv_sizeof_char+set}" = set; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15549else
15550 if test "$ac_cv_type_char" = yes; then
15551 # The cast to unsigned long works around a bug in the HP C Compiler
15552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15554 # This bug is HP SR number 8606223364.
15555 if test "$cross_compiling" = yes; then
15556 # Depending upon the size, compute the lo and hi bounds.
15557cat >conftest.$ac_ext <<_ACEOF
15558/* confdefs.h. */
15559_ACEOF
15560cat confdefs.h >>conftest.$ac_ext
15561cat >>conftest.$ac_ext <<_ACEOF
15562/* end confdefs.h. */
15563$ac_includes_default
15564int
15565main ()
15566{
15567static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15568test_array [0] = 0
15569
15570 ;
15571 return 0;
15572}
15573_ACEOF
15574rm -f conftest.$ac_objext
15575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15576 (eval $ac_compile) 2>conftest.er1
a848cd7e 15577 ac_status=$?
ac1cb8d3
VS
15578 grep -v '^ *+' conftest.er1 >conftest.err
15579 rm -f conftest.er1
15580 cat conftest.err >&5
a848cd7e
SC
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
9dd0f6c2 15583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_lo=0 ac_mid=0
15596 while :; do
15597 cat >conftest.$ac_ext <<_ACEOF
15598/* confdefs.h. */
15599_ACEOF
15600cat confdefs.h >>conftest.$ac_ext
15601cat >>conftest.$ac_ext <<_ACEOF
15602/* end confdefs.h. */
15603$ac_includes_default
15604int
15605main ()
15606{
15607static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15608test_array [0] = 0
15609
15610 ;
15611 return 0;
15612}
15613_ACEOF
15614rm -f conftest.$ac_objext
15615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15616 (eval $ac_compile) 2>conftest.er1
a848cd7e 15617 ac_status=$?
ac1cb8d3
VS
15618 grep -v '^ *+' conftest.er1 >conftest.err
15619 rm -f conftest.er1
15620 cat conftest.err >&5
a848cd7e
SC
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
9dd0f6c2 15623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; } &&
15629 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; }; then
15635 ac_hi=$ac_mid; break
15636else
15637 echo "$as_me: failed program was:" >&5
15638sed 's/^/| /' conftest.$ac_ext >&5
15639
15640ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15641 if test $ac_lo -le $ac_mid; then
15642 ac_lo= ac_hi=
15643 break
15644 fi
15645 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15646fi
ac1cb8d3 15647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15648 done
15649else
15650 echo "$as_me: failed program was:" >&5
15651sed 's/^/| /' conftest.$ac_ext >&5
15652
15653cat >conftest.$ac_ext <<_ACEOF
15654/* confdefs.h. */
15655_ACEOF
15656cat confdefs.h >>conftest.$ac_ext
15657cat >>conftest.$ac_ext <<_ACEOF
15658/* end confdefs.h. */
15659$ac_includes_default
15660int
15661main ()
15662{
15663static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15664test_array [0] = 0
15665
15666 ;
15667 return 0;
15668}
15669_ACEOF
15670rm -f conftest.$ac_objext
15671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15672 (eval $ac_compile) 2>conftest.er1
a848cd7e 15673 ac_status=$?
ac1cb8d3
VS
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
a848cd7e
SC
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
9dd0f6c2 15679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15691 ac_hi=-1 ac_mid=-1
15692 while :; do
15693 cat >conftest.$ac_ext <<_ACEOF
15694/* confdefs.h. */
15695_ACEOF
15696cat confdefs.h >>conftest.$ac_ext
15697cat >>conftest.$ac_ext <<_ACEOF
15698/* end confdefs.h. */
15699$ac_includes_default
15700int
15701main ()
15702{
15703static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15704test_array [0] = 0
15705
15706 ;
15707 return 0;
15708}
15709_ACEOF
15710rm -f conftest.$ac_objext
15711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15712 (eval $ac_compile) 2>conftest.er1
a848cd7e 15713 ac_status=$?
ac1cb8d3
VS
15714 grep -v '^ *+' conftest.er1 >conftest.err
15715 rm -f conftest.er1
15716 cat conftest.err >&5
a848cd7e
SC
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
9dd0f6c2 15719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; } &&
15725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15731 ac_lo=$ac_mid; break
15732else
15733 echo "$as_me: failed program was:" >&5
15734sed 's/^/| /' conftest.$ac_ext >&5
15735
15736ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15737 if test $ac_mid -le $ac_hi; then
15738 ac_lo= ac_hi=
15739 break
15740 fi
15741 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15742fi
ac1cb8d3 15743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15744 done
15745else
15746 echo "$as_me: failed program was:" >&5
15747sed 's/^/| /' conftest.$ac_ext >&5
15748
15749ac_lo= ac_hi=
15750fi
ac1cb8d3 15751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15752fi
ac1cb8d3 15753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15754# Binary search between lo and hi bounds.
15755while test "x$ac_lo" != "x$ac_hi"; do
15756 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15757 cat >conftest.$ac_ext <<_ACEOF
15758/* confdefs.h. */
15759_ACEOF
15760cat confdefs.h >>conftest.$ac_ext
15761cat >>conftest.$ac_ext <<_ACEOF
15762/* end confdefs.h. */
15763$ac_includes_default
15764int
15765main ()
15766{
15767static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15768test_array [0] = 0
15769
15770 ;
15771 return 0;
15772}
15773_ACEOF
15774rm -f conftest.$ac_objext
15775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15776 (eval $ac_compile) 2>conftest.er1
a848cd7e 15777 ac_status=$?
ac1cb8d3
VS
15778 grep -v '^ *+' conftest.er1 >conftest.err
15779 rm -f conftest.er1
15780 cat conftest.err >&5
a848cd7e
SC
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
9dd0f6c2 15783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_hi=$ac_mid
15796else
15797 echo "$as_me: failed program was:" >&5
15798sed 's/^/| /' conftest.$ac_ext >&5
15799
15800ac_lo=`expr '(' $ac_mid ')' + 1`
15801fi
ac1cb8d3 15802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15803done
15804case $ac_lo in
15805?*) ac_cv_sizeof_char=$ac_lo;;
15806'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15807See \`config.log' for more details." >&5
15808echo "$as_me: error: cannot compute sizeof (char), 77
15809See \`config.log' for more details." >&2;}
15810 { (exit 1); exit 1; }; } ;;
15811esac
15812else
15813 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
15814 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15815echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15816 { (exit 1); exit 1; }; }
15817else
15818 cat >conftest.$ac_ext <<_ACEOF
15819/* confdefs.h. */
15820_ACEOF
15821cat confdefs.h >>conftest.$ac_ext
15822cat >>conftest.$ac_ext <<_ACEOF
15823/* end confdefs.h. */
15824$ac_includes_default
15825long longval () { return (long) (sizeof (char)); }
15826unsigned long ulongval () { return (long) (sizeof (char)); }
15827#include <stdio.h>
15828#include <stdlib.h>
15829int
15830main ()
15831{
15832
15833 FILE *f = fopen ("conftest.val", "w");
15834 if (! f)
15835 exit (1);
15836 if (((long) (sizeof (char))) < 0)
15837 {
15838 long i = longval ();
15839 if (i != ((long) (sizeof (char))))
15840 exit (1);
15841 fprintf (f, "%ld\n", i);
15842 }
15843 else
15844 {
15845 unsigned long i = ulongval ();
15846 if (i != ((long) (sizeof (char))))
15847 exit (1);
15848 fprintf (f, "%lu\n", i);
15849 }
15850 exit (ferror (f) || fclose (f) != 0);
15851
15852 ;
15853 return 0;
15854}
15855_ACEOF
15856rm -f conftest$ac_exeext
15857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858 (eval $ac_link) 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; }; then
15867 ac_cv_sizeof_char=`cat conftest.val`
15868else
15869 echo "$as_me: program exited with status $ac_status" >&5
15870echo "$as_me: failed program was:" >&5
15871sed 's/^/| /' conftest.$ac_ext >&5
15872
15873( exit $ac_status )
15874{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15875See \`config.log' for more details." >&5
15876echo "$as_me: error: cannot compute sizeof (char), 77
15877See \`config.log' for more details." >&2;}
15878 { (exit 1); exit 1; }; }
15879fi
ac1cb8d3 15880rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15881fi
15882fi
15883rm -f conftest.val
15884else
15885 ac_cv_sizeof_char=0
15886fi
15887fi
15888echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15889echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15890cat >>confdefs.h <<_ACEOF
15891#define SIZEOF_CHAR $ac_cv_sizeof_char
15892_ACEOF
15893
15894
15895echo "$as_me:$LINENO: checking for short" >&5
15896echo $ECHO_N "checking for short... $ECHO_C" >&6
15897if test "${ac_cv_type_short+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15899else
15900 cat >conftest.$ac_ext <<_ACEOF
15901/* confdefs.h. */
15902_ACEOF
15903cat confdefs.h >>conftest.$ac_ext
15904cat >>conftest.$ac_ext <<_ACEOF
15905/* end confdefs.h. */
15906$ac_includes_default
15907int
15908main ()
15909{
15910if ((short *) 0)
15911 return 0;
15912if (sizeof (short))
15913 return 0;
15914 ;
15915 return 0;
15916}
15917_ACEOF
15918rm -f conftest.$ac_objext
15919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15920 (eval $ac_compile) 2>conftest.er1
a848cd7e 15921 ac_status=$?
ac1cb8d3
VS
15922 grep -v '^ *+' conftest.er1 >conftest.err
15923 rm -f conftest.er1
15924 cat conftest.err >&5
a848cd7e
SC
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
9dd0f6c2 15927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; } &&
15933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 ac_cv_type_short=yes
15940else
15941 echo "$as_me: failed program was:" >&5
15942sed 's/^/| /' conftest.$ac_ext >&5
15943
15944ac_cv_type_short=no
15945fi
ac1cb8d3 15946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15947fi
15948echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15949echo "${ECHO_T}$ac_cv_type_short" >&6
15950
15951echo "$as_me:$LINENO: checking size of short" >&5
15952echo $ECHO_N "checking size of short... $ECHO_C" >&6
15953if test "${ac_cv_sizeof_short+set}" = set; then
15954 echo $ECHO_N "(cached) $ECHO_C" >&6
15955else
15956 if test "$ac_cv_type_short" = yes; then
15957 # The cast to unsigned long works around a bug in the HP C Compiler
15958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15960 # This bug is HP SR number 8606223364.
15961 if test "$cross_compiling" = yes; then
15962 # Depending upon the size, compute the lo and hi bounds.
15963cat >conftest.$ac_ext <<_ACEOF
15964/* confdefs.h. */
15965_ACEOF
15966cat confdefs.h >>conftest.$ac_ext
15967cat >>conftest.$ac_ext <<_ACEOF
15968/* end confdefs.h. */
15969$ac_includes_default
15970int
15971main ()
15972{
15973static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15974test_array [0] = 0
15975
15976 ;
15977 return 0;
15978}
15979_ACEOF
15980rm -f conftest.$ac_objext
15981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15982 (eval $ac_compile) 2>conftest.er1
a848cd7e 15983 ac_status=$?
ac1cb8d3
VS
15984 grep -v '^ *+' conftest.er1 >conftest.err
15985 rm -f conftest.er1
15986 cat conftest.err >&5
a848cd7e
SC
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
9dd0f6c2 15989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ac_lo=0 ac_mid=0
16002 while :; do
16003 cat >conftest.$ac_ext <<_ACEOF
16004/* confdefs.h. */
16005_ACEOF
16006cat confdefs.h >>conftest.$ac_ext
16007cat >>conftest.$ac_ext <<_ACEOF
16008/* end confdefs.h. */
16009$ac_includes_default
16010int
16011main ()
16012{
16013static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16014test_array [0] = 0
16015
16016 ;
16017 return 0;
16018}
16019_ACEOF
16020rm -f conftest.$ac_objext
16021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16022 (eval $ac_compile) 2>conftest.er1
a848cd7e 16023 ac_status=$?
ac1cb8d3
VS
16024 grep -v '^ *+' conftest.er1 >conftest.err
16025 rm -f conftest.er1
16026 cat conftest.err >&5
a848cd7e
SC
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
9dd0f6c2 16029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; } &&
16035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; }; then
16041 ac_hi=$ac_mid; break
16042else
16043 echo "$as_me: failed program was:" >&5
16044sed 's/^/| /' conftest.$ac_ext >&5
16045
16046ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16047 if test $ac_lo -le $ac_mid; then
16048 ac_lo= ac_hi=
16049 break
16050 fi
16051 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16052fi
ac1cb8d3 16053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16054 done
16055else
16056 echo "$as_me: failed program was:" >&5
16057sed 's/^/| /' conftest.$ac_ext >&5
16058
16059cat >conftest.$ac_ext <<_ACEOF
16060/* confdefs.h. */
16061_ACEOF
16062cat confdefs.h >>conftest.$ac_ext
16063cat >>conftest.$ac_ext <<_ACEOF
16064/* end confdefs.h. */
16065$ac_includes_default
16066int
16067main ()
16068{
16069static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16070test_array [0] = 0
16071
16072 ;
16073 return 0;
16074}
16075_ACEOF
16076rm -f conftest.$ac_objext
16077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16078 (eval $ac_compile) 2>conftest.er1
a848cd7e 16079 ac_status=$?
ac1cb8d3
VS
16080 grep -v '^ *+' conftest.er1 >conftest.err
16081 rm -f conftest.er1
16082 cat conftest.err >&5
a848cd7e
SC
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } &&
9dd0f6c2 16085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097 ac_hi=-1 ac_mid=-1
16098 while :; do
16099 cat >conftest.$ac_ext <<_ACEOF
16100/* confdefs.h. */
16101_ACEOF
16102cat confdefs.h >>conftest.$ac_ext
16103cat >>conftest.$ac_ext <<_ACEOF
16104/* end confdefs.h. */
16105$ac_includes_default
16106int
16107main ()
16108{
16109static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16110test_array [0] = 0
16111
16112 ;
16113 return 0;
16114}
16115_ACEOF
16116rm -f conftest.$ac_objext
16117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16118 (eval $ac_compile) 2>conftest.er1
a848cd7e 16119 ac_status=$?
ac1cb8d3
VS
16120 grep -v '^ *+' conftest.er1 >conftest.err
16121 rm -f conftest.er1
16122 cat conftest.err >&5
a848cd7e
SC
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } &&
9dd0f6c2 16125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_lo=$ac_mid; break
16138else
16139 echo "$as_me: failed program was:" >&5
16140sed 's/^/| /' conftest.$ac_ext >&5
16141
16142ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16143 if test $ac_mid -le $ac_hi; then
16144 ac_lo= ac_hi=
16145 break
16146 fi
16147 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16148fi
ac1cb8d3 16149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16150 done
16151else
16152 echo "$as_me: failed program was:" >&5
16153sed 's/^/| /' conftest.$ac_ext >&5
16154
16155ac_lo= ac_hi=
16156fi
ac1cb8d3 16157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16158fi
ac1cb8d3 16159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16160# Binary search between lo and hi bounds.
16161while test "x$ac_lo" != "x$ac_hi"; do
16162 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16163 cat >conftest.$ac_ext <<_ACEOF
16164/* confdefs.h. */
16165_ACEOF
16166cat confdefs.h >>conftest.$ac_ext
16167cat >>conftest.$ac_ext <<_ACEOF
16168/* end confdefs.h. */
16169$ac_includes_default
16170int
16171main ()
16172{
16173static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16174test_array [0] = 0
16175
16176 ;
16177 return 0;
16178}
16179_ACEOF
16180rm -f conftest.$ac_objext
16181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16182 (eval $ac_compile) 2>conftest.er1
a848cd7e 16183 ac_status=$?
ac1cb8d3
VS
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
a848cd7e
SC
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } &&
9dd0f6c2 16189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; } &&
16195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_hi=$ac_mid
16202else
16203 echo "$as_me: failed program was:" >&5
16204sed 's/^/| /' conftest.$ac_ext >&5
16205
16206ac_lo=`expr '(' $ac_mid ')' + 1`
16207fi
ac1cb8d3 16208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16209done
16210case $ac_lo in
16211?*) ac_cv_sizeof_short=$ac_lo;;
16212'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16213See \`config.log' for more details." >&5
16214echo "$as_me: error: cannot compute sizeof (short), 77
16215See \`config.log' for more details." >&2;}
16216 { (exit 1); exit 1; }; } ;;
16217esac
16218else
16219 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16220 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16221echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16222 { (exit 1); exit 1; }; }
16223else
16224 cat >conftest.$ac_ext <<_ACEOF
16225/* confdefs.h. */
16226_ACEOF
16227cat confdefs.h >>conftest.$ac_ext
16228cat >>conftest.$ac_ext <<_ACEOF
16229/* end confdefs.h. */
16230$ac_includes_default
16231long longval () { return (long) (sizeof (short)); }
16232unsigned long ulongval () { return (long) (sizeof (short)); }
16233#include <stdio.h>
16234#include <stdlib.h>
16235int
16236main ()
16237{
16238
16239 FILE *f = fopen ("conftest.val", "w");
16240 if (! f)
16241 exit (1);
16242 if (((long) (sizeof (short))) < 0)
16243 {
16244 long i = longval ();
16245 if (i != ((long) (sizeof (short))))
16246 exit (1);
16247 fprintf (f, "%ld\n", i);
16248 }
16249 else
16250 {
16251 unsigned long i = ulongval ();
16252 if (i != ((long) (sizeof (short))))
16253 exit (1);
16254 fprintf (f, "%lu\n", i);
16255 }
16256 exit (ferror (f) || fclose (f) != 0);
16257
16258 ;
16259 return 0;
16260}
16261_ACEOF
16262rm -f conftest$ac_exeext
16263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16264 (eval $ac_link) 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16270 ac_status=$?
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; }; then
16273 ac_cv_sizeof_short=`cat conftest.val`
16274else
16275 echo "$as_me: program exited with status $ac_status" >&5
16276echo "$as_me: failed program was:" >&5
16277sed 's/^/| /' conftest.$ac_ext >&5
16278
16279( exit $ac_status )
16280{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16281See \`config.log' for more details." >&5
16282echo "$as_me: error: cannot compute sizeof (short), 77
16283See \`config.log' for more details." >&2;}
16284 { (exit 1); exit 1; }; }
16285fi
ac1cb8d3 16286rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16287fi
16288fi
16289rm -f conftest.val
16290else
16291 ac_cv_sizeof_short=0
16292fi
16293fi
16294echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16295echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16296cat >>confdefs.h <<_ACEOF
16297#define SIZEOF_SHORT $ac_cv_sizeof_short
16298_ACEOF
16299
16300
16301echo "$as_me:$LINENO: checking for void *" >&5
16302echo $ECHO_N "checking for void *... $ECHO_C" >&6
16303if test "${ac_cv_type_void_p+set}" = set; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16305else
16306 cat >conftest.$ac_ext <<_ACEOF
16307/* confdefs.h. */
16308_ACEOF
16309cat confdefs.h >>conftest.$ac_ext
16310cat >>conftest.$ac_ext <<_ACEOF
16311/* end confdefs.h. */
16312$ac_includes_default
16313int
16314main ()
16315{
16316if ((void * *) 0)
16317 return 0;
16318if (sizeof (void *))
16319 return 0;
16320 ;
16321 return 0;
16322}
16323_ACEOF
16324rm -f conftest.$ac_objext
16325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16326 (eval $ac_compile) 2>conftest.er1
a848cd7e 16327 ac_status=$?
ac1cb8d3
VS
16328 grep -v '^ *+' conftest.er1 >conftest.err
16329 rm -f conftest.er1
16330 cat conftest.err >&5
a848cd7e
SC
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } &&
9dd0f6c2 16333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335 (eval $ac_try) 2>&5
16336 ac_status=$?
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; } &&
16339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 ac_cv_type_void_p=yes
16346else
16347 echo "$as_me: failed program was:" >&5
16348sed 's/^/| /' conftest.$ac_ext >&5
16349
16350ac_cv_type_void_p=no
16351fi
ac1cb8d3 16352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16353fi
16354echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16355echo "${ECHO_T}$ac_cv_type_void_p" >&6
16356
16357echo "$as_me:$LINENO: checking size of void *" >&5
16358echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16359if test "${ac_cv_sizeof_void_p+set}" = set; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16361else
16362 if test "$ac_cv_type_void_p" = yes; then
16363 # The cast to unsigned long works around a bug in the HP C Compiler
16364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16366 # This bug is HP SR number 8606223364.
16367 if test "$cross_compiling" = yes; then
16368 # Depending upon the size, compute the lo and hi bounds.
16369cat >conftest.$ac_ext <<_ACEOF
16370/* confdefs.h. */
16371_ACEOF
16372cat confdefs.h >>conftest.$ac_ext
16373cat >>conftest.$ac_ext <<_ACEOF
16374/* end confdefs.h. */
16375$ac_includes_default
16376int
16377main ()
16378{
16379static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16380test_array [0] = 0
16381
16382 ;
16383 return 0;
16384}
16385_ACEOF
16386rm -f conftest.$ac_objext
16387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16388 (eval $ac_compile) 2>conftest.er1
a848cd7e 16389 ac_status=$?
ac1cb8d3
VS
16390 grep -v '^ *+' conftest.er1 >conftest.err
16391 rm -f conftest.er1
16392 cat conftest.err >&5
a848cd7e
SC
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } &&
9dd0f6c2 16395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16398 ac_status=$?
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; } &&
16401 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407 ac_lo=0 ac_mid=0
16408 while :; do
16409 cat >conftest.$ac_ext <<_ACEOF
16410/* confdefs.h. */
16411_ACEOF
16412cat confdefs.h >>conftest.$ac_ext
16413cat >>conftest.$ac_ext <<_ACEOF
16414/* end confdefs.h. */
16415$ac_includes_default
16416int
16417main ()
16418{
16419static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16420test_array [0] = 0
16421
16422 ;
16423 return 0;
16424}
16425_ACEOF
16426rm -f conftest.$ac_objext
16427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16428 (eval $ac_compile) 2>conftest.er1
a848cd7e 16429 ac_status=$?
ac1cb8d3
VS
16430 grep -v '^ *+' conftest.er1 >conftest.err
16431 rm -f conftest.er1
16432 cat conftest.err >&5
a848cd7e
SC
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } &&
9dd0f6c2 16435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16437 (eval $ac_try) 2>&5
16438 ac_status=$?
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; } &&
16441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 ac_hi=$ac_mid; break
16448else
16449 echo "$as_me: failed program was:" >&5
16450sed 's/^/| /' conftest.$ac_ext >&5
16451
16452ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16453 if test $ac_lo -le $ac_mid; then
16454 ac_lo= ac_hi=
16455 break
16456 fi
16457 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16458fi
ac1cb8d3 16459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16460 done
16461else
16462 echo "$as_me: failed program was:" >&5
16463sed 's/^/| /' conftest.$ac_ext >&5
16464
16465cat >conftest.$ac_ext <<_ACEOF
16466/* confdefs.h. */
16467_ACEOF
16468cat confdefs.h >>conftest.$ac_ext
16469cat >>conftest.$ac_ext <<_ACEOF
16470/* end confdefs.h. */
16471$ac_includes_default
16472int
16473main ()
16474{
16475static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16476test_array [0] = 0
16477
16478 ;
16479 return 0;
16480}
16481_ACEOF
16482rm -f conftest.$ac_objext
16483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16484 (eval $ac_compile) 2>conftest.er1
a848cd7e 16485 ac_status=$?
ac1cb8d3
VS
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
a848cd7e
SC
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
9dd0f6c2 16491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; } &&
16497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_hi=-1 ac_mid=-1
16504 while :; do
16505 cat >conftest.$ac_ext <<_ACEOF
16506/* confdefs.h. */
16507_ACEOF
16508cat confdefs.h >>conftest.$ac_ext
16509cat >>conftest.$ac_ext <<_ACEOF
16510/* end confdefs.h. */
16511$ac_includes_default
16512int
16513main ()
16514{
16515static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16516test_array [0] = 0
16517
16518 ;
16519 return 0;
16520}
16521_ACEOF
16522rm -f conftest.$ac_objext
16523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16524 (eval $ac_compile) 2>conftest.er1
a848cd7e 16525 ac_status=$?
ac1cb8d3
VS
16526 grep -v '^ *+' conftest.er1 >conftest.err
16527 rm -f conftest.er1
16528 cat conftest.err >&5
a848cd7e
SC
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } &&
9dd0f6c2 16531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16534 ac_status=$?
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; } &&
16537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 ac_lo=$ac_mid; break
16544else
16545 echo "$as_me: failed program was:" >&5
16546sed 's/^/| /' conftest.$ac_ext >&5
16547
16548ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16549 if test $ac_mid -le $ac_hi; then
16550 ac_lo= ac_hi=
16551 break
16552 fi
16553 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16554fi
ac1cb8d3 16555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16556 done
16557else
16558 echo "$as_me: failed program was:" >&5
16559sed 's/^/| /' conftest.$ac_ext >&5
16560
16561ac_lo= ac_hi=
16562fi
ac1cb8d3 16563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16564fi
ac1cb8d3 16565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16566# Binary search between lo and hi bounds.
16567while test "x$ac_lo" != "x$ac_hi"; do
16568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16569 cat >conftest.$ac_ext <<_ACEOF
16570/* confdefs.h. */
16571_ACEOF
16572cat confdefs.h >>conftest.$ac_ext
16573cat >>conftest.$ac_ext <<_ACEOF
16574/* end confdefs.h. */
16575$ac_includes_default
16576int
16577main ()
16578{
16579static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16580test_array [0] = 0
16581
16582 ;
16583 return 0;
16584}
16585_ACEOF
16586rm -f conftest.$ac_objext
16587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16588 (eval $ac_compile) 2>conftest.er1
a848cd7e 16589 ac_status=$?
ac1cb8d3
VS
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
a848cd7e
SC
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
9dd0f6c2 16595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 ac_hi=$ac_mid
16608else
16609 echo "$as_me: failed program was:" >&5
16610sed 's/^/| /' conftest.$ac_ext >&5
16611
16612ac_lo=`expr '(' $ac_mid ')' + 1`
16613fi
ac1cb8d3 16614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16615done
16616case $ac_lo in
16617?*) ac_cv_sizeof_void_p=$ac_lo;;
16618'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16619See \`config.log' for more details." >&5
16620echo "$as_me: error: cannot compute sizeof (void *), 77
16621See \`config.log' for more details." >&2;}
16622 { (exit 1); exit 1; }; } ;;
16623esac
16624else
16625 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16626 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16627echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16628 { (exit 1); exit 1; }; }
16629else
16630 cat >conftest.$ac_ext <<_ACEOF
16631/* confdefs.h. */
16632_ACEOF
16633cat confdefs.h >>conftest.$ac_ext
16634cat >>conftest.$ac_ext <<_ACEOF
16635/* end confdefs.h. */
16636$ac_includes_default
16637long longval () { return (long) (sizeof (void *)); }
16638unsigned long ulongval () { return (long) (sizeof (void *)); }
16639#include <stdio.h>
16640#include <stdlib.h>
16641int
16642main ()
16643{
16644
16645 FILE *f = fopen ("conftest.val", "w");
16646 if (! f)
16647 exit (1);
16648 if (((long) (sizeof (void *))) < 0)
16649 {
16650 long i = longval ();
16651 if (i != ((long) (sizeof (void *))))
16652 exit (1);
16653 fprintf (f, "%ld\n", i);
16654 }
16655 else
16656 {
16657 unsigned long i = ulongval ();
16658 if (i != ((long) (sizeof (void *))))
16659 exit (1);
16660 fprintf (f, "%lu\n", i);
16661 }
16662 exit (ferror (f) || fclose (f) != 0);
16663
16664 ;
16665 return 0;
16666}
16667_ACEOF
16668rm -f conftest$ac_exeext
16669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16670 (eval $ac_link) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
16679 ac_cv_sizeof_void_p=`cat conftest.val`
16680else
16681 echo "$as_me: program exited with status $ac_status" >&5
16682echo "$as_me: failed program was:" >&5
16683sed 's/^/| /' conftest.$ac_ext >&5
16684
16685( exit $ac_status )
16686{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16687See \`config.log' for more details." >&5
16688echo "$as_me: error: cannot compute sizeof (void *), 77
16689See \`config.log' for more details." >&2;}
16690 { (exit 1); exit 1; }; }
16691fi
ac1cb8d3 16692rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16693fi
16694fi
16695rm -f conftest.val
16696else
16697 ac_cv_sizeof_void_p=0
16698fi
16699fi
16700echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16701echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16702cat >>confdefs.h <<_ACEOF
16703#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16704_ACEOF
16705
16706
16707echo "$as_me:$LINENO: checking for int" >&5
16708echo $ECHO_N "checking for int... $ECHO_C" >&6
16709if test "${ac_cv_type_int+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16711else
16712 cat >conftest.$ac_ext <<_ACEOF
16713/* confdefs.h. */
16714_ACEOF
16715cat confdefs.h >>conftest.$ac_ext
16716cat >>conftest.$ac_ext <<_ACEOF
16717/* end confdefs.h. */
16718$ac_includes_default
16719int
16720main ()
16721{
16722if ((int *) 0)
16723 return 0;
16724if (sizeof (int))
16725 return 0;
16726 ;
16727 return 0;
16728}
16729_ACEOF
16730rm -f conftest.$ac_objext
16731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16732 (eval $ac_compile) 2>conftest.er1
a848cd7e 16733 ac_status=$?
ac1cb8d3
VS
16734 grep -v '^ *+' conftest.er1 >conftest.err
16735 rm -f conftest.er1
16736 cat conftest.err >&5
a848cd7e
SC
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } &&
9dd0f6c2 16739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; } &&
16745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 ac_cv_type_int=yes
16752else
16753 echo "$as_me: failed program was:" >&5
16754sed 's/^/| /' conftest.$ac_ext >&5
16755
16756ac_cv_type_int=no
16757fi
ac1cb8d3 16758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16759fi
16760echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16761echo "${ECHO_T}$ac_cv_type_int" >&6
16762
16763echo "$as_me:$LINENO: checking size of int" >&5
16764echo $ECHO_N "checking size of int... $ECHO_C" >&6
16765if test "${ac_cv_sizeof_int+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767else
16768 if test "$ac_cv_type_int" = yes; then
16769 # The cast to unsigned long works around a bug in the HP C Compiler
16770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16772 # This bug is HP SR number 8606223364.
16773 if test "$cross_compiling" = yes; then
16774 # Depending upon the size, compute the lo and hi bounds.
16775cat >conftest.$ac_ext <<_ACEOF
16776/* confdefs.h. */
16777_ACEOF
16778cat confdefs.h >>conftest.$ac_ext
16779cat >>conftest.$ac_ext <<_ACEOF
16780/* end confdefs.h. */
16781$ac_includes_default
16782int
16783main ()
16784{
16785static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16786test_array [0] = 0
16787
16788 ;
16789 return 0;
16790}
16791_ACEOF
16792rm -f conftest.$ac_objext
16793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16794 (eval $ac_compile) 2>conftest.er1
a848cd7e 16795 ac_status=$?
ac1cb8d3
VS
16796 grep -v '^ *+' conftest.er1 >conftest.err
16797 rm -f conftest.er1
16798 cat conftest.err >&5
a848cd7e
SC
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } &&
9dd0f6c2 16801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; } &&
16807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 ac_lo=0 ac_mid=0
16814 while :; do
16815 cat >conftest.$ac_ext <<_ACEOF
16816/* confdefs.h. */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h. */
16821$ac_includes_default
16822int
16823main ()
16824{
16825static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16826test_array [0] = 0
16827
16828 ;
16829 return 0;
16830}
16831_ACEOF
16832rm -f conftest.$ac_objext
16833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16834 (eval $ac_compile) 2>conftest.er1
a848cd7e 16835 ac_status=$?
ac1cb8d3
VS
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
a848cd7e
SC
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
9dd0f6c2 16841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } &&
16847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 ac_hi=$ac_mid; break
16854else
16855 echo "$as_me: failed program was:" >&5
16856sed 's/^/| /' conftest.$ac_ext >&5
16857
16858ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16859 if test $ac_lo -le $ac_mid; then
16860 ac_lo= ac_hi=
16861 break
16862 fi
16863 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16864fi
ac1cb8d3 16865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16866 done
16867else
16868 echo "$as_me: failed program was:" >&5
16869sed 's/^/| /' conftest.$ac_ext >&5
16870
16871cat >conftest.$ac_ext <<_ACEOF
16872/* confdefs.h. */
16873_ACEOF
16874cat confdefs.h >>conftest.$ac_ext
16875cat >>conftest.$ac_ext <<_ACEOF
16876/* end confdefs.h. */
16877$ac_includes_default
16878int
16879main ()
16880{
16881static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16882test_array [0] = 0
16883
16884 ;
16885 return 0;
16886}
16887_ACEOF
16888rm -f conftest.$ac_objext
16889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16890 (eval $ac_compile) 2>conftest.er1
a848cd7e 16891 ac_status=$?
ac1cb8d3
VS
16892 grep -v '^ *+' conftest.er1 >conftest.err
16893 rm -f conftest.er1
16894 cat conftest.err >&5
a848cd7e
SC
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); } &&
9dd0f6c2 16897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16909 ac_hi=-1 ac_mid=-1
16910 while :; do
16911 cat >conftest.$ac_ext <<_ACEOF
16912/* confdefs.h. */
16913_ACEOF
16914cat confdefs.h >>conftest.$ac_ext
16915cat >>conftest.$ac_ext <<_ACEOF
16916/* end confdefs.h. */
16917$ac_includes_default
16918int
16919main ()
16920{
16921static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16922test_array [0] = 0
16923
16924 ;
16925 return 0;
16926}
16927_ACEOF
16928rm -f conftest.$ac_objext
16929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16930 (eval $ac_compile) 2>conftest.er1
a848cd7e 16931 ac_status=$?
ac1cb8d3
VS
16932 grep -v '^ *+' conftest.er1 >conftest.err
16933 rm -f conftest.er1
16934 cat conftest.err >&5
a848cd7e
SC
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
9dd0f6c2 16937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 ac_lo=$ac_mid; break
16950else
16951 echo "$as_me: failed program was:" >&5
16952sed 's/^/| /' conftest.$ac_ext >&5
16953
16954ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16955 if test $ac_mid -le $ac_hi; then
16956 ac_lo= ac_hi=
16957 break
16958 fi
16959 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16960fi
ac1cb8d3 16961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16962 done
16963else
16964 echo "$as_me: failed program was:" >&5
16965sed 's/^/| /' conftest.$ac_ext >&5
16966
16967ac_lo= ac_hi=
16968fi
ac1cb8d3 16969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16970fi
ac1cb8d3 16971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16972# Binary search between lo and hi bounds.
16973while test "x$ac_lo" != "x$ac_hi"; do
16974 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16975 cat >conftest.$ac_ext <<_ACEOF
16976/* confdefs.h. */
16977_ACEOF
16978cat confdefs.h >>conftest.$ac_ext
16979cat >>conftest.$ac_ext <<_ACEOF
16980/* end confdefs.h. */
16981$ac_includes_default
16982int
16983main ()
16984{
16985static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16986test_array [0] = 0
16987
16988 ;
16989 return 0;
16990}
16991_ACEOF
16992rm -f conftest.$ac_objext
16993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16994 (eval $ac_compile) 2>conftest.er1
a848cd7e 16995 ac_status=$?
ac1cb8d3
VS
16996 grep -v '^ *+' conftest.er1 >conftest.err
16997 rm -f conftest.er1
16998 cat conftest.err >&5
a848cd7e
SC
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } &&
9dd0f6c2 17001 { ac_try='test -z "$ac_c_werror_flag" || 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_hi=$ac_mid
17014else
17015 echo "$as_me: failed program was:" >&5
17016sed 's/^/| /' conftest.$ac_ext >&5
17017
17018ac_lo=`expr '(' $ac_mid ')' + 1`
17019fi
ac1cb8d3 17020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17021done
17022case $ac_lo in
17023?*) ac_cv_sizeof_int=$ac_lo;;
17024'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17025See \`config.log' for more details." >&5
17026echo "$as_me: error: cannot compute sizeof (int), 77
17027See \`config.log' for more details." >&2;}
17028 { (exit 1); exit 1; }; } ;;
17029esac
17030else
17031 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17032 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17033echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17034 { (exit 1); exit 1; }; }
17035else
17036 cat >conftest.$ac_ext <<_ACEOF
17037/* confdefs.h. */
17038_ACEOF
17039cat confdefs.h >>conftest.$ac_ext
17040cat >>conftest.$ac_ext <<_ACEOF
17041/* end confdefs.h. */
17042$ac_includes_default
17043long longval () { return (long) (sizeof (int)); }
17044unsigned long ulongval () { return (long) (sizeof (int)); }
17045#include <stdio.h>
17046#include <stdlib.h>
17047int
17048main ()
17049{
17050
17051 FILE *f = fopen ("conftest.val", "w");
17052 if (! f)
17053 exit (1);
17054 if (((long) (sizeof (int))) < 0)
17055 {
17056 long i = longval ();
17057 if (i != ((long) (sizeof (int))))
17058 exit (1);
17059 fprintf (f, "%ld\n", i);
17060 }
17061 else
17062 {
17063 unsigned long i = ulongval ();
17064 if (i != ((long) (sizeof (int))))
17065 exit (1);
17066 fprintf (f, "%lu\n", i);
17067 }
17068 exit (ferror (f) || fclose (f) != 0);
17069
17070 ;
17071 return 0;
17072}
17073_ACEOF
17074rm -f conftest$ac_exeext
17075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17076 (eval $ac_link) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_cv_sizeof_int=`cat conftest.val`
17086else
17087 echo "$as_me: program exited with status $ac_status" >&5
17088echo "$as_me: failed program was:" >&5
17089sed 's/^/| /' conftest.$ac_ext >&5
17090
17091( exit $ac_status )
17092{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17093See \`config.log' for more details." >&5
17094echo "$as_me: error: cannot compute sizeof (int), 77
17095See \`config.log' for more details." >&2;}
17096 { (exit 1); exit 1; }; }
17097fi
ac1cb8d3 17098rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17099fi
17100fi
17101rm -f conftest.val
17102else
17103 ac_cv_sizeof_int=0
17104fi
17105fi
17106echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17107echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17108cat >>confdefs.h <<_ACEOF
17109#define SIZEOF_INT $ac_cv_sizeof_int
17110_ACEOF
17111
17112
17113echo "$as_me:$LINENO: checking for long" >&5
17114echo $ECHO_N "checking for long... $ECHO_C" >&6
17115if test "${ac_cv_type_long+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17117else
17118 cat >conftest.$ac_ext <<_ACEOF
17119/* confdefs.h. */
17120_ACEOF
17121cat confdefs.h >>conftest.$ac_ext
17122cat >>conftest.$ac_ext <<_ACEOF
17123/* end confdefs.h. */
17124$ac_includes_default
17125int
17126main ()
17127{
17128if ((long *) 0)
17129 return 0;
17130if (sizeof (long))
17131 return 0;
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext
17137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17138 (eval $ac_compile) 2>conftest.er1
a848cd7e 17139 ac_status=$?
ac1cb8d3
VS
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
a848cd7e
SC
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
9dd0f6c2 17145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; } &&
17151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 ac_cv_type_long=yes
17158else
17159 echo "$as_me: failed program was:" >&5
17160sed 's/^/| /' conftest.$ac_ext >&5
17161
17162ac_cv_type_long=no
17163fi
ac1cb8d3 17164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17165fi
17166echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17167echo "${ECHO_T}$ac_cv_type_long" >&6
17168
17169echo "$as_me:$LINENO: checking size of long" >&5
17170echo $ECHO_N "checking size of long... $ECHO_C" >&6
17171if test "${ac_cv_sizeof_long+set}" = set; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17173else
17174 if test "$ac_cv_type_long" = yes; then
17175 # The cast to unsigned long works around a bug in the HP C Compiler
17176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17178 # This bug is HP SR number 8606223364.
17179 if test "$cross_compiling" = yes; then
17180 # Depending upon the size, compute the lo and hi bounds.
17181cat >conftest.$ac_ext <<_ACEOF
17182/* confdefs.h. */
17183_ACEOF
17184cat confdefs.h >>conftest.$ac_ext
17185cat >>conftest.$ac_ext <<_ACEOF
17186/* end confdefs.h. */
17187$ac_includes_default
17188int
17189main ()
17190{
17191static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17192test_array [0] = 0
17193
17194 ;
17195 return 0;
17196}
17197_ACEOF
17198rm -f conftest.$ac_objext
17199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17200 (eval $ac_compile) 2>conftest.er1
a848cd7e 17201 ac_status=$?
ac1cb8d3
VS
17202 grep -v '^ *+' conftest.er1 >conftest.err
17203 rm -f conftest.er1
17204 cat conftest.err >&5
a848cd7e
SC
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } &&
9dd0f6c2 17207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; } &&
17213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17219 ac_lo=0 ac_mid=0
17220 while :; do
17221 cat >conftest.$ac_ext <<_ACEOF
17222/* confdefs.h. */
17223_ACEOF
17224cat confdefs.h >>conftest.$ac_ext
17225cat >>conftest.$ac_ext <<_ACEOF
17226/* end confdefs.h. */
17227$ac_includes_default
17228int
17229main ()
17230{
17231static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17232test_array [0] = 0
17233
17234 ;
17235 return 0;
17236}
17237_ACEOF
17238rm -f conftest.$ac_objext
17239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17240 (eval $ac_compile) 2>conftest.er1
a848cd7e 17241 ac_status=$?
ac1cb8d3
VS
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
a848cd7e
SC
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
9dd0f6c2 17247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; } &&
17253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255 (eval $ac_try) 2>&5
17256 ac_status=$?
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; }; then
17259 ac_hi=$ac_mid; break
17260else
17261 echo "$as_me: failed program was:" >&5
17262sed 's/^/| /' conftest.$ac_ext >&5
17263
17264ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17265 if test $ac_lo -le $ac_mid; then
17266 ac_lo= ac_hi=
17267 break
17268 fi
17269 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17270fi
ac1cb8d3 17271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17272 done
17273else
17274 echo "$as_me: failed program was:" >&5
17275sed 's/^/| /' conftest.$ac_ext >&5
17276
17277cat >conftest.$ac_ext <<_ACEOF
17278/* confdefs.h. */
17279_ACEOF
17280cat confdefs.h >>conftest.$ac_ext
17281cat >>conftest.$ac_ext <<_ACEOF
17282/* end confdefs.h. */
17283$ac_includes_default
17284int
17285main ()
17286{
17287static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17288test_array [0] = 0
17289
17290 ;
17291 return 0;
17292}
17293_ACEOF
17294rm -f conftest.$ac_objext
17295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17296 (eval $ac_compile) 2>conftest.er1
a848cd7e 17297 ac_status=$?
ac1cb8d3
VS
17298 grep -v '^ *+' conftest.er1 >conftest.err
17299 rm -f conftest.er1
17300 cat conftest.err >&5
a848cd7e
SC
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } &&
9dd0f6c2 17303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; } &&
17309 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; }; then
17315 ac_hi=-1 ac_mid=-1
17316 while :; do
17317 cat >conftest.$ac_ext <<_ACEOF
17318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
17323$ac_includes_default
17324int
17325main ()
17326{
17327static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17328test_array [0] = 0
17329
17330 ;
17331 return 0;
17332}
17333_ACEOF
17334rm -f conftest.$ac_objext
17335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17336 (eval $ac_compile) 2>conftest.er1
a848cd7e 17337 ac_status=$?
ac1cb8d3
VS
17338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
a848cd7e
SC
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
9dd0f6c2 17343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; } &&
17349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_lo=$ac_mid; break
17356else
17357 echo "$as_me: failed program was:" >&5
17358sed 's/^/| /' conftest.$ac_ext >&5
17359
17360ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17361 if test $ac_mid -le $ac_hi; then
17362 ac_lo= ac_hi=
17363 break
17364 fi
17365 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17366fi
ac1cb8d3 17367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17368 done
17369else
17370 echo "$as_me: failed program was:" >&5
17371sed 's/^/| /' conftest.$ac_ext >&5
17372
17373ac_lo= ac_hi=
17374fi
ac1cb8d3 17375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17376fi
ac1cb8d3 17377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17378# Binary search between lo and hi bounds.
17379while test "x$ac_lo" != "x$ac_hi"; do
17380 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17381 cat >conftest.$ac_ext <<_ACEOF
17382/* confdefs.h. */
17383_ACEOF
17384cat confdefs.h >>conftest.$ac_ext
17385cat >>conftest.$ac_ext <<_ACEOF
17386/* end confdefs.h. */
17387$ac_includes_default
17388int
17389main ()
17390{
17391static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17392test_array [0] = 0
17393
17394 ;
17395 return 0;
17396}
17397_ACEOF
17398rm -f conftest.$ac_objext
17399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17400 (eval $ac_compile) 2>conftest.er1
a848cd7e 17401 ac_status=$?
ac1cb8d3
VS
17402 grep -v '^ *+' conftest.er1 >conftest.err
17403 rm -f conftest.er1
17404 cat conftest.err >&5
a848cd7e
SC
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
9dd0f6c2 17407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; } &&
17413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415 (eval $ac_try) 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; }; then
17419 ac_hi=$ac_mid
17420else
17421 echo "$as_me: failed program was:" >&5
17422sed 's/^/| /' conftest.$ac_ext >&5
17423
17424ac_lo=`expr '(' $ac_mid ')' + 1`
17425fi
ac1cb8d3 17426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17427done
17428case $ac_lo in
17429?*) ac_cv_sizeof_long=$ac_lo;;
17430'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17431See \`config.log' for more details." >&5
17432echo "$as_me: error: cannot compute sizeof (long), 77
17433See \`config.log' for more details." >&2;}
17434 { (exit 1); exit 1; }; } ;;
17435esac
17436else
17437 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17438 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17439echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17440 { (exit 1); exit 1; }; }
17441else
17442 cat >conftest.$ac_ext <<_ACEOF
17443/* confdefs.h. */
17444_ACEOF
17445cat confdefs.h >>conftest.$ac_ext
17446cat >>conftest.$ac_ext <<_ACEOF
17447/* end confdefs.h. */
17448$ac_includes_default
17449long longval () { return (long) (sizeof (long)); }
17450unsigned long ulongval () { return (long) (sizeof (long)); }
17451#include <stdio.h>
17452#include <stdlib.h>
17453int
17454main ()
17455{
17456
17457 FILE *f = fopen ("conftest.val", "w");
17458 if (! f)
17459 exit (1);
17460 if (((long) (sizeof (long))) < 0)
17461 {
17462 long i = longval ();
17463 if (i != ((long) (sizeof (long))))
17464 exit (1);
17465 fprintf (f, "%ld\n", i);
17466 }
17467 else
17468 {
17469 unsigned long i = ulongval ();
17470 if (i != ((long) (sizeof (long))))
17471 exit (1);
17472 fprintf (f, "%lu\n", i);
17473 }
17474 exit (ferror (f) || fclose (f) != 0);
17475
17476 ;
17477 return 0;
17478}
17479_ACEOF
17480rm -f conftest$ac_exeext
17481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17482 (eval $ac_link) 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 ac_cv_sizeof_long=`cat conftest.val`
17492else
17493 echo "$as_me: program exited with status $ac_status" >&5
17494echo "$as_me: failed program was:" >&5
17495sed 's/^/| /' conftest.$ac_ext >&5
17496
17497( exit $ac_status )
17498{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17499See \`config.log' for more details." >&5
17500echo "$as_me: error: cannot compute sizeof (long), 77
17501See \`config.log' for more details." >&2;}
17502 { (exit 1); exit 1; }; }
17503fi
ac1cb8d3 17504rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17505fi
17506fi
17507rm -f conftest.val
17508else
17509 ac_cv_sizeof_long=0
17510fi
17511fi
17512echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17513echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17514cat >>confdefs.h <<_ACEOF
17515#define SIZEOF_LONG $ac_cv_sizeof_long
17516_ACEOF
17517
17518
17519echo "$as_me:$LINENO: checking for size_t" >&5
17520echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17521if test "${ac_cv_type_size_t+set}" = set; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17523else
17524 cat >conftest.$ac_ext <<_ACEOF
17525/* confdefs.h. */
17526_ACEOF
17527cat confdefs.h >>conftest.$ac_ext
17528cat >>conftest.$ac_ext <<_ACEOF
17529/* end confdefs.h. */
17530$ac_includes_default
17531int
17532main ()
17533{
17534if ((size_t *) 0)
17535 return 0;
17536if (sizeof (size_t))
17537 return 0;
17538 ;
17539 return 0;
17540}
17541_ACEOF
17542rm -f conftest.$ac_objext
17543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17544 (eval $ac_compile) 2>conftest.er1
a848cd7e 17545 ac_status=$?
ac1cb8d3
VS
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
a848cd7e
SC
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
9dd0f6c2 17551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 ac_cv_type_size_t=yes
17564else
17565 echo "$as_me: failed program was:" >&5
17566sed 's/^/| /' conftest.$ac_ext >&5
17567
17568ac_cv_type_size_t=no
17569fi
ac1cb8d3 17570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17571fi
17572echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17573echo "${ECHO_T}$ac_cv_type_size_t" >&6
17574
17575echo "$as_me:$LINENO: checking size of size_t" >&5
17576echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17577if test "${ac_cv_sizeof_size_t+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17579else
17580 if test "$ac_cv_type_size_t" = yes; then
17581 # The cast to unsigned long works around a bug in the HP C Compiler
17582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17584 # This bug is HP SR number 8606223364.
17585 if test "$cross_compiling" = yes; then
17586 # Depending upon the size, compute the lo and hi bounds.
17587cat >conftest.$ac_ext <<_ACEOF
17588/* confdefs.h. */
17589_ACEOF
17590cat confdefs.h >>conftest.$ac_ext
17591cat >>conftest.$ac_ext <<_ACEOF
17592/* end confdefs.h. */
17593$ac_includes_default
17594int
17595main ()
17596{
17597static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17598test_array [0] = 0
17599
17600 ;
17601 return 0;
17602}
17603_ACEOF
17604rm -f conftest.$ac_objext
17605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17606 (eval $ac_compile) 2>conftest.er1
a848cd7e 17607 ac_status=$?
ac1cb8d3
VS
17608 grep -v '^ *+' conftest.er1 >conftest.err
17609 rm -f conftest.er1
17610 cat conftest.err >&5
a848cd7e
SC
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } &&
9dd0f6c2 17613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; } &&
17619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625 ac_lo=0 ac_mid=0
17626 while :; do
17627 cat >conftest.$ac_ext <<_ACEOF
17628/* confdefs.h. */
17629_ACEOF
17630cat confdefs.h >>conftest.$ac_ext
17631cat >>conftest.$ac_ext <<_ACEOF
17632/* end confdefs.h. */
17633$ac_includes_default
17634int
17635main ()
17636{
17637static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17638test_array [0] = 0
17639
17640 ;
17641 return 0;
17642}
17643_ACEOF
17644rm -f conftest.$ac_objext
17645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17646 (eval $ac_compile) 2>conftest.er1
a848cd7e 17647 ac_status=$?
ac1cb8d3
VS
17648 grep -v '^ *+' conftest.er1 >conftest.err
17649 rm -f conftest.er1
17650 cat conftest.err >&5
a848cd7e
SC
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
9dd0f6c2 17653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_hi=$ac_mid; break
17666else
17667 echo "$as_me: failed program was:" >&5
17668sed 's/^/| /' conftest.$ac_ext >&5
17669
17670ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17671 if test $ac_lo -le $ac_mid; then
17672 ac_lo= ac_hi=
17673 break
17674 fi
17675 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17676fi
ac1cb8d3 17677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17678 done
17679else
17680 echo "$as_me: failed program was:" >&5
17681sed 's/^/| /' conftest.$ac_ext >&5
17682
17683cat >conftest.$ac_ext <<_ACEOF
17684/* confdefs.h. */
17685_ACEOF
17686cat confdefs.h >>conftest.$ac_ext
17687cat >>conftest.$ac_ext <<_ACEOF
17688/* end confdefs.h. */
17689$ac_includes_default
17690int
17691main ()
17692{
17693static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17694test_array [0] = 0
17695
17696 ;
17697 return 0;
17698}
17699_ACEOF
17700rm -f conftest.$ac_objext
17701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17702 (eval $ac_compile) 2>conftest.er1
a848cd7e 17703 ac_status=$?
ac1cb8d3
VS
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
a848cd7e
SC
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
9dd0f6c2 17709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_hi=-1 ac_mid=-1
17722 while :; do
17723 cat >conftest.$ac_ext <<_ACEOF
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h. */
17729$ac_includes_default
17730int
17731main ()
17732{
17733static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17734test_array [0] = 0
17735
17736 ;
17737 return 0;
17738}
17739_ACEOF
17740rm -f conftest.$ac_objext
17741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17742 (eval $ac_compile) 2>conftest.er1
a848cd7e 17743 ac_status=$?
ac1cb8d3
VS
17744 grep -v '^ *+' conftest.er1 >conftest.err
17745 rm -f conftest.er1
17746 cat conftest.err >&5
a848cd7e
SC
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
9dd0f6c2 17749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17761 ac_lo=$ac_mid; break
17762else
17763 echo "$as_me: failed program was:" >&5
17764sed 's/^/| /' conftest.$ac_ext >&5
17765
17766ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17767 if test $ac_mid -le $ac_hi; then
17768 ac_lo= ac_hi=
17769 break
17770 fi
17771 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17772fi
ac1cb8d3 17773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17774 done
17775else
17776 echo "$as_me: failed program was:" >&5
17777sed 's/^/| /' conftest.$ac_ext >&5
17778
17779ac_lo= ac_hi=
17780fi
ac1cb8d3 17781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17782fi
ac1cb8d3 17783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17784# Binary search between lo and hi bounds.
17785while test "x$ac_lo" != "x$ac_hi"; do
17786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17787 cat >conftest.$ac_ext <<_ACEOF
17788/* confdefs.h. */
17789_ACEOF
17790cat confdefs.h >>conftest.$ac_ext
17791cat >>conftest.$ac_ext <<_ACEOF
17792/* end confdefs.h. */
17793$ac_includes_default
17794int
17795main ()
17796{
17797static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17798test_array [0] = 0
17799
17800 ;
17801 return 0;
17802}
17803_ACEOF
17804rm -f conftest.$ac_objext
17805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17806 (eval $ac_compile) 2>conftest.er1
a848cd7e 17807 ac_status=$?
ac1cb8d3
VS
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
a848cd7e
SC
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
9dd0f6c2 17813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; } &&
17819 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; }; then
17825 ac_hi=$ac_mid
17826else
17827 echo "$as_me: failed program was:" >&5
17828sed 's/^/| /' conftest.$ac_ext >&5
17829
17830ac_lo=`expr '(' $ac_mid ')' + 1`
17831fi
ac1cb8d3 17832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17833done
17834case $ac_lo in
17835?*) ac_cv_sizeof_size_t=$ac_lo;;
17836'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17837See \`config.log' for more details." >&5
17838echo "$as_me: error: cannot compute sizeof (size_t), 77
17839See \`config.log' for more details." >&2;}
17840 { (exit 1); exit 1; }; } ;;
17841esac
17842else
17843 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17844 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17845echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17846 { (exit 1); exit 1; }; }
17847else
17848 cat >conftest.$ac_ext <<_ACEOF
17849/* confdefs.h. */
17850_ACEOF
17851cat confdefs.h >>conftest.$ac_ext
17852cat >>conftest.$ac_ext <<_ACEOF
17853/* end confdefs.h. */
17854$ac_includes_default
17855long longval () { return (long) (sizeof (size_t)); }
17856unsigned long ulongval () { return (long) (sizeof (size_t)); }
17857#include <stdio.h>
17858#include <stdlib.h>
17859int
17860main ()
17861{
17862
17863 FILE *f = fopen ("conftest.val", "w");
17864 if (! f)
17865 exit (1);
17866 if (((long) (sizeof (size_t))) < 0)
17867 {
17868 long i = longval ();
17869 if (i != ((long) (sizeof (size_t))))
17870 exit (1);
17871 fprintf (f, "%ld\n", i);
17872 }
17873 else
17874 {
17875 unsigned long i = ulongval ();
17876 if (i != ((long) (sizeof (size_t))))
17877 exit (1);
17878 fprintf (f, "%lu\n", i);
17879 }
17880 exit (ferror (f) || fclose (f) != 0);
17881
17882 ;
17883 return 0;
17884}
17885_ACEOF
17886rm -f conftest$ac_exeext
17887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888 (eval $ac_link) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893 (eval $ac_try) 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; }; then
17897 ac_cv_sizeof_size_t=`cat conftest.val`
17898else
17899 echo "$as_me: program exited with status $ac_status" >&5
17900echo "$as_me: failed program was:" >&5
17901sed 's/^/| /' conftest.$ac_ext >&5
17902
17903( exit $ac_status )
17904{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17905See \`config.log' for more details." >&5
17906echo "$as_me: error: cannot compute sizeof (size_t), 77
17907See \`config.log' for more details." >&2;}
17908 { (exit 1); exit 1; }; }
17909fi
ac1cb8d3 17910rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17911fi
17912fi
17913rm -f conftest.val
17914else
17915 ac_cv_sizeof_size_t=0
17916fi
17917fi
17918echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17919echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17920cat >>confdefs.h <<_ACEOF
17921#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17922_ACEOF
17923
17924
17925
17926case "${host}" in
17927 arm-*-linux* )
17928 echo "$as_me:$LINENO: checking for long long" >&5
17929echo $ECHO_N "checking for long long... $ECHO_C" >&6
17930if test "${ac_cv_type_long_long+set}" = set; then
17931 echo $ECHO_N "(cached) $ECHO_C" >&6
17932else
17933 cat >conftest.$ac_ext <<_ACEOF
17934/* confdefs.h. */
17935_ACEOF
17936cat confdefs.h >>conftest.$ac_ext
17937cat >>conftest.$ac_ext <<_ACEOF
17938/* end confdefs.h. */
17939$ac_includes_default
17940int
17941main ()
17942{
17943if ((long long *) 0)
17944 return 0;
17945if (sizeof (long long))
17946 return 0;
17947 ;
17948 return 0;
17949}
17950_ACEOF
17951rm -f conftest.$ac_objext
17952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17953 (eval $ac_compile) 2>conftest.er1
a848cd7e 17954 ac_status=$?
ac1cb8d3
VS
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
a848cd7e
SC
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
9dd0f6c2 17960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962 (eval $ac_try) 2>&5
17963 ac_status=$?
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; } &&
17966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17968 (eval $ac_try) 2>&5
17969 ac_status=$?
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; }; then
17972 ac_cv_type_long_long=yes
17973else
17974 echo "$as_me: failed program was:" >&5
17975sed 's/^/| /' conftest.$ac_ext >&5
17976
17977ac_cv_type_long_long=no
17978fi
ac1cb8d3 17979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17980fi
17981echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17982echo "${ECHO_T}$ac_cv_type_long_long" >&6
17983
17984echo "$as_me:$LINENO: checking size of long long" >&5
17985echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17986if test "${ac_cv_sizeof_long_long+set}" = set; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17988else
17989 if test "$ac_cv_type_long_long" = yes; then
17990 # The cast to unsigned long works around a bug in the HP C Compiler
17991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17993 # This bug is HP SR number 8606223364.
17994 if test "$cross_compiling" = yes; then
17995 # Depending upon the size, compute the lo and hi bounds.
17996cat >conftest.$ac_ext <<_ACEOF
17997/* confdefs.h. */
17998_ACEOF
17999cat confdefs.h >>conftest.$ac_ext
18000cat >>conftest.$ac_ext <<_ACEOF
18001/* end confdefs.h. */
18002$ac_includes_default
18003int
18004main ()
18005{
18006static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18007test_array [0] = 0
18008
18009 ;
18010 return 0;
18011}
18012_ACEOF
18013rm -f conftest.$ac_objext
18014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18015 (eval $ac_compile) 2>conftest.er1
a848cd7e 18016 ac_status=$?
ac1cb8d3
VS
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
a848cd7e
SC
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
9dd0f6c2 18022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; } &&
18028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; }; then
18034 ac_lo=0 ac_mid=0
18035 while :; do
18036 cat >conftest.$ac_ext <<_ACEOF
18037/* confdefs.h. */
18038_ACEOF
18039cat confdefs.h >>conftest.$ac_ext
18040cat >>conftest.$ac_ext <<_ACEOF
18041/* end confdefs.h. */
18042$ac_includes_default
18043int
18044main ()
18045{
18046static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18047test_array [0] = 0
18048
18049 ;
18050 return 0;
18051}
18052_ACEOF
18053rm -f conftest.$ac_objext
18054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18055 (eval $ac_compile) 2>conftest.er1
a848cd7e 18056 ac_status=$?
ac1cb8d3
VS
18057 grep -v '^ *+' conftest.er1 >conftest.err
18058 rm -f conftest.er1
18059 cat conftest.err >&5
a848cd7e
SC
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } &&
9dd0f6c2 18062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; } &&
18068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; }; then
18074 ac_hi=$ac_mid; break
18075else
18076 echo "$as_me: failed program was:" >&5
18077sed 's/^/| /' conftest.$ac_ext >&5
18078
18079ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18080 if test $ac_lo -le $ac_mid; then
18081 ac_lo= ac_hi=
18082 break
18083 fi
18084 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18085fi
ac1cb8d3 18086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18087 done
18088else
18089 echo "$as_me: failed program was:" >&5
18090sed 's/^/| /' conftest.$ac_ext >&5
18091
18092cat >conftest.$ac_ext <<_ACEOF
18093/* confdefs.h. */
18094_ACEOF
18095cat confdefs.h >>conftest.$ac_ext
18096cat >>conftest.$ac_ext <<_ACEOF
18097/* end confdefs.h. */
18098$ac_includes_default
18099int
18100main ()
18101{
18102static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18103test_array [0] = 0
18104
18105 ;
18106 return 0;
18107}
18108_ACEOF
18109rm -f conftest.$ac_objext
18110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18111 (eval $ac_compile) 2>conftest.er1
a848cd7e 18112 ac_status=$?
ac1cb8d3
VS
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
a848cd7e
SC
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
9dd0f6c2 18118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; } &&
18124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 ac_hi=-1 ac_mid=-1
18131 while :; do
18132 cat >conftest.$ac_ext <<_ACEOF
18133/* confdefs.h. */
18134_ACEOF
18135cat confdefs.h >>conftest.$ac_ext
18136cat >>conftest.$ac_ext <<_ACEOF
18137/* end confdefs.h. */
18138$ac_includes_default
18139int
18140main ()
18141{
18142static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18143test_array [0] = 0
18144
18145 ;
18146 return 0;
18147}
18148_ACEOF
18149rm -f conftest.$ac_objext
18150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18151 (eval $ac_compile) 2>conftest.er1
a848cd7e 18152 ac_status=$?
ac1cb8d3
VS
18153 grep -v '^ *+' conftest.er1 >conftest.err
18154 rm -f conftest.er1
18155 cat conftest.err >&5
a848cd7e
SC
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } &&
9dd0f6c2 18158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18161 ac_status=$?
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; } &&
18164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170 ac_lo=$ac_mid; break
18171else
18172 echo "$as_me: failed program was:" >&5
18173sed 's/^/| /' conftest.$ac_ext >&5
18174
18175ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18176 if test $ac_mid -le $ac_hi; then
18177 ac_lo= ac_hi=
18178 break
18179 fi
18180 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18181fi
ac1cb8d3 18182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18183 done
18184else
18185 echo "$as_me: failed program was:" >&5
18186sed 's/^/| /' conftest.$ac_ext >&5
18187
18188ac_lo= ac_hi=
18189fi
ac1cb8d3 18190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18191fi
ac1cb8d3 18192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18193# Binary search between lo and hi bounds.
18194while test "x$ac_lo" != "x$ac_hi"; do
18195 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18196 cat >conftest.$ac_ext <<_ACEOF
18197/* confdefs.h. */
18198_ACEOF
18199cat confdefs.h >>conftest.$ac_ext
18200cat >>conftest.$ac_ext <<_ACEOF
18201/* end confdefs.h. */
18202$ac_includes_default
18203int
18204main ()
18205{
18206static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18207test_array [0] = 0
18208
18209 ;
18210 return 0;
18211}
18212_ACEOF
18213rm -f conftest.$ac_objext
18214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18215 (eval $ac_compile) 2>conftest.er1
a848cd7e 18216 ac_status=$?
ac1cb8d3
VS
18217 grep -v '^ *+' conftest.er1 >conftest.err
18218 rm -f conftest.er1
18219 cat conftest.err >&5
a848cd7e
SC
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
9dd0f6c2 18222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18234 ac_hi=$ac_mid
18235else
18236 echo "$as_me: failed program was:" >&5
18237sed 's/^/| /' conftest.$ac_ext >&5
18238
18239ac_lo=`expr '(' $ac_mid ')' + 1`
18240fi
ac1cb8d3 18241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18242done
18243case $ac_lo in
18244?*) ac_cv_sizeof_long_long=$ac_lo;;
18245'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18246See \`config.log' for more details." >&5
18247echo "$as_me: error: cannot compute sizeof (long long), 77
18248See \`config.log' for more details." >&2;}
18249 { (exit 1); exit 1; }; } ;;
18250esac
18251else
18252 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18253 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18254echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18255 { (exit 1); exit 1; }; }
18256else
18257 cat >conftest.$ac_ext <<_ACEOF
18258/* confdefs.h. */
18259_ACEOF
18260cat confdefs.h >>conftest.$ac_ext
18261cat >>conftest.$ac_ext <<_ACEOF
18262/* end confdefs.h. */
18263$ac_includes_default
18264long longval () { return (long) (sizeof (long long)); }
18265unsigned long ulongval () { return (long) (sizeof (long long)); }
18266#include <stdio.h>
18267#include <stdlib.h>
18268int
18269main ()
18270{
18271
18272 FILE *f = fopen ("conftest.val", "w");
18273 if (! f)
18274 exit (1);
18275 if (((long) (sizeof (long long))) < 0)
18276 {
18277 long i = longval ();
18278 if (i != ((long) (sizeof (long long))))
18279 exit (1);
18280 fprintf (f, "%ld\n", i);
18281 }
18282 else
18283 {
18284 unsigned long i = ulongval ();
18285 if (i != ((long) (sizeof (long long))))
18286 exit (1);
18287 fprintf (f, "%lu\n", i);
18288 }
18289 exit (ferror (f) || fclose (f) != 0);
18290
18291 ;
18292 return 0;
18293}
18294_ACEOF
18295rm -f conftest$ac_exeext
18296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18297 (eval $ac_link) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_sizeof_long_long=`cat conftest.val`
18307else
18308 echo "$as_me: program exited with status $ac_status" >&5
18309echo "$as_me: failed program was:" >&5
18310sed 's/^/| /' conftest.$ac_ext >&5
18311
18312( exit $ac_status )
18313{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18314See \`config.log' for more details." >&5
18315echo "$as_me: error: cannot compute sizeof (long long), 77
18316See \`config.log' for more details." >&2;}
18317 { (exit 1); exit 1; }; }
18318fi
ac1cb8d3 18319rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18320fi
18321fi
18322rm -f conftest.val
18323else
18324 ac_cv_sizeof_long_long=0
18325fi
18326fi
18327echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18328echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18329cat >>confdefs.h <<_ACEOF
18330#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18331_ACEOF
18332
18333
18334 ;;
18335 *-hp-hpux* )
18336 echo "$as_me:$LINENO: checking for long long" >&5
18337echo $ECHO_N "checking for long long... $ECHO_C" >&6
18338if test "${ac_cv_type_long_long+set}" = set; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18340else
18341 cat >conftest.$ac_ext <<_ACEOF
18342/* confdefs.h. */
18343_ACEOF
18344cat confdefs.h >>conftest.$ac_ext
18345cat >>conftest.$ac_ext <<_ACEOF
18346/* end confdefs.h. */
18347$ac_includes_default
18348int
18349main ()
18350{
18351if ((long long *) 0)
18352 return 0;
18353if (sizeof (long long))
18354 return 0;
18355 ;
18356 return 0;
18357}
18358_ACEOF
18359rm -f conftest.$ac_objext
18360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18361 (eval $ac_compile) 2>conftest.er1
a848cd7e 18362 ac_status=$?
ac1cb8d3
VS
18363 grep -v '^ *+' conftest.er1 >conftest.err
18364 rm -f conftest.er1
18365 cat conftest.err >&5
a848cd7e
SC
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } &&
9dd0f6c2 18368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; } &&
18374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18377 ac_status=$?
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380 ac_cv_type_long_long=yes
18381else
18382 echo "$as_me: failed program was:" >&5
18383sed 's/^/| /' conftest.$ac_ext >&5
18384
18385ac_cv_type_long_long=no
18386fi
ac1cb8d3 18387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18388fi
18389echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18390echo "${ECHO_T}$ac_cv_type_long_long" >&6
18391
18392echo "$as_me:$LINENO: checking size of long long" >&5
18393echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18394if test "${ac_cv_sizeof_long_long+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18396else
18397 if test "$ac_cv_type_long_long" = yes; then
18398 # The cast to unsigned long works around a bug in the HP C Compiler
18399 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18400 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18401 # This bug is HP SR number 8606223364.
18402 if test "$cross_compiling" = yes; then
18403 # Depending upon the size, compute the lo and hi bounds.
18404cat >conftest.$ac_ext <<_ACEOF
18405/* confdefs.h. */
18406_ACEOF
18407cat confdefs.h >>conftest.$ac_ext
18408cat >>conftest.$ac_ext <<_ACEOF
18409/* end confdefs.h. */
18410$ac_includes_default
18411int
18412main ()
18413{
18414static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18415test_array [0] = 0
18416
18417 ;
18418 return 0;
18419}
18420_ACEOF
18421rm -f conftest.$ac_objext
18422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18423 (eval $ac_compile) 2>conftest.er1
a848cd7e 18424 ac_status=$?
ac1cb8d3
VS
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
a848cd7e
SC
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
9dd0f6c2 18430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; } &&
18436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_lo=0 ac_mid=0
18443 while :; do
18444 cat >conftest.$ac_ext <<_ACEOF
18445/* confdefs.h. */
18446_ACEOF
18447cat confdefs.h >>conftest.$ac_ext
18448cat >>conftest.$ac_ext <<_ACEOF
18449/* end confdefs.h. */
18450$ac_includes_default
18451int
18452main ()
18453{
18454static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18455test_array [0] = 0
18456
18457 ;
18458 return 0;
18459}
18460_ACEOF
18461rm -f conftest.$ac_objext
18462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18463 (eval $ac_compile) 2>conftest.er1
a848cd7e 18464 ac_status=$?
ac1cb8d3
VS
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
a848cd7e
SC
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
9dd0f6c2 18470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; } &&
18476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; }; then
18482 ac_hi=$ac_mid; break
18483else
18484 echo "$as_me: failed program was:" >&5
18485sed 's/^/| /' conftest.$ac_ext >&5
18486
18487ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18488 if test $ac_lo -le $ac_mid; then
18489 ac_lo= ac_hi=
18490 break
18491 fi
18492 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18493fi
ac1cb8d3 18494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18495 done
18496else
18497 echo "$as_me: failed program was:" >&5
18498sed 's/^/| /' conftest.$ac_ext >&5
18499
18500cat >conftest.$ac_ext <<_ACEOF
18501/* confdefs.h. */
18502_ACEOF
18503cat confdefs.h >>conftest.$ac_ext
18504cat >>conftest.$ac_ext <<_ACEOF
18505/* end confdefs.h. */
18506$ac_includes_default
18507int
18508main ()
18509{
18510static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18511test_array [0] = 0
18512
18513 ;
18514 return 0;
18515}
18516_ACEOF
18517rm -f conftest.$ac_objext
18518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18519 (eval $ac_compile) 2>conftest.er1
a848cd7e 18520 ac_status=$?
ac1cb8d3
VS
18521 grep -v '^ *+' conftest.er1 >conftest.err
18522 rm -f conftest.er1
18523 cat conftest.err >&5
a848cd7e
SC
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
9dd0f6c2 18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_hi=-1 ac_mid=-1
18539 while :; do
18540 cat >conftest.$ac_ext <<_ACEOF
18541/* confdefs.h. */
18542_ACEOF
18543cat confdefs.h >>conftest.$ac_ext
18544cat >>conftest.$ac_ext <<_ACEOF
18545/* end confdefs.h. */
18546$ac_includes_default
18547int
18548main ()
18549{
18550static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18551test_array [0] = 0
18552
18553 ;
18554 return 0;
18555}
18556_ACEOF
18557rm -f conftest.$ac_objext
18558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18559 (eval $ac_compile) 2>conftest.er1
a848cd7e 18560 ac_status=$?
ac1cb8d3
VS
18561 grep -v '^ *+' conftest.er1 >conftest.err
18562 rm -f conftest.er1
18563 cat conftest.err >&5
a848cd7e
SC
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
9dd0f6c2 18566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_lo=$ac_mid; break
18579else
18580 echo "$as_me: failed program was:" >&5
18581sed 's/^/| /' conftest.$ac_ext >&5
18582
18583ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18584 if test $ac_mid -le $ac_hi; then
18585 ac_lo= ac_hi=
18586 break
18587 fi
18588 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18589fi
ac1cb8d3 18590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18591 done
18592else
18593 echo "$as_me: failed program was:" >&5
18594sed 's/^/| /' conftest.$ac_ext >&5
18595
18596ac_lo= ac_hi=
18597fi
ac1cb8d3 18598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18599fi
ac1cb8d3 18600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18601# Binary search between lo and hi bounds.
18602while test "x$ac_lo" != "x$ac_hi"; do
18603 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18604 cat >conftest.$ac_ext <<_ACEOF
18605/* confdefs.h. */
18606_ACEOF
18607cat confdefs.h >>conftest.$ac_ext
18608cat >>conftest.$ac_ext <<_ACEOF
18609/* end confdefs.h. */
18610$ac_includes_default
18611int
18612main ()
18613{
18614static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18615test_array [0] = 0
18616
18617 ;
18618 return 0;
18619}
18620_ACEOF
18621rm -f conftest.$ac_objext
18622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18623 (eval $ac_compile) 2>conftest.er1
a848cd7e 18624 ac_status=$?
ac1cb8d3
VS
18625 grep -v '^ *+' conftest.er1 >conftest.err
18626 rm -f conftest.er1
18627 cat conftest.err >&5
a848cd7e
SC
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
9dd0f6c2 18630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_hi=$ac_mid
18643else
18644 echo "$as_me: failed program was:" >&5
18645sed 's/^/| /' conftest.$ac_ext >&5
18646
18647ac_lo=`expr '(' $ac_mid ')' + 1`
18648fi
ac1cb8d3 18649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18650done
18651case $ac_lo in
18652?*) ac_cv_sizeof_long_long=$ac_lo;;
18653'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18654See \`config.log' for more details." >&5
18655echo "$as_me: error: cannot compute sizeof (long long), 77
18656See \`config.log' for more details." >&2;}
18657 { (exit 1); exit 1; }; } ;;
18658esac
18659else
18660 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18661 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18662echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18663 { (exit 1); exit 1; }; }
18664else
18665 cat >conftest.$ac_ext <<_ACEOF
18666/* confdefs.h. */
18667_ACEOF
18668cat confdefs.h >>conftest.$ac_ext
18669cat >>conftest.$ac_ext <<_ACEOF
18670/* end confdefs.h. */
18671$ac_includes_default
18672long longval () { return (long) (sizeof (long long)); }
18673unsigned long ulongval () { return (long) (sizeof (long long)); }
18674#include <stdio.h>
18675#include <stdlib.h>
18676int
18677main ()
18678{
18679
18680 FILE *f = fopen ("conftest.val", "w");
18681 if (! f)
18682 exit (1);
18683 if (((long) (sizeof (long long))) < 0)
18684 {
18685 long i = longval ();
18686 if (i != ((long) (sizeof (long long))))
18687 exit (1);
18688 fprintf (f, "%ld\n", i);
18689 }
18690 else
18691 {
18692 unsigned long i = ulongval ();
18693 if (i != ((long) (sizeof (long long))))
18694 exit (1);
18695 fprintf (f, "%lu\n", i);
18696 }
18697 exit (ferror (f) || fclose (f) != 0);
18698
18699 ;
18700 return 0;
18701}
18702_ACEOF
18703rm -f conftest$ac_exeext
18704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18705 (eval $ac_link) 2>&5
18706 ac_status=$?
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 ac_cv_sizeof_long_long=`cat conftest.val`
18715else
18716 echo "$as_me: program exited with status $ac_status" >&5
18717echo "$as_me: failed program was:" >&5
18718sed 's/^/| /' conftest.$ac_ext >&5
18719
18720( exit $ac_status )
18721{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18722See \`config.log' for more details." >&5
18723echo "$as_me: error: cannot compute sizeof (long long), 77
18724See \`config.log' for more details." >&2;}
18725 { (exit 1); exit 1; }; }
18726fi
ac1cb8d3 18727rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18728fi
18729fi
18730rm -f conftest.val
18731else
18732 ac_cv_sizeof_long_long=0
18733fi
18734fi
18735echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18736echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18737cat >>confdefs.h <<_ACEOF
18738#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18739_ACEOF
18740
18741
18742 if test "$ac_cv_sizeof_long_long" != "0"; then
18743 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18744 fi
18745 ;;
18746 * )
18747 echo "$as_me:$LINENO: checking for long long" >&5
18748echo $ECHO_N "checking for long long... $ECHO_C" >&6
18749if test "${ac_cv_type_long_long+set}" = set; then
18750 echo $ECHO_N "(cached) $ECHO_C" >&6
18751else
18752 cat >conftest.$ac_ext <<_ACEOF
18753/* confdefs.h. */
18754_ACEOF
18755cat confdefs.h >>conftest.$ac_ext
18756cat >>conftest.$ac_ext <<_ACEOF
18757/* end confdefs.h. */
18758$ac_includes_default
18759int
18760main ()
18761{
18762if ((long long *) 0)
18763 return 0;
18764if (sizeof (long long))
18765 return 0;
18766 ;
18767 return 0;
18768}
18769_ACEOF
18770rm -f conftest.$ac_objext
18771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18772 (eval $ac_compile) 2>conftest.er1
a848cd7e 18773 ac_status=$?
ac1cb8d3
VS
18774 grep -v '^ *+' conftest.er1 >conftest.err
18775 rm -f conftest.er1
18776 cat conftest.err >&5
a848cd7e
SC
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } &&
9dd0f6c2 18779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; } &&
18785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; }; then
18791 ac_cv_type_long_long=yes
18792else
18793 echo "$as_me: failed program was:" >&5
18794sed 's/^/| /' conftest.$ac_ext >&5
18795
18796ac_cv_type_long_long=no
18797fi
ac1cb8d3 18798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18799fi
18800echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18801echo "${ECHO_T}$ac_cv_type_long_long" >&6
18802
18803echo "$as_me:$LINENO: checking size of long long" >&5
18804echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18805if test "${ac_cv_sizeof_long_long+set}" = set; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18807else
18808 if test "$ac_cv_type_long_long" = yes; then
18809 # The cast to unsigned long works around a bug in the HP C Compiler
18810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18812 # This bug is HP SR number 8606223364.
18813 if test "$cross_compiling" = yes; then
18814 # Depending upon the size, compute the lo and hi bounds.
18815cat >conftest.$ac_ext <<_ACEOF
18816/* confdefs.h. */
18817_ACEOF
18818cat confdefs.h >>conftest.$ac_ext
18819cat >>conftest.$ac_ext <<_ACEOF
18820/* end confdefs.h. */
18821$ac_includes_default
18822int
18823main ()
18824{
18825static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18826test_array [0] = 0
18827
18828 ;
18829 return 0;
18830}
18831_ACEOF
18832rm -f conftest.$ac_objext
18833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18834 (eval $ac_compile) 2>conftest.er1
a848cd7e 18835 ac_status=$?
ac1cb8d3
VS
18836 grep -v '^ *+' conftest.er1 >conftest.err
18837 rm -f conftest.er1
18838 cat conftest.err >&5
a848cd7e
SC
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); } &&
9dd0f6c2 18841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18853 ac_lo=0 ac_mid=0
18854 while :; do
18855 cat >conftest.$ac_ext <<_ACEOF
18856/* confdefs.h. */
18857_ACEOF
18858cat confdefs.h >>conftest.$ac_ext
18859cat >>conftest.$ac_ext <<_ACEOF
18860/* end confdefs.h. */
18861$ac_includes_default
18862int
18863main ()
18864{
18865static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18866test_array [0] = 0
18867
18868 ;
18869 return 0;
18870}
18871_ACEOF
18872rm -f conftest.$ac_objext
18873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18874 (eval $ac_compile) 2>conftest.er1
a848cd7e 18875 ac_status=$?
ac1cb8d3
VS
18876 grep -v '^ *+' conftest.er1 >conftest.err
18877 rm -f conftest.er1
18878 cat conftest.err >&5
a848cd7e
SC
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
9dd0f6c2 18881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; } &&
18887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; }; then
18893 ac_hi=$ac_mid; break
18894else
18895 echo "$as_me: failed program was:" >&5
18896sed 's/^/| /' conftest.$ac_ext >&5
18897
18898ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18899 if test $ac_lo -le $ac_mid; then
18900 ac_lo= ac_hi=
18901 break
18902 fi
18903 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18904fi
ac1cb8d3 18905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18906 done
18907else
18908 echo "$as_me: failed program was:" >&5
18909sed 's/^/| /' conftest.$ac_ext >&5
18910
18911cat >conftest.$ac_ext <<_ACEOF
18912/* confdefs.h. */
18913_ACEOF
18914cat confdefs.h >>conftest.$ac_ext
18915cat >>conftest.$ac_ext <<_ACEOF
18916/* end confdefs.h. */
18917$ac_includes_default
18918int
18919main ()
18920{
18921static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18922test_array [0] = 0
18923
18924 ;
18925 return 0;
18926}
18927_ACEOF
18928rm -f conftest.$ac_objext
18929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18930 (eval $ac_compile) 2>conftest.er1
a848cd7e 18931 ac_status=$?
ac1cb8d3
VS
18932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
a848cd7e
SC
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } &&
9dd0f6c2 18937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; } &&
18943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18949 ac_hi=-1 ac_mid=-1
18950 while :; do
18951 cat >conftest.$ac_ext <<_ACEOF
18952/* confdefs.h. */
18953_ACEOF
18954cat confdefs.h >>conftest.$ac_ext
18955cat >>conftest.$ac_ext <<_ACEOF
18956/* end confdefs.h. */
18957$ac_includes_default
18958int
18959main ()
18960{
18961static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18962test_array [0] = 0
18963
18964 ;
18965 return 0;
18966}
18967_ACEOF
18968rm -f conftest.$ac_objext
18969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18970 (eval $ac_compile) 2>conftest.er1
a848cd7e 18971 ac_status=$?
ac1cb8d3
VS
18972 grep -v '^ *+' conftest.er1 >conftest.err
18973 rm -f conftest.er1
18974 cat conftest.err >&5
a848cd7e
SC
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } &&
9dd0f6c2 18977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; } &&
18983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18989 ac_lo=$ac_mid; break
18990else
18991 echo "$as_me: failed program was:" >&5
18992sed 's/^/| /' conftest.$ac_ext >&5
18993
18994ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18995 if test $ac_mid -le $ac_hi; then
18996 ac_lo= ac_hi=
18997 break
18998 fi
18999 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19000fi
ac1cb8d3 19001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19002 done
19003else
19004 echo "$as_me: failed program was:" >&5
19005sed 's/^/| /' conftest.$ac_ext >&5
19006
19007ac_lo= ac_hi=
19008fi
ac1cb8d3 19009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19010fi
ac1cb8d3 19011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19012# Binary search between lo and hi bounds.
19013while test "x$ac_lo" != "x$ac_hi"; do
19014 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19015 cat >conftest.$ac_ext <<_ACEOF
19016/* confdefs.h. */
19017_ACEOF
19018cat confdefs.h >>conftest.$ac_ext
19019cat >>conftest.$ac_ext <<_ACEOF
19020/* end confdefs.h. */
19021$ac_includes_default
19022int
19023main ()
19024{
19025static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19026test_array [0] = 0
19027
19028 ;
19029 return 0;
19030}
19031_ACEOF
19032rm -f conftest.$ac_objext
19033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19034 (eval $ac_compile) 2>conftest.er1
a848cd7e 19035 ac_status=$?
ac1cb8d3
VS
19036 grep -v '^ *+' conftest.er1 >conftest.err
19037 rm -f conftest.er1
19038 cat conftest.err >&5
a848cd7e
SC
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
9dd0f6c2 19041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043 (eval $ac_try) 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19050 ac_status=$?
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19053 ac_hi=$ac_mid
19054else
19055 echo "$as_me: failed program was:" >&5
19056sed 's/^/| /' conftest.$ac_ext >&5
19057
19058ac_lo=`expr '(' $ac_mid ')' + 1`
19059fi
ac1cb8d3 19060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19061done
19062case $ac_lo in
19063?*) ac_cv_sizeof_long_long=$ac_lo;;
19064'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19065See \`config.log' for more details." >&5
19066echo "$as_me: error: cannot compute sizeof (long long), 77
19067See \`config.log' for more details." >&2;}
19068 { (exit 1); exit 1; }; } ;;
19069esac
19070else
19071 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19072 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19073echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19074 { (exit 1); exit 1; }; }
19075else
19076 cat >conftest.$ac_ext <<_ACEOF
19077/* confdefs.h. */
19078_ACEOF
19079cat confdefs.h >>conftest.$ac_ext
19080cat >>conftest.$ac_ext <<_ACEOF
19081/* end confdefs.h. */
19082$ac_includes_default
19083long longval () { return (long) (sizeof (long long)); }
19084unsigned long ulongval () { return (long) (sizeof (long long)); }
19085#include <stdio.h>
19086#include <stdlib.h>
19087int
19088main ()
19089{
19090
19091 FILE *f = fopen ("conftest.val", "w");
19092 if (! f)
19093 exit (1);
19094 if (((long) (sizeof (long long))) < 0)
19095 {
19096 long i = longval ();
19097 if (i != ((long) (sizeof (long long))))
19098 exit (1);
19099 fprintf (f, "%ld\n", i);
19100 }
19101 else
19102 {
19103 unsigned long i = ulongval ();
19104 if (i != ((long) (sizeof (long long))))
19105 exit (1);
19106 fprintf (f, "%lu\n", i);
19107 }
19108 exit (ferror (f) || fclose (f) != 0);
19109
19110 ;
19111 return 0;
19112}
19113_ACEOF
19114rm -f conftest$ac_exeext
19115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19116 (eval $ac_link) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_cv_sizeof_long_long=`cat conftest.val`
19126else
19127 echo "$as_me: program exited with status $ac_status" >&5
19128echo "$as_me: failed program was:" >&5
19129sed 's/^/| /' conftest.$ac_ext >&5
19130
19131( exit $ac_status )
19132{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19133See \`config.log' for more details." >&5
19134echo "$as_me: error: cannot compute sizeof (long long), 77
19135See \`config.log' for more details." >&2;}
19136 { (exit 1); exit 1; }; }
19137fi
ac1cb8d3 19138rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19139fi
19140fi
19141rm -f conftest.val
19142else
19143 ac_cv_sizeof_long_long=0
19144fi
19145fi
19146echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19147echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19148cat >>confdefs.h <<_ACEOF
19149#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19150_ACEOF
19151
19152
19153esac
19154
238ecede
MW
19155echo "$as_me:$LINENO: checking for wchar_t" >&5
19156echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19157if test "${ac_cv_type_wchar_t+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19159else
19160 cat >conftest.$ac_ext <<_ACEOF
19161/* confdefs.h. */
19162_ACEOF
19163cat confdefs.h >>conftest.$ac_ext
19164cat >>conftest.$ac_ext <<_ACEOF
19165/* end confdefs.h. */
19166
19167 /* DJGPP only has fake wchar_t: */
19168 #ifdef __DJGPP__
19169 # error "fake wchar_t"
19170 #endif
19171 #ifdef HAVE_WCHAR_H
19172 # ifdef __CYGWIN__
19173 # include <stddef.h>
19174 # endif
19175 # include <wchar.h>
19176 #endif
19177 #ifdef HAVE_STDLIB_H
19178 # include <stdlib.h>
19179 #endif
19180 #include <stdio.h>
19181
19182
19183
19184int
19185main ()
19186{
19187if ((wchar_t *) 0)
19188 return 0;
19189if (sizeof (wchar_t))
19190 return 0;
19191 ;
19192 return 0;
19193}
19194_ACEOF
19195rm -f conftest.$ac_objext
19196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19197 (eval $ac_compile) 2>conftest.er1
19198 ac_status=$?
19199 grep -v '^ *+' conftest.er1 >conftest.err
19200 rm -f conftest.er1
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
9dd0f6c2 19204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; } &&
19210 { ac_try='test -s conftest.$ac_objext'
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19213 ac_status=$?
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; }; then
19216 ac_cv_type_wchar_t=yes
19217else
19218 echo "$as_me: failed program was:" >&5
19219sed 's/^/| /' conftest.$ac_ext >&5
19220
19221ac_cv_type_wchar_t=no
19222fi
19223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19224fi
19225echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19226echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19227
a848cd7e
SC
19228echo "$as_me:$LINENO: checking size of wchar_t" >&5
19229echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19230if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19232else
238ecede
MW
19233 if test "$ac_cv_type_wchar_t" = yes; then
19234 # The cast to unsigned long works around a bug in the HP C Compiler
19235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19237 # This bug is HP SR number 8606223364.
19238 if test "$cross_compiling" = yes; then
19239 # Depending upon the size, compute the lo and hi bounds.
19240cat >conftest.$ac_ext <<_ACEOF
19241/* confdefs.h. */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h. */
19246
19247 /* DJGPP only has fake wchar_t: */
19248 #ifdef __DJGPP__
19249 # error "fake wchar_t"
19250 #endif
19251 #ifdef HAVE_WCHAR_H
19252 # ifdef __CYGWIN__
19253 # include <stddef.h>
19254 # endif
19255 # include <wchar.h>
19256 #endif
19257 #ifdef HAVE_STDLIB_H
19258 # include <stdlib.h>
19259 #endif
19260 #include <stdio.h>
19261
19262
19263
19264int
19265main ()
19266{
19267static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19268test_array [0] = 0
19269
19270 ;
19271 return 0;
19272}
19273_ACEOF
19274rm -f conftest.$ac_objext
19275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276 (eval $ac_compile) 2>conftest.er1
19277 ac_status=$?
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
9dd0f6c2 19283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 ac_lo=0 ac_mid=0
19296 while :; do
19297 cat >conftest.$ac_ext <<_ACEOF
19298/* confdefs.h. */
19299_ACEOF
19300cat confdefs.h >>conftest.$ac_ext
19301cat >>conftest.$ac_ext <<_ACEOF
19302/* end confdefs.h. */
19303
19304 /* DJGPP only has fake wchar_t: */
19305 #ifdef __DJGPP__
19306 # error "fake wchar_t"
19307 #endif
19308 #ifdef HAVE_WCHAR_H
19309 # ifdef __CYGWIN__
19310 # include <stddef.h>
19311 # endif
19312 # include <wchar.h>
19313 #endif
19314 #ifdef HAVE_STDLIB_H
19315 # include <stdlib.h>
19316 #endif
19317 #include <stdio.h>
19318
19319
19320
19321int
19322main ()
19323{
19324static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19325test_array [0] = 0
19326
19327 ;
19328 return 0;
19329}
19330_ACEOF
19331rm -f conftest.$ac_objext
19332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19333 (eval $ac_compile) 2>conftest.er1
19334 ac_status=$?
19335 grep -v '^ *+' conftest.er1 >conftest.err
19336 rm -f conftest.er1
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } &&
9dd0f6c2 19340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; } &&
19346 { ac_try='test -s conftest.$ac_objext'
19347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348 (eval $ac_try) 2>&5
19349 ac_status=$?
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; }; then
19352 ac_hi=$ac_mid; break
19353else
19354 echo "$as_me: failed program was:" >&5
19355sed 's/^/| /' conftest.$ac_ext >&5
19356
19357ac_lo=`expr $ac_mid + 1`
19358 if test $ac_lo -le $ac_mid; then
19359 ac_lo= ac_hi=
19360 break
19361 fi
19362 ac_mid=`expr 2 '*' $ac_mid + 1`
19363fi
19364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19365 done
19366else
19367 echo "$as_me: failed program was:" >&5
19368sed 's/^/| /' conftest.$ac_ext >&5
19369
19370cat >conftest.$ac_ext <<_ACEOF
19371/* confdefs.h. */
19372_ACEOF
19373cat confdefs.h >>conftest.$ac_ext
19374cat >>conftest.$ac_ext <<_ACEOF
19375/* end confdefs.h. */
19376
19377 /* DJGPP only has fake wchar_t: */
19378 #ifdef __DJGPP__
19379 # error "fake wchar_t"
19380 #endif
19381 #ifdef HAVE_WCHAR_H
19382 # ifdef __CYGWIN__
19383 # include <stddef.h>
19384 # endif
19385 # include <wchar.h>
19386 #endif
19387 #ifdef HAVE_STDLIB_H
19388 # include <stdlib.h>
19389 #endif
19390 #include <stdio.h>
19391
19392
19393
19394int
19395main ()
19396{
19397static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19398test_array [0] = 0
19399
19400 ;
19401 return 0;
19402}
19403_ACEOF
19404rm -f conftest.$ac_objext
19405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19406 (eval $ac_compile) 2>conftest.er1
19407 ac_status=$?
19408 grep -v '^ *+' conftest.er1 >conftest.err
19409 rm -f conftest.er1
19410 cat conftest.err >&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } &&
9dd0f6c2 19413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest.$ac_objext'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19422 ac_status=$?
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425 ac_hi=-1 ac_mid=-1
19426 while :; do
19427 cat >conftest.$ac_ext <<_ACEOF
19428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h. */
19433
19434 /* DJGPP only has fake wchar_t: */
19435 #ifdef __DJGPP__
19436 # error "fake wchar_t"
19437 #endif
19438 #ifdef HAVE_WCHAR_H
19439 # ifdef __CYGWIN__
19440 # include <stddef.h>
19441 # endif
19442 # include <wchar.h>
19443 #endif
19444 #ifdef HAVE_STDLIB_H
19445 # include <stdlib.h>
19446 #endif
19447 #include <stdio.h>
19448
19449
19450
19451int
19452main ()
19453{
19454static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19455test_array [0] = 0
19456
19457 ;
19458 return 0;
19459}
19460_ACEOF
19461rm -f conftest.$ac_objext
19462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19463 (eval $ac_compile) 2>conftest.er1
19464 ac_status=$?
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
9dd0f6c2 19470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_lo=$ac_mid; break
19483else
19484 echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487ac_hi=`expr '(' $ac_mid ')' - 1`
19488 if test $ac_mid -le $ac_hi; then
19489 ac_lo= ac_hi=
19490 break
19491 fi
19492 ac_mid=`expr 2 '*' $ac_mid`
19493fi
19494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19495 done
19496else
19497 echo "$as_me: failed program was:" >&5
19498sed 's/^/| /' conftest.$ac_ext >&5
19499
19500ac_lo= ac_hi=
19501fi
19502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19503fi
19504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19505# Binary search between lo and hi bounds.
19506while test "x$ac_lo" != "x$ac_hi"; do
19507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19508 cat >conftest.$ac_ext <<_ACEOF
19509/* confdefs.h. */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h. */
19514
19515 /* DJGPP only has fake wchar_t: */
19516 #ifdef __DJGPP__
19517 # error "fake wchar_t"
19518 #endif
19519 #ifdef HAVE_WCHAR_H
19520 # ifdef __CYGWIN__
19521 # include <stddef.h>
19522 # endif
19523 # include <wchar.h>
19524 #endif
19525 #ifdef HAVE_STDLIB_H
19526 # include <stdlib.h>
19527 #endif
19528 #include <stdio.h>
a848cd7e 19529
a848cd7e 19530
a848cd7e 19531
238ecede
MW
19532int
19533main ()
19534{
19535static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19536test_array [0] = 0
a848cd7e 19537
238ecede
MW
19538 ;
19539 return 0;
19540}
19541_ACEOF
19542rm -f conftest.$ac_objext
19543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19544 (eval $ac_compile) 2>conftest.er1
19545 ac_status=$?
19546 grep -v '^ *+' conftest.er1 >conftest.err
19547 rm -f conftest.er1
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
9dd0f6c2 19551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest.$ac_objext'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_hi=$ac_mid
19564else
19565 echo "$as_me: failed program was:" >&5
19566sed 's/^/| /' conftest.$ac_ext >&5
19567
19568ac_lo=`expr '(' $ac_mid ')' + 1`
19569fi
19570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19571done
19572case $ac_lo in
19573?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19574'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19575See \`config.log' for more details." >&5
19576echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19577See \`config.log' for more details." >&2;}
19578 { (exit 1); exit 1; }; } ;;
19579esac
19580else
19581 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19582 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19583echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19584 { (exit 1); exit 1; }; }
a848cd7e
SC
19585else
19586 cat >conftest.$ac_ext <<_ACEOF
19587/* confdefs.h. */
19588_ACEOF
19589cat confdefs.h >>conftest.$ac_ext
19590cat >>conftest.$ac_ext <<_ACEOF
19591/* end confdefs.h. */
19592
238ecede
MW
19593 /* DJGPP only has fake wchar_t: */
19594 #ifdef __DJGPP__
19595 # error "fake wchar_t"
19596 #endif
19597 #ifdef HAVE_WCHAR_H
19598 # ifdef __CYGWIN__
19599 # include <stddef.h>
19600 # endif
19601 # include <wchar.h>
19602 #endif
19603 #ifdef HAVE_STDLIB_H
19604 # include <stdlib.h>
19605 #endif
19606 #include <stdio.h>
19607
19608
19609
19610long longval () { return (long) (sizeof (wchar_t)); }
19611unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19612#include <stdio.h>
19613#include <stdlib.h>
19614int
19615main ()
19616{
a848cd7e 19617
238ecede
MW
19618 FILE *f = fopen ("conftest.val", "w");
19619 if (! f)
19620 exit (1);
19621 if (((long) (sizeof (wchar_t))) < 0)
19622 {
19623 long i = longval ();
19624 if (i != ((long) (sizeof (wchar_t))))
19625 exit (1);
19626 fprintf (f, "%ld\n", i);
19627 }
19628 else
19629 {
19630 unsigned long i = ulongval ();
19631 if (i != ((long) (sizeof (wchar_t))))
19632 exit (1);
19633 fprintf (f, "%lu\n", i);
19634 }
19635 exit (ferror (f) || fclose (f) != 0);
19636
19637 ;
19638 return 0;
19639}
a848cd7e
SC
19640_ACEOF
19641rm -f conftest$ac_exeext
19642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19643 (eval $ac_link) 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
238ecede 19652 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19653else
19654 echo "$as_me: program exited with status $ac_status" >&5
19655echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658( exit $ac_status )
238ecede
MW
19659{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19660See \`config.log' for more details." >&5
19661echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19662See \`config.log' for more details." >&2;}
19663 { (exit 1); exit 1; }; }
a848cd7e 19664fi
ac1cb8d3 19665rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19666fi
a848cd7e 19667fi
238ecede
MW
19668rm -f conftest.val
19669else
19670 ac_cv_sizeof_wchar_t=0
19671fi
19672fi
19673echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19674echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19675cat >>confdefs.h <<_ACEOF
238ecede 19676#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19677_ACEOF
19678
19679
47a7e797
MW
19680if test "$ac_cv_sizeof_wchar_t" != "0"; then
19681 wxUSE_WCHAR_T=yes
19682else
19683 wxUSE_WCHAR_T=no
19684fi
238ecede 19685
ba3d13e1
VZ
19686echo "$as_me:$LINENO: checking for va_copy" >&5
19687echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19688if test "${wx_cv_func_va_copy+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19690else
19691
19692 cat >conftest.$ac_ext <<_ACEOF
19693
19694 #include <stdarg.h>
19695 void foo(char *f, ...)
19696 {
19697 va_list ap1, ap2;
19698 va_start(ap1, f);
19699 va_copy(ap2, ap1);
19700 va_end(ap2);
19701 va_end(ap1);
19702 }
5886b072
VZ
19703 int main()
19704 {
b902e639
VZ
19705 foo("hi", 17);
19706 return 0;
5886b072 19707 }
ba3d13e1
VZ
19708_ACEOF
19709rm -f conftest.$ac_objext conftest$ac_exeext
19710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19711 (eval $ac_link) 2>conftest.er1
19712 ac_status=$?
19713 grep -v '^ *+' conftest.er1 >conftest.err
19714 rm -f conftest.er1
19715 cat conftest.err >&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } &&
9dd0f6c2 19718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; } &&
19724 { ac_try='test -s conftest$ac_exeext'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19730 wx_cv_func_va_copy=yes
19731else
19732 echo "$as_me: failed program was:" >&5
19733sed 's/^/| /' conftest.$ac_ext >&5
19734
19735wx_cv_func_va_copy=no
19736
19737fi
19738rm -f conftest.err conftest.$ac_objext \
19739 conftest$ac_exeext conftest.$ac_ext
19740
19741
19742fi
19743echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19744echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19745
19746if test $wx_cv_func_va_copy = "yes"; then
19747 cat >>confdefs.h <<\_ACEOF
19748#define HAVE_VA_COPY 1
19749_ACEOF
19750
19751else
19752 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19753echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19754if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756else
19757
19758 if test "$cross_compiling" = yes; then
19759 wx_cv_type_va_list_lvalue=yes
19760
19761else
19762 cat >conftest.$ac_ext <<_ACEOF
19763
19764 #include <stdarg.h>
19765 int foo(char *f, ...)
19766 {
19767 va_list ap1, ap2;
19768 va_start(ap1, f);
19769 ap2 = ap1;
19770 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19771 return 1;
19772 va_end(ap2);
19773 va_end(ap1);
19774 return 0;
19775 }
19776 int main()
19777 {
19778 return foo("hi", 17);
19779 }
19780_ACEOF
19781rm -f conftest$ac_exeext
19782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19783 (eval $ac_link) 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 wx_cv_type_va_list_lvalue=yes
19793else
19794 echo "$as_me: program exited with status $ac_status" >&5
19795echo "$as_me: failed program was:" >&5
19796sed 's/^/| /' conftest.$ac_ext >&5
19797
19798( exit $ac_status )
19799wx_cv_type_va_list_lvalue=no
19800fi
19801rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19802fi
19803
19804
19805fi
19806echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19807echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19808
19809 if test $wx_cv_type_va_list_lvalue != "yes"; then
19810 cat >>confdefs.h <<\_ACEOF
19811#define VA_LIST_IS_ARRAY 1
19812_ACEOF
19813
19814 fi
19815fi
19816
a848cd7e
SC
19817# Check whether --enable-largefile or --disable-largefile was given.
19818if test "${enable_largefile+set}" = set; then
19819 enableval="$enable_largefile"
19820
19821fi;
19822if test "$enable_largefile" != no; then
19823 wx_largefile=no
19824
19825 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19826echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19827if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19829else
19830
19831 cat >conftest.$ac_ext <<_ACEOF
19832/* confdefs.h. */
19833_ACEOF
19834cat confdefs.h >>conftest.$ac_ext
19835cat >>conftest.$ac_ext <<_ACEOF
19836/* end confdefs.h. */
19837#define _FILE_OFFSET_BITS 64
19838 #include <sys/types.h>
19839int
19840main ()
19841{
19842typedef struct {
19843 unsigned int field: sizeof(off_t) == 8;
19844} wxlf;
19845
19846 ;
19847 return 0;
19848}
19849_ACEOF
19850rm -f conftest.$ac_objext
19851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19852 (eval $ac_compile) 2>conftest.er1
a848cd7e 19853 ac_status=$?
ac1cb8d3
VS
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
a848cd7e
SC
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
9dd0f6c2 19859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19862 ac_status=$?
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; } &&
19865 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19868 ac_status=$?
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; }; then
19871 ac_cv_sys_file_offset_bits=64
19872else
19873 echo "$as_me: failed program was:" >&5
19874sed 's/^/| /' conftest.$ac_ext >&5
19875
19876ac_cv_sys_file_offset_bits=no
19877fi
ac1cb8d3 19878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19879
19880
19881fi
19882echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19883echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19884
19885 if test "$ac_cv_sys_file_offset_bits" != no; then
19886 wx_largefile=yes
19887 cat >>confdefs.h <<_ACEOF
19888#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19889_ACEOF
19890
19891 fi
19892
19893 if test "x$wx_largefile" != "xyes"; then
19894
19895 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19896echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19897if test "${ac_cv_sys_large_files+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19899else
19900
19901 cat >conftest.$ac_ext <<_ACEOF
19902/* confdefs.h. */
19903_ACEOF
19904cat confdefs.h >>conftest.$ac_ext
19905cat >>conftest.$ac_ext <<_ACEOF
19906/* end confdefs.h. */
19907#define _LARGE_FILES 1
19908 #include <sys/types.h>
19909int
19910main ()
19911{
19912typedef struct {
19913 unsigned int field: sizeof(off_t) == 8;
19914} wxlf;
19915
19916 ;
19917 return 0;
19918}
19919_ACEOF
19920rm -f conftest.$ac_objext
19921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19922 (eval $ac_compile) 2>conftest.er1
a848cd7e 19923 ac_status=$?
ac1cb8d3
VS
19924 grep -v '^ *+' conftest.er1 >conftest.err
19925 rm -f conftest.er1
19926 cat conftest.err >&5
a848cd7e
SC
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } &&
9dd0f6c2 19929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; } &&
19935 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19938 ac_status=$?
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 ac_cv_sys_large_files=1
19942else
19943 echo "$as_me: failed program was:" >&5
19944sed 's/^/| /' conftest.$ac_ext >&5
19945
19946ac_cv_sys_large_files=no
19947fi
ac1cb8d3 19948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19949
19950
19951fi
19952echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19953echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19954
19955 if test "$ac_cv_sys_large_files" != no; then
19956 wx_largefile=yes
19957 cat >>confdefs.h <<_ACEOF
19958#define _LARGE_FILES $ac_cv_sys_large_files
19959_ACEOF
19960
19961 fi
19962
19963 fi
19964
19965 echo "$as_me:$LINENO: checking if large file support is available" >&5
19966echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19967 if test "x$wx_largefile" = "xyes"; then
19968 cat >>confdefs.h <<\_ACEOF
19969#define HAVE_LARGEFILE_SUPPORT 1
19970_ACEOF
19971
19972 fi
19973 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19974echo "${ECHO_T}$wx_largefile" >&6
19975fi
19976
5b674b9d
DE
19977
19978if test "x$wx_largefile" = "xyes"; then
19979 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19980 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19981 else
19982 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19983 fi
19984 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19985echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19986if test "${ac_cv_sys_largefile_source+set}" = set; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19988else
19989 while :; do
19990 ac_cv_sys_largefile_source=no
19991 cat >conftest.$ac_ext <<_ACEOF
19992/* confdefs.h. */
19993_ACEOF
19994cat confdefs.h >>conftest.$ac_ext
19995cat >>conftest.$ac_ext <<_ACEOF
19996/* end confdefs.h. */
19997#include <stdio.h>
19998int
19999main ()
20000{
20001return !fseeko;
20002 ;
20003 return 0;
20004}
20005_ACEOF
20006rm -f conftest.$ac_objext
20007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20008 (eval $ac_compile) 2>conftest.er1
20009 ac_status=$?
20010 grep -v '^ *+' conftest.er1 >conftest.err
20011 rm -f conftest.er1
20012 cat conftest.err >&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } &&
9dd0f6c2 20015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20018 ac_status=$?
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; } &&
20021 { ac_try='test -s conftest.$ac_objext'
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20024 ac_status=$?
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; }; then
20027 break
20028else
20029 echo "$as_me: failed program was:" >&5
20030sed 's/^/| /' conftest.$ac_ext >&5
20031
20032fi
20033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20034 cat >conftest.$ac_ext <<_ACEOF
20035/* confdefs.h. */
20036_ACEOF
20037cat confdefs.h >>conftest.$ac_ext
20038cat >>conftest.$ac_ext <<_ACEOF
20039/* end confdefs.h. */
20040#define _LARGEFILE_SOURCE 1
20041#include <stdio.h>
20042int
20043main ()
20044{
20045return !fseeko;
20046 ;
20047 return 0;
20048}
20049_ACEOF
20050rm -f conftest.$ac_objext
20051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20052 (eval $ac_compile) 2>conftest.er1
20053 ac_status=$?
20054 grep -v '^ *+' conftest.er1 >conftest.err
20055 rm -f conftest.er1
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } &&
9dd0f6c2 20059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; } &&
20065 { ac_try='test -s conftest.$ac_objext'
20066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067 (eval $ac_try) 2>&5
20068 ac_status=$?
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); }; }; then
20071 ac_cv_sys_largefile_source=1; break
20072else
20073 echo "$as_me: failed program was:" >&5
20074sed 's/^/| /' conftest.$ac_ext >&5
20075
20076fi
20077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20078 break
20079done
20080fi
20081echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20082echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20083if test "$ac_cv_sys_largefile_source" != no; then
20084
20085cat >>confdefs.h <<_ACEOF
20086#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20087_ACEOF
20088
20089fi
20090rm -f conftest*
20091
20092# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20093# in glibc 2.1.3, but that breaks too many other things.
20094# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20095echo "$as_me:$LINENO: checking for fseeko" >&5
20096echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20097if test "${ac_cv_func_fseeko+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20099else
20100 cat >conftest.$ac_ext <<_ACEOF
20101/* confdefs.h. */
20102_ACEOF
20103cat confdefs.h >>conftest.$ac_ext
20104cat >>conftest.$ac_ext <<_ACEOF
20105/* end confdefs.h. */
20106#include <stdio.h>
20107int
20108main ()
20109{
20110return fseeko && fseeko (stdin, 0, 0);
20111 ;
20112 return 0;
20113}
20114_ACEOF
20115rm -f conftest.$ac_objext conftest$ac_exeext
20116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20117 (eval $ac_link) 2>conftest.er1
20118 ac_status=$?
20119 grep -v '^ *+' conftest.er1 >conftest.err
20120 rm -f conftest.er1
20121 cat conftest.err >&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } &&
9dd0f6c2 20124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; } &&
20130 { ac_try='test -s conftest$ac_exeext'
20131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132 (eval $ac_try) 2>&5
20133 ac_status=$?
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; }; then
20136 ac_cv_func_fseeko=yes
20137else
20138 echo "$as_me: failed program was:" >&5
20139sed 's/^/| /' conftest.$ac_ext >&5
20140
20141ac_cv_func_fseeko=no
20142fi
20143rm -f conftest.err conftest.$ac_objext \
20144 conftest$ac_exeext conftest.$ac_ext
20145fi
20146echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20147echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20148if test $ac_cv_func_fseeko = yes; then
20149
20150cat >>confdefs.h <<\_ACEOF
20151#define HAVE_FSEEKO 1
20152_ACEOF
20153
20154fi
20155
5b674b9d
DE
20156 if test "$ac_cv_sys_largefile_source" != no; then
20157 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20158 fi
20159 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20160fi
20161
20162echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20163echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20164if test "${ac_cv_c_bigendian+set}" = set; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20166else
20167 ac_cv_c_bigendian=unknown
20168# See if sys/param.h defines the BYTE_ORDER macro.
20169cat >conftest.$ac_ext <<_ACEOF
20170/* confdefs.h. */
20171_ACEOF
20172cat confdefs.h >>conftest.$ac_ext
20173cat >>conftest.$ac_ext <<_ACEOF
20174/* end confdefs.h. */
20175#include <sys/types.h>
20176#include <sys/param.h>
20177int
20178main ()
20179{
20180
20181#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20182 bogus endian macros
20183#endif
20184 ;
20185 return 0;
20186}
20187_ACEOF
20188rm -f conftest.$ac_objext
20189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20190 (eval $ac_compile) 2>conftest.er1
a848cd7e 20191 ac_status=$?
ac1cb8d3
VS
20192 grep -v '^ *+' conftest.er1 >conftest.err
20193 rm -f conftest.er1
20194 cat conftest.err >&5
a848cd7e
SC
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } &&
9dd0f6c2 20197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; } &&
20203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 # It does; now see whether it defined to BIG_ENDIAN or not.
20210cat >conftest.$ac_ext <<_ACEOF
20211/* confdefs.h. */
20212_ACEOF
20213cat confdefs.h >>conftest.$ac_ext
20214cat >>conftest.$ac_ext <<_ACEOF
20215/* end confdefs.h. */
20216#include <sys/types.h>
20217#include <sys/param.h>
20218int
20219main ()
20220{
20221
20222#if BYTE_ORDER != BIG_ENDIAN
20223 not big endian
20224#endif
20225 ;
20226 return 0;
20227}
20228_ACEOF
20229rm -f conftest.$ac_objext
20230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20231 (eval $ac_compile) 2>conftest.er1
a848cd7e 20232 ac_status=$?
ac1cb8d3
VS
20233 grep -v '^ *+' conftest.er1 >conftest.err
20234 rm -f conftest.er1
20235 cat conftest.err >&5
a848cd7e
SC
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } &&
9dd0f6c2 20238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; } &&
20244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 ac_cv_c_bigendian=yes
20251else
20252 echo "$as_me: failed program was:" >&5
20253sed 's/^/| /' conftest.$ac_ext >&5
20254
20255ac_cv_c_bigendian=no
20256fi
ac1cb8d3 20257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20258else
20259 echo "$as_me: failed program was:" >&5
20260sed 's/^/| /' conftest.$ac_ext >&5
20261
20262fi
ac1cb8d3 20263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20264if test $ac_cv_c_bigendian = unknown; then
20265if test "$cross_compiling" = yes; then
20266 ac_cv_c_bigendian=unknown
20267else
20268 cat >conftest.$ac_ext <<_ACEOF
20269/* confdefs.h. */
20270_ACEOF
20271cat confdefs.h >>conftest.$ac_ext
20272cat >>conftest.$ac_ext <<_ACEOF
20273/* end confdefs.h. */
20274main () {
20275 /* Are we little or big endian? From Harbison&Steele. */
20276 union
20277 {
20278 long l;
20279 char c[sizeof (long)];
20280 } u;
20281 u.l = 1;
20282 exit (u.c[sizeof (long) - 1] == 1);
20283}
20284_ACEOF
20285rm -f conftest$ac_exeext
20286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20287 (eval $ac_link) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292 (eval $ac_try) 2>&5
20293 ac_status=$?
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); }; }; then
20296 ac_cv_c_bigendian=no
20297else
20298 echo "$as_me: program exited with status $ac_status" >&5
20299echo "$as_me: failed program was:" >&5
20300sed 's/^/| /' conftest.$ac_ext >&5
20301
20302( exit $ac_status )
20303ac_cv_c_bigendian=yes
20304fi
ac1cb8d3 20305rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20306fi
20307fi
20308fi
20309echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20310echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20311if test $ac_cv_c_bigendian = unknown; then
20312 { 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
20313echo "$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;}
20314fi
20315if test $ac_cv_c_bigendian = yes; then
20316 cat >>confdefs.h <<\_ACEOF
20317#define WORDS_BIGENDIAN 1
20318_ACEOF
20319
20320fi
20321
20322
20323ac_ext=cc
20324ac_cpp='$CXXCPP $CPPFLAGS'
20325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20328echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20329echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20330if test -z "$CXXCPP"; then
20331 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20333else
20334 # Double quotes because CXXCPP needs to be expanded
20335 for CXXCPP in "$CXX -E" "/lib/cpp"
20336 do
20337 ac_preproc_ok=false
20338for ac_cxx_preproc_warn_flag in '' yes
20339do
20340 # Use a header file that comes with gcc, so configuring glibc
20341 # with a fresh cross-compiler works.
20342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20343 # <limits.h> exists even on freestanding compilers.
20344 # On the NeXT, cc -E runs the code through the compiler's parser,
20345 # not just through cpp. "Syntax error" is here to catch this case.
20346 cat >conftest.$ac_ext <<_ACEOF
20347/* confdefs.h. */
20348_ACEOF
20349cat confdefs.h >>conftest.$ac_ext
20350cat >>conftest.$ac_ext <<_ACEOF
20351/* end confdefs.h. */
20352#ifdef __STDC__
20353# include <limits.h>
20354#else
20355# include <assert.h>
20356#endif
ac1cb8d3 20357 Syntax error
a848cd7e
SC
20358_ACEOF
20359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20361 ac_status=$?
20362 grep -v '^ *+' conftest.er1 >conftest.err
20363 rm -f conftest.er1
20364 cat conftest.err >&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); } >/dev/null; then
20367 if test -s conftest.err; then
20368 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20369 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20370 else
20371 ac_cpp_err=
20372 fi
20373else
20374 ac_cpp_err=yes
20375fi
20376if test -z "$ac_cpp_err"; then
20377 :
20378else
20379 echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
20382 # Broken: fails on valid input.
20383continue
20384fi
20385rm -f conftest.err conftest.$ac_ext
20386
20387 # OK, works on sane cases. Now check whether non-existent headers
20388 # can be detected and how.
20389 cat >conftest.$ac_ext <<_ACEOF
20390/* confdefs.h. */
20391_ACEOF
20392cat confdefs.h >>conftest.$ac_ext
20393cat >>conftest.$ac_ext <<_ACEOF
20394/* end confdefs.h. */
20395#include <ac_nonexistent.h>
20396_ACEOF
20397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20399 ac_status=$?
20400 grep -v '^ *+' conftest.er1 >conftest.err
20401 rm -f conftest.er1
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } >/dev/null; then
20405 if test -s conftest.err; then
20406 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20407 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20408 else
20409 ac_cpp_err=
20410 fi
20411else
20412 ac_cpp_err=yes
20413fi
20414if test -z "$ac_cpp_err"; then
20415 # Broken: success on invalid input.
20416continue
20417else
20418 echo "$as_me: failed program was:" >&5
20419sed 's/^/| /' conftest.$ac_ext >&5
20420
20421 # Passes both tests.
20422ac_preproc_ok=:
20423break
20424fi
20425rm -f conftest.err conftest.$ac_ext
20426
20427done
20428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20429rm -f conftest.err conftest.$ac_ext
20430if $ac_preproc_ok; then
20431 break
20432fi
20433
20434 done
20435 ac_cv_prog_CXXCPP=$CXXCPP
20436
20437fi
20438 CXXCPP=$ac_cv_prog_CXXCPP
20439else
20440 ac_cv_prog_CXXCPP=$CXXCPP
20441fi
20442echo "$as_me:$LINENO: result: $CXXCPP" >&5
20443echo "${ECHO_T}$CXXCPP" >&6
20444ac_preproc_ok=false
20445for ac_cxx_preproc_warn_flag in '' yes
20446do
20447 # Use a header file that comes with gcc, so configuring glibc
20448 # with a fresh cross-compiler works.
20449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20450 # <limits.h> exists even on freestanding compilers.
20451 # On the NeXT, cc -E runs the code through the compiler's parser,
20452 # not just through cpp. "Syntax error" is here to catch this case.
20453 cat >conftest.$ac_ext <<_ACEOF
20454/* confdefs.h. */
20455_ACEOF
20456cat confdefs.h >>conftest.$ac_ext
20457cat >>conftest.$ac_ext <<_ACEOF
20458/* end confdefs.h. */
20459#ifdef __STDC__
20460# include <limits.h>
20461#else
20462# include <assert.h>
20463#endif
ac1cb8d3 20464 Syntax error
a848cd7e
SC
20465_ACEOF
20466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20468 ac_status=$?
20469 grep -v '^ *+' conftest.er1 >conftest.err
20470 rm -f conftest.er1
20471 cat conftest.err >&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); } >/dev/null; then
20474 if test -s conftest.err; then
20475 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20476 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20477 else
20478 ac_cpp_err=
20479 fi
20480else
20481 ac_cpp_err=yes
20482fi
20483if test -z "$ac_cpp_err"; then
20484 :
20485else
20486 echo "$as_me: failed program was:" >&5
20487sed 's/^/| /' conftest.$ac_ext >&5
20488
20489 # Broken: fails on valid input.
20490continue
20491fi
20492rm -f conftest.err conftest.$ac_ext
20493
20494 # OK, works on sane cases. Now check whether non-existent headers
20495 # can be detected and how.
20496 cat >conftest.$ac_ext <<_ACEOF
20497/* confdefs.h. */
20498_ACEOF
20499cat confdefs.h >>conftest.$ac_ext
20500cat >>conftest.$ac_ext <<_ACEOF
20501/* end confdefs.h. */
20502#include <ac_nonexistent.h>
20503_ACEOF
20504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } >/dev/null; then
20512 if test -s conftest.err; then
20513 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20514 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20515 else
20516 ac_cpp_err=
20517 fi
20518else
20519 ac_cpp_err=yes
20520fi
20521if test -z "$ac_cpp_err"; then
20522 # Broken: success on invalid input.
20523continue
20524else
20525 echo "$as_me: failed program was:" >&5
20526sed 's/^/| /' conftest.$ac_ext >&5
20527
20528 # Passes both tests.
20529ac_preproc_ok=:
20530break
20531fi
20532rm -f conftest.err conftest.$ac_ext
20533
20534done
20535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20536rm -f conftest.err conftest.$ac_ext
20537if $ac_preproc_ok; then
20538 :
20539else
20540 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20541See \`config.log' for more details." >&5
20542echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20543See \`config.log' for more details." >&2;}
20544 { (exit 1); exit 1; }; }
20545fi
20546
20547ac_ext=cc
20548ac_cpp='$CXXCPP $CPPFLAGS'
20549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20552
20553
20554
20555
20556
20557 ac_ext=cc
20558ac_cpp='$CXXCPP $CPPFLAGS'
20559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20562
20563
20564
20565for ac_header in iostream
20566do
20567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20568if eval "test \"\${$as_ac_Header+set}\" = set"; then
20569 echo "$as_me:$LINENO: checking for $ac_header" >&5
20570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20571if eval "test \"\${$as_ac_Header+set}\" = set"; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20573fi
20574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20576else
20577 # Is the header compilable?
20578echo "$as_me:$LINENO: checking $ac_header usability" >&5
20579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20580cat >conftest.$ac_ext <<_ACEOF
20581/* confdefs.h. */
20582_ACEOF
20583cat confdefs.h >>conftest.$ac_ext
20584cat >>conftest.$ac_ext <<_ACEOF
20585/* end confdefs.h. */
20586$ac_includes_default
20587#include <$ac_header>
20588_ACEOF
20589rm -f conftest.$ac_objext
20590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20591 (eval $ac_compile) 2>conftest.er1
a848cd7e 20592 ac_status=$?
ac1cb8d3
VS
20593 grep -v '^ *+' conftest.er1 >conftest.err
20594 rm -f conftest.er1
20595 cat conftest.err >&5
a848cd7e
SC
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } &&
9dd0f6c2 20598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20601 ac_status=$?
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; } &&
20604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610 ac_header_compiler=yes
20611else
20612 echo "$as_me: failed program was:" >&5
20613sed 's/^/| /' conftest.$ac_ext >&5
20614
20615ac_header_compiler=no
20616fi
ac1cb8d3 20617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20619echo "${ECHO_T}$ac_header_compiler" >&6
20620
20621# Is the header present?
20622echo "$as_me:$LINENO: checking $ac_header presence" >&5
20623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20624cat >conftest.$ac_ext <<_ACEOF
20625/* confdefs.h. */
20626_ACEOF
20627cat confdefs.h >>conftest.$ac_ext
20628cat >>conftest.$ac_ext <<_ACEOF
20629/* end confdefs.h. */
20630#include <$ac_header>
20631_ACEOF
20632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20634 ac_status=$?
20635 grep -v '^ *+' conftest.er1 >conftest.err
20636 rm -f conftest.er1
20637 cat conftest.err >&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } >/dev/null; then
20640 if test -s conftest.err; then
20641 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20642 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20643 else
20644 ac_cpp_err=
20645 fi
20646else
20647 ac_cpp_err=yes
20648fi
20649if test -z "$ac_cpp_err"; then
20650 ac_header_preproc=yes
20651else
20652 echo "$as_me: failed program was:" >&5
20653sed 's/^/| /' conftest.$ac_ext >&5
20654
20655 ac_header_preproc=no
20656fi
20657rm -f conftest.err conftest.$ac_ext
20658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20659echo "${ECHO_T}$ac_header_preproc" >&6
20660
20661# So? What about this header?
ac1cb8d3
VS
20662case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20663 yes:no: )
a848cd7e
SC
20664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20668 ac_header_preproc=yes
a848cd7e 20669 ;;
ac1cb8d3 20670 no:yes:* )
a848cd7e
SC
20671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20674echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20678echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20683 (
20684 cat <<\_ASBOX
ac1cb8d3
VS
20685## ----------------------------------------- ##
20686## Report this to wx-dev@lists.wxwidgets.org ##
20687## ----------------------------------------- ##
a848cd7e
SC
20688_ASBOX
20689 ) |
20690 sed "s/^/$as_me: WARNING: /" >&2
20691 ;;
20692esac
20693echo "$as_me:$LINENO: checking for $ac_header" >&5
20694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20695if eval "test \"\${$as_ac_Header+set}\" = set"; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20697else
ac1cb8d3 20698 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20699fi
20700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20702
20703fi
20704if test `eval echo '${'$as_ac_Header'}'` = yes; then
20705 cat >>confdefs.h <<_ACEOF
20706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20707_ACEOF
20708
20709fi
20710
20711done
20712
20713
20714 if test "$ac_cv_header_iostream" = "yes" ; then
20715 :
20716 else
20717 cat >>confdefs.h <<\_ACEOF
20718#define wxUSE_IOSTREAMH 1
20719_ACEOF
20720
20721 fi
20722
20723 ac_ext=c
20724ac_cpp='$CPP $CPPFLAGS'
20725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20727ac_compiler_gnu=$ac_cv_c_compiler_gnu
20728
20729
20730
20731
20732 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20733echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20734if test "${wx_cv_cpp_bool+set}" = set; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20736else
20737
20738
20739
20740 ac_ext=cc
20741ac_cpp='$CXXCPP $CPPFLAGS'
20742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20745
20746
20747 cat >conftest.$ac_ext <<_ACEOF
20748/* confdefs.h. */
20749_ACEOF
20750cat confdefs.h >>conftest.$ac_ext
20751cat >>conftest.$ac_ext <<_ACEOF
20752/* end confdefs.h. */
20753
20754
20755int
20756main ()
20757{
20758
20759 bool b = true;
20760
20761 return 0;
20762
20763 ;
20764 return 0;
20765}
20766_ACEOF
20767rm -f conftest.$ac_objext
20768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20769 (eval $ac_compile) 2>conftest.er1
a848cd7e 20770 ac_status=$?
ac1cb8d3
VS
20771 grep -v '^ *+' conftest.er1 >conftest.err
20772 rm -f conftest.er1
20773 cat conftest.err >&5
a848cd7e
SC
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } &&
9dd0f6c2 20776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; } &&
20782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20785 ac_status=$?
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20788
20789 wx_cv_cpp_bool=yes
20790
20791else
20792 echo "$as_me: failed program was:" >&5
20793sed 's/^/| /' conftest.$ac_ext >&5
20794
20795
20796 wx_cv_cpp_bool=no
20797
20798
20799fi
ac1cb8d3 20800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20801
20802 ac_ext=c
20803ac_cpp='$CPP $CPPFLAGS'
20804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20806ac_compiler_gnu=$ac_cv_c_compiler_gnu
20807
20808
20809fi
20810echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20811echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20812
20813 if test "$wx_cv_cpp_bool" = "yes"; then
20814 cat >>confdefs.h <<\_ACEOF
20815#define HAVE_BOOL 1
20816_ACEOF
20817
20818 fi
20819
20820
20821
20822 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20823echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20824if test "${wx_cv_explicit+set}" = set; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20826else
20827
20828
20829
20830 ac_ext=cc
20831ac_cpp='$CXXCPP $CPPFLAGS'
20832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20835
20836
20837 cat >conftest.$ac_ext <<_ACEOF
20838/* confdefs.h. */
20839_ACEOF
20840cat confdefs.h >>conftest.$ac_ext
20841cat >>conftest.$ac_ext <<_ACEOF
20842/* end confdefs.h. */
20843
20844 class Foo { public: explicit Foo(int) {} };
20845
20846int
20847main ()
20848{
20849
20850 return 0;
20851
20852 ;
20853 return 0;
20854}
20855_ACEOF
20856rm -f conftest.$ac_objext
20857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20858 (eval $ac_compile) 2>conftest.er1
a848cd7e 20859 ac_status=$?
ac1cb8d3
VS
20860 grep -v '^ *+' conftest.er1 >conftest.err
20861 rm -f conftest.er1
20862 cat conftest.err >&5
a848cd7e
SC
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } &&
9dd0f6c2 20865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867 (eval $ac_try) 2>&5
20868 ac_status=$?
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; } &&
20871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873 (eval $ac_try) 2>&5
20874 ac_status=$?
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); }; }; then
20877
20878 cat >conftest.$ac_ext <<_ACEOF
20879/* confdefs.h. */
20880_ACEOF
20881cat confdefs.h >>conftest.$ac_ext
20882cat >>conftest.$ac_ext <<_ACEOF
20883/* end confdefs.h. */
20884
20885 class Foo { public: explicit Foo(int) {} };
20886 static void TakeFoo(const Foo& foo) { }
20887
20888int
20889main ()
20890{
20891
20892 TakeFoo(17);
20893 return 0;
20894
20895 ;
20896 return 0;
20897}
20898_ACEOF
20899rm -f conftest.$ac_objext
20900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20901 (eval $ac_compile) 2>conftest.er1
a848cd7e 20902 ac_status=$?
ac1cb8d3
VS
20903 grep -v '^ *+' conftest.er1 >conftest.err
20904 rm -f conftest.er1
20905 cat conftest.err >&5
a848cd7e
SC
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } &&
9dd0f6c2 20908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; } &&
20914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916 (eval $ac_try) 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; }; then
20920 wx_cv_explicit=no
20921else
20922 echo "$as_me: failed program was:" >&5
20923sed 's/^/| /' conftest.$ac_ext >&5
20924
20925wx_cv_explicit=yes
20926
20927fi
ac1cb8d3 20928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20929
20930else
20931 echo "$as_me: failed program was:" >&5
20932sed 's/^/| /' conftest.$ac_ext >&5
20933
20934wx_cv_explicit=no
20935
20936fi
ac1cb8d3 20937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20938
20939 ac_ext=c
20940ac_cpp='$CPP $CPPFLAGS'
20941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943ac_compiler_gnu=$ac_cv_c_compiler_gnu
20944
20945
20946fi
20947echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20948echo "${ECHO_T}$wx_cv_explicit" >&6
20949
20950 if test "$wx_cv_explicit" = "yes"; then
20951 cat >>confdefs.h <<\_ACEOF
20952#define HAVE_EXPLICIT 1
20953_ACEOF
20954
20955 fi
20956
20957
20958echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20959echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20960if test "${ac_cv_cxx_const_cast+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20962else
20963
20964
20965 ac_ext=cc
20966ac_cpp='$CXXCPP $CPPFLAGS'
20967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20970
20971 cat >conftest.$ac_ext <<_ACEOF
20972/* confdefs.h. */
20973_ACEOF
20974cat confdefs.h >>conftest.$ac_ext
20975cat >>conftest.$ac_ext <<_ACEOF
20976/* end confdefs.h. */
20977
20978int
20979main ()
20980{
20981int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20982 ;
20983 return 0;
20984}
20985_ACEOF
20986rm -f conftest.$ac_objext
20987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20988 (eval $ac_compile) 2>conftest.er1
a848cd7e 20989 ac_status=$?
ac1cb8d3
VS
20990 grep -v '^ *+' conftest.er1 >conftest.err
20991 rm -f conftest.er1
20992 cat conftest.err >&5
a848cd7e
SC
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } &&
9dd0f6c2 20995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20998 ac_status=$?
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; } &&
21001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003 (eval $ac_try) 2>&5
21004 ac_status=$?
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; }; then
21007 ac_cv_cxx_const_cast=yes
21008else
21009 echo "$as_me: failed program was:" >&5
21010sed 's/^/| /' conftest.$ac_ext >&5
21011
21012ac_cv_cxx_const_cast=no
21013fi
ac1cb8d3 21014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21015 ac_ext=c
21016ac_cpp='$CPP $CPPFLAGS'
21017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019ac_compiler_gnu=$ac_cv_c_compiler_gnu
21020
21021
21022fi
21023echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21024echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21025if test "$ac_cv_cxx_const_cast" = yes; then
21026
21027cat >>confdefs.h <<\_ACEOF
21028#define HAVE_CONST_CAST
21029_ACEOF
21030
21031fi
21032
7714864e
RL
21033echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21034echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21035if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21037else
21038
21039
21040 ac_ext=cc
21041ac_cpp='$CXXCPP $CPPFLAGS'
21042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21045
21046 cat >conftest.$ac_ext <<_ACEOF
21047/* confdefs.h. */
21048_ACEOF
21049cat confdefs.h >>conftest.$ac_ext
21050cat >>conftest.$ac_ext <<_ACEOF
21051/* end confdefs.h. */
21052#include <typeinfo>
21053class Base { public : Base () {} virtual void f () = 0;};
21054class Derived : public Base { public : Derived () {} virtual void f () {} };
21055class Unrelated { public : Unrelated () {} };
21056int g (Unrelated&) { return 0; }
21057int
21058main ()
21059{
21060
21061Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21062 ;
21063 return 0;
21064}
21065_ACEOF
21066rm -f conftest.$ac_objext
21067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21068 (eval $ac_compile) 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } &&
9dd0f6c2 21075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest.$ac_objext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_cv_cxx_reinterpret_cast=yes
21088else
21089 echo "$as_me: failed program was:" >&5
21090sed 's/^/| /' conftest.$ac_ext >&5
21091
21092ac_cv_cxx_reinterpret_cast=no
21093fi
21094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21095 ac_ext=c
21096ac_cpp='$CPP $CPPFLAGS'
21097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21099ac_compiler_gnu=$ac_cv_c_compiler_gnu
21100
21101
21102fi
21103echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21104echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21105if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21106
21107cat >>confdefs.h <<\_ACEOF
21108#define HAVE_REINTERPRET_CAST
21109_ACEOF
21110
21111fi
21112
a848cd7e
SC
21113echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21114echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21115if test "${ac_cv_cxx_static_cast+set}" = set; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21117else
21118
21119
21120 ac_ext=cc
21121ac_cpp='$CXXCPP $CPPFLAGS'
21122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21125
21126 cat >conftest.$ac_ext <<_ACEOF
21127/* confdefs.h. */
21128_ACEOF
21129cat confdefs.h >>conftest.$ac_ext
21130cat >>conftest.$ac_ext <<_ACEOF
21131/* end confdefs.h. */
21132#include <typeinfo>
21133class Base { public : Base () {} virtual void f () = 0; };
21134class Derived : public Base { public : Derived () {} virtual void f () {} };
21135int g (Derived&) { return 0; }
21136int
21137main ()
21138{
21139
21140Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21141 ;
21142 return 0;
21143}
21144_ACEOF
21145rm -f conftest.$ac_objext
21146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21147 (eval $ac_compile) 2>conftest.er1
a848cd7e 21148 ac_status=$?
ac1cb8d3
VS
21149 grep -v '^ *+' conftest.er1 >conftest.err
21150 rm -f conftest.er1
21151 cat conftest.err >&5
a848cd7e
SC
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } &&
9dd0f6c2 21154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156 (eval $ac_try) 2>&5
21157 ac_status=$?
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; } &&
21160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21166 ac_cv_cxx_static_cast=yes
21167else
21168 echo "$as_me: failed program was:" >&5
21169sed 's/^/| /' conftest.$ac_ext >&5
21170
21171ac_cv_cxx_static_cast=no
21172fi
ac1cb8d3 21173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21174 ac_ext=c
21175ac_cpp='$CPP $CPPFLAGS'
21176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21178ac_compiler_gnu=$ac_cv_c_compiler_gnu
21179
21180
21181fi
21182echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21183echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21184if test "$ac_cv_cxx_static_cast" = yes; then
21185
21186cat >>confdefs.h <<\_ACEOF
21187#define HAVE_STATIC_CAST
21188_ACEOF
21189
21190fi
21191
21192
0a08f02a
MB
21193if test "$wxUSE_UNICODE" = "yes" -a \
21194 \( "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes" \); then
a848cd7e
SC
21195 ac_ext=cc
21196ac_cpp='$CXXCPP $CPPFLAGS'
21197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21200
21201
0a08f02a
MB
21202 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21203echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
a848cd7e
SC
21204 cat >conftest.$ac_ext <<_ACEOF
21205/* confdefs.h. */
21206_ACEOF
21207cat confdefs.h >>conftest.$ac_ext
21208cat >>conftest.$ac_ext <<_ACEOF
21209/* end confdefs.h. */
21210#include <string>
a848cd7e
SC
21211int
21212main ()
21213{
0a08f02a 21214std::wstring foo;
a848cd7e
SC
21215 ;
21216 return 0;
21217}
21218_ACEOF
21219rm -f conftest.$ac_objext
21220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21221 (eval $ac_compile) 2>conftest.er1
a848cd7e 21222 ac_status=$?
ac1cb8d3
VS
21223 grep -v '^ *+' conftest.er1 >conftest.err
21224 rm -f conftest.er1
21225 cat conftest.err >&5
a848cd7e
SC
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } &&
9dd0f6c2 21228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; } &&
21234 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21237 ac_status=$?
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; }; then
21240 echo "$as_me:$LINENO: result: yes" >&5
21241echo "${ECHO_T}yes" >&6
0a08f02a
MB
21242 cat >>confdefs.h <<\_ACEOF
21243#define HAVE_STD_WSTRING 1
21244_ACEOF
21245
a848cd7e
SC
21246else
21247 echo "$as_me: failed program was:" >&5
21248sed 's/^/| /' conftest.$ac_ext >&5
21249
21250echo "$as_me:$LINENO: result: no" >&5
21251echo "${ECHO_T}no" >&6
0a08f02a
MB
21252 echo "$as_me:$LINENO: checking if std::basic_string<wchar_t> works" >&5
21253echo $ECHO_N "checking if std::basic_string<wchar_t> works... $ECHO_C" >&6
21254 cat >conftest.$ac_ext <<_ACEOF
21255/* confdefs.h. */
21256_ACEOF
21257cat confdefs.h >>conftest.$ac_ext
21258cat >>conftest.$ac_ext <<_ACEOF
21259/* end confdefs.h. */
21260
21261 #ifdef HAVE_WCHAR_H
21262 # ifdef __CYGWIN__
21263 # include <stddef.h>
21264 # endif
21265 # include <wchar.h>
21266 #endif
21267 #ifdef HAVE_STDLIB_H
21268 # include <stdlib.h>
21269 #endif
21270 #include <stdio.h>
21271 #include <string>
21272
21273int
21274main ()
21275{
21276std::basic_string<wchar_t> foo;
21277 const wchar_t* dummy = foo.c_str();
21278 ;
21279 return 0;
21280}
21281_ACEOF
21282rm -f conftest.$ac_objext
21283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21284 (eval $ac_compile) 2>conftest.er1
21285 ac_status=$?
21286 grep -v '^ *+' conftest.er1 >conftest.err
21287 rm -f conftest.er1
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } &&
21291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21294 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; } &&
21297 { ac_try='test -s conftest.$ac_objext'
21298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299 (eval $ac_try) 2>&5
21300 ac_status=$?
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; }; then
21303 echo "$as_me:$LINENO: result: yes" >&5
21304echo "${ECHO_T}yes" >&6
21305else
21306 echo "$as_me: failed program was:" >&5
21307sed 's/^/| /' conftest.$ac_ext >&5
21308
21309echo "$as_me:$LINENO: result: no" >&5
21310echo "${ECHO_T}no" >&6
21311 { { echo "$as_me:$LINENO: error: Can't compile without unicode string class" >&5
21312echo "$as_me: error: Can't compile without unicode string class" >&2;}
a848cd7e 21313 { (exit 1); exit 1; }; }
0a08f02a 21314
a848cd7e 21315fi
ac1cb8d3 21316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21317
0a08f02a
MB
21318fi
21319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21320
21321 ac_ext=c
21322ac_cpp='$CPP $CPPFLAGS'
21323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21325ac_compiler_gnu=$ac_cv_c_compiler_gnu
21326
21327fi
21328
21329if test "$wxUSE_STL" = "yes"; then
21330 ac_ext=cc
21331ac_cpp='$CXXCPP $CPPFLAGS'
21332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21335
21336
21337 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21338echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21339 cat >conftest.$ac_ext <<_ACEOF
21340/* confdefs.h. */
21341_ACEOF
21342cat confdefs.h >>conftest.$ac_ext
21343cat >>conftest.$ac_ext <<_ACEOF
21344/* end confdefs.h. */
21345#include <string>
0a08f02a
MB
21346 #include <functional>
21347 #include <algorithm>
21348 #include <vector>
21349 #include <list>
a848cd7e
SC
21350int
21351main ()
21352{
0a08f02a
MB
21353std::vector<int> moo;
21354 std::list<int> foo;
21355 std::vector<int>::iterator it =
21356 std::find_if(moo.begin(), moo.end(),
21357 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21358 ;
21359 return 0;
21360}
21361_ACEOF
21362rm -f conftest.$ac_objext
21363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21364 (eval $ac_compile) 2>conftest.er1
a848cd7e 21365 ac_status=$?
ac1cb8d3
VS
21366 grep -v '^ *+' conftest.er1 >conftest.err
21367 rm -f conftest.er1
21368 cat conftest.err >&5
a848cd7e
SC
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } &&
9dd0f6c2 21371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; } &&
21377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379 (eval $ac_try) 2>&5
21380 ac_status=$?
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); }; }; then
21383 echo "$as_me:$LINENO: result: yes" >&5
21384echo "${ECHO_T}yes" >&6
a848cd7e
SC
21385else
21386 echo "$as_me: failed program was:" >&5
21387sed 's/^/| /' conftest.$ac_ext >&5
21388
21389echo "$as_me:$LINENO: result: no" >&5
21390echo "${ECHO_T}no" >&6
0a08f02a
MB
21391 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21392echo "$as_me: error: Basic STL functionality missing" >&2;}
21393 { (exit 1); exit 1; }; }
a848cd7e 21394fi
ac1cb8d3 21395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21396
21397 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21398echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21399 cat >conftest.$ac_ext <<_ACEOF
21400/* confdefs.h. */
21401_ACEOF
21402cat confdefs.h >>conftest.$ac_ext
21403cat >>conftest.$ac_ext <<_ACEOF
21404/* end confdefs.h. */
21405#include <string>
21406int
21407main ()
21408{
21409std::string foo, bar;
21410 foo.compare(bar);
21411 foo.compare(1, 1, bar);
21412 foo.compare(1, 1, bar, 1, 1);
21413 foo.compare("");
21414 foo.compare(1, 1, "");
21415 foo.compare(1, 1, "", 2);
21416 ;
21417 return 0;
21418}
21419_ACEOF
21420rm -f conftest.$ac_objext
21421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21422 (eval $ac_compile) 2>conftest.er1
a848cd7e 21423 ac_status=$?
ac1cb8d3
VS
21424 grep -v '^ *+' conftest.er1 >conftest.err
21425 rm -f conftest.er1
21426 cat conftest.err >&5
a848cd7e
SC
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
9dd0f6c2 21429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; } &&
21435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
21441 echo "$as_me:$LINENO: result: yes" >&5
21442echo "${ECHO_T}yes" >&6
21443 cat >>confdefs.h <<\_ACEOF
21444#define HAVE_STD_STRING_COMPARE 1
21445_ACEOF
21446
21447else
21448 echo "$as_me: failed program was:" >&5
21449sed 's/^/| /' conftest.$ac_ext >&5
21450
21451echo "$as_me:$LINENO: result: no" >&5
21452echo "${ECHO_T}no" >&6
21453fi
ac1cb8d3 21454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21455
21456 if test "${ac_cv_header_hash_map+set}" = set; then
21457 echo "$as_me:$LINENO: checking for hash_map" >&5
21458echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21459if test "${ac_cv_header_hash_map+set}" = set; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21461fi
21462echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21463echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21464else
21465 # Is the header compilable?
21466echo "$as_me:$LINENO: checking hash_map usability" >&5
21467echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21468cat >conftest.$ac_ext <<_ACEOF
21469/* confdefs.h. */
21470_ACEOF
21471cat confdefs.h >>conftest.$ac_ext
21472cat >>conftest.$ac_ext <<_ACEOF
21473/* end confdefs.h. */
21474$ac_includes_default
21475#include <hash_map>
21476_ACEOF
21477rm -f conftest.$ac_objext
21478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21479 (eval $ac_compile) 2>conftest.er1
bdcade0a 21480 ac_status=$?
ac1cb8d3
VS
21481 grep -v '^ *+' conftest.er1 >conftest.err
21482 rm -f conftest.er1
21483 cat conftest.err >&5
bdcade0a
MB
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } &&
9dd0f6c2 21486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21488 (eval $ac_try) 2>&5
21489 ac_status=$?
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); }; } &&
21492 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; }; then
21498 ac_header_compiler=yes
21499else
21500 echo "$as_me: failed program was:" >&5
21501sed 's/^/| /' conftest.$ac_ext >&5
21502
21503ac_header_compiler=no
21504fi
ac1cb8d3 21505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21506echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21507echo "${ECHO_T}$ac_header_compiler" >&6
21508
21509# Is the header present?
21510echo "$as_me:$LINENO: checking hash_map presence" >&5
21511echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21512cat >conftest.$ac_ext <<_ACEOF
21513/* confdefs.h. */
21514_ACEOF
21515cat confdefs.h >>conftest.$ac_ext
21516cat >>conftest.$ac_ext <<_ACEOF
21517/* end confdefs.h. */
21518#include <hash_map>
21519_ACEOF
21520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21522 ac_status=$?
21523 grep -v '^ *+' conftest.er1 >conftest.err
21524 rm -f conftest.er1
21525 cat conftest.err >&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } >/dev/null; then
21528 if test -s conftest.err; then
21529 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21530 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21531 else
21532 ac_cpp_err=
21533 fi
21534else
21535 ac_cpp_err=yes
21536fi
21537if test -z "$ac_cpp_err"; then
21538 ac_header_preproc=yes
21539else
21540 echo "$as_me: failed program was:" >&5
21541sed 's/^/| /' conftest.$ac_ext >&5
21542
21543 ac_header_preproc=no
21544fi
21545rm -f conftest.err conftest.$ac_ext
21546echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21547echo "${ECHO_T}$ac_header_preproc" >&6
21548
21549# So? What about this header?
ac1cb8d3
VS
21550case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21551 yes:no: )
bdcade0a
MB
21552 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21553echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21554 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21555echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21556 ac_header_preproc=yes
bdcade0a 21557 ;;
ac1cb8d3 21558 no:yes:* )
bdcade0a
MB
21559 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21560echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21561 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21562echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21563 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21564echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21565 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21566echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21567 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21568echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21569 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21570echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21571 (
21572 cat <<\_ASBOX
ac1cb8d3
VS
21573## ----------------------------------------- ##
21574## Report this to wx-dev@lists.wxwidgets.org ##
21575## ----------------------------------------- ##
bdcade0a
MB
21576_ASBOX
21577 ) |
21578 sed "s/^/$as_me: WARNING: /" >&2
21579 ;;
21580esac
21581echo "$as_me:$LINENO: checking for hash_map" >&5
21582echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21583if test "${ac_cv_header_hash_map+set}" = set; then
21584 echo $ECHO_N "(cached) $ECHO_C" >&6
21585else
21586 ac_cv_header_hash_map=$ac_header_preproc
21587fi
21588echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21589echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21590
21591fi
21592if test $ac_cv_header_hash_map = yes; then
21593 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21594echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21595 cat >conftest.$ac_ext <<_ACEOF
21596/* confdefs.h. */
21597_ACEOF
21598cat confdefs.h >>conftest.$ac_ext
21599cat >>conftest.$ac_ext <<_ACEOF
21600/* end confdefs.h. */
21601#include <hash_map>
21602 #include <hash_set>
21603int
21604main ()
21605{
21606std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21607 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21608 ;
21609 return 0;
21610}
21611_ACEOF
21612rm -f conftest.$ac_objext
21613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21614 (eval $ac_compile) 2>conftest.er1
bdcade0a 21615 ac_status=$?
ac1cb8d3
VS
21616 grep -v '^ *+' conftest.er1 >conftest.err
21617 rm -f conftest.er1
21618 cat conftest.err >&5
bdcade0a
MB
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } &&
9dd0f6c2 21621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21624 ac_status=$?
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; } &&
21627 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21630 ac_status=$?
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633 echo "$as_me:$LINENO: result: yes" >&5
21634echo "${ECHO_T}yes" >&6
21635 cat >>confdefs.h <<\_ACEOF
21636#define HAVE_HASH_MAP 1
21637_ACEOF
21638
21639 cat >>confdefs.h <<\_ACEOF
21640#define HAVE_STD_HASH_MAP 1
21641_ACEOF
21642
21643else
21644 echo "$as_me: failed program was:" >&5
21645sed 's/^/| /' conftest.$ac_ext >&5
21646
21647echo "$as_me:$LINENO: result: no" >&5
21648echo "${ECHO_T}no" >&6
21649fi
ac1cb8d3 21650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21651
21652fi
21653
21654
21655
21656 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21657 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21658echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21659if test "${ac_cv_header_ext_hash_map+set}" = set; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21661fi
21662echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21663echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21664else
21665 # Is the header compilable?
21666echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21667echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21668cat >conftest.$ac_ext <<_ACEOF
21669/* confdefs.h. */
21670_ACEOF
21671cat confdefs.h >>conftest.$ac_ext
21672cat >>conftest.$ac_ext <<_ACEOF
21673/* end confdefs.h. */
21674$ac_includes_default
21675#include <ext/hash_map>
21676_ACEOF
21677rm -f conftest.$ac_objext
21678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21679 (eval $ac_compile) 2>conftest.er1
bdcade0a 21680 ac_status=$?
ac1cb8d3
VS
21681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
bdcade0a
MB
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } &&
9dd0f6c2 21686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; } &&
21692 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21695 ac_status=$?
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; }; then
21698 ac_header_compiler=yes
21699else
21700 echo "$as_me: failed program was:" >&5
21701sed 's/^/| /' conftest.$ac_ext >&5
21702
21703ac_header_compiler=no
21704fi
ac1cb8d3 21705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21707echo "${ECHO_T}$ac_header_compiler" >&6
21708
21709# Is the header present?
21710echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21711echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21712cat >conftest.$ac_ext <<_ACEOF
21713/* confdefs.h. */
21714_ACEOF
21715cat confdefs.h >>conftest.$ac_ext
21716cat >>conftest.$ac_ext <<_ACEOF
21717/* end confdefs.h. */
21718#include <ext/hash_map>
21719_ACEOF
21720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21722 ac_status=$?
21723 grep -v '^ *+' conftest.er1 >conftest.err
21724 rm -f conftest.er1
21725 cat conftest.err >&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); } >/dev/null; then
21728 if test -s conftest.err; then
21729 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21730 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21731 else
21732 ac_cpp_err=
21733 fi
21734else
21735 ac_cpp_err=yes
21736fi
21737if test -z "$ac_cpp_err"; then
21738 ac_header_preproc=yes
21739else
21740 echo "$as_me: failed program was:" >&5
21741sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 ac_header_preproc=no
21744fi
21745rm -f conftest.err conftest.$ac_ext
21746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21747echo "${ECHO_T}$ac_header_preproc" >&6
21748
21749# So? What about this header?
ac1cb8d3
VS
21750case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21751 yes:no: )
bdcade0a
MB
21752 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21753echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21754 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21755echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21756 ac_header_preproc=yes
bdcade0a 21757 ;;
ac1cb8d3 21758 no:yes:* )
bdcade0a
MB
21759 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21760echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21761 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21762echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21764echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21765 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21766echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21767 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21768echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21769 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21770echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21771 (
21772 cat <<\_ASBOX
ac1cb8d3
VS
21773## ----------------------------------------- ##
21774## Report this to wx-dev@lists.wxwidgets.org ##
21775## ----------------------------------------- ##
bdcade0a
MB
21776_ASBOX
21777 ) |
21778 sed "s/^/$as_me: WARNING: /" >&2
21779 ;;
21780esac
21781echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21782echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21783if test "${ac_cv_header_ext_hash_map+set}" = set; then
21784 echo $ECHO_N "(cached) $ECHO_C" >&6
21785else
21786 ac_cv_header_ext_hash_map=$ac_header_preproc
21787fi
21788echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21789echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21790
21791fi
21792if test $ac_cv_header_ext_hash_map = yes; then
21793 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21794echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21795 cat >conftest.$ac_ext <<_ACEOF
21796/* confdefs.h. */
21797_ACEOF
21798cat confdefs.h >>conftest.$ac_ext
21799cat >>conftest.$ac_ext <<_ACEOF
21800/* end confdefs.h. */
21801#include <ext/hash_map>
21802 #include <ext/hash_set>
21803int
21804main ()
21805{
21806__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21807 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21808 ;
21809 return 0;
21810}
21811_ACEOF
21812rm -f conftest.$ac_objext
21813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21814 (eval $ac_compile) 2>conftest.er1
bdcade0a 21815 ac_status=$?
ac1cb8d3
VS
21816 grep -v '^ *+' conftest.er1 >conftest.err
21817 rm -f conftest.er1
21818 cat conftest.err >&5
bdcade0a
MB
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } &&
9dd0f6c2 21821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; } &&
21827 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; }; then
21833 echo "$as_me:$LINENO: result: yes" >&5
21834echo "${ECHO_T}yes" >&6
21835 cat >>confdefs.h <<\_ACEOF
21836#define HAVE_EXT_HASH_MAP 1
21837_ACEOF
21838
21839 cat >>confdefs.h <<\_ACEOF
21840#define HAVE_GNU_CXX_HASH_MAP 1
21841_ACEOF
21842
21843else
21844 echo "$as_me: failed program was:" >&5
21845sed 's/^/| /' conftest.$ac_ext >&5
21846
21847echo "$as_me:$LINENO: result: no" >&5
21848echo "${ECHO_T}no" >&6
21849fi
ac1cb8d3 21850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21851
21852fi
21853
21854
a848cd7e
SC
21855
21856 ac_ext=c
21857ac_cpp='$CPP $CPPFLAGS'
21858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21860ac_compiler_gnu=$ac_cv_c_compiler_gnu
21861
21862fi
21863
21864
21865SEARCH_INCLUDE="\
21866 /usr/local/include \
21867 \
21868 /usr/Motif-2.1/include \
21869 /usr/Motif-1.2/include \
21870 /usr/include/Motif1.2 \
21871 /opt/xpm/include/X11 \
21872 /opt/GBxpm/include/ \
21873 /opt/GBxpm/X11/include/ \
21874 \
21875 /usr/dt/include \
21876 /usr/openwin/include \
21877 \
21878 /usr/include/Xm \
21879 \
21880 /usr/X11R6/include \
21881 /usr/X11R6.4/include \
21882 /usr/X11R5/include \
21883 /usr/X11R4/include \
21884 \
21885 /usr/include/X11R6 \
21886 /usr/include/X11R5 \
21887 /usr/include/X11R4 \
21888 \
21889 /usr/local/X11R6/include \
21890 /usr/local/X11R5/include \
21891 /usr/local/X11R4/include \
21892 \
21893 /usr/local/include/X11R6 \
21894 /usr/local/include/X11R5 \
21895 /usr/local/include/X11R4 \
21896 \
21897 /usr/X11/include \
21898 /usr/include/X11 \
21899 /usr/local/X11/include \
21900 /usr/local/include/X11 \
21901 \
21902 /usr/X386/include \
21903 /usr/x386/include \
21904 /usr/XFree86/include/X11 \
21905 \
21906 X:/XFree86/include \
21907 X:/XFree86/include/X11 \
21908 \
21909 /usr/include/gtk \
21910 /usr/local/include/gtk \
21911 /usr/include/glib \
21912 /usr/local/include/glib \
21913 \
21914 /usr/include/qt \
21915 /usr/local/include/qt \
21916 \
21917 /usr/local/arm/3.3.2/include \
21918 \
21919 /usr/include/windows \
21920 /usr/include/wine \
21921 /usr/local/include/wine \
21922 \
21923 /usr/unsupported/include \
21924 /usr/athena/include \
21925 /usr/local/x11r5/include \
21926 /usr/lpp/Xamples/include \
21927 \
21928 /usr/openwin/share/include"
21929
07158944 21930SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
21931
21932
21933cat >confcache <<\_ACEOF
21934# This file is a shell script that caches the results of configure
21935# tests run on this system so they can be shared between configure
21936# scripts and configure runs, see configure's option --config-cache.
21937# It is not useful on other systems. If it contains results you don't
21938# want to keep, you may remove or edit it.
21939#
21940# config.status only pays attention to the cache file if you give it
21941# the --recheck option to rerun configure.
21942#
21943# `ac_cv_env_foo' variables (set or unset) will be overridden when
21944# loading this file, other *unset* `ac_cv_foo' will be assigned the
21945# following values.
21946
21947_ACEOF
21948
21949# The following way of writing the cache mishandles newlines in values,
21950# but we know of no workaround that is simple, portable, and efficient.
21951# So, don't put newlines in cache variables' values.
21952# Ultrix sh set writes to stderr and can't be redirected directly,
21953# and sets the high bit in the cache file unless we assign to the vars.
21954{
21955 (set) 2>&1 |
21956 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21957 *ac_space=\ *)
21958 # `set' does not quote correctly, so add quotes (double-quote
21959 # substitution turns \\\\ into \\, and sed turns \\ into \).
21960 sed -n \
ac1cb8d3
VS
21961 "s/'/'\\\\''/g;
21962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21963 ;;
21964 *)
21965 # `set' quotes correctly as required by POSIX, so do not add quotes.
21966 sed -n \
ac1cb8d3 21967 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21968 ;;
21969 esac;
21970} |
21971 sed '
21972 t clear
21973 : clear
21974 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21975 t end
21976 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21977 : end' >>confcache
21978if diff $cache_file confcache >/dev/null 2>&1; then :; else
21979 if test -w $cache_file; then
21980 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21981 cat confcache >$cache_file
21982 else
21983 echo "not updating unwritable cache $cache_file"
21984 fi
21985fi
21986rm -f confcache
21987
21988if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21989 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21990echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21991if test "${wx_cv_lib_glibc21+set}" = set; then
21992 echo $ECHO_N "(cached) $ECHO_C" >&6
21993else
21994
21995 cat >conftest.$ac_ext <<_ACEOF
21996/* confdefs.h. */
21997_ACEOF
21998cat confdefs.h >>conftest.$ac_ext
21999cat >>conftest.$ac_ext <<_ACEOF
22000/* end confdefs.h. */
22001#include <features.h>
22002int
22003main ()
22004{
22005
22006 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22007 #error not glibc2.1
22008 #endif
22009
22010 ;
22011 return 0;
22012}
22013_ACEOF
22014rm -f conftest.$ac_objext
22015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22016 (eval $ac_compile) 2>conftest.er1
a848cd7e 22017 ac_status=$?
ac1cb8d3
VS
22018 grep -v '^ *+' conftest.er1 >conftest.err
22019 rm -f conftest.er1
22020 cat conftest.err >&5
a848cd7e
SC
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } &&
9dd0f6c2 22023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22026 ac_status=$?
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; } &&
22029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031 (eval $ac_try) 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035
22036 wx_cv_lib_glibc21=yes
22037
22038else
22039 echo "$as_me: failed program was:" >&5
22040sed 's/^/| /' conftest.$ac_ext >&5
22041
22042
22043 wx_cv_lib_glibc21=no
22044
22045
22046fi
ac1cb8d3 22047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22048
22049fi
22050echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22051echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22052 if test "$wx_cv_lib_glibc21" = "yes"; then
22053 cat >>confdefs.h <<\_ACEOF
22054#define wxHAVE_GLIBC2 1
22055_ACEOF
22056
22057 fi
22058fi
22059
22060if test "x$wx_cv_lib_glibc21" = "xyes"; then
22061 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22062 cat >>confdefs.h <<\_ACEOF
22063#define _GNU_SOURCE 1
22064_ACEOF
22065
22066 fi
22067fi
22068
22069
22070
22071if test "$wxUSE_REGEX" != "no"; then
22072 cat >>confdefs.h <<\_ACEOF
22073#define wxUSE_REGEX 1
22074_ACEOF
22075
22076
22077 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22078 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22079echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22080 wxUSE_REGEX=builtin
22081 fi
22082
22083 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22084 if test "${ac_cv_header_regex_h+set}" = set; then
22085 echo "$as_me:$LINENO: checking for regex.h" >&5
22086echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22087if test "${ac_cv_header_regex_h+set}" = set; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22089fi
22090echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22091echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22092else
22093 # Is the header compilable?
22094echo "$as_me:$LINENO: checking regex.h usability" >&5
22095echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22096cat >conftest.$ac_ext <<_ACEOF
22097/* confdefs.h. */
22098_ACEOF
22099cat confdefs.h >>conftest.$ac_ext
22100cat >>conftest.$ac_ext <<_ACEOF
22101/* end confdefs.h. */
22102$ac_includes_default
22103#include <regex.h>
22104_ACEOF
22105rm -f conftest.$ac_objext
22106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22107 (eval $ac_compile) 2>conftest.er1
a848cd7e 22108 ac_status=$?
ac1cb8d3
VS
22109 grep -v '^ *+' conftest.er1 >conftest.err
22110 rm -f conftest.er1
22111 cat conftest.err >&5
a848cd7e
SC
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } &&
9dd0f6c2 22114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116 (eval $ac_try) 2>&5
22117 ac_status=$?
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; } &&
22120 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22122 (eval $ac_try) 2>&5
22123 ac_status=$?
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); }; }; then
22126 ac_header_compiler=yes
22127else
22128 echo "$as_me: failed program was:" >&5
22129sed 's/^/| /' conftest.$ac_ext >&5
22130
22131ac_header_compiler=no
22132fi
ac1cb8d3 22133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22134echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22135echo "${ECHO_T}$ac_header_compiler" >&6
22136
22137# Is the header present?
22138echo "$as_me:$LINENO: checking regex.h presence" >&5
22139echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22140cat >conftest.$ac_ext <<_ACEOF
22141/* confdefs.h. */
22142_ACEOF
22143cat confdefs.h >>conftest.$ac_ext
22144cat >>conftest.$ac_ext <<_ACEOF
22145/* end confdefs.h. */
22146#include <regex.h>
22147_ACEOF
22148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22150 ac_status=$?
22151 grep -v '^ *+' conftest.er1 >conftest.err
22152 rm -f conftest.er1
22153 cat conftest.err >&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); } >/dev/null; then
22156 if test -s conftest.err; then
22157 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22159 else
22160 ac_cpp_err=
22161 fi
22162else
22163 ac_cpp_err=yes
22164fi
22165if test -z "$ac_cpp_err"; then
22166 ac_header_preproc=yes
22167else
22168 echo "$as_me: failed program was:" >&5
22169sed 's/^/| /' conftest.$ac_ext >&5
22170
22171 ac_header_preproc=no
22172fi
22173rm -f conftest.err conftest.$ac_ext
22174echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22175echo "${ECHO_T}$ac_header_preproc" >&6
22176
22177# So? What about this header?
ac1cb8d3
VS
22178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22179 yes:no: )
a848cd7e
SC
22180 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22181echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22182 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22183echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22184 ac_header_preproc=yes
a848cd7e 22185 ;;
ac1cb8d3 22186 no:yes:* )
a848cd7e
SC
22187 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22188echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22189 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22190echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22191 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22192echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22193 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22194echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22195 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22196echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22197 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22198echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22199 (
22200 cat <<\_ASBOX
ac1cb8d3
VS
22201## ----------------------------------------- ##
22202## Report this to wx-dev@lists.wxwidgets.org ##
22203## ----------------------------------------- ##
a848cd7e
SC
22204_ASBOX
22205 ) |
22206 sed "s/^/$as_me: WARNING: /" >&2
22207 ;;
22208esac
22209echo "$as_me:$LINENO: checking for regex.h" >&5
22210echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22211if test "${ac_cv_header_regex_h+set}" = set; then
22212 echo $ECHO_N "(cached) $ECHO_C" >&6
22213else
22214 ac_cv_header_regex_h=$ac_header_preproc
22215fi
22216echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22217echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22218
22219fi
22220if test $ac_cv_header_regex_h = yes; then
22221
22222for ac_func in regcomp
22223do
22224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22225echo "$as_me:$LINENO: checking for $ac_func" >&5
22226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22227if eval "test \"\${$as_ac_var+set}\" = set"; then
22228 echo $ECHO_N "(cached) $ECHO_C" >&6
22229else
22230 cat >conftest.$ac_ext <<_ACEOF
22231/* confdefs.h. */
22232_ACEOF
22233cat confdefs.h >>conftest.$ac_ext
22234cat >>conftest.$ac_ext <<_ACEOF
22235/* end confdefs.h. */
ac1cb8d3
VS
22236/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22238#define $ac_func innocuous_$ac_func
22239
a848cd7e
SC
22240/* System header to define __stub macros and hopefully few prototypes,
22241 which can conflict with char $ac_func (); below.
22242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22243 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22244
a848cd7e
SC
22245#ifdef __STDC__
22246# include <limits.h>
22247#else
22248# include <assert.h>
22249#endif
ac1cb8d3
VS
22250
22251#undef $ac_func
22252
a848cd7e
SC
22253/* Override any gcc2 internal prototype to avoid an error. */
22254#ifdef __cplusplus
22255extern "C"
22256{
22257#endif
22258/* We use char because int might match the return type of a gcc2
22259 builtin and then its argument prototype would still apply. */
22260char $ac_func ();
22261/* The GNU C library defines this for functions which it implements
22262 to always fail with ENOSYS. Some functions are actually named
22263 something starting with __ and the normal name is an alias. */
22264#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22265choke me
22266#else
22267char (*f) () = $ac_func;
22268#endif
22269#ifdef __cplusplus
22270}
22271#endif
22272
22273int
22274main ()
22275{
22276return f != $ac_func;
22277 ;
22278 return 0;
22279}
22280_ACEOF
22281rm -f conftest.$ac_objext conftest$ac_exeext
22282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22283 (eval $ac_link) 2>conftest.er1
a848cd7e 22284 ac_status=$?
ac1cb8d3
VS
22285 grep -v '^ *+' conftest.er1 >conftest.err
22286 rm -f conftest.er1
22287 cat conftest.err >&5
a848cd7e
SC
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } &&
9dd0f6c2 22290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292 (eval $ac_try) 2>&5
22293 ac_status=$?
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; } &&
22296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; }; then
22302 eval "$as_ac_var=yes"
22303else
22304 echo "$as_me: failed program was:" >&5
22305sed 's/^/| /' conftest.$ac_ext >&5
22306
22307eval "$as_ac_var=no"
22308fi
ac1cb8d3
VS
22309rm -f conftest.err conftest.$ac_objext \
22310 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22311fi
22312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22313echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22314if test `eval echo '${'$as_ac_var'}'` = yes; then
22315 cat >>confdefs.h <<_ACEOF
22316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22317_ACEOF
22318
22319fi
22320done
22321
22322fi
22323
22324
22325
22326 if test "x$ac_cv_func_regcomp" != "xyes"; then
22327 if test "$wxUSE_REGEX" = "sys" ; then
22328 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22329echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22330 { (exit 1); exit 1; }; }
22331 else
22332 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22333echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22334 wxUSE_REGEX=builtin
22335 fi
22336 else
22337 wxUSE_REGEX=sys
22338 cat >>confdefs.h <<\_ACEOF
22339#define WX_NO_REGEX_ADVANCED 1
22340_ACEOF
22341
22342 fi
22343 fi
22344fi
22345
22346
22347ZLIB_LINK=
22348if test "$wxUSE_ZLIB" != "no" ; then
22349 cat >>confdefs.h <<\_ACEOF
22350#define wxUSE_ZLIB 1
22351_ACEOF
22352
22353
22354 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22355 if test "$USE_DARWIN" = 1; then
22356 system_zlib_h_ok="yes"
22357 else
22358 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22359echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22360if test "${ac_cv_header_zlib_h+set}" = set; then
22361 echo $ECHO_N "(cached) $ECHO_C" >&6
22362else
22363 if test "$cross_compiling" = yes; then
22364 unset ac_cv_header_zlib_h
22365
22366else
22367 cat >conftest.$ac_ext <<_ACEOF
22368/* confdefs.h. */
22369_ACEOF
22370cat confdefs.h >>conftest.$ac_ext
22371cat >>conftest.$ac_ext <<_ACEOF
22372/* end confdefs.h. */
22373
22374 #include <zlib.h>
22375 #include <stdio.h>
22376
22377 int main()
22378 {
22379 FILE *f=fopen("conftestval", "w");
22380 if (!f) exit(1);
22381 fprintf(f, "%s",
22382 ZLIB_VERSION[0] == '1' &&
22383 (ZLIB_VERSION[2] > '1' ||
22384 (ZLIB_VERSION[2] == '1' &&
22385 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22386 exit(0);
22387 }
22388
22389_ACEOF
22390rm -f conftest$ac_exeext
22391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22392 (eval $ac_link) 2>&5
22393 ac_status=$?
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397 (eval $ac_try) 2>&5
22398 ac_status=$?
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }; }; then
22401 ac_cv_header_zlib_h=`cat conftestval`
22402else
22403 echo "$as_me: program exited with status $ac_status" >&5
22404echo "$as_me: failed program was:" >&5
22405sed 's/^/| /' conftest.$ac_ext >&5
22406
22407( exit $ac_status )
22408ac_cv_header_zlib_h=no
22409fi
ac1cb8d3 22410rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22411fi
22412
22413fi
22414echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22415echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22416 if test "${ac_cv_header_zlib_h+set}" = set; then
22417 echo "$as_me:$LINENO: checking for zlib.h" >&5
22418echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22419if test "${ac_cv_header_zlib_h+set}" = set; then
22420 echo $ECHO_N "(cached) $ECHO_C" >&6
22421fi
22422echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22423echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22424else
22425 # Is the header compilable?
22426echo "$as_me:$LINENO: checking zlib.h usability" >&5
22427echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22428cat >conftest.$ac_ext <<_ACEOF
22429/* confdefs.h. */
22430_ACEOF
22431cat confdefs.h >>conftest.$ac_ext
22432cat >>conftest.$ac_ext <<_ACEOF
22433/* end confdefs.h. */
22434$ac_includes_default
22435#include <zlib.h>
22436_ACEOF
22437rm -f conftest.$ac_objext
22438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22439 (eval $ac_compile) 2>conftest.er1
a848cd7e 22440 ac_status=$?
ac1cb8d3
VS
22441 grep -v '^ *+' conftest.er1 >conftest.err
22442 rm -f conftest.er1
22443 cat conftest.err >&5
a848cd7e
SC
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); } &&
9dd0f6c2 22446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22448 (eval $ac_try) 2>&5
22449 ac_status=$?
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); }; } &&
22452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454 (eval $ac_try) 2>&5
22455 ac_status=$?
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); }; }; then
22458 ac_header_compiler=yes
22459else
22460 echo "$as_me: failed program was:" >&5
22461sed 's/^/| /' conftest.$ac_ext >&5
22462
22463ac_header_compiler=no
22464fi
ac1cb8d3 22465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22467echo "${ECHO_T}$ac_header_compiler" >&6
22468
22469# Is the header present?
22470echo "$as_me:$LINENO: checking zlib.h presence" >&5
22471echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22472cat >conftest.$ac_ext <<_ACEOF
22473/* confdefs.h. */
22474_ACEOF
22475cat confdefs.h >>conftest.$ac_ext
22476cat >>conftest.$ac_ext <<_ACEOF
22477/* end confdefs.h. */
22478#include <zlib.h>
22479_ACEOF
22480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22482 ac_status=$?
22483 grep -v '^ *+' conftest.er1 >conftest.err
22484 rm -f conftest.er1
22485 cat conftest.err >&5
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } >/dev/null; then
22488 if test -s conftest.err; then
22489 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22491 else
22492 ac_cpp_err=
22493 fi
22494else
22495 ac_cpp_err=yes
22496fi
22497if test -z "$ac_cpp_err"; then
22498 ac_header_preproc=yes
22499else
22500 echo "$as_me: failed program was:" >&5
22501sed 's/^/| /' conftest.$ac_ext >&5
22502
22503 ac_header_preproc=no
22504fi
22505rm -f conftest.err conftest.$ac_ext
22506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22507echo "${ECHO_T}$ac_header_preproc" >&6
22508
22509# So? What about this header?
ac1cb8d3
VS
22510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22511 yes:no: )
a848cd7e
SC
22512 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22513echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22514 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22515echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22516 ac_header_preproc=yes
a848cd7e 22517 ;;
ac1cb8d3 22518 no:yes:* )
a848cd7e
SC
22519 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22520echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22521 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22522echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22523 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22524echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22525 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22526echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22527 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22528echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22529 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22530echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22531 (
22532 cat <<\_ASBOX
ac1cb8d3
VS
22533## ----------------------------------------- ##
22534## Report this to wx-dev@lists.wxwidgets.org ##
22535## ----------------------------------------- ##
a848cd7e
SC
22536_ASBOX
22537 ) |
22538 sed "s/^/$as_me: WARNING: /" >&2
22539 ;;
22540esac
22541echo "$as_me:$LINENO: checking for zlib.h" >&5
22542echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22543if test "${ac_cv_header_zlib_h+set}" = set; then
22544 echo $ECHO_N "(cached) $ECHO_C" >&6
22545else
22546 ac_cv_header_zlib_h=$ac_header_preproc
22547fi
22548echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22549echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22550
22551fi
22552
22553
22554
22555 system_zlib_h_ok=$ac_cv_header_zlib_h
22556 fi
22557
22558 if test "$system_zlib_h_ok" = "yes"; then
22559 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22560echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22561if test "${ac_cv_lib_z_deflate+set}" = set; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22563else
22564 ac_check_lib_save_LIBS=$LIBS
22565LIBS="-lz $LIBS"
22566cat >conftest.$ac_ext <<_ACEOF
22567/* confdefs.h. */
22568_ACEOF
22569cat confdefs.h >>conftest.$ac_ext
22570cat >>conftest.$ac_ext <<_ACEOF
22571/* end confdefs.h. */
22572
22573/* Override any gcc2 internal prototype to avoid an error. */
22574#ifdef __cplusplus
22575extern "C"
22576#endif
22577/* We use char because int might match the return type of a gcc2
22578 builtin and then its argument prototype would still apply. */
22579char deflate ();
22580int
22581main ()
22582{
22583deflate ();
22584 ;
22585 return 0;
22586}
22587_ACEOF
22588rm -f conftest.$ac_objext conftest$ac_exeext
22589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22590 (eval $ac_link) 2>conftest.er1
a848cd7e 22591 ac_status=$?
ac1cb8d3
VS
22592 grep -v '^ *+' conftest.er1 >conftest.err
22593 rm -f conftest.er1
22594 cat conftest.err >&5
a848cd7e
SC
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); } &&
9dd0f6c2 22597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599 (eval $ac_try) 2>&5
22600 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); }; } &&
22603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605 (eval $ac_try) 2>&5
22606 ac_status=$?
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); }; }; then
22609 ac_cv_lib_z_deflate=yes
22610else
22611 echo "$as_me: failed program was:" >&5
22612sed 's/^/| /' conftest.$ac_ext >&5
22613
22614ac_cv_lib_z_deflate=no
22615fi
ac1cb8d3
VS
22616rm -f conftest.err conftest.$ac_objext \
22617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22618LIBS=$ac_check_lib_save_LIBS
22619fi
22620echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22621echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22622if test $ac_cv_lib_z_deflate = yes; then
22623 ZLIB_LINK=" -lz"
22624fi
22625
22626 fi
22627
22628 if test "x$ZLIB_LINK" = "x" ; then
22629 if test "$wxUSE_ZLIB" = "sys" ; then
22630 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22631echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22632 { (exit 1); exit 1; }; }
22633 else
22634 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22635echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22636 wxUSE_ZLIB=builtin
22637 fi
22638 else
22639 wxUSE_ZLIB=sys
22640 fi
22641 fi
22642fi
22643
22644
22645PNG_LINK=
22646if test "$wxUSE_LIBPNG" != "no" ; then
22647 cat >>confdefs.h <<\_ACEOF
22648#define wxUSE_LIBPNG 1
22649_ACEOF
22650
22651
22652 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22653 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22654echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22655 wxUSE_LIBPNG=sys
22656 fi
22657
22658 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22659 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22660echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22661 wxUSE_LIBPNG=builtin
22662 fi
22663
22664 if test "$wxUSE_MGL" != 1 ; then
22665 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22666 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22667echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22668if test "${ac_cv_header_png_h+set}" = set; then
22669 echo $ECHO_N "(cached) $ECHO_C" >&6
22670else
22671 if test "$cross_compiling" = yes; then
22672 unset ac_cv_header_png_h
22673
22674else
22675 cat >conftest.$ac_ext <<_ACEOF
22676/* confdefs.h. */
22677_ACEOF
22678cat confdefs.h >>conftest.$ac_ext
22679cat >>conftest.$ac_ext <<_ACEOF
22680/* end confdefs.h. */
22681
22682 #include <png.h>
22683 #include <stdio.h>
22684
22685 int main()
22686 {
22687 FILE *f=fopen("conftestval", "w");
22688 if (!f) exit(1);
22689 fprintf(f, "%s",
22690 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22691 exit(0);
22692 }
22693
22694_ACEOF
22695rm -f conftest$ac_exeext
22696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22697 (eval $ac_link) 2>&5
22698 ac_status=$?
22699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22702 (eval $ac_try) 2>&5
22703 ac_status=$?
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); }; }; then
22706 ac_cv_header_png_h=`cat conftestval`
22707else
22708 echo "$as_me: program exited with status $ac_status" >&5
22709echo "$as_me: failed program was:" >&5
22710sed 's/^/| /' conftest.$ac_ext >&5
22711
22712( exit $ac_status )
22713ac_cv_header_png_h=no
22714fi
ac1cb8d3 22715rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22716fi
22717
22718fi
22719echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22720echo "${ECHO_T}$ac_cv_header_png_h" >&6
22721 if test "${ac_cv_header_png_h+set}" = set; then
22722 echo "$as_me:$LINENO: checking for png.h" >&5
22723echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22724if test "${ac_cv_header_png_h+set}" = set; then
22725 echo $ECHO_N "(cached) $ECHO_C" >&6
22726fi
22727echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22728echo "${ECHO_T}$ac_cv_header_png_h" >&6
22729else
22730 # Is the header compilable?
22731echo "$as_me:$LINENO: checking png.h usability" >&5
22732echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22733cat >conftest.$ac_ext <<_ACEOF
22734/* confdefs.h. */
22735_ACEOF
22736cat confdefs.h >>conftest.$ac_ext
22737cat >>conftest.$ac_ext <<_ACEOF
22738/* end confdefs.h. */
22739$ac_includes_default
22740#include <png.h>
22741_ACEOF
22742rm -f conftest.$ac_objext
22743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22744 (eval $ac_compile) 2>conftest.er1
a848cd7e 22745 ac_status=$?
ac1cb8d3
VS
22746 grep -v '^ *+' conftest.er1 >conftest.err
22747 rm -f conftest.er1
22748 cat conftest.err >&5
a848cd7e
SC
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } &&
9dd0f6c2 22751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22754 ac_status=$?
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; } &&
22757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); }; }; then
22763 ac_header_compiler=yes
22764else
22765 echo "$as_me: failed program was:" >&5
22766sed 's/^/| /' conftest.$ac_ext >&5
22767
22768ac_header_compiler=no
22769fi
ac1cb8d3 22770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22771echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22772echo "${ECHO_T}$ac_header_compiler" >&6
22773
22774# Is the header present?
22775echo "$as_me:$LINENO: checking png.h presence" >&5
22776echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22777cat >conftest.$ac_ext <<_ACEOF
22778/* confdefs.h. */
22779_ACEOF
22780cat confdefs.h >>conftest.$ac_ext
22781cat >>conftest.$ac_ext <<_ACEOF
22782/* end confdefs.h. */
22783#include <png.h>
22784_ACEOF
22785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22787 ac_status=$?
22788 grep -v '^ *+' conftest.er1 >conftest.err
22789 rm -f conftest.er1
22790 cat conftest.err >&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } >/dev/null; then
22793 if test -s conftest.err; then
22794 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22796 else
22797 ac_cpp_err=
22798 fi
22799else
22800 ac_cpp_err=yes
22801fi
22802if test -z "$ac_cpp_err"; then
22803 ac_header_preproc=yes
22804else
22805 echo "$as_me: failed program was:" >&5
22806sed 's/^/| /' conftest.$ac_ext >&5
22807
22808 ac_header_preproc=no
22809fi
22810rm -f conftest.err conftest.$ac_ext
22811echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22812echo "${ECHO_T}$ac_header_preproc" >&6
22813
22814# So? What about this header?
ac1cb8d3
VS
22815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22816 yes:no: )
a848cd7e
SC
22817 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22818echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22819 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22820echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22821 ac_header_preproc=yes
a848cd7e 22822 ;;
ac1cb8d3 22823 no:yes:* )
a848cd7e
SC
22824 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22825echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22826 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22827echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22828 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22829echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22830 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22831echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22832 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22833echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22834 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22835echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22836 (
22837 cat <<\_ASBOX
ac1cb8d3
VS
22838## ----------------------------------------- ##
22839## Report this to wx-dev@lists.wxwidgets.org ##
22840## ----------------------------------------- ##
a848cd7e
SC
22841_ASBOX
22842 ) |
22843 sed "s/^/$as_me: WARNING: /" >&2
22844 ;;
22845esac
22846echo "$as_me:$LINENO: checking for png.h" >&5
22847echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22848if test "${ac_cv_header_png_h+set}" = set; then
22849 echo $ECHO_N "(cached) $ECHO_C" >&6
22850else
22851 ac_cv_header_png_h=$ac_header_preproc
22852fi
22853echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22854echo "${ECHO_T}$ac_cv_header_png_h" >&6
22855
22856fi
22857
22858
22859
22860 if test "$ac_cv_header_png_h" = "yes"; then
22861 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22862echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22863if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22864 echo $ECHO_N "(cached) $ECHO_C" >&6
22865else
22866 ac_check_lib_save_LIBS=$LIBS
22867LIBS="-lpng -lz -lm $LIBS"
22868cat >conftest.$ac_ext <<_ACEOF
22869/* confdefs.h. */
22870_ACEOF
22871cat confdefs.h >>conftest.$ac_ext
22872cat >>conftest.$ac_ext <<_ACEOF
22873/* end confdefs.h. */
22874
22875/* Override any gcc2 internal prototype to avoid an error. */
22876#ifdef __cplusplus
22877extern "C"
22878#endif
22879/* We use char because int might match the return type of a gcc2
22880 builtin and then its argument prototype would still apply. */
22881char png_check_sig ();
22882int
22883main ()
22884{
22885png_check_sig ();
22886 ;
22887 return 0;
22888}
22889_ACEOF
22890rm -f conftest.$ac_objext conftest$ac_exeext
22891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22892 (eval $ac_link) 2>conftest.er1
a848cd7e 22893 ac_status=$?
ac1cb8d3
VS
22894 grep -v '^ *+' conftest.er1 >conftest.err
22895 rm -f conftest.er1
22896 cat conftest.err >&5
a848cd7e
SC
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); } &&
9dd0f6c2 22899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22901 (eval $ac_try) 2>&5
22902 ac_status=$?
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); }; } &&
22905 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907 (eval $ac_try) 2>&5
22908 ac_status=$?
22909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); }; }; then
22911 ac_cv_lib_png_png_check_sig=yes
22912else
22913 echo "$as_me: failed program was:" >&5
22914sed 's/^/| /' conftest.$ac_ext >&5
22915
22916ac_cv_lib_png_png_check_sig=no
22917fi
ac1cb8d3
VS
22918rm -f conftest.err conftest.$ac_objext \
22919 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22920LIBS=$ac_check_lib_save_LIBS
22921fi
22922echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22923echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22924if test $ac_cv_lib_png_png_check_sig = yes; then
22925 PNG_LINK=" -lpng -lz"
22926fi
22927
22928 fi
22929
22930 if test "x$PNG_LINK" = "x" ; then
22931 if test "$wxUSE_LIBPNG" = "sys" ; then
22932 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22933echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22934 { (exit 1); exit 1; }; }
22935 else
22936 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22937echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22938 wxUSE_LIBPNG=builtin
22939 fi
22940 else
22941 wxUSE_LIBPNG=sys
22942 fi
22943 fi
22944 fi
22945
22946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22947fi
22948
22949
22950JPEG_LINK=
22951if test "$wxUSE_LIBJPEG" != "no" ; then
22952 cat >>confdefs.h <<\_ACEOF
22953#define wxUSE_LIBJPEG 1
22954_ACEOF
22955
22956
22957 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22958 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22959echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22960 wxUSE_LIBJPEG=sys
22961 fi
22962
22963 if test "$wxUSE_MGL" != 1 ; then
22964 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22965 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22966echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22967 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22968 echo $ECHO_N "(cached) $ECHO_C" >&6
22969else
22970 cat >conftest.$ac_ext <<_ACEOF
22971/* confdefs.h. */
22972_ACEOF
22973cat confdefs.h >>conftest.$ac_ext
22974cat >>conftest.$ac_ext <<_ACEOF
22975/* end confdefs.h. */
22976
22977 #undef HAVE_STDLIB_H
22978 #include <stdio.h>
22979 #include <jpeglib.h>
22980
22981int
22982main ()
22983{
22984
22985
22986 ;
22987 return 0;
22988}
22989_ACEOF
22990rm -f conftest.$ac_objext
22991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22992 (eval $ac_compile) 2>conftest.er1
a848cd7e 22993 ac_status=$?
ac1cb8d3
VS
22994 grep -v '^ *+' conftest.er1 >conftest.err
22995 rm -f conftest.er1
22996 cat conftest.err >&5
a848cd7e
SC
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } &&
9dd0f6c2 22999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001 (eval $ac_try) 2>&5
23002 ac_status=$?
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); }; } &&
23005 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23008 ac_status=$?
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; }; then
23011 ac_cv_header_jpeglib_h=yes
23012else
23013 echo "$as_me: failed program was:" >&5
23014sed 's/^/| /' conftest.$ac_ext >&5
23015
23016ac_cv_header_jpeglib_h=no
23017
23018fi
ac1cb8d3 23019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23020
23021fi
23022
23023 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23024echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23025
23026 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23027 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23028echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23029if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23030 echo $ECHO_N "(cached) $ECHO_C" >&6
23031else
23032 ac_check_lib_save_LIBS=$LIBS
23033LIBS="-ljpeg $LIBS"
23034cat >conftest.$ac_ext <<_ACEOF
23035/* confdefs.h. */
23036_ACEOF
23037cat confdefs.h >>conftest.$ac_ext
23038cat >>conftest.$ac_ext <<_ACEOF
23039/* end confdefs.h. */
23040
23041/* Override any gcc2 internal prototype to avoid an error. */
23042#ifdef __cplusplus
23043extern "C"
23044#endif
23045/* We use char because int might match the return type of a gcc2
23046 builtin and then its argument prototype would still apply. */
23047char jpeg_read_header ();
23048int
23049main ()
23050{
23051jpeg_read_header ();
23052 ;
23053 return 0;
23054}
23055_ACEOF
23056rm -f conftest.$ac_objext conftest$ac_exeext
23057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23058 (eval $ac_link) 2>conftest.er1
a848cd7e 23059 ac_status=$?
ac1cb8d3
VS
23060 grep -v '^ *+' conftest.er1 >conftest.err
23061 rm -f conftest.er1
23062 cat conftest.err >&5
a848cd7e
SC
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } &&
9dd0f6c2 23065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23067 (eval $ac_try) 2>&5
23068 ac_status=$?
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); }; } &&
23071 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073 (eval $ac_try) 2>&5
23074 ac_status=$?
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); }; }; then
23077 ac_cv_lib_jpeg_jpeg_read_header=yes
23078else
23079 echo "$as_me: failed program was:" >&5
23080sed 's/^/| /' conftest.$ac_ext >&5
23081
23082ac_cv_lib_jpeg_jpeg_read_header=no
23083fi
ac1cb8d3
VS
23084rm -f conftest.err conftest.$ac_objext \
23085 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23086LIBS=$ac_check_lib_save_LIBS
23087fi
23088echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23089echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23090if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23091 JPEG_LINK=" -ljpeg"
23092fi
23093
23094 fi
23095
23096 if test "x$JPEG_LINK" = "x" ; then
23097 if test "$wxUSE_LIBJPEG" = "sys" ; then
23098 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23099echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23100 { (exit 1); exit 1; }; }
23101 else
23102 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23103echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23104 wxUSE_LIBJPEG=builtin
23105 fi
23106 else
23107 wxUSE_LIBJPEG=sys
23108 fi
23109 fi
23110 fi
23111fi
23112
23113
23114TIFF_LINK=
23115TIFF_PREREQ_LINKS=-lm
23116if test "$wxUSE_LIBTIFF" != "no" ; then
23117 cat >>confdefs.h <<\_ACEOF
23118#define wxUSE_LIBTIFF 1
23119_ACEOF
23120
23121
23122 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23123 if test "$wxUSE_LIBJPEG" = "sys"; then
23124 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23125 fi
23126 if test "$wxUSE_ZLIB" = "sys"; then
23127 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23128 fi
23129 if test "${ac_cv_header_tiffio_h+set}" = set; then
23130 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23131echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23132if test "${ac_cv_header_tiffio_h+set}" = set; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23134fi
23135echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23136echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23137else
23138 # Is the header compilable?
23139echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23140echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23141cat >conftest.$ac_ext <<_ACEOF
23142/* confdefs.h. */
23143_ACEOF
23144cat confdefs.h >>conftest.$ac_ext
23145cat >>conftest.$ac_ext <<_ACEOF
23146/* end confdefs.h. */
23147$ac_includes_default
23148#include <tiffio.h>
23149_ACEOF
23150rm -f conftest.$ac_objext
23151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23152 (eval $ac_compile) 2>conftest.er1
a848cd7e 23153 ac_status=$?
ac1cb8d3
VS
23154 grep -v '^ *+' conftest.er1 >conftest.err
23155 rm -f conftest.er1
23156 cat conftest.err >&5
a848cd7e
SC
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); } &&
9dd0f6c2 23159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; } &&
23165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167 (eval $ac_try) 2>&5
23168 ac_status=$?
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); }; }; then
23171 ac_header_compiler=yes
23172else
23173 echo "$as_me: failed program was:" >&5
23174sed 's/^/| /' conftest.$ac_ext >&5
23175
23176ac_header_compiler=no
23177fi
ac1cb8d3 23178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23180echo "${ECHO_T}$ac_header_compiler" >&6
23181
23182# Is the header present?
23183echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23184echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23185cat >conftest.$ac_ext <<_ACEOF
23186/* confdefs.h. */
23187_ACEOF
23188cat confdefs.h >>conftest.$ac_ext
23189cat >>conftest.$ac_ext <<_ACEOF
23190/* end confdefs.h. */
23191#include <tiffio.h>
23192_ACEOF
23193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23195 ac_status=$?
23196 grep -v '^ *+' conftest.er1 >conftest.err
23197 rm -f conftest.er1
23198 cat conftest.err >&5
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } >/dev/null; then
23201 if test -s conftest.err; then
23202 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23204 else
23205 ac_cpp_err=
23206 fi
23207else
23208 ac_cpp_err=yes
23209fi
23210if test -z "$ac_cpp_err"; then
23211 ac_header_preproc=yes
23212else
23213 echo "$as_me: failed program was:" >&5
23214sed 's/^/| /' conftest.$ac_ext >&5
23215
23216 ac_header_preproc=no
23217fi
23218rm -f conftest.err conftest.$ac_ext
23219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23220echo "${ECHO_T}$ac_header_preproc" >&6
23221
23222# So? What about this header?
ac1cb8d3
VS
23223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23224 yes:no: )
a848cd7e
SC
23225 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23226echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23227 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23228echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23229 ac_header_preproc=yes
a848cd7e 23230 ;;
ac1cb8d3 23231 no:yes:* )
a848cd7e
SC
23232 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23233echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23234 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23235echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23236 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23237echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23238 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23239echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23240 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23241echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23242 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23243echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23244 (
23245 cat <<\_ASBOX
ac1cb8d3
VS
23246## ----------------------------------------- ##
23247## Report this to wx-dev@lists.wxwidgets.org ##
23248## ----------------------------------------- ##
a848cd7e
SC
23249_ASBOX
23250 ) |
23251 sed "s/^/$as_me: WARNING: /" >&2
23252 ;;
23253esac
23254echo "$as_me:$LINENO: checking for tiffio.h" >&5
23255echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23256if test "${ac_cv_header_tiffio_h+set}" = set; then
23257 echo $ECHO_N "(cached) $ECHO_C" >&6
23258else
23259 ac_cv_header_tiffio_h=$ac_header_preproc
23260fi
23261echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23262echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23263
23264fi
23265if test $ac_cv_header_tiffio_h = yes; then
23266
23267 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23268echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23269if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23271else
23272 ac_check_lib_save_LIBS=$LIBS
23273LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23274cat >conftest.$ac_ext <<_ACEOF
23275/* confdefs.h. */
23276_ACEOF
23277cat confdefs.h >>conftest.$ac_ext
23278cat >>conftest.$ac_ext <<_ACEOF
23279/* end confdefs.h. */
23280
23281/* Override any gcc2 internal prototype to avoid an error. */
23282#ifdef __cplusplus
23283extern "C"
23284#endif
23285/* We use char because int might match the return type of a gcc2
23286 builtin and then its argument prototype would still apply. */
23287char TIFFError ();
23288int
23289main ()
23290{
23291TIFFError ();
23292 ;
23293 return 0;
23294}
23295_ACEOF
23296rm -f conftest.$ac_objext conftest$ac_exeext
23297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23298 (eval $ac_link) 2>conftest.er1
a848cd7e 23299 ac_status=$?
ac1cb8d3
VS
23300 grep -v '^ *+' conftest.er1 >conftest.err
23301 rm -f conftest.er1
23302 cat conftest.err >&5
a848cd7e
SC
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); } &&
9dd0f6c2 23305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23307 (eval $ac_try) 2>&5
23308 ac_status=$?
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); }; } &&
23311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313 (eval $ac_try) 2>&5
23314 ac_status=$?
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); }; }; then
23317 ac_cv_lib_tiff_TIFFError=yes
23318else
23319 echo "$as_me: failed program was:" >&5
23320sed 's/^/| /' conftest.$ac_ext >&5
23321
23322ac_cv_lib_tiff_TIFFError=no
23323fi
ac1cb8d3
VS
23324rm -f conftest.err conftest.$ac_objext \
23325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23326LIBS=$ac_check_lib_save_LIBS
23327fi
23328echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23329echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23330if test $ac_cv_lib_tiff_TIFFError = yes; then
23331 TIFF_LINK=" -ltiff"
23332fi
23333
23334
23335
23336fi
23337
23338
23339
23340 if test "x$TIFF_LINK" = "x" ; then
23341 if test "$wxUSE_LIBTIFF" = "sys" ; then
23342 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23343echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23344 { (exit 1); exit 1; }; }
23345 else
23346 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23347echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23348 wxUSE_LIBTIFF=builtin
23349 fi
23350 else
23351 wxUSE_LIBTIFF=sys
23352 fi
23353 fi
23354fi
23355
23356
47a7e797
MW
23357if test "$wxUSE_WCHAR_T" != "yes"; then
23358 if test "$wxUSE_EXPAT" != "no"; then
23359 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23360echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23361 wxUSE_EXPAT=no
23362 fi
23363 if test "$wxUSE_XML" != "no"; then
23364 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23365echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23366 wxUSE_XML=no
23367 fi
23368fi
23369
a848cd7e
SC
23370if test "$wxUSE_EXPAT" != "no"; then
23371 wxUSE_XML=yes
23372 cat >>confdefs.h <<\_ACEOF
23373#define wxUSE_EXPAT 1
23374_ACEOF
23375
23376 cat >>confdefs.h <<\_ACEOF
23377#define wxUSE_XML 1
23378_ACEOF
23379
23380
23381 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23382 if test "${ac_cv_header_expat_h+set}" = set; then
23383 echo "$as_me:$LINENO: checking for expat.h" >&5
23384echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23385if test "${ac_cv_header_expat_h+set}" = set; then
23386 echo $ECHO_N "(cached) $ECHO_C" >&6
23387fi
23388echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23389echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23390else
23391 # Is the header compilable?
23392echo "$as_me:$LINENO: checking expat.h usability" >&5
23393echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23394cat >conftest.$ac_ext <<_ACEOF
23395/* confdefs.h. */
23396_ACEOF
23397cat confdefs.h >>conftest.$ac_ext
23398cat >>conftest.$ac_ext <<_ACEOF
23399/* end confdefs.h. */
23400$ac_includes_default
23401#include <expat.h>
23402_ACEOF
23403rm -f conftest.$ac_objext
23404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23405 (eval $ac_compile) 2>conftest.er1
a848cd7e 23406 ac_status=$?
ac1cb8d3
VS
23407 grep -v '^ *+' conftest.er1 >conftest.err
23408 rm -f conftest.er1
23409 cat conftest.err >&5
a848cd7e
SC
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } &&
9dd0f6c2 23412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414 (eval $ac_try) 2>&5
23415 ac_status=$?
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); }; } &&
23418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420 (eval $ac_try) 2>&5
23421 ac_status=$?
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; }; then
23424 ac_header_compiler=yes
23425else
23426 echo "$as_me: failed program was:" >&5
23427sed 's/^/| /' conftest.$ac_ext >&5
23428
23429ac_header_compiler=no
23430fi
ac1cb8d3 23431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23432echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23433echo "${ECHO_T}$ac_header_compiler" >&6
23434
23435# Is the header present?
23436echo "$as_me:$LINENO: checking expat.h presence" >&5
23437echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23438cat >conftest.$ac_ext <<_ACEOF
23439/* confdefs.h. */
23440_ACEOF
23441cat confdefs.h >>conftest.$ac_ext
23442cat >>conftest.$ac_ext <<_ACEOF
23443/* end confdefs.h. */
23444#include <expat.h>
23445_ACEOF
23446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23448 ac_status=$?
23449 grep -v '^ *+' conftest.er1 >conftest.err
23450 rm -f conftest.er1
23451 cat conftest.err >&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); } >/dev/null; then
23454 if test -s conftest.err; then
23455 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23457 else
23458 ac_cpp_err=
23459 fi
23460else
23461 ac_cpp_err=yes
23462fi
23463if test -z "$ac_cpp_err"; then
23464 ac_header_preproc=yes
23465else
23466 echo "$as_me: failed program was:" >&5
23467sed 's/^/| /' conftest.$ac_ext >&5
23468
23469 ac_header_preproc=no
23470fi
23471rm -f conftest.err conftest.$ac_ext
23472echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23473echo "${ECHO_T}$ac_header_preproc" >&6
23474
23475# So? What about this header?
ac1cb8d3
VS
23476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23477 yes:no: )
a848cd7e
SC
23478 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23479echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23480 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23481echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23482 ac_header_preproc=yes
a848cd7e 23483 ;;
ac1cb8d3 23484 no:yes:* )
a848cd7e
SC
23485 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23486echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23487 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23488echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23489 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23490echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23491 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23492echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23493 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23494echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23495 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23496echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23497 (
23498 cat <<\_ASBOX
ac1cb8d3
VS
23499## ----------------------------------------- ##
23500## Report this to wx-dev@lists.wxwidgets.org ##
23501## ----------------------------------------- ##
a848cd7e
SC
23502_ASBOX
23503 ) |
23504 sed "s/^/$as_me: WARNING: /" >&2
23505 ;;
23506esac
23507echo "$as_me:$LINENO: checking for expat.h" >&5
23508echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23509if test "${ac_cv_header_expat_h+set}" = set; then
23510 echo $ECHO_N "(cached) $ECHO_C" >&6
23511else
23512 ac_cv_header_expat_h=$ac_header_preproc
23513fi
23514echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23515echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23516
23517fi
23518if test $ac_cv_header_expat_h = yes; then
23519 found_expat_h=1
23520fi
23521
23522
23523 if test "x$found_expat_h" = "x1"; then
23524 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23525echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23526if test "${wx_cv_expat_is_not_broken+set}" = set; then
23527 echo $ECHO_N "(cached) $ECHO_C" >&6
23528else
23529
23530
23531
23532 ac_ext=cc
23533ac_cpp='$CXXCPP $CPPFLAGS'
23534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23537
23538 cat >conftest.$ac_ext <<_ACEOF
23539/* confdefs.h. */
23540_ACEOF
23541cat confdefs.h >>conftest.$ac_ext
23542cat >>conftest.$ac_ext <<_ACEOF
23543/* end confdefs.h. */
23544#include <expat.h>
23545int
23546main ()
23547{
23548
23549 ;
23550 return 0;
23551}
23552_ACEOF
23553rm -f conftest.$ac_objext
23554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23555 (eval $ac_compile) 2>conftest.er1
a848cd7e 23556 ac_status=$?
ac1cb8d3
VS
23557 grep -v '^ *+' conftest.er1 >conftest.err
23558 rm -f conftest.er1
23559 cat conftest.err >&5
a848cd7e
SC
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } &&
9dd0f6c2 23562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23564 (eval $ac_try) 2>&5
23565 ac_status=$?
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); }; } &&
23568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570 (eval $ac_try) 2>&5
23571 ac_status=$?
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); }; }; then
23574 wx_cv_expat_is_not_broken=yes
23575else
23576 echo "$as_me: failed program was:" >&5
23577sed 's/^/| /' conftest.$ac_ext >&5
23578
23579wx_cv_expat_is_not_broken=no
23580
23581fi
ac1cb8d3 23582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23583 ac_ext=c
23584ac_cpp='$CPP $CPPFLAGS'
23585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23587ac_compiler_gnu=$ac_cv_c_compiler_gnu
23588
23589
23590
23591fi
23592echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23593echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23594 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23595 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23596echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23597if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23598 echo $ECHO_N "(cached) $ECHO_C" >&6
23599else
23600 ac_check_lib_save_LIBS=$LIBS
23601LIBS="-lexpat $LIBS"
23602cat >conftest.$ac_ext <<_ACEOF
23603/* confdefs.h. */
23604_ACEOF
23605cat confdefs.h >>conftest.$ac_ext
23606cat >>conftest.$ac_ext <<_ACEOF
23607/* end confdefs.h. */
23608
23609/* Override any gcc2 internal prototype to avoid an error. */
23610#ifdef __cplusplus
23611extern "C"
23612#endif
23613/* We use char because int might match the return type of a gcc2
23614 builtin and then its argument prototype would still apply. */
23615char XML_ParserCreate ();
23616int
23617main ()
23618{
23619XML_ParserCreate ();
23620 ;
23621 return 0;
23622}
23623_ACEOF
23624rm -f conftest.$ac_objext conftest$ac_exeext
23625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23626 (eval $ac_link) 2>conftest.er1
a848cd7e 23627 ac_status=$?
ac1cb8d3
VS
23628 grep -v '^ *+' conftest.er1 >conftest.err
23629 rm -f conftest.er1
23630 cat conftest.err >&5
a848cd7e
SC
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); } &&
9dd0f6c2 23633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23635 (eval $ac_try) 2>&5
23636 ac_status=$?
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); }; } &&
23639 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23641 (eval $ac_try) 2>&5
23642 ac_status=$?
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); }; }; then
23645 ac_cv_lib_expat_XML_ParserCreate=yes
23646else
23647 echo "$as_me: failed program was:" >&5
23648sed 's/^/| /' conftest.$ac_ext >&5
23649
23650ac_cv_lib_expat_XML_ParserCreate=no
23651fi
ac1cb8d3
VS
23652rm -f conftest.err conftest.$ac_objext \
23653 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23654LIBS=$ac_check_lib_save_LIBS
23655fi
23656echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23657echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23658if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23659 EXPAT_LINK=" -lexpat"
23660fi
23661
23662 fi
23663 fi
23664 if test "x$EXPAT_LINK" = "x" ; then
23665 if test "$wxUSE_EXPAT" = "sys" ; then
23666 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23667echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23668 { (exit 1); exit 1; }; }
23669 else
23670 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23671echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23672 wxUSE_EXPAT=builtin
23673 fi
23674 else
23675 wxUSE_EXPAT=sys
23676 fi
23677 fi
23678 if test "$wxUSE_EXPAT" = "builtin" ; then
23679
23680
23681subdirs="$subdirs src/expat"
23682
23683 fi
23684fi
23685
23686
23687
23688if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23689 if test "${ac_cv_header_mspack_h+set}" = set; then
23690 echo "$as_me:$LINENO: checking for mspack.h" >&5
23691echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23692if test "${ac_cv_header_mspack_h+set}" = set; then
23693 echo $ECHO_N "(cached) $ECHO_C" >&6
23694fi
23695echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23696echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23697else
23698 # Is the header compilable?
23699echo "$as_me:$LINENO: checking mspack.h usability" >&5
23700echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23701cat >conftest.$ac_ext <<_ACEOF
23702/* confdefs.h. */
23703_ACEOF
23704cat confdefs.h >>conftest.$ac_ext
23705cat >>conftest.$ac_ext <<_ACEOF
23706/* end confdefs.h. */
23707$ac_includes_default
23708#include <mspack.h>
23709_ACEOF
23710rm -f conftest.$ac_objext
23711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23712 (eval $ac_compile) 2>conftest.er1
a848cd7e 23713 ac_status=$?
ac1cb8d3
VS
23714 grep -v '^ *+' conftest.er1 >conftest.err
23715 rm -f conftest.er1
23716 cat conftest.err >&5
a848cd7e
SC
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } &&
9dd0f6c2 23719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23722 ac_status=$?
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; } &&
23725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727 (eval $ac_try) 2>&5
23728 ac_status=$?
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; }; then
23731 ac_header_compiler=yes
23732else
23733 echo "$as_me: failed program was:" >&5
23734sed 's/^/| /' conftest.$ac_ext >&5
23735
23736ac_header_compiler=no
23737fi
ac1cb8d3 23738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23739echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23740echo "${ECHO_T}$ac_header_compiler" >&6
23741
23742# Is the header present?
23743echo "$as_me:$LINENO: checking mspack.h presence" >&5
23744echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23745cat >conftest.$ac_ext <<_ACEOF
23746/* confdefs.h. */
23747_ACEOF
23748cat confdefs.h >>conftest.$ac_ext
23749cat >>conftest.$ac_ext <<_ACEOF
23750/* end confdefs.h. */
23751#include <mspack.h>
23752_ACEOF
23753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23755 ac_status=$?
23756 grep -v '^ *+' conftest.er1 >conftest.err
23757 rm -f conftest.er1
23758 cat conftest.err >&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); } >/dev/null; then
23761 if test -s conftest.err; then
23762 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23764 else
23765 ac_cpp_err=
23766 fi
23767else
23768 ac_cpp_err=yes
23769fi
23770if test -z "$ac_cpp_err"; then
23771 ac_header_preproc=yes
23772else
23773 echo "$as_me: failed program was:" >&5
23774sed 's/^/| /' conftest.$ac_ext >&5
23775
23776 ac_header_preproc=no
23777fi
23778rm -f conftest.err conftest.$ac_ext
23779echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23780echo "${ECHO_T}$ac_header_preproc" >&6
23781
23782# So? What about this header?
ac1cb8d3
VS
23783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23784 yes:no: )
a848cd7e
SC
23785 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23786echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23787 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23788echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23789 ac_header_preproc=yes
a848cd7e 23790 ;;
ac1cb8d3 23791 no:yes:* )
a848cd7e
SC
23792 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23793echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23794 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23795echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23796 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23797echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23798 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23799echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23800 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23801echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23802 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23803echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23804 (
23805 cat <<\_ASBOX
ac1cb8d3
VS
23806## ----------------------------------------- ##
23807## Report this to wx-dev@lists.wxwidgets.org ##
23808## ----------------------------------------- ##
a848cd7e
SC
23809_ASBOX
23810 ) |
23811 sed "s/^/$as_me: WARNING: /" >&2
23812 ;;
23813esac
23814echo "$as_me:$LINENO: checking for mspack.h" >&5
23815echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23816if test "${ac_cv_header_mspack_h+set}" = set; then
23817 echo $ECHO_N "(cached) $ECHO_C" >&6
23818else
23819 ac_cv_header_mspack_h=$ac_header_preproc
23820fi
23821echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23822echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23823
23824fi
23825if test $ac_cv_header_mspack_h = yes; then
23826 found_mspack_h=1
23827fi
23828
23829
23830 if test "x$found_mspack_h" = "x1"; then
23831 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23832echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23833if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23834 echo $ECHO_N "(cached) $ECHO_C" >&6
23835else
23836 ac_check_lib_save_LIBS=$LIBS
23837LIBS="-lmspack $LIBS"
23838cat >conftest.$ac_ext <<_ACEOF
23839/* confdefs.h. */
23840_ACEOF
23841cat confdefs.h >>conftest.$ac_ext
23842cat >>conftest.$ac_ext <<_ACEOF
23843/* end confdefs.h. */
23844
23845/* Override any gcc2 internal prototype to avoid an error. */
23846#ifdef __cplusplus
23847extern "C"
23848#endif
23849/* We use char because int might match the return type of a gcc2
23850 builtin and then its argument prototype would still apply. */
23851char mspack_create_chm_decompressor ();
23852int
23853main ()
23854{
23855mspack_create_chm_decompressor ();
23856 ;
23857 return 0;
23858}
23859_ACEOF
23860rm -f conftest.$ac_objext conftest$ac_exeext
23861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23862 (eval $ac_link) 2>conftest.er1
a848cd7e 23863 ac_status=$?
ac1cb8d3
VS
23864 grep -v '^ *+' conftest.er1 >conftest.err
23865 rm -f conftest.er1
23866 cat conftest.err >&5
a848cd7e
SC
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); } &&
9dd0f6c2 23869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871 (eval $ac_try) 2>&5
23872 ac_status=$?
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; } &&
23875 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877 (eval $ac_try) 2>&5
23878 ac_status=$?
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); }; }; then
23881 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23882else
23883 echo "$as_me: failed program was:" >&5
23884sed 's/^/| /' conftest.$ac_ext >&5
23885
23886ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23887fi
ac1cb8d3
VS
23888rm -f conftest.err conftest.$ac_objext \
23889 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23890LIBS=$ac_check_lib_save_LIBS
23891fi
23892echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23893echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23894if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23895 MSPACK_LINK=" -lmspack"
23896fi
23897
23898 fi
23899 if test "x$MSPACK_LINK" = "x" ; then
23900 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23901 fi
23902fi
23903
23904if test "$wxUSE_LIBMSPACK" != "no"; then
23905 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23906#define wxUSE_LIBMSPACK 1
23907_ACEOF
23908
a848cd7e
SC
23909fi
23910
23911
23912
23913AFMINSTALL=
23914WIN32INSTALL=
23915
23916TOOLKIT=
23917TOOLKIT_INCLUDE=
23918WIDGET_SET=
23919
23920if test "$USE_WIN32" = 1 ; then
23921
23922for ac_header in w32api.h
23923do
23924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23925if eval "test \"\${$as_ac_Header+set}\" = set"; then
23926 echo "$as_me:$LINENO: checking for $ac_header" >&5
23927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23928if eval "test \"\${$as_ac_Header+set}\" = set"; then
23929 echo $ECHO_N "(cached) $ECHO_C" >&6
23930fi
23931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23933else
23934 # Is the header compilable?
23935echo "$as_me:$LINENO: checking $ac_header usability" >&5
23936echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23937cat >conftest.$ac_ext <<_ACEOF
23938/* confdefs.h. */
23939_ACEOF
23940cat confdefs.h >>conftest.$ac_ext
23941cat >>conftest.$ac_ext <<_ACEOF
23942/* end confdefs.h. */
23943$ac_includes_default
23944#include <$ac_header>
23945_ACEOF
23946rm -f conftest.$ac_objext
23947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23948 (eval $ac_compile) 2>conftest.er1
a848cd7e 23949 ac_status=$?
ac1cb8d3
VS
23950 grep -v '^ *+' conftest.er1 >conftest.err
23951 rm -f conftest.er1
23952 cat conftest.err >&5
a848cd7e
SC
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); } &&
9dd0f6c2 23955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23957 (eval $ac_try) 2>&5
23958 ac_status=$?
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); }; } &&
23961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23963 (eval $ac_try) 2>&5
23964 ac_status=$?
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); }; }; then
23967 ac_header_compiler=yes
23968else
23969 echo "$as_me: failed program was:" >&5
23970sed 's/^/| /' conftest.$ac_ext >&5
23971
23972ac_header_compiler=no
23973fi
ac1cb8d3 23974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23975echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23976echo "${ECHO_T}$ac_header_compiler" >&6
23977
23978# Is the header present?
23979echo "$as_me:$LINENO: checking $ac_header presence" >&5
23980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23981cat >conftest.$ac_ext <<_ACEOF
23982/* confdefs.h. */
23983_ACEOF
23984cat confdefs.h >>conftest.$ac_ext
23985cat >>conftest.$ac_ext <<_ACEOF
23986/* end confdefs.h. */
23987#include <$ac_header>
23988_ACEOF
23989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23991 ac_status=$?
23992 grep -v '^ *+' conftest.er1 >conftest.err
23993 rm -f conftest.er1
23994 cat conftest.err >&5
23995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); } >/dev/null; then
23997 if test -s conftest.err; then
23998 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24000 else
24001 ac_cpp_err=
24002 fi
24003else
24004 ac_cpp_err=yes
24005fi
24006if test -z "$ac_cpp_err"; then
24007 ac_header_preproc=yes
24008else
24009 echo "$as_me: failed program was:" >&5
24010sed 's/^/| /' conftest.$ac_ext >&5
24011
24012 ac_header_preproc=no
24013fi
24014rm -f conftest.err conftest.$ac_ext
24015echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24016echo "${ECHO_T}$ac_header_preproc" >&6
24017
24018# So? What about this header?
ac1cb8d3
VS
24019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24020 yes:no: )
a848cd7e
SC
24021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24024echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24025 ac_header_preproc=yes
a848cd7e 24026 ;;
ac1cb8d3 24027 no:yes:* )
a848cd7e
SC
24028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24031echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24033echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24035echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24039echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24040 (
24041 cat <<\_ASBOX
ac1cb8d3
VS
24042## ----------------------------------------- ##
24043## Report this to wx-dev@lists.wxwidgets.org ##
24044## ----------------------------------------- ##
a848cd7e
SC
24045_ASBOX
24046 ) |
24047 sed "s/^/$as_me: WARNING: /" >&2
24048 ;;
24049esac
24050echo "$as_me:$LINENO: checking for $ac_header" >&5
24051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24052if eval "test \"\${$as_ac_Header+set}\" = set"; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24054else
ac1cb8d3 24055 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24056fi
24057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24059
24060fi
24061if test `eval echo '${'$as_ac_Header'}'` = yes; then
24062 cat >>confdefs.h <<_ACEOF
24063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24064_ACEOF
24065
24066fi
24067
24068done
24069
24070 if test "${ac_cv_header_windows_h+set}" = set; then
24071 echo "$as_me:$LINENO: checking for windows.h" >&5
24072echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24073if test "${ac_cv_header_windows_h+set}" = set; then
24074 echo $ECHO_N "(cached) $ECHO_C" >&6
24075fi
24076echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24077echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24078else
24079 # Is the header compilable?
24080echo "$as_me:$LINENO: checking windows.h usability" >&5
24081echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24082cat >conftest.$ac_ext <<_ACEOF
24083/* confdefs.h. */
24084_ACEOF
24085cat confdefs.h >>conftest.$ac_ext
24086cat >>conftest.$ac_ext <<_ACEOF
24087/* end confdefs.h. */
24088$ac_includes_default
24089#include <windows.h>
24090_ACEOF
24091rm -f conftest.$ac_objext
24092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24093 (eval $ac_compile) 2>conftest.er1
a848cd7e 24094 ac_status=$?
ac1cb8d3
VS
24095 grep -v '^ *+' conftest.er1 >conftest.err
24096 rm -f conftest.er1
24097 cat conftest.err >&5
a848cd7e
SC
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); } &&
9dd0f6c2 24100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24102 (eval $ac_try) 2>&5
24103 ac_status=$?
24104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105 (exit $ac_status); }; } &&
24106 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24108 (eval $ac_try) 2>&5
24109 ac_status=$?
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); }; }; then
24112 ac_header_compiler=yes
24113else
24114 echo "$as_me: failed program was:" >&5
24115sed 's/^/| /' conftest.$ac_ext >&5
24116
24117ac_header_compiler=no
24118fi
ac1cb8d3 24119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24120echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24121echo "${ECHO_T}$ac_header_compiler" >&6
24122
24123# Is the header present?
24124echo "$as_me:$LINENO: checking windows.h presence" >&5
24125echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24126cat >conftest.$ac_ext <<_ACEOF
24127/* confdefs.h. */
24128_ACEOF
24129cat confdefs.h >>conftest.$ac_ext
24130cat >>conftest.$ac_ext <<_ACEOF
24131/* end confdefs.h. */
24132#include <windows.h>
24133_ACEOF
24134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24136 ac_status=$?
24137 grep -v '^ *+' conftest.er1 >conftest.err
24138 rm -f conftest.er1
24139 cat conftest.err >&5
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); } >/dev/null; then
24142 if test -s conftest.err; then
24143 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24145 else
24146 ac_cpp_err=
24147 fi
24148else
24149 ac_cpp_err=yes
24150fi
24151if test -z "$ac_cpp_err"; then
24152 ac_header_preproc=yes
24153else
24154 echo "$as_me: failed program was:" >&5
24155sed 's/^/| /' conftest.$ac_ext >&5
24156
24157 ac_header_preproc=no
24158fi
24159rm -f conftest.err conftest.$ac_ext
24160echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24161echo "${ECHO_T}$ac_header_preproc" >&6
24162
24163# So? What about this header?
ac1cb8d3
VS
24164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24165 yes:no: )
a848cd7e
SC
24166 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24167echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24168 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24169echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24170 ac_header_preproc=yes
a848cd7e 24171 ;;
ac1cb8d3 24172 no:yes:* )
a848cd7e
SC
24173 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24174echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24175 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24176echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24177 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24178echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24179 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24180echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24181 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24182echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24183 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24184echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24185 (
24186 cat <<\_ASBOX
ac1cb8d3
VS
24187## ----------------------------------------- ##
24188## Report this to wx-dev@lists.wxwidgets.org ##
24189## ----------------------------------------- ##
a848cd7e
SC
24190_ASBOX
24191 ) |
24192 sed "s/^/$as_me: WARNING: /" >&2
24193 ;;
24194esac
24195echo "$as_me:$LINENO: checking for windows.h" >&5
24196echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24197if test "${ac_cv_header_windows_h+set}" = set; then
24198 echo $ECHO_N "(cached) $ECHO_C" >&6
24199else
24200 ac_cv_header_windows_h=$ac_header_preproc
24201fi
24202echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24203echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24204
24205fi
24206if test $ac_cv_header_windows_h = yes; then
24207 :
24208else
24209
24210 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24211echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24212 { (exit 1); exit 1; }; }
24213
24214fi
24215
24216
24217
24218 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24219
24220 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24221 LIBS="$LIBS -loleacc"
24222 fi
24223
24224 case "${host}" in
24225 *-*-cygwin* )
24226 LIBS="$LIBS -lkernel32 -luser32"
24227 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24228 esac
24229
24230 if test "$wxUSE_ODBC" = "sys" ; then
24231 wxUSE_ODBC = "yes"
24232 fi
24233 if test "$wxUSE_ODBC" = "yes" ; then
24234 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24235 cat >>confdefs.h <<\_ACEOF
24236#define wxUSE_ODBC 1
24237_ACEOF
24238
24239 fi
24240
24241 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24242 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24243
24244 WIN32INSTALL=win32install
24245fi
24246
24247if test "$wxUSE_GUI" = "yes"; then
24248 USE_GUI=1
24249
24250 GUI_TK_LIBRARY=
24251
24252 WXGTK12=
24253 WXGTK127=
24254 WXGTK20=
24255 WXGPE=
24256
207bc66c
RN
24257 if test "$wxUSE_COCOA" = 1 ; then
24258 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24259 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24260echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24261 wxUSE_PRINTING_ARCHITECTURE=no
24262 fi
24263 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24264 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24265echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24266 wxUSE_DRAG_AND_DROP=no
24267 fi
24268 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24269 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24270echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24271 wxUSE_DRAGIMAGE=no
24272 fi
24273 fi
24274
a848cd7e
SC
24275 if test "$wxUSE_MSW" = 1 ; then
24276 TOOLKIT=MSW
24277 GUIDIST=MSW_DIST
24278
ceec2216 24279 case "${host}" in
a848cd7e
SC
24280 *-*-mingw32* )
24281 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24282 esac
24283 fi
24284
24285 if test "$wxUSE_GTK" = 1; then
24286 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24287echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24288
24289 gtk_version_cached=1
24290 if test "${wx_cv_lib_gtk+set}" = set; then
24291 echo $ECHO_N "(cached) $ECHO_C" >&6
24292else
24293
24294 gtk_version_cached=0
24295 echo "$as_me:$LINENO: result: " >&5
24296echo "${ECHO_T}" >&6
24297
24298 GTK_MODULES=
24299 if test "$wxUSE_THREADS" = "yes"; then
24300 GTK_MODULES=gthread
24301 fi
24302
f597b41c 24303 wx_cv_lib_gtk=
f34ca037 24304 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24305 # Check whether --enable-gtktest or --disable-gtktest was given.
24306if test "${enable_gtktest+set}" = set; then
24307 enableval="$enable_gtktest"
24308
24309else
24310 enable_gtktest=yes
24311fi;
24312
24313 pkg_config_args=gtk+-2.0
24314 for module in . $GTK_MODULES
24315 do
24316 case "$module" in
24317 gthread)
24318 pkg_config_args="$pkg_config_args gthread-2.0"
24319 ;;
24320 esac
24321 done
24322
24323 no_gtk=""
24324
24325 # Extract the first word of "pkg-config", so it can be a program name with args.
24326set dummy pkg-config; ac_word=$2
24327echo "$as_me:$LINENO: checking for $ac_word" >&5
24328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24329if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24331else
24332 case $PKG_CONFIG in
24333 [\\/]* | ?:[\\/]*)
24334 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24335 ;;
24336 *)
24337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24338for as_dir in $PATH
24339do
24340 IFS=$as_save_IFS
24341 test -z "$as_dir" && as_dir=.
24342 for ac_exec_ext in '' $ac_executable_extensions; do
24343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24344 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24346 break 2
24347 fi
24348done
24349done
24350
24351 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24352 ;;
24353esac
24354fi
24355PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24356
24357if test -n "$PKG_CONFIG"; then
24358 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24359echo "${ECHO_T}$PKG_CONFIG" >&6
24360else
24361 echo "$as_me:$LINENO: result: no" >&5
24362echo "${ECHO_T}no" >&6
24363fi
24364
24365
24366 if test x$PKG_CONFIG != xno ; then
24367 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24368 :
24369 else
c2218763 24370 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24371 no_gtk=yes
24372 PKG_CONFIG=no
24373 fi
24374 else
24375 no_gtk=yes
24376 fi
24377
24378 min_gtk_version=2.0.0
24379 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24380echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24381
24382 if test x$PKG_CONFIG != xno ; then
24383 ## don't try to run the test against uninstalled libtool libs
24384 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24385 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24386 enable_gtktest=no
24387 fi
24388
24389 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24390 :
24391 else
24392 no_gtk=yes
24393 fi
24394 fi
24395
24396 if test x"$no_gtk" = x ; then
24397 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24398 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24399 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24400 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24401 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24402 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24403 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24404 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24405 if test "x$enable_gtktest" = "xyes" ; then
24406 ac_save_CFLAGS="$CFLAGS"
24407 ac_save_LIBS="$LIBS"
24408 CFLAGS="$CFLAGS $GTK_CFLAGS"
24409 LIBS="$GTK_LIBS $LIBS"
24410 rm -f conf.gtktest
24411 if test "$cross_compiling" = yes; then
24412 echo $ac_n "cross compiling; assumed OK... $ac_c"
24413else
24414 cat >conftest.$ac_ext <<_ACEOF
24415/* confdefs.h. */
24416_ACEOF
24417cat confdefs.h >>conftest.$ac_ext
24418cat >>conftest.$ac_ext <<_ACEOF
24419/* end confdefs.h. */
24420
24421#include <gtk/gtk.h>
24422#include <stdio.h>
24423#include <stdlib.h>
24424
24425int
24426main ()
24427{
24428 int major, minor, micro;
24429 char *tmp_version;
24430
24431 system ("touch conf.gtktest");
24432
24433 /* HP/UX 9 (%@#!) writes to sscanf strings */
24434 tmp_version = g_strdup("$min_gtk_version");
24435 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24436 printf("%s, bad version string\n", "$min_gtk_version");
24437 exit(1);
24438 }
24439
24440 if ((gtk_major_version != $gtk_config_major_version) ||
24441 (gtk_minor_version != $gtk_config_minor_version) ||
24442 (gtk_micro_version != $gtk_config_micro_version))
24443 {
24444 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24445 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24446 gtk_major_version, gtk_minor_version, gtk_micro_version);
24447 printf ("*** was found! If pkg-config was correct, then it is best\n");
24448 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24449 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24450 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24451 printf("*** required on your system.\n");
24452 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24453 printf("*** to point to the correct configuration files\n");
24454 }
24455 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24456 (gtk_minor_version != GTK_MINOR_VERSION) ||
24457 (gtk_micro_version != GTK_MICRO_VERSION))
24458 {
24459 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24460 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24461 printf("*** library (version %d.%d.%d)\n",
24462 gtk_major_version, gtk_minor_version, gtk_micro_version);
24463 }
24464 else
24465 {
24466 if ((gtk_major_version > major) ||
24467 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24468 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24469 {
24470 return 0;
24471 }
24472 else
24473 {
24474 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24475 gtk_major_version, gtk_minor_version, gtk_micro_version);
24476 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24477 major, minor, micro);
24478 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24479 printf("***\n");
24480 printf("*** If you have already installed a sufficiently new version, this error\n");
24481 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24482 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24483 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24484 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24485 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24486 printf("*** so that the correct libraries are found at run-time))\n");
24487 }
24488 }
24489 return 1;
24490}
24491
24492_ACEOF
24493rm -f conftest$ac_exeext
24494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24495 (eval $ac_link) 2>&5
24496 ac_status=$?
24497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24500 (eval $ac_try) 2>&5
24501 ac_status=$?
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); }; }; then
24504 :
24505else
24506 echo "$as_me: program exited with status $ac_status" >&5
24507echo "$as_me: failed program was:" >&5
24508sed 's/^/| /' conftest.$ac_ext >&5
24509
24510( exit $ac_status )
24511no_gtk=yes
24512fi
ac1cb8d3 24513rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24514fi
24515 CFLAGS="$ac_save_CFLAGS"
24516 LIBS="$ac_save_LIBS"
24517 fi
24518 fi
24519 if test "x$no_gtk" = x ; then
24520 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24521echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24522 wx_cv_lib_gtk=2.0
24523 else
24524 echo "$as_me:$LINENO: result: no" >&5
24525echo "${ECHO_T}no" >&6
24526 if test "$PKG_CONFIG" = "no" ; then
24527 echo "*** A new enough version of pkg-config was not found."
24528 echo "*** See http://pkgconfig.sourceforge.net"
24529 else
24530 if test -f conf.gtktest ; then
24531 :
24532 else
24533 echo "*** Could not run GTK+ test program, checking why..."
24534 ac_save_CFLAGS="$CFLAGS"
24535 ac_save_LIBS="$LIBS"
24536 CFLAGS="$CFLAGS $GTK_CFLAGS"
24537 LIBS="$LIBS $GTK_LIBS"
24538 cat >conftest.$ac_ext <<_ACEOF
24539/* confdefs.h. */
24540_ACEOF
24541cat confdefs.h >>conftest.$ac_ext
24542cat >>conftest.$ac_ext <<_ACEOF
24543/* end confdefs.h. */
24544
24545#include <gtk/gtk.h>
24546#include <stdio.h>
24547
24548int
24549main ()
24550{
24551 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24552 ;
24553 return 0;
24554}
24555_ACEOF
24556rm -f conftest.$ac_objext conftest$ac_exeext
24557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24558 (eval $ac_link) 2>conftest.er1
a848cd7e 24559 ac_status=$?
ac1cb8d3
VS
24560 grep -v '^ *+' conftest.er1 >conftest.err
24561 rm -f conftest.er1
24562 cat conftest.err >&5
a848cd7e
SC
24563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); } &&
9dd0f6c2 24565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567 (eval $ac_try) 2>&5
24568 ac_status=$?
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); }; } &&
24571 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24573 (eval $ac_try) 2>&5
24574 ac_status=$?
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); }; }; then
24577 echo "*** The test program compiled, but did not run. This usually means"
24578 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24579 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24580 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24581 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24582 echo "*** is required on your system"
24583 echo "***"
24584 echo "*** If you have an old version installed, it is best to remove it, although"
24585 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24586else
24587 echo "$as_me: failed program was:" >&5
24588sed 's/^/| /' conftest.$ac_ext >&5
24589
24590 echo "*** The test program failed to compile or link. See the file config.log for the"
24591 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24592fi
ac1cb8d3
VS
24593rm -f conftest.err conftest.$ac_objext \
24594 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24595 CFLAGS="$ac_save_CFLAGS"
24596 LIBS="$ac_save_LIBS"
24597 fi
24598 fi
24599 GTK_CFLAGS=""
24600 GTK_LIBS=""
24601 :
24602 fi
24603
24604
24605 rm -f conf.gtktest
24606
f597b41c
MW
24607 fi
24608
f34ca037
MW
24609 if test -z "$wx_cv_lib_gtk"; then
24610 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24611
24612# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24613if test "${with_gtk_prefix+set}" = set; then
24614 withval="$with_gtk_prefix"
24615 gtk_config_prefix="$withval"
24616else
24617 gtk_config_prefix=""
24618fi;
24619
24620# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24621if test "${with_gtk_exec_prefix+set}" = set; then
24622 withval="$with_gtk_exec_prefix"
24623 gtk_config_exec_prefix="$withval"
24624else
24625 gtk_config_exec_prefix=""
24626fi;
24627# Check whether --enable-gtktest or --disable-gtktest was given.
24628if test "${enable_gtktest+set}" = set; then
24629 enableval="$enable_gtktest"
24630
24631else
24632 enable_gtktest=yes
24633fi;
24634
24635 for module in . $GTK_MODULES
24636 do
24637 case "$module" in
24638 gthread)
24639 gtk_config_args="$gtk_config_args gthread"
24640 ;;
24641 esac
24642 done
24643
24644 if test x$gtk_config_exec_prefix != x ; then
24645 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24646 if test x${GTK_CONFIG+set} != xset ; then
24647 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24648 fi
24649 fi
24650 if test x$gtk_config_prefix != x ; then
24651 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24652 if test x${GTK_CONFIG+set} != xset ; then
24653 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24654 fi
24655 fi
24656
24657 # Extract the first word of "gtk-config", so it can be a program name with args.
24658set dummy gtk-config; ac_word=$2
24659echo "$as_me:$LINENO: checking for $ac_word" >&5
24660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24661if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24662 echo $ECHO_N "(cached) $ECHO_C" >&6
24663else
24664 case $GTK_CONFIG in
24665 [\\/]* | ?:[\\/]*)
24666 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24667 ;;
24668 *)
24669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24670for as_dir in $PATH
24671do
24672 IFS=$as_save_IFS
24673 test -z "$as_dir" && as_dir=.
24674 for ac_exec_ext in '' $ac_executable_extensions; do
24675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24676 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24678 break 2
24679 fi
24680done
24681done
24682
24683 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24684 ;;
24685esac
24686fi
24687GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24688
24689if test -n "$GTK_CONFIG"; then
24690 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24691echo "${ECHO_T}$GTK_CONFIG" >&6
24692else
24693 echo "$as_me:$LINENO: result: no" >&5
24694echo "${ECHO_T}no" >&6
24695fi
24696
24697 min_gtk_version=1.2.7
24698 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24699echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24700 no_gtk=""
24701 if test "$GTK_CONFIG" = "no" ; then
24702 no_gtk=yes
24703 else
24704 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24705 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24706 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24707 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24708 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24709 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24710 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24711 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24712 if test "x$enable_gtktest" = "xyes" ; then
24713 ac_save_CFLAGS="$CFLAGS"
24714 ac_save_LIBS="$LIBS"
24715 CFLAGS="$CFLAGS $GTK_CFLAGS"
24716 LIBS="$GTK_LIBS $LIBS"
24717 rm -f conf.gtktest
24718 if test "$cross_compiling" = yes; then
24719 echo $ac_n "cross compiling; assumed OK... $ac_c"
24720else
24721 cat >conftest.$ac_ext <<_ACEOF
24722/* confdefs.h. */
24723_ACEOF
24724cat confdefs.h >>conftest.$ac_ext
24725cat >>conftest.$ac_ext <<_ACEOF
24726/* end confdefs.h. */
24727
24728#include <gtk/gtk.h>
24729#include <stdio.h>
24730#include <stdlib.h>
24731
24732int
24733main ()
24734{
24735 int major, minor, micro;
24736 char *tmp_version;
24737
24738 system ("touch conf.gtktest");
24739
24740 /* HP/UX 9 (%@#!) writes to sscanf strings */
24741 tmp_version = g_strdup("$min_gtk_version");
24742 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24743 printf("%s, bad version string\n", "$min_gtk_version");
24744 exit(1);
24745 }
24746
24747 if ((gtk_major_version != $gtk_config_major_version) ||
24748 (gtk_minor_version != $gtk_config_minor_version) ||
24749 (gtk_micro_version != $gtk_config_micro_version))
24750 {
24751 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24752 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24753 gtk_major_version, gtk_minor_version, gtk_micro_version);
24754 printf ("*** was found! If gtk-config was correct, then it is best\n");
24755 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24756 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24757 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24758 printf("*** required on your system.\n");
24759 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24760 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24761 printf("*** before re-running configure\n");
24762 }
24763#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24764 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24765 (gtk_minor_version != GTK_MINOR_VERSION) ||
24766 (gtk_micro_version != GTK_MICRO_VERSION))
24767 {
24768 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24769 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24770 printf("*** library (version %d.%d.%d)\n",
24771 gtk_major_version, gtk_minor_version, gtk_micro_version);
24772 }
24773#endif /* defined (GTK_MAJOR_VERSION) ... */
24774 else
24775 {
24776 if ((gtk_major_version > major) ||
24777 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24778 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24779 {
24780 return 0;
24781 }
24782 else
24783 {
24784 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24785 gtk_major_version, gtk_minor_version, gtk_micro_version);
24786 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24787 major, minor, micro);
24788 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24789 printf("***\n");
24790 printf("*** If you have already installed a sufficiently new version, this error\n");
24791 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24792 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24793 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24794 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24795 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24796 printf("*** so that the correct libraries are found at run-time))\n");
24797 }
24798 }
24799 return 1;
24800}
24801
24802_ACEOF
24803rm -f conftest$ac_exeext
24804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24805 (eval $ac_link) 2>&5
24806 ac_status=$?
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24810 (eval $ac_try) 2>&5
24811 ac_status=$?
24812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); }; }; then
24814 :
24815else
24816 echo "$as_me: program exited with status $ac_status" >&5
24817echo "$as_me: failed program was:" >&5
24818sed 's/^/| /' conftest.$ac_ext >&5
24819
24820( exit $ac_status )
24821no_gtk=yes
24822fi
ac1cb8d3 24823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24824fi
24825 CFLAGS="$ac_save_CFLAGS"
24826 LIBS="$ac_save_LIBS"
24827 fi
24828 fi
24829 if test "x$no_gtk" = x ; then
24830 echo "$as_me:$LINENO: result: yes" >&5
24831echo "${ECHO_T}yes" >&6
24832 wx_cv_lib_gtk=1.2.7
24833 else
24834 echo "$as_me:$LINENO: result: no" >&5
24835echo "${ECHO_T}no" >&6
24836 if test "$GTK_CONFIG" = "no" ; then
24837 echo "*** The gtk-config script installed by GTK could not be found"
24838 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24839 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24840 echo "*** full path to gtk-config."
24841 else
24842 if test -f conf.gtktest ; then
24843 :
24844 else
24845 echo "*** Could not run GTK test program, checking why..."
24846 CFLAGS="$CFLAGS $GTK_CFLAGS"
24847 LIBS="$LIBS $GTK_LIBS"
24848 cat >conftest.$ac_ext <<_ACEOF
24849/* confdefs.h. */
24850_ACEOF
24851cat confdefs.h >>conftest.$ac_ext
24852cat >>conftest.$ac_ext <<_ACEOF
24853/* end confdefs.h. */
24854
24855#include <gtk/gtk.h>
24856#include <stdio.h>
24857
24858int
24859main ()
24860{
24861 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24862 ;
24863 return 0;
24864}
24865_ACEOF
24866rm -f conftest.$ac_objext conftest$ac_exeext
24867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24868 (eval $ac_link) 2>conftest.er1
a848cd7e 24869 ac_status=$?
ac1cb8d3
VS
24870 grep -v '^ *+' conftest.er1 >conftest.err
24871 rm -f conftest.er1
24872 cat conftest.err >&5
a848cd7e
SC
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); } &&
9dd0f6c2 24875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24877 (eval $ac_try) 2>&5
24878 ac_status=$?
24879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880 (exit $ac_status); }; } &&
24881 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24883 (eval $ac_try) 2>&5
24884 ac_status=$?
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); }; }; then
24887 echo "*** The test program compiled, but did not run. This usually means"
24888 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24889 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24890 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24891 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24892 echo "*** is required on your system"
24893 echo "***"
24894 echo "*** If you have an old version installed, it is best to remove it, although"
24895 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24896 echo "***"
24897 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24898 echo "*** came with the system with the command"
24899 echo "***"
24900 echo "*** rpm --erase --nodeps gtk gtk-devel"
24901else
24902 echo "$as_me: failed program was:" >&5
24903sed 's/^/| /' conftest.$ac_ext >&5
24904
24905 echo "*** The test program failed to compile or link. See the file config.log for the"
24906 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24907 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24908 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24909fi
ac1cb8d3
VS
24910rm -f conftest.err conftest.$ac_objext \
24911 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24912 CFLAGS="$ac_save_CFLAGS"
24913 LIBS="$ac_save_LIBS"
24914 fi
24915 fi
24916 GTK_CFLAGS=""
24917 GTK_LIBS=""
24918 :
24919 fi
24920
24921
24922 rm -f conf.gtktest
24923
24924
f34ca037 24925 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
24926
24927# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24928if test "${with_gtk_prefix+set}" = set; then
24929 withval="$with_gtk_prefix"
24930 gtk_config_prefix="$withval"
24931else
24932 gtk_config_prefix=""
24933fi;
24934
24935# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24936if test "${with_gtk_exec_prefix+set}" = set; then
24937 withval="$with_gtk_exec_prefix"
24938 gtk_config_exec_prefix="$withval"
24939else
24940 gtk_config_exec_prefix=""
24941fi;
24942# Check whether --enable-gtktest or --disable-gtktest was given.
24943if test "${enable_gtktest+set}" = set; then
24944 enableval="$enable_gtktest"
24945
24946else
24947 enable_gtktest=yes
24948fi;
24949
24950 for module in . $GTK_MODULES
24951 do
24952 case "$module" in
24953 gthread)
24954 gtk_config_args="$gtk_config_args gthread"
24955 ;;
24956 esac
24957 done
24958
24959 if test x$gtk_config_exec_prefix != x ; then
24960 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24961 if test x${GTK_CONFIG+set} != xset ; then
24962 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24963 fi
24964 fi
24965 if test x$gtk_config_prefix != x ; then
24966 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24967 if test x${GTK_CONFIG+set} != xset ; then
24968 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24969 fi
24970 fi
24971
24972 # Extract the first word of "gtk-config", so it can be a program name with args.
24973set dummy gtk-config; ac_word=$2
24974echo "$as_me:$LINENO: checking for $ac_word" >&5
24975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24976if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24977 echo $ECHO_N "(cached) $ECHO_C" >&6
24978else
24979 case $GTK_CONFIG in
24980 [\\/]* | ?:[\\/]*)
24981 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24982 ;;
24983 *)
24984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24985for as_dir in $PATH
24986do
24987 IFS=$as_save_IFS
24988 test -z "$as_dir" && as_dir=.
24989 for ac_exec_ext in '' $ac_executable_extensions; do
24990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24991 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24993 break 2
24994 fi
24995done
24996done
24997
24998 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24999 ;;
25000esac
25001fi
25002GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25003
25004if test -n "$GTK_CONFIG"; then
25005 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25006echo "${ECHO_T}$GTK_CONFIG" >&6
25007else
25008 echo "$as_me:$LINENO: result: no" >&5
25009echo "${ECHO_T}no" >&6
25010fi
25011
25012 min_gtk_version=1.2.3
25013 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25014echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25015 no_gtk=""
25016 if test "$GTK_CONFIG" = "no" ; then
25017 no_gtk=yes
25018 else
25019 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25020 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25021 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25022 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25023 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25024 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25025 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25026 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25027 if test "x$enable_gtktest" = "xyes" ; then
25028 ac_save_CFLAGS="$CFLAGS"
25029 ac_save_LIBS="$LIBS"
25030 CFLAGS="$CFLAGS $GTK_CFLAGS"
25031 LIBS="$GTK_LIBS $LIBS"
25032 rm -f conf.gtktest
25033 if test "$cross_compiling" = yes; then
25034 echo $ac_n "cross compiling; assumed OK... $ac_c"
25035else
25036 cat >conftest.$ac_ext <<_ACEOF
25037/* confdefs.h. */
25038_ACEOF
25039cat confdefs.h >>conftest.$ac_ext
25040cat >>conftest.$ac_ext <<_ACEOF
25041/* end confdefs.h. */
25042
25043#include <gtk/gtk.h>
25044#include <stdio.h>
25045#include <stdlib.h>
25046
25047int
25048main ()
25049{
25050 int major, minor, micro;
25051 char *tmp_version;
25052
25053 system ("touch conf.gtktest");
25054
25055 /* HP/UX 9 (%@#!) writes to sscanf strings */
25056 tmp_version = g_strdup("$min_gtk_version");
25057 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25058 printf("%s, bad version string\n", "$min_gtk_version");
25059 exit(1);
25060 }
25061
25062 if ((gtk_major_version != $gtk_config_major_version) ||
25063 (gtk_minor_version != $gtk_config_minor_version) ||
25064 (gtk_micro_version != $gtk_config_micro_version))
25065 {
25066 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25067 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25068 gtk_major_version, gtk_minor_version, gtk_micro_version);
25069 printf ("*** was found! If gtk-config was correct, then it is best\n");
25070 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25071 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25072 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25073 printf("*** required on your system.\n");
25074 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25075 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25076 printf("*** before re-running configure\n");
25077 }
25078#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25079 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25080 (gtk_minor_version != GTK_MINOR_VERSION) ||
25081 (gtk_micro_version != GTK_MICRO_VERSION))
25082 {
25083 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25084 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25085 printf("*** library (version %d.%d.%d)\n",
25086 gtk_major_version, gtk_minor_version, gtk_micro_version);
25087 }
25088#endif /* defined (GTK_MAJOR_VERSION) ... */
25089 else
25090 {
25091 if ((gtk_major_version > major) ||
25092 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25093 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25094 {
25095 return 0;
25096 }
25097 else
25098 {
25099 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25100 gtk_major_version, gtk_minor_version, gtk_micro_version);
25101 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25102 major, minor, micro);
25103 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25104 printf("***\n");
25105 printf("*** If you have already installed a sufficiently new version, this error\n");
25106 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25107 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25108 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25109 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25110 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25111 printf("*** so that the correct libraries are found at run-time))\n");
25112 }
25113 }
25114 return 1;
25115}
25116
25117_ACEOF
25118rm -f conftest$ac_exeext
25119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25120 (eval $ac_link) 2>&5
25121 ac_status=$?
25122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125 (eval $ac_try) 2>&5
25126 ac_status=$?
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }; }; then
25129 :
25130else
25131 echo "$as_me: program exited with status $ac_status" >&5
25132echo "$as_me: failed program was:" >&5
25133sed 's/^/| /' conftest.$ac_ext >&5
25134
25135( exit $ac_status )
25136no_gtk=yes
25137fi
ac1cb8d3 25138rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25139fi
25140 CFLAGS="$ac_save_CFLAGS"
25141 LIBS="$ac_save_LIBS"
25142 fi
25143 fi
25144 if test "x$no_gtk" = x ; then
25145 echo "$as_me:$LINENO: result: yes" >&5
25146echo "${ECHO_T}yes" >&6
25147 wx_cv_lib_gtk=1.2.3
25148 else
25149 echo "$as_me:$LINENO: result: no" >&5
25150echo "${ECHO_T}no" >&6
25151 if test "$GTK_CONFIG" = "no" ; then
25152 echo "*** The gtk-config script installed by GTK could not be found"
25153 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25154 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25155 echo "*** full path to gtk-config."
25156 else
25157 if test -f conf.gtktest ; then
25158 :
25159 else
25160 echo "*** Could not run GTK test program, checking why..."
25161 CFLAGS="$CFLAGS $GTK_CFLAGS"
25162 LIBS="$LIBS $GTK_LIBS"
25163 cat >conftest.$ac_ext <<_ACEOF
25164/* confdefs.h. */
25165_ACEOF
25166cat confdefs.h >>conftest.$ac_ext
25167cat >>conftest.$ac_ext <<_ACEOF
25168/* end confdefs.h. */
25169
25170#include <gtk/gtk.h>
25171#include <stdio.h>
25172
25173int
25174main ()
25175{
25176 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25177 ;
25178 return 0;
25179}
25180_ACEOF
25181rm -f conftest.$ac_objext conftest$ac_exeext
25182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25183 (eval $ac_link) 2>conftest.er1
a848cd7e 25184 ac_status=$?
ac1cb8d3
VS
25185 grep -v '^ *+' conftest.er1 >conftest.err
25186 rm -f conftest.er1
25187 cat conftest.err >&5
a848cd7e
SC
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); } &&
9dd0f6c2 25190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25192 (eval $ac_try) 2>&5
25193 ac_status=$?
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); }; } &&
25196 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198 (eval $ac_try) 2>&5
25199 ac_status=$?
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); }; }; then
25202 echo "*** The test program compiled, but did not run. This usually means"
25203 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25204 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25205 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25206 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25207 echo "*** is required on your system"
25208 echo "***"
25209 echo "*** If you have an old version installed, it is best to remove it, although"
25210 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25211 echo "***"
25212 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25213 echo "*** came with the system with the command"
25214 echo "***"
25215 echo "*** rpm --erase --nodeps gtk gtk-devel"
25216else
25217 echo "$as_me: failed program was:" >&5
25218sed 's/^/| /' conftest.$ac_ext >&5
25219
25220 echo "*** The test program failed to compile or link. See the file config.log for the"
25221 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25222 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25223 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25224fi
ac1cb8d3
VS
25225rm -f conftest.err conftest.$ac_objext \
25226 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25227 CFLAGS="$ac_save_CFLAGS"
25228 LIBS="$ac_save_LIBS"
25229 fi
25230 fi
25231 GTK_CFLAGS=""
25232 GTK_LIBS=""
25233 :
25234 fi
25235
25236
25237 rm -f conf.gtktest
25238
f34ca037 25239 fi
a848cd7e
SC
25240 fi
25241 fi
25242
25243 if test -z "$wx_cv_lib_gtk"; then
25244 wx_cv_lib_gtk=none
25245 else
25246 wx_cv_cflags_gtk=$GTK_CFLAGS
25247 wx_cv_libs_gtk=$GTK_LIBS
25248 fi
25249
25250
25251fi
25252
25253
25254 if test "$gtk_version_cached" = 1; then
25255 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25256echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25257 fi
25258
25259 case "$wx_cv_lib_gtk" in
25260 2.0) WXGTK20=1
25261 TOOLKIT_VERSION=2
25262 ;;
25263 1.2.7) WXGTK127=1
25264 WXGTK12=1
25265 ;;
25266 1.2.3) WXGTK12=1
25267 ;;
25268 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25269The development files for GTK+ were not found. For GTK+ 2, please
25270ensure that pkg-config is in the path and that gtk+-2.0.pc is
25271installed. For GTK+ 1.2 please check that gtk-config is in the path,
25272and that the version is 1.2.3 or above. Also check that the
25273libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25274--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25275 " >&5
25276echo "$as_me: error:
f597b41c
MW
25277The development files for GTK+ were not found. For GTK+ 2, please
25278ensure that pkg-config is in the path and that gtk+-2.0.pc is
25279installed. For GTK+ 1.2 please check that gtk-config is in the path,
25280and that the version is 1.2.3 or above. Also check that the
25281libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25282--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25283 " >&2;}
25284 { (exit 1); exit 1; }; }
25285 ;;
25286 esac
25287
25288 if test "$WXGTK20" = 1; then
304205f1
VS
25289 save_CFLAGS="$CFLAGS"
25290 save_LIBS="$LIBS"
9d271838
VZ
25291 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25292 LIBS="$LIBS $wx_cv_lib_gtk"
304205f1 25293
9755e73b 25294
304205f1
VS
25295for ac_func in pango_font_family_is_monospace
25296do
25297as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25298echo "$as_me:$LINENO: checking for $ac_func" >&5
25299echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25300if eval "test \"\${$as_ac_var+set}\" = set"; then
25301 echo $ECHO_N "(cached) $ECHO_C" >&6
25302else
25303 cat >conftest.$ac_ext <<_ACEOF
25304/* confdefs.h. */
25305_ACEOF
25306cat confdefs.h >>conftest.$ac_ext
25307cat >>conftest.$ac_ext <<_ACEOF
25308/* end confdefs.h. */
25309/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25311#define $ac_func innocuous_$ac_func
25312
25313/* System header to define __stub macros and hopefully few prototypes,
25314 which can conflict with char $ac_func (); below.
25315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25316 <limits.h> exists even on freestanding compilers. */
25317
25318#ifdef __STDC__
25319# include <limits.h>
25320#else
25321# include <assert.h>
25322#endif
25323
25324#undef $ac_func
25325
25326/* Override any gcc2 internal prototype to avoid an error. */
25327#ifdef __cplusplus
25328extern "C"
25329{
25330#endif
25331/* We use char because int might match the return type of a gcc2
25332 builtin and then its argument prototype would still apply. */
25333char $ac_func ();
25334/* The GNU C library defines this for functions which it implements
25335 to always fail with ENOSYS. Some functions are actually named
25336 something starting with __ and the normal name is an alias. */
25337#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25338choke me
25339#else
25340char (*f) () = $ac_func;
25341#endif
25342#ifdef __cplusplus
25343}
25344#endif
25345
25346int
25347main ()
25348{
25349return f != $ac_func;
25350 ;
25351 return 0;
25352}
25353_ACEOF
25354rm -f conftest.$ac_objext conftest$ac_exeext
25355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25356 (eval $ac_link) 2>conftest.er1
25357 ac_status=$?
25358 grep -v '^ *+' conftest.er1 >conftest.err
25359 rm -f conftest.er1
25360 cat conftest.err >&5
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); } &&
9dd0f6c2 25363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25365 (eval $ac_try) 2>&5
25366 ac_status=$?
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); }; } &&
25369 { ac_try='test -s conftest$ac_exeext'
25370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25371 (eval $ac_try) 2>&5
25372 ac_status=$?
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); }; }; then
25375 eval "$as_ac_var=yes"
25376else
25377 echo "$as_me: failed program was:" >&5
25378sed 's/^/| /' conftest.$ac_ext >&5
25379
25380eval "$as_ac_var=no"
25381fi
25382rm -f conftest.err conftest.$ac_objext \
25383 conftest$ac_exeext conftest.$ac_ext
25384fi
25385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25386echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25387if test `eval echo '${'$as_ac_var'}'` = yes; then
25388 cat >>confdefs.h <<_ACEOF
25389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25390_ACEOF
25391
25392fi
25393done
25394
9755e73b
VS
25395
25396 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25397echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25398 cat >conftest.$ac_ext <<_ACEOF
25399/* confdefs.h. */
25400_ACEOF
25401cat confdefs.h >>conftest.$ac_ext
25402cat >>conftest.$ac_ext <<_ACEOF
25403/* end confdefs.h. */
25404
25405 #include <gtk/gtk.h>
25406
25407int
25408main ()
25409{
25410
25411 #if !GTK_CHECK_VERSION(2,4,0)
25412 #error "Not GTK+ 2.4"
25413 #endif
25414
25415 ;
25416 return 0;
25417}
25418_ACEOF
25419rm -f conftest.$ac_objext
25420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25421 (eval $ac_compile) 2>conftest.er1
25422 ac_status=$?
25423 grep -v '^ *+' conftest.er1 >conftest.err
25424 rm -f conftest.er1
25425 cat conftest.err >&5
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); } &&
9dd0f6c2 25428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430 (eval $ac_try) 2>&5
25431 ac_status=$?
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); }; } &&
25434 { ac_try='test -s conftest.$ac_objext'
25435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436 (eval $ac_try) 2>&5
25437 ac_status=$?
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; }; then
25440
25441 cat >>confdefs.h <<\_ACEOF
25442#define __WXGTK24__ 1
25443_ACEOF
25444
25445 echo "$as_me:$LINENO: result: yes" >&5
25446echo "${ECHO_T}yes" >&6
25447
25448else
25449 echo "$as_me: failed program was:" >&5
25450sed 's/^/| /' conftest.$ac_ext >&5
25451
25452
25453 echo "$as_me:$LINENO: result: no" >&5
25454echo "${ECHO_T}no" >&6
25455
25456fi
25457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25458
304205f1
VS
25459 CFLAGS="$save_CFLAGS"
25460 LIBS="$save_LIBS"
a848cd7e
SC
25461 else
25462 if test "$wxUSE_UNICODE" = "yes"; then
25463 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25464echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25465 wxUSE_UNICODE=no
25466 fi
25467 fi
25468
25469 if test "$USE_DARWIN" != 1; then
25470
25471for ac_func in poll
25472do
25473as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25474echo "$as_me:$LINENO: checking for $ac_func" >&5
25475echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25476if eval "test \"\${$as_ac_var+set}\" = set"; then
25477 echo $ECHO_N "(cached) $ECHO_C" >&6
25478else
25479 cat >conftest.$ac_ext <<_ACEOF
25480/* confdefs.h. */
25481_ACEOF
25482cat confdefs.h >>conftest.$ac_ext
25483cat >>conftest.$ac_ext <<_ACEOF
25484/* end confdefs.h. */
ac1cb8d3
VS
25485/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25487#define $ac_func innocuous_$ac_func
25488
a848cd7e
SC
25489/* System header to define __stub macros and hopefully few prototypes,
25490 which can conflict with char $ac_func (); below.
25491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25492 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25493
a848cd7e
SC
25494#ifdef __STDC__
25495# include <limits.h>
25496#else
25497# include <assert.h>
25498#endif
ac1cb8d3
VS
25499
25500#undef $ac_func
25501
a848cd7e
SC
25502/* Override any gcc2 internal prototype to avoid an error. */
25503#ifdef __cplusplus
25504extern "C"
25505{
25506#endif
25507/* We use char because int might match the return type of a gcc2
25508 builtin and then its argument prototype would still apply. */
25509char $ac_func ();
25510/* The GNU C library defines this for functions which it implements
25511 to always fail with ENOSYS. Some functions are actually named
25512 something starting with __ and the normal name is an alias. */
25513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25514choke me
25515#else
25516char (*f) () = $ac_func;
25517#endif
25518#ifdef __cplusplus
25519}
25520#endif
25521
25522int
25523main ()
25524{
25525return f != $ac_func;
25526 ;
25527 return 0;
25528}
25529_ACEOF
25530rm -f conftest.$ac_objext conftest$ac_exeext
25531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25532 (eval $ac_link) 2>conftest.er1
a848cd7e 25533 ac_status=$?
ac1cb8d3
VS
25534 grep -v '^ *+' conftest.er1 >conftest.err
25535 rm -f conftest.er1
25536 cat conftest.err >&5
a848cd7e
SC
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); } &&
9dd0f6c2 25539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25541 (eval $ac_try) 2>&5
25542 ac_status=$?
25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544 (exit $ac_status); }; } &&
25545 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25547 (eval $ac_try) 2>&5
25548 ac_status=$?
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); }; }; then
25551 eval "$as_ac_var=yes"
25552else
25553 echo "$as_me: failed program was:" >&5
25554sed 's/^/| /' conftest.$ac_ext >&5
25555
25556eval "$as_ac_var=no"
25557fi
ac1cb8d3
VS
25558rm -f conftest.err conftest.$ac_objext \
25559 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25560fi
25561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25562echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25563if test `eval echo '${'$as_ac_var'}'` = yes; then
25564 cat >>confdefs.h <<_ACEOF
25565#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25566_ACEOF
25567
25568fi
25569done
25570
25571 fi
25572
25573 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25574 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25575
25576 AFMINSTALL=afminstall
25577 TOOLKIT=GTK
25578 GUIDIST=GTK_DIST
25579
25580 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25581echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25582if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25583 echo $ECHO_N "(cached) $ECHO_C" >&6
25584else
25585 ac_check_lib_save_LIBS=$LIBS
25586LIBS="-lgdk $LIBS"
25587cat >conftest.$ac_ext <<_ACEOF
25588/* confdefs.h. */
25589_ACEOF
25590cat confdefs.h >>conftest.$ac_ext
25591cat >>conftest.$ac_ext <<_ACEOF
25592/* end confdefs.h. */
25593
25594/* Override any gcc2 internal prototype to avoid an error. */
25595#ifdef __cplusplus
25596extern "C"
25597#endif
25598/* We use char because int might match the return type of a gcc2
25599 builtin and then its argument prototype would still apply. */
25600char gdk_im_open ();
25601int
25602main ()
25603{
25604gdk_im_open ();
25605 ;
25606 return 0;
25607}
25608_ACEOF
25609rm -f conftest.$ac_objext conftest$ac_exeext
25610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25611 (eval $ac_link) 2>conftest.er1
a848cd7e 25612 ac_status=$?
ac1cb8d3
VS
25613 grep -v '^ *+' conftest.er1 >conftest.err
25614 rm -f conftest.er1
25615 cat conftest.err >&5
a848cd7e
SC
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } &&
9dd0f6c2 25618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620 (eval $ac_try) 2>&5
25621 ac_status=$?
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); }; } &&
25624 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25626 (eval $ac_try) 2>&5
25627 ac_status=$?
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); }; }; then
25630 ac_cv_lib_gdk_gdk_im_open=yes
25631else
25632 echo "$as_me: failed program was:" >&5
25633sed 's/^/| /' conftest.$ac_ext >&5
25634
25635ac_cv_lib_gdk_gdk_im_open=no
25636fi
ac1cb8d3
VS
25637rm -f conftest.err conftest.$ac_objext \
25638 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25639LIBS=$ac_check_lib_save_LIBS
25640fi
25641echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25642echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25643if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25644 cat >>confdefs.h <<\_ACEOF
25645#define HAVE_XIM 1
25646_ACEOF
25647
25648fi
25649
25650
25651
25652 if test "$wxUSE_GPE" = "yes"; then
25653 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25654echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25655
25656ac_find_libraries=
25657for ac_dir in $SEARCH_LIB /usr/lib;
25658 do
25659 for ac_extension in a so sl dylib; do
25660 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25661 ac_find_libraries=$ac_dir
25662 break 2
25663 fi
25664 done
25665 done
25666
25667 if test "$ac_find_libraries" != "" ; then
25668
25669 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25670 result=$?
25671 if test $result = 0; then
25672 ac_path_to_link=""
25673 else
25674 ac_path_to_link=" -L$ac_find_libraries"
25675 fi
25676
25677 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25678 WXGPE=1
25679 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25680echo "${ECHO_T}found at $ac_find_libraries" >&6
25681 else
25682 echo "$as_me:$LINENO: result: not found" >&5
25683echo "${ECHO_T}not found" >&6
25684 fi
25685
25686 fi
25687 fi
25688
25689 if test "$wxUSE_MGL" = 1; then
25690 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25691echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25692 if test "x$MGL_ROOT" = x ; then
25693 echo "$as_me:$LINENO: result: not found" >&5
25694echo "${ECHO_T}not found" >&6
25695 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25696echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25697 { (exit 1); exit 1; }; }
25698 else
25699 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25700echo "${ECHO_T}$MGL_ROOT" >&6
25701 fi
25702
25703 echo "$as_me:$LINENO: checking for libmgl location" >&5
25704echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25705 case "${host}" in
25706 *-*-linux* )
25707 if test "x$wxUSE_SHARED" = xyes ; then
25708 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25709 else
25710 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25711 fi
25712 ;;
25713 *-pc-msdosdjgpp )
25714 mgl_os_candidates="dos32/dj2"
25715 ;;
25716 *)
25717 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25718echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25719 { (exit 1); exit 1; }; }
25720 esac
25721
25722 mgl_lib_type=""
25723 mgl_os=""
25724
25725 for mgl_os_i in $mgl_os_candidates ; do
25726 if test "x$mgl_os" = x ; then
25727 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25728 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25729 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25730 mgl_lib_type=debug
25731 mgl_os=$mgl_os_i
25732 fi
25733 fi
25734 if test "x$mgl_lib_type" = x ; then
25735 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25736 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25737 mgl_lib_type=release
25738 mgl_os=$mgl_os_i
25739 fi
25740 fi
25741 fi
25742 done
25743
25744 if test "x$mgl_os" = x ; then
25745 echo "$as_me:$LINENO: result: not found" >&5
25746echo "${ECHO_T}not found" >&6
25747 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25748echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25749 { (exit 1); exit 1; }; }
25750 fi
25751 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25752echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25753
25754 wxUSE_UNIVERSAL="yes"
25755
25756 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25757 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25758
25759 AFMINSTALL=afminstall
25760 TOOLKIT=MGL
25761 GUIDIST=MGL_DIST
25762 fi
25763
25764 if test "$wxUSE_MICROWIN" = 1; then
25765 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25766echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25767 if test "x$MICROWINDOWS" = x ; then
25768 echo "$as_me:$LINENO: result: not found" >&5
25769echo "${ECHO_T}not found" >&6
25770 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25771echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25772 { (exit 1); exit 1; }; }
25773 else
25774 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25775echo "${ECHO_T}$MICROWINDOWS" >&6
25776 fi
25777
25778 if test -f $MICROWINDOWS/lib/libmwin.a; then
25779 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25780echo "${ECHO_T}MicroWindows' libraries found." >&6
25781 else
25782 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25783echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25784 { (exit 1); exit 1; }; }
25785 fi
25786
25787 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25788 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25789
25790 wxUSE_UNIVERSAL="yes"
25791
25792 AFMINSTALL=afminstall
25793 TOOLKIT=MICROWIN
25794 GUIDIST=MICROWIN_DIST
25795
25796 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25797 fi
25798
74b84332 25799 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
9dd0f6c2
DE
25800
25801if test "x$ac_path_x_has_been_run" != xyes; then
25802 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25803echo $ECHO_N "checking for X... $ECHO_C" >&6
25804
9dd0f6c2 25805ac_path_x_has_been_run=yes
a848cd7e
SC
25806
25807# Check whether --with-x or --without-x was given.
25808if test "${with_x+set}" = set; then
25809 withval="$with_x"
25810
25811fi;
25812# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25813if test "x$with_x" = xno; then
25814 # The user explicitly disabled X.
25815 have_x=disabled
25816else
25817 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25818 # Both variables are already set.
25819 have_x=yes
25820 else
25821 if test "${ac_cv_have_x+set}" = set; then
25822 echo $ECHO_N "(cached) $ECHO_C" >&6
25823else
25824 # One or both of the vars are not set, and there is no cached value.
25825ac_x_includes=no ac_x_libraries=no
25826rm -fr conftest.dir
25827if mkdir conftest.dir; then
25828 cd conftest.dir
25829 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25830 cat >Imakefile <<'_ACEOF'
25831acfindx:
25832 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25833_ACEOF
25834 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25836 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25837 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25838 for ac_extension in a so sl; do
25839 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25840 test -f $ac_im_libdir/libX11.$ac_extension; then
25841 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25842 fi
25843 done
25844 # Screen out bogus values from the imake configuration. They are
25845 # bogus both because they are the default anyway, and because
25846 # using them would break gcc on systems where it needs fixed includes.
25847 case $ac_im_incroot in
25848 /usr/include) ;;
25849 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25850 esac
25851 case $ac_im_usrlibdir in
25852 /usr/lib | /lib) ;;
25853 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25854 esac
25855 fi
25856 cd ..
25857 rm -fr conftest.dir
25858fi
25859
25860# Standard set of common directories for X headers.
25861# Check X11 before X11Rn because it is often a symlink to the current release.
25862ac_x_header_dirs='
25863/usr/X11/include
25864/usr/X11R6/include
25865/usr/X11R5/include
25866/usr/X11R4/include
25867
25868/usr/include/X11
25869/usr/include/X11R6
25870/usr/include/X11R5
25871/usr/include/X11R4
25872
25873/usr/local/X11/include
25874/usr/local/X11R6/include
25875/usr/local/X11R5/include
25876/usr/local/X11R4/include
25877
25878/usr/local/include/X11
25879/usr/local/include/X11R6
25880/usr/local/include/X11R5
25881/usr/local/include/X11R4
25882
25883/usr/X386/include
25884/usr/x386/include
25885/usr/XFree86/include/X11
25886
25887/usr/include
25888/usr/local/include
25889/usr/unsupported/include
25890/usr/athena/include
25891/usr/local/x11r5/include
25892/usr/lpp/Xamples/include
25893
25894/usr/openwin/include
25895/usr/openwin/share/include'
25896
25897if test "$ac_x_includes" = no; then
9dd0f6c2 25898 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
25899 # First, try using that file with no special directory specified.
25900 cat >conftest.$ac_ext <<_ACEOF
25901/* confdefs.h. */
25902_ACEOF
25903cat confdefs.h >>conftest.$ac_ext
25904cat >>conftest.$ac_ext <<_ACEOF
25905/* end confdefs.h. */
25906#include <X11/Intrinsic.h>
25907_ACEOF
25908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25910 ac_status=$?
25911 grep -v '^ *+' conftest.er1 >conftest.err
25912 rm -f conftest.er1
25913 cat conftest.err >&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); } >/dev/null; then
25916 if test -s conftest.err; then
25917 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25919 else
25920 ac_cpp_err=
25921 fi
25922else
25923 ac_cpp_err=yes
25924fi
25925if test -z "$ac_cpp_err"; then
25926 # We can compile using X headers with no special include directory.
25927ac_x_includes=
25928else
25929 echo "$as_me: failed program was:" >&5
25930sed 's/^/| /' conftest.$ac_ext >&5
25931
25932 for ac_dir in $ac_x_header_dirs; do
25933 if test -r "$ac_dir/X11/Intrinsic.h"; then
25934 ac_x_includes=$ac_dir
25935 break
25936 fi
25937done
25938fi
25939rm -f conftest.err conftest.$ac_ext
25940fi # $ac_x_includes = no
25941
25942if test "$ac_x_libraries" = no; then
25943 # Check for the libraries.
25944 # See if we find them without any special options.
25945 # Don't add to $LIBS permanently.
25946 ac_save_LIBS=$LIBS
25947 LIBS="-lXt $LIBS"
25948 cat >conftest.$ac_ext <<_ACEOF
25949/* confdefs.h. */
25950_ACEOF
25951cat confdefs.h >>conftest.$ac_ext
25952cat >>conftest.$ac_ext <<_ACEOF
25953/* end confdefs.h. */
25954#include <X11/Intrinsic.h>
25955int
25956main ()
25957{
25958XtMalloc (0)
25959 ;
25960 return 0;
25961}
25962_ACEOF
25963rm -f conftest.$ac_objext conftest$ac_exeext
25964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25965 (eval $ac_link) 2>conftest.er1
a848cd7e 25966 ac_status=$?
ac1cb8d3
VS
25967 grep -v '^ *+' conftest.er1 >conftest.err
25968 rm -f conftest.er1
25969 cat conftest.err >&5
a848cd7e
SC
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } &&
9dd0f6c2 25972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974 (eval $ac_try) 2>&5
25975 ac_status=$?
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); }; } &&
25978 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25980 (eval $ac_try) 2>&5
25981 ac_status=$?
25982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983 (exit $ac_status); }; }; then
25984 LIBS=$ac_save_LIBS
25985# We can link X programs with no special library path.
25986ac_x_libraries=
25987else
25988 echo "$as_me: failed program was:" >&5
25989sed 's/^/| /' conftest.$ac_ext >&5
25990
25991LIBS=$ac_save_LIBS
25992for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25993do
25994 # Don't even attempt the hair of trying to link an X program!
25995 for ac_extension in a so sl; do
25996 if test -r $ac_dir/libXt.$ac_extension; then
25997 ac_x_libraries=$ac_dir
25998 break 2
25999 fi
26000 done
26001done
26002fi
ac1cb8d3
VS
26003rm -f conftest.err conftest.$ac_objext \
26004 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26005fi # $ac_x_libraries = no
26006
26007if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26008 # Didn't find X anywhere. Cache the known absence of X.
26009 ac_cv_have_x="have_x=no"
26010else
26011 # Record where we found X for the cache.
26012 ac_cv_have_x="have_x=yes \
ac1cb8d3 26013 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26014fi
26015fi
26016
26017 fi
26018 eval "$ac_cv_have_x"
26019fi # $with_x != no
26020
26021if test "$have_x" != yes; then
26022 echo "$as_me:$LINENO: result: $have_x" >&5
26023echo "${ECHO_T}$have_x" >&6
26024 no_x=yes
26025else
26026 # If each of the values was on the command line, it overrides each guess.
26027 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26028 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26029 # Update the cache value to reflect the command line values.
26030 ac_cv_have_x="have_x=yes \
26031 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9dd0f6c2
DE
26032 # It might be that x_includes is empty (headers are found in the
26033 # standard search path. Then output the corresponding message
26034 ac_out_x_includes=$x_includes
26035 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26036 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26037echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26038fi
26039
9dd0f6c2 26040fi
a848cd7e
SC
26041if test "$no_x" = yes; then
26042 # Not all programs may use this symbol, but it does not hurt to define it.
26043
26044cat >>confdefs.h <<\_ACEOF
26045#define X_DISPLAY_MISSING 1
26046_ACEOF
26047
26048 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26049else
26050 if test -n "$x_includes"; then
26051 X_CFLAGS="$X_CFLAGS -I$x_includes"
26052 fi
26053
26054 # It would also be nice to do this for all -L options, not just this one.
26055 if test -n "$x_libraries"; then
26056 X_LIBS="$X_LIBS -L$x_libraries"
26057 # For Solaris; some versions of Sun CC require a space after -R and
26058 # others require no space. Words are not sufficient . . . .
26059 case `(uname -sr) 2>/dev/null` in
26060 "SunOS 5"*)
26061 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26062echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26063 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26064 cat >conftest.$ac_ext <<_ACEOF
26065/* confdefs.h. */
26066_ACEOF
26067cat confdefs.h >>conftest.$ac_ext
26068cat >>conftest.$ac_ext <<_ACEOF
26069/* end confdefs.h. */
26070
26071int
26072main ()
26073{
26074
26075 ;
26076 return 0;
26077}
26078_ACEOF
26079rm -f conftest.$ac_objext conftest$ac_exeext
26080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26081 (eval $ac_link) 2>conftest.er1
a848cd7e 26082 ac_status=$?
ac1cb8d3
VS
26083 grep -v '^ *+' conftest.er1 >conftest.err
26084 rm -f conftest.er1
26085 cat conftest.err >&5
a848cd7e
SC
26086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087 (exit $ac_status); } &&
9dd0f6c2 26088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26090 (eval $ac_try) 2>&5
26091 ac_status=$?
26092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093 (exit $ac_status); }; } &&
26094 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26096 (eval $ac_try) 2>&5
26097 ac_status=$?
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); }; }; then
26100 ac_R_nospace=yes
26101else
26102 echo "$as_me: failed program was:" >&5
26103sed 's/^/| /' conftest.$ac_ext >&5
26104
26105ac_R_nospace=no
26106fi
ac1cb8d3
VS
26107rm -f conftest.err conftest.$ac_objext \
26108 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26109 if test $ac_R_nospace = yes; then
26110 echo "$as_me:$LINENO: result: no" >&5
26111echo "${ECHO_T}no" >&6
26112 X_LIBS="$X_LIBS -R$x_libraries"
26113 else
26114 LIBS="$ac_xsave_LIBS -R $x_libraries"
26115 cat >conftest.$ac_ext <<_ACEOF
26116/* confdefs.h. */
26117_ACEOF
26118cat confdefs.h >>conftest.$ac_ext
26119cat >>conftest.$ac_ext <<_ACEOF
26120/* end confdefs.h. */
26121
26122int
26123main ()
26124{
26125
26126 ;
26127 return 0;
26128}
26129_ACEOF
26130rm -f conftest.$ac_objext conftest$ac_exeext
26131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26132 (eval $ac_link) 2>conftest.er1
a848cd7e 26133 ac_status=$?
ac1cb8d3
VS
26134 grep -v '^ *+' conftest.er1 >conftest.err
26135 rm -f conftest.er1
26136 cat conftest.err >&5
a848cd7e
SC
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); } &&
9dd0f6c2 26139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26141 (eval $ac_try) 2>&5
26142 ac_status=$?
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); }; } &&
26145 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26147 (eval $ac_try) 2>&5
26148 ac_status=$?
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); }; }; then
26151 ac_R_space=yes
26152else
26153 echo "$as_me: failed program was:" >&5
26154sed 's/^/| /' conftest.$ac_ext >&5
26155
26156ac_R_space=no
26157fi
ac1cb8d3
VS
26158rm -f conftest.err conftest.$ac_objext \
26159 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26160 if test $ac_R_space = yes; then
26161 echo "$as_me:$LINENO: result: yes" >&5
26162echo "${ECHO_T}yes" >&6
26163 X_LIBS="$X_LIBS -R $x_libraries"
26164 else
26165 echo "$as_me:$LINENO: result: neither works" >&5
26166echo "${ECHO_T}neither works" >&6
26167 fi
26168 fi
26169 LIBS=$ac_xsave_LIBS
26170 esac
26171 fi
26172
26173 # Check for system-dependent libraries X programs must link with.
26174 # Do this before checking for the system-independent R6 libraries
26175 # (-lICE), since we may need -lsocket or whatever for X linking.
26176
26177 if test "$ISC" = yes; then
26178 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26179 else
26180 # Martyn Johnson says this is needed for Ultrix, if the X
26181 # libraries were built with DECnet support. And Karl Berry says
26182 # the Alpha needs dnet_stub (dnet does not exist).
26183 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26184 cat >conftest.$ac_ext <<_ACEOF
26185/* confdefs.h. */
26186_ACEOF
26187cat confdefs.h >>conftest.$ac_ext
26188cat >>conftest.$ac_ext <<_ACEOF
26189/* end confdefs.h. */
26190
26191/* Override any gcc2 internal prototype to avoid an error. */
26192#ifdef __cplusplus
26193extern "C"
26194#endif
26195/* We use char because int might match the return type of a gcc2
26196 builtin and then its argument prototype would still apply. */
26197char XOpenDisplay ();
26198int
26199main ()
26200{
26201XOpenDisplay ();
26202 ;
26203 return 0;
26204}
26205_ACEOF
26206rm -f conftest.$ac_objext conftest$ac_exeext
26207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26208 (eval $ac_link) 2>conftest.er1
a848cd7e 26209 ac_status=$?
ac1cb8d3
VS
26210 grep -v '^ *+' conftest.er1 >conftest.err
26211 rm -f conftest.er1
26212 cat conftest.err >&5
a848cd7e
SC
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); } &&
9dd0f6c2 26215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26217 (eval $ac_try) 2>&5
26218 ac_status=$?
26219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220 (exit $ac_status); }; } &&
26221 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26223 (eval $ac_try) 2>&5
26224 ac_status=$?
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); }; }; then
26227 :
26228else
26229 echo "$as_me: failed program was:" >&5
26230sed 's/^/| /' conftest.$ac_ext >&5
26231
26232echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26233echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26234if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26235 echo $ECHO_N "(cached) $ECHO_C" >&6
26236else
26237 ac_check_lib_save_LIBS=$LIBS
26238LIBS="-ldnet $LIBS"
26239cat >conftest.$ac_ext <<_ACEOF
26240/* confdefs.h. */
26241_ACEOF
26242cat confdefs.h >>conftest.$ac_ext
26243cat >>conftest.$ac_ext <<_ACEOF
26244/* end confdefs.h. */
26245
26246/* Override any gcc2 internal prototype to avoid an error. */
26247#ifdef __cplusplus
26248extern "C"
26249#endif
26250/* We use char because int might match the return type of a gcc2
26251 builtin and then its argument prototype would still apply. */
26252char dnet_ntoa ();
26253int
26254main ()
26255{
26256dnet_ntoa ();
26257 ;
26258 return 0;
26259}
26260_ACEOF
26261rm -f conftest.$ac_objext conftest$ac_exeext
26262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26263 (eval $ac_link) 2>conftest.er1
a848cd7e 26264 ac_status=$?
ac1cb8d3
VS
26265 grep -v '^ *+' conftest.er1 >conftest.err
26266 rm -f conftest.er1
26267 cat conftest.err >&5
a848cd7e
SC
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); } &&
9dd0f6c2 26270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272 (eval $ac_try) 2>&5
26273 ac_status=$?
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); }; } &&
26276 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278 (eval $ac_try) 2>&5
26279 ac_status=$?
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); }; }; then
26282 ac_cv_lib_dnet_dnet_ntoa=yes
26283else
26284 echo "$as_me: failed program was:" >&5
26285sed 's/^/| /' conftest.$ac_ext >&5
26286
26287ac_cv_lib_dnet_dnet_ntoa=no
26288fi
ac1cb8d3
VS
26289rm -f conftest.err conftest.$ac_objext \
26290 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26291LIBS=$ac_check_lib_save_LIBS
26292fi
26293echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26294echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26295if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26296 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26297fi
26298
26299 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26300 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26301echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26302if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26303 echo $ECHO_N "(cached) $ECHO_C" >&6
26304else
26305 ac_check_lib_save_LIBS=$LIBS
26306LIBS="-ldnet_stub $LIBS"
26307cat >conftest.$ac_ext <<_ACEOF
26308/* confdefs.h. */
26309_ACEOF
26310cat confdefs.h >>conftest.$ac_ext
26311cat >>conftest.$ac_ext <<_ACEOF
26312/* end confdefs.h. */
26313
26314/* Override any gcc2 internal prototype to avoid an error. */
26315#ifdef __cplusplus
26316extern "C"
26317#endif
26318/* We use char because int might match the return type of a gcc2
26319 builtin and then its argument prototype would still apply. */
26320char dnet_ntoa ();
26321int
26322main ()
26323{
26324dnet_ntoa ();
26325 ;
26326 return 0;
26327}
26328_ACEOF
26329rm -f conftest.$ac_objext conftest$ac_exeext
26330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26331 (eval $ac_link) 2>conftest.er1
a848cd7e 26332 ac_status=$?
ac1cb8d3
VS
26333 grep -v '^ *+' conftest.er1 >conftest.err
26334 rm -f conftest.er1
26335 cat conftest.err >&5
a848cd7e
SC
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); } &&
9dd0f6c2 26338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26340 (eval $ac_try) 2>&5
26341 ac_status=$?
26342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343 (exit $ac_status); }; } &&
26344 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26346 (eval $ac_try) 2>&5
26347 ac_status=$?
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); }; }; then
26350 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26351else
26352 echo "$as_me: failed program was:" >&5
26353sed 's/^/| /' conftest.$ac_ext >&5
26354
26355ac_cv_lib_dnet_stub_dnet_ntoa=no
26356fi
ac1cb8d3
VS
26357rm -f conftest.err conftest.$ac_objext \
26358 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26359LIBS=$ac_check_lib_save_LIBS
26360fi
26361echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26362echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26363if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26364 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26365fi
26366
26367 fi
26368fi
ac1cb8d3
VS
26369rm -f conftest.err conftest.$ac_objext \
26370 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26371 LIBS="$ac_xsave_LIBS"
26372
26373 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26374 # to get the SysV transport functions.
26375 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26376 # needs -lnsl.
26377 # The nsl library prevents programs from opening the X display
26378 # on Irix 5.2, according to T.E. Dickey.
26379 # The functions gethostbyname, getservbyname, and inet_addr are
26380 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26381 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26382echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26383if test "${ac_cv_func_gethostbyname+set}" = set; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26385else
26386 cat >conftest.$ac_ext <<_ACEOF
26387/* confdefs.h. */
26388_ACEOF
26389cat confdefs.h >>conftest.$ac_ext
26390cat >>conftest.$ac_ext <<_ACEOF
26391/* end confdefs.h. */
ac1cb8d3
VS
26392/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26394#define gethostbyname innocuous_gethostbyname
26395
a848cd7e
SC
26396/* System header to define __stub macros and hopefully few prototypes,
26397 which can conflict with char gethostbyname (); below.
26398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26399 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26400
a848cd7e
SC
26401#ifdef __STDC__
26402# include <limits.h>
26403#else
26404# include <assert.h>
26405#endif
ac1cb8d3
VS
26406
26407#undef gethostbyname
26408
a848cd7e
SC
26409/* Override any gcc2 internal prototype to avoid an error. */
26410#ifdef __cplusplus
26411extern "C"
26412{
26413#endif
26414/* We use char because int might match the return type of a gcc2
26415 builtin and then its argument prototype would still apply. */
26416char gethostbyname ();
26417/* The GNU C library defines this for functions which it implements
26418 to always fail with ENOSYS. Some functions are actually named
26419 something starting with __ and the normal name is an alias. */
26420#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26421choke me
26422#else
26423char (*f) () = gethostbyname;
26424#endif
26425#ifdef __cplusplus
26426}
26427#endif
26428
26429int
26430main ()
26431{
26432return f != gethostbyname;
26433 ;
26434 return 0;
26435}
26436_ACEOF
26437rm -f conftest.$ac_objext conftest$ac_exeext
26438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26439 (eval $ac_link) 2>conftest.er1
a848cd7e 26440 ac_status=$?
ac1cb8d3
VS
26441 grep -v '^ *+' conftest.er1 >conftest.err
26442 rm -f conftest.er1
26443 cat conftest.err >&5
a848cd7e
SC
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); } &&
9dd0f6c2 26446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26448 (eval $ac_try) 2>&5
26449 ac_status=$?
26450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); }; } &&
26452 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26454 (eval $ac_try) 2>&5
26455 ac_status=$?
26456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457 (exit $ac_status); }; }; then
26458 ac_cv_func_gethostbyname=yes
26459else
26460 echo "$as_me: failed program was:" >&5
26461sed 's/^/| /' conftest.$ac_ext >&5
26462
26463ac_cv_func_gethostbyname=no
26464fi
ac1cb8d3
VS
26465rm -f conftest.err conftest.$ac_objext \
26466 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26467fi
26468echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26469echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26470
26471 if test $ac_cv_func_gethostbyname = no; then
26472 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26473echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26474if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26475 echo $ECHO_N "(cached) $ECHO_C" >&6
26476else
26477 ac_check_lib_save_LIBS=$LIBS
26478LIBS="-lnsl $LIBS"
26479cat >conftest.$ac_ext <<_ACEOF
26480/* confdefs.h. */
26481_ACEOF
26482cat confdefs.h >>conftest.$ac_ext
26483cat >>conftest.$ac_ext <<_ACEOF
26484/* end confdefs.h. */
26485
26486/* Override any gcc2 internal prototype to avoid an error. */
26487#ifdef __cplusplus
26488extern "C"
26489#endif
26490/* We use char because int might match the return type of a gcc2
26491 builtin and then its argument prototype would still apply. */
26492char gethostbyname ();
26493int
26494main ()
26495{
26496gethostbyname ();
26497 ;
26498 return 0;
26499}
26500_ACEOF
26501rm -f conftest.$ac_objext conftest$ac_exeext
26502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26503 (eval $ac_link) 2>conftest.er1
26504 ac_status=$?
26505 grep -v '^ *+' conftest.er1 >conftest.err
26506 rm -f conftest.er1
26507 cat conftest.err >&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } &&
9dd0f6c2 26510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; } &&
26516 { ac_try='test -s conftest$ac_exeext'
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26519 ac_status=$?
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; }; then
26522 ac_cv_lib_nsl_gethostbyname=yes
26523else
26524 echo "$as_me: failed program was:" >&5
26525sed 's/^/| /' conftest.$ac_ext >&5
26526
26527ac_cv_lib_nsl_gethostbyname=no
26528fi
26529rm -f conftest.err conftest.$ac_objext \
26530 conftest$ac_exeext conftest.$ac_ext
26531LIBS=$ac_check_lib_save_LIBS
26532fi
26533echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26534echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26535if test $ac_cv_lib_nsl_gethostbyname = yes; then
26536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26537fi
26538
26539 if test $ac_cv_lib_nsl_gethostbyname = no; then
26540 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26541echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26542if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26543 echo $ECHO_N "(cached) $ECHO_C" >&6
26544else
26545 ac_check_lib_save_LIBS=$LIBS
26546LIBS="-lbsd $LIBS"
26547cat >conftest.$ac_ext <<_ACEOF
26548/* confdefs.h. */
26549_ACEOF
26550cat confdefs.h >>conftest.$ac_ext
26551cat >>conftest.$ac_ext <<_ACEOF
26552/* end confdefs.h. */
26553
26554/* Override any gcc2 internal prototype to avoid an error. */
26555#ifdef __cplusplus
26556extern "C"
26557#endif
26558/* We use char because int might match the return type of a gcc2
26559 builtin and then its argument prototype would still apply. */
26560char gethostbyname ();
26561int
26562main ()
26563{
26564gethostbyname ();
26565 ;
26566 return 0;
26567}
26568_ACEOF
26569rm -f conftest.$ac_objext conftest$ac_exeext
26570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26571 (eval $ac_link) 2>conftest.er1
a848cd7e 26572 ac_status=$?
ac1cb8d3
VS
26573 grep -v '^ *+' conftest.er1 >conftest.err
26574 rm -f conftest.er1
26575 cat conftest.err >&5
a848cd7e
SC
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); } &&
9dd0f6c2 26578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26580 (eval $ac_try) 2>&5
26581 ac_status=$?
26582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26583 (exit $ac_status); }; } &&
26584 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26586 (eval $ac_try) 2>&5
26587 ac_status=$?
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); }; }; then
26590 ac_cv_lib_bsd_gethostbyname=yes
26591else
26592 echo "$as_me: failed program was:" >&5
26593sed 's/^/| /' conftest.$ac_ext >&5
26594
26595ac_cv_lib_bsd_gethostbyname=no
26596fi
ac1cb8d3
VS
26597rm -f conftest.err conftest.$ac_objext \
26598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26599LIBS=$ac_check_lib_save_LIBS
26600fi
26601echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26602echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26603if test $ac_cv_lib_bsd_gethostbyname = yes; then
26604 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26605fi
26606
26607 fi
26608 fi
26609
26610 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26611 # socket/setsockopt and other routines are undefined under SCO ODT
26612 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26613 # on later versions), says Simon Leinen: it contains gethostby*
26614 # variants that don't use the name server (or something). -lsocket
26615 # must be given before -lnsl if both are needed. We assume that
26616 # if connect needs -lnsl, so does gethostbyname.
26617 echo "$as_me:$LINENO: checking for connect" >&5
26618echo $ECHO_N "checking for connect... $ECHO_C" >&6
26619if test "${ac_cv_func_connect+set}" = set; then
26620 echo $ECHO_N "(cached) $ECHO_C" >&6
26621else
26622 cat >conftest.$ac_ext <<_ACEOF
26623/* confdefs.h. */
26624_ACEOF
26625cat confdefs.h >>conftest.$ac_ext
26626cat >>conftest.$ac_ext <<_ACEOF
26627/* end confdefs.h. */
ac1cb8d3
VS
26628/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26630#define connect innocuous_connect
26631
a848cd7e
SC
26632/* System header to define __stub macros and hopefully few prototypes,
26633 which can conflict with char connect (); below.
26634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26635 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26636
a848cd7e
SC
26637#ifdef __STDC__
26638# include <limits.h>
26639#else
26640# include <assert.h>
26641#endif
ac1cb8d3
VS
26642
26643#undef connect
26644
a848cd7e
SC
26645/* Override any gcc2 internal prototype to avoid an error. */
26646#ifdef __cplusplus
26647extern "C"
26648{
26649#endif
26650/* We use char because int might match the return type of a gcc2
26651 builtin and then its argument prototype would still apply. */
26652char connect ();
26653/* The GNU C library defines this for functions which it implements
26654 to always fail with ENOSYS. Some functions are actually named
26655 something starting with __ and the normal name is an alias. */
26656#if defined (__stub_connect) || defined (__stub___connect)
26657choke me
26658#else
26659char (*f) () = connect;
26660#endif
26661#ifdef __cplusplus
26662}
26663#endif
26664
26665int
26666main ()
26667{
26668return f != connect;
26669 ;
26670 return 0;
26671}
26672_ACEOF
26673rm -f conftest.$ac_objext conftest$ac_exeext
26674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26675 (eval $ac_link) 2>conftest.er1
a848cd7e 26676 ac_status=$?
ac1cb8d3
VS
26677 grep -v '^ *+' conftest.er1 >conftest.err
26678 rm -f conftest.er1
26679 cat conftest.err >&5
a848cd7e
SC
26680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); } &&
9dd0f6c2 26682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26684 (eval $ac_try) 2>&5
26685 ac_status=$?
26686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687 (exit $ac_status); }; } &&
26688 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26690 (eval $ac_try) 2>&5
26691 ac_status=$?
26692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693 (exit $ac_status); }; }; then
26694 ac_cv_func_connect=yes
26695else
26696 echo "$as_me: failed program was:" >&5
26697sed 's/^/| /' conftest.$ac_ext >&5
26698
26699ac_cv_func_connect=no
26700fi
ac1cb8d3
VS
26701rm -f conftest.err conftest.$ac_objext \
26702 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26703fi
26704echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26705echo "${ECHO_T}$ac_cv_func_connect" >&6
26706
26707 if test $ac_cv_func_connect = no; then
26708 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26709echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26710if test "${ac_cv_lib_socket_connect+set}" = set; then
26711 echo $ECHO_N "(cached) $ECHO_C" >&6
26712else
26713 ac_check_lib_save_LIBS=$LIBS
26714LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26715cat >conftest.$ac_ext <<_ACEOF
26716/* confdefs.h. */
26717_ACEOF
26718cat confdefs.h >>conftest.$ac_ext
26719cat >>conftest.$ac_ext <<_ACEOF
26720/* end confdefs.h. */
26721
26722/* Override any gcc2 internal prototype to avoid an error. */
26723#ifdef __cplusplus
26724extern "C"
26725#endif
26726/* We use char because int might match the return type of a gcc2
26727 builtin and then its argument prototype would still apply. */
26728char connect ();
26729int
26730main ()
26731{
26732connect ();
26733 ;
26734 return 0;
26735}
26736_ACEOF
26737rm -f conftest.$ac_objext conftest$ac_exeext
26738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26739 (eval $ac_link) 2>conftest.er1
a848cd7e 26740 ac_status=$?
ac1cb8d3
VS
26741 grep -v '^ *+' conftest.er1 >conftest.err
26742 rm -f conftest.er1
26743 cat conftest.err >&5
a848cd7e
SC
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); } &&
9dd0f6c2 26746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26748 (eval $ac_try) 2>&5
26749 ac_status=$?
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); }; } &&
26752 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26754 (eval $ac_try) 2>&5
26755 ac_status=$?
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); }; }; then
26758 ac_cv_lib_socket_connect=yes
26759else
26760 echo "$as_me: failed program was:" >&5
26761sed 's/^/| /' conftest.$ac_ext >&5
26762
26763ac_cv_lib_socket_connect=no
26764fi
ac1cb8d3
VS
26765rm -f conftest.err conftest.$ac_objext \
26766 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26767LIBS=$ac_check_lib_save_LIBS
26768fi
26769echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26770echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26771if test $ac_cv_lib_socket_connect = yes; then
26772 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26773fi
26774
26775 fi
26776
26777 # Guillermo Gomez says -lposix is necessary on A/UX.
26778 echo "$as_me:$LINENO: checking for remove" >&5
26779echo $ECHO_N "checking for remove... $ECHO_C" >&6
26780if test "${ac_cv_func_remove+set}" = set; then
26781 echo $ECHO_N "(cached) $ECHO_C" >&6
26782else
26783 cat >conftest.$ac_ext <<_ACEOF
26784/* confdefs.h. */
26785_ACEOF
26786cat confdefs.h >>conftest.$ac_ext
26787cat >>conftest.$ac_ext <<_ACEOF
26788/* end confdefs.h. */
ac1cb8d3
VS
26789/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26791#define remove innocuous_remove
26792
a848cd7e
SC
26793/* System header to define __stub macros and hopefully few prototypes,
26794 which can conflict with char remove (); below.
26795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26796 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26797
a848cd7e
SC
26798#ifdef __STDC__
26799# include <limits.h>
26800#else
26801# include <assert.h>
26802#endif
ac1cb8d3
VS
26803
26804#undef remove
26805
a848cd7e
SC
26806/* Override any gcc2 internal prototype to avoid an error. */
26807#ifdef __cplusplus
26808extern "C"
26809{
26810#endif
26811/* We use char because int might match the return type of a gcc2
26812 builtin and then its argument prototype would still apply. */
26813char remove ();
26814/* The GNU C library defines this for functions which it implements
26815 to always fail with ENOSYS. Some functions are actually named
26816 something starting with __ and the normal name is an alias. */
26817#if defined (__stub_remove) || defined (__stub___remove)
26818choke me
26819#else
26820char (*f) () = remove;
26821#endif
26822#ifdef __cplusplus
26823}
26824#endif
26825
26826int
26827main ()
26828{
26829return f != remove;
26830 ;
26831 return 0;
26832}
26833_ACEOF
26834rm -f conftest.$ac_objext conftest$ac_exeext
26835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26836 (eval $ac_link) 2>conftest.er1
a848cd7e 26837 ac_status=$?
ac1cb8d3
VS
26838 grep -v '^ *+' conftest.er1 >conftest.err
26839 rm -f conftest.er1
26840 cat conftest.err >&5
a848cd7e
SC
26841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842 (exit $ac_status); } &&
9dd0f6c2 26843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26845 (eval $ac_try) 2>&5
26846 ac_status=$?
26847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); }; } &&
26849 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851 (eval $ac_try) 2>&5
26852 ac_status=$?
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); }; }; then
26855 ac_cv_func_remove=yes
26856else
26857 echo "$as_me: failed program was:" >&5
26858sed 's/^/| /' conftest.$ac_ext >&5
26859
26860ac_cv_func_remove=no
26861fi
ac1cb8d3
VS
26862rm -f conftest.err conftest.$ac_objext \
26863 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26864fi
26865echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26866echo "${ECHO_T}$ac_cv_func_remove" >&6
26867
26868 if test $ac_cv_func_remove = no; then
26869 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26870echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26871if test "${ac_cv_lib_posix_remove+set}" = set; then
26872 echo $ECHO_N "(cached) $ECHO_C" >&6
26873else
26874 ac_check_lib_save_LIBS=$LIBS
26875LIBS="-lposix $LIBS"
26876cat >conftest.$ac_ext <<_ACEOF
26877/* confdefs.h. */
26878_ACEOF
26879cat confdefs.h >>conftest.$ac_ext
26880cat >>conftest.$ac_ext <<_ACEOF
26881/* end confdefs.h. */
26882
26883/* Override any gcc2 internal prototype to avoid an error. */
26884#ifdef __cplusplus
26885extern "C"
26886#endif
26887/* We use char because int might match the return type of a gcc2
26888 builtin and then its argument prototype would still apply. */
26889char remove ();
26890int
26891main ()
26892{
26893remove ();
26894 ;
26895 return 0;
26896}
26897_ACEOF
26898rm -f conftest.$ac_objext conftest$ac_exeext
26899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26900 (eval $ac_link) 2>conftest.er1
a848cd7e 26901 ac_status=$?
ac1cb8d3
VS
26902 grep -v '^ *+' conftest.er1 >conftest.err
26903 rm -f conftest.er1
26904 cat conftest.err >&5
a848cd7e
SC
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); } &&
9dd0f6c2 26907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26909 (eval $ac_try) 2>&5
26910 ac_status=$?
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); }; } &&
26913 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915 (eval $ac_try) 2>&5
26916 ac_status=$?
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); }; }; then
26919 ac_cv_lib_posix_remove=yes
26920else
26921 echo "$as_me: failed program was:" >&5
26922sed 's/^/| /' conftest.$ac_ext >&5
26923
26924ac_cv_lib_posix_remove=no
26925fi
ac1cb8d3
VS
26926rm -f conftest.err conftest.$ac_objext \
26927 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26928LIBS=$ac_check_lib_save_LIBS
26929fi
26930echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26931echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26932if test $ac_cv_lib_posix_remove = yes; then
26933 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26934fi
26935
26936 fi
26937
26938 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26939 echo "$as_me:$LINENO: checking for shmat" >&5
26940echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26941if test "${ac_cv_func_shmat+set}" = set; then
26942 echo $ECHO_N "(cached) $ECHO_C" >&6
26943else
26944 cat >conftest.$ac_ext <<_ACEOF
26945/* confdefs.h. */
26946_ACEOF
26947cat confdefs.h >>conftest.$ac_ext
26948cat >>conftest.$ac_ext <<_ACEOF
26949/* end confdefs.h. */
ac1cb8d3
VS
26950/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26952#define shmat innocuous_shmat
26953
a848cd7e
SC
26954/* System header to define __stub macros and hopefully few prototypes,
26955 which can conflict with char shmat (); below.
26956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26957 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26958
a848cd7e
SC
26959#ifdef __STDC__
26960# include <limits.h>
26961#else
26962# include <assert.h>
26963#endif
ac1cb8d3
VS
26964
26965#undef shmat
26966
a848cd7e
SC
26967/* Override any gcc2 internal prototype to avoid an error. */
26968#ifdef __cplusplus
26969extern "C"
26970{
26971#endif
26972/* We use char because int might match the return type of a gcc2
26973 builtin and then its argument prototype would still apply. */
26974char shmat ();
26975/* The GNU C library defines this for functions which it implements
26976 to always fail with ENOSYS. Some functions are actually named
26977 something starting with __ and the normal name is an alias. */
26978#if defined (__stub_shmat) || defined (__stub___shmat)
26979choke me
26980#else
26981char (*f) () = shmat;
26982#endif
26983#ifdef __cplusplus
26984}
26985#endif
26986
26987int
26988main ()
26989{
26990return f != shmat;
26991 ;
26992 return 0;
26993}
26994_ACEOF
26995rm -f conftest.$ac_objext conftest$ac_exeext
26996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26997 (eval $ac_link) 2>conftest.er1
a848cd7e 26998 ac_status=$?
ac1cb8d3
VS
26999 grep -v '^ *+' conftest.er1 >conftest.err
27000 rm -f conftest.er1
27001 cat conftest.err >&5
a848cd7e
SC
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); } &&
9dd0f6c2 27004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27006 (eval $ac_try) 2>&5
27007 ac_status=$?
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); }; } &&
27010 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27012 (eval $ac_try) 2>&5
27013 ac_status=$?
27014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27015 (exit $ac_status); }; }; then
27016 ac_cv_func_shmat=yes
27017else
27018 echo "$as_me: failed program was:" >&5
27019sed 's/^/| /' conftest.$ac_ext >&5
27020
27021ac_cv_func_shmat=no
27022fi
ac1cb8d3
VS
27023rm -f conftest.err conftest.$ac_objext \
27024 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27025fi
27026echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27027echo "${ECHO_T}$ac_cv_func_shmat" >&6
27028
27029 if test $ac_cv_func_shmat = no; then
27030 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27031echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27032if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27033 echo $ECHO_N "(cached) $ECHO_C" >&6
27034else
27035 ac_check_lib_save_LIBS=$LIBS
27036LIBS="-lipc $LIBS"
27037cat >conftest.$ac_ext <<_ACEOF
27038/* confdefs.h. */
27039_ACEOF
27040cat confdefs.h >>conftest.$ac_ext
27041cat >>conftest.$ac_ext <<_ACEOF
27042/* end confdefs.h. */
27043
27044/* Override any gcc2 internal prototype to avoid an error. */
27045#ifdef __cplusplus
27046extern "C"
27047#endif
27048/* We use char because int might match the return type of a gcc2
27049 builtin and then its argument prototype would still apply. */
27050char shmat ();
27051int
27052main ()
27053{
27054shmat ();
27055 ;
27056 return 0;
27057}
27058_ACEOF
27059rm -f conftest.$ac_objext conftest$ac_exeext
27060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27061 (eval $ac_link) 2>conftest.er1
a848cd7e 27062 ac_status=$?
ac1cb8d3
VS
27063 grep -v '^ *+' conftest.er1 >conftest.err
27064 rm -f conftest.er1
27065 cat conftest.err >&5
a848cd7e
SC
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); } &&
9dd0f6c2 27068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070 (eval $ac_try) 2>&5
27071 ac_status=$?
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); }; } &&
27074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27076 (eval $ac_try) 2>&5
27077 ac_status=$?
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); }; }; then
27080 ac_cv_lib_ipc_shmat=yes
27081else
27082 echo "$as_me: failed program was:" >&5
27083sed 's/^/| /' conftest.$ac_ext >&5
27084
27085ac_cv_lib_ipc_shmat=no
27086fi
ac1cb8d3
VS
27087rm -f conftest.err conftest.$ac_objext \
27088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27089LIBS=$ac_check_lib_save_LIBS
27090fi
27091echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27092echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27093if test $ac_cv_lib_ipc_shmat = yes; then
27094 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27095fi
27096
27097 fi
27098 fi
27099
27100 # Check for libraries that X11R6 Xt/Xaw programs need.
27101 ac_save_LDFLAGS=$LDFLAGS
27102 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27103 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27104 # check for ICE first), but we must link in the order -lSM -lICE or
27105 # we get undefined symbols. So assume we have SM if we have ICE.
27106 # These have to be linked with before -lX11, unlike the other
27107 # libraries we check for below, so use a different variable.
27108 # John Interrante, Karl Berry
27109 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27110echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27111if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27112 echo $ECHO_N "(cached) $ECHO_C" >&6
27113else
27114 ac_check_lib_save_LIBS=$LIBS
27115LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27116cat >conftest.$ac_ext <<_ACEOF
27117/* confdefs.h. */
27118_ACEOF
27119cat confdefs.h >>conftest.$ac_ext
27120cat >>conftest.$ac_ext <<_ACEOF
27121/* end confdefs.h. */
27122
27123/* Override any gcc2 internal prototype to avoid an error. */
27124#ifdef __cplusplus
27125extern "C"
27126#endif
27127/* We use char because int might match the return type of a gcc2
27128 builtin and then its argument prototype would still apply. */
27129char IceConnectionNumber ();
27130int
27131main ()
27132{
27133IceConnectionNumber ();
27134 ;
27135 return 0;
27136}
27137_ACEOF
27138rm -f conftest.$ac_objext conftest$ac_exeext
27139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27140 (eval $ac_link) 2>conftest.er1
a848cd7e 27141 ac_status=$?
ac1cb8d3
VS
27142 grep -v '^ *+' conftest.er1 >conftest.err
27143 rm -f conftest.er1
27144 cat conftest.err >&5
a848cd7e
SC
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); } &&
9dd0f6c2 27147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27149 (eval $ac_try) 2>&5
27150 ac_status=$?
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); }; } &&
27153 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155 (eval $ac_try) 2>&5
27156 ac_status=$?
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); }; }; then
27159 ac_cv_lib_ICE_IceConnectionNumber=yes
27160else
27161 echo "$as_me: failed program was:" >&5
27162sed 's/^/| /' conftest.$ac_ext >&5
27163
27164ac_cv_lib_ICE_IceConnectionNumber=no
27165fi
ac1cb8d3
VS
27166rm -f conftest.err conftest.$ac_objext \
27167 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27168LIBS=$ac_check_lib_save_LIBS
27169fi
27170echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27171echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27172if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27173 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27174fi
27175
27176 LDFLAGS=$ac_save_LDFLAGS
27177
27178fi
27179
27180
27181 if test "$no_x" = "yes"; then
27182 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27183echo "$as_me: error: X11 not found" >&2;}
27184 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27185 fi
27186
74b84332
VS
27187 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27188 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27189 AFMINSTALL=afminstall
27190 COMPILED_X_PROGRAM=0
27191
74b84332
VS
27192 fi
27193
27194 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27195 if test "$wxUSE_NANOX" = "yes"; then
27196 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27197echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27198 if test "x$MICROWIN" = x ; then
27199 echo "$as_me:$LINENO: result: not found" >&5
27200echo "${ECHO_T}not found" >&6
27201 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27202echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27203 { (exit 1); exit 1; }; }
27204 else
27205 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27206echo "${ECHO_T}$MICROWIN" >&6
27207 cat >>confdefs.h <<\_ACEOF
27208#define wxUSE_NANOX 1
27209_ACEOF
27210
27211 fi
27212 fi
27213
27214 if test "$wxUSE_UNICODE" = "yes"; then
27215
27216 succeeded=no
27217
27218 if test -z "$PKG_CONFIG"; then
27219 # Extract the first word of "pkg-config", so it can be a program name with args.
27220set dummy pkg-config; ac_word=$2
27221echo "$as_me:$LINENO: checking for $ac_word" >&5
27222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27223if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27224 echo $ECHO_N "(cached) $ECHO_C" >&6
27225else
27226 case $PKG_CONFIG in
27227 [\\/]* | ?:[\\/]*)
27228 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27229 ;;
27230 *)
27231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27232for as_dir in $PATH
27233do
27234 IFS=$as_save_IFS
27235 test -z "$as_dir" && as_dir=.
27236 for ac_exec_ext in '' $ac_executable_extensions; do
27237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27238 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27240 break 2
27241 fi
27242done
27243done
27244
27245 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27246 ;;
27247esac
27248fi
27249PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27250
27251if test -n "$PKG_CONFIG"; then
27252 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27253echo "${ECHO_T}$PKG_CONFIG" >&6
27254else
27255 echo "$as_me:$LINENO: result: no" >&5
27256echo "${ECHO_T}no" >&6
27257fi
27258
27259 fi
27260
27261 if test "$PKG_CONFIG" = "no" ; then
27262 echo "*** The pkg-config script could not be found. Make sure it is"
27263 echo "*** in your path, or set the PKG_CONFIG environment variable"
27264 echo "*** to the full path to pkg-config."
27265 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27266 else
27267 PKG_CONFIG_MIN_VERSION=0.9.0
27268 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27269 echo "$as_me:$LINENO: checking for pangox" >&5
27270echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27271
27272 if $PKG_CONFIG --exists "pangox" ; then
27273 echo "$as_me:$LINENO: result: yes" >&5
27274echo "${ECHO_T}yes" >&6
27275 succeeded=yes
27276
27277 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27278echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27279 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27280 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27281echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27282
27283 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27284echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27285 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27286 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27287echo "${ECHO_T}$PANGOX_LIBS" >&6
27288 else
27289 PANGOX_CFLAGS=""
27290 PANGOX_LIBS=""
27291 ## If we have a custom action on failure, don't print errors, but
27292 ## do set a variable so people can do so.
27293 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27294
27295 fi
27296
27297
27298
27299 else
27300 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27301 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27302 fi
27303 fi
27304
27305 if test $succeeded = yes; then
27306
27307 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27308 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27309
27310 else
27311
27312 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27313echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27314 { (exit 1); exit 1; }; }
27315
27316
27317 fi
27318
27319
27320 succeeded=no
27321
27322 if test -z "$PKG_CONFIG"; then
27323 # Extract the first word of "pkg-config", so it can be a program name with args.
27324set dummy pkg-config; ac_word=$2
27325echo "$as_me:$LINENO: checking for $ac_word" >&5
27326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27327if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27328 echo $ECHO_N "(cached) $ECHO_C" >&6
27329else
27330 case $PKG_CONFIG in
27331 [\\/]* | ?:[\\/]*)
27332 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27333 ;;
27334 *)
27335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27336for as_dir in $PATH
27337do
27338 IFS=$as_save_IFS
27339 test -z "$as_dir" && as_dir=.
27340 for ac_exec_ext in '' $ac_executable_extensions; do
27341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27342 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27344 break 2
27345 fi
27346done
27347done
27348
27349 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27350 ;;
27351esac
27352fi
27353PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27354
27355if test -n "$PKG_CONFIG"; then
27356 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27357echo "${ECHO_T}$PKG_CONFIG" >&6
27358else
27359 echo "$as_me:$LINENO: result: no" >&5
27360echo "${ECHO_T}no" >&6
27361fi
27362
27363 fi
27364
27365 if test "$PKG_CONFIG" = "no" ; then
27366 echo "*** The pkg-config script could not be found. Make sure it is"
27367 echo "*** in your path, or set the PKG_CONFIG environment variable"
27368 echo "*** to the full path to pkg-config."
27369 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27370 else
27371 PKG_CONFIG_MIN_VERSION=0.9.0
27372 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27373 echo "$as_me:$LINENO: checking for pangoft2" >&5
27374echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27375
27376 if $PKG_CONFIG --exists "pangoft2" ; then
27377 echo "$as_me:$LINENO: result: yes" >&5
27378echo "${ECHO_T}yes" >&6
27379 succeeded=yes
27380
27381 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27382echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27383 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27384 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27385echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27386
27387 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27388echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27389 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27390 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27391echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27392 else
27393 PANGOFT2_CFLAGS=""
27394 PANGOFT2_LIBS=""
27395 ## If we have a custom action on failure, don't print errors, but
27396 ## do set a variable so people can do so.
27397 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27398
27399 fi
27400
27401
27402
27403 else
27404 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27405 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27406 fi
27407 fi
27408
27409 if test $succeeded = yes; then
27410
27411 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27412 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27413
27414 else
27415
27416 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27417echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27418 wxUSE_PRINTING_ARCHITECTURE="no"
27419
27420
27421 fi
27422
27423
27424 succeeded=no
27425
27426 if test -z "$PKG_CONFIG"; then
27427 # Extract the first word of "pkg-config", so it can be a program name with args.
27428set dummy pkg-config; ac_word=$2
27429echo "$as_me:$LINENO: checking for $ac_word" >&5
27430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27431if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27432 echo $ECHO_N "(cached) $ECHO_C" >&6
27433else
27434 case $PKG_CONFIG in
27435 [\\/]* | ?:[\\/]*)
27436 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27437 ;;
27438 *)
27439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27440for as_dir in $PATH
27441do
27442 IFS=$as_save_IFS
27443 test -z "$as_dir" && as_dir=.
27444 for ac_exec_ext in '' $ac_executable_extensions; do
27445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27446 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27448 break 2
27449 fi
27450done
27451done
27452
27453 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27454 ;;
27455esac
27456fi
27457PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27458
27459if test -n "$PKG_CONFIG"; then
27460 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27461echo "${ECHO_T}$PKG_CONFIG" >&6
27462else
27463 echo "$as_me:$LINENO: result: no" >&5
27464echo "${ECHO_T}no" >&6
27465fi
27466
27467 fi
27468
27469 if test "$PKG_CONFIG" = "no" ; then
27470 echo "*** The pkg-config script could not be found. Make sure it is"
27471 echo "*** in your path, or set the PKG_CONFIG environment variable"
27472 echo "*** to the full path to pkg-config."
27473 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27474 else
27475 PKG_CONFIG_MIN_VERSION=0.9.0
27476 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27477 echo "$as_me:$LINENO: checking for pangoxft" >&5
27478echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27479
27480 if $PKG_CONFIG --exists "pangoxft" ; then
27481 echo "$as_me:$LINENO: result: yes" >&5
27482echo "${ECHO_T}yes" >&6
27483 succeeded=yes
27484
27485 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27486echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27487 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27488 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27489echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27490
27491 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27492echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27493 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27494 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27495echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27496 else
27497 PANGOXFT_CFLAGS=""
27498 PANGOXFT_LIBS=""
27499 ## If we have a custom action on failure, don't print errors, but
27500 ## do set a variable so people can do so.
27501 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27502
27503 fi
27504
27505
27506
27507 else
27508 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27509 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27510 fi
27511 fi
27512
27513 if test $succeeded = yes; then
27514
4ae1af05
MB
27515 cat >>confdefs.h <<\_ACEOF
27516#define HAVE_PANGO_XFT 1
27517_ACEOF
27518
a848cd7e
SC
27519 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27520 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27521
27522 else
27523
27524 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27525echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27526
27527
27528 fi
27529
304205f1
VS
27530 save_CFLAGS="$CFLAGS"
27531 save_LIBS="$LIBS"
27532 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27533 LIBS="$LIBS $PANGOX_LIBS"
27534
27535for ac_func in pango_font_family_is_monospace
27536do
27537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27538echo "$as_me:$LINENO: checking for $ac_func" >&5
27539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27540if eval "test \"\${$as_ac_var+set}\" = set"; then
27541 echo $ECHO_N "(cached) $ECHO_C" >&6
27542else
27543 cat >conftest.$ac_ext <<_ACEOF
27544/* confdefs.h. */
27545_ACEOF
27546cat confdefs.h >>conftest.$ac_ext
27547cat >>conftest.$ac_ext <<_ACEOF
27548/* end confdefs.h. */
27549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27551#define $ac_func innocuous_$ac_func
27552
27553/* System header to define __stub macros and hopefully few prototypes,
27554 which can conflict with char $ac_func (); below.
27555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27556 <limits.h> exists even on freestanding compilers. */
27557
27558#ifdef __STDC__
27559# include <limits.h>
27560#else
27561# include <assert.h>
27562#endif
27563
27564#undef $ac_func
27565
27566/* Override any gcc2 internal prototype to avoid an error. */
27567#ifdef __cplusplus
27568extern "C"
27569{
27570#endif
27571/* We use char because int might match the return type of a gcc2
27572 builtin and then its argument prototype would still apply. */
27573char $ac_func ();
27574/* The GNU C library defines this for functions which it implements
27575 to always fail with ENOSYS. Some functions are actually named
27576 something starting with __ and the normal name is an alias. */
27577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27578choke me
27579#else
27580char (*f) () = $ac_func;
27581#endif
27582#ifdef __cplusplus
27583}
27584#endif
27585
27586int
27587main ()
27588{
27589return f != $ac_func;
27590 ;
27591 return 0;
27592}
27593_ACEOF
27594rm -f conftest.$ac_objext conftest$ac_exeext
27595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27596 (eval $ac_link) 2>conftest.er1
27597 ac_status=$?
27598 grep -v '^ *+' conftest.er1 >conftest.err
27599 rm -f conftest.er1
27600 cat conftest.err >&5
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); } &&
9dd0f6c2 27603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27605 (eval $ac_try) 2>&5
27606 ac_status=$?
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); }; } &&
27609 { ac_try='test -s conftest$ac_exeext'
27610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27611 (eval $ac_try) 2>&5
27612 ac_status=$?
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; }; then
27615 eval "$as_ac_var=yes"
27616else
27617 echo "$as_me: failed program was:" >&5
27618sed 's/^/| /' conftest.$ac_ext >&5
27619
27620eval "$as_ac_var=no"
27621fi
27622rm -f conftest.err conftest.$ac_objext \
27623 conftest$ac_exeext conftest.$ac_ext
27624fi
27625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27626echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27627if test `eval echo '${'$as_ac_var'}'` = yes; then
27628 cat >>confdefs.h <<_ACEOF
27629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27630_ACEOF
27631
27632fi
27633done
27634
27635 CFLAGS="$save_CFLAGS"
27636 LIBS="$save_LIBS"
a848cd7e
SC
27637 fi
27638
27639 wxUSE_UNIVERSAL="yes"
27640
27641 if test "$wxUSE_NANOX" = "yes"; then
27642 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27643 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"
27644 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27645 else
27646 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27647 fi
27648
a848cd7e
SC
27649 TOOLKIT=X11
27650 GUIDIST=X11_DIST
27651 fi
27652
27653 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
27654 if test "$wxUSE_UNICODE" = "yes"; then
27655 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
27656echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
27657 { (exit 1); exit 1; }; }
27658 fi
27659
74b84332
VS
27660 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27661echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27662
74b84332
VS
27663ac_find_includes=
27664for ac_dir in $SEARCH_INCLUDE /usr/include;
27665 do
27666 if test -f "$ac_dir/Xm/Xm.h"; then
27667 ac_find_includes=$ac_dir
27668 break
27669 fi
27670 done
a848cd7e 27671
74b84332
VS
27672 if test "$ac_find_includes" != "" ; then
27673 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27674echo "${ECHO_T}found in $ac_find_includes" >&6
27675
27676 if test "x$ac_find_includes" = "x/usr/include"; then
27677 ac_path_to_include=""
27678 else
27679 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27680 result=$?
27681 if test $result = 0; then
27682 ac_path_to_include=""
27683 else
27684 ac_path_to_include=" -I$ac_find_includes"
27685 fi
a848cd7e
SC
27686 fi
27687
74b84332
VS
27688 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27689 else
27690 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27691/* confdefs.h. */
27692_ACEOF
27693cat confdefs.h >>conftest.$ac_ext
27694cat >>conftest.$ac_ext <<_ACEOF
27695/* end confdefs.h. */
27696
74b84332
VS
27697 #include <Xm/Xm.h>
27698
a848cd7e
SC
27699int
27700main ()
27701{
27702
74b84332
VS
27703 int version;
27704 version = xmUseVersion;
27705
a848cd7e
SC
27706 ;
27707 return 0;
27708}
27709_ACEOF
74b84332
VS
27710rm -f conftest.$ac_objext
27711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27712 (eval $ac_compile) 2>conftest.er1
a848cd7e 27713 ac_status=$?
ac1cb8d3
VS
27714 grep -v '^ *+' conftest.er1 >conftest.err
27715 rm -f conftest.er1
27716 cat conftest.err >&5
a848cd7e
SC
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } &&
9dd0f6c2 27719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27721 (eval $ac_try) 2>&5
27722 ac_status=$?
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); }; } &&
74b84332 27725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27727 (eval $ac_try) 2>&5
27728 ac_status=$?
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); }; }; then
74b84332
VS
27731
27732 echo "$as_me:$LINENO: result: found in default search path" >&5
27733echo "${ECHO_T}found in default search path" >&6
27734 COMPILED_X_PROGRAM=1
27735
a848cd7e
SC
27736else
27737 echo "$as_me: failed program was:" >&5
27738sed 's/^/| /' conftest.$ac_ext >&5
27739
a848cd7e 27740
74b84332
VS
27741 echo "$as_me:$LINENO: result: no" >&5
27742echo "${ECHO_T}no" >&6
27743 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27744echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27745 { (exit 1); exit 1; }; }
a848cd7e 27746
a848cd7e 27747
a848cd7e 27748fi
74b84332
VS
27749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27750 fi
27751
27752 if test "$COMPILED_X_PROGRAM" = 0; then
27753 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27754echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27755
27756ac_find_libraries=
27757for ac_dir in $SEARCH_LIB /usr/lib;
27758 do
27759 for ac_extension in a so sl dylib; do
27760 if test -f "$ac_dir/libXm.$ac_extension"; then
27761 ac_find_libraries=$ac_dir
27762 break 2
a848cd7e 27763 fi
74b84332
VS
27764 done
27765 done
a848cd7e 27766
74b84332
VS
27767 if test "$ac_find_libraries" != "" ; then
27768 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27769echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27770
74b84332
VS
27771
27772 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27773 result=$?
27774 if test $result = 0; then
27775 ac_path_to_link=""
a848cd7e 27776 else
74b84332
VS
27777 ac_path_to_link=" -L$ac_find_libraries"
27778 fi
27779
27780 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27781 else
27782 save_CFLAGS=$CFLAGS
27783 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27784
27785 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27786/* confdefs.h. */
27787_ACEOF
27788cat confdefs.h >>conftest.$ac_ext
27789cat >>conftest.$ac_ext <<_ACEOF
27790/* end confdefs.h. */
27791
74b84332
VS
27792 #include <Xm/Xm.h>
27793
a848cd7e
SC
27794int
27795main ()
27796{
74b84332
VS
27797
27798 int version;
27799 version = xmUseVersion;
27800
a848cd7e
SC
27801 ;
27802 return 0;
27803}
27804_ACEOF
74b84332
VS
27805rm -f conftest.$ac_objext
27806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27807 (eval $ac_compile) 2>conftest.er1
a848cd7e 27808 ac_status=$?
ac1cb8d3
VS
27809 grep -v '^ *+' conftest.er1 >conftest.err
27810 rm -f conftest.er1
27811 cat conftest.err >&5
a848cd7e
SC
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); } &&
9dd0f6c2 27814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816 (eval $ac_try) 2>&5
27817 ac_status=$?
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); }; } &&
74b84332 27820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822 (eval $ac_try) 2>&5
27823 ac_status=$?
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; }; then
74b84332
VS
27826
27827 echo "$as_me:$LINENO: result: found in default search path" >&5
27828echo "${ECHO_T}found in default search path" >&6
27829 COMPILED_X_PROGRAM=1
27830
a848cd7e
SC
27831else
27832 echo "$as_me: failed program was:" >&5
27833sed 's/^/| /' conftest.$ac_ext >&5
27834
74b84332
VS
27835
27836 echo "$as_me:$LINENO: result: no" >&5
27837echo "${ECHO_T}no" >&6
27838 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27839echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27840 { (exit 1); exit 1; }; }
27841
27842
27843fi
27844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27845
27846 CFLAGS=$save_CFLAGS
27847 fi
27848 fi
27849
27850 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27851echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27852 libp_link=""
27853 libsm_ice_link=""
27854 libs_found=0
27855 for libp in "" " -lXp"; do
27856 if test "$libs_found" = "0"; then
27857 for libsm_ice in "" " -lSM -lICE"; do
27858 if test "$libs_found" = "0"; then
27859 save_LIBS="$LIBS"
27860 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27861 save_CFLAGS=$CFLAGS
27862 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27863
27864 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27865/* confdefs.h. */
27866_ACEOF
27867cat confdefs.h >>conftest.$ac_ext
27868cat >>conftest.$ac_ext <<_ACEOF
27869/* end confdefs.h. */
27870
74b84332
VS
27871 #include <Xm/Xm.h>
27872 #include <Xm/List.h>
27873
a848cd7e
SC
27874int
27875main ()
27876{
74b84332
VS
27877
27878 XmString string = NULL;
27879 Widget w = NULL;
27880 int position = 0;
27881 XmListAddItem(w, string, position);
27882
a848cd7e
SC
27883 ;
27884 return 0;
27885}
27886_ACEOF
27887rm -f conftest.$ac_objext conftest$ac_exeext
27888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27889 (eval $ac_link) 2>conftest.er1
a848cd7e 27890 ac_status=$?
ac1cb8d3
VS
27891 grep -v '^ *+' conftest.er1 >conftest.err
27892 rm -f conftest.er1
27893 cat conftest.err >&5
a848cd7e
SC
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); } &&
9dd0f6c2 27896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898 (eval $ac_try) 2>&5
27899 ac_status=$?
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; } &&
27902 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27904 (eval $ac_try) 2>&5
27905 ac_status=$?
27906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907 (exit $ac_status); }; }; then
27908
27909 libp_link="$libp"
27910 libsm_ice_link="$libsm_ice"
27911 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27912echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27913 libs_found=1
27914
27915else
27916 echo "$as_me: failed program was:" >&5
27917sed 's/^/| /' conftest.$ac_ext >&5
27918
27919
27920
27921fi
ac1cb8d3
VS
27922rm -f conftest.err conftest.$ac_objext \
27923 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27924
27925 LIBS="$save_LIBS"
27926 CFLAGS=$save_CFLAGS
27927 fi
27928 done
27929 fi
27930 done
27931
27932 if test "$libs_found" = "0"; then
27933 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27934echo "${ECHO_T}can't find the right libraries" >&6
27935 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27936echo "$as_me: error: can't link a simple motif program" >&2;}
27937 { (exit 1); exit 1; }; }
27938 fi
27939
27940 save_CFLAGS=$CFLAGS
27941 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27942 echo "$as_me:$LINENO: checking for Motif 2" >&5
27943echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27944 cat >conftest.$ac_ext <<_ACEOF
27945/* confdefs.h. */
27946_ACEOF
27947cat confdefs.h >>conftest.$ac_ext
27948cat >>conftest.$ac_ext <<_ACEOF
27949/* end confdefs.h. */
27950
27951 #include <Xm/Xm.h>
27952
27953int
27954main ()
27955{
27956
27957 #if XmVersion < 2000
27958 #error "Not Motif 2"
27959 #endif
27960
27961 ;
27962 return 0;
27963}
27964_ACEOF
27965rm -f conftest.$ac_objext
27966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27967 (eval $ac_compile) 2>conftest.er1
a848cd7e 27968 ac_status=$?
ac1cb8d3
VS
27969 grep -v '^ *+' conftest.er1 >conftest.err
27970 rm -f conftest.er1
27971 cat conftest.err >&5
a848cd7e
SC
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); } &&
9dd0f6c2 27974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976 (eval $ac_try) 2>&5
27977 ac_status=$?
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; } &&
27980 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27982 (eval $ac_try) 2>&5
27983 ac_status=$?
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); }; }; then
27986
27987 cat >>confdefs.h <<\_ACEOF
27988#define __WXMOTIF20__ 1
27989_ACEOF
27990
27991 echo "$as_me:$LINENO: result: found" >&5
27992echo "${ECHO_T}found" >&6
27993
27994else
27995 echo "$as_me: failed program was:" >&5
27996sed 's/^/| /' conftest.$ac_ext >&5
27997
27998
27999 cat >>confdefs.h <<\_ACEOF
28000#define __WXMOTIF20__ 0
28001_ACEOF
28002
28003 echo "$as_me:$LINENO: result: not found" >&5
28004echo "${ECHO_T}not found" >&6
28005
28006fi
ac1cb8d3 28007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28008 CFLAGS=$save_CFLAGS
28009
28010 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28011 TOOLKIT=MOTIF
28012 GUIDIST=MOTIF_DIST
28013 fi
28014
74b84332 28015 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28016 if test "$wxUSE_LIBXPM" = "sys"; then
28017 echo "$as_me:$LINENO: checking for Xpm library" >&5
28018echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28019
28020ac_find_libraries=
28021for ac_dir in $SEARCH_LIB /usr/lib;
28022 do
28023 for ac_extension in a so sl dylib; do
28024 if test -f "$ac_dir/libXpm.$ac_extension"; then
28025 ac_find_libraries=$ac_dir
28026 break 2
28027 fi
28028 done
28029 done
28030
28031 if test "$ac_find_libraries" != "" ; then
28032
28033 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28034 result=$?
28035 if test $result = 0; then
28036 ac_path_to_link=""
28037 else
28038 ac_path_to_link=" -L$ac_find_libraries"
28039 fi
28040
28041 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28042 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28043echo "${ECHO_T}found at $ac_find_libraries" >&6
28044
28045 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28046echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28047if test "${wx_cv_x11_xpm_h+set}" = set; then
28048 echo $ECHO_N "(cached) $ECHO_C" >&6
28049else
28050
28051 save_CFLAGS=$CFLAGS
28052 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28053
28054 cat >conftest.$ac_ext <<_ACEOF
28055/* confdefs.h. */
28056_ACEOF
28057cat confdefs.h >>conftest.$ac_ext
28058cat >>conftest.$ac_ext <<_ACEOF
28059/* end confdefs.h. */
28060
28061 #include <X11/xpm.h>
28062
28063int
28064main ()
28065{
28066
28067 int version;
28068 version = XpmLibraryVersion();
28069
28070 ;
28071 return 0;
28072}
28073_ACEOF
28074rm -f conftest.$ac_objext
28075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28076 (eval $ac_compile) 2>conftest.er1
a848cd7e 28077 ac_status=$?
ac1cb8d3
VS
28078 grep -v '^ *+' conftest.er1 >conftest.err
28079 rm -f conftest.er1
28080 cat conftest.err >&5
a848cd7e
SC
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); } &&
9dd0f6c2 28083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28085 (eval $ac_try) 2>&5
28086 ac_status=$?
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); }; } &&
28089 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28091 (eval $ac_try) 2>&5
28092 ac_status=$?
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); }; }; then
28095 wx_cv_x11_xpm_h=yes
28096else
28097 echo "$as_me: failed program was:" >&5
28098sed 's/^/| /' conftest.$ac_ext >&5
28099
28100wx_cv_x11_xpm_h=no
28101
28102fi
ac1cb8d3 28103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28104
28105 CFLAGS=$save_CFLAGS
28106
28107
28108fi
28109echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28110echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28111
28112 if test $wx_cv_x11_xpm_h = "yes"; then
28113 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28114 cat >>confdefs.h <<\_ACEOF
28115#define wxHAVE_LIB_XPM 1
28116_ACEOF
28117
28118 else
28119 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28120echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28121 fi
28122 fi
28123
28124 fi
28125
28126 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28127echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28128if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28129 echo $ECHO_N "(cached) $ECHO_C" >&6
28130else
28131 ac_check_lib_save_LIBS=$LIBS
28132LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28133cat >conftest.$ac_ext <<_ACEOF
28134/* confdefs.h. */
28135_ACEOF
28136cat confdefs.h >>conftest.$ac_ext
28137cat >>conftest.$ac_ext <<_ACEOF
28138/* end confdefs.h. */
28139
28140/* Override any gcc2 internal prototype to avoid an error. */
28141#ifdef __cplusplus
28142extern "C"
28143#endif
28144/* We use char because int might match the return type of a gcc2
28145 builtin and then its argument prototype would still apply. */
28146char XShapeQueryExtension ();
28147int
28148main ()
28149{
28150XShapeQueryExtension ();
28151 ;
28152 return 0;
28153}
28154_ACEOF
28155rm -f conftest.$ac_objext conftest$ac_exeext
28156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28157 (eval $ac_link) 2>conftest.er1
a848cd7e 28158 ac_status=$?
ac1cb8d3
VS
28159 grep -v '^ *+' conftest.er1 >conftest.err
28160 rm -f conftest.er1
28161 cat conftest.err >&5
a848cd7e
SC
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); } &&
9dd0f6c2 28164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28166 (eval $ac_try) 2>&5
28167 ac_status=$?
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); }; } &&
28170 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28172 (eval $ac_try) 2>&5
28173 ac_status=$?
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); }; }; then
28176 ac_cv_lib_Xext_XShapeQueryExtension=yes
28177else
28178 echo "$as_me: failed program was:" >&5
28179sed 's/^/| /' conftest.$ac_ext >&5
28180
28181ac_cv_lib_Xext_XShapeQueryExtension=no
28182fi
ac1cb8d3
VS
28183rm -f conftest.err conftest.$ac_objext \
28184 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28185LIBS=$ac_check_lib_save_LIBS
28186fi
28187echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28188echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28189if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28190
28191 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28192 wxHAVE_XEXT_LIB=1
28193
28194fi
28195
28196
28197 if test "$wxHAVE_XEXT_LIB" = 1; then
28198 save_CFLAGS="$CFLAGS"
28199 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28200
28201 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28202echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28203 cat >conftest.$ac_ext <<_ACEOF
28204/* confdefs.h. */
28205_ACEOF
28206cat confdefs.h >>conftest.$ac_ext
28207cat >>conftest.$ac_ext <<_ACEOF
28208/* end confdefs.h. */
28209
28210 #include <X11/Xlib.h>
28211 #include <X11/extensions/shape.h>
28212
28213int
28214main ()
28215{
28216
28217 int dummy1, dummy2;
28218 XShapeQueryExtension((Display*)NULL,
28219 (int*)NULL, (int*)NULL);
28220
28221 ;
28222 return 0;
28223}
28224_ACEOF
28225rm -f conftest.$ac_objext
28226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28227 (eval $ac_compile) 2>conftest.er1
a848cd7e 28228 ac_status=$?
ac1cb8d3
VS
28229 grep -v '^ *+' conftest.er1 >conftest.err
28230 rm -f conftest.er1
28231 cat conftest.err >&5
a848cd7e
SC
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); } &&
9dd0f6c2 28234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28237 ac_status=$?
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; } &&
28240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242 (eval $ac_try) 2>&5
28243 ac_status=$?
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; }; then
28246
28247 cat >>confdefs.h <<\_ACEOF
28248#define HAVE_XSHAPE 1
28249_ACEOF
28250
28251 echo "$as_me:$LINENO: result: found" >&5
28252echo "${ECHO_T}found" >&6
28253
28254else
28255 echo "$as_me: failed program was:" >&5
28256sed 's/^/| /' conftest.$ac_ext >&5
28257
28258
28259 echo "$as_me:$LINENO: result: not found" >&5
28260echo "${ECHO_T}not found" >&6
28261
28262fi
ac1cb8d3 28263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28264 CFLAGS="$save_CFLAGS"
28265
28266 fi
28267 fi
28268
28269 if test "$wxUSE_MAC" = 1; then
28270 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28271echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28272 if test "$GCC" = yes; then
28273 echo "$as_me:$LINENO: result: gcc" >&5
28274echo "${ECHO_T}gcc" >&6
28275 CPPFLAGS_PASCAL="-fpascal-strings"
28276 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28277 echo "$as_me:$LINENO: result: xlc" >&5
28278echo "${ECHO_T}xlc" >&6
28279 CPPFLAGS_PASCAL="-qmacpstr"
28280 else
28281 echo "$as_me:$LINENO: result: none" >&5
28282echo "${ECHO_T}none" >&6
28283 fi
28284
1e9e8aba
DE
28285 if test "x$wxUSE_UNIX" = "xyes"; then
28286 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28287 else
28288 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28289 fi
a848cd7e 28290
a848cd7e
SC
28291 TOOLKIT=MAC
28292 GUIDIST=MACX_DIST
dd21ced8 28293 WXBASEPORT="_carbon"
a848cd7e
SC
28294 fi
28295
28296 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28297 TOOLKIT=COCOA
28298 GUIDIST=COCOA_DIST
28299 fi
28300
28301 if test "$wxUSE_PM" = 1; then
28302 TOOLKIT=PM
de59c161
RD
28303 GUIDIST=PM_DIST
28304 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28305echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28306if test "${wx_cv_spbcdata+set}" = set; then
28307 echo $ECHO_N "(cached) $ECHO_C" >&6
28308else
28309
28310 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28311/* confdefs.h. */
28312_ACEOF
28313cat confdefs.h >>conftest.$ac_ext
28314cat >>conftest.$ac_ext <<_ACEOF
28315/* end confdefs.h. */
28316
28317 #define INCL_PM
28318 #include <os2.h>
28319
28320int
28321main ()
28322{
28323
28324 SPBCDATA test;
28325
28326 ;
28327 return 0;
28328}
28329_ACEOF
28330rm -f conftest.$ac_objext
28331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28332 (eval $ac_compile) 2>conftest.er1
de59c161 28333 ac_status=$?
ac1cb8d3
VS
28334 grep -v '^ *+' conftest.er1 >conftest.err
28335 rm -f conftest.er1
28336 cat conftest.err >&5
de59c161
RD
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); } &&
9dd0f6c2 28339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28341 (eval $ac_try) 2>&5
28342 ac_status=$?
28343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344 (exit $ac_status); }; } &&
28345 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28347 (eval $ac_try) 2>&5
28348 ac_status=$?
28349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28350 (exit $ac_status); }; }; then
28351 wx_cv_spbcdata=yes
28352else
28353 echo "$as_me: failed program was:" >&5
28354sed 's/^/| /' conftest.$ac_ext >&5
28355
28356wx_cv_spbcdata=no
28357
28358fi
ac1cb8d3 28359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28360
28361
28362fi
28363echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28364echo "${ECHO_T}$wx_cv_spbcdata" >&6
28365
28366 if test $wx_cv_spbcdata = "yes"; then
28367 cat >>confdefs.h <<\_ACEOF
28368#define HAVE_SPBCDATA 1
28369_ACEOF
28370
28371 fi
a848cd7e
SC
28372 fi
28373
28374 if test "$TOOLKIT" = "PM" ; then
28375 TOOLKIT_DIR="os2"
28376 else
28377 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28378 fi
28379
a848cd7e 28380 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28381 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28382 WIDGET_SET=univ
a848cd7e
SC
28383 fi
28384
28385 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28386 DISTDIR="wx\$(TOOLKIT)"
28387else
28388 USE_GUI=0
28389
28390 TOOLKIT_DIR="base"
28391
28392 if test "$USE_WIN32" = 1 ; then
a848cd7e 28393 TOOLKIT="MSW"
a848cd7e
SC
28394 fi
28395
a848cd7e
SC
28396 GUIDIST="BASE_DIST"
28397 DISTDIR="wxBase"
28398fi
28399
28400
28401
28402
28403IODBC_C_SRC=""
28404
28405
28406if test "$TOOLKIT" != "MSW" ; then
28407
28408 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28409
28410 if test "${ac_cv_header_sql_h+set}" = set; then
28411 echo "$as_me:$LINENO: checking for sql.h" >&5
28412echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28413if test "${ac_cv_header_sql_h+set}" = set; then
28414 echo $ECHO_N "(cached) $ECHO_C" >&6
28415fi
28416echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28417echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28418else
28419 # Is the header compilable?
28420echo "$as_me:$LINENO: checking sql.h usability" >&5
28421echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28422cat >conftest.$ac_ext <<_ACEOF
28423/* confdefs.h. */
28424_ACEOF
28425cat confdefs.h >>conftest.$ac_ext
28426cat >>conftest.$ac_ext <<_ACEOF
28427/* end confdefs.h. */
28428$ac_includes_default
28429#include <sql.h>
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); } &&
9dd0f6c2 28440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442 (eval $ac_try) 2>&5
28443 ac_status=$?
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); }; } &&
28446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448 (eval $ac_try) 2>&5
28449 ac_status=$?
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); }; }; then
28452 ac_header_compiler=yes
28453else
28454 echo "$as_me: failed program was:" >&5
28455sed 's/^/| /' conftest.$ac_ext >&5
28456
28457ac_header_compiler=no
28458fi
ac1cb8d3 28459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28460echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28461echo "${ECHO_T}$ac_header_compiler" >&6
28462
28463# Is the header present?
28464echo "$as_me:$LINENO: checking sql.h presence" >&5
28465echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28466cat >conftest.$ac_ext <<_ACEOF
28467/* confdefs.h. */
28468_ACEOF
28469cat confdefs.h >>conftest.$ac_ext
28470cat >>conftest.$ac_ext <<_ACEOF
28471/* end confdefs.h. */
28472#include <sql.h>
28473_ACEOF
28474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28476 ac_status=$?
28477 grep -v '^ *+' conftest.er1 >conftest.err
28478 rm -f conftest.er1
28479 cat conftest.err >&5
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); } >/dev/null; then
28482 if test -s conftest.err; then
28483 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28485 else
28486 ac_cpp_err=
28487 fi
28488else
28489 ac_cpp_err=yes
28490fi
28491if test -z "$ac_cpp_err"; then
28492 ac_header_preproc=yes
28493else
28494 echo "$as_me: failed program was:" >&5
28495sed 's/^/| /' conftest.$ac_ext >&5
28496
28497 ac_header_preproc=no
28498fi
28499rm -f conftest.err conftest.$ac_ext
28500echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28501echo "${ECHO_T}$ac_header_preproc" >&6
28502
28503# So? What about this header?
ac1cb8d3
VS
28504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28505 yes:no: )
a848cd7e
SC
28506 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28507echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28508 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28509echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28510 ac_header_preproc=yes
a848cd7e 28511 ;;
ac1cb8d3 28512 no:yes:* )
a848cd7e
SC
28513 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28514echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28515 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28516echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28517 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28518echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28519 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28520echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28521 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28522echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28523 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28524echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28525 (
28526 cat <<\_ASBOX
ac1cb8d3
VS
28527## ----------------------------------------- ##
28528## Report this to wx-dev@lists.wxwidgets.org ##
28529## ----------------------------------------- ##
a848cd7e
SC
28530_ASBOX
28531 ) |
28532 sed "s/^/$as_me: WARNING: /" >&2
28533 ;;
28534esac
28535echo "$as_me:$LINENO: checking for sql.h" >&5
28536echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28537if test "${ac_cv_header_sql_h+set}" = set; then
28538 echo $ECHO_N "(cached) $ECHO_C" >&6
28539else
28540 ac_cv_header_sql_h=$ac_header_preproc
28541fi
28542echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28543echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28544
28545fi
28546if test $ac_cv_header_sql_h = yes; then
28547 found_sql_h=1
28548fi
28549
28550
28551 if test "x$found_sql_h" = "x1" ; then
28552 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28553echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28554if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28555 echo $ECHO_N "(cached) $ECHO_C" >&6
28556else
28557 ac_check_lib_save_LIBS=$LIBS
28558LIBS="-liodbc $LIBS"
28559cat >conftest.$ac_ext <<_ACEOF
28560/* confdefs.h. */
28561_ACEOF
28562cat confdefs.h >>conftest.$ac_ext
28563cat >>conftest.$ac_ext <<_ACEOF
28564/* end confdefs.h. */
28565
28566/* Override any gcc2 internal prototype to avoid an error. */
28567#ifdef __cplusplus
28568extern "C"
28569#endif
28570/* We use char because int might match the return type of a gcc2
28571 builtin and then its argument prototype would still apply. */
28572char SQLAllocEnv ();
28573int
28574main ()
28575{
28576SQLAllocEnv ();
28577 ;
28578 return 0;
28579}
28580_ACEOF
28581rm -f conftest.$ac_objext conftest$ac_exeext
28582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28583 (eval $ac_link) 2>conftest.er1
a848cd7e 28584 ac_status=$?
ac1cb8d3
VS
28585 grep -v '^ *+' conftest.er1 >conftest.err
28586 rm -f conftest.er1
28587 cat conftest.err >&5
a848cd7e
SC
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); } &&
9dd0f6c2 28590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28592 (eval $ac_try) 2>&5
28593 ac_status=$?
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); }; } &&
28596 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28598 (eval $ac_try) 2>&5
28599 ac_status=$?
28600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28601 (exit $ac_status); }; }; then
28602 ac_cv_lib_iodbc_SQLAllocEnv=yes
28603else
28604 echo "$as_me: failed program was:" >&5
28605sed 's/^/| /' conftest.$ac_ext >&5
28606
28607ac_cv_lib_iodbc_SQLAllocEnv=no
28608fi
ac1cb8d3
VS
28609rm -f conftest.err conftest.$ac_objext \
28610 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28611LIBS=$ac_check_lib_save_LIBS
28612fi
28613echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28614echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28615if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28616 ODBC_LINK=" -liodbc"
28617else
28618
28619 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28620echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28621if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28622 echo $ECHO_N "(cached) $ECHO_C" >&6
28623else
28624 ac_check_lib_save_LIBS=$LIBS
28625LIBS="-lunixodbc $LIBS"
28626cat >conftest.$ac_ext <<_ACEOF
28627/* confdefs.h. */
28628_ACEOF
28629cat confdefs.h >>conftest.$ac_ext
28630cat >>conftest.$ac_ext <<_ACEOF
28631/* end confdefs.h. */
28632
28633/* Override any gcc2 internal prototype to avoid an error. */
28634#ifdef __cplusplus
28635extern "C"
28636#endif
28637/* We use char because int might match the return type of a gcc2
28638 builtin and then its argument prototype would still apply. */
28639char SQLAllocEnv ();
28640int
28641main ()
28642{
28643SQLAllocEnv ();
28644 ;
28645 return 0;
28646}
28647_ACEOF
28648rm -f conftest.$ac_objext conftest$ac_exeext
28649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28650 (eval $ac_link) 2>conftest.er1
a848cd7e 28651 ac_status=$?
ac1cb8d3
VS
28652 grep -v '^ *+' conftest.er1 >conftest.err
28653 rm -f conftest.er1
28654 cat conftest.err >&5
a848cd7e
SC
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); } &&
9dd0f6c2 28657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28659 (eval $ac_try) 2>&5
28660 ac_status=$?
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); }; } &&
28663 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28665 (eval $ac_try) 2>&5
28666 ac_status=$?
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); }; }; then
28669 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28670else
28671 echo "$as_me: failed program was:" >&5
28672sed 's/^/| /' conftest.$ac_ext >&5
28673
28674ac_cv_lib_unixodbc_SQLAllocEnv=no
28675fi
ac1cb8d3
VS
28676rm -f conftest.err conftest.$ac_objext \
28677 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28678LIBS=$ac_check_lib_save_LIBS
28679fi
28680echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28681echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28682if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28683 ODBC_LINK=" -lunixodbc"
28684else
28685
28686 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28687echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28688if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28689 echo $ECHO_N "(cached) $ECHO_C" >&6
28690else
28691 ac_check_lib_save_LIBS=$LIBS
28692LIBS="-lodbc $LIBS"
28693cat >conftest.$ac_ext <<_ACEOF
28694/* confdefs.h. */
28695_ACEOF
28696cat confdefs.h >>conftest.$ac_ext
28697cat >>conftest.$ac_ext <<_ACEOF
28698/* end confdefs.h. */
28699
28700/* Override any gcc2 internal prototype to avoid an error. */
28701#ifdef __cplusplus
28702extern "C"
28703#endif
28704/* We use char because int might match the return type of a gcc2
28705 builtin and then its argument prototype would still apply. */
28706char SQLAllocEnv ();
28707int
28708main ()
28709{
28710SQLAllocEnv ();
28711 ;
28712 return 0;
28713}
28714_ACEOF
28715rm -f conftest.$ac_objext conftest$ac_exeext
28716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28717 (eval $ac_link) 2>conftest.er1
a848cd7e 28718 ac_status=$?
ac1cb8d3
VS
28719 grep -v '^ *+' conftest.er1 >conftest.err
28720 rm -f conftest.er1
28721 cat conftest.err >&5
a848cd7e
SC
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); } &&
9dd0f6c2 28724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28726 (eval $ac_try) 2>&5
28727 ac_status=$?
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); }; } &&
28730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28732 (eval $ac_try) 2>&5
28733 ac_status=$?
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); }; }; then
28736 ac_cv_lib_odbc_SQLAllocEnv=yes
28737else
28738 echo "$as_me: failed program was:" >&5
28739sed 's/^/| /' conftest.$ac_ext >&5
28740
28741ac_cv_lib_odbc_SQLAllocEnv=no
28742fi
ac1cb8d3
VS
28743rm -f conftest.err conftest.$ac_objext \
28744 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28745LIBS=$ac_check_lib_save_LIBS
28746fi
28747echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28748echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28749if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28750 ODBC_LINK=" -lodbc"
28751fi
28752
28753
28754fi
28755
28756
28757fi
28758
28759 fi
28760 if test "x$ODBC_LINK" = "x" ; then
28761 if test "$wxUSE_ODBC" = "sys" ; then
28762 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28763echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28764 { (exit 1); exit 1; }; }
28765 else
28766 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28767echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28768 wxUSE_ODBC=builtin
28769 fi
28770 else
28771 wxUSE_ODBC=sys
28772 fi
28773 fi
a848cd7e 28774
2da0c077
RD
28775 if test "$wxUSE_ODBC" = "builtin" ; then
28776 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28777#define wxUSE_BUILTIN_IODBC 1
28778_ACEOF
28779
a848cd7e
SC
28780 fi
28781fi
28782
2da0c077
RD
28783if test "$wxUSE_ODBC" != "no" ; then
28784 cat >>confdefs.h <<\_ACEOF
28785#define wxUSE_ODBC 1
28786_ACEOF
28787
28788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28789
28790 WXODBCFLAG="-D_IODBC_"
28791fi
a848cd7e 28792
01cb68df 28793
a848cd7e 28794if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28795 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28796 echo "$as_me:$LINENO: checking for Xinerama" >&5
28797echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28798
28799ac_find_libraries=
28800for ac_dir in $SEARCH_LIB /usr/lib;
28801 do
28802 for ac_extension in a so sl dylib; do
28803 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28804 ac_find_libraries=$ac_dir
28805 break 2
28806 fi
28807 done
28808 done
28809
28810 if test "$ac_find_libraries" != "" ; then
28811
28812 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28813 result=$?
28814 if test $result = 0; then
28815 ac_path_to_link=""
28816 else
28817 ac_path_to_link=" -L$ac_find_libraries"
28818 fi
28819
28820 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28821 LDFLAGS="$LDFLAGS $ac_path_to_link"
28822 fi
28823 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28824 echo "$as_me:$LINENO: result: yes" >&5
28825echo "${ECHO_T}yes" >&6
28826
28827 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28828echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28829
28830ac_find_libraries=
28831for ac_dir in $SEARCH_LIB /usr/lib;
28832 do
28833 for ac_extension in a so sl dylib; do
28834 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28835 ac_find_libraries=$ac_dir
28836 break 2
28837 fi
28838 done
28839 done
28840
28841 if test "$ac_find_libraries" != "" ; then
28842 echo "$as_me:$LINENO: result: yes" >&5
28843echo "${ECHO_T}yes" >&6
28844
28845for ac_header in X11/extensions/xf86vmode.h
28846do
28847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28848echo "$as_me:$LINENO: checking for $ac_header" >&5
28849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28850if eval "test \"\${$as_ac_Header+set}\" = set"; then
28851 echo $ECHO_N "(cached) $ECHO_C" >&6
28852else
28853 cat >conftest.$ac_ext <<_ACEOF
28854/* confdefs.h. */
28855_ACEOF
28856cat confdefs.h >>conftest.$ac_ext
28857cat >>conftest.$ac_ext <<_ACEOF
28858/* end confdefs.h. */
28859
28860 #if HAVE_X11_XLIB_H
28861 #include <X11/Xlib.h>
28862 #endif
28863
28864
28865#include <$ac_header>
28866_ACEOF
28867rm -f conftest.$ac_objext
28868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28869 (eval $ac_compile) 2>conftest.er1
a848cd7e 28870 ac_status=$?
ac1cb8d3
VS
28871 grep -v '^ *+' conftest.er1 >conftest.err
28872 rm -f conftest.er1
28873 cat conftest.err >&5
a848cd7e
SC
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); } &&
9dd0f6c2 28876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28878 (eval $ac_try) 2>&5
28879 ac_status=$?
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); }; } &&
28882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884 (eval $ac_try) 2>&5
28885 ac_status=$?
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); }; }; then
28888 eval "$as_ac_Header=yes"
28889else
28890 echo "$as_me: failed program was:" >&5
28891sed 's/^/| /' conftest.$ac_ext >&5
28892
28893eval "$as_ac_Header=no"
28894fi
ac1cb8d3 28895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28896fi
28897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28899if test `eval echo '${'$as_ac_Header'}'` = yes; then
28900 cat >>confdefs.h <<_ACEOF
28901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28902_ACEOF
28903
28904 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28905
28906fi
28907
28908done
28909
28910 else
28911 echo "$as_me:$LINENO: result: no" >&5
28912echo "${ECHO_T}no" >&6
28913 fi
28914
28915 else
28916 echo "$as_me:$LINENO: result: no" >&5
28917echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28918 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28919echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28920 wxUSE_DISPLAY="no"
28921 fi
01cb68df
RG
28922 elif test "$wxUSE_MSW" = 1; then
28923
28924
28925for ac_header in multimon.h ddraw.h
28926do
28927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28928echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28930if eval "test \"\${$as_ac_Header+set}\" = set"; then
28931 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28932else
5294a27e 28933 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28934/* confdefs.h. */
28935_ACEOF
28936cat confdefs.h >>conftest.$ac_ext
28937cat >>conftest.$ac_ext <<_ACEOF
28938/* end confdefs.h. */
5294a27e
VZ
28939#include <windows.h>
28940
01cb68df
RG
28941#include <$ac_header>
28942_ACEOF
28943rm -f conftest.$ac_objext
28944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28945 (eval $ac_compile) 2>conftest.er1
01cb68df 28946 ac_status=$?
ac1cb8d3
VS
28947 grep -v '^ *+' conftest.er1 >conftest.err
28948 rm -f conftest.er1
28949 cat conftest.err >&5
01cb68df
RG
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); } &&
9dd0f6c2 28952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28954 (eval $ac_try) 2>&5
28955 ac_status=$?
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); }; } &&
28958 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28960 (eval $ac_try) 2>&5
28961 ac_status=$?
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); }; }; then
5294a27e 28964 eval "$as_ac_Header=yes"
01cb68df
RG
28965else
28966 echo "$as_me: failed program was:" >&5
28967sed 's/^/| /' conftest.$ac_ext >&5
28968
5294a27e 28969eval "$as_ac_Header=no"
01cb68df 28970fi
ac1cb8d3 28971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28972fi
28973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28975if test `eval echo '${'$as_ac_Header'}'` = yes; then
28976 cat >>confdefs.h <<_ACEOF
28977#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28978_ACEOF
28979
28980else
28981
5294a27e
VZ
28982 wxUSE_DISPLAY="no"
28983 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28984echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28985
28986fi
28987
28988done
28989
a848cd7e
SC
28990 fi
28991fi
28992
28993
28994USE_OPENGL=0
28995if test "$wxUSE_OPENGL" = "yes"; then
28996 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28997 OPENGL_LIBS="-framework OpenGL -framework AGL"
28998 elif test "$wxUSE_MSW" = 1; then
28999 OPENGL_LIBS="-lopengl32 -lglu32"
29000 else
29001
29002
29003ac_find_includes=
29004for ac_dir in $SEARCH_INCLUDE /usr/include;
29005 do
29006 if test -f "$ac_dir/GL/gl.h"; then
29007 ac_find_includes=$ac_dir
29008 break
29009 fi
29010 done
29011
29012 if test "$ac_find_includes" != "" ; then
29013 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29014echo "${ECHO_T}found in $ac_find_includes" >&6
29015
29016 if test "x$ac_find_includes" = "x/usr/include"; then
29017 ac_path_to_include=""
29018 else
29019 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29020 result=$?
29021 if test $result = 0; then
29022 ac_path_to_include=""
29023 else
29024 ac_path_to_include=" -I$ac_find_includes"
29025 fi
29026 fi
29027
29028 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29029 fi
29030
29031 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29032 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29033echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29034if test "${ac_cv_header_GL_gl_h+set}" = set; then
29035 echo $ECHO_N "(cached) $ECHO_C" >&6
29036fi
29037echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29038echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29039else
29040 # Is the header compilable?
29041echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29042echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29043cat >conftest.$ac_ext <<_ACEOF
29044/* confdefs.h. */
29045_ACEOF
29046cat confdefs.h >>conftest.$ac_ext
29047cat >>conftest.$ac_ext <<_ACEOF
29048/* end confdefs.h. */
29049$ac_includes_default
29050#include <GL/gl.h>
29051_ACEOF
29052rm -f conftest.$ac_objext
29053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29054 (eval $ac_compile) 2>conftest.er1
a848cd7e 29055 ac_status=$?
ac1cb8d3
VS
29056 grep -v '^ *+' conftest.er1 >conftest.err
29057 rm -f conftest.er1
29058 cat conftest.err >&5
a848cd7e
SC
29059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060 (exit $ac_status); } &&
9dd0f6c2 29061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29063 (eval $ac_try) 2>&5
29064 ac_status=$?
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); }; } &&
29067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29069 (eval $ac_try) 2>&5
29070 ac_status=$?
29071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072 (exit $ac_status); }; }; then
29073 ac_header_compiler=yes
29074else
29075 echo "$as_me: failed program was:" >&5
29076sed 's/^/| /' conftest.$ac_ext >&5
29077
29078ac_header_compiler=no
29079fi
ac1cb8d3 29080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29081echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29082echo "${ECHO_T}$ac_header_compiler" >&6
29083
29084# Is the header present?
29085echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29086echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29087cat >conftest.$ac_ext <<_ACEOF
29088/* confdefs.h. */
29089_ACEOF
29090cat confdefs.h >>conftest.$ac_ext
29091cat >>conftest.$ac_ext <<_ACEOF
29092/* end confdefs.h. */
29093#include <GL/gl.h>
29094_ACEOF
29095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29097 ac_status=$?
29098 grep -v '^ *+' conftest.er1 >conftest.err
29099 rm -f conftest.er1
29100 cat conftest.err >&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); } >/dev/null; then
29103 if test -s conftest.err; then
29104 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29106 else
29107 ac_cpp_err=
29108 fi
29109else
29110 ac_cpp_err=yes
29111fi
29112if test -z "$ac_cpp_err"; then
29113 ac_header_preproc=yes
29114else
29115 echo "$as_me: failed program was:" >&5
29116sed 's/^/| /' conftest.$ac_ext >&5
29117
29118 ac_header_preproc=no
29119fi
29120rm -f conftest.err conftest.$ac_ext
29121echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29122echo "${ECHO_T}$ac_header_preproc" >&6
29123
29124# So? What about this header?
ac1cb8d3
VS
29125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29126 yes:no: )
a848cd7e
SC
29127 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29128echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29129 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29130echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29131 ac_header_preproc=yes
a848cd7e 29132 ;;
ac1cb8d3 29133 no:yes:* )
a848cd7e
SC
29134 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29135echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29136 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29137echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29138 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29139echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29140 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29141echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29142 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29143echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29144 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29145echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29146 (
29147 cat <<\_ASBOX
ac1cb8d3
VS
29148## ----------------------------------------- ##
29149## Report this to wx-dev@lists.wxwidgets.org ##
29150## ----------------------------------------- ##
a848cd7e
SC
29151_ASBOX
29152 ) |
29153 sed "s/^/$as_me: WARNING: /" >&2
29154 ;;
29155esac
29156echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29157echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29158if test "${ac_cv_header_GL_gl_h+set}" = set; then
29159 echo $ECHO_N "(cached) $ECHO_C" >&6
29160else
29161 ac_cv_header_GL_gl_h=$ac_header_preproc
29162fi
29163echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29164echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29165
29166fi
29167if test $ac_cv_header_GL_gl_h = yes; then
29168
29169 found_gl=0
29170
29171 echo "$as_me:$LINENO: checking for -lGL" >&5
29172echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29173
29174ac_find_libraries=
29175for ac_dir in $SEARCH_LIB /usr/lib;
29176 do
29177 for ac_extension in a so sl dylib; do
29178 if test -f "$ac_dir/libGL.$ac_extension"; then
29179 ac_find_libraries=$ac_dir
29180 break 2
29181 fi
29182 done
29183 done
29184
29185 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29186 echo "$as_me:$LINENO: result: yes" >&5
29187echo "${ECHO_T}yes" >&6
29188
a848cd7e
SC
29189
29190 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29191 result=$?
29192 if test $result = 0; then
29193 ac_path_to_link=""
29194 else
29195 ac_path_to_link=" -L$ac_find_libraries"
29196 fi
29197
29198 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29199 LDFLAGS_GL="$ac_path_to_link"
29200 fi
29201
69120ee4
VZ
29202 echo "$as_me:$LINENO: checking for -lGLU" >&5
29203echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29204
29205ac_find_libraries=
29206for ac_dir in $SEARCH_LIB /usr/lib;
29207 do
29208 for ac_extension in a so sl dylib; do
29209 if test -f "$ac_dir/libGLU.$ac_extension"; then
29210 ac_find_libraries=$ac_dir
29211 break 2
29212 fi
29213 done
29214 done
29215
29216 if test "$ac_find_libraries" != "" ; then
29217
29218 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29219 result=$?
29220 if test $result = 0; then
29221 ac_path_to_link=""
29222 else
29223 ac_path_to_link=" -L$ac_find_libraries"
29224 fi
29225
29226 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29227 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29228 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29229 fi
29230
29231 found_gl=1
29232 OPENGL_LIBS="-lGL -lGLU"
29233 echo "$as_me:$LINENO: result: yes" >&5
29234echo "${ECHO_T}yes" >&6
69120ee4
VZ
29235 else
29236 echo "$as_me:$LINENO: result: no" >&5
29237echo "${ECHO_T}no" >&6
a848cd7e 29238 fi
69120ee4
VZ
29239 else
29240 echo "$as_me:$LINENO: result: no" >&5
29241echo "${ECHO_T}no" >&6
a848cd7e
SC
29242 fi
29243
29244 if test "$found_gl" != 1; then
a848cd7e
SC
29245 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29246echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29247
29248ac_find_libraries=
29249for ac_dir in $SEARCH_LIB /usr/lib;
29250 do
29251 for ac_extension in a so sl dylib; do
29252 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29253 ac_find_libraries=$ac_dir
29254 break 2
29255 fi
29256 done
29257 done
29258
29259 if test "$ac_find_libraries" != "" ; then
29260
29261 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29262 result=$?
29263 if test $result = 0; then
29264 ac_path_to_link=""
29265 else
29266 ac_path_to_link=" -L$ac_find_libraries"
29267 fi
29268
29269 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29270 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29271 echo "$as_me:$LINENO: result: yes" >&5
29272echo "${ECHO_T}yes" >&6
29273 else
29274 echo "$as_me:$LINENO: result: no" >&5
29275echo "${ECHO_T}no" >&6
29276 fi
29277 fi
29278
29279fi
29280
29281
29282
29283 if test "x$OPENGL_LIBS" = "x"; then
29284 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29285echo "$as_me: error: OpenGL libraries not available" >&2;}
29286 { (exit 1); exit 1; }; }
29287 fi
29288 fi
29289
29290 if test "$wxUSE_OPENGL" = "yes"; then
29291 USE_OPENGL=1
29292 cat >>confdefs.h <<\_ACEOF
29293#define wxUSE_OPENGL 1
29294_ACEOF
29295
29296 cat >>confdefs.h <<\_ACEOF
29297#define wxUSE_GLCANVAS 1
29298_ACEOF
29299
29300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29301 fi
29302fi
29303
a848cd7e
SC
29304
29305if test -n "$TOOLKIT" ; then
29306 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29307fi
29308
a848cd7e
SC
29309
29310
29311if test "$wxUSE_SHARED" = "yes"; then
29312 case "${host}" in
29313 *-pc-msdosdjgpp )
29314 wxUSE_SHARED=no
29315 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29316echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29317 ;;
29318 esac
29319fi
29320
a848cd7e 29321if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29322
29323
29324 found_versioning=no
29325
29326
29327 if test $found_versioning = no ; then
29328 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29329echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29330if test "${wx_cv_version_script+set}" = set; then
29331 echo $ECHO_N "(cached) $ECHO_C" >&6
29332else
29333
29334 echo "VER_1 { *; };" >conftest.sym
29335 echo "int main() { return 0; }" >conftest.cpp
29336
29337 if { ac_try='
29338 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29339 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29341 (eval $ac_try) 2>&5
29342 ac_status=$?
29343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344 (exit $ac_status); }; } ; then
29345 if test -s conftest.stderr ; then
29346 wx_cv_version_script=no
29347 else
29348 wx_cv_version_script=yes
29349 fi
29350 else
29351 wx_cv_version_script=no
29352 fi
e5d4b470
MW
29353
29354 if test $wx_cv_version_script = yes
29355 then
29356 echo "struct B { virtual ~B() { } }; \
29357 struct D : public B { }; \
29358 void F() { D d; }" > conftest.cpp
29359
29360 if { ac_try='
29361 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29362 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29364 (eval $ac_try) 2>&5
29365 ac_status=$?
29366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 (exit $ac_status); }; } &&
29368 { ac_try='
29369 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29370 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29372 (eval $ac_try) 2>&5
29373 ac_status=$?
29374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375 (exit $ac_status); }; }
29376 then
29377 if { ac_try='
29378 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29379 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381 (eval $ac_try) 2>&5
29382 ac_status=$?
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; }
29385 then
29386 wx_cv_version_script=yes
29387 else
29388 wx_cv_version_script=no
29389 fi
29390 fi
29391 fi
29392
a848cd7e 29393 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29394 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29395
29396fi
29397echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29398echo "${ECHO_T}$wx_cv_version_script" >&6
29399 if test $wx_cv_version_script = yes ; then
29400 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29401 fi
29402 fi
29403
29404
29405 case "${host}" in
29406 *-*-linux* | *-*-gnu* )
29407 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29408 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29409 ;;
29410
29411 *-*-solaris2* )
29412 if test "$GCC" = yes ; then
29413 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29414
29415 saveLdflags="$LDFLAGS"
29416 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29417 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29418echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29419 cat >conftest.$ac_ext <<_ACEOF
29420/* confdefs.h. */
29421_ACEOF
29422cat confdefs.h >>conftest.$ac_ext
29423cat >>conftest.$ac_ext <<_ACEOF
29424/* end confdefs.h. */
29425
29426int
29427main ()
29428{
29429
29430 ;
29431 return 0;
29432}
29433_ACEOF
29434rm -f conftest.$ac_objext conftest$ac_exeext
29435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29436 (eval $ac_link) 2>conftest.er1
a848cd7e 29437 ac_status=$?
ac1cb8d3
VS
29438 grep -v '^ *+' conftest.er1 >conftest.err
29439 rm -f conftest.er1
29440 cat conftest.err >&5
a848cd7e
SC
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); } &&
9dd0f6c2 29443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29445 (eval $ac_try) 2>&5
29446 ac_status=$?
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; } &&
29449 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29451 (eval $ac_try) 2>&5
29452 ac_status=$?
29453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); }; }; then
29455
29456 echo "$as_me:$LINENO: result: yes" >&5
29457echo "${ECHO_T}yes" >&6
29458 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29459 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29460
29461else
29462 echo "$as_me: failed program was:" >&5
29463sed 's/^/| /' conftest.$ac_ext >&5
29464
29465
29466 echo "$as_me:$LINENO: result: no" >&5
29467echo "${ECHO_T}no" >&6
29468 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29469echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29470 LDFLAGS="$saveLdflags -Wl,-R,/"
29471 cat >conftest.$ac_ext <<_ACEOF
29472/* confdefs.h. */
29473_ACEOF
29474cat confdefs.h >>conftest.$ac_ext
29475cat >>conftest.$ac_ext <<_ACEOF
29476/* end confdefs.h. */
29477
29478int
29479main ()
29480{
29481
29482 ;
29483 return 0;
29484}
29485_ACEOF
29486rm -f conftest.$ac_objext conftest$ac_exeext
29487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29488 (eval $ac_link) 2>conftest.er1
a848cd7e 29489 ac_status=$?
ac1cb8d3
VS
29490 grep -v '^ *+' conftest.er1 >conftest.err
29491 rm -f conftest.er1
29492 cat conftest.err >&5
a848cd7e
SC
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); } &&
9dd0f6c2 29495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497 (eval $ac_try) 2>&5
29498 ac_status=$?
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; } &&
29501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29503 (eval $ac_try) 2>&5
29504 ac_status=$?
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }; }; then
29507
ffa0583f 29508 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29509echo "${ECHO_T}yes" >&6
ffa0583f
RL
29510 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29511 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29512
a848cd7e
SC
29513else
29514 echo "$as_me: failed program was:" >&5
29515sed 's/^/| /' conftest.$ac_ext >&5
29516
29517
29518 echo "$as_me:$LINENO: result: no" >&5
29519echo "${ECHO_T}no" >&6
29520
29521fi
ac1cb8d3
VS
29522rm -f conftest.err conftest.$ac_objext \
29523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29524
29525fi
ac1cb8d3
VS
29526rm -f conftest.err conftest.$ac_objext \
29527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29528 LDFLAGS="$saveLdflags"
29529 else
a848cd7e 29530 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29531 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29532 fi
29533 ;;
29534
29535 powerpc-*-darwin* )
29536 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29537 cat <<EOF >change-install-names
29538#!/bin/sh
29539libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29540inst_cmd="install_name_tool "
29541for i in \${libnames} ; do
29542 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29543done
29544\${inst_cmd} \${3}
29545EOF
29546 chmod +x change-install-names
29547 ;;
29548
29549 *-*-cygwin* | *-*-mingw32* )
29550 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29551 ;;
29552
81f90336
MW
29553 *-*-hpux* )
29554 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29555 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29556 ;;
29557
a848cd7e 29558 esac
ceec2216 29559
ffa0583f
RL
29560 if test $wxUSE_RPATH = "no"; then
29561 SAMPLES_RPATH_FLAG=''
29562 SAMPLES_RPATH_POSTLINK=''
29563 WXCONFIG_RPATH=''
29564 fi
29565
29566 SHARED=1
29567
29568else
29569
ceec2216
RL
29570 config_linkage_component="-static"
29571 SHARED=0
ffa0583f 29572
ceec2216 29573fi
a848cd7e 29574
a848cd7e 29575
ceec2216
RL
29576UNICODE=0
29577lib_unicode_suffix=
29578WX_CHARTYPE="ansi"
29579if test "$wxUSE_UNICODE" = "yes"; then
29580 lib_unicode_suffix=u
29581 WX_CHARTYPE="unicode"
29582 UNICODE=1
a848cd7e
SC
29583fi
29584
ceec2216
RL
29585lib_debug_suffix=
29586WX_DEBUGTYPE="release"
29587DEBUG_FLAG=0
29588if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29589 lib_debug_suffix=d
29590 WX_DEBUGTYPE="debug"
29591 DEBUG_FLAG=1
29592fi
a848cd7e 29593
ceec2216
RL
29594WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29595WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29596
ceec2216
RL
29597DEBUG_INFO=0
29598if test "$wxUSE_DEBUG_INFO" = "yes"; then
29599 DEBUG_INFO=1
29600fi
a848cd7e 29601
ceec2216 29602WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29603
ceec2216 29604TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29605
ceec2216 29606TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29607
ceec2216
RL
29608if test "$cross_compiling" = "yes"; then
29609 HOST_SUFFIX="-$host_alias"
29610 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29611 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29612fi
29613
dd21ced8 29614WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29615WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29616
29617
29618
1d1af5ea
DE
29619if test "$wxUSE_COCOA" = 1; then
29620
29621
29622 ac_ext=c
29623ac_cpp='$CPP $CPPFLAGS'
29624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29626ac_compiler_gnu=$ac_cv_c_compiler_gnu
29627
29628ac_ext=m
29629
29630 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29631echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29632 cat >conftest.$ac_ext <<_ACEOF
29633/* confdefs.h. */
29634_ACEOF
29635cat confdefs.h >>conftest.$ac_ext
29636cat >>conftest.$ac_ext <<_ACEOF
29637/* end confdefs.h. */
29638#include <AppKit/NSEvent.h>
29639#include <CoreFoundation/CoreFoundation.h>
29640
29641int
29642main ()
29643{
29644
29645 ;
29646 return 0;
29647}
29648_ACEOF
29649rm -f conftest.$ac_objext
29650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29651 (eval $ac_compile) 2>conftest.er1
29652 ac_status=$?
29653 grep -v '^ *+' conftest.er1 >conftest.err
29654 rm -f conftest.er1
29655 cat conftest.err >&5
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); } &&
9dd0f6c2 29658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29660 (eval $ac_try) 2>&5
29661 ac_status=$?
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); }; } &&
29664 { ac_try='test -s conftest.$ac_objext'
29665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29666 (eval $ac_try) 2>&5
29667 ac_status=$?
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); }; }; then
29670 echo "$as_me:$LINENO: result: no" >&5
29671echo "${ECHO_T}no" >&6
29672else
29673 echo "$as_me: failed program was:" >&5
29674sed 's/^/| /' conftest.$ac_ext >&5
29675
29676echo "$as_me:$LINENO: result: yes" >&5
29677echo "${ECHO_T}yes" >&6
29678 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29679echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29680 cat >conftest.$ac_ext <<_ACEOF
29681/* confdefs.h. */
29682_ACEOF
29683cat confdefs.h >>conftest.$ac_ext
29684cat >>conftest.$ac_ext <<_ACEOF
29685/* end confdefs.h. */
29686#define __Point__ 1
29687#include <AppKit/NSEvent.h>
29688#include <CoreFoundation/CoreFoundation.h>
29689
29690int
29691main ()
29692{
29693
29694 ;
29695 return 0;
29696}
29697_ACEOF
29698rm -f conftest.$ac_objext
29699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29700 (eval $ac_compile) 2>conftest.er1
29701 ac_status=$?
29702 grep -v '^ *+' conftest.er1 >conftest.err
29703 rm -f conftest.er1
29704 cat conftest.err >&5
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); } &&
9dd0f6c2 29707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
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); }; } &&
29713 { ac_try='test -s conftest.$ac_objext'
29714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29715 (eval $ac_try) 2>&5
29716 ac_status=$?
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); }; }; then
29719 echo "$as_me:$LINENO: result: yes" >&5
29720echo "${ECHO_T}yes" >&6
29721 cat >>confdefs.h <<\_ACEOF
29722#define __Point__ 1
29723_ACEOF
29724
29725
29726else
29727 echo "$as_me: failed program was:" >&5
29728sed 's/^/| /' conftest.$ac_ext >&5
29729
29730{ { echo "$as_me:$LINENO: error: no
29731See \`config.log' for more details." >&5
29732echo "$as_me: error: no
29733See \`config.log' for more details." >&2;}
29734 { (exit 1); exit 1; }; }
29735
29736fi
29737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29738
29739fi
29740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29741 ac_ext=c
29742ac_cpp='$CPP $CPPFLAGS'
29743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29745ac_compiler_gnu=$ac_cv_c_compiler_gnu
29746
29747fi
29748
a848cd7e 29749if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29750 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29751 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29752
a848cd7e 29753 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29754
29755 # Extract the first word of "Rez", so it can be a program name with args.
29756set dummy Rez; ac_word=$2
29757echo "$as_me:$LINENO: checking for $ac_word" >&5
29758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29759if test "${ac_cv_prog_RESCOMP+set}" = set; then
29760 echo $ECHO_N "(cached) $ECHO_C" >&6
29761else
29762 if test -n "$RESCOMP"; then
29763 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29764else
29765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29766for as_dir in $PATH
29767do
29768 IFS=$as_save_IFS
29769 test -z "$as_dir" && as_dir=.
29770 for ac_exec_ext in '' $ac_executable_extensions; do
29771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29772 ac_cv_prog_RESCOMP="Rez"
29773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29774 break 2
29775 fi
29776done
29777done
29778
29779 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29780fi
29781fi
29782RESCOMP=$ac_cv_prog_RESCOMP
29783if test -n "$RESCOMP"; then
29784 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29785echo "${ECHO_T}$RESCOMP" >&6
29786else
29787 echo "$as_me:$LINENO: result: no" >&5
29788echo "${ECHO_T}no" >&6
29789fi
29790
29791 # Extract the first word of "DeRez", so it can be a program name with args.
29792set dummy DeRez; ac_word=$2
29793echo "$as_me:$LINENO: checking for $ac_word" >&5
29794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29795if test "${ac_cv_prog_DEREZ+set}" = set; then
29796 echo $ECHO_N "(cached) $ECHO_C" >&6
29797else
29798 if test -n "$DEREZ"; then
29799 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29800else
29801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29802for as_dir in $PATH
29803do
29804 IFS=$as_save_IFS
29805 test -z "$as_dir" && as_dir=.
29806 for ac_exec_ext in '' $ac_executable_extensions; do
29807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29808 ac_cv_prog_DEREZ="DeRez"
29809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29810 break 2
29811 fi
29812done
29813done
29814
29815 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29816fi
29817fi
29818DEREZ=$ac_cv_prog_DEREZ
29819if test -n "$DEREZ"; then
29820 echo "$as_me:$LINENO: result: $DEREZ" >&5
29821echo "${ECHO_T}$DEREZ" >&6
29822else
29823 echo "$as_me:$LINENO: result: no" >&5
29824echo "${ECHO_T}no" >&6
29825fi
29826
29827 # Extract the first word of "SetFile", so it can be a program name with args.
29828set dummy SetFile; ac_word=$2
29829echo "$as_me:$LINENO: checking for $ac_word" >&5
29830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29831if test "${ac_cv_prog_SETFILE+set}" = set; then
29832 echo $ECHO_N "(cached) $ECHO_C" >&6
29833else
29834 if test -n "$SETFILE"; then
29835 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29836else
29837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29838for as_dir in $PATH
29839do
29840 IFS=$as_save_IFS
29841 test -z "$as_dir" && as_dir=.
29842 for ac_exec_ext in '' $ac_executable_extensions; do
29843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29844 ac_cv_prog_SETFILE="SetFile"
29845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29846 break 2
29847 fi
29848done
29849done
29850
29851 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29852fi
29853fi
29854SETFILE=$ac_cv_prog_SETFILE
29855if test -n "$SETFILE"; then
29856 echo "$as_me:$LINENO: result: $SETFILE" >&5
29857echo "${ECHO_T}$SETFILE" >&6
29858else
29859 echo "$as_me:$LINENO: result: no" >&5
29860echo "${ECHO_T}no" >&6
29861fi
29862
29863
29864 MACSETFILE="\$(SETFILE)"
29865
29866 if test "$wxUSE_MAC" = 1; then
1a79f136 29867 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 29868
1a79f136 29869 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
29870 else
29871 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29872 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29873 fi
29874else
ffa0583f
RL
29875 MACSETFILE="@true"
29876 MACRESWXCONFIG="@true"
a848cd7e
SC
29877
29878 if test "$wxUSE_PM" = 1; then
29879 MACRESCOMP="emxbind -ep"
29880 else
ffa0583f 29881 MACRESCOMP="@true"
a848cd7e
SC
29882 fi
29883fi
29884
29885
29886
29887echo "$as_me:$LINENO: checking for mode_t" >&5
29888echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29889if test "${ac_cv_type_mode_t+set}" = set; then
29890 echo $ECHO_N "(cached) $ECHO_C" >&6
29891else
29892 cat >conftest.$ac_ext <<_ACEOF
29893/* confdefs.h. */
29894_ACEOF
29895cat confdefs.h >>conftest.$ac_ext
29896cat >>conftest.$ac_ext <<_ACEOF
29897/* end confdefs.h. */
29898$ac_includes_default
29899int
29900main ()
29901{
29902if ((mode_t *) 0)
29903 return 0;
29904if (sizeof (mode_t))
29905 return 0;
29906 ;
29907 return 0;
29908}
29909_ACEOF
29910rm -f conftest.$ac_objext
29911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29912 (eval $ac_compile) 2>conftest.er1
a848cd7e 29913 ac_status=$?
ac1cb8d3
VS
29914 grep -v '^ *+' conftest.er1 >conftest.err
29915 rm -f conftest.er1
29916 cat conftest.err >&5
a848cd7e
SC
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); } &&
9dd0f6c2 29919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29921 (eval $ac_try) 2>&5
29922 ac_status=$?
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924 (exit $ac_status); }; } &&
29925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29927 (eval $ac_try) 2>&5
29928 ac_status=$?
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); }; }; then
29931 ac_cv_type_mode_t=yes
29932else
29933 echo "$as_me: failed program was:" >&5
29934sed 's/^/| /' conftest.$ac_ext >&5
29935
29936ac_cv_type_mode_t=no
29937fi
ac1cb8d3 29938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29939fi
29940echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29941echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29942if test $ac_cv_type_mode_t = yes; then
29943 :
29944else
29945
29946cat >>confdefs.h <<_ACEOF
29947#define mode_t int
29948_ACEOF
29949
29950fi
29951
29952echo "$as_me:$LINENO: checking for off_t" >&5
29953echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29954if test "${ac_cv_type_off_t+set}" = set; then
29955 echo $ECHO_N "(cached) $ECHO_C" >&6
29956else
29957 cat >conftest.$ac_ext <<_ACEOF
29958/* confdefs.h. */
29959_ACEOF
29960cat confdefs.h >>conftest.$ac_ext
29961cat >>conftest.$ac_ext <<_ACEOF
29962/* end confdefs.h. */
29963$ac_includes_default
29964int
29965main ()
29966{
29967if ((off_t *) 0)
29968 return 0;
29969if (sizeof (off_t))
29970 return 0;
29971 ;
29972 return 0;
29973}
29974_ACEOF
29975rm -f conftest.$ac_objext
29976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29977 (eval $ac_compile) 2>conftest.er1
a848cd7e 29978 ac_status=$?
ac1cb8d3
VS
29979 grep -v '^ *+' conftest.er1 >conftest.err
29980 rm -f conftest.er1
29981 cat conftest.err >&5
a848cd7e
SC
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); } &&
9dd0f6c2 29984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29986 (eval $ac_try) 2>&5
29987 ac_status=$?
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); }; } &&
29990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992 (eval $ac_try) 2>&5
29993 ac_status=$?
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); }; }; then
29996 ac_cv_type_off_t=yes
29997else
29998 echo "$as_me: failed program was:" >&5
29999sed 's/^/| /' conftest.$ac_ext >&5
30000
30001ac_cv_type_off_t=no
30002fi
ac1cb8d3 30003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30004fi
30005echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30006echo "${ECHO_T}$ac_cv_type_off_t" >&6
30007if test $ac_cv_type_off_t = yes; then
30008 :
30009else
30010
30011cat >>confdefs.h <<_ACEOF
30012#define off_t long
30013_ACEOF
30014
30015fi
30016
30017echo "$as_me:$LINENO: checking for pid_t" >&5
30018echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30019if test "${ac_cv_type_pid_t+set}" = set; then
30020 echo $ECHO_N "(cached) $ECHO_C" >&6
30021else
30022 cat >conftest.$ac_ext <<_ACEOF
30023/* confdefs.h. */
30024_ACEOF
30025cat confdefs.h >>conftest.$ac_ext
30026cat >>conftest.$ac_ext <<_ACEOF
30027/* end confdefs.h. */
30028$ac_includes_default
30029int
30030main ()
30031{
30032if ((pid_t *) 0)
30033 return 0;
30034if (sizeof (pid_t))
30035 return 0;
30036 ;
30037 return 0;
30038}
30039_ACEOF
30040rm -f conftest.$ac_objext
30041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30042 (eval $ac_compile) 2>conftest.er1
a848cd7e 30043 ac_status=$?
ac1cb8d3
VS
30044 grep -v '^ *+' conftest.er1 >conftest.err
30045 rm -f conftest.er1
30046 cat conftest.err >&5
a848cd7e
SC
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } &&
9dd0f6c2 30049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30051 (eval $ac_try) 2>&5
30052 ac_status=$?
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; } &&
30055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057 (eval $ac_try) 2>&5
30058 ac_status=$?
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; }; then
30061 ac_cv_type_pid_t=yes
30062else
30063 echo "$as_me: failed program was:" >&5
30064sed 's/^/| /' conftest.$ac_ext >&5
30065
30066ac_cv_type_pid_t=no
30067fi
ac1cb8d3 30068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30069fi
30070echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30071echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30072if test $ac_cv_type_pid_t = yes; then
30073 :
30074else
30075
30076cat >>confdefs.h <<_ACEOF
30077#define pid_t int
30078_ACEOF
30079
30080fi
30081
30082echo "$as_me:$LINENO: checking for size_t" >&5
30083echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30084if test "${ac_cv_type_size_t+set}" = set; then
30085 echo $ECHO_N "(cached) $ECHO_C" >&6
30086else
30087 cat >conftest.$ac_ext <<_ACEOF
30088/* confdefs.h. */
30089_ACEOF
30090cat confdefs.h >>conftest.$ac_ext
30091cat >>conftest.$ac_ext <<_ACEOF
30092/* end confdefs.h. */
30093$ac_includes_default
30094int
30095main ()
30096{
30097if ((size_t *) 0)
30098 return 0;
30099if (sizeof (size_t))
30100 return 0;
30101 ;
30102 return 0;
30103}
30104_ACEOF
30105rm -f conftest.$ac_objext
30106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30107 (eval $ac_compile) 2>conftest.er1
a848cd7e 30108 ac_status=$?
ac1cb8d3
VS
30109 grep -v '^ *+' conftest.er1 >conftest.err
30110 rm -f conftest.er1
30111 cat conftest.err >&5
a848cd7e
SC
30112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113 (exit $ac_status); } &&
9dd0f6c2 30114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116 (eval $ac_try) 2>&5
30117 ac_status=$?
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; } &&
30120 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30122 (eval $ac_try) 2>&5
30123 ac_status=$?
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); }; }; then
30126 ac_cv_type_size_t=yes
30127else
30128 echo "$as_me: failed program was:" >&5
30129sed 's/^/| /' conftest.$ac_ext >&5
30130
30131ac_cv_type_size_t=no
30132fi
ac1cb8d3 30133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30134fi
30135echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30136echo "${ECHO_T}$ac_cv_type_size_t" >&6
30137if test $ac_cv_type_size_t = yes; then
30138 :
30139else
30140
30141cat >>confdefs.h <<_ACEOF
30142#define size_t unsigned
30143_ACEOF
30144
30145fi
30146
30147echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30148echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30149if test "${ac_cv_type_uid_t+set}" = set; then
30150 echo $ECHO_N "(cached) $ECHO_C" >&6
30151else
30152 cat >conftest.$ac_ext <<_ACEOF
30153/* confdefs.h. */
30154_ACEOF
30155cat confdefs.h >>conftest.$ac_ext
30156cat >>conftest.$ac_ext <<_ACEOF
30157/* end confdefs.h. */
30158#include <sys/types.h>
30159
30160_ACEOF
30161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30162 $EGREP "uid_t" >/dev/null 2>&1; then
30163 ac_cv_type_uid_t=yes
30164else
30165 ac_cv_type_uid_t=no
30166fi
30167rm -f conftest*
30168
30169fi
30170echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30171echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30172if test $ac_cv_type_uid_t = no; then
30173
30174cat >>confdefs.h <<\_ACEOF
30175#define uid_t int
30176_ACEOF
30177
30178
30179cat >>confdefs.h <<\_ACEOF
30180#define gid_t int
30181_ACEOF
30182
30183fi
30184
30185
d51253e8
RL
30186echo "$as_me:$LINENO: checking for ssize_t" >&5
30187echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30188if test "${ac_cv_type_ssize_t+set}" = set; then
30189 echo $ECHO_N "(cached) $ECHO_C" >&6
30190else
30191 cat >conftest.$ac_ext <<_ACEOF
30192/* confdefs.h. */
30193_ACEOF
30194cat confdefs.h >>conftest.$ac_ext
30195cat >>conftest.$ac_ext <<_ACEOF
30196/* end confdefs.h. */
30197$ac_includes_default
30198int
30199main ()
30200{
30201if ((ssize_t *) 0)
30202 return 0;
30203if (sizeof (ssize_t))
30204 return 0;
30205 ;
30206 return 0;
30207}
30208_ACEOF
30209rm -f conftest.$ac_objext
30210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30211 (eval $ac_compile) 2>conftest.er1
30212 ac_status=$?
30213 grep -v '^ *+' conftest.er1 >conftest.err
30214 rm -f conftest.er1
30215 cat conftest.err >&5
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); } &&
9dd0f6c2 30218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30220 (eval $ac_try) 2>&5
30221 ac_status=$?
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223 (exit $ac_status); }; } &&
30224 { ac_try='test -s conftest.$ac_objext'
30225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30226 (eval $ac_try) 2>&5
30227 ac_status=$?
30228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229 (exit $ac_status); }; }; then
30230 ac_cv_type_ssize_t=yes
30231else
30232 echo "$as_me: failed program was:" >&5
30233sed 's/^/| /' conftest.$ac_ext >&5
30234
30235ac_cv_type_ssize_t=no
30236fi
30237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30238fi
30239echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30240echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30241if test $ac_cv_type_ssize_t = yes; then
30242
30243cat >>confdefs.h <<_ACEOF
30244#define HAVE_SSIZE_T 1
30245_ACEOF
30246
30247
30248fi
30249
30250
a848cd7e
SC
30251
30252
30253ac_ext=cc
30254ac_cpp='$CXXCPP $CPPFLAGS'
30255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30258
30259echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30260echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30261if test "${wx_cv_size_t_is_uint+set}" = set; then
30262 echo $ECHO_N "(cached) $ECHO_C" >&6
30263else
30264
30265 cat >conftest.$ac_ext <<_ACEOF
30266/* confdefs.h. */
30267_ACEOF
30268cat confdefs.h >>conftest.$ac_ext
30269cat >>conftest.$ac_ext <<_ACEOF
30270/* end confdefs.h. */
30271#include <stddef.h>
30272int
30273main ()
30274{
30275
30276 return 0; }
30277
30278 struct Foo { void foo(size_t); void foo(unsigned int); };
30279
30280 int bar() {
30281
30282 ;
30283 return 0;
30284}
30285_ACEOF
30286rm -f conftest.$ac_objext
30287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30288 (eval $ac_compile) 2>conftest.er1
a848cd7e 30289 ac_status=$?
ac1cb8d3
VS
30290 grep -v '^ *+' conftest.er1 >conftest.err
30291 rm -f conftest.er1
30292 cat conftest.err >&5
a848cd7e
SC
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); } &&
9dd0f6c2 30295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30297 (eval $ac_try) 2>&5
30298 ac_status=$?
30299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30300 (exit $ac_status); }; } &&
30301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30303 (eval $ac_try) 2>&5
30304 ac_status=$?
30305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306 (exit $ac_status); }; }; then
30307 wx_cv_size_t_is_uint=no
30308else
30309 echo "$as_me: failed program was:" >&5
30310sed 's/^/| /' conftest.$ac_ext >&5
30311
30312wx_cv_size_t_is_uint=yes
30313
30314fi
ac1cb8d3 30315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30316
30317
30318fi
30319echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30320echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30321
30322if test "$wx_cv_size_t_is_uint" = "yes"; then
30323 cat >>confdefs.h <<\_ACEOF
30324#define wxSIZE_T_IS_UINT 1
30325_ACEOF
30326
30327else
30328 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30329echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30330if test "${wx_cv_size_t_is_ulong+set}" = set; then
30331 echo $ECHO_N "(cached) $ECHO_C" >&6
30332else
30333 cat >conftest.$ac_ext <<_ACEOF
30334/* confdefs.h. */
30335_ACEOF
30336cat confdefs.h >>conftest.$ac_ext
30337cat >>conftest.$ac_ext <<_ACEOF
30338/* end confdefs.h. */
30339#include <stddef.h>
30340int
30341main ()
30342{
30343
30344 return 0; }
30345
30346 struct Foo { void foo(size_t); void foo(unsigned long); };
30347
30348 int bar() {
30349
30350 ;
30351 return 0;
30352}
30353_ACEOF
30354rm -f conftest.$ac_objext
30355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30356 (eval $ac_compile) 2>conftest.er1
a848cd7e 30357 ac_status=$?
ac1cb8d3
VS
30358 grep -v '^ *+' conftest.er1 >conftest.err
30359 rm -f conftest.er1
30360 cat conftest.err >&5
a848cd7e
SC
30361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30362 (exit $ac_status); } &&
9dd0f6c2 30363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30365 (eval $ac_try) 2>&5
30366 ac_status=$?
30367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368 (exit $ac_status); }; } &&
30369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30371 (eval $ac_try) 2>&5
30372 ac_status=$?
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); }; }; then
30375 wx_cv_size_t_is_ulong=no
30376else
30377 echo "$as_me: failed program was:" >&5
30378sed 's/^/| /' conftest.$ac_ext >&5
30379
30380wx_cv_size_t_is_ulong=yes
30381
30382fi
ac1cb8d3 30383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30384
30385fi
30386echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30387echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30388
30389 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30390 cat >>confdefs.h <<\_ACEOF
30391#define wxSIZE_T_IS_ULONG 1
30392_ACEOF
30393
30394 fi
30395fi
30396
30397ac_ext=c
30398ac_cpp='$CPP $CPPFLAGS'
30399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30401ac_compiler_gnu=$ac_cv_c_compiler_gnu
30402
30403
30404
30405echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30406echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30407if test "${wx_cv_struct_pw_gecos+set}" = set; then
30408 echo $ECHO_N "(cached) $ECHO_C" >&6
30409else
30410
30411 cat >conftest.$ac_ext <<_ACEOF
30412/* confdefs.h. */
30413_ACEOF
30414cat confdefs.h >>conftest.$ac_ext
30415cat >>conftest.$ac_ext <<_ACEOF
30416/* end confdefs.h. */
30417#include <pwd.h>
30418int
30419main ()
30420{
30421
30422 char *p;
30423 struct passwd *pw;
30424 p = pw->pw_gecos;
30425
30426 ;
30427 return 0;
30428}
30429_ACEOF
30430rm -f conftest.$ac_objext
30431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30432 (eval $ac_compile) 2>conftest.er1
a848cd7e 30433 ac_status=$?
ac1cb8d3
VS
30434 grep -v '^ *+' conftest.er1 >conftest.err
30435 rm -f conftest.er1
30436 cat conftest.err >&5
a848cd7e
SC
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); } &&
9dd0f6c2 30439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30441 (eval $ac_try) 2>&5
30442 ac_status=$?
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); }; } &&
30445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30447 (eval $ac_try) 2>&5
30448 ac_status=$?
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); }; }; then
30451
30452 wx_cv_struct_pw_gecos=yes
30453
30454else
30455 echo "$as_me: failed program was:" >&5
30456sed 's/^/| /' conftest.$ac_ext >&5
30457
30458
30459 wx_cv_struct_pw_gecos=no
30460
30461
30462fi
ac1cb8d3 30463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30464
30465
30466fi
30467echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30468echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30469
30470if test "$wx_cv_struct_pw_gecos" = "yes"; then
30471 cat >>confdefs.h <<\_ACEOF
30472#define HAVE_PW_GECOS 1
30473_ACEOF
30474
30475fi
30476
30477
47a7e797 30478if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
30479 cat >>confdefs.h <<\_ACEOF
30480#define wxUSE_WCHAR_T 1
30481_ACEOF
30482
30483
30484 WCSLEN_FOUND=0
30485 WCHAR_LINK=
30486
30487for ac_func in wcslen
30488do
30489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30490echo "$as_me:$LINENO: checking for $ac_func" >&5
30491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30492if eval "test \"\${$as_ac_var+set}\" = set"; then
30493 echo $ECHO_N "(cached) $ECHO_C" >&6
30494else
30495 cat >conftest.$ac_ext <<_ACEOF
30496/* confdefs.h. */
30497_ACEOF
30498cat confdefs.h >>conftest.$ac_ext
30499cat >>conftest.$ac_ext <<_ACEOF
30500/* end confdefs.h. */
ac1cb8d3
VS
30501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30503#define $ac_func innocuous_$ac_func
30504
a848cd7e
SC
30505/* System header to define __stub macros and hopefully few prototypes,
30506 which can conflict with char $ac_func (); below.
30507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30508 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30509
a848cd7e
SC
30510#ifdef __STDC__
30511# include <limits.h>
30512#else
30513# include <assert.h>
30514#endif
ac1cb8d3
VS
30515
30516#undef $ac_func
30517
a848cd7e
SC
30518/* Override any gcc2 internal prototype to avoid an error. */
30519#ifdef __cplusplus
30520extern "C"
30521{
30522#endif
30523/* We use char because int might match the return type of a gcc2
30524 builtin and then its argument prototype would still apply. */
30525char $ac_func ();
30526/* The GNU C library defines this for functions which it implements
30527 to always fail with ENOSYS. Some functions are actually named
30528 something starting with __ and the normal name is an alias. */
30529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30530choke me
30531#else
30532char (*f) () = $ac_func;
30533#endif
30534#ifdef __cplusplus
30535}
30536#endif
30537
30538int
30539main ()
30540{
30541return f != $ac_func;
30542 ;
30543 return 0;
30544}
30545_ACEOF
30546rm -f conftest.$ac_objext conftest$ac_exeext
30547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30548 (eval $ac_link) 2>conftest.er1
a848cd7e 30549 ac_status=$?
ac1cb8d3
VS
30550 grep -v '^ *+' conftest.er1 >conftest.err
30551 rm -f conftest.er1
30552 cat conftest.err >&5
a848cd7e
SC
30553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554 (exit $ac_status); } &&
9dd0f6c2 30555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30557 (eval $ac_try) 2>&5
30558 ac_status=$?
30559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560 (exit $ac_status); }; } &&
30561 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30563 (eval $ac_try) 2>&5
30564 ac_status=$?
30565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566 (exit $ac_status); }; }; then
30567 eval "$as_ac_var=yes"
30568else
30569 echo "$as_me: failed program was:" >&5
30570sed 's/^/| /' conftest.$ac_ext >&5
30571
30572eval "$as_ac_var=no"
30573fi
ac1cb8d3
VS
30574rm -f conftest.err conftest.$ac_objext \
30575 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30576fi
30577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30578echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30579if test `eval echo '${'$as_ac_var'}'` = yes; then
30580 cat >>confdefs.h <<_ACEOF
30581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30582_ACEOF
30583 WCSLEN_FOUND=1
30584fi
30585done
30586
30587
30588 if test "$WCSLEN_FOUND" = 0; then
30589 if test "$TOOLKIT" = "MSW"; then
30590 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30591echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30592if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30594else
30595 ac_check_lib_save_LIBS=$LIBS
30596LIBS="-lmsvcrt $LIBS"
30597cat >conftest.$ac_ext <<_ACEOF
30598/* confdefs.h. */
30599_ACEOF
30600cat confdefs.h >>conftest.$ac_ext
30601cat >>conftest.$ac_ext <<_ACEOF
30602/* end confdefs.h. */
30603
30604/* Override any gcc2 internal prototype to avoid an error. */
30605#ifdef __cplusplus
30606extern "C"
30607#endif
30608/* We use char because int might match the return type of a gcc2
30609 builtin and then its argument prototype would still apply. */
30610char wcslen ();
30611int
30612main ()
30613{
30614wcslen ();
30615 ;
30616 return 0;
30617}
30618_ACEOF
30619rm -f conftest.$ac_objext conftest$ac_exeext
30620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30621 (eval $ac_link) 2>conftest.er1
a848cd7e 30622 ac_status=$?
ac1cb8d3
VS
30623 grep -v '^ *+' conftest.er1 >conftest.err
30624 rm -f conftest.er1
30625 cat conftest.err >&5
a848cd7e
SC
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); } &&
9dd0f6c2 30628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30630 (eval $ac_try) 2>&5
30631 ac_status=$?
30632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633 (exit $ac_status); }; } &&
30634 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30636 (eval $ac_try) 2>&5
30637 ac_status=$?
30638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639 (exit $ac_status); }; }; then
30640 ac_cv_lib_msvcrt_wcslen=yes
30641else
30642 echo "$as_me: failed program was:" >&5
30643sed 's/^/| /' conftest.$ac_ext >&5
30644
30645ac_cv_lib_msvcrt_wcslen=no
30646fi
ac1cb8d3
VS
30647rm -f conftest.err conftest.$ac_objext \
30648 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30649LIBS=$ac_check_lib_save_LIBS
30650fi
30651echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30652echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30653if test $ac_cv_lib_msvcrt_wcslen = yes; then
30654 WCHAR_OK=1
30655fi
30656
30657 else
30658 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30659echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30660if test "${ac_cv_lib_w_wcslen+set}" = set; then
30661 echo $ECHO_N "(cached) $ECHO_C" >&6
30662else
30663 ac_check_lib_save_LIBS=$LIBS
30664LIBS="-lw $LIBS"
30665cat >conftest.$ac_ext <<_ACEOF
30666/* confdefs.h. */
30667_ACEOF
30668cat confdefs.h >>conftest.$ac_ext
30669cat >>conftest.$ac_ext <<_ACEOF
30670/* end confdefs.h. */
30671
30672/* Override any gcc2 internal prototype to avoid an error. */
30673#ifdef __cplusplus
30674extern "C"
30675#endif
30676/* We use char because int might match the return type of a gcc2
30677 builtin and then its argument prototype would still apply. */
30678char wcslen ();
30679int
30680main ()
30681{
30682wcslen ();
30683 ;
30684 return 0;
30685}
30686_ACEOF
30687rm -f conftest.$ac_objext conftest$ac_exeext
30688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30689 (eval $ac_link) 2>conftest.er1
a848cd7e 30690 ac_status=$?
ac1cb8d3
VS
30691 grep -v '^ *+' conftest.er1 >conftest.err
30692 rm -f conftest.er1
30693 cat conftest.err >&5
a848cd7e
SC
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695 (exit $ac_status); } &&
9dd0f6c2 30696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30698 (eval $ac_try) 2>&5
30699 ac_status=$?
30700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701 (exit $ac_status); }; } &&
30702 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30704 (eval $ac_try) 2>&5
30705 ac_status=$?
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); }; }; then
30708 ac_cv_lib_w_wcslen=yes
30709else
30710 echo "$as_me: failed program was:" >&5
30711sed 's/^/| /' conftest.$ac_ext >&5
30712
30713ac_cv_lib_w_wcslen=no
30714fi
ac1cb8d3
VS
30715rm -f conftest.err conftest.$ac_objext \
30716 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30717LIBS=$ac_check_lib_save_LIBS
30718fi
30719echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30720echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30721if test $ac_cv_lib_w_wcslen = yes; then
30722
30723 WCHAR_LINK=" -lw"
30724 WCSLEN_FOUND=1
30725
30726fi
30727
30728 fi
30729 fi
30730
30731 if test "$WCSLEN_FOUND" = 1; then
30732 cat >>confdefs.h <<\_ACEOF
30733#define HAVE_WCSLEN 1
30734_ACEOF
30735
30736 fi
30737
81f90336 30738 if test "$USE_HPUX" = 1; then
473276a9
VS
30739 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30740 fi
30741
a848cd7e
SC
30742
30743for ac_func in wcsrtombs
30744do
30745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30746echo "$as_me:$LINENO: checking for $ac_func" >&5
30747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30748if eval "test \"\${$as_ac_var+set}\" = set"; then
30749 echo $ECHO_N "(cached) $ECHO_C" >&6
30750else
30751 cat >conftest.$ac_ext <<_ACEOF
30752/* confdefs.h. */
30753_ACEOF
30754cat confdefs.h >>conftest.$ac_ext
30755cat >>conftest.$ac_ext <<_ACEOF
30756/* end confdefs.h. */
ac1cb8d3
VS
30757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30759#define $ac_func innocuous_$ac_func
30760
a848cd7e
SC
30761/* System header to define __stub macros and hopefully few prototypes,
30762 which can conflict with char $ac_func (); below.
30763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30764 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30765
a848cd7e
SC
30766#ifdef __STDC__
30767# include <limits.h>
30768#else
30769# include <assert.h>
30770#endif
ac1cb8d3
VS
30771
30772#undef $ac_func
30773
a848cd7e
SC
30774/* Override any gcc2 internal prototype to avoid an error. */
30775#ifdef __cplusplus
30776extern "C"
30777{
30778#endif
30779/* We use char because int might match the return type of a gcc2
30780 builtin and then its argument prototype would still apply. */
30781char $ac_func ();
30782/* The GNU C library defines this for functions which it implements
30783 to always fail with ENOSYS. Some functions are actually named
30784 something starting with __ and the normal name is an alias. */
30785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30786choke me
30787#else
30788char (*f) () = $ac_func;
30789#endif
30790#ifdef __cplusplus
30791}
30792#endif
30793
30794int
30795main ()
30796{
30797return f != $ac_func;
30798 ;
30799 return 0;
30800}
30801_ACEOF
30802rm -f conftest.$ac_objext conftest$ac_exeext
30803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30804 (eval $ac_link) 2>conftest.er1
a848cd7e 30805 ac_status=$?
ac1cb8d3
VS
30806 grep -v '^ *+' conftest.er1 >conftest.err
30807 rm -f conftest.er1
30808 cat conftest.err >&5
a848cd7e
SC
30809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810 (exit $ac_status); } &&
9dd0f6c2 30811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30813 (eval $ac_try) 2>&5
30814 ac_status=$?
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); }; } &&
30817 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30819 (eval $ac_try) 2>&5
30820 ac_status=$?
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); }; }; then
30823 eval "$as_ac_var=yes"
30824else
30825 echo "$as_me: failed program was:" >&5
30826sed 's/^/| /' conftest.$ac_ext >&5
30827
30828eval "$as_ac_var=no"
30829fi
ac1cb8d3
VS
30830rm -f conftest.err conftest.$ac_objext \
30831 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30832fi
30833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30834echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30835if test `eval echo '${'$as_ac_var'}'` = yes; then
30836 cat >>confdefs.h <<_ACEOF
30837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30838_ACEOF
30839
30840fi
30841done
30842
30843else
30844 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30845echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30846fi
30847
30848
30849
30850ac_ext=cc
30851ac_cpp='$CXXCPP $CPPFLAGS'
30852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30855
30856
30857
30858for ac_func in vsnprintf
30859do
30860as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30861echo "$as_me:$LINENO: checking for $ac_func" >&5
30862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30863if eval "test \"\${$as_ac_var+set}\" = set"; then
30864 echo $ECHO_N "(cached) $ECHO_C" >&6
30865else
30866 cat >conftest.$ac_ext <<_ACEOF
30867/* confdefs.h. */
30868_ACEOF
30869cat confdefs.h >>conftest.$ac_ext
30870cat >>conftest.$ac_ext <<_ACEOF
30871/* end confdefs.h. */
ac1cb8d3
VS
30872/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30874#define $ac_func innocuous_$ac_func
30875
a848cd7e
SC
30876/* System header to define __stub macros and hopefully few prototypes,
30877 which can conflict with char $ac_func (); below.
30878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30879 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30880
a848cd7e
SC
30881#ifdef __STDC__
30882# include <limits.h>
30883#else
30884# include <assert.h>
30885#endif
ac1cb8d3
VS
30886
30887#undef $ac_func
30888
a848cd7e
SC
30889/* Override any gcc2 internal prototype to avoid an error. */
30890#ifdef __cplusplus
30891extern "C"
30892{
30893#endif
30894/* We use char because int might match the return type of a gcc2
30895 builtin and then its argument prototype would still apply. */
30896char $ac_func ();
30897/* The GNU C library defines this for functions which it implements
30898 to always fail with ENOSYS. Some functions are actually named
30899 something starting with __ and the normal name is an alias. */
30900#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30901choke me
30902#else
30903char (*f) () = $ac_func;
30904#endif
30905#ifdef __cplusplus
30906}
30907#endif
30908
30909int
30910main ()
30911{
30912return f != $ac_func;
30913 ;
30914 return 0;
30915}
30916_ACEOF
30917rm -f conftest.$ac_objext conftest$ac_exeext
30918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30919 (eval $ac_link) 2>conftest.er1
a848cd7e 30920 ac_status=$?
ac1cb8d3
VS
30921 grep -v '^ *+' conftest.er1 >conftest.err
30922 rm -f conftest.er1
30923 cat conftest.err >&5
a848cd7e
SC
30924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30925 (exit $ac_status); } &&
9dd0f6c2 30926 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30928 (eval $ac_try) 2>&5
30929 ac_status=$?
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); }; } &&
30932 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934 (eval $ac_try) 2>&5
30935 ac_status=$?
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); }; }; then
30938 eval "$as_ac_var=yes"
30939else
30940 echo "$as_me: failed program was:" >&5
30941sed 's/^/| /' conftest.$ac_ext >&5
30942
30943eval "$as_ac_var=no"
30944fi
ac1cb8d3
VS
30945rm -f conftest.err conftest.$ac_objext \
30946 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30947fi
30948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30950if test `eval echo '${'$as_ac_var'}'` = yes; then
30951 cat >>confdefs.h <<_ACEOF
30952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30953_ACEOF
30954
30955fi
30956done
30957
30958
30959if test "$ac_cv_func_vsnprintf" = "yes"; then
30960 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30961echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30962if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30963 echo $ECHO_N "(cached) $ECHO_C" >&6
30964else
30965
30966 cat >conftest.$ac_ext <<_ACEOF
30967/* confdefs.h. */
30968_ACEOF
30969cat confdefs.h >>conftest.$ac_ext
30970cat >>conftest.$ac_ext <<_ACEOF
30971/* end confdefs.h. */
30972
30973 #include <stdio.h>
30974 #include <stdarg.h>
30975
30976int
30977main ()
30978{
30979
30980 char *buf;
30981 va_list ap;
30982 vsnprintf(buf, 10u, "%s", ap);
30983
30984 ;
30985 return 0;
30986}
30987_ACEOF
30988rm -f conftest.$ac_objext
30989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30990 (eval $ac_compile) 2>conftest.er1
a848cd7e 30991 ac_status=$?
ac1cb8d3
VS
30992 grep -v '^ *+' conftest.er1 >conftest.err
30993 rm -f conftest.er1
30994 cat conftest.err >&5
a848cd7e
SC
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); } &&
9dd0f6c2 30997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30999 (eval $ac_try) 2>&5
31000 ac_status=$?
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); }; } &&
31003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31005 (eval $ac_try) 2>&5
31006 ac_status=$?
31007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008 (exit $ac_status); }; }; then
31009 wx_cv_func_vsnprintf_decl=yes
31010else
31011 echo "$as_me: failed program was:" >&5
31012sed 's/^/| /' conftest.$ac_ext >&5
31013
c122b164
DE
31014
31015 cat >conftest.$ac_ext <<_ACEOF
31016/* confdefs.h. */
31017_ACEOF
31018cat confdefs.h >>conftest.$ac_ext
31019cat >>conftest.$ac_ext <<_ACEOF
31020/* end confdefs.h. */
31021
31022 #include <stdio.h>
31023 #include <stdarg.h>
31024 using namespace std;
31025
31026int
31027main ()
31028{
31029
31030 char *buf;
31031 va_list ap;
31032 vsnprintf(buf, 10u, "%s", ap);
31033
31034 ;
31035 return 0;
31036}
31037_ACEOF
31038rm -f conftest.$ac_objext
31039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31040 (eval $ac_compile) 2>conftest.er1
31041 ac_status=$?
31042 grep -v '^ *+' conftest.er1 >conftest.err
31043 rm -f conftest.er1
31044 cat conftest.err >&5
31045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); } &&
9dd0f6c2 31047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
31048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31049 (eval $ac_try) 2>&5
31050 ac_status=$?
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); }; } &&
31053 { ac_try='test -s conftest.$ac_objext'
31054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31055 (eval $ac_try) 2>&5
31056 ac_status=$?
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); }; }; then
31059 wx_cv_func_vsnprintf_decl=yes
31060else
31061 echo "$as_me: failed program was:" >&5
31062sed 's/^/| /' conftest.$ac_ext >&5
31063
a848cd7e
SC
31064wx_cv_func_vsnprintf_decl=no
31065
31066fi
ac1cb8d3 31067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31068
31069
c122b164
DE
31070fi
31071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31072
31073
a848cd7e
SC
31074fi
31075echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31076echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31077
31078 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31079 cat >>confdefs.h <<\_ACEOF
31080#define HAVE_VSNPRINTF_DECL 1
31081_ACEOF
31082
31083 fi
31084fi
31085
31086if test "$wxUSE_UNICODE" = yes; then
31087
31088
31089
fbe47c7b
VS
31090
31091
31092
31093for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31094do
31095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31096echo "$as_me:$LINENO: checking for $ac_func" >&5
31097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31098if eval "test \"\${$as_ac_var+set}\" = set"; then
31099 echo $ECHO_N "(cached) $ECHO_C" >&6
31100else
31101 cat >conftest.$ac_ext <<_ACEOF
31102/* confdefs.h. */
31103_ACEOF
31104cat confdefs.h >>conftest.$ac_ext
31105cat >>conftest.$ac_ext <<_ACEOF
31106/* end confdefs.h. */
ac1cb8d3
VS
31107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31109#define $ac_func innocuous_$ac_func
31110
a848cd7e
SC
31111/* System header to define __stub macros and hopefully few prototypes,
31112 which can conflict with char $ac_func (); below.
31113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31114 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31115
a848cd7e
SC
31116#ifdef __STDC__
31117# include <limits.h>
31118#else
31119# include <assert.h>
31120#endif
ac1cb8d3
VS
31121
31122#undef $ac_func
31123
a848cd7e
SC
31124/* Override any gcc2 internal prototype to avoid an error. */
31125#ifdef __cplusplus
31126extern "C"
31127{
31128#endif
31129/* We use char because int might match the return type of a gcc2
31130 builtin and then its argument prototype would still apply. */
31131char $ac_func ();
31132/* The GNU C library defines this for functions which it implements
31133 to always fail with ENOSYS. Some functions are actually named
31134 something starting with __ and the normal name is an alias. */
31135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31136choke me
31137#else
31138char (*f) () = $ac_func;
31139#endif
31140#ifdef __cplusplus
31141}
31142#endif
31143
31144int
31145main ()
31146{
31147return f != $ac_func;
31148 ;
31149 return 0;
31150}
31151_ACEOF
31152rm -f conftest.$ac_objext conftest$ac_exeext
31153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31154 (eval $ac_link) 2>conftest.er1
a848cd7e 31155 ac_status=$?
ac1cb8d3
VS
31156 grep -v '^ *+' conftest.er1 >conftest.err
31157 rm -f conftest.er1
31158 cat conftest.err >&5
a848cd7e
SC
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); } &&
9dd0f6c2 31161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31163 (eval $ac_try) 2>&5
31164 ac_status=$?
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); }; } &&
31167 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31169 (eval $ac_try) 2>&5
31170 ac_status=$?
31171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172 (exit $ac_status); }; }; then
31173 eval "$as_ac_var=yes"
31174else
31175 echo "$as_me: failed program was:" >&5
31176sed 's/^/| /' conftest.$ac_ext >&5
31177
31178eval "$as_ac_var=no"
31179fi
ac1cb8d3
VS
31180rm -f conftest.err conftest.$ac_objext \
31181 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31182fi
31183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31184echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31185if test `eval echo '${'$as_ac_var'}'` = yes; then
31186 cat >>confdefs.h <<_ACEOF
31187#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31188_ACEOF
31189
31190fi
31191done
31192
31193
31194 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31195echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31196 cat >conftest.$ac_ext <<_ACEOF
31197/* confdefs.h. */
31198_ACEOF
31199cat confdefs.h >>conftest.$ac_ext
31200cat >>conftest.$ac_ext <<_ACEOF
31201/* end confdefs.h. */
31202#include <wchar.h>
31203int
31204main ()
31205{
31206&_vsnwprintf;
31207 ;
31208 return 0;
31209}
31210_ACEOF
31211rm -f conftest.$ac_objext
31212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31213 (eval $ac_compile) 2>conftest.er1
a848cd7e 31214 ac_status=$?
ac1cb8d3
VS
31215 grep -v '^ *+' conftest.er1 >conftest.err
31216 rm -f conftest.er1
31217 cat conftest.err >&5
a848cd7e
SC
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); } &&
9dd0f6c2 31220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31222 (eval $ac_try) 2>&5
31223 ac_status=$?
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); }; } &&
31226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31228 (eval $ac_try) 2>&5
31229 ac_status=$?
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); }; }; then
31232 echo "$as_me:$LINENO: result: yes" >&5
31233echo "${ECHO_T}yes" >&6
31234 cat >>confdefs.h <<\_ACEOF
31235#define HAVE__VSNWPRINTF 1
31236_ACEOF
31237
31238else
31239 echo "$as_me: failed program was:" >&5
31240sed 's/^/| /' conftest.$ac_ext >&5
31241
31242echo "$as_me:$LINENO: result: no" >&5
31243echo "${ECHO_T}no" >&6
31244fi
ac1cb8d3 31245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31246fi
31247
31248ac_ext=c
31249ac_cpp='$CPP $CPPFLAGS'
31250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31252ac_compiler_gnu=$ac_cv_c_compiler_gnu
31253
31254
31255
31256
31257if test "$TOOLKIT" != "MSW"; then
31258
31259
31260
31261
31262ac_ext=cc
31263ac_cpp='$CXXCPP $CPPFLAGS'
31264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31267
31268
31269
31270
31271# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31272if test "${with_libiconv_prefix+set}" = set; then
31273 withval="$with_libiconv_prefix"
31274
31275 for dir in `echo "$withval" | tr : ' '`; do
31276 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31277 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31278 done
31279
31280fi;
31281
31282 echo "$as_me:$LINENO: checking for iconv" >&5
31283echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31284if test "${am_cv_func_iconv+set}" = set; then
31285 echo $ECHO_N "(cached) $ECHO_C" >&6
31286else
31287
31288 am_cv_func_iconv="no, consider installing GNU libiconv"
31289 am_cv_lib_iconv=no
31290 cat >conftest.$ac_ext <<_ACEOF
31291/* confdefs.h. */
31292_ACEOF
31293cat confdefs.h >>conftest.$ac_ext
31294cat >>conftest.$ac_ext <<_ACEOF
31295/* end confdefs.h. */
31296#include <stdlib.h>
31297#include <iconv.h>
31298int
31299main ()
31300{
31301iconv_t cd = iconv_open("","");
31302 iconv(cd,NULL,NULL,NULL,NULL);
31303 iconv_close(cd);
31304 ;
31305 return 0;
31306}
31307_ACEOF
31308rm -f conftest.$ac_objext conftest$ac_exeext
31309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31310 (eval $ac_link) 2>conftest.er1
a848cd7e 31311 ac_status=$?
ac1cb8d3
VS
31312 grep -v '^ *+' conftest.er1 >conftest.err
31313 rm -f conftest.er1
31314 cat conftest.err >&5
a848cd7e
SC
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); } &&
9dd0f6c2 31317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
31323 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31325 (eval $ac_try) 2>&5
31326 ac_status=$?
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); }; }; then
31329 am_cv_func_iconv=yes
31330else
31331 echo "$as_me: failed program was:" >&5
31332sed 's/^/| /' conftest.$ac_ext >&5
31333
31334fi
ac1cb8d3
VS
31335rm -f conftest.err conftest.$ac_objext \
31336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31337 if test "$am_cv_func_iconv" != yes; then
31338 am_save_LIBS="$LIBS"
31339 LIBS="$LIBS -liconv"
31340 cat >conftest.$ac_ext <<_ACEOF
31341/* confdefs.h. */
31342_ACEOF
31343cat confdefs.h >>conftest.$ac_ext
31344cat >>conftest.$ac_ext <<_ACEOF
31345/* end confdefs.h. */
31346#include <stdlib.h>
31347#include <iconv.h>
31348int
31349main ()
31350{
31351iconv_t cd = iconv_open("","");
31352 iconv(cd,NULL,NULL,NULL,NULL);
31353 iconv_close(cd);
31354 ;
31355 return 0;
31356}
31357_ACEOF
31358rm -f conftest.$ac_objext conftest$ac_exeext
31359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31360 (eval $ac_link) 2>conftest.er1
a848cd7e 31361 ac_status=$?
ac1cb8d3
VS
31362 grep -v '^ *+' conftest.er1 >conftest.err
31363 rm -f conftest.er1
31364 cat conftest.err >&5
a848cd7e
SC
31365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366 (exit $ac_status); } &&
9dd0f6c2 31367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369 (eval $ac_try) 2>&5
31370 ac_status=$?
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); }; } &&
31373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31375 (eval $ac_try) 2>&5
31376 ac_status=$?
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); }; }; then
31379 am_cv_lib_iconv=yes
31380 am_cv_func_iconv=yes
31381else
31382 echo "$as_me: failed program was:" >&5
31383sed 's/^/| /' conftest.$ac_ext >&5
31384
31385fi
ac1cb8d3
VS
31386rm -f conftest.err conftest.$ac_objext \
31387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31388 LIBS="$am_save_LIBS"
31389 fi
31390
31391fi
31392echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31393echo "${ECHO_T}$am_cv_func_iconv" >&6
31394 if test "$am_cv_func_iconv" = yes; then
31395
31396cat >>confdefs.h <<\_ACEOF
31397#define HAVE_ICONV 1
31398_ACEOF
31399
31400 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31401echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31402if test "${wx_cv_func_iconv_const+set}" = set; then
31403 echo $ECHO_N "(cached) $ECHO_C" >&6
31404else
31405 cat >conftest.$ac_ext <<_ACEOF
31406/* confdefs.h. */
31407_ACEOF
31408cat confdefs.h >>conftest.$ac_ext
31409cat >>conftest.$ac_ext <<_ACEOF
31410/* end confdefs.h. */
31411
31412#include <stdlib.h>
31413#include <iconv.h>
31414extern
31415#ifdef __cplusplus
31416"C"
31417#endif
31418#if defined(__STDC__) || defined(__cplusplus)
31419size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31420#else
31421size_t iconv();
31422#endif
31423
31424int
31425main ()
31426{
31427
31428 ;
31429 return 0;
31430}
31431_ACEOF
31432rm -f conftest.$ac_objext
31433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31434 (eval $ac_compile) 2>conftest.er1
a848cd7e 31435 ac_status=$?
ac1cb8d3
VS
31436 grep -v '^ *+' conftest.er1 >conftest.err
31437 rm -f conftest.er1
31438 cat conftest.err >&5
a848cd7e
SC
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); } &&
9dd0f6c2 31441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31443 (eval $ac_try) 2>&5
31444 ac_status=$?
31445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446 (exit $ac_status); }; } &&
31447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31449 (eval $ac_try) 2>&5
31450 ac_status=$?
31451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452 (exit $ac_status); }; }; then
31453 wx_cv_func_iconv_const="no"
31454else
31455 echo "$as_me: failed program was:" >&5
31456sed 's/^/| /' conftest.$ac_ext >&5
31457
31458wx_cv_func_iconv_const="yes"
31459
31460fi
ac1cb8d3 31461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31462
31463fi
31464echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31465echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31466
31467 iconv_const=
31468 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31469 iconv_const="const"
31470 fi
31471
31472
31473cat >>confdefs.h <<_ACEOF
31474#define ICONV_CONST $iconv_const
31475_ACEOF
31476
31477 fi
31478 LIBICONV=
31479 if test "$am_cv_lib_iconv" = yes; then
31480 LIBICONV="-liconv"
31481 fi
31482
31483
31484LIBS="$LIBICONV $LIBS"
31485ac_ext=c
31486ac_cpp='$CPP $CPPFLAGS'
31487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31489ac_compiler_gnu=$ac_cv_c_compiler_gnu
31490
31491
31492if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31493
31494for ac_func in sigaction
31495do
31496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31497echo "$as_me:$LINENO: checking for $ac_func" >&5
31498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31499if eval "test \"\${$as_ac_var+set}\" = set"; then
31500 echo $ECHO_N "(cached) $ECHO_C" >&6
31501else
31502 cat >conftest.$ac_ext <<_ACEOF
31503/* confdefs.h. */
31504_ACEOF
31505cat confdefs.h >>conftest.$ac_ext
31506cat >>conftest.$ac_ext <<_ACEOF
31507/* end confdefs.h. */
ac1cb8d3
VS
31508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31510#define $ac_func innocuous_$ac_func
31511
a848cd7e
SC
31512/* System header to define __stub macros and hopefully few prototypes,
31513 which can conflict with char $ac_func (); below.
31514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31515 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31516
a848cd7e
SC
31517#ifdef __STDC__
31518# include <limits.h>
31519#else
31520# include <assert.h>
31521#endif
ac1cb8d3
VS
31522
31523#undef $ac_func
31524
a848cd7e
SC
31525/* Override any gcc2 internal prototype to avoid an error. */
31526#ifdef __cplusplus
31527extern "C"
31528{
31529#endif
31530/* We use char because int might match the return type of a gcc2
31531 builtin and then its argument prototype would still apply. */
31532char $ac_func ();
31533/* The GNU C library defines this for functions which it implements
31534 to always fail with ENOSYS. Some functions are actually named
31535 something starting with __ and the normal name is an alias. */
31536#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31537choke me
31538#else
31539char (*f) () = $ac_func;
31540#endif
31541#ifdef __cplusplus
31542}
31543#endif
31544
31545int
31546main ()
31547{
31548return f != $ac_func;
31549 ;
31550 return 0;
31551}
31552_ACEOF
31553rm -f conftest.$ac_objext conftest$ac_exeext
31554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31555 (eval $ac_link) 2>conftest.er1
a848cd7e 31556 ac_status=$?
ac1cb8d3
VS
31557 grep -v '^ *+' conftest.er1 >conftest.err
31558 rm -f conftest.er1
31559 cat conftest.err >&5
a848cd7e
SC
31560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561 (exit $ac_status); } &&
9dd0f6c2 31562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31564 (eval $ac_try) 2>&5
31565 ac_status=$?
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; } &&
31568 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31570 (eval $ac_try) 2>&5
31571 ac_status=$?
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); }; }; then
31574 eval "$as_ac_var=yes"
31575else
31576 echo "$as_me: failed program was:" >&5
31577sed 's/^/| /' conftest.$ac_ext >&5
31578
31579eval "$as_ac_var=no"
31580fi
ac1cb8d3
VS
31581rm -f conftest.err conftest.$ac_objext \
31582 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31583fi
31584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31585echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31586if test `eval echo '${'$as_ac_var'}'` = yes; then
31587 cat >>confdefs.h <<_ACEOF
31588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31589_ACEOF
31590
31591fi
31592done
31593
31594
31595 if test "$ac_cv_func_sigaction" = "no"; then
31596 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31597echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31598 wxUSE_ON_FATAL_EXCEPTION=no
31599 fi
31600
31601 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31602
31603
31604 ac_ext=cc
31605ac_cpp='$CXXCPP $CPPFLAGS'
31606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31609
31610
31611 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31612echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31613if test "${wx_cv_type_sa_handler+set}" = set; then
31614 echo $ECHO_N "(cached) $ECHO_C" >&6
31615else
31616
31617 cat >conftest.$ac_ext <<_ACEOF
31618/* confdefs.h. */
31619_ACEOF
31620cat confdefs.h >>conftest.$ac_ext
31621cat >>conftest.$ac_ext <<_ACEOF
31622/* end confdefs.h. */
31623#include <signal.h>
31624int
31625main ()
31626{
31627
31628 extern void testSigHandler(int);
31629
31630 struct sigaction sa;
31631 sa.sa_handler = testSigHandler;
31632
31633 ;
31634 return 0;
31635}
31636_ACEOF
31637rm -f conftest.$ac_objext
31638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31639 (eval $ac_compile) 2>conftest.er1
a848cd7e 31640 ac_status=$?
ac1cb8d3
VS
31641 grep -v '^ *+' conftest.er1 >conftest.err
31642 rm -f conftest.er1
31643 cat conftest.err >&5
a848cd7e
SC
31644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645 (exit $ac_status); } &&
9dd0f6c2 31646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31648 (eval $ac_try) 2>&5
31649 ac_status=$?
31650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651 (exit $ac_status); }; } &&
31652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31654 (eval $ac_try) 2>&5
31655 ac_status=$?
31656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657 (exit $ac_status); }; }; then
31658
31659 wx_cv_type_sa_handler=int
31660
31661else
31662 echo "$as_me: failed program was:" >&5
31663sed 's/^/| /' conftest.$ac_ext >&5
31664
31665
31666 wx_cv_type_sa_handler=void
31667
31668fi
ac1cb8d3 31669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31670
31671fi
31672echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31673echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31674
31675 ac_ext=c
31676ac_cpp='$CPP $CPPFLAGS'
31677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31679ac_compiler_gnu=$ac_cv_c_compiler_gnu
31680
31681
31682 cat >>confdefs.h <<_ACEOF
31683#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31684_ACEOF
31685
31686 fi
31687fi
31688
eaff0f0d
VZ
31689if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31690
31691
31692 ac_ext=cc
31693ac_cpp='$CXXCPP $CPPFLAGS'
31694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31697
31698
31699 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31700echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31701if test "${wx_cv_func_backtrace+set}" = set; then
31702 echo $ECHO_N "(cached) $ECHO_C" >&6
31703else
31704
31705 cat >conftest.$ac_ext <<_ACEOF
31706/* confdefs.h. */
31707_ACEOF
31708cat confdefs.h >>conftest.$ac_ext
31709cat >>conftest.$ac_ext <<_ACEOF
31710/* end confdefs.h. */
31711#include <execinfo.h>
31712int
31713main ()
31714{
31715
31716 void *trace[1];
31717 char **messages;
31718
31719 backtrace(trace, 1);
31720 messages = backtrace_symbols(trace, 1);
31721
31722 ;
31723 return 0;
31724}
31725_ACEOF
31726rm -f conftest.$ac_objext
31727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31728 (eval $ac_compile) 2>conftest.er1
31729 ac_status=$?
31730 grep -v '^ *+' conftest.er1 >conftest.err
31731 rm -f conftest.er1
31732 cat conftest.err >&5
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); } &&
9dd0f6c2 31735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31737 (eval $ac_try) 2>&5
31738 ac_status=$?
31739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740 (exit $ac_status); }; } &&
31741 { ac_try='test -s conftest.$ac_objext'
31742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743 (eval $ac_try) 2>&5
31744 ac_status=$?
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); }; }; then
31747 wx_cv_func_backtrace=yes
31748else
31749 echo "$as_me: failed program was:" >&5
31750sed 's/^/| /' conftest.$ac_ext >&5
31751
31752wx_cv_func_backtrace=no
31753
31754fi
31755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31756
31757
31758fi
31759echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31760echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31761
31762
31763 if test "$wx_cv_func_backtrace" = "no"; then
31764 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31765echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31766 wxUSE_STACKWALKER=no
31767 else
31768 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31769echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31770if test "${wx_cv_func_cxa_demangle+set}" = set; then
31771 echo $ECHO_N "(cached) $ECHO_C" >&6
31772else
31773
31774 cat >conftest.$ac_ext <<_ACEOF
31775/* confdefs.h. */
31776_ACEOF
31777cat confdefs.h >>conftest.$ac_ext
31778cat >>conftest.$ac_ext <<_ACEOF
31779/* end confdefs.h. */
31780#include <cxxabi.h>
31781int
31782main ()
31783{
31784
31785 int rc;
31786 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31787
31788 ;
31789 return 0;
31790}
31791_ACEOF
dfe0c803
JS
31792rm -f conftest.$ac_objext conftest$ac_exeext
31793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31794 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
31795 ac_status=$?
31796 grep -v '^ *+' conftest.er1 >conftest.err
31797 rm -f conftest.er1
31798 cat conftest.err >&5
31799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31800 (exit $ac_status); } &&
9dd0f6c2 31801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31803 (eval $ac_try) 2>&5
31804 ac_status=$?
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); }; } &&
dfe0c803 31807 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
31808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31809 (eval $ac_try) 2>&5
31810 ac_status=$?
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); }; }; then
31813 wx_cv_func_cxa_demangle=yes
31814else
31815 echo "$as_me: failed program was:" >&5
31816sed 's/^/| /' conftest.$ac_ext >&5
31817
31818wx_cv_func_cxa_demangle=no
31819
31820fi
dfe0c803
JS
31821rm -f conftest.err conftest.$ac_objext \
31822 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
31823
31824
31825fi
31826echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31827echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31828
31829 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31830 cat >>confdefs.h <<\_ACEOF
31831#define HAVE_CXA_DEMANGLE 1
31832_ACEOF
31833
31834 fi
31835 fi
31836
31837 ac_ext=c
31838ac_cpp='$CPP $CPPFLAGS'
31839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31841ac_compiler_gnu=$ac_cv_c_compiler_gnu
31842
31843fi
31844
898beab1
DE
31845if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
31846 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
31847echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
31848 wxUSE_STACKWALKER=no
31849fi
31850
31851
a848cd7e
SC
31852
31853
31854for ac_func in mkstemp mktemp
31855do
31856as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31857echo "$as_me:$LINENO: checking for $ac_func" >&5
31858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31859if eval "test \"\${$as_ac_var+set}\" = set"; then
31860 echo $ECHO_N "(cached) $ECHO_C" >&6
31861else
31862 cat >conftest.$ac_ext <<_ACEOF
31863/* confdefs.h. */
31864_ACEOF
31865cat confdefs.h >>conftest.$ac_ext
31866cat >>conftest.$ac_ext <<_ACEOF
31867/* end confdefs.h. */
ac1cb8d3
VS
31868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31870#define $ac_func innocuous_$ac_func
31871
a848cd7e
SC
31872/* System header to define __stub macros and hopefully few prototypes,
31873 which can conflict with char $ac_func (); below.
31874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31875 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31876
a848cd7e
SC
31877#ifdef __STDC__
31878# include <limits.h>
31879#else
31880# include <assert.h>
31881#endif
ac1cb8d3
VS
31882
31883#undef $ac_func
31884
a848cd7e
SC
31885/* Override any gcc2 internal prototype to avoid an error. */
31886#ifdef __cplusplus
31887extern "C"
31888{
31889#endif
31890/* We use char because int might match the return type of a gcc2
31891 builtin and then its argument prototype would still apply. */
31892char $ac_func ();
31893/* The GNU C library defines this for functions which it implements
31894 to always fail with ENOSYS. Some functions are actually named
31895 something starting with __ and the normal name is an alias. */
31896#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31897choke me
31898#else
31899char (*f) () = $ac_func;
31900#endif
31901#ifdef __cplusplus
31902}
31903#endif
31904
31905int
31906main ()
31907{
31908return f != $ac_func;
31909 ;
31910 return 0;
31911}
31912_ACEOF
31913rm -f conftest.$ac_objext conftest$ac_exeext
31914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31915 (eval $ac_link) 2>conftest.er1
a848cd7e 31916 ac_status=$?
ac1cb8d3
VS
31917 grep -v '^ *+' conftest.er1 >conftest.err
31918 rm -f conftest.er1
31919 cat conftest.err >&5
a848cd7e
SC
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); } &&
9dd0f6c2 31922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31924 (eval $ac_try) 2>&5
31925 ac_status=$?
31926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927 (exit $ac_status); }; } &&
31928 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31930 (eval $ac_try) 2>&5
31931 ac_status=$?
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); }; }; then
31934 eval "$as_ac_var=yes"
31935else
31936 echo "$as_me: failed program was:" >&5
31937sed 's/^/| /' conftest.$ac_ext >&5
31938
31939eval "$as_ac_var=no"
31940fi
ac1cb8d3
VS
31941rm -f conftest.err conftest.$ac_objext \
31942 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31943fi
31944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31945echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31946if test `eval echo '${'$as_ac_var'}'` = yes; then
31947 cat >>confdefs.h <<_ACEOF
31948#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31949_ACEOF
31950 break
31951fi
31952done
31953
31954
31955echo "$as_me:$LINENO: checking for statfs" >&5
31956echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31957if test "${wx_cv_func_statfs+set}" = set; then
31958 echo $ECHO_N "(cached) $ECHO_C" >&6
31959else
31960 cat >conftest.$ac_ext <<_ACEOF
31961/* confdefs.h. */
31962_ACEOF
31963cat confdefs.h >>conftest.$ac_ext
31964cat >>conftest.$ac_ext <<_ACEOF
31965/* end confdefs.h. */
31966
31967 #if defined(__BSD__)
31968 #include <sys/param.h>
31969 #include <sys/mount.h>
31970 #else
31971 #include <sys/vfs.h>
31972 #endif
31973
31974int
31975main ()
31976{
31977
31978 long l;
31979 struct statfs fs;
31980 statfs("/", &fs);
31981 l = fs.f_bsize;
31982 l += fs.f_blocks;
31983 l += fs.f_bavail;
31984
31985 ;
31986 return 0;
31987}
31988_ACEOF
31989rm -f conftest.$ac_objext
31990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31991 (eval $ac_compile) 2>conftest.er1
a848cd7e 31992 ac_status=$?
ac1cb8d3
VS
31993 grep -v '^ *+' conftest.er1 >conftest.err
31994 rm -f conftest.er1
31995 cat conftest.err >&5
a848cd7e
SC
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); } &&
9dd0f6c2 31998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32000 (eval $ac_try) 2>&5
32001 ac_status=$?
32002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); }; } &&
32004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32006 (eval $ac_try) 2>&5
32007 ac_status=$?
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); }; }; then
32010
32011 wx_cv_func_statfs=yes
32012
32013else
32014 echo "$as_me: failed program was:" >&5
32015sed 's/^/| /' conftest.$ac_ext >&5
32016
32017
32018 wx_cv_func_statfs=no
32019
32020
32021fi
ac1cb8d3 32022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32023
32024fi
32025echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32026echo "${ECHO_T}$wx_cv_func_statfs" >&6
32027
32028if test "$wx_cv_func_statfs" = "yes"; then
32029 wx_cv_type_statvfs_t="struct statfs"
32030 cat >>confdefs.h <<\_ACEOF
32031#define HAVE_STATFS 1
32032_ACEOF
32033
32034else
32035 echo "$as_me:$LINENO: checking for statvfs" >&5
32036echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32037if test "${wx_cv_func_statvfs+set}" = set; then
32038 echo $ECHO_N "(cached) $ECHO_C" >&6
32039else
32040 cat >conftest.$ac_ext <<_ACEOF
32041/* confdefs.h. */
32042_ACEOF
32043cat confdefs.h >>conftest.$ac_ext
32044cat >>conftest.$ac_ext <<_ACEOF
32045/* end confdefs.h. */
32046
32047 #include <stddef.h>
32048 #include <sys/statvfs.h>
32049
32050int
32051main ()
32052{
32053
32054 statvfs("/", NULL);
32055
32056 ;
32057 return 0;
32058}
32059_ACEOF
32060rm -f conftest.$ac_objext
32061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32062 (eval $ac_compile) 2>conftest.er1
a848cd7e 32063 ac_status=$?
ac1cb8d3
VS
32064 grep -v '^ *+' conftest.er1 >conftest.err
32065 rm -f conftest.er1
32066 cat conftest.err >&5
a848cd7e
SC
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); } &&
9dd0f6c2 32069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32071 (eval $ac_try) 2>&5
32072 ac_status=$?
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); }; } &&
32075 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32077 (eval $ac_try) 2>&5
32078 ac_status=$?
32079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080 (exit $ac_status); }; }; then
32081 wx_cv_func_statvfs=yes
32082else
32083 echo "$as_me: failed program was:" >&5
32084sed 's/^/| /' conftest.$ac_ext >&5
32085
32086wx_cv_func_statvfs=no
32087
32088fi
ac1cb8d3 32089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32090
32091fi
32092echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32093echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32094
32095 if test "$wx_cv_func_statvfs" = "yes"; then
32096
32097
32098 ac_ext=cc
32099ac_cpp='$CXXCPP $CPPFLAGS'
32100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32103
32104
32105 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32106echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32107if test "${wx_cv_type_statvfs_t+set}" = set; then
32108 echo $ECHO_N "(cached) $ECHO_C" >&6
32109else
32110 cat >conftest.$ac_ext <<_ACEOF
32111/* confdefs.h. */
32112_ACEOF
32113cat confdefs.h >>conftest.$ac_ext
32114cat >>conftest.$ac_ext <<_ACEOF
32115/* end confdefs.h. */
32116
32117 #include <sys/statvfs.h>
32118
32119int
32120main ()
32121{
32122
32123 long l;
32124 statvfs_t fs;
32125 statvfs("/", &fs);
32126 l = fs.f_bsize;
32127 l += fs.f_blocks;
32128 l += fs.f_bavail;
32129
32130 ;
32131 return 0;
32132}
32133_ACEOF
32134rm -f conftest.$ac_objext
32135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32136 (eval $ac_compile) 2>conftest.er1
a848cd7e 32137 ac_status=$?
ac1cb8d3
VS
32138 grep -v '^ *+' conftest.er1 >conftest.err
32139 rm -f conftest.er1
32140 cat conftest.err >&5
a848cd7e
SC
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); } &&
9dd0f6c2 32143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32145 (eval $ac_try) 2>&5
32146 ac_status=$?
32147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148 (exit $ac_status); }; } &&
32149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32151 (eval $ac_try) 2>&5
32152 ac_status=$?
32153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154 (exit $ac_status); }; }; then
32155 wx_cv_type_statvfs_t=statvfs_t
32156else
32157 echo "$as_me: failed program was:" >&5
32158sed 's/^/| /' conftest.$ac_ext >&5
32159
32160
32161 cat >conftest.$ac_ext <<_ACEOF
32162/* confdefs.h. */
32163_ACEOF
32164cat confdefs.h >>conftest.$ac_ext
32165cat >>conftest.$ac_ext <<_ACEOF
32166/* end confdefs.h. */
32167
32168 #include <sys/statvfs.h>
32169
32170int
32171main ()
32172{
32173
32174 long l;
32175 struct statvfs fs;
32176 statvfs("/", &fs);
32177 l = fs.f_bsize;
32178 l += fs.f_blocks;
32179 l += fs.f_bavail;
32180
32181 ;
32182 return 0;
32183}
32184_ACEOF
32185rm -f conftest.$ac_objext
32186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32187 (eval $ac_compile) 2>conftest.er1
a848cd7e 32188 ac_status=$?
ac1cb8d3
VS
32189 grep -v '^ *+' conftest.er1 >conftest.err
32190 rm -f conftest.er1
32191 cat conftest.err >&5
a848cd7e
SC
32192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193 (exit $ac_status); } &&
9dd0f6c2 32194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32196 (eval $ac_try) 2>&5
32197 ac_status=$?
32198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32199 (exit $ac_status); }; } &&
32200 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32202 (eval $ac_try) 2>&5
32203 ac_status=$?
32204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205 (exit $ac_status); }; }; then
32206 wx_cv_type_statvfs_t="struct statvfs"
32207else
32208 echo "$as_me: failed program was:" >&5
32209sed 's/^/| /' conftest.$ac_ext >&5
32210
32211wx_cv_type_statvfs_t="unknown"
32212
32213fi
ac1cb8d3 32214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32215
32216
32217fi
ac1cb8d3 32218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32219
32220fi
32221echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32222echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32223
32224 ac_ext=c
32225ac_cpp='$CPP $CPPFLAGS'
32226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32228ac_compiler_gnu=$ac_cv_c_compiler_gnu
32229
32230
32231 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32232 cat >>confdefs.h <<\_ACEOF
32233#define HAVE_STATVFS 1
32234_ACEOF
32235
32236 fi
32237 else
32238 wx_cv_type_statvfs_t="unknown"
32239 fi
32240fi
32241
32242if test "$wx_cv_type_statvfs_t" != "unknown"; then
32243 cat >>confdefs.h <<_ACEOF
32244#define WX_STATFS_T $wx_cv_type_statvfs_t
32245_ACEOF
32246
32247else
32248 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32249echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32250fi
32251
32252if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32253
32254
32255for ac_func in fcntl flock
32256do
32257as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32258echo "$as_me:$LINENO: checking for $ac_func" >&5
32259echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32260if eval "test \"\${$as_ac_var+set}\" = set"; then
32261 echo $ECHO_N "(cached) $ECHO_C" >&6
32262else
32263 cat >conftest.$ac_ext <<_ACEOF
32264/* confdefs.h. */
32265_ACEOF
32266cat confdefs.h >>conftest.$ac_ext
32267cat >>conftest.$ac_ext <<_ACEOF
32268/* end confdefs.h. */
ac1cb8d3
VS
32269/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32271#define $ac_func innocuous_$ac_func
32272
a848cd7e
SC
32273/* System header to define __stub macros and hopefully few prototypes,
32274 which can conflict with char $ac_func (); below.
32275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32276 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32277
a848cd7e
SC
32278#ifdef __STDC__
32279# include <limits.h>
32280#else
32281# include <assert.h>
32282#endif
ac1cb8d3
VS
32283
32284#undef $ac_func
32285
a848cd7e
SC
32286/* Override any gcc2 internal prototype to avoid an error. */
32287#ifdef __cplusplus
32288extern "C"
32289{
32290#endif
32291/* We use char because int might match the return type of a gcc2
32292 builtin and then its argument prototype would still apply. */
32293char $ac_func ();
32294/* The GNU C library defines this for functions which it implements
32295 to always fail with ENOSYS. Some functions are actually named
32296 something starting with __ and the normal name is an alias. */
32297#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32298choke me
32299#else
32300char (*f) () = $ac_func;
32301#endif
32302#ifdef __cplusplus
32303}
32304#endif
32305
32306int
32307main ()
32308{
32309return f != $ac_func;
32310 ;
32311 return 0;
32312}
32313_ACEOF
32314rm -f conftest.$ac_objext conftest$ac_exeext
32315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32316 (eval $ac_link) 2>conftest.er1
a848cd7e 32317 ac_status=$?
ac1cb8d3
VS
32318 grep -v '^ *+' conftest.er1 >conftest.err
32319 rm -f conftest.er1
32320 cat conftest.err >&5
a848cd7e
SC
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); } &&
9dd0f6c2 32323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32325 (eval $ac_try) 2>&5
32326 ac_status=$?
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); }; } &&
32329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32331 (eval $ac_try) 2>&5
32332 ac_status=$?
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); }; }; then
32335 eval "$as_ac_var=yes"
32336else
32337 echo "$as_me: failed program was:" >&5
32338sed 's/^/| /' conftest.$ac_ext >&5
32339
32340eval "$as_ac_var=no"
32341fi
ac1cb8d3
VS
32342rm -f conftest.err conftest.$ac_objext \
32343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32344fi
32345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32346echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32347if test `eval echo '${'$as_ac_var'}'` = yes; then
32348 cat >>confdefs.h <<_ACEOF
32349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32350_ACEOF
32351 break
32352fi
32353done
32354
32355
32356 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32357 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32358echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32359 wxUSE_SNGLINST_CHECKER=no
32360 fi
32361fi
32362
32363
32364for ac_func in timegm
32365do
32366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32367echo "$as_me:$LINENO: checking for $ac_func" >&5
32368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32369if eval "test \"\${$as_ac_var+set}\" = set"; then
32370 echo $ECHO_N "(cached) $ECHO_C" >&6
32371else
32372 cat >conftest.$ac_ext <<_ACEOF
32373/* confdefs.h. */
32374_ACEOF
32375cat confdefs.h >>conftest.$ac_ext
32376cat >>conftest.$ac_ext <<_ACEOF
32377/* end confdefs.h. */
ac1cb8d3
VS
32378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32380#define $ac_func innocuous_$ac_func
32381
a848cd7e
SC
32382/* System header to define __stub macros and hopefully few prototypes,
32383 which can conflict with char $ac_func (); below.
32384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32385 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32386
a848cd7e
SC
32387#ifdef __STDC__
32388# include <limits.h>
32389#else
32390# include <assert.h>
32391#endif
ac1cb8d3
VS
32392
32393#undef $ac_func
32394
a848cd7e
SC
32395/* Override any gcc2 internal prototype to avoid an error. */
32396#ifdef __cplusplus
32397extern "C"
32398{
32399#endif
32400/* We use char because int might match the return type of a gcc2
32401 builtin and then its argument prototype would still apply. */
32402char $ac_func ();
32403/* The GNU C library defines this for functions which it implements
32404 to always fail with ENOSYS. Some functions are actually named
32405 something starting with __ and the normal name is an alias. */
32406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32407choke me
32408#else
32409char (*f) () = $ac_func;
32410#endif
32411#ifdef __cplusplus
32412}
32413#endif
32414
32415int
32416main ()
32417{
32418return f != $ac_func;
32419 ;
32420 return 0;
32421}
32422_ACEOF
32423rm -f conftest.$ac_objext conftest$ac_exeext
32424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32425 (eval $ac_link) 2>conftest.er1
a848cd7e 32426 ac_status=$?
ac1cb8d3
VS
32427 grep -v '^ *+' conftest.er1 >conftest.err
32428 rm -f conftest.er1
32429 cat conftest.err >&5
a848cd7e
SC
32430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431 (exit $ac_status); } &&
9dd0f6c2 32432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32434 (eval $ac_try) 2>&5
32435 ac_status=$?
32436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437 (exit $ac_status); }; } &&
32438 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32440 (eval $ac_try) 2>&5
32441 ac_status=$?
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); }; }; then
32444 eval "$as_ac_var=yes"
32445else
32446 echo "$as_me: failed program was:" >&5
32447sed 's/^/| /' conftest.$ac_ext >&5
32448
32449eval "$as_ac_var=no"
32450fi
ac1cb8d3
VS
32451rm -f conftest.err conftest.$ac_objext \
32452 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32453fi
32454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32455echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32456if test `eval echo '${'$as_ac_var'}'` = yes; then
32457 cat >>confdefs.h <<_ACEOF
32458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32459_ACEOF
32460
32461fi
32462done
32463
32464
32465
32466
32467for ac_func in putenv setenv
32468do
32469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32470echo "$as_me:$LINENO: checking for $ac_func" >&5
32471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32472if eval "test \"\${$as_ac_var+set}\" = set"; then
32473 echo $ECHO_N "(cached) $ECHO_C" >&6
32474else
32475 cat >conftest.$ac_ext <<_ACEOF
32476/* confdefs.h. */
32477_ACEOF
32478cat confdefs.h >>conftest.$ac_ext
32479cat >>conftest.$ac_ext <<_ACEOF
32480/* end confdefs.h. */
ac1cb8d3
VS
32481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32483#define $ac_func innocuous_$ac_func
32484
a848cd7e
SC
32485/* System header to define __stub macros and hopefully few prototypes,
32486 which can conflict with char $ac_func (); below.
32487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32488 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32489
a848cd7e
SC
32490#ifdef __STDC__
32491# include <limits.h>
32492#else
32493# include <assert.h>
32494#endif
ac1cb8d3
VS
32495
32496#undef $ac_func
32497
a848cd7e
SC
32498/* Override any gcc2 internal prototype to avoid an error. */
32499#ifdef __cplusplus
32500extern "C"
32501{
32502#endif
32503/* We use char because int might match the return type of a gcc2
32504 builtin and then its argument prototype would still apply. */
32505char $ac_func ();
32506/* The GNU C library defines this for functions which it implements
32507 to always fail with ENOSYS. Some functions are actually named
32508 something starting with __ and the normal name is an alias. */
32509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32510choke me
32511#else
32512char (*f) () = $ac_func;
32513#endif
32514#ifdef __cplusplus
32515}
32516#endif
32517
32518int
32519main ()
32520{
32521return f != $ac_func;
32522 ;
32523 return 0;
32524}
32525_ACEOF
32526rm -f conftest.$ac_objext conftest$ac_exeext
32527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32528 (eval $ac_link) 2>conftest.er1
a848cd7e 32529 ac_status=$?
ac1cb8d3
VS
32530 grep -v '^ *+' conftest.er1 >conftest.err
32531 rm -f conftest.er1
32532 cat conftest.err >&5
a848cd7e
SC
32533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534 (exit $ac_status); } &&
9dd0f6c2 32535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32537 (eval $ac_try) 2>&5
32538 ac_status=$?
32539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540 (exit $ac_status); }; } &&
32541 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32543 (eval $ac_try) 2>&5
32544 ac_status=$?
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; }; then
32547 eval "$as_ac_var=yes"
32548else
32549 echo "$as_me: failed program was:" >&5
32550sed 's/^/| /' conftest.$ac_ext >&5
32551
32552eval "$as_ac_var=no"
32553fi
ac1cb8d3
VS
32554rm -f conftest.err conftest.$ac_objext \
32555 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32556fi
32557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32559if test `eval echo '${'$as_ac_var'}'` = yes; then
32560 cat >>confdefs.h <<_ACEOF
32561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32562_ACEOF
32563 break
32564fi
32565done
32566
32567
32568HAVE_SOME_SLEEP_FUNC=0
32569if test "$USE_BEOS" = 1; then
32570 cat >>confdefs.h <<\_ACEOF
32571#define HAVE_SLEEP 1
32572_ACEOF
32573
32574 HAVE_SOME_SLEEP_FUNC=1
32575fi
32576
32577if test "$USE_DARWIN" = 1; then
32578 cat >>confdefs.h <<\_ACEOF
32579#define HAVE_USLEEP 1
32580_ACEOF
32581
32582 HAVE_SOME_SLEEP_FUNC=1
32583fi
32584
32585if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32586 POSIX4_LINK=
32587
32588for ac_func in nanosleep
32589do
32590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32591echo "$as_me:$LINENO: checking for $ac_func" >&5
32592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32593if eval "test \"\${$as_ac_var+set}\" = set"; then
32594 echo $ECHO_N "(cached) $ECHO_C" >&6
32595else
32596 cat >conftest.$ac_ext <<_ACEOF
32597/* confdefs.h. */
32598_ACEOF
32599cat confdefs.h >>conftest.$ac_ext
32600cat >>conftest.$ac_ext <<_ACEOF
32601/* end confdefs.h. */
ac1cb8d3
VS
32602/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32604#define $ac_func innocuous_$ac_func
32605
a848cd7e
SC
32606/* System header to define __stub macros and hopefully few prototypes,
32607 which can conflict with char $ac_func (); below.
32608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32609 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32610
a848cd7e
SC
32611#ifdef __STDC__
32612# include <limits.h>
32613#else
32614# include <assert.h>
32615#endif
ac1cb8d3
VS
32616
32617#undef $ac_func
32618
a848cd7e
SC
32619/* Override any gcc2 internal prototype to avoid an error. */
32620#ifdef __cplusplus
32621extern "C"
32622{
32623#endif
32624/* We use char because int might match the return type of a gcc2
32625 builtin and then its argument prototype would still apply. */
32626char $ac_func ();
32627/* The GNU C library defines this for functions which it implements
32628 to always fail with ENOSYS. Some functions are actually named
32629 something starting with __ and the normal name is an alias. */
32630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32631choke me
32632#else
32633char (*f) () = $ac_func;
32634#endif
32635#ifdef __cplusplus
32636}
32637#endif
32638
32639int
32640main ()
32641{
32642return f != $ac_func;
32643 ;
32644 return 0;
32645}
32646_ACEOF
32647rm -f conftest.$ac_objext conftest$ac_exeext
32648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32649 (eval $ac_link) 2>conftest.er1
a848cd7e 32650 ac_status=$?
ac1cb8d3
VS
32651 grep -v '^ *+' conftest.er1 >conftest.err
32652 rm -f conftest.er1
32653 cat conftest.err >&5
a848cd7e
SC
32654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655 (exit $ac_status); } &&
9dd0f6c2 32656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32658 (eval $ac_try) 2>&5
32659 ac_status=$?
32660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661 (exit $ac_status); }; } &&
32662 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32664 (eval $ac_try) 2>&5
32665 ac_status=$?
32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667 (exit $ac_status); }; }; then
32668 eval "$as_ac_var=yes"
32669else
32670 echo "$as_me: failed program was:" >&5
32671sed 's/^/| /' conftest.$ac_ext >&5
32672
32673eval "$as_ac_var=no"
32674fi
ac1cb8d3
VS
32675rm -f conftest.err conftest.$ac_objext \
32676 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32677fi
32678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32679echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32680if test `eval echo '${'$as_ac_var'}'` = yes; then
32681 cat >>confdefs.h <<_ACEOF
32682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32683_ACEOF
32684 cat >>confdefs.h <<\_ACEOF
32685#define HAVE_NANOSLEEP 1
32686_ACEOF
32687
32688else
32689
32690 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32691echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32692if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32693 echo $ECHO_N "(cached) $ECHO_C" >&6
32694else
32695 ac_check_lib_save_LIBS=$LIBS
32696LIBS="-lposix4 $LIBS"
32697cat >conftest.$ac_ext <<_ACEOF
32698/* confdefs.h. */
32699_ACEOF
32700cat confdefs.h >>conftest.$ac_ext
32701cat >>conftest.$ac_ext <<_ACEOF
32702/* end confdefs.h. */
32703
32704/* Override any gcc2 internal prototype to avoid an error. */
32705#ifdef __cplusplus
32706extern "C"
32707#endif
32708/* We use char because int might match the return type of a gcc2
32709 builtin and then its argument prototype would still apply. */
32710char nanosleep ();
32711int
32712main ()
32713{
32714nanosleep ();
32715 ;
32716 return 0;
32717}
32718_ACEOF
32719rm -f conftest.$ac_objext conftest$ac_exeext
32720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32721 (eval $ac_link) 2>conftest.er1
a848cd7e 32722 ac_status=$?
ac1cb8d3
VS
32723 grep -v '^ *+' conftest.er1 >conftest.err
32724 rm -f conftest.er1
32725 cat conftest.err >&5
a848cd7e
SC
32726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727 (exit $ac_status); } &&
9dd0f6c2 32728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32730 (eval $ac_try) 2>&5
32731 ac_status=$?
32732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733 (exit $ac_status); }; } &&
32734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32736 (eval $ac_try) 2>&5
32737 ac_status=$?
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); }; }; then
32740 ac_cv_lib_posix4_nanosleep=yes
32741else
32742 echo "$as_me: failed program was:" >&5
32743sed 's/^/| /' conftest.$ac_ext >&5
32744
32745ac_cv_lib_posix4_nanosleep=no
32746fi
ac1cb8d3
VS
32747rm -f conftest.err conftest.$ac_objext \
32748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32749LIBS=$ac_check_lib_save_LIBS
32750fi
32751echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32752echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32753if test $ac_cv_lib_posix4_nanosleep = yes; then
32754
32755 cat >>confdefs.h <<\_ACEOF
32756#define HAVE_NANOSLEEP 1
32757_ACEOF
32758
32759 POSIX4_LINK=" -lposix4"
32760
32761else
32762
32763
32764for ac_func in usleep
32765do
32766as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32767echo "$as_me:$LINENO: checking for $ac_func" >&5
32768echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32769if eval "test \"\${$as_ac_var+set}\" = set"; then
32770 echo $ECHO_N "(cached) $ECHO_C" >&6
32771else
32772 cat >conftest.$ac_ext <<_ACEOF
32773/* confdefs.h. */
32774_ACEOF
32775cat confdefs.h >>conftest.$ac_ext
32776cat >>conftest.$ac_ext <<_ACEOF
32777/* end confdefs.h. */
ac1cb8d3
VS
32778/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32780#define $ac_func innocuous_$ac_func
32781
a848cd7e
SC
32782/* System header to define __stub macros and hopefully few prototypes,
32783 which can conflict with char $ac_func (); below.
32784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32785 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32786
a848cd7e
SC
32787#ifdef __STDC__
32788# include <limits.h>
32789#else
32790# include <assert.h>
32791#endif
ac1cb8d3
VS
32792
32793#undef $ac_func
32794
a848cd7e
SC
32795/* Override any gcc2 internal prototype to avoid an error. */
32796#ifdef __cplusplus
32797extern "C"
32798{
32799#endif
32800/* We use char because int might match the return type of a gcc2
32801 builtin and then its argument prototype would still apply. */
32802char $ac_func ();
32803/* The GNU C library defines this for functions which it implements
32804 to always fail with ENOSYS. Some functions are actually named
32805 something starting with __ and the normal name is an alias. */
32806#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32807choke me
32808#else
32809char (*f) () = $ac_func;
32810#endif
32811#ifdef __cplusplus
32812}
32813#endif
32814
32815int
32816main ()
32817{
32818return f != $ac_func;
32819 ;
32820 return 0;
32821}
32822_ACEOF
32823rm -f conftest.$ac_objext conftest$ac_exeext
32824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32825 (eval $ac_link) 2>conftest.er1
a848cd7e 32826 ac_status=$?
ac1cb8d3
VS
32827 grep -v '^ *+' conftest.er1 >conftest.err
32828 rm -f conftest.er1
32829 cat conftest.err >&5
a848cd7e
SC
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); } &&
9dd0f6c2 32832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32834 (eval $ac_try) 2>&5
32835 ac_status=$?
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; } &&
32838 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32840 (eval $ac_try) 2>&5
32841 ac_status=$?
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); }; }; then
32844 eval "$as_ac_var=yes"
32845else
32846 echo "$as_me: failed program was:" >&5
32847sed 's/^/| /' conftest.$ac_ext >&5
32848
32849eval "$as_ac_var=no"
32850fi
ac1cb8d3
VS
32851rm -f conftest.err conftest.$ac_objext \
32852 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32853fi
32854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32855echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32856if test `eval echo '${'$as_ac_var'}'` = yes; then
32857 cat >>confdefs.h <<_ACEOF
32858#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32859_ACEOF
32860 cat >>confdefs.h <<\_ACEOF
32861#define HAVE_USLEEP 1
32862_ACEOF
32863
32864else
32865 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32866echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32867
32868fi
32869done
32870
32871
32872
32873fi
32874
32875
32876
32877fi
32878done
32879
32880fi
32881
32882
32883
32884for ac_func in uname gethostname
32885do
32886as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32887echo "$as_me:$LINENO: checking for $ac_func" >&5
32888echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32889if eval "test \"\${$as_ac_var+set}\" = set"; then
32890 echo $ECHO_N "(cached) $ECHO_C" >&6
32891else
32892 cat >conftest.$ac_ext <<_ACEOF
32893/* confdefs.h. */
32894_ACEOF
32895cat confdefs.h >>conftest.$ac_ext
32896cat >>conftest.$ac_ext <<_ACEOF
32897/* end confdefs.h. */
ac1cb8d3
VS
32898/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32900#define $ac_func innocuous_$ac_func
32901
a848cd7e
SC
32902/* System header to define __stub macros and hopefully few prototypes,
32903 which can conflict with char $ac_func (); below.
32904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32905 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32906
a848cd7e
SC
32907#ifdef __STDC__
32908# include <limits.h>
32909#else
32910# include <assert.h>
32911#endif
ac1cb8d3
VS
32912
32913#undef $ac_func
32914
a848cd7e
SC
32915/* Override any gcc2 internal prototype to avoid an error. */
32916#ifdef __cplusplus
32917extern "C"
32918{
32919#endif
32920/* We use char because int might match the return type of a gcc2
32921 builtin and then its argument prototype would still apply. */
32922char $ac_func ();
32923/* The GNU C library defines this for functions which it implements
32924 to always fail with ENOSYS. Some functions are actually named
32925 something starting with __ and the normal name is an alias. */
32926#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32927choke me
32928#else
32929char (*f) () = $ac_func;
32930#endif
32931#ifdef __cplusplus
32932}
32933#endif
32934
32935int
32936main ()
32937{
32938return f != $ac_func;
32939 ;
32940 return 0;
32941}
32942_ACEOF
32943rm -f conftest.$ac_objext conftest$ac_exeext
32944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32945 (eval $ac_link) 2>conftest.er1
a848cd7e 32946 ac_status=$?
ac1cb8d3
VS
32947 grep -v '^ *+' conftest.er1 >conftest.err
32948 rm -f conftest.er1
32949 cat conftest.err >&5
a848cd7e
SC
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); } &&
9dd0f6c2 32952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954 (eval $ac_try) 2>&5
32955 ac_status=$?
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); }; } &&
32958 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32960 (eval $ac_try) 2>&5
32961 ac_status=$?
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); }; }; then
32964 eval "$as_ac_var=yes"
32965else
32966 echo "$as_me: failed program was:" >&5
32967sed 's/^/| /' conftest.$ac_ext >&5
32968
32969eval "$as_ac_var=no"
32970fi
ac1cb8d3
VS
32971rm -f conftest.err conftest.$ac_objext \
32972 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32973fi
32974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32975echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32976if test `eval echo '${'$as_ac_var'}'` = yes; then
32977 cat >>confdefs.h <<_ACEOF
32978#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32979_ACEOF
32980 break
32981fi
32982done
32983
32984
32985
32986
32987ac_ext=cc
32988ac_cpp='$CXXCPP $CPPFLAGS'
32989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32992
32993
32994
32995for ac_func in strtok_r
32996do
32997as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32998echo "$as_me:$LINENO: checking for $ac_func" >&5
32999echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33000if eval "test \"\${$as_ac_var+set}\" = set"; then
33001 echo $ECHO_N "(cached) $ECHO_C" >&6
33002else
33003 cat >conftest.$ac_ext <<_ACEOF
33004/* confdefs.h. */
33005_ACEOF
33006cat confdefs.h >>conftest.$ac_ext
33007cat >>conftest.$ac_ext <<_ACEOF
33008/* end confdefs.h. */
ac1cb8d3
VS
33009/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33011#define $ac_func innocuous_$ac_func
33012
a848cd7e
SC
33013/* System header to define __stub macros and hopefully few prototypes,
33014 which can conflict with char $ac_func (); below.
33015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33016 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33017
a848cd7e
SC
33018#ifdef __STDC__
33019# include <limits.h>
33020#else
33021# include <assert.h>
33022#endif
ac1cb8d3
VS
33023
33024#undef $ac_func
33025
a848cd7e
SC
33026/* Override any gcc2 internal prototype to avoid an error. */
33027#ifdef __cplusplus
33028extern "C"
33029{
33030#endif
33031/* We use char because int might match the return type of a gcc2
33032 builtin and then its argument prototype would still apply. */
33033char $ac_func ();
33034/* The GNU C library defines this for functions which it implements
33035 to always fail with ENOSYS. Some functions are actually named
33036 something starting with __ and the normal name is an alias. */
33037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33038choke me
33039#else
33040char (*f) () = $ac_func;
33041#endif
33042#ifdef __cplusplus
33043}
33044#endif
33045
33046int
33047main ()
33048{
33049return f != $ac_func;
33050 ;
33051 return 0;
33052}
33053_ACEOF
33054rm -f conftest.$ac_objext conftest$ac_exeext
33055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33056 (eval $ac_link) 2>conftest.er1
a848cd7e 33057 ac_status=$?
ac1cb8d3
VS
33058 grep -v '^ *+' conftest.er1 >conftest.err
33059 rm -f conftest.er1
33060 cat conftest.err >&5
a848cd7e
SC
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); } &&
9dd0f6c2 33063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33065 (eval $ac_try) 2>&5
33066 ac_status=$?
33067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068 (exit $ac_status); }; } &&
33069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33071 (eval $ac_try) 2>&5
33072 ac_status=$?
33073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074 (exit $ac_status); }; }; then
33075 eval "$as_ac_var=yes"
33076else
33077 echo "$as_me: failed program was:" >&5
33078sed 's/^/| /' conftest.$ac_ext >&5
33079
33080eval "$as_ac_var=no"
33081fi
ac1cb8d3
VS
33082rm -f conftest.err conftest.$ac_objext \
33083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33084fi
33085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33087if test `eval echo '${'$as_ac_var'}'` = yes; then
33088 cat >>confdefs.h <<_ACEOF
33089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33090_ACEOF
33091
33092fi
33093done
33094
33095
33096ac_ext=c
33097ac_cpp='$CPP $CPPFLAGS'
33098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33100ac_compiler_gnu=$ac_cv_c_compiler_gnu
33101
33102
33103INET_LINK=
33104
33105for ac_func in inet_addr
33106do
33107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33108echo "$as_me:$LINENO: checking for $ac_func" >&5
33109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33110if eval "test \"\${$as_ac_var+set}\" = set"; then
33111 echo $ECHO_N "(cached) $ECHO_C" >&6
33112else
33113 cat >conftest.$ac_ext <<_ACEOF
33114/* confdefs.h. */
33115_ACEOF
33116cat confdefs.h >>conftest.$ac_ext
33117cat >>conftest.$ac_ext <<_ACEOF
33118/* end confdefs.h. */
ac1cb8d3
VS
33119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33121#define $ac_func innocuous_$ac_func
33122
a848cd7e
SC
33123/* System header to define __stub macros and hopefully few prototypes,
33124 which can conflict with char $ac_func (); below.
33125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33126 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33127
a848cd7e
SC
33128#ifdef __STDC__
33129# include <limits.h>
33130#else
33131# include <assert.h>
33132#endif
ac1cb8d3
VS
33133
33134#undef $ac_func
33135
a848cd7e
SC
33136/* Override any gcc2 internal prototype to avoid an error. */
33137#ifdef __cplusplus
33138extern "C"
33139{
33140#endif
33141/* We use char because int might match the return type of a gcc2
33142 builtin and then its argument prototype would still apply. */
33143char $ac_func ();
33144/* The GNU C library defines this for functions which it implements
33145 to always fail with ENOSYS. Some functions are actually named
33146 something starting with __ and the normal name is an alias. */
33147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33148choke me
33149#else
33150char (*f) () = $ac_func;
33151#endif
33152#ifdef __cplusplus
33153}
33154#endif
33155
33156int
33157main ()
33158{
33159return f != $ac_func;
33160 ;
33161 return 0;
33162}
33163_ACEOF
33164rm -f conftest.$ac_objext conftest$ac_exeext
33165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33166 (eval $ac_link) 2>conftest.er1
a848cd7e 33167 ac_status=$?
ac1cb8d3
VS
33168 grep -v '^ *+' conftest.er1 >conftest.err
33169 rm -f conftest.er1
33170 cat conftest.err >&5
a848cd7e
SC
33171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33172 (exit $ac_status); } &&
9dd0f6c2 33173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33175 (eval $ac_try) 2>&5
33176 ac_status=$?
33177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33178 (exit $ac_status); }; } &&
33179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33181 (eval $ac_try) 2>&5
33182 ac_status=$?
33183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33184 (exit $ac_status); }; }; then
33185 eval "$as_ac_var=yes"
33186else
33187 echo "$as_me: failed program was:" >&5
33188sed 's/^/| /' conftest.$ac_ext >&5
33189
33190eval "$as_ac_var=no"
33191fi
ac1cb8d3
VS
33192rm -f conftest.err conftest.$ac_objext \
33193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33194fi
33195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33196echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33197if test `eval echo '${'$as_ac_var'}'` = yes; then
33198 cat >>confdefs.h <<_ACEOF
33199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33200_ACEOF
33201 cat >>confdefs.h <<\_ACEOF
33202#define HAVE_INET_ADDR 1
33203_ACEOF
33204
33205else
33206
33207 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33208echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33209if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33210 echo $ECHO_N "(cached) $ECHO_C" >&6
33211else
33212 ac_check_lib_save_LIBS=$LIBS
33213LIBS="-lnsl $LIBS"
33214cat >conftest.$ac_ext <<_ACEOF
33215/* confdefs.h. */
33216_ACEOF
33217cat confdefs.h >>conftest.$ac_ext
33218cat >>conftest.$ac_ext <<_ACEOF
33219/* end confdefs.h. */
33220
33221/* Override any gcc2 internal prototype to avoid an error. */
33222#ifdef __cplusplus
33223extern "C"
33224#endif
33225/* We use char because int might match the return type of a gcc2
33226 builtin and then its argument prototype would still apply. */
33227char inet_addr ();
33228int
33229main ()
33230{
33231inet_addr ();
33232 ;
33233 return 0;
33234}
33235_ACEOF
33236rm -f conftest.$ac_objext conftest$ac_exeext
33237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33238 (eval $ac_link) 2>conftest.er1
a848cd7e 33239 ac_status=$?
ac1cb8d3
VS
33240 grep -v '^ *+' conftest.er1 >conftest.err
33241 rm -f conftest.er1
33242 cat conftest.err >&5
a848cd7e
SC
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); } &&
9dd0f6c2 33245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
33251 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33253 (eval $ac_try) 2>&5
33254 ac_status=$?
33255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256 (exit $ac_status); }; }; then
33257 ac_cv_lib_nsl_inet_addr=yes
33258else
33259 echo "$as_me: failed program was:" >&5
33260sed 's/^/| /' conftest.$ac_ext >&5
33261
33262ac_cv_lib_nsl_inet_addr=no
33263fi
ac1cb8d3
VS
33264rm -f conftest.err conftest.$ac_objext \
33265 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33266LIBS=$ac_check_lib_save_LIBS
33267fi
33268echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33269echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33270if test $ac_cv_lib_nsl_inet_addr = yes; then
33271 INET_LINK="nsl"
33272else
33273
33274 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33275echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33276if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33277 echo $ECHO_N "(cached) $ECHO_C" >&6
33278else
33279 ac_check_lib_save_LIBS=$LIBS
33280LIBS="-lresolv $LIBS"
33281cat >conftest.$ac_ext <<_ACEOF
33282/* confdefs.h. */
33283_ACEOF
33284cat confdefs.h >>conftest.$ac_ext
33285cat >>conftest.$ac_ext <<_ACEOF
33286/* end confdefs.h. */
33287
33288/* Override any gcc2 internal prototype to avoid an error. */
33289#ifdef __cplusplus
33290extern "C"
33291#endif
33292/* We use char because int might match the return type of a gcc2
33293 builtin and then its argument prototype would still apply. */
33294char inet_addr ();
33295int
33296main ()
33297{
33298inet_addr ();
33299 ;
33300 return 0;
33301}
33302_ACEOF
33303rm -f conftest.$ac_objext conftest$ac_exeext
33304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33305 (eval $ac_link) 2>conftest.er1
a848cd7e 33306 ac_status=$?
ac1cb8d3
VS
33307 grep -v '^ *+' conftest.er1 >conftest.err
33308 rm -f conftest.er1
33309 cat conftest.err >&5
a848cd7e
SC
33310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311 (exit $ac_status); } &&
9dd0f6c2 33312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33314 (eval $ac_try) 2>&5
33315 ac_status=$?
33316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33317 (exit $ac_status); }; } &&
33318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33320 (eval $ac_try) 2>&5
33321 ac_status=$?
33322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33323 (exit $ac_status); }; }; then
33324 ac_cv_lib_resolv_inet_addr=yes
33325else
33326 echo "$as_me: failed program was:" >&5
33327sed 's/^/| /' conftest.$ac_ext >&5
33328
33329ac_cv_lib_resolv_inet_addr=no
33330fi
ac1cb8d3
VS
33331rm -f conftest.err conftest.$ac_objext \
33332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33333LIBS=$ac_check_lib_save_LIBS
33334fi
33335echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33336echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33337if test $ac_cv_lib_resolv_inet_addr = yes; then
33338 INET_LINK="resolv"
33339else
33340
33341 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33342echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33343if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33344 echo $ECHO_N "(cached) $ECHO_C" >&6
33345else
33346 ac_check_lib_save_LIBS=$LIBS
33347LIBS="-lsocket $LIBS"
33348cat >conftest.$ac_ext <<_ACEOF
33349/* confdefs.h. */
33350_ACEOF
33351cat confdefs.h >>conftest.$ac_ext
33352cat >>conftest.$ac_ext <<_ACEOF
33353/* end confdefs.h. */
33354
33355/* Override any gcc2 internal prototype to avoid an error. */
33356#ifdef __cplusplus
33357extern "C"
33358#endif
33359/* We use char because int might match the return type of a gcc2
33360 builtin and then its argument prototype would still apply. */
33361char inet_addr ();
33362int
33363main ()
33364{
33365inet_addr ();
33366 ;
33367 return 0;
33368}
33369_ACEOF
33370rm -f conftest.$ac_objext conftest$ac_exeext
33371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33372 (eval $ac_link) 2>conftest.er1
a848cd7e 33373 ac_status=$?
ac1cb8d3
VS
33374 grep -v '^ *+' conftest.er1 >conftest.err
33375 rm -f conftest.er1
33376 cat conftest.err >&5
a848cd7e
SC
33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378 (exit $ac_status); } &&
9dd0f6c2 33379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33381 (eval $ac_try) 2>&5
33382 ac_status=$?
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); }; } &&
33385 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33387 (eval $ac_try) 2>&5
33388 ac_status=$?
33389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390 (exit $ac_status); }; }; then
33391 ac_cv_lib_socket_inet_addr=yes
33392else
33393 echo "$as_me: failed program was:" >&5
33394sed 's/^/| /' conftest.$ac_ext >&5
33395
33396ac_cv_lib_socket_inet_addr=no
33397fi
ac1cb8d3
VS
33398rm -f conftest.err conftest.$ac_objext \
33399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33400LIBS=$ac_check_lib_save_LIBS
33401fi
33402echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33403echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33404if test $ac_cv_lib_socket_inet_addr = yes; then
33405 INET_LINK="socket"
33406
33407fi
33408
33409
33410
33411fi
33412
33413
33414
33415fi
33416
33417
33418
33419fi
33420done
33421
33422
33423
33424for ac_func in inet_aton
33425do
33426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33427echo "$as_me:$LINENO: checking for $ac_func" >&5
33428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33429if eval "test \"\${$as_ac_var+set}\" = set"; then
33430 echo $ECHO_N "(cached) $ECHO_C" >&6
33431else
33432 cat >conftest.$ac_ext <<_ACEOF
33433/* confdefs.h. */
33434_ACEOF
33435cat confdefs.h >>conftest.$ac_ext
33436cat >>conftest.$ac_ext <<_ACEOF
33437/* end confdefs.h. */
ac1cb8d3
VS
33438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33440#define $ac_func innocuous_$ac_func
33441
a848cd7e
SC
33442/* System header to define __stub macros and hopefully few prototypes,
33443 which can conflict with char $ac_func (); below.
33444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33445 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33446
a848cd7e
SC
33447#ifdef __STDC__
33448# include <limits.h>
33449#else
33450# include <assert.h>
33451#endif
ac1cb8d3
VS
33452
33453#undef $ac_func
33454
a848cd7e
SC
33455/* Override any gcc2 internal prototype to avoid an error. */
33456#ifdef __cplusplus
33457extern "C"
33458{
33459#endif
33460/* We use char because int might match the return type of a gcc2
33461 builtin and then its argument prototype would still apply. */
33462char $ac_func ();
33463/* The GNU C library defines this for functions which it implements
33464 to always fail with ENOSYS. Some functions are actually named
33465 something starting with __ and the normal name is an alias. */
33466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33467choke me
33468#else
33469char (*f) () = $ac_func;
33470#endif
33471#ifdef __cplusplus
33472}
33473#endif
33474
33475int
33476main ()
33477{
33478return f != $ac_func;
33479 ;
33480 return 0;
33481}
33482_ACEOF
33483rm -f conftest.$ac_objext conftest$ac_exeext
33484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33485 (eval $ac_link) 2>conftest.er1
a848cd7e 33486 ac_status=$?
ac1cb8d3
VS
33487 grep -v '^ *+' conftest.er1 >conftest.err
33488 rm -f conftest.er1
33489 cat conftest.err >&5
a848cd7e
SC
33490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 (exit $ac_status); } &&
9dd0f6c2 33492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33494 (eval $ac_try) 2>&5
33495 ac_status=$?
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); }; } &&
33498 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33500 (eval $ac_try) 2>&5
33501 ac_status=$?
33502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33503 (exit $ac_status); }; }; then
33504 eval "$as_ac_var=yes"
33505else
33506 echo "$as_me: failed program was:" >&5
33507sed 's/^/| /' conftest.$ac_ext >&5
33508
33509eval "$as_ac_var=no"
33510fi
ac1cb8d3
VS
33511rm -f conftest.err conftest.$ac_objext \
33512 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33513fi
33514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33515echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33516if test `eval echo '${'$as_ac_var'}'` = yes; then
33517 cat >>confdefs.h <<_ACEOF
33518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33519_ACEOF
33520 cat >>confdefs.h <<\_ACEOF
33521#define HAVE_INET_ATON 1
33522_ACEOF
33523
33524else
33525
33526 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33527echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33528echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33529if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33530 echo $ECHO_N "(cached) $ECHO_C" >&6
33531else
33532 ac_check_lib_save_LIBS=$LIBS
33533LIBS="-l$INET_LINK $LIBS"
33534cat >conftest.$ac_ext <<_ACEOF
33535/* confdefs.h. */
33536_ACEOF
33537cat confdefs.h >>conftest.$ac_ext
33538cat >>conftest.$ac_ext <<_ACEOF
33539/* end confdefs.h. */
33540
33541/* Override any gcc2 internal prototype to avoid an error. */
33542#ifdef __cplusplus
33543extern "C"
33544#endif
33545/* We use char because int might match the return type of a gcc2
33546 builtin and then its argument prototype would still apply. */
33547char inet_aton ();
33548int
33549main ()
33550{
33551inet_aton ();
33552 ;
33553 return 0;
33554}
33555_ACEOF
33556rm -f conftest.$ac_objext conftest$ac_exeext
33557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33558 (eval $ac_link) 2>conftest.er1
a848cd7e 33559 ac_status=$?
ac1cb8d3
VS
33560 grep -v '^ *+' conftest.er1 >conftest.err
33561 rm -f conftest.er1
33562 cat conftest.err >&5
a848cd7e
SC
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564 (exit $ac_status); } &&
9dd0f6c2 33565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33567 (eval $ac_try) 2>&5
33568 ac_status=$?
33569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33570 (exit $ac_status); }; } &&
33571 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33573 (eval $ac_try) 2>&5
33574 ac_status=$?
33575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33576 (exit $ac_status); }; }; then
33577 eval "$as_ac_Lib=yes"
33578else
33579 echo "$as_me: failed program was:" >&5
33580sed 's/^/| /' conftest.$ac_ext >&5
33581
33582eval "$as_ac_Lib=no"
33583fi
ac1cb8d3
VS
33584rm -f conftest.err conftest.$ac_objext \
33585 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33586LIBS=$ac_check_lib_save_LIBS
33587fi
33588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33589echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33590if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33591 cat >>confdefs.h <<\_ACEOF
33592#define HAVE_INET_ATON 1
33593_ACEOF
33594
33595fi
33596
33597
33598fi
33599done
33600
33601
33602if test "x$INET_LINK" != "x"; then
33603 cat >>confdefs.h <<\_ACEOF
33604#define HAVE_INET_ADDR 1
33605_ACEOF
33606
33607 INET_LINK=" -l$INET_LINK"
33608fi
33609
33610fi
33611
33612
33613
33614EXTRALIBS_ESD=
33615echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33616echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33617if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33618 echo $ECHO_N "(cached) $ECHO_C" >&6
33619else
33620 ac_check_lib_save_LIBS=$LIBS
33621LIBS="-lesd $LIBS"
33622cat >conftest.$ac_ext <<_ACEOF
33623/* confdefs.h. */
33624_ACEOF
33625cat confdefs.h >>conftest.$ac_ext
33626cat >>conftest.$ac_ext <<_ACEOF
33627/* end confdefs.h. */
33628
33629/* Override any gcc2 internal prototype to avoid an error. */
33630#ifdef __cplusplus
33631extern "C"
33632#endif
33633/* We use char because int might match the return type of a gcc2
33634 builtin and then its argument prototype would still apply. */
33635char esd_close ();
33636int
33637main ()
33638{
33639esd_close ();
33640 ;
33641 return 0;
33642}
33643_ACEOF
33644rm -f conftest.$ac_objext conftest$ac_exeext
33645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33646 (eval $ac_link) 2>conftest.er1
a848cd7e 33647 ac_status=$?
ac1cb8d3
VS
33648 grep -v '^ *+' conftest.er1 >conftest.err
33649 rm -f conftest.er1
33650 cat conftest.err >&5
a848cd7e
SC
33651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33652 (exit $ac_status); } &&
9dd0f6c2 33653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33655 (eval $ac_try) 2>&5
33656 ac_status=$?
33657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658 (exit $ac_status); }; } &&
33659 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33661 (eval $ac_try) 2>&5
33662 ac_status=$?
33663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33664 (exit $ac_status); }; }; then
33665 ac_cv_lib_esd_esd_close=yes
33666else
33667 echo "$as_me: failed program was:" >&5
33668sed 's/^/| /' conftest.$ac_ext >&5
33669
33670ac_cv_lib_esd_esd_close=no
33671fi
ac1cb8d3
VS
33672rm -f conftest.err conftest.$ac_objext \
33673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33674LIBS=$ac_check_lib_save_LIBS
33675fi
33676echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33677echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33678if test $ac_cv_lib_esd_esd_close = yes; then
33679
33680
33681for ac_header in esd.h
33682do
33683as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33684if eval "test \"\${$as_ac_Header+set}\" = set"; then
33685 echo "$as_me:$LINENO: checking for $ac_header" >&5
33686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33687if eval "test \"\${$as_ac_Header+set}\" = set"; then
33688 echo $ECHO_N "(cached) $ECHO_C" >&6
33689fi
33690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33692else
33693 # Is the header compilable?
33694echo "$as_me:$LINENO: checking $ac_header usability" >&5
33695echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33696cat >conftest.$ac_ext <<_ACEOF
33697/* confdefs.h. */
33698_ACEOF
33699cat confdefs.h >>conftest.$ac_ext
33700cat >>conftest.$ac_ext <<_ACEOF
33701/* end confdefs.h. */
33702$ac_includes_default
33703#include <$ac_header>
33704_ACEOF
33705rm -f conftest.$ac_objext
33706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33707 (eval $ac_compile) 2>conftest.er1
a848cd7e 33708 ac_status=$?
ac1cb8d3
VS
33709 grep -v '^ *+' conftest.er1 >conftest.err
33710 rm -f conftest.er1
33711 cat conftest.err >&5
a848cd7e
SC
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); } &&
9dd0f6c2 33714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716 (eval $ac_try) 2>&5
33717 ac_status=$?
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); }; } &&
33720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33722 (eval $ac_try) 2>&5
33723 ac_status=$?
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); }; }; then
33726 ac_header_compiler=yes
33727else
33728 echo "$as_me: failed program was:" >&5
33729sed 's/^/| /' conftest.$ac_ext >&5
33730
33731ac_header_compiler=no
33732fi
ac1cb8d3 33733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33734echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33735echo "${ECHO_T}$ac_header_compiler" >&6
33736
33737# Is the header present?
33738echo "$as_me:$LINENO: checking $ac_header presence" >&5
33739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33740cat >conftest.$ac_ext <<_ACEOF
33741/* confdefs.h. */
33742_ACEOF
33743cat confdefs.h >>conftest.$ac_ext
33744cat >>conftest.$ac_ext <<_ACEOF
33745/* end confdefs.h. */
33746#include <$ac_header>
33747_ACEOF
33748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33750 ac_status=$?
33751 grep -v '^ *+' conftest.er1 >conftest.err
33752 rm -f conftest.er1
33753 cat conftest.err >&5
33754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33755 (exit $ac_status); } >/dev/null; then
33756 if test -s conftest.err; then
33757 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33759 else
33760 ac_cpp_err=
33761 fi
33762else
33763 ac_cpp_err=yes
33764fi
33765if test -z "$ac_cpp_err"; then
33766 ac_header_preproc=yes
33767else
33768 echo "$as_me: failed program was:" >&5
33769sed 's/^/| /' conftest.$ac_ext >&5
33770
33771 ac_header_preproc=no
33772fi
33773rm -f conftest.err conftest.$ac_ext
33774echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33775echo "${ECHO_T}$ac_header_preproc" >&6
33776
33777# So? What about this header?
ac1cb8d3
VS
33778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33779 yes:no: )
a848cd7e
SC
33780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33784 ac_header_preproc=yes
a848cd7e 33785 ;;
ac1cb8d3 33786 no:yes:* )
a848cd7e
SC
33787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33790echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33794echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33799 (
33800 cat <<\_ASBOX
ac1cb8d3
VS
33801## ----------------------------------------- ##
33802## Report this to wx-dev@lists.wxwidgets.org ##
33803## ----------------------------------------- ##
a848cd7e
SC
33804_ASBOX
33805 ) |
33806 sed "s/^/$as_me: WARNING: /" >&2
33807 ;;
33808esac
33809echo "$as_me:$LINENO: checking for $ac_header" >&5
33810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33811if eval "test \"\${$as_ac_Header+set}\" = set"; then
33812 echo $ECHO_N "(cached) $ECHO_C" >&6
33813else
ac1cb8d3 33814 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33815fi
33816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33818
33819fi
33820if test `eval echo '${'$as_ac_Header'}'` = yes; then
33821 cat >>confdefs.h <<_ACEOF
33822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33823_ACEOF
33824
33825 EXTRALIBS_ESD="-lesd"
33826
33827fi
33828
33829done
33830
33831
33832fi
33833
33834
33835
33836echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33837echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33838cat >conftest.$ac_ext <<_ACEOF
33839/* confdefs.h. */
33840_ACEOF
33841cat confdefs.h >>conftest.$ac_ext
33842cat >>conftest.$ac_ext <<_ACEOF
33843/* end confdefs.h. */
33844#ifdef __linux__
33845 #include <linux/cdrom.h>
33846 #else
33847 /* For Solaris */
33848 #include <sys/cdio.h>
33849 #endif
33850
33851int
33852main ()
33853{
33854struct cdrom_tocentry entry, old_entry;
33855 ;
33856 return 0;
33857}
33858_ACEOF
33859rm -f conftest.$ac_objext
33860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33861 (eval $ac_compile) 2>conftest.er1
a848cd7e 33862 ac_status=$?
ac1cb8d3
VS
33863 grep -v '^ *+' conftest.er1 >conftest.err
33864 rm -f conftest.er1
33865 cat conftest.err >&5
a848cd7e
SC
33866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33867 (exit $ac_status); } &&
9dd0f6c2 33868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33870 (eval $ac_try) 2>&5
33871 ac_status=$?
33872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33873 (exit $ac_status); }; } &&
33874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33876 (eval $ac_try) 2>&5
33877 ac_status=$?
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; }; then
33880 echo "$as_me:$LINENO: result: yes" >&5
33881echo "${ECHO_T}yes" >&6
33882 cat >>confdefs.h <<\_ACEOF
33883#define HAVE_KNOWN_CDROM_INTERFACE 1
33884_ACEOF
33885
33886else
33887 echo "$as_me: failed program was:" >&5
33888sed 's/^/| /' conftest.$ac_ext >&5
33889
33890echo "$as_me:$LINENO: result: no" >&5
33891echo "${ECHO_T}no" >&6
33892fi
ac1cb8d3 33893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33894
33895
33896cat >confcache <<\_ACEOF
33897# This file is a shell script that caches the results of configure
33898# tests run on this system so they can be shared between configure
33899# scripts and configure runs, see configure's option --config-cache.
33900# It is not useful on other systems. If it contains results you don't
33901# want to keep, you may remove or edit it.
33902#
33903# config.status only pays attention to the cache file if you give it
33904# the --recheck option to rerun configure.
33905#
33906# `ac_cv_env_foo' variables (set or unset) will be overridden when
33907# loading this file, other *unset* `ac_cv_foo' will be assigned the
33908# following values.
33909
33910_ACEOF
33911
33912# The following way of writing the cache mishandles newlines in values,
33913# but we know of no workaround that is simple, portable, and efficient.
33914# So, don't put newlines in cache variables' values.
33915# Ultrix sh set writes to stderr and can't be redirected directly,
33916# and sets the high bit in the cache file unless we assign to the vars.
33917{
33918 (set) 2>&1 |
33919 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33920 *ac_space=\ *)
33921 # `set' does not quote correctly, so add quotes (double-quote
33922 # substitution turns \\\\ into \\, and sed turns \\ into \).
33923 sed -n \
ac1cb8d3
VS
33924 "s/'/'\\\\''/g;
33925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33926 ;;
33927 *)
33928 # `set' quotes correctly as required by POSIX, so do not add quotes.
33929 sed -n \
ac1cb8d3 33930 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33931 ;;
33932 esac;
33933} |
33934 sed '
33935 t clear
33936 : clear
33937 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33938 t end
33939 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33940 : end' >>confcache
33941if diff $cache_file confcache >/dev/null 2>&1; then :; else
33942 if test -w $cache_file; then
33943 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33944 cat confcache >$cache_file
33945 else
33946 echo "not updating unwritable cache $cache_file"
33947 fi
33948fi
33949rm -f confcache
33950
33951
33952CPP_MT_FLAG=
33953if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33954
33955
33956 THREADS_LINK=
33957 THREADS_CFLAGS=
33958
33959 if test "$wxUSE_THREADS" = "yes" ; then
33960 if test "$USE_BEOS" = 1; then
33961 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33962echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33963 wxUSE_THREADS="no"
33964 fi
33965 fi
33966
33967 if test "$wxUSE_THREADS" = "yes" ; then
33968
33969
33970 THREAD_OPTS="-pthread"
33971 case "${host}" in
33972 *-*-solaris2* | *-*-sunos4* )
33973 if test "x$GCC" = "xyes"; then
33974 THREAD_OPTS="-pthreads $THREAD_OPTS"
33975 else
33976 THREAD_OPTS="-mt $THREAD_OPTS"
33977 fi
33978 ;;
33979 *-*-freebsd*)
33980 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33981 ;;
33982 *-*-darwin* | *-*-cygwin* )
33983 THREAD_OPTS=""
33984 ;;
33985 *-*-aix*)
33986 THREAD_OPTS="pthreads"
33987 ;;
33988 *-hp-hpux* )
33989 if test "x$GCC" != "xyes"; then
33990 THREAD_OPTS=""
33991 fi
33992 ;;
33993
33994 *-*-irix* )
33995 if test "x$GCC" = "xyes"; then
33996 THREAD_OPTS=""
33997 fi
33998 ;;
33999
34000 *-*-*UnixWare*)
34001 if test "x$GCC" != "xyes"; then
34002 THREAD_OPTS="-Ethread"
34003 fi
34004 ;;
34005 esac
34006
34007 THREAD_OPTS="$THREAD_OPTS pthread none"
34008
34009 THREADS_OK=no
34010 for flag in $THREAD_OPTS; do
34011 case $flag in
34012 none)
34013 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34014echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34015 ;;
34016
34017 -*)
34018 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34019echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34020 THREADS_CFLAGS="$flag"
34021 ;;
34022
34023 *)
34024 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34025echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34026 THREADS_LINK="-l$flag"
34027 ;;
34028 esac
34029
34030 save_LIBS="$LIBS"
34031 save_CFLAGS="$CFLAGS"
34032 LIBS="$THREADS_LINK $LIBS"
34033 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34034
34035 cat >conftest.$ac_ext <<_ACEOF
34036/* confdefs.h. */
34037_ACEOF
34038cat confdefs.h >>conftest.$ac_ext
34039cat >>conftest.$ac_ext <<_ACEOF
34040/* end confdefs.h. */
34041#include <pthread.h>
34042int
34043main ()
34044{
34045pthread_create(0,0,0,0);
34046 ;
34047 return 0;
34048}
34049_ACEOF
34050rm -f conftest.$ac_objext conftest$ac_exeext
34051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34052 (eval $ac_link) 2>conftest.er1
a848cd7e 34053 ac_status=$?
ac1cb8d3
VS
34054 grep -v '^ *+' conftest.er1 >conftest.err
34055 rm -f conftest.er1
34056 cat conftest.err >&5
a848cd7e
SC
34057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058 (exit $ac_status); } &&
9dd0f6c2 34059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34061 (eval $ac_try) 2>&5
34062 ac_status=$?
34063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34064 (exit $ac_status); }; } &&
34065 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34067 (eval $ac_try) 2>&5
34068 ac_status=$?
34069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070 (exit $ac_status); }; }; then
34071 THREADS_OK=yes
34072else
34073 echo "$as_me: failed program was:" >&5
34074sed 's/^/| /' conftest.$ac_ext >&5
34075
34076fi
ac1cb8d3
VS
34077rm -f conftest.err conftest.$ac_objext \
34078 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34079
34080 LIBS="$save_LIBS"
34081 CFLAGS="$save_CFLAGS"
34082
34083 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34084echo "${ECHO_T}$THREADS_OK" >&6
34085 if test "x$THREADS_OK" = "xyes"; then
34086 break;
34087 fi
34088
34089 THREADS_LINK=""
34090 THREADS_CFLAGS=""
34091 done
34092
34093 if test "x$THREADS_OK" != "xyes"; then
34094 wxUSE_THREADS=no
34095 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34096echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34097 else
34098 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34099 LIBS="$THREADS_LINK $LIBS"
34100
34101 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34102echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34103 flag=no
34104 case "${host}" in
34105 *-aix*)
34106 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34107 flag="-D_THREAD_SAFE"
34108 ;;
34109 *-freebsd*)
34110 flag="-D_THREAD_SAFE"
34111 ;;
34112 *-hp-hpux* )
34113 flag="-D_REENTRANT"
34114 if test "x$GCC" != "xyes"; then
34115 flag="$flag -D_RWSTD_MULTI_THREAD"
34116 fi
34117 ;;
34118 *solaris* | alpha*-osf*)
34119 flag="-D_REENTRANT"
34120 ;;
34121 esac
34122 echo "$as_me:$LINENO: result: ${flag}" >&5
34123echo "${ECHO_T}${flag}" >&6
34124 if test "x$flag" != xno; then
34125 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34126 fi
34127
34128 if test "x$THREADS_CFLAGS" != "x"; then
34129 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34130 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34131 fi
34132 fi
34133 fi
34134
34135 if test "$wxUSE_THREADS" = "yes" ; then
34136
34137for ac_func in thr_setconcurrency
34138do
34139as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34140echo "$as_me:$LINENO: checking for $ac_func" >&5
34141echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34142if eval "test \"\${$as_ac_var+set}\" = set"; then
34143 echo $ECHO_N "(cached) $ECHO_C" >&6
34144else
34145 cat >conftest.$ac_ext <<_ACEOF
34146/* confdefs.h. */
34147_ACEOF
34148cat confdefs.h >>conftest.$ac_ext
34149cat >>conftest.$ac_ext <<_ACEOF
34150/* end confdefs.h. */
ac1cb8d3
VS
34151/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34153#define $ac_func innocuous_$ac_func
34154
a848cd7e
SC
34155/* System header to define __stub macros and hopefully few prototypes,
34156 which can conflict with char $ac_func (); below.
34157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34158 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34159
a848cd7e
SC
34160#ifdef __STDC__
34161# include <limits.h>
34162#else
34163# include <assert.h>
34164#endif
ac1cb8d3
VS
34165
34166#undef $ac_func
34167
a848cd7e
SC
34168/* Override any gcc2 internal prototype to avoid an error. */
34169#ifdef __cplusplus
34170extern "C"
34171{
34172#endif
34173/* We use char because int might match the return type of a gcc2
34174 builtin and then its argument prototype would still apply. */
34175char $ac_func ();
34176/* The GNU C library defines this for functions which it implements
34177 to always fail with ENOSYS. Some functions are actually named
34178 something starting with __ and the normal name is an alias. */
34179#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34180choke me
34181#else
34182char (*f) () = $ac_func;
34183#endif
34184#ifdef __cplusplus
34185}
34186#endif
34187
34188int
34189main ()
34190{
34191return f != $ac_func;
34192 ;
34193 return 0;
34194}
34195_ACEOF
34196rm -f conftest.$ac_objext conftest$ac_exeext
34197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34198 (eval $ac_link) 2>conftest.er1
a848cd7e 34199 ac_status=$?
ac1cb8d3
VS
34200 grep -v '^ *+' conftest.er1 >conftest.err
34201 rm -f conftest.er1
34202 cat conftest.err >&5
a848cd7e
SC
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); } &&
9dd0f6c2 34205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34207 (eval $ac_try) 2>&5
34208 ac_status=$?
34209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210 (exit $ac_status); }; } &&
34211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34213 (eval $ac_try) 2>&5
34214 ac_status=$?
34215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216 (exit $ac_status); }; }; then
34217 eval "$as_ac_var=yes"
34218else
34219 echo "$as_me: failed program was:" >&5
34220sed 's/^/| /' conftest.$ac_ext >&5
34221
34222eval "$as_ac_var=no"
34223fi
ac1cb8d3
VS
34224rm -f conftest.err conftest.$ac_objext \
34225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34226fi
34227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34228echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34229if test `eval echo '${'$as_ac_var'}'` = yes; then
34230 cat >>confdefs.h <<_ACEOF
34231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34232_ACEOF
34233
34234fi
34235done
34236
34237
34238
34239for ac_header in sched.h
34240do
34241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34242if eval "test \"\${$as_ac_Header+set}\" = set"; then
34243 echo "$as_me:$LINENO: checking for $ac_header" >&5
34244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34245if eval "test \"\${$as_ac_Header+set}\" = set"; then
34246 echo $ECHO_N "(cached) $ECHO_C" >&6
34247fi
34248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34250else
34251 # Is the header compilable?
34252echo "$as_me:$LINENO: checking $ac_header usability" >&5
34253echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34254cat >conftest.$ac_ext <<_ACEOF
34255/* confdefs.h. */
34256_ACEOF
34257cat confdefs.h >>conftest.$ac_ext
34258cat >>conftest.$ac_ext <<_ACEOF
34259/* end confdefs.h. */
34260$ac_includes_default
34261#include <$ac_header>
34262_ACEOF
34263rm -f conftest.$ac_objext
34264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34265 (eval $ac_compile) 2>conftest.er1
a848cd7e 34266 ac_status=$?
ac1cb8d3
VS
34267 grep -v '^ *+' conftest.er1 >conftest.err
34268 rm -f conftest.er1
34269 cat conftest.err >&5
a848cd7e
SC
34270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271 (exit $ac_status); } &&
9dd0f6c2 34272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34274 (eval $ac_try) 2>&5
34275 ac_status=$?
34276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277 (exit $ac_status); }; } &&
34278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34280 (eval $ac_try) 2>&5
34281 ac_status=$?
34282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34283 (exit $ac_status); }; }; then
34284 ac_header_compiler=yes
34285else
34286 echo "$as_me: failed program was:" >&5
34287sed 's/^/| /' conftest.$ac_ext >&5
34288
34289ac_header_compiler=no
34290fi
ac1cb8d3 34291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34292echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34293echo "${ECHO_T}$ac_header_compiler" >&6
34294
34295# Is the header present?
34296echo "$as_me:$LINENO: checking $ac_header presence" >&5
34297echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34298cat >conftest.$ac_ext <<_ACEOF
34299/* confdefs.h. */
34300_ACEOF
34301cat confdefs.h >>conftest.$ac_ext
34302cat >>conftest.$ac_ext <<_ACEOF
34303/* end confdefs.h. */
34304#include <$ac_header>
34305_ACEOF
34306if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34308 ac_status=$?
34309 grep -v '^ *+' conftest.er1 >conftest.err
34310 rm -f conftest.er1
34311 cat conftest.err >&5
34312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34313 (exit $ac_status); } >/dev/null; then
34314 if test -s conftest.err; then
34315 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34317 else
34318 ac_cpp_err=
34319 fi
34320else
34321 ac_cpp_err=yes
34322fi
34323if test -z "$ac_cpp_err"; then
34324 ac_header_preproc=yes
34325else
34326 echo "$as_me: failed program was:" >&5
34327sed 's/^/| /' conftest.$ac_ext >&5
34328
34329 ac_header_preproc=no
34330fi
34331rm -f conftest.err conftest.$ac_ext
34332echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34333echo "${ECHO_T}$ac_header_preproc" >&6
34334
34335# So? What about this header?
ac1cb8d3
VS
34336case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34337 yes:no: )
a848cd7e
SC
34338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34339echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34341echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34342 ac_header_preproc=yes
a848cd7e 34343 ;;
ac1cb8d3 34344 no:yes:* )
a848cd7e
SC
34345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34346echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34348echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34350echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34352echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34354echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34356echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34357 (
34358 cat <<\_ASBOX
ac1cb8d3
VS
34359## ----------------------------------------- ##
34360## Report this to wx-dev@lists.wxwidgets.org ##
34361## ----------------------------------------- ##
a848cd7e
SC
34362_ASBOX
34363 ) |
34364 sed "s/^/$as_me: WARNING: /" >&2
34365 ;;
34366esac
34367echo "$as_me:$LINENO: checking for $ac_header" >&5
34368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34369if eval "test \"\${$as_ac_Header+set}\" = set"; then
34370 echo $ECHO_N "(cached) $ECHO_C" >&6
34371else
ac1cb8d3 34372 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34373fi
34374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34376
34377fi
34378if test `eval echo '${'$as_ac_Header'}'` = yes; then
34379 cat >>confdefs.h <<_ACEOF
34380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34381_ACEOF
34382
34383fi
34384
34385done
34386
34387 if test "$ac_cv_header_sched_h" = "yes"; then
34388 echo "$as_me:$LINENO: checking for sched_yield" >&5
34389echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34390if test "${ac_cv_func_sched_yield+set}" = set; then
34391 echo $ECHO_N "(cached) $ECHO_C" >&6
34392else
34393 cat >conftest.$ac_ext <<_ACEOF
34394/* confdefs.h. */
34395_ACEOF
34396cat confdefs.h >>conftest.$ac_ext
34397cat >>conftest.$ac_ext <<_ACEOF
34398/* end confdefs.h. */
ac1cb8d3
VS
34399/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34401#define sched_yield innocuous_sched_yield
34402
a848cd7e
SC
34403/* System header to define __stub macros and hopefully few prototypes,
34404 which can conflict with char sched_yield (); below.
34405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34406 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34407
a848cd7e
SC
34408#ifdef __STDC__
34409# include <limits.h>
34410#else
34411# include <assert.h>
34412#endif
ac1cb8d3
VS
34413
34414#undef sched_yield
34415
a848cd7e
SC
34416/* Override any gcc2 internal prototype to avoid an error. */
34417#ifdef __cplusplus
34418extern "C"
34419{
34420#endif
34421/* We use char because int might match the return type of a gcc2
34422 builtin and then its argument prototype would still apply. */
34423char sched_yield ();
34424/* The GNU C library defines this for functions which it implements
34425 to always fail with ENOSYS. Some functions are actually named
34426 something starting with __ and the normal name is an alias. */
34427#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34428choke me
34429#else
34430char (*f) () = sched_yield;
34431#endif
34432#ifdef __cplusplus
34433}
34434#endif
34435
34436int
34437main ()
34438{
34439return f != sched_yield;
34440 ;
34441 return 0;
34442}
34443_ACEOF
34444rm -f conftest.$ac_objext conftest$ac_exeext
34445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34446 (eval $ac_link) 2>conftest.er1
a848cd7e 34447 ac_status=$?
ac1cb8d3
VS
34448 grep -v '^ *+' conftest.er1 >conftest.err
34449 rm -f conftest.er1
34450 cat conftest.err >&5
a848cd7e
SC
34451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452 (exit $ac_status); } &&
9dd0f6c2 34453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34455 (eval $ac_try) 2>&5
34456 ac_status=$?
34457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); }; } &&
34459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34461 (eval $ac_try) 2>&5
34462 ac_status=$?
34463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464 (exit $ac_status); }; }; then
34465 ac_cv_func_sched_yield=yes
34466else
34467 echo "$as_me: failed program was:" >&5
34468sed 's/^/| /' conftest.$ac_ext >&5
34469
34470ac_cv_func_sched_yield=no
34471fi
ac1cb8d3
VS
34472rm -f conftest.err conftest.$ac_objext \
34473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34474fi
34475echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34476echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34477if test $ac_cv_func_sched_yield = yes; then
34478 cat >>confdefs.h <<\_ACEOF
34479#define HAVE_SCHED_YIELD 1
34480_ACEOF
34481
34482else
34483
34484 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34485echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34486if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34487 echo $ECHO_N "(cached) $ECHO_C" >&6
34488else
34489 ac_check_lib_save_LIBS=$LIBS
34490LIBS="-lposix4 $LIBS"
34491cat >conftest.$ac_ext <<_ACEOF
34492/* confdefs.h. */
34493_ACEOF
34494cat confdefs.h >>conftest.$ac_ext
34495cat >>conftest.$ac_ext <<_ACEOF
34496/* end confdefs.h. */
34497
34498/* Override any gcc2 internal prototype to avoid an error. */
34499#ifdef __cplusplus
34500extern "C"
34501#endif
34502/* We use char because int might match the return type of a gcc2
34503 builtin and then its argument prototype would still apply. */
34504char sched_yield ();
34505int
34506main ()
34507{
34508sched_yield ();
34509 ;
34510 return 0;
34511}
34512_ACEOF
34513rm -f conftest.$ac_objext conftest$ac_exeext
34514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34515 (eval $ac_link) 2>conftest.er1
a848cd7e 34516 ac_status=$?
ac1cb8d3
VS
34517 grep -v '^ *+' conftest.er1 >conftest.err
34518 rm -f conftest.er1
34519 cat conftest.err >&5
a848cd7e
SC
34520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521 (exit $ac_status); } &&
9dd0f6c2 34522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34524 (eval $ac_try) 2>&5
34525 ac_status=$?
34526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527 (exit $ac_status); }; } &&
34528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34530 (eval $ac_try) 2>&5
34531 ac_status=$?
34532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533 (exit $ac_status); }; }; then
34534 ac_cv_lib_posix4_sched_yield=yes
34535else
34536 echo "$as_me: failed program was:" >&5
34537sed 's/^/| /' conftest.$ac_ext >&5
34538
34539ac_cv_lib_posix4_sched_yield=no
34540fi
ac1cb8d3
VS
34541rm -f conftest.err conftest.$ac_objext \
34542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34543LIBS=$ac_check_lib_save_LIBS
34544fi
34545echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34546echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34547if test $ac_cv_lib_posix4_sched_yield = yes; then
34548 cat >>confdefs.h <<\_ACEOF
34549#define HAVE_SCHED_YIELD 1
34550_ACEOF
34551 POSIX4_LINK=" -lposix4"
34552else
34553 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34554echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34555
34556fi
34557
34558
34559
34560fi
34561
34562 fi
34563
34564 HAVE_PRIOR_FUNCS=0
34565 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34566echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34567if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34568 echo $ECHO_N "(cached) $ECHO_C" >&6
34569else
34570 cat >conftest.$ac_ext <<_ACEOF
34571/* confdefs.h. */
34572_ACEOF
34573cat confdefs.h >>conftest.$ac_ext
34574cat >>conftest.$ac_ext <<_ACEOF
34575/* end confdefs.h. */
ac1cb8d3
VS
34576/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34578#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34579
a848cd7e
SC
34580/* System header to define __stub macros and hopefully few prototypes,
34581 which can conflict with char pthread_attr_getschedpolicy (); below.
34582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34583 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34584
a848cd7e
SC
34585#ifdef __STDC__
34586# include <limits.h>
34587#else
34588# include <assert.h>
34589#endif
ac1cb8d3
VS
34590
34591#undef pthread_attr_getschedpolicy
34592
a848cd7e
SC
34593/* Override any gcc2 internal prototype to avoid an error. */
34594#ifdef __cplusplus
34595extern "C"
34596{
34597#endif
34598/* We use char because int might match the return type of a gcc2
34599 builtin and then its argument prototype would still apply. */
34600char pthread_attr_getschedpolicy ();
34601/* The GNU C library defines this for functions which it implements
34602 to always fail with ENOSYS. Some functions are actually named
34603 something starting with __ and the normal name is an alias. */
34604#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34605choke me
34606#else
34607char (*f) () = pthread_attr_getschedpolicy;
34608#endif
34609#ifdef __cplusplus
34610}
34611#endif
34612
34613int
34614main ()
34615{
34616return f != pthread_attr_getschedpolicy;
34617 ;
34618 return 0;
34619}
34620_ACEOF
34621rm -f conftest.$ac_objext conftest$ac_exeext
34622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34623 (eval $ac_link) 2>conftest.er1
a848cd7e 34624 ac_status=$?
ac1cb8d3
VS
34625 grep -v '^ *+' conftest.er1 >conftest.err
34626 rm -f conftest.er1
34627 cat conftest.err >&5
a848cd7e
SC
34628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629 (exit $ac_status); } &&
9dd0f6c2 34630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34632 (eval $ac_try) 2>&5
34633 ac_status=$?
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); }; } &&
34636 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34638 (eval $ac_try) 2>&5
34639 ac_status=$?
34640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34641 (exit $ac_status); }; }; then
34642 ac_cv_func_pthread_attr_getschedpolicy=yes
34643else
34644 echo "$as_me: failed program was:" >&5
34645sed 's/^/| /' conftest.$ac_ext >&5
34646
34647ac_cv_func_pthread_attr_getschedpolicy=no
34648fi
ac1cb8d3
VS
34649rm -f conftest.err conftest.$ac_objext \
34650 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34651fi
34652echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34653echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34654if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34655 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34656echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34657if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34658 echo $ECHO_N "(cached) $ECHO_C" >&6
34659else
34660 cat >conftest.$ac_ext <<_ACEOF
34661/* confdefs.h. */
34662_ACEOF
34663cat confdefs.h >>conftest.$ac_ext
34664cat >>conftest.$ac_ext <<_ACEOF
34665/* end confdefs.h. */
ac1cb8d3
VS
34666/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34668#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34669
a848cd7e
SC
34670/* System header to define __stub macros and hopefully few prototypes,
34671 which can conflict with char pthread_attr_setschedparam (); below.
34672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34673 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34674
a848cd7e
SC
34675#ifdef __STDC__
34676# include <limits.h>
34677#else
34678# include <assert.h>
34679#endif
ac1cb8d3
VS
34680
34681#undef pthread_attr_setschedparam
34682
a848cd7e
SC
34683/* Override any gcc2 internal prototype to avoid an error. */
34684#ifdef __cplusplus
34685extern "C"
34686{
34687#endif
34688/* We use char because int might match the return type of a gcc2
34689 builtin and then its argument prototype would still apply. */
34690char pthread_attr_setschedparam ();
34691/* The GNU C library defines this for functions which it implements
34692 to always fail with ENOSYS. Some functions are actually named
34693 something starting with __ and the normal name is an alias. */
34694#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34695choke me
34696#else
34697char (*f) () = pthread_attr_setschedparam;
34698#endif
34699#ifdef __cplusplus
34700}
34701#endif
34702
34703int
34704main ()
34705{
34706return f != pthread_attr_setschedparam;
34707 ;
34708 return 0;
34709}
34710_ACEOF
34711rm -f conftest.$ac_objext conftest$ac_exeext
34712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34713 (eval $ac_link) 2>conftest.er1
a848cd7e 34714 ac_status=$?
ac1cb8d3
VS
34715 grep -v '^ *+' conftest.er1 >conftest.err
34716 rm -f conftest.er1
34717 cat conftest.err >&5
a848cd7e
SC
34718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 (exit $ac_status); } &&
9dd0f6c2 34720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34722 (eval $ac_try) 2>&5
34723 ac_status=$?
34724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725 (exit $ac_status); }; } &&
34726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34728 (eval $ac_try) 2>&5
34729 ac_status=$?
34730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34731 (exit $ac_status); }; }; then
34732 ac_cv_func_pthread_attr_setschedparam=yes
34733else
34734 echo "$as_me: failed program was:" >&5
34735sed 's/^/| /' conftest.$ac_ext >&5
34736
34737ac_cv_func_pthread_attr_setschedparam=no
34738fi
ac1cb8d3
VS
34739rm -f conftest.err conftest.$ac_objext \
34740 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34741fi
34742echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34743echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34744if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34745 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34746echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34747if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34748 echo $ECHO_N "(cached) $ECHO_C" >&6
34749else
34750 cat >conftest.$ac_ext <<_ACEOF
34751/* confdefs.h. */
34752_ACEOF
34753cat confdefs.h >>conftest.$ac_ext
34754cat >>conftest.$ac_ext <<_ACEOF
34755/* end confdefs.h. */
ac1cb8d3
VS
34756/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34758#define sched_get_priority_max innocuous_sched_get_priority_max
34759
a848cd7e
SC
34760/* System header to define __stub macros and hopefully few prototypes,
34761 which can conflict with char sched_get_priority_max (); below.
34762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34763 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34764
a848cd7e
SC
34765#ifdef __STDC__
34766# include <limits.h>
34767#else
34768# include <assert.h>
34769#endif
ac1cb8d3
VS
34770
34771#undef sched_get_priority_max
34772
a848cd7e
SC
34773/* Override any gcc2 internal prototype to avoid an error. */
34774#ifdef __cplusplus
34775extern "C"
34776{
34777#endif
34778/* We use char because int might match the return type of a gcc2
34779 builtin and then its argument prototype would still apply. */
34780char sched_get_priority_max ();
34781/* The GNU C library defines this for functions which it implements
34782 to always fail with ENOSYS. Some functions are actually named
34783 something starting with __ and the normal name is an alias. */
34784#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34785choke me
34786#else
34787char (*f) () = sched_get_priority_max;
34788#endif
34789#ifdef __cplusplus
34790}
34791#endif
34792
34793int
34794main ()
34795{
34796return f != sched_get_priority_max;
34797 ;
34798 return 0;
34799}
34800_ACEOF
34801rm -f conftest.$ac_objext conftest$ac_exeext
34802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34803 (eval $ac_link) 2>conftest.er1
a848cd7e 34804 ac_status=$?
ac1cb8d3
VS
34805 grep -v '^ *+' conftest.er1 >conftest.err
34806 rm -f conftest.er1
34807 cat conftest.err >&5
a848cd7e
SC
34808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34809 (exit $ac_status); } &&
9dd0f6c2 34810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34812 (eval $ac_try) 2>&5
34813 ac_status=$?
34814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34815 (exit $ac_status); }; } &&
34816 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34818 (eval $ac_try) 2>&5
34819 ac_status=$?
34820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821 (exit $ac_status); }; }; then
34822 ac_cv_func_sched_get_priority_max=yes
34823else
34824 echo "$as_me: failed program was:" >&5
34825sed 's/^/| /' conftest.$ac_ext >&5
34826
34827ac_cv_func_sched_get_priority_max=no
34828fi
ac1cb8d3
VS
34829rm -f conftest.err conftest.$ac_objext \
34830 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34831fi
34832echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34833echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34834if test $ac_cv_func_sched_get_priority_max = yes; then
34835 HAVE_PRIOR_FUNCS=1
34836else
34837 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34838echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34839if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34840 echo $ECHO_N "(cached) $ECHO_C" >&6
34841else
34842 ac_check_lib_save_LIBS=$LIBS
34843LIBS="-lposix4 $LIBS"
34844cat >conftest.$ac_ext <<_ACEOF
34845/* confdefs.h. */
34846_ACEOF
34847cat confdefs.h >>conftest.$ac_ext
34848cat >>conftest.$ac_ext <<_ACEOF
34849/* end confdefs.h. */
34850
34851/* Override any gcc2 internal prototype to avoid an error. */
34852#ifdef __cplusplus
34853extern "C"
34854#endif
34855/* We use char because int might match the return type of a gcc2
34856 builtin and then its argument prototype would still apply. */
34857char sched_get_priority_max ();
34858int
34859main ()
34860{
34861sched_get_priority_max ();
34862 ;
34863 return 0;
34864}
34865_ACEOF
34866rm -f conftest.$ac_objext conftest$ac_exeext
34867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34868 (eval $ac_link) 2>conftest.er1
a848cd7e 34869 ac_status=$?
ac1cb8d3
VS
34870 grep -v '^ *+' conftest.er1 >conftest.err
34871 rm -f conftest.er1
34872 cat conftest.err >&5
a848cd7e
SC
34873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34874 (exit $ac_status); } &&
9dd0f6c2 34875 { ac_try='test -z "$ac_c_werror_flag" || 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_lib_posix4_sched_get_priority_max=yes
34888else
34889 echo "$as_me: failed program was:" >&5
34890sed 's/^/| /' conftest.$ac_ext >&5
34891
34892ac_cv_lib_posix4_sched_get_priority_max=no
34893fi
ac1cb8d3
VS
34894rm -f conftest.err conftest.$ac_objext \
34895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34896LIBS=$ac_check_lib_save_LIBS
34897fi
34898echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34899echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34900if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34901
34902 HAVE_PRIOR_FUNCS=1
34903 POSIX4_LINK=" -lposix4"
34904
34905fi
34906
34907
34908fi
34909
34910
34911fi
34912
34913
34914fi
34915
34916
34917 if test "$HAVE_PRIOR_FUNCS" = 1; then
34918 cat >>confdefs.h <<\_ACEOF
34919#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34920_ACEOF
34921
34922 else
34923 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34924echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34925 fi
34926
34927 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34928echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34929if test "${ac_cv_func_pthread_cancel+set}" = set; then
34930 echo $ECHO_N "(cached) $ECHO_C" >&6
34931else
34932 cat >conftest.$ac_ext <<_ACEOF
34933/* confdefs.h. */
34934_ACEOF
34935cat confdefs.h >>conftest.$ac_ext
34936cat >>conftest.$ac_ext <<_ACEOF
34937/* end confdefs.h. */
ac1cb8d3
VS
34938/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34940#define pthread_cancel innocuous_pthread_cancel
34941
a848cd7e
SC
34942/* System header to define __stub macros and hopefully few prototypes,
34943 which can conflict with char pthread_cancel (); below.
34944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34945 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34946
a848cd7e
SC
34947#ifdef __STDC__
34948# include <limits.h>
34949#else
34950# include <assert.h>
34951#endif
ac1cb8d3
VS
34952
34953#undef pthread_cancel
34954
a848cd7e
SC
34955/* Override any gcc2 internal prototype to avoid an error. */
34956#ifdef __cplusplus
34957extern "C"
34958{
34959#endif
34960/* We use char because int might match the return type of a gcc2
34961 builtin and then its argument prototype would still apply. */
34962char pthread_cancel ();
34963/* The GNU C library defines this for functions which it implements
34964 to always fail with ENOSYS. Some functions are actually named
34965 something starting with __ and the normal name is an alias. */
34966#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34967choke me
34968#else
34969char (*f) () = pthread_cancel;
34970#endif
34971#ifdef __cplusplus
34972}
34973#endif
34974
34975int
34976main ()
34977{
34978return f != pthread_cancel;
34979 ;
34980 return 0;
34981}
34982_ACEOF
34983rm -f conftest.$ac_objext conftest$ac_exeext
34984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34985 (eval $ac_link) 2>conftest.er1
a848cd7e 34986 ac_status=$?
ac1cb8d3
VS
34987 grep -v '^ *+' conftest.er1 >conftest.err
34988 rm -f conftest.er1
34989 cat conftest.err >&5
a848cd7e
SC
34990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34991 (exit $ac_status); } &&
9dd0f6c2 34992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34994 (eval $ac_try) 2>&5
34995 ac_status=$?
34996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34997 (exit $ac_status); }; } &&
34998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35000 (eval $ac_try) 2>&5
35001 ac_status=$?
35002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003 (exit $ac_status); }; }; then
35004 ac_cv_func_pthread_cancel=yes
35005else
35006 echo "$as_me: failed program was:" >&5
35007sed 's/^/| /' conftest.$ac_ext >&5
35008
35009ac_cv_func_pthread_cancel=no
35010fi
ac1cb8d3
VS
35011rm -f conftest.err conftest.$ac_objext \
35012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35013fi
35014echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35015echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35016if test $ac_cv_func_pthread_cancel = yes; then
35017 cat >>confdefs.h <<\_ACEOF
35018#define HAVE_PTHREAD_CANCEL 1
35019_ACEOF
35020
35021else
35022 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35023echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35024fi
35025
35026
35027
35028
35029 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35030echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35031if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35032 echo $ECHO_N "(cached) $ECHO_C" >&6
35033else
35034
35035 cat >conftest.$ac_ext <<_ACEOF
35036/* confdefs.h. */
35037_ACEOF
35038cat confdefs.h >>conftest.$ac_ext
35039cat >>conftest.$ac_ext <<_ACEOF
35040/* end confdefs.h. */
35041#include <pthread.h>
35042int
35043main ()
35044{
35045
35046 pthread_mutexattr_t attr;
35047 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35048
35049 ;
35050 return 0;
35051}
35052_ACEOF
35053rm -f conftest.$ac_objext
35054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35055 (eval $ac_compile) 2>conftest.er1
a848cd7e 35056 ac_status=$?
ac1cb8d3
VS
35057 grep -v '^ *+' conftest.er1 >conftest.err
35058 rm -f conftest.er1
35059 cat conftest.err >&5
a848cd7e
SC
35060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061 (exit $ac_status); } &&
9dd0f6c2 35062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35064 (eval $ac_try) 2>&5
35065 ac_status=$?
35066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35067 (exit $ac_status); }; } &&
35068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35070 (eval $ac_try) 2>&5
35071 ac_status=$?
35072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073 (exit $ac_status); }; }; then
35074
35075 wx_cv_type_pthread_mutexattr_t=yes
35076
35077else
35078 echo "$as_me: failed program was:" >&5
35079sed 's/^/| /' conftest.$ac_ext >&5
35080
35081
35082 wx_cv_type_pthread_mutexattr_t=no
35083
35084
35085fi
ac1cb8d3 35086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35087
35088fi
35089echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35090echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35091
35092 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35093 cat >>confdefs.h <<\_ACEOF
35094#define HAVE_PTHREAD_MUTEXATTR_T 1
35095_ACEOF
35096
35097 else
35098 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35099echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35100if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35101 echo $ECHO_N "(cached) $ECHO_C" >&6
35102else
35103
35104 cat >conftest.$ac_ext <<_ACEOF
35105/* confdefs.h. */
35106_ACEOF
35107cat confdefs.h >>conftest.$ac_ext
35108cat >>conftest.$ac_ext <<_ACEOF
35109/* end confdefs.h. */
35110#include <pthread.h>
35111int
35112main ()
35113{
35114
35115 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35116
35117 ;
35118 return 0;
35119}
35120_ACEOF
35121rm -f conftest.$ac_objext
35122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35123 (eval $ac_compile) 2>conftest.er1
a848cd7e 35124 ac_status=$?
ac1cb8d3
VS
35125 grep -v '^ *+' conftest.er1 >conftest.err
35126 rm -f conftest.er1
35127 cat conftest.err >&5
a848cd7e
SC
35128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35129 (exit $ac_status); } &&
9dd0f6c2 35130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35132 (eval $ac_try) 2>&5
35133 ac_status=$?
35134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35135 (exit $ac_status); }; } &&
35136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35138 (eval $ac_try) 2>&5
35139 ac_status=$?
35140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35141 (exit $ac_status); }; }; then
35142
35143 wx_cv_type_pthread_rec_mutex_init=yes
35144
35145else
35146 echo "$as_me: failed program was:" >&5
35147sed 's/^/| /' conftest.$ac_ext >&5
35148
35149
35150 wx_cv_type_pthread_rec_mutex_init=no
35151
35152
35153fi
ac1cb8d3 35154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35155
35156fi
35157echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35158echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35159 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35160 cat >>confdefs.h <<\_ACEOF
35161#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35162_ACEOF
35163
35164 else
35165 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35166echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35167 fi
35168 fi
35169 fi
35170
35171else
35172 if test "$wxUSE_THREADS" = "yes" ; then
35173 case "${host}" in
35174 *-*-mingw32* )
35175 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35176echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35177if test "${wx_cv_cflags_mthread+set}" = set; then
35178 echo $ECHO_N "(cached) $ECHO_C" >&6
35179else
35180
35181 CFLAGS_OLD="$CFLAGS"
35182 CFLAGS="$CFLAGS -mthreads"
35183 cat >conftest.$ac_ext <<_ACEOF
35184/* confdefs.h. */
35185_ACEOF
35186cat confdefs.h >>conftest.$ac_ext
35187cat >>conftest.$ac_ext <<_ACEOF
35188/* end confdefs.h. */
35189
35190int
35191main ()
35192{
35193
35194 ;
35195 return 0;
35196}
35197_ACEOF
35198rm -f conftest.$ac_objext
35199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35200 (eval $ac_compile) 2>conftest.er1
a848cd7e 35201 ac_status=$?
ac1cb8d3
VS
35202 grep -v '^ *+' conftest.er1 >conftest.err
35203 rm -f conftest.er1
35204 cat conftest.err >&5
a848cd7e
SC
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); } &&
9dd0f6c2 35207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35209 (eval $ac_try) 2>&5
35210 ac_status=$?
35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212 (exit $ac_status); }; } &&
35213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35215 (eval $ac_try) 2>&5
35216 ac_status=$?
35217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35218 (exit $ac_status); }; }; then
35219 wx_cv_cflags_mthread=yes
35220else
35221 echo "$as_me: failed program was:" >&5
35222sed 's/^/| /' conftest.$ac_ext >&5
35223
35224wx_cv_cflags_mthread=no
35225
35226fi
ac1cb8d3 35227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35228
35229
35230fi
35231echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35232echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35233
35234 if test "$wx_cv_cflags_mthread" = "yes"; then
35235 CXXFLAGS="$CXXFLAGS -mthreads"
35236 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35237 LDFLAGS="$LDFLAGS -mthreads"
35238 else
35239 CFLAGS="$CFLAGS_OLD"
35240 fi
35241 ;;
35242 *-pc-os2*emx )
35243 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35244 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35245 LDFLAGS="$LDFLAGS -Zmt"
35246 ;;
35247 esac
35248 fi
35249fi
35250
35251if test "$wxUSE_THREADS" = "yes"; then
35252 cat >>confdefs.h <<\_ACEOF
35253#define wxUSE_THREADS 1
35254_ACEOF
35255
35256
35257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35258else
35259 if test "$ac_cv_func_strtok_r" = "yes"; then
35260 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35261echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35262 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35263 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35264 echo "$as_me:$LINENO: result: yes" >&5
35265echo "${ECHO_T}yes" >&6
35266 else
35267 echo "$as_me:$LINENO: result: no" >&5
35268echo "${ECHO_T}no" >&6
35269 fi
35270 fi
35271fi
35272
35273if test "$WXGTK20" = 1 ; then
35274 cat >>confdefs.h <<_ACEOF
35275#define __WXGTK20__ $WXGTK20
35276_ACEOF
35277
35278 WXGTK12=1
35279fi
35280
35281if test "$WXGTK12" = 1 ; then
35282 cat >>confdefs.h <<_ACEOF
35283#define __WXGTK12__ $WXGTK12
35284_ACEOF
35285
35286fi
35287
35288if test "$WXGTK127" = 1 ; then
35289 cat >>confdefs.h <<_ACEOF
35290#define __WXGTK127__ $WXGTK127
35291_ACEOF
35292
35293fi
35294
35295if test "$WXGPE" = 1 ; then
35296 cat >>confdefs.h <<_ACEOF
35297#define __WXGPE__ $WXGPE
35298_ACEOF
35299
35300fi
35301
35302WXDEBUG=
35303
35304if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35305 WXDEBUG="-g"
35306 wxUSE_OPTIMISE=no
35307fi
35308
35309if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35310 wxUSE_DEBUG_INFO=yes
35311 WXDEBUG="-ggdb"
35312fi
35313
35314if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35315 cat >>confdefs.h <<\_ACEOF
35316#define WXDEBUG 1
35317_ACEOF
35318
35319 WXDEBUG_DEFINE="-D__WXDEBUG__"
35320else
35321 if test "$wxUSE_GTK" = 1 ; then
35322 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35323 fi
35324fi
35325
35326if test "$wxUSE_MEM_TRACING" = "yes" ; then
35327 cat >>confdefs.h <<\_ACEOF
35328#define wxUSE_MEMORY_TRACING 1
35329_ACEOF
35330
35331 cat >>confdefs.h <<\_ACEOF
35332#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35333_ACEOF
35334
35335 cat >>confdefs.h <<\_ACEOF
35336#define wxUSE_DEBUG_NEW_ALWAYS 1
35337_ACEOF
35338
35339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35340fi
35341
35342if test "$wxUSE_DMALLOC" = "yes" ; then
35343 DMALLOC_LIBS="-ldmalloc"
35344fi
35345
35346PROFILE=
35347if test "$wxUSE_PROFILE" = "yes" ; then
35348 PROFILE=" -pg"
35349fi
35350
35351CODE_GEN_FLAGS=
35352CODE_GEN_FLAGS_CXX=
35353if test "$GCC" = "yes" ; then
35354 if test "$wxUSE_NO_RTTI" = "yes" ; then
35355 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35356 fi
35357 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35358 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35359 fi
35360 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35361 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35362 fi
35363
35364 case "${host}" in
35365 powerpc*-*-aix* )
35366 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35367 ;;
35368 *-hppa* )
35369 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35370 ;;
35371 esac
35372fi
35373
35374OPTIMISE=
35375if test "$wxUSE_OPTIMISE" = "no" ; then
35376 if test "$GCC" = yes ; then
35377 OPTIMISE="-O0"
35378 fi
35379else
35380 if test "$GCC" = yes ; then
35381 OPTIMISE="-O2"
35382
35383 case "${host}" in
35384 i586-*-*|i686-*-* )
35385 OPTIMISE="${OPTIMISE} "
35386 ;;
35387 esac
35388 else
35389 OPTIMISE="-O"
35390 fi
35391fi
35392
35393
35394if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35395 cat >>confdefs.h <<\_ACEOF
35396#define WXWIN_COMPATIBILITY_2_2 1
35397_ACEOF
35398
35399
35400 WXWIN_COMPATIBILITY_2_4="yes"
35401fi
35402
35403if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35404 cat >>confdefs.h <<\_ACEOF
35405#define WXWIN_COMPATIBILITY_2_4 1
35406_ACEOF
35407
35408fi
35409
35410
35411if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35412 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35413#define wxUSE_GUI 1
35414_ACEOF
35415
35416
370fd4c2 35417 fi
a848cd7e
SC
35418
35419
35420if test "$wxUSE_UNIX" = "yes"; then
35421 cat >>confdefs.h <<\_ACEOF
35422#define wxUSE_UNIX 1
35423_ACEOF
35424
35425fi
35426
35427
35428if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35429
35430 HAVE_DL_FUNCS=0
35431 HAVE_SHL_FUNCS=0
35432 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35433 if test "$USE_DARWIN" = 1; then
35434 HAVE_DL_FUNCS=1
47a7e797
MW
35435 elif test "$USE_DOS" = 1; then
35436 HAVE_DL_FUNCS=0
a848cd7e
SC
35437 else
35438
35439for ac_func in dlopen
35440do
35441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35442echo "$as_me:$LINENO: checking for $ac_func" >&5
35443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35444if eval "test \"\${$as_ac_var+set}\" = set"; then
35445 echo $ECHO_N "(cached) $ECHO_C" >&6
35446else
35447 cat >conftest.$ac_ext <<_ACEOF
35448/* confdefs.h. */
35449_ACEOF
35450cat confdefs.h >>conftest.$ac_ext
35451cat >>conftest.$ac_ext <<_ACEOF
35452/* end confdefs.h. */
ac1cb8d3
VS
35453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35455#define $ac_func innocuous_$ac_func
35456
a848cd7e
SC
35457/* System header to define __stub macros and hopefully few prototypes,
35458 which can conflict with char $ac_func (); below.
35459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35460 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35461
a848cd7e
SC
35462#ifdef __STDC__
35463# include <limits.h>
35464#else
35465# include <assert.h>
35466#endif
ac1cb8d3
VS
35467
35468#undef $ac_func
35469
a848cd7e
SC
35470/* Override any gcc2 internal prototype to avoid an error. */
35471#ifdef __cplusplus
35472extern "C"
35473{
35474#endif
35475/* We use char because int might match the return type of a gcc2
35476 builtin and then its argument prototype would still apply. */
35477char $ac_func ();
35478/* The GNU C library defines this for functions which it implements
35479 to always fail with ENOSYS. Some functions are actually named
35480 something starting with __ and the normal name is an alias. */
35481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35482choke me
35483#else
35484char (*f) () = $ac_func;
35485#endif
35486#ifdef __cplusplus
35487}
35488#endif
35489
35490int
35491main ()
35492{
35493return f != $ac_func;
35494 ;
35495 return 0;
35496}
35497_ACEOF
35498rm -f conftest.$ac_objext conftest$ac_exeext
35499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35500 (eval $ac_link) 2>conftest.er1
a848cd7e 35501 ac_status=$?
ac1cb8d3
VS
35502 grep -v '^ *+' conftest.er1 >conftest.err
35503 rm -f conftest.er1
35504 cat conftest.err >&5
a848cd7e
SC
35505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506 (exit $ac_status); } &&
9dd0f6c2 35507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35509 (eval $ac_try) 2>&5
35510 ac_status=$?
35511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35512 (exit $ac_status); }; } &&
35513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35515 (eval $ac_try) 2>&5
35516 ac_status=$?
35517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518 (exit $ac_status); }; }; then
35519 eval "$as_ac_var=yes"
35520else
35521 echo "$as_me: failed program was:" >&5
35522sed 's/^/| /' conftest.$ac_ext >&5
35523
35524eval "$as_ac_var=no"
35525fi
ac1cb8d3
VS
35526rm -f conftest.err conftest.$ac_objext \
35527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35528fi
35529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35530echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35531if test `eval echo '${'$as_ac_var'}'` = yes; then
35532 cat >>confdefs.h <<_ACEOF
35533#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35534_ACEOF
35535
35536 cat >>confdefs.h <<\_ACEOF
35537#define HAVE_DLOPEN 1
35538_ACEOF
35539
35540 HAVE_DL_FUNCS=1
35541
35542else
35543
35544 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35545echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35546if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35547 echo $ECHO_N "(cached) $ECHO_C" >&6
35548else
35549 ac_check_lib_save_LIBS=$LIBS
35550LIBS="-ldl $LIBS"
35551cat >conftest.$ac_ext <<_ACEOF
35552/* confdefs.h. */
35553_ACEOF
35554cat confdefs.h >>conftest.$ac_ext
35555cat >>conftest.$ac_ext <<_ACEOF
35556/* end confdefs.h. */
35557
35558/* Override any gcc2 internal prototype to avoid an error. */
35559#ifdef __cplusplus
35560extern "C"
35561#endif
35562/* We use char because int might match the return type of a gcc2
35563 builtin and then its argument prototype would still apply. */
35564char dlopen ();
35565int
35566main ()
35567{
35568dlopen ();
35569 ;
35570 return 0;
35571}
35572_ACEOF
35573rm -f conftest.$ac_objext conftest$ac_exeext
35574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35575 (eval $ac_link) 2>conftest.er1
a848cd7e 35576 ac_status=$?
ac1cb8d3
VS
35577 grep -v '^ *+' conftest.er1 >conftest.err
35578 rm -f conftest.er1
35579 cat conftest.err >&5
a848cd7e
SC
35580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581 (exit $ac_status); } &&
9dd0f6c2 35582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35584 (eval $ac_try) 2>&5
35585 ac_status=$?
35586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587 (exit $ac_status); }; } &&
35588 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35590 (eval $ac_try) 2>&5
35591 ac_status=$?
35592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593 (exit $ac_status); }; }; then
35594 ac_cv_lib_dl_dlopen=yes
35595else
35596 echo "$as_me: failed program was:" >&5
35597sed 's/^/| /' conftest.$ac_ext >&5
35598
35599ac_cv_lib_dl_dlopen=no
35600fi
ac1cb8d3
VS
35601rm -f conftest.err conftest.$ac_objext \
35602 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35603LIBS=$ac_check_lib_save_LIBS
35604fi
35605echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35606echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35607if test $ac_cv_lib_dl_dlopen = yes; then
35608
35609 cat >>confdefs.h <<\_ACEOF
35610#define HAVE_DLOPEN 1
35611_ACEOF
35612
35613 HAVE_DL_FUNCS=1
35614 DL_LINK=" -ldl$DL_LINK"
35615
35616else
35617
35618
35619for ac_func in shl_load
35620do
35621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35622echo "$as_me:$LINENO: checking for $ac_func" >&5
35623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35624if eval "test \"\${$as_ac_var+set}\" = set"; then
35625 echo $ECHO_N "(cached) $ECHO_C" >&6
35626else
35627 cat >conftest.$ac_ext <<_ACEOF
35628/* confdefs.h. */
35629_ACEOF
35630cat confdefs.h >>conftest.$ac_ext
35631cat >>conftest.$ac_ext <<_ACEOF
35632/* end confdefs.h. */
ac1cb8d3
VS
35633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35635#define $ac_func innocuous_$ac_func
35636
a848cd7e
SC
35637/* System header to define __stub macros and hopefully few prototypes,
35638 which can conflict with char $ac_func (); below.
35639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35640 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35641
a848cd7e
SC
35642#ifdef __STDC__
35643# include <limits.h>
35644#else
35645# include <assert.h>
35646#endif
ac1cb8d3
VS
35647
35648#undef $ac_func
35649
a848cd7e
SC
35650/* Override any gcc2 internal prototype to avoid an error. */
35651#ifdef __cplusplus
35652extern "C"
35653{
35654#endif
35655/* We use char because int might match the return type of a gcc2
35656 builtin and then its argument prototype would still apply. */
35657char $ac_func ();
35658/* The GNU C library defines this for functions which it implements
35659 to always fail with ENOSYS. Some functions are actually named
35660 something starting with __ and the normal name is an alias. */
35661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35662choke me
35663#else
35664char (*f) () = $ac_func;
35665#endif
35666#ifdef __cplusplus
35667}
35668#endif
35669
35670int
35671main ()
35672{
35673return f != $ac_func;
35674 ;
35675 return 0;
35676}
35677_ACEOF
35678rm -f conftest.$ac_objext conftest$ac_exeext
35679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35680 (eval $ac_link) 2>conftest.er1
a848cd7e 35681 ac_status=$?
ac1cb8d3
VS
35682 grep -v '^ *+' conftest.er1 >conftest.err
35683 rm -f conftest.er1
35684 cat conftest.err >&5
a848cd7e
SC
35685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686 (exit $ac_status); } &&
9dd0f6c2 35687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689 (eval $ac_try) 2>&5
35690 ac_status=$?
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); }; } &&
35693 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35695 (eval $ac_try) 2>&5
35696 ac_status=$?
35697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 (exit $ac_status); }; }; then
35699 eval "$as_ac_var=yes"
35700else
35701 echo "$as_me: failed program was:" >&5
35702sed 's/^/| /' conftest.$ac_ext >&5
35703
35704eval "$as_ac_var=no"
35705fi
ac1cb8d3
VS
35706rm -f conftest.err conftest.$ac_objext \
35707 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35708fi
35709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35710echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35711if test `eval echo '${'$as_ac_var'}'` = yes; then
35712 cat >>confdefs.h <<_ACEOF
35713#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35714_ACEOF
35715
35716 cat >>confdefs.h <<\_ACEOF
35717#define HAVE_SHL_LOAD 1
35718_ACEOF
35719
35720 HAVE_SHL_FUNCS=1
35721
35722else
35723
35724 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35725echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35726if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35727 echo $ECHO_N "(cached) $ECHO_C" >&6
35728else
35729 ac_check_lib_save_LIBS=$LIBS
35730LIBS="-lshl_load $LIBS"
35731cat >conftest.$ac_ext <<_ACEOF
35732/* confdefs.h. */
35733_ACEOF
35734cat confdefs.h >>conftest.$ac_ext
35735cat >>conftest.$ac_ext <<_ACEOF
35736/* end confdefs.h. */
35737
35738/* Override any gcc2 internal prototype to avoid an error. */
35739#ifdef __cplusplus
35740extern "C"
35741#endif
35742/* We use char because int might match the return type of a gcc2
35743 builtin and then its argument prototype would still apply. */
35744char dld ();
35745int
35746main ()
35747{
35748dld ();
35749 ;
35750 return 0;
35751}
35752_ACEOF
35753rm -f conftest.$ac_objext conftest$ac_exeext
35754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35755 (eval $ac_link) 2>conftest.er1
a848cd7e 35756 ac_status=$?
ac1cb8d3
VS
35757 grep -v '^ *+' conftest.er1 >conftest.err
35758 rm -f conftest.er1
35759 cat conftest.err >&5
a848cd7e
SC
35760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761 (exit $ac_status); } &&
9dd0f6c2 35762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35764 (eval $ac_try) 2>&5
35765 ac_status=$?
35766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35767 (exit $ac_status); }; } &&
35768 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35770 (eval $ac_try) 2>&5
35771 ac_status=$?
35772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35773 (exit $ac_status); }; }; then
35774 ac_cv_lib_shl_load_dld=yes
35775else
35776 echo "$as_me: failed program was:" >&5
35777sed 's/^/| /' conftest.$ac_ext >&5
35778
35779ac_cv_lib_shl_load_dld=no
35780fi
ac1cb8d3
VS
35781rm -f conftest.err conftest.$ac_objext \
35782 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35783LIBS=$ac_check_lib_save_LIBS
35784fi
35785echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35786echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35787if test $ac_cv_lib_shl_load_dld = yes; then
35788
35789 HAVE_SHL_FUNCS=1
35790 DL_LINK=" -ldld$DL_LINK"
35791
35792fi
35793
35794
35795fi
35796done
35797
35798
35799fi
35800
35801
35802fi
35803done
35804
35805
35806 if test "$HAVE_DL_FUNCS" = 1; then
35807
35808for ac_func in dlerror
35809do
35810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35811echo "$as_me:$LINENO: checking for $ac_func" >&5
35812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35813if eval "test \"\${$as_ac_var+set}\" = set"; then
35814 echo $ECHO_N "(cached) $ECHO_C" >&6
35815else
35816 cat >conftest.$ac_ext <<_ACEOF
35817/* confdefs.h. */
35818_ACEOF
35819cat confdefs.h >>conftest.$ac_ext
35820cat >>conftest.$ac_ext <<_ACEOF
35821/* end confdefs.h. */
ac1cb8d3
VS
35822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35824#define $ac_func innocuous_$ac_func
35825
a848cd7e
SC
35826/* System header to define __stub macros and hopefully few prototypes,
35827 which can conflict with char $ac_func (); below.
35828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35829 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35830
a848cd7e
SC
35831#ifdef __STDC__
35832# include <limits.h>
35833#else
35834# include <assert.h>
35835#endif
ac1cb8d3
VS
35836
35837#undef $ac_func
35838
a848cd7e
SC
35839/* Override any gcc2 internal prototype to avoid an error. */
35840#ifdef __cplusplus
35841extern "C"
35842{
35843#endif
35844/* We use char because int might match the return type of a gcc2
35845 builtin and then its argument prototype would still apply. */
35846char $ac_func ();
35847/* The GNU C library defines this for functions which it implements
35848 to always fail with ENOSYS. Some functions are actually named
35849 something starting with __ and the normal name is an alias. */
35850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35851choke me
35852#else
35853char (*f) () = $ac_func;
35854#endif
35855#ifdef __cplusplus
35856}
35857#endif
35858
35859int
35860main ()
35861{
35862return f != $ac_func;
35863 ;
35864 return 0;
35865}
35866_ACEOF
35867rm -f conftest.$ac_objext conftest$ac_exeext
35868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35869 (eval $ac_link) 2>conftest.er1
a848cd7e 35870 ac_status=$?
ac1cb8d3
VS
35871 grep -v '^ *+' conftest.er1 >conftest.err
35872 rm -f conftest.er1
35873 cat conftest.err >&5
a848cd7e
SC
35874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35875 (exit $ac_status); } &&
9dd0f6c2 35876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35878 (eval $ac_try) 2>&5
35879 ac_status=$?
35880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35881 (exit $ac_status); }; } &&
35882 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35884 (eval $ac_try) 2>&5
35885 ac_status=$?
35886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35887 (exit $ac_status); }; }; then
35888 eval "$as_ac_var=yes"
35889else
35890 echo "$as_me: failed program was:" >&5
35891sed 's/^/| /' conftest.$ac_ext >&5
35892
35893eval "$as_ac_var=no"
35894fi
ac1cb8d3
VS
35895rm -f conftest.err conftest.$ac_objext \
35896 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35897fi
35898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35899echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35900if test `eval echo '${'$as_ac_var'}'` = yes; then
35901 cat >>confdefs.h <<_ACEOF
35902#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35903_ACEOF
35904 cat >>confdefs.h <<\_ACEOF
35905#define HAVE_DLERROR 1
35906_ACEOF
35907
35908else
35909
35910 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35911echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35912if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35913 echo $ECHO_N "(cached) $ECHO_C" >&6
35914else
35915 ac_check_lib_save_LIBS=$LIBS
35916LIBS="-ldl $LIBS"
35917cat >conftest.$ac_ext <<_ACEOF
35918/* confdefs.h. */
35919_ACEOF
35920cat confdefs.h >>conftest.$ac_ext
35921cat >>conftest.$ac_ext <<_ACEOF
35922/* end confdefs.h. */
35923
35924/* Override any gcc2 internal prototype to avoid an error. */
35925#ifdef __cplusplus
35926extern "C"
35927#endif
35928/* We use char because int might match the return type of a gcc2
35929 builtin and then its argument prototype would still apply. */
35930char dlerror ();
35931int
35932main ()
35933{
35934dlerror ();
35935 ;
35936 return 0;
35937}
35938_ACEOF
35939rm -f conftest.$ac_objext conftest$ac_exeext
35940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35941 (eval $ac_link) 2>conftest.er1
a848cd7e 35942 ac_status=$?
ac1cb8d3
VS
35943 grep -v '^ *+' conftest.er1 >conftest.err
35944 rm -f conftest.er1
35945 cat conftest.err >&5
a848cd7e
SC
35946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947 (exit $ac_status); } &&
9dd0f6c2 35948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35950 (eval $ac_try) 2>&5
35951 ac_status=$?
35952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953 (exit $ac_status); }; } &&
35954 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35956 (eval $ac_try) 2>&5
35957 ac_status=$?
35958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35959 (exit $ac_status); }; }; then
35960 ac_cv_lib_dl_dlerror=yes
35961else
35962 echo "$as_me: failed program was:" >&5
35963sed 's/^/| /' conftest.$ac_ext >&5
35964
35965ac_cv_lib_dl_dlerror=no
35966fi
ac1cb8d3
VS
35967rm -f conftest.err conftest.$ac_objext \
35968 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35969LIBS=$ac_check_lib_save_LIBS
35970fi
35971echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35972echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35973if test $ac_cv_lib_dl_dlerror = yes; then
35974 cat >>confdefs.h <<\_ACEOF
35975#define HAVE_DLERROR 1
35976_ACEOF
35977
35978fi
35979
35980
35981
35982fi
35983done
35984
35985 fi
35986 fi
35987
35988 if test "$HAVE_DL_FUNCS" = 0; then
35989 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 35990 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
35991 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35992echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35993 wxUSE_DYNAMIC_LOADER=no
35994 wxUSE_DYNLIB_CLASS=no
35995 else
35996 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35997echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35998 fi
35999 fi
36000 fi
36001 fi
36002fi
36003
36004if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36005 cat >>confdefs.h <<\_ACEOF
36006#define wxUSE_DYNAMIC_LOADER 1
36007_ACEOF
36008
36009fi
36010if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36011 cat >>confdefs.h <<\_ACEOF
36012#define wxUSE_DYNLIB_CLASS 1
36013_ACEOF
36014
36015fi
36016
36017
36018
36019if test "$wxUSE_PLUGINS" = "yes" ; then
36020 if test "$wxUSE_SHARED" = "no" ; then
36021 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36022echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36023 wxUSE_PLUGINS=no
36024 fi
36025 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36026 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36027echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36028 wxUSE_PLUGINS=no
36029 fi
36030 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36031 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36032echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36033 wxUSE_PLUGINS=no
36034 fi
36035 if test "$wxUSE_PLUGINS" = "yes" ; then
36036 cat >>confdefs.h <<\_ACEOF
36037#define wxUSE_PLUGINS 1
36038_ACEOF
36039
36040 fi
36041fi
36042
36043
36044if test "$wxUSE_STL" = "yes"; then
36045 cat >>confdefs.h <<\_ACEOF
36046#define wxUSE_STL 1
36047_ACEOF
36048
36049fi
36050
36051if test "$wxUSE_APPLE_IEEE" = "yes"; then
36052 cat >>confdefs.h <<\_ACEOF
36053#define wxUSE_APPLE_IEEE 1
36054_ACEOF
36055
36056fi
36057
36058if test "$wxUSE_TIMER" = "yes"; then
36059 cat >>confdefs.h <<\_ACEOF
36060#define wxUSE_TIMER 1
36061_ACEOF
36062
36063fi
36064
36065WITH_PLUGIN_SDL=0
36066if test "$wxUSE_SOUND" = "yes"; then
36067 if test "$USE_UNIX" = "1" ; then
36068
36069for ac_header in sys/soundcard.h
36070do
36071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36072if eval "test \"\${$as_ac_Header+set}\" = set"; then
36073 echo "$as_me:$LINENO: checking for $ac_header" >&5
36074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36075if eval "test \"\${$as_ac_Header+set}\" = set"; then
36076 echo $ECHO_N "(cached) $ECHO_C" >&6
36077fi
36078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36080else
36081 # Is the header compilable?
36082echo "$as_me:$LINENO: checking $ac_header usability" >&5
36083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36084cat >conftest.$ac_ext <<_ACEOF
36085/* confdefs.h. */
36086_ACEOF
36087cat confdefs.h >>conftest.$ac_ext
36088cat >>conftest.$ac_ext <<_ACEOF
36089/* end confdefs.h. */
36090$ac_includes_default
36091#include <$ac_header>
36092_ACEOF
36093rm -f conftest.$ac_objext
36094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36095 (eval $ac_compile) 2>conftest.er1
a848cd7e 36096 ac_status=$?
ac1cb8d3
VS
36097 grep -v '^ *+' conftest.er1 >conftest.err
36098 rm -f conftest.er1
36099 cat conftest.err >&5
a848cd7e
SC
36100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36101 (exit $ac_status); } &&
9dd0f6c2 36102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36104 (eval $ac_try) 2>&5
36105 ac_status=$?
36106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107 (exit $ac_status); }; } &&
36108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36110 (eval $ac_try) 2>&5
36111 ac_status=$?
36112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113 (exit $ac_status); }; }; then
36114 ac_header_compiler=yes
36115else
36116 echo "$as_me: failed program was:" >&5
36117sed 's/^/| /' conftest.$ac_ext >&5
36118
36119ac_header_compiler=no
36120fi
ac1cb8d3 36121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36122echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36123echo "${ECHO_T}$ac_header_compiler" >&6
36124
36125# Is the header present?
36126echo "$as_me:$LINENO: checking $ac_header presence" >&5
36127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36128cat >conftest.$ac_ext <<_ACEOF
36129/* confdefs.h. */
36130_ACEOF
36131cat confdefs.h >>conftest.$ac_ext
36132cat >>conftest.$ac_ext <<_ACEOF
36133/* end confdefs.h. */
36134#include <$ac_header>
36135_ACEOF
36136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36138 ac_status=$?
36139 grep -v '^ *+' conftest.er1 >conftest.err
36140 rm -f conftest.er1
36141 cat conftest.err >&5
36142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36143 (exit $ac_status); } >/dev/null; then
36144 if test -s conftest.err; then
36145 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36147 else
36148 ac_cpp_err=
36149 fi
36150else
36151 ac_cpp_err=yes
36152fi
36153if test -z "$ac_cpp_err"; then
36154 ac_header_preproc=yes
36155else
36156 echo "$as_me: failed program was:" >&5
36157sed 's/^/| /' conftest.$ac_ext >&5
36158
36159 ac_header_preproc=no
36160fi
36161rm -f conftest.err conftest.$ac_ext
36162echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36163echo "${ECHO_T}$ac_header_preproc" >&6
36164
36165# So? What about this header?
ac1cb8d3
VS
36166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36167 yes:no: )
a848cd7e
SC
36168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36169echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36171echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36172 ac_header_preproc=yes
a848cd7e 36173 ;;
ac1cb8d3 36174 no:yes:* )
a848cd7e
SC
36175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36176echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36178echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36180echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36182echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36186echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36187 (
36188 cat <<\_ASBOX
ac1cb8d3
VS
36189## ----------------------------------------- ##
36190## Report this to wx-dev@lists.wxwidgets.org ##
36191## ----------------------------------------- ##
a848cd7e
SC
36192_ASBOX
36193 ) |
36194 sed "s/^/$as_me: WARNING: /" >&2
36195 ;;
36196esac
36197echo "$as_me:$LINENO: checking for $ac_header" >&5
36198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36199if eval "test \"\${$as_ac_Header+set}\" = set"; then
36200 echo $ECHO_N "(cached) $ECHO_C" >&6
36201else
ac1cb8d3 36202 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36203fi
36204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36206
36207fi
36208if test `eval echo '${'$as_ac_Header'}'` = yes; then
36209 cat >>confdefs.h <<_ACEOF
36210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36211_ACEOF
36212
36213fi
36214
36215done
36216
36217
36218 if test "$wxUSE_LIBSDL" != "no"; then
36219
36220# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36221if test "${with_sdl_prefix+set}" = set; then
36222 withval="$with_sdl_prefix"
36223 sdl_prefix="$withval"
36224else
36225 sdl_prefix=""
36226fi;
36227
36228# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36229if test "${with_sdl_exec_prefix+set}" = set; then
36230 withval="$with_sdl_exec_prefix"
36231 sdl_exec_prefix="$withval"
36232else
36233 sdl_exec_prefix=""
36234fi;
36235# Check whether --enable-sdltest or --disable-sdltest was given.
36236if test "${enable_sdltest+set}" = set; then
36237 enableval="$enable_sdltest"
36238
36239else
36240 enable_sdltest=yes
36241fi;
36242
36243 if test x$sdl_exec_prefix != x ; then
36244 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36245 if test x${SDL_CONFIG+set} != xset ; then
36246 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36247 fi
36248 fi
36249 if test x$sdl_prefix != x ; then
36250 sdl_args="$sdl_args --prefix=$sdl_prefix"
36251 if test x${SDL_CONFIG+set} != xset ; then
36252 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36253 fi
36254 fi
36255
36256
36257 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36258 # Extract the first word of "sdl-config", so it can be a program name with args.
36259set dummy sdl-config; ac_word=$2
36260echo "$as_me:$LINENO: checking for $ac_word" >&5
36261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36262if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36263 echo $ECHO_N "(cached) $ECHO_C" >&6
36264else
36265 case $SDL_CONFIG in
36266 [\\/]* | ?:[\\/]*)
36267 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36268 ;;
36269 *)
36270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36271for as_dir in $PATH
36272do
36273 IFS=$as_save_IFS
36274 test -z "$as_dir" && as_dir=.
36275 for ac_exec_ext in '' $ac_executable_extensions; do
36276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36277 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36279 break 2
36280 fi
36281done
36282done
36283
36284 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36285 ;;
36286esac
36287fi
36288SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36289
36290if test -n "$SDL_CONFIG"; then
36291 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36292echo "${ECHO_T}$SDL_CONFIG" >&6
36293else
36294 echo "$as_me:$LINENO: result: no" >&5
36295echo "${ECHO_T}no" >&6
36296fi
36297
36298 min_sdl_version=1.2.0
36299 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36300echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36301 no_sdl=""
36302 if test "$SDL_CONFIG" = "no" ; then
36303 no_sdl=yes
36304 else
36305 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36306 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36307
36308 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36309 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36310 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36311 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36312 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36313 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36314 if test "x$enable_sdltest" = "xyes" ; then
36315 ac_save_CFLAGS="$CFLAGS"
94acd38e 36316 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36317 ac_save_LIBS="$LIBS"
36318 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36319 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36320 LIBS="$LIBS $SDL_LIBS"
36321 rm -f conf.sdltest
36322 if test "$cross_compiling" = yes; then
36323 echo $ac_n "cross compiling; assumed OK... $ac_c"
36324else
36325 cat >conftest.$ac_ext <<_ACEOF
36326/* confdefs.h. */
36327_ACEOF
36328cat confdefs.h >>conftest.$ac_ext
36329cat >>conftest.$ac_ext <<_ACEOF
36330/* end confdefs.h. */
36331
36332#include <stdio.h>
36333#include <stdlib.h>
36334#include <string.h>
36335#include "SDL.h"
36336
36337char*
36338my_strdup (char *str)
36339{
36340 char *new_str;
36341
36342 if (str)
36343 {
36344 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36345 strcpy (new_str, str);
36346 }
36347 else
36348 new_str = NULL;
36349
36350 return new_str;
36351}
36352
36353int main (int argc, char *argv[])
36354{
36355 int major, minor, micro;
36356 char *tmp_version;
36357
36358 /* This hangs on some systems (?)
36359 system ("touch conf.sdltest");
36360 */
36361 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36362
36363 /* HP/UX 9 (%@#!) writes to sscanf strings */
36364 tmp_version = my_strdup("$min_sdl_version");
36365 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36366 printf("%s, bad version string\n", "$min_sdl_version");
36367 exit(1);
36368 }
36369
36370 if (($sdl_major_version > major) ||
36371 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36372 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36373 {
36374 return 0;
36375 }
36376 else
36377 {
36378 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36379 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36380 printf("*** best to upgrade to the required version.\n");
36381 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36382 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36383 printf("*** config.cache before re-running configure\n");
36384 return 1;
36385 }
36386}
36387
36388
36389_ACEOF
36390rm -f conftest$ac_exeext
36391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36392 (eval $ac_link) 2>&5
36393 ac_status=$?
36394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36397 (eval $ac_try) 2>&5
36398 ac_status=$?
36399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36400 (exit $ac_status); }; }; then
36401 :
36402else
36403 echo "$as_me: program exited with status $ac_status" >&5
36404echo "$as_me: failed program was:" >&5
36405sed 's/^/| /' conftest.$ac_ext >&5
36406
36407( exit $ac_status )
36408no_sdl=yes
36409fi
ac1cb8d3 36410rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36411fi
36412 CFLAGS="$ac_save_CFLAGS"
94acd38e 36413 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36414 LIBS="$ac_save_LIBS"
36415 fi
36416 fi
36417 if test "x$no_sdl" = x ; then
36418 echo "$as_me:$LINENO: result: yes" >&5
36419echo "${ECHO_T}yes" >&6
36420
36421 EXTRALIBS_SDL="$SDL_LIBS"
36422 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36423 cat >>confdefs.h <<\_ACEOF
36424#define wxUSE_LIBSDL 1
36425_ACEOF
36426
36427
36428 else
36429 echo "$as_me:$LINENO: result: no" >&5
36430echo "${ECHO_T}no" >&6
36431 if test "$SDL_CONFIG" = "no" ; then
36432 echo "*** The sdl-config script installed by SDL could not be found"
36433 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36434 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36435 echo "*** full path to sdl-config."
36436 else
36437 if test -f conf.sdltest ; then
36438 :
36439 else
36440 echo "*** Could not run SDL test program, checking why..."
36441 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36442 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36443 LIBS="$LIBS $SDL_LIBS"
36444 cat >conftest.$ac_ext <<_ACEOF
36445/* confdefs.h. */
36446_ACEOF
36447cat confdefs.h >>conftest.$ac_ext
36448cat >>conftest.$ac_ext <<_ACEOF
36449/* end confdefs.h. */
36450
36451#include <stdio.h>
36452#include "SDL.h"
36453
36454int main(int argc, char *argv[])
36455{ return 0; }
36456#undef main
36457#define main K_and_R_C_main
36458
36459int
36460main ()
36461{
36462 return 0;
36463 ;
36464 return 0;
36465}
36466_ACEOF
36467rm -f conftest.$ac_objext conftest$ac_exeext
36468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36469 (eval $ac_link) 2>conftest.er1
a848cd7e 36470 ac_status=$?
ac1cb8d3
VS
36471 grep -v '^ *+' conftest.er1 >conftest.err
36472 rm -f conftest.er1
36473 cat conftest.err >&5
a848cd7e
SC
36474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36475 (exit $ac_status); } &&
9dd0f6c2 36476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36478 (eval $ac_try) 2>&5
36479 ac_status=$?
36480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481 (exit $ac_status); }; } &&
36482 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36484 (eval $ac_try) 2>&5
36485 ac_status=$?
36486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36487 (exit $ac_status); }; }; then
36488 echo "*** The test program compiled, but did not run. This usually means"
36489 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36490 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36491 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36492 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36493 echo "*** is required on your system"
36494 echo "***"
36495 echo "*** If you have an old version installed, it is best to remove it, although"
36496 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36497else
36498 echo "$as_me: failed program was:" >&5
36499sed 's/^/| /' conftest.$ac_ext >&5
36500
36501 echo "*** The test program failed to compile or link. See the file config.log for the"
36502 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36503 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36504 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36505fi
ac1cb8d3
VS
36506rm -f conftest.err conftest.$ac_objext \
36507 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36508 CFLAGS="$ac_save_CFLAGS"
94acd38e 36509 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36510 LIBS="$ac_save_LIBS"
36511 fi
36512 fi
36513 SDL_CFLAGS=""
36514 SDL_LIBS=""
36515 wxUSE_LIBSDL="no"
36516 fi
36517
36518
36519 rm -f conf.sdltest
36520
36521 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36522 WITH_PLUGIN_SDL=1
36523 fi
36524 fi
36525 fi
36526
36527 cat >>confdefs.h <<\_ACEOF
36528#define wxUSE_SOUND 1
36529_ACEOF
36530
36531 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36532fi
36533
d1c38808
VZ
36534if test "$WXGTK20" = 1; then
36535 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36536 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36537
36538
36539 succeeded=no
36540
36541 if test -z "$PKG_CONFIG"; then
36542 # Extract the first word of "pkg-config", so it can be a program name with args.
36543set dummy pkg-config; ac_word=$2
36544echo "$as_me:$LINENO: checking for $ac_word" >&5
36545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36546if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36547 echo $ECHO_N "(cached) $ECHO_C" >&6
36548else
36549 case $PKG_CONFIG in
36550 [\\/]* | ?:[\\/]*)
36551 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36552 ;;
36553 *)
36554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36555for as_dir in $PATH
36556do
36557 IFS=$as_save_IFS
36558 test -z "$as_dir" && as_dir=.
36559 for ac_exec_ext in '' $ac_executable_extensions; do
36560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36561 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36563 break 2
36564 fi
36565done
36566done
36567
36568 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36569 ;;
36570esac
36571fi
36572PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36573
36574if test -n "$PKG_CONFIG"; then
36575 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36576echo "${ECHO_T}$PKG_CONFIG" >&6
36577else
36578 echo "$as_me:$LINENO: result: no" >&5
36579echo "${ECHO_T}no" >&6
36580fi
36581
36582 fi
36583
36584 if test "$PKG_CONFIG" = "no" ; then
36585 echo "*** The pkg-config script could not be found. Make sure it is"
36586 echo "*** in your path, or set the PKG_CONFIG environment variable"
36587 echo "*** to the full path to pkg-config."
36588 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36589 else
36590 PKG_CONFIG_MIN_VERSION=0.9.0
36591 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36592 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36593echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36594
ffa762ff 36595 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36596 echo "$as_me:$LINENO: result: yes" >&5
36597echo "${ECHO_T}yes" >&6
36598 succeeded=yes
36599
36600 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36601echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36602 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36603 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36604echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36605
36606 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36607echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36608 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36609 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36610echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36611 else
36612 LIBGNOMEPRINTUI_CFLAGS=""
36613 LIBGNOMEPRINTUI_LIBS=""
36614 ## If we have a custom action on failure, don't print errors, but
36615 ## do set a variable so people can do so.
ffa762ff 36616 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36617
36618 fi
36619
36620
36621
36622 else
36623 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36624 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36625 fi
36626 fi
36627
36628 if test $succeeded = yes; then
36629
d1c38808
VZ
36630 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36631 cat >>confdefs.h <<\_ACEOF
36632#define wxUSE_LIBGNOMEPRINT 1
36633_ACEOF
36634
36635
36636 else
36637
36638 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36639echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36640 wxUSE_LIBGNOMEPRINT="no"
36641
36642
36643 fi
36644
36645 fi
36646 fi
36647fi
36648
36649
a848cd7e
SC
36650if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36651 cat >>confdefs.h <<\_ACEOF
36652#define wxUSE_CMDLINE_PARSER 1
36653_ACEOF
36654
36655fi
36656
36657if test "$wxUSE_STOPWATCH" = "yes"; then
36658 cat >>confdefs.h <<\_ACEOF
36659#define wxUSE_STOPWATCH 1
36660_ACEOF
36661
36662fi
36663
36664if test "$wxUSE_DATETIME" = "yes"; then
36665 cat >>confdefs.h <<\_ACEOF
36666#define wxUSE_DATETIME 1
36667_ACEOF
36668
36669fi
36670
36671if test "$wxUSE_FILE" = "yes"; then
36672 cat >>confdefs.h <<\_ACEOF
36673#define wxUSE_FILE 1
36674_ACEOF
36675
36676fi
36677
36678if test "$wxUSE_FFILE" = "yes"; then
36679 cat >>confdefs.h <<\_ACEOF
36680#define wxUSE_FFILE 1
36681_ACEOF
36682
36683fi
36684
36685if test "$wxUSE_FILESYSTEM" = "yes"; then
36686 cat >>confdefs.h <<\_ACEOF
36687#define wxUSE_FILESYSTEM 1
36688_ACEOF
36689
36690fi
36691
36692if test "$wxUSE_FS_ZIP" = "yes"; then
36693 cat >>confdefs.h <<\_ACEOF
36694#define wxUSE_FS_ZIP 1
36695_ACEOF
36696
36697fi
36698
9e8e867f 36699if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36700 cat >>confdefs.h <<\_ACEOF
9e8e867f 36701#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36702_ACEOF
36703
36704fi
36705
36706if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36707 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36708 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36709echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36710 elif test "$wxUSE_ZLIB" = "no"; then
36711 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36712echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36713 else
36714 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36715#define wxUSE_ZIPSTREAM 1
36716_ACEOF
36717
81f90336 36718 fi
a848cd7e
SC
36719fi
36720
a848cd7e
SC
36721if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36722 cat >>confdefs.h <<\_ACEOF
36723#define wxUSE_ON_FATAL_EXCEPTION 1
36724_ACEOF
36725
36726fi
36727
eaff0f0d
VZ
36728if test "$wxUSE_STACKWALKER" = "yes"; then
36729 cat >>confdefs.h <<\_ACEOF
36730#define wxUSE_STACKWALKER 1
36731_ACEOF
36732
36733fi
36734
36b6448c 36735if test "$wxUSE_DEBUGREPORT" = "yes"; then
dfe0c803
JS
36736 if test "$USE_OS2" = "1"; then
36737 { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5
36738echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;}
36739 wxUSE_DEBUGREPORT=no
36740 else
36741 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
36742#define wxUSE_DEBUGREPORT 1
36743_ACEOF
36744
21dfc162
MW
36745 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36747 fi
dfe0c803 36748 fi
36b6448c
VZ
36749fi
36750
a848cd7e
SC
36751if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36752 cat >>confdefs.h <<\_ACEOF
36753#define wxUSE_SNGLINST_CHECKER 1
36754_ACEOF
36755
36756fi
36757
36758if test "$wxUSE_BUSYINFO" = "yes"; then
36759 cat >>confdefs.h <<\_ACEOF
36760#define wxUSE_BUSYINFO 1
36761_ACEOF
36762
36763fi
36764
36765if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36766 cat >>confdefs.h <<\_ACEOF
36767#define wxUSE_STD_IOSTREAM 1
36768_ACEOF
36769
36770fi
36771
59746b65
MW
36772if test "$wxUSE_STD_STRING" = "yes"; then
36773 cat >>confdefs.h <<\_ACEOF
36774#define wxUSE_STD_STRING 1
36775_ACEOF
36776
36777fi
36778
07158944
VZ
36779if test "$wxUSE_STDPATHS" = "yes"; then
36780 cat >>confdefs.h <<\_ACEOF
36781#define wxUSE_STDPATHS 1
36782_ACEOF
36783
36784fi
36785
a848cd7e
SC
36786if test "$wxUSE_TEXTBUFFER" = "yes"; then
36787 cat >>confdefs.h <<\_ACEOF
36788#define wxUSE_TEXTBUFFER 1
36789_ACEOF
36790
36791fi
36792
36793if test "$wxUSE_TEXTFILE" = "yes"; then
36794 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36795 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36796echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36797 else
36798 cat >>confdefs.h <<\_ACEOF
36799#define wxUSE_TEXTFILE 1
36800_ACEOF
36801
36802 fi
36803fi
36804
36805if test "$wxUSE_CONFIG" = "yes" ; then
36806 if test "$wxUSE_TEXTFILE" != "yes"; then
36807 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36808echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36809 else
36810 cat >>confdefs.h <<\_ACEOF
36811#define wxUSE_CONFIG 1
89be85c2
VS
36812_ACEOF
36813
36814 cat >>confdefs.h <<\_ACEOF
36815#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36816_ACEOF
36817
36818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36819 fi
36820fi
36821
36822if test "$wxUSE_INTL" = "yes" ; then
36823 if test "$wxUSE_FILE" != "yes"; then
36824 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36825echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36826 else
36827 cat >>confdefs.h <<\_ACEOF
36828#define wxUSE_INTL 1
36829_ACEOF
36830
36831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36832 GUIDIST="$GUIDIST INTL_DIST"
36833 fi
36834fi
36835
36836if test "$wxUSE_LOG" = "yes"; then
36837 cat >>confdefs.h <<\_ACEOF
36838#define wxUSE_LOG 1
36839_ACEOF
36840
36841
36842 if test "$wxUSE_LOGGUI" = "yes"; then
36843 cat >>confdefs.h <<\_ACEOF
36844#define wxUSE_LOGGUI 1
36845_ACEOF
36846
36847 fi
36848
36849 if test "$wxUSE_LOGWINDOW" = "yes"; then
36850 cat >>confdefs.h <<\_ACEOF
36851#define wxUSE_LOGWINDOW 1
36852_ACEOF
36853
36854 fi
36855
36856 if test "$wxUSE_LOGDIALOG" = "yes"; then
36857 cat >>confdefs.h <<\_ACEOF
36858#define wxUSE_LOG_DIALOG 1
36859_ACEOF
36860
36861 fi
0b78747f
MW
36862
36863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
36864fi
36865
36866if test "$wxUSE_LONGLONG" = "yes"; then
36867 cat >>confdefs.h <<\_ACEOF
36868#define wxUSE_LONGLONG 1
36869_ACEOF
36870
36871fi
36872
36873if test "$wxUSE_GEOMETRY" = "yes"; then
36874 cat >>confdefs.h <<\_ACEOF
36875#define wxUSE_GEOMETRY 1
36876_ACEOF
36877
36878fi
36879
a848cd7e
SC
36880if test "$wxUSE_STREAMS" = "yes" ; then
36881 cat >>confdefs.h <<\_ACEOF
36882#define wxUSE_STREAMS 1
36883_ACEOF
36884
36885fi
36886
36887
36888if test "$wxUSE_DATETIME" = "yes"; then
36889
36890for ac_func in strptime
36891do
36892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36893echo "$as_me:$LINENO: checking for $ac_func" >&5
36894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36895if eval "test \"\${$as_ac_var+set}\" = set"; then
36896 echo $ECHO_N "(cached) $ECHO_C" >&6
36897else
36898 cat >conftest.$ac_ext <<_ACEOF
36899/* confdefs.h. */
36900_ACEOF
36901cat confdefs.h >>conftest.$ac_ext
36902cat >>conftest.$ac_ext <<_ACEOF
36903/* end confdefs.h. */
ac1cb8d3
VS
36904/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36906#define $ac_func innocuous_$ac_func
36907
a848cd7e
SC
36908/* System header to define __stub macros and hopefully few prototypes,
36909 which can conflict with char $ac_func (); below.
36910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36911 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36912
a848cd7e
SC
36913#ifdef __STDC__
36914# include <limits.h>
36915#else
36916# include <assert.h>
36917#endif
ac1cb8d3
VS
36918
36919#undef $ac_func
36920
a848cd7e
SC
36921/* Override any gcc2 internal prototype to avoid an error. */
36922#ifdef __cplusplus
36923extern "C"
36924{
36925#endif
36926/* We use char because int might match the return type of a gcc2
36927 builtin and then its argument prototype would still apply. */
36928char $ac_func ();
36929/* The GNU C library defines this for functions which it implements
36930 to always fail with ENOSYS. Some functions are actually named
36931 something starting with __ and the normal name is an alias. */
36932#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36933choke me
36934#else
36935char (*f) () = $ac_func;
36936#endif
36937#ifdef __cplusplus
36938}
36939#endif
36940
36941int
36942main ()
36943{
36944return f != $ac_func;
36945 ;
36946 return 0;
36947}
36948_ACEOF
36949rm -f conftest.$ac_objext conftest$ac_exeext
36950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36951 (eval $ac_link) 2>conftest.er1
a848cd7e 36952 ac_status=$?
ac1cb8d3
VS
36953 grep -v '^ *+' conftest.er1 >conftest.err
36954 rm -f conftest.er1
36955 cat conftest.err >&5
a848cd7e
SC
36956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36957 (exit $ac_status); } &&
9dd0f6c2 36958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36960 (eval $ac_try) 2>&5
36961 ac_status=$?
36962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36963 (exit $ac_status); }; } &&
36964 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36966 (eval $ac_try) 2>&5
36967 ac_status=$?
36968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36969 (exit $ac_status); }; }; then
36970 eval "$as_ac_var=yes"
36971else
36972 echo "$as_me: failed program was:" >&5
36973sed 's/^/| /' conftest.$ac_ext >&5
36974
36975eval "$as_ac_var=no"
36976fi
ac1cb8d3
VS
36977rm -f conftest.err conftest.$ac_objext \
36978 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36979fi
36980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36981echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36982if test `eval echo '${'$as_ac_var'}'` = yes; then
36983 cat >>confdefs.h <<_ACEOF
36984#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36985_ACEOF
36986
36987fi
36988done
36989
36990
36991 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36992echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36993if test "${wx_cv_var_timezone+set}" = set; then
36994 echo $ECHO_N "(cached) $ECHO_C" >&6
36995else
36996
36997 cat >conftest.$ac_ext <<_ACEOF
36998/* confdefs.h. */
36999_ACEOF
37000cat confdefs.h >>conftest.$ac_ext
37001cat >>conftest.$ac_ext <<_ACEOF
37002/* end confdefs.h. */
37003
37004 #include <time.h>
37005
37006int
37007main ()
37008{
37009
37010 int tz;
37011 tz = timezone;
37012
37013 ;
37014 return 0;
37015}
37016_ACEOF
37017rm -f conftest.$ac_objext
37018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37019 (eval $ac_compile) 2>conftest.er1
a848cd7e 37020 ac_status=$?
ac1cb8d3
VS
37021 grep -v '^ *+' conftest.er1 >conftest.err
37022 rm -f conftest.er1
37023 cat conftest.err >&5
a848cd7e
SC
37024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37025 (exit $ac_status); } &&
9dd0f6c2 37026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37028 (eval $ac_try) 2>&5
37029 ac_status=$?
37030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37031 (exit $ac_status); }; } &&
37032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37034 (eval $ac_try) 2>&5
37035 ac_status=$?
37036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37037 (exit $ac_status); }; }; then
37038
37039 wx_cv_var_timezone=timezone
37040
37041else
37042 echo "$as_me: failed program was:" >&5
37043sed 's/^/| /' conftest.$ac_ext >&5
37044
37045
37046 cat >conftest.$ac_ext <<_ACEOF
37047/* confdefs.h. */
37048_ACEOF
37049cat confdefs.h >>conftest.$ac_ext
37050cat >>conftest.$ac_ext <<_ACEOF
37051/* end confdefs.h. */
37052
37053 #include <time.h>
37054
37055int
37056main ()
37057{
37058
37059 int tz;
37060 tz = _timezone;
37061
37062 ;
37063 return 0;
37064}
37065_ACEOF
37066rm -f conftest.$ac_objext
37067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37068 (eval $ac_compile) 2>conftest.er1
a848cd7e 37069 ac_status=$?
ac1cb8d3
VS
37070 grep -v '^ *+' conftest.er1 >conftest.err
37071 rm -f conftest.er1
37072 cat conftest.err >&5
a848cd7e
SC
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); } &&
9dd0f6c2 37075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37077 (eval $ac_try) 2>&5
37078 ac_status=$?
37079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37080 (exit $ac_status); }; } &&
37081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37083 (eval $ac_try) 2>&5
37084 ac_status=$?
37085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37086 (exit $ac_status); }; }; then
37087
37088 wx_cv_var_timezone=_timezone
37089
37090else
37091 echo "$as_me: failed program was:" >&5
37092sed 's/^/| /' conftest.$ac_ext >&5
37093
37094
37095 cat >conftest.$ac_ext <<_ACEOF
37096/* confdefs.h. */
37097_ACEOF
37098cat confdefs.h >>conftest.$ac_ext
37099cat >>conftest.$ac_ext <<_ACEOF
37100/* end confdefs.h. */
37101
37102 #include <time.h>
37103
37104int
37105main ()
37106{
37107
37108 int tz;
37109 tz = __timezone;
37110
37111 ;
37112 return 0;
37113}
37114_ACEOF
37115rm -f conftest.$ac_objext
37116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37117 (eval $ac_compile) 2>conftest.er1
a848cd7e 37118 ac_status=$?
ac1cb8d3
VS
37119 grep -v '^ *+' conftest.er1 >conftest.err
37120 rm -f conftest.er1
37121 cat conftest.err >&5
a848cd7e
SC
37122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123 (exit $ac_status); } &&
9dd0f6c2 37124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37126 (eval $ac_try) 2>&5
37127 ac_status=$?
37128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37129 (exit $ac_status); }; } &&
37130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37132 (eval $ac_try) 2>&5
37133 ac_status=$?
37134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37135 (exit $ac_status); }; }; then
37136
37137 wx_cv_var_timezone=__timezone
37138
37139else
37140 echo "$as_me: failed program was:" >&5
37141sed 's/^/| /' conftest.$ac_ext >&5
37142
37143
37144 if test "$USE_DOS" = 0 ; then
37145 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37146echo "$as_me: WARNING: no timezone variable" >&2;}
37147 fi
37148
37149
37150fi
ac1cb8d3 37151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37152
37153
37154fi
ac1cb8d3 37155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37156
37157
37158fi
ac1cb8d3 37159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37160
37161
37162fi
37163echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37164echo "${ECHO_T}$wx_cv_var_timezone" >&6
37165
37166 if test "x$wx_cv_var_timezone" != x ; then
37167 cat >>confdefs.h <<_ACEOF
37168#define WX_TIMEZONE $wx_cv_var_timezone
37169_ACEOF
37170
37171 fi
37172
37173
37174for ac_func in localtime
37175do
37176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37177echo "$as_me:$LINENO: checking for $ac_func" >&5
37178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37179if eval "test \"\${$as_ac_var+set}\" = set"; then
37180 echo $ECHO_N "(cached) $ECHO_C" >&6
37181else
37182 cat >conftest.$ac_ext <<_ACEOF
37183/* confdefs.h. */
37184_ACEOF
37185cat confdefs.h >>conftest.$ac_ext
37186cat >>conftest.$ac_ext <<_ACEOF
37187/* end confdefs.h. */
ac1cb8d3
VS
37188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37190#define $ac_func innocuous_$ac_func
37191
a848cd7e
SC
37192/* System header to define __stub macros and hopefully few prototypes,
37193 which can conflict with char $ac_func (); below.
37194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37195 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37196
a848cd7e
SC
37197#ifdef __STDC__
37198# include <limits.h>
37199#else
37200# include <assert.h>
37201#endif
ac1cb8d3
VS
37202
37203#undef $ac_func
37204
a848cd7e
SC
37205/* Override any gcc2 internal prototype to avoid an error. */
37206#ifdef __cplusplus
37207extern "C"
37208{
37209#endif
37210/* We use char because int might match the return type of a gcc2
37211 builtin and then its argument prototype would still apply. */
37212char $ac_func ();
37213/* The GNU C library defines this for functions which it implements
37214 to always fail with ENOSYS. Some functions are actually named
37215 something starting with __ and the normal name is an alias. */
37216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37217choke me
37218#else
37219char (*f) () = $ac_func;
37220#endif
37221#ifdef __cplusplus
37222}
37223#endif
37224
37225int
37226main ()
37227{
37228return f != $ac_func;
37229 ;
37230 return 0;
37231}
37232_ACEOF
37233rm -f conftest.$ac_objext conftest$ac_exeext
37234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37235 (eval $ac_link) 2>conftest.er1
a848cd7e 37236 ac_status=$?
ac1cb8d3
VS
37237 grep -v '^ *+' conftest.er1 >conftest.err
37238 rm -f conftest.er1
37239 cat conftest.err >&5
a848cd7e
SC
37240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241 (exit $ac_status); } &&
9dd0f6c2 37242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244 (eval $ac_try) 2>&5
37245 ac_status=$?
37246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247 (exit $ac_status); }; } &&
37248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37250 (eval $ac_try) 2>&5
37251 ac_status=$?
37252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37253 (exit $ac_status); }; }; then
37254 eval "$as_ac_var=yes"
37255else
37256 echo "$as_me: failed program was:" >&5
37257sed 's/^/| /' conftest.$ac_ext >&5
37258
37259eval "$as_ac_var=no"
37260fi
ac1cb8d3
VS
37261rm -f conftest.err conftest.$ac_objext \
37262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37263fi
37264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37265echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37266if test `eval echo '${'$as_ac_var'}'` = yes; then
37267 cat >>confdefs.h <<_ACEOF
37268#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37269_ACEOF
37270
37271fi
37272done
37273
37274
37275 if test "$ac_cv_func_localtime" = "yes"; then
37276 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37277echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37278if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37279 echo $ECHO_N "(cached) $ECHO_C" >&6
37280else
37281
37282 cat >conftest.$ac_ext <<_ACEOF
37283/* confdefs.h. */
37284_ACEOF
37285cat confdefs.h >>conftest.$ac_ext
37286cat >>conftest.$ac_ext <<_ACEOF
37287/* end confdefs.h. */
37288
37289 #include <time.h>
37290
37291int
37292main ()
37293{
37294
37295 struct tm tm;
37296 tm.tm_gmtoff++;
37297
37298 ;
37299 return 0;
37300}
37301_ACEOF
37302rm -f conftest.$ac_objext
37303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37304 (eval $ac_compile) 2>conftest.er1
a848cd7e 37305 ac_status=$?
ac1cb8d3
VS
37306 grep -v '^ *+' conftest.er1 >conftest.err
37307 rm -f conftest.er1
37308 cat conftest.err >&5
a848cd7e
SC
37309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37310 (exit $ac_status); } &&
9dd0f6c2 37311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37313 (eval $ac_try) 2>&5
37314 ac_status=$?
37315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316 (exit $ac_status); }; } &&
37317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37319 (eval $ac_try) 2>&5
37320 ac_status=$?
37321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322 (exit $ac_status); }; }; then
37323
37324 wx_cv_struct_tm_has_gmtoff=yes
37325
37326else
37327 echo "$as_me: failed program was:" >&5
37328sed 's/^/| /' conftest.$ac_ext >&5
37329
37330wx_cv_struct_tm_has_gmtoff=no
37331
37332fi
ac1cb8d3 37333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37334
37335fi
37336echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37337echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37338 fi
37339
37340 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37341 cat >>confdefs.h <<\_ACEOF
37342#define WX_GMTOFF_IN_TM 1
37343_ACEOF
37344
37345 fi
37346
37347
37348
37349for ac_func in gettimeofday ftime
37350do
37351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37352echo "$as_me:$LINENO: checking for $ac_func" >&5
37353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37354if eval "test \"\${$as_ac_var+set}\" = set"; then
37355 echo $ECHO_N "(cached) $ECHO_C" >&6
37356else
37357 cat >conftest.$ac_ext <<_ACEOF
37358/* confdefs.h. */
37359_ACEOF
37360cat confdefs.h >>conftest.$ac_ext
37361cat >>conftest.$ac_ext <<_ACEOF
37362/* end confdefs.h. */
ac1cb8d3
VS
37363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37365#define $ac_func innocuous_$ac_func
37366
a848cd7e
SC
37367/* System header to define __stub macros and hopefully few prototypes,
37368 which can conflict with char $ac_func (); below.
37369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37370 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37371
a848cd7e
SC
37372#ifdef __STDC__
37373# include <limits.h>
37374#else
37375# include <assert.h>
37376#endif
ac1cb8d3
VS
37377
37378#undef $ac_func
37379
a848cd7e
SC
37380/* Override any gcc2 internal prototype to avoid an error. */
37381#ifdef __cplusplus
37382extern "C"
37383{
37384#endif
37385/* We use char because int might match the return type of a gcc2
37386 builtin and then its argument prototype would still apply. */
37387char $ac_func ();
37388/* The GNU C library defines this for functions which it implements
37389 to always fail with ENOSYS. Some functions are actually named
37390 something starting with __ and the normal name is an alias. */
37391#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37392choke me
37393#else
37394char (*f) () = $ac_func;
37395#endif
37396#ifdef __cplusplus
37397}
37398#endif
37399
37400int
37401main ()
37402{
37403return f != $ac_func;
37404 ;
37405 return 0;
37406}
37407_ACEOF
37408rm -f conftest.$ac_objext conftest$ac_exeext
37409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37410 (eval $ac_link) 2>conftest.er1
a848cd7e 37411 ac_status=$?
ac1cb8d3
VS
37412 grep -v '^ *+' conftest.er1 >conftest.err
37413 rm -f conftest.er1
37414 cat conftest.err >&5
a848cd7e
SC
37415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416 (exit $ac_status); } &&
9dd0f6c2 37417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37419 (eval $ac_try) 2>&5
37420 ac_status=$?
37421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37422 (exit $ac_status); }; } &&
37423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37425 (eval $ac_try) 2>&5
37426 ac_status=$?
37427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37428 (exit $ac_status); }; }; then
37429 eval "$as_ac_var=yes"
37430else
37431 echo "$as_me: failed program was:" >&5
37432sed 's/^/| /' conftest.$ac_ext >&5
37433
37434eval "$as_ac_var=no"
37435fi
ac1cb8d3
VS
37436rm -f conftest.err conftest.$ac_objext \
37437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37438fi
37439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37440echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37441if test `eval echo '${'$as_ac_var'}'` = yes; then
37442 cat >>confdefs.h <<_ACEOF
37443#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37444_ACEOF
37445 break
37446fi
37447done
37448
37449
37450 if test "$ac_cv_func_gettimeofday" = "yes"; then
37451 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37452echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37453if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37454 echo $ECHO_N "(cached) $ECHO_C" >&6
37455else
37456
37457
37458
37459 ac_ext=cc
37460ac_cpp='$CXXCPP $CPPFLAGS'
37461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37464
37465
37466 cat >conftest.$ac_ext <<_ACEOF
37467/* confdefs.h. */
37468_ACEOF
37469cat confdefs.h >>conftest.$ac_ext
37470cat >>conftest.$ac_ext <<_ACEOF
37471/* end confdefs.h. */
37472
37473 #include <sys/time.h>
37474 #include <unistd.h>
37475
37476int
37477main ()
37478{
37479
37480 struct timeval tv;
37481 gettimeofday(&tv, NULL);
37482
37483 ;
37484 return 0;
37485}
37486_ACEOF
37487rm -f conftest.$ac_objext
37488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37489 (eval $ac_compile) 2>conftest.er1
a848cd7e 37490 ac_status=$?
ac1cb8d3
VS
37491 grep -v '^ *+' conftest.er1 >conftest.err
37492 rm -f conftest.er1
37493 cat conftest.err >&5
a848cd7e
SC
37494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495 (exit $ac_status); } &&
9dd0f6c2 37496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37498 (eval $ac_try) 2>&5
37499 ac_status=$?
37500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501 (exit $ac_status); }; } &&
37502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37504 (eval $ac_try) 2>&5
37505 ac_status=$?
37506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37507 (exit $ac_status); }; }; then
37508 wx_cv_func_gettimeofday_has_2_args=yes
37509else
37510 echo "$as_me: failed program was:" >&5
37511sed 's/^/| /' conftest.$ac_ext >&5
37512
37513cat >conftest.$ac_ext <<_ACEOF
37514/* confdefs.h. */
37515_ACEOF
37516cat confdefs.h >>conftest.$ac_ext
37517cat >>conftest.$ac_ext <<_ACEOF
37518/* end confdefs.h. */
37519
37520 #include <sys/time.h>
37521 #include <unistd.h>
37522
37523int
37524main ()
37525{
37526
37527 struct timeval tv;
37528 gettimeofday(&tv);
37529
37530 ;
37531 return 0;
37532}
37533_ACEOF
37534rm -f conftest.$ac_objext
37535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37536 (eval $ac_compile) 2>conftest.er1
a848cd7e 37537 ac_status=$?
ac1cb8d3
VS
37538 grep -v '^ *+' conftest.er1 >conftest.err
37539 rm -f conftest.er1
37540 cat conftest.err >&5
a848cd7e
SC
37541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37542 (exit $ac_status); } &&
9dd0f6c2 37543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37545 (eval $ac_try) 2>&5
37546 ac_status=$?
37547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548 (exit $ac_status); }; } &&
37549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37551 (eval $ac_try) 2>&5
37552 ac_status=$?
37553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554 (exit $ac_status); }; }; then
37555 wx_cv_func_gettimeofday_has_2_args=no
37556else
37557 echo "$as_me: failed program was:" >&5
37558sed 's/^/| /' conftest.$ac_ext >&5
37559
37560
37561 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37562echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37563 wx_cv_func_gettimeofday_has_2_args=unknown
37564
37565
37566fi
ac1cb8d3 37567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37568
37569fi
ac1cb8d3 37570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37571 ac_ext=c
37572ac_cpp='$CPP $CPPFLAGS'
37573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37575ac_compiler_gnu=$ac_cv_c_compiler_gnu
37576
37577
37578fi
37579echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37580echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37581
37582 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37583 cat >>confdefs.h <<\_ACEOF
37584#define WX_GETTIMEOFDAY_NO_TZ 1
37585_ACEOF
37586
37587 fi
37588 fi
37589
37590 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37591fi
37592
37593
37594if test "$wxUSE_SOCKETS" = "yes"; then
37595 if test "$wxUSE_MGL" = "1"; then
37596 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37597echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37598 wxUSE_SOCKETS="no"
37599 fi
37600fi
37601
37602if test "$wxUSE_SOCKETS" = "yes"; then
37603 if test "$TOOLKIT" != "MSW"; then
37604 echo "$as_me:$LINENO: checking for socket" >&5
37605echo $ECHO_N "checking for socket... $ECHO_C" >&6
37606if test "${ac_cv_func_socket+set}" = set; then
37607 echo $ECHO_N "(cached) $ECHO_C" >&6
37608else
37609 cat >conftest.$ac_ext <<_ACEOF
37610/* confdefs.h. */
37611_ACEOF
37612cat confdefs.h >>conftest.$ac_ext
37613cat >>conftest.$ac_ext <<_ACEOF
37614/* end confdefs.h. */
ac1cb8d3
VS
37615/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37617#define socket innocuous_socket
37618
a848cd7e
SC
37619/* System header to define __stub macros and hopefully few prototypes,
37620 which can conflict with char socket (); below.
37621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37622 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37623
a848cd7e
SC
37624#ifdef __STDC__
37625# include <limits.h>
37626#else
37627# include <assert.h>
37628#endif
ac1cb8d3
VS
37629
37630#undef socket
37631
a848cd7e
SC
37632/* Override any gcc2 internal prototype to avoid an error. */
37633#ifdef __cplusplus
37634extern "C"
37635{
37636#endif
37637/* We use char because int might match the return type of a gcc2
37638 builtin and then its argument prototype would still apply. */
37639char socket ();
37640/* The GNU C library defines this for functions which it implements
37641 to always fail with ENOSYS. Some functions are actually named
37642 something starting with __ and the normal name is an alias. */
37643#if defined (__stub_socket) || defined (__stub___socket)
37644choke me
37645#else
37646char (*f) () = socket;
37647#endif
37648#ifdef __cplusplus
37649}
37650#endif
37651
37652int
37653main ()
37654{
37655return f != socket;
37656 ;
37657 return 0;
37658}
37659_ACEOF
37660rm -f conftest.$ac_objext conftest$ac_exeext
37661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37662 (eval $ac_link) 2>conftest.er1
a848cd7e 37663 ac_status=$?
ac1cb8d3
VS
37664 grep -v '^ *+' conftest.er1 >conftest.err
37665 rm -f conftest.er1
37666 cat conftest.err >&5
a848cd7e
SC
37667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668 (exit $ac_status); } &&
9dd0f6c2 37669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37671 (eval $ac_try) 2>&5
37672 ac_status=$?
37673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37674 (exit $ac_status); }; } &&
37675 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37677 (eval $ac_try) 2>&5
37678 ac_status=$?
37679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680 (exit $ac_status); }; }; then
37681 ac_cv_func_socket=yes
37682else
37683 echo "$as_me: failed program was:" >&5
37684sed 's/^/| /' conftest.$ac_ext >&5
37685
37686ac_cv_func_socket=no
37687fi
ac1cb8d3
VS
37688rm -f conftest.err conftest.$ac_objext \
37689 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37690fi
37691echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37692echo "${ECHO_T}$ac_cv_func_socket" >&6
37693if test $ac_cv_func_socket = yes; then
37694 :
37695else
37696
37697 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37698echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37699if test "${ac_cv_lib_socket_socket+set}" = set; then
37700 echo $ECHO_N "(cached) $ECHO_C" >&6
37701else
37702 ac_check_lib_save_LIBS=$LIBS
37703LIBS="-lsocket $LIBS"
37704cat >conftest.$ac_ext <<_ACEOF
37705/* confdefs.h. */
37706_ACEOF
37707cat confdefs.h >>conftest.$ac_ext
37708cat >>conftest.$ac_ext <<_ACEOF
37709/* end confdefs.h. */
37710
37711/* Override any gcc2 internal prototype to avoid an error. */
37712#ifdef __cplusplus
37713extern "C"
37714#endif
37715/* We use char because int might match the return type of a gcc2
37716 builtin and then its argument prototype would still apply. */
37717char socket ();
37718int
37719main ()
37720{
37721socket ();
37722 ;
37723 return 0;
37724}
37725_ACEOF
37726rm -f conftest.$ac_objext conftest$ac_exeext
37727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37728 (eval $ac_link) 2>conftest.er1
a848cd7e 37729 ac_status=$?
ac1cb8d3
VS
37730 grep -v '^ *+' conftest.er1 >conftest.err
37731 rm -f conftest.er1
37732 cat conftest.err >&5
a848cd7e
SC
37733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734 (exit $ac_status); } &&
9dd0f6c2 37735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37737 (eval $ac_try) 2>&5
37738 ac_status=$?
37739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37740 (exit $ac_status); }; } &&
37741 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37743 (eval $ac_try) 2>&5
37744 ac_status=$?
37745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37746 (exit $ac_status); }; }; then
37747 ac_cv_lib_socket_socket=yes
37748else
37749 echo "$as_me: failed program was:" >&5
37750sed 's/^/| /' conftest.$ac_ext >&5
37751
37752ac_cv_lib_socket_socket=no
37753fi
ac1cb8d3
VS
37754rm -f conftest.err conftest.$ac_objext \
37755 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37756LIBS=$ac_check_lib_save_LIBS
37757fi
37758echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37759echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37760if test $ac_cv_lib_socket_socket = yes; then
37761 if test "$INET_LINK" != " -lsocket"; then
37762 INET_LINK="$INET_LINK -lsocket"
37763 fi
37764else
37765
37766 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37767echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37768 wxUSE_SOCKETS=no
37769
37770
37771fi
37772
37773
37774
37775fi
37776
37777 fi
37778fi
37779
37780if test "$wxUSE_SOCKETS" = "yes" ; then
37781 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37782 ac_ext=cc
37783ac_cpp='$CXXCPP $CPPFLAGS'
37784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37787
37788 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37789echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37790if test "${wx_cv_type_getsockname3+set}" = set; then
37791 echo $ECHO_N "(cached) $ECHO_C" >&6
37792else
37793
37794 cat >conftest.$ac_ext <<_ACEOF
37795/* confdefs.h. */
37796_ACEOF
37797cat confdefs.h >>conftest.$ac_ext
37798cat >>conftest.$ac_ext <<_ACEOF
37799/* end confdefs.h. */
37800
37801 #include <sys/types.h>
37802 #include <sys/socket.h>
37803
37804int
37805main ()
37806{
37807
37808 socklen_t len;
37809 getsockname(0, 0, &len);
37810
37811 ;
37812 return 0;
37813}
37814_ACEOF
37815rm -f conftest.$ac_objext
37816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37817 (eval $ac_compile) 2>conftest.er1
a848cd7e 37818 ac_status=$?
ac1cb8d3
VS
37819 grep -v '^ *+' conftest.er1 >conftest.err
37820 rm -f conftest.er1
37821 cat conftest.err >&5
a848cd7e
SC
37822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37823 (exit $ac_status); } &&
9dd0f6c2 37824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37826 (eval $ac_try) 2>&5
37827 ac_status=$?
37828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); }; } &&
37830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37832 (eval $ac_try) 2>&5
37833 ac_status=$?
37834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37835 (exit $ac_status); }; }; then
37836 wx_cv_type_getsockname3=socklen_t
37837else
37838 echo "$as_me: failed program was:" >&5
37839sed 's/^/| /' conftest.$ac_ext >&5
37840
37841
37842 CFLAGS_OLD="$CFLAGS"
37843 if test "$GCC" = yes ; then
37844 CFLAGS="$CFLAGS -Werror"
37845 fi
37846
37847 cat >conftest.$ac_ext <<_ACEOF
37848/* confdefs.h. */
37849_ACEOF
37850cat confdefs.h >>conftest.$ac_ext
37851cat >>conftest.$ac_ext <<_ACEOF
37852/* end confdefs.h. */
37853
37854 #include <sys/types.h>
37855 #include <sys/socket.h>
37856
37857int
37858main ()
37859{
37860
37861 size_t len;
37862 getsockname(0, 0, &len);
37863
37864 ;
37865 return 0;
37866}
37867_ACEOF
37868rm -f conftest.$ac_objext
37869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37870 (eval $ac_compile) 2>conftest.er1
a848cd7e 37871 ac_status=$?
ac1cb8d3
VS
37872 grep -v '^ *+' conftest.er1 >conftest.err
37873 rm -f conftest.er1
37874 cat conftest.err >&5
a848cd7e
SC
37875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876 (exit $ac_status); } &&
9dd0f6c2 37877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37879 (eval $ac_try) 2>&5
37880 ac_status=$?
37881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882 (exit $ac_status); }; } &&
37883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37885 (eval $ac_try) 2>&5
37886 ac_status=$?
37887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37888 (exit $ac_status); }; }; then
37889 wx_cv_type_getsockname3=size_t
37890else
37891 echo "$as_me: failed program was:" >&5
37892sed 's/^/| /' conftest.$ac_ext >&5
37893
37894cat >conftest.$ac_ext <<_ACEOF
37895/* confdefs.h. */
37896_ACEOF
37897cat confdefs.h >>conftest.$ac_ext
37898cat >>conftest.$ac_ext <<_ACEOF
37899/* end confdefs.h. */
37900
37901 #include <sys/types.h>
37902 #include <sys/socket.h>
37903
37904int
37905main ()
37906{
37907
37908 int len;
37909 getsockname(0, 0, &len);
37910
37911 ;
37912 return 0;
37913}
37914_ACEOF
37915rm -f conftest.$ac_objext
37916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37917 (eval $ac_compile) 2>conftest.er1
a848cd7e 37918 ac_status=$?
ac1cb8d3
VS
37919 grep -v '^ *+' conftest.er1 >conftest.err
37920 rm -f conftest.er1
37921 cat conftest.err >&5
a848cd7e
SC
37922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37923 (exit $ac_status); } &&
9dd0f6c2 37924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37926 (eval $ac_try) 2>&5
37927 ac_status=$?
37928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37929 (exit $ac_status); }; } &&
37930 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37932 (eval $ac_try) 2>&5
37933 ac_status=$?
37934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37935 (exit $ac_status); }; }; then
37936 wx_cv_type_getsockname3=int
37937else
37938 echo "$as_me: failed program was:" >&5
37939sed 's/^/| /' conftest.$ac_ext >&5
37940
37941wx_cv_type_getsockname3=unknown
37942
37943fi
ac1cb8d3 37944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37945
37946fi
ac1cb8d3 37947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37948
37949 CFLAGS="$CFLAGS_OLD"
37950
37951
37952fi
ac1cb8d3 37953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37954
37955fi
37956echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37957echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37958
37959 if test "$wx_cv_type_getsockname3" = "unknown"; then
37960 wxUSE_SOCKETS=no
37961 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37962echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37963 else
37964 cat >>confdefs.h <<_ACEOF
37965#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37966_ACEOF
37967
37968 fi
37969 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37970echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37971if test "${wx_cv_type_getsockopt5+set}" = set; then
37972 echo $ECHO_N "(cached) $ECHO_C" >&6
37973else
37974
37975 cat >conftest.$ac_ext <<_ACEOF
37976/* confdefs.h. */
37977_ACEOF
37978cat confdefs.h >>conftest.$ac_ext
37979cat >>conftest.$ac_ext <<_ACEOF
37980/* end confdefs.h. */
37981
37982 #include <sys/types.h>
37983 #include <sys/socket.h>
37984
37985int
37986main ()
37987{
37988
37989 socklen_t len;
37990 getsockopt(0, 0, 0, 0, &len);
37991
37992 ;
37993 return 0;
37994}
37995_ACEOF
37996rm -f conftest.$ac_objext
37997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37998 (eval $ac_compile) 2>conftest.er1
37999 ac_status=$?
38000 grep -v '^ *+' conftest.er1 >conftest.err
38001 rm -f conftest.er1
38002 cat conftest.err >&5
38003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004 (exit $ac_status); } &&
9dd0f6c2 38005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38007 (eval $ac_try) 2>&5
38008 ac_status=$?
38009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38010 (exit $ac_status); }; } &&
38011 { ac_try='test -s conftest.$ac_objext'
38012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38013 (eval $ac_try) 2>&5
38014 ac_status=$?
38015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38016 (exit $ac_status); }; }; then
38017 wx_cv_type_getsockopt5=socklen_t
38018else
38019 echo "$as_me: failed program was:" >&5
38020sed 's/^/| /' conftest.$ac_ext >&5
38021
38022
38023 CFLAGS_OLD="$CFLAGS"
38024 if test "$GCC" = yes ; then
38025 CFLAGS="$CFLAGS -Werror"
38026 fi
38027
38028 cat >conftest.$ac_ext <<_ACEOF
38029/* confdefs.h. */
38030_ACEOF
38031cat confdefs.h >>conftest.$ac_ext
38032cat >>conftest.$ac_ext <<_ACEOF
38033/* end confdefs.h. */
38034
38035 #include <sys/types.h>
38036 #include <sys/socket.h>
38037
38038int
38039main ()
38040{
38041
38042 size_t len;
38043 getsockopt(0, 0, 0, 0, &len);
38044
38045 ;
38046 return 0;
38047}
38048_ACEOF
38049rm -f conftest.$ac_objext
38050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38051 (eval $ac_compile) 2>conftest.er1
38052 ac_status=$?
38053 grep -v '^ *+' conftest.er1 >conftest.err
38054 rm -f conftest.er1
38055 cat conftest.err >&5
38056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38057 (exit $ac_status); } &&
9dd0f6c2 38058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38060 (eval $ac_try) 2>&5
38061 ac_status=$?
38062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38063 (exit $ac_status); }; } &&
38064 { ac_try='test -s conftest.$ac_objext'
38065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38066 (eval $ac_try) 2>&5
38067 ac_status=$?
38068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069 (exit $ac_status); }; }; then
38070 wx_cv_type_getsockopt5=size_t
38071else
38072 echo "$as_me: failed program was:" >&5
38073sed 's/^/| /' conftest.$ac_ext >&5
38074
38075cat >conftest.$ac_ext <<_ACEOF
38076/* confdefs.h. */
38077_ACEOF
38078cat confdefs.h >>conftest.$ac_ext
38079cat >>conftest.$ac_ext <<_ACEOF
38080/* end confdefs.h. */
38081
38082 #include <sys/types.h>
38083 #include <sys/socket.h>
38084
38085int
38086main ()
38087{
38088
38089 int len;
38090 getsockopt(0, 0, 0, 0, &len);
38091
38092 ;
38093 return 0;
38094}
38095_ACEOF
38096rm -f conftest.$ac_objext
38097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38098 (eval $ac_compile) 2>conftest.er1
38099 ac_status=$?
38100 grep -v '^ *+' conftest.er1 >conftest.err
38101 rm -f conftest.er1
38102 cat conftest.err >&5
38103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38104 (exit $ac_status); } &&
9dd0f6c2 38105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38107 (eval $ac_try) 2>&5
38108 ac_status=$?
38109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38110 (exit $ac_status); }; } &&
38111 { ac_try='test -s conftest.$ac_objext'
38112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38113 (eval $ac_try) 2>&5
38114 ac_status=$?
38115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38116 (exit $ac_status); }; }; then
38117 wx_cv_type_getsockopt5=int
38118else
38119 echo "$as_me: failed program was:" >&5
38120sed 's/^/| /' conftest.$ac_ext >&5
38121
38122wx_cv_type_getsockopt5=unknown
38123
38124fi
38125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38126
38127fi
38128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38129
38130 CFLAGS="$CFLAGS_OLD"
38131
38132
38133fi
38134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38135
38136fi
38137echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38138echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38139
38140 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38141 wxUSE_SOCKETS=no
38142 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38143echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38144 else
38145 cat >>confdefs.h <<_ACEOF
38146#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38147_ACEOF
38148
38149 fi
4d4ff94c
VZ
38150 ac_ext=c
38151ac_cpp='$CPP $CPPFLAGS'
38152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38154ac_compiler_gnu=$ac_cv_c_compiler_gnu
38155
a848cd7e
SC
38156 fi
38157fi
38158
38159if test "$wxUSE_SOCKETS" = "yes" ; then
38160 cat >>confdefs.h <<\_ACEOF
38161#define wxUSE_SOCKETS 1
38162_ACEOF
38163
38164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38165fi
38166
38167if test "$wxUSE_PROTOCOL" = "yes"; then
38168 if test "$wxUSE_SOCKETS" != "yes"; then
38169 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38170echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38171 wxUSE_PROTOCOL=no
38172 fi
38173fi
38174
38175if test "$wxUSE_PROTOCOL" = "yes"; then
38176 cat >>confdefs.h <<\_ACEOF
38177#define wxUSE_PROTOCOL 1
38178_ACEOF
38179
38180
38181 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38182 cat >>confdefs.h <<\_ACEOF
38183#define wxUSE_PROTOCOL_HTTP 1
38184_ACEOF
38185
38186 fi
38187 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38188 cat >>confdefs.h <<\_ACEOF
38189#define wxUSE_PROTOCOL_FTP 1
38190_ACEOF
38191
38192 fi
38193 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38194 cat >>confdefs.h <<\_ACEOF
38195#define wxUSE_PROTOCOL_FILE 1
38196_ACEOF
38197
38198 fi
38199else
38200 if test "$wxUSE_FS_INET" = "yes"; then
38201 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38202echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38203 wxUSE_FS_INET="no"
38204 fi
38205fi
38206
38207if test "$wxUSE_URL" = "yes"; then
38208 if test "$wxUSE_PROTOCOL" != "yes"; then
38209 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38210echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38211 wxUSE_URL=no
38212 fi
38213 if test "$wxUSE_URL" = "yes"; then
38214 cat >>confdefs.h <<\_ACEOF
38215#define wxUSE_URL 1
38216_ACEOF
38217
38218 fi
38219fi
38220
38221if test "$wxUSE_FS_INET" = "yes"; then
38222 cat >>confdefs.h <<\_ACEOF
38223#define wxUSE_FS_INET 1
38224_ACEOF
38225
38226fi
38227
38228
38229if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 38230 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 38231
4cb1d3da 38232 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
38233
38234for ac_header in linux/joystick.h
38235do
38236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38237if eval "test \"\${$as_ac_Header+set}\" = set"; then
38238 echo "$as_me:$LINENO: checking for $ac_header" >&5
38239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38240if eval "test \"\${$as_ac_Header+set}\" = set"; then
38241 echo $ECHO_N "(cached) $ECHO_C" >&6
38242fi
38243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38245else
38246 # Is the header compilable?
38247echo "$as_me:$LINENO: checking $ac_header usability" >&5
38248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38249cat >conftest.$ac_ext <<_ACEOF
38250/* confdefs.h. */
38251_ACEOF
38252cat confdefs.h >>conftest.$ac_ext
38253cat >>conftest.$ac_ext <<_ACEOF
38254/* end confdefs.h. */
38255$ac_includes_default
38256#include <$ac_header>
38257_ACEOF
38258rm -f conftest.$ac_objext
38259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38260 (eval $ac_compile) 2>conftest.er1
a848cd7e 38261 ac_status=$?
ac1cb8d3
VS
38262 grep -v '^ *+' conftest.er1 >conftest.err
38263 rm -f conftest.er1
38264 cat conftest.err >&5
a848cd7e
SC
38265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38266 (exit $ac_status); } &&
9dd0f6c2 38267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38269 (eval $ac_try) 2>&5
38270 ac_status=$?
38271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38272 (exit $ac_status); }; } &&
38273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38275 (eval $ac_try) 2>&5
38276 ac_status=$?
38277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38278 (exit $ac_status); }; }; then
38279 ac_header_compiler=yes
38280else
38281 echo "$as_me: failed program was:" >&5
38282sed 's/^/| /' conftest.$ac_ext >&5
38283
38284ac_header_compiler=no
38285fi
ac1cb8d3 38286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38288echo "${ECHO_T}$ac_header_compiler" >&6
38289
38290# Is the header present?
38291echo "$as_me:$LINENO: checking $ac_header presence" >&5
38292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38293cat >conftest.$ac_ext <<_ACEOF
38294/* confdefs.h. */
38295_ACEOF
38296cat confdefs.h >>conftest.$ac_ext
38297cat >>conftest.$ac_ext <<_ACEOF
38298/* end confdefs.h. */
38299#include <$ac_header>
38300_ACEOF
38301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38303 ac_status=$?
38304 grep -v '^ *+' conftest.er1 >conftest.err
38305 rm -f conftest.er1
38306 cat conftest.err >&5
38307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38308 (exit $ac_status); } >/dev/null; then
38309 if test -s conftest.err; then
38310 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38312 else
38313 ac_cpp_err=
38314 fi
38315else
38316 ac_cpp_err=yes
38317fi
38318if test -z "$ac_cpp_err"; then
38319 ac_header_preproc=yes
38320else
38321 echo "$as_me: failed program was:" >&5
38322sed 's/^/| /' conftest.$ac_ext >&5
38323
38324 ac_header_preproc=no
38325fi
38326rm -f conftest.err conftest.$ac_ext
38327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38328echo "${ECHO_T}$ac_header_preproc" >&6
38329
38330# So? What about this header?
ac1cb8d3
VS
38331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38332 yes:no: )
a848cd7e
SC
38333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38337 ac_header_preproc=yes
a848cd7e 38338 ;;
ac1cb8d3 38339 no:yes:* )
a848cd7e
SC
38340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38352 (
38353 cat <<\_ASBOX
ac1cb8d3
VS
38354## ----------------------------------------- ##
38355## Report this to wx-dev@lists.wxwidgets.org ##
38356## ----------------------------------------- ##
a848cd7e
SC
38357_ASBOX
38358 ) |
38359 sed "s/^/$as_me: WARNING: /" >&2
38360 ;;
38361esac
38362echo "$as_me:$LINENO: checking for $ac_header" >&5
38363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38364if eval "test \"\${$as_ac_Header+set}\" = set"; then
38365 echo $ECHO_N "(cached) $ECHO_C" >&6
38366else
ac1cb8d3 38367 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38368fi
38369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38371
38372fi
38373if test `eval echo '${'$as_ac_Header'}'` = yes; then
38374 cat >>confdefs.h <<_ACEOF
38375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38376_ACEOF
38377
38378fi
38379
38380done
38381
38382 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38383 wxUSE_JOYSTICK=no
38384 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38385echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38386 fi
4cb1d3da
RN
38387 else
38388 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38389 wxUSE_JOYSTICK=no
38390 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38391echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38392 fi
a848cd7e 38393 fi
a848cd7e 38394
4cb1d3da
RN
38395
38396 if test "$wxUSE_JOYSTICK" = "yes"; then
38397 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38398#define wxUSE_JOYSTICK 1
38399_ACEOF
38400
4cb1d3da
RN
38401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38402 fi
a848cd7e
SC
38403 fi
38404fi
38405
38406
38407
38408if test "$wxUSE_FONTMAP" = "yes" ; then
38409 cat >>confdefs.h <<\_ACEOF
38410#define wxUSE_FONTMAP 1
38411_ACEOF
38412
38413fi
38414
38415if test "$wxUSE_UNICODE" = "yes" ; then
38416 cat >>confdefs.h <<\_ACEOF
38417#define wxUSE_UNICODE 1
38418_ACEOF
38419
38420
38421 if test "$USE_WIN32" != 1; then
38422 wxUSE_UNICODE_MSLU=no
38423 fi
38424
38425 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38426 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38427echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38428if test "${ac_cv_lib_unicows_main+set}" = set; then
38429 echo $ECHO_N "(cached) $ECHO_C" >&6
38430else
38431 ac_check_lib_save_LIBS=$LIBS
38432LIBS="-lunicows $LIBS"
38433cat >conftest.$ac_ext <<_ACEOF
38434/* confdefs.h. */
38435_ACEOF
38436cat confdefs.h >>conftest.$ac_ext
38437cat >>conftest.$ac_ext <<_ACEOF
38438/* end confdefs.h. */
38439
38440
38441int
38442main ()
38443{
38444main ();
38445 ;
38446 return 0;
38447}
38448_ACEOF
38449rm -f conftest.$ac_objext conftest$ac_exeext
38450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38451 (eval $ac_link) 2>conftest.er1
a848cd7e 38452 ac_status=$?
ac1cb8d3
VS
38453 grep -v '^ *+' conftest.er1 >conftest.err
38454 rm -f conftest.er1
38455 cat conftest.err >&5
a848cd7e
SC
38456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38457 (exit $ac_status); } &&
9dd0f6c2 38458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38460 (eval $ac_try) 2>&5
38461 ac_status=$?
38462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463 (exit $ac_status); }; } &&
38464 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38466 (eval $ac_try) 2>&5
38467 ac_status=$?
38468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38469 (exit $ac_status); }; }; then
38470 ac_cv_lib_unicows_main=yes
38471else
38472 echo "$as_me: failed program was:" >&5
38473sed 's/^/| /' conftest.$ac_ext >&5
38474
38475ac_cv_lib_unicows_main=no
38476fi
ac1cb8d3
VS
38477rm -f conftest.err conftest.$ac_objext \
38478 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38479LIBS=$ac_check_lib_save_LIBS
38480fi
38481echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38482echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38483if test $ac_cv_lib_unicows_main = yes; then
38484
38485 cat >>confdefs.h <<\_ACEOF
38486#define wxUSE_UNICODE_MSLU 1
38487_ACEOF
38488
38489
38490else
38491
38492 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38493 Applications will only run on Windows NT/2000/XP!" >&5
38494echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38495 Applications will only run on Windows NT/2000/XP!" >&2;}
38496 wxUSE_UNICODE_MSLU=no
38497
38498fi
38499
38500 fi
38501fi
38502
38503if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38504 cat >>confdefs.h <<\_ACEOF
38505#define wxUSE_EXPERIMENTAL_PRINTF 1
38506_ACEOF
38507
38508fi
38509
38510
38511if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38512 cat >>confdefs.h <<\_ACEOF
38513#define wxUSE_POSTSCRIPT 1
38514_ACEOF
38515
38516fi
38517
38518cat >>confdefs.h <<\_ACEOF
38519#define wxUSE_AFM_FOR_POSTSCRIPT 1
38520_ACEOF
38521
38522
38523cat >>confdefs.h <<\_ACEOF
38524#define wxUSE_NORMALIZED_PS_FONTS 1
38525_ACEOF
38526
38527
38528
38529if test "$wxUSE_CONSTRAINTS" = "yes"; then
38530 cat >>confdefs.h <<\_ACEOF
38531#define wxUSE_CONSTRAINTS 1
38532_ACEOF
38533
38534 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38535fi
38536
8a7b1113
VZ
38537if test "$wxUSE_MDI" = "yes"; then
38538 cat >>confdefs.h <<\_ACEOF
38539#define wxUSE_MDI 1
38540_ACEOF
38541
38542
38543 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38544 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38545#define wxUSE_MDI_ARCHITECTURE 1
38546_ACEOF
38547
8a7b1113
VZ
38548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38549 fi
a848cd7e
SC
38550fi
38551
38552if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38553 cat >>confdefs.h <<\_ACEOF
38554#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38555_ACEOF
38556
38557 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38558 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38560 fi
38561fi
38562
38563if test "$wxUSE_HELP" = "yes"; then
38564 cat >>confdefs.h <<\_ACEOF
38565#define wxUSE_HELP 1
38566_ACEOF
38567
38568 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38569
38570 if test "$wxUSE_MSW" = 1; then
38571 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38572 cat >>confdefs.h <<\_ACEOF
38573#define wxUSE_MS_HTML_HELP 1
38574_ACEOF
38575
38576 fi
38577 fi
38578
38579 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38580 if test "$wxUSE_HTML" = "yes"; then
38581 cat >>confdefs.h <<\_ACEOF
38582#define wxUSE_WXHTML_HELP 1
38583_ACEOF
38584
38585 else
38586 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38587echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38588 wxUSE_WXHTML_HELP=no
38589 fi
38590 fi
38591fi
38592
38593if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38594 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38595 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38596echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38597 else
38598 cat >>confdefs.h <<\_ACEOF
38599#define wxUSE_PRINTING_ARCHITECTURE 1
38600_ACEOF
38601
38602 fi
38603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38604fi
38605
38606if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38607 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38608echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38609 { (exit 1); exit 1; }; }
38610fi
38611
38612
38613if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38614 -o "$wxUSE_CLIPBOARD" = "yes" \
38615 -o "$wxUSE_OLE" = "yes" \
38616 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38617
38618for ac_header in ole2.h
38619do
38620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38621if eval "test \"\${$as_ac_Header+set}\" = set"; then
38622 echo "$as_me:$LINENO: checking for $ac_header" >&5
38623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38624if eval "test \"\${$as_ac_Header+set}\" = set"; then
38625 echo $ECHO_N "(cached) $ECHO_C" >&6
38626fi
38627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38629else
38630 # Is the header compilable?
38631echo "$as_me:$LINENO: checking $ac_header usability" >&5
38632echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38633cat >conftest.$ac_ext <<_ACEOF
38634/* confdefs.h. */
38635_ACEOF
38636cat confdefs.h >>conftest.$ac_ext
38637cat >>conftest.$ac_ext <<_ACEOF
38638/* end confdefs.h. */
38639$ac_includes_default
38640#include <$ac_header>
38641_ACEOF
38642rm -f conftest.$ac_objext
38643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38644 (eval $ac_compile) 2>conftest.er1
a848cd7e 38645 ac_status=$?
ac1cb8d3
VS
38646 grep -v '^ *+' conftest.er1 >conftest.err
38647 rm -f conftest.er1
38648 cat conftest.err >&5
a848cd7e
SC
38649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38650 (exit $ac_status); } &&
9dd0f6c2 38651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38653 (eval $ac_try) 2>&5
38654 ac_status=$?
38655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38656 (exit $ac_status); }; } &&
38657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38659 (eval $ac_try) 2>&5
38660 ac_status=$?
38661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38662 (exit $ac_status); }; }; then
38663 ac_header_compiler=yes
38664else
38665 echo "$as_me: failed program was:" >&5
38666sed 's/^/| /' conftest.$ac_ext >&5
38667
38668ac_header_compiler=no
38669fi
ac1cb8d3 38670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38672echo "${ECHO_T}$ac_header_compiler" >&6
38673
38674# Is the header present?
38675echo "$as_me:$LINENO: checking $ac_header presence" >&5
38676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38677cat >conftest.$ac_ext <<_ACEOF
38678/* confdefs.h. */
38679_ACEOF
38680cat confdefs.h >>conftest.$ac_ext
38681cat >>conftest.$ac_ext <<_ACEOF
38682/* end confdefs.h. */
38683#include <$ac_header>
38684_ACEOF
38685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38687 ac_status=$?
38688 grep -v '^ *+' conftest.er1 >conftest.err
38689 rm -f conftest.er1
38690 cat conftest.err >&5
38691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38692 (exit $ac_status); } >/dev/null; then
38693 if test -s conftest.err; then
38694 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38696 else
38697 ac_cpp_err=
38698 fi
38699else
38700 ac_cpp_err=yes
38701fi
38702if test -z "$ac_cpp_err"; then
38703 ac_header_preproc=yes
38704else
38705 echo "$as_me: failed program was:" >&5
38706sed 's/^/| /' conftest.$ac_ext >&5
38707
38708 ac_header_preproc=no
38709fi
38710rm -f conftest.err conftest.$ac_ext
38711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38712echo "${ECHO_T}$ac_header_preproc" >&6
38713
38714# So? What about this header?
ac1cb8d3
VS
38715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38716 yes:no: )
a848cd7e
SC
38717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38718echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38720echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38721 ac_header_preproc=yes
a848cd7e 38722 ;;
ac1cb8d3 38723 no:yes:* )
a848cd7e
SC
38724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38725echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38727echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38729echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38731echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38735echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38736 (
38737 cat <<\_ASBOX
ac1cb8d3
VS
38738## ----------------------------------------- ##
38739## Report this to wx-dev@lists.wxwidgets.org ##
38740## ----------------------------------------- ##
a848cd7e
SC
38741_ASBOX
38742 ) |
38743 sed "s/^/$as_me: WARNING: /" >&2
38744 ;;
38745esac
38746echo "$as_me:$LINENO: checking for $ac_header" >&5
38747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38748if eval "test \"\${$as_ac_Header+set}\" = set"; then
38749 echo $ECHO_N "(cached) $ECHO_C" >&6
38750else
ac1cb8d3 38751 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38752fi
38753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38755
38756fi
38757if test `eval echo '${'$as_ac_Header'}'` = yes; then
38758 cat >>confdefs.h <<_ACEOF
38759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38760_ACEOF
38761
38762fi
38763
38764done
38765
38766
38767 if test "$ac_cv_header_ole2_h" = "yes" ; then
38768 if test "$GCC" = yes ; then
38769
38770
38771 ac_ext=cc
38772ac_cpp='$CXXCPP $CPPFLAGS'
38773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38776
38777
38778 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38779echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38780 cat >conftest.$ac_ext <<_ACEOF
38781/* confdefs.h. */
38782_ACEOF
38783cat confdefs.h >>conftest.$ac_ext
38784cat >>conftest.$ac_ext <<_ACEOF
38785/* end confdefs.h. */
38786#include <windows.h>
38787 #include <ole2.h>
38788int
38789main ()
38790{
38791
38792 ;
38793 return 0;
38794}
38795_ACEOF
38796rm -f conftest.$ac_objext
38797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38798 (eval $ac_compile) 2>conftest.er1
a848cd7e 38799 ac_status=$?
ac1cb8d3
VS
38800 grep -v '^ *+' conftest.er1 >conftest.err
38801 rm -f conftest.er1
38802 cat conftest.err >&5
a848cd7e
SC
38803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38804 (exit $ac_status); } &&
9dd0f6c2 38805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38807 (eval $ac_try) 2>&5
38808 ac_status=$?
38809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38810 (exit $ac_status); }; } &&
38811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38813 (eval $ac_try) 2>&5
38814 ac_status=$?
38815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38816 (exit $ac_status); }; }; then
38817 echo "$as_me:$LINENO: result: no" >&5
38818echo "${ECHO_T}no" >&6
38819else
38820 echo "$as_me: failed program was:" >&5
38821sed 's/^/| /' conftest.$ac_ext >&5
38822
38823echo "$as_me:$LINENO: result: yes" >&5
38824echo "${ECHO_T}yes" >&6
38825 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38826fi
ac1cb8d3 38827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38828 ac_ext=c
38829ac_cpp='$CPP $CPPFLAGS'
38830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38832ac_compiler_gnu=$ac_cv_c_compiler_gnu
38833
a848cd7e
SC
38834 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38835 if test "$wxUSE_OLE" = "yes" ; then
38836 cat >>confdefs.h <<\_ACEOF
38837#define wxUSE_OLE 1
38838_ACEOF
38839
0b78747f 38840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
38841 fi
38842 fi
38843
38844 if test "$wxUSE_DATAOBJ" = "yes" ; then
38845 cat >>confdefs.h <<\_ACEOF
38846#define wxUSE_DATAOBJ 1
38847_ACEOF
38848
38849 fi
38850 else
38851 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38852echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38853
38854 wxUSE_CLIPBOARD=no
38855 wxUSE_DRAG_AND_DROP=no
38856 wxUSE_DATAOBJ=no
38857 wxUSE_OLE=no
38858 fi
38859
38860 if test "$wxUSE_METAFILE" = "yes"; then
38861 cat >>confdefs.h <<\_ACEOF
38862#define wxUSE_METAFILE 1
38863_ACEOF
38864
38865
38866 cat >>confdefs.h <<\_ACEOF
38867#define wxUSE_ENH_METAFILE 1
38868_ACEOF
38869
38870 fi
38871fi
38872
38873if test "$wxUSE_IPC" = "yes"; then
0b78747f 38874 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
38875 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38876echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 38877 wxUSE_IPC=no
a848cd7e
SC
38878 fi
38879
0b78747f
MW
38880 if test "$wxUSE_IPC" = "yes"; then
38881 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38882#define wxUSE_IPC 1
38883_ACEOF
38884
0b78747f
MW
38885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38886 fi
a848cd7e
SC
38887fi
38888
38889if test "$wxUSE_CLIPBOARD" = "yes"; then
38890 if test "$wxUSE_MGL" = 1; then
38891 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38892echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38893 wxUSE_CLIPBOARD=no
38894 fi
38895
38896 if test "$wxUSE_CLIPBOARD" = "yes"; then
38897 cat >>confdefs.h <<\_ACEOF
38898#define wxUSE_CLIPBOARD 1
38899_ACEOF
38900
38901
38902 cat >>confdefs.h <<\_ACEOF
38903#define wxUSE_DATAOBJ 1
38904_ACEOF
38905
38906 fi
38907fi
38908
38909if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38910 if test "$wxUSE_GTK" = 1; then
38911 if test "$WXGTK12" != 1; then
38912 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38913echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38914 wxUSE_DRAG_AND_DROP=no
38915 fi
38916 fi
38917
38918 if test "$wxUSE_MOTIF" = 1; then
38919 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38920echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38921 wxUSE_DRAG_AND_DROP=no
38922 fi
38923
38924 if test "$wxUSE_X11" = 1; then
38925 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38926echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38927 wxUSE_DRAG_AND_DROP=no
38928 fi
38929
38930 if test "$wxUSE_MGL" = 1; then
38931 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38932echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38933 wxUSE_DRAG_AND_DROP=no
38934 fi
38935
38936 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38937 cat >>confdefs.h <<\_ACEOF
38938#define wxUSE_DRAG_AND_DROP 1
38939_ACEOF
38940
38941 fi
38942
38943fi
38944
38945if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38947fi
38948
38949if test "$wxUSE_SPLINES" = "yes" ; then
38950 cat >>confdefs.h <<\_ACEOF
38951#define wxUSE_SPLINES 1
38952_ACEOF
38953
38954fi
38955
fbe2ca43
SN
38956if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
38957 cat >>confdefs.h <<\_ACEOF
38958#define wxUSE_MOUSEWHEEL 1
38959_ACEOF
38960
38961fi
38962
a848cd7e
SC
38963
38964USES_CONTROLS=0
38965if test "$wxUSE_CONTROLS" = "yes"; then
38966 USES_CONTROLS=1
38967fi
38968
38969if test "$wxUSE_ACCEL" = "yes"; then
38970 cat >>confdefs.h <<\_ACEOF
38971#define wxUSE_ACCEL 1
38972_ACEOF
38973
38974 USES_CONTROLS=1
38975fi
38976
38977if test "$wxUSE_BUTTON" = "yes"; then
38978 cat >>confdefs.h <<\_ACEOF
38979#define wxUSE_BUTTON 1
38980_ACEOF
38981
38982 USES_CONTROLS=1
38983fi
38984
38985if test "$wxUSE_BMPBUTTON" = "yes"; then
38986 cat >>confdefs.h <<\_ACEOF
38987#define wxUSE_BMPBUTTON 1
38988_ACEOF
38989
38990 USES_CONTROLS=1
38991fi
38992
38993if test "$wxUSE_CALCTRL" = "yes"; then
38994 cat >>confdefs.h <<\_ACEOF
38995#define wxUSE_CALENDARCTRL 1
38996_ACEOF
38997
38998 USES_CONTROLS=1
38999 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
39000fi
39001
39002if test "$wxUSE_CARET" = "yes"; then
39003 cat >>confdefs.h <<\_ACEOF
39004#define wxUSE_CARET 1
39005_ACEOF
39006
39007 USES_CONTROLS=1
39008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
39009fi
39010
39011if test "$wxUSE_COMBOBOX" = "yes"; then
39012 cat >>confdefs.h <<\_ACEOF
39013#define wxUSE_COMBOBOX 1
39014_ACEOF
39015
39016 USES_CONTROLS=1
39017fi
39018
39019if test "$wxUSE_CHOICE" = "yes"; then
39020 cat >>confdefs.h <<\_ACEOF
39021#define wxUSE_CHOICE 1
39022_ACEOF
39023
39024 USES_CONTROLS=1
39025fi
39026
92bbdbcd
WS
39027if test "$wxUSE_CHOICEBOOK" = "yes"; then
39028 cat >>confdefs.h <<\_ACEOF
39029#define wxUSE_CHOICEBOOK 1
39030_ACEOF
39031
39032 USES_CONTROLS=1
39033fi
39034
a848cd7e
SC
39035if test "$wxUSE_CHECKBOX" = "yes"; then
39036 cat >>confdefs.h <<\_ACEOF
39037#define wxUSE_CHECKBOX 1
39038_ACEOF
39039
39040 USES_CONTROLS=1
39041fi
39042
39043if test "$wxUSE_CHECKLST" = "yes"; then
39044 cat >>confdefs.h <<\_ACEOF
39045#define wxUSE_CHECKLISTBOX 1
39046_ACEOF
39047
39048 USES_CONTROLS=1
39049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
39050fi
39051
da98e9be
VZ
39052if test "$wxUSE_DATEPICKCTRL" = "yes"; then
39053 cat >>confdefs.h <<\_ACEOF
39054#define wxUSE_DATEPICKCTRL 1
39055_ACEOF
39056
39057 USES_CONTROLS=1
39058fi
39059
a848cd7e
SC
39060if test "$wxUSE_DISPLAY" = "yes"; then
39061 cat >>confdefs.h <<\_ACEOF
39062#define wxUSE_DISPLAY 1
39063_ACEOF
39064
0b78747f 39065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
39066fi
39067
39068if test "$wxUSE_GAUGE" = "yes"; then
39069 cat >>confdefs.h <<\_ACEOF
39070#define wxUSE_GAUGE 1
39071_ACEOF
39072
39073 USES_CONTROLS=1
39074fi
39075
39076if test "$wxUSE_GRID" = "yes"; then
39077 cat >>confdefs.h <<\_ACEOF
39078#define wxUSE_GRID 1
39079_ACEOF
39080
39081 USES_CONTROLS=1
39082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39083fi
39084
39085if test "$wxUSE_IMAGLIST" = "yes"; then
39086 cat >>confdefs.h <<\_ACEOF
39087#define wxUSE_IMAGLIST 1
39088_ACEOF
39089
39090fi
39091
39092if test "$wxUSE_LISTBOOK" = "yes"; then
39093 cat >>confdefs.h <<\_ACEOF
39094#define wxUSE_LISTBOOK 1
39095_ACEOF
39096
39097 USES_CONTROLS=1
39098fi
39099
39100if test "$wxUSE_LISTBOX" = "yes"; then
39101 cat >>confdefs.h <<\_ACEOF
39102#define wxUSE_LISTBOX 1
39103_ACEOF
39104
39105 USES_CONTROLS=1
0b78747f 39106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
39107fi
39108
39109if test "$wxUSE_LISTCTRL" = "yes"; then
39110 if test "$wxUSE_IMAGLIST" = "yes"; then
39111 cat >>confdefs.h <<\_ACEOF
39112#define wxUSE_LISTCTRL 1
39113_ACEOF
39114
39115 USES_CONTROLS=1
39116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39117 else
39118 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39119echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39120 fi
39121fi
39122
39123if test "$wxUSE_NOTEBOOK" = "yes"; then
39124 cat >>confdefs.h <<\_ACEOF
39125#define wxUSE_NOTEBOOK 1
39126_ACEOF
39127
39128 USES_CONTROLS=1
39129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39130fi
39131
39132
39133if test "$wxUSE_RADIOBOX" = "yes"; then
39134 cat >>confdefs.h <<\_ACEOF
39135#define wxUSE_RADIOBOX 1
39136_ACEOF
39137
39138 USES_CONTROLS=1
39139fi
39140
39141if test "$wxUSE_RADIOBTN" = "yes"; then
39142 cat >>confdefs.h <<\_ACEOF
39143#define wxUSE_RADIOBTN 1
39144_ACEOF
39145
39146 USES_CONTROLS=1
39147fi
39148
39149if test "$wxUSE_SASH" = "yes"; then
39150 cat >>confdefs.h <<\_ACEOF
39151#define wxUSE_SASH 1
39152_ACEOF
39153
39154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
39155fi
39156
39157if test "$wxUSE_SCROLLBAR" = "yes"; then
39158 cat >>confdefs.h <<\_ACEOF
39159#define wxUSE_SCROLLBAR 1
39160_ACEOF
39161
39162 USES_CONTROLS=1
39163 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
39164fi
39165
39166if test "$wxUSE_SLIDER" = "yes"; then
39167 cat >>confdefs.h <<\_ACEOF
39168#define wxUSE_SLIDER 1
39169_ACEOF
39170
39171 USES_CONTROLS=1
39172fi
39173
39174if test "$wxUSE_SPINBTN" = "yes"; then
39175 cat >>confdefs.h <<\_ACEOF
39176#define wxUSE_SPINBTN 1
39177_ACEOF
39178
39179 USES_CONTROLS=1
39180fi
39181
39182if test "$wxUSE_SPINCTRL" = "yes"; then
39183 cat >>confdefs.h <<\_ACEOF
39184#define wxUSE_SPINCTRL 1
39185_ACEOF
39186
39187 USES_CONTROLS=1
39188fi
39189
39190if test "$wxUSE_SPLITTER" = "yes"; then
39191 cat >>confdefs.h <<\_ACEOF
39192#define wxUSE_SPLITTER 1
39193_ACEOF
39194
39195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
39196fi
39197
39198if test "$wxUSE_STATBMP" = "yes"; then
39199 cat >>confdefs.h <<\_ACEOF
39200#define wxUSE_STATBMP 1
39201_ACEOF
39202
39203 USES_CONTROLS=1
39204fi
39205
39206if test "$wxUSE_STATBOX" = "yes"; then
39207 cat >>confdefs.h <<\_ACEOF
39208#define wxUSE_STATBOX 1
39209_ACEOF
39210
39211 USES_CONTROLS=1
39212fi
39213
39214if test "$wxUSE_STATTEXT" = "yes"; then
39215 cat >>confdefs.h <<\_ACEOF
39216#define wxUSE_STATTEXT 1
39217_ACEOF
39218
39219 USES_CONTROLS=1
39220fi
39221
39222if test "$wxUSE_STATLINE" = "yes"; then
39223 cat >>confdefs.h <<\_ACEOF
39224#define wxUSE_STATLINE 1
39225_ACEOF
39226
39227 USES_CONTROLS=1
39228fi
39229
39230if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
39231 cat >>confdefs.h <<\_ACEOF
39232#define wxUSE_NATIVE_STATUSBAR 1
39233_ACEOF
39234
a848cd7e
SC
39235 cat >>confdefs.h <<\_ACEOF
39236#define wxUSE_STATUSBAR 1
39237_ACEOF
39238
39239 USES_CONTROLS=1
39240
39241 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39242fi
39243
39244if test "$wxUSE_TABDIALOG" = "yes"; then
39245 cat >>confdefs.h <<\_ACEOF
39246#define wxUSE_TAB_DIALOG 1
39247_ACEOF
39248
a848cd7e
SC
39249fi
39250
39251if test "$wxUSE_TEXTCTRL" = "yes"; then
39252 cat >>confdefs.h <<\_ACEOF
39253#define wxUSE_TEXTCTRL 1
39254_ACEOF
39255
39256 USES_CONTROLS=1
39257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39258fi
39259
39260if test "$wxUSE_TOGGLEBTN" = "yes"; then
39261 if test "$wxUSE_COCOA" = 1 ; then
39262 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39263echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39264 wxUSE_TOGGLEBTN=no
39265 fi
39266 if test "$wxUSE_UNIVERSAL" = "yes"; then
39267 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39268echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39269 wxUSE_TOGGLEBTN=no
39270 fi
39271
39272 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39273 cat >>confdefs.h <<\_ACEOF
39274#define wxUSE_TOGGLEBTN 1
39275_ACEOF
39276
39277 USES_CONTROLS=1
39278 fi
39279fi
39280
39281if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39282 cat >>confdefs.h <<\_ACEOF
39283#define wxUSE_TOOLBAR_SIMPLE 1
39284_ACEOF
39285
39286 wxUSE_TOOLBAR="yes"
39287 USES_CONTROLS=1
39288fi
39289
39290if test "$wxUSE_TOOLBAR" = "yes"; then
39291 cat >>confdefs.h <<\_ACEOF
39292#define wxUSE_TOOLBAR 1
39293_ACEOF
39294
39295 USES_CONTROLS=1
39296
39297 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39298 wxUSE_TOOLBAR_NATIVE="yes"
39299 fi
39300
39301 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39302 cat >>confdefs.h <<\_ACEOF
39303#define wxUSE_TOOLBAR_NATIVE 1
39304_ACEOF
39305
39306 USES_CONTROLS=1
39307 fi
39308
39309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39310fi
39311
39312if test "$wxUSE_TOOLTIPS" = "yes"; then
39313 if test "$wxUSE_MOTIF" = 1; then
39314 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39315echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39316 else
39317 if test "$wxUSE_UNIVERSAL" = "yes"; then
39318 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39319echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39320 else
39321 cat >>confdefs.h <<\_ACEOF
39322#define wxUSE_TOOLTIPS 1
39323_ACEOF
39324
39325 fi
39326 fi
39327fi
39328
39329if test "$wxUSE_TREECTRL" = "yes"; then
39330 if test "$wxUSE_IMAGLIST" = "yes"; then
39331 cat >>confdefs.h <<\_ACEOF
39332#define wxUSE_TREECTRL 1
39333_ACEOF
39334
39335 USES_CONTROLS=1
39336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39337 else
39338 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39339echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39340 fi
39341fi
39342
39343if test "$wxUSE_POPUPWIN" = "yes"; then
39344 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39345 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39346echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39347 else
39348 if test "$wxUSE_PM" = 1; then
39349 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39350echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39351 else
39352 cat >>confdefs.h <<\_ACEOF
39353#define wxUSE_POPUPWIN 1
39354_ACEOF
39355
0b78747f 39356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39357
39358 USES_CONTROLS=1
39359 fi
39360 fi
39361fi
39362
0dcd06dd 39363if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39364 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39365 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39366echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39367 else
39368 cat >>confdefs.h <<\_ACEOF
39369#define wxUSE_DIALUP_MANAGER 1
39370_ACEOF
39371
39372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39373 fi
39374fi
39375
a848cd7e
SC
39376if test "$wxUSE_TIPWINDOW" = "yes"; then
39377 if test "$wxUSE_PM" = 1; then
39378 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39379echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39380 else
39381 cat >>confdefs.h <<\_ACEOF
39382#define wxUSE_TIPWINDOW 1
39383_ACEOF
39384
39385 fi
39386fi
39387
39388if test "$USES_CONTROLS" = 1; then
39389 cat >>confdefs.h <<\_ACEOF
39390#define wxUSE_CONTROLS 1
39391_ACEOF
39392
39393fi
39394
39395
39396if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39397 cat >>confdefs.h <<\_ACEOF
39398#define wxUSE_ACCESSIBILITY 1
39399_ACEOF
39400
39401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39402fi
39403
39404if test "$wxUSE_DRAGIMAGE" = "yes"; then
39405 cat >>confdefs.h <<\_ACEOF
39406#define wxUSE_DRAGIMAGE 1
39407_ACEOF
39408
39409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39410fi
39411
39412if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39413 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39414 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39415echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39416 else
39417 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39418#define wxUSE_EXCEPTIONS 1
39419_ACEOF
39420
07bea8f0
VS
39421 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39422 fi
a848cd7e
SC
39423fi
39424
39425USE_HTML=0
39426if test "$wxUSE_HTML" = "yes"; then
39427 cat >>confdefs.h <<\_ACEOF
39428#define wxUSE_HTML 1
39429_ACEOF
39430
39431 USE_HTML=1
39432 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39433 if test "$wxUSE_MAC" = 1; then
39434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39435 fi
a848cd7e 39436fi
646b6ec1 39437if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39438 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39439 old_CPPFLAGS="$CPPFLAGS"
39440 CPPFLAGS="$CPPFLAGS -x objective-c++"
39441 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39442echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39443if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39444 echo $ECHO_N "(cached) $ECHO_C" >&6
39445else
39446 cat >conftest.$ac_ext <<_ACEOF
39447/* confdefs.h. */
39448_ACEOF
39449cat confdefs.h >>conftest.$ac_ext
39450cat >>conftest.$ac_ext <<_ACEOF
39451/* end confdefs.h. */
39452#include <Carbon/Carbon.h>
39453
39454#include <WebKit/HIWebView.h>
39455_ACEOF
39456rm -f conftest.$ac_objext
39457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39458 (eval $ac_compile) 2>conftest.er1
39459 ac_status=$?
39460 grep -v '^ *+' conftest.er1 >conftest.err
39461 rm -f conftest.er1
39462 cat conftest.err >&5
39463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39464 (exit $ac_status); } &&
9dd0f6c2 39465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
39466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39467 (eval $ac_try) 2>&5
39468 ac_status=$?
39469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39470 (exit $ac_status); }; } &&
39471 { ac_try='test -s conftest.$ac_objext'
39472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39473 (eval $ac_try) 2>&5
39474 ac_status=$?
39475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39476 (exit $ac_status); }; }; then
39477 ac_cv_header_WebKit_HIWebView_h=yes
39478else
39479 echo "$as_me: failed program was:" >&5
39480sed 's/^/| /' conftest.$ac_ext >&5
39481
39482ac_cv_header_WebKit_HIWebView_h=no
39483fi
39484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39485fi
39486echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39487echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39488if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39489
39490 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39491#define wxUSE_WEBKIT 1
39492_ACEOF
39493
07bea8f0
VS
39494 WEBKIT_LINK="-framework WebKit"
39495
39496else
39497
39498 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39499echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39500 wxUSE_WEBKIT=no
39501
646b6ec1
VS
39502fi
39503
07bea8f0
VS
39504
39505 CPPFLAGS="$old_CPPFLAGS"
39506 elif test "$wxUSE_COCOA" = 1; then
39507 cat >>confdefs.h <<\_ACEOF
39508#define wxUSE_WEBKIT 1
39509_ACEOF
39510
39511 else
39512 wxUSE_WEBKIT=no
39513 fi
39514fi
39515
9a8f0513
VS
39516USE_XRC=0
39517if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39518 if test "$wxUSE_XML" != "yes"; then
39519 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39520echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39521 wxUSE_XRC=no
39522 else
39523 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39524#define wxUSE_XRC 1
39525_ACEOF
39526
d2ebf0b7
VS
39527 USE_XRC=1
39528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39529 fi
9a8f0513 39530fi
07bea8f0 39531
a848cd7e
SC
39532if test "$wxUSE_MENUS" = "yes"; then
39533 cat >>confdefs.h <<\_ACEOF
39534#define wxUSE_MENUS 1
39535_ACEOF
39536
39537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39538fi
39539
39540if test "$wxUSE_METAFILE" = "yes"; then
39541 cat >>confdefs.h <<\_ACEOF
39542#define wxUSE_METAFILE 1
39543_ACEOF
39544
39545fi
39546
39547if test "$wxUSE_MIMETYPE" = "yes"; then
39548 cat >>confdefs.h <<\_ACEOF
39549#define wxUSE_MIMETYPE 1
39550_ACEOF
39551
39552fi
39553
39554if test "$wxUSE_MINIFRAME" = "yes"; then
39555 cat >>confdefs.h <<\_ACEOF
39556#define wxUSE_MINIFRAME 1
39557_ACEOF
39558
39559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39560fi
39561
39562if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39563 cat >>confdefs.h <<\_ACEOF
39564#define wxUSE_SYSTEM_OPTIONS 1
39565_ACEOF
39566
39567 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39568 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39570 fi
39571fi
39572
39573
39574if test "$wxUSE_VALIDATORS" = "yes"; then
39575 cat >>confdefs.h <<\_ACEOF
39576#define wxUSE_VALIDATORS 1
39577_ACEOF
39578
39579 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39580fi
39581
39582if test "$wxUSE_PALETTE" = "yes" ; then
39583 cat >>confdefs.h <<\_ACEOF
39584#define wxUSE_PALETTE 1
39585_ACEOF
39586
39587fi
39588
39589if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39590 LIBS=" -lunicows $LIBS"
39591fi
39592
39593
39594if test "$wxUSE_IMAGE" = "yes" ; then
39595 cat >>confdefs.h <<\_ACEOF
39596#define wxUSE_IMAGE 1
39597_ACEOF
39598
39599
39600 if test "$wxUSE_GIF" = "yes" ; then
39601 cat >>confdefs.h <<\_ACEOF
39602#define wxUSE_GIF 1
39603_ACEOF
39604
39605 fi
39606
39607 if test "$wxUSE_PCX" = "yes" ; then
39608 cat >>confdefs.h <<\_ACEOF
39609#define wxUSE_PCX 1
39610_ACEOF
39611
39612 fi
39613
39614 if test "$wxUSE_IFF" = "yes" ; then
39615 cat >>confdefs.h <<\_ACEOF
39616#define wxUSE_IFF 1
39617_ACEOF
39618
39619 fi
39620
39621 if test "$wxUSE_PNM" = "yes" ; then
39622 cat >>confdefs.h <<\_ACEOF
39623#define wxUSE_PNM 1
39624_ACEOF
39625
39626 fi
39627
39628 if test "$wxUSE_XPM" = "yes" ; then
39629 cat >>confdefs.h <<\_ACEOF
39630#define wxUSE_XPM 1
39631_ACEOF
39632
39633 fi
39634
39635 if test "$wxUSE_ICO_CUR" = "yes" ; then
39636 cat >>confdefs.h <<\_ACEOF
39637#define wxUSE_ICO_CUR 1
39638_ACEOF
39639
39640 fi
39641fi
39642
39643
39644if test "$wxUSE_CHOICEDLG" = "yes"; then
39645 cat >>confdefs.h <<\_ACEOF
39646#define wxUSE_CHOICEDLG 1
39647_ACEOF
39648
39649fi
39650
39651if test "$wxUSE_COLOURDLG" = "yes"; then
39652 cat >>confdefs.h <<\_ACEOF
39653#define wxUSE_COLOURDLG 1
39654_ACEOF
39655
39656fi
39657
39658if test "$wxUSE_FILEDLG" = "yes"; then
39659 cat >>confdefs.h <<\_ACEOF
39660#define wxUSE_FILEDLG 1
39661_ACEOF
39662
39663fi
39664
39665if test "$wxUSE_FINDREPLDLG" = "yes"; then
39666 cat >>confdefs.h <<\_ACEOF
39667#define wxUSE_FINDREPLDLG 1
39668_ACEOF
39669
39670fi
39671
39672if test "$wxUSE_FONTDLG" = "yes"; then
39673 cat >>confdefs.h <<\_ACEOF
39674#define wxUSE_FONTDLG 1
39675_ACEOF
39676
39677fi
39678
39679if test "$wxUSE_DIRDLG" = "yes"; then
39680 if test "$wxUSE_TREECTRL" != "yes"; then
39681 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39682echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39683 else
39684 cat >>confdefs.h <<\_ACEOF
39685#define wxUSE_DIRDLG 1
39686_ACEOF
39687
39688 fi
39689fi
39690
39691if test "$wxUSE_MSGDLG" = "yes"; then
39692 cat >>confdefs.h <<\_ACEOF
39693#define wxUSE_MSGDLG 1
39694_ACEOF
39695
39696fi
39697
39698if test "$wxUSE_NUMBERDLG" = "yes"; then
39699 cat >>confdefs.h <<\_ACEOF
39700#define wxUSE_NUMBERDLG 1
39701_ACEOF
39702
39703fi
39704
39705if test "$wxUSE_PROGRESSDLG" = "yes"; then
39706 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39707 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39708echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39709 else
39710 cat >>confdefs.h <<\_ACEOF
39711#define wxUSE_PROGRESSDLG 1
39712_ACEOF
39713
39714 fi
39715fi
39716
39717if test "$wxUSE_SPLASH" = "yes"; then
39718 cat >>confdefs.h <<\_ACEOF
39719#define wxUSE_SPLASH 1
39720_ACEOF
39721
2057db16 39722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39723fi
39724
39725if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39726 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39727 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39728echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39729 else
39730 cat >>confdefs.h <<\_ACEOF
39731#define wxUSE_STARTUP_TIPS 1
39732_ACEOF
39733
39734 fi
39735fi
39736
39737if test "$wxUSE_TEXTDLG" = "yes"; then
39738 cat >>confdefs.h <<\_ACEOF
39739#define wxUSE_TEXTDLG 1
39740_ACEOF
39741
39742fi
39743
39744if test "$wxUSE_WIZARDDLG" = "yes"; then
39745 cat >>confdefs.h <<\_ACEOF
39746#define wxUSE_WIZARDDLG 1
39747_ACEOF
39748
39749 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39750fi
39751
39752
ce756cb0
RN
39753if test "$wxUSE_MEDIACTRL" = "yes"; then
39754 if test "$wxUSE_MSW" = 1; then
39755 wxUSE_DIRECTSHOW="yes"
39756
39757for ac_header in dshow.h
39758do
39759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39760echo "$as_me:$LINENO: checking for $ac_header" >&5
39761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39762if eval "test \"\${$as_ac_Header+set}\" = set"; then
39763 echo $ECHO_N "(cached) $ECHO_C" >&6
39764else
39765 cat >conftest.$ac_ext <<_ACEOF
39766/* confdefs.h. */
39767_ACEOF
39768cat confdefs.h >>conftest.$ac_ext
39769cat >>conftest.$ac_ext <<_ACEOF
39770/* end confdefs.h. */
39771#include <windows.h>
39772
39773#include <$ac_header>
39774_ACEOF
39775rm -f conftest.$ac_objext
39776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39777 (eval $ac_compile) 2>conftest.er1
39778 ac_status=$?
39779 grep -v '^ *+' conftest.er1 >conftest.err
39780 rm -f conftest.er1
39781 cat conftest.err >&5
39782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39783 (exit $ac_status); } &&
9dd0f6c2 39784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39786 (eval $ac_try) 2>&5
39787 ac_status=$?
39788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39789 (exit $ac_status); }; } &&
39790 { ac_try='test -s conftest.$ac_objext'
39791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39792 (eval $ac_try) 2>&5
39793 ac_status=$?
39794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39795 (exit $ac_status); }; }; then
39796 eval "$as_ac_Header=yes"
39797else
39798 echo "$as_me: failed program was:" >&5
39799sed 's/^/| /' conftest.$ac_ext >&5
39800
39801eval "$as_ac_Header=no"
39802fi
39803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39804fi
39805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39807if test `eval echo '${'$as_ac_Header'}'` = yes; then
39808 cat >>confdefs.h <<_ACEOF
39809#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39810_ACEOF
39811
39812else
39813
39814 wxUSE_DIRECTSHOW="no"
39815 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39816echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39817
39818fi
39819
39820done
39821
39822
39823 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39824 cat >>confdefs.h <<\_ACEOF
39825#define wxUSE_DIRECTSHOW 1
39826_ACEOF
39827
39828 LIBS="$LIBS -lstrmiids"
39829 fi
39830 fi
39831
39832 if test "$wxUSE_GTK" = 1; then
39833 wxUSE_GSTREAMER="yes"
39834
ce756cb0 39835
dae87f93 39836 succeeded=no
ce756cb0 39837
dae87f93
RN
39838 if test -z "$PKG_CONFIG"; then
39839 # Extract the first word of "pkg-config", so it can be a program name with args.
39840set dummy pkg-config; ac_word=$2
39841echo "$as_me:$LINENO: checking for $ac_word" >&5
39842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39843if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39844 echo $ECHO_N "(cached) $ECHO_C" >&6
39845else
39846 case $PKG_CONFIG in
39847 [\\/]* | ?:[\\/]*)
39848 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39849 ;;
39850 *)
39851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39852for as_dir in $PATH
39853do
39854 IFS=$as_save_IFS
39855 test -z "$as_dir" && as_dir=.
39856 for ac_exec_ext in '' $ac_executable_extensions; do
39857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39858 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39860 break 2
39861 fi
39862done
39863done
39864
39865 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39866 ;;
39867esac
39868fi
39869PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39870
39871if test -n "$PKG_CONFIG"; then
39872 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39873echo "${ECHO_T}$PKG_CONFIG" >&6
39874else
39875 echo "$as_me:$LINENO: result: no" >&5
39876echo "${ECHO_T}no" >&6
39877fi
39878
39879 fi
39880
39881 if test "$PKG_CONFIG" = "no" ; then
39882 echo "*** The pkg-config script could not be found. Make sure it is"
39883 echo "*** in your path, or set the PKG_CONFIG environment variable"
39884 echo "*** to the full path to pkg-config."
39885 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39886 else
39887 PKG_CONFIG_MIN_VERSION=0.9.0
39888 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39889 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39890echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39891
39892 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39893 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39894echo "${ECHO_T}yes" >&6
dae87f93 39895 succeeded=yes
ce756cb0 39896
dae87f93
RN
39897 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39898echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39899 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39900 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39901echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39902
39903 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39904echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39905 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39906 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39907echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39908 else
39909 GSTREAMER_CFLAGS=""
39910 GSTREAMER_LIBS=""
39911 ## If we have a custom action on failure, don't print errors, but
39912 ## do set a variable so people can do so.
39913 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39914
dae87f93
RN
39915 fi
39916
39917
39918
39919 else
39920 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39921 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39922 fi
39923 fi
39924
39925 if test $succeeded = yes; then
39926
39927 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39928 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39929
ce756cb0 39930 else
dae87f93
RN
39931
39932 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39933echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39934 wxUSE_GSTREAMER="no"
39935
39936 fi
39937
39938
39939
39940
39941
39942 if test "x$GST_INSPECT" == "x"; then
39943 # Extract the first word of "gst-inspect", so it can be a program name with args.
39944set dummy gst-inspect; ac_word=$2
39945echo "$as_me:$LINENO: checking for $ac_word" >&5
39946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39947if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39948 echo $ECHO_N "(cached) $ECHO_C" >&6
39949else
39950 if test -n "$GST_INSPECT"; then
39951 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39952else
39953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39954for as_dir in $PATH
39955do
39956 IFS=$as_save_IFS
39957 test -z "$as_dir" && as_dir=.
39958 for ac_exec_ext in '' $ac_executable_extensions; do
39959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39960 ac_cv_prog_GST_INSPECT="gst-inspect"
39961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39962 break 2
ce756cb0 39963 fi
dae87f93
RN
39964done
39965done
39966
39967fi
39968fi
39969GST_INSPECT=$ac_cv_prog_GST_INSPECT
39970if test -n "$GST_INSPECT"; then
39971 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39972echo "${ECHO_T}$GST_INSPECT" >&6
39973else
39974 echo "$as_me:$LINENO: result: no" >&5
39975echo "${ECHO_T}no" >&6
39976fi
39977
39978 fi
39979
39980 if test "x$GST_INSPECT" != "x"; then
39981 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39982echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39983 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39984 echo "$as_me:$LINENO: result: found." >&5
39985echo "${ECHO_T}found." >&6
ce756cb0 39986
ce756cb0 39987 else
dae87f93
RN
39988 echo "$as_me:$LINENO: result: not found." >&5
39989echo "${ECHO_T}not found." >&6
39990
39991 wxUSE_GSTREAMER="no"
39992 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39993echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39994
39995 fi
39996 fi
39997
39998
39999 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40000echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40001if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40002 echo $ECHO_N "(cached) $ECHO_C" >&6
40003else
40004 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40005/* confdefs.h. */
40006_ACEOF
40007cat confdefs.h >>conftest.$ac_ext
40008cat >>conftest.$ac_ext <<_ACEOF
40009/* end confdefs.h. */
dae87f93 40010#include <gst/gst.h>
ce756cb0 40011
dae87f93 40012#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40013_ACEOF
40014rm -f conftest.$ac_objext
40015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40016 (eval $ac_compile) 2>conftest.er1
40017 ac_status=$?
40018 grep -v '^ *+' conftest.er1 >conftest.err
40019 rm -f conftest.er1
40020 cat conftest.err >&5
40021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40022 (exit $ac_status); } &&
9dd0f6c2 40023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
40024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40025 (eval $ac_try) 2>&5
40026 ac_status=$?
40027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40028 (exit $ac_status); }; } &&
40029 { ac_try='test -s conftest.$ac_objext'
40030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40031 (eval $ac_try) 2>&5
40032 ac_status=$?
40033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40034 (exit $ac_status); }; }; then
dae87f93 40035 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40036else
40037 echo "$as_me: failed program was:" >&5
40038sed 's/^/| /' conftest.$ac_ext >&5
40039
dae87f93 40040ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40041fi
40042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40043fi
40044echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40045echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40046if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40047 :
40048else
ce756cb0 40049
dae87f93
RN
40050 wxUSE_GSTREAMER="no"
40051 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40052echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 40053
dae87f93 40054fi
ce756cb0 40055
dae87f93
RN
40056
40057
40058 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
40059echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40060
40061ac_find_libraries=
40062for ac_dir in $SEARCH_LIB /usr/lib;
40063 do
40064 for ac_extension in a so sl dylib; do
40065 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40066 ac_find_libraries=$ac_dir
40067 break 2
40068 fi
40069 done
40070 done
40071
ce756cb0 40072
dae87f93
RN
40073 if test "$ac_find_libraries" = "" ; then
40074 echo "$as_me:$LINENO: result: no" >&5
40075echo "${ECHO_T}no" >&6
40076 wxUSE_GSTREAMER="no"
40077 else
40078 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40079echo "${ECHO_T}yes" >&6
dae87f93 40080 fi
ce756cb0 40081
dae87f93
RN
40082 if test "$wxUSE_GSTREAMER" = "yes"; then
40083 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40084#define wxUSE_GSTREAMER 1
40085_ACEOF
40086
dae87f93
RN
40087 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40088echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40089 fi
40090 fi
40091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40092 cat >>confdefs.h <<\_ACEOF
40093#define wxUSE_MEDIACTRL 1
40094_ACEOF
40095
40096fi
40097
40098
a848cd7e
SC
40099if test "$cross_compiling" = "yes"; then
40100 OSINFO="\"$host\""
40101else
40102 OSINFO=`uname -s -r -m`
40103 OSINFO="\"$OSINFO\""
40104fi
40105
40106cat >>confdefs.h <<_ACEOF
40107#define WXWIN_OS_DESCRIPTION $OSINFO
40108_ACEOF
40109
40110
40111
40112if test "x$prefix" != "xNONE"; then
40113 wxPREFIX=$prefix
40114else
40115 wxPREFIX=$ac_default_prefix
40116fi
40117
40118cat >>confdefs.h <<_ACEOF
40119#define wxINSTALL_PREFIX "$wxPREFIX"
40120_ACEOF
40121
40122
a848cd7e
SC
40123
40124
40125CORE_BASE_LIBS="net base"
40126CORE_GUI_LIBS="adv core"
40127
40128if test "$wxUSE_XML" = "yes" ; then
40129 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40130fi
40131if test "$wxUSE_ODBC" != "no" ; then
40132 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40133 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40134fi
40135if test "$wxUSE_HTML" = "yes" ; then
40136 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40137fi
61639efb
VZ
40138if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40139 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40140fi
9a8f0513
VS
40141if test "$wxUSE_XRC" = "yes" ; then
40142 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40143fi
a848cd7e
SC
40144
40145if test "$wxUSE_GUI" != "yes"; then
40146 CORE_GUI_LIBS=""
40147fi
40148
40149
40150
40151
40152
40153
40154
40155
40156if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 40157 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
40158 if test "$USE_DARWIN" = 1; then
40159 LDFLAGS="$LDFLAGS -framework QuickTime"
40160 else
40161 LDFLAGS="$LDFLAGS -lQuickTimeLib"
40162 fi
07bea8f0 40163 fi
5dcf30a0 40164 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
40165 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40166 else
40167 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 40168 fi
59746b65
MW
40169elif test "$USE_DARWIN" = 1; then
40170 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System"
a848cd7e
SC
40171fi
40172if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 40173 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
40174 if test "$wxUSE_MEDIACTRL" = "yes"; then
40175 LDFLAGS="$LDFLAGS -framework QuickTime"
40176 fi
a848cd7e
SC
40177fi
40178
40179
40180LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40181
40182have_cos=0
40183have_floor=0
40184
40185for ac_func in cos
40186do
40187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40188echo "$as_me:$LINENO: checking for $ac_func" >&5
40189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40190if eval "test \"\${$as_ac_var+set}\" = set"; then
40191 echo $ECHO_N "(cached) $ECHO_C" >&6
40192else
40193 cat >conftest.$ac_ext <<_ACEOF
40194/* confdefs.h. */
40195_ACEOF
40196cat confdefs.h >>conftest.$ac_ext
40197cat >>conftest.$ac_ext <<_ACEOF
40198/* end confdefs.h. */
ac1cb8d3
VS
40199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40201#define $ac_func innocuous_$ac_func
40202
a848cd7e
SC
40203/* System header to define __stub macros and hopefully few prototypes,
40204 which can conflict with char $ac_func (); below.
40205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40206 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40207
a848cd7e
SC
40208#ifdef __STDC__
40209# include <limits.h>
40210#else
40211# include <assert.h>
40212#endif
ac1cb8d3
VS
40213
40214#undef $ac_func
40215
a848cd7e
SC
40216/* Override any gcc2 internal prototype to avoid an error. */
40217#ifdef __cplusplus
40218extern "C"
40219{
40220#endif
40221/* We use char because int might match the return type of a gcc2
40222 builtin and then its argument prototype would still apply. */
40223char $ac_func ();
40224/* The GNU C library defines this for functions which it implements
40225 to always fail with ENOSYS. Some functions are actually named
40226 something starting with __ and the normal name is an alias. */
40227#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40228choke me
40229#else
40230char (*f) () = $ac_func;
40231#endif
40232#ifdef __cplusplus
40233}
40234#endif
40235
40236int
40237main ()
40238{
40239return f != $ac_func;
40240 ;
40241 return 0;
40242}
40243_ACEOF
40244rm -f conftest.$ac_objext conftest$ac_exeext
40245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40246 (eval $ac_link) 2>conftest.er1
a848cd7e 40247 ac_status=$?
ac1cb8d3
VS
40248 grep -v '^ *+' conftest.er1 >conftest.err
40249 rm -f conftest.er1
40250 cat conftest.err >&5
a848cd7e
SC
40251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40252 (exit $ac_status); } &&
9dd0f6c2 40253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40255 (eval $ac_try) 2>&5
40256 ac_status=$?
40257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40258 (exit $ac_status); }; } &&
40259 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40261 (eval $ac_try) 2>&5
40262 ac_status=$?
40263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40264 (exit $ac_status); }; }; then
40265 eval "$as_ac_var=yes"
40266else
40267 echo "$as_me: failed program was:" >&5
40268sed 's/^/| /' conftest.$ac_ext >&5
40269
40270eval "$as_ac_var=no"
40271fi
ac1cb8d3
VS
40272rm -f conftest.err conftest.$ac_objext \
40273 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40274fi
40275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40276echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40277if test `eval echo '${'$as_ac_var'}'` = yes; then
40278 cat >>confdefs.h <<_ACEOF
40279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40280_ACEOF
40281 have_cos=1
40282fi
40283done
40284
40285
40286for ac_func in floor
40287do
40288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40289echo "$as_me:$LINENO: checking for $ac_func" >&5
40290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40291if eval "test \"\${$as_ac_var+set}\" = set"; then
40292 echo $ECHO_N "(cached) $ECHO_C" >&6
40293else
40294 cat >conftest.$ac_ext <<_ACEOF
40295/* confdefs.h. */
40296_ACEOF
40297cat confdefs.h >>conftest.$ac_ext
40298cat >>conftest.$ac_ext <<_ACEOF
40299/* end confdefs.h. */
ac1cb8d3
VS
40300/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40302#define $ac_func innocuous_$ac_func
40303
a848cd7e
SC
40304/* System header to define __stub macros and hopefully few prototypes,
40305 which can conflict with char $ac_func (); below.
40306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40307 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40308
a848cd7e
SC
40309#ifdef __STDC__
40310# include <limits.h>
40311#else
40312# include <assert.h>
40313#endif
ac1cb8d3
VS
40314
40315#undef $ac_func
40316
a848cd7e
SC
40317/* Override any gcc2 internal prototype to avoid an error. */
40318#ifdef __cplusplus
40319extern "C"
40320{
40321#endif
40322/* We use char because int might match the return type of a gcc2
40323 builtin and then its argument prototype would still apply. */
40324char $ac_func ();
40325/* The GNU C library defines this for functions which it implements
40326 to always fail with ENOSYS. Some functions are actually named
40327 something starting with __ and the normal name is an alias. */
40328#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40329choke me
40330#else
40331char (*f) () = $ac_func;
40332#endif
40333#ifdef __cplusplus
40334}
40335#endif
40336
40337int
40338main ()
40339{
40340return f != $ac_func;
40341 ;
40342 return 0;
40343}
40344_ACEOF
40345rm -f conftest.$ac_objext conftest$ac_exeext
40346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40347 (eval $ac_link) 2>conftest.er1
a848cd7e 40348 ac_status=$?
ac1cb8d3
VS
40349 grep -v '^ *+' conftest.er1 >conftest.err
40350 rm -f conftest.er1
40351 cat conftest.err >&5
a848cd7e
SC
40352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40353 (exit $ac_status); } &&
9dd0f6c2 40354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40356 (eval $ac_try) 2>&5
40357 ac_status=$?
40358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40359 (exit $ac_status); }; } &&
40360 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40362 (eval $ac_try) 2>&5
40363 ac_status=$?
40364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365 (exit $ac_status); }; }; then
40366 eval "$as_ac_var=yes"
40367else
40368 echo "$as_me: failed program was:" >&5
40369sed 's/^/| /' conftest.$ac_ext >&5
40370
40371eval "$as_ac_var=no"
40372fi
ac1cb8d3
VS
40373rm -f conftest.err conftest.$ac_objext \
40374 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40375fi
40376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40378if test `eval echo '${'$as_ac_var'}'` = yes; then
40379 cat >>confdefs.h <<_ACEOF
40380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40381_ACEOF
40382 have_floor=1
40383fi
40384done
40385
40386echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40387echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40388if test "$have_cos" = 1 -a "$have_floor" = 1; then
40389 echo "$as_me:$LINENO: result: yes" >&5
40390echo "${ECHO_T}yes" >&6
40391else
40392 echo "$as_me:$LINENO: result: no" >&5
40393echo "${ECHO_T}no" >&6
40394 LIBS="$LIBS -lm"
40395 # use different functions to avoid configure caching
40396 have_sin=0
40397 have_ceil=0
40398
40399for ac_func in sin
40400do
40401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40402echo "$as_me:$LINENO: checking for $ac_func" >&5
40403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40404if eval "test \"\${$as_ac_var+set}\" = set"; then
40405 echo $ECHO_N "(cached) $ECHO_C" >&6
40406else
40407 cat >conftest.$ac_ext <<_ACEOF
40408/* confdefs.h. */
40409_ACEOF
40410cat confdefs.h >>conftest.$ac_ext
40411cat >>conftest.$ac_ext <<_ACEOF
40412/* end confdefs.h. */
ac1cb8d3
VS
40413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40415#define $ac_func innocuous_$ac_func
40416
a848cd7e
SC
40417/* System header to define __stub macros and hopefully few prototypes,
40418 which can conflict with char $ac_func (); below.
40419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40420 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40421
a848cd7e
SC
40422#ifdef __STDC__
40423# include <limits.h>
40424#else
40425# include <assert.h>
40426#endif
ac1cb8d3
VS
40427
40428#undef $ac_func
40429
a848cd7e
SC
40430/* Override any gcc2 internal prototype to avoid an error. */
40431#ifdef __cplusplus
40432extern "C"
40433{
40434#endif
40435/* We use char because int might match the return type of a gcc2
40436 builtin and then its argument prototype would still apply. */
40437char $ac_func ();
40438/* The GNU C library defines this for functions which it implements
40439 to always fail with ENOSYS. Some functions are actually named
40440 something starting with __ and the normal name is an alias. */
40441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40442choke me
40443#else
40444char (*f) () = $ac_func;
40445#endif
40446#ifdef __cplusplus
40447}
40448#endif
40449
40450int
40451main ()
40452{
40453return f != $ac_func;
40454 ;
40455 return 0;
40456}
40457_ACEOF
40458rm -f conftest.$ac_objext conftest$ac_exeext
40459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40460 (eval $ac_link) 2>conftest.er1
a848cd7e 40461 ac_status=$?
ac1cb8d3
VS
40462 grep -v '^ *+' conftest.er1 >conftest.err
40463 rm -f conftest.er1
40464 cat conftest.err >&5
a848cd7e
SC
40465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466 (exit $ac_status); } &&
9dd0f6c2 40467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40469 (eval $ac_try) 2>&5
40470 ac_status=$?
40471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472 (exit $ac_status); }; } &&
40473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40475 (eval $ac_try) 2>&5
40476 ac_status=$?
40477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40478 (exit $ac_status); }; }; then
40479 eval "$as_ac_var=yes"
40480else
40481 echo "$as_me: failed program was:" >&5
40482sed 's/^/| /' conftest.$ac_ext >&5
40483
40484eval "$as_ac_var=no"
40485fi
ac1cb8d3
VS
40486rm -f conftest.err conftest.$ac_objext \
40487 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40488fi
40489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40490echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40491if test `eval echo '${'$as_ac_var'}'` = yes; then
40492 cat >>confdefs.h <<_ACEOF
40493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40494_ACEOF
40495 have_sin=1
40496fi
40497done
40498
40499
40500for ac_func in ceil
40501do
40502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40503echo "$as_me:$LINENO: checking for $ac_func" >&5
40504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40505if eval "test \"\${$as_ac_var+set}\" = set"; then
40506 echo $ECHO_N "(cached) $ECHO_C" >&6
40507else
40508 cat >conftest.$ac_ext <<_ACEOF
40509/* confdefs.h. */
40510_ACEOF
40511cat confdefs.h >>conftest.$ac_ext
40512cat >>conftest.$ac_ext <<_ACEOF
40513/* end confdefs.h. */
ac1cb8d3
VS
40514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40516#define $ac_func innocuous_$ac_func
40517
a848cd7e
SC
40518/* System header to define __stub macros and hopefully few prototypes,
40519 which can conflict with char $ac_func (); below.
40520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40521 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40522
a848cd7e
SC
40523#ifdef __STDC__
40524# include <limits.h>
40525#else
40526# include <assert.h>
40527#endif
ac1cb8d3
VS
40528
40529#undef $ac_func
40530
a848cd7e
SC
40531/* Override any gcc2 internal prototype to avoid an error. */
40532#ifdef __cplusplus
40533extern "C"
40534{
40535#endif
40536/* We use char because int might match the return type of a gcc2
40537 builtin and then its argument prototype would still apply. */
40538char $ac_func ();
40539/* The GNU C library defines this for functions which it implements
40540 to always fail with ENOSYS. Some functions are actually named
40541 something starting with __ and the normal name is an alias. */
40542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40543choke me
40544#else
40545char (*f) () = $ac_func;
40546#endif
40547#ifdef __cplusplus
40548}
40549#endif
40550
40551int
40552main ()
40553{
40554return f != $ac_func;
40555 ;
40556 return 0;
40557}
40558_ACEOF
40559rm -f conftest.$ac_objext conftest$ac_exeext
40560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40561 (eval $ac_link) 2>conftest.er1
a848cd7e 40562 ac_status=$?
ac1cb8d3
VS
40563 grep -v '^ *+' conftest.er1 >conftest.err
40564 rm -f conftest.er1
40565 cat conftest.err >&5
a848cd7e
SC
40566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40567 (exit $ac_status); } &&
9dd0f6c2 40568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40570 (eval $ac_try) 2>&5
40571 ac_status=$?
40572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40573 (exit $ac_status); }; } &&
40574 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40576 (eval $ac_try) 2>&5
40577 ac_status=$?
40578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40579 (exit $ac_status); }; }; then
40580 eval "$as_ac_var=yes"
40581else
40582 echo "$as_me: failed program was:" >&5
40583sed 's/^/| /' conftest.$ac_ext >&5
40584
40585eval "$as_ac_var=no"
40586fi
ac1cb8d3
VS
40587rm -f conftest.err conftest.$ac_objext \
40588 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40589fi
40590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40592if test `eval echo '${'$as_ac_var'}'` = yes; then
40593 cat >>confdefs.h <<_ACEOF
40594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40595_ACEOF
40596 have_ceil=1
40597fi
40598done
40599
40600 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40601echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40602 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40603 echo "$as_me:$LINENO: result: yes" >&5
40604echo "${ECHO_T}yes" >&6
40605 else
40606 echo "$as_me:$LINENO: result: no" >&5
40607echo "${ECHO_T}no" >&6
40608 # not sure we should warn the user, crash, etc.
40609 fi
40610fi
40611
40612if test "$wxUSE_GUI" = "yes"; then
40613
40614
8bce5cda
MW
40615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40616 dynamic erase event exec font image minimal mobile \
40617 mobile/wxedit mobile/styles propsize render \
40618 richedit rotate shaped vscroll widgets"
a848cd7e
SC
40619
40620 if test "$wxUSE_MONOLITHIC" != "yes"; then
40621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40622 fi
0b78747f 40623 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
40624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40625 if test "$wxUSE_UNIVERSAL" != "yes"; then
40626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40627 fi
40628 fi
40629 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 40631 fi
a848cd7e
SC
40632else
40633 SAMPLES_SUBDIRS="console"
40634fi
40635
40636
ceec2216 40637INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40638-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40639
40640if test "$GXX" = yes ; then
5294a27e
VZ
40641 CWARNINGS="-Wall"
40642 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40643 fi
40644
40645EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40646
0c3c69fc 40647CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40648CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40649CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40650
95986553
DE
40651if test "x$MWCC" = "xyes"; then
40652
40653 CC="$CC -cwd source -I-"
40654 CXX="$CXX -cwd source -I-"
40655fi
40656
a848cd7e 40657
0c3c69fc 40658LIBS=`echo $LIBS`
a848cd7e
SC
40659EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40660EXTRALIBS_XML="$EXPAT_LINK"
40661EXTRALIBS_HTML="$MSPACK_LINK"
40662EXTRALIBS_ODBC="$ODBC_LINK"
40663if test "$wxUSE_GUI" = "yes"; then
2e350179 40664 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40665fi
40666if test "$wxUSE_OPENGL" = "yes"; then
40667 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40668fi
40669
40670LDFLAGS="$LDFLAGS $PROFILE"
40671
40672if test "$wxUSE_GTK" = 1; then
40673 WXCONFIG_INCLUDE=
40674else
40675 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40676fi
40677
40678WXCONFIG_EXTRALIBS="$LIBS"
40679
40680if test "$wxUSE_REGEX" = "builtin" ; then
74802184 40681 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
40682fi
40683if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 40684 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
40685fi
40686if test "$wxUSE_ODBC" = "builtin" ; then
74802184 40687 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
40688fi
40689if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 40690 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
40691fi
40692if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 40693 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
40694fi
40695if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 40696 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
40697fi
40698if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 40699 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
40700fi
40701
40702for i in $wxconfig_3rdparty ; do
74802184 40703 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
40704done
40705
40706
40707if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40708 WXUNIV=1
40709else
40710 WXUNIV=0
40711fi
40712
40713
40714
40715
40716
40717
40718
40719
40720
40721if test $wxUSE_MONOLITHIC = "yes" ; then
40722 MONOLITHIC=1
40723else
40724 MONOLITHIC=0
40725fi
40726
40727if test $wxUSE_PLUGINS = "yes" ; then
40728 USE_PLUGINS=1
40729else
40730 USE_PLUGINS=0
40731fi
40732
40733if test $wxUSE_ODBC != "no" ; then
40734 USE_ODBC=1
40735else
40736 USE_ODBC=0
40737fi
40738
16358932
VZ
40739if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40740 USE_QA=1
40741else
40742 USE_QA=0
40743fi
40744
a848cd7e
SC
40745if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40746 OFFICIAL_BUILD=1
40747else
40748 OFFICIAL_BUILD=0
40749fi
40750
40751
40752
40753
40754
40755
40756
40757
40758
40759
40760
40761
40762
40763
40764
40765
40766
40767
40768
ceec2216 40769
d1c38808 40770
a848cd7e
SC
40771
40772
40773TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40774
40775
40776
40777
40778
40779
40780
40781
4d4ff94c
VZ
40782case "$TOOLKIT" in
40783 GTK)
40784 TOOLKIT_USER="GTK+"
40785 if test "$WXGTK20" = 1; then
40786 TOOLKIT_USER="$TOOLKIT_USER 2"
40787 fi
9a8f0513 40788 ;;
4d4ff94c
VZ
40789
40790 *)
40791 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40792 ;;
4d4ff94c 40793esac
a848cd7e 40794
9a8f0513 40795
1e9e8aba
DE
40796
40797
a848cd7e
SC
40798 if test "x$BAKEFILE_HOST" = "x"; then
40799 BAKEFILE_HOST="${host}"
40800 fi
40801
40802 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40803
40804 if test -n "$ac_tool_prefix"; then
40805 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40806set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40807echo "$as_me:$LINENO: checking for $ac_word" >&5
40808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40809if test "${ac_cv_prog_RANLIB+set}" = set; then
40810 echo $ECHO_N "(cached) $ECHO_C" >&6
40811else
40812 if test -n "$RANLIB"; then
40813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40814else
40815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40816for as_dir in $PATH
40817do
40818 IFS=$as_save_IFS
40819 test -z "$as_dir" && as_dir=.
40820 for ac_exec_ext in '' $ac_executable_extensions; do
40821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40822 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40824 break 2
40825 fi
40826done
40827done
40828
40829fi
40830fi
40831RANLIB=$ac_cv_prog_RANLIB
40832if test -n "$RANLIB"; then
40833 echo "$as_me:$LINENO: result: $RANLIB" >&5
40834echo "${ECHO_T}$RANLIB" >&6
40835else
40836 echo "$as_me:$LINENO: result: no" >&5
40837echo "${ECHO_T}no" >&6
40838fi
40839
40840fi
40841if test -z "$ac_cv_prog_RANLIB"; then
40842 ac_ct_RANLIB=$RANLIB
40843 # Extract the first word of "ranlib", so it can be a program name with args.
40844set dummy ranlib; ac_word=$2
40845echo "$as_me:$LINENO: checking for $ac_word" >&5
40846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40847if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40848 echo $ECHO_N "(cached) $ECHO_C" >&6
40849else
40850 if test -n "$ac_ct_RANLIB"; then
40851 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40852else
40853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40854for as_dir in $PATH
40855do
40856 IFS=$as_save_IFS
40857 test -z "$as_dir" && as_dir=.
40858 for ac_exec_ext in '' $ac_executable_extensions; do
40859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40860 ac_cv_prog_ac_ct_RANLIB="ranlib"
40861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40862 break 2
40863 fi
40864done
40865done
40866
40867 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40868fi
40869fi
40870ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40871if test -n "$ac_ct_RANLIB"; then
40872 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40873echo "${ECHO_T}$ac_ct_RANLIB" >&6
40874else
40875 echo "$as_me:$LINENO: result: no" >&5
40876echo "${ECHO_T}no" >&6
40877fi
40878
40879 RANLIB=$ac_ct_RANLIB
40880else
40881 RANLIB="$ac_cv_prog_RANLIB"
40882fi
40883
40884 # Find a good install program. We prefer a C program (faster),
40885# so one script is as good as another. But avoid the broken or
40886# incompatible versions:
40887# SysV /etc/install, /usr/sbin/install
40888# SunOS /usr/etc/install
40889# IRIX /sbin/install
40890# AIX /bin/install
40891# AmigaOS /C/install, which installs bootblocks on floppy discs
40892# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40893# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40894# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40895# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40896# ./install, which can be erroneously created by make from ./install.sh.
40897echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40898echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40899if test -z "$INSTALL"; then
40900if test "${ac_cv_path_install+set}" = set; then
40901 echo $ECHO_N "(cached) $ECHO_C" >&6
40902else
40903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40904for as_dir in $PATH
40905do
40906 IFS=$as_save_IFS
40907 test -z "$as_dir" && as_dir=.
40908 # Account for people who put trailing slashes in PATH elements.
40909case $as_dir/ in
40910 ./ | .// | /cC/* | \
40911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40912 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40913 /usr/ucb/* ) ;;
40914 *)
40915 # OSF1 and SCO ODT 3.0 have their own names for install.
40916 # Don't use installbsd from OSF since it installs stuff as root
40917 # by default.
40918 for ac_prog in ginstall scoinst install; do
40919 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40920 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40921 if test $ac_prog = install &&
40922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40923 # AIX install. It has an incompatible calling convention.
40924 :
40925 elif test $ac_prog = install &&
40926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40927 # program-specific install script used by HP pwplus--don't use.
40928 :
40929 else
40930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40931 break 3
40932 fi
40933 fi
a848cd7e
SC
40934 done
40935 done
40936 ;;
40937esac
40938done
40939
40940
40941fi
40942 if test "${ac_cv_path_install+set}" = set; then
40943 INSTALL=$ac_cv_path_install
40944 else
40945 # As a last resort, use the slow shell script. We don't cache a
40946 # path for INSTALL within a source directory, because that will
40947 # break other packages using the cache if that directory is
40948 # removed, or if the path is relative.
40949 INSTALL=$ac_install_sh
40950 fi
40951fi
40952echo "$as_me:$LINENO: result: $INSTALL" >&5
40953echo "${ECHO_T}$INSTALL" >&6
40954
40955# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40956# It thinks the first close brace ends the variable substitution.
40957test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40958
40959test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40960
40961test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40962
40963 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40964echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40965LN_S=$as_ln_s
40966if test "$LN_S" = "ln -s"; then
40967 echo "$as_me:$LINENO: result: yes" >&5
40968echo "${ECHO_T}yes" >&6
40969else
40970 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40971echo "${ECHO_T}no, using $LN_S" >&6
40972fi
40973
40974
40975 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40976echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40977set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40978if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40979 echo $ECHO_N "(cached) $ECHO_C" >&6
40980else
40981 cat >conftest.make <<\_ACEOF
40982all:
40983 @echo 'ac_maketemp="$(MAKE)"'
40984_ACEOF
40985# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40986eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40987if test -n "$ac_maketemp"; then
40988 eval ac_cv_prog_make_${ac_make}_set=yes
40989else
40990 eval ac_cv_prog_make_${ac_make}_set=no
40991fi
40992rm -f conftest.make
40993fi
40994if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40995 echo "$as_me:$LINENO: result: yes" >&5
40996echo "${ECHO_T}yes" >&6
40997 SET_MAKE=
40998else
40999 echo "$as_me:$LINENO: result: no" >&5
41000echo "${ECHO_T}no" >&6
41001 SET_MAKE="MAKE=${MAKE-make}"
41002fi
41003
41004
41005
41006 if test -n "$ac_tool_prefix"; then
41007 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41008set dummy ${ac_tool_prefix}ar; ac_word=$2
41009echo "$as_me:$LINENO: checking for $ac_word" >&5
41010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41011if test "${ac_cv_prog_AR+set}" = set; then
41012 echo $ECHO_N "(cached) $ECHO_C" >&6
41013else
41014 if test -n "$AR"; then
41015 ac_cv_prog_AR="$AR" # Let the user override the test.
41016else
41017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41018for as_dir in $PATH
41019do
41020 IFS=$as_save_IFS
41021 test -z "$as_dir" && as_dir=.
41022 for ac_exec_ext in '' $ac_executable_extensions; do
41023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41024 ac_cv_prog_AR="${ac_tool_prefix}ar"
41025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41026 break 2
41027 fi
41028done
41029done
41030
41031fi
41032fi
41033AR=$ac_cv_prog_AR
41034if test -n "$AR"; then
41035 echo "$as_me:$LINENO: result: $AR" >&5
41036echo "${ECHO_T}$AR" >&6
41037else
41038 echo "$as_me:$LINENO: result: no" >&5
41039echo "${ECHO_T}no" >&6
41040fi
41041
41042fi
41043if test -z "$ac_cv_prog_AR"; then
41044 ac_ct_AR=$AR
41045 # Extract the first word of "ar", so it can be a program name with args.
41046set dummy ar; ac_word=$2
41047echo "$as_me:$LINENO: checking for $ac_word" >&5
41048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41049if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41050 echo $ECHO_N "(cached) $ECHO_C" >&6
41051else
41052 if test -n "$ac_ct_AR"; then
41053 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41054else
41055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41056for as_dir in $PATH
41057do
41058 IFS=$as_save_IFS
41059 test -z "$as_dir" && as_dir=.
41060 for ac_exec_ext in '' $ac_executable_extensions; do
41061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41062 ac_cv_prog_ac_ct_AR="ar"
41063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41064 break 2
41065 fi
41066done
41067done
41068
41069 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41070fi
41071fi
41072ac_ct_AR=$ac_cv_prog_ac_ct_AR
41073if test -n "$ac_ct_AR"; then
41074 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41075echo "${ECHO_T}$ac_ct_AR" >&6
41076else
41077 echo "$as_me:$LINENO: result: no" >&5
41078echo "${ECHO_T}no" >&6
41079fi
41080
41081 AR=$ac_ct_AR
41082else
41083 AR="$ac_cv_prog_AR"
41084fi
41085
41086 if test -n "$ac_tool_prefix"; then
41087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41088set dummy ${ac_tool_prefix}strip; ac_word=$2
41089echo "$as_me:$LINENO: checking for $ac_word" >&5
41090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41091if test "${ac_cv_prog_STRIP+set}" = set; then
41092 echo $ECHO_N "(cached) $ECHO_C" >&6
41093else
41094 if test -n "$STRIP"; then
41095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41096else
41097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41098for as_dir in $PATH
41099do
41100 IFS=$as_save_IFS
41101 test -z "$as_dir" && as_dir=.
41102 for ac_exec_ext in '' $ac_executable_extensions; do
41103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41104 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41106 break 2
41107 fi
41108done
41109done
41110
41111fi
41112fi
41113STRIP=$ac_cv_prog_STRIP
41114if test -n "$STRIP"; then
41115 echo "$as_me:$LINENO: result: $STRIP" >&5
41116echo "${ECHO_T}$STRIP" >&6
41117else
41118 echo "$as_me:$LINENO: result: no" >&5
41119echo "${ECHO_T}no" >&6
41120fi
41121
41122fi
41123if test -z "$ac_cv_prog_STRIP"; then
41124 ac_ct_STRIP=$STRIP
41125 # Extract the first word of "strip", so it can be a program name with args.
41126set dummy strip; ac_word=$2
41127echo "$as_me:$LINENO: checking for $ac_word" >&5
41128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41129if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41130 echo $ECHO_N "(cached) $ECHO_C" >&6
41131else
41132 if test -n "$ac_ct_STRIP"; then
41133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41134else
41135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41136for as_dir in $PATH
41137do
41138 IFS=$as_save_IFS
41139 test -z "$as_dir" && as_dir=.
41140 for ac_exec_ext in '' $ac_executable_extensions; do
41141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41142 ac_cv_prog_ac_ct_STRIP="strip"
41143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41144 break 2
41145 fi
41146done
41147done
41148
41149 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41150fi
41151fi
41152ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41153if test -n "$ac_ct_STRIP"; then
41154 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41155echo "${ECHO_T}$ac_ct_STRIP" >&6
41156else
41157 echo "$as_me:$LINENO: result: no" >&5
41158echo "${ECHO_T}no" >&6
41159fi
41160
41161 STRIP=$ac_ct_STRIP
41162else
41163 STRIP="$ac_cv_prog_STRIP"
41164fi
41165
41166 if test -n "$ac_tool_prefix"; then
41167 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41168set dummy ${ac_tool_prefix}nm; ac_word=$2
41169echo "$as_me:$LINENO: checking for $ac_word" >&5
41170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41171if test "${ac_cv_prog_NM+set}" = set; then
41172 echo $ECHO_N "(cached) $ECHO_C" >&6
41173else
41174 if test -n "$NM"; then
41175 ac_cv_prog_NM="$NM" # Let the user override the test.
41176else
41177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41178for as_dir in $PATH
41179do
41180 IFS=$as_save_IFS
41181 test -z "$as_dir" && as_dir=.
41182 for ac_exec_ext in '' $ac_executable_extensions; do
41183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41184 ac_cv_prog_NM="${ac_tool_prefix}nm"
41185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41186 break 2
41187 fi
41188done
41189done
41190
41191fi
41192fi
41193NM=$ac_cv_prog_NM
41194if test -n "$NM"; then
41195 echo "$as_me:$LINENO: result: $NM" >&5
41196echo "${ECHO_T}$NM" >&6
41197else
41198 echo "$as_me:$LINENO: result: no" >&5
41199echo "${ECHO_T}no" >&6
41200fi
41201
41202fi
41203if test -z "$ac_cv_prog_NM"; then
41204 ac_ct_NM=$NM
41205 # Extract the first word of "nm", so it can be a program name with args.
41206set dummy nm; ac_word=$2
41207echo "$as_me:$LINENO: checking for $ac_word" >&5
41208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41209if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41210 echo $ECHO_N "(cached) $ECHO_C" >&6
41211else
41212 if test -n "$ac_ct_NM"; then
41213 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41214else
41215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41216for as_dir in $PATH
41217do
41218 IFS=$as_save_IFS
41219 test -z "$as_dir" && as_dir=.
41220 for ac_exec_ext in '' $ac_executable_extensions; do
41221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41222 ac_cv_prog_ac_ct_NM="nm"
41223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41224 break 2
41225 fi
41226done
41227done
41228
41229 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41230fi
41231fi
41232ac_ct_NM=$ac_cv_prog_ac_ct_NM
41233if test -n "$ac_ct_NM"; then
41234 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41235echo "${ECHO_T}$ac_ct_NM" >&6
41236else
41237 echo "$as_me:$LINENO: result: no" >&5
41238echo "${ECHO_T}no" >&6
41239fi
41240
41241 NM=$ac_ct_NM
41242else
41243 NM="$ac_cv_prog_NM"
41244fi
41245
41246
41247 case ${BAKEFILE_HOST} in
41248 *-hp-hpux* )
1e9e8aba 41249 INSTALL_DIR="mkdir -p"
a848cd7e
SC
41250 ;;
41251 *) INSTALL_DIR="$INSTALL -d"
41252 ;;
41253 esac
41254
41255
41256 LDFLAGS_GUI=
41257 case ${BAKEFILE_HOST} in
41258 *-*-cygwin* | *-*-mingw32* )
41259 LDFLAGS_GUI="-mwindows"
41260 esac
41261
41262
41263 fi
41264
41265 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41266echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41267if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41268 echo $ECHO_N "(cached) $ECHO_C" >&6
41269else
41270
41271 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41272 egrep -s GNU > /dev/null); then
41273 bakefile_cv_prog_makeisgnu="yes"
41274 else
41275 bakefile_cv_prog_makeisgnu="no"
41276 fi
41277
41278fi
41279echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41280echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41281
41282 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41283 IF_GNU_MAKE=""
41284 else
41285 IF_GNU_MAKE="#"
41286 fi
41287
41288
41289
41290 PLATFORM_UNIX=0
41291 PLATFORM_WIN32=0
41292 PLATFORM_MSDOS=0
41293 PLATFORM_MAC=0
1e9e8aba 41294 PLATFORM_MACOS=0
a848cd7e
SC
41295 PLATFORM_MACOSX=0
41296 PLATFORM_OS2=0
1e9e8aba 41297 PLATFORM_BEOS=0
a848cd7e
SC
41298
41299 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41300 case "${BAKEFILE_HOST}" in
41301 *-*-cygwin* | *-*-mingw32* )
41302 PLATFORM_WIN32=1
41303 ;;
41304 *-pc-msdosdjgpp )
41305 PLATFORM_MSDOS=1
41306 ;;
41307 *-pc-os2_emx | *-pc-os2-emx )
41308 PLATFORM_OS2=1
41309 ;;
41310 powerpc-*-darwin* )
41311 PLATFORM_MAC=1
41312 PLATFORM_MACOSX=1
41313 ;;
1e9e8aba
DE
41314 *-*-beos* )
41315 PLATFORM_BEOS=1
41316 ;;
41317 powerpc-apple-macos* )
41318 PLATFORM_MAC=1
41319 PLATFORM_MACOS=1
41320 ;;
a848cd7e
SC
41321 * )
41322 PLATFORM_UNIX=1
41323 ;;
41324 esac
41325 else
41326 case "$BAKEFILE_FORCE_PLATFORM" in
41327 win32 )
41328 PLATFORM_WIN32=1
41329 ;;
41330 msdos )
41331 PLATFORM_MSDOS=1
41332 ;;
41333 os2 )
41334 PLATFORM_OS2=1
41335 ;;
41336 darwin )
41337 PLATFORM_MAC=1
41338 PLATFORM_MACOSX=1
41339 ;;
41340 unix )
41341 PLATFORM_UNIX=1
41342 ;;
1e9e8aba
DE
41343 beos )
41344 PLATFORM_BEOS=1
41345 ;;
a848cd7e
SC
41346 * )
41347 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41348echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41349 { (exit 1); exit 1; }; }
41350 ;;
41351 esac
41352 fi
41353
41354
41355
41356
41357
41358
41359
41360
41361
1e9e8aba
DE
41362
41363
a848cd7e
SC
41364 # Check whether --enable-omf or --disable-omf was given.
41365if test "${enable_omf+set}" = set; then
41366 enableval="$enable_omf"
41367 bk_os2_use_omf="$enableval"
41368fi;
41369
41370 case "${BAKEFILE_HOST}" in
41371 *-*-darwin* )
41372 CFLAGS="$CFLAGS -fno-common"
41373 CXXFLAGS="$CXXFLAGS -fno-common"
41374 ;;
41375
41376 *-pc-os2_emx | *-pc-os2-emx )
41377 if test "x$bk_os2_use_omf" = "xyes" ; then
41378 AR=emxomfar
41379 RANLIB=:
41380 LDFLAGS="-Zomf $LDFLAGS"
41381 CFLAGS="-Zomf $CFLAGS"
41382 CXXFLAGS="-Zomf $CXXFLAGS"
41383 OS2_LIBEXT="lib"
41384 else
41385 OS2_LIBEXT="a"
41386 fi
41387 ;;
1e9e8aba
DE
41388
41389 i*86-*-beos* )
41390 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41391 ;;
a848cd7e
SC
41392 esac
41393
41394
41395 SO_SUFFIX="so"
41396 SO_SUFFIX_MODULE="so"
41397 EXEEXT=""
41398 LIBPREFIX="lib"
41399 LIBEXT=".a"
41400 DLLPREFIX="lib"
41401 DLLPREFIX_MODULE=""
41402 DLLIMP_SUFFIX=""
41403
41404 case "${BAKEFILE_HOST}" in
41405 *-hp-hpux* )
41406 SO_SUFFIX="sl"
41407 SO_SUFFIX_MODULE="sl"
41408 ;;
41409 *-*-aix* )
41410 SO_SUFFIX="a"
41411 SO_SUFFIX_MODULE="a"
41412 ;;
41413 *-*-cygwin* | *-*-mingw32* )
41414 SO_SUFFIX="dll"
41415 SO_SUFFIX_MODULE="dll"
41416 DLLIMP_SUFFIX="dll.a"
41417 EXEEXT=".exe"
41418 DLLPREFIX=""
41419 ;;
41420 *-pc-msdosdjgpp )
41421 EXEEXT=".exe"
41422 DLLPREFIX=""
41423 ;;
41424 *-pc-os2_emx | *-pc-os2-emx )
41425 SO_SUFFIX="dll"
41426 SO_SUFFIX_MODULE="dll"
41427 DLLIMP_SUFFIX=$OS2_LIBEXT
41428 EXEEXT=".exe"
41429 DLLPREFIX=""
41430 LIBPREFIX=""
41431 LIBEXT=".$OS2_LIBEXT"
41432 ;;
41433 powerpc-*-darwin* )
41434 SO_SUFFIX="dylib"
41435 SO_SUFFIX_MODULE="bundle"
41436 ;;
41437 esac
41438
41439 if test "x$DLLIMP_SUFFIX" = "x" ; then
41440 DLLIMP_SUFFIX="$SO_SUFFIX"
41441 fi
41442
41443
41444
41445
41446
41447
41448
41449
41450
41451
41452
1e9e8aba
DE
41453 PIC_FLAG=""
41454 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41455 PIC_FLAG="-fPIC"
41456 fi
41457
1e9e8aba
DE
41458 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41459 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41460
a848cd7e
SC
41461 case "${BAKEFILE_HOST}" in
41462 *-hp-hpux* )
1e9e8aba 41463 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41464 LDFLAGS="$LDFLAGS -L/usr/lib"
41465
41466 SHARED_LD_CC="${CC} -b -o"
41467 SHARED_LD_CXX="${CXX} -b -o"
41468 PIC_FLAG="+Z"
41469 fi
41470 ;;
41471
41472 *-*-linux* )
41473 if test "x$GCC" != "xyes"; then
41474 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41475echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41476if test "${bakefile_cv_prog_icc+set}" = set; then
41477 echo $ECHO_N "(cached) $ECHO_C" >&6
41478else
41479
41480 cat >conftest.$ac_ext <<_ACEOF
41481/* confdefs.h. */
41482_ACEOF
41483cat confdefs.h >>conftest.$ac_ext
41484cat >>conftest.$ac_ext <<_ACEOF
41485/* end confdefs.h. */
41486
41487int
41488main ()
41489{
41490
41491 #ifndef __INTEL_COMPILER
41492 #error Not icc
41493 #endif
41494
41495 ;
41496 return 0;
41497}
41498_ACEOF
41499rm -f conftest.$ac_objext
41500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41501 (eval $ac_compile) 2>conftest.er1
a848cd7e 41502 ac_status=$?
ac1cb8d3
VS
41503 grep -v '^ *+' conftest.er1 >conftest.err
41504 rm -f conftest.er1
41505 cat conftest.err >&5
a848cd7e
SC
41506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41507 (exit $ac_status); } &&
9dd0f6c2 41508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41510 (eval $ac_try) 2>&5
41511 ac_status=$?
41512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41513 (exit $ac_status); }; } &&
41514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41516 (eval $ac_try) 2>&5
41517 ac_status=$?
41518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519 (exit $ac_status); }; }; then
41520 bakefile_cv_prog_icc=yes
41521else
41522 echo "$as_me: failed program was:" >&5
41523sed 's/^/| /' conftest.$ac_ext >&5
41524
41525bakefile_cv_prog_icc=no
41526
41527fi
ac1cb8d3 41528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41529
41530fi
41531echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41532echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41533 if test "$bakefile_cv_prog_icc" = "yes"; then
41534 PIC_FLAG="-KPIC"
41535 fi
41536 fi
41537 ;;
41538
41539 *-*-solaris2* )
41540 if test "x$GCC" != xyes ; then
41541 SHARED_LD_CC="${CC} -G -o"
41542 SHARED_LD_CXX="${CXX} -G -o"
41543 PIC_FLAG="-KPIC"
41544 fi
41545 ;;
41546
41547 *-*-darwin* )
41548
41549 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41550echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41551if test "${wx_cv_gcc31+set}" = set; then
41552 echo $ECHO_N "(cached) $ECHO_C" >&6
41553else
41554
41555 cat >conftest.$ac_ext <<_ACEOF
41556/* confdefs.h. */
41557_ACEOF
41558cat confdefs.h >>conftest.$ac_ext
41559cat >>conftest.$ac_ext <<_ACEOF
41560/* end confdefs.h. */
41561
41562int
41563main ()
41564{
41565
41566 #if (__GNUC__ < 3) || \
41567 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41568 #error old gcc
41569 #endif
41570
41571 ;
41572 return 0;
41573}
41574_ACEOF
41575rm -f conftest.$ac_objext
41576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41577 (eval $ac_compile) 2>conftest.er1
a848cd7e 41578 ac_status=$?
ac1cb8d3
VS
41579 grep -v '^ *+' conftest.er1 >conftest.err
41580 rm -f conftest.er1
41581 cat conftest.err >&5
a848cd7e
SC
41582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41583 (exit $ac_status); } &&
9dd0f6c2 41584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41586 (eval $ac_try) 2>&5
41587 ac_status=$?
41588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41589 (exit $ac_status); }; } &&
41590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41592 (eval $ac_try) 2>&5
41593 ac_status=$?
41594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41595 (exit $ac_status); }; }; then
41596
41597 wx_cv_gcc31=yes
41598
41599else
41600 echo "$as_me: failed program was:" >&5
41601sed 's/^/| /' conftest.$ac_ext >&5
41602
41603
41604 wx_cv_gcc31=no
41605
41606
41607fi
ac1cb8d3 41608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41609
41610fi
41611echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41612echo "${ECHO_T}$wx_cv_gcc31" >&6
41613 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41614
41615D='$'
41616cat <<EOF >shared-ld-sh
a848cd7e
SC
41617#!/bin/sh
41618#-----------------------------------------------------------------------------
41619#-- Name: distrib/mac/shared-ld-sh
41620#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41621#-- Author: Gilles Depeyrot
41622#-- Copyright: (c) 2002 Gilles Depeyrot
41623#-- Licence: any use permitted
41624#-----------------------------------------------------------------------------
41625
41626verbose=0
41627args=""
41628objects=""
41629linking_flag="-dynamiclib"
41630
473276a9
VS
41631while test ${D}# -gt 0; do
41632 case ${D}1 in
a848cd7e
SC
41633
41634 -v)
41635 verbose=1
41636 ;;
41637
41638 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41639 # collect these options and values
473276a9 41640 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41641 shift
41642 ;;
41643
41644 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41645 # collect these options
473276a9 41646 args="${D}{args} ${D}1"
a848cd7e
SC
41647 ;;
41648
41649 -dynamiclib|-bundle)
473276a9 41650 linking_flag="${D}1"
a848cd7e
SC
41651 ;;
41652
41653 -*)
473276a9 41654 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41655 exit 1
41656 ;;
41657
41658 *.o | *.a | *.dylib)
41659 # collect object files
473276a9 41660 objects="${D}{objects} ${D}1"
a848cd7e
SC
41661 ;;
41662
41663 *)
473276a9 41664 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41665 exit 1
41666 ;;
41667
41668 esac
41669 shift
41670done
41671
41672#
41673# Link one module containing all the others
41674#
473276a9
VS
41675if test ${D}{verbose} = 1; then
41676 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41677fi
473276a9
VS
41678c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41679status=${D}?
41680if test ${D}{status} != 0; then
41681 exit ${D}{status}
a848cd7e
SC
41682fi
41683
41684#
41685# Link the shared library from the single module created
41686#
473276a9
VS
41687if test ${D}{verbose} = 1; then
41688 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41689fi
473276a9
VS
41690c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41691status=${D}?
41692if test ${D}{status} != 0; then
41693 exit ${D}{status}
a848cd7e
SC
41694fi
41695
41696#
41697# Remove intermediate module
41698#
473276a9 41699rm -f master.${D}${D}.o
a848cd7e
SC
41700
41701exit 0
41702EOF
473276a9 41703
a848cd7e
SC
41704 chmod +x shared-ld-sh
41705
41706 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41707 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41708 SHARED_LD_CXX="$SHARED_LD_CC"
41709 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41710 else
41711 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41712 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41713 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41714 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41715 fi
41716
41717 PIC_FLAG="-dynamic -fPIC"
41718 ;;
41719
41720 *-*-aix* )
41721 if test "x$GCC" != "xyes"; then
41722 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41723set dummy makeC++SharedLib; ac_word=$2
41724echo "$as_me:$LINENO: checking for $ac_word" >&5
41725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41726if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41727 echo $ECHO_N "(cached) $ECHO_C" >&6
41728else
41729 if test -n "$AIX_CXX_LD"; then
41730 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41731else
41732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41733for as_dir in $PATH
41734do
41735 IFS=$as_save_IFS
41736 test -z "$as_dir" && as_dir=.
41737 for ac_exec_ext in '' $ac_executable_extensions; do
41738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41739 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41741 break 2
41742 fi
41743done
41744done
41745
41746 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41747fi
41748fi
41749AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41750if test -n "$AIX_CXX_LD"; then
41751 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41752echo "${ECHO_T}$AIX_CXX_LD" >&6
41753else
41754 echo "$as_me:$LINENO: result: no" >&5
41755echo "${ECHO_T}no" >&6
41756fi
41757
41758 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41759 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41760 fi
41761 ;;
41762
41763 *-*-beos* )
1e9e8aba
DE
41764 SHARED_LD_CC="${LD} -nostart -o"
41765 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41766 ;;
41767
41768 *-*-irix* )
41769 if test "x$GCC" != "xyes"; then
41770 PIC_FLAG="-KPIC"
41771 fi
41772 ;;
41773
41774 *-*-cygwin* | *-*-mingw32* )
41775 PIC_FLAG=""
1e9e8aba
DE
41776 SHARED_LD_CC="\$(CC) -shared -o"
41777 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41778 ;;
41779
41780 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41781 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41782 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41783 PIC_FLAG=""
473276a9
VS
41784
41785D='$'
41786cat <<EOF >dllar.sh
41787#!/bin/sh
41788#
41789# dllar - a tool to build both a .dll and an .a file
41790# from a set of object (.o) files for EMX/OS2.
41791#
41792# Written by Andrew Zabolotny, bit@freya.etu.ru
41793# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41794#
41795# This script will accept a set of files on the command line.
41796# All the public symbols from the .o files will be exported into
41797# a .DEF file, then linker will be run (through gcc) against them to
41798# build a shared library consisting of all given .o files. All libraries
41799# (.a) will be first decompressed into component .o files then act as
41800# described above. You can optionally give a description (-d "description")
41801# which will be put into .DLL. To see the list of accepted options (as well
41802# as command-line format) simply run this program without options. The .DLL
41803# is built to be imported by name (there is no guarantee that new versions
41804# of the library you build will have same ordinals for same symbols).
41805#
41806# dllar is free software; you can redistribute it and/or modify
41807# it under the terms of the GNU General Public License as published by
41808# the Free Software Foundation; either version 2, or (at your option)
41809# any later version.
41810#
41811# dllar is distributed in the hope that it will be useful,
41812# but WITHOUT ANY WARRANTY; without even the implied warranty of
41813# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41814# GNU General Public License for more details.
41815#
41816# You should have received a copy of the GNU General Public License
41817# along with dllar; see the file COPYING. If not, write to the Free
41818# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41819# 02111-1307, USA.
41820
41821# To successfuly run this program you will need:
41822# - Current drive should have LFN support (HPFS, ext2, network, etc)
41823# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41824# - gcc
41825# (used to build the .dll)
41826# - emxexp
41827# (used to create .def file from .o files)
41828# - emximp
41829# (used to create .a file from .def file)
41830# - GNU text utilites (cat, sort, uniq)
41831# used to process emxexp output
41832# - GNU file utilities (mv, rm)
41833# - GNU sed
41834# - lxlite (optional, see flag below)
41835# (used for general .dll cleanup)
41836#
41837
41838flag_USE_LXLITE=1;
41839
41840#
41841# helper functions
41842# basnam, variant of basename, which does _not_ remove the path, _iff_
41843# second argument (suffix to remove) is given
41844basnam(){
41845 case ${D}# in
41846 1)
1e9e8aba 41847 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41848 ;;
41849 2)
41850 echo ${D}1 | sed 's/'${D}2'${D}//'
41851 ;;
41852 *)
41853 echo "error in basnam ${D}*"
41854 exit 8
41855 ;;
41856 esac
41857}
41858
41859# Cleanup temporary files and output
41860CleanUp() {
41861 cd ${D}curDir
41862 for i in ${D}inputFiles ; do
41863 case ${D}i in
41864 *!)
41865 rm -rf \`basnam ${D}i !\`
41866 ;;
41867 *)
41868 ;;
41869 esac
41870 done
41871
41872 # Kill result in case of failure as there is just to many stupid make/nmake
41873 # things out there which doesn't do this.
1e9e8aba 41874 if [ ${D}# -eq 0 ]; then
473276a9
VS
41875 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41876 fi
41877}
41878
41879# Print usage and exit script with rc=1.
41880PrintHelp() {
b1d22ded
DE
41881 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41882 echo ' [-name-mangler-script script.sh]'
41883 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41884 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41885 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41886 echo ' [*.o] [*.a]'
473276a9
VS
41887 echo '*> "output_file" should have no extension.'
41888 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41889 echo ' The import library name is derived from this and is set to "name".a,'
41890 echo ' unless overridden by -import'
41891 echo '*> "importlib_name" should have no extension.'
41892 echo ' If it has the .o, or .a extension, it is automatically removed.'
41893 echo ' This name is used as the import library name and may be longer and'
41894 echo ' more descriptive than the DLL name which has to follow the old '
41895 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41896 echo '*> "script.sh may be given to override the output_file name by a'
41897 echo ' different name. It is mainly useful if the regular make process'
41898 echo ' of some package does not take into account OS/2 restriction of'
41899 echo ' DLL name lengths. It takes the importlib name as input and is'
41900 echo ' supposed to procude a shorter name as output. The script should'
41901 echo ' expect to get importlib_name without extension and should produce'
41902 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41903 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41904 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41905 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41906 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41907 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41908 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41909 echo ' If the last character of a symbol is "*", all symbols beginning'
41910 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41911 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41912 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41913 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41914 echo ' C runtime DLLs.'
b1d22ded 41915 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41916 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41917 echo ' unchanged to GCC at the end of command line.'
41918 echo '*> If you create a DLL from a library and you do not specify -o,'
41919 echo ' the basename for DLL and import library will be set to library name,'
41920 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41921 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41922 echo ' library will be renamed into gcc_s.a.'
41923 echo '--------'
41924 echo 'Example:'
41925 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41926 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41927 CleanUp
41928 exit 1
41929}
41930
41931# Execute a command.
41932# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41933# @Uses Whatever CleanUp() uses.
41934doCommand() {
41935 echo "${D}*"
41936 eval ${D}*
41937 rcCmd=${D}?
41938
1e9e8aba 41939 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41940 echo "command failed, exit code="${D}rcCmd
41941 CleanUp
41942 exit ${D}rcCmd
41943 fi
41944}
41945
41946# main routine
41947# setup globals
41948cmdLine=${D}*
41949outFile=""
41950outimpFile=""
41951inputFiles=""
b1d22ded 41952renameScript=""
473276a9
VS
41953description=""
41954CC=gcc.exe
41955CFLAGS="-s -Zcrtdll"
41956EXTRA_CFLAGS=""
41957EXPORT_BY_ORDINALS=0
41958exclude_symbols=""
41959library_flags=""
41960curDir=\`pwd\`
41961curDirS=curDir
41962case ${D}curDirS in
41963*/)
41964 ;;
41965*)
41966 curDirS=${D}{curDirS}"/"
41967 ;;
41968esac
41969# Parse commandline
41970libsToLink=0
b1d22ded 41971omfLinking=0
1e9e8aba 41972while [ ${D}1 ]; do
473276a9
VS
41973 case ${D}1 in
41974 -ord*)
41975 EXPORT_BY_ORDINALS=1;
41976 ;;
41977 -o*)
41978 shift
41979 outFile=${D}1
41980 ;;
41981 -i*)
41982 shift
41983 outimpFile=${D}1
41984 ;;
b1d22ded
DE
41985 -name-mangler-script)
41986 shift
41987 renameScript=${D}1
41988 ;;
473276a9
VS
41989 -d*)
41990 shift
41991 description=${D}1
41992 ;;
41993 -f*)
41994 shift
41995 CFLAGS=${D}1
41996 ;;
41997 -c*)
41998 shift
41999 CC=${D}1
42000 ;;
42001 -h*)
42002 PrintHelp
42003 ;;
42004 -ex*)
42005 shift
42006 exclude_symbols=${D}{exclude_symbols}${D}1" "
42007 ;;
42008 -libf*)
42009 shift
42010 library_flags=${D}{library_flags}${D}1" "
42011 ;;
42012 -nocrt*)
42013 CFLAGS="-s"
42014 ;;
42015 -nolxl*)
42016 flag_USE_LXLITE=0
42017 ;;
42018 -* | /*)
42019 case ${D}1 in
42020 -L* | -l*)
42021 libsToLink=1
42022 ;;
b1d22ded
DE
42023 -Zomf)
42024 omfLinking=1
42025 ;;
473276a9
VS
42026 *)
42027 ;;
42028 esac
42029 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42030 ;;
b1d22ded
DE
42031 *.dll)
42032 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42033 if [ ${D}omfLinking -eq 1 ]; then
42034 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42035 else
42036 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42037 fi
42038 ;;
473276a9
VS
42039 *)
42040 found=0;
1e9e8aba 42041 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
42042 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42043 else
42044 for file in ${D}1 ; do
1e9e8aba 42045 if [ -f ${D}file ]; then
473276a9
VS
42046 inputFiles="${D}{inputFiles} ${D}file"
42047 found=1
42048 fi
42049 done
1e9e8aba 42050 if [ ${D}found -eq 0 ]; then
473276a9
VS
42051 echo "ERROR: No file(s) found: "${D}1
42052 exit 8
42053 fi
42054 fi
42055 ;;
42056 esac
42057 shift
42058done # iterate cmdline words
42059
42060#
1e9e8aba 42061if [ -z "${D}inputFiles" ]; then
473276a9
VS
42062 echo "dllar: no input files"
42063 PrintHelp
42064fi
42065
42066# Now extract all .o files from .a files
42067newInputFiles=""
42068for file in ${D}inputFiles ; do
42069 case ${D}file in
42070 *.a | *.lib)
42071 case ${D}file in
42072 *.a)
42073 suffix=".a"
42074 AR="ar"
42075 ;;
42076 *.lib)
42077 suffix=".lib"
42078 AR="emxomfar"
42079 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42080 ;;
42081 *)
42082 ;;
42083 esac
42084 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42085 mkdir ${D}dirname
1e9e8aba 42086 if [ ${D}? -ne 0 ]; then
473276a9
VS
42087 echo "Failed to create subdirectory ./${D}dirname"
42088 CleanUp
42089 exit 8;
42090 fi
42091 # Append '!' to indicate archive
42092 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42093 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42094 cd ${D}curDir
42095 found=0;
42096 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42097 if [ -f ${D}subfile ]; then
473276a9 42098 found=1
1e9e8aba 42099 if [ -s ${D}subfile ]; then
473276a9
VS
42100 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42101 newInputFiles="${D}newInputFiles ${D}subfile"
42102 fi
42103 fi
42104 done
1e9e8aba
DE
42105 if [ ${D}found -eq 0 ]; then
42106 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42107 fi
42108 ;;
42109 *)
42110 newInputFiles="${D}{newInputFiles} ${D}file"
42111 ;;
42112 esac
42113done
42114inputFiles="${D}newInputFiles"
42115
42116# Output filename(s).
42117do_backup=0;
1e9e8aba 42118if [ -z ${D}outFile ]; then
473276a9
VS
42119 do_backup=1;
42120 set outFile ${D}inputFiles; outFile=${D}2
42121fi
42122
42123# If it is an archive, remove the '!' and the '_%' suffixes
42124case ${D}outFile in
42125*_%!)
42126 outFile=\`basnam ${D}outFile _%!\`
42127 ;;
42128*)
42129 ;;
42130esac
42131case ${D}outFile in
42132*.dll)
42133 outFile=\`basnam ${D}outFile .dll\`
42134 ;;
42135*.DLL)
42136 outFile=\`basnam ${D}outFile .DLL\`
42137 ;;
42138*.o)
42139 outFile=\`basnam ${D}outFile .o\`
42140 ;;
42141*.obj)
42142 outFile=\`basnam ${D}outFile .obj\`
42143 ;;
42144*.a)
42145 outFile=\`basnam ${D}outFile .a\`
42146 ;;
42147*.lib)
42148 outFile=\`basnam ${D}outFile .lib\`
42149 ;;
42150*)
42151 ;;
42152esac
42153case ${D}outimpFile in
42154*.a)
42155 outimpFile=\`basnam ${D}outimpFile .a\`
42156 ;;
42157*.lib)
42158 outimpFile=\`basnam ${D}outimpFile .lib\`
42159 ;;
42160*)
42161 ;;
42162esac
1e9e8aba 42163if [ -z ${D}outimpFile ]; then
473276a9
VS
42164 outimpFile=${D}outFile
42165fi
42166defFile="${D}{outFile}.def"
42167arcFile="${D}{outimpFile}.a"
42168arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
42169
42170#create ${D}dllFile as something matching 8.3 restrictions,
42171if [ -z ${D}renameScript ] ; then
42172 dllFile="${D}outFile"
42173else
42174 dllFile=\`${D}renameScript ${D}outimpFile\`
42175fi
473276a9 42176
1e9e8aba
DE
42177if [ ${D}do_backup -ne 0 ] ; then
42178 if [ -f ${D}arcFile ] ; then
473276a9
VS
42179 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42180 fi
1e9e8aba 42181 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
42182 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42183 fi
42184fi
42185
42186# Extract public symbols from all the object files.
42187tmpdefFile=${D}{defFile}_%
42188rm -f ${D}tmpdefFile
42189for file in ${D}inputFiles ; do
42190 case ${D}file in
42191 *!)
42192 ;;
42193 *)
42194 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42195 ;;
42196 esac
42197done
42198
42199# Create the def file.
42200rm -f ${D}defFile
42201echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
42202dllFile="${D}{dllFile}.dll"
42203if [ ! -z ${D}description ]; then
1e9e8aba 42204 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
42205fi
42206echo "EXPORTS" >> ${D}defFile
42207
42208doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42209grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42210
42211# Checks if the export is ok or not.
42212for word in ${D}exclude_symbols; do
42213 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42214 mv ${D}{tmpdefFile}% ${D}tmpdefFile
42215done
42216
42217
1e9e8aba
DE
42218if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42219 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
42220 sed '
42221 N
42222 : loop
1e9e8aba 42223 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
42224 t loop
42225 ' > ${D}{tmpdefFile}%
42226 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42227else
42228 rm -f ${D}{tmpdefFile}%
42229fi
42230cat ${D}tmpdefFile >> ${D}defFile
42231rm -f ${D}tmpdefFile
42232
42233# Do linking, create implib, and apply lxlite.
42234gccCmdl="";
42235for file in ${D}inputFiles ; do
42236 case ${D}file in
42237 *!)
42238 ;;
42239 *)
42240 gccCmdl="${D}gccCmdl ${D}file"
42241 ;;
42242 esac
42243done
42244doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42245touch "${D}{outFile}.dll"
42246
42247doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 42248if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 42249 add_flags="";
1e9e8aba 42250 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
42251 add_flags="-ynd"
42252 fi
42253 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42254fi
42255doCommand "emxomf -s -l ${D}arcFile"
42256
42257# Successful exit.
42258CleanUp 1
42259exit 0
42260EOF
42261
42262 chmod +x dllar.sh
a848cd7e
SC
42263 ;;
42264
1e9e8aba 42265 powerpc-apple-macos* | \
a848cd7e
SC
42266 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42267 *-*-sunos4* | \
42268 *-*-osf* | \
42269 *-*-dgux5* | \
47a7e797
MW
42270 *-*-sysv5* | \
42271 *-pc-msdosdjgpp )
a848cd7e
SC
42272 ;;
42273
42274 *)
42275 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42276echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42277 { (exit 1); exit 1; }; }
42278 esac
42279
2057db16
VS
42280 if test "x$PIC_FLAG" != "x" ; then
42281 PIC_FLAG="$PIC_FLAG -DPIC"
42282 fi
42283
a848cd7e
SC
42284 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42285 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42286 fi
42287 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42288 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42289 fi
42290
42291
42292
42293
42294
42295
42296
42297
42298 USE_SOVERSION=0
42299 USE_SOVERLINUX=0
42300 USE_SOVERSOLARIS=0
42301 USE_SOSYMLINKS=0
42302 USE_MACVERSION=0
42303 SONAME_FLAG=
42304
42305 case "${BAKEFILE_HOST}" in
b1d22ded 42306 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42307 SONAME_FLAG="-Wl,-soname,"
42308 USE_SOVERSION=1
42309 USE_SOVERLINUX=1
42310 USE_SOSYMLINKS=1
42311 ;;
42312
a848cd7e
SC
42313 *-*-solaris2* )
42314 SONAME_FLAG="-h "
42315 USE_SOVERSION=1
42316 USE_SOVERSOLARIS=1
42317 USE_SOSYMLINKS=1
42318 ;;
42319
42320 *-*-darwin* )
42321 USE_MACVERSION=1
42322 USE_SOVERSION=1
42323 USE_SOSYMLINKS=1
42324 ;;
42325 esac
42326
42327
42328
42329
42330
42331
42332
42333
42334
42335 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42336echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42337 DEPS_TRACKING=0
42338
42339 if test "x$GCC" = "xyes"; then
42340 DEPSMODE=gcc
42341 DEPS_TRACKING=1
42342 case "${BAKEFILE_HOST}" in
42343 powerpc-*-darwin* )
42344 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42345 ;;
42346 * )
42347 DEPSFLAG_GCC="-MMD"
42348 ;;
42349 esac
42350 echo "$as_me:$LINENO: result: gcc" >&5
42351echo "${ECHO_T}gcc" >&6
b1d22ded 42352 elif test "x$MWCC" = "xyes"; then
81f90336 42353 DEPSMODE=mwcc
b1d22ded 42354 DEPS_TRACKING=1
81f90336 42355 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42356 echo "$as_me:$LINENO: result: mwcc" >&5
42357echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42358 else
42359 echo "$as_me:$LINENO: result: none" >&5
42360echo "${ECHO_T}none" >&6
42361 fi
42362
42363 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42364
42365D='$'
42366cat <<EOF >bk-deps
a848cd7e
SC
42367#!/bin/sh
42368
42369# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42370# script. It is used to track C/C++ files dependencies in portable way.
42371#
42372# Permission is given to use this file in any way.
42373
473276a9 42374DEPSMODE=${DEPSMODE}
a848cd7e 42375DEPSDIR=.deps
473276a9 42376DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42377DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42378
473276a9 42379mkdir -p ${D}DEPSDIR
a848cd7e 42380
473276a9
VS
42381if test ${D}DEPSMODE = gcc ; then
42382 ${D}* ${D}{DEPSFLAG_GCC}
42383 status=${D}?
42384 if test ${D}{status} != 0 ; then
42385 exit ${D}{status}
a848cd7e
SC
42386 fi
42387 # move created file to the location we want it in:
473276a9
VS
42388 while test ${D}# -gt 0; do
42389 case "${D}1" in
a848cd7e
SC
42390 -o )
42391 shift
473276a9 42392 objfile=${D}1
a848cd7e
SC
42393 ;;
42394 -* )
42395 ;;
42396 * )
473276a9 42397 srcfile=${D}1
a848cd7e
SC
42398 ;;
42399 esac
42400 shift
42401 done
1e9e8aba
DE
42402 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42403 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42404 if test -f ${D}depfile ; then
42405 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42406 rm -f ${D}depfile
a848cd7e 42407 else
1e9e8aba 42408 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42409 if test -f ${D}depfile ; then
42410 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42411 rm -f ${D}depfile
a848cd7e
SC
42412 fi
42413 fi
42414 exit 0
81f90336
MW
42415elif test ${D}DEPSMODE = mwcc ; then
42416 ${D}*
42417 status=${D}?
42418 if test ${D}{status} != 0 ; then
42419 exit ${D}{status}
42420 fi
42421 # Run mwcc again with -MM and redirect into the dep file we want
42422 # NOTE: We can't use shift here because we need ${D}* to be valid
42423 prevarg=
42424 for arg in ${D}* ; do
42425 if test "${D}prevarg" = "-o"; then
42426 objfile=${D}arg
42427 else
42428 case "${D}arg" in
42429 -* )
42430 ;;
42431 * )
42432 srcfile=${D}arg
42433 ;;
42434 esac
42435 fi
42436 prevarg="${D}arg"
42437 done
42438 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42439 exit 0
a848cd7e 42440else
473276a9
VS
42441 ${D}*
42442 exit ${D}?
a848cd7e
SC
42443fi
42444EOF
473276a9 42445
a848cd7e
SC
42446 chmod +x bk-deps
42447 fi
42448
42449
42450
42451
42452 RESCOMP=
42453 SETFILE=
42454
42455 case ${BAKEFILE_HOST} in
42456 *-*-cygwin* | *-*-mingw32* )
42457 if test "$build" != "$host" ; then
42458 RESCOMP=$host_alias-windres
42459 else
42460 # Extract the first word of "windres", so it can be a program name with args.
42461set dummy windres; ac_word=$2
42462echo "$as_me:$LINENO: checking for $ac_word" >&5
42463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42464if test "${ac_cv_prog_RESCOMP+set}" = set; then
42465 echo $ECHO_N "(cached) $ECHO_C" >&6
42466else
42467 if test -n "$RESCOMP"; then
42468 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42469else
42470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42471for as_dir in $PATH
42472do
42473 IFS=$as_save_IFS
42474 test -z "$as_dir" && as_dir=.
42475 for ac_exec_ext in '' $ac_executable_extensions; do
42476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42477 ac_cv_prog_RESCOMP="windres"
42478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42479 break 2
42480 fi
42481done
42482done
42483
42484 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42485fi
42486fi
42487RESCOMP=$ac_cv_prog_RESCOMP
42488if test -n "$RESCOMP"; then
42489 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42490echo "${ECHO_T}$RESCOMP" >&6
42491else
42492 echo "$as_me:$LINENO: result: no" >&5
42493echo "${ECHO_T}no" >&6
42494fi
42495
42496 fi
42497 ;;
42498
1e9e8aba 42499 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42500 # Extract the first word of "Rez", so it can be a program name with args.
42501set dummy Rez; ac_word=$2
42502echo "$as_me:$LINENO: checking for $ac_word" >&5
42503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42504if test "${ac_cv_prog_RESCOMP+set}" = set; then
42505 echo $ECHO_N "(cached) $ECHO_C" >&6
42506else
42507 if test -n "$RESCOMP"; then
42508 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42509else
42510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42511for as_dir in $PATH
42512do
42513 IFS=$as_save_IFS
42514 test -z "$as_dir" && as_dir=.
42515 for ac_exec_ext in '' $ac_executable_extensions; do
42516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42517 ac_cv_prog_RESCOMP="Rez"
42518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42519 break 2
42520 fi
42521done
42522done
42523
42524 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42525fi
42526fi
42527RESCOMP=$ac_cv_prog_RESCOMP
42528if test -n "$RESCOMP"; then
42529 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42530echo "${ECHO_T}$RESCOMP" >&6
42531else
42532 echo "$as_me:$LINENO: result: no" >&5
42533echo "${ECHO_T}no" >&6
42534fi
42535
42536 # Extract the first word of "SetFile", so it can be a program name with args.
42537set dummy SetFile; ac_word=$2
42538echo "$as_me:$LINENO: checking for $ac_word" >&5
42539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42540if test "${ac_cv_prog_SETFILE+set}" = set; then
42541 echo $ECHO_N "(cached) $ECHO_C" >&6
42542else
42543 if test -n "$SETFILE"; then
42544 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42545else
42546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42547for as_dir in $PATH
42548do
42549 IFS=$as_save_IFS
42550 test -z "$as_dir" && as_dir=.
42551 for ac_exec_ext in '' $ac_executable_extensions; do
42552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42553 ac_cv_prog_SETFILE="SetFile"
42554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42555 break 2
42556 fi
42557done
42558done
42559
42560 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42561fi
42562fi
42563SETFILE=$ac_cv_prog_SETFILE
42564if test -n "$SETFILE"; then
42565 echo "$as_me:$LINENO: result: $SETFILE" >&5
42566echo "${ECHO_T}$SETFILE" >&6
42567else
42568 echo "$as_me:$LINENO: result: no" >&5
42569echo "${ECHO_T}no" >&6
42570fi
42571
42572 ;;
42573 esac
42574
42575
42576
42577
42578
fbb7dfff 42579 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 42580
dcc1b6ad 42581
fbb7dfff 42582BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 42583
646b6ec1 42584
74b84332 42585
a848cd7e
SC
42586 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42587if test "${enable_precomp_headers+set}" = set; then
42588 enableval="$enable_precomp_headers"
42589 bk_use_pch="$enableval"
42590fi;
42591
42592 GCC_PCH=0
42593
42594 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42595 if test "x$GCC" = "xyes"; then
42596 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42597echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42598 cat >conftest.$ac_ext <<_ACEOF
42599/* confdefs.h. */
42600_ACEOF
42601cat confdefs.h >>conftest.$ac_ext
42602cat >>conftest.$ac_ext <<_ACEOF
42603/* end confdefs.h. */
42604
42605int
42606main ()
42607{
42608
42609 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42610 #error "no pch support"
42611 #endif
42612 #if (__GNUC__ < 3)
42613 #error "no pch support"
42614 #endif
42615 #if (__GNUC__ == 3) && \
42616 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42617 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42618 #error "no pch support"
42619 #endif
42620
42621 ;
42622 return 0;
42623}
42624_ACEOF
42625rm -f conftest.$ac_objext
42626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42627 (eval $ac_compile) 2>conftest.er1
a848cd7e 42628 ac_status=$?
ac1cb8d3
VS
42629 grep -v '^ *+' conftest.er1 >conftest.err
42630 rm -f conftest.er1
42631 cat conftest.err >&5
a848cd7e
SC
42632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42633 (exit $ac_status); } &&
9dd0f6c2 42634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42636 (eval $ac_try) 2>&5
42637 ac_status=$?
42638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42639 (exit $ac_status); }; } &&
42640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42642 (eval $ac_try) 2>&5
42643 ac_status=$?
42644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42645 (exit $ac_status); }; }; then
42646
42647 echo "$as_me:$LINENO: result: yes" >&5
42648echo "${ECHO_T}yes" >&6
a848cd7e
SC
42649 GCC_PCH=1
42650
42651else
42652 echo "$as_me: failed program was:" >&5
42653sed 's/^/| /' conftest.$ac_ext >&5
42654
42655
42656 echo "$as_me:$LINENO: result: no" >&5
42657echo "${ECHO_T}no" >&6
42658
42659fi
ac1cb8d3 42660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42661 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42662
42663D='$'
42664cat <<EOF >bk-make-pch
a848cd7e
SC
42665#!/bin/sh
42666
42667# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42668# script. It is used to generated precompiled headers.
42669#
42670# Permission is given to use this file in any way.
42671
1e9e8aba
DE
42672outfile="${D}{1}"
42673header="${D}{2}"
a848cd7e
SC
42674shift
42675shift
42676
42677compiler=
42678headerfile=
1e9e8aba
DE
42679while test ${D}{#} -gt 0; do
42680 case "${D}{1}" in
a848cd7e 42681 -I* )
1e9e8aba
DE
42682 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42683 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42684 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42685 fi
42686 ;;
42687 esac
1e9e8aba 42688 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42689 shift
42690done
42691
1e9e8aba
DE
42692if test "x${D}{headerfile}" = "x" ; then
42693 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42694else
1e9e8aba
DE
42695 if test -f ${D}{outfile} ; then
42696 rm -f ${D}{outfile}
a848cd7e 42697 else
1e9e8aba 42698 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42699 fi
1e9e8aba 42700 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42701 mkdir -p .deps
42702 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42703 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42704 exit ${D}{?}
a848cd7e
SC
42705fi
42706EOF
1e9e8aba 42707
a848cd7e
SC
42708 chmod +x bk-make-pch
42709 fi
42710 fi
42711 fi
42712
42713
42714
a848cd7e
SC
42715 COND_BUILD_DEBUG="#"
42716 if test "x$BUILD" = "xdebug" ; then
42717 COND_BUILD_DEBUG=""
42718 fi
42719
42720 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42721 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42722 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42723 fi
42724
42725 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42726 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42727 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42728 fi
42729
42730 COND_BUILD_DEBUG_UNICODE_0="#"
42731 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42732 COND_BUILD_DEBUG_UNICODE_0=""
42733 fi
42734
42735 COND_BUILD_DEBUG_UNICODE_1="#"
42736 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42737 COND_BUILD_DEBUG_UNICODE_1=""
42738 fi
42739
42740 COND_BUILD_RELEASE="#"
42741 if test "x$BUILD" = "xrelease" ; then
42742 COND_BUILD_RELEASE=""
42743 fi
42744
42745 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42746 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42747 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42748 fi
42749
42750 COND_BUILD_RELEASE_UNICODE_0="#"
42751 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42752 COND_BUILD_RELEASE_UNICODE_0=""
42753 fi
42754
42755 COND_BUILD_RELEASE_UNICODE_1="#"
42756 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42757 COND_BUILD_RELEASE_UNICODE_1=""
42758 fi
42759
42760 COND_DEBUG_FLAG_1="#"
42761 if test "x$DEBUG_FLAG" = "x1" ; then
42762 COND_DEBUG_FLAG_1=""
42763 fi
42764
42765 COND_DEBUG_INFO_0="#"
42766 if test "x$DEBUG_INFO" = "x0" ; then
42767 COND_DEBUG_INFO_0=""
42768 fi
42769
42770 COND_DEBUG_INFO_1="#"
42771 if test "x$DEBUG_INFO" = "x1" ; then
42772 COND_DEBUG_INFO_1=""
42773 fi
42774
42775 COND_DEPS_TRACKING_0="#"
42776 if test "x$DEPS_TRACKING" = "x0" ; then
42777 COND_DEPS_TRACKING_0=""
42778 fi
42779
42780 COND_DEPS_TRACKING_1="#"
42781 if test "x$DEPS_TRACKING" = "x1" ; then
42782 COND_DEPS_TRACKING_1=""
42783 fi
42784
42785 COND_GCC_PCH_1="#"
42786 if test "x$GCC_PCH" = "x1" ; then
42787 COND_GCC_PCH_1=""
42788 fi
42789
42790 COND_MONOLITHIC_0="#"
42791 if test "x$MONOLITHIC" = "x0" ; then
42792 COND_MONOLITHIC_0=""
42793 fi
42794
42795 COND_MONOLITHIC_0_SHARED_0="#"
42796 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42797 COND_MONOLITHIC_0_SHARED_0=""
42798 fi
42799
42800 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42801 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42802 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42803 fi
42804
90970d69
DE
42805 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42806 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42807 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42808 fi
42809
a848cd7e
SC
42810 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42811 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42812 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42813 fi
42814
6671c68b
VZ
42815 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42816 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42817 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42818 fi
42819
a848cd7e
SC
42820 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42821 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42822 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42823 fi
42824
ceec2216
RL
42825 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42826 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42827 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42828 fi
42829
a848cd7e
SC
42830 COND_MONOLITHIC_0_SHARED_1="#"
42831 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42832 COND_MONOLITHIC_0_SHARED_1=""
42833 fi
42834
42835 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42836 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42837 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42838 fi
42839
90970d69
DE
42840 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42841 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42843 fi
42844
a848cd7e
SC
42845 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42846 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42847 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42848 fi
42849
6671c68b
VZ
42850 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
42851 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42852 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
42853 fi
42854
a848cd7e
SC
42855 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42856 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42857 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42858 fi
42859
ceec2216
RL
42860 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42861 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42862 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42863 fi
42864
a848cd7e
SC
42865 COND_MONOLITHIC_0_USE_ODBC_1="#"
42866 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42867 COND_MONOLITHIC_0_USE_ODBC_1=""
42868 fi
42869
42870 COND_MONOLITHIC_1="#"
42871 if test "x$MONOLITHIC" = "x1" ; then
42872 COND_MONOLITHIC_1=""
42873 fi
42874
42875 COND_MONOLITHIC_1_SHARED_0="#"
42876 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42877 COND_MONOLITHIC_1_SHARED_0=""
42878 fi
42879
42880 COND_MONOLITHIC_1_SHARED_1="#"
42881 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42882 COND_MONOLITHIC_1_SHARED_1=""
42883 fi
42884
42885 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42886 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42887 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42888 fi
42889
42890 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42891 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42892 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42893 fi
42894
42895 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42896 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42897 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42898 fi
42899
42900 COND_PLATFORM_MACOSX_1="#"
42901 if test "x$PLATFORM_MACOSX" = "x1" ; then
42902 COND_PLATFORM_MACOSX_1=""
42903 fi
42904
a30f955f
VS
42905 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42906 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42907 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42908 fi
42909
a848cd7e
SC
42910 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42911 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42912 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42913 fi
42914
42915 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42916 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42917 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42918 fi
42919
42920 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42921 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42922 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42923 fi
42924
fc480dc1
DE
42925 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42926 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42927 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42928 fi
42929
1e9e8aba
DE
42930 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42931 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42932 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42933 fi
42934
ebee3cd0
VS
42935 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42936 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42937 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42938 fi
42939
42940 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42941 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42942 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42943 fi
42944
a848cd7e
SC
42945 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42946 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42947 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42948 fi
42949
42950 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42951 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42952 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42953 fi
42954
b48a2016
DE
42955 COND_PLATFORM_MACOS_1="#"
42956 if test "x$PLATFORM_MACOS" = "x1" ; then
42957 COND_PLATFORM_MACOS_1=""
42958 fi
42959
a848cd7e
SC
42960 COND_PLATFORM_MAC_1="#"
42961 if test "x$PLATFORM_MAC" = "x1" ; then
42962 COND_PLATFORM_MAC_1=""
42963 fi
42964
42965 COND_PLATFORM_OS2_1="#"
42966 if test "x$PLATFORM_OS2" = "x1" ; then
42967 COND_PLATFORM_OS2_1=""
42968 fi
42969
42970 COND_PLATFORM_UNIX_0="#"
42971 if test "x$PLATFORM_UNIX" = "x0" ; then
42972 COND_PLATFORM_UNIX_0=""
42973 fi
42974
42975 COND_PLATFORM_UNIX_1="#"
42976 if test "x$PLATFORM_UNIX" = "x1" ; then
42977 COND_PLATFORM_UNIX_1=""
42978 fi
42979
42980 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42981 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42982 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42983 fi
42984
42985 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42986 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42987 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42988 fi
42989
42990 COND_PLATFORM_WIN32_0="#"
42991 if test "x$PLATFORM_WIN32" = "x0" ; then
42992 COND_PLATFORM_WIN32_0=""
42993 fi
42994
42995 COND_PLATFORM_WIN32_1="#"
42996 if test "x$PLATFORM_WIN32" = "x1" ; then
42997 COND_PLATFORM_WIN32_1=""
42998 fi
42999
43000 COND_SHARED_0="#"
43001 if test "x$SHARED" = "x0" ; then
43002 COND_SHARED_0=""
43003 fi
43004
ceec2216
RL
43005 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
43006 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
43007 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
43008 fi
43009
43010 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
43011 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43012 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43013 fi
43014
43015 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43016 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
43017 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
43018 fi
43019
a848cd7e
SC
43020 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
43021 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43022 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
43023 fi
43024
43025 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43026 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43027 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43028 fi
43029
43030 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43031 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43032 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43033 fi
43034
43035 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43036 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43037 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43038 fi
43039
52ada004
RL
43040 COND_SHARED_0_USE_XRC_1="#"
43041 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43042 COND_SHARED_0_USE_XRC_1=""
43043 fi
43044
a848cd7e
SC
43045 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
43046 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
43047 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
43048 fi
43049
43050 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
43051 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
43052 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
43053 fi
43054
43055 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
43056 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
43057 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
43058 fi
43059
43060 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
43061 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
43062 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
43063 fi
43064
43065 COND_SHARED_1="#"
43066 if test "x$SHARED" = "x1" ; then
43067 COND_SHARED_1=""
43068 fi
43069
43070 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43071 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43072 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43073 fi
43074
52ada004
RL
43075 COND_SHARED_1_USE_XRC_1="#"
43076 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43077 COND_SHARED_1_USE_XRC_1=""
43078 fi
43079
a30f955f
VS
43080 COND_TOOLKIT_="#"
43081 if test "x$TOOLKIT" = "x" ; then
43082 COND_TOOLKIT_=""
43083 fi
43084
a848cd7e
SC
43085 COND_TOOLKIT_COCOA="#"
43086 if test "x$TOOLKIT" = "xCOCOA" ; then
43087 COND_TOOLKIT_COCOA=""
43088 fi
43089
a49baeab
DE
43090 COND_TOOLKIT_COCOA_USE_GUI_1="#"
43091 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43092 COND_TOOLKIT_COCOA_USE_GUI_1=""
43093 fi
43094
a848cd7e
SC
43095 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43096 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43097 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43098 fi
43099
43100 COND_TOOLKIT_GTK="#"
43101 if test "x$TOOLKIT" = "xGTK" ; then
43102 COND_TOOLKIT_GTK=""
43103 fi
43104
43105 COND_TOOLKIT_GTK_USE_GUI_1="#"
43106 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43107 COND_TOOLKIT_GTK_USE_GUI_1=""
43108 fi
43109
43110 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43111 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43112 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43113 fi
43114
43115 COND_TOOLKIT_MAC="#"
43116 if test "x$TOOLKIT" = "xMAC" ; then
43117 COND_TOOLKIT_MAC=""
43118 fi
43119
43120 COND_TOOLKIT_MAC_USE_GUI_1="#"
43121 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43122 COND_TOOLKIT_MAC_USE_GUI_1=""
43123 fi
43124
43125 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43126 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43127 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43128 fi
43129
43130 COND_TOOLKIT_MGL="#"
43131 if test "x$TOOLKIT" = "xMGL" ; then
43132 COND_TOOLKIT_MGL=""
43133 fi
43134
43135 COND_TOOLKIT_MGL_USE_GUI_1="#"
43136 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43137 COND_TOOLKIT_MGL_USE_GUI_1=""
43138 fi
43139
43140 COND_TOOLKIT_MOTIF="#"
43141 if test "x$TOOLKIT" = "xMOTIF" ; then
43142 COND_TOOLKIT_MOTIF=""
43143 fi
43144
43145 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
43146 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
43147 COND_TOOLKIT_MOTIF_USE_GUI_1=""
43148 fi
43149
43150 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
43151 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43152 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
43153 fi
43154
43155 COND_TOOLKIT_MSW="#"
43156 if test "x$TOOLKIT" = "xMSW" ; then
43157 COND_TOOLKIT_MSW=""
43158 fi
43159
43160 COND_TOOLKIT_MSW_USE_GUI_1="#"
43161 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
43162 COND_TOOLKIT_MSW_USE_GUI_1=""
43163 fi
43164
43165 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
43166 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43167 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
43168 fi
43169
43170 COND_TOOLKIT_PM="#"
43171 if test "x$TOOLKIT" = "xPM" ; then
43172 COND_TOOLKIT_PM=""
43173 fi
43174
43175 COND_TOOLKIT_PM_USE_GUI_1="#"
43176 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
43177 COND_TOOLKIT_PM_USE_GUI_1=""
43178 fi
43179
43180 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
43181 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43182 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
43183 fi
43184
3fd9c298
DE
43185 COND_TOOLKIT_WINCE="#"
43186 if test "x$TOOLKIT" = "xWINCE" ; then
43187 COND_TOOLKIT_WINCE=""
43188 fi
43189
43190 COND_TOOLKIT_WINCE_USE_GUI_1="#"
43191 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
43192 COND_TOOLKIT_WINCE_USE_GUI_1=""
43193 fi
43194
43195 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
43196 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43197 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
43198 fi
43199
a848cd7e
SC
43200 COND_TOOLKIT_X11="#"
43201 if test "x$TOOLKIT" = "xX11" ; then
43202 COND_TOOLKIT_X11=""
43203 fi
43204
43205 COND_TOOLKIT_X11_USE_GUI_1="#"
43206 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
43207 COND_TOOLKIT_X11_USE_GUI_1=""
43208 fi
43209
43210 COND_UNICODE_1="#"
43211 if test "x$UNICODE" = "x1" ; then
43212 COND_UNICODE_1=""
43213 fi
43214
43215 COND_USE_EXCEPTIONS_0="#"
43216 if test "x$USE_EXCEPTIONS" = "x0" ; then
43217 COND_USE_EXCEPTIONS_0=""
43218 fi
43219
43220 COND_USE_EXCEPTIONS_1="#"
43221 if test "x$USE_EXCEPTIONS" = "x1" ; then
43222 COND_USE_EXCEPTIONS_1=""
43223 fi
43224
43225 COND_USE_GUI_0="#"
43226 if test "x$USE_GUI" = "x0" ; then
43227 COND_USE_GUI_0=""
43228 fi
43229
43230 COND_USE_GUI_1="#"
43231 if test "x$USE_GUI" = "x1" ; then
43232 COND_USE_GUI_1=""
43233 fi
43234
43235 COND_USE_GUI_1_WXUNIV_0="#"
43236 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43237 COND_USE_GUI_1_WXUNIV_0=""
43238 fi
43239
43240 COND_USE_GUI_1_WXUNIV_1="#"
43241 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43242 COND_USE_GUI_1_WXUNIV_1=""
43243 fi
43244
43245 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43246 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43247 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43248 fi
43249
43250 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43251 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43252 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43253 fi
43254
43255 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43256 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43257 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43258 fi
43259
ceec2216
RL
43260 COND_USE_ODBC_1="#"
43261 if test "x$USE_ODBC" = "x1" ; then
43262 COND_USE_ODBC_1=""
43263 fi
43264
ffa0583f
RL
43265 COND_USE_OPENGL_1="#"
43266 if test "x$USE_OPENGL" = "x1" ; then
43267 COND_USE_OPENGL_1=""
43268 fi
43269
a848cd7e
SC
43270 COND_USE_PLUGINS_0="#"
43271 if test "x$USE_PLUGINS" = "x0" ; then
43272 COND_USE_PLUGINS_0=""
43273 fi
43274
0b78747f
MW
43275 COND_USE_RTTI_0="#"
43276 if test "x$USE_RTTI" = "x0" ; then
43277 COND_USE_RTTI_0=""
43278 fi
43279
43280 COND_USE_RTTI_1="#"
43281 if test "x$USE_RTTI" = "x1" ; then
43282 COND_USE_RTTI_1=""
43283 fi
43284
a848cd7e
SC
43285 COND_USE_SOSYMLINKS_1="#"
43286 if test "x$USE_SOSYMLINKS" = "x1" ; then
43287 COND_USE_SOSYMLINKS_1=""
43288 fi
43289
43290 COND_USE_SOVERLINUX_1="#"
43291 if test "x$USE_SOVERLINUX" = "x1" ; then
43292 COND_USE_SOVERLINUX_1=""
43293 fi
43294
43295 COND_USE_SOVERSION_0="#"
43296 if test "x$USE_SOVERSION" = "x0" ; then
43297 COND_USE_SOVERSION_0=""
43298 fi
43299
43300 COND_USE_SOVERSOLARIS_1="#"
43301 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43302 COND_USE_SOVERSOLARIS_1=""
43303 fi
43304
0b78747f
MW
43305 COND_USE_THREADS_0="#"
43306 if test "x$USE_THREADS" = "x0" ; then
43307 COND_USE_THREADS_0=""
43308 fi
43309
43310 COND_USE_THREADS_1="#"
43311 if test "x$USE_THREADS" = "x1" ; then
43312 COND_USE_THREADS_1=""
43313 fi
43314
a13a7f89
RL
43315 COND_USE_XRC_1="#"
43316 if test "x$USE_XRC" = "x1" ; then
43317 COND_USE_XRC_1=""
43318 fi
43319
a848cd7e
SC
43320 COND_WITH_PLUGIN_SDL_1="#"
43321 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43322 COND_WITH_PLUGIN_SDL_1=""
43323 fi
43324
1e6eb025
VZ
43325 COND_WXUNIV_0="#"
43326 if test "x$WXUNIV" = "x0" ; then
43327 COND_WXUNIV_0=""
43328 fi
43329
a848cd7e
SC
43330 COND_WXUNIV_1="#"
43331 if test "x$WXUNIV" = "x1" ; then
43332 COND_WXUNIV_1=""
43333 fi
43334
43335 COND_WXUSE_EXPAT_BUILTIN="#"
43336 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43337 COND_WXUSE_EXPAT_BUILTIN=""
43338 fi
43339
43340 COND_WXUSE_LIBJPEG_BUILTIN="#"
43341 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43342 COND_WXUSE_LIBJPEG_BUILTIN=""
43343 fi
43344
43345 COND_WXUSE_LIBPNG_BUILTIN="#"
43346 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43347 COND_WXUSE_LIBPNG_BUILTIN=""
43348 fi
43349
43350 COND_WXUSE_LIBTIFF_BUILTIN="#"
43351 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43352 COND_WXUSE_LIBTIFF_BUILTIN=""
43353 fi
43354
43355 COND_WXUSE_ODBC_BUILTIN="#"
43356 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43357 COND_WXUSE_ODBC_BUILTIN=""
43358 fi
43359
43360 COND_WXUSE_REGEX_BUILTIN="#"
43361 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43362 COND_WXUSE_REGEX_BUILTIN=""
43363 fi
43364
43365 COND_WXUSE_ZLIB_BUILTIN="#"
43366 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43367 COND_WXUSE_ZLIB_BUILTIN=""
43368 fi
43369
43370
43371
2057db16
VS
43372 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43373 { { 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
43374echo "$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;}
43375 { (exit 1); exit 1; }; }
43376 fi
43377
a848cd7e 43378
ceec2216
RL
43379if test "$wxUSE_SHARED" = "yes"; then
43380
43381 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43382 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43383
5b674b9d
DE
43384 case "${host}" in
43385 *-pc-os2_emx | *-pc-os2-emx )
43386 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43387 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43388 cp -p ${srcdir}/src/os2/dllnames.sh .
43389 cp -p ${srcdir}/src/os2/dllar.sh .
43390 ;;
43391 esac
ceec2216
RL
43392else
43393
43394 EXE_LINKER="$CXX -o"
43395
43396fi
69120ee4
VZ
43397if test "$wxUSE_OMF" = "yes"; then
43398 case "${host}" in
43399 *-pc-os2_emx | *-pc-os2-emx )
43400 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43401 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43402 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43403 ;;
43404 esac
43405fi
a848cd7e 43406
74b84332 43407GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43408PCH_FLAGS=""
43409if test $GCC_PCH = 1 ; then
43410 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43411 PCH_FLAGS="-DWX_PRECOMP"
43412else
a848cd7e
SC
43413 case "${host}" in
43414 powerpc-*-darwin* )
74b84332 43415 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43416 ;;
bea8e651 43417 *-*-mingw32* )
1f344abf
VS
43418 if test "$wxUSE_STL" = "yes" -o \
43419 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43420 "$wxUSE_NO_RTTI" != "yes"; then
43421 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43422echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43423 cat >conftest.$ac_ext <<_ACEOF
43424/* confdefs.h. */
43425_ACEOF
43426cat confdefs.h >>conftest.$ac_ext
43427cat >>conftest.$ac_ext <<_ACEOF
43428/* end confdefs.h. */
43429
3314e67b
RR
43430int
43431main ()
43432{
43433#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43434 #error "Not GCC 3.2 or greater"
43435 #endif
43436
43437 ;
43438 return 0;
43439}
43440_ACEOF
43441rm -f conftest.$ac_objext
43442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43443 (eval $ac_compile) 2>conftest.er1
43444 ac_status=$?
43445 grep -v '^ *+' conftest.er1 >conftest.err
43446 rm -f conftest.er1
43447 cat conftest.err >&5
43448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43449 (exit $ac_status); } &&
9dd0f6c2 43450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
43451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43452 (eval $ac_try) 2>&5
43453 ac_status=$?
43454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43455 (exit $ac_status); }; } &&
43456 { ac_try='test -s conftest.$ac_objext'
43457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43458 (eval $ac_try) 2>&5
43459 ac_status=$?
43460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43461 (exit $ac_status); }; }; then
43462 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43463 echo "$as_me:$LINENO: result: yes" >&5
43464echo "${ECHO_T}yes" >&6
43465else
43466 echo "$as_me: failed program was:" >&5
43467sed 's/^/| /' conftest.$ac_ext >&5
43468
43469echo "$as_me:$LINENO: result: no" >&5
43470echo "${ECHO_T}no" >&6
43471fi
43472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43473 fi
43474 ;;
43475 *-pc-os2_emx | *-pc-os2-emx )
43476 if test "$wxUSE_STL" = "yes"; then
43477 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43478echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43479 cat >conftest.$ac_ext <<_ACEOF
43480/* confdefs.h. */
43481_ACEOF
43482cat confdefs.h >>conftest.$ac_ext
43483cat >>conftest.$ac_ext <<_ACEOF
43484/* end confdefs.h. */
43485
bea8e651
MB
43486int
43487main ()
43488{
1f344abf 43489#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43490 #error "Not GCC 3.2 or greater"
43491 #endif
43492
43493 ;
43494 return 0;
43495}
43496_ACEOF
43497rm -f conftest.$ac_objext
43498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43499 (eval $ac_compile) 2>conftest.er1
bea8e651 43500 ac_status=$?
ac1cb8d3
VS
43501 grep -v '^ *+' conftest.er1 >conftest.err
43502 rm -f conftest.er1
43503 cat conftest.err >&5
bea8e651
MB
43504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43505 (exit $ac_status); } &&
9dd0f6c2 43506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43508 (eval $ac_try) 2>&5
43509 ac_status=$?
43510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43511 (exit $ac_status); }; } &&
43512 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43514 (eval $ac_try) 2>&5
43515 ac_status=$?
43516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43517 (exit $ac_status); }; }; then
74b84332 43518 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43519 echo "$as_me:$LINENO: result: yes" >&5
43520echo "${ECHO_T}yes" >&6
43521else
43522 echo "$as_me: failed program was:" >&5
43523sed 's/^/| /' conftest.$ac_ext >&5
43524
43525echo "$as_me:$LINENO: result: no" >&5
43526echo "${ECHO_T}no" >&6
43527fi
ac1cb8d3 43528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43529 fi
43530 ;;
a848cd7e
SC
43531 esac
43532fi
d2083416 43533CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43534
43535
43536SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43537
43538
43539
43540
43541
43542
43543
43544
43545
43546
43547
43548
43549
43550
43551
43552
43553
43554
43555
43556
43557
43558
43559
43560
43561
43562
43563
43564
43565
43566
43567
43568
43569
43570
43571
43572
43573
43574
43575
43576
43577
43578
a848cd7e
SC
43579
43580
43581
43582
43583
43584
43585
43586
43587
43588
43589
43590
43591
43592
43593
43594
43595
43596
74b84332 43597
a848cd7e
SC
43598
43599
43600echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43601echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43602set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43603if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43604 echo $ECHO_N "(cached) $ECHO_C" >&6
43605else
43606 cat >conftest.make <<\_ACEOF
43607all:
43608 @echo 'ac_maketemp="$(MAKE)"'
43609_ACEOF
43610# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43611eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43612if test -n "$ac_maketemp"; then
43613 eval ac_cv_prog_make_${ac_make}_set=yes
43614else
43615 eval ac_cv_prog_make_${ac_make}_set=no
43616fi
43617rm -f conftest.make
43618fi
43619if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43620 echo "$as_me:$LINENO: result: yes" >&5
43621echo "${ECHO_T}yes" >&6
43622 SET_MAKE=
43623else
43624 echo "$as_me:$LINENO: result: no" >&5
43625echo "${ECHO_T}no" >&6
43626 SET_MAKE="MAKE=${MAKE-make}"
43627fi
43628
43629
a848cd7e 43630
ceec2216
RL
43631 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43632
a848cd7e 43633
ceec2216 43634 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43635
a848cd7e 43636
ceec2216 43637 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43638
ceec2216
RL
43639
43640 ac_config_files="$ac_config_files version-script Makefile"
43641
43642
43643 ac_config_commands="$ac_config_commands wx-config
43644 "
a848cd7e
SC
43645
43646
9103d280
RL
43647
43648
a848cd7e
SC
43649if test "$wxUSE_GUI" = "yes"; then
43650 SUBDIRS="samples demos utils contrib"
43651else SUBDIRS="samples utils"
43652fi
43653
43654
43655
43656# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43657if test "${with_cppunit_prefix+set}" = set; then
43658 withval="$with_cppunit_prefix"
43659 cppunit_config_prefix="$withval"
43660else
43661 cppunit_config_prefix=""
43662fi;
43663
43664# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43665if test "${with_cppunit_exec_prefix+set}" = set; then
43666 withval="$with_cppunit_exec_prefix"
43667 cppunit_config_exec_prefix="$withval"
43668else
43669 cppunit_config_exec_prefix=""
43670fi;
43671
43672 if test x$cppunit_config_exec_prefix != x ; then
43673 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43674 if test x${CPPUNIT_CONFIG+set} != xset ; then
43675 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43676 fi
43677 fi
43678 if test x$cppunit_config_prefix != x ; then
43679 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43680 if test x${CPPUNIT_CONFIG+set} != xset ; then
43681 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43682 fi
43683 fi
43684
43685 # Extract the first word of "cppunit-config", so it can be a program name with args.
43686set dummy cppunit-config; ac_word=$2
43687echo "$as_me:$LINENO: checking for $ac_word" >&5
43688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43689if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43690 echo $ECHO_N "(cached) $ECHO_C" >&6
43691else
43692 case $CPPUNIT_CONFIG in
43693 [\\/]* | ?:[\\/]*)
43694 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43695 ;;
43696 *)
43697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43698for as_dir in $PATH
43699do
43700 IFS=$as_save_IFS
43701 test -z "$as_dir" && as_dir=.
43702 for ac_exec_ext in '' $ac_executable_extensions; do
43703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43704 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43706 break 2
43707 fi
43708done
43709done
43710
43711 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43712 ;;
43713esac
43714fi
43715CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43716
43717if test -n "$CPPUNIT_CONFIG"; then
43718 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43719echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43720else
43721 echo "$as_me:$LINENO: result: no" >&5
43722echo "${ECHO_T}no" >&6
43723fi
43724
43725 cppunit_version_min=1.8.0
43726
43727 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43728echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43729 no_cppunit=""
43730 if test "$CPPUNIT_CONFIG" = "no" ; then
43731 no_cppunit=yes
43732 else
43733 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43734 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43735 cppunit_version=`$CPPUNIT_CONFIG --version`
43736
43737 cppunit_major_version=`echo $cppunit_version | \
43738 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43739 cppunit_minor_version=`echo $cppunit_version | \
43740 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43741 cppunit_micro_version=`echo $cppunit_version | \
43742 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43743
43744 cppunit_major_min=`echo $cppunit_version_min | \
43745 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43746 cppunit_minor_min=`echo $cppunit_version_min | \
43747 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43748 cppunit_micro_min=`echo $cppunit_version_min | \
43749 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43750
43751 cppunit_version_proper=`expr \
43752 $cppunit_major_version \> $cppunit_major_min \| \
43753 $cppunit_major_version \= $cppunit_major_min \& \
43754 $cppunit_minor_version \> $cppunit_minor_min \| \
43755 $cppunit_major_version \= $cppunit_major_min \& \
43756 $cppunit_minor_version \= $cppunit_minor_min \& \
43757 $cppunit_micro_version \>= $cppunit_micro_min `
43758
43759 if test "$cppunit_version_proper" = "1" ; then
43760 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43761echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43762 else
43763 echo "$as_me:$LINENO: result: no" >&5
43764echo "${ECHO_T}no" >&6
43765 no_cppunit=yes
43766 fi
43767 fi
43768
43769 if test "x$no_cppunit" = x ; then
c2218763 43770 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43771 else
43772 CPPUNIT_CFLAGS=""
43773 CPPUNIT_LIBS=""
c2218763 43774 :
a848cd7e
SC
43775 fi
43776
43777
43778
43779
43780
43781for subdir in `echo $SUBDIRS`; do
43782 if test -d ${srcdir}/${subdir} ; then
43783 if test "$wxUSE_GUI" = "yes"; then
43784 if test ${subdir} = "samples"; then
43785 makefiles="samples/Makefile.in $makefiles"
43786 for sample in `echo $SAMPLES_SUBDIRS`; do
43787 if test -d $srcdir/samples/$sample; then
43788 makefiles="samples/$sample/Makefile.in $makefiles"
43789 fi
43790 done
43791 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43792 fi
43793 else if test ${subdir} = "samples"; then
43794 makefiles="samples/Makefile.in samples/console/Makefile.in"
43795 elif test ${subdir} = "utils"; then
6537ccf8
VS
43796 makefiles=""
43797 for util in HelpGen tex2rtf ; do
43798 if test -d $srcdir/utils/$util ; then
43799 makefiles="utils/$util/Makefile.in \
43800 utils/$util/src/Makefile.in \
43801 $makefiles"
43802 fi
43803 done
a848cd7e
SC
43804 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43805 fi
43806 fi
43807
43808 for mkin in $makefiles ; do
43809 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43810 ac_config_files="$ac_config_files $mk"
43811
43812 done
43813 fi
43814done
43815
43816
43817cat >confcache <<\_ACEOF
43818# This file is a shell script that caches the results of configure
43819# tests run on this system so they can be shared between configure
43820# scripts and configure runs, see configure's option --config-cache.
43821# It is not useful on other systems. If it contains results you don't
43822# want to keep, you may remove or edit it.
43823#
43824# config.status only pays attention to the cache file if you give it
43825# the --recheck option to rerun configure.
43826#
43827# `ac_cv_env_foo' variables (set or unset) will be overridden when
43828# loading this file, other *unset* `ac_cv_foo' will be assigned the
43829# following values.
43830
43831_ACEOF
43832
43833# The following way of writing the cache mishandles newlines in values,
43834# but we know of no workaround that is simple, portable, and efficient.
43835# So, don't put newlines in cache variables' values.
43836# Ultrix sh set writes to stderr and can't be redirected directly,
43837# and sets the high bit in the cache file unless we assign to the vars.
43838{
43839 (set) 2>&1 |
43840 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43841 *ac_space=\ *)
43842 # `set' does not quote correctly, so add quotes (double-quote
43843 # substitution turns \\\\ into \\, and sed turns \\ into \).
43844 sed -n \
ac1cb8d3
VS
43845 "s/'/'\\\\''/g;
43846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43847 ;;
43848 *)
43849 # `set' quotes correctly as required by POSIX, so do not add quotes.
43850 sed -n \
ac1cb8d3 43851 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43852 ;;
43853 esac;
43854} |
43855 sed '
43856 t clear
43857 : clear
43858 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43859 t end
43860 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43861 : end' >>confcache
43862if diff $cache_file confcache >/dev/null 2>&1; then :; else
43863 if test -w $cache_file; then
43864 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43865 cat confcache >$cache_file
43866 else
43867 echo "not updating unwritable cache $cache_file"
43868 fi
43869fi
43870rm -f confcache
43871
43872test "x$prefix" = xNONE && prefix=$ac_default_prefix
43873# Let make expand exec_prefix.
43874test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43875
43876# VPATH may cause trouble with some makes, so we remove $(srcdir),
43877# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43878# trailing colons and then remove the whole line if VPATH becomes empty
43879# (actually we leave an empty line to preserve line numbers).
43880if test "x$srcdir" = x.; then
ac1cb8d3 43881 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43882s/:*\$(srcdir):*/:/;
43883s/:*\${srcdir}:*/:/;
43884s/:*@srcdir@:*/:/;
ac1cb8d3 43885s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43886s/:*$//;
ac1cb8d3 43887s/^[^=]*=[ ]*$//;
a848cd7e
SC
43888}'
43889fi
43890
43891DEFS=-DHAVE_CONFIG_H
43892
43893ac_libobjs=
43894ac_ltlibobjs=
43895for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43896 # 1. Remove the extension, and $U if already installed.
43897 ac_i=`echo "$ac_i" |
ac1cb8d3 43898 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43899 # 2. Add them.
43900 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43901 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43902done
43903LIBOBJS=$ac_libobjs
43904
43905LTLIBOBJS=$ac_ltlibobjs
43906
43907
43908
43909: ${CONFIG_STATUS=./config.status}
43910ac_clean_files_save=$ac_clean_files
43911ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43912{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43913echo "$as_me: creating $CONFIG_STATUS" >&6;}
43914cat >$CONFIG_STATUS <<_ACEOF
43915#! $SHELL
43916# Generated by $as_me.
43917# Run this file to recreate the current configuration.
43918# Compiler output produced by configure, useful for debugging
43919# configure, is in config.log if it exists.
43920
43921debug=false
43922ac_cs_recheck=false
43923ac_cs_silent=false
43924SHELL=\${CONFIG_SHELL-$SHELL}
43925_ACEOF
43926
43927cat >>$CONFIG_STATUS <<\_ACEOF
43928## --------------------- ##
43929## M4sh Initialization. ##
43930## --------------------- ##
43931
43932# Be Bourne compatible
43933if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43934 emulate sh
43935 NULLCMD=:
43936 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43937 # is contrary to our usage. Disable this feature.
43938 alias -g '${1+"$@"}'='"$@"'
43939elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43940 set -o posix
43941fi
ac1cb8d3 43942DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43943
43944# Support unset when possible.
ac1cb8d3 43945if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43946 as_unset=unset
43947else
43948 as_unset=false
43949fi
43950
43951
43952# Work around bugs in pre-3.0 UWIN ksh.
43953$as_unset ENV MAIL MAILPATH
43954PS1='$ '
43955PS2='> '
43956PS4='+ '
43957
43958# NLS nuisances.
43959for as_var in \
43960 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43961 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43962 LC_TELEPHONE LC_TIME
43963do
ac1cb8d3 43964 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43965 eval $as_var=C; export $as_var
43966 else
43967 $as_unset $as_var
43968 fi
43969done
43970
43971# Required to use basename.
43972if expr a : '\(a\)' >/dev/null 2>&1; then
43973 as_expr=expr
43974else
43975 as_expr=false
43976fi
43977
43978if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43979 as_basename=basename
43980else
43981 as_basename=false
43982fi
43983
43984
43985# Name of the executable.
43986as_me=`$as_basename "$0" ||
43987$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43988 X"$0" : 'X\(//\)$' \| \
43989 X"$0" : 'X\(/\)$' \| \
43990 . : '\(.\)' 2>/dev/null ||
43991echo X/"$0" |
43992 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43993 /^X\/\(\/\/\)$/{ s//\1/; q; }
43994 /^X\/\(\/\).*/{ s//\1/; q; }
43995 s/.*/./; q'`
43996
43997
43998# PATH needs CR, and LINENO needs CR and PATH.
43999# Avoid depending upon Character Ranges.
44000as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44001as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44002as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44003as_cr_digits='0123456789'
44004as_cr_alnum=$as_cr_Letters$as_cr_digits
44005
44006# The user is always right.
44007if test "${PATH_SEPARATOR+set}" != set; then
44008 echo "#! /bin/sh" >conf$$.sh
44009 echo "exit 0" >>conf$$.sh
44010 chmod +x conf$$.sh
44011 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44012 PATH_SEPARATOR=';'
44013 else
44014 PATH_SEPARATOR=:
44015 fi
44016 rm -f conf$$.sh
44017fi
44018
44019
44020 as_lineno_1=$LINENO
44021 as_lineno_2=$LINENO
44022 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44023 test "x$as_lineno_1" != "x$as_lineno_2" &&
44024 test "x$as_lineno_3" = "x$as_lineno_2" || {
44025 # Find who we are. Look in the path if we contain no path at all
44026 # relative or not.
44027 case $0 in
44028 *[\\/]* ) as_myself=$0 ;;
44029 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44030for as_dir in $PATH
44031do
44032 IFS=$as_save_IFS
44033 test -z "$as_dir" && as_dir=.
44034 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44035done
44036
44037 ;;
44038 esac
44039 # We did not find ourselves, most probably we were run as `sh COMMAND'
44040 # in which case we are not to be found in the path.
44041 if test "x$as_myself" = x; then
44042 as_myself=$0
44043 fi
44044 if test ! -f "$as_myself"; then
44045 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44046echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44047 { (exit 1); exit 1; }; }
44048 fi
44049 case $CONFIG_SHELL in
44050 '')
44051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44052for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44053do
44054 IFS=$as_save_IFS
44055 test -z "$as_dir" && as_dir=.
44056 for as_base in sh bash ksh sh5; do
44057 case $as_dir in
44058 /*)
44059 if ("$as_dir/$as_base" -c '
44060 as_lineno_1=$LINENO
44061 as_lineno_2=$LINENO
44062 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44063 test "x$as_lineno_1" != "x$as_lineno_2" &&
44064 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
44065 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44066 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44067 CONFIG_SHELL=$as_dir/$as_base
44068 export CONFIG_SHELL
44069 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44070 fi;;
44071 esac
44072 done
44073done
44074;;
44075 esac
44076
44077 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44078 # uniformly replaced by the line number. The first 'sed' inserts a
44079 # line-number line before each line; the second 'sed' does the real
44080 # work. The second script uses 'N' to pair each line-number line
44081 # with the numbered line, and appends trailing '-' during
44082 # substitution so that $LINENO is not a special case at line end.
44083 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44084 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44085 sed '=' <$as_myself |
44086 sed '
44087 N
44088 s,$,-,
44089 : loop
44090 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44091 t loop
44092 s,-$,,
44093 s,^['$as_cr_digits']*\n,,
44094 ' >$as_me.lineno &&
44095 chmod +x $as_me.lineno ||
44096 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44097echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44098 { (exit 1); exit 1; }; }
44099
44100 # Don't try to exec as it changes $[0], causing all sort of problems
44101 # (the dirname of $[0] is not the place where we might find the
44102 # original and so on. Autoconf is especially sensible to this).
44103 . ./$as_me.lineno
44104 # Exit status is that of the last command.
44105 exit
44106}
44107
44108
44109case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44110 *c*,-n*) ECHO_N= ECHO_C='
44111' ECHO_T=' ' ;;
44112 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44113 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44114esac
44115
44116if expr a : '\(a\)' >/dev/null 2>&1; then
44117 as_expr=expr
44118else
44119 as_expr=false
44120fi
44121
44122rm -f conf$$ conf$$.exe conf$$.file
44123echo >conf$$.file
44124if ln -s conf$$.file conf$$ 2>/dev/null; then
44125 # We could just check for DJGPP; but this test a) works b) is more generic
44126 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44127 if test -f conf$$.exe; then
44128 # Don't use ln at all; we don't have any links
44129 as_ln_s='cp -p'
44130 else
44131 as_ln_s='ln -s'
44132 fi
44133elif ln conf$$.file conf$$ 2>/dev/null; then
44134 as_ln_s=ln
44135else
44136 as_ln_s='cp -p'
44137fi
44138rm -f conf$$ conf$$.exe conf$$.file
44139
44140if mkdir -p . 2>/dev/null; then
44141 as_mkdir_p=:
44142else
ac1cb8d3 44143 test -d ./-p && rmdir ./-p
a848cd7e
SC
44144 as_mkdir_p=false
44145fi
44146
44147as_executable_p="test -f"
44148
44149# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 44150as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44151
44152# Sed expression to map a string onto a valid variable name.
ac1cb8d3 44153as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44154
44155
44156# IFS
44157# We need space, tab and new line, in precisely that order.
44158as_nl='
44159'
44160IFS=" $as_nl"
44161
44162# CDPATH.
44163$as_unset CDPATH
44164
44165exec 6>&1
44166
44167# Open the log real soon, to keep \$[0] and so on meaningful, and to
44168# report actual input values of CONFIG_FILES etc. instead of their
44169# values after options handling. Logging --version etc. is OK.
44170exec 5>>config.log
44171{
44172 echo
44173 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44174## Running $as_me. ##
44175_ASBOX
44176} >&5
44177cat >&5 <<_CSEOF
44178
e0d84535 44179This file was extended by wxWidgets $as_me 2.6.0, which was
ac1cb8d3 44180generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
44181
44182 CONFIG_FILES = $CONFIG_FILES
44183 CONFIG_HEADERS = $CONFIG_HEADERS
44184 CONFIG_LINKS = $CONFIG_LINKS
44185 CONFIG_COMMANDS = $CONFIG_COMMANDS
44186 $ $0 $@
44187
44188_CSEOF
44189echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44190echo >&5
44191_ACEOF
44192
44193# Files that config.status was made for.
44194if test -n "$ac_config_files"; then
44195 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44196fi
44197
44198if test -n "$ac_config_headers"; then
44199 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44200fi
44201
44202if test -n "$ac_config_links"; then
44203 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44204fi
44205
44206if test -n "$ac_config_commands"; then
44207 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44208fi
44209
44210cat >>$CONFIG_STATUS <<\_ACEOF
44211
44212ac_cs_usage="\
44213\`$as_me' instantiates files from templates according to the
44214current configuration.
44215
44216Usage: $0 [OPTIONS] [FILE]...
44217
44218 -h, --help print this help, then exit
44219 -V, --version print version number, then exit
44220 -q, --quiet do not print progress messages
44221 -d, --debug don't remove temporary files
44222 --recheck update $as_me by reconfiguring in the same conditions
44223 --file=FILE[:TEMPLATE]
ac1cb8d3 44224 instantiate the configuration file FILE
a848cd7e 44225 --header=FILE[:TEMPLATE]
ac1cb8d3 44226 instantiate the configuration header FILE
a848cd7e
SC
44227
44228Configuration files:
44229$config_files
44230
44231Configuration headers:
44232$config_headers
44233
44234Configuration commands:
44235$config_commands
44236
44237Report bugs to <bug-autoconf@gnu.org>."
44238_ACEOF
44239
44240cat >>$CONFIG_STATUS <<_ACEOF
44241ac_cs_version="\\
e0d84535 44242wxWidgets config.status 2.6.0
ac1cb8d3 44243configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
44244 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44245
ac1cb8d3 44246Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
44247This config.status script is free software; the Free Software Foundation
44248gives unlimited permission to copy, distribute and modify it."
44249srcdir=$srcdir
44250INSTALL="$INSTALL"
44251_ACEOF
44252
44253cat >>$CONFIG_STATUS <<\_ACEOF
44254# If no file are specified by the user, then we need to provide default
44255# value. By we need to know if files were specified by the user.
44256ac_need_defaults=:
44257while test $# != 0
44258do
44259 case $1 in
44260 --*=*)
44261 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44262 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44263 ac_shift=:
44264 ;;
44265 -*)
44266 ac_option=$1
44267 ac_optarg=$2
44268 ac_shift=shift
44269 ;;
44270 *) # This is not an option, so the user has probably given explicit
44271 # arguments.
44272 ac_option=$1
44273 ac_need_defaults=false;;
44274 esac
44275
44276 case $ac_option in
44277 # Handling of the options.
44278_ACEOF
44279cat >>$CONFIG_STATUS <<\_ACEOF
44280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44281 ac_cs_recheck=: ;;
44282 --version | --vers* | -V )
44283 echo "$ac_cs_version"; exit 0 ;;
44284 --he | --h)
44285 # Conflict between --help and --header
44286 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44287Try \`$0 --help' for more information." >&5
44288echo "$as_me: error: ambiguous option: $1
44289Try \`$0 --help' for more information." >&2;}
44290 { (exit 1); exit 1; }; };;
44291 --help | --hel | -h )
44292 echo "$ac_cs_usage"; exit 0 ;;
44293 --debug | --d* | -d )
44294 debug=: ;;
44295 --file | --fil | --fi | --f )
44296 $ac_shift
44297 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44298 ac_need_defaults=false;;
44299 --header | --heade | --head | --hea )
44300 $ac_shift
44301 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44302 ac_need_defaults=false;;
44303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44304 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44305 ac_cs_silent=: ;;
44306
44307 # This is an error.
44308 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44309Try \`$0 --help' for more information." >&5
44310echo "$as_me: error: unrecognized option: $1
44311Try \`$0 --help' for more information." >&2;}
44312 { (exit 1); exit 1; }; } ;;
44313
44314 *) ac_config_targets="$ac_config_targets $1" ;;
44315
44316 esac
44317 shift
44318done
44319
44320ac_configure_extra_args=
44321
44322if $ac_cs_silent; then
44323 exec 6>/dev/null
44324 ac_configure_extra_args="$ac_configure_extra_args --silent"
44325fi
44326
44327_ACEOF
44328cat >>$CONFIG_STATUS <<_ACEOF
44329if \$ac_cs_recheck; then
44330 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44331 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44332fi
44333
44334_ACEOF
44335
44336cat >>$CONFIG_STATUS <<_ACEOF
44337#
44338# INIT-COMMANDS section.
44339#
44340
ceec2216
RL
44341 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44342 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44343 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44344 LN_S="${LN_S}"
a848cd7e
SC
44345
44346
44347_ACEOF
44348
44349
44350
44351cat >>$CONFIG_STATUS <<\_ACEOF
44352for ac_config_target in $ac_config_targets
44353do
44354 case "$ac_config_target" in
44355 # Handling of arguments.
ceec2216
RL
44356 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44357 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44358 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44359 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44360 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44361 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44362 "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
44363 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44364echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44365 { (exit 1); exit 1; }; };;
44366 esac
44367done
44368
44369# If the user did not use the arguments to specify the items to instantiate,
44370# then the envvar interface is used. Set only those that are not.
44371# We use the long form for the default assignment because of an extremely
44372# bizarre bug on SunOS 4.1.3.
44373if $ac_need_defaults; then
44374 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44375 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44376 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44377fi
44378
44379# Have a temporary directory for convenience. Make it in the build tree
44380# simply because there is no reason to put it here, and in addition,
44381# creating and moving files from /tmp can sometimes cause problems.
44382# Create a temporary directory, and hook for its removal unless debugging.
44383$debug ||
44384{
44385 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44386 trap '{ (exit 1); exit 1; }' 1 2 13 15
44387}
44388
44389# Create a (secure) tmp directory for tmp files.
44390
44391{
44392 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44393 test -n "$tmp" && test -d "$tmp"
44394} ||
44395{
44396 tmp=./confstat$$-$RANDOM
44397 (umask 077 && mkdir $tmp)
44398} ||
44399{
44400 echo "$me: cannot create a temporary directory in ." >&2
44401 { (exit 1); exit 1; }
44402}
44403
44404_ACEOF
44405
44406cat >>$CONFIG_STATUS <<_ACEOF
44407
44408#
44409# CONFIG_FILES section.
44410#
44411
44412# No need to generate the scripts if there are no CONFIG_FILES.
44413# This happens for instance when ./config.status config.h
44414if test -n "\$CONFIG_FILES"; then
44415 # Protect against being on the right side of a sed subst in config.status.
44416 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44417 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44418s,@SHELL@,$SHELL,;t t
44419s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44420s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44421s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44422s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44423s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44424s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44425s,@exec_prefix@,$exec_prefix,;t t
44426s,@prefix@,$prefix,;t t
44427s,@program_transform_name@,$program_transform_name,;t t
44428s,@bindir@,$bindir,;t t
44429s,@sbindir@,$sbindir,;t t
44430s,@libexecdir@,$libexecdir,;t t
44431s,@datadir@,$datadir,;t t
44432s,@sysconfdir@,$sysconfdir,;t t
44433s,@sharedstatedir@,$sharedstatedir,;t t
44434s,@localstatedir@,$localstatedir,;t t
44435s,@libdir@,$libdir,;t t
44436s,@includedir@,$includedir,;t t
44437s,@oldincludedir@,$oldincludedir,;t t
44438s,@infodir@,$infodir,;t t
44439s,@mandir@,$mandir,;t t
44440s,@build_alias@,$build_alias,;t t
44441s,@host_alias@,$host_alias,;t t
44442s,@target_alias@,$target_alias,;t t
44443s,@DEFS@,$DEFS,;t t
44444s,@ECHO_C@,$ECHO_C,;t t
44445s,@ECHO_N@,$ECHO_N,;t t
44446s,@ECHO_T@,$ECHO_T,;t t
44447s,@LIBS@,$LIBS,;t t
44448s,@build@,$build,;t t
44449s,@build_cpu@,$build_cpu,;t t
44450s,@build_vendor@,$build_vendor,;t t
44451s,@build_os@,$build_os,;t t
44452s,@host@,$host,;t t
44453s,@host_cpu@,$host_cpu,;t t
44454s,@host_vendor@,$host_vendor,;t t
44455s,@host_os@,$host_os,;t t
44456s,@target@,$target,;t t
44457s,@target_cpu@,$target_cpu,;t t
44458s,@target_vendor@,$target_vendor,;t t
44459s,@target_os@,$target_os,;t t
44460s,@CC@,$CC,;t t
44461s,@CFLAGS@,$CFLAGS,;t t
44462s,@LDFLAGS@,$LDFLAGS,;t t
44463s,@CPPFLAGS@,$CPPFLAGS,;t t
44464s,@ac_ct_CC@,$ac_ct_CC,;t t
44465s,@EXEEXT@,$EXEEXT,;t t
44466s,@OBJEXT@,$OBJEXT,;t t
44467s,@CPP@,$CPP,;t t
44468s,@EGREP@,$EGREP,;t t
44469s,@CXX@,$CXX,;t t
44470s,@CXXFLAGS@,$CXXFLAGS,;t t
44471s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44472s,@RANLIB@,$RANLIB,;t t
44473s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44474s,@AR@,$AR,;t t
44475s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44476s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44477s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44478s,@STRIP@,$STRIP,;t t
44479s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44480s,@LN_S@,$LN_S,;t t
44481s,@CXXCPP@,$CXXCPP,;t t
44482s,@subdirs@,$subdirs,;t t
44483s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44484s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44485s,@GTK_LIBS@,$GTK_LIBS,;t t
44486s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44487s,@X_CFLAGS@,$X_CFLAGS,;t t
44488s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44489s,@X_LIBS@,$X_LIBS,;t t
44490s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44491s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44492s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44493s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44494s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44495s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44496s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44497s,@RESCOMP@,$RESCOMP,;t t
44498s,@DEREZ@,$DEREZ,;t t
44499s,@SETFILE@,$SETFILE,;t t
44500s,@LIBICONV@,$LIBICONV,;t t
44501s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44502s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44503s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44504s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44505s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44506s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44507s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44508s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44509s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44510s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44511s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44512s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44513s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44514s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44515s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44516s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44517s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44518s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44519s,@VENDOR@,$VENDOR,;t t
44520s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44521s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44522s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44523s,@WXUNIV@,$WXUNIV,;t t
44524s,@MONOLITHIC@,$MONOLITHIC,;t t
44525s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44526s,@EXTRALIBS@,$EXTRALIBS,;t t
44527s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44528s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44529s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44530s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44531s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44532s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44533s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44534s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44535s,@UNICODE@,$UNICODE,;t t
44536s,@BUILD@,$BUILD,;t t
44537s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44538s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44539s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44540s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44541s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44542s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44543s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44544s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44545s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44546s,@SET_MAKE@,$SET_MAKE,;t t
44547s,@MAKE_SET@,$MAKE_SET,;t t
44548s,@ac_ct_AR@,$ac_ct_AR,;t t
44549s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44550s,@NM@,$NM,;t t
44551s,@ac_ct_NM@,$ac_ct_NM,;t t
44552s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44553s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44554s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44555s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44556s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44557s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44558s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44559s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44560s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44561s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44562s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44563s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44564s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44565s,@LIBPREFIX@,$LIBPREFIX,;t t
44566s,@LIBEXT@,$LIBEXT,;t t
44567s,@DLLPREFIX@,$DLLPREFIX,;t t
44568s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44569s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44570s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44571s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44572s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44573s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44574s,@PIC_FLAG@,$PIC_FLAG,;t t
44575s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44576s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44577s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44578s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44579s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44580s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44581s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44582s,@GCC_PCH@,$GCC_PCH,;t t
44583s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44584s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44585s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44586s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44587s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44588s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44589s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44590s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44591s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44592s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44593s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44594s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44595s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44596s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44597s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44598s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44599s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44600s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44601s,@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 44602s,@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 44603s,@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 44604s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44605s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44606s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44607s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44608s,@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 44609s,@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 44610s,@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 44611s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44612s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44613s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44614s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44615s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44616s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44617s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44618s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44619s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44620s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44621s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44622s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44623s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44624s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44625s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44626s,@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
44627s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44628s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44629s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44630s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44631s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44632s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44633s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44634s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44635s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44636s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44637s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44638s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44639s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44640s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44641s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44642s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44643s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44644s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44645s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44646s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44647s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52ada004 44648s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44649s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44650s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44651s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44652s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44653s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44654s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
52ada004 44655s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 44656s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44657s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44658s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44659s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44660s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44661s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44662s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44663s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44664s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44665s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44666s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44667s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44668s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44669s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44670s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44671s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44672s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44673s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44674s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44675s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44676s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44677s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44678s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44679s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44680s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44681s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44682s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44683s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44684s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44685s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44686s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44687s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44688s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44689s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44690s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44691s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44692s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44693s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44694s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44695s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44696s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44697s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44698s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44699s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44700s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44701s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44702s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44703s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44704s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44705s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44706s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44707s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44708s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44709s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44710s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44711s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44712s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44713s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44714s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44715s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44716s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44717s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44718s,@USE_GUI@,$USE_GUI,;t t
44719s,@AFMINSTALL@,$AFMINSTALL,;t t
44720s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44721s,@TOOLKIT@,$TOOLKIT,;t t
44722s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44723s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44724s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44725s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44726s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44727s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44728s,@WIDGET_SET@,$WIDGET_SET,;t t
44729s,@WX_RELEASE@,$WX_RELEASE,;t t
44730s,@WX_VERSION@,$WX_VERSION,;t t
44731s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44732s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44733s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44734s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44735s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44736s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44737s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44738s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44739s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44740s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44741s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44742s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44743s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44744s,@DISTDIR@,$DISTDIR,;t t
44745s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44746s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44747s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44748s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44749s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44750s,@RESFLAGS@,$RESFLAGS,;t t
44751s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44752s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44753s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44754s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44755s,@MACRESCOMP@,$MACRESCOMP,;t t
44756s,@MACSETFILE@,$MACSETFILE,;t t
44757s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44758s,@GCC@,$GCC,;t t
a848cd7e 44759s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44760s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44761s,@LIBOBJS@,$LIBOBJS,;t t
44762s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44763CEOF
44764
44765_ACEOF
44766
44767 cat >>$CONFIG_STATUS <<\_ACEOF
44768 # Split the substitutions into bite-sized pieces for seds with
44769 # small command number limits, like on Digital OSF/1 and HP-UX.
44770 ac_max_sed_lines=48
44771 ac_sed_frag=1 # Number of current file.
44772 ac_beg=1 # First line for current file.
44773 ac_end=$ac_max_sed_lines # Line after last line for current file.
44774 ac_more_lines=:
44775 ac_sed_cmds=
44776 while $ac_more_lines; do
44777 if test $ac_beg -gt 1; then
44778 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44779 else
44780 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44781 fi
44782 if test ! -s $tmp/subs.frag; then
44783 ac_more_lines=false
44784 else
44785 # The purpose of the label and of the branching condition is to
44786 # speed up the sed processing (if there are no `@' at all, there
44787 # is no need to browse any of the substitutions).
44788 # These are the two extra sed commands mentioned above.
44789 (echo ':t
44790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44791 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44792 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44793 else
ac1cb8d3 44794 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44795 fi
44796 ac_sed_frag=`expr $ac_sed_frag + 1`
44797 ac_beg=$ac_end
44798 ac_end=`expr $ac_end + $ac_max_sed_lines`
44799 fi
44800 done
44801 if test -z "$ac_sed_cmds"; then
44802 ac_sed_cmds=cat
44803 fi
44804fi # test -n "$CONFIG_FILES"
44805
44806_ACEOF
44807cat >>$CONFIG_STATUS <<\_ACEOF
44808for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44810 case $ac_file in
44811 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44812 cat >$tmp/stdin
44813 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44815 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44817 * ) ac_file_in=$ac_file.in ;;
44818 esac
44819
44820 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44821 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44822$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44823 X"$ac_file" : 'X\(//\)[^/]' \| \
44824 X"$ac_file" : 'X\(//\)$' \| \
44825 X"$ac_file" : 'X\(/\)' \| \
44826 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44827echo X"$ac_file" |
44828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44829 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44830 /^X\(\/\/\)$/{ s//\1/; q; }
44831 /^X\(\/\).*/{ s//\1/; q; }
44832 s/.*/./; q'`
44833 { if $as_mkdir_p; then
44834 mkdir -p "$ac_dir"
44835 else
44836 as_dir="$ac_dir"
44837 as_dirs=
44838 while test ! -d "$as_dir"; do
44839 as_dirs="$as_dir $as_dirs"
44840 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44841$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44842 X"$as_dir" : 'X\(//\)[^/]' \| \
44843 X"$as_dir" : 'X\(//\)$' \| \
44844 X"$as_dir" : 'X\(/\)' \| \
44845 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44846echo X"$as_dir" |
44847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44849 /^X\(\/\/\)$/{ s//\1/; q; }
44850 /^X\(\/\).*/{ s//\1/; q; }
44851 s/.*/./; q'`
44852 done
44853 test ! -n "$as_dirs" || mkdir $as_dirs
44854 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44855echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44856 { (exit 1); exit 1; }; }; }
44857
44858 ac_builddir=.
44859
44860if test "$ac_dir" != .; then
44861 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44862 # A "../" for each directory in $ac_dir_suffix.
44863 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44864else
44865 ac_dir_suffix= ac_top_builddir=
44866fi
44867
44868case $srcdir in
44869 .) # No --srcdir option. We are building in place.
44870 ac_srcdir=.
44871 if test -z "$ac_top_builddir"; then
44872 ac_top_srcdir=.
44873 else
44874 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44875 fi ;;
44876 [\\/]* | ?:[\\/]* ) # Absolute path.
44877 ac_srcdir=$srcdir$ac_dir_suffix;
44878 ac_top_srcdir=$srcdir ;;
44879 *) # Relative path.
44880 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44881 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44882esac
ac1cb8d3
VS
44883
44884# Do not use `cd foo && pwd` to compute absolute paths, because
44885# the directories may not exist.
44886case `pwd` in
44887.) ac_abs_builddir="$ac_dir";;
44888*)
44889 case "$ac_dir" in
44890 .) ac_abs_builddir=`pwd`;;
44891 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44892 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44893 esac;;
44894esac
44895case $ac_abs_builddir in
44896.) ac_abs_top_builddir=${ac_top_builddir}.;;
44897*)
44898 case ${ac_top_builddir}. in
44899 .) ac_abs_top_builddir=$ac_abs_builddir;;
44900 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44901 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44902 esac;;
44903esac
44904case $ac_abs_builddir in
44905.) ac_abs_srcdir=$ac_srcdir;;
44906*)
44907 case $ac_srcdir in
44908 .) ac_abs_srcdir=$ac_abs_builddir;;
44909 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44910 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44911 esac;;
44912esac
44913case $ac_abs_builddir in
44914.) ac_abs_top_srcdir=$ac_top_srcdir;;
44915*)
44916 case $ac_top_srcdir in
44917 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44918 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44919 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44920 esac;;
44921esac
a848cd7e
SC
44922
44923
44924 case $INSTALL in
44925 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44926 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44927 esac
44928
a848cd7e
SC
44929 # Let's still pretend it is `configure' which instantiates (i.e., don't
44930 # use $as_me), people would be surprised to read:
44931 # /* config.h. Generated by config.status. */
44932 if test x"$ac_file" = x-; then
44933 configure_input=
44934 else
44935 configure_input="$ac_file. "
44936 fi
44937 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44938 sed 's,.*/,,'` by configure."
a848cd7e
SC
44939
44940 # First look for the input files in the build tree, otherwise in the
44941 # src tree.
44942 ac_file_inputs=`IFS=:
44943 for f in $ac_file_in; do
44944 case $f in
44945 -) echo $tmp/stdin ;;
44946 [\\/$]*)
ac1cb8d3
VS
44947 # Absolute (can't be DOS-style, as IFS=:)
44948 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44949echo "$as_me: error: cannot find input file: $f" >&2;}
44950 { (exit 1); exit 1; }; }
ac1cb8d3 44951 echo "$f";;
a848cd7e 44952 *) # Relative
ac1cb8d3
VS
44953 if test -f "$f"; then
44954 # Build tree
44955 echo "$f"
44956 elif test -f "$srcdir/$f"; then
44957 # Source tree
44958 echo "$srcdir/$f"
44959 else
44960 # /dev/null tree
44961 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44962echo "$as_me: error: cannot find input file: $f" >&2;}
44963 { (exit 1); exit 1; }; }
ac1cb8d3 44964 fi;;
a848cd7e
SC
44965 esac
44966 done` || { (exit 1); exit 1; }
9dd0f6c2
DE
44967
44968 if test x"$ac_file" != x-; then
44969 { echo "$as_me:$LINENO: creating $ac_file" >&5
44970echo "$as_me: creating $ac_file" >&6;}
44971 rm -f "$ac_file"
44972 fi
a848cd7e
SC
44973_ACEOF
44974cat >>$CONFIG_STATUS <<_ACEOF
44975 sed "$ac_vpsub
44976$extrasub
44977_ACEOF
44978cat >>$CONFIG_STATUS <<\_ACEOF
44979:t
44980/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44981s,@configure_input@,$configure_input,;t t
44982s,@srcdir@,$ac_srcdir,;t t
44983s,@abs_srcdir@,$ac_abs_srcdir,;t t
44984s,@top_srcdir@,$ac_top_srcdir,;t t
44985s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44986s,@builddir@,$ac_builddir,;t t
44987s,@abs_builddir@,$ac_abs_builddir,;t t
44988s,@top_builddir@,$ac_top_builddir,;t t
44989s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44990s,@INSTALL@,$ac_INSTALL,;t t
44991" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44992 rm -f $tmp/stdin
44993 if test x"$ac_file" != x-; then
44994 mv $tmp/out $ac_file
44995 else
44996 cat $tmp/out
44997 rm -f $tmp/out
44998 fi
44999
ceec2216
RL
45000 # Run the commands associated with the file.
45001 case $ac_file in
45002 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
45003 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
45004 esac
a848cd7e
SC
45005done
45006_ACEOF
45007cat >>$CONFIG_STATUS <<\_ACEOF
45008
45009#
45010# CONFIG_HEADER section.
45011#
45012
45013# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45014# NAME is the cpp macro being defined and VALUE is the value it is being given.
45015#
45016# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
45017ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45018ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
45019ac_dC=' '
45020ac_dD=',;t'
45021# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 45022ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
45023ac_uB='$,\1#\2define\3'
45024ac_uC=' '
45025ac_uD=',;t'
45026
45027for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45028 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45029 case $ac_file in
45030 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45031 cat >$tmp/stdin
45032 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45033 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45034 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45035 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45036 * ) ac_file_in=$ac_file.in ;;
45037 esac
45038
45039 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45040echo "$as_me: creating $ac_file" >&6;}
45041
45042 # First look for the input files in the build tree, otherwise in the
45043 # src tree.
45044 ac_file_inputs=`IFS=:
45045 for f in $ac_file_in; do
45046 case $f in
45047 -) echo $tmp/stdin ;;
45048 [\\/$]*)
ac1cb8d3
VS
45049 # Absolute (can't be DOS-style, as IFS=:)
45050 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45051echo "$as_me: error: cannot find input file: $f" >&2;}
45052 { (exit 1); exit 1; }; }
ac1cb8d3
VS
45053 # Do quote $f, to prevent DOS paths from being IFS'd.
45054 echo "$f";;
a848cd7e 45055 *) # Relative
ac1cb8d3
VS
45056 if test -f "$f"; then
45057 # Build tree
45058 echo "$f"
45059 elif test -f "$srcdir/$f"; then
45060 # Source tree
45061 echo "$srcdir/$f"
45062 else
45063 # /dev/null tree
45064 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45065echo "$as_me: error: cannot find input file: $f" >&2;}
45066 { (exit 1); exit 1; }; }
ac1cb8d3 45067 fi;;
a848cd7e
SC
45068 esac
45069 done` || { (exit 1); exit 1; }
45070 # Remove the trailing spaces.
ac1cb8d3 45071 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
45072
45073_ACEOF
45074
45075# Transform confdefs.h into two sed scripts, `conftest.defines' and
45076# `conftest.undefs', that substitutes the proper values into
45077# config.h.in to produce config.h. The first handles `#define'
45078# templates, and the second `#undef' templates.
45079# And first: Protect against being on the right side of a sed subst in
45080# config.status. Protect against being in an unquoted here document
45081# in config.status.
45082rm -f conftest.defines conftest.undefs
45083# Using a here document instead of a string reduces the quoting nightmare.
45084# Putting comments in sed scripts is not portable.
45085#
45086# `end' is used to avoid that the second main sed command (meant for
45087# 0-ary CPP macros) applies to n-ary macro definitions.
45088# See the Autoconf documentation for `clear'.
45089cat >confdef2sed.sed <<\_ACEOF
45090s/[\\&,]/\\&/g
45091s,[\\$`],\\&,g
45092t clear
45093: clear
ac1cb8d3 45094s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 45095t end
ac1cb8d3 45096s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
45097: end
45098_ACEOF
45099# If some macros were called several times there might be several times
45100# the same #defines, which is useless. Nevertheless, we may not want to
45101# sort them, since we want the *last* AC-DEFINE to be honored.
45102uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45103sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45104rm -f confdef2sed.sed
45105
45106# This sed command replaces #undef with comments. This is necessary, for
45107# example, in the case of _POSIX_SOURCE, which is predefined and required
45108# on some systems where configure will not decide to define it.
45109cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 45110s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
45111_ACEOF
45112
45113# Break up conftest.defines because some shells have a limit on the size
45114# of here documents, and old seds have small limits too (100 cmds).
45115echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 45116echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
45117echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45118echo ' :' >>$CONFIG_STATUS
45119rm -f conftest.tail
45120while grep . conftest.defines >/dev/null
45121do
45122 # Write a limited-size here document to $tmp/defines.sed.
45123 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45124 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 45125 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
45126 # Work around the forget-to-reset-the-flag bug.
45127 echo 't clr' >>$CONFIG_STATUS
45128 echo ': clr' >>$CONFIG_STATUS
45129 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45130 echo 'CEOF
45131 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45132 rm -f $tmp/in
45133 mv $tmp/out $tmp/in
45134' >>$CONFIG_STATUS
45135 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45136 rm -f conftest.defines
45137 mv conftest.tail conftest.defines
45138done
45139rm -f conftest.defines
45140echo ' fi # grep' >>$CONFIG_STATUS
45141echo >>$CONFIG_STATUS
45142
45143# Break up conftest.undefs because some shells have a limit on the size
45144# of here documents, and old seds have small limits too (100 cmds).
45145echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45146rm -f conftest.tail
45147while grep . conftest.undefs >/dev/null
45148do
45149 # Write a limited-size here document to $tmp/undefs.sed.
45150 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45151 # Speed up: don't consider the non `#undef'
ac1cb8d3 45152 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
45153 # Work around the forget-to-reset-the-flag bug.
45154 echo 't clr' >>$CONFIG_STATUS
45155 echo ': clr' >>$CONFIG_STATUS
45156 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45157 echo 'CEOF
45158 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45159 rm -f $tmp/in
45160 mv $tmp/out $tmp/in
45161' >>$CONFIG_STATUS
45162 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45163 rm -f conftest.undefs
45164 mv conftest.tail conftest.undefs
45165done
45166rm -f conftest.undefs
45167
45168cat >>$CONFIG_STATUS <<\_ACEOF
45169 # Let's still pretend it is `configure' which instantiates (i.e., don't
45170 # use $as_me), people would be surprised to read:
45171 # /* config.h. Generated by config.status. */
45172 if test x"$ac_file" = x-; then
45173 echo "/* Generated by configure. */" >$tmp/config.h
45174 else
45175 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45176 fi
45177 cat $tmp/in >>$tmp/config.h
45178 rm -f $tmp/in
45179 if test x"$ac_file" != x-; then
45180 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45181 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45182echo "$as_me: $ac_file is unchanged" >&6;}
45183 else
45184 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45185$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45186 X"$ac_file" : 'X\(//\)[^/]' \| \
45187 X"$ac_file" : 'X\(//\)$' \| \
45188 X"$ac_file" : 'X\(/\)' \| \
45189 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45190echo X"$ac_file" |
45191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45193 /^X\(\/\/\)$/{ s//\1/; q; }
45194 /^X\(\/\).*/{ s//\1/; q; }
45195 s/.*/./; q'`
45196 { if $as_mkdir_p; then
45197 mkdir -p "$ac_dir"
45198 else
45199 as_dir="$ac_dir"
45200 as_dirs=
45201 while test ! -d "$as_dir"; do
45202 as_dirs="$as_dir $as_dirs"
45203 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45204$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45205 X"$as_dir" : 'X\(//\)[^/]' \| \
45206 X"$as_dir" : 'X\(//\)$' \| \
45207 X"$as_dir" : 'X\(/\)' \| \
45208 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45209echo X"$as_dir" |
45210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45212 /^X\(\/\/\)$/{ s//\1/; q; }
45213 /^X\(\/\).*/{ s//\1/; q; }
45214 s/.*/./; q'`
45215 done
45216 test ! -n "$as_dirs" || mkdir $as_dirs
45217 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45218echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45219 { (exit 1); exit 1; }; }; }
45220
45221 rm -f $ac_file
45222 mv $tmp/config.h $ac_file
45223 fi
45224 else
45225 cat $tmp/config.h
45226 rm -f $tmp/config.h
45227 fi
45228done
45229_ACEOF
45230cat >>$CONFIG_STATUS <<\_ACEOF
45231
45232#
45233# CONFIG_COMMANDS section.
45234#
45235for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45236 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45237 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45238 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45239$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45240 X"$ac_dest" : 'X\(//\)[^/]' \| \
45241 X"$ac_dest" : 'X\(//\)$' \| \
45242 X"$ac_dest" : 'X\(/\)' \| \
45243 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45244echo X"$ac_dest" |
45245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45247 /^X\(\/\/\)$/{ s//\1/; q; }
45248 /^X\(\/\).*/{ s//\1/; q; }
45249 s/.*/./; q'`
ac1cb8d3
VS
45250 { if $as_mkdir_p; then
45251 mkdir -p "$ac_dir"
45252 else
45253 as_dir="$ac_dir"
45254 as_dirs=
45255 while test ! -d "$as_dir"; do
45256 as_dirs="$as_dir $as_dirs"
45257 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45258$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45259 X"$as_dir" : 'X\(//\)[^/]' \| \
45260 X"$as_dir" : 'X\(//\)$' \| \
45261 X"$as_dir" : 'X\(/\)' \| \
45262 . : '\(.\)' 2>/dev/null ||
45263echo X"$as_dir" |
45264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45266 /^X\(\/\/\)$/{ s//\1/; q; }
45267 /^X\(\/\).*/{ s//\1/; q; }
45268 s/.*/./; q'`
45269 done
45270 test ! -n "$as_dirs" || mkdir $as_dirs
45271 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45272echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45273 { (exit 1); exit 1; }; }; }
45274
a848cd7e
SC
45275 ac_builddir=.
45276
45277if test "$ac_dir" != .; then
45278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45279 # A "../" for each directory in $ac_dir_suffix.
45280 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45281else
45282 ac_dir_suffix= ac_top_builddir=
45283fi
45284
45285case $srcdir in
45286 .) # No --srcdir option. We are building in place.
45287 ac_srcdir=.
45288 if test -z "$ac_top_builddir"; then
45289 ac_top_srcdir=.
45290 else
45291 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45292 fi ;;
45293 [\\/]* | ?:[\\/]* ) # Absolute path.
45294 ac_srcdir=$srcdir$ac_dir_suffix;
45295 ac_top_srcdir=$srcdir ;;
45296 *) # Relative path.
45297 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45298 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45299esac
ac1cb8d3
VS
45300
45301# Do not use `cd foo && pwd` to compute absolute paths, because
45302# the directories may not exist.
45303case `pwd` in
45304.) ac_abs_builddir="$ac_dir";;
45305*)
45306 case "$ac_dir" in
45307 .) ac_abs_builddir=`pwd`;;
45308 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45309 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45310 esac;;
45311esac
45312case $ac_abs_builddir in
45313.) ac_abs_top_builddir=${ac_top_builddir}.;;
45314*)
45315 case ${ac_top_builddir}. in
45316 .) ac_abs_top_builddir=$ac_abs_builddir;;
45317 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45318 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45319 esac;;
45320esac
45321case $ac_abs_builddir in
45322.) ac_abs_srcdir=$ac_srcdir;;
45323*)
45324 case $ac_srcdir in
45325 .) ac_abs_srcdir=$ac_abs_builddir;;
45326 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45327 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45328 esac;;
45329esac
45330case $ac_abs_builddir in
45331.) ac_abs_top_srcdir=$ac_top_srcdir;;
45332*)
45333 case $ac_top_srcdir in
45334 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45335 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45336 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45337 esac;;
45338esac
a848cd7e
SC
45339
45340
45341 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45342echo "$as_me: executing $ac_dest commands" >&6;}
45343 case $ac_dest in
ceec2216
RL
45344 wx-config ) rm -f wx-config
45345 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45346 ;;
a848cd7e
SC
45347 esac
45348done
45349_ACEOF
45350
45351cat >>$CONFIG_STATUS <<\_ACEOF
45352
45353{ (exit 0); exit 0; }
45354_ACEOF
45355chmod +x $CONFIG_STATUS
45356ac_clean_files=$ac_clean_files_save
45357
45358
45359# configure is writing to config.log, and then calls config.status.
45360# config.status does its own redirection, appending to config.log.
45361# Unfortunately, on DOS this fails, as config.log is still kept open
45362# by configure, so config.status won't be able to write to it; its
45363# output is simply discarded. So we exec the FD to /dev/null,
45364# effectively closing config.log, so it can be properly (re)opened and
45365# appended to by config.status. When coming back to configure, we
45366# need to make the FD available again.
45367if test "$no_create" != yes; then
45368 ac_cs_success=:
45369 ac_config_status_args=
45370 test "$silent" = yes &&
45371 ac_config_status_args="$ac_config_status_args --quiet"
45372 exec 5>/dev/null
45373 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45374 exec 5>>config.log
45375 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45376 # would make configure fail if this is the last instruction.
45377 $ac_cs_success || { (exit 1); exit 1; }
45378fi
45379
45380#
45381# CONFIG_SUBDIRS section.
45382#
45383if test "$no_recursion" != yes; then
45384
45385 # Remove --cache-file and --srcdir arguments so they do not pile up.
45386 ac_sub_configure_args=
45387 ac_prev=
45388 for ac_arg in $ac_configure_args; do
45389 if test -n "$ac_prev"; then
45390 ac_prev=
45391 continue
45392 fi
45393 case $ac_arg in
45394 -cache-file | --cache-file | --cache-fil | --cache-fi \
45395 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45396 ac_prev=cache_file ;;
45397 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45398 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45399 | --c=*)
45400 ;;
45401 --config-cache | -C)
45402 ;;
45403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45404 ac_prev=srcdir ;;
45405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45406 ;;
45407 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45408 ac_prev=prefix ;;
45409 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45410 ;;
45411 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45412 esac
45413 done
45414
45415 # Always prepend --prefix to ensure using the same prefix
45416 # in subdir configurations.
45417 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45418
45419 ac_popdir=`pwd`
45420 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45421
45422 # Do not complain, so a configure script can configure whichever
45423 # parts of a large source tree are present.
45424 test -d $srcdir/$ac_dir || continue
45425
45426 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45427echo "$as_me: configuring in $ac_dir" >&6;}
45428 { if $as_mkdir_p; then
45429 mkdir -p "$ac_dir"
45430 else
45431 as_dir="$ac_dir"
45432 as_dirs=
45433 while test ! -d "$as_dir"; do
45434 as_dirs="$as_dir $as_dirs"
45435 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45436$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45437 X"$as_dir" : 'X\(//\)[^/]' \| \
45438 X"$as_dir" : 'X\(//\)$' \| \
45439 X"$as_dir" : 'X\(/\)' \| \
45440 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45441echo X"$as_dir" |
45442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45444 /^X\(\/\/\)$/{ s//\1/; q; }
45445 /^X\(\/\).*/{ s//\1/; q; }
45446 s/.*/./; q'`
45447 done
45448 test ! -n "$as_dirs" || mkdir $as_dirs
45449 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45450echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45451 { (exit 1); exit 1; }; }; }
45452
45453 ac_builddir=.
45454
45455if test "$ac_dir" != .; then
45456 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45457 # A "../" for each directory in $ac_dir_suffix.
45458 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45459else
45460 ac_dir_suffix= ac_top_builddir=
45461fi
45462
45463case $srcdir in
45464 .) # No --srcdir option. We are building in place.
45465 ac_srcdir=.
45466 if test -z "$ac_top_builddir"; then
45467 ac_top_srcdir=.
45468 else
45469 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45470 fi ;;
45471 [\\/]* | ?:[\\/]* ) # Absolute path.
45472 ac_srcdir=$srcdir$ac_dir_suffix;
45473 ac_top_srcdir=$srcdir ;;
45474 *) # Relative path.
45475 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45476 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45477esac
ac1cb8d3
VS
45478
45479# Do not use `cd foo && pwd` to compute absolute paths, because
45480# the directories may not exist.
45481case `pwd` in
45482.) ac_abs_builddir="$ac_dir";;
45483*)
45484 case "$ac_dir" in
45485 .) ac_abs_builddir=`pwd`;;
45486 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45487 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45488 esac;;
45489esac
45490case $ac_abs_builddir in
45491.) ac_abs_top_builddir=${ac_top_builddir}.;;
45492*)
45493 case ${ac_top_builddir}. in
45494 .) ac_abs_top_builddir=$ac_abs_builddir;;
45495 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45496 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45497 esac;;
45498esac
45499case $ac_abs_builddir in
45500.) ac_abs_srcdir=$ac_srcdir;;
45501*)
45502 case $ac_srcdir in
45503 .) ac_abs_srcdir=$ac_abs_builddir;;
45504 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45505 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45506 esac;;
45507esac
45508case $ac_abs_builddir in
45509.) ac_abs_top_srcdir=$ac_top_srcdir;;
45510*)
45511 case $ac_top_srcdir in
45512 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45513 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45514 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45515 esac;;
45516esac
a848cd7e
SC
45517
45518
45519 cd $ac_dir
45520
45521 # Check for guested configure; otherwise get Cygnus style configure.
45522 if test -f $ac_srcdir/configure.gnu; then
45523 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45524 elif test -f $ac_srcdir/configure; then
45525 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45526 elif test -f $ac_srcdir/configure.in; then
45527 ac_sub_configure=$ac_configure
45528 else
45529 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45530echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45531 ac_sub_configure=
45532 fi
45533
45534 # The recursion is here.
45535 if test -n "$ac_sub_configure"; then
45536 # Make the cache file name correct relative to the subdirectory.
45537 case $cache_file in
45538 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45539 *) # Relative path.
ac1cb8d3 45540 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45541 esac
45542
45543 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45544echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45545 # The eval makes quoting arguments work.
45546 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45547 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45548 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45549echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45550 { (exit 1); exit 1; }; }
45551 fi
45552
9dd0f6c2 45553 cd "$ac_popdir"
a848cd7e
SC
45554 done
45555fi
45556
45557
45558echo
77ffb593 45559echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45560echo ""
4d4ff94c 45561echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45562echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45563
77ffb593
JS
45564echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45565echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45566echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45567
77ffb593
JS
45568echo " What level of wxWidgets compatibility should be enabled?"
45569echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45570echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45571
77ffb593 45572echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45573echo " jpeg ${wxUSE_LIBJPEG-none}"
45574echo " png ${wxUSE_LIBPNG-none}"
45575echo " regex ${wxUSE_REGEX}"
45576echo " tiff ${wxUSE_LIBTIFF-none}"
45577if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45578echo " xpm ${wxUSE_LIBXPM-none}"
45579fi
45580echo " zlib ${wxUSE_ZLIB}"
45581echo " odbc ${wxUSE_ODBC}"
45582echo " expat ${wxUSE_EXPAT}"
45583echo " libmspack ${wxUSE_LIBMSPACK}"
45584echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45585echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45586
45587echo ""
45588