]> git.saurik.com Git - wxWidgets.git/blame - configure
Fix bug [ 1170089 ] wxGenericDirCtrl doesn't show files
[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.
63c4f6da 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.5.
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'
63c4f6da
MW
273PACKAGE_VERSION='2.5.5'
274PACKAGE_STRING='wxWidgets 2.5.5'
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"
6671c68b 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_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
63c4f6da 797\`configure' configures wxWidgets 2.5.5 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
63c4f6da 863 short | recursive ) echo "Configuration of wxWidgets 2.5.5:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
07158944 929 --enable-stdpaths use wxStandardPaths class
a848cd7e 930 --enable-stopwatch use wxStopWatch class
07158944 931 --enable-streams use wxStream etc classes
a848cd7e
SC
932 --enable-sysoptions use wxSystemOptions
933 --enable-textbuf use wxTextBuffer class
934 --enable-textfile use wxTextFile class
935 --enable-timer use wxTimer class
936 --enable-unicode compile wxString with Unicode support
937 --enable-sound use wxSound class
3b57de8b 938 --enable-mediactrl use wxMediaCtrl class
77ffb593 939 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 940 --enable-zipstream use wxZip streams
a848cd7e
SC
941 --enable-url use wxURL class
942 --enable-protocol use wxProtocol class
943 --enable-protocol-http HTTP support in wxProtocol
944 --enable-protocol-ftp FTP support in wxProtocol
945 --enable-protocol-file FILE support in wxProtocol
946 --enable-threads use threads
947 --enable-docview use document view architecture
948 --enable-help use help subsystem
949 --enable-mshtmlhelp use MS HTML Help (win32)
950 --enable-html use wxHTML sub-library
951 --enable-htmlhelp use wxHTML-based help
9a8f0513 952 --enable-xrc use XRC resources sub-library
a848cd7e
SC
953 --enable-constraints use layout-constraints system
954 --enable-printarch use printing architecture
955 --enable-mdi use multiple document interface architecture
8a7b1113 956 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
957 --enable-loggui use standard GUI logger
958 --enable-logwin use wxLogWindow
959 --enable-logdialog use wxLogDialog
646b6ec1 960 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
961 --enable-postscript use wxPostscriptDC device context (default for gtk+)
962 --enable-prologio not available; see contrib
963 --enable-resources not available; see contrib
964 --enable-clipboard use wxClipboard class
965 --enable-dnd use Drag'n'Drop classes
966 --enable-metafile use win32 metafiles
967 --enable-controls use all usual controls
968 --enable-accel use accelerators
969 --enable-button use wxButton class
970 --enable-bmpbutton use wxBitmapButton class
971 --enable-calendar use wxCalendarCtrl class
972 --enable-caret use wxCaret class
973 --enable-checkbox use wxCheckBox class
974 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
975 --enable-choice use wxChoice class
92bbdbcd 976 --enable-choicebook use wxChoicebook class
a848cd7e 977 --enable-combobox use wxComboBox class
da98e9be 978 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
979 --enable-display use wxDisplay class
980 --enable-gauge use wxGauge class
981 --enable-grid use wxGrid class
982 --enable-imaglist use wxImageList class
983 --enable-listbook use wxListbook class
984 --enable-listbox use wxListBox class
985 --enable-listctrl use wxListCtrl class
986 --enable-notebook use wxNotebook class
987 --enable-radiobox use wxRadioBox class
988 --enable-radiobtn use wxRadioButton class
989 --enable-sash use wxSashWindow class
990 --enable-scrollbar use wxScrollBar class and scrollable windows
991 --enable-slider use wxSlider class
992 --enable-spinbtn use wxSpinButton class
993 --enable-spinctrl use wxSpinCtrl class
994 --enable-splitter use wxSplitterWindow class
995 --enable-statbmp use wxStaticBitmap class
996 --enable-statbox use wxStaticBox class
997 --enable-statline use wxStaticLine class
998 --enable-stattext use wxStaticText class
999 --enable-statusbar use wxStatusBar class
1000 --enable-tabdialog use wxTabControl class
1001 --enable-textctrl use wxTextCtrl class
1002 --enable-togglebtn use wxToggleButton class
1003 --enable-toolbar use wxToolBar class
1004 --enable-tbarnative use native wxToolBar class
1005 --enable-tbarsmpl use wxToolBarSimple class
1006 --enable-treectrl use wxTreeCtrl class
1007 --enable-tipwindow use wxTipWindow class
1008 --enable-popupwin use wxPopUpWindow class
1009 --enable-commondlg use all common dialogs
1010 --enable-choicedlg use wxChoiceDialog
1011 --enable-coldlg use wxColourDialog
1012 --enable-filedlg use wxFileDialog
1013 --enable-finddlg use wxFindReplaceDialog
1014 --enable-fontdlg use wxFontDialog
1015 --enable-dirdlg use wxDirDialog
1016 --enable-msgdlg use wxMessageDialog
1017 --enable-numberdlg use wxNumberEntryDialog
1018 --enable-splash use wxSplashScreen
1019 --enable-textdlg use wxTextDialog
1020 --enable-tipdlg use startup tips
1021 --enable-progressdlg use wxProgressDialog
1022 --enable-wizarddlg use wxWizard
1023 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1024 --enable-miniframe use wxMiniFrame class
1025 --enable-tooltips use wxToolTip class
1026 --enable-splines use spline drawing code
1027 --enable-validators use wxValidator and derived classes
1028 --enable-busyinfo use wxBusyInfo
4cb1d3da 1029 --enable-joystick use wxJoystick
a848cd7e
SC
1030 --enable-metafiles use wxMetaFile (Windows only)
1031 --enable-dragimage use wxDragImage
1032 --enable-accessibility enable accessibility support
1033 --enable-palette use wxPalette class
1034 --enable-image use wxImage class
1035 --enable-gif use gif images (GIF file format)
1036 --enable-pcx use pcx images (PCX file format)
1037 --enable-iff use iff images (IFF file format)
1038 --enable-pnm use pnm images (PNM file format)
1039 --enable-xpm use xpm images (XPM file format)
1040 --enable-icocur use Windows ICO and CUR formats
77ffb593 1041 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1042 --enable-vendor=VENDOR vendor name (win32 DLL only)
1043 --disable-largefile omit support for large files
1044 --disable-gtktest do not try to compile and run a test GTK+ program
1045 --disable-gtktest Do not try to compile and run a test GTK program
1046 --disable-sdltest Do not try to compile and run a test SDL program
1047 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1048 --disable-precomp-headers
1049 don't use precompiled headers even if compiler can
a848cd7e
SC
1050
1051Optional Packages:
1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1054 --with-gtk use GTK+
1055 --with-motif use Motif/Lesstif
1056 --with-mac use Mac OS X
1057 --with-cocoa use Cocoa
1058 --with-wine use Wine
1059 --with-msw use MS-Windows
1060 --with-pm use OS/2 Presentation Manager
1061 --with-mgl use SciTech MGL
1062 --with-microwin use MicroWindows
1063 --with-x11 use X11
1064 --with-libpng use libpng (PNG image format)
1065 --with-libjpeg use libjpeg (JPEG file format)
1066 --with-libtiff use libtiff (TIFF file format)
1067 --with-libxpm use libxpm (XPM file format)
1068 --with-libmspack use libmspack (CHM help files loading)
1069 --with-sdl use SDL for audio on Unix
d51253e8 1070 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1071 --with-opengl use OpenGL (or Mesa)
1072 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1073 --with-regex enable support for wxRegEx class
1074 --with-zlib use zlib for LZW compression
1075 --with-odbc use the IODBC and wxODBC classes
1076 --with-expat enable XML support using expat parser
ceec2216 1077 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1078 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1079 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1080 --with-x use the X Window System
1081 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1082 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1083 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1084 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1085 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1086
1087Some influential environment variables:
dcc1b6ad
VS
1088 CC C compiler command
1089 CFLAGS C compiler flags
1090 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1091 nonstandard directory <lib dir>
1092 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1093 headers in a nonstandard directory <include dir>
1094 CPP C preprocessor
1095 CXX C++ compiler command
1096 CXXFLAGS C++ compiler flags
1097 CXXCPP C++ preprocessor
a848cd7e
SC
1098
1099Use these variables to override the choices made by `configure' or to help
1100it to find libraries and programs with nonstandard names/locations.
1101
77ffb593 1102Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1103_ACEOF
1104fi
1105
1106if test "$ac_init_help" = "recursive"; then
1107 # If there are subdirs, report their specific --help.
1108 ac_popdir=`pwd`
1109 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1110 test -d $ac_dir || continue
1111 ac_builddir=.
1112
1113if test "$ac_dir" != .; then
1114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1115 # A "../" for each directory in $ac_dir_suffix.
1116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1117else
1118 ac_dir_suffix= ac_top_builddir=
1119fi
1120
1121case $srcdir in
1122 .) # No --srcdir option. We are building in place.
1123 ac_srcdir=.
1124 if test -z "$ac_top_builddir"; then
1125 ac_top_srcdir=.
1126 else
1127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1128 fi ;;
1129 [\\/]* | ?:[\\/]* ) # Absolute path.
1130 ac_srcdir=$srcdir$ac_dir_suffix;
1131 ac_top_srcdir=$srcdir ;;
1132 *) # Relative path.
1133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1134 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1135esac
ac1cb8d3
VS
1136
1137# Do not use `cd foo && pwd` to compute absolute paths, because
1138# the directories may not exist.
1139case `pwd` in
1140.) ac_abs_builddir="$ac_dir";;
1141*)
1142 case "$ac_dir" in
1143 .) ac_abs_builddir=`pwd`;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1145 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1146 esac;;
1147esac
1148case $ac_abs_builddir in
1149.) ac_abs_top_builddir=${ac_top_builddir}.;;
1150*)
1151 case ${ac_top_builddir}. in
1152 .) ac_abs_top_builddir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1155 esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_srcdir=$ac_srcdir;;
1159*)
1160 case $ac_srcdir in
1161 .) ac_abs_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1164 esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_top_srcdir=$ac_top_srcdir;;
1168*)
1169 case $ac_top_srcdir in
1170 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1173 esac;;
1174esac
a848cd7e
SC
1175
1176 cd $ac_dir
1177 # Check for guested configure; otherwise get Cygnus style configure.
1178 if test -f $ac_srcdir/configure.gnu; then
1179 echo
1180 $SHELL $ac_srcdir/configure.gnu --help=recursive
1181 elif test -f $ac_srcdir/configure; then
1182 echo
1183 $SHELL $ac_srcdir/configure --help=recursive
1184 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1185 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1186 echo
1187 $ac_configure --help
1188 else
1189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1190 fi
dfe0c803 1191 cd $ac_popdir
a848cd7e
SC
1192 done
1193fi
1194
1195test -n "$ac_init_help" && exit 0
1196if $ac_init_version; then
1197 cat <<\_ACEOF
63c4f6da 1198wxWidgets configure 2.5.5
ac1cb8d3 1199generated by GNU Autoconf 2.59
a848cd7e 1200
ac1cb8d3 1201Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1202This configure script is free software; the Free Software Foundation
1203gives unlimited permission to copy, distribute and modify it.
1204_ACEOF
1205 exit 0
1206fi
1207exec 5>config.log
1208cat >&5 <<_ACEOF
1209This file contains any messages produced by compilers while
1210running configure, to aid debugging if configure makes a mistake.
1211
63c4f6da 1212It was created by wxWidgets $as_me 2.5.5, which was
ac1cb8d3 1213generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1214
1215 $ $0 $@
1216
1217_ACEOF
1218{
1219cat <<_ASUNAME
1220## --------- ##
1221## Platform. ##
1222## --------- ##
1223
1224hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1225uname -m = `(uname -m) 2>/dev/null || echo unknown`
1226uname -r = `(uname -r) 2>/dev/null || echo unknown`
1227uname -s = `(uname -s) 2>/dev/null || echo unknown`
1228uname -v = `(uname -v) 2>/dev/null || echo unknown`
1229
1230/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1231/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1232
1233/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1234/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1235/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1236hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1237/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1238/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1239/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1240
1241_ASUNAME
1242
1243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1244for as_dir in $PATH
1245do
1246 IFS=$as_save_IFS
1247 test -z "$as_dir" && as_dir=.
1248 echo "PATH: $as_dir"
1249done
1250
1251} >&5
1252
1253cat >&5 <<_ACEOF
1254
1255
1256## ----------- ##
1257## Core tests. ##
1258## ----------- ##
1259
1260_ACEOF
1261
1262
1263# Keep a trace of the command line.
1264# Strip out --no-create and --no-recursion so they do not pile up.
1265# Strip out --silent because we don't want to record it for future runs.
1266# Also quote any args containing shell meta-characters.
1267# Make two passes to allow for proper duplicate-argument suppression.
1268ac_configure_args=
1269ac_configure_args0=
1270ac_configure_args1=
1271ac_sep=
1272ac_must_keep_next=false
1273for ac_pass in 1 2
1274do
1275 for ac_arg
1276 do
1277 case $ac_arg in
1278 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 continue ;;
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 esac
1285 case $ac_pass in
1286 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1287 2)
1288 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1289 if test $ac_must_keep_next = true; then
ac1cb8d3 1290 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1291 else
ac1cb8d3
VS
1292 case $ac_arg in
1293 *=* | --config-cache | -C | -disable-* | --disable-* \
1294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1296 | -with-* | --with-* | -without-* | --without-* | --x)
1297 case "$ac_configure_args0 " in
1298 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1299 esac
1300 ;;
1301 -* ) ac_must_keep_next=true ;;
1302 esac
a848cd7e
SC
1303 fi
1304 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1305 # Get rid of the leading space.
1306 ac_sep=" "
1307 ;;
1308 esac
1309 done
1310done
1311$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1312$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1313
1314# When interrupted or exit'd, cleanup temporary files, and complete
1315# config.log. We remove comments because anyway the quotes in there
1316# would cause problems or look ugly.
1317# WARNING: Be sure not to use single quotes in there, as some shells,
1318# such as our DU 5.0 friend, will then `close' the trap.
1319trap 'exit_status=$?
1320 # Save into config.log some information that might help in debugging.
1321 {
1322 echo
1323
1324 cat <<\_ASBOX
1325## ---------------- ##
1326## Cache variables. ##
1327## ---------------- ##
1328_ASBOX
1329 echo
1330 # The following way of writing the cache mishandles newlines in values,
1331{
1332 (set) 2>&1 |
1333 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1334 *ac_space=\ *)
1335 sed -n \
ac1cb8d3
VS
1336 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1338 ;;
1339 *)
1340 sed -n \
ac1cb8d3 1341 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1342 ;;
1343 esac;
1344}
1345 echo
1346
1347 cat <<\_ASBOX
1348## ----------------- ##
1349## Output variables. ##
1350## ----------------- ##
1351_ASBOX
1352 echo
1353 for ac_var in $ac_subst_vars
1354 do
1355 eval ac_val=$`echo $ac_var`
1356 echo "$ac_var='"'"'$ac_val'"'"'"
1357 done | sort
1358 echo
1359
1360 if test -n "$ac_subst_files"; then
1361 cat <<\_ASBOX
1362## ------------- ##
1363## Output files. ##
1364## ------------- ##
1365_ASBOX
1366 echo
1367 for ac_var in $ac_subst_files
1368 do
1369 eval ac_val=$`echo $ac_var`
ac1cb8d3 1370 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1371 done | sort
1372 echo
1373 fi
1374
1375 if test -s confdefs.h; then
1376 cat <<\_ASBOX
1377## ----------- ##
1378## confdefs.h. ##
1379## ----------- ##
1380_ASBOX
1381 echo
1382 sed "/^$/d" confdefs.h | sort
1383 echo
1384 fi
1385 test "$ac_signal" != 0 &&
1386 echo "$as_me: caught signal $ac_signal"
1387 echo "$as_me: exit $exit_status"
1388 } >&5
ac1cb8d3 1389 rm -f core *.core &&
a848cd7e
SC
1390 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1391 exit $exit_status
1392 ' 0
1393for ac_signal in 1 2 13 15; do
1394 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1395done
1396ac_signal=0
1397
1398# confdefs.h avoids OS command line length limits that DEFS can exceed.
1399rm -rf conftest* confdefs.h
1400# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1401echo >confdefs.h
1402
1403# Predefined preprocessor variables.
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_NAME "$PACKAGE_NAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_VERSION "$PACKAGE_VERSION"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_STRING "$PACKAGE_STRING"
1422_ACEOF
1423
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1427_ACEOF
1428
1429
1430# Let the site file select an alternate cache file if it wants to.
1431# Prefer explicitly selected file to automatically selected ones.
1432if test -z "$CONFIG_SITE"; then
1433 if test "x$prefix" != xNONE; then
1434 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1435 else
1436 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1437 fi
1438fi
1439for ac_site_file in $CONFIG_SITE; do
1440 if test -r "$ac_site_file"; then
1441 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1442echo "$as_me: loading site script $ac_site_file" >&6;}
1443 sed 's/^/| /' "$ac_site_file" >&5
1444 . "$ac_site_file"
1445 fi
1446done
1447
1448if test -r "$cache_file"; then
1449 # Some versions of bash will fail to source /dev/null (special
1450 # files actually), so we avoid doing that.
1451 if test -f "$cache_file"; then
1452 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1453echo "$as_me: loading cache $cache_file" >&6;}
1454 case $cache_file in
1455 [\\/]* | ?:[\\/]* ) . $cache_file;;
1456 *) . ./$cache_file;;
1457 esac
1458 fi
1459else
1460 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1461echo "$as_me: creating cache $cache_file" >&6;}
1462 >$cache_file
1463fi
1464
1465# Check that the precious variables saved in the cache have kept the same
1466# value.
1467ac_cache_corrupted=false
1468for ac_var in `(set) 2>&1 |
ac1cb8d3 1469 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1471 eval ac_new_set=\$ac_env_${ac_var}_set
1472 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1473 eval ac_new_val="\$ac_env_${ac_var}_value"
1474 case $ac_old_set,$ac_new_set in
1475 set,)
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1477echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1479 ,set)
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1481echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1483 ,);;
1484 *)
1485 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1486 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1487echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1488 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1489echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1490 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1491echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1492 ac_cache_corrupted=:
a848cd7e
SC
1493 fi;;
1494 esac
1495 # Pass precious variables to config.status.
1496 if test "$ac_new_set" = set; then
1497 case $ac_new_val in
1498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1499 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1500 *) ac_arg=$ac_var=$ac_new_val ;;
1501 esac
1502 case " $ac_configure_args " in
1503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1504 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1505 esac
1506 fi
1507done
1508if $ac_cache_corrupted; then
1509 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1510echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1511 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1512echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1513 { (exit 1); exit 1; }; }
1514fi
1515
1516ac_ext=c
1517ac_cpp='$CPP $CPPFLAGS'
1518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1520ac_compiler_gnu=$ac_cv_c_compiler_gnu
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551ac_aux_dir=
1552for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1553 if test -f $ac_dir/install-sh; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/install-sh -c"
1556 break
1557 elif test -f $ac_dir/install.sh; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/install.sh -c"
1560 break
1561 elif test -f $ac_dir/shtool; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/shtool install -c"
1564 break
1565 fi
1566done
1567if test -z "$ac_aux_dir"; then
1568 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1569echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1570 { (exit 1); exit 1; }; }
1571fi
1572ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1573ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1574ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1575
1576# Make sure we can run config.sub.
1577$ac_config_sub sun4 >/dev/null 2>&1 ||
1578 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1579echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1580 { (exit 1); exit 1; }; }
1581
1582echo "$as_me:$LINENO: checking build system type" >&5
1583echo $ECHO_N "checking build system type... $ECHO_C" >&6
1584if test "${ac_cv_build+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586else
1587 ac_cv_build_alias=$build_alias
1588test -z "$ac_cv_build_alias" &&
1589 ac_cv_build_alias=`$ac_config_guess`
1590test -z "$ac_cv_build_alias" &&
1591 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1592echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1593 { (exit 1); exit 1; }; }
1594ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1596echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1598
1599fi
1600echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1601echo "${ECHO_T}$ac_cv_build" >&6
1602build=$ac_cv_build
1603build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608echo "$as_me:$LINENO: checking host system type" >&5
1609echo $ECHO_N "checking host system type... $ECHO_C" >&6
1610if test "${ac_cv_host+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613 ac_cv_host_alias=$host_alias
1614test -z "$ac_cv_host_alias" &&
1615 ac_cv_host_alias=$ac_cv_build_alias
1616ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1618echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621fi
1622echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1623echo "${ECHO_T}$ac_cv_host" >&6
1624host=$ac_cv_host
1625host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630echo "$as_me:$LINENO: checking target system type" >&5
1631echo $ECHO_N "checking target system type... $ECHO_C" >&6
1632if test "${ac_cv_target+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 ac_cv_target_alias=$target_alias
1636test "x$ac_cv_target_alias" = "x" &&
1637 ac_cv_target_alias=$ac_cv_host_alias
1638ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1640echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1642
1643fi
1644echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1645echo "${ECHO_T}$ac_cv_target" >&6
1646target=$ac_cv_target
1647target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652# The aliases save the names the user supplied, while $host etc.
1653# will get canonicalized.
1654test -n "$target_alias" &&
1655 test "$program_prefix$program_suffix$program_transform_name" = \
1656 NONENONEs,x,x, &&
1657 program_prefix=${target_alias}-
1658
1659
1660
ceec2216
RL
1661wx_major_version_number=2
1662wx_minor_version_number=5
63c4f6da
MW
1663wx_release_number=5
1664wx_subrelease_number=0
a848cd7e 1665
ceec2216
RL
1666WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1667WX_VERSION=$WX_RELEASE.$wx_release_number
1668WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1669
ceec2216 1670WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1671
63c4f6da 1672WX_CURRENT=5
a848cd7e 1673WX_REVISION=0
63c4f6da 1674WX_AGE=5
a848cd7e
SC
1675
1676
1677
1678USE_UNIX=1
1679USE_OS2=0
1680USE_WIN32=0
1681USE_DOS=0
1682USE_BEOS=0
1683USE_MAC=0
1684
1685USE_AIX=
1686USE_BSD= USE_DARWIN= USE_FREEBSD=
1687USE_GNU= USE_HPUX=
1688USE_LINUX=
1689USE_NETBSD=
1690USE_OPENBSD=
1691USE_OSF= USE_SGI=
1692USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1693USE_ULTRIX=
1694USE_UNIXWARE=
1695
1696USE_ALPHA=
1697
1698NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1699
1700ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1701
1702DEFAULT_wxUSE_COCOA=0
1703DEFAULT_wxUSE_GTK=0
1704DEFAULT_wxUSE_MAC=0
1705DEFAULT_wxUSE_MGL=0
1706DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_wxUSE_MSW=0
1709DEFAULT_wxUSE_PM=0
1710DEFAULT_wxUSE_X11=0
1711
1712DEFAULT_DEFAULT_wxUSE_COCOA=0
1713DEFAULT_DEFAULT_wxUSE_GTK=0
1714DEFAULT_DEFAULT_wxUSE_MAC=0
1715DEFAULT_DEFAULT_wxUSE_MGL=0
1716DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1717DEFAULT_DEFAULT_wxUSE_MOTIF=0
1718DEFAULT_DEFAULT_wxUSE_MSW=0
1719DEFAULT_DEFAULT_wxUSE_PM=0
1720DEFAULT_DEFAULT_wxUSE_X11=0
1721
1722PROGRAM_EXT=
1723SO_SUFFIX=so
1724SAMPLES_RPATH_FLAG=
1725SAMPLES_RPATH_POSTLINK=
1726
1727case "${host}" in
1728 *-hp-hpux* )
1729 USE_HPUX=1
1730 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1731 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1732 SO_SUFFIX=sl
1733 cat >>confdefs.h <<\_ACEOF
1734#define __HPUX__ 1
1735_ACEOF
1736
1737 ;;
1738 *-*-linux* )
1739 USE_LINUX=1
1740 cat >>confdefs.h <<\_ACEOF
1741#define __LINUX__ 1
1742_ACEOF
1743
1744 TMP=`uname -m`
1745 if test "x$TMP" = "xalpha"; then
1746 USE_ALPHA=1
1747 cat >>confdefs.h <<\_ACEOF
1748#define __ALPHA__ 1
1749_ACEOF
1750
1751 fi
1752 DEFAULT_DEFAULT_wxUSE_GTK=1
1753 ;;
1754 *-*-gnu* | *-*-k*bsd*-gnu )
1755 USE_GNU=1
1756 TMP=`uname -m`
1757 if test "x$TMP" = "xalpha"; then
1758 USE_ALPHA=1
1759 cat >>confdefs.h <<\_ACEOF
1760#define __ALPHA__ 1
1761_ACEOF
1762
1763 fi
1764 DEFAULT_DEFAULT_wxUSE_GTK=1
1765 ;;
1766 *-*-irix5* | *-*-irix6* )
1767 USE_SGI=1
1768 USE_SVR4=1
1769 cat >>confdefs.h <<\_ACEOF
1770#define __SGI__ 1
1771_ACEOF
1772
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SVR4__ 1
1775_ACEOF
1776
1777 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1778 ;;
1779 *-*-solaris2* )
1780 USE_SUN=1
1781 USE_SOLARIS=1
1782 USE_SVR4=1
1783 cat >>confdefs.h <<\_ACEOF
1784#define __SUN__ 1
1785_ACEOF
1786
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SOLARIS__ 1
1789_ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SVR4__ 1
1793_ACEOF
1794
1795 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1796 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1797 ;;
1798 *-*-sunos4* )
1799 USE_SUN=1
1800 USE_SUNOS=1
1801 USE_BSD=1
1802 cat >>confdefs.h <<\_ACEOF
1803#define __SUN__ 1
1804_ACEOF
1805
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SUNOS__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __BSD__ 1
1812_ACEOF
1813
1814 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1815 ;;
1816 *-*-freebsd*)
1817 USE_BSD=1
1818 USE_FREEBSD=1
1819 cat >>confdefs.h <<\_ACEOF
1820#define __FREEBSD__ 1
1821_ACEOF
1822
1823 cat >>confdefs.h <<\_ACEOF
1824#define __BSD__ 1
1825_ACEOF
1826
1827 DEFAULT_DEFAULT_wxUSE_GTK=1
1828 ;;
1829 *-*-openbsd*)
1830 USE_BSD=1
1831 USE_OPENBSD=1
1832 cat >>confdefs.h <<\_ACEOF
1833#define __OPENBSD__ 1
1834_ACEOF
1835
1836 cat >>confdefs.h <<\_ACEOF
1837#define __BSD__ 1
1838_ACEOF
1839
1840 DEFAULT_DEFAULT_wxUSE_GTK=1
1841 ;;
1842 *-*-netbsd*)
1843 USE_BSD=1
1844 USE_NETBSD=1
1845 cat >>confdefs.h <<\_ACEOF
1846#define __NETBSD__ 1
1847_ACEOF
1848
1849 cat >>confdefs.h <<\_ACEOF
1850#define __BSD__ 1
1851_ACEOF
1852
1853 DEFAULT_DEFAULT_wxUSE_GTK=1
1854 ;;
1855 *-*-osf* )
1856 USE_ALPHA=1
1857 USE_OSF=1
1858 cat >>confdefs.h <<\_ACEOF
1859#define __ALPHA__ 1
1860_ACEOF
1861
1862 cat >>confdefs.h <<\_ACEOF
1863#define __OSF__ 1
1864_ACEOF
1865
1866 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1867 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1868 ;;
1869 *-*-dgux5* )
1870 USE_ALPHA=1
1871 USE_SVR4=1
1872 cat >>confdefs.h <<\_ACEOF
1873#define __ALPHA__ 1
1874_ACEOF
1875
1876 cat >>confdefs.h <<\_ACEOF
1877#define __SVR4__ 1
1878_ACEOF
1879
1880 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1881 ;;
1882 *-*-sysv5* )
1883 USE_SYSV=1
1884 USE_SVR4=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __SYSV__ 1
1887_ACEOF
1888
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SVR4__ 1
1891_ACEOF
1892
1893 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1894 ;;
1895 *-*-aix* )
1896 USE_AIX=1
1897 USE_SYSV=1
1898 USE_SVR4=1
1899 SO_SUFFIX=a
1900 cat >>confdefs.h <<\_ACEOF
1901#define __AIX__ 1
1902_ACEOF
1903
1904 cat >>confdefs.h <<\_ACEOF
1905#define __SYSV__ 1
1906_ACEOF
1907
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SVR4__ 1
1910_ACEOF
1911
1912 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1913 ;;
1914
1915 *-*-*UnixWare*)
1916 USE_SYSV=1
1917 USE_SVR4=1
1918 USE_UNIXWARE=1
1919 cat >>confdefs.h <<\_ACEOF
1920#define __UNIXWARE__ 1
1921_ACEOF
1922
1923 ;;
1924
1925 *-*-cygwin* | *-*-mingw32* )
1926 SO_SUFFIX=dll
1927 PROGRAM_EXT=".exe"
1928 RESCOMP=windres
1929 DEFAULT_DEFAULT_wxUSE_MSW=1
1930 ;;
1931
1932 *-pc-msdosdjgpp )
1933 USE_UNIX=0
1934 USE_DOS=1
1935 cat >>confdefs.h <<\_ACEOF
1936#define __DOS__ 1
1937_ACEOF
1938
1939 PROGRAM_EXT=".exe"
1940 DEFAULT_DEFAULT_wxUSE_MGL=1
1941 LIBS="$LIBS -lstdc++"
1942 ;;
1943
1944 *-pc-os2_emx | *-pc-os2-emx )
1945 cat >>confdefs.h <<\_ACEOF
1946#define __EMX__ 1
1947_ACEOF
1948
1949 USE_OS2=1
1950 cat >>confdefs.h <<\_ACEOF
1951#define __OS2__ 1
1952_ACEOF
1953
1954 PROGRAM_EXT=".exe"
1955 DEFAULT_DEFAULT_wxUSE_PM=1
1956 CXX=gcc
1957 LDFLAGS="$LDFLAGS -Zcrtdll"
1958 ac_executable_extensions=".exe"
1959 export ac_executable_extensions
1960 ac_save_IFS="$IFS"
1961 IFS='\\'
1962 ac_TEMP_PATH=
1963 for ac_dir in $PATH; do
1964 IFS=$ac_save_IFS
1965 if test -z "$ac_TEMP_PATH"; then
1966 ac_TEMP_PATH="$ac_dir"
1967 else
1968 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1969 fi
1970 done
1971 export PATH="$ac_TEMP_PATH"
1972 unset ac_TEMP_PATH
1973 ;;
1974
1975 powerpc-*-darwin* )
1976 USE_BSD=1
1977 USE_DARWIN=1
1978 SO_SUFFIX=dylib
1979 cat >>confdefs.h <<\_ACEOF
1980#define __BSD__ 1
1981_ACEOF
1982
1983 cat >>confdefs.h <<\_ACEOF
1984#define __DARWIN__ 1
a848cd7e
SC
1985_ACEOF
1986
1987 cat >>confdefs.h <<\_ACEOF
1988#define TARGET_CARBON 1
1989_ACEOF
1990
1991 DEFAULT_DEFAULT_wxUSE_MAC=1
1992 ;;
1e9e8aba
DE
1993 powerpc-apple-macos* )
1994 USE_UNIX=0
1995 ac_cv_c_bigendian=yes
1996 SO_SUFFIX=shlib
1997 DEFAULT_DEFAULT_wxUSE_MAC=1
1998 ;;
a848cd7e
SC
1999
2000 *-*-beos* )
2001 USE_BEOS=1
2002 cat >>confdefs.h <<\_ACEOF
2003#define __BEOS__ 1
2004_ACEOF
2005
2006 ;;
2007
2008 *)
2009 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2010echo "$as_me: error: unknown system type ${host}." >&2;}
2011 { (exit 1); exit 1; }; }
2012esac
2013
2014
2015
2016
2017 wx_arg_cache_file="configarg.cache"
2018 echo "loading argument cache $wx_arg_cache_file"
2019 rm -f ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}.tmp
2021 touch ${wx_arg_cache_file}
2022
2023
2024DEBUG_CONFIGURE=0
2025if test $DEBUG_CONFIGURE = 1; then
2026 DEFAULT_wxUSE_UNIVERSAL=no
2027 DEFAULT_wxUSE_STL=no
2028
2029 DEFAULT_wxUSE_NANOX=no
2030
2031 DEFAULT_wxUSE_THREADS=yes
2032
2033 DEFAULT_wxUSE_SHARED=yes
2034 DEFAULT_wxUSE_OPTIMISE=no
2035 DEFAULT_wxUSE_PROFILE=no
2036 DEFAULT_wxUSE_NO_DEPS=no
2037 DEFAULT_wxUSE_NO_RTTI=no
2038 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2039 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2040 DEFAULT_wxUSE_PERMISSIVE=no
2041 DEFAULT_wxUSE_DEBUG_FLAG=yes
2042 DEFAULT_wxUSE_DEBUG_INFO=yes
2043 DEFAULT_wxUSE_DEBUG_GDB=yes
2044 DEFAULT_wxUSE_MEM_TRACING=no
2045 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2046 DEFAULT_wxUSE_DMALLOC=no
2047 DEFAULT_wxUSE_APPLE_IEEE=no
2048
2049 DEFAULT_wxUSE_EXCEPTIONS=no
2050 DEFAULT_wxUSE_LOG=yes
2051 DEFAULT_wxUSE_LOGWINDOW=no
2052 DEFAULT_wxUSE_LOGGUI=no
2053 DEFAULT_wxUSE_LOGDIALOG=no
2054
2055 DEFAULT_wxUSE_GUI=yes
2056 DEFAULT_wxUSE_CONTROLS=no
2057
2058 DEFAULT_wxUSE_REGEX=no
2059 DEFAULT_wxUSE_XML=no
2060 DEFAULT_wxUSE_EXPAT=no
2061 DEFAULT_wxUSE_ZLIB=no
2062 DEFAULT_wxUSE_LIBPNG=no
2063 DEFAULT_wxUSE_LIBJPEG=no
2064 DEFAULT_wxUSE_LIBTIFF=no
2065 DEFAULT_wxUSE_LIBXPM=no
2066 DEFAULT_wxUSE_LIBMSPACK=no
2067 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2068 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2069 DEFAULT_wxUSE_ODBC=no
2070 DEFAULT_wxUSE_OPENGL=no
2071
2072 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2073 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2074 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2075 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2076 DEFAULT_wxUSE_STD_IOSTREAM=no
2077 DEFAULT_wxUSE_CMDLINE_PARSER=no
2078 DEFAULT_wxUSE_DATETIME=no
2079 DEFAULT_wxUSE_TIMER=no
2080 DEFAULT_wxUSE_STOPWATCH=no
2081 DEFAULT_wxUSE_FILE=no
2082 DEFAULT_wxUSE_FFILE=no
07158944 2083 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2084 DEFAULT_wxUSE_TEXTBUFFER=no
2085 DEFAULT_wxUSE_TEXTFILE=no
2086 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2087 DEFAULT_wxUSE_MEDIACTRL=no
2088 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2089 DEFAULT_wxUSE_INTL=no
2090 DEFAULT_wxUSE_CONFIG=no
2091 DEFAULT_wxUSE_FONTMAP=no
2092 DEFAULT_wxUSE_STREAMS=no
2093 DEFAULT_wxUSE_SOCKETS=no
2094 DEFAULT_wxUSE_OLE=no
2095 DEFAULT_wxUSE_DATAOBJ=no
2096 DEFAULT_wxUSE_DIALUP_MANAGER=no
2097 DEFAULT_wxUSE_JOYSTICK=no
2098 DEFAULT_wxUSE_DYNLIB_CLASS=no
2099 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2100 DEFAULT_wxUSE_LONGLONG=no
2101 DEFAULT_wxUSE_GEOMETRY=no
2102
2103 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2104 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2105 DEFAULT_wxUSE_POSTSCRIPT=no
2106
2107 DEFAULT_wxUSE_CLIPBOARD=no
2108 DEFAULT_wxUSE_TOOLTIPS=no
2109 DEFAULT_wxUSE_DRAG_AND_DROP=no
2110 DEFAULT_wxUSE_DRAGIMAGE=no
2111 DEFAULT_wxUSE_SPLINES=no
2112
8a7b1113 2113 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2114 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2115 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2116 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2117
2118 DEFAULT_wxUSE_RESOURCES=no
2119 DEFAULT_wxUSE_CONSTRAINTS=no
2120 DEFAULT_wxUSE_IPC=no
2121 DEFAULT_wxUSE_HELP=no
2122 DEFAULT_wxUSE_MS_HTML_HELP=no
2123 DEFAULT_wxUSE_WXHTML_HELP=no
2124 DEFAULT_wxUSE_TREELAYOUT=no
2125 DEFAULT_wxUSE_METAFILE=no
2126 DEFAULT_wxUSE_MIMETYPE=no
2127 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2128 DEFAULT_wxUSE_PROTOCOL=no
2129 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2130 DEFAULT_wxUSE_PROTOCOL_FTP=no
2131 DEFAULT_wxUSE_PROTOCOL_FILE=no
2132 DEFAULT_wxUSE_URL=no
2133
2134 DEFAULT_wxUSE_COMMONDLGS=no
2135 DEFAULT_wxUSE_CHOICEDLG=no
2136 DEFAULT_wxUSE_COLOURDLG=no
2137 DEFAULT_wxUSE_DIRDLG=no
2138 DEFAULT_wxUSE_FILEDLG=no
2139 DEFAULT_wxUSE_FINDREPLDLG=no
2140 DEFAULT_wxUSE_FONTDLG=no
2141 DEFAULT_wxUSE_MSGDLG=no
2142 DEFAULT_wxUSE_NUMBERDLG=no
2143 DEFAULT_wxUSE_TEXTDLG=no
2144 DEFAULT_wxUSE_SPLASH=no
2145 DEFAULT_wxUSE_STARTUP_TIPS=no
2146 DEFAULT_wxUSE_PROGRESSDLG=no
2147 DEFAULT_wxUSE_WIZARDDLG=no
2148
2149 DEFAULT_wxUSE_MENUS=no
2150 DEFAULT_wxUSE_MINIFRAME=no
2151 DEFAULT_wxUSE_HTML=no
9a8f0513 2152 DEFAULT_wxUSE_XRC=no
646b6ec1 2153 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2154 DEFAULT_wxUSE_FILESYSTEM=no
2155 DEFAULT_wxUSE_FS_INET=no
2156 DEFAULT_wxUSE_FS_ZIP=no
2157 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2158 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2159 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2160 DEFAULT_wxUSE_VALIDATORS=no
2161
2162 DEFAULT_wxUSE_ACCEL=no
2163 DEFAULT_wxUSE_BUTTON=no
2164 DEFAULT_wxUSE_BMPBUTTON=no
2165 DEFAULT_wxUSE_CALCTRL=no
2166 DEFAULT_wxUSE_CARET=no
2167 DEFAULT_wxUSE_CHECKBOX=no
2168 DEFAULT_wxUSE_CHECKLST=no
2169 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2170 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2171 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2172 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2173 DEFAULT_wxUSE_DISPLAY=no
2174 DEFAULT_wxUSE_GAUGE=no
2175 DEFAULT_wxUSE_GRID=no
2176 DEFAULT_wxUSE_IMAGLIST=no
2177 DEFAULT_wxUSE_LISTBOOK=no
2178 DEFAULT_wxUSE_LISTBOX=no
2179 DEFAULT_wxUSE_LISTCTRL=no
2180 DEFAULT_wxUSE_NOTEBOOK=no
2181 DEFAULT_wxUSE_RADIOBOX=no
2182 DEFAULT_wxUSE_RADIOBTN=no
2183 DEFAULT_wxUSE_SASH=no
2184 DEFAULT_wxUSE_SCROLLBAR=no
2185 DEFAULT_wxUSE_SLIDER=no
2186 DEFAULT_wxUSE_SPINBTN=no
2187 DEFAULT_wxUSE_SPINCTRL=no
2188 DEFAULT_wxUSE_SPLITTER=no
2189 DEFAULT_wxUSE_STATBMP=no
2190 DEFAULT_wxUSE_STATBOX=no
2191 DEFAULT_wxUSE_STATLINE=no
2192 DEFAULT_wxUSE_STATTEXT=no
2193 DEFAULT_wxUSE_STATUSBAR=yes
2194 DEFAULT_wxUSE_TABDIALOG=no
2195 DEFAULT_wxUSE_TEXTCTRL=no
2196 DEFAULT_wxUSE_TOGGLEBTN=no
2197 DEFAULT_wxUSE_TOOLBAR=no
2198 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2199 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2200 DEFAULT_wxUSE_TREECTRL=no
2201 DEFAULT_wxUSE_POPUPWIN=no
2202 DEFAULT_wxUSE_TIPWINDOW=no
2203
2204 DEFAULT_wxUSE_UNICODE=no
2205 DEFAULT_wxUSE_UNICODE_MSLU=no
2206 DEFAULT_wxUSE_WCSRTOMBS=no
2207
2208 DEFAULT_wxUSE_PALETTE=no
2209 DEFAULT_wxUSE_IMAGE=no
2210 DEFAULT_wxUSE_GIF=no
2211 DEFAULT_wxUSE_PCX=no
2212 DEFAULT_wxUSE_PNM=no
2213 DEFAULT_wxUSE_IFF=no
2214 DEFAULT_wxUSE_XPM=no
2215 DEFAULT_wxUSE_ICO_CUR=no
2216 DEFAULT_wxUSE_ACCESSIBILITY=no
2217
2218 DEFAULT_wxUSE_MONOLITHIC=no
2219 DEFAULT_wxUSE_PLUGINS=no
2220 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2221else
2222 DEFAULT_wxUSE_UNIVERSAL=no
2223 DEFAULT_wxUSE_STL=no
2224
2225 DEFAULT_wxUSE_NANOX=no
2226
2227 DEFAULT_wxUSE_THREADS=yes
2228
2229 DEFAULT_wxUSE_SHARED=yes
2230 DEFAULT_wxUSE_OPTIMISE=yes
2231 DEFAULT_wxUSE_PROFILE=no
2232 DEFAULT_wxUSE_NO_DEPS=no
2233 DEFAULT_wxUSE_NO_RTTI=no
2234 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2235 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2236 DEFAULT_wxUSE_PERMISSIVE=no
2237 DEFAULT_wxUSE_DEBUG_FLAG=no
2238 DEFAULT_wxUSE_DEBUG_INFO=no
2239 DEFAULT_wxUSE_DEBUG_GDB=no
2240 DEFAULT_wxUSE_MEM_TRACING=no
2241 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2242 DEFAULT_wxUSE_DMALLOC=no
2243 DEFAULT_wxUSE_APPLE_IEEE=yes
2244
2245 DEFAULT_wxUSE_EXCEPTIONS=yes
2246 DEFAULT_wxUSE_LOG=yes
2247 DEFAULT_wxUSE_LOGWINDOW=yes
2248 DEFAULT_wxUSE_LOGGUI=yes
2249 DEFAULT_wxUSE_LOGDIALOG=yes
2250
2251 DEFAULT_wxUSE_GUI=yes
2252
2253 DEFAULT_wxUSE_REGEX=yes
2254 DEFAULT_wxUSE_XML=yes
2255 DEFAULT_wxUSE_EXPAT=yes
2256 DEFAULT_wxUSE_ZLIB=yes
2257 DEFAULT_wxUSE_LIBPNG=yes
2258 DEFAULT_wxUSE_LIBJPEG=yes
2259 DEFAULT_wxUSE_LIBTIFF=yes
2260 DEFAULT_wxUSE_LIBXPM=yes
2261 DEFAULT_wxUSE_LIBMSPACK=yes
2262 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2263 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2264 DEFAULT_wxUSE_ODBC=no
2265 DEFAULT_wxUSE_OPENGL=no
2266
2267 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2268 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2269 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e
SC
2270 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2271 DEFAULT_wxUSE_STD_IOSTREAM=no
2272 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2273 DEFAULT_wxUSE_DATETIME=yes
2274 DEFAULT_wxUSE_TIMER=yes
2275 DEFAULT_wxUSE_STOPWATCH=yes
2276 DEFAULT_wxUSE_FILE=yes
2277 DEFAULT_wxUSE_FFILE=yes
07158944 2278 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2279 DEFAULT_wxUSE_TEXTBUFFER=yes
2280 DEFAULT_wxUSE_TEXTFILE=yes
2281 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2282 DEFAULT_wxUSE_MEDIACTRL=no
2283 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2284 DEFAULT_wxUSE_INTL=yes
2285 DEFAULT_wxUSE_CONFIG=yes
2286 DEFAULT_wxUSE_FONTMAP=yes
2287 DEFAULT_wxUSE_STREAMS=yes
2288 DEFAULT_wxUSE_SOCKETS=yes
2289 DEFAULT_wxUSE_OLE=yes
2290 DEFAULT_wxUSE_DATAOBJ=yes
2291 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2292 DEFAULT_wxUSE_JOYSTICK=yes
2293 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2294 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2295 DEFAULT_wxUSE_LONGLONG=yes
2296 DEFAULT_wxUSE_GEOMETRY=yes
2297
2298 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2299 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2300 DEFAULT_wxUSE_POSTSCRIPT=yes
2301
2302 DEFAULT_wxUSE_CLIPBOARD=yes
2303 DEFAULT_wxUSE_TOOLTIPS=yes
2304 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2305 DEFAULT_wxUSE_DRAGIMAGE=yes
2306 DEFAULT_wxUSE_SPLINES=yes
2307
8a7b1113 2308 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2309 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2310 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2311 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2312
2313 DEFAULT_wxUSE_RESOURCES=no
2314 DEFAULT_wxUSE_CONSTRAINTS=yes
2315 DEFAULT_wxUSE_IPC=yes
2316 DEFAULT_wxUSE_HELP=yes
2317 DEFAULT_wxUSE_MS_HTML_HELP=yes
2318 DEFAULT_wxUSE_WXHTML_HELP=yes
2319 DEFAULT_wxUSE_TREELAYOUT=yes
2320 DEFAULT_wxUSE_METAFILE=yes
2321 DEFAULT_wxUSE_MIMETYPE=yes
2322 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2323 DEFAULT_wxUSE_PROTOCOL=yes
2324 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2325 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2326 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2327 DEFAULT_wxUSE_URL=yes
2328
2329 DEFAULT_wxUSE_COMMONDLGS=yes
2330 DEFAULT_wxUSE_CHOICEDLG=yes
2331 DEFAULT_wxUSE_COLOURDLG=yes
2332 DEFAULT_wxUSE_DIRDLG=yes
2333 DEFAULT_wxUSE_FILEDLG=yes
2334 DEFAULT_wxUSE_FINDREPLDLG=yes
2335 DEFAULT_wxUSE_FONTDLG=yes
2336 DEFAULT_wxUSE_MSGDLG=yes
2337 DEFAULT_wxUSE_NUMBERDLG=yes
2338 DEFAULT_wxUSE_TEXTDLG=yes
2339 DEFAULT_wxUSE_SPLASH=yes
2340 DEFAULT_wxUSE_STARTUP_TIPS=yes
2341 DEFAULT_wxUSE_PROGRESSDLG=yes
2342 DEFAULT_wxUSE_WIZARDDLG=yes
2343
2344 DEFAULT_wxUSE_MENUS=yes
2345 DEFAULT_wxUSE_MINIFRAME=yes
2346 DEFAULT_wxUSE_HTML=yes
9a8f0513 2347 DEFAULT_wxUSE_XRC=yes
646b6ec1 2348 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2349 DEFAULT_wxUSE_FILESYSTEM=yes
2350 DEFAULT_wxUSE_FS_INET=yes
2351 DEFAULT_wxUSE_FS_ZIP=yes
2352 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2353 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2354 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2355 DEFAULT_wxUSE_VALIDATORS=yes
2356
2357 DEFAULT_wxUSE_ACCEL=yes
2358 DEFAULT_wxUSE_BUTTON=yes
2359 DEFAULT_wxUSE_BMPBUTTON=yes
2360 DEFAULT_wxUSE_CALCTRL=yes
2361 DEFAULT_wxUSE_CARET=yes
2362 DEFAULT_wxUSE_CHECKBOX=yes
2363 DEFAULT_wxUSE_CHECKLST=yes
2364 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2365 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2366 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2367 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2368 DEFAULT_wxUSE_DISPLAY=yes
2369 DEFAULT_wxUSE_GAUGE=yes
2370 DEFAULT_wxUSE_GRID=yes
2371 DEFAULT_wxUSE_IMAGLIST=yes
2372 DEFAULT_wxUSE_LISTBOOK=yes
2373 DEFAULT_wxUSE_LISTBOX=yes
2374 DEFAULT_wxUSE_LISTCTRL=yes
2375 DEFAULT_wxUSE_NOTEBOOK=yes
2376 DEFAULT_wxUSE_RADIOBOX=yes
2377 DEFAULT_wxUSE_RADIOBTN=yes
2378 DEFAULT_wxUSE_SASH=yes
2379 DEFAULT_wxUSE_SCROLLBAR=yes
2380 DEFAULT_wxUSE_SLIDER=yes
2381 DEFAULT_wxUSE_SPINBTN=yes
2382 DEFAULT_wxUSE_SPINCTRL=yes
2383 DEFAULT_wxUSE_SPLITTER=yes
2384 DEFAULT_wxUSE_STATBMP=yes
2385 DEFAULT_wxUSE_STATBOX=yes
2386 DEFAULT_wxUSE_STATLINE=yes
2387 DEFAULT_wxUSE_STATTEXT=yes
2388 DEFAULT_wxUSE_STATUSBAR=yes
2389 DEFAULT_wxUSE_TABDIALOG=no
2390 DEFAULT_wxUSE_TEXTCTRL=yes
2391 DEFAULT_wxUSE_TOGGLEBTN=yes
2392 DEFAULT_wxUSE_TOOLBAR=yes
2393 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2394 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2395 DEFAULT_wxUSE_TREECTRL=yes
2396 DEFAULT_wxUSE_POPUPWIN=yes
2397 DEFAULT_wxUSE_TIPWINDOW=yes
2398
2399 DEFAULT_wxUSE_UNICODE=no
2400 DEFAULT_wxUSE_UNICODE_MSLU=yes
2401 DEFAULT_wxUSE_WCSRTOMBS=no
2402
2403 DEFAULT_wxUSE_PALETTE=yes
2404 DEFAULT_wxUSE_IMAGE=yes
2405 DEFAULT_wxUSE_GIF=yes
2406 DEFAULT_wxUSE_PCX=yes
2407 DEFAULT_wxUSE_IFF=no
2408 DEFAULT_wxUSE_PNM=yes
2409 DEFAULT_wxUSE_XPM=yes
2410 DEFAULT_wxUSE_ICO_CUR=yes
2411 DEFAULT_wxUSE_ACCESSIBILITY=no
2412
2413 DEFAULT_wxUSE_MONOLITHIC=no
2414 DEFAULT_wxUSE_PLUGINS=no
2415 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2416
2417 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2418fi
2419
2420
2421
2422for toolkit in `echo $ALL_TOOLKITS`; do
2423 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2424 if test "x$LINE" != "x" ; then
2425 has_toolkit_in_cache=1
2426 eval "DEFAULT_$LINE"
2427 eval "CACHE_$toolkit=1"
2428 fi
2429done
2430
2431
2432
2433 enablestring=
2434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2435echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2436 no_cache=0
2437 # Check whether --enable-gui or --disable-gui was given.
2438if test "${enable_gui+set}" = set; then
2439 enableval="$enable_gui"
2440
2441 if test "$enableval" = yes; then
2442 ac_cv_use_gui='wxUSE_GUI=yes'
2443 else
2444 ac_cv_use_gui='wxUSE_GUI=no'
2445 fi
2446
2447else
2448
2449 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2450 if test "x$LINE" != x ; then
2451 eval "DEFAULT_$LINE"
2452 else
2453 no_cache=1
2454 fi
2455
2456 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2457
2458fi;
2459
2460 eval "$ac_cv_use_gui"
2461 if test "$no_cache" != 1; then
2462 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2463 fi
2464
2465 if test "$wxUSE_GUI" = yes; then
2466 echo "$as_me:$LINENO: result: yes" >&5
2467echo "${ECHO_T}yes" >&6
2468 else
2469 echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6
2471 fi
2472
2473
2474 enablestring=
2475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2476echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2477 no_cache=0
2478 # Check whether --enable-monolithic or --disable-monolithic was given.
2479if test "${enable_monolithic+set}" = set; then
2480 enableval="$enable_monolithic"
2481
2482 if test "$enableval" = yes; then
2483 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2484 else
2485 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2486 fi
2487
2488else
2489
2490 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2491 if test "x$LINE" != x ; then
2492 eval "DEFAULT_$LINE"
2493 else
2494 no_cache=1
2495 fi
2496
2497 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2498
2499fi;
2500
2501 eval "$ac_cv_use_monolithic"
2502 if test "$no_cache" != 1; then
2503 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2504 fi
2505
2506 if test "$wxUSE_MONOLITHIC" = yes; then
2507 echo "$as_me:$LINENO: result: yes" >&5
2508echo "${ECHO_T}yes" >&6
2509 else
2510 echo "$as_me:$LINENO: result: no" >&5
2511echo "${ECHO_T}no" >&6
2512 fi
2513
2514
2515 enablestring=
2516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2517echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2518 no_cache=0
2519 # Check whether --enable-plugins or --disable-plugins was given.
2520if test "${enable_plugins+set}" = set; then
2521 enableval="$enable_plugins"
2522
2523 if test "$enableval" = yes; then
2524 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2525 else
2526 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2527 fi
2528
2529else
2530
2531 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2532 if test "x$LINE" != x ; then
2533 eval "DEFAULT_$LINE"
2534 else
2535 no_cache=1
2536 fi
2537
2538 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2539
2540fi;
2541
2542 eval "$ac_cv_use_plugins"
2543 if test "$no_cache" != 1; then
2544 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2545 fi
2546
2547 if test "$wxUSE_PLUGINS" = yes; then
2548 echo "$as_me:$LINENO: result: yes" >&5
2549echo "${ECHO_T}yes" >&6
2550 else
2551 echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6
2553 fi
2554
2555
2556if test "$wxUSE_GUI" = "yes"; then
2557
2558
2559 enablestring=
2560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2561echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2562 no_cache=0
2563 # Check whether --enable-universal or --disable-universal was given.
2564if test "${enable_universal+set}" = set; then
2565 enableval="$enable_universal"
2566
2567 if test "$enableval" = yes; then
2568 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2569 else
2570 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2571 fi
2572
2573else
2574
2575 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2576 if test "x$LINE" != x ; then
2577 eval "DEFAULT_$LINE"
2578 else
2579 no_cache=1
2580 fi
2581
2582 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2583
2584fi;
2585
2586 eval "$ac_cv_use_universal"
2587 if test "$no_cache" != 1; then
2588 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2589 fi
2590
2591 if test "$wxUSE_UNIVERSAL" = yes; then
2592 echo "$as_me:$LINENO: result: yes" >&5
2593echo "${ECHO_T}yes" >&6
2594 else
2595 echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6
2597 fi
2598
2599
2600# Check whether --with-gtk or --without-gtk was given.
2601if test "${with_gtk+set}" = set; then
2602 withval="$with_gtk"
2603 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-motif or --without-motif was given.
2607if test "${with_motif+set}" = set; then
2608 withval="$with_motif"
2609 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2610fi;
2611
2612# Check whether --with-mac or --without-mac was given.
2613if test "${with_mac+set}" = set; then
2614 withval="$with_mac"
c228d3a4 2615 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2616fi;
2617
2618# Check whether --with-cocoa or --without-cocoa was given.
2619if test "${with_cocoa+set}" = set; then
2620 withval="$with_cocoa"
c228d3a4 2621 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2622fi;
2623
2624# Check whether --with-wine or --without-wine was given.
2625if test "${with_wine+set}" = set; then
2626 withval="$with_wine"
2627 wxUSE_WINE="$withval" CACHE_WINE=1
2628fi;
2629
2630# Check whether --with-msw or --without-msw was given.
2631if test "${with_msw+set}" = set; then
2632 withval="$with_msw"
2633 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2634fi;
2635
2636# Check whether --with-pm or --without-pm was given.
2637if test "${with_pm+set}" = set; then
2638 withval="$with_pm"
2639 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2640fi;
2641
2642# Check whether --with-mgl or --without-mgl was given.
2643if test "${with_mgl+set}" = set; then
2644 withval="$with_mgl"
2645 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-microwin or --without-microwin was given.
2649if test "${with_microwin+set}" = set; then
2650 withval="$with_microwin"
2651 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-x11 or --without-x11 was given.
2655if test "${with_x11+set}" = set; then
2656 withval="$with_x11"
2657 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660 enablestring=
2661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2662echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2663 no_cache=0
2664 # Check whether --enable-nanox or --disable-nanox was given.
2665if test "${enable_nanox+set}" = set; then
2666 enableval="$enable_nanox"
2667
2668 if test "$enableval" = yes; then
2669 ac_cv_use_nanox='wxUSE_NANOX=yes'
2670 else
2671 ac_cv_use_nanox='wxUSE_NANOX=no'
2672 fi
2673
2674else
2675
2676 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2677 if test "x$LINE" != x ; then
2678 eval "DEFAULT_$LINE"
2679 else
2680 no_cache=1
2681 fi
2682
2683 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2684
2685fi;
2686
2687 eval "$ac_cv_use_nanox"
2688 if test "$no_cache" != 1; then
2689 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2690 fi
2691
2692 if test "$wxUSE_NANOX" = yes; then
2693 echo "$as_me:$LINENO: result: yes" >&5
2694echo "${ECHO_T}yes" >&6
2695 else
2696 echo "$as_me:$LINENO: result: no" >&5
2697echo "${ECHO_T}no" >&6
2698 fi
2699
2700
2701
2702 enablestring=
2703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2704echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2705 no_cache=0
2706 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2707if test "${enable_gtk2+set}" = set; then
2708 enableval="$enable_gtk2"
2709
2710 if test "$enableval" = yes; then
2711 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2712 else
2713 ac_cv_use_gtk2='wxUSE_GTK2=no'
2714 fi
2715
2716else
2717
2718 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2719 if test "x$LINE" != x ; then
2720 eval "DEFAULT_$LINE"
2721 else
2722 no_cache=1
2723 fi
2724
2725 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2726
2727fi;
2728
2729 eval "$ac_cv_use_gtk2"
2730 if test "$no_cache" != 1; then
2731 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2732 fi
2733
2734 if test "$wxUSE_GTK2" = yes; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736echo "${ECHO_T}yes" >&6
2737 else
2738 echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6
2740 fi
2741
2742
2743 enablestring=
2744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2745echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2746 no_cache=0
2747 # Check whether --enable-gpe or --disable-gpe was given.
2748if test "${enable_gpe+set}" = set; then
2749 enableval="$enable_gpe"
2750
2751 if test "$enableval" = yes; then
2752 ac_cv_use_gpe='wxUSE_GPE=yes'
2753 else
2754 ac_cv_use_gpe='wxUSE_GPE=no'
2755 fi
2756
2757else
2758
2759 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2760 if test "x$LINE" != x ; then
2761 eval "DEFAULT_$LINE"
2762 else
2763 no_cache=1
2764 fi
2765
2766 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2767
2768fi;
2769
2770 eval "$ac_cv_use_gpe"
2771 if test "$no_cache" != 1; then
2772 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2773 fi
2774
2775 if test "$wxUSE_GPE" = yes; then
2776 echo "$as_me:$LINENO: result: yes" >&5
2777echo "${ECHO_T}yes" >&6
2778 else
2779 echo "$as_me:$LINENO: result: no" >&5
2780echo "${ECHO_T}no" >&6
2781 fi
2782
2783
2784
2785 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2786echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2787 no_cache=0
2788
2789# Check whether --with-libpng or --without-libpng was given.
2790if test "${with_libpng+set}" = set; then
2791 withval="$with_libpng"
2792
2793 if test "$withval" = yes; then
2794 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2795 elif test "$withval" = no; then
2796 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2797 elif test "$withval" = sys; then
2798 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2799 elif test "$withval" = builtin; then
2800 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2801 else
2802 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2803echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2804 { (exit 1); exit 1; }; }
2805 fi
2806
2807else
2808
2809 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2810 if test "x$LINE" != x ; then
2811 eval "DEFAULT_$LINE"
2812 else
2813 no_cache=1
2814 fi
2815
2816 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2817
2818fi;
2819
2820 eval "$ac_cv_use_libpng"
2821 if test "$no_cache" != 1; then
2822 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2823 fi
2824
2825 if test "$wxUSE_LIBPNG" = yes; then
2826 echo "$as_me:$LINENO: result: yes" >&5
2827echo "${ECHO_T}yes" >&6
2828 elif test "$wxUSE_LIBPNG" = no; then
2829 echo "$as_me:$LINENO: result: no" >&5
2830echo "${ECHO_T}no" >&6
2831 elif test "$wxUSE_LIBPNG" = sys; then
2832 echo "$as_me:$LINENO: result: system version" >&5
2833echo "${ECHO_T}system version" >&6
2834 elif test "$wxUSE_LIBPNG" = builtin; then
2835 echo "$as_me:$LINENO: result: builtin version" >&5
2836echo "${ECHO_T}builtin version" >&6
2837 else
2838 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2839echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2840 { (exit 1); exit 1; }; }
2841 fi
2842
2843
2844 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2845echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2846 no_cache=0
2847
2848# Check whether --with-libjpeg or --without-libjpeg was given.
2849if test "${with_libjpeg+set}" = set; then
2850 withval="$with_libjpeg"
2851
2852 if test "$withval" = yes; then
2853 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2854 elif test "$withval" = no; then
2855 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2856 elif test "$withval" = sys; then
2857 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2858 elif test "$withval" = builtin; then
2859 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2860 else
2861 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2862echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2863 { (exit 1); exit 1; }; }
2864 fi
2865
2866else
2867
2868 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2876
2877fi;
2878
2879 eval "$ac_cv_use_libjpeg"
2880 if test "$no_cache" != 1; then
2881 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2882 fi
2883
2884 if test "$wxUSE_LIBJPEG" = yes; then
2885 echo "$as_me:$LINENO: result: yes" >&5
2886echo "${ECHO_T}yes" >&6
2887 elif test "$wxUSE_LIBJPEG" = no; then
2888 echo "$as_me:$LINENO: result: no" >&5
2889echo "${ECHO_T}no" >&6
2890 elif test "$wxUSE_LIBJPEG" = sys; then
2891 echo "$as_me:$LINENO: result: system version" >&5
2892echo "${ECHO_T}system version" >&6
2893 elif test "$wxUSE_LIBJPEG" = builtin; then
2894 echo "$as_me:$LINENO: result: builtin version" >&5
2895echo "${ECHO_T}builtin version" >&6
2896 else
2897 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2898echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2899 { (exit 1); exit 1; }; }
2900 fi
2901
2902
2903 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2904echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2905 no_cache=0
2906
2907# Check whether --with-libtiff or --without-libtiff was given.
2908if test "${with_libtiff+set}" = set; then
2909 withval="$with_libtiff"
2910
2911 if test "$withval" = yes; then
2912 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2913 elif test "$withval" = no; then
2914 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2915 elif test "$withval" = sys; then
2916 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2917 elif test "$withval" = builtin; then
2918 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2919 else
2920 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2921echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2922 { (exit 1); exit 1; }; }
2923 fi
2924
2925else
2926
2927 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2928 if test "x$LINE" != x ; then
2929 eval "DEFAULT_$LINE"
2930 else
2931 no_cache=1
2932 fi
2933
2934 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2935
2936fi;
2937
2938 eval "$ac_cv_use_libtiff"
2939 if test "$no_cache" != 1; then
2940 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2941 fi
2942
2943 if test "$wxUSE_LIBTIFF" = yes; then
2944 echo "$as_me:$LINENO: result: yes" >&5
2945echo "${ECHO_T}yes" >&6
2946 elif test "$wxUSE_LIBTIFF" = no; then
2947 echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6
2949 elif test "$wxUSE_LIBTIFF" = sys; then
2950 echo "$as_me:$LINENO: result: system version" >&5
2951echo "${ECHO_T}system version" >&6
2952 elif test "$wxUSE_LIBTIFF" = builtin; then
2953 echo "$as_me:$LINENO: result: builtin version" >&5
2954echo "${ECHO_T}builtin version" >&6
2955 else
2956 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2957echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2958 { (exit 1); exit 1; }; }
2959 fi
2960
2961
2962 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2963echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2964 no_cache=0
2965
2966# Check whether --with-libxpm or --without-libxpm was given.
2967if test "${with_libxpm+set}" = set; then
2968 withval="$with_libxpm"
2969
2970 if test "$withval" = yes; then
2971 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2972 elif test "$withval" = no; then
2973 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2974 elif test "$withval" = sys; then
2975 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2976 elif test "$withval" = builtin; then
2977 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2978 else
2979 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2980echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2981 { (exit 1); exit 1; }; }
2982 fi
2983
2984else
2985
2986 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2994
2995fi;
2996
2997 eval "$ac_cv_use_libxpm"
2998 if test "$no_cache" != 1; then
2999 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3000 fi
3001
3002 if test "$wxUSE_LIBXPM" = yes; then
3003 echo "$as_me:$LINENO: result: yes" >&5
3004echo "${ECHO_T}yes" >&6
3005 elif test "$wxUSE_LIBXPM" = no; then
3006 echo "$as_me:$LINENO: result: no" >&5
3007echo "${ECHO_T}no" >&6
3008 elif test "$wxUSE_LIBXPM" = sys; then
3009 echo "$as_me:$LINENO: result: system version" >&5
3010echo "${ECHO_T}system version" >&6
3011 elif test "$wxUSE_LIBXPM" = builtin; then
3012 echo "$as_me:$LINENO: result: builtin version" >&5
3013echo "${ECHO_T}builtin version" >&6
3014 else
3015 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3016echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3017 { (exit 1); exit 1; }; }
3018 fi
3019
3020
3021 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3022echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3023 no_cache=0
3024
3025# Check whether --with-libmspack or --without-libmspack was given.
3026if test "${with_libmspack+set}" = set; then
3027 withval="$with_libmspack"
3028
3029 if test "$withval" = yes; then
3030 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3031 else
3032 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3033 fi
3034
3035else
3036
3037 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3038 if test "x$LINE" != x ; then
3039 eval "DEFAULT_$LINE"
3040 else
3041 no_cache=1
3042 fi
3043
3044 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3045
3046fi;
3047
3048 eval "$ac_cv_use_libmspack"
3049 if test "$no_cache" != 1; then
3050 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3051 fi
3052
3053 if test "$wxUSE_LIBMSPACK" = yes; then
3054 echo "$as_me:$LINENO: result: yes" >&5
3055echo "${ECHO_T}yes" >&6
3056 else
3057 echo "$as_me:$LINENO: result: no" >&5
3058echo "${ECHO_T}no" >&6
3059 fi
3060
3061
3062 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3063echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3064 no_cache=0
3065
3066# Check whether --with-sdl or --without-sdl was given.
3067if test "${with_sdl+set}" = set; then
3068 withval="$with_sdl"
3069
3070 if test "$withval" = yes; then
3071 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3072 else
3073 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3074 fi
3075
3076else
3077
3078 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3079 if test "x$LINE" != x ; then
3080 eval "DEFAULT_$LINE"
3081 else
3082 no_cache=1
3083 fi
3084
3085 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3086
3087fi;
3088
3089 eval "$ac_cv_use_sdl"
3090 if test "$no_cache" != 1; then
3091 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3092 fi
3093
3094 if test "$wxUSE_LIBSDL" = yes; then
3095 echo "$as_me:$LINENO: result: yes" >&5
3096echo "${ECHO_T}yes" >&6
3097 else
3098 echo "$as_me:$LINENO: result: no" >&5
3099echo "${ECHO_T}no" >&6
3100 fi
3101
3102
d1c38808
VZ
3103 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3104echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3105 no_cache=0
3106
3107# Check whether --with-gnomeprint or --without-gnomeprint was given.
3108if test "${with_gnomeprint+set}" = set; then
3109 withval="$with_gnomeprint"
3110
3111 if test "$withval" = yes; then
3112 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3113 else
3114 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3115 fi
3116
3117else
3118
3119 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3120 if test "x$LINE" != x ; then
3121 eval "DEFAULT_$LINE"
3122 else
3123 no_cache=1
3124 fi
3125
3126 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3127
3128fi;
3129
3130 eval "$ac_cv_use_gnomeprint"
3131 if test "$no_cache" != 1; then
3132 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3133 fi
3134
3135 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3136 echo "$as_me:$LINENO: result: yes" >&5
3137echo "${ECHO_T}yes" >&6
3138 else
3139 echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6
3141 fi
3142
3143
a848cd7e
SC
3144 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3145echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3146 no_cache=0
3147
3148# Check whether --with-opengl or --without-opengl was given.
3149if test "${with_opengl+set}" = set; then
3150 withval="$with_opengl"
3151
3152 if test "$withval" = yes; then
3153 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3154 else
3155 ac_cv_use_opengl='wxUSE_OPENGL=no'
3156 fi
3157
3158else
3159
3160 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3161 if test "x$LINE" != x ; then
3162 eval "DEFAULT_$LINE"
3163 else
3164 no_cache=1
3165 fi
3166
3167 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3168
3169fi;
3170
3171 eval "$ac_cv_use_opengl"
3172 if test "$no_cache" != 1; then
3173 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3174 fi
3175
3176 if test "$wxUSE_OPENGL" = yes; then
3177 echo "$as_me:$LINENO: result: yes" >&5
3178echo "${ECHO_T}yes" >&6
3179 else
3180 echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
3182 fi
3183
3184
3185fi
3186
3187
3188 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3189echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3190 no_cache=0
3191
3192# Check whether --with-dmalloc or --without-dmalloc was given.
3193if test "${with_dmalloc+set}" = set; then
3194 withval="$with_dmalloc"
3195
3196 if test "$withval" = yes; then
3197 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3198 else
3199 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3200 fi
3201
3202else
3203
3204 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3205 if test "x$LINE" != x ; then
3206 eval "DEFAULT_$LINE"
3207 else
3208 no_cache=1
3209 fi
3210
3211 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3212
3213fi;
3214
3215 eval "$ac_cv_use_dmalloc"
3216 if test "$no_cache" != 1; then
3217 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3218 fi
3219
3220 if test "$wxUSE_DMALLOC" = yes; then
3221 echo "$as_me:$LINENO: result: yes" >&5
3222echo "${ECHO_T}yes" >&6
3223 else
3224 echo "$as_me:$LINENO: result: no" >&5
3225echo "${ECHO_T}no" >&6
3226 fi
3227
3228
3229 echo "$as_me:$LINENO: checking for --with-regex" >&5
3230echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3231 no_cache=0
3232
3233# Check whether --with-regex or --without-regex was given.
3234if test "${with_regex+set}" = set; then
3235 withval="$with_regex"
3236
3237 if test "$withval" = yes; then
3238 ac_cv_use_regex='wxUSE_REGEX=yes'
3239 elif test "$withval" = no; then
3240 ac_cv_use_regex='wxUSE_REGEX=no'
3241 elif test "$withval" = sys; then
3242 ac_cv_use_regex='wxUSE_REGEX=sys'
3243 elif test "$withval" = builtin; then
3244 ac_cv_use_regex='wxUSE_REGEX=builtin'
3245 else
3246 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3247echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3248 { (exit 1); exit 1; }; }
3249 fi
3250
3251else
3252
3253 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3254 if test "x$LINE" != x ; then
3255 eval "DEFAULT_$LINE"
3256 else
3257 no_cache=1
3258 fi
3259
3260 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3261
3262fi;
3263
3264 eval "$ac_cv_use_regex"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_REGEX" = yes; then
3270 echo "$as_me:$LINENO: result: yes" >&5
3271echo "${ECHO_T}yes" >&6
3272 elif test "$wxUSE_REGEX" = no; then
3273 echo "$as_me:$LINENO: result: no" >&5
3274echo "${ECHO_T}no" >&6
3275 elif test "$wxUSE_REGEX" = sys; then
3276 echo "$as_me:$LINENO: result: system version" >&5
3277echo "${ECHO_T}system version" >&6
3278 elif test "$wxUSE_REGEX" = builtin; then
3279 echo "$as_me:$LINENO: result: builtin version" >&5
3280echo "${ECHO_T}builtin version" >&6
3281 else
3282 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3283echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287
3288 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3289echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3290 no_cache=0
3291
3292# Check whether --with-zlib or --without-zlib was given.
3293if test "${with_zlib+set}" = set; then
3294 withval="$with_zlib"
3295
3296 if test "$withval" = yes; then
3297 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3298 elif test "$withval" = no; then
3299 ac_cv_use_zlib='wxUSE_ZLIB=no'
3300 elif test "$withval" = sys; then
3301 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3302 elif test "$withval" = builtin; then
3303 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3304 else
3305 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3306echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3307 { (exit 1); exit 1; }; }
3308 fi
3309
3310else
3311
3312 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3313 if test "x$LINE" != x ; then
3314 eval "DEFAULT_$LINE"
3315 else
3316 no_cache=1
3317 fi
3318
3319 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3320
3321fi;
3322
3323 eval "$ac_cv_use_zlib"
3324 if test "$no_cache" != 1; then
3325 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3326 fi
3327
3328 if test "$wxUSE_ZLIB" = yes; then
3329 echo "$as_me:$LINENO: result: yes" >&5
3330echo "${ECHO_T}yes" >&6
3331 elif test "$wxUSE_ZLIB" = no; then
3332 echo "$as_me:$LINENO: result: no" >&5
3333echo "${ECHO_T}no" >&6
3334 elif test "$wxUSE_ZLIB" = sys; then
3335 echo "$as_me:$LINENO: result: system version" >&5
3336echo "${ECHO_T}system version" >&6
3337 elif test "$wxUSE_ZLIB" = builtin; then
3338 echo "$as_me:$LINENO: result: builtin version" >&5
3339echo "${ECHO_T}builtin version" >&6
3340 else
3341 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3342echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3343 { (exit 1); exit 1; }; }
3344 fi
3345
3346
3347 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3348echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3349 no_cache=0
3350
3351# Check whether --with-odbc or --without-odbc was given.
3352if test "${with_odbc+set}" = set; then
3353 withval="$with_odbc"
3354
3355 if test "$withval" = yes; then
3356 ac_cv_use_odbc='wxUSE_ODBC=yes'
3357 elif test "$withval" = no; then
3358 ac_cv_use_odbc='wxUSE_ODBC=no'
3359 elif test "$withval" = sys; then
3360 ac_cv_use_odbc='wxUSE_ODBC=sys'
3361 elif test "$withval" = builtin; then
3362 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3363 else
3364 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3365echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3366 { (exit 1); exit 1; }; }
3367 fi
3368
3369else
3370
3371 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3379
3380fi;
3381
3382 eval "$ac_cv_use_odbc"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_ODBC" = yes; then
3388 echo "$as_me:$LINENO: result: yes" >&5
3389echo "${ECHO_T}yes" >&6
3390 elif test "$wxUSE_ODBC" = no; then
3391 echo "$as_me:$LINENO: result: no" >&5
3392echo "${ECHO_T}no" >&6
3393 elif test "$wxUSE_ODBC" = sys; then
3394 echo "$as_me:$LINENO: result: system version" >&5
3395echo "${ECHO_T}system version" >&6
3396 elif test "$wxUSE_ODBC" = builtin; then
3397 echo "$as_me:$LINENO: result: builtin version" >&5
3398echo "${ECHO_T}builtin version" >&6
3399 else
3400 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3401echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3402 { (exit 1); exit 1; }; }
3403 fi
3404
3405
3406 echo "$as_me:$LINENO: checking for --with-expat" >&5
3407echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3408 no_cache=0
3409
3410# Check whether --with-expat or --without-expat was given.
3411if test "${with_expat+set}" = set; then
3412 withval="$with_expat"
3413
3414 if test "$withval" = yes; then
3415 ac_cv_use_expat='wxUSE_EXPAT=yes'
3416 elif test "$withval" = no; then
3417 ac_cv_use_expat='wxUSE_EXPAT=no'
3418 elif test "$withval" = sys; then
3419 ac_cv_use_expat='wxUSE_EXPAT=sys'
3420 elif test "$withval" = builtin; then
3421 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3422 else
3423 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3424echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3425 { (exit 1); exit 1; }; }
3426 fi
3427
3428else
3429
3430 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3431 if test "x$LINE" != x ; then
3432 eval "DEFAULT_$LINE"
3433 else
3434 no_cache=1
3435 fi
3436
3437 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3438
3439fi;
3440
3441 eval "$ac_cv_use_expat"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_EXPAT" = yes; then
3447 echo "$as_me:$LINENO: result: yes" >&5
3448echo "${ECHO_T}yes" >&6
3449 elif test "$wxUSE_EXPAT" = no; then
3450 echo "$as_me:$LINENO: result: no" >&5
3451echo "${ECHO_T}no" >&6
3452 elif test "$wxUSE_EXPAT" = sys; then
3453 echo "$as_me:$LINENO: result: system version" >&5
3454echo "${ECHO_T}system version" >&6
3455 elif test "$wxUSE_EXPAT" = builtin; then
3456 echo "$as_me:$LINENO: result: builtin version" >&5
3457echo "${ECHO_T}builtin version" >&6
3458 else
3459 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3460echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3461 { (exit 1); exit 1; }; }
3462 fi
3463
3464
3465
3466
3467 enablestring=
3468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3469echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3470 no_cache=0
3471 # Check whether --enable-shared or --disable-shared was given.
3472if test "${enable_shared+set}" = set; then
3473 enableval="$enable_shared"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_shared='wxUSE_SHARED=yes'
3477 else
3478 ac_cv_use_shared='wxUSE_SHARED=no'
3479 fi
3480
3481else
3482
3483 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3491
3492fi;
3493
3494 eval "$ac_cv_use_shared"
3495 if test "$no_cache" != 1; then
3496 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3497 fi
3498
3499 if test "$wxUSE_SHARED" = yes; then
3500 echo "$as_me:$LINENO: result: yes" >&5
3501echo "${ECHO_T}yes" >&6
3502 else
3503 echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505 fi
3506
3507
3508 enablestring=
3509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3510echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3511 no_cache=0
3512 # Check whether --enable-optimise or --disable-optimise was given.
3513if test "${enable_optimise+set}" = set; then
3514 enableval="$enable_optimise"
3515
3516 if test "$enableval" = yes; then
3517 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3518 else
3519 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3520 fi
3521
3522else
3523
3524 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3532
3533fi;
3534
3535 eval "$ac_cv_use_optimise"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_OPTIMISE" = yes; then
3541 echo "$as_me:$LINENO: result: yes" >&5
3542echo "${ECHO_T}yes" >&6
3543 else
3544 echo "$as_me:$LINENO: result: no" >&5
3545echo "${ECHO_T}no" >&6
3546 fi
3547
3548
3549 enablestring=
3550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3551echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3552 no_cache=0
3553 # Check whether --enable-debug or --disable-debug was given.
3554if test "${enable_debug+set}" = set; then
3555 enableval="$enable_debug"
3556
3557 if test "$enableval" = yes; then
3558 ac_cv_use_debug='wxUSE_DEBUG=yes'
3559 else
3560 ac_cv_use_debug='wxUSE_DEBUG=no'
3561 fi
3562
3563else
3564
3565 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3573
3574fi;
3575
3576 eval "$ac_cv_use_debug"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_DEBUG" = yes; then
3582 echo "$as_me:$LINENO: result: yes" >&5
3583echo "${ECHO_T}yes" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
3587 fi
3588
3589
3590 enablestring=
3591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3592echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3593 no_cache=0
3594 # Check whether --enable-stl or --disable-stl was given.
3595if test "${enable_stl+set}" = set; then
3596 enableval="$enable_stl"
3597
3598 if test "$enableval" = yes; then
3599 ac_cv_use_stl='wxUSE_STL=yes'
3600 else
3601 ac_cv_use_stl='wxUSE_STL=no'
3602 fi
3603
3604else
3605
3606 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3607 if test "x$LINE" != x ; then
3608 eval "DEFAULT_$LINE"
3609 else
3610 no_cache=1
3611 fi
3612
3613 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3614
3615fi;
3616
3617 eval "$ac_cv_use_stl"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_STL" = yes; then
3623 echo "$as_me:$LINENO: result: yes" >&5
3624echo "${ECHO_T}yes" >&6
3625 else
3626 echo "$as_me:$LINENO: result: no" >&5
3627echo "${ECHO_T}no" >&6
3628 fi
3629
3630if test "$USE_OS2" = "1"; then
69120ee4 3631 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3632
3633 enablestring=
3634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3635echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3636 no_cache=0
3637 # Check whether --enable-omf or --disable-omf was given.
3638if test "${enable_omf+set}" = set; then
3639 enableval="$enable_omf"
3640
3641 if test "$enableval" = yes; then
3642 ac_cv_use_omf='wxUSE_OMF=yes'
3643 else
3644 ac_cv_use_omf='wxUSE_OMF=no'
3645 fi
3646
3647else
3648
3649 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3650 if test "x$LINE" != x ; then
3651 eval "DEFAULT_$LINE"
3652 else
3653 no_cache=1
3654 fi
3655
3656 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3657
3658fi;
3659
3660 eval "$ac_cv_use_omf"
3661 if test "$no_cache" != 1; then
3662 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3663 fi
3664
3665 if test "$wxUSE_OMF" = yes; then
3666 echo "$as_me:$LINENO: result: yes" >&5
3667echo "${ECHO_T}yes" >&6
3668 else
3669 echo "$as_me:$LINENO: result: no" >&5
3670echo "${ECHO_T}no" >&6
3671 fi
3672
3673fi
3674
3675if test "$wxUSE_DEBUG" = "yes"; then
3676 DEFAULT_wxUSE_DEBUG_FLAG=yes
3677 DEFAULT_wxUSE_DEBUG_INFO=yes
3678 BUILD=debug
3679elif test "$wxUSE_DEBUG" = "no"; then
3680 DEFAULT_wxUSE_DEBUG_FLAG=no
3681 DEFAULT_wxUSE_DEBUG_INFO=no
3682 BUILD=release
3683fi
3684
3685
3686 enablestring=
3687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3688echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3689 no_cache=0
3690 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3691if test "${enable_debug_flag+set}" = set; then
3692 enableval="$enable_debug_flag"
3693
3694 if test "$enableval" = yes; then
3695 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3696 else
3697 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3698 fi
3699
3700else
3701
3702 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3703 if test "x$LINE" != x ; then
3704 eval "DEFAULT_$LINE"
3705 else
3706 no_cache=1
3707 fi
3708
3709 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3710
3711fi;
3712
3713 eval "$ac_cv_use_debug_flag"
3714 if test "$no_cache" != 1; then
3715 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3716 fi
3717
3718 if test "$wxUSE_DEBUG_FLAG" = yes; then
3719 echo "$as_me:$LINENO: result: yes" >&5
3720echo "${ECHO_T}yes" >&6
3721 else
3722 echo "$as_me:$LINENO: result: no" >&5
3723echo "${ECHO_T}no" >&6
3724 fi
3725
3726
3727 enablestring=
3728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3729echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3730 no_cache=0
3731 # Check whether --enable-debug_info or --disable-debug_info was given.
3732if test "${enable_debug_info+set}" = set; then
3733 enableval="$enable_debug_info"
3734
3735 if test "$enableval" = yes; then
3736 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3737 else
3738 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3739 fi
3740
3741else
3742
3743 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3744 if test "x$LINE" != x ; then
3745 eval "DEFAULT_$LINE"
3746 else
3747 no_cache=1
3748 fi
3749
3750 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3751
3752fi;
3753
3754 eval "$ac_cv_use_debug_info"
3755 if test "$no_cache" != 1; then
3756 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3757 fi
3758
3759 if test "$wxUSE_DEBUG_INFO" = yes; then
3760 echo "$as_me:$LINENO: result: yes" >&5
3761echo "${ECHO_T}yes" >&6
3762 else
3763 echo "$as_me:$LINENO: result: no" >&5
3764echo "${ECHO_T}no" >&6
3765 fi
3766
3767
3768 enablestring=
3769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3770echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3771 no_cache=0
3772 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3773if test "${enable_debug_gdb+set}" = set; then
3774 enableval="$enable_debug_gdb"
3775
3776 if test "$enableval" = yes; then
3777 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3778 else
3779 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3780 fi
3781
3782else
3783
3784 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3785 if test "x$LINE" != x ; then
3786 eval "DEFAULT_$LINE"
3787 else
3788 no_cache=1
3789 fi
3790
3791 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3792
3793fi;
3794
3795 eval "$ac_cv_use_debug_gdb"
3796 if test "$no_cache" != 1; then
3797 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3798 fi
3799
3800 if test "$wxUSE_DEBUG_GDB" = yes; then
3801 echo "$as_me:$LINENO: result: yes" >&5
3802echo "${ECHO_T}yes" >&6
3803 else
3804 echo "$as_me:$LINENO: result: no" >&5
3805echo "${ECHO_T}no" >&6
3806 fi
3807
3808
3809 enablestring=
3810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3811echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3812 no_cache=0
3813 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3814if test "${enable_debug_cntxt+set}" = set; then
3815 enableval="$enable_debug_cntxt"
3816
3817 if test "$enableval" = yes; then
3818 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3819 else
3820 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3821 fi
3822
3823else
3824
3825 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3826 if test "x$LINE" != x ; then
3827 eval "DEFAULT_$LINE"
3828 else
3829 no_cache=1
3830 fi
3831
3832 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3833
3834fi;
3835
3836 eval "$ac_cv_use_debug_cntxt"
3837 if test "$no_cache" != 1; then
3838 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3839 fi
3840
3841 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3842 echo "$as_me:$LINENO: result: yes" >&5
3843echo "${ECHO_T}yes" >&6
3844 else
3845 echo "$as_me:$LINENO: result: no" >&5
3846echo "${ECHO_T}no" >&6
3847 fi
3848
3849
3850 enablestring=
3851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3852echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3853 no_cache=0
3854 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3855if test "${enable_mem_tracing+set}" = set; then
3856 enableval="$enable_mem_tracing"
3857
3858 if test "$enableval" = yes; then
3859 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3860 else
3861 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3862 fi
3863
3864else
3865
3866 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3867 if test "x$LINE" != x ; then
3868 eval "DEFAULT_$LINE"
3869 else
3870 no_cache=1
3871 fi
3872
3873 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3874
3875fi;
3876
3877 eval "$ac_cv_use_mem_tracing"
3878 if test "$no_cache" != 1; then
3879 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3880 fi
3881
3882 if test "$wxUSE_MEM_TRACING" = yes; then
3883 echo "$as_me:$LINENO: result: yes" >&5
3884echo "${ECHO_T}yes" >&6
3885 else
3886 echo "$as_me:$LINENO: result: no" >&5
3887echo "${ECHO_T}no" >&6
3888 fi
3889
3890
3891 enablestring=
3892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3893echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3894 no_cache=0
3895 # Check whether --enable-profile or --disable-profile was given.
3896if test "${enable_profile+set}" = set; then
3897 enableval="$enable_profile"
3898
3899 if test "$enableval" = yes; then
3900 ac_cv_use_profile='wxUSE_PROFILE=yes'
3901 else
3902 ac_cv_use_profile='wxUSE_PROFILE=no'
3903 fi
3904
3905else
3906
3907 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3908 if test "x$LINE" != x ; then
3909 eval "DEFAULT_$LINE"
3910 else
3911 no_cache=1
3912 fi
3913
3914 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3915
3916fi;
3917
3918 eval "$ac_cv_use_profile"
3919 if test "$no_cache" != 1; then
3920 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3921 fi
3922
3923 if test "$wxUSE_PROFILE" = yes; then
3924 echo "$as_me:$LINENO: result: yes" >&5
3925echo "${ECHO_T}yes" >&6
3926 else
3927 echo "$as_me:$LINENO: result: no" >&5
3928echo "${ECHO_T}no" >&6
3929 fi
3930
3931
3932 enablestring=
3933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3934echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3935 no_cache=0
3936 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3937if test "${enable_no_rtti+set}" = set; then
3938 enableval="$enable_no_rtti"
3939
3940 if test "$enableval" = yes; then
3941 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3942 else
3943 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3944 fi
3945
3946else
3947
3948 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3949 if test "x$LINE" != x ; then
3950 eval "DEFAULT_$LINE"
3951 else
3952 no_cache=1
3953 fi
3954
3955 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3956
3957fi;
3958
3959 eval "$ac_cv_use_no_rtti"
3960 if test "$no_cache" != 1; then
3961 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3962 fi
3963
3964 if test "$wxUSE_NO_RTTI" = yes; then
3965 echo "$as_me:$LINENO: result: yes" >&5
3966echo "${ECHO_T}yes" >&6
3967 else
3968 echo "$as_me:$LINENO: result: no" >&5
3969echo "${ECHO_T}no" >&6
3970 fi
3971
3972
3973 enablestring=
3974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3975echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3976 no_cache=0
3977 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3978if test "${enable_no_exceptions+set}" = set; then
3979 enableval="$enable_no_exceptions"
3980
3981 if test "$enableval" = yes; then
3982 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3983 else
3984 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3985 fi
3986
3987else
3988
3989 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3990 if test "x$LINE" != x ; then
3991 eval "DEFAULT_$LINE"
3992 else
3993 no_cache=1
3994 fi
3995
3996 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3997
3998fi;
3999
4000 eval "$ac_cv_use_no_exceptions"
4001 if test "$no_cache" != 1; then
4002 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4003 fi
4004
4005 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4006 echo "$as_me:$LINENO: result: yes" >&5
4007echo "${ECHO_T}yes" >&6
4008 else
4009 echo "$as_me:$LINENO: result: no" >&5
4010echo "${ECHO_T}no" >&6
4011 fi
4012
4013
4014 enablestring=
4015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4016echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4017 no_cache=0
4018 # Check whether --enable-permissive or --disable-permissive was given.
4019if test "${enable_permissive+set}" = set; then
4020 enableval="$enable_permissive"
4021
4022 if test "$enableval" = yes; then
4023 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4024 else
4025 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4026 fi
4027
4028else
4029
4030 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4031 if test "x$LINE" != x ; then
4032 eval "DEFAULT_$LINE"
4033 else
4034 no_cache=1
4035 fi
4036
4037 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4038
4039fi;
4040
4041 eval "$ac_cv_use_permissive"
4042 if test "$no_cache" != 1; then
4043 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4044 fi
4045
4046 if test "$wxUSE_PERMISSIVE" = yes; then
4047 echo "$as_me:$LINENO: result: yes" >&5
4048echo "${ECHO_T}yes" >&6
4049 else
4050 echo "$as_me:$LINENO: result: no" >&5
4051echo "${ECHO_T}no" >&6
4052 fi
4053
4054
4055 enablestring=
4056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4057echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4058 no_cache=0
4059 # Check whether --enable-no_deps or --disable-no_deps was given.
4060if test "${enable_no_deps+set}" = set; then
4061 enableval="$enable_no_deps"
4062
4063 if test "$enableval" = yes; then
4064 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4065 else
4066 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4067 fi
4068
4069else
4070
4071 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4079
4080fi;
4081
4082 eval "$ac_cv_use_no_deps"
4083 if test "$no_cache" != 1; then
4084 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4085 fi
4086
4087 if test "$wxUSE_NO_DEPS" = yes; then
4088 echo "$as_me:$LINENO: result: yes" >&5
4089echo "${ECHO_T}yes" >&6
4090 else
4091 echo "$as_me:$LINENO: result: no" >&5
4092echo "${ECHO_T}no" >&6
4093 fi
4094
4095
4096
4097 enablestring=
4098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4099echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4100 no_cache=0
4101 # Check whether --enable-compat22 or --disable-compat22 was given.
4102if test "${enable_compat22+set}" = set; then
4103 enableval="$enable_compat22"
4104
4105 if test "$enableval" = yes; then
4106 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4107 else
4108 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4109 fi
4110
4111else
4112
4113 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4114 if test "x$LINE" != x ; then
4115 eval "DEFAULT_$LINE"
4116 else
4117 no_cache=1
4118 fi
4119
4120 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4121
4122fi;
4123
4124 eval "$ac_cv_use_compat22"
4125 if test "$no_cache" != 1; then
4126 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4127 fi
4128
4129 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4130 echo "$as_me:$LINENO: result: yes" >&5
4131echo "${ECHO_T}yes" >&6
4132 else
4133 echo "$as_me:$LINENO: result: no" >&5
4134echo "${ECHO_T}no" >&6
4135 fi
4136
4137
4138 enablestring=disable
4139 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4140echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4141 no_cache=0
4142 # Check whether --enable-compat24 or --disable-compat24 was given.
4143if test "${enable_compat24+set}" = set; then
4144 enableval="$enable_compat24"
4145
4146 if test "$enableval" = yes; then
4147 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4148 else
4149 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4150 fi
4151
4152else
4153
4154 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4155 if test "x$LINE" != x ; then
4156 eval "DEFAULT_$LINE"
4157 else
4158 no_cache=1
4159 fi
4160
4161 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4162
4163fi;
4164
4165 eval "$ac_cv_use_compat24"
4166 if test "$no_cache" != 1; then
4167 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4168 fi
4169
4170 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4171 echo "$as_me:$LINENO: result: yes" >&5
4172echo "${ECHO_T}yes" >&6
4173 else
4174 echo "$as_me:$LINENO: result: no" >&5
4175echo "${ECHO_T}no" >&6
4176 fi
4177
4178
ffa0583f
RL
4179
4180 enablestring=
4181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4182echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4183 no_cache=0
4184 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4185if test "${enable_rpath+set}" = set; then
4186 enableval="$enable_rpath"
ffa0583f
RL
4187
4188 if test "$enableval" = yes; then
4189 ac_cv_use_rpath='wxUSE_RPATH=yes'
4190 else
4191 ac_cv_use_rpath='wxUSE_RPATH=no'
4192 fi
4193
4194else
4195
4196 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4197 if test "x$LINE" != x ; then
4198 eval "DEFAULT_$LINE"
4199 else
4200 no_cache=1
4201 fi
4202
4203 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4204
a848cd7e
SC
4205fi;
4206
ffa0583f
RL
4207 eval "$ac_cv_use_rpath"
4208 if test "$no_cache" != 1; then
4209 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4210 fi
4211
4212 if test "$wxUSE_RPATH" = yes; then
4213 echo "$as_me:$LINENO: result: yes" >&5
4214echo "${ECHO_T}yes" >&6
4215 else
4216 echo "$as_me:$LINENO: result: no" >&5
4217echo "${ECHO_T}no" >&6
4218 fi
4219
a848cd7e
SC
4220
4221
4222
4223
4224 enablestring=
4225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4226echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4227 no_cache=0
4228 # Check whether --enable-intl or --disable-intl was given.
4229if test "${enable_intl+set}" = set; then
4230 enableval="$enable_intl"
4231
4232 if test "$enableval" = yes; then
4233 ac_cv_use_intl='wxUSE_INTL=yes'
4234 else
4235 ac_cv_use_intl='wxUSE_INTL=no'
4236 fi
4237
4238else
4239
4240 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4241 if test "x$LINE" != x ; then
4242 eval "DEFAULT_$LINE"
4243 else
4244 no_cache=1
4245 fi
4246
4247 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4248
4249fi;
4250
4251 eval "$ac_cv_use_intl"
4252 if test "$no_cache" != 1; then
4253 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4254 fi
4255
4256 if test "$wxUSE_INTL" = yes; then
4257 echo "$as_me:$LINENO: result: yes" >&5
4258echo "${ECHO_T}yes" >&6
4259 else
4260 echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
4262 fi
4263
4264
4265 enablestring=
4266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4267echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4268 no_cache=0
4269 # Check whether --enable-config or --disable-config was given.
4270if test "${enable_config+set}" = set; then
4271 enableval="$enable_config"
4272
4273 if test "$enableval" = yes; then
4274 ac_cv_use_config='wxUSE_CONFIG=yes'
4275 else
4276 ac_cv_use_config='wxUSE_CONFIG=no'
4277 fi
4278
4279else
4280
4281 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4282 if test "x$LINE" != x ; then
4283 eval "DEFAULT_$LINE"
4284 else
4285 no_cache=1
4286 fi
4287
4288 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4289
4290fi;
4291
4292 eval "$ac_cv_use_config"
4293 if test "$no_cache" != 1; then
4294 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4295 fi
4296
4297 if test "$wxUSE_CONFIG" = yes; then
4298 echo "$as_me:$LINENO: result: yes" >&5
4299echo "${ECHO_T}yes" >&6
4300 else
4301 echo "$as_me:$LINENO: result: no" >&5
4302echo "${ECHO_T}no" >&6
4303 fi
4304
4305
4306
4307 enablestring=
4308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4309echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4310 no_cache=0
4311 # Check whether --enable-protocols or --disable-protocols was given.
4312if test "${enable_protocols+set}" = set; then
4313 enableval="$enable_protocols"
4314
4315 if test "$enableval" = yes; then
4316 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4317 else
4318 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4319 fi
4320
4321else
4322
4323 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4324 if test "x$LINE" != x ; then
4325 eval "DEFAULT_$LINE"
4326 else
4327 no_cache=1
4328 fi
4329
4330 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4331
4332fi;
4333
4334 eval "$ac_cv_use_protocols"
4335 if test "$no_cache" != 1; then
4336 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4337 fi
4338
4339 if test "$wxUSE_PROTOCOL" = yes; then
4340 echo "$as_me:$LINENO: result: yes" >&5
4341echo "${ECHO_T}yes" >&6
4342 else
4343 echo "$as_me:$LINENO: result: no" >&5
4344echo "${ECHO_T}no" >&6
4345 fi
4346
4347
4348 enablestring=
4349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4350echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4351 no_cache=0
4352 # Check whether --enable-ftp or --disable-ftp was given.
4353if test "${enable_ftp+set}" = set; then
4354 enableval="$enable_ftp"
4355
4356 if test "$enableval" = yes; then
4357 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4358 else
4359 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4360 fi
4361
4362else
4363
4364 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4365 if test "x$LINE" != x ; then
4366 eval "DEFAULT_$LINE"
4367 else
4368 no_cache=1
4369 fi
4370
4371 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4372
4373fi;
4374
4375 eval "$ac_cv_use_ftp"
4376 if test "$no_cache" != 1; then
4377 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4378 fi
4379
4380 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4381 echo "$as_me:$LINENO: result: yes" >&5
4382echo "${ECHO_T}yes" >&6
4383 else
4384 echo "$as_me:$LINENO: result: no" >&5
4385echo "${ECHO_T}no" >&6
4386 fi
4387
4388
4389 enablestring=
4390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4391echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4392 no_cache=0
4393 # Check whether --enable-http or --disable-http was given.
4394if test "${enable_http+set}" = set; then
4395 enableval="$enable_http"
4396
4397 if test "$enableval" = yes; then
4398 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4399 else
4400 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4401 fi
4402
4403else
4404
4405 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4406 if test "x$LINE" != x ; then
4407 eval "DEFAULT_$LINE"
4408 else
4409 no_cache=1
4410 fi
4411
4412 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4413
4414fi;
4415
4416 eval "$ac_cv_use_http"
4417 if test "$no_cache" != 1; then
4418 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4419 fi
4420
4421 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4422 echo "$as_me:$LINENO: result: yes" >&5
4423echo "${ECHO_T}yes" >&6
4424 else
4425 echo "$as_me:$LINENO: result: no" >&5
4426echo "${ECHO_T}no" >&6
4427 fi
4428
4429
4430 enablestring=
4431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4432echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4433 no_cache=0
4434 # Check whether --enable-fileproto or --disable-fileproto was given.
4435if test "${enable_fileproto+set}" = set; then
4436 enableval="$enable_fileproto"
4437
4438 if test "$enableval" = yes; then
4439 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4440 else
4441 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4442 fi
4443
4444else
4445
4446 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4447 if test "x$LINE" != x ; then
4448 eval "DEFAULT_$LINE"
4449 else
4450 no_cache=1
4451 fi
4452
4453 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4454
4455fi;
4456
4457 eval "$ac_cv_use_fileproto"
4458 if test "$no_cache" != 1; then
4459 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4460 fi
4461
4462 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4463 echo "$as_me:$LINENO: result: yes" >&5
4464echo "${ECHO_T}yes" >&6
4465 else
4466 echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6
4468 fi
4469
4470
4471 enablestring=
4472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4473echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4474 no_cache=0
4475 # Check whether --enable-sockets or --disable-sockets was given.
4476if test "${enable_sockets+set}" = set; then
4477 enableval="$enable_sockets"
4478
4479 if test "$enableval" = yes; then
4480 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4481 else
4482 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4483 fi
4484
4485else
4486
4487 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4488 if test "x$LINE" != x ; then
4489 eval "DEFAULT_$LINE"
4490 else
4491 no_cache=1
4492 fi
4493
4494 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4495
4496fi;
4497
4498 eval "$ac_cv_use_sockets"
4499 if test "$no_cache" != 1; then
4500 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4501 fi
4502
4503 if test "$wxUSE_SOCKETS" = yes; then
4504 echo "$as_me:$LINENO: result: yes" >&5
4505echo "${ECHO_T}yes" >&6
4506 else
4507 echo "$as_me:$LINENO: result: no" >&5
4508echo "${ECHO_T}no" >&6
4509 fi
4510
4511
4512 enablestring=
4513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4514echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4515 no_cache=0
4516 # Check whether --enable-ole or --disable-ole was given.
4517if test "${enable_ole+set}" = set; then
4518 enableval="$enable_ole"
4519
4520 if test "$enableval" = yes; then
4521 ac_cv_use_ole='wxUSE_OLE=yes'
4522 else
4523 ac_cv_use_ole='wxUSE_OLE=no'
4524 fi
4525
4526else
4527
4528 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4529 if test "x$LINE" != x ; then
4530 eval "DEFAULT_$LINE"
4531 else
4532 no_cache=1
4533 fi
4534
4535 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4536
4537fi;
4538
4539 eval "$ac_cv_use_ole"
4540 if test "$no_cache" != 1; then
4541 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4542 fi
4543
4544 if test "$wxUSE_OLE" = yes; then
4545 echo "$as_me:$LINENO: result: yes" >&5
4546echo "${ECHO_T}yes" >&6
4547 else
4548 echo "$as_me:$LINENO: result: no" >&5
4549echo "${ECHO_T}no" >&6
4550 fi
4551
4552
4553 enablestring=
4554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4555echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4556 no_cache=0
4557 # Check whether --enable-dataobj or --disable-dataobj was given.
4558if test "${enable_dataobj+set}" = set; then
4559 enableval="$enable_dataobj"
4560
4561 if test "$enableval" = yes; then
4562 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4563 else
4564 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4565 fi
4566
4567else
4568
4569 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4570 if test "x$LINE" != x ; then
4571 eval "DEFAULT_$LINE"
4572 else
4573 no_cache=1
4574 fi
4575
4576 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4577
4578fi;
4579
4580 eval "$ac_cv_use_dataobj"
4581 if test "$no_cache" != 1; then
4582 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4583 fi
4584
4585 if test "$wxUSE_DATAOBJ" = yes; then
4586 echo "$as_me:$LINENO: result: yes" >&5
4587echo "${ECHO_T}yes" >&6
4588 else
4589 echo "$as_me:$LINENO: result: no" >&5
4590echo "${ECHO_T}no" >&6
4591 fi
4592
4593
4594
4595 enablestring=
4596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4597echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4598 no_cache=0
4599 # Check whether --enable-ipc or --disable-ipc was given.
4600if test "${enable_ipc+set}" = set; then
4601 enableval="$enable_ipc"
4602
4603 if test "$enableval" = yes; then
4604 ac_cv_use_ipc='wxUSE_IPC=yes'
4605 else
4606 ac_cv_use_ipc='wxUSE_IPC=no'
4607 fi
4608
4609else
4610
4611 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4612 if test "x$LINE" != x ; then
4613 eval "DEFAULT_$LINE"
4614 else
4615 no_cache=1
4616 fi
4617
4618 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4619
4620fi;
4621
4622 eval "$ac_cv_use_ipc"
4623 if test "$no_cache" != 1; then
4624 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4625 fi
4626
4627 if test "$wxUSE_IPC" = yes; then
4628 echo "$as_me:$LINENO: result: yes" >&5
4629echo "${ECHO_T}yes" >&6
4630 else
4631 echo "$as_me:$LINENO: result: no" >&5
4632echo "${ECHO_T}no" >&6
4633 fi
4634
4635
4636
4637 enablestring=
4638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4639echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4640 no_cache=0
4641 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4642if test "${enable_apple_ieee+set}" = set; then
4643 enableval="$enable_apple_ieee"
4644
4645 if test "$enableval" = yes; then
4646 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4647 else
4648 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4649 fi
4650
4651else
4652
4653 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4654 if test "x$LINE" != x ; then
4655 eval "DEFAULT_$LINE"
4656 else
4657 no_cache=1
4658 fi
4659
4660 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4661
4662fi;
4663
4664 eval "$ac_cv_use_apple_ieee"
4665 if test "$no_cache" != 1; then
4666 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4667 fi
4668
4669 if test "$wxUSE_APPLE_IEEE" = yes; then
4670 echo "$as_me:$LINENO: result: yes" >&5
4671echo "${ECHO_T}yes" >&6
4672 else
4673 echo "$as_me:$LINENO: result: no" >&5
4674echo "${ECHO_T}no" >&6
4675 fi
4676
4677
81f90336
MW
4678 enablestring=
4679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4680echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4681 no_cache=0
4682 # Check whether --enable-arcstream or --disable-arcstream was given.
4683if test "${enable_arcstream+set}" = set; then
4684 enableval="$enable_arcstream"
4685
4686 if test "$enableval" = yes; then
9e8e867f 4687 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4688 else
9e8e867f 4689 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4690 fi
4691
4692else
4693
9e8e867f 4694 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4695 if test "x$LINE" != x ; then
4696 eval "DEFAULT_$LINE"
4697 else
4698 no_cache=1
4699 fi
4700
9e8e867f 4701 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4702
4703fi;
4704
4705 eval "$ac_cv_use_arcstream"
4706 if test "$no_cache" != 1; then
4707 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4708 fi
4709
9e8e867f 4710 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4711 echo "$as_me:$LINENO: result: yes" >&5
4712echo "${ECHO_T}yes" >&6
4713 else
4714 echo "$as_me:$LINENO: result: no" >&5
4715echo "${ECHO_T}no" >&6
4716 fi
4717
4718
a848cd7e 4719 enablestring=
36b6448c
VZ
4720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4721echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4722 no_cache=0
36b6448c
VZ
4723 # Check whether --enable-backtrace or --disable-backtrace was given.
4724if test "${enable_backtrace+set}" = set; then
4725 enableval="$enable_backtrace"
a848cd7e
SC
4726
4727 if test "$enableval" = yes; then
36b6448c 4728 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4729 else
36b6448c 4730 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4731 fi
4732
4733else
4734
36b6448c 4735 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4736 if test "x$LINE" != x ; then
4737 eval "DEFAULT_$LINE"
4738 else
4739 no_cache=1
4740 fi
4741
36b6448c 4742 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4743
4744fi;
4745
36b6448c 4746 eval "$ac_cv_use_backtrace"
a848cd7e 4747 if test "$no_cache" != 1; then
36b6448c 4748 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4749 fi
4750
36b6448c 4751 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4752 echo "$as_me:$LINENO: result: yes" >&5
4753echo "${ECHO_T}yes" >&6
4754 else
4755 echo "$as_me:$LINENO: result: no" >&5
4756echo "${ECHO_T}no" >&6
4757 fi
4758
4759
eaff0f0d 4760 enablestring=
36b6448c
VZ
4761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4762echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4763 no_cache=0
36b6448c
VZ
4764 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4765if test "${enable_catch_segvs+set}" = set; then
4766 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4767
4768 if test "$enableval" = yes; then
36b6448c 4769 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4770 else
36b6448c 4771 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4772 fi
4773
4774else
4775
36b6448c 4776 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4777 if test "x$LINE" != x ; then
4778 eval "DEFAULT_$LINE"
4779 else
4780 no_cache=1
4781 fi
4782
36b6448c 4783 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4784
4785fi;
4786
36b6448c 4787 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4788 if test "$no_cache" != 1; then
36b6448c 4789 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4790 fi
4791
36b6448c 4792 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4793 echo "$as_me:$LINENO: result: yes" >&5
4794echo "${ECHO_T}yes" >&6
4795 else
4796 echo "$as_me:$LINENO: result: no" >&5
4797echo "${ECHO_T}no" >&6
4798 fi
4799
4800
a848cd7e
SC
4801 enablestring=
4802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4803echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4804 no_cache=0
4805 # Check whether --enable-cmdline or --disable-cmdline was given.
4806if test "${enable_cmdline+set}" = set; then
4807 enableval="$enable_cmdline"
4808
4809 if test "$enableval" = yes; then
4810 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4811 else
4812 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4813 fi
4814
4815else
4816
4817 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4818 if test "x$LINE" != x ; then
4819 eval "DEFAULT_$LINE"
4820 else
4821 no_cache=1
4822 fi
4823
4824 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4825
4826fi;
4827
4828 eval "$ac_cv_use_cmdline"
4829 if test "$no_cache" != 1; then
4830 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4831 fi
4832
4833 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4834 echo "$as_me:$LINENO: result: yes" >&5
4835echo "${ECHO_T}yes" >&6
4836 else
4837 echo "$as_me:$LINENO: result: no" >&5
4838echo "${ECHO_T}no" >&6
4839 fi
4840
4841
4842 enablestring=
4843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4844echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4845 no_cache=0
4846 # Check whether --enable-datetime or --disable-datetime was given.
4847if test "${enable_datetime+set}" = set; then
4848 enableval="$enable_datetime"
4849
4850 if test "$enableval" = yes; then
4851 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4852 else
4853 ac_cv_use_datetime='wxUSE_DATETIME=no'
4854 fi
4855
4856else
4857
4858 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4859 if test "x$LINE" != x ; then
4860 eval "DEFAULT_$LINE"
4861 else
4862 no_cache=1
4863 fi
4864
4865 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4866
4867fi;
4868
4869 eval "$ac_cv_use_datetime"
4870 if test "$no_cache" != 1; then
4871 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4872 fi
4873
4874 if test "$wxUSE_DATETIME" = yes; then
4875 echo "$as_me:$LINENO: result: yes" >&5
4876echo "${ECHO_T}yes" >&6
4877 else
4878 echo "$as_me:$LINENO: result: no" >&5
4879echo "${ECHO_T}no" >&6
4880 fi
4881
4882
36b6448c
VZ
4883 enablestring=
4884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4885echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4886 no_cache=0
4887 # Check whether --enable-debugreport or --disable-debugreport was given.
4888if test "${enable_debugreport+set}" = set; then
4889 enableval="$enable_debugreport"
4890
4891 if test "$enableval" = yes; then
4892 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4893 else
4894 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4895 fi
4896
4897else
4898
4899 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4900 if test "x$LINE" != x ; then
4901 eval "DEFAULT_$LINE"
4902 else
4903 no_cache=1
4904 fi
4905
4906 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4907
4908fi;
4909
4910 eval "$ac_cv_use_debugreport"
4911 if test "$no_cache" != 1; then
4912 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4913 fi
4914
4915 if test "$wxUSE_DEBUGREPORT" = yes; then
4916 echo "$as_me:$LINENO: result: yes" >&5
4917echo "${ECHO_T}yes" >&6
4918 else
4919 echo "$as_me:$LINENO: result: no" >&5
4920echo "${ECHO_T}no" >&6
4921 fi
4922
4923
a848cd7e
SC
4924 enablestring=
4925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4926echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4927 no_cache=0
4928 # Check whether --enable-dialupman or --disable-dialupman was given.
4929if test "${enable_dialupman+set}" = set; then
4930 enableval="$enable_dialupman"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4934 else
4935 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4936 fi
4937
4938else
4939
4940 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4948
4949fi;
4950
4951 eval "$ac_cv_use_dialupman"
4952 if test "$no_cache" != 1; then
4953 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4954 fi
4955
4956 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4957 echo "$as_me:$LINENO: result: yes" >&5
4958echo "${ECHO_T}yes" >&6
4959 else
4960 echo "$as_me:$LINENO: result: no" >&5
4961echo "${ECHO_T}no" >&6
4962 fi
4963
4964
4965 enablestring=
4966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4967echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4968 no_cache=0
4969 # Check whether --enable-dynlib or --disable-dynlib was given.
4970if test "${enable_dynlib+set}" = set; then
4971 enableval="$enable_dynlib"
4972
4973 if test "$enableval" = yes; then
4974 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4975 else
4976 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4977 fi
4978
4979else
4980
4981 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4982 if test "x$LINE" != x ; then
4983 eval "DEFAULT_$LINE"
4984 else
4985 no_cache=1
4986 fi
4987
4988 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4989
4990fi;
4991
4992 eval "$ac_cv_use_dynlib"
4993 if test "$no_cache" != 1; then
4994 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4995 fi
4996
4997 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4998 echo "$as_me:$LINENO: result: yes" >&5
4999echo "${ECHO_T}yes" >&6
5000 else
5001 echo "$as_me:$LINENO: result: no" >&5
5002echo "${ECHO_T}no" >&6
5003 fi
5004
5005
5006 enablestring=
5007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5008echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5009 no_cache=0
5010 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5011if test "${enable_dynamicloader+set}" = set; then
5012 enableval="$enable_dynamicloader"
5013
5014 if test "$enableval" = yes; then
5015 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5016 else
5017 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5018 fi
5019
5020else
5021
5022 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5023 if test "x$LINE" != x ; then
5024 eval "DEFAULT_$LINE"
5025 else
5026 no_cache=1
5027 fi
5028
5029 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5030
5031fi;
5032
5033 eval "$ac_cv_use_dynamicloader"
5034 if test "$no_cache" != 1; then
5035 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5036 fi
5037
5038 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5039 echo "$as_me:$LINENO: result: yes" >&5
5040echo "${ECHO_T}yes" >&6
5041 else
5042 echo "$as_me:$LINENO: result: no" >&5
5043echo "${ECHO_T}no" >&6
5044 fi
5045
5046
5047 enablestring=
5048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5049echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5050 no_cache=0
5051 # Check whether --enable-exceptions or --disable-exceptions was given.
5052if test "${enable_exceptions+set}" = set; then
5053 enableval="$enable_exceptions"
5054
5055 if test "$enableval" = yes; then
5056 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5057 else
5058 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5059 fi
5060
5061else
5062
5063 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5064 if test "x$LINE" != x ; then
5065 eval "DEFAULT_$LINE"
5066 else
5067 no_cache=1
5068 fi
5069
5070 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5071
5072fi;
5073
5074 eval "$ac_cv_use_exceptions"
5075 if test "$no_cache" != 1; then
5076 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5077 fi
5078
5079 if test "$wxUSE_EXCEPTIONS" = yes; then
5080 echo "$as_me:$LINENO: result: yes" >&5
5081echo "${ECHO_T}yes" >&6
5082 else
5083 echo "$as_me:$LINENO: result: no" >&5
5084echo "${ECHO_T}no" >&6
5085 fi
5086
5087
5088 enablestring=
5089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5090echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5091 no_cache=0
5092 # Check whether --enable-ffile or --disable-ffile was given.
5093if test "${enable_ffile+set}" = set; then
5094 enableval="$enable_ffile"
5095
5096 if test "$enableval" = yes; then
5097 ac_cv_use_ffile='wxUSE_FFILE=yes'
5098 else
5099 ac_cv_use_ffile='wxUSE_FFILE=no'
5100 fi
5101
5102else
5103
5104 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5105 if test "x$LINE" != x ; then
5106 eval "DEFAULT_$LINE"
5107 else
5108 no_cache=1
5109 fi
5110
5111 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5112
5113fi;
5114
5115 eval "$ac_cv_use_ffile"
5116 if test "$no_cache" != 1; then
5117 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5118 fi
5119
5120 if test "$wxUSE_FFILE" = yes; then
5121 echo "$as_me:$LINENO: result: yes" >&5
5122echo "${ECHO_T}yes" >&6
5123 else
5124 echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126 fi
5127
5128
5129 enablestring=
5130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5131echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5132 no_cache=0
5133 # Check whether --enable-file or --disable-file was given.
5134if test "${enable_file+set}" = set; then
5135 enableval="$enable_file"
5136
5137 if test "$enableval" = yes; then
5138 ac_cv_use_file='wxUSE_FILE=yes'
5139 else
5140 ac_cv_use_file='wxUSE_FILE=no'
5141 fi
5142
5143else
5144
5145 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5146 if test "x$LINE" != x ; then
5147 eval "DEFAULT_$LINE"
5148 else
5149 no_cache=1
5150 fi
5151
5152 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5153
5154fi;
5155
5156 eval "$ac_cv_use_file"
5157 if test "$no_cache" != 1; then
5158 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5159 fi
5160
5161 if test "$wxUSE_FILE" = yes; then
5162 echo "$as_me:$LINENO: result: yes" >&5
5163echo "${ECHO_T}yes" >&6
5164 else
5165 echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6
5167 fi
5168
5169
5170 enablestring=
5171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5172echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5173 no_cache=0
5174 # Check whether --enable-filesystem or --disable-filesystem was given.
5175if test "${enable_filesystem+set}" = set; then
5176 enableval="$enable_filesystem"
5177
5178 if test "$enableval" = yes; then
5179 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5180 else
5181 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5182 fi
5183
5184else
5185
5186 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5187 if test "x$LINE" != x ; then
5188 eval "DEFAULT_$LINE"
5189 else
5190 no_cache=1
5191 fi
5192
5193 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5194
5195fi;
5196
5197 eval "$ac_cv_use_filesystem"
5198 if test "$no_cache" != 1; then
5199 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5200 fi
5201
5202 if test "$wxUSE_FILESYSTEM" = yes; then
5203 echo "$as_me:$LINENO: result: yes" >&5
5204echo "${ECHO_T}yes" >&6
5205 else
5206 echo "$as_me:$LINENO: result: no" >&5
5207echo "${ECHO_T}no" >&6
5208 fi
5209
5210
5211 enablestring=
5212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5213echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5214 no_cache=0
5215 # Check whether --enable-fontmap or --disable-fontmap was given.
5216if test "${enable_fontmap+set}" = set; then
5217 enableval="$enable_fontmap"
5218
5219 if test "$enableval" = yes; then
5220 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5221 else
5222 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5223 fi
5224
5225else
5226
5227 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5228 if test "x$LINE" != x ; then
5229 eval "DEFAULT_$LINE"
5230 else
5231 no_cache=1
5232 fi
5233
5234 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5235
5236fi;
5237
5238 eval "$ac_cv_use_fontmap"
5239 if test "$no_cache" != 1; then
5240 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5241 fi
5242
5243 if test "$wxUSE_FONTMAP" = yes; then
5244 echo "$as_me:$LINENO: result: yes" >&5
5245echo "${ECHO_T}yes" >&6
5246 else
5247 echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6
5249 fi
5250
5251
5252 enablestring=
5253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5254echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5255 no_cache=0
5256 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5257if test "${enable_fs_inet+set}" = set; then
5258 enableval="$enable_fs_inet"
5259
5260 if test "$enableval" = yes; then
5261 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5262 else
5263 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5264 fi
5265
5266else
5267
5268 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5269 if test "x$LINE" != x ; then
5270 eval "DEFAULT_$LINE"
5271 else
5272 no_cache=1
5273 fi
5274
5275 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5276
5277fi;
5278
5279 eval "$ac_cv_use_fs_inet"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_FS_INET" = yes; then
5285 echo "$as_me:$LINENO: result: yes" >&5
5286echo "${ECHO_T}yes" >&6
5287 else
5288 echo "$as_me:$LINENO: result: no" >&5
5289echo "${ECHO_T}no" >&6
5290 fi
5291
5292
5293 enablestring=
5294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5295echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5296 no_cache=0
5297 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5298if test "${enable_fs_zip+set}" = set; then
5299 enableval="$enable_fs_zip"
5300
5301 if test "$enableval" = yes; then
5302 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5303 else
5304 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5305 fi
5306
5307else
5308
5309 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5310 if test "x$LINE" != x ; then
5311 eval "DEFAULT_$LINE"
5312 else
5313 no_cache=1
5314 fi
5315
5316 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5317
5318fi;
5319
5320 eval "$ac_cv_use_fs_zip"
5321 if test "$no_cache" != 1; then
5322 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5323 fi
5324
5325 if test "$wxUSE_FS_ZIP" = yes; then
5326 echo "$as_me:$LINENO: result: yes" >&5
5327echo "${ECHO_T}yes" >&6
5328 else
5329 echo "$as_me:$LINENO: result: no" >&5
5330echo "${ECHO_T}no" >&6
5331 fi
5332
5333
5334 enablestring=
5335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5336echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5337 no_cache=0
5338 # Check whether --enable-geometry or --disable-geometry was given.
5339if test "${enable_geometry+set}" = set; then
5340 enableval="$enable_geometry"
5341
5342 if test "$enableval" = yes; then
5343 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5344 else
5345 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5346 fi
5347
5348else
5349
5350 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5351 if test "x$LINE" != x ; then
5352 eval "DEFAULT_$LINE"
5353 else
5354 no_cache=1
5355 fi
5356
5357 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5358
5359fi;
5360
5361 eval "$ac_cv_use_geometry"
5362 if test "$no_cache" != 1; then
5363 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5364 fi
5365
5366 if test "$wxUSE_GEOMETRY" = yes; then
5367 echo "$as_me:$LINENO: result: yes" >&5
5368echo "${ECHO_T}yes" >&6
5369 else
5370 echo "$as_me:$LINENO: result: no" >&5
5371echo "${ECHO_T}no" >&6
5372 fi
5373
5374
5375 enablestring=
5376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5377echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5378 no_cache=0
5379 # Check whether --enable-log or --disable-log was given.
5380if test "${enable_log+set}" = set; then
5381 enableval="$enable_log"
5382
5383 if test "$enableval" = yes; then
5384 ac_cv_use_log='wxUSE_LOG=yes'
5385 else
5386 ac_cv_use_log='wxUSE_LOG=no'
5387 fi
5388
5389else
5390
5391 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5392 if test "x$LINE" != x ; then
5393 eval "DEFAULT_$LINE"
5394 else
5395 no_cache=1
5396 fi
5397
5398 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5399
5400fi;
5401
5402 eval "$ac_cv_use_log"
5403 if test "$no_cache" != 1; then
5404 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5405 fi
5406
5407 if test "$wxUSE_LOG" = yes; then
5408 echo "$as_me:$LINENO: result: yes" >&5
5409echo "${ECHO_T}yes" >&6
5410 else
5411 echo "$as_me:$LINENO: result: no" >&5
5412echo "${ECHO_T}no" >&6
5413 fi
5414
5415
5416 enablestring=
5417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5418echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5419 no_cache=0
5420 # Check whether --enable-longlong or --disable-longlong was given.
5421if test "${enable_longlong+set}" = set; then
5422 enableval="$enable_longlong"
5423
5424 if test "$enableval" = yes; then
5425 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5426 else
5427 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5428 fi
5429
5430else
5431
5432 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5433 if test "x$LINE" != x ; then
5434 eval "DEFAULT_$LINE"
5435 else
5436 no_cache=1
5437 fi
5438
5439 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5440
5441fi;
5442
5443 eval "$ac_cv_use_longlong"
5444 if test "$no_cache" != 1; then
5445 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5446 fi
5447
5448 if test "$wxUSE_LONGLONG" = yes; then
5449 echo "$as_me:$LINENO: result: yes" >&5
5450echo "${ECHO_T}yes" >&6
5451 else
5452 echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6
5454 fi
5455
5456
5457 enablestring=
5458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5459echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5460 no_cache=0
5461 # Check whether --enable-mimetype or --disable-mimetype was given.
5462if test "${enable_mimetype+set}" = set; then
5463 enableval="$enable_mimetype"
5464
5465 if test "$enableval" = yes; then
5466 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5467 else
5468 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5469 fi
5470
5471else
5472
5473 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5474 if test "x$LINE" != x ; then
5475 eval "DEFAULT_$LINE"
5476 else
5477 no_cache=1
5478 fi
5479
5480 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5481
5482fi;
5483
5484 eval "$ac_cv_use_mimetype"
5485 if test "$no_cache" != 1; then
5486 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5487 fi
5488
5489 if test "$wxUSE_MIMETYPE" = yes; then
5490 echo "$as_me:$LINENO: result: yes" >&5
5491echo "${ECHO_T}yes" >&6
5492 else
5493 echo "$as_me:$LINENO: result: no" >&5
5494echo "${ECHO_T}no" >&6
5495 fi
5496
5497
5498 enablestring=
5499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5500echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5501 no_cache=0
5502 # Check whether --enable-mslu or --disable-mslu was given.
5503if test "${enable_mslu+set}" = set; then
5504 enableval="$enable_mslu"
5505
5506 if test "$enableval" = yes; then
5507 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5508 else
5509 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5510 fi
5511
5512else
5513
5514 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5515 if test "x$LINE" != x ; then
5516 eval "DEFAULT_$LINE"
5517 else
5518 no_cache=1
5519 fi
5520
5521 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5522
5523fi;
5524
5525 eval "$ac_cv_use_mslu"
5526 if test "$no_cache" != 1; then
5527 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5528 fi
5529
5530 if test "$wxUSE_UNICODE_MSLU" = yes; then
5531 echo "$as_me:$LINENO: result: yes" >&5
5532echo "${ECHO_T}yes" >&6
5533 else
5534 echo "$as_me:$LINENO: result: no" >&5
5535echo "${ECHO_T}no" >&6
5536 fi
5537
5538
5539 enablestring=
5540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5541echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5542 no_cache=0
5543 # Check whether --enable-snglinst or --disable-snglinst was given.
5544if test "${enable_snglinst+set}" = set; then
5545 enableval="$enable_snglinst"
5546
5547 if test "$enableval" = yes; then
5548 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5549 else
5550 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5551 fi
5552
5553else
5554
5555 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5556 if test "x$LINE" != x ; then
5557 eval "DEFAULT_$LINE"
5558 else
5559 no_cache=1
5560 fi
5561
5562 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5563
5564fi;
5565
5566 eval "$ac_cv_use_snglinst"
5567 if test "$no_cache" != 1; then
5568 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5569 fi
5570
5571 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5572 echo "$as_me:$LINENO: result: yes" >&5
5573echo "${ECHO_T}yes" >&6
5574 else
5575 echo "$as_me:$LINENO: result: no" >&5
5576echo "${ECHO_T}no" >&6
5577 fi
5578
5579
5580 enablestring=
07158944
VZ
5581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5582echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5583 no_cache=0
07158944
VZ
5584 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5585if test "${enable_std_iostreams+set}" = set; then
5586 enableval="$enable_std_iostreams"
a848cd7e
SC
5587
5588 if test "$enableval" = yes; then
07158944 5589 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5590 else
07158944 5591 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5592 fi
5593
5594else
5595
07158944 5596 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5597 if test "x$LINE" != x ; then
5598 eval "DEFAULT_$LINE"
5599 else
5600 no_cache=1
5601 fi
5602
07158944 5603 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5604
5605fi;
5606
07158944 5607 eval "$ac_cv_use_std_iostreams"
a848cd7e 5608 if test "$no_cache" != 1; then
07158944 5609 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5610 fi
5611
07158944 5612 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5613 echo "$as_me:$LINENO: result: yes" >&5
5614echo "${ECHO_T}yes" >&6
5615 else
5616 echo "$as_me:$LINENO: result: no" >&5
5617echo "${ECHO_T}no" >&6
5618 fi
5619
5620
5621 enablestring=
07158944
VZ
5622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5623echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5624 no_cache=0
07158944
VZ
5625 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5626if test "${enable_stdpaths+set}" = set; then
5627 enableval="$enable_stdpaths"
a848cd7e
SC
5628
5629 if test "$enableval" = yes; then
07158944 5630 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5631 else
07158944 5632 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5633 fi
5634
5635else
5636
07158944 5637 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5638 if test "x$LINE" != x ; then
5639 eval "DEFAULT_$LINE"
5640 else
5641 no_cache=1
5642 fi
5643
07158944 5644 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5645
5646fi;
5647
07158944 5648 eval "$ac_cv_use_stdpaths"
a848cd7e 5649 if test "$no_cache" != 1; then
07158944 5650 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5651 fi
5652
07158944 5653 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5654 echo "$as_me:$LINENO: result: yes" >&5
5655echo "${ECHO_T}yes" >&6
5656 else
5657 echo "$as_me:$LINENO: result: no" >&5
5658echo "${ECHO_T}no" >&6
5659 fi
5660
5661
5662 enablestring=
5663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5664echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5665 no_cache=0
5666 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5667if test "${enable_stopwatch+set}" = set; then
5668 enableval="$enable_stopwatch"
5669
5670 if test "$enableval" = yes; then
5671 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5672 else
5673 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5674 fi
5675
5676else
5677
5678 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5679 if test "x$LINE" != x ; then
5680 eval "DEFAULT_$LINE"
5681 else
5682 no_cache=1
5683 fi
5684
5685 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5686
5687fi;
5688
5689 eval "$ac_cv_use_stopwatch"
5690 if test "$no_cache" != 1; then
5691 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5692 fi
5693
5694 if test "$wxUSE_STOPWATCH" = yes; then
5695 echo "$as_me:$LINENO: result: yes" >&5
5696echo "${ECHO_T}yes" >&6
5697 else
5698 echo "$as_me:$LINENO: result: no" >&5
5699echo "${ECHO_T}no" >&6
5700 fi
5701
5702
07158944
VZ
5703 enablestring=
5704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5705echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5706 no_cache=0
5707 # Check whether --enable-streams or --disable-streams was given.
5708if test "${enable_streams+set}" = set; then
5709 enableval="$enable_streams"
5710
5711 if test "$enableval" = yes; then
5712 ac_cv_use_streams='wxUSE_STREAMS=yes'
5713 else
5714 ac_cv_use_streams='wxUSE_STREAMS=no'
5715 fi
5716
5717else
5718
5719 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5720 if test "x$LINE" != x ; then
5721 eval "DEFAULT_$LINE"
5722 else
5723 no_cache=1
5724 fi
5725
5726 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5727
5728fi;
5729
5730 eval "$ac_cv_use_streams"
5731 if test "$no_cache" != 1; then
5732 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5733 fi
5734
5735 if test "$wxUSE_STREAMS" = yes; then
5736 echo "$as_me:$LINENO: result: yes" >&5
5737echo "${ECHO_T}yes" >&6
5738 else
5739 echo "$as_me:$LINENO: result: no" >&5
5740echo "${ECHO_T}no" >&6
5741 fi
5742
5743
a848cd7e
SC
5744 enablestring=
5745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5746echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5747 no_cache=0
5748 # Check whether --enable-system_options or --disable-system_options was given.
5749if test "${enable_system_options+set}" = set; then
5750 enableval="$enable_system_options"
5751
5752 if test "$enableval" = yes; then
5753 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5754 else
5755 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5756 fi
5757
5758else
5759
5760 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5761 if test "x$LINE" != x ; then
5762 eval "DEFAULT_$LINE"
5763 else
5764 no_cache=1
5765 fi
5766
5767 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5768
5769fi;
5770
5771 eval "$ac_cv_use_system_options"
5772 if test "$no_cache" != 1; then
5773 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5774 fi
5775
5776 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5777 echo "$as_me:$LINENO: result: yes" >&5
5778echo "${ECHO_T}yes" >&6
5779 else
5780 echo "$as_me:$LINENO: result: no" >&5
5781echo "${ECHO_T}no" >&6
5782 fi
5783
5784
5785 enablestring=
5786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5787echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5788 no_cache=0
5789 # Check whether --enable-textbuf or --disable-textbuf was given.
5790if test "${enable_textbuf+set}" = set; then
5791 enableval="$enable_textbuf"
5792
5793 if test "$enableval" = yes; then
5794 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5795 else
5796 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5797 fi
5798
5799else
5800
5801 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5802 if test "x$LINE" != x ; then
5803 eval "DEFAULT_$LINE"
5804 else
5805 no_cache=1
5806 fi
5807
5808 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5809
5810fi;
5811
5812 eval "$ac_cv_use_textbuf"
5813 if test "$no_cache" != 1; then
5814 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5815 fi
5816
5817 if test "$wxUSE_TEXTBUFFER" = yes; then
5818 echo "$as_me:$LINENO: result: yes" >&5
5819echo "${ECHO_T}yes" >&6
5820 else
5821 echo "$as_me:$LINENO: result: no" >&5
5822echo "${ECHO_T}no" >&6
5823 fi
5824
5825
5826 enablestring=
5827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5828echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5829 no_cache=0
5830 # Check whether --enable-textfile or --disable-textfile was given.
5831if test "${enable_textfile+set}" = set; then
5832 enableval="$enable_textfile"
5833
5834 if test "$enableval" = yes; then
5835 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5836 else
5837 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5838 fi
5839
5840else
5841
5842 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5843 if test "x$LINE" != x ; then
5844 eval "DEFAULT_$LINE"
5845 else
5846 no_cache=1
5847 fi
5848
5849 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5850
5851fi;
5852
5853 eval "$ac_cv_use_textfile"
5854 if test "$no_cache" != 1; then
5855 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5856 fi
5857
5858 if test "$wxUSE_TEXTFILE" = yes; then
5859 echo "$as_me:$LINENO: result: yes" >&5
5860echo "${ECHO_T}yes" >&6
5861 else
5862 echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6
5864 fi
5865
5866
5867 enablestring=
5868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5869echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5870 no_cache=0
5871 # Check whether --enable-timer or --disable-timer was given.
5872if test "${enable_timer+set}" = set; then
5873 enableval="$enable_timer"
5874
5875 if test "$enableval" = yes; then
5876 ac_cv_use_timer='wxUSE_TIMER=yes'
5877 else
5878 ac_cv_use_timer='wxUSE_TIMER=no'
5879 fi
5880
5881else
5882
5883 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5884 if test "x$LINE" != x ; then
5885 eval "DEFAULT_$LINE"
5886 else
5887 no_cache=1
5888 fi
5889
5890 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5891
5892fi;
5893
5894 eval "$ac_cv_use_timer"
5895 if test "$no_cache" != 1; then
5896 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5897 fi
5898
5899 if test "$wxUSE_TIMER" = yes; then
5900 echo "$as_me:$LINENO: result: yes" >&5
5901echo "${ECHO_T}yes" >&6
5902 else
5903 echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
5905 fi
5906
5907
5908 enablestring=
5909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5910echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5911 no_cache=0
5912 # Check whether --enable-unicode or --disable-unicode was given.
5913if test "${enable_unicode+set}" = set; then
5914 enableval="$enable_unicode"
5915
5916 if test "$enableval" = yes; then
5917 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5918 else
5919 ac_cv_use_unicode='wxUSE_UNICODE=no'
5920 fi
5921
5922else
5923
5924 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5925 if test "x$LINE" != x ; then
5926 eval "DEFAULT_$LINE"
5927 else
5928 no_cache=1
5929 fi
5930
5931 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5932
5933fi;
5934
5935 eval "$ac_cv_use_unicode"
5936 if test "$no_cache" != 1; then
5937 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5938 fi
5939
5940 if test "$wxUSE_UNICODE" = yes; then
5941 echo "$as_me:$LINENO: result: yes" >&5
5942echo "${ECHO_T}yes" >&6
5943 else
5944 echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6
5946 fi
5947
5948
5949 enablestring=
5950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5951echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5952 no_cache=0
5953 # Check whether --enable-sound or --disable-sound was given.
5954if test "${enable_sound+set}" = set; then
5955 enableval="$enable_sound"
5956
5957 if test "$enableval" = yes; then
5958 ac_cv_use_sound='wxUSE_SOUND=yes'
5959 else
5960 ac_cv_use_sound='wxUSE_SOUND=no'
5961 fi
5962
5963else
5964
5965 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5966 if test "x$LINE" != x ; then
5967 eval "DEFAULT_$LINE"
5968 else
5969 no_cache=1
5970 fi
5971
5972 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5973
5974fi;
5975
5976 eval "$ac_cv_use_sound"
5977 if test "$no_cache" != 1; then
5978 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5979 fi
5980
5981 if test "$wxUSE_SOUND" = yes; then
5982 echo "$as_me:$LINENO: result: yes" >&5
5983echo "${ECHO_T}yes" >&6
5984 else
5985 echo "$as_me:$LINENO: result: no" >&5
5986echo "${ECHO_T}no" >&6
5987 fi
5988
5989
3b57de8b
RL
5990 enablestring=
5991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5992echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5993 no_cache=0
5994 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5995if test "${enable_mediactrl+set}" = set; then
5996 enableval="$enable_mediactrl"
5997
5998 if test "$enableval" = yes; then
5999 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6000 else
6001 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6002 fi
6003
6004else
6005
6006 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6007 if test "x$LINE" != x ; then
6008 eval "DEFAULT_$LINE"
6009 else
6010 no_cache=1
6011 fi
6012
6013 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6014
6015fi;
6016
6017 eval "$ac_cv_use_mediactrl"
6018 if test "$no_cache" != 1; then
6019 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6020 fi
6021
6022 if test "$wxUSE_MEDIACTRL" = yes; then
6023 echo "$as_me:$LINENO: result: yes" >&5
6024echo "${ECHO_T}yes" >&6
6025 else
6026 echo "$as_me:$LINENO: result: no" >&5
6027echo "${ECHO_T}no" >&6
6028 fi
6029
6030
a848cd7e
SC
6031 enablestring=
6032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6033echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6034 no_cache=0
6035 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6036if test "${enable_wxprintfv+set}" = set; then
6037 enableval="$enable_wxprintfv"
6038
6039 if test "$enableval" = yes; then
6040 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6041 else
6042 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6043 fi
6044
6045else
6046
6047 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6048 if test "x$LINE" != x ; then
6049 eval "DEFAULT_$LINE"
6050 else
6051 no_cache=1
6052 fi
6053
6054 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6055
6056fi;
6057
6058 eval "$ac_cv_use_wxprintfv"
6059 if test "$no_cache" != 1; then
6060 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6061 fi
6062
6063 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6064 echo "$as_me:$LINENO: result: yes" >&5
6065echo "${ECHO_T}yes" >&6
6066 else
6067 echo "$as_me:$LINENO: result: no" >&5
6068echo "${ECHO_T}no" >&6
6069 fi
6070
6071
6072 enablestring=
6073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6074echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6075 no_cache=0
6076 # Check whether --enable-zipstream or --disable-zipstream was given.
6077if test "${enable_zipstream+set}" = set; then
6078 enableval="$enable_zipstream"
6079
6080 if test "$enableval" = yes; then
6081 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6082 else
6083 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6084 fi
6085
6086else
6087
6088 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6089 if test "x$LINE" != x ; then
6090 eval "DEFAULT_$LINE"
6091 else
6092 no_cache=1
6093 fi
6094
6095 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6096
6097fi;
6098
6099 eval "$ac_cv_use_zipstream"
6100 if test "$no_cache" != 1; then
6101 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6102 fi
6103
6104 if test "$wxUSE_ZIPSTREAM" = yes; then
6105 echo "$as_me:$LINENO: result: yes" >&5
6106echo "${ECHO_T}yes" >&6
6107 else
6108 echo "$as_me:$LINENO: result: no" >&5
6109echo "${ECHO_T}no" >&6
6110 fi
6111
6112
a848cd7e
SC
6113
6114 enablestring=
6115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6116echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6117 no_cache=0
6118 # Check whether --enable-url or --disable-url was given.
6119if test "${enable_url+set}" = set; then
6120 enableval="$enable_url"
6121
6122 if test "$enableval" = yes; then
6123 ac_cv_use_url='wxUSE_URL=yes'
6124 else
6125 ac_cv_use_url='wxUSE_URL=no'
6126 fi
6127
6128else
6129
6130 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6131 if test "x$LINE" != x ; then
6132 eval "DEFAULT_$LINE"
6133 else
6134 no_cache=1
6135 fi
6136
6137 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6138
6139fi;
6140
6141 eval "$ac_cv_use_url"
6142 if test "$no_cache" != 1; then
6143 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6144 fi
6145
6146 if test "$wxUSE_URL" = yes; then
6147 echo "$as_me:$LINENO: result: yes" >&5
6148echo "${ECHO_T}yes" >&6
6149 else
6150 echo "$as_me:$LINENO: result: no" >&5
6151echo "${ECHO_T}no" >&6
6152 fi
6153
6154
6155 enablestring=
6156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6157echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6158 no_cache=0
6159 # Check whether --enable-protocol or --disable-protocol was given.
6160if test "${enable_protocol+set}" = set; then
6161 enableval="$enable_protocol"
6162
6163 if test "$enableval" = yes; then
6164 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6165 else
6166 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6167 fi
6168
6169else
6170
6171 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6172 if test "x$LINE" != x ; then
6173 eval "DEFAULT_$LINE"
6174 else
6175 no_cache=1
6176 fi
6177
6178 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6179
6180fi;
6181
6182 eval "$ac_cv_use_protocol"
6183 if test "$no_cache" != 1; then
6184 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6185 fi
6186
6187 if test "$wxUSE_PROTOCOL" = yes; then
6188 echo "$as_me:$LINENO: result: yes" >&5
6189echo "${ECHO_T}yes" >&6
6190 else
6191 echo "$as_me:$LINENO: result: no" >&5
6192echo "${ECHO_T}no" >&6
6193 fi
6194
6195
6196 enablestring=
6197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6198echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6199 no_cache=0
6200 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6201if test "${enable_protocol_http+set}" = set; then
6202 enableval="$enable_protocol_http"
6203
6204 if test "$enableval" = yes; then
6205 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6206 else
6207 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6208 fi
6209
6210else
6211
6212 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6213 if test "x$LINE" != x ; then
6214 eval "DEFAULT_$LINE"
6215 else
6216 no_cache=1
6217 fi
6218
6219 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6220
6221fi;
6222
6223 eval "$ac_cv_use_protocol_http"
6224 if test "$no_cache" != 1; then
6225 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6226 fi
6227
6228 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6229 echo "$as_me:$LINENO: result: yes" >&5
6230echo "${ECHO_T}yes" >&6
6231 else
6232 echo "$as_me:$LINENO: result: no" >&5
6233echo "${ECHO_T}no" >&6
6234 fi
6235
6236
6237 enablestring=
6238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6239echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6240 no_cache=0
6241 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6242if test "${enable_protocol_ftp+set}" = set; then
6243 enableval="$enable_protocol_ftp"
6244
6245 if test "$enableval" = yes; then
6246 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6247 else
6248 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6249 fi
6250
6251else
6252
6253 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6254 if test "x$LINE" != x ; then
6255 eval "DEFAULT_$LINE"
6256 else
6257 no_cache=1
6258 fi
6259
6260 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6261
6262fi;
6263
6264 eval "$ac_cv_use_protocol_ftp"
6265 if test "$no_cache" != 1; then
6266 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6267 fi
6268
6269 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6270 echo "$as_me:$LINENO: result: yes" >&5
6271echo "${ECHO_T}yes" >&6
6272 else
6273 echo "$as_me:$LINENO: result: no" >&5
6274echo "${ECHO_T}no" >&6
6275 fi
6276
6277
6278 enablestring=
6279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6280echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6281 no_cache=0
6282 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6283if test "${enable_protocol_file+set}" = set; then
6284 enableval="$enable_protocol_file"
6285
6286 if test "$enableval" = yes; then
6287 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6288 else
6289 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6290 fi
6291
6292else
6293
6294 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6295 if test "x$LINE" != x ; then
6296 eval "DEFAULT_$LINE"
6297 else
6298 no_cache=1
6299 fi
6300
6301 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6302
6303fi;
6304
6305 eval "$ac_cv_use_protocol_file"
6306 if test "$no_cache" != 1; then
6307 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6308 fi
6309
6310 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6311 echo "$as_me:$LINENO: result: yes" >&5
6312echo "${ECHO_T}yes" >&6
6313 else
6314 echo "$as_me:$LINENO: result: no" >&5
6315echo "${ECHO_T}no" >&6
6316 fi
6317
6318
6319
6320
6321
6322 enablestring=
6323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6324echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6325 no_cache=0
6326 # Check whether --enable-threads or --disable-threads was given.
6327if test "${enable_threads+set}" = set; then
6328 enableval="$enable_threads"
6329
6330 if test "$enableval" = yes; then
6331 ac_cv_use_threads='wxUSE_THREADS=yes'
6332 else
6333 ac_cv_use_threads='wxUSE_THREADS=no'
6334 fi
6335
6336else
6337
6338 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6339 if test "x$LINE" != x ; then
6340 eval "DEFAULT_$LINE"
6341 else
6342 no_cache=1
6343 fi
6344
6345 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6346
6347fi;
6348
6349 eval "$ac_cv_use_threads"
6350 if test "$no_cache" != 1; then
6351 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6352 fi
6353
6354 if test "$wxUSE_THREADS" = yes; then
6355 echo "$as_me:$LINENO: result: yes" >&5
6356echo "${ECHO_T}yes" >&6
6357 else
6358 echo "$as_me:$LINENO: result: no" >&5
6359echo "${ECHO_T}no" >&6
6360 fi
6361
6362
6363if test "$wxUSE_GUI" = "yes"; then
6364
6365
6366
6367 enablestring=
6368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6369echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6370 no_cache=0
6371 # Check whether --enable-docview or --disable-docview was given.
6372if test "${enable_docview+set}" = set; then
6373 enableval="$enable_docview"
6374
6375 if test "$enableval" = yes; then
6376 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6377 else
6378 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6379 fi
6380
6381else
6382
6383 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6384 if test "x$LINE" != x ; then
6385 eval "DEFAULT_$LINE"
6386 else
6387 no_cache=1
6388 fi
6389
6390 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6391
6392fi;
6393
6394 eval "$ac_cv_use_docview"
6395 if test "$no_cache" != 1; then
6396 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6397 fi
6398
6399 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6400 echo "$as_me:$LINENO: result: yes" >&5
6401echo "${ECHO_T}yes" >&6
6402 else
6403 echo "$as_me:$LINENO: result: no" >&5
6404echo "${ECHO_T}no" >&6
6405 fi
6406
6407
6408 enablestring=
6409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6410echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6411 no_cache=0
6412 # Check whether --enable-help or --disable-help was given.
6413if test "${enable_help+set}" = set; then
6414 enableval="$enable_help"
6415
6416 if test "$enableval" = yes; then
6417 ac_cv_use_help='wxUSE_HELP=yes'
6418 else
6419 ac_cv_use_help='wxUSE_HELP=no'
6420 fi
6421
6422else
6423
6424 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6425 if test "x$LINE" != x ; then
6426 eval "DEFAULT_$LINE"
6427 else
6428 no_cache=1
6429 fi
6430
6431 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6432
6433fi;
6434
6435 eval "$ac_cv_use_help"
6436 if test "$no_cache" != 1; then
6437 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6438 fi
6439
6440 if test "$wxUSE_HELP" = yes; then
6441 echo "$as_me:$LINENO: result: yes" >&5
6442echo "${ECHO_T}yes" >&6
6443 else
6444 echo "$as_me:$LINENO: result: no" >&5
6445echo "${ECHO_T}no" >&6
6446 fi
6447
6448
6449 enablestring=
6450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6451echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6452 no_cache=0
6453 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6454if test "${enable_mshtmlhelp+set}" = set; then
6455 enableval="$enable_mshtmlhelp"
6456
6457 if test "$enableval" = yes; then
6458 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6459 else
6460 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6461 fi
6462
6463else
6464
6465 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6466 if test "x$LINE" != x ; then
6467 eval "DEFAULT_$LINE"
6468 else
6469 no_cache=1
6470 fi
6471
6472 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6473
6474fi;
6475
6476 eval "$ac_cv_use_mshtmlhelp"
6477 if test "$no_cache" != 1; then
6478 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6479 fi
6480
6481 if test "$wxUSE_MS_HTML_HELP" = yes; then
6482 echo "$as_me:$LINENO: result: yes" >&5
6483echo "${ECHO_T}yes" >&6
6484 else
6485 echo "$as_me:$LINENO: result: no" >&5
6486echo "${ECHO_T}no" >&6
6487 fi
6488
6489
6490 enablestring=
6491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6492echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6493 no_cache=0
6494 # Check whether --enable-html or --disable-html was given.
6495if test "${enable_html+set}" = set; then
6496 enableval="$enable_html"
6497
6498 if test "$enableval" = yes; then
6499 ac_cv_use_html='wxUSE_HTML=yes'
6500 else
6501 ac_cv_use_html='wxUSE_HTML=no'
6502 fi
6503
6504else
6505
6506 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6507 if test "x$LINE" != x ; then
6508 eval "DEFAULT_$LINE"
6509 else
6510 no_cache=1
6511 fi
6512
6513 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6514
6515fi;
6516
6517 eval "$ac_cv_use_html"
6518 if test "$no_cache" != 1; then
6519 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6520 fi
6521
6522 if test "$wxUSE_HTML" = yes; then
6523 echo "$as_me:$LINENO: result: yes" >&5
6524echo "${ECHO_T}yes" >&6
6525 else
6526 echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6
6528 fi
6529
6530
6531 enablestring=
6532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6533echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6534 no_cache=0
6535 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6536if test "${enable_htmlhelp+set}" = set; then
6537 enableval="$enable_htmlhelp"
6538
6539 if test "$enableval" = yes; then
6540 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6541 else
6542 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6543 fi
6544
6545else
6546
6547 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6548 if test "x$LINE" != x ; then
6549 eval "DEFAULT_$LINE"
6550 else
6551 no_cache=1
6552 fi
6553
6554 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6555
6556fi;
6557
6558 eval "$ac_cv_use_htmlhelp"
6559 if test "$no_cache" != 1; then
6560 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6561 fi
6562
6563 if test "$wxUSE_WXHTML_HELP" = yes; then
6564 echo "$as_me:$LINENO: result: yes" >&5
6565echo "${ECHO_T}yes" >&6
6566 else
6567 echo "$as_me:$LINENO: result: no" >&5
6568echo "${ECHO_T}no" >&6
6569 fi
6570
6571
9a8f0513
VS
6572 enablestring=
6573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6574echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6575 no_cache=0
6576 # Check whether --enable-xrc or --disable-xrc was given.
6577if test "${enable_xrc+set}" = set; then
6578 enableval="$enable_xrc"
6579
6580 if test "$enableval" = yes; then
6581 ac_cv_use_xrc='wxUSE_XRC=yes'
6582 else
6583 ac_cv_use_xrc='wxUSE_XRC=no'
6584 fi
6585
6586else
6587
6588 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6589 if test "x$LINE" != x ; then
6590 eval "DEFAULT_$LINE"
6591 else
6592 no_cache=1
6593 fi
6594
6595 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6596
6597fi;
6598
6599 eval "$ac_cv_use_xrc"
6600 if test "$no_cache" != 1; then
6601 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6602 fi
6603
6604 if test "$wxUSE_XRC" = yes; then
6605 echo "$as_me:$LINENO: result: yes" >&5
6606echo "${ECHO_T}yes" >&6
6607 else
6608 echo "$as_me:$LINENO: result: no" >&5
6609echo "${ECHO_T}no" >&6
6610 fi
6611
6612
a848cd7e
SC
6613 enablestring=
6614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6615echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6616 no_cache=0
6617 # Check whether --enable-constraints or --disable-constraints was given.
6618if test "${enable_constraints+set}" = set; then
6619 enableval="$enable_constraints"
6620
6621 if test "$enableval" = yes; then
6622 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6623 else
6624 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6625 fi
6626
6627else
6628
6629 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6630 if test "x$LINE" != x ; then
6631 eval "DEFAULT_$LINE"
6632 else
6633 no_cache=1
6634 fi
6635
6636 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6637
6638fi;
6639
6640 eval "$ac_cv_use_constraints"
6641 if test "$no_cache" != 1; then
6642 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6643 fi
6644
6645 if test "$wxUSE_CONSTRAINTS" = yes; then
6646 echo "$as_me:$LINENO: result: yes" >&5
6647echo "${ECHO_T}yes" >&6
6648 else
6649 echo "$as_me:$LINENO: result: no" >&5
6650echo "${ECHO_T}no" >&6
6651 fi
6652
6653
6654 enablestring=
6655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6656echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6657 no_cache=0
6658 # Check whether --enable-printarch or --disable-printarch was given.
6659if test "${enable_printarch+set}" = set; then
6660 enableval="$enable_printarch"
6661
6662 if test "$enableval" = yes; then
6663 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6664 else
6665 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6666 fi
6667
6668else
6669
6670 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6671 if test "x$LINE" != x ; then
6672 eval "DEFAULT_$LINE"
6673 else
6674 no_cache=1
6675 fi
6676
6677 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6678
6679fi;
6680
6681 eval "$ac_cv_use_printarch"
6682 if test "$no_cache" != 1; then
6683 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6684 fi
6685
6686 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6687 echo "$as_me:$LINENO: result: yes" >&5
6688echo "${ECHO_T}yes" >&6
6689 else
6690 echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6
6692 fi
6693
6694
6695 enablestring=
6696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6697echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6698 no_cache=0
6699 # Check whether --enable-mdi or --disable-mdi was given.
6700if test "${enable_mdi+set}" = set; then
6701 enableval="$enable_mdi"
6702
6703 if test "$enableval" = yes; then
8a7b1113 6704 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6705 else
8a7b1113 6706 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6707 fi
6708
6709else
6710
8a7b1113 6711 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6712 if test "x$LINE" != x ; then
6713 eval "DEFAULT_$LINE"
6714 else
6715 no_cache=1
6716 fi
6717
8a7b1113 6718 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6719
6720fi;
6721
6722 eval "$ac_cv_use_mdi"
6723 if test "$no_cache" != 1; then
6724 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6725 fi
6726
8a7b1113
VZ
6727 if test "$wxUSE_MDI" = yes; then
6728 echo "$as_me:$LINENO: result: yes" >&5
6729echo "${ECHO_T}yes" >&6
6730 else
6731 echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6
6733 fi
6734
6735
6736 enablestring=
6737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6738echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6739 no_cache=0
6740 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6741if test "${enable_mdidoc+set}" = set; then
6742 enableval="$enable_mdidoc"
6743
6744 if test "$enableval" = yes; then
6745 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6746 else
6747 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6748 fi
6749
6750else
6751
6752 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6753 if test "x$LINE" != x ; then
6754 eval "DEFAULT_$LINE"
6755 else
6756 no_cache=1
6757 fi
6758
6759 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6760
6761fi;
6762
6763 eval "$ac_cv_use_mdidoc"
6764 if test "$no_cache" != 1; then
6765 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6766 fi
6767
a848cd7e
SC
6768 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6769 echo "$as_me:$LINENO: result: yes" >&5
6770echo "${ECHO_T}yes" >&6
6771 else
6772 echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6
6774 fi
6775
6776
6777 enablestring=
6778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6779echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6780 no_cache=0
6781 # Check whether --enable-loggui or --disable-loggui was given.
6782if test "${enable_loggui+set}" = set; then
6783 enableval="$enable_loggui"
6784
6785 if test "$enableval" = yes; then
6786 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6787 else
6788 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6789 fi
6790
6791else
6792
6793 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6794 if test "x$LINE" != x ; then
6795 eval "DEFAULT_$LINE"
6796 else
6797 no_cache=1
6798 fi
6799
6800 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6801
6802fi;
6803
6804 eval "$ac_cv_use_loggui"
6805 if test "$no_cache" != 1; then
6806 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6807 fi
6808
6809 if test "$wxUSE_LOGGUI" = yes; then
6810 echo "$as_me:$LINENO: result: yes" >&5
6811echo "${ECHO_T}yes" >&6
6812 else
6813 echo "$as_me:$LINENO: result: no" >&5
6814echo "${ECHO_T}no" >&6
6815 fi
6816
6817
6818 enablestring=
6819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6820echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6821 no_cache=0
6822 # Check whether --enable-logwin or --disable-logwin was given.
6823if test "${enable_logwin+set}" = set; then
6824 enableval="$enable_logwin"
6825
6826 if test "$enableval" = yes; then
6827 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6828 else
6829 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6830 fi
6831
6832else
6833
6834 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6835 if test "x$LINE" != x ; then
6836 eval "DEFAULT_$LINE"
6837 else
6838 no_cache=1
6839 fi
6840
6841 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6842
6843fi;
6844
6845 eval "$ac_cv_use_logwin"
6846 if test "$no_cache" != 1; then
6847 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6848 fi
6849
6850 if test "$wxUSE_LOGWINDOW" = yes; then
6851 echo "$as_me:$LINENO: result: yes" >&5
6852echo "${ECHO_T}yes" >&6
6853 else
6854 echo "$as_me:$LINENO: result: no" >&5
6855echo "${ECHO_T}no" >&6
6856 fi
6857
6858
6859 enablestring=
6860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6861echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6862 no_cache=0
6863 # Check whether --enable-logdialog or --disable-logdialog was given.
6864if test "${enable_logdialog+set}" = set; then
6865 enableval="$enable_logdialog"
6866
6867 if test "$enableval" = yes; then
6868 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6869 else
6870 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6871 fi
6872
6873else
6874
6875 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6876 if test "x$LINE" != x ; then
6877 eval "DEFAULT_$LINE"
6878 else
6879 no_cache=1
6880 fi
6881
6882 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6883
6884fi;
6885
6886 eval "$ac_cv_use_logdialog"
6887 if test "$no_cache" != 1; then
6888 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6889 fi
6890
6891 if test "$wxUSE_LOGDIALOG" = yes; then
6892 echo "$as_me:$LINENO: result: yes" >&5
6893echo "${ECHO_T}yes" >&6
6894 else
6895 echo "$as_me:$LINENO: result: no" >&5
6896echo "${ECHO_T}no" >&6
6897 fi
6898
6899
646b6ec1
VS
6900 enablestring=
6901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6902echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6903 no_cache=0
6904 # Check whether --enable-webkit or --disable-webkit was given.
6905if test "${enable_webkit+set}" = set; then
6906 enableval="$enable_webkit"
6907
6908 if test "$enableval" = yes; then
6909 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6910 else
6911 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6912 fi
6913
6914else
6915
6916 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6917 if test "x$LINE" != x ; then
6918 eval "DEFAULT_$LINE"
6919 else
6920 no_cache=1
6921 fi
6922
6923 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6924
6925fi;
6926
6927 eval "$ac_cv_use_webkit"
6928 if test "$no_cache" != 1; then
6929 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6930 fi
6931
6932 if test "$wxUSE_WEBKIT" = yes; then
6933 echo "$as_me:$LINENO: result: yes" >&5
6934echo "${ECHO_T}yes" >&6
6935 else
6936 echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6
6938 fi
6939
6940
a848cd7e
SC
6941
6942 enablestring=
6943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6944echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6945 no_cache=0
6946 # Check whether --enable-postscript or --disable-postscript was given.
6947if test "${enable_postscript+set}" = set; then
6948 enableval="$enable_postscript"
6949
6950 if test "$enableval" = yes; then
6951 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6952 else
6953 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6954 fi
6955
6956else
6957
6958 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6959 if test "x$LINE" != x ; then
6960 eval "DEFAULT_$LINE"
6961 else
6962 no_cache=1
6963 fi
6964
6965 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6966
6967fi;
6968
6969 eval "$ac_cv_use_postscript"
6970 if test "$no_cache" != 1; then
6971 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6972 fi
6973
6974 if test "$wxUSE_POSTSCRIPT" = yes; then
6975 echo "$as_me:$LINENO: result: yes" >&5
6976echo "${ECHO_T}yes" >&6
6977 else
6978 echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6
6980 fi
6981
6982
6983
6984
6985
6986 enablestring=
6987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6988echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6989 no_cache=0
6990 # Check whether --enable-prologio or --disable-prologio was given.
6991if test "${enable_prologio+set}" = set; then
6992 enableval="$enable_prologio"
6993
6994 if test "$enableval" = yes; then
6995 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6996 else
6997 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6998 fi
6999
7000else
7001
7002 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7003 if test "x$LINE" != x ; then
7004 eval "DEFAULT_$LINE"
7005 else
7006 no_cache=1
7007 fi
7008
7009 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7010
7011fi;
7012
7013 eval "$ac_cv_use_prologio"
7014 if test "$no_cache" != 1; then
7015 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7016 fi
7017
7018 if test "$wxUSE_PROLOGIO" = yes; then
7019 echo "$as_me:$LINENO: result: yes" >&5
7020echo "${ECHO_T}yes" >&6
7021 else
7022 echo "$as_me:$LINENO: result: no" >&5
7023echo "${ECHO_T}no" >&6
7024 fi
7025
7026
7027 enablestring=
7028 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7029echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7030 no_cache=0
7031 # Check whether --enable-resources or --disable-resources was given.
7032if test "${enable_resources+set}" = set; then
7033 enableval="$enable_resources"
7034
7035 if test "$enableval" = yes; then
7036 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7037 else
7038 ac_cv_use_resources='wxUSE_RESOURCES=no'
7039 fi
7040
7041else
7042
7043 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7044 if test "x$LINE" != x ; then
7045 eval "DEFAULT_$LINE"
7046 else
7047 no_cache=1
7048 fi
7049
7050 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7051
7052fi;
7053
7054 eval "$ac_cv_use_resources"
7055 if test "$no_cache" != 1; then
7056 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7057 fi
7058
7059 if test "$wxUSE_RESOURCES" = yes; then
7060 echo "$as_me:$LINENO: result: yes" >&5
7061echo "${ECHO_T}yes" >&6
7062 else
7063 echo "$as_me:$LINENO: result: no" >&5
7064echo "${ECHO_T}no" >&6
7065 fi
7066
7067
7068
7069
7070 enablestring=
7071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7072echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7073 no_cache=0
7074 # Check whether --enable-clipboard or --disable-clipboard was given.
7075if test "${enable_clipboard+set}" = set; then
7076 enableval="$enable_clipboard"
7077
7078 if test "$enableval" = yes; then
7079 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7080 else
7081 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7082 fi
7083
7084else
7085
7086 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7087 if test "x$LINE" != x ; then
7088 eval "DEFAULT_$LINE"
7089 else
7090 no_cache=1
7091 fi
7092
7093 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7094
7095fi;
7096
7097 eval "$ac_cv_use_clipboard"
7098 if test "$no_cache" != 1; then
7099 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7100 fi
7101
7102 if test "$wxUSE_CLIPBOARD" = yes; then
7103 echo "$as_me:$LINENO: result: yes" >&5
7104echo "${ECHO_T}yes" >&6
7105 else
7106 echo "$as_me:$LINENO: result: no" >&5
7107echo "${ECHO_T}no" >&6
7108 fi
7109
7110
7111 enablestring=
7112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7113echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7114 no_cache=0
7115 # Check whether --enable-dnd or --disable-dnd was given.
7116if test "${enable_dnd+set}" = set; then
7117 enableval="$enable_dnd"
7118
7119 if test "$enableval" = yes; then
7120 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7121 else
7122 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7123 fi
7124
7125else
7126
7127 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7128 if test "x$LINE" != x ; then
7129 eval "DEFAULT_$LINE"
7130 else
7131 no_cache=1
7132 fi
7133
7134 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7135
7136fi;
7137
7138 eval "$ac_cv_use_dnd"
7139 if test "$no_cache" != 1; then
7140 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7141 fi
7142
7143 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7144 echo "$as_me:$LINENO: result: yes" >&5
7145echo "${ECHO_T}yes" >&6
7146 else
7147 echo "$as_me:$LINENO: result: no" >&5
7148echo "${ECHO_T}no" >&6
7149 fi
7150
7151
7152 enablestring=
7153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7154echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7155 no_cache=0
7156 # Check whether --enable-metafile or --disable-metafile was given.
7157if test "${enable_metafile+set}" = set; then
7158 enableval="$enable_metafile"
7159
7160 if test "$enableval" = yes; then
7161 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7162 else
7163 ac_cv_use_metafile='wxUSE_METAFILE=no'
7164 fi
7165
7166else
7167
7168 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7169 if test "x$LINE" != x ; then
7170 eval "DEFAULT_$LINE"
7171 else
7172 no_cache=1
7173 fi
7174
7175 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7176
7177fi;
7178
7179 eval "$ac_cv_use_metafile"
7180 if test "$no_cache" != 1; then
7181 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7182 fi
7183
7184 if test "$wxUSE_METAFILE" = yes; then
7185 echo "$as_me:$LINENO: result: yes" >&5
7186echo "${ECHO_T}yes" >&6
7187 else
7188 echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6
7190 fi
7191
7192
7193
7194
7195
7196 enablestring=
7197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7198echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7199 no_cache=0
7200 # Check whether --enable-controls or --disable-controls was given.
7201if test "${enable_controls+set}" = set; then
7202 enableval="$enable_controls"
7203
7204 if test "$enableval" = yes; then
7205 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7206 else
7207 ac_cv_use_controls='wxUSE_CONTROLS=no'
7208 fi
7209
7210else
7211
7212 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7213 if test "x$LINE" != x ; then
7214 eval "DEFAULT_$LINE"
7215 else
7216 no_cache=1
7217 fi
7218
7219 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7220
7221fi;
7222
7223 eval "$ac_cv_use_controls"
7224 if test "$no_cache" != 1; then
7225 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7226 fi
7227
7228 if test "$wxUSE_CONTROLS" = yes; then
7229 echo "$as_me:$LINENO: result: yes" >&5
7230echo "${ECHO_T}yes" >&6
7231 else
7232 echo "$as_me:$LINENO: result: no" >&5
7233echo "${ECHO_T}no" >&6
7234 fi
7235
7236
7237if test "$wxUSE_CONTROLS" = "yes"; then
7238 DEFAULT_wxUSE_ACCEL=yes
7239 DEFAULT_wxUSE_BMPBUTTON=yes
7240 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7241 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7242 DEFAULT_wxUSE_CARET=yes
7243 DEFAULT_wxUSE_COMBOBOX=yes
7244 DEFAULT_wxUSE_CHECKBOX=yes
7245 DEFAULT_wxUSE_CHECKLISTBOX=yes
7246 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7247 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7248 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7249 DEFAULT_wxUSE_GAUGE=yes
7250 DEFAULT_wxUSE_GRID=yes
7251 DEFAULT_wxUSE_IMAGLIST=yes
7252 DEFAULT_wxUSE_LISTBOOK=yes
7253 DEFAULT_wxUSE_LISTBOX=yes
7254 DEFAULT_wxUSE_LISTCTRL=yes
7255 DEFAULT_wxUSE_NOTEBOOK=yes
7256 DEFAULT_wxUSE_RADIOBOX=yes
7257 DEFAULT_wxUSE_RADIOBTN=yes
7258 DEFAULT_wxUSE_SASH=yes
7259 DEFAULT_wxUSE_SCROLLBAR=yes
7260 DEFAULT_wxUSE_SLIDER=yes
7261 DEFAULT_wxUSE_SPINBTN=yes
7262 DEFAULT_wxUSE_SPINCTRL=yes
7263 DEFAULT_wxUSE_SPLITTER=yes
7264 DEFAULT_wxUSE_STATBMP=yes
7265 DEFAULT_wxUSE_STATBOX=yes
7266 DEFAULT_wxUSE_STATLINE=yes
7267 DEFAULT_wxUSE_STATUSBAR=yes
7268 DEFAULT_wxUSE_TAB_DIALOG=yes
7269 DEFAULT_wxUSE_TOGGLEBTN=yes
7270 DEFAULT_wxUSE_TOOLBAR=yes
7271 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7272 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7273 DEFAULT_wxUSE_TOOLTIPS=yes
7274 DEFAULT_wxUSE_TREECTRL=yes
7275 DEFAULT_wxUSE_POPUPWIN=yes
7276 DEFAULT_wxUSE_TIPWINDOW=yes
7277elif test "$wxUSE_CONTROLS" = "no"; then
7278 DEFAULT_wxUSE_ACCEL=no
7279 DEFAULT_wxUSE_BMPBUTTON=no
7280 DEFAULT_wxUSE_BUTTON=no
7281 DEFAULT_wxUSE_CALCTRL=no
7282 DEFAULT_wxUSE_CARET=no
7283 DEFAULT_wxUSE_COMBOBOX=no
7284 DEFAULT_wxUSE_CHECKBOX=no
7285 DEFAULT_wxUSE_CHECKLISTBOX=no
7286 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7287 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7288 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7289 DEFAULT_wxUSE_GAUGE=no
7290 DEFAULT_wxUSE_GRID=no
7291 DEFAULT_wxUSE_IMAGLIST=no
7292 DEFAULT_wxUSE_LISTBOOK=no
7293 DEFAULT_wxUSE_LISTBOX=no
7294 DEFAULT_wxUSE_LISTCTRL=no
7295 DEFAULT_wxUSE_NOTEBOOK=no
7296 DEFAULT_wxUSE_RADIOBOX=no
7297 DEFAULT_wxUSE_RADIOBTN=no
7298 DEFAULT_wxUSE_SASH=no
7299 DEFAULT_wxUSE_SCROLLBAR=no
7300 DEFAULT_wxUSE_SLIDER=no
7301 DEFAULT_wxUSE_SPINBTN=no
7302 DEFAULT_wxUSE_SPINCTRL=no
7303 DEFAULT_wxUSE_SPLITTER=no
7304 DEFAULT_wxUSE_STATBMP=no
7305 DEFAULT_wxUSE_STATBOX=no
7306 DEFAULT_wxUSE_STATLINE=no
7307 DEFAULT_wxUSE_STATUSBAR=no
7308 DEFAULT_wxUSE_TAB_DIALOG=no
7309 DEFAULT_wxUSE_TOGGLEBTN=no
7310 DEFAULT_wxUSE_TOOLBAR=no
7311 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7312 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7313 DEFAULT_wxUSE_TOOLTIPS=no
7314 DEFAULT_wxUSE_TREECTRL=no
7315 DEFAULT_wxUSE_POPUPWIN=no
7316 DEFAULT_wxUSE_TIPWINDOW=no
7317fi
7318
a848cd7e
SC
7319
7320 enablestring=
7321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7322echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7323 no_cache=0
7324 # Check whether --enable-accel or --disable-accel was given.
7325if test "${enable_accel+set}" = set; then
7326 enableval="$enable_accel"
7327
7328 if test "$enableval" = yes; then
7329 ac_cv_use_accel='wxUSE_ACCEL=yes'
7330 else
7331 ac_cv_use_accel='wxUSE_ACCEL=no'
7332 fi
7333
7334else
7335
7336 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7337 if test "x$LINE" != x ; then
7338 eval "DEFAULT_$LINE"
7339 else
7340 no_cache=1
7341 fi
7342
7343 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7344
7345fi;
7346
7347 eval "$ac_cv_use_accel"
7348 if test "$no_cache" != 1; then
7349 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7350 fi
7351
7352 if test "$wxUSE_ACCEL" = yes; then
7353 echo "$as_me:$LINENO: result: yes" >&5
7354echo "${ECHO_T}yes" >&6
7355 else
7356 echo "$as_me:$LINENO: result: no" >&5
7357echo "${ECHO_T}no" >&6
7358 fi
7359
7360
7361 enablestring=
7362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7363echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7364 no_cache=0
7365 # Check whether --enable-button or --disable-button was given.
7366if test "${enable_button+set}" = set; then
7367 enableval="$enable_button"
7368
7369 if test "$enableval" = yes; then
7370 ac_cv_use_button='wxUSE_BUTTON=yes'
7371 else
7372 ac_cv_use_button='wxUSE_BUTTON=no'
7373 fi
7374
7375else
7376
7377 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7378 if test "x$LINE" != x ; then
7379 eval "DEFAULT_$LINE"
7380 else
7381 no_cache=1
7382 fi
7383
7384 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7385
7386fi;
7387
7388 eval "$ac_cv_use_button"
7389 if test "$no_cache" != 1; then
7390 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7391 fi
7392
7393 if test "$wxUSE_BUTTON" = yes; then
7394 echo "$as_me:$LINENO: result: yes" >&5
7395echo "${ECHO_T}yes" >&6
7396 else
7397 echo "$as_me:$LINENO: result: no" >&5
7398echo "${ECHO_T}no" >&6
7399 fi
7400
7401
7402 enablestring=
7403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7404echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7405 no_cache=0
7406 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7407if test "${enable_bmpbutton+set}" = set; then
7408 enableval="$enable_bmpbutton"
7409
7410 if test "$enableval" = yes; then
7411 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7412 else
7413 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7414 fi
7415
7416else
7417
7418 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7419 if test "x$LINE" != x ; then
7420 eval "DEFAULT_$LINE"
7421 else
7422 no_cache=1
7423 fi
7424
7425 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7426
7427fi;
7428
7429 eval "$ac_cv_use_bmpbutton"
7430 if test "$no_cache" != 1; then
7431 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7432 fi
7433
7434 if test "$wxUSE_BMPBUTTON" = yes; then
7435 echo "$as_me:$LINENO: result: yes" >&5
7436echo "${ECHO_T}yes" >&6
7437 else
7438 echo "$as_me:$LINENO: result: no" >&5
7439echo "${ECHO_T}no" >&6
7440 fi
7441
7442
7443 enablestring=
7444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7445echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7446 no_cache=0
7447 # Check whether --enable-calendar or --disable-calendar was given.
7448if test "${enable_calendar+set}" = set; then
7449 enableval="$enable_calendar"
7450
7451 if test "$enableval" = yes; then
7452 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7453 else
7454 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7455 fi
7456
7457else
7458
7459 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7460 if test "x$LINE" != x ; then
7461 eval "DEFAULT_$LINE"
7462 else
7463 no_cache=1
7464 fi
7465
7466 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7467
7468fi;
7469
7470 eval "$ac_cv_use_calendar"
7471 if test "$no_cache" != 1; then
7472 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7473 fi
7474
7475 if test "$wxUSE_CALCTRL" = yes; then
7476 echo "$as_me:$LINENO: result: yes" >&5
7477echo "${ECHO_T}yes" >&6
7478 else
7479 echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6
7481 fi
7482
7483
7484 enablestring=
7485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7486echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7487 no_cache=0
7488 # Check whether --enable-caret or --disable-caret was given.
7489if test "${enable_caret+set}" = set; then
7490 enableval="$enable_caret"
7491
7492 if test "$enableval" = yes; then
7493 ac_cv_use_caret='wxUSE_CARET=yes'
7494 else
7495 ac_cv_use_caret='wxUSE_CARET=no'
7496 fi
7497
7498else
7499
7500 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7501 if test "x$LINE" != x ; then
7502 eval "DEFAULT_$LINE"
7503 else
7504 no_cache=1
7505 fi
7506
7507 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7508
7509fi;
7510
7511 eval "$ac_cv_use_caret"
7512 if test "$no_cache" != 1; then
7513 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7514 fi
7515
7516 if test "$wxUSE_CARET" = yes; then
7517 echo "$as_me:$LINENO: result: yes" >&5
7518echo "${ECHO_T}yes" >&6
7519 else
7520 echo "$as_me:$LINENO: result: no" >&5
7521echo "${ECHO_T}no" >&6
7522 fi
7523
7524
7525 enablestring=
7526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7527echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7528 no_cache=0
7529 # Check whether --enable-checkbox or --disable-checkbox was given.
7530if test "${enable_checkbox+set}" = set; then
7531 enableval="$enable_checkbox"
7532
7533 if test "$enableval" = yes; then
7534 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7535 else
7536 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7537 fi
7538
7539else
7540
7541 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7542 if test "x$LINE" != x ; then
7543 eval "DEFAULT_$LINE"
7544 else
7545 no_cache=1
7546 fi
7547
7548 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7549
7550fi;
7551
7552 eval "$ac_cv_use_checkbox"
7553 if test "$no_cache" != 1; then
7554 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7555 fi
7556
7557 if test "$wxUSE_CHECKBOX" = yes; then
7558 echo "$as_me:$LINENO: result: yes" >&5
7559echo "${ECHO_T}yes" >&6
7560 else
7561 echo "$as_me:$LINENO: result: no" >&5
7562echo "${ECHO_T}no" >&6
7563 fi
7564
7565
7566 enablestring=
7567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7568echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7569 no_cache=0
7570 # Check whether --enable-checklst or --disable-checklst was given.
7571if test "${enable_checklst+set}" = set; then
7572 enableval="$enable_checklst"
7573
7574 if test "$enableval" = yes; then
7575 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7576 else
7577 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7578 fi
7579
7580else
7581
7582 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7583 if test "x$LINE" != x ; then
7584 eval "DEFAULT_$LINE"
7585 else
7586 no_cache=1
7587 fi
7588
7589 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7590
7591fi;
7592
7593 eval "$ac_cv_use_checklst"
7594 if test "$no_cache" != 1; then
7595 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7596 fi
7597
7598 if test "$wxUSE_CHECKLST" = yes; then
7599 echo "$as_me:$LINENO: result: yes" >&5
7600echo "${ECHO_T}yes" >&6
7601 else
7602 echo "$as_me:$LINENO: result: no" >&5
7603echo "${ECHO_T}no" >&6
7604 fi
7605
7606
7607 enablestring=
7608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7609echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7610 no_cache=0
7611 # Check whether --enable-choice or --disable-choice was given.
7612if test "${enable_choice+set}" = set; then
7613 enableval="$enable_choice"
7614
7615 if test "$enableval" = yes; then
7616 ac_cv_use_choice='wxUSE_CHOICE=yes'
7617 else
7618 ac_cv_use_choice='wxUSE_CHOICE=no'
7619 fi
7620
7621else
7622
7623 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7624 if test "x$LINE" != x ; then
7625 eval "DEFAULT_$LINE"
7626 else
7627 no_cache=1
7628 fi
7629
7630 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7631
7632fi;
7633
7634 eval "$ac_cv_use_choice"
7635 if test "$no_cache" != 1; then
7636 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7637 fi
7638
7639 if test "$wxUSE_CHOICE" = yes; then
7640 echo "$as_me:$LINENO: result: yes" >&5
7641echo "${ECHO_T}yes" >&6
7642 else
7643 echo "$as_me:$LINENO: result: no" >&5
7644echo "${ECHO_T}no" >&6
7645 fi
7646
7647
92bbdbcd
WS
7648 enablestring=
7649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7650echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7651 no_cache=0
7652 # Check whether --enable-choicebook or --disable-choicebook was given.
7653if test "${enable_choicebook+set}" = set; then
7654 enableval="$enable_choicebook"
7655
7656 if test "$enableval" = yes; then
7657 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7658 else
7659 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7660 fi
7661
7662else
7663
7664 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7665 if test "x$LINE" != x ; then
7666 eval "DEFAULT_$LINE"
7667 else
7668 no_cache=1
7669 fi
7670
7671 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7672
7673fi;
7674
7675 eval "$ac_cv_use_choicebook"
7676 if test "$no_cache" != 1; then
7677 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7678 fi
7679
7680 if test "$wxUSE_CHOICEBOOK" = yes; then
7681 echo "$as_me:$LINENO: result: yes" >&5
7682echo "${ECHO_T}yes" >&6
7683 else
7684 echo "$as_me:$LINENO: result: no" >&5
7685echo "${ECHO_T}no" >&6
7686 fi
7687
7688
a848cd7e
SC
7689 enablestring=
7690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7691echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7692 no_cache=0
7693 # Check whether --enable-combobox or --disable-combobox was given.
7694if test "${enable_combobox+set}" = set; then
7695 enableval="$enable_combobox"
7696
7697 if test "$enableval" = yes; then
7698 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7699 else
7700 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7701 fi
7702
7703else
7704
7705 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7706 if test "x$LINE" != x ; then
7707 eval "DEFAULT_$LINE"
7708 else
7709 no_cache=1
7710 fi
7711
7712 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7713
7714fi;
7715
7716 eval "$ac_cv_use_combobox"
7717 if test "$no_cache" != 1; then
7718 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7719 fi
7720
7721 if test "$wxUSE_COMBOBOX" = yes; then
7722 echo "$as_me:$LINENO: result: yes" >&5
7723echo "${ECHO_T}yes" >&6
7724 else
7725 echo "$as_me:$LINENO: result: no" >&5
7726echo "${ECHO_T}no" >&6
7727 fi
7728
7729
da98e9be
VZ
7730 enablestring=
7731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7732echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7733 no_cache=0
7734 # Check whether --enable-datepick or --disable-datepick was given.
7735if test "${enable_datepick+set}" = set; then
7736 enableval="$enable_datepick"
7737
7738 if test "$enableval" = yes; then
7739 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7740 else
7741 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7742 fi
7743
7744else
7745
7746 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7747 if test "x$LINE" != x ; then
7748 eval "DEFAULT_$LINE"
7749 else
7750 no_cache=1
7751 fi
7752
7753 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7754
7755fi;
7756
7757 eval "$ac_cv_use_datepick"
7758 if test "$no_cache" != 1; then
7759 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7760 fi
7761
7762 if test "$wxUSE_DATEPICKCTRL" = yes; then
7763 echo "$as_me:$LINENO: result: yes" >&5
7764echo "${ECHO_T}yes" >&6
7765 else
7766 echo "$as_me:$LINENO: result: no" >&5
7767echo "${ECHO_T}no" >&6
7768 fi
7769
7770
a848cd7e
SC
7771 enablestring=
7772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7773echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7774 no_cache=0
7775 # Check whether --enable-display or --disable-display was given.
7776if test "${enable_display+set}" = set; then
7777 enableval="$enable_display"
7778
7779 if test "$enableval" = yes; then
7780 ac_cv_use_display='wxUSE_DISPLAY=yes'
7781 else
7782 ac_cv_use_display='wxUSE_DISPLAY=no'
7783 fi
7784
7785else
7786
7787 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7788 if test "x$LINE" != x ; then
7789 eval "DEFAULT_$LINE"
7790 else
7791 no_cache=1
7792 fi
7793
7794 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7795
7796fi;
7797
7798 eval "$ac_cv_use_display"
7799 if test "$no_cache" != 1; then
7800 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7801 fi
7802
7803 if test "$wxUSE_DISPLAY" = yes; then
7804 echo "$as_me:$LINENO: result: yes" >&5
7805echo "${ECHO_T}yes" >&6
7806 else
7807 echo "$as_me:$LINENO: result: no" >&5
7808echo "${ECHO_T}no" >&6
7809 fi
7810
7811
7812 enablestring=
7813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7814echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7815 no_cache=0
7816 # Check whether --enable-gauge or --disable-gauge was given.
7817if test "${enable_gauge+set}" = set; then
7818 enableval="$enable_gauge"
7819
7820 if test "$enableval" = yes; then
7821 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7822 else
7823 ac_cv_use_gauge='wxUSE_GAUGE=no'
7824 fi
7825
7826else
7827
7828 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7829 if test "x$LINE" != x ; then
7830 eval "DEFAULT_$LINE"
7831 else
7832 no_cache=1
7833 fi
7834
7835 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7836
7837fi;
7838
7839 eval "$ac_cv_use_gauge"
7840 if test "$no_cache" != 1; then
7841 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7842 fi
7843
7844 if test "$wxUSE_GAUGE" = yes; then
7845 echo "$as_me:$LINENO: result: yes" >&5
7846echo "${ECHO_T}yes" >&6
7847 else
7848 echo "$as_me:$LINENO: result: no" >&5
7849echo "${ECHO_T}no" >&6
7850 fi
7851
7852
7853 enablestring=
7854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7855echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7856 no_cache=0
7857 # Check whether --enable-grid or --disable-grid was given.
7858if test "${enable_grid+set}" = set; then
7859 enableval="$enable_grid"
7860
7861 if test "$enableval" = yes; then
7862 ac_cv_use_grid='wxUSE_GRID=yes'
7863 else
7864 ac_cv_use_grid='wxUSE_GRID=no'
7865 fi
7866
7867else
7868
7869 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7870 if test "x$LINE" != x ; then
7871 eval "DEFAULT_$LINE"
7872 else
7873 no_cache=1
7874 fi
7875
7876 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7877
7878fi;
7879
7880 eval "$ac_cv_use_grid"
7881 if test "$no_cache" != 1; then
7882 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7883 fi
7884
7885 if test "$wxUSE_GRID" = yes; then
7886 echo "$as_me:$LINENO: result: yes" >&5
7887echo "${ECHO_T}yes" >&6
7888 else
7889 echo "$as_me:$LINENO: result: no" >&5
7890echo "${ECHO_T}no" >&6
7891 fi
7892
7893
7894 enablestring=
7895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7896echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7897 no_cache=0
7898 # Check whether --enable-imaglist or --disable-imaglist was given.
7899if test "${enable_imaglist+set}" = set; then
7900 enableval="$enable_imaglist"
7901
7902 if test "$enableval" = yes; then
7903 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7904 else
7905 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7906 fi
7907
7908else
7909
7910 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7911 if test "x$LINE" != x ; then
7912 eval "DEFAULT_$LINE"
7913 else
7914 no_cache=1
7915 fi
7916
7917 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7918
7919fi;
7920
7921 eval "$ac_cv_use_imaglist"
7922 if test "$no_cache" != 1; then
7923 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7924 fi
7925
7926 if test "$wxUSE_IMAGLIST" = yes; then
7927 echo "$as_me:$LINENO: result: yes" >&5
7928echo "${ECHO_T}yes" >&6
7929 else
7930 echo "$as_me:$LINENO: result: no" >&5
7931echo "${ECHO_T}no" >&6
7932 fi
7933
7934
7935 enablestring=
7936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7937echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7938 no_cache=0
7939 # Check whether --enable-listbook or --disable-listbook was given.
7940if test "${enable_listbook+set}" = set; then
7941 enableval="$enable_listbook"
7942
7943 if test "$enableval" = yes; then
7944 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7945 else
7946 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7947 fi
7948
7949else
7950
7951 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7952 if test "x$LINE" != x ; then
7953 eval "DEFAULT_$LINE"
7954 else
7955 no_cache=1
7956 fi
7957
7958 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7959
7960fi;
7961
7962 eval "$ac_cv_use_listbook"
7963 if test "$no_cache" != 1; then
7964 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7965 fi
7966
7967 if test "$wxUSE_LISTBOOK" = yes; then
7968 echo "$as_me:$LINENO: result: yes" >&5
7969echo "${ECHO_T}yes" >&6
7970 else
7971 echo "$as_me:$LINENO: result: no" >&5
7972echo "${ECHO_T}no" >&6
7973 fi
7974
7975
7976 enablestring=
7977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7978echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7979 no_cache=0
7980 # Check whether --enable-listbox or --disable-listbox was given.
7981if test "${enable_listbox+set}" = set; then
7982 enableval="$enable_listbox"
7983
7984 if test "$enableval" = yes; then
7985 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7986 else
7987 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7988 fi
7989
7990else
7991
7992 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7993 if test "x$LINE" != x ; then
7994 eval "DEFAULT_$LINE"
7995 else
7996 no_cache=1
7997 fi
7998
7999 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8000
8001fi;
8002
8003 eval "$ac_cv_use_listbox"
8004 if test "$no_cache" != 1; then
8005 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8006 fi
8007
8008 if test "$wxUSE_LISTBOX" = yes; then
8009 echo "$as_me:$LINENO: result: yes" >&5
8010echo "${ECHO_T}yes" >&6
8011 else
8012 echo "$as_me:$LINENO: result: no" >&5
8013echo "${ECHO_T}no" >&6
8014 fi
8015
8016
8017 enablestring=
8018 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8019echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8020 no_cache=0
8021 # Check whether --enable-listctrl or --disable-listctrl was given.
8022if test "${enable_listctrl+set}" = set; then
8023 enableval="$enable_listctrl"
8024
8025 if test "$enableval" = yes; then
8026 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8027 else
8028 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8029 fi
8030
8031else
8032
8033 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8034 if test "x$LINE" != x ; then
8035 eval "DEFAULT_$LINE"
8036 else
8037 no_cache=1
8038 fi
8039
8040 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8041
8042fi;
8043
8044 eval "$ac_cv_use_listctrl"
8045 if test "$no_cache" != 1; then
8046 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8047 fi
8048
8049 if test "$wxUSE_LISTCTRL" = yes; then
8050 echo "$as_me:$LINENO: result: yes" >&5
8051echo "${ECHO_T}yes" >&6
8052 else
8053 echo "$as_me:$LINENO: result: no" >&5
8054echo "${ECHO_T}no" >&6
8055 fi
8056
8057
8058 enablestring=
8059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8060echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8061 no_cache=0
8062 # Check whether --enable-notebook or --disable-notebook was given.
8063if test "${enable_notebook+set}" = set; then
8064 enableval="$enable_notebook"
8065
8066 if test "$enableval" = yes; then
8067 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8068 else
8069 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8070 fi
8071
8072else
8073
8074 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8075 if test "x$LINE" != x ; then
8076 eval "DEFAULT_$LINE"
8077 else
8078 no_cache=1
8079 fi
8080
8081 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8082
8083fi;
8084
8085 eval "$ac_cv_use_notebook"
8086 if test "$no_cache" != 1; then
8087 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8088 fi
8089
8090 if test "$wxUSE_NOTEBOOK" = yes; then
8091 echo "$as_me:$LINENO: result: yes" >&5
8092echo "${ECHO_T}yes" >&6
8093 else
8094 echo "$as_me:$LINENO: result: no" >&5
8095echo "${ECHO_T}no" >&6
8096 fi
8097
8098
8099 enablestring=
8100 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8101echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8102 no_cache=0
8103 # Check whether --enable-radiobox or --disable-radiobox was given.
8104if test "${enable_radiobox+set}" = set; then
8105 enableval="$enable_radiobox"
8106
8107 if test "$enableval" = yes; then
8108 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8109 else
8110 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8111 fi
8112
8113else
8114
8115 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8116 if test "x$LINE" != x ; then
8117 eval "DEFAULT_$LINE"
8118 else
8119 no_cache=1
8120 fi
8121
8122 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8123
8124fi;
8125
8126 eval "$ac_cv_use_radiobox"
8127 if test "$no_cache" != 1; then
8128 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8129 fi
8130
8131 if test "$wxUSE_RADIOBOX" = yes; then
8132 echo "$as_me:$LINENO: result: yes" >&5
8133echo "${ECHO_T}yes" >&6
8134 else
8135 echo "$as_me:$LINENO: result: no" >&5
8136echo "${ECHO_T}no" >&6
8137 fi
8138
8139
8140 enablestring=
8141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8142echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8143 no_cache=0
8144 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8145if test "${enable_radiobtn+set}" = set; then
8146 enableval="$enable_radiobtn"
8147
8148 if test "$enableval" = yes; then
8149 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8150 else
8151 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8152 fi
8153
8154else
8155
8156 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8157 if test "x$LINE" != x ; then
8158 eval "DEFAULT_$LINE"
8159 else
8160 no_cache=1
8161 fi
8162
8163 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8164
8165fi;
8166
8167 eval "$ac_cv_use_radiobtn"
8168 if test "$no_cache" != 1; then
8169 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8170 fi
8171
8172 if test "$wxUSE_RADIOBTN" = yes; then
8173 echo "$as_me:$LINENO: result: yes" >&5
8174echo "${ECHO_T}yes" >&6
8175 else
8176 echo "$as_me:$LINENO: result: no" >&5
8177echo "${ECHO_T}no" >&6
8178 fi
8179
8180
8181 enablestring=
8182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8183echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8184 no_cache=0
8185 # Check whether --enable-sash or --disable-sash was given.
8186if test "${enable_sash+set}" = set; then
8187 enableval="$enable_sash"
8188
8189 if test "$enableval" = yes; then
8190 ac_cv_use_sash='wxUSE_SASH=yes'
8191 else
8192 ac_cv_use_sash='wxUSE_SASH=no'
8193 fi
8194
8195else
8196
8197 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8198 if test "x$LINE" != x ; then
8199 eval "DEFAULT_$LINE"
8200 else
8201 no_cache=1
8202 fi
8203
8204 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8205
8206fi;
8207
8208 eval "$ac_cv_use_sash"
8209 if test "$no_cache" != 1; then
8210 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8211 fi
8212
8213 if test "$wxUSE_SASH" = yes; then
8214 echo "$as_me:$LINENO: result: yes" >&5
8215echo "${ECHO_T}yes" >&6
8216 else
8217 echo "$as_me:$LINENO: result: no" >&5
8218echo "${ECHO_T}no" >&6
8219 fi
8220
8221
8222 enablestring=
8223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8224echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8225 no_cache=0
8226 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8227if test "${enable_scrollbar+set}" = set; then
8228 enableval="$enable_scrollbar"
8229
8230 if test "$enableval" = yes; then
8231 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8232 else
8233 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8234 fi
8235
8236else
8237
8238 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8239 if test "x$LINE" != x ; then
8240 eval "DEFAULT_$LINE"
8241 else
8242 no_cache=1
8243 fi
8244
8245 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8246
8247fi;
8248
8249 eval "$ac_cv_use_scrollbar"
8250 if test "$no_cache" != 1; then
8251 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8252 fi
8253
8254 if test "$wxUSE_SCROLLBAR" = yes; then
8255 echo "$as_me:$LINENO: result: yes" >&5
8256echo "${ECHO_T}yes" >&6
8257 else
8258 echo "$as_me:$LINENO: result: no" >&5
8259echo "${ECHO_T}no" >&6
8260 fi
8261
8262
8263 enablestring=
8264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8265echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8266 no_cache=0
8267 # Check whether --enable-slider or --disable-slider was given.
8268if test "${enable_slider+set}" = set; then
8269 enableval="$enable_slider"
8270
8271 if test "$enableval" = yes; then
8272 ac_cv_use_slider='wxUSE_SLIDER=yes'
8273 else
8274 ac_cv_use_slider='wxUSE_SLIDER=no'
8275 fi
8276
8277else
8278
8279 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8280 if test "x$LINE" != x ; then
8281 eval "DEFAULT_$LINE"
8282 else
8283 no_cache=1
8284 fi
8285
8286 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8287
8288fi;
8289
8290 eval "$ac_cv_use_slider"
8291 if test "$no_cache" != 1; then
8292 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8293 fi
8294
8295 if test "$wxUSE_SLIDER" = yes; then
8296 echo "$as_me:$LINENO: result: yes" >&5
8297echo "${ECHO_T}yes" >&6
8298 else
8299 echo "$as_me:$LINENO: result: no" >&5
8300echo "${ECHO_T}no" >&6
8301 fi
8302
8303
8304 enablestring=
8305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8306echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8307 no_cache=0
8308 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8309if test "${enable_spinbtn+set}" = set; then
8310 enableval="$enable_spinbtn"
8311
8312 if test "$enableval" = yes; then
8313 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8314 else
8315 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8316 fi
8317
8318else
8319
8320 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8321 if test "x$LINE" != x ; then
8322 eval "DEFAULT_$LINE"
8323 else
8324 no_cache=1
8325 fi
8326
8327 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8328
8329fi;
8330
8331 eval "$ac_cv_use_spinbtn"
8332 if test "$no_cache" != 1; then
8333 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8334 fi
8335
8336 if test "$wxUSE_SPINBTN" = yes; then
8337 echo "$as_me:$LINENO: result: yes" >&5
8338echo "${ECHO_T}yes" >&6
8339 else
8340 echo "$as_me:$LINENO: result: no" >&5
8341echo "${ECHO_T}no" >&6
8342 fi
8343
8344
8345 enablestring=
8346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8347echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8348 no_cache=0
8349 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8350if test "${enable_spinctrl+set}" = set; then
8351 enableval="$enable_spinctrl"
8352
8353 if test "$enableval" = yes; then
8354 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8355 else
8356 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8357 fi
8358
8359else
8360
8361 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8362 if test "x$LINE" != x ; then
8363 eval "DEFAULT_$LINE"
8364 else
8365 no_cache=1
8366 fi
8367
8368 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8369
8370fi;
8371
8372 eval "$ac_cv_use_spinctrl"
8373 if test "$no_cache" != 1; then
8374 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8375 fi
8376
8377 if test "$wxUSE_SPINCTRL" = yes; then
8378 echo "$as_me:$LINENO: result: yes" >&5
8379echo "${ECHO_T}yes" >&6
8380 else
8381 echo "$as_me:$LINENO: result: no" >&5
8382echo "${ECHO_T}no" >&6
8383 fi
8384
8385
8386 enablestring=
8387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8388echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8389 no_cache=0
8390 # Check whether --enable-splitter or --disable-splitter was given.
8391if test "${enable_splitter+set}" = set; then
8392 enableval="$enable_splitter"
8393
8394 if test "$enableval" = yes; then
8395 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8396 else
8397 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8398 fi
8399
8400else
8401
8402 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8403 if test "x$LINE" != x ; then
8404 eval "DEFAULT_$LINE"
8405 else
8406 no_cache=1
8407 fi
8408
8409 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8410
8411fi;
8412
8413 eval "$ac_cv_use_splitter"
8414 if test "$no_cache" != 1; then
8415 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8416 fi
8417
8418 if test "$wxUSE_SPLITTER" = yes; then
8419 echo "$as_me:$LINENO: result: yes" >&5
8420echo "${ECHO_T}yes" >&6
8421 else
8422 echo "$as_me:$LINENO: result: no" >&5
8423echo "${ECHO_T}no" >&6
8424 fi
8425
8426
8427 enablestring=
8428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8429echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8430 no_cache=0
8431 # Check whether --enable-statbmp or --disable-statbmp was given.
8432if test "${enable_statbmp+set}" = set; then
8433 enableval="$enable_statbmp"
8434
8435 if test "$enableval" = yes; then
8436 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8437 else
8438 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8439 fi
8440
8441else
8442
8443 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8444 if test "x$LINE" != x ; then
8445 eval "DEFAULT_$LINE"
8446 else
8447 no_cache=1
8448 fi
8449
8450 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8451
8452fi;
8453
8454 eval "$ac_cv_use_statbmp"
8455 if test "$no_cache" != 1; then
8456 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8457 fi
8458
8459 if test "$wxUSE_STATBMP" = yes; then
8460 echo "$as_me:$LINENO: result: yes" >&5
8461echo "${ECHO_T}yes" >&6
8462 else
8463 echo "$as_me:$LINENO: result: no" >&5
8464echo "${ECHO_T}no" >&6
8465 fi
8466
8467
8468 enablestring=
8469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8470echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8471 no_cache=0
8472 # Check whether --enable-statbox or --disable-statbox was given.
8473if test "${enable_statbox+set}" = set; then
8474 enableval="$enable_statbox"
8475
8476 if test "$enableval" = yes; then
8477 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8478 else
8479 ac_cv_use_statbox='wxUSE_STATBOX=no'
8480 fi
8481
8482else
8483
8484 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8485 if test "x$LINE" != x ; then
8486 eval "DEFAULT_$LINE"
8487 else
8488 no_cache=1
8489 fi
8490
8491 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8492
8493fi;
8494
8495 eval "$ac_cv_use_statbox"
8496 if test "$no_cache" != 1; then
8497 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8498 fi
8499
8500 if test "$wxUSE_STATBOX" = yes; then
8501 echo "$as_me:$LINENO: result: yes" >&5
8502echo "${ECHO_T}yes" >&6
8503 else
8504 echo "$as_me:$LINENO: result: no" >&5
8505echo "${ECHO_T}no" >&6
8506 fi
8507
8508
8509 enablestring=
8510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8511echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8512 no_cache=0
8513 # Check whether --enable-statline or --disable-statline was given.
8514if test "${enable_statline+set}" = set; then
8515 enableval="$enable_statline"
8516
8517 if test "$enableval" = yes; then
8518 ac_cv_use_statline='wxUSE_STATLINE=yes'
8519 else
8520 ac_cv_use_statline='wxUSE_STATLINE=no'
8521 fi
8522
8523else
8524
8525 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8526 if test "x$LINE" != x ; then
8527 eval "DEFAULT_$LINE"
8528 else
8529 no_cache=1
8530 fi
8531
8532 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8533
8534fi;
8535
8536 eval "$ac_cv_use_statline"
8537 if test "$no_cache" != 1; then
8538 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8539 fi
8540
8541 if test "$wxUSE_STATLINE" = yes; then
8542 echo "$as_me:$LINENO: result: yes" >&5
8543echo "${ECHO_T}yes" >&6
8544 else
8545 echo "$as_me:$LINENO: result: no" >&5
8546echo "${ECHO_T}no" >&6
8547 fi
8548
8549
8550 enablestring=
8551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8552echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8553 no_cache=0
8554 # Check whether --enable-stattext or --disable-stattext was given.
8555if test "${enable_stattext+set}" = set; then
8556 enableval="$enable_stattext"
8557
8558 if test "$enableval" = yes; then
8559 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8560 else
8561 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8562 fi
8563
8564else
8565
8566 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8567 if test "x$LINE" != x ; then
8568 eval "DEFAULT_$LINE"
8569 else
8570 no_cache=1
8571 fi
8572
8573 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8574
8575fi;
8576
8577 eval "$ac_cv_use_stattext"
8578 if test "$no_cache" != 1; then
8579 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8580 fi
8581
8582 if test "$wxUSE_STATTEXT" = yes; then
8583 echo "$as_me:$LINENO: result: yes" >&5
8584echo "${ECHO_T}yes" >&6
8585 else
8586 echo "$as_me:$LINENO: result: no" >&5
8587echo "${ECHO_T}no" >&6
8588 fi
8589
8590
8591 enablestring=
8592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8593echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8594 no_cache=0
8595 # Check whether --enable-statusbar or --disable-statusbar was given.
8596if test "${enable_statusbar+set}" = set; then
8597 enableval="$enable_statusbar"
8598
8599 if test "$enableval" = yes; then
8600 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8601 else
8602 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8603 fi
8604
8605else
8606
8607 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8608 if test "x$LINE" != x ; then
8609 eval "DEFAULT_$LINE"
8610 else
8611 no_cache=1
8612 fi
8613
8614 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8615
8616fi;
8617
8618 eval "$ac_cv_use_statusbar"
8619 if test "$no_cache" != 1; then
8620 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8621 fi
8622
8623 if test "$wxUSE_STATUSBAR" = yes; then
8624 echo "$as_me:$LINENO: result: yes" >&5
8625echo "${ECHO_T}yes" >&6
8626 else
8627 echo "$as_me:$LINENO: result: no" >&5
8628echo "${ECHO_T}no" >&6
8629 fi
8630
8631
8632 enablestring=
8633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8634echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8635 no_cache=0
8636 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8637if test "${enable_tabdialog+set}" = set; then
8638 enableval="$enable_tabdialog"
8639
8640 if test "$enableval" = yes; then
8641 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8642 else
8643 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8644 fi
8645
8646else
8647
8648 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8649 if test "x$LINE" != x ; then
8650 eval "DEFAULT_$LINE"
8651 else
8652 no_cache=1
8653 fi
8654
8655 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8656
8657fi;
8658
8659 eval "$ac_cv_use_tabdialog"
8660 if test "$no_cache" != 1; then
8661 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8662 fi
8663
8664 if test "$wxUSE_TABDIALOG" = yes; then
8665 echo "$as_me:$LINENO: result: yes" >&5
8666echo "${ECHO_T}yes" >&6
8667 else
8668 echo "$as_me:$LINENO: result: no" >&5
8669echo "${ECHO_T}no" >&6
8670 fi
8671
8672
8673 enablestring=
8674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8675echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8676 no_cache=0
8677 # Check whether --enable-textctrl or --disable-textctrl was given.
8678if test "${enable_textctrl+set}" = set; then
8679 enableval="$enable_textctrl"
8680
8681 if test "$enableval" = yes; then
8682 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8683 else
8684 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8685 fi
8686
8687else
8688
8689 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8690 if test "x$LINE" != x ; then
8691 eval "DEFAULT_$LINE"
8692 else
8693 no_cache=1
8694 fi
8695
8696 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8697
8698fi;
8699
8700 eval "$ac_cv_use_textctrl"
8701 if test "$no_cache" != 1; then
8702 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8703 fi
8704
8705 if test "$wxUSE_TEXTCTRL" = yes; then
8706 echo "$as_me:$LINENO: result: yes" >&5
8707echo "${ECHO_T}yes" >&6
8708 else
8709 echo "$as_me:$LINENO: result: no" >&5
8710echo "${ECHO_T}no" >&6
8711 fi
8712
8713
8714 enablestring=
8715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8716echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8717 no_cache=0
8718 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8719if test "${enable_togglebtn+set}" = set; then
8720 enableval="$enable_togglebtn"
8721
8722 if test "$enableval" = yes; then
8723 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8724 else
8725 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8726 fi
8727
8728else
8729
8730 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8731 if test "x$LINE" != x ; then
8732 eval "DEFAULT_$LINE"
8733 else
8734 no_cache=1
8735 fi
8736
8737 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8738
8739fi;
8740
8741 eval "$ac_cv_use_togglebtn"
8742 if test "$no_cache" != 1; then
8743 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8744 fi
8745
8746 if test "$wxUSE_TOGGLEBTN" = yes; then
8747 echo "$as_me:$LINENO: result: yes" >&5
8748echo "${ECHO_T}yes" >&6
8749 else
8750 echo "$as_me:$LINENO: result: no" >&5
8751echo "${ECHO_T}no" >&6
8752 fi
8753
8754
8755 enablestring=
8756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8757echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8758 no_cache=0
8759 # Check whether --enable-toolbar or --disable-toolbar was given.
8760if test "${enable_toolbar+set}" = set; then
8761 enableval="$enable_toolbar"
8762
8763 if test "$enableval" = yes; then
8764 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8765 else
8766 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8767 fi
8768
8769else
8770
8771 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8772 if test "x$LINE" != x ; then
8773 eval "DEFAULT_$LINE"
8774 else
8775 no_cache=1
8776 fi
8777
8778 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8779
8780fi;
8781
8782 eval "$ac_cv_use_toolbar"
8783 if test "$no_cache" != 1; then
8784 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8785 fi
8786
8787 if test "$wxUSE_TOOLBAR" = yes; then
8788 echo "$as_me:$LINENO: result: yes" >&5
8789echo "${ECHO_T}yes" >&6
8790 else
8791 echo "$as_me:$LINENO: result: no" >&5
8792echo "${ECHO_T}no" >&6
8793 fi
8794
8795
8796 enablestring=
8797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8798echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8799 no_cache=0
8800 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8801if test "${enable_tbarnative+set}" = set; then
8802 enableval="$enable_tbarnative"
8803
8804 if test "$enableval" = yes; then
8805 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8806 else
8807 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8808 fi
8809
8810else
8811
8812 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8813 if test "x$LINE" != x ; then
8814 eval "DEFAULT_$LINE"
8815 else
8816 no_cache=1
8817 fi
8818
8819 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8820
8821fi;
8822
8823 eval "$ac_cv_use_tbarnative"
8824 if test "$no_cache" != 1; then
8825 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8826 fi
8827
8828 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8829 echo "$as_me:$LINENO: result: yes" >&5
8830echo "${ECHO_T}yes" >&6
8831 else
8832 echo "$as_me:$LINENO: result: no" >&5
8833echo "${ECHO_T}no" >&6
8834 fi
8835
8836
8837 enablestring=
8838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8839echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8840 no_cache=0
8841 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8842if test "${enable_tbarsmpl+set}" = set; then
8843 enableval="$enable_tbarsmpl"
8844
8845 if test "$enableval" = yes; then
8846 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8847 else
8848 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8849 fi
8850
8851else
8852
8853 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8854 if test "x$LINE" != x ; then
8855 eval "DEFAULT_$LINE"
8856 else
8857 no_cache=1
8858 fi
8859
8860 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8861
8862fi;
8863
8864 eval "$ac_cv_use_tbarsmpl"
8865 if test "$no_cache" != 1; then
8866 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8867 fi
8868
8869 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8870 echo "$as_me:$LINENO: result: yes" >&5
8871echo "${ECHO_T}yes" >&6
8872 else
8873 echo "$as_me:$LINENO: result: no" >&5
8874echo "${ECHO_T}no" >&6
8875 fi
8876
8877
8878 enablestring=
8879 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8880echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8881 no_cache=0
8882 # Check whether --enable-treectrl or --disable-treectrl was given.
8883if test "${enable_treectrl+set}" = set; then
8884 enableval="$enable_treectrl"
8885
8886 if test "$enableval" = yes; then
8887 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8888 else
8889 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8890 fi
8891
8892else
8893
8894 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8895 if test "x$LINE" != x ; then
8896 eval "DEFAULT_$LINE"
8897 else
8898 no_cache=1
8899 fi
8900
8901 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8902
8903fi;
8904
8905 eval "$ac_cv_use_treectrl"
8906 if test "$no_cache" != 1; then
8907 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8908 fi
8909
8910 if test "$wxUSE_TREECTRL" = yes; then
8911 echo "$as_me:$LINENO: result: yes" >&5
8912echo "${ECHO_T}yes" >&6
8913 else
8914 echo "$as_me:$LINENO: result: no" >&5
8915echo "${ECHO_T}no" >&6
8916 fi
8917
8918
8919 enablestring=
8920 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8921echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8922 no_cache=0
8923 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8924if test "${enable_tipwindow+set}" = set; then
8925 enableval="$enable_tipwindow"
8926
8927 if test "$enableval" = yes; then
8928 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8929 else
8930 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8931 fi
8932
8933else
8934
8935 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8936 if test "x$LINE" != x ; then
8937 eval "DEFAULT_$LINE"
8938 else
8939 no_cache=1
8940 fi
8941
8942 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8943
8944fi;
8945
8946 eval "$ac_cv_use_tipwindow"
8947 if test "$no_cache" != 1; then
8948 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8949 fi
8950
8951 if test "$wxUSE_TIPWINDOW" = yes; then
8952 echo "$as_me:$LINENO: result: yes" >&5
8953echo "${ECHO_T}yes" >&6
8954 else
8955 echo "$as_me:$LINENO: result: no" >&5
8956echo "${ECHO_T}no" >&6
8957 fi
8958
8959
8960 enablestring=
8961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8962echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8963 no_cache=0
8964 # Check whether --enable-popupwin or --disable-popupwin was given.
8965if test "${enable_popupwin+set}" = set; then
8966 enableval="$enable_popupwin"
8967
8968 if test "$enableval" = yes; then
8969 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8970 else
8971 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8972 fi
8973
8974else
8975
8976 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8977 if test "x$LINE" != x ; then
8978 eval "DEFAULT_$LINE"
8979 else
8980 no_cache=1
8981 fi
8982
8983 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8984
8985fi;
8986
8987 eval "$ac_cv_use_popupwin"
8988 if test "$no_cache" != 1; then
8989 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8990 fi
8991
8992 if test "$wxUSE_POPUPWIN" = yes; then
8993 echo "$as_me:$LINENO: result: yes" >&5
8994echo "${ECHO_T}yes" >&6
8995 else
8996 echo "$as_me:$LINENO: result: no" >&5
8997echo "${ECHO_T}no" >&6
8998 fi
8999
9000
9001
9002
9003 enablestring=
9004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9005echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9006 no_cache=0
9007 # Check whether --enable-commondlg or --disable-commondlg was given.
9008if test "${enable_commondlg+set}" = set; then
9009 enableval="$enable_commondlg"
9010
9011 if test "$enableval" = yes; then
9012 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9013 else
9014 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9015 fi
9016
9017else
9018
9019 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9020 if test "x$LINE" != x ; then
9021 eval "DEFAULT_$LINE"
9022 else
9023 no_cache=1
9024 fi
9025
9026 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9027
9028fi;
9029
9030 eval "$ac_cv_use_commondlg"
9031 if test "$no_cache" != 1; then
9032 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9033 fi
9034
9035 if test "$wxUSE_COMMONDLGS" = yes; then
9036 echo "$as_me:$LINENO: result: yes" >&5
9037echo "${ECHO_T}yes" >&6
9038 else
9039 echo "$as_me:$LINENO: result: no" >&5
9040echo "${ECHO_T}no" >&6
9041 fi
9042
9043
9044 enablestring=
9045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9046echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9047 no_cache=0
9048 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9049if test "${enable_choicedlg+set}" = set; then
9050 enableval="$enable_choicedlg"
9051
9052 if test "$enableval" = yes; then
9053 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9054 else
9055 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9056 fi
9057
9058else
9059
9060 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9061 if test "x$LINE" != x ; then
9062 eval "DEFAULT_$LINE"
9063 else
9064 no_cache=1
9065 fi
9066
9067 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9068
9069fi;
9070
9071 eval "$ac_cv_use_choicedlg"
9072 if test "$no_cache" != 1; then
9073 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9074 fi
9075
9076 if test "$wxUSE_CHOICEDLG" = yes; then
9077 echo "$as_me:$LINENO: result: yes" >&5
9078echo "${ECHO_T}yes" >&6
9079 else
9080 echo "$as_me:$LINENO: result: no" >&5
9081echo "${ECHO_T}no" >&6
9082 fi
9083
9084
9085 enablestring=
9086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9087echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9088 no_cache=0
9089 # Check whether --enable-coldlg or --disable-coldlg was given.
9090if test "${enable_coldlg+set}" = set; then
9091 enableval="$enable_coldlg"
9092
9093 if test "$enableval" = yes; then
9094 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9095 else
9096 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9097 fi
9098
9099else
9100
9101 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9102 if test "x$LINE" != x ; then
9103 eval "DEFAULT_$LINE"
9104 else
9105 no_cache=1
9106 fi
9107
9108 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9109
9110fi;
9111
9112 eval "$ac_cv_use_coldlg"
9113 if test "$no_cache" != 1; then
9114 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9115 fi
9116
9117 if test "$wxUSE_COLOURDLG" = yes; then
9118 echo "$as_me:$LINENO: result: yes" >&5
9119echo "${ECHO_T}yes" >&6
9120 else
9121 echo "$as_me:$LINENO: result: no" >&5
9122echo "${ECHO_T}no" >&6
9123 fi
9124
9125
9126 enablestring=
9127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9128echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9129 no_cache=0
9130 # Check whether --enable-filedlg or --disable-filedlg was given.
9131if test "${enable_filedlg+set}" = set; then
9132 enableval="$enable_filedlg"
9133
9134 if test "$enableval" = yes; then
9135 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9136 else
9137 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9138 fi
9139
9140else
9141
9142 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9143 if test "x$LINE" != x ; then
9144 eval "DEFAULT_$LINE"
9145 else
9146 no_cache=1
9147 fi
9148
9149 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9150
9151fi;
9152
9153 eval "$ac_cv_use_filedlg"
9154 if test "$no_cache" != 1; then
9155 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9156 fi
9157
9158 if test "$wxUSE_FILEDLG" = yes; then
9159 echo "$as_me:$LINENO: result: yes" >&5
9160echo "${ECHO_T}yes" >&6
9161 else
9162 echo "$as_me:$LINENO: result: no" >&5
9163echo "${ECHO_T}no" >&6
9164 fi
9165
9166
9167 enablestring=
9168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9169echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9170 no_cache=0
9171 # Check whether --enable-finddlg or --disable-finddlg was given.
9172if test "${enable_finddlg+set}" = set; then
9173 enableval="$enable_finddlg"
9174
9175 if test "$enableval" = yes; then
9176 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9177 else
9178 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9179 fi
9180
9181else
9182
9183 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9184 if test "x$LINE" != x ; then
9185 eval "DEFAULT_$LINE"
9186 else
9187 no_cache=1
9188 fi
9189
9190 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9191
9192fi;
9193
9194 eval "$ac_cv_use_finddlg"
9195 if test "$no_cache" != 1; then
9196 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9197 fi
9198
9199 if test "$wxUSE_FINDREPLDLG" = yes; then
9200 echo "$as_me:$LINENO: result: yes" >&5
9201echo "${ECHO_T}yes" >&6
9202 else
9203 echo "$as_me:$LINENO: result: no" >&5
9204echo "${ECHO_T}no" >&6
9205 fi
9206
9207
9208 enablestring=
9209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9210echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9211 no_cache=0
9212 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9213if test "${enable_fontdlg+set}" = set; then
9214 enableval="$enable_fontdlg"
9215
9216 if test "$enableval" = yes; then
9217 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9218 else
9219 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9220 fi
9221
9222else
9223
9224 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9225 if test "x$LINE" != x ; then
9226 eval "DEFAULT_$LINE"
9227 else
9228 no_cache=1
9229 fi
9230
9231 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9232
9233fi;
9234
9235 eval "$ac_cv_use_fontdlg"
9236 if test "$no_cache" != 1; then
9237 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9238 fi
9239
9240 if test "$wxUSE_FONTDLG" = yes; then
9241 echo "$as_me:$LINENO: result: yes" >&5
9242echo "${ECHO_T}yes" >&6
9243 else
9244 echo "$as_me:$LINENO: result: no" >&5
9245echo "${ECHO_T}no" >&6
9246 fi
9247
9248
9249 enablestring=
9250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9251echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9252 no_cache=0
9253 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9254if test "${enable_dirdlg+set}" = set; then
9255 enableval="$enable_dirdlg"
9256
9257 if test "$enableval" = yes; then
9258 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9259 else
9260 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9261 fi
9262
9263else
9264
9265 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9266 if test "x$LINE" != x ; then
9267 eval "DEFAULT_$LINE"
9268 else
9269 no_cache=1
9270 fi
9271
9272 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9273
9274fi;
9275
9276 eval "$ac_cv_use_dirdlg"
9277 if test "$no_cache" != 1; then
9278 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9279 fi
9280
9281 if test "$wxUSE_DIRDLG" = yes; then
9282 echo "$as_me:$LINENO: result: yes" >&5
9283echo "${ECHO_T}yes" >&6
9284 else
9285 echo "$as_me:$LINENO: result: no" >&5
9286echo "${ECHO_T}no" >&6
9287 fi
9288
9289
9290 enablestring=
9291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9292echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9293 no_cache=0
9294 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9295if test "${enable_msgdlg+set}" = set; then
9296 enableval="$enable_msgdlg"
9297
9298 if test "$enableval" = yes; then
9299 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9300 else
9301 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9302 fi
9303
9304else
9305
9306 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9307 if test "x$LINE" != x ; then
9308 eval "DEFAULT_$LINE"
9309 else
9310 no_cache=1
9311 fi
9312
9313 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9314
9315fi;
9316
9317 eval "$ac_cv_use_msgdlg"
9318 if test "$no_cache" != 1; then
9319 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9320 fi
9321
9322 if test "$wxUSE_MSGDLG" = yes; then
9323 echo "$as_me:$LINENO: result: yes" >&5
9324echo "${ECHO_T}yes" >&6
9325 else
9326 echo "$as_me:$LINENO: result: no" >&5
9327echo "${ECHO_T}no" >&6
9328 fi
9329
9330
9331 enablestring=
9332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9333echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9334 no_cache=0
9335 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9336if test "${enable_numberdlg+set}" = set; then
9337 enableval="$enable_numberdlg"
9338
9339 if test "$enableval" = yes; then
9340 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9341 else
9342 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9343 fi
9344
9345else
9346
9347 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9348 if test "x$LINE" != x ; then
9349 eval "DEFAULT_$LINE"
9350 else
9351 no_cache=1
9352 fi
9353
9354 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9355
9356fi;
9357
9358 eval "$ac_cv_use_numberdlg"
9359 if test "$no_cache" != 1; then
9360 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9361 fi
9362
9363 if test "$wxUSE_NUMBERDLG" = yes; then
9364 echo "$as_me:$LINENO: result: yes" >&5
9365echo "${ECHO_T}yes" >&6
9366 else
9367 echo "$as_me:$LINENO: result: no" >&5
9368echo "${ECHO_T}no" >&6
9369 fi
9370
9371
9372 enablestring=
9373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9374echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9375 no_cache=0
9376 # Check whether --enable-splash or --disable-splash was given.
9377if test "${enable_splash+set}" = set; then
9378 enableval="$enable_splash"
9379
9380 if test "$enableval" = yes; then
9381 ac_cv_use_splash='wxUSE_SPLASH=yes'
9382 else
9383 ac_cv_use_splash='wxUSE_SPLASH=no'
9384 fi
9385
9386else
9387
9388 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9389 if test "x$LINE" != x ; then
9390 eval "DEFAULT_$LINE"
9391 else
9392 no_cache=1
9393 fi
9394
9395 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9396
9397fi;
9398
9399 eval "$ac_cv_use_splash"
9400 if test "$no_cache" != 1; then
9401 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9402 fi
9403
9404 if test "$wxUSE_SPLASH" = yes; then
9405 echo "$as_me:$LINENO: result: yes" >&5
9406echo "${ECHO_T}yes" >&6
9407 else
9408 echo "$as_me:$LINENO: result: no" >&5
9409echo "${ECHO_T}no" >&6
9410 fi
9411
9412
9413 enablestring=
9414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9415echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9416 no_cache=0
9417 # Check whether --enable-textdlg or --disable-textdlg was given.
9418if test "${enable_textdlg+set}" = set; then
9419 enableval="$enable_textdlg"
9420
9421 if test "$enableval" = yes; then
9422 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9423 else
9424 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9425 fi
9426
9427else
9428
9429 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9430 if test "x$LINE" != x ; then
9431 eval "DEFAULT_$LINE"
9432 else
9433 no_cache=1
9434 fi
9435
9436 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9437
9438fi;
9439
9440 eval "$ac_cv_use_textdlg"
9441 if test "$no_cache" != 1; then
9442 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9443 fi
9444
9445 if test "$wxUSE_TEXTDLG" = yes; then
9446 echo "$as_me:$LINENO: result: yes" >&5
9447echo "${ECHO_T}yes" >&6
9448 else
9449 echo "$as_me:$LINENO: result: no" >&5
9450echo "${ECHO_T}no" >&6
9451 fi
9452
9453
9454 enablestring=
9455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9456echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9457 no_cache=0
9458 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9459if test "${enable_tipdlg+set}" = set; then
9460 enableval="$enable_tipdlg"
9461
9462 if test "$enableval" = yes; then
9463 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9464 else
9465 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9466 fi
9467
9468else
9469
9470 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9471 if test "x$LINE" != x ; then
9472 eval "DEFAULT_$LINE"
9473 else
9474 no_cache=1
9475 fi
9476
9477 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9478
9479fi;
9480
9481 eval "$ac_cv_use_tipdlg"
9482 if test "$no_cache" != 1; then
9483 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9484 fi
9485
9486 if test "$wxUSE_STARTUP_TIPS" = yes; then
9487 echo "$as_me:$LINENO: result: yes" >&5
9488echo "${ECHO_T}yes" >&6
9489 else
9490 echo "$as_me:$LINENO: result: no" >&5
9491echo "${ECHO_T}no" >&6
9492 fi
9493
9494
9495 enablestring=
9496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9497echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9498 no_cache=0
9499 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9500if test "${enable_progressdlg+set}" = set; then
9501 enableval="$enable_progressdlg"
9502
9503 if test "$enableval" = yes; then
9504 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9505 else
9506 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9507 fi
9508
9509else
9510
9511 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9512 if test "x$LINE" != x ; then
9513 eval "DEFAULT_$LINE"
9514 else
9515 no_cache=1
9516 fi
9517
9518 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9519
9520fi;
9521
9522 eval "$ac_cv_use_progressdlg"
9523 if test "$no_cache" != 1; then
9524 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9525 fi
9526
9527 if test "$wxUSE_PROGRESSDLG" = yes; then
9528 echo "$as_me:$LINENO: result: yes" >&5
9529echo "${ECHO_T}yes" >&6
9530 else
9531 echo "$as_me:$LINENO: result: no" >&5
9532echo "${ECHO_T}no" >&6
9533 fi
9534
9535
9536 enablestring=
9537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9538echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9539 no_cache=0
9540 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9541if test "${enable_wizarddlg+set}" = set; then
9542 enableval="$enable_wizarddlg"
9543
9544 if test "$enableval" = yes; then
9545 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9546 else
9547 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9548 fi
9549
9550else
9551
9552 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9553 if test "x$LINE" != x ; then
9554 eval "DEFAULT_$LINE"
9555 else
9556 no_cache=1
9557 fi
9558
9559 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9560
9561fi;
9562
9563 eval "$ac_cv_use_wizarddlg"
9564 if test "$no_cache" != 1; then
9565 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9566 fi
9567
9568 if test "$wxUSE_WIZARDDLG" = yes; then
9569 echo "$as_me:$LINENO: result: yes" >&5
9570echo "${ECHO_T}yes" >&6
9571 else
9572 echo "$as_me:$LINENO: result: no" >&5
9573echo "${ECHO_T}no" >&6
9574 fi
9575
9576
9577
9578
9579 enablestring=
9580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9581echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9582 no_cache=0
9583 # Check whether --enable-menus or --disable-menus was given.
9584if test "${enable_menus+set}" = set; then
9585 enableval="$enable_menus"
9586
9587 if test "$enableval" = yes; then
9588 ac_cv_use_menus='wxUSE_MENUS=yes'
9589 else
9590 ac_cv_use_menus='wxUSE_MENUS=no'
9591 fi
9592
9593else
9594
9595 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9596 if test "x$LINE" != x ; then
9597 eval "DEFAULT_$LINE"
9598 else
9599 no_cache=1
9600 fi
9601
9602 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9603
9604fi;
9605
9606 eval "$ac_cv_use_menus"
9607 if test "$no_cache" != 1; then
9608 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9609 fi
9610
9611 if test "$wxUSE_MENUS" = yes; then
9612 echo "$as_me:$LINENO: result: yes" >&5
9613echo "${ECHO_T}yes" >&6
9614 else
9615 echo "$as_me:$LINENO: result: no" >&5
9616echo "${ECHO_T}no" >&6
9617 fi
9618
9619
9620 enablestring=
9621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9622echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9623 no_cache=0
9624 # Check whether --enable-miniframe or --disable-miniframe was given.
9625if test "${enable_miniframe+set}" = set; then
9626 enableval="$enable_miniframe"
9627
9628 if test "$enableval" = yes; then
9629 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9630 else
9631 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9632 fi
9633
9634else
9635
9636 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9637 if test "x$LINE" != x ; then
9638 eval "DEFAULT_$LINE"
9639 else
9640 no_cache=1
9641 fi
9642
9643 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9644
9645fi;
9646
9647 eval "$ac_cv_use_miniframe"
9648 if test "$no_cache" != 1; then
9649 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9650 fi
9651
9652 if test "$wxUSE_MINIFRAME" = yes; then
9653 echo "$as_me:$LINENO: result: yes" >&5
9654echo "${ECHO_T}yes" >&6
9655 else
9656 echo "$as_me:$LINENO: result: no" >&5
9657echo "${ECHO_T}no" >&6
9658 fi
9659
9660
9661 enablestring=
9662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9663echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9664 no_cache=0
9665 # Check whether --enable-tooltips or --disable-tooltips was given.
9666if test "${enable_tooltips+set}" = set; then
9667 enableval="$enable_tooltips"
9668
9669 if test "$enableval" = yes; then
9670 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9671 else
9672 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9673 fi
9674
9675else
9676
9677 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9678 if test "x$LINE" != x ; then
9679 eval "DEFAULT_$LINE"
9680 else
9681 no_cache=1
9682 fi
9683
9684 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9685
9686fi;
9687
9688 eval "$ac_cv_use_tooltips"
9689 if test "$no_cache" != 1; then
9690 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9691 fi
9692
9693 if test "$wxUSE_TOOLTIPS" = yes; then
9694 echo "$as_me:$LINENO: result: yes" >&5
9695echo "${ECHO_T}yes" >&6
9696 else
9697 echo "$as_me:$LINENO: result: no" >&5
9698echo "${ECHO_T}no" >&6
9699 fi
9700
9701
9702 enablestring=
9703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9704echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9705 no_cache=0
9706 # Check whether --enable-splines or --disable-splines was given.
9707if test "${enable_splines+set}" = set; then
9708 enableval="$enable_splines"
9709
9710 if test "$enableval" = yes; then
9711 ac_cv_use_splines='wxUSE_SPLINES=yes'
9712 else
9713 ac_cv_use_splines='wxUSE_SPLINES=no'
9714 fi
9715
9716else
9717
9718 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9719 if test "x$LINE" != x ; then
9720 eval "DEFAULT_$LINE"
9721 else
9722 no_cache=1
9723 fi
9724
9725 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9726
9727fi;
9728
9729 eval "$ac_cv_use_splines"
9730 if test "$no_cache" != 1; then
9731 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9732 fi
9733
9734 if test "$wxUSE_SPLINES" = yes; then
9735 echo "$as_me:$LINENO: result: yes" >&5
9736echo "${ECHO_T}yes" >&6
9737 else
9738 echo "$as_me:$LINENO: result: no" >&5
9739echo "${ECHO_T}no" >&6
9740 fi
9741
9742
9743 enablestring=
9744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9745echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9746 no_cache=0
9747 # Check whether --enable-validators or --disable-validators was given.
9748if test "${enable_validators+set}" = set; then
9749 enableval="$enable_validators"
9750
9751 if test "$enableval" = yes; then
9752 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9753 else
9754 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9755 fi
9756
9757else
9758
9759 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9760 if test "x$LINE" != x ; then
9761 eval "DEFAULT_$LINE"
9762 else
9763 no_cache=1
9764 fi
9765
9766 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9767
9768fi;
9769
9770 eval "$ac_cv_use_validators"
9771 if test "$no_cache" != 1; then
9772 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9773 fi
9774
9775 if test "$wxUSE_VALIDATORS" = yes; then
9776 echo "$as_me:$LINENO: result: yes" >&5
9777echo "${ECHO_T}yes" >&6
9778 else
9779 echo "$as_me:$LINENO: result: no" >&5
9780echo "${ECHO_T}no" >&6
9781 fi
9782
9783
9784 enablestring=
9785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9786echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9787 no_cache=0
9788 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9789if test "${enable_busyinfo+set}" = set; then
9790 enableval="$enable_busyinfo"
9791
9792 if test "$enableval" = yes; then
9793 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9794 else
9795 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9796 fi
9797
9798else
9799
9800 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9801 if test "x$LINE" != x ; then
9802 eval "DEFAULT_$LINE"
9803 else
9804 no_cache=1
9805 fi
9806
9807 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9808
9809fi;
9810
9811 eval "$ac_cv_use_busyinfo"
9812 if test "$no_cache" != 1; then
9813 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9814 fi
9815
9816 if test "$wxUSE_BUSYINFO" = yes; then
9817 echo "$as_me:$LINENO: result: yes" >&5
9818echo "${ECHO_T}yes" >&6
9819 else
9820 echo "$as_me:$LINENO: result: no" >&5
9821echo "${ECHO_T}no" >&6
9822 fi
9823
9824
9825 enablestring=
9826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9827echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9828 no_cache=0
9829 # Check whether --enable-joystick or --disable-joystick was given.
9830if test "${enable_joystick+set}" = set; then
9831 enableval="$enable_joystick"
9832
9833 if test "$enableval" = yes; then
9834 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9835 else
9836 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9837 fi
9838
9839else
9840
9841 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9842 if test "x$LINE" != x ; then
9843 eval "DEFAULT_$LINE"
9844 else
9845 no_cache=1
9846 fi
9847
9848 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9849
9850fi;
9851
9852 eval "$ac_cv_use_joystick"
9853 if test "$no_cache" != 1; then
9854 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9855 fi
9856
9857 if test "$wxUSE_JOYSTICK" = yes; then
9858 echo "$as_me:$LINENO: result: yes" >&5
9859echo "${ECHO_T}yes" >&6
9860 else
9861 echo "$as_me:$LINENO: result: no" >&5
9862echo "${ECHO_T}no" >&6
9863 fi
9864
9865
9866 enablestring=
9867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9868echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9869 no_cache=0
9870 # Check whether --enable-metafile or --disable-metafile was given.
9871if test "${enable_metafile+set}" = set; then
9872 enableval="$enable_metafile"
9873
9874 if test "$enableval" = yes; then
9875 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9876 else
9877 ac_cv_use_metafile='wxUSE_METAFILE=no'
9878 fi
9879
9880else
9881
9882 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9883 if test "x$LINE" != x ; then
9884 eval "DEFAULT_$LINE"
9885 else
9886 no_cache=1
9887 fi
9888
9889 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9890
9891fi;
9892
9893 eval "$ac_cv_use_metafile"
9894 if test "$no_cache" != 1; then
9895 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9896 fi
9897
9898 if test "$wxUSE_METAFILE" = yes; then
9899 echo "$as_me:$LINENO: result: yes" >&5
9900echo "${ECHO_T}yes" >&6
9901 else
9902 echo "$as_me:$LINENO: result: no" >&5
9903echo "${ECHO_T}no" >&6
9904 fi
9905
9906
9907 enablestring=
9908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9909echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9910 no_cache=0
9911 # Check whether --enable-dragimage or --disable-dragimage was given.
9912if test "${enable_dragimage+set}" = set; then
9913 enableval="$enable_dragimage"
9914
9915 if test "$enableval" = yes; then
9916 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9917 else
9918 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9919 fi
9920
9921else
9922
9923 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9924 if test "x$LINE" != x ; then
9925 eval "DEFAULT_$LINE"
9926 else
9927 no_cache=1
9928 fi
9929
9930 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9931
9932fi;
9933
9934 eval "$ac_cv_use_dragimage"
9935 if test "$no_cache" != 1; then
9936 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9937 fi
9938
9939 if test "$wxUSE_DRAGIMAGE" = yes; then
9940 echo "$as_me:$LINENO: result: yes" >&5
9941echo "${ECHO_T}yes" >&6
9942 else
9943 echo "$as_me:$LINENO: result: no" >&5
9944echo "${ECHO_T}no" >&6
9945 fi
9946
9947
9948 enablestring=
9949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9950echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9951 no_cache=0
9952 # Check whether --enable-accessibility or --disable-accessibility was given.
9953if test "${enable_accessibility+set}" = set; then
9954 enableval="$enable_accessibility"
9955
9956 if test "$enableval" = yes; then
9957 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9958 else
9959 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9960 fi
9961
9962else
9963
9964 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9965 if test "x$LINE" != x ; then
9966 eval "DEFAULT_$LINE"
9967 else
9968 no_cache=1
9969 fi
9970
9971 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9972
9973fi;
9974
9975 eval "$ac_cv_use_accessibility"
9976 if test "$no_cache" != 1; then
9977 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9978 fi
9979
9980 if test "$wxUSE_ACCESSIBILITY" = yes; then
9981 echo "$as_me:$LINENO: result: yes" >&5
9982echo "${ECHO_T}yes" >&6
9983 else
9984 echo "$as_me:$LINENO: result: no" >&5
9985echo "${ECHO_T}no" >&6
9986 fi
9987
9988
9989
9990
9991 enablestring=
9992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9993echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9994 no_cache=0
9995 # Check whether --enable-palette or --disable-palette was given.
9996if test "${enable_palette+set}" = set; then
9997 enableval="$enable_palette"
9998
9999 if test "$enableval" = yes; then
10000 ac_cv_use_palette='wxUSE_PALETTE=yes'
10001 else
10002 ac_cv_use_palette='wxUSE_PALETTE=no'
10003 fi
10004
10005else
10006
10007 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10008 if test "x$LINE" != x ; then
10009 eval "DEFAULT_$LINE"
10010 else
10011 no_cache=1
10012 fi
10013
10014 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10015
10016fi;
10017
10018 eval "$ac_cv_use_palette"
10019 if test "$no_cache" != 1; then
10020 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10021 fi
10022
10023 if test "$wxUSE_PALETTE" = yes; then
10024 echo "$as_me:$LINENO: result: yes" >&5
10025echo "${ECHO_T}yes" >&6
10026 else
10027 echo "$as_me:$LINENO: result: no" >&5
10028echo "${ECHO_T}no" >&6
10029 fi
10030
10031
10032 enablestring=
10033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10034echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10035 no_cache=0
10036 # Check whether --enable-image or --disable-image was given.
10037if test "${enable_image+set}" = set; then
10038 enableval="$enable_image"
10039
10040 if test "$enableval" = yes; then
10041 ac_cv_use_image='wxUSE_IMAGE=yes'
10042 else
10043 ac_cv_use_image='wxUSE_IMAGE=no'
10044 fi
10045
10046else
10047
10048 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10049 if test "x$LINE" != x ; then
10050 eval "DEFAULT_$LINE"
10051 else
10052 no_cache=1
10053 fi
10054
10055 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10056
10057fi;
10058
10059 eval "$ac_cv_use_image"
10060 if test "$no_cache" != 1; then
10061 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10062 fi
10063
10064 if test "$wxUSE_IMAGE" = yes; then
10065 echo "$as_me:$LINENO: result: yes" >&5
10066echo "${ECHO_T}yes" >&6
10067 else
10068 echo "$as_me:$LINENO: result: no" >&5
10069echo "${ECHO_T}no" >&6
10070 fi
10071
10072
10073 enablestring=
10074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10075echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10076 no_cache=0
10077 # Check whether --enable-gif or --disable-gif was given.
10078if test "${enable_gif+set}" = set; then
10079 enableval="$enable_gif"
10080
10081 if test "$enableval" = yes; then
10082 ac_cv_use_gif='wxUSE_GIF=yes'
10083 else
10084 ac_cv_use_gif='wxUSE_GIF=no'
10085 fi
10086
10087else
10088
10089 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10090 if test "x$LINE" != x ; then
10091 eval "DEFAULT_$LINE"
10092 else
10093 no_cache=1
10094 fi
10095
10096 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10097
10098fi;
10099
10100 eval "$ac_cv_use_gif"
10101 if test "$no_cache" != 1; then
10102 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10103 fi
10104
10105 if test "$wxUSE_GIF" = yes; then
10106 echo "$as_me:$LINENO: result: yes" >&5
10107echo "${ECHO_T}yes" >&6
10108 else
10109 echo "$as_me:$LINENO: result: no" >&5
10110echo "${ECHO_T}no" >&6
10111 fi
10112
10113
10114 enablestring=
10115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10116echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10117 no_cache=0
10118 # Check whether --enable-pcx or --disable-pcx was given.
10119if test "${enable_pcx+set}" = set; then
10120 enableval="$enable_pcx"
10121
10122 if test "$enableval" = yes; then
10123 ac_cv_use_pcx='wxUSE_PCX=yes'
10124 else
10125 ac_cv_use_pcx='wxUSE_PCX=no'
10126 fi
10127
10128else
10129
10130 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10131 if test "x$LINE" != x ; then
10132 eval "DEFAULT_$LINE"
10133 else
10134 no_cache=1
10135 fi
10136
10137 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10138
10139fi;
10140
10141 eval "$ac_cv_use_pcx"
10142 if test "$no_cache" != 1; then
10143 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10144 fi
10145
10146 if test "$wxUSE_PCX" = yes; then
10147 echo "$as_me:$LINENO: result: yes" >&5
10148echo "${ECHO_T}yes" >&6
10149 else
10150 echo "$as_me:$LINENO: result: no" >&5
10151echo "${ECHO_T}no" >&6
10152 fi
10153
10154
10155 enablestring=
10156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10157echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10158 no_cache=0
10159 # Check whether --enable-iff or --disable-iff was given.
10160if test "${enable_iff+set}" = set; then
10161 enableval="$enable_iff"
10162
10163 if test "$enableval" = yes; then
10164 ac_cv_use_iff='wxUSE_IFF=yes'
10165 else
10166 ac_cv_use_iff='wxUSE_IFF=no'
10167 fi
10168
10169else
10170
10171 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10172 if test "x$LINE" != x ; then
10173 eval "DEFAULT_$LINE"
10174 else
10175 no_cache=1
10176 fi
10177
10178 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10179
10180fi;
10181
10182 eval "$ac_cv_use_iff"
10183 if test "$no_cache" != 1; then
10184 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10185 fi
10186
10187 if test "$wxUSE_IFF" = yes; then
10188 echo "$as_me:$LINENO: result: yes" >&5
10189echo "${ECHO_T}yes" >&6
10190 else
10191 echo "$as_me:$LINENO: result: no" >&5
10192echo "${ECHO_T}no" >&6
10193 fi
10194
10195
10196 enablestring=
10197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10198echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10199 no_cache=0
10200 # Check whether --enable-pnm or --disable-pnm was given.
10201if test "${enable_pnm+set}" = set; then
10202 enableval="$enable_pnm"
10203
10204 if test "$enableval" = yes; then
10205 ac_cv_use_pnm='wxUSE_PNM=yes'
10206 else
10207 ac_cv_use_pnm='wxUSE_PNM=no'
10208 fi
10209
10210else
10211
10212 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10213 if test "x$LINE" != x ; then
10214 eval "DEFAULT_$LINE"
10215 else
10216 no_cache=1
10217 fi
10218
10219 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10220
10221fi;
10222
10223 eval "$ac_cv_use_pnm"
10224 if test "$no_cache" != 1; then
10225 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10226 fi
10227
10228 if test "$wxUSE_PNM" = yes; then
10229 echo "$as_me:$LINENO: result: yes" >&5
10230echo "${ECHO_T}yes" >&6
10231 else
10232 echo "$as_me:$LINENO: result: no" >&5
10233echo "${ECHO_T}no" >&6
10234 fi
10235
10236
10237 enablestring=
10238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10239echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10240 no_cache=0
10241 # Check whether --enable-xpm or --disable-xpm was given.
10242if test "${enable_xpm+set}" = set; then
10243 enableval="$enable_xpm"
10244
10245 if test "$enableval" = yes; then
10246 ac_cv_use_xpm='wxUSE_XPM=yes'
10247 else
10248 ac_cv_use_xpm='wxUSE_XPM=no'
10249 fi
10250
10251else
10252
10253 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10254 if test "x$LINE" != x ; then
10255 eval "DEFAULT_$LINE"
10256 else
10257 no_cache=1
10258 fi
10259
10260 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10261
10262fi;
10263
10264 eval "$ac_cv_use_xpm"
10265 if test "$no_cache" != 1; then
10266 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10267 fi
10268
10269 if test "$wxUSE_XPM" = yes; then
10270 echo "$as_me:$LINENO: result: yes" >&5
10271echo "${ECHO_T}yes" >&6
10272 else
10273 echo "$as_me:$LINENO: result: no" >&5
10274echo "${ECHO_T}no" >&6
10275 fi
10276
10277
10278 enablestring=
10279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10280echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10281 no_cache=0
10282 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10283if test "${enable_ico_cur+set}" = set; then
10284 enableval="$enable_ico_cur"
10285
10286 if test "$enableval" = yes; then
10287 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10288 else
10289 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10290 fi
10291
10292else
10293
10294 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10295 if test "x$LINE" != x ; then
10296 eval "DEFAULT_$LINE"
10297 else
10298 no_cache=1
10299 fi
10300
10301 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10302
10303fi;
10304
10305 eval "$ac_cv_use_ico_cur"
10306 if test "$no_cache" != 1; then
10307 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10308 fi
10309
10310 if test "$wxUSE_ICO_CUR" = yes; then
10311 echo "$as_me:$LINENO: result: yes" >&5
10312echo "${ECHO_T}yes" >&6
10313 else
10314 echo "$as_me:$LINENO: result: no" >&5
10315echo "${ECHO_T}no" >&6
10316 fi
10317
10318
10319fi
10320
10321
10322
ceec2216
RL
10323# Check whether --with-flavour or --without-flavour was given.
10324if test "${with_flavour+set}" = set; then
10325 withval="$with_flavour"
10326 WX_FLAVOUR="$withval"
10327fi;
10328
10329
10330
a848cd7e
SC
10331 enablestring=
10332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10333echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10334 no_cache=0
10335 # Check whether --enable-official_build or --disable-official_build was given.
10336if test "${enable_official_build+set}" = set; then
10337 enableval="$enable_official_build"
10338
10339 if test "$enableval" = yes; then
10340 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10341 else
10342 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10343 fi
10344
10345else
10346
10347 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10348 if test "x$LINE" != x ; then
10349 eval "DEFAULT_$LINE"
10350 else
10351 no_cache=1
10352 fi
10353
10354 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10355
10356fi;
10357
10358 eval "$ac_cv_use_official_build"
10359 if test "$no_cache" != 1; then
10360 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10361 fi
10362
10363 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10364 echo "$as_me:$LINENO: result: yes" >&5
10365echo "${ECHO_T}yes" >&6
10366 else
10367 echo "$as_me:$LINENO: result: no" >&5
10368echo "${ECHO_T}no" >&6
10369 fi
10370
10371# Check whether --enable-vendor or --disable-vendor was given.
10372if test "${enable_vendor+set}" = set; then
10373 enableval="$enable_vendor"
10374 VENDOR="$enableval"
10375fi;
10376if test "x$VENDOR" = "x"; then
10377 VENDOR="custom"
10378fi
10379
a848cd7e
SC
10380
10381
10382
10383 echo "saving argument cache $wx_arg_cache_file"
10384 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10385
10386
10387
10388echo "$as_me:$LINENO: checking for toolkit" >&5
10389echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10390
10391# In Wine, we need to default to MSW, not GTK or MOTIF
10392if test "$wxUSE_WINE" = "yes"; then
10393 DEFAULT_DEFAULT_wxUSE_GTK=0
10394 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10395 DEFAULT_DEFAULT_wxUSE_MSW=1
10396 wxUSE_SHARED=no
10397fi
10398
10399if test "$wxUSE_GUI" = "yes"; then
10400
10401 if test "$USE_BEOS" = 1; then
10402 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10403echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10404 { (exit 1); exit 1; }; }
10405 fi
10406
10407 if test "$TOOLKIT_GIVEN" = 1; then
10408 for toolkit in `echo $ALL_TOOLKITS`; do
10409 var=wxUSE_$toolkit
10410 eval "value=\$${var}"
10411 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10412 done
10413 else
10414 for toolkit in `echo $ALL_TOOLKITS`; do
10415 if test "$has_toolkit_in_cache" != 1; then
10416 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10417 else
10418 var=DEFAULT_wxUSE_$toolkit
10419 fi
10420 eval "wxUSE_$toolkit=\$${var}"
10421 done
10422 fi
10423
10424 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10425 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10426 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10427
10428 case "${host}" in
10429 *-pc-os2_emx | *-pc-os2-emx )
10430 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10431 esac
10432
10433 case "$NUM_TOOLKITS" in
10434 1)
10435 ;;
10436 0)
10437 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10438echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10439 { (exit 1); exit 1; }; }
10440 ;;
10441 *)
10442 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10443echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10444 { (exit 1); exit 1; }; }
10445 esac
10446
10447 for toolkit in `echo $ALL_TOOLKITS`; do
10448 var=wxUSE_$toolkit
10449 eval "value=\$${var}"
10450 if test "x$value" != x; then
10451 cache_var=CACHE_$toolkit
10452 eval "cache=\$${cache_var}"
10453 if test "$cache" = 1; then
10454 echo "$var=$value" >> ${wx_arg_cache_file}
10455 fi
10456 if test "$value" = 1; then
10457 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10458 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10459echo "${ECHO_T}$toolkit_echo" >&6
10460 fi
10461 fi
10462 done
10463else
10464 if test "x$host_alias" != "x"; then
10465 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10466echo "${ECHO_T}base ($host_alias hosted) only" >&6
10467 else
10468 echo "$as_me:$LINENO: result: base only" >&5
10469echo "${ECHO_T}base only" >&6
10470 fi
10471fi
10472
10473wants_win32=0
10474doesnt_want_win32=0
10475case "${host}" in
10476 *-*-cygwin*)
10477 if test "$wxUSE_MSW" = 1 ; then
10478 wants_win32=1
10479 else
10480 doesnt_want_win32=1
10481 fi
10482 ;;
10483 *-*-mingw*)
10484 wants_win32=1
10485 ;;
10486esac
10487
10488if test "$wxUSE_WINE" = "yes"; then
10489 wants_win32=1
10490 CC=winegcc
10491 CXX=wineg++
10492 RESCOMP=wrc
10493 LDFLAGS_GUI="-mwindows"
10494fi
10495
10496if test "$wants_win32" = 1 ; then
10497 USE_UNIX=0
10498 USE_WIN32=1
10499 cat >>confdefs.h <<\_ACEOF
10500#define __WIN32__ 1
10501_ACEOF
10502
10503 cat >>confdefs.h <<\_ACEOF
10504#define __WIN95__ 1
10505_ACEOF
10506
10507 cat >>confdefs.h <<\_ACEOF
10508#define __WINDOWS__ 1
10509_ACEOF
10510
10511 cat >>confdefs.h <<\_ACEOF
10512#define __GNUWIN32__ 1
10513_ACEOF
10514
10515 cat >>confdefs.h <<\_ACEOF
10516#define STRICT 1
10517_ACEOF
10518
10519 cat >>confdefs.h <<\_ACEOF
10520#define WINVER 0x0400
10521_ACEOF
10522
10523fi
10524if test "$doesnt_want_win32" = 1 ; then
10525 USE_UNIX=1
10526 USE_WIN32=0
10527fi
10528
10529if test "$USE_UNIX" = 1 ; then
10530 wxUSE_UNIX=yes
10531 cat >>confdefs.h <<\_ACEOF
10532#define __UNIX__ 1
10533_ACEOF
10534
10535fi
10536
10537
10538cat >confcache <<\_ACEOF
10539# This file is a shell script that caches the results of configure
10540# tests run on this system so they can be shared between configure
10541# scripts and configure runs, see configure's option --config-cache.
10542# It is not useful on other systems. If it contains results you don't
10543# want to keep, you may remove or edit it.
10544#
10545# config.status only pays attention to the cache file if you give it
10546# the --recheck option to rerun configure.
10547#
10548# `ac_cv_env_foo' variables (set or unset) will be overridden when
10549# loading this file, other *unset* `ac_cv_foo' will be assigned the
10550# following values.
10551
10552_ACEOF
10553
10554# The following way of writing the cache mishandles newlines in values,
10555# but we know of no workaround that is simple, portable, and efficient.
10556# So, don't put newlines in cache variables' values.
10557# Ultrix sh set writes to stderr and can't be redirected directly,
10558# and sets the high bit in the cache file unless we assign to the vars.
10559{
10560 (set) 2>&1 |
10561 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10562 *ac_space=\ *)
10563 # `set' does not quote correctly, so add quotes (double-quote
10564 # substitution turns \\\\ into \\, and sed turns \\ into \).
10565 sed -n \
ac1cb8d3
VS
10566 "s/'/'\\\\''/g;
10567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10568 ;;
10569 *)
10570 # `set' quotes correctly as required by POSIX, so do not add quotes.
10571 sed -n \
ac1cb8d3 10572 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10573 ;;
10574 esac;
10575} |
10576 sed '
10577 t clear
10578 : clear
10579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10580 t end
10581 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10582 : end' >>confcache
10583if diff $cache_file confcache >/dev/null 2>&1; then :; else
10584 if test -w $cache_file; then
10585 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10586 cat confcache >$cache_file
10587 else
10588 echo "not updating unwritable cache $cache_file"
10589 fi
10590fi
10591rm -f confcache
10592
10593if test "$build" != "$host" ; then
1e9e8aba 10594 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10595 CC=$host_alias-gcc
10596 CXX=$host_alias-c++
10597 AR=$host_alias-ar
10598 RANLIB=$host_alias-ranlib
10599 DLLTOOL=$host_alias-dlltool
10600 RESCOMP=$host_alias-windres
a848cd7e 10601 STRIP=$host_alias-strip
1e9e8aba
DE
10602 elif test "x$CC" '!=' "x"; then
10603 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10604 else
10605 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10606echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10607 { (exit 1); exit 1; }; }
10608 fi
10609fi
10610
10611CFLAGS=${CFLAGS:=}
6dcfc289
DE
10612
10613
10614 ac_ext=c
a848cd7e
SC
10615ac_cpp='$CPP $CPPFLAGS'
10616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10618ac_compiler_gnu=$ac_cv_c_compiler_gnu
10619if test -n "$ac_tool_prefix"; then
10620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10621set dummy ${ac_tool_prefix}gcc; ac_word=$2
10622echo "$as_me:$LINENO: checking for $ac_word" >&5
10623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10624if test "${ac_cv_prog_CC+set}" = set; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10626else
10627 if test -n "$CC"; then
10628 ac_cv_prog_CC="$CC" # Let the user override the test.
10629else
10630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631for as_dir in $PATH
10632do
10633 IFS=$as_save_IFS
10634 test -z "$as_dir" && as_dir=.
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10639 break 2
10640 fi
10641done
10642done
10643
10644fi
10645fi
10646CC=$ac_cv_prog_CC
10647if test -n "$CC"; then
10648 echo "$as_me:$LINENO: result: $CC" >&5
10649echo "${ECHO_T}$CC" >&6
10650else
10651 echo "$as_me:$LINENO: result: no" >&5
10652echo "${ECHO_T}no" >&6
10653fi
10654
10655fi
10656if test -z "$ac_cv_prog_CC"; then
10657 ac_ct_CC=$CC
10658 # Extract the first word of "gcc", so it can be a program name with args.
10659set dummy gcc; ac_word=$2
10660echo "$as_me:$LINENO: checking for $ac_word" >&5
10661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10662if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664else
10665 if test -n "$ac_ct_CC"; then
10666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10667else
10668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669for as_dir in $PATH
10670do
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10675 ac_cv_prog_ac_ct_CC="gcc"
10676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10677 break 2
10678 fi
10679done
10680done
10681
10682fi
10683fi
10684ac_ct_CC=$ac_cv_prog_ac_ct_CC
10685if test -n "$ac_ct_CC"; then
10686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10687echo "${ECHO_T}$ac_ct_CC" >&6
10688else
10689 echo "$as_me:$LINENO: result: no" >&5
10690echo "${ECHO_T}no" >&6
10691fi
10692
10693 CC=$ac_ct_CC
10694else
10695 CC="$ac_cv_prog_CC"
10696fi
10697
10698if test -z "$CC"; then
10699 if test -n "$ac_tool_prefix"; then
10700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10701set dummy ${ac_tool_prefix}cc; ac_word=$2
10702echo "$as_me:$LINENO: checking for $ac_word" >&5
10703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10704if test "${ac_cv_prog_CC+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10706else
10707 if test -n "$CC"; then
10708 ac_cv_prog_CC="$CC" # Let the user override the test.
10709else
10710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711for as_dir in $PATH
10712do
10713 IFS=$as_save_IFS
10714 test -z "$as_dir" && as_dir=.
10715 for ac_exec_ext in '' $ac_executable_extensions; do
10716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10717 ac_cv_prog_CC="${ac_tool_prefix}cc"
10718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10719 break 2
10720 fi
10721done
10722done
10723
10724fi
10725fi
10726CC=$ac_cv_prog_CC
10727if test -n "$CC"; then
10728 echo "$as_me:$LINENO: result: $CC" >&5
10729echo "${ECHO_T}$CC" >&6
10730else
10731 echo "$as_me:$LINENO: result: no" >&5
10732echo "${ECHO_T}no" >&6
10733fi
10734
10735fi
10736if test -z "$ac_cv_prog_CC"; then
10737 ac_ct_CC=$CC
10738 # Extract the first word of "cc", so it can be a program name with args.
10739set dummy cc; ac_word=$2
10740echo "$as_me:$LINENO: checking for $ac_word" >&5
10741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10742if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10744else
10745 if test -n "$ac_ct_CC"; then
10746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10747else
10748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749for as_dir in $PATH
10750do
10751 IFS=$as_save_IFS
10752 test -z "$as_dir" && as_dir=.
10753 for ac_exec_ext in '' $ac_executable_extensions; do
10754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10755 ac_cv_prog_ac_ct_CC="cc"
10756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 break 2
10758 fi
10759done
10760done
10761
10762fi
10763fi
10764ac_ct_CC=$ac_cv_prog_ac_ct_CC
10765if test -n "$ac_ct_CC"; then
10766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10767echo "${ECHO_T}$ac_ct_CC" >&6
10768else
10769 echo "$as_me:$LINENO: result: no" >&5
10770echo "${ECHO_T}no" >&6
10771fi
10772
10773 CC=$ac_ct_CC
10774else
10775 CC="$ac_cv_prog_CC"
10776fi
10777
10778fi
10779if test -z "$CC"; then
10780 # Extract the first word of "cc", so it can be a program name with args.
10781set dummy cc; ac_word=$2
10782echo "$as_me:$LINENO: checking for $ac_word" >&5
10783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10784if test "${ac_cv_prog_CC+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786else
10787 if test -n "$CC"; then
10788 ac_cv_prog_CC="$CC" # Let the user override the test.
10789else
10790 ac_prog_rejected=no
10791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792for as_dir in $PATH
10793do
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10799 ac_prog_rejected=yes
10800 continue
10801 fi
10802 ac_cv_prog_CC="cc"
10803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10805 fi
10806done
10807done
10808
10809if test $ac_prog_rejected = yes; then
10810 # We found a bogon in the path, so make sure we never use it.
10811 set dummy $ac_cv_prog_CC
10812 shift
10813 if test $# != 0; then
10814 # We chose a different compiler from the bogus one.
10815 # However, it has the same basename, so the bogon will be chosen
10816 # first if we set CC to just the basename; use the full file name.
10817 shift
10818 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10819 fi
10820fi
10821fi
10822fi
10823CC=$ac_cv_prog_CC
10824if test -n "$CC"; then
10825 echo "$as_me:$LINENO: result: $CC" >&5
10826echo "${ECHO_T}$CC" >&6
10827else
10828 echo "$as_me:$LINENO: result: no" >&5
10829echo "${ECHO_T}no" >&6
10830fi
10831
10832fi
10833if test -z "$CC"; then
10834 if test -n "$ac_tool_prefix"; then
10835 for ac_prog in cl
10836 do
10837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10838set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10839echo "$as_me:$LINENO: checking for $ac_word" >&5
10840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10841if test "${ac_cv_prog_CC+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10843else
10844 if test -n "$CC"; then
10845 ac_cv_prog_CC="$CC" # Let the user override the test.
10846else
10847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848for as_dir in $PATH
10849do
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
10852 for ac_exec_ext in '' $ac_executable_extensions; do
10853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 break 2
10857 fi
10858done
10859done
10860
10861fi
10862fi
10863CC=$ac_cv_prog_CC
10864if test -n "$CC"; then
10865 echo "$as_me:$LINENO: result: $CC" >&5
10866echo "${ECHO_T}$CC" >&6
10867else
10868 echo "$as_me:$LINENO: result: no" >&5
10869echo "${ECHO_T}no" >&6
10870fi
10871
10872 test -n "$CC" && break
10873 done
10874fi
10875if test -z "$CC"; then
10876 ac_ct_CC=$CC
10877 for ac_prog in cl
10878do
10879 # Extract the first word of "$ac_prog", so it can be a program name with args.
10880set dummy $ac_prog; ac_word=$2
10881echo "$as_me:$LINENO: checking for $ac_word" >&5
10882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10883if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10885else
10886 if test -n "$ac_ct_CC"; then
10887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10888else
10889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890for as_dir in $PATH
10891do
10892 IFS=$as_save_IFS
10893 test -z "$as_dir" && as_dir=.
10894 for ac_exec_ext in '' $ac_executable_extensions; do
10895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10896 ac_cv_prog_ac_ct_CC="$ac_prog"
10897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10898 break 2
10899 fi
10900done
10901done
10902
10903fi
10904fi
10905ac_ct_CC=$ac_cv_prog_ac_ct_CC
10906if test -n "$ac_ct_CC"; then
10907 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10908echo "${ECHO_T}$ac_ct_CC" >&6
10909else
10910 echo "$as_me:$LINENO: result: no" >&5
10911echo "${ECHO_T}no" >&6
10912fi
10913
10914 test -n "$ac_ct_CC" && break
10915done
10916
10917 CC=$ac_ct_CC
10918fi
10919
10920fi
10921
10922
10923test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10924See \`config.log' for more details." >&5
10925echo "$as_me: error: no acceptable C compiler found in \$PATH
10926See \`config.log' for more details." >&2;}
10927 { (exit 1); exit 1; }; }
10928
10929# Provide some information about the compiler.
10930echo "$as_me:$LINENO:" \
10931 "checking for C compiler version" >&5
10932ac_compiler=`set X $ac_compile; echo $2`
10933{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10934 (eval $ac_compiler --version </dev/null >&5) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }
10938{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10939 (eval $ac_compiler -v </dev/null >&5) 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }
10943{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10944 (eval $ac_compiler -V </dev/null >&5) 2>&5
10945 ac_status=$?
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }
10948
10949cat >conftest.$ac_ext <<_ACEOF
10950/* confdefs.h. */
10951_ACEOF
10952cat confdefs.h >>conftest.$ac_ext
10953cat >>conftest.$ac_ext <<_ACEOF
10954/* end confdefs.h. */
10955
10956int
10957main ()
10958{
10959
10960 ;
10961 return 0;
10962}
10963_ACEOF
10964ac_clean_files_save=$ac_clean_files
10965ac_clean_files="$ac_clean_files a.out a.exe b.out"
10966# Try to create an executable without -o first, disregard a.out.
10967# It will help us diagnose broken compilers, and finding out an intuition
10968# of exeext.
ac1cb8d3
VS
10969echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10970echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10971ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10972if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10973 (eval $ac_link_default) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; then
10977 # Find the output, starting from the most likely. This scheme is
10978# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10979# resort.
10980
10981# Be careful to initialize this variable, since it used to be cached.
10982# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10983ac_cv_exeext=
10984# b.out is created by i960 compilers.
10985for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10986do
10987 test -f "$ac_file" || continue
10988 case $ac_file in
10989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10990 ;;
a848cd7e 10991 conftest.$ac_ext )
ac1cb8d3
VS
10992 # This is the source file.
10993 ;;
a848cd7e 10994 [ab].out )
ac1cb8d3
VS
10995 # We found the default executable, but exeext='' is most
10996 # certainly right.
10997 break;;
a848cd7e 10998 *.* )
ac1cb8d3
VS
10999 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11000 # FIXME: I believe we export ac_cv_exeext for Libtool,
11001 # but it would be cool to find out if it's true. Does anybody
11002 # maintain Libtool? --akim.
11003 export ac_cv_exeext
11004 break;;
a848cd7e 11005 * )
ac1cb8d3 11006 break;;
a848cd7e
SC
11007 esac
11008done
11009else
11010 echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11014See \`config.log' for more details." >&5
11015echo "$as_me: error: C compiler cannot create executables
11016See \`config.log' for more details." >&2;}
11017 { (exit 77); exit 77; }; }
11018fi
11019
11020ac_exeext=$ac_cv_exeext
11021echo "$as_me:$LINENO: result: $ac_file" >&5
11022echo "${ECHO_T}$ac_file" >&6
11023
11024# Check the compiler produces executables we can run. If not, either
11025# the compiler is broken, or we cross compile.
11026echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11027echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11028# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11029# If not cross compiling, check that we can run a simple program.
11030if test "$cross_compiling" != yes; then
11031 if { ac_try='./$ac_file'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; }; then
11037 cross_compiling=no
11038 else
11039 if test "$cross_compiling" = maybe; then
11040 cross_compiling=yes
11041 else
11042 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11043If you meant to cross compile, use \`--host'.
11044See \`config.log' for more details." >&5
11045echo "$as_me: error: cannot run C compiled programs.
11046If you meant to cross compile, use \`--host'.
11047See \`config.log' for more details." >&2;}
11048 { (exit 1); exit 1; }; }
11049 fi
11050 fi
11051fi
11052echo "$as_me:$LINENO: result: yes" >&5
11053echo "${ECHO_T}yes" >&6
11054
11055rm -f a.out a.exe conftest$ac_cv_exeext b.out
11056ac_clean_files=$ac_clean_files_save
11057# Check the compiler produces executables we can run. If not, either
11058# the compiler is broken, or we cross compile.
11059echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11060echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11061echo "$as_me:$LINENO: result: $cross_compiling" >&5
11062echo "${ECHO_T}$cross_compiling" >&6
11063
11064echo "$as_me:$LINENO: checking for suffix of executables" >&5
11065echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11067 (eval $ac_link) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; then
11071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11072# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11073# work properly (i.e., refer to `conftest.exe'), while it won't with
11074# `rm'.
11075for ac_file in conftest.exe conftest conftest.*; do
11076 test -f "$ac_file" || continue
11077 case $ac_file in
11078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11080 export ac_cv_exeext
11081 break;;
a848cd7e
SC
11082 * ) break;;
11083 esac
11084done
11085else
11086 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11087See \`config.log' for more details." >&5
11088echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11089See \`config.log' for more details." >&2;}
11090 { (exit 1); exit 1; }; }
11091fi
11092
11093rm -f conftest$ac_cv_exeext
11094echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11095echo "${ECHO_T}$ac_cv_exeext" >&6
11096
11097rm -f conftest.$ac_ext
11098EXEEXT=$ac_cv_exeext
11099ac_exeext=$EXEEXT
11100echo "$as_me:$LINENO: checking for suffix of object files" >&5
11101echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11102if test "${ac_cv_objext+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11104else
11105 cat >conftest.$ac_ext <<_ACEOF
11106/* confdefs.h. */
11107_ACEOF
11108cat confdefs.h >>conftest.$ac_ext
11109cat >>conftest.$ac_ext <<_ACEOF
11110/* end confdefs.h. */
11111
11112int
11113main ()
11114{
11115
11116 ;
11117 return 0;
11118}
11119_ACEOF
11120rm -f conftest.o conftest.obj
11121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11122 (eval $ac_compile) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; then
11126 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11127 case $ac_file in
11128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11129 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11130 break;;
11131 esac
11132done
11133else
11134 echo "$as_me: failed program was:" >&5
11135sed 's/^/| /' conftest.$ac_ext >&5
11136
11137{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11138See \`config.log' for more details." >&5
11139echo "$as_me: error: cannot compute suffix of object files: cannot compile
11140See \`config.log' for more details." >&2;}
11141 { (exit 1); exit 1; }; }
11142fi
11143
11144rm -f conftest.$ac_cv_objext conftest.$ac_ext
11145fi
11146echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11147echo "${ECHO_T}$ac_cv_objext" >&6
11148OBJEXT=$ac_cv_objext
11149ac_objext=$OBJEXT
11150echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11151echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11152if test "${ac_cv_c_compiler_gnu+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154else
11155 cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */
11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
11160/* end confdefs.h. */
11161
11162int
11163main ()
11164{
11165#ifndef __GNUC__
11166 choke me
11167#endif
11168
11169 ;
11170 return 0;
11171}
11172_ACEOF
11173rm -f conftest.$ac_objext
11174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11175 (eval $ac_compile) 2>conftest.er1
a848cd7e 11176 ac_status=$?
ac1cb8d3
VS
11177 grep -v '^ *+' conftest.er1 >conftest.err
11178 rm -f conftest.er1
11179 cat conftest.err >&5
a848cd7e
SC
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
dfe0c803
JS
11182 { ac_try='test -z "$ac_c_werror_flag"
11183 || test ! -s conftest.err'
ac1cb8d3
VS
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_compiler_gnu=yes
11196else
11197 echo "$as_me: failed program was:" >&5
11198sed 's/^/| /' conftest.$ac_ext >&5
11199
11200ac_compiler_gnu=no
11201fi
ac1cb8d3 11202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11203ac_cv_c_compiler_gnu=$ac_compiler_gnu
11204
11205fi
11206echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11207echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11208GCC=`test $ac_compiler_gnu = yes && echo yes`
11209ac_test_CFLAGS=${CFLAGS+set}
11210ac_save_CFLAGS=$CFLAGS
11211CFLAGS="-g"
11212echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11213echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11214if test "${ac_cv_prog_cc_g+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216else
11217 cat >conftest.$ac_ext <<_ACEOF
11218/* confdefs.h. */
11219_ACEOF
11220cat confdefs.h >>conftest.$ac_ext
11221cat >>conftest.$ac_ext <<_ACEOF
11222/* end confdefs.h. */
11223
11224int
11225main ()
11226{
11227
11228 ;
11229 return 0;
11230}
11231_ACEOF
11232rm -f conftest.$ac_objext
11233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11234 (eval $ac_compile) 2>conftest.er1
a848cd7e 11235 ac_status=$?
ac1cb8d3
VS
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
a848cd7e
SC
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
dfe0c803
JS
11241 { ac_try='test -z "$ac_c_werror_flag"
11242 || test ! -s conftest.err'
ac1cb8d3
VS
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_cv_prog_cc_g=yes
11255else
11256 echo "$as_me: failed program was:" >&5
11257sed 's/^/| /' conftest.$ac_ext >&5
11258
11259ac_cv_prog_cc_g=no
11260fi
ac1cb8d3 11261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11262fi
11263echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11264echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11265if test "$ac_test_CFLAGS" = set; then
11266 CFLAGS=$ac_save_CFLAGS
11267elif test $ac_cv_prog_cc_g = yes; then
11268 if test "$GCC" = yes; then
11269 CFLAGS="-g -O2"
11270 else
11271 CFLAGS="-g"
11272 fi
11273else
11274 if test "$GCC" = yes; then
11275 CFLAGS="-O2"
11276 else
11277 CFLAGS=
11278 fi
11279fi
11280echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11281echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11282if test "${ac_cv_prog_cc_stdc+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284else
11285 ac_cv_prog_cc_stdc=no
11286ac_save_CC=$CC
11287cat >conftest.$ac_ext <<_ACEOF
11288/* confdefs.h. */
11289_ACEOF
11290cat confdefs.h >>conftest.$ac_ext
11291cat >>conftest.$ac_ext <<_ACEOF
11292/* end confdefs.h. */
11293#include <stdarg.h>
11294#include <stdio.h>
11295#include <sys/types.h>
11296#include <sys/stat.h>
11297/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11298struct buf { int x; };
11299FILE * (*rcsopen) (struct buf *, struct stat *, int);
11300static char *e (p, i)
11301 char **p;
11302 int i;
11303{
11304 return p[i];
11305}
11306static char *f (char * (*g) (char **, int), char **p, ...)
11307{
11308 char *s;
11309 va_list v;
11310 va_start (v,p);
11311 s = g (p, va_arg (v,int));
11312 va_end (v);
11313 return s;
11314}
ac1cb8d3
VS
11315
11316/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11317 function prototypes and stuff, but not '\xHH' hex character constants.
11318 These don't provoke an error unfortunately, instead are silently treated
11319 as 'x'. The following induces an error, until -std1 is added to get
11320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11321 array size at least. It's necessary to write '\x00'==0 to get something
11322 that's true only with -std1. */
11323int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11324
a848cd7e
SC
11325int test (int i, double x);
11326struct s1 {int (*f) (int a);};
11327struct s2 {int (*f) (double a);};
11328int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11329int argc;
11330char **argv;
11331int
11332main ()
11333{
11334return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11335 ;
11336 return 0;
11337}
11338_ACEOF
11339# Don't try gcc -ansi; that turns off useful extensions and
11340# breaks some systems' header files.
11341# AIX -qlanglvl=ansi
11342# Ultrix and OSF/1 -std1
11343# HP-UX 10.20 and later -Ae
11344# HP-UX older versions -Aa -D_HPUX_SOURCE
11345# SVR4 -Xc -D__EXTENSIONS__
11346for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11347do
11348 CC="$ac_save_CC $ac_arg"
11349 rm -f conftest.$ac_objext
11350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11351 (eval $ac_compile) 2>conftest.er1
a848cd7e 11352 ac_status=$?
ac1cb8d3
VS
11353 grep -v '^ *+' conftest.er1 >conftest.err
11354 rm -f conftest.er1
11355 cat conftest.err >&5
a848cd7e
SC
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } &&
dfe0c803
JS
11358 { ac_try='test -z "$ac_c_werror_flag"
11359 || test ! -s conftest.err'
ac1cb8d3
VS
11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; } &&
11365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367 (eval $ac_try) 2>&5
11368 ac_status=$?
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_cv_prog_cc_stdc=$ac_arg
11372break
11373else
11374 echo "$as_me: failed program was:" >&5
11375sed 's/^/| /' conftest.$ac_ext >&5
11376
11377fi
ac1cb8d3 11378rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11379done
11380rm -f conftest.$ac_ext conftest.$ac_objext
11381CC=$ac_save_CC
11382
11383fi
11384
11385case "x$ac_cv_prog_cc_stdc" in
11386 x|xno)
11387 echo "$as_me:$LINENO: result: none needed" >&5
11388echo "${ECHO_T}none needed" >&6 ;;
11389 *)
11390 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11391echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11392 CC="$CC $ac_cv_prog_cc_stdc" ;;
11393esac
11394
11395# Some people use a C++ compiler to compile C. Since we use `exit',
11396# in C++ we need to declare it. In case someone uses the same compiler
11397# for both compiling C and C++ we need to have the C++ compiler decide
11398# the declaration of exit, since it's the most demanding environment.
11399cat >conftest.$ac_ext <<_ACEOF
11400#ifndef __cplusplus
11401 choke me
11402#endif
11403_ACEOF
11404rm -f conftest.$ac_objext
11405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11406 (eval $ac_compile) 2>conftest.er1
a848cd7e 11407 ac_status=$?
ac1cb8d3
VS
11408 grep -v '^ *+' conftest.er1 >conftest.err
11409 rm -f conftest.er1
11410 cat conftest.err >&5
a848cd7e
SC
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } &&
dfe0c803
JS
11413 { ac_try='test -z "$ac_c_werror_flag"
11414 || test ! -s conftest.err'
ac1cb8d3
VS
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 for ac_declaration in \
ac1cb8d3 11427 '' \
a848cd7e
SC
11428 'extern "C" void std::exit (int) throw (); using std::exit;' \
11429 'extern "C" void std::exit (int); using std::exit;' \
11430 'extern "C" void exit (int) throw ();' \
11431 'extern "C" void exit (int);' \
11432 'void exit (int);'
11433do
11434 cat >conftest.$ac_ext <<_ACEOF
11435/* confdefs.h. */
11436_ACEOF
11437cat confdefs.h >>conftest.$ac_ext
11438cat >>conftest.$ac_ext <<_ACEOF
11439/* end confdefs.h. */
de59c161 11440$ac_declaration
ac1cb8d3 11441#include <stdlib.h>
a848cd7e
SC
11442int
11443main ()
11444{
11445exit (42);
11446 ;
11447 return 0;
11448}
11449_ACEOF
11450rm -f conftest.$ac_objext
11451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11452 (eval $ac_compile) 2>conftest.er1
a848cd7e 11453 ac_status=$?
ac1cb8d3
VS
11454 grep -v '^ *+' conftest.er1 >conftest.err
11455 rm -f conftest.er1
11456 cat conftest.err >&5
a848cd7e
SC
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
dfe0c803
JS
11459 { ac_try='test -z "$ac_c_werror_flag"
11460 || test ! -s conftest.err'
ac1cb8d3
VS
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; } &&
11466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; }; then
11472 :
11473else
11474 echo "$as_me: failed program was:" >&5
11475sed 's/^/| /' conftest.$ac_ext >&5
11476
11477continue
11478fi
ac1cb8d3 11479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11480 cat >conftest.$ac_ext <<_ACEOF
11481/* confdefs.h. */
11482_ACEOF
11483cat confdefs.h >>conftest.$ac_ext
11484cat >>conftest.$ac_ext <<_ACEOF
11485/* end confdefs.h. */
11486$ac_declaration
11487int
11488main ()
11489{
11490exit (42);
11491 ;
11492 return 0;
11493}
11494_ACEOF
11495rm -f conftest.$ac_objext
11496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11497 (eval $ac_compile) 2>conftest.er1
a848cd7e 11498 ac_status=$?
ac1cb8d3
VS
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
a848cd7e
SC
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
dfe0c803
JS
11504 { ac_try='test -z "$ac_c_werror_flag"
11505 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
11511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 break
11518else
11519 echo "$as_me: failed program was:" >&5
11520sed 's/^/| /' conftest.$ac_ext >&5
11521
11522fi
ac1cb8d3 11523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11524done
11525rm -f conftest*
11526if test -n "$ac_declaration"; then
11527 echo '#ifdef __cplusplus' >>confdefs.h
11528 echo $ac_declaration >>confdefs.h
11529 echo '#endif' >>confdefs.h
11530fi
11531
11532else
11533 echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
11536fi
ac1cb8d3 11537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11538ac_ext=c
11539ac_cpp='$CPP $CPPFLAGS'
11540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11542ac_compiler_gnu=$ac_cv_c_compiler_gnu
11543
6dcfc289 11544 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11545echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11546if test "${wx_cv_c_exto+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548else
11549 cat >conftest.$ac_ext <<_ACEOF
11550/* confdefs.h. */
11551_ACEOF
11552cat confdefs.h >>conftest.$ac_ext
11553cat >>conftest.$ac_ext <<_ACEOF
11554/* end confdefs.h. */
11555
11556int
11557main ()
11558{
11559
11560 ;
11561 return 0;
11562}
11563_ACEOF
11564rm -f conftest.$ac_objext conftest.$ac_ext.o
11565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11566 (eval $ac_compile) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; then
11570 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11571 case $ac_file in
11572 conftest.$ac_ext.o)
11573 wx_cv_c_exto="-ext o"
11574 ;;
11575 *)
11576 ;;
11577 esac
11578done
11579else
11580 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11581See \`config.log' for more details." >&5
11582echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11583See \`config.log' for more details." >&2;}
11584 { (exit 1); exit 1; }; }
11585
11586fi
11587
11588rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11589
11590fi
11591echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11592echo "${ECHO_T}$wx_cv_c_exto" >&6
11593if test "x$wx_cv_c_exto" '!=' "x"; then
11594 if test "c" = "c"; then
11595 CFLAGS="$wx_cv_c_exto $CFLAGS"
11596 fi
11597 if test "c" = "cxx"; then
11598 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11599 fi
11600fi
11601
6dcfc289
DE
11602 if test "x$wx_cv_c_exto" '!=' "x"; then
11603 unset ac_cv_prog_cc_g
11604 ac_test_CFLAGS=${CFLAGS+set}
480ccd21
DE
11605ac_save_CFLAGS=$CFLAGS
11606CFLAGS="-g"
11607echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11608echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11609if test "${ac_cv_prog_cc_g+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611else
11612 cat >conftest.$ac_ext <<_ACEOF
11613/* confdefs.h. */
11614_ACEOF
11615cat confdefs.h >>conftest.$ac_ext
11616cat >>conftest.$ac_ext <<_ACEOF
11617/* end confdefs.h. */
11618
11619int
11620main ()
11621{
11622
11623 ;
11624 return 0;
11625}
11626_ACEOF
11627rm -f conftest.$ac_objext
11628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
dfe0c803
JS
11636 { ac_try='test -z "$ac_c_werror_flag"
11637 || test ! -s conftest.err'
480ccd21
DE
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; } &&
11643 { ac_try='test -s conftest.$ac_objext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11646 ac_status=$?
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ac_cv_prog_cc_g=yes
11650else
11651 echo "$as_me: failed program was:" >&5
11652sed 's/^/| /' conftest.$ac_ext >&5
11653
11654ac_cv_prog_cc_g=no
11655fi
11656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11657fi
11658echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11659echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11660if test "$ac_test_CFLAGS" = set; then
11661 CFLAGS=$ac_save_CFLAGS
11662elif test $ac_cv_prog_cc_g = yes; then
11663 if test "$GCC" = yes; then
11664 CFLAGS="-g -O2"
11665 else
11666 CFLAGS="-g"
11667 fi
11668else
11669 if test "$GCC" = yes; then
11670 CFLAGS="-O2"
11671 else
11672 CFLAGS=
11673 fi
11674fi
6dcfc289
DE
11675 fi
11676 ac_ext=c
95986553
DE
11677ac_cpp='$CPP $CPPFLAGS'
11678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11680ac_compiler_gnu=$ac_cv_c_compiler_gnu
11681
11682echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11683echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11684if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11686else
11687 cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */
11693
11694int
11695main ()
11696{
11697#ifndef __MWERKS__
11698 choke me
11699#endif
11700
11701 ;
11702 return 0;
11703}
11704_ACEOF
11705rm -f conftest.$ac_objext
11706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11707 (eval $ac_compile) 2>conftest.er1
11708 ac_status=$?
11709 grep -v '^ *+' conftest.er1 >conftest.err
11710 rm -f conftest.er1
11711 cat conftest.err >&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
dfe0c803
JS
11714 { ac_try='test -z "$ac_c_werror_flag"
11715 || test ! -s conftest.err'
95986553
DE
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; } &&
11721 { ac_try='test -s conftest.$ac_objext'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
11727 bakefile_compiler_mwerks=yes
11728else
11729 echo "$as_me: failed program was:" >&5
11730sed 's/^/| /' conftest.$ac_ext >&5
11731
11732bakefile_compiler_mwerks=no
11733fi
11734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11735 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11736
11737fi
11738echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11739echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11740
0e6fa1d9 11741MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11742ac_ext=c
11743ac_cpp='$CPP $CPPFLAGS'
11744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11746ac_compiler_gnu=$ac_cv_c_compiler_gnu
11747
11748
6dcfc289 11749 ac_ext=c
9273ffba
DE
11750ac_cpp='$CPP $CPPFLAGS'
11751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11753ac_compiler_gnu=$ac_cv_c_compiler_gnu
11754
11755echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11756echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11757if test "${wx_cv_c_compiler_xlc+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759else
11760 cat >conftest.$ac_ext <<_ACEOF
11761/* confdefs.h. */
11762_ACEOF
11763cat confdefs.h >>conftest.$ac_ext
11764cat >>conftest.$ac_ext <<_ACEOF
11765/* end confdefs.h. */
11766
11767int
11768main ()
11769{
11770#ifndef __xlC__
11771 choke me
11772#endif
11773
11774 ;
11775 return 0;
11776}
11777_ACEOF
11778rm -f conftest.$ac_objext
11779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11780 (eval $ac_compile) 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
dfe0c803
JS
11787 { ac_try='test -z "$ac_c_werror_flag"
11788 || test ! -s conftest.err'
9273ffba
DE
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest.$ac_objext'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 wx_compiler_xlc=yes
11801else
11802 echo "$as_me: failed program was:" >&5
11803sed 's/^/| /' conftest.$ac_ext >&5
11804
11805wx_compiler_xlc=no
11806fi
11807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11808 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11809
11810fi
11811echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11812echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11813
0e6fa1d9 11814XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11815ac_ext=c
11816ac_cpp='$CPP $CPPFLAGS'
11817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11819ac_compiler_gnu=$ac_cv_c_compiler_gnu
11820
11821
a848cd7e 11822
6dcfc289 11823
a848cd7e
SC
11824ac_ext=c
11825ac_cpp='$CPP $CPPFLAGS'
11826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11828ac_compiler_gnu=$ac_cv_c_compiler_gnu
11829echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11830echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11831# On Suns, sometimes $CPP names a directory.
11832if test -n "$CPP" && test -d "$CPP"; then
11833 CPP=
11834fi
11835if test -z "$CPP"; then
11836 if test "${ac_cv_prog_CPP+set}" = set; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11838else
11839 # Double quotes because CPP needs to be expanded
11840 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11841 do
11842 ac_preproc_ok=false
11843for ac_c_preproc_warn_flag in '' yes
11844do
11845 # Use a header file that comes with gcc, so configuring glibc
11846 # with a fresh cross-compiler works.
11847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11848 # <limits.h> exists even on freestanding compilers.
11849 # On the NeXT, cc -E runs the code through the compiler's parser,
11850 # not just through cpp. "Syntax error" is here to catch this case.
11851 cat >conftest.$ac_ext <<_ACEOF
11852/* confdefs.h. */
11853_ACEOF
11854cat confdefs.h >>conftest.$ac_ext
11855cat >>conftest.$ac_ext <<_ACEOF
11856/* end confdefs.h. */
11857#ifdef __STDC__
11858# include <limits.h>
11859#else
11860# include <assert.h>
11861#endif
ac1cb8d3 11862 Syntax error
a848cd7e
SC
11863_ACEOF
11864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11866 ac_status=$?
11867 grep -v '^ *+' conftest.er1 >conftest.err
11868 rm -f conftest.er1
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } >/dev/null; then
11872 if test -s conftest.err; then
11873 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11875 else
11876 ac_cpp_err=
11877 fi
11878else
11879 ac_cpp_err=yes
11880fi
11881if test -z "$ac_cpp_err"; then
11882 :
11883else
11884 echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
11886
11887 # Broken: fails on valid input.
11888continue
11889fi
11890rm -f conftest.err conftest.$ac_ext
11891
11892 # OK, works on sane cases. Now check whether non-existent headers
11893 # can be detected and how.
11894 cat >conftest.$ac_ext <<_ACEOF
11895/* confdefs.h. */
11896_ACEOF
11897cat confdefs.h >>conftest.$ac_ext
11898cat >>conftest.$ac_ext <<_ACEOF
11899/* end confdefs.h. */
11900#include <ac_nonexistent.h>
11901_ACEOF
11902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } >/dev/null; then
11910 if test -s conftest.err; then
11911 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11913 else
11914 ac_cpp_err=
11915 fi
11916else
11917 ac_cpp_err=yes
11918fi
11919if test -z "$ac_cpp_err"; then
11920 # Broken: success on invalid input.
11921continue
11922else
11923 echo "$as_me: failed program was:" >&5
11924sed 's/^/| /' conftest.$ac_ext >&5
11925
11926 # Passes both tests.
11927ac_preproc_ok=:
11928break
11929fi
11930rm -f conftest.err conftest.$ac_ext
11931
11932done
11933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11934rm -f conftest.err conftest.$ac_ext
11935if $ac_preproc_ok; then
11936 break
11937fi
11938
11939 done
11940 ac_cv_prog_CPP=$CPP
11941
11942fi
11943 CPP=$ac_cv_prog_CPP
11944else
11945 ac_cv_prog_CPP=$CPP
11946fi
11947echo "$as_me:$LINENO: result: $CPP" >&5
11948echo "${ECHO_T}$CPP" >&6
11949ac_preproc_ok=false
11950for ac_c_preproc_warn_flag in '' yes
11951do
11952 # Use a header file that comes with gcc, so configuring glibc
11953 # with a fresh cross-compiler works.
11954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955 # <limits.h> exists even on freestanding compilers.
11956 # On the NeXT, cc -E runs the code through the compiler's parser,
11957 # not just through cpp. "Syntax error" is here to catch this case.
11958 cat >conftest.$ac_ext <<_ACEOF
11959/* confdefs.h. */
11960_ACEOF
11961cat confdefs.h >>conftest.$ac_ext
11962cat >>conftest.$ac_ext <<_ACEOF
11963/* end confdefs.h. */
11964#ifdef __STDC__
11965# include <limits.h>
11966#else
11967# include <assert.h>
11968#endif
ac1cb8d3 11969 Syntax error
a848cd7e
SC
11970_ACEOF
11971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11973 ac_status=$?
11974 grep -v '^ *+' conftest.er1 >conftest.err
11975 rm -f conftest.er1
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } >/dev/null; then
11979 if test -s conftest.err; then
11980 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11982 else
11983 ac_cpp_err=
11984 fi
11985else
11986 ac_cpp_err=yes
11987fi
11988if test -z "$ac_cpp_err"; then
11989 :
11990else
11991 echo "$as_me: failed program was:" >&5
11992sed 's/^/| /' conftest.$ac_ext >&5
11993
11994 # Broken: fails on valid input.
11995continue
11996fi
11997rm -f conftest.err conftest.$ac_ext
11998
11999 # OK, works on sane cases. Now check whether non-existent headers
12000 # can be detected and how.
12001 cat >conftest.$ac_ext <<_ACEOF
12002/* confdefs.h. */
12003_ACEOF
12004cat confdefs.h >>conftest.$ac_ext
12005cat >>conftest.$ac_ext <<_ACEOF
12006/* end confdefs.h. */
12007#include <ac_nonexistent.h>
12008_ACEOF
12009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } >/dev/null; then
12017 if test -s conftest.err; then
12018 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12020 else
12021 ac_cpp_err=
12022 fi
12023else
12024 ac_cpp_err=yes
12025fi
12026if test -z "$ac_cpp_err"; then
12027 # Broken: success on invalid input.
12028continue
12029else
12030 echo "$as_me: failed program was:" >&5
12031sed 's/^/| /' conftest.$ac_ext >&5
12032
12033 # Passes both tests.
12034ac_preproc_ok=:
12035break
12036fi
12037rm -f conftest.err conftest.$ac_ext
12038
12039done
12040# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12041rm -f conftest.err conftest.$ac_ext
12042if $ac_preproc_ok; then
12043 :
12044else
12045 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12046See \`config.log' for more details." >&5
12047echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12048See \`config.log' for more details." >&2;}
12049 { (exit 1); exit 1; }; }
12050fi
12051
12052ac_ext=c
12053ac_cpp='$CPP $CPPFLAGS'
12054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12056ac_compiler_gnu=$ac_cv_c_compiler_gnu
12057
12058
12059echo "$as_me:$LINENO: checking for egrep" >&5
12060echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12061if test "${ac_cv_prog_egrep+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063else
12064 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12065 then ac_cv_prog_egrep='grep -E'
12066 else ac_cv_prog_egrep='egrep'
12067 fi
12068fi
12069echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12070echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12071 EGREP=$ac_cv_prog_egrep
12072
12073
12074if test $ac_cv_c_compiler_gnu = yes; then
12075 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12076echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12077if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12079else
12080 ac_pattern="Autoconf.*'x'"
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 <sgtty.h>
12088Autoconf TIOCGETP
12089_ACEOF
12090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12091 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12092 ac_cv_prog_gcc_traditional=yes
12093else
12094 ac_cv_prog_gcc_traditional=no
12095fi
12096rm -f conftest*
12097
12098
12099 if test $ac_cv_prog_gcc_traditional = no; then
12100 cat >conftest.$ac_ext <<_ACEOF
12101/* confdefs.h. */
12102_ACEOF
12103cat confdefs.h >>conftest.$ac_ext
12104cat >>conftest.$ac_ext <<_ACEOF
12105/* end confdefs.h. */
12106#include <termio.h>
12107Autoconf TCGETA
12108_ACEOF
12109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12110 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12111 ac_cv_prog_gcc_traditional=yes
12112fi
12113rm -f conftest*
12114
12115 fi
12116fi
12117echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12118echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12119 if test $ac_cv_prog_gcc_traditional = yes; then
12120 CC="$CC -traditional"
12121 fi
12122fi
12123
12124
12125
12126
12127ac_ext=cc
12128ac_cpp='$CXXCPP $CPPFLAGS'
12129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12132
12133
12134CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12135
12136
12137 ac_ext=cc
a848cd7e
SC
12138ac_cpp='$CXXCPP $CPPFLAGS'
12139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12142if test -n "$ac_tool_prefix"; then
12143 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12144 do
12145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12146set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12147echo "$as_me:$LINENO: checking for $ac_word" >&5
12148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12149if test "${ac_cv_prog_CXX+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151else
12152 if test -n "$CXX"; then
12153 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12154else
12155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156for as_dir in $PATH
12157do
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12162 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12165 fi
12166done
12167done
12168
12169fi
12170fi
12171CXX=$ac_cv_prog_CXX
12172if test -n "$CXX"; then
12173 echo "$as_me:$LINENO: result: $CXX" >&5
12174echo "${ECHO_T}$CXX" >&6
12175else
12176 echo "$as_me:$LINENO: result: no" >&5
12177echo "${ECHO_T}no" >&6
12178fi
12179
12180 test -n "$CXX" && break
12181 done
12182fi
12183if test -z "$CXX"; then
12184 ac_ct_CXX=$CXX
12185 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12186do
12187 # Extract the first word of "$ac_prog", so it can be a program name with args.
12188set dummy $ac_prog; ac_word=$2
12189echo "$as_me:$LINENO: checking for $ac_word" >&5
12190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12191if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12192 echo $ECHO_N "(cached) $ECHO_C" >&6
12193else
12194 if test -n "$ac_ct_CXX"; then
12195 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12196else
12197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198for as_dir in $PATH
12199do
12200 IFS=$as_save_IFS
12201 test -z "$as_dir" && as_dir=.
12202 for ac_exec_ext in '' $ac_executable_extensions; do
12203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12204 ac_cv_prog_ac_ct_CXX="$ac_prog"
12205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12206 break 2
12207 fi
12208done
12209done
12210
12211fi
12212fi
12213ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12214if test -n "$ac_ct_CXX"; then
12215 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12216echo "${ECHO_T}$ac_ct_CXX" >&6
12217else
12218 echo "$as_me:$LINENO: result: no" >&5
12219echo "${ECHO_T}no" >&6
12220fi
12221
12222 test -n "$ac_ct_CXX" && break
12223done
12224test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12225
12226 CXX=$ac_ct_CXX
12227fi
12228
12229
12230# Provide some information about the compiler.
12231echo "$as_me:$LINENO:" \
12232 "checking for C++ compiler version" >&5
12233ac_compiler=`set X $ac_compile; echo $2`
12234{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12235 (eval $ac_compiler --version </dev/null >&5) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }
12239{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12240 (eval $ac_compiler -v </dev/null >&5) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }
12244{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12245 (eval $ac_compiler -V </dev/null >&5) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }
12249
12250echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12251echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12252if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12254else
12255 cat >conftest.$ac_ext <<_ACEOF
12256/* confdefs.h. */
12257_ACEOF
12258cat confdefs.h >>conftest.$ac_ext
12259cat >>conftest.$ac_ext <<_ACEOF
12260/* end confdefs.h. */
12261
12262int
12263main ()
12264{
12265#ifndef __GNUC__
12266 choke me
12267#endif
12268
12269 ;
12270 return 0;
12271}
12272_ACEOF
12273rm -f conftest.$ac_objext
12274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12275 (eval $ac_compile) 2>conftest.er1
a848cd7e 12276 ac_status=$?
ac1cb8d3
VS
12277 grep -v '^ *+' conftest.er1 >conftest.err
12278 rm -f conftest.er1
12279 cat conftest.err >&5
a848cd7e
SC
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } &&
dfe0c803
JS
12282 { ac_try='test -z "$ac_cxx_werror_flag"
12283 || test ! -s conftest.err'
ac1cb8d3
VS
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } &&
12289 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; }; then
12295 ac_compiler_gnu=yes
12296else
12297 echo "$as_me: failed program was:" >&5
12298sed 's/^/| /' conftest.$ac_ext >&5
12299
12300ac_compiler_gnu=no
12301fi
ac1cb8d3 12302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12303ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12304
12305fi
12306echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12307echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12308GXX=`test $ac_compiler_gnu = yes && echo yes`
12309ac_test_CXXFLAGS=${CXXFLAGS+set}
12310ac_save_CXXFLAGS=$CXXFLAGS
12311CXXFLAGS="-g"
12312echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12313echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12314if test "${ac_cv_prog_cxx_g+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316else
12317 cat >conftest.$ac_ext <<_ACEOF
12318/* confdefs.h. */
12319_ACEOF
12320cat confdefs.h >>conftest.$ac_ext
12321cat >>conftest.$ac_ext <<_ACEOF
12322/* end confdefs.h. */
12323
12324int
12325main ()
12326{
12327
12328 ;
12329 return 0;
12330}
12331_ACEOF
12332rm -f conftest.$ac_objext
12333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12334 (eval $ac_compile) 2>conftest.er1
a848cd7e 12335 ac_status=$?
ac1cb8d3
VS
12336 grep -v '^ *+' conftest.er1 >conftest.err
12337 rm -f conftest.er1
12338 cat conftest.err >&5
a848cd7e
SC
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
dfe0c803
JS
12341 { ac_try='test -z "$ac_cxx_werror_flag"
12342 || test ! -s conftest.err'
ac1cb8d3
VS
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } &&
12348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 ac_cv_prog_cxx_g=yes
12355else
12356 echo "$as_me: failed program was:" >&5
12357sed 's/^/| /' conftest.$ac_ext >&5
12358
12359ac_cv_prog_cxx_g=no
12360fi
ac1cb8d3 12361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12362fi
12363echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12364echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12365if test "$ac_test_CXXFLAGS" = set; then
12366 CXXFLAGS=$ac_save_CXXFLAGS
12367elif test $ac_cv_prog_cxx_g = yes; then
12368 if test "$GXX" = yes; then
12369 CXXFLAGS="-g -O2"
12370 else
12371 CXXFLAGS="-g"
12372 fi
12373else
12374 if test "$GXX" = yes; then
12375 CXXFLAGS="-O2"
12376 else
12377 CXXFLAGS=
12378 fi
12379fi
12380for ac_declaration in \
ac1cb8d3 12381 '' \
a848cd7e
SC
12382 'extern "C" void std::exit (int) throw (); using std::exit;' \
12383 'extern "C" void std::exit (int); using std::exit;' \
12384 'extern "C" void exit (int) throw ();' \
12385 'extern "C" void exit (int);' \
12386 'void exit (int);'
12387do
12388 cat >conftest.$ac_ext <<_ACEOF
12389/* confdefs.h. */
12390_ACEOF
12391cat confdefs.h >>conftest.$ac_ext
12392cat >>conftest.$ac_ext <<_ACEOF
12393/* end confdefs.h. */
de59c161 12394$ac_declaration
ac1cb8d3 12395#include <stdlib.h>
a848cd7e
SC
12396int
12397main ()
12398{
12399exit (42);
12400 ;
12401 return 0;
12402}
12403_ACEOF
12404rm -f conftest.$ac_objext
12405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12406 (eval $ac_compile) 2>conftest.er1
a848cd7e 12407 ac_status=$?
ac1cb8d3
VS
12408 grep -v '^ *+' conftest.er1 >conftest.err
12409 rm -f conftest.er1
12410 cat conftest.err >&5
a848cd7e
SC
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
dfe0c803
JS
12413 { ac_try='test -z "$ac_cxx_werror_flag"
12414 || test ! -s conftest.err'
ac1cb8d3
VS
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; } &&
12420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
12426 :
12427else
12428 echo "$as_me: failed program was:" >&5
12429sed 's/^/| /' conftest.$ac_ext >&5
12430
12431continue
12432fi
ac1cb8d3 12433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12434 cat >conftest.$ac_ext <<_ACEOF
12435/* confdefs.h. */
12436_ACEOF
12437cat confdefs.h >>conftest.$ac_ext
12438cat >>conftest.$ac_ext <<_ACEOF
12439/* end confdefs.h. */
12440$ac_declaration
12441int
12442main ()
12443{
12444exit (42);
12445 ;
12446 return 0;
12447}
12448_ACEOF
12449rm -f conftest.$ac_objext
12450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12451 (eval $ac_compile) 2>conftest.er1
a848cd7e 12452 ac_status=$?
ac1cb8d3
VS
12453 grep -v '^ *+' conftest.er1 >conftest.err
12454 rm -f conftest.er1
12455 cat conftest.err >&5
a848cd7e
SC
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } &&
dfe0c803
JS
12458 { ac_try='test -z "$ac_cxx_werror_flag"
12459 || test ! -s conftest.err'
ac1cb8d3
VS
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 break
12472else
12473 echo "$as_me: failed program was:" >&5
12474sed 's/^/| /' conftest.$ac_ext >&5
12475
12476fi
ac1cb8d3 12477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12478done
12479rm -f conftest*
12480if test -n "$ac_declaration"; then
12481 echo '#ifdef __cplusplus' >>confdefs.h
12482 echo $ac_declaration >>confdefs.h
12483 echo '#endif' >>confdefs.h
12484fi
12485
12486ac_ext=cc
12487ac_cpp='$CXXCPP $CPPFLAGS'
12488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12491
6dcfc289 12492 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12493echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12494if test "${wx_cv_cxx_exto+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12496else
12497 cat >conftest.$ac_ext <<_ACEOF
12498/* confdefs.h. */
12499_ACEOF
12500cat confdefs.h >>conftest.$ac_ext
12501cat >>conftest.$ac_ext <<_ACEOF
12502/* end confdefs.h. */
12503
12504int
12505main ()
12506{
12507
12508 ;
12509 return 0;
12510}
12511_ACEOF
12512rm -f conftest.$ac_objext conftest.$ac_ext.o
12513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12514 (eval $ac_compile) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; then
12518 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12519 case $ac_file in
12520 conftest.$ac_ext.o)
12521 wx_cv_cxx_exto="-ext o"
12522 ;;
12523 *)
12524 ;;
12525 esac
12526done
12527else
12528 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12529See \`config.log' for more details." >&5
12530echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12531See \`config.log' for more details." >&2;}
12532 { (exit 1); exit 1; }; }
12533
12534fi
12535
12536rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12537
12538fi
12539echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12540echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12541if test "x$wx_cv_cxx_exto" '!=' "x"; then
12542 if test "cxx" = "c"; then
12543 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12544 fi
12545 if test "cxx" = "cxx"; then
12546 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12547 fi
12548fi
12549
6dcfc289
DE
12550 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12551 unset ac_cv_prog_cxx_g
12552 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12553ac_save_CXXFLAGS=$CXXFLAGS
12554CXXFLAGS="-g"
12555echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12556echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12557if test "${ac_cv_prog_cxx_g+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12559else
12560 cat >conftest.$ac_ext <<_ACEOF
12561/* confdefs.h. */
12562_ACEOF
12563cat confdefs.h >>conftest.$ac_ext
12564cat >>conftest.$ac_ext <<_ACEOF
12565/* end confdefs.h. */
12566
12567int
12568main ()
12569{
12570
12571 ;
12572 return 0;
12573}
12574_ACEOF
12575rm -f conftest.$ac_objext
12576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12577 (eval $ac_compile) 2>conftest.er1
12578 ac_status=$?
12579 grep -v '^ *+' conftest.er1 >conftest.err
12580 rm -f conftest.er1
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
dfe0c803
JS
12584 { ac_try='test -z "$ac_cxx_werror_flag"
12585 || test ! -s conftest.err'
480ccd21
DE
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; } &&
12591 { ac_try='test -s conftest.$ac_objext'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 ac_cv_prog_cxx_g=yes
12598else
12599 echo "$as_me: failed program was:" >&5
12600sed 's/^/| /' conftest.$ac_ext >&5
12601
12602ac_cv_prog_cxx_g=no
12603fi
12604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12605fi
12606echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12607echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12608if test "$ac_test_CXXFLAGS" = set; then
12609 CXXFLAGS=$ac_save_CXXFLAGS
12610elif test $ac_cv_prog_cxx_g = yes; then
12611 if test "$GXX" = yes; then
12612 CXXFLAGS="-g -O2"
12613 else
12614 CXXFLAGS="-g"
12615 fi
12616else
12617 if test "$GXX" = yes; then
12618 CXXFLAGS="-O2"
12619 else
12620 CXXFLAGS=
12621 fi
12622fi
6dcfc289
DE
12623 fi
12624 ac_ext=cc
95986553
DE
12625ac_cpp='$CXXCPP $CPPFLAGS'
12626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12629
12630echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12631echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12632if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12633 echo $ECHO_N "(cached) $ECHO_C" >&6
12634else
12635 cat >conftest.$ac_ext <<_ACEOF
12636/* confdefs.h. */
12637_ACEOF
12638cat confdefs.h >>conftest.$ac_ext
12639cat >>conftest.$ac_ext <<_ACEOF
12640/* end confdefs.h. */
12641
12642int
12643main ()
12644{
12645#ifndef __MWERKS__
12646 choke me
12647#endif
12648
12649 ;
12650 return 0;
12651}
12652_ACEOF
12653rm -f conftest.$ac_objext
12654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12655 (eval $ac_compile) 2>conftest.er1
12656 ac_status=$?
12657 grep -v '^ *+' conftest.er1 >conftest.err
12658 rm -f conftest.er1
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } &&
dfe0c803
JS
12662 { ac_try='test -z "$ac_cxx_werror_flag"
12663 || test ! -s conftest.err'
95986553
DE
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; } &&
12669 { ac_try='test -s conftest.$ac_objext'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 bakefile_compiler_mwerks=yes
12676else
12677 echo "$as_me: failed program was:" >&5
12678sed 's/^/| /' conftest.$ac_ext >&5
12679
12680bakefile_compiler_mwerks=no
12681fi
12682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12683 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12684
12685fi
12686echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12687echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12688
0e6fa1d9 12689MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12690ac_ext=cc
12691ac_cpp='$CXXCPP $CPPFLAGS'
12692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12695
12696
6dcfc289 12697 ac_ext=cc
9273ffba
DE
12698ac_cpp='$CXXCPP $CPPFLAGS'
12699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12702
12703echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12704echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12705if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12706 echo $ECHO_N "(cached) $ECHO_C" >&6
12707else
12708 cat >conftest.$ac_ext <<_ACEOF
12709/* confdefs.h. */
12710_ACEOF
12711cat confdefs.h >>conftest.$ac_ext
12712cat >>conftest.$ac_ext <<_ACEOF
12713/* end confdefs.h. */
12714
12715int
12716main ()
12717{
12718#ifndef __xlC__
12719 choke me
12720#endif
12721
12722 ;
12723 return 0;
12724}
12725_ACEOF
12726rm -f conftest.$ac_objext
12727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12728 (eval $ac_compile) 2>conftest.er1
12729 ac_status=$?
12730 grep -v '^ *+' conftest.er1 >conftest.err
12731 rm -f conftest.er1
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
dfe0c803
JS
12735 { ac_try='test -z "$ac_cxx_werror_flag"
12736 || test ! -s conftest.err'
9273ffba
DE
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; } &&
12742 { ac_try='test -s conftest.$ac_objext'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; }; then
12748 wx_compiler_xlc=yes
12749else
12750 echo "$as_me: failed program was:" >&5
12751sed 's/^/| /' conftest.$ac_ext >&5
12752
12753wx_compiler_xlc=no
12754fi
12755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12756 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12757
12758fi
12759echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12760echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12761
0e6fa1d9 12762XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12763ac_ext=cc
12764ac_cpp='$CXXCPP $CPPFLAGS'
12765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12768
12769
95986553 12770
6dcfc289 12771
a848cd7e
SC
12772ac_ext=c
12773ac_cpp='$CPP $CPPFLAGS'
12774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12776ac_compiler_gnu=$ac_cv_c_compiler_gnu
12777
12778
a848cd7e
SC
12779if test -n "$ac_tool_prefix"; then
12780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12781set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12782echo "$as_me:$LINENO: checking for $ac_word" >&5
12783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12784if test "${ac_cv_prog_RANLIB+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787 if test -n "$RANLIB"; then
12788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12789else
12790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791for as_dir in $PATH
12792do
12793 IFS=$as_save_IFS
12794 test -z "$as_dir" && as_dir=.
12795 for ac_exec_ext in '' $ac_executable_extensions; do
12796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12799 break 2
12800 fi
12801done
12802done
12803
12804fi
12805fi
12806RANLIB=$ac_cv_prog_RANLIB
12807if test -n "$RANLIB"; then
12808 echo "$as_me:$LINENO: result: $RANLIB" >&5
12809echo "${ECHO_T}$RANLIB" >&6
12810else
12811 echo "$as_me:$LINENO: result: no" >&5
12812echo "${ECHO_T}no" >&6
12813fi
12814
12815fi
12816if test -z "$ac_cv_prog_RANLIB"; then
12817 ac_ct_RANLIB=$RANLIB
12818 # Extract the first word of "ranlib", so it can be a program name with args.
12819set dummy ranlib; ac_word=$2
12820echo "$as_me:$LINENO: checking for $ac_word" >&5
12821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12822if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12824else
12825 if test -n "$ac_ct_RANLIB"; then
12826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12827else
12828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829for as_dir in $PATH
12830do
12831 IFS=$as_save_IFS
12832 test -z "$as_dir" && as_dir=.
12833 for ac_exec_ext in '' $ac_executable_extensions; do
12834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12835 ac_cv_prog_ac_ct_RANLIB="ranlib"
12836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12837 break 2
12838 fi
12839done
12840done
12841
12842 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12843fi
12844fi
12845ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12846if test -n "$ac_ct_RANLIB"; then
12847 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12848echo "${ECHO_T}$ac_ct_RANLIB" >&6
12849else
12850 echo "$as_me:$LINENO: result: no" >&5
12851echo "${ECHO_T}no" >&6
12852fi
12853
12854 RANLIB=$ac_ct_RANLIB
12855else
12856 RANLIB="$ac_cv_prog_RANLIB"
12857fi
12858
12859
12860# Extract the first word of "ar", so it can be a program name with args.
12861set dummy ar; ac_word=$2
12862echo "$as_me:$LINENO: checking for $ac_word" >&5
12863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12864if test "${ac_cv_prog_AR+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12866else
12867 if test -n "$AR"; then
12868 ac_cv_prog_AR="$AR" # Let the user override the test.
12869else
12870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871for as_dir in $PATH
12872do
12873 IFS=$as_save_IFS
12874 test -z "$as_dir" && as_dir=.
12875 for ac_exec_ext in '' $ac_executable_extensions; do
12876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12877 ac_cv_prog_AR="ar"
12878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12879 break 2
12880 fi
12881done
12882done
12883
12884fi
12885fi
12886AR=$ac_cv_prog_AR
12887if test -n "$AR"; then
12888 echo "$as_me:$LINENO: result: $AR" >&5
12889echo "${ECHO_T}$AR" >&6
12890else
12891 echo "$as_me:$LINENO: result: no" >&5
12892echo "${ECHO_T}no" >&6
12893fi
12894
12895if test "x$AR" = "x" ; then
77ffb593
JS
12896 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12897echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12898 { (exit 1); exit 1; }; }
12899fi
12900
12901# Find a good install program. We prefer a C program (faster),
12902# so one script is as good as another. But avoid the broken or
12903# incompatible versions:
12904# SysV /etc/install, /usr/sbin/install
12905# SunOS /usr/etc/install
12906# IRIX /sbin/install
12907# AIX /bin/install
12908# AmigaOS /C/install, which installs bootblocks on floppy discs
12909# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12910# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12911# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12912# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12913# ./install, which can be erroneously created by make from ./install.sh.
12914echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12915echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12916if test -z "$INSTALL"; then
12917if test "${ac_cv_path_install+set}" = set; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
12919else
12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921for as_dir in $PATH
12922do
12923 IFS=$as_save_IFS
12924 test -z "$as_dir" && as_dir=.
12925 # Account for people who put trailing slashes in PATH elements.
12926case $as_dir/ in
12927 ./ | .// | /cC/* | \
12928 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12929 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12930 /usr/ucb/* ) ;;
12931 *)
12932 # OSF1 and SCO ODT 3.0 have their own names for install.
12933 # Don't use installbsd from OSF since it installs stuff as root
12934 # by default.
12935 for ac_prog in ginstall scoinst install; do
12936 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12937 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12938 if test $ac_prog = install &&
12939 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12940 # AIX install. It has an incompatible calling convention.
12941 :
12942 elif test $ac_prog = install &&
12943 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12944 # program-specific install script used by HP pwplus--don't use.
12945 :
12946 else
12947 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12948 break 3
12949 fi
12950 fi
a848cd7e
SC
12951 done
12952 done
12953 ;;
12954esac
12955done
12956
12957
12958fi
12959 if test "${ac_cv_path_install+set}" = set; then
12960 INSTALL=$ac_cv_path_install
12961 else
12962 # As a last resort, use the slow shell script. We don't cache a
12963 # path for INSTALL within a source directory, because that will
12964 # break other packages using the cache if that directory is
12965 # removed, or if the path is relative.
12966 INSTALL=$ac_install_sh
12967 fi
12968fi
12969echo "$as_me:$LINENO: result: $INSTALL" >&5
12970echo "${ECHO_T}$INSTALL" >&6
12971
12972# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12973# It thinks the first close brace ends the variable substitution.
12974test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12975
12976test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12977
12978test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12979
12980
12981case ${INSTALL} in
12982 /* ) # Absolute
12983 ;;
12984 ?:* ) # Drive letter, considered as absolute.
12985 ;;
12986 *)
12987 INSTALL=`pwd`/${INSTALL} ;;
12988esac
12989
a848cd7e
SC
12990
12991case "${host}" in
12992
12993 powerpc-*-darwin* )
12994 INSTALL_PROGRAM="cp -fp"
12995 INSTALL_DATA="cp -fp"
12996 ;;
12997 *)
12998 ;;
12999esac
13000
13001# Extract the first word of "strip", so it can be a program name with args.
13002set dummy strip; ac_word=$2
13003echo "$as_me:$LINENO: checking for $ac_word" >&5
13004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13005if test "${ac_cv_prog_STRIP+set}" = set; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13007else
13008 if test -n "$STRIP"; then
13009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13010else
13011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012for as_dir in $PATH
13013do
13014 IFS=$as_save_IFS
13015 test -z "$as_dir" && as_dir=.
13016 for ac_exec_ext in '' $ac_executable_extensions; do
13017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13018 ac_cv_prog_STRIP="strip"
13019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13020 break 2
13021 fi
13022done
13023done
13024
13025 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13026fi
13027fi
13028STRIP=$ac_cv_prog_STRIP
13029if test -n "$STRIP"; then
13030 echo "$as_me:$LINENO: result: $STRIP" >&5
13031echo "${ECHO_T}$STRIP" >&6
13032else
13033 echo "$as_me:$LINENO: result: no" >&5
13034echo "${ECHO_T}no" >&6
13035fi
13036
13037
13038echo "$as_me:$LINENO: checking if make is GNU make" >&5
13039echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13040if test "${wx_cv_prog_makeisgnu+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13042else
13043
13044 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13045 egrep -s GNU > /dev/null); then
13046 wx_cv_prog_makeisgnu="yes"
13047 else
13048 wx_cv_prog_makeisgnu="no"
13049 fi
13050
13051fi
13052echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13053echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13054
13055if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13056 IF_GNU_MAKE=""
13057else
13058 IF_GNU_MAKE="#"
13059fi
13060
13061
13062
13063if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13064echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13065echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13066if test "${wx_cv_prog_makevpath+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068else
13069
13070cat - << EOF > confMake
13071check : file
13072 cp \$? \$@
13073 cp \$? final_file
13074EOF
13075
13076if test ! -d sub ; then
13077 mkdir sub
13078fi
13079echo dummy > sub/file
13080${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13081RESULT=$?
13082rm -f sub/file check final_file confMake
13083rmdir sub
13084if test "$RESULT" = 0; then
13085 wx_cv_prog_makevpath="yes"
13086else
13087 wx_cv_prog_makevpath="no"
13088fi
13089
13090fi
13091echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13092echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13093
13094if test "x$wx_cv_prog_makevpath" != "xyes"; then
13095{ { echo "$as_me:$LINENO: error:
13096You need a make-utility that is able to use the variable
13097VPATH correctly.
13098If your version of make does not support VPATH correctly,
13099please install GNU-make (possibly as gmake), and start
13100configure with the following command:
13101export MAKE=gmake; ./configure for sh-type shells
13102setenv MAKE gmake; ./configure for csh-type shells
13103Also please do remember to use gmake in this case every time
13104you are trying to compile.
13105" >&5
13106echo "$as_me: error:
13107You need a make-utility that is able to use the variable
13108VPATH correctly.
13109If your version of make does not support VPATH correctly,
13110please install GNU-make (possibly as gmake), and start
13111configure with the following command:
13112export MAKE=gmake; ./configure for sh-type shells
13113setenv MAKE gmake; ./configure for csh-type shells
13114Also please do remember to use gmake in this case every time
13115you are trying to compile.
13116" >&2;}
13117 { (exit 1); exit 1; }; }
13118fi fi
13119echo "$as_me:$LINENO: checking whether ln -s works" >&5
13120echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13121LN_S=$as_ln_s
13122if test "$LN_S" = "ln -s"; then
13123 echo "$as_me:$LINENO: result: yes" >&5
13124echo "${ECHO_T}yes" >&6
13125else
13126 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13127echo "${ECHO_T}no, using $LN_S" >&6
13128fi
13129
13130
13131
9273ffba
DE
13132if test "x$XLCXX" = "xyes"; then
13133 CXXFLAGS="$CXXFLAGS -qunique"
13134fi
13135
13136
4d7ec9f1
DE
13137case "${host}" in
13138 powerpc-*-darwin* )
13139 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13140echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13141 cat >conftest.$ac_ext <<_ACEOF
13142/* confdefs.h. */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
13146/* end confdefs.h. */
13147
13148int
13149main ()
13150{
13151#ifndef __POWERPC__
13152 choke me for lack of PowerPC
13153#endif
13154
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159rm -f conftest.$ac_objext
13160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13161 (eval $ac_compile) 2>conftest.er1
13162 ac_status=$?
13163 grep -v '^ *+' conftest.er1 >conftest.err
13164 rm -f conftest.er1
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } &&
dfe0c803
JS
13168 { ac_try='test -z "$ac_c_werror_flag"
13169 || test ! -s conftest.err'
4d7ec9f1
DE
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; } &&
13175 { ac_try='test -s conftest.$ac_objext'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; }; then
13181 echo "$as_me:$LINENO: result: yes" >&5
13182echo "${ECHO_T}yes" >&6
13183else
13184 echo "$as_me: failed program was:" >&5
13185sed 's/^/| /' conftest.$ac_ext >&5
13186
13187echo "$as_me:$LINENO: result: no" >&5
13188echo "${ECHO_T}no" >&6
13189 cat >>confdefs.h <<\_ACEOF
13190#define __POWERPC__ 1
13191_ACEOF
13192
13193
13194fi
13195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13196 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13197echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13198 cat >conftest.$ac_ext <<_ACEOF
13199/* confdefs.h. */
13200_ACEOF
13201cat confdefs.h >>conftest.$ac_ext
13202cat >>conftest.$ac_ext <<_ACEOF
13203/* end confdefs.h. */
13204#include <CoreFoundation/CFBase.h>
13205
13206int
13207main ()
13208{
13209
13210 ;
13211 return 0;
13212}
13213_ACEOF
13214rm -f conftest.$ac_objext
13215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13216 (eval $ac_compile) 2>conftest.er1
13217 ac_status=$?
13218 grep -v '^ *+' conftest.er1 >conftest.err
13219 rm -f conftest.er1
13220 cat conftest.err >&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } &&
dfe0c803
JS
13223 { ac_try='test -z "$ac_c_werror_flag"
13224 || test ! -s conftest.err'
4d7ec9f1
DE
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; } &&
13230 { ac_try='test -s conftest.$ac_objext'
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13233 ac_status=$?
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; }; then
13236 echo "$as_me:$LINENO: result: yes" >&5
13237echo "${ECHO_T}yes" >&6
13238else
13239 echo "$as_me: failed program was:" >&5
13240sed 's/^/| /' conftest.$ac_ext >&5
13241
13242echo "$as_me:$LINENO: result: no" >&5
13243echo "${ECHO_T}no" >&6
13244 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13245echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13246 cat >conftest.$ac_ext <<_ACEOF
13247/* confdefs.h. */
13248_ACEOF
13249cat confdefs.h >>conftest.$ac_ext
13250cat >>conftest.$ac_ext <<_ACEOF
13251/* end confdefs.h. */
13252#define __CF_USE_FRAMEWORK_INCLUDES__
13253#include <CoreFoundation/CFBase.h>
13254
13255int
13256main ()
13257{
13258
13259 ;
13260 return 0;
13261}
13262_ACEOF
13263rm -f conftest.$ac_objext
13264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13265 (eval $ac_compile) 2>conftest.er1
13266 ac_status=$?
13267 grep -v '^ *+' conftest.er1 >conftest.err
13268 rm -f conftest.er1
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } &&
dfe0c803
JS
13272 { ac_try='test -z "$ac_c_werror_flag"
13273 || test ! -s conftest.err'
4d7ec9f1
DE
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest.$ac_objext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 echo "$as_me:$LINENO: result: yes" >&5
13286echo "${ECHO_T}yes" >&6
13287 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13293See \`config.log' for more details." >&5
13294echo "$as_me: error: no. CoreFoundation not available.
13295See \`config.log' for more details." >&2;}
13296 { (exit 1); exit 1; }; }
13297
13298fi
13299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13300
13301
13302fi
13303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13304 ;;
13305esac
13306
a848cd7e
SC
13307case "${host}" in
13308 *-pc-os2_emx | *-pc-os2-emx )
13309 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13310 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13311echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13312if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13314else
13315 ac_check_lib_save_LIBS=$LIBS
13316LIBS="-lcExt $LIBS"
13317cat >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
13324/* Override any gcc2 internal prototype to avoid an error. */
13325#ifdef __cplusplus
13326extern "C"
13327#endif
13328/* We use char because int might match the return type of a gcc2
13329 builtin and then its argument prototype would still apply. */
13330char drand48 ();
13331int
13332main ()
13333{
13334drand48 ();
13335 ;
13336 return 0;
13337}
13338_ACEOF
13339rm -f conftest.$ac_objext conftest$ac_exeext
13340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13341 (eval $ac_link) 2>conftest.er1
a848cd7e 13342 ac_status=$?
ac1cb8d3
VS
13343 grep -v '^ *+' conftest.er1 >conftest.err
13344 rm -f conftest.er1
13345 cat conftest.err >&5
a848cd7e
SC
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
dfe0c803
JS
13348 { ac_try='test -z "$ac_c_werror_flag"
13349 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
13355 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 ac_cv_lib_cExt_drand48=yes
13362else
13363 echo "$as_me: failed program was:" >&5
13364sed 's/^/| /' conftest.$ac_ext >&5
13365
13366ac_cv_lib_cExt_drand48=no
13367fi
ac1cb8d3
VS
13368rm -f conftest.err conftest.$ac_objext \
13369 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13370LIBS=$ac_check_lib_save_LIBS
13371fi
13372echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13373echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13374if test $ac_cv_lib_cExt_drand48 = yes; then
13375 LIBS="$LIBS -lcExt"
13376fi
13377
13378 else
13379 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13380 fi
69120ee4
VZ
13381 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13382echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13383if test "${wx_cv_gccversion+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385else
13386
391a765e
VS
13387 if test "$cross_compiling" = yes; then
13388 wx_cv_gccversion="EMX2"
13389
13390else
13391 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13392/* confdefs.h. */
13393_ACEOF
13394cat confdefs.h >>conftest.$ac_ext
13395cat >>conftest.$ac_ext <<_ACEOF
13396/* end confdefs.h. */
13397
391a765e 13398 #include <stdio.h>
a848cd7e 13399
391a765e
VS
13400 int main()
13401 {
13402 FILE *f=fopen("conftestval", "w");
13403 if (!f) exit(1);
13404 fprintf(f,
a848cd7e 13405 #if (__GNUC__ < 3)
391a765e
VS
13406 "EMX2"
13407 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13408 "EMX3"
13409 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13410 "Innotek5"
13411 #else
13412 "Innotek6"
a848cd7e 13413 #endif
391a765e
VS
13414 );
13415 exit(0);
13416 }
a848cd7e 13417
a848cd7e 13418_ACEOF
391a765e
VS
13419rm -f conftest$ac_exeext
13420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13421 (eval $ac_link) 2>&5
ac1cb8d3
VS
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13424 (exit $ac_status); } && { ac_try='./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
391a765e 13430 wx_cv_gccversion=`cat conftestval`
a848cd7e 13431else
391a765e
VS
13432 echo "$as_me: program exited with status $ac_status" >&5
13433echo "$as_me: failed program was:" >&5
a848cd7e
SC
13434sed 's/^/| /' conftest.$ac_ext >&5
13435
391a765e
VS
13436( exit $ac_status )
13437wx_cv_gccversion="EMX2"
a848cd7e 13438fi
391a765e 13439rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13440fi
a848cd7e
SC
13441
13442fi
13443echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13444echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13445 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13446 LIBS="$LIBS -lstdcpp"
13447 LDFLAGS="$LDFLAGS -Zsysv-signals"
13448 else
391a765e 13449 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13450 LIBS="$LIBS -lstdcxx"
13451 LDFLAGS="$LDFLAGS -Zsysv-signals"
13452 else
13453 LIBS="$LIBS -lstdc++"
13454 fi
13455 fi
94acd38e
DE
13456 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13457 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13458echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13459 wxUSE_OMF=yes
2da0c077 13460 enable_omf=yes
a848cd7e
SC
13461 fi
13462 ;;
13463 *)
13464
13465
13466
13467 ac_ext=cc
13468ac_cpp='$CXXCPP $CPPFLAGS'
13469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13472
13473
95986553 13474 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13475echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13476if test "${ac_cv_string_strcasecmp+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13478else
13479
13480 cat >conftest.$ac_ext <<_ACEOF
13481/* confdefs.h. */
13482_ACEOF
13483cat confdefs.h >>conftest.$ac_ext
13484cat >>conftest.$ac_ext <<_ACEOF
13485/* end confdefs.h. */
13486
13487 #include <string.h>
13488
13489int
13490main ()
13491{
13492
13493 strcasecmp("foo", "bar");
13494
13495 ;
13496 return 0;
13497}
13498_ACEOF
13499rm -f conftest.$ac_objext conftest$ac_exeext
13500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13501 (eval $ac_link) 2>conftest.er1
a848cd7e 13502 ac_status=$?
ac1cb8d3
VS
13503 grep -v '^ *+' conftest.er1 >conftest.err
13504 rm -f conftest.er1
13505 cat conftest.err >&5
a848cd7e
SC
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } &&
dfe0c803
JS
13508 { ac_try='test -z "$ac_cxx_werror_flag"
13509 || test ! -s conftest.err'
ac1cb8d3
VS
13510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511 (eval $ac_try) 2>&5
13512 ac_status=$?
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); }; } &&
13515 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }; then
13521 ac_cv_string_strcasecmp=yes
13522else
13523 echo "$as_me: failed program was:" >&5
13524sed 's/^/| /' conftest.$ac_ext >&5
13525
13526ac_cv_string_strcasecmp=no
13527
13528fi
ac1cb8d3
VS
13529rm -f conftest.err conftest.$ac_objext \
13530 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13531
13532fi
13533echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13534echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13535
13536 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13537 cat >>confdefs.h <<\_ACEOF
13538#define HAVE_STRCASECMP_IN_STRING_H 1
13539_ACEOF
13540
13541 else
13542 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13543echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13544if test "${ac_cv_strings_strcasecmp+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546else
13547
13548 cat >conftest.$ac_ext <<_ACEOF
13549/* confdefs.h. */
13550_ACEOF
13551cat confdefs.h >>conftest.$ac_ext
13552cat >>conftest.$ac_ext <<_ACEOF
13553/* end confdefs.h. */
13554
13555 #include <strings.h>
13556
13557int
13558main ()
13559{
13560
13561 strcasecmp("foo", "bar");
13562
13563 ;
13564 return 0;
13565}
13566_ACEOF
13567rm -f conftest.$ac_objext conftest$ac_exeext
13568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13569 (eval $ac_link) 2>conftest.er1
a848cd7e 13570 ac_status=$?
ac1cb8d3
VS
13571 grep -v '^ *+' conftest.er1 >conftest.err
13572 rm -f conftest.er1
13573 cat conftest.err >&5
a848cd7e
SC
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } &&
dfe0c803
JS
13576 { ac_try='test -z "$ac_cxx_werror_flag"
13577 || 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_strings_strcasecmp=yes
13590else
13591 echo "$as_me: failed program was:" >&5
13592sed 's/^/| /' conftest.$ac_ext >&5
13593
13594ac_cv_strings_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_strings_strcasecmp" >&5
13602echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13603
0c3c69fc 13604 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13605 cat >>confdefs.h <<\_ACEOF
13606#define HAVE_STRCASECMP_IN_STRINGS_H 1
13607_ACEOF
13608
13609 else
13610 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13611echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13612 { (exit 1); exit 1; }; }
13613 fi
13614 fi
13615
13616 ac_ext=c
13617ac_cpp='$CPP $CPPFLAGS'
13618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13620ac_compiler_gnu=$ac_cv_c_compiler_gnu
13621
13622 ;;
13623esac
13624
13625
13626echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13627echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13628if test "${ac_cv_header_stdc+set}" = set; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13630else
13631 cat >conftest.$ac_ext <<_ACEOF
13632/* confdefs.h. */
13633_ACEOF
13634cat confdefs.h >>conftest.$ac_ext
13635cat >>conftest.$ac_ext <<_ACEOF
13636/* end confdefs.h. */
13637#include <stdlib.h>
13638#include <stdarg.h>
13639#include <string.h>
13640#include <float.h>
13641
13642int
13643main ()
13644{
13645
13646 ;
13647 return 0;
13648}
13649_ACEOF
13650rm -f conftest.$ac_objext
13651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13652 (eval $ac_compile) 2>conftest.er1
a848cd7e 13653 ac_status=$?
ac1cb8d3
VS
13654 grep -v '^ *+' conftest.er1 >conftest.err
13655 rm -f conftest.er1
13656 cat conftest.err >&5
a848cd7e
SC
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
dfe0c803
JS
13659 { ac_try='test -z "$ac_c_werror_flag"
13660 || test ! -s conftest.err'
ac1cb8d3
VS
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; } &&
13666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13672 ac_cv_header_stdc=yes
13673else
13674 echo "$as_me: failed program was:" >&5
13675sed 's/^/| /' conftest.$ac_ext >&5
13676
13677ac_cv_header_stdc=no
13678fi
ac1cb8d3 13679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13680
13681if test $ac_cv_header_stdc = yes; then
13682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13683 cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
13689#include <string.h>
13690
13691_ACEOF
13692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13693 $EGREP "memchr" >/dev/null 2>&1; then
13694 :
13695else
13696 ac_cv_header_stdc=no
13697fi
13698rm -f conftest*
13699
13700fi
13701
13702if test $ac_cv_header_stdc = yes; then
13703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13704 cat >conftest.$ac_ext <<_ACEOF
13705/* confdefs.h. */
13706_ACEOF
13707cat confdefs.h >>conftest.$ac_ext
13708cat >>conftest.$ac_ext <<_ACEOF
13709/* end confdefs.h. */
13710#include <stdlib.h>
13711
13712_ACEOF
13713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13714 $EGREP "free" >/dev/null 2>&1; then
13715 :
13716else
13717 ac_cv_header_stdc=no
13718fi
13719rm -f conftest*
13720
13721fi
13722
13723if test $ac_cv_header_stdc = yes; then
13724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13725 if test "$cross_compiling" = yes; then
13726 :
13727else
13728 cat >conftest.$ac_ext <<_ACEOF
13729/* confdefs.h. */
13730_ACEOF
13731cat confdefs.h >>conftest.$ac_ext
13732cat >>conftest.$ac_ext <<_ACEOF
13733/* end confdefs.h. */
13734#include <ctype.h>
13735#if ((' ' & 0x0FF) == 0x020)
13736# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13737# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13738#else
13739# define ISLOWER(c) \
ac1cb8d3
VS
13740 (('a' <= (c) && (c) <= 'i') \
13741 || ('j' <= (c) && (c) <= 'r') \
13742 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13743# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13744#endif
13745
13746#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13747int
13748main ()
13749{
13750 int i;
13751 for (i = 0; i < 256; i++)
13752 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13753 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13754 exit(2);
13755 exit (0);
13756}
13757_ACEOF
13758rm -f conftest$ac_exeext
13759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13760 (eval $ac_link) 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 :
13770else
13771 echo "$as_me: program exited with status $ac_status" >&5
13772echo "$as_me: failed program was:" >&5
13773sed 's/^/| /' conftest.$ac_ext >&5
13774
13775( exit $ac_status )
13776ac_cv_header_stdc=no
13777fi
ac1cb8d3 13778rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13779fi
13780fi
13781fi
13782echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13783echo "${ECHO_T}$ac_cv_header_stdc" >&6
13784if test $ac_cv_header_stdc = yes; then
13785
13786cat >>confdefs.h <<\_ACEOF
13787#define STDC_HEADERS 1
13788_ACEOF
13789
13790fi
13791
13792# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13803 inttypes.h stdint.h unistd.h
a848cd7e
SC
13804do
13805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13806echo "$as_me:$LINENO: checking for $ac_header" >&5
13807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13808if eval "test \"\${$as_ac_Header+set}\" = set"; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810else
13811 cat >conftest.$ac_ext <<_ACEOF
13812/* confdefs.h. */
13813_ACEOF
13814cat confdefs.h >>conftest.$ac_ext
13815cat >>conftest.$ac_ext <<_ACEOF
13816/* end confdefs.h. */
13817$ac_includes_default
13818
13819#include <$ac_header>
13820_ACEOF
13821rm -f conftest.$ac_objext
13822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13823 (eval $ac_compile) 2>conftest.er1
a848cd7e 13824 ac_status=$?
ac1cb8d3
VS
13825 grep -v '^ *+' conftest.er1 >conftest.err
13826 rm -f conftest.er1
13827 cat conftest.err >&5
a848cd7e
SC
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } &&
dfe0c803
JS
13830 { ac_try='test -z "$ac_c_werror_flag"
13831 || test ! -s conftest.err'
ac1cb8d3
VS
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; } &&
13837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843 eval "$as_ac_Header=yes"
13844else
13845 echo "$as_me: failed program was:" >&5
13846sed 's/^/| /' conftest.$ac_ext >&5
13847
13848eval "$as_ac_Header=no"
13849fi
ac1cb8d3 13850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13851fi
13852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13854if test `eval echo '${'$as_ac_Header'}'` = yes; then
13855 cat >>confdefs.h <<_ACEOF
13856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13857_ACEOF
13858
13859fi
13860
13861done
13862
13863
13864
13865for ac_header in stdlib.h
13866do
13867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13868if eval "test \"\${$as_ac_Header+set}\" = set"; then
13869 echo "$as_me:$LINENO: checking for $ac_header" >&5
13870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13871if eval "test \"\${$as_ac_Header+set}\" = set"; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873fi
13874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13876else
13877 # Is the header compilable?
13878echo "$as_me:$LINENO: checking $ac_header usability" >&5
13879echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13880cat >conftest.$ac_ext <<_ACEOF
13881/* confdefs.h. */
13882_ACEOF
13883cat confdefs.h >>conftest.$ac_ext
13884cat >>conftest.$ac_ext <<_ACEOF
13885/* end confdefs.h. */
13886$ac_includes_default
13887#include <$ac_header>
13888_ACEOF
13889rm -f conftest.$ac_objext
13890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13891 (eval $ac_compile) 2>conftest.er1
a848cd7e 13892 ac_status=$?
ac1cb8d3
VS
13893 grep -v '^ *+' conftest.er1 >conftest.err
13894 rm -f conftest.er1
13895 cat conftest.err >&5
a848cd7e
SC
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } &&
dfe0c803
JS
13898 { ac_try='test -z "$ac_c_werror_flag"
13899 || test ! -s conftest.err'
ac1cb8d3
VS
13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; } &&
13905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
13911 ac_header_compiler=yes
13912else
13913 echo "$as_me: failed program was:" >&5
13914sed 's/^/| /' conftest.$ac_ext >&5
13915
13916ac_header_compiler=no
13917fi
ac1cb8d3 13918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13920echo "${ECHO_T}$ac_header_compiler" >&6
13921
13922# Is the header present?
13923echo "$as_me:$LINENO: checking $ac_header presence" >&5
13924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13925cat >conftest.$ac_ext <<_ACEOF
13926/* confdefs.h. */
13927_ACEOF
13928cat confdefs.h >>conftest.$ac_ext
13929cat >>conftest.$ac_ext <<_ACEOF
13930/* end confdefs.h. */
13931#include <$ac_header>
13932_ACEOF
13933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13935 ac_status=$?
13936 grep -v '^ *+' conftest.er1 >conftest.err
13937 rm -f conftest.er1
13938 cat conftest.err >&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } >/dev/null; then
13941 if test -s conftest.err; then
13942 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13944 else
13945 ac_cpp_err=
13946 fi
13947else
13948 ac_cpp_err=yes
13949fi
13950if test -z "$ac_cpp_err"; then
13951 ac_header_preproc=yes
13952else
13953 echo "$as_me: failed program was:" >&5
13954sed 's/^/| /' conftest.$ac_ext >&5
13955
13956 ac_header_preproc=no
13957fi
13958rm -f conftest.err conftest.$ac_ext
13959echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13960echo "${ECHO_T}$ac_header_preproc" >&6
13961
13962# So? What about this header?
ac1cb8d3
VS
13963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13964 yes:no: )
a848cd7e
SC
13965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13969 ac_header_preproc=yes
a848cd7e 13970 ;;
ac1cb8d3 13971 no:yes:* )
a848cd7e
SC
13972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13984 (
13985 cat <<\_ASBOX
ac1cb8d3
VS
13986## ----------------------------------------- ##
13987## Report this to wx-dev@lists.wxwidgets.org ##
13988## ----------------------------------------- ##
a848cd7e
SC
13989_ASBOX
13990 ) |
13991 sed "s/^/$as_me: WARNING: /" >&2
13992 ;;
13993esac
13994echo "$as_me:$LINENO: checking for $ac_header" >&5
13995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13996if eval "test \"\${$as_ac_Header+set}\" = set"; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13998else
ac1cb8d3 13999 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14000fi
14001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14003
14004fi
14005if test `eval echo '${'$as_ac_Header'}'` = yes; then
14006 cat >>confdefs.h <<_ACEOF
14007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14008_ACEOF
14009
14010fi
14011
14012done
14013
14014
14015for ac_header in malloc.h
14016do
14017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14018if eval "test \"\${$as_ac_Header+set}\" = set"; then
14019 echo "$as_me:$LINENO: checking for $ac_header" >&5
14020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14021if eval "test \"\${$as_ac_Header+set}\" = set"; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14023fi
14024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14026else
14027 # Is the header compilable?
14028echo "$as_me:$LINENO: checking $ac_header usability" >&5
14029echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14030cat >conftest.$ac_ext <<_ACEOF
14031/* confdefs.h. */
14032_ACEOF
14033cat confdefs.h >>conftest.$ac_ext
14034cat >>conftest.$ac_ext <<_ACEOF
14035/* end confdefs.h. */
14036$ac_includes_default
14037#include <$ac_header>
14038_ACEOF
14039rm -f conftest.$ac_objext
14040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14041 (eval $ac_compile) 2>conftest.er1
a848cd7e 14042 ac_status=$?
ac1cb8d3
VS
14043 grep -v '^ *+' conftest.er1 >conftest.err
14044 rm -f conftest.er1
14045 cat conftest.err >&5
a848cd7e
SC
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
dfe0c803
JS
14048 { ac_try='test -z "$ac_c_werror_flag"
14049 || test ! -s conftest.err'
ac1cb8d3
VS
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; } &&
14055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_header_compiler=yes
14062else
14063 echo "$as_me: failed program was:" >&5
14064sed 's/^/| /' conftest.$ac_ext >&5
14065
14066ac_header_compiler=no
14067fi
ac1cb8d3 14068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14069echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14070echo "${ECHO_T}$ac_header_compiler" >&6
14071
14072# Is the header present?
14073echo "$as_me:$LINENO: checking $ac_header presence" >&5
14074echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14075cat >conftest.$ac_ext <<_ACEOF
14076/* confdefs.h. */
14077_ACEOF
14078cat confdefs.h >>conftest.$ac_ext
14079cat >>conftest.$ac_ext <<_ACEOF
14080/* end confdefs.h. */
14081#include <$ac_header>
14082_ACEOF
14083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14085 ac_status=$?
14086 grep -v '^ *+' conftest.er1 >conftest.err
14087 rm -f conftest.er1
14088 cat conftest.err >&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } >/dev/null; then
14091 if test -s conftest.err; then
14092 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14094 else
14095 ac_cpp_err=
14096 fi
14097else
14098 ac_cpp_err=yes
14099fi
14100if test -z "$ac_cpp_err"; then
14101 ac_header_preproc=yes
14102else
14103 echo "$as_me: failed program was:" >&5
14104sed 's/^/| /' conftest.$ac_ext >&5
14105
14106 ac_header_preproc=no
14107fi
14108rm -f conftest.err conftest.$ac_ext
14109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14110echo "${ECHO_T}$ac_header_preproc" >&6
14111
14112# So? What about this header?
ac1cb8d3
VS
14113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14114 yes:no: )
a848cd7e
SC
14115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14116echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14118echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14119 ac_header_preproc=yes
a848cd7e 14120 ;;
ac1cb8d3 14121 no:yes:* )
a848cd7e
SC
14122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14123echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14125echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14127echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14129echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14131echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14133echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14134 (
14135 cat <<\_ASBOX
ac1cb8d3
VS
14136## ----------------------------------------- ##
14137## Report this to wx-dev@lists.wxwidgets.org ##
14138## ----------------------------------------- ##
a848cd7e
SC
14139_ASBOX
14140 ) |
14141 sed "s/^/$as_me: WARNING: /" >&2
14142 ;;
14143esac
14144echo "$as_me:$LINENO: checking for $ac_header" >&5
14145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14146if eval "test \"\${$as_ac_Header+set}\" = set"; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148else
ac1cb8d3 14149 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14150fi
14151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14153
14154fi
14155if test `eval echo '${'$as_ac_Header'}'` = yes; then
14156 cat >>confdefs.h <<_ACEOF
14157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14158_ACEOF
14159
14160fi
14161
14162done
14163
14164
14165for ac_header in unistd.h
14166do
14167as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14168if eval "test \"\${$as_ac_Header+set}\" = set"; then
14169 echo "$as_me:$LINENO: checking for $ac_header" >&5
14170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14171if eval "test \"\${$as_ac_Header+set}\" = set"; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173fi
14174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14176else
14177 # Is the header compilable?
14178echo "$as_me:$LINENO: checking $ac_header usability" >&5
14179echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14180cat >conftest.$ac_ext <<_ACEOF
14181/* confdefs.h. */
14182_ACEOF
14183cat confdefs.h >>conftest.$ac_ext
14184cat >>conftest.$ac_ext <<_ACEOF
14185/* end confdefs.h. */
14186$ac_includes_default
14187#include <$ac_header>
14188_ACEOF
14189rm -f conftest.$ac_objext
14190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14191 (eval $ac_compile) 2>conftest.er1
a848cd7e 14192 ac_status=$?
ac1cb8d3
VS
14193 grep -v '^ *+' conftest.er1 >conftest.err
14194 rm -f conftest.er1
14195 cat conftest.err >&5
a848cd7e
SC
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
dfe0c803
JS
14198 { ac_try='test -z "$ac_c_werror_flag"
14199 || test ! -s conftest.err'
ac1cb8d3
VS
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; } &&
14205 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
14211 ac_header_compiler=yes
14212else
14213 echo "$as_me: failed program was:" >&5
14214sed 's/^/| /' conftest.$ac_ext >&5
14215
14216ac_header_compiler=no
14217fi
ac1cb8d3 14218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14219echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14220echo "${ECHO_T}$ac_header_compiler" >&6
14221
14222# Is the header present?
14223echo "$as_me:$LINENO: checking $ac_header presence" >&5
14224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14225cat >conftest.$ac_ext <<_ACEOF
14226/* confdefs.h. */
14227_ACEOF
14228cat confdefs.h >>conftest.$ac_ext
14229cat >>conftest.$ac_ext <<_ACEOF
14230/* end confdefs.h. */
14231#include <$ac_header>
14232_ACEOF
14233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14235 ac_status=$?
14236 grep -v '^ *+' conftest.er1 >conftest.err
14237 rm -f conftest.er1
14238 cat conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } >/dev/null; then
14241 if test -s conftest.err; then
14242 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14244 else
14245 ac_cpp_err=
14246 fi
14247else
14248 ac_cpp_err=yes
14249fi
14250if test -z "$ac_cpp_err"; then
14251 ac_header_preproc=yes
14252else
14253 echo "$as_me: failed program was:" >&5
14254sed 's/^/| /' conftest.$ac_ext >&5
14255
14256 ac_header_preproc=no
14257fi
14258rm -f conftest.err conftest.$ac_ext
14259echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14260echo "${ECHO_T}$ac_header_preproc" >&6
14261
14262# So? What about this header?
ac1cb8d3
VS
14263case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14264 yes:no: )
a848cd7e
SC
14265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14266echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14268echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14269 ac_header_preproc=yes
a848cd7e 14270 ;;
ac1cb8d3 14271 no:yes:* )
a848cd7e
SC
14272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14273echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14275echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14277echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14279echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14283echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14284 (
14285 cat <<\_ASBOX
ac1cb8d3
VS
14286## ----------------------------------------- ##
14287## Report this to wx-dev@lists.wxwidgets.org ##
14288## ----------------------------------------- ##
a848cd7e
SC
14289_ASBOX
14290 ) |
14291 sed "s/^/$as_me: WARNING: /" >&2
14292 ;;
14293esac
14294echo "$as_me:$LINENO: checking for $ac_header" >&5
14295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14296if eval "test \"\${$as_ac_Header+set}\" = set"; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298else
ac1cb8d3 14299 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14300fi
14301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14302echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14303
14304fi
14305if test `eval echo '${'$as_ac_Header'}'` = yes; then
14306 cat >>confdefs.h <<_ACEOF
14307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14308_ACEOF
14309
14310fi
14311
14312done
14313
14314
14315for ac_header in wchar.h
14316do
14317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14318if eval "test \"\${$as_ac_Header+set}\" = set"; then
14319 echo "$as_me:$LINENO: checking for $ac_header" >&5
14320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14321if eval "test \"\${$as_ac_Header+set}\" = set"; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14323fi
14324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14326else
14327 # Is the header compilable?
14328echo "$as_me:$LINENO: checking $ac_header usability" >&5
14329echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14330cat >conftest.$ac_ext <<_ACEOF
14331/* confdefs.h. */
14332_ACEOF
14333cat confdefs.h >>conftest.$ac_ext
14334cat >>conftest.$ac_ext <<_ACEOF
14335/* end confdefs.h. */
14336$ac_includes_default
14337#include <$ac_header>
14338_ACEOF
14339rm -f conftest.$ac_objext
14340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14341 (eval $ac_compile) 2>conftest.er1
a848cd7e 14342 ac_status=$?
ac1cb8d3
VS
14343 grep -v '^ *+' conftest.er1 >conftest.err
14344 rm -f conftest.er1
14345 cat conftest.err >&5
a848cd7e
SC
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
dfe0c803
JS
14348 { ac_try='test -z "$ac_c_werror_flag"
14349 || test ! -s conftest.err'
ac1cb8d3
VS
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; } &&
14355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 ac_header_compiler=yes
14362else
14363 echo "$as_me: failed program was:" >&5
14364sed 's/^/| /' conftest.$ac_ext >&5
14365
14366ac_header_compiler=no
14367fi
ac1cb8d3 14368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14369echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14370echo "${ECHO_T}$ac_header_compiler" >&6
14371
14372# Is the header present?
14373echo "$as_me:$LINENO: checking $ac_header presence" >&5
14374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14375cat >conftest.$ac_ext <<_ACEOF
14376/* confdefs.h. */
14377_ACEOF
14378cat confdefs.h >>conftest.$ac_ext
14379cat >>conftest.$ac_ext <<_ACEOF
14380/* end confdefs.h. */
14381#include <$ac_header>
14382_ACEOF
14383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } >/dev/null; then
14391 if test -s conftest.err; then
14392 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14394 else
14395 ac_cpp_err=
14396 fi
14397else
14398 ac_cpp_err=yes
14399fi
14400if test -z "$ac_cpp_err"; then
14401 ac_header_preproc=yes
14402else
14403 echo "$as_me: failed program was:" >&5
14404sed 's/^/| /' conftest.$ac_ext >&5
14405
14406 ac_header_preproc=no
14407fi
14408rm -f conftest.err conftest.$ac_ext
14409echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14410echo "${ECHO_T}$ac_header_preproc" >&6
14411
14412# So? What about this header?
ac1cb8d3
VS
14413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14414 yes:no: )
a848cd7e
SC
14415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14416echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14418echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14419 ac_header_preproc=yes
a848cd7e 14420 ;;
ac1cb8d3 14421 no:yes:* )
a848cd7e
SC
14422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14423echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14425echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14427echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14429echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14431echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14433echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14434 (
14435 cat <<\_ASBOX
ac1cb8d3
VS
14436## ----------------------------------------- ##
14437## Report this to wx-dev@lists.wxwidgets.org ##
14438## ----------------------------------------- ##
a848cd7e
SC
14439_ASBOX
14440 ) |
14441 sed "s/^/$as_me: WARNING: /" >&2
14442 ;;
14443esac
14444echo "$as_me:$LINENO: checking for $ac_header" >&5
14445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14446if eval "test \"\${$as_ac_Header+set}\" = set"; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448else
ac1cb8d3 14449 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14450fi
14451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14453
14454fi
14455if test `eval echo '${'$as_ac_Header'}'` = yes; then
14456 cat >>confdefs.h <<_ACEOF
14457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14458_ACEOF
14459
14460fi
14461
14462done
14463
14464
14465if test "$ac_cv_header_wchar_h" != "yes"; then
14466
14467for ac_header in wcstr.h
14468do
14469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14470if eval "test \"\${$as_ac_Header+set}\" = set"; then
14471 echo "$as_me:$LINENO: checking for $ac_header" >&5
14472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14473if eval "test \"\${$as_ac_Header+set}\" = set"; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14475fi
14476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14478else
14479 # Is the header compilable?
14480echo "$as_me:$LINENO: checking $ac_header usability" >&5
14481echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14482cat >conftest.$ac_ext <<_ACEOF
14483/* confdefs.h. */
14484_ACEOF
14485cat confdefs.h >>conftest.$ac_ext
14486cat >>conftest.$ac_ext <<_ACEOF
14487/* end confdefs.h. */
14488$ac_includes_default
14489#include <$ac_header>
14490_ACEOF
14491rm -f conftest.$ac_objext
14492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14493 (eval $ac_compile) 2>conftest.er1
a848cd7e 14494 ac_status=$?
ac1cb8d3
VS
14495 grep -v '^ *+' conftest.er1 >conftest.err
14496 rm -f conftest.er1
14497 cat conftest.err >&5
a848cd7e
SC
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } &&
dfe0c803
JS
14500 { ac_try='test -z "$ac_c_werror_flag"
14501 || test ! -s conftest.err'
ac1cb8d3
VS
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; } &&
14507 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_header_compiler=yes
14514else
14515 echo "$as_me: failed program was:" >&5
14516sed 's/^/| /' conftest.$ac_ext >&5
14517
14518ac_header_compiler=no
14519fi
ac1cb8d3 14520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14522echo "${ECHO_T}$ac_header_compiler" >&6
14523
14524# Is the header present?
14525echo "$as_me:$LINENO: checking $ac_header presence" >&5
14526echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14527cat >conftest.$ac_ext <<_ACEOF
14528/* confdefs.h. */
14529_ACEOF
14530cat confdefs.h >>conftest.$ac_ext
14531cat >>conftest.$ac_ext <<_ACEOF
14532/* end confdefs.h. */
14533#include <$ac_header>
14534_ACEOF
14535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } >/dev/null; then
14543 if test -s conftest.err; then
14544 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14546 else
14547 ac_cpp_err=
14548 fi
14549else
14550 ac_cpp_err=yes
14551fi
14552if test -z "$ac_cpp_err"; then
14553 ac_header_preproc=yes
14554else
14555 echo "$as_me: failed program was:" >&5
14556sed 's/^/| /' conftest.$ac_ext >&5
14557
14558 ac_header_preproc=no
14559fi
14560rm -f conftest.err conftest.$ac_ext
14561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14562echo "${ECHO_T}$ac_header_preproc" >&6
14563
14564# So? What about this header?
ac1cb8d3
VS
14565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14566 yes:no: )
a848cd7e
SC
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14570echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14571 ac_header_preproc=yes
a848cd7e 14572 ;;
ac1cb8d3 14573 no:yes:* )
a848cd7e
SC
14574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14575echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14577echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14579echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14581echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14585echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14586 (
14587 cat <<\_ASBOX
ac1cb8d3
VS
14588## ----------------------------------------- ##
14589## Report this to wx-dev@lists.wxwidgets.org ##
14590## ----------------------------------------- ##
a848cd7e
SC
14591_ASBOX
14592 ) |
14593 sed "s/^/$as_me: WARNING: /" >&2
14594 ;;
14595esac
14596echo "$as_me:$LINENO: checking for $ac_header" >&5
14597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14598if eval "test \"\${$as_ac_Header+set}\" = set"; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600else
ac1cb8d3 14601 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14602fi
14603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14605
14606fi
14607if test `eval echo '${'$as_ac_Header'}'` = yes; then
14608 cat >>confdefs.h <<_ACEOF
14609#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14610_ACEOF
14611
14612fi
14613
14614done
14615
14616fi
14617
14618
14619for ac_header in fnmatch.h
14620do
14621as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14622if eval "test \"\${$as_ac_Header+set}\" = set"; then
14623 echo "$as_me:$LINENO: checking for $ac_header" >&5
14624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14625if eval "test \"\${$as_ac_Header+set}\" = set"; then
14626 echo $ECHO_N "(cached) $ECHO_C" >&6
14627fi
14628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14630else
14631 # Is the header compilable?
14632echo "$as_me:$LINENO: checking $ac_header usability" >&5
14633echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14634cat >conftest.$ac_ext <<_ACEOF
14635/* confdefs.h. */
14636_ACEOF
14637cat confdefs.h >>conftest.$ac_ext
14638cat >>conftest.$ac_ext <<_ACEOF
14639/* end confdefs.h. */
14640$ac_includes_default
14641#include <$ac_header>
14642_ACEOF
14643rm -f conftest.$ac_objext
14644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14645 (eval $ac_compile) 2>conftest.er1
a848cd7e 14646 ac_status=$?
ac1cb8d3
VS
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
a848cd7e
SC
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } &&
dfe0c803
JS
14652 { ac_try='test -z "$ac_c_werror_flag"
14653 || test ! -s conftest.err'
ac1cb8d3
VS
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; } &&
14659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14665 ac_header_compiler=yes
14666else
14667 echo "$as_me: failed program was:" >&5
14668sed 's/^/| /' conftest.$ac_ext >&5
14669
14670ac_header_compiler=no
14671fi
ac1cb8d3 14672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14673echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14674echo "${ECHO_T}$ac_header_compiler" >&6
14675
14676# Is the header present?
14677echo "$as_me:$LINENO: checking $ac_header presence" >&5
14678echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14679cat >conftest.$ac_ext <<_ACEOF
14680/* confdefs.h. */
14681_ACEOF
14682cat confdefs.h >>conftest.$ac_ext
14683cat >>conftest.$ac_ext <<_ACEOF
14684/* end confdefs.h. */
14685#include <$ac_header>
14686_ACEOF
14687if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } >/dev/null; then
14695 if test -s conftest.err; then
14696 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14698 else
14699 ac_cpp_err=
14700 fi
14701else
14702 ac_cpp_err=yes
14703fi
14704if test -z "$ac_cpp_err"; then
14705 ac_header_preproc=yes
14706else
14707 echo "$as_me: failed program was:" >&5
14708sed 's/^/| /' conftest.$ac_ext >&5
14709
14710 ac_header_preproc=no
14711fi
14712rm -f conftest.err conftest.$ac_ext
14713echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14714echo "${ECHO_T}$ac_header_preproc" >&6
14715
14716# So? What about this header?
ac1cb8d3
VS
14717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14718 yes:no: )
a848cd7e
SC
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14720echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14722echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14723 ac_header_preproc=yes
a848cd7e 14724 ;;
ac1cb8d3 14725 no:yes:* )
a848cd7e
SC
14726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14727echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14729echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14731echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14733echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14737echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14738 (
14739 cat <<\_ASBOX
ac1cb8d3
VS
14740## ----------------------------------------- ##
14741## Report this to wx-dev@lists.wxwidgets.org ##
14742## ----------------------------------------- ##
a848cd7e
SC
14743_ASBOX
14744 ) |
14745 sed "s/^/$as_me: WARNING: /" >&2
14746 ;;
14747esac
14748echo "$as_me:$LINENO: checking for $ac_header" >&5
14749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14750if eval "test \"\${$as_ac_Header+set}\" = set"; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752else
ac1cb8d3 14753 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14754fi
14755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14756echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14757
14758fi
14759if test `eval echo '${'$as_ac_Header'}'` = yes; then
14760 cat >>confdefs.h <<_ACEOF
14761#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14762_ACEOF
14763
14764fi
14765
14766done
14767
14768
14769if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14770
14771for ac_func in fnmatch
14772do
14773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14774echo "$as_me:$LINENO: checking for $ac_func" >&5
14775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14776if eval "test \"\${$as_ac_var+set}\" = set"; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14778else
14779 cat >conftest.$ac_ext <<_ACEOF
14780/* confdefs.h. */
14781_ACEOF
14782cat confdefs.h >>conftest.$ac_ext
14783cat >>conftest.$ac_ext <<_ACEOF
14784/* end confdefs.h. */
ac1cb8d3
VS
14785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14787#define $ac_func innocuous_$ac_func
14788
a848cd7e
SC
14789/* System header to define __stub macros and hopefully few prototypes,
14790 which can conflict with char $ac_func (); below.
14791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14792 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14793
a848cd7e
SC
14794#ifdef __STDC__
14795# include <limits.h>
14796#else
14797# include <assert.h>
14798#endif
ac1cb8d3
VS
14799
14800#undef $ac_func
14801
a848cd7e
SC
14802/* Override any gcc2 internal prototype to avoid an error. */
14803#ifdef __cplusplus
14804extern "C"
14805{
14806#endif
14807/* We use char because int might match the return type of a gcc2
14808 builtin and then its argument prototype would still apply. */
14809char $ac_func ();
14810/* The GNU C library defines this for functions which it implements
14811 to always fail with ENOSYS. Some functions are actually named
14812 something starting with __ and the normal name is an alias. */
14813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14814choke me
14815#else
14816char (*f) () = $ac_func;
14817#endif
14818#ifdef __cplusplus
14819}
14820#endif
14821
14822int
14823main ()
14824{
14825return f != $ac_func;
14826 ;
14827 return 0;
14828}
14829_ACEOF
14830rm -f conftest.$ac_objext conftest$ac_exeext
14831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14832 (eval $ac_link) 2>conftest.er1
a848cd7e 14833 ac_status=$?
ac1cb8d3
VS
14834 grep -v '^ *+' conftest.er1 >conftest.err
14835 rm -f conftest.er1
14836 cat conftest.err >&5
a848cd7e
SC
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
dfe0c803
JS
14839 { ac_try='test -z "$ac_c_werror_flag"
14840 || test ! -s conftest.err'
ac1cb8d3
VS
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 eval "$as_ac_var=yes"
14853else
14854 echo "$as_me: failed program was:" >&5
14855sed 's/^/| /' conftest.$ac_ext >&5
14856
14857eval "$as_ac_var=no"
14858fi
ac1cb8d3
VS
14859rm -f conftest.err conftest.$ac_objext \
14860 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14861fi
14862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14863echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14864if test `eval echo '${'$as_ac_var'}'` = yes; then
14865 cat >>confdefs.h <<_ACEOF
14866#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14867_ACEOF
14868
14869fi
14870done
14871
14872fi
14873
14874
14875for ac_header in langinfo.h
14876do
14877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14878if eval "test \"\${$as_ac_Header+set}\" = set"; then
14879 echo "$as_me:$LINENO: checking for $ac_header" >&5
14880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14881if eval "test \"\${$as_ac_Header+set}\" = set"; then
14882 echo $ECHO_N "(cached) $ECHO_C" >&6
14883fi
14884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14886else
14887 # Is the header compilable?
14888echo "$as_me:$LINENO: checking $ac_header usability" >&5
14889echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14890cat >conftest.$ac_ext <<_ACEOF
14891/* confdefs.h. */
14892_ACEOF
14893cat confdefs.h >>conftest.$ac_ext
14894cat >>conftest.$ac_ext <<_ACEOF
14895/* end confdefs.h. */
14896$ac_includes_default
14897#include <$ac_header>
14898_ACEOF
14899rm -f conftest.$ac_objext
14900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14901 (eval $ac_compile) 2>conftest.er1
a848cd7e 14902 ac_status=$?
ac1cb8d3
VS
14903 grep -v '^ *+' conftest.er1 >conftest.err
14904 rm -f conftest.er1
14905 cat conftest.err >&5
a848cd7e
SC
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); } &&
dfe0c803
JS
14908 { ac_try='test -z "$ac_c_werror_flag"
14909 || test ! -s conftest.err'
ac1cb8d3
VS
14910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14912 ac_status=$?
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; } &&
14915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 ac_header_compiler=yes
14922else
14923 echo "$as_me: failed program was:" >&5
14924sed 's/^/| /' conftest.$ac_ext >&5
14925
14926ac_header_compiler=no
14927fi
ac1cb8d3 14928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14929echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14930echo "${ECHO_T}$ac_header_compiler" >&6
14931
14932# Is the header present?
14933echo "$as_me:$LINENO: checking $ac_header presence" >&5
14934echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14935cat >conftest.$ac_ext <<_ACEOF
14936/* confdefs.h. */
14937_ACEOF
14938cat confdefs.h >>conftest.$ac_ext
14939cat >>conftest.$ac_ext <<_ACEOF
14940/* end confdefs.h. */
14941#include <$ac_header>
14942_ACEOF
14943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14945 ac_status=$?
14946 grep -v '^ *+' conftest.er1 >conftest.err
14947 rm -f conftest.er1
14948 cat conftest.err >&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } >/dev/null; then
14951 if test -s conftest.err; then
14952 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14954 else
14955 ac_cpp_err=
14956 fi
14957else
14958 ac_cpp_err=yes
14959fi
14960if test -z "$ac_cpp_err"; then
14961 ac_header_preproc=yes
14962else
14963 echo "$as_me: failed program was:" >&5
14964sed 's/^/| /' conftest.$ac_ext >&5
14965
14966 ac_header_preproc=no
14967fi
14968rm -f conftest.err conftest.$ac_ext
14969echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14970echo "${ECHO_T}$ac_header_preproc" >&6
14971
14972# So? What about this header?
ac1cb8d3
VS
14973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14974 yes:no: )
a848cd7e
SC
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14976echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14978echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14979 ac_header_preproc=yes
a848cd7e 14980 ;;
ac1cb8d3 14981 no:yes:* )
a848cd7e
SC
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14983echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14985echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14987echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14989echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14991echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14993echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14994 (
14995 cat <<\_ASBOX
ac1cb8d3
VS
14996## ----------------------------------------- ##
14997## Report this to wx-dev@lists.wxwidgets.org ##
14998## ----------------------------------------- ##
a848cd7e
SC
14999_ASBOX
15000 ) |
15001 sed "s/^/$as_me: WARNING: /" >&2
15002 ;;
15003esac
15004echo "$as_me:$LINENO: checking for $ac_header" >&5
15005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15006if eval "test \"\${$as_ac_Header+set}\" = set"; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15008else
ac1cb8d3 15009 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15010fi
15011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15013
15014fi
15015if test `eval echo '${'$as_ac_Header'}'` = yes; then
15016 cat >>confdefs.h <<_ACEOF
15017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15018_ACEOF
15019
15020fi
15021
15022done
15023
15024
15025case "${host}" in
15026 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15027 if test $ac_cv_header_langinfo_h = "yes" \
15028 -a \( "$wx_cv_gccversion" = "EMX2" \
15029 -o "$wx_cv_gccversion" = "EMX3" \
15030 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15031 LIBS="$LIBS -lintl"
15032 fi
15033 ;;
15034esac
15035
15036if test "$wxUSE_GUI" = "yes"; then
15037 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15038
15039for ac_header in X11/Xlib.h
15040do
15041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15042if eval "test \"\${$as_ac_Header+set}\" = set"; then
15043 echo "$as_me:$LINENO: checking for $ac_header" >&5
15044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15045if eval "test \"\${$as_ac_Header+set}\" = set"; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15047fi
15048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15050else
15051 # Is the header compilable?
15052echo "$as_me:$LINENO: checking $ac_header usability" >&5
15053echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15054cat >conftest.$ac_ext <<_ACEOF
15055/* confdefs.h. */
15056_ACEOF
15057cat confdefs.h >>conftest.$ac_ext
15058cat >>conftest.$ac_ext <<_ACEOF
15059/* end confdefs.h. */
15060$ac_includes_default
15061#include <$ac_header>
15062_ACEOF
15063rm -f conftest.$ac_objext
15064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15065 (eval $ac_compile) 2>conftest.er1
a848cd7e 15066 ac_status=$?
ac1cb8d3
VS
15067 grep -v '^ *+' conftest.er1 >conftest.err
15068 rm -f conftest.er1
15069 cat conftest.err >&5
a848cd7e
SC
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
dfe0c803
JS
15072 { ac_try='test -z "$ac_c_werror_flag"
15073 || test ! -s conftest.err'
ac1cb8d3
VS
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 ac_header_compiler=yes
15086else
15087 echo "$as_me: failed program was:" >&5
15088sed 's/^/| /' conftest.$ac_ext >&5
15089
15090ac_header_compiler=no
15091fi
ac1cb8d3 15092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15093echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15094echo "${ECHO_T}$ac_header_compiler" >&6
15095
15096# Is the header present?
15097echo "$as_me:$LINENO: checking $ac_header presence" >&5
15098echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15099cat >conftest.$ac_ext <<_ACEOF
15100/* confdefs.h. */
15101_ACEOF
15102cat confdefs.h >>conftest.$ac_ext
15103cat >>conftest.$ac_ext <<_ACEOF
15104/* end confdefs.h. */
15105#include <$ac_header>
15106_ACEOF
15107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15109 ac_status=$?
15110 grep -v '^ *+' conftest.er1 >conftest.err
15111 rm -f conftest.er1
15112 cat conftest.err >&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } >/dev/null; then
15115 if test -s conftest.err; then
15116 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15118 else
15119 ac_cpp_err=
15120 fi
15121else
15122 ac_cpp_err=yes
15123fi
15124if test -z "$ac_cpp_err"; then
15125 ac_header_preproc=yes
15126else
15127 echo "$as_me: failed program was:" >&5
15128sed 's/^/| /' conftest.$ac_ext >&5
15129
15130 ac_header_preproc=no
15131fi
15132rm -f conftest.err conftest.$ac_ext
15133echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15134echo "${ECHO_T}$ac_header_preproc" >&6
15135
15136# So? What about this header?
ac1cb8d3
VS
15137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15138 yes:no: )
a848cd7e
SC
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15140echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15142echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15143 ac_header_preproc=yes
a848cd7e 15144 ;;
ac1cb8d3 15145 no:yes:* )
a848cd7e
SC
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15147echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15149echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15151echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15153echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15157echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15158 (
15159 cat <<\_ASBOX
ac1cb8d3
VS
15160## ----------------------------------------- ##
15161## Report this to wx-dev@lists.wxwidgets.org ##
15162## ----------------------------------------- ##
a848cd7e
SC
15163_ASBOX
15164 ) |
15165 sed "s/^/$as_me: WARNING: /" >&2
15166 ;;
15167esac
15168echo "$as_me:$LINENO: checking for $ac_header" >&5
15169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15170if eval "test \"\${$as_ac_Header+set}\" = set"; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15172else
ac1cb8d3 15173 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15174fi
15175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15177
15178fi
15179if test `eval echo '${'$as_ac_Header'}'` = yes; then
15180 cat >>confdefs.h <<_ACEOF
15181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15182_ACEOF
15183
15184fi
15185
15186done
15187
15188
15189for ac_header in X11/XKBlib.h
15190do
15191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15192echo "$as_me:$LINENO: checking for $ac_header" >&5
15193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15194if eval "test \"\${$as_ac_Header+set}\" = set"; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196else
15197 cat >conftest.$ac_ext <<_ACEOF
15198/* confdefs.h. */
15199_ACEOF
15200cat confdefs.h >>conftest.$ac_ext
15201cat >>conftest.$ac_ext <<_ACEOF
15202/* end confdefs.h. */
15203
15204 #if HAVE_X11_XLIB_H
15205 #include <X11/Xlib.h>
15206 #endif
15207
15208
15209#include <$ac_header>
15210_ACEOF
15211rm -f conftest.$ac_objext
15212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15213 (eval $ac_compile) 2>conftest.er1
a848cd7e 15214 ac_status=$?
ac1cb8d3
VS
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
a848cd7e
SC
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
dfe0c803
JS
15220 { ac_try='test -z "$ac_c_werror_flag"
15221 || test ! -s conftest.err'
ac1cb8d3
VS
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; } &&
15227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 eval "$as_ac_Header=yes"
15234else
15235 echo "$as_me: failed program was:" >&5
15236sed 's/^/| /' conftest.$ac_ext >&5
15237
15238eval "$as_ac_Header=no"
15239fi
ac1cb8d3 15240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15241fi
15242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15244if test `eval echo '${'$as_ac_Header'}'` = yes; then
15245 cat >>confdefs.h <<_ACEOF
15246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15247_ACEOF
15248
15249fi
15250
15251done
15252
15253 fi
15254fi
15255
15256
15257echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15258echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15259if test "${ac_cv_c_const+set}" = set; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15261else
15262 cat >conftest.$ac_ext <<_ACEOF
15263/* confdefs.h. */
15264_ACEOF
15265cat confdefs.h >>conftest.$ac_ext
15266cat >>conftest.$ac_ext <<_ACEOF
15267/* end confdefs.h. */
15268
15269int
15270main ()
15271{
15272/* FIXME: Include the comments suggested by Paul. */
15273#ifndef __cplusplus
15274 /* Ultrix mips cc rejects this. */
15275 typedef int charset[2];
15276 const charset x;
15277 /* SunOS 4.1.1 cc rejects this. */
15278 char const *const *ccp;
15279 char **p;
15280 /* NEC SVR4.0.2 mips cc rejects this. */
15281 struct point {int x, y;};
15282 static struct point const zero = {0,0};
15283 /* AIX XL C 1.02.0.0 rejects this.
15284 It does not let you subtract one const X* pointer from another in
15285 an arm of an if-expression whose if-part is not a constant
15286 expression */
15287 const char *g = "string";
15288 ccp = &g + (g ? g-g : 0);
15289 /* HPUX 7.0 cc rejects these. */
15290 ++ccp;
15291 p = (char**) ccp;
15292 ccp = (char const *const *) p;
15293 { /* SCO 3.2v4 cc rejects this. */
15294 char *t;
15295 char const *s = 0 ? (char *) 0 : (char const *) 0;
15296
15297 *t++ = 0;
15298 }
15299 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15300 int x[] = {25, 17};
15301 const int *foo = &x[0];
15302 ++foo;
15303 }
15304 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15305 typedef const int *iptr;
15306 iptr p = 0;
15307 ++p;
15308 }
15309 { /* AIX XL C 1.02.0.0 rejects this saying
15310 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15311 struct s { int j; const int *ap[3]; };
15312 struct s *b; b->j = 5;
15313 }
15314 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15315 const int foo = 10;
15316 }
15317#endif
15318
15319 ;
15320 return 0;
15321}
15322_ACEOF
15323rm -f conftest.$ac_objext
15324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15325 (eval $ac_compile) 2>conftest.er1
a848cd7e 15326 ac_status=$?
ac1cb8d3
VS
15327 grep -v '^ *+' conftest.er1 >conftest.err
15328 rm -f conftest.er1
15329 cat conftest.err >&5
a848cd7e
SC
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
dfe0c803
JS
15332 { ac_try='test -z "$ac_c_werror_flag"
15333 || test ! -s conftest.err'
ac1cb8d3
VS
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; } &&
15339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 ac_cv_c_const=yes
15346else
15347 echo "$as_me: failed program was:" >&5
15348sed 's/^/| /' conftest.$ac_ext >&5
15349
15350ac_cv_c_const=no
15351fi
ac1cb8d3 15352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15353fi
15354echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15355echo "${ECHO_T}$ac_cv_c_const" >&6
15356if test $ac_cv_c_const = no; then
15357
15358cat >>confdefs.h <<\_ACEOF
15359#define const
15360_ACEOF
15361
15362fi
15363
15364echo "$as_me:$LINENO: checking for inline" >&5
15365echo $ECHO_N "checking for inline... $ECHO_C" >&6
15366if test "${ac_cv_c_inline+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368else
15369 ac_cv_c_inline=no
15370for ac_kw in inline __inline__ __inline; do
15371 cat >conftest.$ac_ext <<_ACEOF
15372/* confdefs.h. */
15373_ACEOF
15374cat confdefs.h >>conftest.$ac_ext
15375cat >>conftest.$ac_ext <<_ACEOF
15376/* end confdefs.h. */
15377#ifndef __cplusplus
15378typedef int foo_t;
15379static $ac_kw foo_t static_foo () {return 0; }
15380$ac_kw foo_t foo () {return 0; }
15381#endif
15382
15383_ACEOF
15384rm -f conftest.$ac_objext
15385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15386 (eval $ac_compile) 2>conftest.er1
a848cd7e 15387 ac_status=$?
ac1cb8d3
VS
15388 grep -v '^ *+' conftest.er1 >conftest.err
15389 rm -f conftest.er1
15390 cat conftest.err >&5
a848cd7e
SC
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
dfe0c803
JS
15393 { ac_try='test -z "$ac_c_werror_flag"
15394 || test ! -s conftest.err'
ac1cb8d3
VS
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 ac_cv_c_inline=$ac_kw; break
15407else
15408 echo "$as_me: failed program was:" >&5
15409sed 's/^/| /' conftest.$ac_ext >&5
15410
15411fi
ac1cb8d3 15412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15413done
15414
15415fi
15416echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15417echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15418
15419
a848cd7e
SC
15420case $ac_cv_c_inline in
15421 inline | yes) ;;
ac1cb8d3
VS
15422 *)
15423 case $ac_cv_c_inline in
15424 no) ac_val=;;
15425 *) ac_val=$ac_cv_c_inline;;
15426 esac
15427 cat >>confdefs.h <<_ACEOF
15428#ifndef __cplusplus
15429#define inline $ac_val
15430#endif
de59c161 15431_ACEOF
ac1cb8d3 15432 ;;
a848cd7e
SC
15433esac
15434
15435
15436echo "$as_me:$LINENO: checking for char" >&5
15437echo $ECHO_N "checking for char... $ECHO_C" >&6
15438if test "${ac_cv_type_char+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15440else
15441 cat >conftest.$ac_ext <<_ACEOF
15442/* confdefs.h. */
15443_ACEOF
15444cat confdefs.h >>conftest.$ac_ext
15445cat >>conftest.$ac_ext <<_ACEOF
15446/* end confdefs.h. */
15447$ac_includes_default
15448int
15449main ()
15450{
15451if ((char *) 0)
15452 return 0;
15453if (sizeof (char))
15454 return 0;
15455 ;
15456 return 0;
15457}
15458_ACEOF
15459rm -f conftest.$ac_objext
15460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15461 (eval $ac_compile) 2>conftest.er1
a848cd7e 15462 ac_status=$?
ac1cb8d3
VS
15463 grep -v '^ *+' conftest.er1 >conftest.err
15464 rm -f conftest.er1
15465 cat conftest.err >&5
a848cd7e
SC
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
dfe0c803
JS
15468 { ac_try='test -z "$ac_c_werror_flag"
15469 || test ! -s conftest.err'
ac1cb8d3
VS
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_cv_type_char=yes
15482else
15483 echo "$as_me: failed program was:" >&5
15484sed 's/^/| /' conftest.$ac_ext >&5
15485
15486ac_cv_type_char=no
15487fi
ac1cb8d3 15488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15489fi
15490echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15491echo "${ECHO_T}$ac_cv_type_char" >&6
15492
15493echo "$as_me:$LINENO: checking size of char" >&5
15494echo $ECHO_N "checking size of char... $ECHO_C" >&6
15495if test "${ac_cv_sizeof_char+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15497else
15498 if test "$ac_cv_type_char" = yes; then
15499 # The cast to unsigned long works around a bug in the HP C Compiler
15500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15502 # This bug is HP SR number 8606223364.
15503 if test "$cross_compiling" = yes; then
15504 # Depending upon the size, compute the lo and hi bounds.
15505cat >conftest.$ac_ext <<_ACEOF
15506/* confdefs.h. */
15507_ACEOF
15508cat confdefs.h >>conftest.$ac_ext
15509cat >>conftest.$ac_ext <<_ACEOF
15510/* end confdefs.h. */
15511$ac_includes_default
15512int
15513main ()
15514{
15515static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15516test_array [0] = 0
15517
15518 ;
15519 return 0;
15520}
15521_ACEOF
15522rm -f conftest.$ac_objext
15523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15524 (eval $ac_compile) 2>conftest.er1
a848cd7e 15525 ac_status=$?
ac1cb8d3
VS
15526 grep -v '^ *+' conftest.er1 >conftest.err
15527 rm -f conftest.er1
15528 cat conftest.err >&5
a848cd7e
SC
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
dfe0c803
JS
15531 { ac_try='test -z "$ac_c_werror_flag"
15532 || test ! -s conftest.err'
ac1cb8d3
VS
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15544 ac_lo=0 ac_mid=0
15545 while :; do
15546 cat >conftest.$ac_ext <<_ACEOF
15547/* confdefs.h. */
15548_ACEOF
15549cat confdefs.h >>conftest.$ac_ext
15550cat >>conftest.$ac_ext <<_ACEOF
15551/* end confdefs.h. */
15552$ac_includes_default
15553int
15554main ()
15555{
15556static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15557test_array [0] = 0
15558
15559 ;
15560 return 0;
15561}
15562_ACEOF
15563rm -f conftest.$ac_objext
15564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15565 (eval $ac_compile) 2>conftest.er1
a848cd7e 15566 ac_status=$?
ac1cb8d3
VS
15567 grep -v '^ *+' conftest.er1 >conftest.err
15568 rm -f conftest.er1
15569 cat conftest.err >&5
a848cd7e
SC
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } &&
dfe0c803
JS
15572 { ac_try='test -z "$ac_c_werror_flag"
15573 || test ! -s conftest.err'
ac1cb8d3
VS
15574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575 (eval $ac_try) 2>&5
15576 ac_status=$?
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; } &&
15579 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; }; then
15585 ac_hi=$ac_mid; break
15586else
15587 echo "$as_me: failed program was:" >&5
15588sed 's/^/| /' conftest.$ac_ext >&5
15589
15590ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15591 if test $ac_lo -le $ac_mid; then
15592 ac_lo= ac_hi=
15593 break
15594 fi
15595 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15596fi
ac1cb8d3 15597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15598 done
15599else
15600 echo "$as_me: failed program was:" >&5
15601sed 's/^/| /' conftest.$ac_ext >&5
15602
15603cat >conftest.$ac_ext <<_ACEOF
15604/* confdefs.h. */
15605_ACEOF
15606cat confdefs.h >>conftest.$ac_ext
15607cat >>conftest.$ac_ext <<_ACEOF
15608/* end confdefs.h. */
15609$ac_includes_default
15610int
15611main ()
15612{
15613static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15614test_array [0] = 0
15615
15616 ;
15617 return 0;
15618}
15619_ACEOF
15620rm -f conftest.$ac_objext
15621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15622 (eval $ac_compile) 2>conftest.er1
a848cd7e 15623 ac_status=$?
ac1cb8d3
VS
15624 grep -v '^ *+' conftest.er1 >conftest.err
15625 rm -f conftest.er1
15626 cat conftest.err >&5
a848cd7e
SC
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } &&
dfe0c803
JS
15629 { ac_try='test -z "$ac_c_werror_flag"
15630 || test ! -s conftest.err'
ac1cb8d3
VS
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; } &&
15636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15639 ac_status=$?
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15642 ac_hi=-1 ac_mid=-1
15643 while :; do
15644 cat >conftest.$ac_ext <<_ACEOF
15645/* confdefs.h. */
15646_ACEOF
15647cat confdefs.h >>conftest.$ac_ext
15648cat >>conftest.$ac_ext <<_ACEOF
15649/* end confdefs.h. */
15650$ac_includes_default
15651int
15652main ()
15653{
15654static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15655test_array [0] = 0
15656
15657 ;
15658 return 0;
15659}
15660_ACEOF
15661rm -f conftest.$ac_objext
15662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15663 (eval $ac_compile) 2>conftest.er1
a848cd7e 15664 ac_status=$?
ac1cb8d3
VS
15665 grep -v '^ *+' conftest.er1 >conftest.err
15666 rm -f conftest.er1
15667 cat conftest.err >&5
a848cd7e
SC
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
dfe0c803
JS
15670 { ac_try='test -z "$ac_c_werror_flag"
15671 || test ! -s conftest.err'
ac1cb8d3
VS
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; } &&
15677 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15680 ac_status=$?
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 ac_lo=$ac_mid; break
15684else
15685 echo "$as_me: failed program was:" >&5
15686sed 's/^/| /' conftest.$ac_ext >&5
15687
15688ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15689 if test $ac_mid -le $ac_hi; then
15690 ac_lo= ac_hi=
15691 break
15692 fi
15693 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15694fi
ac1cb8d3 15695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15696 done
15697else
15698 echo "$as_me: failed program was:" >&5
15699sed 's/^/| /' conftest.$ac_ext >&5
15700
15701ac_lo= ac_hi=
15702fi
ac1cb8d3 15703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15704fi
ac1cb8d3 15705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15706# Binary search between lo and hi bounds.
15707while test "x$ac_lo" != "x$ac_hi"; do
15708 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15709 cat >conftest.$ac_ext <<_ACEOF
15710/* confdefs.h. */
15711_ACEOF
15712cat confdefs.h >>conftest.$ac_ext
15713cat >>conftest.$ac_ext <<_ACEOF
15714/* end confdefs.h. */
15715$ac_includes_default
15716int
15717main ()
15718{
15719static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15720test_array [0] = 0
15721
15722 ;
15723 return 0;
15724}
15725_ACEOF
15726rm -f conftest.$ac_objext
15727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15728 (eval $ac_compile) 2>conftest.er1
a848cd7e 15729 ac_status=$?
ac1cb8d3
VS
15730 grep -v '^ *+' conftest.er1 >conftest.err
15731 rm -f conftest.er1
15732 cat conftest.err >&5
a848cd7e
SC
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
dfe0c803
JS
15735 { ac_try='test -z "$ac_c_werror_flag"
15736 || test ! -s conftest.err'
ac1cb8d3
VS
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; } &&
15742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_hi=$ac_mid
15749else
15750 echo "$as_me: failed program was:" >&5
15751sed 's/^/| /' conftest.$ac_ext >&5
15752
15753ac_lo=`expr '(' $ac_mid ')' + 1`
15754fi
ac1cb8d3 15755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15756done
15757case $ac_lo in
15758?*) ac_cv_sizeof_char=$ac_lo;;
15759'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15760See \`config.log' for more details." >&5
15761echo "$as_me: error: cannot compute sizeof (char), 77
15762See \`config.log' for more details." >&2;}
15763 { (exit 1); exit 1; }; } ;;
15764esac
15765else
15766 if test "$cross_compiling" = yes; then
dfe0c803
JS
15767 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15768See \`config.log' for more details." >&5
15769echo "$as_me: error: cannot run test program while cross compiling
15770See \`config.log' for more details." >&2;}
a848cd7e
SC
15771 { (exit 1); exit 1; }; }
15772else
15773 cat >conftest.$ac_ext <<_ACEOF
15774/* confdefs.h. */
15775_ACEOF
15776cat confdefs.h >>conftest.$ac_ext
15777cat >>conftest.$ac_ext <<_ACEOF
15778/* end confdefs.h. */
15779$ac_includes_default
15780long longval () { return (long) (sizeof (char)); }
15781unsigned long ulongval () { return (long) (sizeof (char)); }
15782#include <stdio.h>
15783#include <stdlib.h>
15784int
15785main ()
15786{
15787
15788 FILE *f = fopen ("conftest.val", "w");
15789 if (! f)
15790 exit (1);
15791 if (((long) (sizeof (char))) < 0)
15792 {
15793 long i = longval ();
15794 if (i != ((long) (sizeof (char))))
15795 exit (1);
15796 fprintf (f, "%ld\n", i);
15797 }
15798 else
15799 {
15800 unsigned long i = ulongval ();
15801 if (i != ((long) (sizeof (char))))
15802 exit (1);
15803 fprintf (f, "%lu\n", i);
15804 }
15805 exit (ferror (f) || fclose (f) != 0);
15806
15807 ;
15808 return 0;
15809}
15810_ACEOF
15811rm -f conftest$ac_exeext
15812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15813 (eval $ac_link) 2>&5
15814 ac_status=$?
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15822 ac_cv_sizeof_char=`cat conftest.val`
15823else
15824 echo "$as_me: program exited with status $ac_status" >&5
15825echo "$as_me: failed program was:" >&5
15826sed 's/^/| /' conftest.$ac_ext >&5
15827
15828( exit $ac_status )
15829{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15830See \`config.log' for more details." >&5
15831echo "$as_me: error: cannot compute sizeof (char), 77
15832See \`config.log' for more details." >&2;}
15833 { (exit 1); exit 1; }; }
15834fi
ac1cb8d3 15835rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15836fi
15837fi
15838rm -f conftest.val
15839else
15840 ac_cv_sizeof_char=0
15841fi
15842fi
15843echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15844echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15845cat >>confdefs.h <<_ACEOF
15846#define SIZEOF_CHAR $ac_cv_sizeof_char
15847_ACEOF
15848
15849
15850echo "$as_me:$LINENO: checking for short" >&5
15851echo $ECHO_N "checking for short... $ECHO_C" >&6
15852if test "${ac_cv_type_short+set}" = set; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15854else
15855 cat >conftest.$ac_ext <<_ACEOF
15856/* confdefs.h. */
15857_ACEOF
15858cat confdefs.h >>conftest.$ac_ext
15859cat >>conftest.$ac_ext <<_ACEOF
15860/* end confdefs.h. */
15861$ac_includes_default
15862int
15863main ()
15864{
15865if ((short *) 0)
15866 return 0;
15867if (sizeof (short))
15868 return 0;
15869 ;
15870 return 0;
15871}
15872_ACEOF
15873rm -f conftest.$ac_objext
15874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15875 (eval $ac_compile) 2>conftest.er1
a848cd7e 15876 ac_status=$?
ac1cb8d3
VS
15877 grep -v '^ *+' conftest.er1 >conftest.err
15878 rm -f conftest.er1
15879 cat conftest.err >&5
a848cd7e
SC
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } &&
dfe0c803
JS
15882 { ac_try='test -z "$ac_c_werror_flag"
15883 || test ! -s conftest.err'
ac1cb8d3
VS
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_cv_type_short=yes
15896else
15897 echo "$as_me: failed program was:" >&5
15898sed 's/^/| /' conftest.$ac_ext >&5
15899
15900ac_cv_type_short=no
15901fi
ac1cb8d3 15902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15903fi
15904echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15905echo "${ECHO_T}$ac_cv_type_short" >&6
15906
15907echo "$as_me:$LINENO: checking size of short" >&5
15908echo $ECHO_N "checking size of short... $ECHO_C" >&6
15909if test "${ac_cv_sizeof_short+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911else
15912 if test "$ac_cv_type_short" = yes; then
15913 # The cast to unsigned long works around a bug in the HP C Compiler
15914 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15915 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15916 # This bug is HP SR number 8606223364.
15917 if test "$cross_compiling" = yes; then
15918 # Depending upon the size, compute the lo and hi bounds.
15919cat >conftest.$ac_ext <<_ACEOF
15920/* confdefs.h. */
15921_ACEOF
15922cat confdefs.h >>conftest.$ac_ext
15923cat >>conftest.$ac_ext <<_ACEOF
15924/* end confdefs.h. */
15925$ac_includes_default
15926int
15927main ()
15928{
15929static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15930test_array [0] = 0
15931
15932 ;
15933 return 0;
15934}
15935_ACEOF
15936rm -f conftest.$ac_objext
15937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15938 (eval $ac_compile) 2>conftest.er1
a848cd7e 15939 ac_status=$?
ac1cb8d3
VS
15940 grep -v '^ *+' conftest.er1 >conftest.err
15941 rm -f conftest.er1
15942 cat conftest.err >&5
a848cd7e
SC
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); } &&
dfe0c803
JS
15945 { ac_try='test -z "$ac_c_werror_flag"
15946 || test ! -s conftest.err'
ac1cb8d3
VS
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 ac_lo=0 ac_mid=0
15959 while :; do
15960 cat >conftest.$ac_ext <<_ACEOF
15961/* confdefs.h. */
15962_ACEOF
15963cat confdefs.h >>conftest.$ac_ext
15964cat >>conftest.$ac_ext <<_ACEOF
15965/* end confdefs.h. */
15966$ac_includes_default
15967int
15968main ()
15969{
15970static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15971test_array [0] = 0
15972
15973 ;
15974 return 0;
15975}
15976_ACEOF
15977rm -f conftest.$ac_objext
15978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15979 (eval $ac_compile) 2>conftest.er1
a848cd7e 15980 ac_status=$?
ac1cb8d3
VS
15981 grep -v '^ *+' conftest.er1 >conftest.err
15982 rm -f conftest.er1
15983 cat conftest.err >&5
a848cd7e
SC
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
dfe0c803
JS
15986 { ac_try='test -z "$ac_c_werror_flag"
15987 || test ! -s conftest.err'
ac1cb8d3
VS
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; } &&
15993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; }; then
15999 ac_hi=$ac_mid; break
16000else
16001 echo "$as_me: failed program was:" >&5
16002sed 's/^/| /' conftest.$ac_ext >&5
16003
16004ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16005 if test $ac_lo -le $ac_mid; then
16006 ac_lo= ac_hi=
16007 break
16008 fi
16009 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16010fi
ac1cb8d3 16011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16012 done
16013else
16014 echo "$as_me: failed program was:" >&5
16015sed 's/^/| /' conftest.$ac_ext >&5
16016
16017cat >conftest.$ac_ext <<_ACEOF
16018/* confdefs.h. */
16019_ACEOF
16020cat confdefs.h >>conftest.$ac_ext
16021cat >>conftest.$ac_ext <<_ACEOF
16022/* end confdefs.h. */
16023$ac_includes_default
16024int
16025main ()
16026{
16027static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16028test_array [0] = 0
16029
16030 ;
16031 return 0;
16032}
16033_ACEOF
16034rm -f conftest.$ac_objext
16035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16036 (eval $ac_compile) 2>conftest.er1
a848cd7e 16037 ac_status=$?
ac1cb8d3
VS
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
a848cd7e
SC
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } &&
dfe0c803
JS
16043 { ac_try='test -z "$ac_c_werror_flag"
16044 || test ! -s conftest.err'
ac1cb8d3
VS
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; } &&
16050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 ac_hi=-1 ac_mid=-1
16057 while :; do
16058 cat >conftest.$ac_ext <<_ACEOF
16059/* confdefs.h. */
16060_ACEOF
16061cat confdefs.h >>conftest.$ac_ext
16062cat >>conftest.$ac_ext <<_ACEOF
16063/* end confdefs.h. */
16064$ac_includes_default
16065int
16066main ()
16067{
16068static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16069test_array [0] = 0
16070
16071 ;
16072 return 0;
16073}
16074_ACEOF
16075rm -f conftest.$ac_objext
16076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16077 (eval $ac_compile) 2>conftest.er1
a848cd7e 16078 ac_status=$?
ac1cb8d3
VS
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
a848cd7e
SC
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } &&
dfe0c803
JS
16084 { ac_try='test -z "$ac_c_werror_flag"
16085 || 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_lo=$ac_mid; break
16098else
16099 echo "$as_me: failed program was:" >&5
16100sed 's/^/| /' conftest.$ac_ext >&5
16101
16102ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16103 if test $ac_mid -le $ac_hi; then
16104 ac_lo= ac_hi=
16105 break
16106 fi
16107 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16108fi
ac1cb8d3 16109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16110 done
16111else
16112 echo "$as_me: failed program was:" >&5
16113sed 's/^/| /' conftest.$ac_ext >&5
16114
16115ac_lo= ac_hi=
16116fi
ac1cb8d3 16117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16118fi
ac1cb8d3 16119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16120# Binary search between lo and hi bounds.
16121while test "x$ac_lo" != "x$ac_hi"; do
16122 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16123 cat >conftest.$ac_ext <<_ACEOF
16124/* confdefs.h. */
16125_ACEOF
16126cat confdefs.h >>conftest.$ac_ext
16127cat >>conftest.$ac_ext <<_ACEOF
16128/* end confdefs.h. */
16129$ac_includes_default
16130int
16131main ()
16132{
16133static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16134test_array [0] = 0
16135
16136 ;
16137 return 0;
16138}
16139_ACEOF
16140rm -f conftest.$ac_objext
16141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16142 (eval $ac_compile) 2>conftest.er1
a848cd7e 16143 ac_status=$?
ac1cb8d3
VS
16144 grep -v '^ *+' conftest.er1 >conftest.err
16145 rm -f conftest.er1
16146 cat conftest.err >&5
a848cd7e
SC
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
dfe0c803
JS
16149 { ac_try='test -z "$ac_c_werror_flag"
16150 || test ! -s conftest.err'
ac1cb8d3
VS
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ac_hi=$ac_mid
16163else
16164 echo "$as_me: failed program was:" >&5
16165sed 's/^/| /' conftest.$ac_ext >&5
16166
16167ac_lo=`expr '(' $ac_mid ')' + 1`
16168fi
ac1cb8d3 16169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16170done
16171case $ac_lo in
16172?*) ac_cv_sizeof_short=$ac_lo;;
16173'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16174See \`config.log' for more details." >&5
16175echo "$as_me: error: cannot compute sizeof (short), 77
16176See \`config.log' for more details." >&2;}
16177 { (exit 1); exit 1; }; } ;;
16178esac
16179else
16180 if test "$cross_compiling" = yes; then
dfe0c803
JS
16181 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16182See \`config.log' for more details." >&5
16183echo "$as_me: error: cannot run test program while cross compiling
16184See \`config.log' for more details." >&2;}
a848cd7e
SC
16185 { (exit 1); exit 1; }; }
16186else
16187 cat >conftest.$ac_ext <<_ACEOF
16188/* confdefs.h. */
16189_ACEOF
16190cat confdefs.h >>conftest.$ac_ext
16191cat >>conftest.$ac_ext <<_ACEOF
16192/* end confdefs.h. */
16193$ac_includes_default
16194long longval () { return (long) (sizeof (short)); }
16195unsigned long ulongval () { return (long) (sizeof (short)); }
16196#include <stdio.h>
16197#include <stdlib.h>
16198int
16199main ()
16200{
16201
16202 FILE *f = fopen ("conftest.val", "w");
16203 if (! f)
16204 exit (1);
16205 if (((long) (sizeof (short))) < 0)
16206 {
16207 long i = longval ();
16208 if (i != ((long) (sizeof (short))))
16209 exit (1);
16210 fprintf (f, "%ld\n", i);
16211 }
16212 else
16213 {
16214 unsigned long i = ulongval ();
16215 if (i != ((long) (sizeof (short))))
16216 exit (1);
16217 fprintf (f, "%lu\n", i);
16218 }
16219 exit (ferror (f) || fclose (f) != 0);
16220
16221 ;
16222 return 0;
16223}
16224_ACEOF
16225rm -f conftest$ac_exeext
16226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16227 (eval $ac_link) 2>&5
16228 ac_status=$?
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5
16233 ac_status=$?
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; }; then
16236 ac_cv_sizeof_short=`cat conftest.val`
16237else
16238 echo "$as_me: program exited with status $ac_status" >&5
16239echo "$as_me: failed program was:" >&5
16240sed 's/^/| /' conftest.$ac_ext >&5
16241
16242( exit $ac_status )
16243{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16244See \`config.log' for more details." >&5
16245echo "$as_me: error: cannot compute sizeof (short), 77
16246See \`config.log' for more details." >&2;}
16247 { (exit 1); exit 1; }; }
16248fi
ac1cb8d3 16249rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16250fi
16251fi
16252rm -f conftest.val
16253else
16254 ac_cv_sizeof_short=0
16255fi
16256fi
16257echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16258echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16259cat >>confdefs.h <<_ACEOF
16260#define SIZEOF_SHORT $ac_cv_sizeof_short
16261_ACEOF
16262
16263
16264echo "$as_me:$LINENO: checking for void *" >&5
16265echo $ECHO_N "checking for void *... $ECHO_C" >&6
16266if test "${ac_cv_type_void_p+set}" = set; then
16267 echo $ECHO_N "(cached) $ECHO_C" >&6
16268else
16269 cat >conftest.$ac_ext <<_ACEOF
16270/* confdefs.h. */
16271_ACEOF
16272cat confdefs.h >>conftest.$ac_ext
16273cat >>conftest.$ac_ext <<_ACEOF
16274/* end confdefs.h. */
16275$ac_includes_default
16276int
16277main ()
16278{
16279if ((void * *) 0)
16280 return 0;
16281if (sizeof (void *))
16282 return 0;
16283 ;
16284 return 0;
16285}
16286_ACEOF
16287rm -f conftest.$ac_objext
16288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16289 (eval $ac_compile) 2>conftest.er1
a848cd7e 16290 ac_status=$?
ac1cb8d3
VS
16291 grep -v '^ *+' conftest.er1 >conftest.err
16292 rm -f conftest.er1
16293 cat conftest.err >&5
a848cd7e
SC
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } &&
dfe0c803
JS
16296 { ac_try='test -z "$ac_c_werror_flag"
16297 || test ! -s conftest.err'
ac1cb8d3
VS
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16300 ac_status=$?
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; } &&
16303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; }; then
16309 ac_cv_type_void_p=yes
16310else
16311 echo "$as_me: failed program was:" >&5
16312sed 's/^/| /' conftest.$ac_ext >&5
16313
16314ac_cv_type_void_p=no
16315fi
ac1cb8d3 16316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16317fi
16318echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16319echo "${ECHO_T}$ac_cv_type_void_p" >&6
16320
16321echo "$as_me:$LINENO: checking size of void *" >&5
16322echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16323if test "${ac_cv_sizeof_void_p+set}" = set; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16325else
16326 if test "$ac_cv_type_void_p" = yes; then
16327 # The cast to unsigned long works around a bug in the HP C Compiler
16328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16330 # This bug is HP SR number 8606223364.
16331 if test "$cross_compiling" = yes; then
16332 # Depending upon the size, compute the lo and hi bounds.
16333cat >conftest.$ac_ext <<_ACEOF
16334/* confdefs.h. */
16335_ACEOF
16336cat confdefs.h >>conftest.$ac_ext
16337cat >>conftest.$ac_ext <<_ACEOF
16338/* end confdefs.h. */
16339$ac_includes_default
16340int
16341main ()
16342{
16343static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16344test_array [0] = 0
16345
16346 ;
16347 return 0;
16348}
16349_ACEOF
16350rm -f conftest.$ac_objext
16351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16352 (eval $ac_compile) 2>conftest.er1
a848cd7e 16353 ac_status=$?
ac1cb8d3
VS
16354 grep -v '^ *+' conftest.er1 >conftest.err
16355 rm -f conftest.er1
16356 cat conftest.err >&5
a848cd7e
SC
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
dfe0c803
JS
16359 { ac_try='test -z "$ac_c_werror_flag"
16360 || test ! -s conftest.err'
ac1cb8d3
VS
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; } &&
16366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 ac_lo=0 ac_mid=0
16373 while :; do
16374 cat >conftest.$ac_ext <<_ACEOF
16375/* confdefs.h. */
16376_ACEOF
16377cat confdefs.h >>conftest.$ac_ext
16378cat >>conftest.$ac_ext <<_ACEOF
16379/* end confdefs.h. */
16380$ac_includes_default
16381int
16382main ()
16383{
16384static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16385test_array [0] = 0
16386
16387 ;
16388 return 0;
16389}
16390_ACEOF
16391rm -f conftest.$ac_objext
16392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16393 (eval $ac_compile) 2>conftest.er1
a848cd7e 16394 ac_status=$?
ac1cb8d3
VS
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
a848cd7e
SC
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } &&
dfe0c803
JS
16400 { ac_try='test -z "$ac_c_werror_flag"
16401 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 ac_hi=$ac_mid; break
16414else
16415 echo "$as_me: failed program was:" >&5
16416sed 's/^/| /' conftest.$ac_ext >&5
16417
16418ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16419 if test $ac_lo -le $ac_mid; then
16420 ac_lo= ac_hi=
16421 break
16422 fi
16423 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16424fi
ac1cb8d3 16425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16426 done
16427else
16428 echo "$as_me: failed program was:" >&5
16429sed 's/^/| /' conftest.$ac_ext >&5
16430
16431cat >conftest.$ac_ext <<_ACEOF
16432/* confdefs.h. */
16433_ACEOF
16434cat confdefs.h >>conftest.$ac_ext
16435cat >>conftest.$ac_ext <<_ACEOF
16436/* end confdefs.h. */
16437$ac_includes_default
16438int
16439main ()
16440{
16441static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16442test_array [0] = 0
16443
16444 ;
16445 return 0;
16446}
16447_ACEOF
16448rm -f conftest.$ac_objext
16449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16450 (eval $ac_compile) 2>conftest.er1
a848cd7e 16451 ac_status=$?
ac1cb8d3
VS
16452 grep -v '^ *+' conftest.er1 >conftest.err
16453 rm -f conftest.er1
16454 cat conftest.err >&5
a848cd7e
SC
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } &&
dfe0c803
JS
16457 { ac_try='test -z "$ac_c_werror_flag"
16458 || test ! -s conftest.err'
ac1cb8d3
VS
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; }; then
16470 ac_hi=-1 ac_mid=-1
16471 while :; do
16472 cat >conftest.$ac_ext <<_ACEOF
16473/* confdefs.h. */
16474_ACEOF
16475cat confdefs.h >>conftest.$ac_ext
16476cat >>conftest.$ac_ext <<_ACEOF
16477/* end confdefs.h. */
16478$ac_includes_default
16479int
16480main ()
16481{
16482static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16483test_array [0] = 0
16484
16485 ;
16486 return 0;
16487}
16488_ACEOF
16489rm -f conftest.$ac_objext
16490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16491 (eval $ac_compile) 2>conftest.er1
a848cd7e 16492 ac_status=$?
ac1cb8d3
VS
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
a848cd7e
SC
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
dfe0c803
JS
16498 { ac_try='test -z "$ac_c_werror_flag"
16499 || test ! -s conftest.err'
ac1cb8d3
VS
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_lo=$ac_mid; break
16512else
16513 echo "$as_me: failed program was:" >&5
16514sed 's/^/| /' conftest.$ac_ext >&5
16515
16516ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16517 if test $ac_mid -le $ac_hi; then
16518 ac_lo= ac_hi=
16519 break
16520 fi
16521 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16522fi
ac1cb8d3 16523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16524 done
16525else
16526 echo "$as_me: failed program was:" >&5
16527sed 's/^/| /' conftest.$ac_ext >&5
16528
16529ac_lo= ac_hi=
16530fi
ac1cb8d3 16531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16532fi
ac1cb8d3 16533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16534# Binary search between lo and hi bounds.
16535while test "x$ac_lo" != "x$ac_hi"; do
16536 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16537 cat >conftest.$ac_ext <<_ACEOF
16538/* confdefs.h. */
16539_ACEOF
16540cat confdefs.h >>conftest.$ac_ext
16541cat >>conftest.$ac_ext <<_ACEOF
16542/* end confdefs.h. */
16543$ac_includes_default
16544int
16545main ()
16546{
16547static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16548test_array [0] = 0
16549
16550 ;
16551 return 0;
16552}
16553_ACEOF
16554rm -f conftest.$ac_objext
16555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16556 (eval $ac_compile) 2>conftest.er1
a848cd7e 16557 ac_status=$?
ac1cb8d3
VS
16558 grep -v '^ *+' conftest.er1 >conftest.err
16559 rm -f conftest.er1
16560 cat conftest.err >&5
a848cd7e
SC
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
dfe0c803
JS
16563 { ac_try='test -z "$ac_c_werror_flag"
16564 || test ! -s conftest.err'
ac1cb8d3
VS
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16567 ac_status=$?
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; } &&
16570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16573 ac_status=$?
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16576 ac_hi=$ac_mid
16577else
16578 echo "$as_me: failed program was:" >&5
16579sed 's/^/| /' conftest.$ac_ext >&5
16580
16581ac_lo=`expr '(' $ac_mid ')' + 1`
16582fi
ac1cb8d3 16583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16584done
16585case $ac_lo in
16586?*) ac_cv_sizeof_void_p=$ac_lo;;
16587'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16588See \`config.log' for more details." >&5
16589echo "$as_me: error: cannot compute sizeof (void *), 77
16590See \`config.log' for more details." >&2;}
16591 { (exit 1); exit 1; }; } ;;
16592esac
16593else
16594 if test "$cross_compiling" = yes; then
dfe0c803
JS
16595 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16596See \`config.log' for more details." >&5
16597echo "$as_me: error: cannot run test program while cross compiling
16598See \`config.log' for more details." >&2;}
a848cd7e
SC
16599 { (exit 1); exit 1; }; }
16600else
16601 cat >conftest.$ac_ext <<_ACEOF
16602/* confdefs.h. */
16603_ACEOF
16604cat confdefs.h >>conftest.$ac_ext
16605cat >>conftest.$ac_ext <<_ACEOF
16606/* end confdefs.h. */
16607$ac_includes_default
16608long longval () { return (long) (sizeof (void *)); }
16609unsigned long ulongval () { return (long) (sizeof (void *)); }
16610#include <stdio.h>
16611#include <stdlib.h>
16612int
16613main ()
16614{
16615
16616 FILE *f = fopen ("conftest.val", "w");
16617 if (! f)
16618 exit (1);
16619 if (((long) (sizeof (void *))) < 0)
16620 {
16621 long i = longval ();
16622 if (i != ((long) (sizeof (void *))))
16623 exit (1);
16624 fprintf (f, "%ld\n", i);
16625 }
16626 else
16627 {
16628 unsigned long i = ulongval ();
16629 if (i != ((long) (sizeof (void *))))
16630 exit (1);
16631 fprintf (f, "%lu\n", i);
16632 }
16633 exit (ferror (f) || fclose (f) != 0);
16634
16635 ;
16636 return 0;
16637}
16638_ACEOF
16639rm -f conftest$ac_exeext
16640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16641 (eval $ac_link) 2>&5
16642 ac_status=$?
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16646 (eval $ac_try) 2>&5
16647 ac_status=$?
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); }; }; then
16650 ac_cv_sizeof_void_p=`cat conftest.val`
16651else
16652 echo "$as_me: program exited with status $ac_status" >&5
16653echo "$as_me: failed program was:" >&5
16654sed 's/^/| /' conftest.$ac_ext >&5
16655
16656( exit $ac_status )
16657{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16658See \`config.log' for more details." >&5
16659echo "$as_me: error: cannot compute sizeof (void *), 77
16660See \`config.log' for more details." >&2;}
16661 { (exit 1); exit 1; }; }
16662fi
ac1cb8d3 16663rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16664fi
16665fi
16666rm -f conftest.val
16667else
16668 ac_cv_sizeof_void_p=0
16669fi
16670fi
16671echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16672echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16673cat >>confdefs.h <<_ACEOF
16674#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16675_ACEOF
16676
16677
16678echo "$as_me:$LINENO: checking for int" >&5
16679echo $ECHO_N "checking for int... $ECHO_C" >&6
16680if test "${ac_cv_type_int+set}" = set; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16682else
16683 cat >conftest.$ac_ext <<_ACEOF
16684/* confdefs.h. */
16685_ACEOF
16686cat confdefs.h >>conftest.$ac_ext
16687cat >>conftest.$ac_ext <<_ACEOF
16688/* end confdefs.h. */
16689$ac_includes_default
16690int
16691main ()
16692{
16693if ((int *) 0)
16694 return 0;
16695if (sizeof (int))
16696 return 0;
16697 ;
16698 return 0;
16699}
16700_ACEOF
16701rm -f conftest.$ac_objext
16702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16703 (eval $ac_compile) 2>conftest.er1
a848cd7e 16704 ac_status=$?
ac1cb8d3
VS
16705 grep -v '^ *+' conftest.er1 >conftest.err
16706 rm -f conftest.er1
16707 cat conftest.err >&5
a848cd7e
SC
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
dfe0c803
JS
16710 { ac_try='test -z "$ac_c_werror_flag"
16711 || test ! -s conftest.err'
ac1cb8d3
VS
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; } &&
16717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 ac_cv_type_int=yes
16724else
16725 echo "$as_me: failed program was:" >&5
16726sed 's/^/| /' conftest.$ac_ext >&5
16727
16728ac_cv_type_int=no
16729fi
ac1cb8d3 16730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16731fi
16732echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16733echo "${ECHO_T}$ac_cv_type_int" >&6
16734
16735echo "$as_me:$LINENO: checking size of int" >&5
16736echo $ECHO_N "checking size of int... $ECHO_C" >&6
16737if test "${ac_cv_sizeof_int+set}" = set; then
16738 echo $ECHO_N "(cached) $ECHO_C" >&6
16739else
16740 if test "$ac_cv_type_int" = yes; then
16741 # The cast to unsigned long works around a bug in the HP C Compiler
16742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16744 # This bug is HP SR number 8606223364.
16745 if test "$cross_compiling" = yes; then
16746 # Depending upon the size, compute the lo and hi bounds.
16747cat >conftest.$ac_ext <<_ACEOF
16748/* confdefs.h. */
16749_ACEOF
16750cat confdefs.h >>conftest.$ac_ext
16751cat >>conftest.$ac_ext <<_ACEOF
16752/* end confdefs.h. */
16753$ac_includes_default
16754int
16755main ()
16756{
16757static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16758test_array [0] = 0
16759
16760 ;
16761 return 0;
16762}
16763_ACEOF
16764rm -f conftest.$ac_objext
16765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16766 (eval $ac_compile) 2>conftest.er1
a848cd7e 16767 ac_status=$?
ac1cb8d3
VS
16768 grep -v '^ *+' conftest.er1 >conftest.err
16769 rm -f conftest.er1
16770 cat conftest.err >&5
a848cd7e
SC
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } &&
dfe0c803
JS
16773 { ac_try='test -z "$ac_c_werror_flag"
16774 || test ! -s conftest.err'
ac1cb8d3
VS
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; } &&
16780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 ac_lo=0 ac_mid=0
16787 while :; do
16788 cat >conftest.$ac_ext <<_ACEOF
16789/* confdefs.h. */
16790_ACEOF
16791cat confdefs.h >>conftest.$ac_ext
16792cat >>conftest.$ac_ext <<_ACEOF
16793/* end confdefs.h. */
16794$ac_includes_default
16795int
16796main ()
16797{
16798static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16799test_array [0] = 0
16800
16801 ;
16802 return 0;
16803}
16804_ACEOF
16805rm -f conftest.$ac_objext
16806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16807 (eval $ac_compile) 2>conftest.er1
a848cd7e 16808 ac_status=$?
ac1cb8d3
VS
16809 grep -v '^ *+' conftest.er1 >conftest.err
16810 rm -f conftest.er1
16811 cat conftest.err >&5
a848cd7e
SC
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
dfe0c803
JS
16814 { ac_try='test -z "$ac_c_werror_flag"
16815 || test ! -s conftest.err'
ac1cb8d3
VS
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; } &&
16821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; }; then
16827 ac_hi=$ac_mid; break
16828else
16829 echo "$as_me: failed program was:" >&5
16830sed 's/^/| /' conftest.$ac_ext >&5
16831
16832ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16833 if test $ac_lo -le $ac_mid; then
16834 ac_lo= ac_hi=
16835 break
16836 fi
16837 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16838fi
ac1cb8d3 16839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16840 done
16841else
16842 echo "$as_me: failed program was:" >&5
16843sed 's/^/| /' conftest.$ac_ext >&5
16844
16845cat >conftest.$ac_ext <<_ACEOF
16846/* confdefs.h. */
16847_ACEOF
16848cat confdefs.h >>conftest.$ac_ext
16849cat >>conftest.$ac_ext <<_ACEOF
16850/* end confdefs.h. */
16851$ac_includes_default
16852int
16853main ()
16854{
16855static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16856test_array [0] = 0
16857
16858 ;
16859 return 0;
16860}
16861_ACEOF
16862rm -f conftest.$ac_objext
16863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16864 (eval $ac_compile) 2>conftest.er1
a848cd7e 16865 ac_status=$?
ac1cb8d3
VS
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
a848cd7e
SC
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
dfe0c803
JS
16871 { ac_try='test -z "$ac_c_werror_flag"
16872 || test ! -s conftest.err'
ac1cb8d3
VS
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
16884 ac_hi=-1 ac_mid=-1
16885 while :; do
16886 cat >conftest.$ac_ext <<_ACEOF
16887/* confdefs.h. */
16888_ACEOF
16889cat confdefs.h >>conftest.$ac_ext
16890cat >>conftest.$ac_ext <<_ACEOF
16891/* end confdefs.h. */
16892$ac_includes_default
16893int
16894main ()
16895{
16896static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16897test_array [0] = 0
16898
16899 ;
16900 return 0;
16901}
16902_ACEOF
16903rm -f conftest.$ac_objext
16904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16905 (eval $ac_compile) 2>conftest.er1
a848cd7e 16906 ac_status=$?
ac1cb8d3
VS
16907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
a848cd7e
SC
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
dfe0c803
JS
16912 { ac_try='test -z "$ac_c_werror_flag"
16913 || test ! -s conftest.err'
ac1cb8d3
VS
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; } &&
16919 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16925 ac_lo=$ac_mid; break
16926else
16927 echo "$as_me: failed program was:" >&5
16928sed 's/^/| /' conftest.$ac_ext >&5
16929
16930ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16931 if test $ac_mid -le $ac_hi; then
16932 ac_lo= ac_hi=
16933 break
16934 fi
16935 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16936fi
ac1cb8d3 16937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16938 done
16939else
16940 echo "$as_me: failed program was:" >&5
16941sed 's/^/| /' conftest.$ac_ext >&5
16942
16943ac_lo= ac_hi=
16944fi
ac1cb8d3 16945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16946fi
ac1cb8d3 16947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16948# Binary search between lo and hi bounds.
16949while test "x$ac_lo" != "x$ac_hi"; do
16950 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16951 cat >conftest.$ac_ext <<_ACEOF
16952/* confdefs.h. */
16953_ACEOF
16954cat confdefs.h >>conftest.$ac_ext
16955cat >>conftest.$ac_ext <<_ACEOF
16956/* end confdefs.h. */
16957$ac_includes_default
16958int
16959main ()
16960{
16961static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16962test_array [0] = 0
16963
16964 ;
16965 return 0;
16966}
16967_ACEOF
16968rm -f conftest.$ac_objext
16969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16970 (eval $ac_compile) 2>conftest.er1
a848cd7e 16971 ac_status=$?
ac1cb8d3
VS
16972 grep -v '^ *+' conftest.er1 >conftest.err
16973 rm -f conftest.er1
16974 cat conftest.err >&5
a848cd7e
SC
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } &&
dfe0c803
JS
16977 { ac_try='test -z "$ac_c_werror_flag"
16978 || test ! -s conftest.err'
ac1cb8d3
VS
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 ac_hi=$ac_mid
16991else
16992 echo "$as_me: failed program was:" >&5
16993sed 's/^/| /' conftest.$ac_ext >&5
16994
16995ac_lo=`expr '(' $ac_mid ')' + 1`
16996fi
ac1cb8d3 16997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16998done
16999case $ac_lo in
17000?*) ac_cv_sizeof_int=$ac_lo;;
17001'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17002See \`config.log' for more details." >&5
17003echo "$as_me: error: cannot compute sizeof (int), 77
17004See \`config.log' for more details." >&2;}
17005 { (exit 1); exit 1; }; } ;;
17006esac
17007else
17008 if test "$cross_compiling" = yes; then
dfe0c803
JS
17009 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17010See \`config.log' for more details." >&5
17011echo "$as_me: error: cannot run test program while cross compiling
17012See \`config.log' for more details." >&2;}
a848cd7e
SC
17013 { (exit 1); exit 1; }; }
17014else
17015 cat >conftest.$ac_ext <<_ACEOF
17016/* confdefs.h. */
17017_ACEOF
17018cat confdefs.h >>conftest.$ac_ext
17019cat >>conftest.$ac_ext <<_ACEOF
17020/* end confdefs.h. */
17021$ac_includes_default
17022long longval () { return (long) (sizeof (int)); }
17023unsigned long ulongval () { return (long) (sizeof (int)); }
17024#include <stdio.h>
17025#include <stdlib.h>
17026int
17027main ()
17028{
17029
17030 FILE *f = fopen ("conftest.val", "w");
17031 if (! f)
17032 exit (1);
17033 if (((long) (sizeof (int))) < 0)
17034 {
17035 long i = longval ();
17036 if (i != ((long) (sizeof (int))))
17037 exit (1);
17038 fprintf (f, "%ld\n", i);
17039 }
17040 else
17041 {
17042 unsigned long i = ulongval ();
17043 if (i != ((long) (sizeof (int))))
17044 exit (1);
17045 fprintf (f, "%lu\n", i);
17046 }
17047 exit (ferror (f) || fclose (f) != 0);
17048
17049 ;
17050 return 0;
17051}
17052_ACEOF
17053rm -f conftest$ac_exeext
17054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17055 (eval $ac_link) 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; }; then
17064 ac_cv_sizeof_int=`cat conftest.val`
17065else
17066 echo "$as_me: program exited with status $ac_status" >&5
17067echo "$as_me: failed program was:" >&5
17068sed 's/^/| /' conftest.$ac_ext >&5
17069
17070( exit $ac_status )
17071{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17072See \`config.log' for more details." >&5
17073echo "$as_me: error: cannot compute sizeof (int), 77
17074See \`config.log' for more details." >&2;}
17075 { (exit 1); exit 1; }; }
17076fi
ac1cb8d3 17077rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17078fi
17079fi
17080rm -f conftest.val
17081else
17082 ac_cv_sizeof_int=0
17083fi
17084fi
17085echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17086echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17087cat >>confdefs.h <<_ACEOF
17088#define SIZEOF_INT $ac_cv_sizeof_int
17089_ACEOF
17090
17091
17092echo "$as_me:$LINENO: checking for long" >&5
17093echo $ECHO_N "checking for long... $ECHO_C" >&6
17094if test "${ac_cv_type_long+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096else
17097 cat >conftest.$ac_ext <<_ACEOF
17098/* confdefs.h. */
17099_ACEOF
17100cat confdefs.h >>conftest.$ac_ext
17101cat >>conftest.$ac_ext <<_ACEOF
17102/* end confdefs.h. */
17103$ac_includes_default
17104int
17105main ()
17106{
17107if ((long *) 0)
17108 return 0;
17109if (sizeof (long))
17110 return 0;
17111 ;
17112 return 0;
17113}
17114_ACEOF
17115rm -f conftest.$ac_objext
17116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17117 (eval $ac_compile) 2>conftest.er1
a848cd7e 17118 ac_status=$?
ac1cb8d3
VS
17119 grep -v '^ *+' conftest.er1 >conftest.err
17120 rm -f conftest.er1
17121 cat conftest.err >&5
a848cd7e
SC
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } &&
dfe0c803
JS
17124 { ac_try='test -z "$ac_c_werror_flag"
17125 || test ! -s conftest.err'
ac1cb8d3
VS
17126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127 (eval $ac_try) 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; } &&
17131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; }; then
17137 ac_cv_type_long=yes
17138else
17139 echo "$as_me: failed program was:" >&5
17140sed 's/^/| /' conftest.$ac_ext >&5
17141
17142ac_cv_type_long=no
17143fi
ac1cb8d3 17144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17145fi
17146echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17147echo "${ECHO_T}$ac_cv_type_long" >&6
17148
17149echo "$as_me:$LINENO: checking size of long" >&5
17150echo $ECHO_N "checking size of long... $ECHO_C" >&6
17151if test "${ac_cv_sizeof_long+set}" = set; then
17152 echo $ECHO_N "(cached) $ECHO_C" >&6
17153else
17154 if test "$ac_cv_type_long" = yes; then
17155 # The cast to unsigned long works around a bug in the HP C Compiler
17156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17158 # This bug is HP SR number 8606223364.
17159 if test "$cross_compiling" = yes; then
17160 # Depending upon the size, compute the lo and hi bounds.
17161cat >conftest.$ac_ext <<_ACEOF
17162/* confdefs.h. */
17163_ACEOF
17164cat confdefs.h >>conftest.$ac_ext
17165cat >>conftest.$ac_ext <<_ACEOF
17166/* end confdefs.h. */
17167$ac_includes_default
17168int
17169main ()
17170{
17171static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17172test_array [0] = 0
17173
17174 ;
17175 return 0;
17176}
17177_ACEOF
17178rm -f conftest.$ac_objext
17179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17180 (eval $ac_compile) 2>conftest.er1
a848cd7e 17181 ac_status=$?
ac1cb8d3
VS
17182 grep -v '^ *+' conftest.er1 >conftest.err
17183 rm -f conftest.er1
17184 cat conftest.err >&5
a848cd7e
SC
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
dfe0c803
JS
17187 { ac_try='test -z "$ac_c_werror_flag"
17188 || test ! -s conftest.err'
ac1cb8d3
VS
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 ac_lo=0 ac_mid=0
17201 while :; do
17202 cat >conftest.$ac_ext <<_ACEOF
17203/* confdefs.h. */
17204_ACEOF
17205cat confdefs.h >>conftest.$ac_ext
17206cat >>conftest.$ac_ext <<_ACEOF
17207/* end confdefs.h. */
17208$ac_includes_default
17209int
17210main ()
17211{
17212static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17213test_array [0] = 0
17214
17215 ;
17216 return 0;
17217}
17218_ACEOF
17219rm -f conftest.$ac_objext
17220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17221 (eval $ac_compile) 2>conftest.er1
a848cd7e 17222 ac_status=$?
ac1cb8d3
VS
17223 grep -v '^ *+' conftest.er1 >conftest.err
17224 rm -f conftest.er1
17225 cat conftest.err >&5
a848cd7e
SC
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
dfe0c803
JS
17228 { ac_try='test -z "$ac_c_werror_flag"
17229 || test ! -s conftest.err'
ac1cb8d3
VS
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 ac_hi=$ac_mid; break
17242else
17243 echo "$as_me: failed program was:" >&5
17244sed 's/^/| /' conftest.$ac_ext >&5
17245
17246ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17247 if test $ac_lo -le $ac_mid; then
17248 ac_lo= ac_hi=
17249 break
17250 fi
17251 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17252fi
ac1cb8d3 17253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17254 done
17255else
17256 echo "$as_me: failed program was:" >&5
17257sed 's/^/| /' conftest.$ac_ext >&5
17258
17259cat >conftest.$ac_ext <<_ACEOF
17260/* confdefs.h. */
17261_ACEOF
17262cat confdefs.h >>conftest.$ac_ext
17263cat >>conftest.$ac_ext <<_ACEOF
17264/* end confdefs.h. */
17265$ac_includes_default
17266int
17267main ()
17268{
17269static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17270test_array [0] = 0
17271
17272 ;
17273 return 0;
17274}
17275_ACEOF
17276rm -f conftest.$ac_objext
17277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17278 (eval $ac_compile) 2>conftest.er1
a848cd7e 17279 ac_status=$?
ac1cb8d3
VS
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
17282 cat conftest.err >&5
a848cd7e
SC
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
dfe0c803
JS
17285 { ac_try='test -z "$ac_c_werror_flag"
17286 || test ! -s conftest.err'
ac1cb8d3
VS
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; } &&
17292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17295 ac_status=$?
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; }; then
17298 ac_hi=-1 ac_mid=-1
17299 while :; do
17300 cat >conftest.$ac_ext <<_ACEOF
17301/* confdefs.h. */
17302_ACEOF
17303cat confdefs.h >>conftest.$ac_ext
17304cat >>conftest.$ac_ext <<_ACEOF
17305/* end confdefs.h. */
17306$ac_includes_default
17307int
17308main ()
17309{
17310static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17311test_array [0] = 0
17312
17313 ;
17314 return 0;
17315}
17316_ACEOF
17317rm -f conftest.$ac_objext
17318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17319 (eval $ac_compile) 2>conftest.er1
a848cd7e 17320 ac_status=$?
ac1cb8d3
VS
17321 grep -v '^ *+' conftest.er1 >conftest.err
17322 rm -f conftest.er1
17323 cat conftest.err >&5
a848cd7e
SC
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } &&
dfe0c803
JS
17326 { ac_try='test -z "$ac_c_werror_flag"
17327 || test ! -s conftest.err'
ac1cb8d3
VS
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; } &&
17333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17336 ac_status=$?
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; }; then
17339 ac_lo=$ac_mid; break
17340else
17341 echo "$as_me: failed program was:" >&5
17342sed 's/^/| /' conftest.$ac_ext >&5
17343
17344ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17345 if test $ac_mid -le $ac_hi; then
17346 ac_lo= ac_hi=
17347 break
17348 fi
17349 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17350fi
ac1cb8d3 17351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17352 done
17353else
17354 echo "$as_me: failed program was:" >&5
17355sed 's/^/| /' conftest.$ac_ext >&5
17356
17357ac_lo= ac_hi=
17358fi
ac1cb8d3 17359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17360fi
ac1cb8d3 17361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17362# Binary search between lo and hi bounds.
17363while test "x$ac_lo" != "x$ac_hi"; do
17364 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17365 cat >conftest.$ac_ext <<_ACEOF
17366/* confdefs.h. */
17367_ACEOF
17368cat confdefs.h >>conftest.$ac_ext
17369cat >>conftest.$ac_ext <<_ACEOF
17370/* end confdefs.h. */
17371$ac_includes_default
17372int
17373main ()
17374{
17375static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17376test_array [0] = 0
17377
17378 ;
17379 return 0;
17380}
17381_ACEOF
17382rm -f conftest.$ac_objext
17383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17384 (eval $ac_compile) 2>conftest.er1
a848cd7e 17385 ac_status=$?
ac1cb8d3
VS
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
a848cd7e
SC
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } &&
dfe0c803
JS
17391 { ac_try='test -z "$ac_c_werror_flag"
17392 || test ! -s conftest.err'
ac1cb8d3
VS
17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17395 ac_status=$?
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; } &&
17398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ac_hi=$ac_mid
17405else
17406 echo "$as_me: failed program was:" >&5
17407sed 's/^/| /' conftest.$ac_ext >&5
17408
17409ac_lo=`expr '(' $ac_mid ')' + 1`
17410fi
ac1cb8d3 17411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17412done
17413case $ac_lo in
17414?*) ac_cv_sizeof_long=$ac_lo;;
17415'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17416See \`config.log' for more details." >&5
17417echo "$as_me: error: cannot compute sizeof (long), 77
17418See \`config.log' for more details." >&2;}
17419 { (exit 1); exit 1; }; } ;;
17420esac
17421else
17422 if test "$cross_compiling" = yes; then
dfe0c803
JS
17423 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17424See \`config.log' for more details." >&5
17425echo "$as_me: error: cannot run test program while cross compiling
17426See \`config.log' for more details." >&2;}
a848cd7e
SC
17427 { (exit 1); exit 1; }; }
17428else
17429 cat >conftest.$ac_ext <<_ACEOF
17430/* confdefs.h. */
17431_ACEOF
17432cat confdefs.h >>conftest.$ac_ext
17433cat >>conftest.$ac_ext <<_ACEOF
17434/* end confdefs.h. */
17435$ac_includes_default
17436long longval () { return (long) (sizeof (long)); }
17437unsigned long ulongval () { return (long) (sizeof (long)); }
17438#include <stdio.h>
17439#include <stdlib.h>
17440int
17441main ()
17442{
17443
17444 FILE *f = fopen ("conftest.val", "w");
17445 if (! f)
17446 exit (1);
17447 if (((long) (sizeof (long))) < 0)
17448 {
17449 long i = longval ();
17450 if (i != ((long) (sizeof (long))))
17451 exit (1);
17452 fprintf (f, "%ld\n", i);
17453 }
17454 else
17455 {
17456 unsigned long i = ulongval ();
17457 if (i != ((long) (sizeof (long))))
17458 exit (1);
17459 fprintf (f, "%lu\n", i);
17460 }
17461 exit (ferror (f) || fclose (f) != 0);
17462
17463 ;
17464 return 0;
17465}
17466_ACEOF
17467rm -f conftest$ac_exeext
17468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17469 (eval $ac_link) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474 (eval $ac_try) 2>&5
17475 ac_status=$?
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; }; then
17478 ac_cv_sizeof_long=`cat conftest.val`
17479else
17480 echo "$as_me: program exited with status $ac_status" >&5
17481echo "$as_me: failed program was:" >&5
17482sed 's/^/| /' conftest.$ac_ext >&5
17483
17484( exit $ac_status )
17485{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17486See \`config.log' for more details." >&5
17487echo "$as_me: error: cannot compute sizeof (long), 77
17488See \`config.log' for more details." >&2;}
17489 { (exit 1); exit 1; }; }
17490fi
ac1cb8d3 17491rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17492fi
17493fi
17494rm -f conftest.val
17495else
17496 ac_cv_sizeof_long=0
17497fi
17498fi
17499echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17500echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17501cat >>confdefs.h <<_ACEOF
17502#define SIZEOF_LONG $ac_cv_sizeof_long
17503_ACEOF
17504
17505
17506echo "$as_me:$LINENO: checking for size_t" >&5
17507echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17508if test "${ac_cv_type_size_t+set}" = set; then
17509 echo $ECHO_N "(cached) $ECHO_C" >&6
17510else
17511 cat >conftest.$ac_ext <<_ACEOF
17512/* confdefs.h. */
17513_ACEOF
17514cat confdefs.h >>conftest.$ac_ext
17515cat >>conftest.$ac_ext <<_ACEOF
17516/* end confdefs.h. */
17517$ac_includes_default
17518int
17519main ()
17520{
17521if ((size_t *) 0)
17522 return 0;
17523if (sizeof (size_t))
17524 return 0;
17525 ;
17526 return 0;
17527}
17528_ACEOF
17529rm -f conftest.$ac_objext
17530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17531 (eval $ac_compile) 2>conftest.er1
a848cd7e 17532 ac_status=$?
ac1cb8d3
VS
17533 grep -v '^ *+' conftest.er1 >conftest.err
17534 rm -f conftest.er1
17535 cat conftest.err >&5
a848cd7e
SC
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } &&
dfe0c803
JS
17538 { ac_try='test -z "$ac_c_werror_flag"
17539 || test ! -s conftest.err'
ac1cb8d3
VS
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; } &&
17545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17548 ac_status=$?
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; }; then
17551 ac_cv_type_size_t=yes
17552else
17553 echo "$as_me: failed program was:" >&5
17554sed 's/^/| /' conftest.$ac_ext >&5
17555
17556ac_cv_type_size_t=no
17557fi
ac1cb8d3 17558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17559fi
17560echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17561echo "${ECHO_T}$ac_cv_type_size_t" >&6
17562
17563echo "$as_me:$LINENO: checking size of size_t" >&5
17564echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17565if test "${ac_cv_sizeof_size_t+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17567else
17568 if test "$ac_cv_type_size_t" = yes; then
17569 # The cast to unsigned long works around a bug in the HP C Compiler
17570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17572 # This bug is HP SR number 8606223364.
17573 if test "$cross_compiling" = yes; then
17574 # Depending upon the size, compute the lo and hi bounds.
17575cat >conftest.$ac_ext <<_ACEOF
17576/* confdefs.h. */
17577_ACEOF
17578cat confdefs.h >>conftest.$ac_ext
17579cat >>conftest.$ac_ext <<_ACEOF
17580/* end confdefs.h. */
17581$ac_includes_default
17582int
17583main ()
17584{
17585static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17586test_array [0] = 0
17587
17588 ;
17589 return 0;
17590}
17591_ACEOF
17592rm -f conftest.$ac_objext
17593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17594 (eval $ac_compile) 2>conftest.er1
a848cd7e 17595 ac_status=$?
ac1cb8d3
VS
17596 grep -v '^ *+' conftest.er1 >conftest.err
17597 rm -f conftest.er1
17598 cat conftest.err >&5
a848cd7e
SC
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
dfe0c803
JS
17601 { ac_try='test -z "$ac_c_werror_flag"
17602 || test ! -s conftest.err'
ac1cb8d3
VS
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ac_lo=0 ac_mid=0
17615 while :; do
17616 cat >conftest.$ac_ext <<_ACEOF
17617/* confdefs.h. */
17618_ACEOF
17619cat confdefs.h >>conftest.$ac_ext
17620cat >>conftest.$ac_ext <<_ACEOF
17621/* end confdefs.h. */
17622$ac_includes_default
17623int
17624main ()
17625{
17626static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17627test_array [0] = 0
17628
17629 ;
17630 return 0;
17631}
17632_ACEOF
17633rm -f conftest.$ac_objext
17634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17635 (eval $ac_compile) 2>conftest.er1
a848cd7e 17636 ac_status=$?
ac1cb8d3
VS
17637 grep -v '^ *+' conftest.er1 >conftest.err
17638 rm -f conftest.er1
17639 cat conftest.err >&5
a848cd7e
SC
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } &&
dfe0c803
JS
17642 { ac_try='test -z "$ac_c_werror_flag"
17643 || test ! -s conftest.err'
ac1cb8d3
VS
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; } &&
17649 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_hi=$ac_mid; break
17656else
17657 echo "$as_me: failed program was:" >&5
17658sed 's/^/| /' conftest.$ac_ext >&5
17659
17660ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17661 if test $ac_lo -le $ac_mid; then
17662 ac_lo= ac_hi=
17663 break
17664 fi
17665 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17666fi
ac1cb8d3 17667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17668 done
17669else
17670 echo "$as_me: failed program was:" >&5
17671sed 's/^/| /' conftest.$ac_ext >&5
17672
17673cat >conftest.$ac_ext <<_ACEOF
17674/* confdefs.h. */
17675_ACEOF
17676cat confdefs.h >>conftest.$ac_ext
17677cat >>conftest.$ac_ext <<_ACEOF
17678/* end confdefs.h. */
17679$ac_includes_default
17680int
17681main ()
17682{
17683static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17684test_array [0] = 0
17685
17686 ;
17687 return 0;
17688}
17689_ACEOF
17690rm -f conftest.$ac_objext
17691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17692 (eval $ac_compile) 2>conftest.er1
a848cd7e 17693 ac_status=$?
ac1cb8d3
VS
17694 grep -v '^ *+' conftest.er1 >conftest.err
17695 rm -f conftest.er1
17696 cat conftest.err >&5
a848cd7e
SC
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
dfe0c803
JS
17699 { ac_try='test -z "$ac_c_werror_flag"
17700 || test ! -s conftest.err'
ac1cb8d3
VS
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 ac_hi=-1 ac_mid=-1
17713 while :; do
17714 cat >conftest.$ac_ext <<_ACEOF
17715/* confdefs.h. */
17716_ACEOF
17717cat confdefs.h >>conftest.$ac_ext
17718cat >>conftest.$ac_ext <<_ACEOF
17719/* end confdefs.h. */
17720$ac_includes_default
17721int
17722main ()
17723{
17724static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17725test_array [0] = 0
17726
17727 ;
17728 return 0;
17729}
17730_ACEOF
17731rm -f conftest.$ac_objext
17732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17733 (eval $ac_compile) 2>conftest.er1
a848cd7e 17734 ac_status=$?
ac1cb8d3
VS
17735 grep -v '^ *+' conftest.er1 >conftest.err
17736 rm -f conftest.er1
17737 cat conftest.err >&5
a848cd7e
SC
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } &&
dfe0c803
JS
17740 { ac_try='test -z "$ac_c_werror_flag"
17741 || test ! -s conftest.err'
ac1cb8d3
VS
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 ac_lo=$ac_mid; break
17754else
17755 echo "$as_me: failed program was:" >&5
17756sed 's/^/| /' conftest.$ac_ext >&5
17757
17758ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17759 if test $ac_mid -le $ac_hi; then
17760 ac_lo= ac_hi=
17761 break
17762 fi
17763 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17764fi
ac1cb8d3 17765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17766 done
17767else
17768 echo "$as_me: failed program was:" >&5
17769sed 's/^/| /' conftest.$ac_ext >&5
17770
17771ac_lo= ac_hi=
17772fi
ac1cb8d3 17773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17774fi
ac1cb8d3 17775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17776# Binary search between lo and hi bounds.
17777while test "x$ac_lo" != "x$ac_hi"; do
17778 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17779 cat >conftest.$ac_ext <<_ACEOF
17780/* confdefs.h. */
17781_ACEOF
17782cat confdefs.h >>conftest.$ac_ext
17783cat >>conftest.$ac_ext <<_ACEOF
17784/* end confdefs.h. */
17785$ac_includes_default
17786int
17787main ()
17788{
17789static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17790test_array [0] = 0
17791
17792 ;
17793 return 0;
17794}
17795_ACEOF
17796rm -f conftest.$ac_objext
17797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17798 (eval $ac_compile) 2>conftest.er1
a848cd7e 17799 ac_status=$?
ac1cb8d3
VS
17800 grep -v '^ *+' conftest.er1 >conftest.err
17801 rm -f conftest.er1
17802 cat conftest.err >&5
a848cd7e
SC
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
dfe0c803
JS
17805 { ac_try='test -z "$ac_c_werror_flag"
17806 || test ! -s conftest.err'
ac1cb8d3
VS
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 ac_hi=$ac_mid
17819else
17820 echo "$as_me: failed program was:" >&5
17821sed 's/^/| /' conftest.$ac_ext >&5
17822
17823ac_lo=`expr '(' $ac_mid ')' + 1`
17824fi
ac1cb8d3 17825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17826done
17827case $ac_lo in
17828?*) ac_cv_sizeof_size_t=$ac_lo;;
17829'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17830See \`config.log' for more details." >&5
17831echo "$as_me: error: cannot compute sizeof (size_t), 77
17832See \`config.log' for more details." >&2;}
17833 { (exit 1); exit 1; }; } ;;
17834esac
17835else
17836 if test "$cross_compiling" = yes; then
dfe0c803
JS
17837 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17838See \`config.log' for more details." >&5
17839echo "$as_me: error: cannot run test program while cross compiling
17840See \`config.log' for more details." >&2;}
a848cd7e
SC
17841 { (exit 1); exit 1; }; }
17842else
17843 cat >conftest.$ac_ext <<_ACEOF
17844/* confdefs.h. */
17845_ACEOF
17846cat confdefs.h >>conftest.$ac_ext
17847cat >>conftest.$ac_ext <<_ACEOF
17848/* end confdefs.h. */
17849$ac_includes_default
17850long longval () { return (long) (sizeof (size_t)); }
17851unsigned long ulongval () { return (long) (sizeof (size_t)); }
17852#include <stdio.h>
17853#include <stdlib.h>
17854int
17855main ()
17856{
17857
17858 FILE *f = fopen ("conftest.val", "w");
17859 if (! f)
17860 exit (1);
17861 if (((long) (sizeof (size_t))) < 0)
17862 {
17863 long i = longval ();
17864 if (i != ((long) (sizeof (size_t))))
17865 exit (1);
17866 fprintf (f, "%ld\n", i);
17867 }
17868 else
17869 {
17870 unsigned long i = ulongval ();
17871 if (i != ((long) (sizeof (size_t))))
17872 exit (1);
17873 fprintf (f, "%lu\n", i);
17874 }
17875 exit (ferror (f) || fclose (f) != 0);
17876
17877 ;
17878 return 0;
17879}
17880_ACEOF
17881rm -f conftest$ac_exeext
17882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17883 (eval $ac_link) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 ac_cv_sizeof_size_t=`cat conftest.val`
17893else
17894 echo "$as_me: program exited with status $ac_status" >&5
17895echo "$as_me: failed program was:" >&5
17896sed 's/^/| /' conftest.$ac_ext >&5
17897
17898( exit $ac_status )
17899{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17900See \`config.log' for more details." >&5
17901echo "$as_me: error: cannot compute sizeof (size_t), 77
17902See \`config.log' for more details." >&2;}
17903 { (exit 1); exit 1; }; }
17904fi
ac1cb8d3 17905rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17906fi
17907fi
17908rm -f conftest.val
17909else
17910 ac_cv_sizeof_size_t=0
17911fi
17912fi
17913echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17914echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17915cat >>confdefs.h <<_ACEOF
17916#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17917_ACEOF
17918
17919
17920
17921case "${host}" in
17922 arm-*-linux* )
17923 echo "$as_me:$LINENO: checking for long long" >&5
17924echo $ECHO_N "checking for long long... $ECHO_C" >&6
17925if test "${ac_cv_type_long_long+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17927else
17928 cat >conftest.$ac_ext <<_ACEOF
17929/* confdefs.h. */
17930_ACEOF
17931cat confdefs.h >>conftest.$ac_ext
17932cat >>conftest.$ac_ext <<_ACEOF
17933/* end confdefs.h. */
17934$ac_includes_default
17935int
17936main ()
17937{
17938if ((long long *) 0)
17939 return 0;
17940if (sizeof (long long))
17941 return 0;
17942 ;
17943 return 0;
17944}
17945_ACEOF
17946rm -f conftest.$ac_objext
17947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17948 (eval $ac_compile) 2>conftest.er1
a848cd7e 17949 ac_status=$?
ac1cb8d3
VS
17950 grep -v '^ *+' conftest.er1 >conftest.err
17951 rm -f conftest.er1
17952 cat conftest.err >&5
a848cd7e
SC
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } &&
dfe0c803
JS
17955 { ac_try='test -z "$ac_c_werror_flag"
17956 || test ! -s conftest.err'
ac1cb8d3
VS
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17959 ac_status=$?
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; } &&
17962 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 ac_cv_type_long_long=yes
17969else
17970 echo "$as_me: failed program was:" >&5
17971sed 's/^/| /' conftest.$ac_ext >&5
17972
17973ac_cv_type_long_long=no
17974fi
ac1cb8d3 17975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17976fi
17977echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17978echo "${ECHO_T}$ac_cv_type_long_long" >&6
17979
17980echo "$as_me:$LINENO: checking size of long long" >&5
17981echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17982if test "${ac_cv_sizeof_long_long+set}" = set; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17984else
17985 if test "$ac_cv_type_long_long" = yes; then
17986 # The cast to unsigned long works around a bug in the HP C Compiler
17987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17989 # This bug is HP SR number 8606223364.
17990 if test "$cross_compiling" = yes; then
17991 # Depending upon the size, compute the lo and hi bounds.
17992cat >conftest.$ac_ext <<_ACEOF
17993/* confdefs.h. */
17994_ACEOF
17995cat confdefs.h >>conftest.$ac_ext
17996cat >>conftest.$ac_ext <<_ACEOF
17997/* end confdefs.h. */
17998$ac_includes_default
17999int
18000main ()
18001{
18002static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18003test_array [0] = 0
18004
18005 ;
18006 return 0;
18007}
18008_ACEOF
18009rm -f conftest.$ac_objext
18010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18011 (eval $ac_compile) 2>conftest.er1
a848cd7e 18012 ac_status=$?
ac1cb8d3
VS
18013 grep -v '^ *+' conftest.er1 >conftest.err
18014 rm -f conftest.er1
18015 cat conftest.err >&5
a848cd7e
SC
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } &&
dfe0c803
JS
18018 { ac_try='test -z "$ac_c_werror_flag"
18019 || test ! -s conftest.err'
ac1cb8d3
VS
18020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021 (eval $ac_try) 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; } &&
18025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 ac_lo=0 ac_mid=0
18032 while :; do
18033 cat >conftest.$ac_ext <<_ACEOF
18034/* confdefs.h. */
18035_ACEOF
18036cat confdefs.h >>conftest.$ac_ext
18037cat >>conftest.$ac_ext <<_ACEOF
18038/* end confdefs.h. */
18039$ac_includes_default
18040int
18041main ()
18042{
18043static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18044test_array [0] = 0
18045
18046 ;
18047 return 0;
18048}
18049_ACEOF
18050rm -f conftest.$ac_objext
18051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18052 (eval $ac_compile) 2>conftest.er1
a848cd7e 18053 ac_status=$?
ac1cb8d3
VS
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
a848cd7e
SC
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
dfe0c803
JS
18059 { ac_try='test -z "$ac_c_werror_flag"
18060 || test ! -s conftest.err'
ac1cb8d3
VS
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; } &&
18066 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 ac_hi=$ac_mid; break
18073else
18074 echo "$as_me: failed program was:" >&5
18075sed 's/^/| /' conftest.$ac_ext >&5
18076
18077ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18078 if test $ac_lo -le $ac_mid; then
18079 ac_lo= ac_hi=
18080 break
18081 fi
18082 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18083fi
ac1cb8d3 18084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18085 done
18086else
18087 echo "$as_me: failed program was:" >&5
18088sed 's/^/| /' conftest.$ac_ext >&5
18089
18090cat >conftest.$ac_ext <<_ACEOF
18091/* confdefs.h. */
18092_ACEOF
18093cat confdefs.h >>conftest.$ac_ext
18094cat >>conftest.$ac_ext <<_ACEOF
18095/* end confdefs.h. */
18096$ac_includes_default
18097int
18098main ()
18099{
18100static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18101test_array [0] = 0
18102
18103 ;
18104 return 0;
18105}
18106_ACEOF
18107rm -f conftest.$ac_objext
18108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18109 (eval $ac_compile) 2>conftest.er1
a848cd7e 18110 ac_status=$?
ac1cb8d3
VS
18111 grep -v '^ *+' conftest.er1 >conftest.err
18112 rm -f conftest.er1
18113 cat conftest.err >&5
a848cd7e
SC
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } &&
dfe0c803
JS
18116 { ac_try='test -z "$ac_c_werror_flag"
18117 || test ! -s conftest.err'
ac1cb8d3
VS
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; }; then
18129 ac_hi=-1 ac_mid=-1
18130 while :; do
18131 cat >conftest.$ac_ext <<_ACEOF
18132/* confdefs.h. */
18133_ACEOF
18134cat confdefs.h >>conftest.$ac_ext
18135cat >>conftest.$ac_ext <<_ACEOF
18136/* end confdefs.h. */
18137$ac_includes_default
18138int
18139main ()
18140{
18141static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18142test_array [0] = 0
18143
18144 ;
18145 return 0;
18146}
18147_ACEOF
18148rm -f conftest.$ac_objext
18149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18150 (eval $ac_compile) 2>conftest.er1
a848cd7e 18151 ac_status=$?
ac1cb8d3
VS
18152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
a848cd7e
SC
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } &&
dfe0c803
JS
18157 { ac_try='test -z "$ac_c_werror_flag"
18158 || 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); } &&
dfe0c803
JS
18222 { ac_try='test -z "$ac_c_werror_flag"
18223 || test ! -s conftest.err'
ac1cb8d3
VS
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; } &&
18229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 ac_hi=$ac_mid
18236else
18237 echo "$as_me: failed program was:" >&5
18238sed 's/^/| /' conftest.$ac_ext >&5
18239
18240ac_lo=`expr '(' $ac_mid ')' + 1`
18241fi
ac1cb8d3 18242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18243done
18244case $ac_lo in
18245?*) ac_cv_sizeof_long_long=$ac_lo;;
18246'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18247See \`config.log' for more details." >&5
18248echo "$as_me: error: cannot compute sizeof (long long), 77
18249See \`config.log' for more details." >&2;}
18250 { (exit 1); exit 1; }; } ;;
18251esac
18252else
18253 if test "$cross_compiling" = yes; then
dfe0c803
JS
18254 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18255See \`config.log' for more details." >&5
18256echo "$as_me: error: cannot run test program while cross compiling
18257See \`config.log' for more details." >&2;}
a848cd7e
SC
18258 { (exit 1); exit 1; }; }
18259else
18260 cat >conftest.$ac_ext <<_ACEOF
18261/* confdefs.h. */
18262_ACEOF
18263cat confdefs.h >>conftest.$ac_ext
18264cat >>conftest.$ac_ext <<_ACEOF
18265/* end confdefs.h. */
18266$ac_includes_default
18267long longval () { return (long) (sizeof (long long)); }
18268unsigned long ulongval () { return (long) (sizeof (long long)); }
18269#include <stdio.h>
18270#include <stdlib.h>
18271int
18272main ()
18273{
18274
18275 FILE *f = fopen ("conftest.val", "w");
18276 if (! f)
18277 exit (1);
18278 if (((long) (sizeof (long long))) < 0)
18279 {
18280 long i = longval ();
18281 if (i != ((long) (sizeof (long long))))
18282 exit (1);
18283 fprintf (f, "%ld\n", i);
18284 }
18285 else
18286 {
18287 unsigned long i = ulongval ();
18288 if (i != ((long) (sizeof (long long))))
18289 exit (1);
18290 fprintf (f, "%lu\n", i);
18291 }
18292 exit (ferror (f) || fclose (f) != 0);
18293
18294 ;
18295 return 0;
18296}
18297_ACEOF
18298rm -f conftest$ac_exeext
18299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18300 (eval $ac_link) 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
18309 ac_cv_sizeof_long_long=`cat conftest.val`
18310else
18311 echo "$as_me: program exited with status $ac_status" >&5
18312echo "$as_me: failed program was:" >&5
18313sed 's/^/| /' conftest.$ac_ext >&5
18314
18315( exit $ac_status )
18316{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18317See \`config.log' for more details." >&5
18318echo "$as_me: error: cannot compute sizeof (long long), 77
18319See \`config.log' for more details." >&2;}
18320 { (exit 1); exit 1; }; }
18321fi
ac1cb8d3 18322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18323fi
18324fi
18325rm -f conftest.val
18326else
18327 ac_cv_sizeof_long_long=0
18328fi
18329fi
18330echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18331echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18332cat >>confdefs.h <<_ACEOF
18333#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18334_ACEOF
18335
18336
18337 ;;
18338 *-hp-hpux* )
18339 echo "$as_me:$LINENO: checking for long long" >&5
18340echo $ECHO_N "checking for long long... $ECHO_C" >&6
18341if test "${ac_cv_type_long_long+set}" = set; then
18342 echo $ECHO_N "(cached) $ECHO_C" >&6
18343else
18344 cat >conftest.$ac_ext <<_ACEOF
18345/* confdefs.h. */
18346_ACEOF
18347cat confdefs.h >>conftest.$ac_ext
18348cat >>conftest.$ac_ext <<_ACEOF
18349/* end confdefs.h. */
18350$ac_includes_default
18351int
18352main ()
18353{
18354if ((long long *) 0)
18355 return 0;
18356if (sizeof (long long))
18357 return 0;
18358 ;
18359 return 0;
18360}
18361_ACEOF
18362rm -f conftest.$ac_objext
18363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18364 (eval $ac_compile) 2>conftest.er1
a848cd7e 18365 ac_status=$?
ac1cb8d3
VS
18366 grep -v '^ *+' conftest.er1 >conftest.err
18367 rm -f conftest.er1
18368 cat conftest.err >&5
a848cd7e
SC
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
dfe0c803
JS
18371 { ac_try='test -z "$ac_c_werror_flag"
18372 || test ! -s conftest.err'
ac1cb8d3
VS
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
18375 ac_status=$?
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; } &&
18378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 ac_cv_type_long_long=yes
18385else
18386 echo "$as_me: failed program was:" >&5
18387sed 's/^/| /' conftest.$ac_ext >&5
18388
18389ac_cv_type_long_long=no
18390fi
ac1cb8d3 18391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18392fi
18393echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18394echo "${ECHO_T}$ac_cv_type_long_long" >&6
18395
18396echo "$as_me:$LINENO: checking size of long long" >&5
18397echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18398if test "${ac_cv_sizeof_long_long+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18400else
18401 if test "$ac_cv_type_long_long" = yes; then
18402 # The cast to unsigned long works around a bug in the HP C Compiler
18403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18405 # This bug is HP SR number 8606223364.
18406 if test "$cross_compiling" = yes; then
18407 # Depending upon the size, compute the lo and hi bounds.
18408cat >conftest.$ac_ext <<_ACEOF
18409/* confdefs.h. */
18410_ACEOF
18411cat confdefs.h >>conftest.$ac_ext
18412cat >>conftest.$ac_ext <<_ACEOF
18413/* end confdefs.h. */
18414$ac_includes_default
18415int
18416main ()
18417{
18418static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18419test_array [0] = 0
18420
18421 ;
18422 return 0;
18423}
18424_ACEOF
18425rm -f conftest.$ac_objext
18426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18427 (eval $ac_compile) 2>conftest.er1
a848cd7e 18428 ac_status=$?
ac1cb8d3
VS
18429 grep -v '^ *+' conftest.er1 >conftest.err
18430 rm -f conftest.er1
18431 cat conftest.err >&5
a848cd7e
SC
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
dfe0c803
JS
18434 { ac_try='test -z "$ac_c_werror_flag"
18435 || test ! -s conftest.err'
ac1cb8d3
VS
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_lo=0 ac_mid=0
18448 while :; do
18449 cat >conftest.$ac_ext <<_ACEOF
18450/* confdefs.h. */
18451_ACEOF
18452cat confdefs.h >>conftest.$ac_ext
18453cat >>conftest.$ac_ext <<_ACEOF
18454/* end confdefs.h. */
18455$ac_includes_default
18456int
18457main ()
18458{
18459static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18460test_array [0] = 0
18461
18462 ;
18463 return 0;
18464}
18465_ACEOF
18466rm -f conftest.$ac_objext
18467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18468 (eval $ac_compile) 2>conftest.er1
a848cd7e 18469 ac_status=$?
ac1cb8d3
VS
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
a848cd7e
SC
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
dfe0c803
JS
18475 { ac_try='test -z "$ac_c_werror_flag"
18476 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 ac_hi=$ac_mid; break
18489else
18490 echo "$as_me: failed program was:" >&5
18491sed 's/^/| /' conftest.$ac_ext >&5
18492
18493ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18494 if test $ac_lo -le $ac_mid; then
18495 ac_lo= ac_hi=
18496 break
18497 fi
18498 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18499fi
ac1cb8d3 18500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18501 done
18502else
18503 echo "$as_me: failed program was:" >&5
18504sed 's/^/| /' conftest.$ac_ext >&5
18505
18506cat >conftest.$ac_ext <<_ACEOF
18507/* confdefs.h. */
18508_ACEOF
18509cat confdefs.h >>conftest.$ac_ext
18510cat >>conftest.$ac_ext <<_ACEOF
18511/* end confdefs.h. */
18512$ac_includes_default
18513int
18514main ()
18515{
18516static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18517test_array [0] = 0
18518
18519 ;
18520 return 0;
18521}
18522_ACEOF
18523rm -f conftest.$ac_objext
18524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18525 (eval $ac_compile) 2>conftest.er1
a848cd7e 18526 ac_status=$?
ac1cb8d3
VS
18527 grep -v '^ *+' conftest.er1 >conftest.err
18528 rm -f conftest.er1
18529 cat conftest.err >&5
a848cd7e
SC
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } &&
dfe0c803
JS
18532 { ac_try='test -z "$ac_c_werror_flag"
18533 || test ! -s conftest.err'
ac1cb8d3
VS
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; } &&
18539 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 ac_hi=-1 ac_mid=-1
18546 while :; do
18547 cat >conftest.$ac_ext <<_ACEOF
18548/* confdefs.h. */
18549_ACEOF
18550cat confdefs.h >>conftest.$ac_ext
18551cat >>conftest.$ac_ext <<_ACEOF
18552/* end confdefs.h. */
18553$ac_includes_default
18554int
18555main ()
18556{
18557static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18558test_array [0] = 0
18559
18560 ;
18561 return 0;
18562}
18563_ACEOF
18564rm -f conftest.$ac_objext
18565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18566 (eval $ac_compile) 2>conftest.er1
a848cd7e 18567 ac_status=$?
ac1cb8d3
VS
18568 grep -v '^ *+' conftest.er1 >conftest.err
18569 rm -f conftest.er1
18570 cat conftest.err >&5
a848cd7e
SC
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } &&
dfe0c803
JS
18573 { ac_try='test -z "$ac_c_werror_flag"
18574 || test ! -s conftest.err'
ac1cb8d3
VS
18575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576 (eval $ac_try) 2>&5
18577 ac_status=$?
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; } &&
18580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582 (eval $ac_try) 2>&5
18583 ac_status=$?
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; }; then
18586 ac_lo=$ac_mid; break
18587else
18588 echo "$as_me: failed program was:" >&5
18589sed 's/^/| /' conftest.$ac_ext >&5
18590
18591ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18592 if test $ac_mid -le $ac_hi; then
18593 ac_lo= ac_hi=
18594 break
18595 fi
18596 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18597fi
ac1cb8d3 18598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18599 done
18600else
18601 echo "$as_me: failed program was:" >&5
18602sed 's/^/| /' conftest.$ac_ext >&5
18603
18604ac_lo= ac_hi=
18605fi
ac1cb8d3 18606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18607fi
ac1cb8d3 18608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18609# Binary search between lo and hi bounds.
18610while test "x$ac_lo" != "x$ac_hi"; do
18611 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18612 cat >conftest.$ac_ext <<_ACEOF
18613/* confdefs.h. */
18614_ACEOF
18615cat confdefs.h >>conftest.$ac_ext
18616cat >>conftest.$ac_ext <<_ACEOF
18617/* end confdefs.h. */
18618$ac_includes_default
18619int
18620main ()
18621{
18622static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18623test_array [0] = 0
18624
18625 ;
18626 return 0;
18627}
18628_ACEOF
18629rm -f conftest.$ac_objext
18630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18631 (eval $ac_compile) 2>conftest.er1
a848cd7e 18632 ac_status=$?
ac1cb8d3
VS
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
a848cd7e
SC
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } &&
dfe0c803
JS
18638 { ac_try='test -z "$ac_c_werror_flag"
18639 || test ! -s conftest.err'
ac1cb8d3
VS
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; } &&
18645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 ac_hi=$ac_mid
18652else
18653 echo "$as_me: failed program was:" >&5
18654sed 's/^/| /' conftest.$ac_ext >&5
18655
18656ac_lo=`expr '(' $ac_mid ')' + 1`
18657fi
ac1cb8d3 18658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18659done
18660case $ac_lo in
18661?*) ac_cv_sizeof_long_long=$ac_lo;;
18662'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18663See \`config.log' for more details." >&5
18664echo "$as_me: error: cannot compute sizeof (long long), 77
18665See \`config.log' for more details." >&2;}
18666 { (exit 1); exit 1; }; } ;;
18667esac
18668else
18669 if test "$cross_compiling" = yes; then
dfe0c803
JS
18670 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18671See \`config.log' for more details." >&5
18672echo "$as_me: error: cannot run test program while cross compiling
18673See \`config.log' for more details." >&2;}
a848cd7e
SC
18674 { (exit 1); exit 1; }; }
18675else
18676 cat >conftest.$ac_ext <<_ACEOF
18677/* confdefs.h. */
18678_ACEOF
18679cat confdefs.h >>conftest.$ac_ext
18680cat >>conftest.$ac_ext <<_ACEOF
18681/* end confdefs.h. */
18682$ac_includes_default
18683long longval () { return (long) (sizeof (long long)); }
18684unsigned long ulongval () { return (long) (sizeof (long long)); }
18685#include <stdio.h>
18686#include <stdlib.h>
18687int
18688main ()
18689{
18690
18691 FILE *f = fopen ("conftest.val", "w");
18692 if (! f)
18693 exit (1);
18694 if (((long) (sizeof (long long))) < 0)
18695 {
18696 long i = longval ();
18697 if (i != ((long) (sizeof (long long))))
18698 exit (1);
18699 fprintf (f, "%ld\n", i);
18700 }
18701 else
18702 {
18703 unsigned long i = ulongval ();
18704 if (i != ((long) (sizeof (long long))))
18705 exit (1);
18706 fprintf (f, "%lu\n", i);
18707 }
18708 exit (ferror (f) || fclose (f) != 0);
18709
18710 ;
18711 return 0;
18712}
18713_ACEOF
18714rm -f conftest$ac_exeext
18715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18716 (eval $ac_link) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; }; then
18725 ac_cv_sizeof_long_long=`cat conftest.val`
18726else
18727 echo "$as_me: program exited with status $ac_status" >&5
18728echo "$as_me: failed program was:" >&5
18729sed 's/^/| /' conftest.$ac_ext >&5
18730
18731( exit $ac_status )
18732{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18733See \`config.log' for more details." >&5
18734echo "$as_me: error: cannot compute sizeof (long long), 77
18735See \`config.log' for more details." >&2;}
18736 { (exit 1); exit 1; }; }
18737fi
ac1cb8d3 18738rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18739fi
18740fi
18741rm -f conftest.val
18742else
18743 ac_cv_sizeof_long_long=0
18744fi
18745fi
18746echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18747echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18748cat >>confdefs.h <<_ACEOF
18749#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18750_ACEOF
18751
18752
18753 if test "$ac_cv_sizeof_long_long" != "0"; then
18754 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18755 fi
18756 ;;
18757 * )
18758 echo "$as_me:$LINENO: checking for long long" >&5
18759echo $ECHO_N "checking for long long... $ECHO_C" >&6
18760if test "${ac_cv_type_long_long+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18762else
18763 cat >conftest.$ac_ext <<_ACEOF
18764/* confdefs.h. */
18765_ACEOF
18766cat confdefs.h >>conftest.$ac_ext
18767cat >>conftest.$ac_ext <<_ACEOF
18768/* end confdefs.h. */
18769$ac_includes_default
18770int
18771main ()
18772{
18773if ((long long *) 0)
18774 return 0;
18775if (sizeof (long long))
18776 return 0;
18777 ;
18778 return 0;
18779}
18780_ACEOF
18781rm -f conftest.$ac_objext
18782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18783 (eval $ac_compile) 2>conftest.er1
a848cd7e 18784 ac_status=$?
ac1cb8d3
VS
18785 grep -v '^ *+' conftest.er1 >conftest.err
18786 rm -f conftest.er1
18787 cat conftest.err >&5
a848cd7e
SC
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } &&
dfe0c803
JS
18790 { ac_try='test -z "$ac_c_werror_flag"
18791 || test ! -s conftest.err'
ac1cb8d3
VS
18792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793 (eval $ac_try) 2>&5
18794 ac_status=$?
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); }; } &&
18797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; }; then
18803 ac_cv_type_long_long=yes
18804else
18805 echo "$as_me: failed program was:" >&5
18806sed 's/^/| /' conftest.$ac_ext >&5
18807
18808ac_cv_type_long_long=no
18809fi
ac1cb8d3 18810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18811fi
18812echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18813echo "${ECHO_T}$ac_cv_type_long_long" >&6
18814
18815echo "$as_me:$LINENO: checking size of long long" >&5
18816echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18817if test "${ac_cv_sizeof_long_long+set}" = set; then
18818 echo $ECHO_N "(cached) $ECHO_C" >&6
18819else
18820 if test "$ac_cv_type_long_long" = yes; then
18821 # The cast to unsigned long works around a bug in the HP C Compiler
18822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18824 # This bug is HP SR number 8606223364.
18825 if test "$cross_compiling" = yes; then
18826 # Depending upon the size, compute the lo and hi bounds.
18827cat >conftest.$ac_ext <<_ACEOF
18828/* confdefs.h. */
18829_ACEOF
18830cat confdefs.h >>conftest.$ac_ext
18831cat >>conftest.$ac_ext <<_ACEOF
18832/* end confdefs.h. */
18833$ac_includes_default
18834int
18835main ()
18836{
18837static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18838test_array [0] = 0
18839
18840 ;
18841 return 0;
18842}
18843_ACEOF
18844rm -f conftest.$ac_objext
18845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18846 (eval $ac_compile) 2>conftest.er1
a848cd7e 18847 ac_status=$?
ac1cb8d3
VS
18848 grep -v '^ *+' conftest.er1 >conftest.err
18849 rm -f conftest.er1
18850 cat conftest.err >&5
a848cd7e
SC
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } &&
dfe0c803
JS
18853 { ac_try='test -z "$ac_c_werror_flag"
18854 || test ! -s conftest.err'
ac1cb8d3
VS
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; } &&
18860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; }; then
18866 ac_lo=0 ac_mid=0
18867 while :; do
18868 cat >conftest.$ac_ext <<_ACEOF
18869/* confdefs.h. */
18870_ACEOF
18871cat confdefs.h >>conftest.$ac_ext
18872cat >>conftest.$ac_ext <<_ACEOF
18873/* end confdefs.h. */
18874$ac_includes_default
18875int
18876main ()
18877{
18878static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18879test_array [0] = 0
18880
18881 ;
18882 return 0;
18883}
18884_ACEOF
18885rm -f conftest.$ac_objext
18886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18887 (eval $ac_compile) 2>conftest.er1
a848cd7e 18888 ac_status=$?
ac1cb8d3
VS
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
a848cd7e
SC
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } &&
dfe0c803
JS
18894 { ac_try='test -z "$ac_c_werror_flag"
18895 || test ! -s conftest.err'
ac1cb8d3
VS
18896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897 (eval $ac_try) 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; } &&
18901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18903 (eval $ac_try) 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; }; then
18907 ac_hi=$ac_mid; break
18908else
18909 echo "$as_me: failed program was:" >&5
18910sed 's/^/| /' conftest.$ac_ext >&5
18911
18912ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18913 if test $ac_lo -le $ac_mid; then
18914 ac_lo= ac_hi=
18915 break
18916 fi
18917 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18918fi
ac1cb8d3 18919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18920 done
18921else
18922 echo "$as_me: failed program was:" >&5
18923sed 's/^/| /' conftest.$ac_ext >&5
18924
18925cat >conftest.$ac_ext <<_ACEOF
18926/* confdefs.h. */
18927_ACEOF
18928cat confdefs.h >>conftest.$ac_ext
18929cat >>conftest.$ac_ext <<_ACEOF
18930/* end confdefs.h. */
18931$ac_includes_default
18932int
18933main ()
18934{
18935static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18936test_array [0] = 0
18937
18938 ;
18939 return 0;
18940}
18941_ACEOF
18942rm -f conftest.$ac_objext
18943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18944 (eval $ac_compile) 2>conftest.er1
a848cd7e 18945 ac_status=$?
ac1cb8d3
VS
18946 grep -v '^ *+' conftest.er1 >conftest.err
18947 rm -f conftest.er1
18948 cat conftest.err >&5
a848cd7e
SC
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
dfe0c803
JS
18951 { ac_try='test -z "$ac_c_werror_flag"
18952 || test ! -s conftest.err'
ac1cb8d3
VS
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 ac_hi=-1 ac_mid=-1
18965 while :; do
18966 cat >conftest.$ac_ext <<_ACEOF
18967/* confdefs.h. */
18968_ACEOF
18969cat confdefs.h >>conftest.$ac_ext
18970cat >>conftest.$ac_ext <<_ACEOF
18971/* end confdefs.h. */
18972$ac_includes_default
18973int
18974main ()
18975{
18976static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18977test_array [0] = 0
18978
18979 ;
18980 return 0;
18981}
18982_ACEOF
18983rm -f conftest.$ac_objext
18984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18985 (eval $ac_compile) 2>conftest.er1
a848cd7e 18986 ac_status=$?
ac1cb8d3
VS
18987 grep -v '^ *+' conftest.er1 >conftest.err
18988 rm -f conftest.er1
18989 cat conftest.err >&5
a848cd7e
SC
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
dfe0c803
JS
18992 { ac_try='test -z "$ac_c_werror_flag"
18993 || test ! -s conftest.err'
ac1cb8d3
VS
18994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995 (eval $ac_try) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; } &&
18999 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; }; then
19005 ac_lo=$ac_mid; break
19006else
19007 echo "$as_me: failed program was:" >&5
19008sed 's/^/| /' conftest.$ac_ext >&5
19009
19010ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19011 if test $ac_mid -le $ac_hi; then
19012 ac_lo= ac_hi=
19013 break
19014 fi
19015 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19016fi
ac1cb8d3 19017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19018 done
19019else
19020 echo "$as_me: failed program was:" >&5
19021sed 's/^/| /' conftest.$ac_ext >&5
19022
19023ac_lo= ac_hi=
19024fi
ac1cb8d3 19025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19026fi
ac1cb8d3 19027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19028# Binary search between lo and hi bounds.
19029while test "x$ac_lo" != "x$ac_hi"; do
19030 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19031 cat >conftest.$ac_ext <<_ACEOF
19032/* confdefs.h. */
19033_ACEOF
19034cat confdefs.h >>conftest.$ac_ext
19035cat >>conftest.$ac_ext <<_ACEOF
19036/* end confdefs.h. */
19037$ac_includes_default
19038int
19039main ()
19040{
19041static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19042test_array [0] = 0
19043
19044 ;
19045 return 0;
19046}
19047_ACEOF
19048rm -f conftest.$ac_objext
19049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19050 (eval $ac_compile) 2>conftest.er1
a848cd7e 19051 ac_status=$?
ac1cb8d3
VS
19052 grep -v '^ *+' conftest.er1 >conftest.err
19053 rm -f conftest.er1
19054 cat conftest.err >&5
a848cd7e
SC
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); } &&
dfe0c803
JS
19057 { ac_try='test -z "$ac_c_werror_flag"
19058 || test ! -s conftest.err'
ac1cb8d3
VS
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19061 ac_status=$?
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; } &&
19064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; }; then
19070 ac_hi=$ac_mid
19071else
19072 echo "$as_me: failed program was:" >&5
19073sed 's/^/| /' conftest.$ac_ext >&5
19074
19075ac_lo=`expr '(' $ac_mid ')' + 1`
19076fi
ac1cb8d3 19077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19078done
19079case $ac_lo in
19080?*) ac_cv_sizeof_long_long=$ac_lo;;
19081'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19082See \`config.log' for more details." >&5
19083echo "$as_me: error: cannot compute sizeof (long long), 77
19084See \`config.log' for more details." >&2;}
19085 { (exit 1); exit 1; }; } ;;
19086esac
19087else
19088 if test "$cross_compiling" = yes; then
dfe0c803
JS
19089 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19090See \`config.log' for more details." >&5
19091echo "$as_me: error: cannot run test program while cross compiling
19092See \`config.log' for more details." >&2;}
a848cd7e
SC
19093 { (exit 1); exit 1; }; }
19094else
19095 cat >conftest.$ac_ext <<_ACEOF
19096/* confdefs.h. */
19097_ACEOF
19098cat confdefs.h >>conftest.$ac_ext
19099cat >>conftest.$ac_ext <<_ACEOF
19100/* end confdefs.h. */
19101$ac_includes_default
19102long longval () { return (long) (sizeof (long long)); }
19103unsigned long ulongval () { return (long) (sizeof (long long)); }
19104#include <stdio.h>
19105#include <stdlib.h>
19106int
19107main ()
19108{
19109
19110 FILE *f = fopen ("conftest.val", "w");
19111 if (! f)
19112 exit (1);
19113 if (((long) (sizeof (long long))) < 0)
19114 {
19115 long i = longval ();
19116 if (i != ((long) (sizeof (long long))))
19117 exit (1);
19118 fprintf (f, "%ld\n", i);
19119 }
19120 else
19121 {
19122 unsigned long i = ulongval ();
19123 if (i != ((long) (sizeof (long long))))
19124 exit (1);
19125 fprintf (f, "%lu\n", i);
19126 }
19127 exit (ferror (f) || fclose (f) != 0);
19128
19129 ;
19130 return 0;
19131}
19132_ACEOF
19133rm -f conftest$ac_exeext
19134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19135 (eval $ac_link) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
19144 ac_cv_sizeof_long_long=`cat conftest.val`
19145else
19146 echo "$as_me: program exited with status $ac_status" >&5
19147echo "$as_me: failed program was:" >&5
19148sed 's/^/| /' conftest.$ac_ext >&5
19149
19150( exit $ac_status )
19151{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19152See \`config.log' for more details." >&5
19153echo "$as_me: error: cannot compute sizeof (long long), 77
19154See \`config.log' for more details." >&2;}
19155 { (exit 1); exit 1; }; }
19156fi
ac1cb8d3 19157rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19158fi
19159fi
19160rm -f conftest.val
19161else
19162 ac_cv_sizeof_long_long=0
19163fi
19164fi
19165echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19166echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19167cat >>confdefs.h <<_ACEOF
19168#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19169_ACEOF
19170
19171
19172esac
19173
238ecede
MW
19174echo "$as_me:$LINENO: checking for wchar_t" >&5
19175echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19176if test "${ac_cv_type_wchar_t+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19178else
19179 cat >conftest.$ac_ext <<_ACEOF
19180/* confdefs.h. */
19181_ACEOF
19182cat confdefs.h >>conftest.$ac_ext
19183cat >>conftest.$ac_ext <<_ACEOF
19184/* end confdefs.h. */
19185
19186 /* DJGPP only has fake wchar_t: */
19187 #ifdef __DJGPP__
19188 # error "fake wchar_t"
19189 #endif
19190 #ifdef HAVE_WCHAR_H
19191 # ifdef __CYGWIN__
19192 # include <stddef.h>
19193 # endif
19194 # include <wchar.h>
19195 #endif
19196 #ifdef HAVE_STDLIB_H
19197 # include <stdlib.h>
19198 #endif
19199 #include <stdio.h>
19200
19201
19202
19203int
19204main ()
19205{
19206if ((wchar_t *) 0)
19207 return 0;
19208if (sizeof (wchar_t))
19209 return 0;
19210 ;
19211 return 0;
19212}
19213_ACEOF
19214rm -f conftest.$ac_objext
19215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19216 (eval $ac_compile) 2>conftest.er1
19217 ac_status=$?
19218 grep -v '^ *+' conftest.er1 >conftest.err
19219 rm -f conftest.er1
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } &&
dfe0c803
JS
19223 { ac_try='test -z "$ac_c_werror_flag"
19224 || test ! -s conftest.err'
238ecede
MW
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; } &&
19230 { ac_try='test -s conftest.$ac_objext'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; }; then
19236 ac_cv_type_wchar_t=yes
19237else
19238 echo "$as_me: failed program was:" >&5
19239sed 's/^/| /' conftest.$ac_ext >&5
19240
19241ac_cv_type_wchar_t=no
19242fi
19243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19244fi
19245echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19246echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19247
a848cd7e
SC
19248echo "$as_me:$LINENO: checking size of wchar_t" >&5
19249echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19250if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19251 echo $ECHO_N "(cached) $ECHO_C" >&6
19252else
238ecede
MW
19253 if test "$ac_cv_type_wchar_t" = yes; then
19254 # The cast to unsigned long works around a bug in the HP C Compiler
19255 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19256 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19257 # This bug is HP SR number 8606223364.
19258 if test "$cross_compiling" = yes; then
19259 # Depending upon the size, compute the lo and hi bounds.
19260cat >conftest.$ac_ext <<_ACEOF
19261/* confdefs.h. */
19262_ACEOF
19263cat confdefs.h >>conftest.$ac_ext
19264cat >>conftest.$ac_ext <<_ACEOF
19265/* end confdefs.h. */
19266
19267 /* DJGPP only has fake wchar_t: */
19268 #ifdef __DJGPP__
19269 # error "fake wchar_t"
19270 #endif
19271 #ifdef HAVE_WCHAR_H
19272 # ifdef __CYGWIN__
19273 # include <stddef.h>
19274 # endif
19275 # include <wchar.h>
19276 #endif
19277 #ifdef HAVE_STDLIB_H
19278 # include <stdlib.h>
19279 #endif
19280 #include <stdio.h>
19281
19282
19283
19284int
19285main ()
19286{
19287static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19288test_array [0] = 0
19289
19290 ;
19291 return 0;
19292}
19293_ACEOF
19294rm -f conftest.$ac_objext
19295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19296 (eval $ac_compile) 2>conftest.er1
19297 ac_status=$?
19298 grep -v '^ *+' conftest.er1 >conftest.err
19299 rm -f conftest.er1
19300 cat conftest.err >&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } &&
dfe0c803
JS
19303 { ac_try='test -z "$ac_c_werror_flag"
19304 || test ! -s conftest.err'
238ecede
MW
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; } &&
19310 { ac_try='test -s conftest.$ac_objext'
19311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312 (eval $ac_try) 2>&5
19313 ac_status=$?
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); }; }; then
19316 ac_lo=0 ac_mid=0
19317 while :; do
19318 cat >conftest.$ac_ext <<_ACEOF
19319/* confdefs.h. */
19320_ACEOF
19321cat confdefs.h >>conftest.$ac_ext
19322cat >>conftest.$ac_ext <<_ACEOF
19323/* end confdefs.h. */
19324
19325 /* DJGPP only has fake wchar_t: */
19326 #ifdef __DJGPP__
19327 # error "fake wchar_t"
19328 #endif
19329 #ifdef HAVE_WCHAR_H
19330 # ifdef __CYGWIN__
19331 # include <stddef.h>
19332 # endif
19333 # include <wchar.h>
19334 #endif
19335 #ifdef HAVE_STDLIB_H
19336 # include <stdlib.h>
19337 #endif
19338 #include <stdio.h>
19339
19340
19341
19342int
19343main ()
19344{
19345static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19346test_array [0] = 0
19347
19348 ;
19349 return 0;
19350}
19351_ACEOF
19352rm -f conftest.$ac_objext
19353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19354 (eval $ac_compile) 2>conftest.er1
19355 ac_status=$?
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
dfe0c803
JS
19361 { ac_try='test -z "$ac_c_werror_flag"
19362 || test ! -s conftest.err'
238ecede
MW
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try='test -s conftest.$ac_objext'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_hi=$ac_mid; break
19375else
19376 echo "$as_me: failed program was:" >&5
19377sed 's/^/| /' conftest.$ac_ext >&5
19378
19379ac_lo=`expr $ac_mid + 1`
19380 if test $ac_lo -le $ac_mid; then
19381 ac_lo= ac_hi=
19382 break
19383 fi
19384 ac_mid=`expr 2 '*' $ac_mid + 1`
19385fi
19386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19387 done
19388else
19389 echo "$as_me: failed program was:" >&5
19390sed 's/^/| /' conftest.$ac_ext >&5
19391
19392cat >conftest.$ac_ext <<_ACEOF
19393/* confdefs.h. */
19394_ACEOF
19395cat confdefs.h >>conftest.$ac_ext
19396cat >>conftest.$ac_ext <<_ACEOF
19397/* end confdefs.h. */
19398
19399 /* DJGPP only has fake wchar_t: */
19400 #ifdef __DJGPP__
19401 # error "fake wchar_t"
19402 #endif
19403 #ifdef HAVE_WCHAR_H
19404 # ifdef __CYGWIN__
19405 # include <stddef.h>
19406 # endif
19407 # include <wchar.h>
19408 #endif
19409 #ifdef HAVE_STDLIB_H
19410 # include <stdlib.h>
19411 #endif
19412 #include <stdio.h>
19413
19414
19415
19416int
19417main ()
19418{
19419static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19420test_array [0] = 0
19421
19422 ;
19423 return 0;
19424}
19425_ACEOF
19426rm -f conftest.$ac_objext
19427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19428 (eval $ac_compile) 2>conftest.er1
19429 ac_status=$?
19430 grep -v '^ *+' conftest.er1 >conftest.err
19431 rm -f conftest.er1
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } &&
dfe0c803
JS
19435 { ac_try='test -z "$ac_c_werror_flag"
19436 || test ! -s conftest.err'
238ecede
MW
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest.$ac_objext'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 ac_hi=-1 ac_mid=-1
19449 while :; do
19450 cat >conftest.$ac_ext <<_ACEOF
19451/* confdefs.h. */
19452_ACEOF
19453cat confdefs.h >>conftest.$ac_ext
19454cat >>conftest.$ac_ext <<_ACEOF
19455/* end confdefs.h. */
19456
19457 /* DJGPP only has fake wchar_t: */
19458 #ifdef __DJGPP__
19459 # error "fake wchar_t"
19460 #endif
19461 #ifdef HAVE_WCHAR_H
19462 # ifdef __CYGWIN__
19463 # include <stddef.h>
19464 # endif
19465 # include <wchar.h>
19466 #endif
19467 #ifdef HAVE_STDLIB_H
19468 # include <stdlib.h>
19469 #endif
19470 #include <stdio.h>
19471
19472
19473
19474int
19475main ()
19476{
19477static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19478test_array [0] = 0
19479
19480 ;
19481 return 0;
19482}
19483_ACEOF
19484rm -f conftest.$ac_objext
19485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19486 (eval $ac_compile) 2>conftest.er1
19487 ac_status=$?
19488 grep -v '^ *+' conftest.er1 >conftest.err
19489 rm -f conftest.er1
19490 cat conftest.err >&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } &&
dfe0c803
JS
19493 { ac_try='test -z "$ac_c_werror_flag"
19494 || test ! -s conftest.err'
238ecede
MW
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; } &&
19500 { ac_try='test -s conftest.$ac_objext'
19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19503 ac_status=$?
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; }; then
19506 ac_lo=$ac_mid; break
19507else
19508 echo "$as_me: failed program was:" >&5
19509sed 's/^/| /' conftest.$ac_ext >&5
19510
19511ac_hi=`expr '(' $ac_mid ')' - 1`
19512 if test $ac_mid -le $ac_hi; then
19513 ac_lo= ac_hi=
19514 break
19515 fi
19516 ac_mid=`expr 2 '*' $ac_mid`
19517fi
19518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19519 done
19520else
19521 echo "$as_me: failed program was:" >&5
19522sed 's/^/| /' conftest.$ac_ext >&5
19523
19524ac_lo= ac_hi=
19525fi
19526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19527fi
19528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19529# Binary search between lo and hi bounds.
19530while test "x$ac_lo" != "x$ac_hi"; do
19531 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19532 cat >conftest.$ac_ext <<_ACEOF
19533/* confdefs.h. */
19534_ACEOF
19535cat confdefs.h >>conftest.$ac_ext
19536cat >>conftest.$ac_ext <<_ACEOF
19537/* end confdefs.h. */
19538
19539 /* DJGPP only has fake wchar_t: */
19540 #ifdef __DJGPP__
19541 # error "fake wchar_t"
19542 #endif
19543 #ifdef HAVE_WCHAR_H
19544 # ifdef __CYGWIN__
19545 # include <stddef.h>
19546 # endif
19547 # include <wchar.h>
19548 #endif
19549 #ifdef HAVE_STDLIB_H
19550 # include <stdlib.h>
19551 #endif
19552 #include <stdio.h>
a848cd7e 19553
a848cd7e 19554
a848cd7e 19555
238ecede
MW
19556int
19557main ()
19558{
19559static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19560test_array [0] = 0
a848cd7e 19561
238ecede
MW
19562 ;
19563 return 0;
19564}
19565_ACEOF
19566rm -f conftest.$ac_objext
19567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19568 (eval $ac_compile) 2>conftest.er1
19569 ac_status=$?
19570 grep -v '^ *+' conftest.er1 >conftest.err
19571 rm -f conftest.er1
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } &&
dfe0c803
JS
19575 { ac_try='test -z "$ac_c_werror_flag"
19576 || test ! -s conftest.err'
238ecede
MW
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; } &&
19582 { ac_try='test -s conftest.$ac_objext'
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; }; then
19588 ac_hi=$ac_mid
19589else
19590 echo "$as_me: failed program was:" >&5
19591sed 's/^/| /' conftest.$ac_ext >&5
19592
19593ac_lo=`expr '(' $ac_mid ')' + 1`
19594fi
19595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19596done
19597case $ac_lo in
19598?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19599'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19600See \`config.log' for more details." >&5
19601echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19602See \`config.log' for more details." >&2;}
19603 { (exit 1); exit 1; }; } ;;
19604esac
19605else
19606 if test "$cross_compiling" = yes; then
dfe0c803
JS
19607 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19608See \`config.log' for more details." >&5
19609echo "$as_me: error: cannot run test program while cross compiling
19610See \`config.log' for more details." >&2;}
238ecede 19611 { (exit 1); exit 1; }; }
a848cd7e
SC
19612else
19613 cat >conftest.$ac_ext <<_ACEOF
19614/* confdefs.h. */
19615_ACEOF
19616cat confdefs.h >>conftest.$ac_ext
19617cat >>conftest.$ac_ext <<_ACEOF
19618/* end confdefs.h. */
19619
238ecede
MW
19620 /* DJGPP only has fake wchar_t: */
19621 #ifdef __DJGPP__
19622 # error "fake wchar_t"
19623 #endif
19624 #ifdef HAVE_WCHAR_H
19625 # ifdef __CYGWIN__
19626 # include <stddef.h>
19627 # endif
19628 # include <wchar.h>
19629 #endif
19630 #ifdef HAVE_STDLIB_H
19631 # include <stdlib.h>
19632 #endif
19633 #include <stdio.h>
19634
19635
19636
19637long longval () { return (long) (sizeof (wchar_t)); }
19638unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19639#include <stdio.h>
19640#include <stdlib.h>
19641int
19642main ()
19643{
a848cd7e 19644
238ecede
MW
19645 FILE *f = fopen ("conftest.val", "w");
19646 if (! f)
19647 exit (1);
19648 if (((long) (sizeof (wchar_t))) < 0)
19649 {
19650 long i = longval ();
19651 if (i != ((long) (sizeof (wchar_t))))
19652 exit (1);
19653 fprintf (f, "%ld\n", i);
19654 }
19655 else
19656 {
19657 unsigned long i = ulongval ();
19658 if (i != ((long) (sizeof (wchar_t))))
19659 exit (1);
19660 fprintf (f, "%lu\n", i);
19661 }
19662 exit (ferror (f) || fclose (f) != 0);
19663
19664 ;
19665 return 0;
19666}
a848cd7e
SC
19667_ACEOF
19668rm -f conftest$ac_exeext
19669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19670 (eval $ac_link) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19676 ac_status=$?
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; }; then
238ecede 19679 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19680else
19681 echo "$as_me: program exited with status $ac_status" >&5
19682echo "$as_me: failed program was:" >&5
19683sed 's/^/| /' conftest.$ac_ext >&5
19684
19685( exit $ac_status )
238ecede
MW
19686{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19687See \`config.log' for more details." >&5
19688echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19689See \`config.log' for more details." >&2;}
19690 { (exit 1); exit 1; }; }
a848cd7e 19691fi
ac1cb8d3 19692rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19693fi
a848cd7e 19694fi
238ecede
MW
19695rm -f conftest.val
19696else
19697 ac_cv_sizeof_wchar_t=0
19698fi
19699fi
19700echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19701echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19702cat >>confdefs.h <<_ACEOF
238ecede 19703#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19704_ACEOF
19705
19706
238ecede 19707
ba3d13e1
VZ
19708echo "$as_me:$LINENO: checking for va_copy" >&5
19709echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19710if test "${wx_cv_func_va_copy+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19712else
19713
19714 cat >conftest.$ac_ext <<_ACEOF
19715
19716 #include <stdarg.h>
19717 void foo(char *f, ...)
19718 {
19719 va_list ap1, ap2;
19720 va_start(ap1, f);
19721 va_copy(ap2, ap1);
19722 va_end(ap2);
19723 va_end(ap1);
19724 }
5886b072
VZ
19725 int main()
19726 {
b902e639
VZ
19727 foo("hi", 17);
19728 return 0;
5886b072 19729 }
ba3d13e1
VZ
19730_ACEOF
19731rm -f conftest.$ac_objext conftest$ac_exeext
19732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19733 (eval $ac_link) 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
dfe0c803
JS
19740 { ac_try='test -z "$ac_c_werror_flag"
19741 || test ! -s conftest.err'
ba3d13e1
VZ
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; } &&
19747 { ac_try='test -s conftest$ac_exeext'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19753 wx_cv_func_va_copy=yes
19754else
19755 echo "$as_me: failed program was:" >&5
19756sed 's/^/| /' conftest.$ac_ext >&5
19757
19758wx_cv_func_va_copy=no
19759
19760fi
19761rm -f conftest.err conftest.$ac_objext \
19762 conftest$ac_exeext conftest.$ac_ext
19763
19764
19765fi
19766echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19767echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19768
19769if test $wx_cv_func_va_copy = "yes"; then
19770 cat >>confdefs.h <<\_ACEOF
19771#define HAVE_VA_COPY 1
19772_ACEOF
19773
19774else
19775 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19776echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19777if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19779else
19780
19781 if test "$cross_compiling" = yes; then
19782 wx_cv_type_va_list_lvalue=yes
19783
19784else
19785 cat >conftest.$ac_ext <<_ACEOF
19786
19787 #include <stdarg.h>
19788 int foo(char *f, ...)
19789 {
19790 va_list ap1, ap2;
19791 va_start(ap1, f);
19792 ap2 = ap1;
19793 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19794 return 1;
19795 va_end(ap2);
19796 va_end(ap1);
19797 return 0;
19798 }
19799 int main()
19800 {
19801 return foo("hi", 17);
19802 }
19803_ACEOF
19804rm -f conftest$ac_exeext
19805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19806 (eval $ac_link) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19815 wx_cv_type_va_list_lvalue=yes
19816else
19817 echo "$as_me: program exited with status $ac_status" >&5
19818echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
19821( exit $ac_status )
19822wx_cv_type_va_list_lvalue=no
19823fi
19824rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19825fi
19826
19827
19828fi
19829echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19830echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19831
19832 if test $wx_cv_type_va_list_lvalue != "yes"; then
19833 cat >>confdefs.h <<\_ACEOF
19834#define VA_LIST_IS_ARRAY 1
19835_ACEOF
19836
19837 fi
19838fi
19839
a848cd7e
SC
19840# Check whether --enable-largefile or --disable-largefile was given.
19841if test "${enable_largefile+set}" = set; then
19842 enableval="$enable_largefile"
19843
19844fi;
19845if test "$enable_largefile" != no; then
19846 wx_largefile=no
19847
19848 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19849echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19850if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19852else
19853
19854 cat >conftest.$ac_ext <<_ACEOF
19855/* confdefs.h. */
19856_ACEOF
19857cat confdefs.h >>conftest.$ac_ext
19858cat >>conftest.$ac_ext <<_ACEOF
19859/* end confdefs.h. */
19860#define _FILE_OFFSET_BITS 64
19861 #include <sys/types.h>
19862int
19863main ()
19864{
19865typedef struct {
19866 unsigned int field: sizeof(off_t) == 8;
19867} wxlf;
19868
19869 ;
19870 return 0;
19871}
19872_ACEOF
19873rm -f conftest.$ac_objext
19874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19875 (eval $ac_compile) 2>conftest.er1
a848cd7e 19876 ac_status=$?
ac1cb8d3
VS
19877 grep -v '^ *+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
a848cd7e
SC
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } &&
dfe0c803
JS
19882 { ac_try='test -z "$ac_c_werror_flag"
19883 || test ! -s conftest.err'
ac1cb8d3
VS
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; } &&
19889 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
19895 ac_cv_sys_file_offset_bits=64
19896else
19897 echo "$as_me: failed program was:" >&5
19898sed 's/^/| /' conftest.$ac_ext >&5
19899
19900ac_cv_sys_file_offset_bits=no
19901fi
ac1cb8d3 19902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19903
19904
19905fi
19906echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19907echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19908
19909 if test "$ac_cv_sys_file_offset_bits" != no; then
19910 wx_largefile=yes
19911 cat >>confdefs.h <<_ACEOF
19912#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19913_ACEOF
19914
19915 fi
19916
19917 if test "x$wx_largefile" != "xyes"; then
19918
19919 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19920echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19921if test "${ac_cv_sys_large_files+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19923else
19924
19925 cat >conftest.$ac_ext <<_ACEOF
19926/* confdefs.h. */
19927_ACEOF
19928cat confdefs.h >>conftest.$ac_ext
19929cat >>conftest.$ac_ext <<_ACEOF
19930/* end confdefs.h. */
19931#define _LARGE_FILES 1
19932 #include <sys/types.h>
19933int
19934main ()
19935{
19936typedef struct {
19937 unsigned int field: sizeof(off_t) == 8;
19938} wxlf;
19939
19940 ;
19941 return 0;
19942}
19943_ACEOF
19944rm -f conftest.$ac_objext
19945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19946 (eval $ac_compile) 2>conftest.er1
a848cd7e 19947 ac_status=$?
ac1cb8d3
VS
19948 grep -v '^ *+' conftest.er1 >conftest.err
19949 rm -f conftest.er1
19950 cat conftest.err >&5
a848cd7e
SC
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); } &&
dfe0c803
JS
19953 { ac_try='test -z "$ac_c_werror_flag"
19954 || test ! -s conftest.err'
ac1cb8d3
VS
19955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19956 (eval $ac_try) 2>&5
19957 ac_status=$?
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; } &&
19960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19963 ac_status=$?
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; }; then
19966 ac_cv_sys_large_files=1
19967else
19968 echo "$as_me: failed program was:" >&5
19969sed 's/^/| /' conftest.$ac_ext >&5
19970
19971ac_cv_sys_large_files=no
19972fi
ac1cb8d3 19973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19974
19975
19976fi
19977echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19978echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19979
19980 if test "$ac_cv_sys_large_files" != no; then
19981 wx_largefile=yes
19982 cat >>confdefs.h <<_ACEOF
19983#define _LARGE_FILES $ac_cv_sys_large_files
19984_ACEOF
19985
19986 fi
19987
19988 fi
19989
19990 echo "$as_me:$LINENO: checking if large file support is available" >&5
19991echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19992 if test "x$wx_largefile" = "xyes"; then
19993 cat >>confdefs.h <<\_ACEOF
19994#define HAVE_LARGEFILE_SUPPORT 1
19995_ACEOF
19996
19997 fi
19998 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19999echo "${ECHO_T}$wx_largefile" >&6
20000fi
20001
5b674b9d
DE
20002
20003if test "x$wx_largefile" = "xyes"; then
20004 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20005 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
20006 else
20007 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20008 fi
20009 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20010echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20011if test "${ac_cv_sys_largefile_source+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20013else
20014 while :; do
20015 ac_cv_sys_largefile_source=no
20016 cat >conftest.$ac_ext <<_ACEOF
20017/* confdefs.h. */
20018_ACEOF
20019cat confdefs.h >>conftest.$ac_ext
20020cat >>conftest.$ac_ext <<_ACEOF
20021/* end confdefs.h. */
20022#include <stdio.h>
20023int
20024main ()
20025{
20026return !fseeko;
20027 ;
20028 return 0;
20029}
20030_ACEOF
20031rm -f conftest.$ac_objext
20032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20033 (eval $ac_compile) 2>conftest.er1
20034 ac_status=$?
20035 grep -v '^ *+' conftest.er1 >conftest.err
20036 rm -f conftest.er1
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } &&
dfe0c803
JS
20040 { ac_try='test -z "$ac_c_werror_flag"
20041 || test ! -s conftest.err'
5294a27e
VZ
20042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043 (eval $ac_try) 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; } &&
20047 { ac_try='test -s conftest.$ac_objext'
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; }; then
20053 break
20054else
20055 echo "$as_me: failed program was:" >&5
20056sed 's/^/| /' conftest.$ac_ext >&5
20057
20058fi
20059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20060 cat >conftest.$ac_ext <<_ACEOF
20061/* confdefs.h. */
20062_ACEOF
20063cat confdefs.h >>conftest.$ac_ext
20064cat >>conftest.$ac_ext <<_ACEOF
20065/* end confdefs.h. */
20066#define _LARGEFILE_SOURCE 1
20067#include <stdio.h>
20068int
20069main ()
20070{
20071return !fseeko;
20072 ;
20073 return 0;
20074}
20075_ACEOF
20076rm -f conftest.$ac_objext
20077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20078 (eval $ac_compile) 2>conftest.er1
20079 ac_status=$?
20080 grep -v '^ *+' conftest.er1 >conftest.err
20081 rm -f conftest.er1
20082 cat conftest.err >&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } &&
dfe0c803
JS
20085 { ac_try='test -z "$ac_c_werror_flag"
20086 || test ! -s conftest.err'
5294a27e
VZ
20087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20088 (eval $ac_try) 2>&5
20089 ac_status=$?
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; } &&
20092 { ac_try='test -s conftest.$ac_objext'
20093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094 (eval $ac_try) 2>&5
20095 ac_status=$?
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; }; then
20098 ac_cv_sys_largefile_source=1; break
20099else
20100 echo "$as_me: failed program was:" >&5
20101sed 's/^/| /' conftest.$ac_ext >&5
20102
20103fi
20104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20105 break
20106done
20107fi
20108echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20109echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20110if test "$ac_cv_sys_largefile_source" != no; then
20111
20112cat >>confdefs.h <<_ACEOF
20113#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20114_ACEOF
20115
20116fi
20117rm -f conftest*
20118
20119# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20120# in glibc 2.1.3, but that breaks too many other things.
20121# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20122echo "$as_me:$LINENO: checking for fseeko" >&5
20123echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20124if test "${ac_cv_func_fseeko+set}" = set; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20126else
20127 cat >conftest.$ac_ext <<_ACEOF
20128/* confdefs.h. */
20129_ACEOF
20130cat confdefs.h >>conftest.$ac_ext
20131cat >>conftest.$ac_ext <<_ACEOF
20132/* end confdefs.h. */
20133#include <stdio.h>
20134int
20135main ()
20136{
20137return fseeko && fseeko (stdin, 0, 0);
20138 ;
20139 return 0;
20140}
20141_ACEOF
20142rm -f conftest.$ac_objext conftest$ac_exeext
20143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20144 (eval $ac_link) 2>conftest.er1
20145 ac_status=$?
20146 grep -v '^ *+' conftest.er1 >conftest.err
20147 rm -f conftest.er1
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } &&
dfe0c803
JS
20151 { ac_try='test -z "$ac_c_werror_flag"
20152 || test ! -s conftest.err'
5294a27e
VZ
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; } &&
20158 { ac_try='test -s conftest$ac_exeext'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20164 ac_cv_func_fseeko=yes
20165else
20166 echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
20168
20169ac_cv_func_fseeko=no
20170fi
20171rm -f conftest.err conftest.$ac_objext \
20172 conftest$ac_exeext conftest.$ac_ext
20173fi
20174echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20175echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20176if test $ac_cv_func_fseeko = yes; then
20177
20178cat >>confdefs.h <<\_ACEOF
20179#define HAVE_FSEEKO 1
20180_ACEOF
20181
20182fi
20183
5b674b9d
DE
20184 if test "$ac_cv_sys_largefile_source" != no; then
20185 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20186 fi
20187 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20188fi
20189
20190echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20191echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20192if test "${ac_cv_c_bigendian+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20194else
20195 ac_cv_c_bigendian=unknown
20196# See if sys/param.h defines the BYTE_ORDER macro.
20197cat >conftest.$ac_ext <<_ACEOF
20198/* confdefs.h. */
20199_ACEOF
20200cat confdefs.h >>conftest.$ac_ext
20201cat >>conftest.$ac_ext <<_ACEOF
20202/* end confdefs.h. */
20203#include <sys/types.h>
20204#include <sys/param.h>
20205int
20206main ()
20207{
20208
20209#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20210 bogus endian macros
20211#endif
20212 ;
20213 return 0;
20214}
20215_ACEOF
20216rm -f conftest.$ac_objext
20217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20218 (eval $ac_compile) 2>conftest.er1
a848cd7e 20219 ac_status=$?
ac1cb8d3
VS
20220 grep -v '^ *+' conftest.er1 >conftest.err
20221 rm -f conftest.er1
20222 cat conftest.err >&5
a848cd7e
SC
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } &&
dfe0c803
JS
20225 { ac_try='test -z "$ac_c_werror_flag"
20226 || test ! -s conftest.err'
ac1cb8d3
VS
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20229 ac_status=$?
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } &&
20232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20238 # It does; now see whether it defined to BIG_ENDIAN or not.
20239cat >conftest.$ac_ext <<_ACEOF
20240/* confdefs.h. */
20241_ACEOF
20242cat confdefs.h >>conftest.$ac_ext
20243cat >>conftest.$ac_ext <<_ACEOF
20244/* end confdefs.h. */
20245#include <sys/types.h>
20246#include <sys/param.h>
20247int
20248main ()
20249{
20250
20251#if BYTE_ORDER != BIG_ENDIAN
20252 not big endian
20253#endif
20254 ;
20255 return 0;
20256}
20257_ACEOF
20258rm -f conftest.$ac_objext
20259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20260 (eval $ac_compile) 2>conftest.er1
a848cd7e 20261 ac_status=$?
ac1cb8d3
VS
20262 grep -v '^ *+' conftest.er1 >conftest.err
20263 rm -f conftest.er1
20264 cat conftest.err >&5
a848cd7e
SC
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } &&
dfe0c803
JS
20267 { ac_try='test -z "$ac_c_werror_flag"
20268 || test ! -s conftest.err'
ac1cb8d3
VS
20269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270 (eval $ac_try) 2>&5
20271 ac_status=$?
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); }; } &&
20274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276 (eval $ac_try) 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; }; then
20280 ac_cv_c_bigendian=yes
20281else
20282 echo "$as_me: failed program was:" >&5
20283sed 's/^/| /' conftest.$ac_ext >&5
20284
20285ac_cv_c_bigendian=no
20286fi
ac1cb8d3 20287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20288else
20289 echo "$as_me: failed program was:" >&5
20290sed 's/^/| /' conftest.$ac_ext >&5
20291
20292fi
ac1cb8d3 20293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20294if test $ac_cv_c_bigendian = unknown; then
20295if test "$cross_compiling" = yes; then
20296 ac_cv_c_bigendian=unknown
20297else
20298 cat >conftest.$ac_ext <<_ACEOF
20299/* confdefs.h. */
20300_ACEOF
20301cat confdefs.h >>conftest.$ac_ext
20302cat >>conftest.$ac_ext <<_ACEOF
20303/* end confdefs.h. */
20304main () {
20305 /* Are we little or big endian? From Harbison&Steele. */
20306 union
20307 {
20308 long l;
20309 char c[sizeof (long)];
20310 } u;
20311 u.l = 1;
20312 exit (u.c[sizeof (long) - 1] == 1);
20313}
20314_ACEOF
20315rm -f conftest$ac_exeext
20316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20317 (eval $ac_link) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20323 ac_status=$?
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
20326 ac_cv_c_bigendian=no
20327else
20328 echo "$as_me: program exited with status $ac_status" >&5
20329echo "$as_me: failed program was:" >&5
20330sed 's/^/| /' conftest.$ac_ext >&5
20331
20332( exit $ac_status )
20333ac_cv_c_bigendian=yes
20334fi
ac1cb8d3 20335rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20336fi
20337fi
20338fi
20339echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20340echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20341if test $ac_cv_c_bigendian = unknown; then
20342 { 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
20343echo "$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;}
20344fi
20345if test $ac_cv_c_bigendian = yes; then
20346 cat >>confdefs.h <<\_ACEOF
20347#define WORDS_BIGENDIAN 1
20348_ACEOF
20349
20350fi
20351
20352
20353ac_ext=cc
20354ac_cpp='$CXXCPP $CPPFLAGS'
20355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20358echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20359echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20360if test -z "$CXXCPP"; then
20361 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20363else
20364 # Double quotes because CXXCPP needs to be expanded
20365 for CXXCPP in "$CXX -E" "/lib/cpp"
20366 do
20367 ac_preproc_ok=false
20368for ac_cxx_preproc_warn_flag in '' yes
20369do
20370 # Use a header file that comes with gcc, so configuring glibc
20371 # with a fresh cross-compiler works.
20372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20373 # <limits.h> exists even on freestanding compilers.
20374 # On the NeXT, cc -E runs the code through the compiler's parser,
20375 # not just through cpp. "Syntax error" is here to catch this case.
20376 cat >conftest.$ac_ext <<_ACEOF
20377/* confdefs.h. */
20378_ACEOF
20379cat confdefs.h >>conftest.$ac_ext
20380cat >>conftest.$ac_ext <<_ACEOF
20381/* end confdefs.h. */
20382#ifdef __STDC__
20383# include <limits.h>
20384#else
20385# include <assert.h>
20386#endif
ac1cb8d3 20387 Syntax error
a848cd7e
SC
20388_ACEOF
20389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20391 ac_status=$?
20392 grep -v '^ *+' conftest.er1 >conftest.err
20393 rm -f conftest.er1
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } >/dev/null; then
20397 if test -s conftest.err; then
20398 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20399 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20400 else
20401 ac_cpp_err=
20402 fi
20403else
20404 ac_cpp_err=yes
20405fi
20406if test -z "$ac_cpp_err"; then
20407 :
20408else
20409 echo "$as_me: failed program was:" >&5
20410sed 's/^/| /' conftest.$ac_ext >&5
20411
20412 # Broken: fails on valid input.
20413continue
20414fi
20415rm -f conftest.err conftest.$ac_ext
20416
20417 # OK, works on sane cases. Now check whether non-existent headers
20418 # can be detected and how.
20419 cat >conftest.$ac_ext <<_ACEOF
20420/* confdefs.h. */
20421_ACEOF
20422cat confdefs.h >>conftest.$ac_ext
20423cat >>conftest.$ac_ext <<_ACEOF
20424/* end confdefs.h. */
20425#include <ac_nonexistent.h>
20426_ACEOF
20427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20429 ac_status=$?
20430 grep -v '^ *+' conftest.er1 >conftest.err
20431 rm -f conftest.er1
20432 cat conftest.err >&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } >/dev/null; then
20435 if test -s conftest.err; then
20436 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20437 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20438 else
20439 ac_cpp_err=
20440 fi
20441else
20442 ac_cpp_err=yes
20443fi
20444if test -z "$ac_cpp_err"; then
20445 # Broken: success on invalid input.
20446continue
20447else
20448 echo "$as_me: failed program was:" >&5
20449sed 's/^/| /' conftest.$ac_ext >&5
20450
20451 # Passes both tests.
20452ac_preproc_ok=:
20453break
20454fi
20455rm -f conftest.err conftest.$ac_ext
20456
20457done
20458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20459rm -f conftest.err conftest.$ac_ext
20460if $ac_preproc_ok; then
20461 break
20462fi
20463
20464 done
20465 ac_cv_prog_CXXCPP=$CXXCPP
20466
20467fi
20468 CXXCPP=$ac_cv_prog_CXXCPP
20469else
20470 ac_cv_prog_CXXCPP=$CXXCPP
20471fi
20472echo "$as_me:$LINENO: result: $CXXCPP" >&5
20473echo "${ECHO_T}$CXXCPP" >&6
20474ac_preproc_ok=false
20475for ac_cxx_preproc_warn_flag in '' yes
20476do
20477 # Use a header file that comes with gcc, so configuring glibc
20478 # with a fresh cross-compiler works.
20479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20480 # <limits.h> exists even on freestanding compilers.
20481 # On the NeXT, cc -E runs the code through the compiler's parser,
20482 # not just through cpp. "Syntax error" is here to catch this case.
20483 cat >conftest.$ac_ext <<_ACEOF
20484/* confdefs.h. */
20485_ACEOF
20486cat confdefs.h >>conftest.$ac_ext
20487cat >>conftest.$ac_ext <<_ACEOF
20488/* end confdefs.h. */
20489#ifdef __STDC__
20490# include <limits.h>
20491#else
20492# include <assert.h>
20493#endif
ac1cb8d3 20494 Syntax error
a848cd7e
SC
20495_ACEOF
20496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20498 ac_status=$?
20499 grep -v '^ *+' conftest.er1 >conftest.err
20500 rm -f conftest.er1
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } >/dev/null; then
20504 if test -s conftest.err; then
20505 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20506 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20507 else
20508 ac_cpp_err=
20509 fi
20510else
20511 ac_cpp_err=yes
20512fi
20513if test -z "$ac_cpp_err"; then
20514 :
20515else
20516 echo "$as_me: failed program was:" >&5
20517sed 's/^/| /' conftest.$ac_ext >&5
20518
20519 # Broken: fails on valid input.
20520continue
20521fi
20522rm -f conftest.err conftest.$ac_ext
20523
20524 # OK, works on sane cases. Now check whether non-existent headers
20525 # can be detected and how.
20526 cat >conftest.$ac_ext <<_ACEOF
20527/* confdefs.h. */
20528_ACEOF
20529cat confdefs.h >>conftest.$ac_ext
20530cat >>conftest.$ac_ext <<_ACEOF
20531/* end confdefs.h. */
20532#include <ac_nonexistent.h>
20533_ACEOF
20534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20536 ac_status=$?
20537 grep -v '^ *+' conftest.er1 >conftest.err
20538 rm -f conftest.er1
20539 cat conftest.err >&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); } >/dev/null; then
20542 if test -s conftest.err; then
20543 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20544 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20545 else
20546 ac_cpp_err=
20547 fi
20548else
20549 ac_cpp_err=yes
20550fi
20551if test -z "$ac_cpp_err"; then
20552 # Broken: success on invalid input.
20553continue
20554else
20555 echo "$as_me: failed program was:" >&5
20556sed 's/^/| /' conftest.$ac_ext >&5
20557
20558 # Passes both tests.
20559ac_preproc_ok=:
20560break
20561fi
20562rm -f conftest.err conftest.$ac_ext
20563
20564done
20565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20566rm -f conftest.err conftest.$ac_ext
20567if $ac_preproc_ok; then
20568 :
20569else
20570 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20571See \`config.log' for more details." >&5
20572echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20573See \`config.log' for more details." >&2;}
20574 { (exit 1); exit 1; }; }
20575fi
20576
20577ac_ext=cc
20578ac_cpp='$CXXCPP $CPPFLAGS'
20579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20582
20583
20584
20585
20586
20587 ac_ext=cc
20588ac_cpp='$CXXCPP $CPPFLAGS'
20589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20592
20593
20594
20595for ac_header in iostream
20596do
20597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20598if eval "test \"\${$as_ac_Header+set}\" = set"; then
20599 echo "$as_me:$LINENO: checking for $ac_header" >&5
20600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20601if eval "test \"\${$as_ac_Header+set}\" = set"; then
20602 echo $ECHO_N "(cached) $ECHO_C" >&6
20603fi
20604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20606else
20607 # Is the header compilable?
20608echo "$as_me:$LINENO: checking $ac_header usability" >&5
20609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20610cat >conftest.$ac_ext <<_ACEOF
20611/* confdefs.h. */
20612_ACEOF
20613cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h. */
20616$ac_includes_default
20617#include <$ac_header>
20618_ACEOF
20619rm -f conftest.$ac_objext
20620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20621 (eval $ac_compile) 2>conftest.er1
a848cd7e 20622 ac_status=$?
ac1cb8d3
VS
20623 grep -v '^ *+' conftest.er1 >conftest.err
20624 rm -f conftest.er1
20625 cat conftest.err >&5
a848cd7e
SC
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } &&
dfe0c803
JS
20628 { ac_try='test -z "$ac_cxx_werror_flag"
20629 || test ! -s conftest.err'
ac1cb8d3
VS
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; } &&
20635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
20641 ac_header_compiler=yes
20642else
20643 echo "$as_me: failed program was:" >&5
20644sed 's/^/| /' conftest.$ac_ext >&5
20645
20646ac_header_compiler=no
20647fi
ac1cb8d3 20648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20650echo "${ECHO_T}$ac_header_compiler" >&6
20651
20652# Is the header present?
20653echo "$as_me:$LINENO: checking $ac_header presence" >&5
20654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20655cat >conftest.$ac_ext <<_ACEOF
20656/* confdefs.h. */
20657_ACEOF
20658cat confdefs.h >>conftest.$ac_ext
20659cat >>conftest.$ac_ext <<_ACEOF
20660/* end confdefs.h. */
20661#include <$ac_header>
20662_ACEOF
20663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20665 ac_status=$?
20666 grep -v '^ *+' conftest.er1 >conftest.err
20667 rm -f conftest.er1
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } >/dev/null; then
20671 if test -s conftest.err; then
20672 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20673 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20674 else
20675 ac_cpp_err=
20676 fi
20677else
20678 ac_cpp_err=yes
20679fi
20680if test -z "$ac_cpp_err"; then
20681 ac_header_preproc=yes
20682else
20683 echo "$as_me: failed program was:" >&5
20684sed 's/^/| /' conftest.$ac_ext >&5
20685
20686 ac_header_preproc=no
20687fi
20688rm -f conftest.err conftest.$ac_ext
20689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20690echo "${ECHO_T}$ac_header_preproc" >&6
20691
20692# So? What about this header?
ac1cb8d3
VS
20693case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20694 yes:no: )
a848cd7e
SC
20695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20696echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20698echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20699 ac_header_preproc=yes
a848cd7e 20700 ;;
ac1cb8d3 20701 no:yes:* )
a848cd7e
SC
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20703echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20705echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20707echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20709echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20711echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20713echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20714 (
20715 cat <<\_ASBOX
ac1cb8d3
VS
20716## ----------------------------------------- ##
20717## Report this to wx-dev@lists.wxwidgets.org ##
20718## ----------------------------------------- ##
a848cd7e
SC
20719_ASBOX
20720 ) |
20721 sed "s/^/$as_me: WARNING: /" >&2
20722 ;;
20723esac
20724echo "$as_me:$LINENO: checking for $ac_header" >&5
20725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20726if eval "test \"\${$as_ac_Header+set}\" = set"; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20728else
ac1cb8d3 20729 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20730fi
20731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20733
20734fi
20735if test `eval echo '${'$as_ac_Header'}'` = yes; then
20736 cat >>confdefs.h <<_ACEOF
20737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20738_ACEOF
20739
20740fi
20741
20742done
20743
20744
20745 if test "$ac_cv_header_iostream" = "yes" ; then
20746 :
20747 else
20748 cat >>confdefs.h <<\_ACEOF
20749#define wxUSE_IOSTREAMH 1
20750_ACEOF
20751
20752 fi
20753
20754 ac_ext=c
20755ac_cpp='$CPP $CPPFLAGS'
20756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20758ac_compiler_gnu=$ac_cv_c_compiler_gnu
20759
20760
20761
20762
20763 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20764echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20765if test "${wx_cv_cpp_bool+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20767else
20768
20769
20770
20771 ac_ext=cc
20772ac_cpp='$CXXCPP $CPPFLAGS'
20773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20776
20777
20778 cat >conftest.$ac_ext <<_ACEOF
20779/* confdefs.h. */
20780_ACEOF
20781cat confdefs.h >>conftest.$ac_ext
20782cat >>conftest.$ac_ext <<_ACEOF
20783/* end confdefs.h. */
20784
20785
20786int
20787main ()
20788{
20789
20790 bool b = true;
20791
20792 return 0;
20793
20794 ;
20795 return 0;
20796}
20797_ACEOF
20798rm -f conftest.$ac_objext
20799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20800 (eval $ac_compile) 2>conftest.er1
a848cd7e 20801 ac_status=$?
ac1cb8d3
VS
20802 grep -v '^ *+' conftest.er1 >conftest.err
20803 rm -f conftest.er1
20804 cat conftest.err >&5
a848cd7e
SC
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } &&
dfe0c803
JS
20807 { ac_try='test -z "$ac_cxx_werror_flag"
20808 || test ! -s conftest.err'
ac1cb8d3
VS
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20811 ac_status=$?
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; } &&
20814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820
20821 wx_cv_cpp_bool=yes
20822
20823else
20824 echo "$as_me: failed program was:" >&5
20825sed 's/^/| /' conftest.$ac_ext >&5
20826
20827
20828 wx_cv_cpp_bool=no
20829
20830
20831fi
ac1cb8d3 20832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20833
20834 ac_ext=c
20835ac_cpp='$CPP $CPPFLAGS'
20836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20838ac_compiler_gnu=$ac_cv_c_compiler_gnu
20839
20840
20841fi
20842echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20843echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20844
20845 if test "$wx_cv_cpp_bool" = "yes"; then
20846 cat >>confdefs.h <<\_ACEOF
20847#define HAVE_BOOL 1
20848_ACEOF
20849
20850 fi
20851
20852
20853
20854 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20855echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20856if test "${wx_cv_explicit+set}" = set; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20858else
20859
20860
20861
20862 ac_ext=cc
20863ac_cpp='$CXXCPP $CPPFLAGS'
20864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20867
20868
20869 cat >conftest.$ac_ext <<_ACEOF
20870/* confdefs.h. */
20871_ACEOF
20872cat confdefs.h >>conftest.$ac_ext
20873cat >>conftest.$ac_ext <<_ACEOF
20874/* end confdefs.h. */
20875
20876 class Foo { public: explicit Foo(int) {} };
20877
20878int
20879main ()
20880{
20881
20882 return 0;
20883
20884 ;
20885 return 0;
20886}
20887_ACEOF
20888rm -f conftest.$ac_objext
20889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20890 (eval $ac_compile) 2>conftest.er1
a848cd7e 20891 ac_status=$?
ac1cb8d3
VS
20892 grep -v '^ *+' conftest.er1 >conftest.err
20893 rm -f conftest.er1
20894 cat conftest.err >&5
a848cd7e
SC
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
dfe0c803
JS
20897 { ac_try='test -z "$ac_cxx_werror_flag"
20898 || test ! -s conftest.err'
ac1cb8d3
VS
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; } &&
20904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910
20911 cat >conftest.$ac_ext <<_ACEOF
20912/* confdefs.h. */
20913_ACEOF
20914cat confdefs.h >>conftest.$ac_ext
20915cat >>conftest.$ac_ext <<_ACEOF
20916/* end confdefs.h. */
20917
20918 class Foo { public: explicit Foo(int) {} };
20919 static void TakeFoo(const Foo& foo) { }
20920
20921int
20922main ()
20923{
20924
20925 TakeFoo(17);
20926 return 0;
20927
20928 ;
20929 return 0;
20930}
20931_ACEOF
20932rm -f conftest.$ac_objext
20933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20934 (eval $ac_compile) 2>conftest.er1
a848cd7e 20935 ac_status=$?
ac1cb8d3
VS
20936 grep -v '^ *+' conftest.er1 >conftest.err
20937 rm -f conftest.er1
20938 cat conftest.err >&5
a848cd7e
SC
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } &&
dfe0c803
JS
20941 { ac_try='test -z "$ac_cxx_werror_flag"
20942 || test ! -s conftest.err'
ac1cb8d3
VS
20943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944 (eval $ac_try) 2>&5
20945 ac_status=$?
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; } &&
20948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950 (eval $ac_try) 2>&5
20951 ac_status=$?
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; }; then
20954 wx_cv_explicit=no
20955else
20956 echo "$as_me: failed program was:" >&5
20957sed 's/^/| /' conftest.$ac_ext >&5
20958
20959wx_cv_explicit=yes
20960
20961fi
ac1cb8d3 20962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20963
20964else
20965 echo "$as_me: failed program was:" >&5
20966sed 's/^/| /' conftest.$ac_ext >&5
20967
20968wx_cv_explicit=no
20969
20970fi
ac1cb8d3 20971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20972
20973 ac_ext=c
20974ac_cpp='$CPP $CPPFLAGS'
20975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20977ac_compiler_gnu=$ac_cv_c_compiler_gnu
20978
20979
20980fi
20981echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20982echo "${ECHO_T}$wx_cv_explicit" >&6
20983
20984 if test "$wx_cv_explicit" = "yes"; then
20985 cat >>confdefs.h <<\_ACEOF
20986#define HAVE_EXPLICIT 1
20987_ACEOF
20988
20989 fi
20990
20991
20992echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20993echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20994if test "${ac_cv_cxx_const_cast+set}" = set; then
20995 echo $ECHO_N "(cached) $ECHO_C" >&6
20996else
20997
20998
20999 ac_ext=cc
21000ac_cpp='$CXXCPP $CPPFLAGS'
21001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21004
21005 cat >conftest.$ac_ext <<_ACEOF
21006/* confdefs.h. */
21007_ACEOF
21008cat confdefs.h >>conftest.$ac_ext
21009cat >>conftest.$ac_ext <<_ACEOF
21010/* end confdefs.h. */
21011
21012int
21013main ()
21014{
21015int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21016 ;
21017 return 0;
21018}
21019_ACEOF
21020rm -f conftest.$ac_objext
21021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21022 (eval $ac_compile) 2>conftest.er1
a848cd7e 21023 ac_status=$?
ac1cb8d3
VS
21024 grep -v '^ *+' conftest.er1 >conftest.err
21025 rm -f conftest.er1
21026 cat conftest.err >&5
a848cd7e
SC
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
dfe0c803
JS
21029 { ac_try='test -z "$ac_cxx_werror_flag"
21030 || test ! -s conftest.err'
ac1cb8d3
VS
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21039 ac_status=$?
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 ac_cv_cxx_const_cast=yes
21043else
21044 echo "$as_me: failed program was:" >&5
21045sed 's/^/| /' conftest.$ac_ext >&5
21046
21047ac_cv_cxx_const_cast=no
21048fi
ac1cb8d3 21049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21050 ac_ext=c
21051ac_cpp='$CPP $CPPFLAGS'
21052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21054ac_compiler_gnu=$ac_cv_c_compiler_gnu
21055
21056
21057fi
21058echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21059echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21060if test "$ac_cv_cxx_const_cast" = yes; then
21061
21062cat >>confdefs.h <<\_ACEOF
21063#define HAVE_CONST_CAST
21064_ACEOF
21065
21066fi
21067
7714864e
RL
21068echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21069echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21070if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21071 echo $ECHO_N "(cached) $ECHO_C" >&6
21072else
21073
21074
21075 ac_ext=cc
21076ac_cpp='$CXXCPP $CPPFLAGS'
21077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21080
21081 cat >conftest.$ac_ext <<_ACEOF
21082/* confdefs.h. */
21083_ACEOF
21084cat confdefs.h >>conftest.$ac_ext
21085cat >>conftest.$ac_ext <<_ACEOF
21086/* end confdefs.h. */
21087#include <typeinfo>
21088class Base { public : Base () {} virtual void f () = 0;};
21089class Derived : public Base { public : Derived () {} virtual void f () {} };
21090class Unrelated { public : Unrelated () {} };
21091int g (Unrelated&) { return 0; }
21092int
21093main ()
21094{
21095
21096Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21097 ;
21098 return 0;
21099}
21100_ACEOF
21101rm -f conftest.$ac_objext
21102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21103 (eval $ac_compile) 2>conftest.er1
21104 ac_status=$?
21105 grep -v '^ *+' conftest.er1 >conftest.err
21106 rm -f conftest.er1
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } &&
dfe0c803
JS
21110 { ac_try='test -z "$ac_cxx_werror_flag"
21111 || test ! -s conftest.err'
7714864e
RL
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21114 ac_status=$?
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; } &&
21117 { ac_try='test -s conftest.$ac_objext'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21123 ac_cv_cxx_reinterpret_cast=yes
21124else
21125 echo "$as_me: failed program was:" >&5
21126sed 's/^/| /' conftest.$ac_ext >&5
21127
21128ac_cv_cxx_reinterpret_cast=no
21129fi
21130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21131 ac_ext=c
21132ac_cpp='$CPP $CPPFLAGS'
21133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135ac_compiler_gnu=$ac_cv_c_compiler_gnu
21136
21137
21138fi
21139echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21140echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21141if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21142
21143cat >>confdefs.h <<\_ACEOF
21144#define HAVE_REINTERPRET_CAST
21145_ACEOF
21146
21147fi
21148
a848cd7e
SC
21149echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21150echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21151if test "${ac_cv_cxx_static_cast+set}" = set; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21153else
21154
21155
21156 ac_ext=cc
21157ac_cpp='$CXXCPP $CPPFLAGS'
21158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21161
21162 cat >conftest.$ac_ext <<_ACEOF
21163/* confdefs.h. */
21164_ACEOF
21165cat confdefs.h >>conftest.$ac_ext
21166cat >>conftest.$ac_ext <<_ACEOF
21167/* end confdefs.h. */
21168#include <typeinfo>
21169class Base { public : Base () {} virtual void f () = 0; };
21170class Derived : public Base { public : Derived () {} virtual void f () {} };
21171int g (Derived&) { return 0; }
21172int
21173main ()
21174{
21175
21176Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21177 ;
21178 return 0;
21179}
21180_ACEOF
21181rm -f conftest.$ac_objext
21182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21183 (eval $ac_compile) 2>conftest.er1
a848cd7e 21184 ac_status=$?
ac1cb8d3
VS
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
a848cd7e
SC
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
dfe0c803
JS
21190 { ac_try='test -z "$ac_cxx_werror_flag"
21191 || test ! -s conftest.err'
ac1cb8d3
VS
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_cxx_static_cast=yes
21204else
21205 echo "$as_me: failed program was:" >&5
21206sed 's/^/| /' conftest.$ac_ext >&5
21207
21208ac_cv_cxx_static_cast=no
21209fi
ac1cb8d3 21210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21211 ac_ext=c
21212ac_cpp='$CPP $CPPFLAGS'
21213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21215ac_compiler_gnu=$ac_cv_c_compiler_gnu
21216
21217
21218fi
21219echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21220echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21221if test "$ac_cv_cxx_static_cast" = yes; then
21222
21223cat >>confdefs.h <<\_ACEOF
21224#define HAVE_STATIC_CAST
21225_ACEOF
21226
21227fi
21228
21229
21230if test "$wxUSE_STL" = "yes"; then
21231 ac_ext=cc
21232ac_cpp='$CXXCPP $CPPFLAGS'
21233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21236
21237
21238 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21239echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
21240 cat >conftest.$ac_ext <<_ACEOF
21241/* confdefs.h. */
21242_ACEOF
21243cat confdefs.h >>conftest.$ac_ext
21244cat >>conftest.$ac_ext <<_ACEOF
21245/* end confdefs.h. */
21246#include <string>
21247 #include <functional>
21248 #include <algorithm>
21249 #include <vector>
21250 #include <list>
21251int
21252main ()
21253{
21254std::vector<int> moo;
21255 std::list<int> foo;
21256 std::vector<int>::iterator it =
21257 std::find_if(moo.begin(), moo.end(),
21258 std::bind2nd(std::less<int>(), 3));
21259 ;
21260 return 0;
21261}
21262_ACEOF
21263rm -f conftest.$ac_objext
21264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21265 (eval $ac_compile) 2>conftest.er1
a848cd7e 21266 ac_status=$?
ac1cb8d3
VS
21267 grep -v '^ *+' conftest.er1 >conftest.err
21268 rm -f conftest.er1
21269 cat conftest.err >&5
a848cd7e
SC
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } &&
dfe0c803
JS
21272 { ac_try='test -z "$ac_cxx_werror_flag"
21273 || test ! -s conftest.err'
ac1cb8d3
VS
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; } &&
21279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 echo "$as_me:$LINENO: result: yes" >&5
21286echo "${ECHO_T}yes" >&6
21287else
21288 echo "$as_me: failed program was:" >&5
21289sed 's/^/| /' conftest.$ac_ext >&5
21290
21291echo "$as_me:$LINENO: result: no" >&5
21292echo "${ECHO_T}no" >&6
21293 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21294echo "$as_me: error: Basic STL functionality missing" >&2;}
21295 { (exit 1); exit 1; }; }
21296fi
ac1cb8d3 21297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21298
21299 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21300echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
21301 cat >conftest.$ac_ext <<_ACEOF
21302/* confdefs.h. */
21303_ACEOF
21304cat confdefs.h >>conftest.$ac_ext
21305cat >>conftest.$ac_ext <<_ACEOF
21306/* end confdefs.h. */
21307#include <string>
21308int
21309main ()
21310{
21311std::wstring foo;
21312 ;
21313 return 0;
21314}
21315_ACEOF
21316rm -f conftest.$ac_objext
21317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21318 (eval $ac_compile) 2>conftest.er1
a848cd7e 21319 ac_status=$?
ac1cb8d3
VS
21320 grep -v '^ *+' conftest.er1 >conftest.err
21321 rm -f conftest.er1
21322 cat conftest.err >&5
a848cd7e
SC
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } &&
dfe0c803
JS
21325 { ac_try='test -z "$ac_cxx_werror_flag"
21326 || test ! -s conftest.err'
ac1cb8d3
VS
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; } &&
21332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21335 ac_status=$?
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; }; then
21338 echo "$as_me:$LINENO: result: yes" >&5
21339echo "${ECHO_T}yes" >&6
21340 cat >>confdefs.h <<\_ACEOF
21341#define HAVE_STD_WSTRING 1
21342_ACEOF
21343
21344else
21345 echo "$as_me: failed program was:" >&5
21346sed 's/^/| /' conftest.$ac_ext >&5
21347
21348echo "$as_me:$LINENO: result: no" >&5
21349echo "${ECHO_T}no" >&6
21350fi
ac1cb8d3 21351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21352
21353 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21354echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21355 cat >conftest.$ac_ext <<_ACEOF
21356/* confdefs.h. */
21357_ACEOF
21358cat confdefs.h >>conftest.$ac_ext
21359cat >>conftest.$ac_ext <<_ACEOF
21360/* end confdefs.h. */
21361#include <string>
21362int
21363main ()
21364{
21365std::string foo, bar;
21366 foo.compare(bar);
21367 foo.compare(1, 1, bar);
21368 foo.compare(1, 1, bar, 1, 1);
21369 foo.compare("");
21370 foo.compare(1, 1, "");
21371 foo.compare(1, 1, "", 2);
21372 ;
21373 return 0;
21374}
21375_ACEOF
21376rm -f conftest.$ac_objext
21377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21378 (eval $ac_compile) 2>conftest.er1
a848cd7e 21379 ac_status=$?
ac1cb8d3
VS
21380 grep -v '^ *+' conftest.er1 >conftest.err
21381 rm -f conftest.er1
21382 cat conftest.err >&5
a848cd7e
SC
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); } &&
dfe0c803
JS
21385 { ac_try='test -z "$ac_cxx_werror_flag"
21386 || test ! -s conftest.err'
ac1cb8d3
VS
21387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21388 (eval $ac_try) 2>&5
21389 ac_status=$?
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); }; } &&
21392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394 (eval $ac_try) 2>&5
21395 ac_status=$?
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); }; }; then
21398 echo "$as_me:$LINENO: result: yes" >&5
21399echo "${ECHO_T}yes" >&6
21400 cat >>confdefs.h <<\_ACEOF
21401#define HAVE_STD_STRING_COMPARE 1
21402_ACEOF
21403
21404else
21405 echo "$as_me: failed program was:" >&5
21406sed 's/^/| /' conftest.$ac_ext >&5
21407
21408echo "$as_me:$LINENO: result: no" >&5
21409echo "${ECHO_T}no" >&6
21410fi
ac1cb8d3 21411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21412
21413 if test "${ac_cv_header_hash_map+set}" = set; then
21414 echo "$as_me:$LINENO: checking for hash_map" >&5
21415echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21416if test "${ac_cv_header_hash_map+set}" = set; then
21417 echo $ECHO_N "(cached) $ECHO_C" >&6
21418fi
21419echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21420echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21421else
21422 # Is the header compilable?
21423echo "$as_me:$LINENO: checking hash_map usability" >&5
21424echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21425cat >conftest.$ac_ext <<_ACEOF
21426/* confdefs.h. */
21427_ACEOF
21428cat confdefs.h >>conftest.$ac_ext
21429cat >>conftest.$ac_ext <<_ACEOF
21430/* end confdefs.h. */
21431$ac_includes_default
21432#include <hash_map>
21433_ACEOF
21434rm -f conftest.$ac_objext
21435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21436 (eval $ac_compile) 2>conftest.er1
bdcade0a 21437 ac_status=$?
ac1cb8d3
VS
21438 grep -v '^ *+' conftest.er1 >conftest.err
21439 rm -f conftest.er1
21440 cat conftest.err >&5
bdcade0a
MB
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } &&
dfe0c803
JS
21443 { ac_try='test -z "$ac_cxx_werror_flag"
21444 || test ! -s conftest.err'
ac1cb8d3
VS
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; } &&
21450 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452 (eval $ac_try) 2>&5
21453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; }; then
21456 ac_header_compiler=yes
21457else
21458 echo "$as_me: failed program was:" >&5
21459sed 's/^/| /' conftest.$ac_ext >&5
21460
21461ac_header_compiler=no
21462fi
ac1cb8d3 21463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21465echo "${ECHO_T}$ac_header_compiler" >&6
21466
21467# Is the header present?
21468echo "$as_me:$LINENO: checking hash_map presence" >&5
21469echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21470cat >conftest.$ac_ext <<_ACEOF
21471/* confdefs.h. */
21472_ACEOF
21473cat confdefs.h >>conftest.$ac_ext
21474cat >>conftest.$ac_ext <<_ACEOF
21475/* end confdefs.h. */
21476#include <hash_map>
21477_ACEOF
21478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21480 ac_status=$?
21481 grep -v '^ *+' conftest.er1 >conftest.err
21482 rm -f conftest.er1
21483 cat conftest.err >&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } >/dev/null; then
21486 if test -s conftest.err; then
21487 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21488 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21489 else
21490 ac_cpp_err=
21491 fi
21492else
21493 ac_cpp_err=yes
21494fi
21495if test -z "$ac_cpp_err"; then
21496 ac_header_preproc=yes
21497else
21498 echo "$as_me: failed program was:" >&5
21499sed 's/^/| /' conftest.$ac_ext >&5
21500
21501 ac_header_preproc=no
21502fi
21503rm -f conftest.err conftest.$ac_ext
21504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21505echo "${ECHO_T}$ac_header_preproc" >&6
21506
21507# So? What about this header?
ac1cb8d3
VS
21508case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21509 yes:no: )
bdcade0a
MB
21510 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21511echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21512 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21513echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21514 ac_header_preproc=yes
bdcade0a 21515 ;;
ac1cb8d3 21516 no:yes:* )
bdcade0a
MB
21517 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21518echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21519 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21520echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21522echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21524echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21525 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21526echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21527 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21528echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21529 (
21530 cat <<\_ASBOX
ac1cb8d3
VS
21531## ----------------------------------------- ##
21532## Report this to wx-dev@lists.wxwidgets.org ##
21533## ----------------------------------------- ##
bdcade0a
MB
21534_ASBOX
21535 ) |
21536 sed "s/^/$as_me: WARNING: /" >&2
21537 ;;
21538esac
21539echo "$as_me:$LINENO: checking for hash_map" >&5
21540echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21541if test "${ac_cv_header_hash_map+set}" = set; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21543else
21544 ac_cv_header_hash_map=$ac_header_preproc
21545fi
21546echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21547echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21548
21549fi
21550if test $ac_cv_header_hash_map = yes; then
21551 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21552echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21553 cat >conftest.$ac_ext <<_ACEOF
21554/* confdefs.h. */
21555_ACEOF
21556cat confdefs.h >>conftest.$ac_ext
21557cat >>conftest.$ac_ext <<_ACEOF
21558/* end confdefs.h. */
21559#include <hash_map>
21560 #include <hash_set>
21561int
21562main ()
21563{
21564std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21565 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21566 ;
21567 return 0;
21568}
21569_ACEOF
21570rm -f conftest.$ac_objext
21571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21572 (eval $ac_compile) 2>conftest.er1
bdcade0a 21573 ac_status=$?
ac1cb8d3
VS
21574 grep -v '^ *+' conftest.er1 >conftest.err
21575 rm -f conftest.er1
21576 cat conftest.err >&5
bdcade0a
MB
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } &&
dfe0c803
JS
21579 { ac_try='test -z "$ac_cxx_werror_flag"
21580 || test ! -s conftest.err'
ac1cb8d3
VS
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21583 ac_status=$?
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; } &&
21586 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21589 ac_status=$?
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21592 echo "$as_me:$LINENO: result: yes" >&5
21593echo "${ECHO_T}yes" >&6
21594 cat >>confdefs.h <<\_ACEOF
21595#define HAVE_HASH_MAP 1
21596_ACEOF
21597
21598 cat >>confdefs.h <<\_ACEOF
21599#define HAVE_STD_HASH_MAP 1
21600_ACEOF
21601
21602else
21603 echo "$as_me: failed program was:" >&5
21604sed 's/^/| /' conftest.$ac_ext >&5
21605
21606echo "$as_me:$LINENO: result: no" >&5
21607echo "${ECHO_T}no" >&6
21608fi
ac1cb8d3 21609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21610
21611fi
21612
21613
21614
21615 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21616 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21617echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21618if test "${ac_cv_header_ext_hash_map+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21620fi
21621echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21622echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21623else
21624 # Is the header compilable?
21625echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21626echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21627cat >conftest.$ac_ext <<_ACEOF
21628/* confdefs.h. */
21629_ACEOF
21630cat confdefs.h >>conftest.$ac_ext
21631cat >>conftest.$ac_ext <<_ACEOF
21632/* end confdefs.h. */
21633$ac_includes_default
21634#include <ext/hash_map>
21635_ACEOF
21636rm -f conftest.$ac_objext
21637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21638 (eval $ac_compile) 2>conftest.er1
bdcade0a 21639 ac_status=$?
ac1cb8d3
VS
21640 grep -v '^ *+' conftest.er1 >conftest.err
21641 rm -f conftest.er1
21642 cat conftest.err >&5
bdcade0a
MB
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } &&
dfe0c803
JS
21645 { ac_try='test -z "$ac_cxx_werror_flag"
21646 || test ! -s conftest.err'
ac1cb8d3
VS
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; } &&
21652 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 ac_header_compiler=yes
21659else
21660 echo "$as_me: failed program was:" >&5
21661sed 's/^/| /' conftest.$ac_ext >&5
21662
21663ac_header_compiler=no
21664fi
ac1cb8d3 21665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21666echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21667echo "${ECHO_T}$ac_header_compiler" >&6
21668
21669# Is the header present?
21670echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21671echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21672cat >conftest.$ac_ext <<_ACEOF
21673/* confdefs.h. */
21674_ACEOF
21675cat confdefs.h >>conftest.$ac_ext
21676cat >>conftest.$ac_ext <<_ACEOF
21677/* end confdefs.h. */
21678#include <ext/hash_map>
21679_ACEOF
21680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21682 ac_status=$?
21683 grep -v '^ *+' conftest.er1 >conftest.err
21684 rm -f conftest.er1
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } >/dev/null; then
21688 if test -s conftest.err; then
21689 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21690 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21691 else
21692 ac_cpp_err=
21693 fi
21694else
21695 ac_cpp_err=yes
21696fi
21697if test -z "$ac_cpp_err"; then
21698 ac_header_preproc=yes
21699else
21700 echo "$as_me: failed program was:" >&5
21701sed 's/^/| /' conftest.$ac_ext >&5
21702
21703 ac_header_preproc=no
21704fi
21705rm -f conftest.err conftest.$ac_ext
21706echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21707echo "${ECHO_T}$ac_header_preproc" >&6
21708
21709# So? What about this header?
ac1cb8d3
VS
21710case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21711 yes:no: )
bdcade0a
MB
21712 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21713echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21714 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21715echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21716 ac_header_preproc=yes
bdcade0a 21717 ;;
ac1cb8d3 21718 no:yes:* )
bdcade0a
MB
21719 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21720echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21721 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21722echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21723 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21724echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21725 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21726echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21727 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21728echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21729 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21730echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21731 (
21732 cat <<\_ASBOX
ac1cb8d3
VS
21733## ----------------------------------------- ##
21734## Report this to wx-dev@lists.wxwidgets.org ##
21735## ----------------------------------------- ##
bdcade0a
MB
21736_ASBOX
21737 ) |
21738 sed "s/^/$as_me: WARNING: /" >&2
21739 ;;
21740esac
21741echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21742echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21743if test "${ac_cv_header_ext_hash_map+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21745else
21746 ac_cv_header_ext_hash_map=$ac_header_preproc
21747fi
21748echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21749echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21750
21751fi
21752if test $ac_cv_header_ext_hash_map = yes; then
21753 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21754echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21755 cat >conftest.$ac_ext <<_ACEOF
21756/* confdefs.h. */
21757_ACEOF
21758cat confdefs.h >>conftest.$ac_ext
21759cat >>conftest.$ac_ext <<_ACEOF
21760/* end confdefs.h. */
21761#include <ext/hash_map>
21762 #include <ext/hash_set>
21763int
21764main ()
21765{
21766__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21767 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21768 ;
21769 return 0;
21770}
21771_ACEOF
21772rm -f conftest.$ac_objext
21773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21774 (eval $ac_compile) 2>conftest.er1
bdcade0a 21775 ac_status=$?
ac1cb8d3
VS
21776 grep -v '^ *+' conftest.er1 >conftest.err
21777 rm -f conftest.er1
21778 cat conftest.err >&5
bdcade0a
MB
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } &&
dfe0c803
JS
21781 { ac_try='test -z "$ac_cxx_werror_flag"
21782 || test ! -s conftest.err'
ac1cb8d3
VS
21783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784 (eval $ac_try) 2>&5
21785 ac_status=$?
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); }; } &&
21788 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21790 (eval $ac_try) 2>&5
21791 ac_status=$?
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); }; }; then
21794 echo "$as_me:$LINENO: result: yes" >&5
21795echo "${ECHO_T}yes" >&6
21796 cat >>confdefs.h <<\_ACEOF
21797#define HAVE_EXT_HASH_MAP 1
21798_ACEOF
21799
21800 cat >>confdefs.h <<\_ACEOF
21801#define HAVE_GNU_CXX_HASH_MAP 1
21802_ACEOF
21803
21804else
21805 echo "$as_me: failed program was:" >&5
21806sed 's/^/| /' conftest.$ac_ext >&5
21807
21808echo "$as_me:$LINENO: result: no" >&5
21809echo "${ECHO_T}no" >&6
21810fi
ac1cb8d3 21811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21812
21813fi
21814
21815
a848cd7e
SC
21816
21817 ac_ext=c
21818ac_cpp='$CPP $CPPFLAGS'
21819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21821ac_compiler_gnu=$ac_cv_c_compiler_gnu
21822
21823fi
21824
21825
21826SEARCH_INCLUDE="\
21827 /usr/local/include \
21828 \
21829 /usr/Motif-2.1/include \
21830 /usr/Motif-1.2/include \
21831 /usr/include/Motif1.2 \
21832 /opt/xpm/include/X11 \
21833 /opt/GBxpm/include/ \
21834 /opt/GBxpm/X11/include/ \
21835 \
21836 /usr/dt/include \
21837 /usr/openwin/include \
21838 \
21839 /usr/include/Xm \
21840 \
21841 /usr/X11R6/include \
21842 /usr/X11R6.4/include \
21843 /usr/X11R5/include \
21844 /usr/X11R4/include \
21845 \
21846 /usr/include/X11R6 \
21847 /usr/include/X11R5 \
21848 /usr/include/X11R4 \
21849 \
21850 /usr/local/X11R6/include \
21851 /usr/local/X11R5/include \
21852 /usr/local/X11R4/include \
21853 \
21854 /usr/local/include/X11R6 \
21855 /usr/local/include/X11R5 \
21856 /usr/local/include/X11R4 \
21857 \
21858 /usr/X11/include \
21859 /usr/include/X11 \
21860 /usr/local/X11/include \
21861 /usr/local/include/X11 \
21862 \
21863 /usr/X386/include \
21864 /usr/x386/include \
21865 /usr/XFree86/include/X11 \
21866 \
21867 X:/XFree86/include \
21868 X:/XFree86/include/X11 \
21869 \
21870 /usr/include/gtk \
21871 /usr/local/include/gtk \
21872 /usr/include/glib \
21873 /usr/local/include/glib \
21874 \
21875 /usr/include/qt \
21876 /usr/local/include/qt \
21877 \
21878 /usr/local/arm/3.3.2/include \
21879 \
21880 /usr/include/windows \
21881 /usr/include/wine \
21882 /usr/local/include/wine \
21883 \
21884 /usr/unsupported/include \
21885 /usr/athena/include \
21886 /usr/local/x11r5/include \
21887 /usr/lpp/Xamples/include \
21888 \
21889 /usr/openwin/share/include"
21890
07158944 21891SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
21892
21893
21894cat >confcache <<\_ACEOF
21895# This file is a shell script that caches the results of configure
21896# tests run on this system so they can be shared between configure
21897# scripts and configure runs, see configure's option --config-cache.
21898# It is not useful on other systems. If it contains results you don't
21899# want to keep, you may remove or edit it.
21900#
21901# config.status only pays attention to the cache file if you give it
21902# the --recheck option to rerun configure.
21903#
21904# `ac_cv_env_foo' variables (set or unset) will be overridden when
21905# loading this file, other *unset* `ac_cv_foo' will be assigned the
21906# following values.
21907
21908_ACEOF
21909
21910# The following way of writing the cache mishandles newlines in values,
21911# but we know of no workaround that is simple, portable, and efficient.
21912# So, don't put newlines in cache variables' values.
21913# Ultrix sh set writes to stderr and can't be redirected directly,
21914# and sets the high bit in the cache file unless we assign to the vars.
21915{
21916 (set) 2>&1 |
21917 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21918 *ac_space=\ *)
21919 # `set' does not quote correctly, so add quotes (double-quote
21920 # substitution turns \\\\ into \\, and sed turns \\ into \).
21921 sed -n \
ac1cb8d3
VS
21922 "s/'/'\\\\''/g;
21923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21924 ;;
21925 *)
21926 # `set' quotes correctly as required by POSIX, so do not add quotes.
21927 sed -n \
ac1cb8d3 21928 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21929 ;;
21930 esac;
21931} |
21932 sed '
21933 t clear
21934 : clear
21935 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21936 t end
21937 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21938 : end' >>confcache
21939if diff $cache_file confcache >/dev/null 2>&1; then :; else
21940 if test -w $cache_file; then
21941 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21942 cat confcache >$cache_file
21943 else
21944 echo "not updating unwritable cache $cache_file"
21945 fi
21946fi
21947rm -f confcache
21948
21949if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21950 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21951echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21952if test "${wx_cv_lib_glibc21+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21954else
21955
21956 cat >conftest.$ac_ext <<_ACEOF
21957/* confdefs.h. */
21958_ACEOF
21959cat confdefs.h >>conftest.$ac_ext
21960cat >>conftest.$ac_ext <<_ACEOF
21961/* end confdefs.h. */
21962#include <features.h>
21963int
21964main ()
21965{
21966
21967 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21968 #error not glibc2.1
21969 #endif
21970
21971 ;
21972 return 0;
21973}
21974_ACEOF
21975rm -f conftest.$ac_objext
21976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21977 (eval $ac_compile) 2>conftest.er1
a848cd7e 21978 ac_status=$?
ac1cb8d3
VS
21979 grep -v '^ *+' conftest.er1 >conftest.err
21980 rm -f conftest.er1
21981 cat conftest.err >&5
a848cd7e
SC
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } &&
dfe0c803
JS
21984 { ac_try='test -z "$ac_c_werror_flag"
21985 || test ! -s conftest.err'
ac1cb8d3
VS
21986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21987 (eval $ac_try) 2>&5
21988 ac_status=$?
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); }; } &&
21991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21993 (eval $ac_try) 2>&5
21994 ac_status=$?
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); }; }; then
21997
21998 wx_cv_lib_glibc21=yes
21999
22000else
22001 echo "$as_me: failed program was:" >&5
22002sed 's/^/| /' conftest.$ac_ext >&5
22003
22004
22005 wx_cv_lib_glibc21=no
22006
22007
22008fi
ac1cb8d3 22009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22010
22011fi
22012echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22013echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22014 if test "$wx_cv_lib_glibc21" = "yes"; then
22015 cat >>confdefs.h <<\_ACEOF
22016#define wxHAVE_GLIBC2 1
22017_ACEOF
22018
22019 fi
22020fi
22021
22022if test "x$wx_cv_lib_glibc21" = "xyes"; then
22023 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22024 cat >>confdefs.h <<\_ACEOF
22025#define _GNU_SOURCE 1
22026_ACEOF
22027
22028 fi
22029fi
22030
22031
22032
22033if test "$wxUSE_REGEX" != "no"; then
22034 cat >>confdefs.h <<\_ACEOF
22035#define wxUSE_REGEX 1
22036_ACEOF
22037
22038
22039 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22040 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22041echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22042 wxUSE_REGEX=builtin
22043 fi
22044
22045 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22046 if test "${ac_cv_header_regex_h+set}" = set; then
22047 echo "$as_me:$LINENO: checking for regex.h" >&5
22048echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22049if test "${ac_cv_header_regex_h+set}" = set; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22051fi
22052echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22053echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22054else
22055 # Is the header compilable?
22056echo "$as_me:$LINENO: checking regex.h usability" >&5
22057echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22058cat >conftest.$ac_ext <<_ACEOF
22059/* confdefs.h. */
22060_ACEOF
22061cat confdefs.h >>conftest.$ac_ext
22062cat >>conftest.$ac_ext <<_ACEOF
22063/* end confdefs.h. */
22064$ac_includes_default
22065#include <regex.h>
22066_ACEOF
22067rm -f conftest.$ac_objext
22068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22069 (eval $ac_compile) 2>conftest.er1
a848cd7e 22070 ac_status=$?
ac1cb8d3
VS
22071 grep -v '^ *+' conftest.er1 >conftest.err
22072 rm -f conftest.er1
22073 cat conftest.err >&5
a848cd7e
SC
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); } &&
dfe0c803
JS
22076 { ac_try='test -z "$ac_c_werror_flag"
22077 || test ! -s conftest.err'
ac1cb8d3
VS
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22080 ac_status=$?
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; } &&
22083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22085 (eval $ac_try) 2>&5
22086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; }; then
22089 ac_header_compiler=yes
22090else
22091 echo "$as_me: failed program was:" >&5
22092sed 's/^/| /' conftest.$ac_ext >&5
22093
22094ac_header_compiler=no
22095fi
ac1cb8d3 22096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22097echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22098echo "${ECHO_T}$ac_header_compiler" >&6
22099
22100# Is the header present?
22101echo "$as_me:$LINENO: checking regex.h presence" >&5
22102echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22103cat >conftest.$ac_ext <<_ACEOF
22104/* confdefs.h. */
22105_ACEOF
22106cat confdefs.h >>conftest.$ac_ext
22107cat >>conftest.$ac_ext <<_ACEOF
22108/* end confdefs.h. */
22109#include <regex.h>
22110_ACEOF
22111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22113 ac_status=$?
22114 grep -v '^ *+' conftest.er1 >conftest.err
22115 rm -f conftest.er1
22116 cat conftest.err >&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } >/dev/null; then
22119 if test -s conftest.err; then
22120 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22122 else
22123 ac_cpp_err=
22124 fi
22125else
22126 ac_cpp_err=yes
22127fi
22128if test -z "$ac_cpp_err"; then
22129 ac_header_preproc=yes
22130else
22131 echo "$as_me: failed program was:" >&5
22132sed 's/^/| /' conftest.$ac_ext >&5
22133
22134 ac_header_preproc=no
22135fi
22136rm -f conftest.err conftest.$ac_ext
22137echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22138echo "${ECHO_T}$ac_header_preproc" >&6
22139
22140# So? What about this header?
ac1cb8d3
VS
22141case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22142 yes:no: )
a848cd7e
SC
22143 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22144echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22145 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22146echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22147 ac_header_preproc=yes
a848cd7e 22148 ;;
ac1cb8d3 22149 no:yes:* )
a848cd7e
SC
22150 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22151echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22152 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22153echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22154 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22155echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22156 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22157echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22158 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22159echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22160 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22161echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22162 (
22163 cat <<\_ASBOX
ac1cb8d3
VS
22164## ----------------------------------------- ##
22165## Report this to wx-dev@lists.wxwidgets.org ##
22166## ----------------------------------------- ##
a848cd7e
SC
22167_ASBOX
22168 ) |
22169 sed "s/^/$as_me: WARNING: /" >&2
22170 ;;
22171esac
22172echo "$as_me:$LINENO: checking for regex.h" >&5
22173echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22174if test "${ac_cv_header_regex_h+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22176else
22177 ac_cv_header_regex_h=$ac_header_preproc
22178fi
22179echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22180echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22181
22182fi
22183if test $ac_cv_header_regex_h = yes; then
22184
22185for ac_func in regcomp
22186do
22187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22188echo "$as_me:$LINENO: checking for $ac_func" >&5
22189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22190if eval "test \"\${$as_ac_var+set}\" = set"; then
22191 echo $ECHO_N "(cached) $ECHO_C" >&6
22192else
22193 cat >conftest.$ac_ext <<_ACEOF
22194/* confdefs.h. */
22195_ACEOF
22196cat confdefs.h >>conftest.$ac_ext
22197cat >>conftest.$ac_ext <<_ACEOF
22198/* end confdefs.h. */
ac1cb8d3
VS
22199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22201#define $ac_func innocuous_$ac_func
22202
a848cd7e
SC
22203/* System header to define __stub macros and hopefully few prototypes,
22204 which can conflict with char $ac_func (); below.
22205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22206 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22207
a848cd7e
SC
22208#ifdef __STDC__
22209# include <limits.h>
22210#else
22211# include <assert.h>
22212#endif
ac1cb8d3
VS
22213
22214#undef $ac_func
22215
a848cd7e
SC
22216/* Override any gcc2 internal prototype to avoid an error. */
22217#ifdef __cplusplus
22218extern "C"
22219{
22220#endif
22221/* We use char because int might match the return type of a gcc2
22222 builtin and then its argument prototype would still apply. */
22223char $ac_func ();
22224/* The GNU C library defines this for functions which it implements
22225 to always fail with ENOSYS. Some functions are actually named
22226 something starting with __ and the normal name is an alias. */
22227#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22228choke me
22229#else
22230char (*f) () = $ac_func;
22231#endif
22232#ifdef __cplusplus
22233}
22234#endif
22235
22236int
22237main ()
22238{
22239return f != $ac_func;
22240 ;
22241 return 0;
22242}
22243_ACEOF
22244rm -f conftest.$ac_objext conftest$ac_exeext
22245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22246 (eval $ac_link) 2>conftest.er1
a848cd7e 22247 ac_status=$?
ac1cb8d3
VS
22248 grep -v '^ *+' conftest.er1 >conftest.err
22249 rm -f conftest.er1
22250 cat conftest.err >&5
a848cd7e
SC
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } &&
dfe0c803
JS
22253 { ac_try='test -z "$ac_c_werror_flag"
22254 || test ! -s conftest.err'
ac1cb8d3
VS
22255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22256 (eval $ac_try) 2>&5
22257 ac_status=$?
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); }; } &&
22260 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22263 ac_status=$?
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; }; then
22266 eval "$as_ac_var=yes"
22267else
22268 echo "$as_me: failed program was:" >&5
22269sed 's/^/| /' conftest.$ac_ext >&5
22270
22271eval "$as_ac_var=no"
22272fi
ac1cb8d3
VS
22273rm -f conftest.err conftest.$ac_objext \
22274 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22275fi
22276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22277echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22278if test `eval echo '${'$as_ac_var'}'` = yes; then
22279 cat >>confdefs.h <<_ACEOF
22280#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22281_ACEOF
22282
22283fi
22284done
22285
22286fi
22287
22288
22289
22290 if test "x$ac_cv_func_regcomp" != "xyes"; then
22291 if test "$wxUSE_REGEX" = "sys" ; then
22292 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22293echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22294 { (exit 1); exit 1; }; }
22295 else
22296 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22297echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22298 wxUSE_REGEX=builtin
22299 fi
22300 else
22301 wxUSE_REGEX=sys
22302 cat >>confdefs.h <<\_ACEOF
22303#define WX_NO_REGEX_ADVANCED 1
22304_ACEOF
22305
22306 fi
22307 fi
22308fi
22309
22310
22311ZLIB_LINK=
22312if test "$wxUSE_ZLIB" != "no" ; then
22313 cat >>confdefs.h <<\_ACEOF
22314#define wxUSE_ZLIB 1
22315_ACEOF
22316
22317
22318 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22319 if test "$USE_DARWIN" = 1; then
22320 system_zlib_h_ok="yes"
22321 else
22322 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22323echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22324if test "${ac_cv_header_zlib_h+set}" = set; then
22325 echo $ECHO_N "(cached) $ECHO_C" >&6
22326else
22327 if test "$cross_compiling" = yes; then
22328 unset ac_cv_header_zlib_h
22329
22330else
22331 cat >conftest.$ac_ext <<_ACEOF
22332/* confdefs.h. */
22333_ACEOF
22334cat confdefs.h >>conftest.$ac_ext
22335cat >>conftest.$ac_ext <<_ACEOF
22336/* end confdefs.h. */
22337
22338 #include <zlib.h>
22339 #include <stdio.h>
22340
22341 int main()
22342 {
22343 FILE *f=fopen("conftestval", "w");
22344 if (!f) exit(1);
22345 fprintf(f, "%s",
22346 ZLIB_VERSION[0] == '1' &&
22347 (ZLIB_VERSION[2] > '1' ||
22348 (ZLIB_VERSION[2] == '1' &&
22349 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22350 exit(0);
22351 }
22352
22353_ACEOF
22354rm -f conftest$ac_exeext
22355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22356 (eval $ac_link) 2>&5
22357 ac_status=$?
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361 (eval $ac_try) 2>&5
22362 ac_status=$?
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); }; }; then
22365 ac_cv_header_zlib_h=`cat conftestval`
22366else
22367 echo "$as_me: program exited with status $ac_status" >&5
22368echo "$as_me: failed program was:" >&5
22369sed 's/^/| /' conftest.$ac_ext >&5
22370
22371( exit $ac_status )
22372ac_cv_header_zlib_h=no
22373fi
ac1cb8d3 22374rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22375fi
22376
22377fi
22378echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22379echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22380 if test "${ac_cv_header_zlib_h+set}" = set; then
22381 echo "$as_me:$LINENO: checking for zlib.h" >&5
22382echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22383if test "${ac_cv_header_zlib_h+set}" = set; then
22384 echo $ECHO_N "(cached) $ECHO_C" >&6
22385fi
22386echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22387echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22388else
22389 # Is the header compilable?
22390echo "$as_me:$LINENO: checking zlib.h usability" >&5
22391echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22392cat >conftest.$ac_ext <<_ACEOF
22393/* confdefs.h. */
22394_ACEOF
22395cat confdefs.h >>conftest.$ac_ext
22396cat >>conftest.$ac_ext <<_ACEOF
22397/* end confdefs.h. */
22398$ac_includes_default
22399#include <zlib.h>
22400_ACEOF
22401rm -f conftest.$ac_objext
22402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22403 (eval $ac_compile) 2>conftest.er1
a848cd7e 22404 ac_status=$?
ac1cb8d3
VS
22405 grep -v '^ *+' conftest.er1 >conftest.err
22406 rm -f conftest.er1
22407 cat conftest.err >&5
a848cd7e
SC
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } &&
dfe0c803
JS
22410 { ac_try='test -z "$ac_c_werror_flag"
22411 || test ! -s conftest.err'
ac1cb8d3
VS
22412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22413 (eval $ac_try) 2>&5
22414 ac_status=$?
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); }; } &&
22417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22419 (eval $ac_try) 2>&5
22420 ac_status=$?
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); }; }; then
22423 ac_header_compiler=yes
22424else
22425 echo "$as_me: failed program was:" >&5
22426sed 's/^/| /' conftest.$ac_ext >&5
22427
22428ac_header_compiler=no
22429fi
ac1cb8d3 22430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22432echo "${ECHO_T}$ac_header_compiler" >&6
22433
22434# Is the header present?
22435echo "$as_me:$LINENO: checking zlib.h presence" >&5
22436echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22437cat >conftest.$ac_ext <<_ACEOF
22438/* confdefs.h. */
22439_ACEOF
22440cat confdefs.h >>conftest.$ac_ext
22441cat >>conftest.$ac_ext <<_ACEOF
22442/* end confdefs.h. */
22443#include <zlib.h>
22444_ACEOF
22445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22447 ac_status=$?
22448 grep -v '^ *+' conftest.er1 >conftest.err
22449 rm -f conftest.er1
22450 cat conftest.err >&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); } >/dev/null; then
22453 if test -s conftest.err; then
22454 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22456 else
22457 ac_cpp_err=
22458 fi
22459else
22460 ac_cpp_err=yes
22461fi
22462if test -z "$ac_cpp_err"; then
22463 ac_header_preproc=yes
22464else
22465 echo "$as_me: failed program was:" >&5
22466sed 's/^/| /' conftest.$ac_ext >&5
22467
22468 ac_header_preproc=no
22469fi
22470rm -f conftest.err conftest.$ac_ext
22471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22472echo "${ECHO_T}$ac_header_preproc" >&6
22473
22474# So? What about this header?
ac1cb8d3
VS
22475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22476 yes:no: )
a848cd7e
SC
22477 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22478echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22479 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22480echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22481 ac_header_preproc=yes
a848cd7e 22482 ;;
ac1cb8d3 22483 no:yes:* )
a848cd7e
SC
22484 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22485echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22486 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22487echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22488 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22489echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22490 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22491echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22492 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22493echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22494 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22495echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22496 (
22497 cat <<\_ASBOX
ac1cb8d3
VS
22498## ----------------------------------------- ##
22499## Report this to wx-dev@lists.wxwidgets.org ##
22500## ----------------------------------------- ##
a848cd7e
SC
22501_ASBOX
22502 ) |
22503 sed "s/^/$as_me: WARNING: /" >&2
22504 ;;
22505esac
22506echo "$as_me:$LINENO: checking for zlib.h" >&5
22507echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22508if test "${ac_cv_header_zlib_h+set}" = set; then
22509 echo $ECHO_N "(cached) $ECHO_C" >&6
22510else
22511 ac_cv_header_zlib_h=$ac_header_preproc
22512fi
22513echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22514echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22515
22516fi
22517
22518
22519
22520 system_zlib_h_ok=$ac_cv_header_zlib_h
22521 fi
22522
22523 if test "$system_zlib_h_ok" = "yes"; then
22524 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22525echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22526if test "${ac_cv_lib_z_deflate+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22528else
22529 ac_check_lib_save_LIBS=$LIBS
22530LIBS="-lz $LIBS"
22531cat >conftest.$ac_ext <<_ACEOF
22532/* confdefs.h. */
22533_ACEOF
22534cat confdefs.h >>conftest.$ac_ext
22535cat >>conftest.$ac_ext <<_ACEOF
22536/* end confdefs.h. */
22537
22538/* Override any gcc2 internal prototype to avoid an error. */
22539#ifdef __cplusplus
22540extern "C"
22541#endif
22542/* We use char because int might match the return type of a gcc2
22543 builtin and then its argument prototype would still apply. */
22544char deflate ();
22545int
22546main ()
22547{
22548deflate ();
22549 ;
22550 return 0;
22551}
22552_ACEOF
22553rm -f conftest.$ac_objext conftest$ac_exeext
22554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22555 (eval $ac_link) 2>conftest.er1
a848cd7e 22556 ac_status=$?
ac1cb8d3
VS
22557 grep -v '^ *+' conftest.er1 >conftest.err
22558 rm -f conftest.er1
22559 cat conftest.err >&5
a848cd7e
SC
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } &&
dfe0c803
JS
22562 { ac_try='test -z "$ac_c_werror_flag"
22563 || test ! -s conftest.err'
ac1cb8d3
VS
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; } &&
22569 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571 (eval $ac_try) 2>&5
22572 ac_status=$?
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; }; then
22575 ac_cv_lib_z_deflate=yes
22576else
22577 echo "$as_me: failed program was:" >&5
22578sed 's/^/| /' conftest.$ac_ext >&5
22579
22580ac_cv_lib_z_deflate=no
22581fi
ac1cb8d3
VS
22582rm -f conftest.err conftest.$ac_objext \
22583 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22584LIBS=$ac_check_lib_save_LIBS
22585fi
22586echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22587echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22588if test $ac_cv_lib_z_deflate = yes; then
22589 ZLIB_LINK=" -lz"
22590fi
22591
22592 fi
22593
22594 if test "x$ZLIB_LINK" = "x" ; then
22595 if test "$wxUSE_ZLIB" = "sys" ; then
22596 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22597echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22598 { (exit 1); exit 1; }; }
22599 else
22600 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22601echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22602 wxUSE_ZLIB=builtin
22603 fi
22604 else
22605 wxUSE_ZLIB=sys
22606 fi
22607 fi
22608fi
22609
22610
22611PNG_LINK=
22612if test "$wxUSE_LIBPNG" != "no" ; then
22613 cat >>confdefs.h <<\_ACEOF
22614#define wxUSE_LIBPNG 1
22615_ACEOF
22616
22617
22618 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22619 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22620echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22621 wxUSE_LIBPNG=sys
22622 fi
22623
22624 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22625 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22626echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22627 wxUSE_LIBPNG=builtin
22628 fi
22629
22630 if test "$wxUSE_MGL" != 1 ; then
22631 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22632 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22633echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22634if test "${ac_cv_header_png_h+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22636else
22637 if test "$cross_compiling" = yes; then
22638 unset ac_cv_header_png_h
22639
22640else
22641 cat >conftest.$ac_ext <<_ACEOF
22642/* confdefs.h. */
22643_ACEOF
22644cat confdefs.h >>conftest.$ac_ext
22645cat >>conftest.$ac_ext <<_ACEOF
22646/* end confdefs.h. */
22647
22648 #include <png.h>
22649 #include <stdio.h>
22650
22651 int main()
22652 {
22653 FILE *f=fopen("conftestval", "w");
22654 if (!f) exit(1);
22655 fprintf(f, "%s",
22656 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22657 exit(0);
22658 }
22659
22660_ACEOF
22661rm -f conftest$ac_exeext
22662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22663 (eval $ac_link) 2>&5
22664 ac_status=$?
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668 (eval $ac_try) 2>&5
22669 ac_status=$?
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); }; }; then
22672 ac_cv_header_png_h=`cat conftestval`
22673else
22674 echo "$as_me: program exited with status $ac_status" >&5
22675echo "$as_me: failed program was:" >&5
22676sed 's/^/| /' conftest.$ac_ext >&5
22677
22678( exit $ac_status )
22679ac_cv_header_png_h=no
22680fi
ac1cb8d3 22681rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22682fi
22683
22684fi
22685echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22686echo "${ECHO_T}$ac_cv_header_png_h" >&6
22687 if test "${ac_cv_header_png_h+set}" = set; then
22688 echo "$as_me:$LINENO: checking for png.h" >&5
22689echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22690if test "${ac_cv_header_png_h+set}" = set; then
22691 echo $ECHO_N "(cached) $ECHO_C" >&6
22692fi
22693echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22694echo "${ECHO_T}$ac_cv_header_png_h" >&6
22695else
22696 # Is the header compilable?
22697echo "$as_me:$LINENO: checking png.h usability" >&5
22698echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22699cat >conftest.$ac_ext <<_ACEOF
22700/* confdefs.h. */
22701_ACEOF
22702cat confdefs.h >>conftest.$ac_ext
22703cat >>conftest.$ac_ext <<_ACEOF
22704/* end confdefs.h. */
22705$ac_includes_default
22706#include <png.h>
22707_ACEOF
22708rm -f conftest.$ac_objext
22709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22710 (eval $ac_compile) 2>conftest.er1
a848cd7e 22711 ac_status=$?
ac1cb8d3
VS
22712 grep -v '^ *+' conftest.er1 >conftest.err
22713 rm -f conftest.er1
22714 cat conftest.err >&5
a848cd7e
SC
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); } &&
dfe0c803
JS
22717 { ac_try='test -z "$ac_c_werror_flag"
22718 || test ! -s conftest.err'
ac1cb8d3
VS
22719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720 (eval $ac_try) 2>&5
22721 ac_status=$?
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); }; } &&
22724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726 (eval $ac_try) 2>&5
22727 ac_status=$?
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; }; then
22730 ac_header_compiler=yes
22731else
22732 echo "$as_me: failed program was:" >&5
22733sed 's/^/| /' conftest.$ac_ext >&5
22734
22735ac_header_compiler=no
22736fi
ac1cb8d3 22737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22739echo "${ECHO_T}$ac_header_compiler" >&6
22740
22741# Is the header present?
22742echo "$as_me:$LINENO: checking png.h presence" >&5
22743echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22744cat >conftest.$ac_ext <<_ACEOF
22745/* confdefs.h. */
22746_ACEOF
22747cat confdefs.h >>conftest.$ac_ext
22748cat >>conftest.$ac_ext <<_ACEOF
22749/* end confdefs.h. */
22750#include <png.h>
22751_ACEOF
22752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22754 ac_status=$?
22755 grep -v '^ *+' conftest.er1 >conftest.err
22756 rm -f conftest.er1
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } >/dev/null; then
22760 if test -s conftest.err; then
22761 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22763 else
22764 ac_cpp_err=
22765 fi
22766else
22767 ac_cpp_err=yes
22768fi
22769if test -z "$ac_cpp_err"; then
22770 ac_header_preproc=yes
22771else
22772 echo "$as_me: failed program was:" >&5
22773sed 's/^/| /' conftest.$ac_ext >&5
22774
22775 ac_header_preproc=no
22776fi
22777rm -f conftest.err conftest.$ac_ext
22778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22779echo "${ECHO_T}$ac_header_preproc" >&6
22780
22781# So? What about this header?
ac1cb8d3
VS
22782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22783 yes:no: )
a848cd7e
SC
22784 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22785echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22786 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22787echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22788 ac_header_preproc=yes
a848cd7e 22789 ;;
ac1cb8d3 22790 no:yes:* )
a848cd7e
SC
22791 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22792echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22793 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22794echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22795 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22796echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22797 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22798echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22799 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22800echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22801 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22802echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22803 (
22804 cat <<\_ASBOX
ac1cb8d3
VS
22805## ----------------------------------------- ##
22806## Report this to wx-dev@lists.wxwidgets.org ##
22807## ----------------------------------------- ##
a848cd7e
SC
22808_ASBOX
22809 ) |
22810 sed "s/^/$as_me: WARNING: /" >&2
22811 ;;
22812esac
22813echo "$as_me:$LINENO: checking for png.h" >&5
22814echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22815if test "${ac_cv_header_png_h+set}" = set; then
22816 echo $ECHO_N "(cached) $ECHO_C" >&6
22817else
22818 ac_cv_header_png_h=$ac_header_preproc
22819fi
22820echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22821echo "${ECHO_T}$ac_cv_header_png_h" >&6
22822
22823fi
22824
22825
22826
22827 if test "$ac_cv_header_png_h" = "yes"; then
22828 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22829echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22830if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22831 echo $ECHO_N "(cached) $ECHO_C" >&6
22832else
22833 ac_check_lib_save_LIBS=$LIBS
22834LIBS="-lpng -lz -lm $LIBS"
22835cat >conftest.$ac_ext <<_ACEOF
22836/* confdefs.h. */
22837_ACEOF
22838cat confdefs.h >>conftest.$ac_ext
22839cat >>conftest.$ac_ext <<_ACEOF
22840/* end confdefs.h. */
22841
22842/* Override any gcc2 internal prototype to avoid an error. */
22843#ifdef __cplusplus
22844extern "C"
22845#endif
22846/* We use char because int might match the return type of a gcc2
22847 builtin and then its argument prototype would still apply. */
22848char png_check_sig ();
22849int
22850main ()
22851{
22852png_check_sig ();
22853 ;
22854 return 0;
22855}
22856_ACEOF
22857rm -f conftest.$ac_objext conftest$ac_exeext
22858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22859 (eval $ac_link) 2>conftest.er1
a848cd7e 22860 ac_status=$?
ac1cb8d3
VS
22861 grep -v '^ *+' conftest.er1 >conftest.err
22862 rm -f conftest.er1
22863 cat conftest.err >&5
a848cd7e
SC
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } &&
dfe0c803
JS
22866 { ac_try='test -z "$ac_c_werror_flag"
22867 || test ! -s conftest.err'
ac1cb8d3
VS
22868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22869 (eval $ac_try) 2>&5
22870 ac_status=$?
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); }; } &&
22873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22875 (eval $ac_try) 2>&5
22876 ac_status=$?
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); }; }; then
22879 ac_cv_lib_png_png_check_sig=yes
22880else
22881 echo "$as_me: failed program was:" >&5
22882sed 's/^/| /' conftest.$ac_ext >&5
22883
22884ac_cv_lib_png_png_check_sig=no
22885fi
ac1cb8d3
VS
22886rm -f conftest.err conftest.$ac_objext \
22887 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22888LIBS=$ac_check_lib_save_LIBS
22889fi
22890echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22891echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22892if test $ac_cv_lib_png_png_check_sig = yes; then
22893 PNG_LINK=" -lpng -lz"
22894fi
22895
22896 fi
22897
22898 if test "x$PNG_LINK" = "x" ; then
22899 if test "$wxUSE_LIBPNG" = "sys" ; then
22900 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22901echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22902 { (exit 1); exit 1; }; }
22903 else
22904 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22905echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22906 wxUSE_LIBPNG=builtin
22907 fi
22908 else
22909 wxUSE_LIBPNG=sys
22910 fi
22911 fi
22912 fi
22913
22914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22915fi
22916
22917
22918JPEG_LINK=
22919if test "$wxUSE_LIBJPEG" != "no" ; then
22920 cat >>confdefs.h <<\_ACEOF
22921#define wxUSE_LIBJPEG 1
22922_ACEOF
22923
22924
22925 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22926 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22927echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22928 wxUSE_LIBJPEG=sys
22929 fi
22930
22931 if test "$wxUSE_MGL" != 1 ; then
22932 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22933 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22934echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22935 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22937else
22938 cat >conftest.$ac_ext <<_ACEOF
22939/* confdefs.h. */
22940_ACEOF
22941cat confdefs.h >>conftest.$ac_ext
22942cat >>conftest.$ac_ext <<_ACEOF
22943/* end confdefs.h. */
22944
22945 #undef HAVE_STDLIB_H
22946 #include <stdio.h>
22947 #include <jpeglib.h>
22948
22949int
22950main ()
22951{
22952
22953
22954 ;
22955 return 0;
22956}
22957_ACEOF
22958rm -f conftest.$ac_objext
22959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22960 (eval $ac_compile) 2>conftest.er1
a848cd7e 22961 ac_status=$?
ac1cb8d3
VS
22962 grep -v '^ *+' conftest.er1 >conftest.err
22963 rm -f conftest.er1
22964 cat conftest.err >&5
a848cd7e
SC
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); } &&
dfe0c803
JS
22967 { ac_try='test -z "$ac_c_werror_flag"
22968 || test ! -s conftest.err'
ac1cb8d3
VS
22969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22970 (eval $ac_try) 2>&5
22971 ac_status=$?
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); }; } &&
22974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22976 (eval $ac_try) 2>&5
22977 ac_status=$?
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); }; }; then
22980 ac_cv_header_jpeglib_h=yes
22981else
22982 echo "$as_me: failed program was:" >&5
22983sed 's/^/| /' conftest.$ac_ext >&5
22984
22985ac_cv_header_jpeglib_h=no
22986
22987fi
ac1cb8d3 22988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22989
22990fi
22991
22992 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22993echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22994
22995 if test "$ac_cv_header_jpeglib_h" = "yes"; then
22996 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22997echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22998if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22999 echo $ECHO_N "(cached) $ECHO_C" >&6
23000else
23001 ac_check_lib_save_LIBS=$LIBS
23002LIBS="-ljpeg $LIBS"
23003cat >conftest.$ac_ext <<_ACEOF
23004/* confdefs.h. */
23005_ACEOF
23006cat confdefs.h >>conftest.$ac_ext
23007cat >>conftest.$ac_ext <<_ACEOF
23008/* end confdefs.h. */
23009
23010/* Override any gcc2 internal prototype to avoid an error. */
23011#ifdef __cplusplus
23012extern "C"
23013#endif
23014/* We use char because int might match the return type of a gcc2
23015 builtin and then its argument prototype would still apply. */
23016char jpeg_read_header ();
23017int
23018main ()
23019{
23020jpeg_read_header ();
23021 ;
23022 return 0;
23023}
23024_ACEOF
23025rm -f conftest.$ac_objext conftest$ac_exeext
23026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23027 (eval $ac_link) 2>conftest.er1
a848cd7e 23028 ac_status=$?
ac1cb8d3
VS
23029 grep -v '^ *+' conftest.er1 >conftest.err
23030 rm -f conftest.er1
23031 cat conftest.err >&5
a848cd7e
SC
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); } &&
dfe0c803
JS
23034 { ac_try='test -z "$ac_c_werror_flag"
23035 || test ! -s conftest.err'
ac1cb8d3
VS
23036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037 (eval $ac_try) 2>&5
23038 ac_status=$?
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); }; } &&
23041 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043 (eval $ac_try) 2>&5
23044 ac_status=$?
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); }; }; then
23047 ac_cv_lib_jpeg_jpeg_read_header=yes
23048else
23049 echo "$as_me: failed program was:" >&5
23050sed 's/^/| /' conftest.$ac_ext >&5
23051
23052ac_cv_lib_jpeg_jpeg_read_header=no
23053fi
ac1cb8d3
VS
23054rm -f conftest.err conftest.$ac_objext \
23055 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23056LIBS=$ac_check_lib_save_LIBS
23057fi
23058echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23059echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23060if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23061 JPEG_LINK=" -ljpeg"
23062fi
23063
23064 fi
23065
23066 if test "x$JPEG_LINK" = "x" ; then
23067 if test "$wxUSE_LIBJPEG" = "sys" ; then
23068 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23069echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23070 { (exit 1); exit 1; }; }
23071 else
23072 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23073echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23074 wxUSE_LIBJPEG=builtin
23075 fi
23076 else
23077 wxUSE_LIBJPEG=sys
23078 fi
23079 fi
23080 fi
23081fi
23082
23083
23084TIFF_LINK=
23085TIFF_PREREQ_LINKS=-lm
23086if test "$wxUSE_LIBTIFF" != "no" ; then
23087 cat >>confdefs.h <<\_ACEOF
23088#define wxUSE_LIBTIFF 1
23089_ACEOF
23090
23091
23092 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23093 if test "$wxUSE_LIBJPEG" = "sys"; then
23094 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23095 fi
23096 if test "$wxUSE_ZLIB" = "sys"; then
23097 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23098 fi
23099 if test "${ac_cv_header_tiffio_h+set}" = set; then
23100 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23101echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23102if test "${ac_cv_header_tiffio_h+set}" = set; then
23103 echo $ECHO_N "(cached) $ECHO_C" >&6
23104fi
23105echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23106echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23107else
23108 # Is the header compilable?
23109echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23110echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23111cat >conftest.$ac_ext <<_ACEOF
23112/* confdefs.h. */
23113_ACEOF
23114cat confdefs.h >>conftest.$ac_ext
23115cat >>conftest.$ac_ext <<_ACEOF
23116/* end confdefs.h. */
23117$ac_includes_default
23118#include <tiffio.h>
23119_ACEOF
23120rm -f conftest.$ac_objext
23121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23122 (eval $ac_compile) 2>conftest.er1
a848cd7e 23123 ac_status=$?
ac1cb8d3
VS
23124 grep -v '^ *+' conftest.er1 >conftest.err
23125 rm -f conftest.er1
23126 cat conftest.err >&5
a848cd7e
SC
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } &&
dfe0c803
JS
23129 { ac_try='test -z "$ac_c_werror_flag"
23130 || test ! -s conftest.err'
ac1cb8d3
VS
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; } &&
23136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138 (eval $ac_try) 2>&5
23139 ac_status=$?
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); }; }; then
23142 ac_header_compiler=yes
23143else
23144 echo "$as_me: failed program was:" >&5
23145sed 's/^/| /' conftest.$ac_ext >&5
23146
23147ac_header_compiler=no
23148fi
ac1cb8d3 23149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23150echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23151echo "${ECHO_T}$ac_header_compiler" >&6
23152
23153# Is the header present?
23154echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23155echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23156cat >conftest.$ac_ext <<_ACEOF
23157/* confdefs.h. */
23158_ACEOF
23159cat confdefs.h >>conftest.$ac_ext
23160cat >>conftest.$ac_ext <<_ACEOF
23161/* end confdefs.h. */
23162#include <tiffio.h>
23163_ACEOF
23164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23166 ac_status=$?
23167 grep -v '^ *+' conftest.er1 >conftest.err
23168 rm -f conftest.er1
23169 cat conftest.err >&5
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } >/dev/null; then
23172 if test -s conftest.err; then
23173 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23175 else
23176 ac_cpp_err=
23177 fi
23178else
23179 ac_cpp_err=yes
23180fi
23181if test -z "$ac_cpp_err"; then
23182 ac_header_preproc=yes
23183else
23184 echo "$as_me: failed program was:" >&5
23185sed 's/^/| /' conftest.$ac_ext >&5
23186
23187 ac_header_preproc=no
23188fi
23189rm -f conftest.err conftest.$ac_ext
23190echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23191echo "${ECHO_T}$ac_header_preproc" >&6
23192
23193# So? What about this header?
ac1cb8d3
VS
23194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23195 yes:no: )
a848cd7e
SC
23196 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23197echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23198 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23199echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23200 ac_header_preproc=yes
a848cd7e 23201 ;;
ac1cb8d3 23202 no:yes:* )
a848cd7e
SC
23203 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23204echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23205 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23206echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23207 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23208echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23209 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23210echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23211 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23212echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23213 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23214echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23215 (
23216 cat <<\_ASBOX
ac1cb8d3
VS
23217## ----------------------------------------- ##
23218## Report this to wx-dev@lists.wxwidgets.org ##
23219## ----------------------------------------- ##
a848cd7e
SC
23220_ASBOX
23221 ) |
23222 sed "s/^/$as_me: WARNING: /" >&2
23223 ;;
23224esac
23225echo "$as_me:$LINENO: checking for tiffio.h" >&5
23226echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23227if test "${ac_cv_header_tiffio_h+set}" = set; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23229else
23230 ac_cv_header_tiffio_h=$ac_header_preproc
23231fi
23232echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23233echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23234
23235fi
23236if test $ac_cv_header_tiffio_h = yes; then
23237
23238 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23239echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23240if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
23242else
23243 ac_check_lib_save_LIBS=$LIBS
23244LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23245cat >conftest.$ac_ext <<_ACEOF
23246/* confdefs.h. */
23247_ACEOF
23248cat confdefs.h >>conftest.$ac_ext
23249cat >>conftest.$ac_ext <<_ACEOF
23250/* end confdefs.h. */
23251
23252/* Override any gcc2 internal prototype to avoid an error. */
23253#ifdef __cplusplus
23254extern "C"
23255#endif
23256/* We use char because int might match the return type of a gcc2
23257 builtin and then its argument prototype would still apply. */
23258char TIFFError ();
23259int
23260main ()
23261{
23262TIFFError ();
23263 ;
23264 return 0;
23265}
23266_ACEOF
23267rm -f conftest.$ac_objext conftest$ac_exeext
23268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23269 (eval $ac_link) 2>conftest.er1
a848cd7e 23270 ac_status=$?
ac1cb8d3
VS
23271 grep -v '^ *+' conftest.er1 >conftest.err
23272 rm -f conftest.er1
23273 cat conftest.err >&5
a848cd7e
SC
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } &&
dfe0c803
JS
23276 { ac_try='test -z "$ac_c_werror_flag"
23277 || test ! -s conftest.err'
ac1cb8d3
VS
23278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23279 (eval $ac_try) 2>&5
23280 ac_status=$?
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); }; } &&
23283 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285 (eval $ac_try) 2>&5
23286 ac_status=$?
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); }; }; then
23289 ac_cv_lib_tiff_TIFFError=yes
23290else
23291 echo "$as_me: failed program was:" >&5
23292sed 's/^/| /' conftest.$ac_ext >&5
23293
23294ac_cv_lib_tiff_TIFFError=no
23295fi
ac1cb8d3
VS
23296rm -f conftest.err conftest.$ac_objext \
23297 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23298LIBS=$ac_check_lib_save_LIBS
23299fi
23300echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23301echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23302if test $ac_cv_lib_tiff_TIFFError = yes; then
23303 TIFF_LINK=" -ltiff"
23304fi
23305
23306
23307
23308fi
23309
23310
23311
23312 if test "x$TIFF_LINK" = "x" ; then
23313 if test "$wxUSE_LIBTIFF" = "sys" ; then
23314 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23315echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23316 { (exit 1); exit 1; }; }
23317 else
23318 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23319echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23320 wxUSE_LIBTIFF=builtin
23321 fi
23322 else
23323 wxUSE_LIBTIFF=sys
23324 fi
23325 fi
23326fi
23327
23328
23329if test "$wxUSE_EXPAT" != "no"; then
23330 wxUSE_XML=yes
23331 cat >>confdefs.h <<\_ACEOF
23332#define wxUSE_EXPAT 1
23333_ACEOF
23334
23335 cat >>confdefs.h <<\_ACEOF
23336#define wxUSE_XML 1
23337_ACEOF
23338
23339
23340 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23341 if test "${ac_cv_header_expat_h+set}" = set; then
23342 echo "$as_me:$LINENO: checking for expat.h" >&5
23343echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23344if test "${ac_cv_header_expat_h+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23346fi
23347echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23348echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23349else
23350 # Is the header compilable?
23351echo "$as_me:$LINENO: checking expat.h usability" >&5
23352echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23353cat >conftest.$ac_ext <<_ACEOF
23354/* confdefs.h. */
23355_ACEOF
23356cat confdefs.h >>conftest.$ac_ext
23357cat >>conftest.$ac_ext <<_ACEOF
23358/* end confdefs.h. */
23359$ac_includes_default
23360#include <expat.h>
23361_ACEOF
23362rm -f conftest.$ac_objext
23363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23364 (eval $ac_compile) 2>conftest.er1
a848cd7e 23365 ac_status=$?
ac1cb8d3
VS
23366 grep -v '^ *+' conftest.er1 >conftest.err
23367 rm -f conftest.er1
23368 cat conftest.err >&5
a848cd7e
SC
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } &&
dfe0c803
JS
23371 { ac_try='test -z "$ac_c_werror_flag"
23372 || test ! -s conftest.err'
ac1cb8d3
VS
23373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374 (eval $ac_try) 2>&5
23375 ac_status=$?
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); }; } &&
23378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; }; then
23384 ac_header_compiler=yes
23385else
23386 echo "$as_me: failed program was:" >&5
23387sed 's/^/| /' conftest.$ac_ext >&5
23388
23389ac_header_compiler=no
23390fi
ac1cb8d3 23391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23393echo "${ECHO_T}$ac_header_compiler" >&6
23394
23395# Is the header present?
23396echo "$as_me:$LINENO: checking expat.h presence" >&5
23397echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23398cat >conftest.$ac_ext <<_ACEOF
23399/* confdefs.h. */
23400_ACEOF
23401cat confdefs.h >>conftest.$ac_ext
23402cat >>conftest.$ac_ext <<_ACEOF
23403/* end confdefs.h. */
23404#include <expat.h>
23405_ACEOF
23406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23408 ac_status=$?
23409 grep -v '^ *+' conftest.er1 >conftest.err
23410 rm -f conftest.er1
23411 cat conftest.err >&5
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); } >/dev/null; then
23414 if test -s conftest.err; then
23415 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23417 else
23418 ac_cpp_err=
23419 fi
23420else
23421 ac_cpp_err=yes
23422fi
23423if test -z "$ac_cpp_err"; then
23424 ac_header_preproc=yes
23425else
23426 echo "$as_me: failed program was:" >&5
23427sed 's/^/| /' conftest.$ac_ext >&5
23428
23429 ac_header_preproc=no
23430fi
23431rm -f conftest.err conftest.$ac_ext
23432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23433echo "${ECHO_T}$ac_header_preproc" >&6
23434
23435# So? What about this header?
ac1cb8d3
VS
23436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23437 yes:no: )
a848cd7e
SC
23438 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23439echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23440 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23441echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23442 ac_header_preproc=yes
a848cd7e 23443 ;;
ac1cb8d3 23444 no:yes:* )
a848cd7e
SC
23445 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23446echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23447 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23448echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23449 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23450echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23451 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23452echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23453 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23454echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23455 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23456echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23457 (
23458 cat <<\_ASBOX
ac1cb8d3
VS
23459## ----------------------------------------- ##
23460## Report this to wx-dev@lists.wxwidgets.org ##
23461## ----------------------------------------- ##
a848cd7e
SC
23462_ASBOX
23463 ) |
23464 sed "s/^/$as_me: WARNING: /" >&2
23465 ;;
23466esac
23467echo "$as_me:$LINENO: checking for expat.h" >&5
23468echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23469if test "${ac_cv_header_expat_h+set}" = set; then
23470 echo $ECHO_N "(cached) $ECHO_C" >&6
23471else
23472 ac_cv_header_expat_h=$ac_header_preproc
23473fi
23474echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23475echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23476
23477fi
23478if test $ac_cv_header_expat_h = yes; then
23479 found_expat_h=1
23480fi
23481
23482
23483 if test "x$found_expat_h" = "x1"; then
23484 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23485echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23486if test "${wx_cv_expat_is_not_broken+set}" = set; then
23487 echo $ECHO_N "(cached) $ECHO_C" >&6
23488else
23489
23490
23491
23492 ac_ext=cc
23493ac_cpp='$CXXCPP $CPPFLAGS'
23494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23497
23498 cat >conftest.$ac_ext <<_ACEOF
23499/* confdefs.h. */
23500_ACEOF
23501cat confdefs.h >>conftest.$ac_ext
23502cat >>conftest.$ac_ext <<_ACEOF
23503/* end confdefs.h. */
23504#include <expat.h>
23505int
23506main ()
23507{
23508
23509 ;
23510 return 0;
23511}
23512_ACEOF
23513rm -f conftest.$ac_objext
23514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23515 (eval $ac_compile) 2>conftest.er1
a848cd7e 23516 ac_status=$?
ac1cb8d3
VS
23517 grep -v '^ *+' conftest.er1 >conftest.err
23518 rm -f conftest.er1
23519 cat conftest.err >&5
a848cd7e
SC
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } &&
dfe0c803
JS
23522 { ac_try='test -z "$ac_cxx_werror_flag"
23523 || test ! -s conftest.err'
ac1cb8d3
VS
23524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525 (eval $ac_try) 2>&5
23526 ac_status=$?
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); }; } &&
23529 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531 (eval $ac_try) 2>&5
23532 ac_status=$?
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); }; }; then
23535 wx_cv_expat_is_not_broken=yes
23536else
23537 echo "$as_me: failed program was:" >&5
23538sed 's/^/| /' conftest.$ac_ext >&5
23539
23540wx_cv_expat_is_not_broken=no
23541
23542fi
ac1cb8d3 23543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23544 ac_ext=c
23545ac_cpp='$CPP $CPPFLAGS'
23546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23548ac_compiler_gnu=$ac_cv_c_compiler_gnu
23549
23550
23551
23552fi
23553echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23554echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23555 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23556 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23557echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23558if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23559 echo $ECHO_N "(cached) $ECHO_C" >&6
23560else
23561 ac_check_lib_save_LIBS=$LIBS
23562LIBS="-lexpat $LIBS"
23563cat >conftest.$ac_ext <<_ACEOF
23564/* confdefs.h. */
23565_ACEOF
23566cat confdefs.h >>conftest.$ac_ext
23567cat >>conftest.$ac_ext <<_ACEOF
23568/* end confdefs.h. */
23569
23570/* Override any gcc2 internal prototype to avoid an error. */
23571#ifdef __cplusplus
23572extern "C"
23573#endif
23574/* We use char because int might match the return type of a gcc2
23575 builtin and then its argument prototype would still apply. */
23576char XML_ParserCreate ();
23577int
23578main ()
23579{
23580XML_ParserCreate ();
23581 ;
23582 return 0;
23583}
23584_ACEOF
23585rm -f conftest.$ac_objext conftest$ac_exeext
23586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23587 (eval $ac_link) 2>conftest.er1
a848cd7e 23588 ac_status=$?
ac1cb8d3
VS
23589 grep -v '^ *+' conftest.er1 >conftest.err
23590 rm -f conftest.er1
23591 cat conftest.err >&5
a848cd7e
SC
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); } &&
dfe0c803
JS
23594 { ac_try='test -z "$ac_c_werror_flag"
23595 || test ! -s conftest.err'
ac1cb8d3
VS
23596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23597 (eval $ac_try) 2>&5
23598 ac_status=$?
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); }; } &&
23601 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603 (eval $ac_try) 2>&5
23604 ac_status=$?
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); }; }; then
23607 ac_cv_lib_expat_XML_ParserCreate=yes
23608else
23609 echo "$as_me: failed program was:" >&5
23610sed 's/^/| /' conftest.$ac_ext >&5
23611
23612ac_cv_lib_expat_XML_ParserCreate=no
23613fi
ac1cb8d3
VS
23614rm -f conftest.err conftest.$ac_objext \
23615 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23616LIBS=$ac_check_lib_save_LIBS
23617fi
23618echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23619echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23620if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23621 EXPAT_LINK=" -lexpat"
23622fi
23623
23624 fi
23625 fi
23626 if test "x$EXPAT_LINK" = "x" ; then
23627 if test "$wxUSE_EXPAT" = "sys" ; then
23628 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23629echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23630 { (exit 1); exit 1; }; }
23631 else
23632 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23633echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23634 wxUSE_EXPAT=builtin
23635 fi
23636 else
23637 wxUSE_EXPAT=sys
23638 fi
23639 fi
23640 if test "$wxUSE_EXPAT" = "builtin" ; then
23641
23642
23643subdirs="$subdirs src/expat"
23644
23645 fi
23646fi
23647
23648
23649
23650if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23651 if test "${ac_cv_header_mspack_h+set}" = set; then
23652 echo "$as_me:$LINENO: checking for mspack.h" >&5
23653echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23654if test "${ac_cv_header_mspack_h+set}" = set; then
23655 echo $ECHO_N "(cached) $ECHO_C" >&6
23656fi
23657echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23658echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23659else
23660 # Is the header compilable?
23661echo "$as_me:$LINENO: checking mspack.h usability" >&5
23662echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23663cat >conftest.$ac_ext <<_ACEOF
23664/* confdefs.h. */
23665_ACEOF
23666cat confdefs.h >>conftest.$ac_ext
23667cat >>conftest.$ac_ext <<_ACEOF
23668/* end confdefs.h. */
23669$ac_includes_default
23670#include <mspack.h>
23671_ACEOF
23672rm -f conftest.$ac_objext
23673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23674 (eval $ac_compile) 2>conftest.er1
a848cd7e 23675 ac_status=$?
ac1cb8d3
VS
23676 grep -v '^ *+' conftest.er1 >conftest.err
23677 rm -f conftest.er1
23678 cat conftest.err >&5
a848cd7e
SC
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } &&
dfe0c803
JS
23681 { ac_try='test -z "$ac_c_werror_flag"
23682 || test ! -s conftest.err'
ac1cb8d3
VS
23683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23684 (eval $ac_try) 2>&5
23685 ac_status=$?
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); }; } &&
23688 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690 (eval $ac_try) 2>&5
23691 ac_status=$?
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); }; }; then
23694 ac_header_compiler=yes
23695else
23696 echo "$as_me: failed program was:" >&5
23697sed 's/^/| /' conftest.$ac_ext >&5
23698
23699ac_header_compiler=no
23700fi
ac1cb8d3 23701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23702echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23703echo "${ECHO_T}$ac_header_compiler" >&6
23704
23705# Is the header present?
23706echo "$as_me:$LINENO: checking mspack.h presence" >&5
23707echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23708cat >conftest.$ac_ext <<_ACEOF
23709/* confdefs.h. */
23710_ACEOF
23711cat confdefs.h >>conftest.$ac_ext
23712cat >>conftest.$ac_ext <<_ACEOF
23713/* end confdefs.h. */
23714#include <mspack.h>
23715_ACEOF
23716if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23718 ac_status=$?
23719 grep -v '^ *+' conftest.er1 >conftest.err
23720 rm -f conftest.er1
23721 cat conftest.err >&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } >/dev/null; then
23724 if test -s conftest.err; then
23725 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23727 else
23728 ac_cpp_err=
23729 fi
23730else
23731 ac_cpp_err=yes
23732fi
23733if test -z "$ac_cpp_err"; then
23734 ac_header_preproc=yes
23735else
23736 echo "$as_me: failed program was:" >&5
23737sed 's/^/| /' conftest.$ac_ext >&5
23738
23739 ac_header_preproc=no
23740fi
23741rm -f conftest.err conftest.$ac_ext
23742echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23743echo "${ECHO_T}$ac_header_preproc" >&6
23744
23745# So? What about this header?
ac1cb8d3
VS
23746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23747 yes:no: )
a848cd7e
SC
23748 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23749echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23750 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23751echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23752 ac_header_preproc=yes
a848cd7e 23753 ;;
ac1cb8d3 23754 no:yes:* )
a848cd7e
SC
23755 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23756echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23757 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23758echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23759 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23760echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23761 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23762echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23763 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23764echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23765 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23766echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23767 (
23768 cat <<\_ASBOX
ac1cb8d3
VS
23769## ----------------------------------------- ##
23770## Report this to wx-dev@lists.wxwidgets.org ##
23771## ----------------------------------------- ##
a848cd7e
SC
23772_ASBOX
23773 ) |
23774 sed "s/^/$as_me: WARNING: /" >&2
23775 ;;
23776esac
23777echo "$as_me:$LINENO: checking for mspack.h" >&5
23778echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23779if test "${ac_cv_header_mspack_h+set}" = set; then
23780 echo $ECHO_N "(cached) $ECHO_C" >&6
23781else
23782 ac_cv_header_mspack_h=$ac_header_preproc
23783fi
23784echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23785echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23786
23787fi
23788if test $ac_cv_header_mspack_h = yes; then
23789 found_mspack_h=1
23790fi
23791
23792
23793 if test "x$found_mspack_h" = "x1"; then
23794 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23795echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23796if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23797 echo $ECHO_N "(cached) $ECHO_C" >&6
23798else
23799 ac_check_lib_save_LIBS=$LIBS
23800LIBS="-lmspack $LIBS"
23801cat >conftest.$ac_ext <<_ACEOF
23802/* confdefs.h. */
23803_ACEOF
23804cat confdefs.h >>conftest.$ac_ext
23805cat >>conftest.$ac_ext <<_ACEOF
23806/* end confdefs.h. */
23807
23808/* Override any gcc2 internal prototype to avoid an error. */
23809#ifdef __cplusplus
23810extern "C"
23811#endif
23812/* We use char because int might match the return type of a gcc2
23813 builtin and then its argument prototype would still apply. */
23814char mspack_create_chm_decompressor ();
23815int
23816main ()
23817{
23818mspack_create_chm_decompressor ();
23819 ;
23820 return 0;
23821}
23822_ACEOF
23823rm -f conftest.$ac_objext conftest$ac_exeext
23824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23825 (eval $ac_link) 2>conftest.er1
a848cd7e 23826 ac_status=$?
ac1cb8d3
VS
23827 grep -v '^ *+' conftest.er1 >conftest.err
23828 rm -f conftest.er1
23829 cat conftest.err >&5
a848cd7e
SC
23830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); } &&
dfe0c803
JS
23832 { ac_try='test -z "$ac_c_werror_flag"
23833 || test ! -s conftest.err'
ac1cb8d3
VS
23834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23835 (eval $ac_try) 2>&5
23836 ac_status=$?
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); }; } &&
23839 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23841 (eval $ac_try) 2>&5
23842 ac_status=$?
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); }; }; then
23845 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23846else
23847 echo "$as_me: failed program was:" >&5
23848sed 's/^/| /' conftest.$ac_ext >&5
23849
23850ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23851fi
ac1cb8d3
VS
23852rm -f conftest.err conftest.$ac_objext \
23853 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23854LIBS=$ac_check_lib_save_LIBS
23855fi
23856echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23857echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23858if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23859 MSPACK_LINK=" -lmspack"
23860fi
23861
23862 fi
23863 if test "x$MSPACK_LINK" = "x" ; then
23864 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23865 fi
23866fi
23867
23868if test "$wxUSE_LIBMSPACK" != "no"; then
23869 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23870#define wxUSE_LIBMSPACK 1
23871_ACEOF
23872
a848cd7e
SC
23873fi
23874
23875
23876
23877AFMINSTALL=
23878WIN32INSTALL=
23879
23880TOOLKIT=
23881TOOLKIT_INCLUDE=
23882WIDGET_SET=
23883
23884if test "$USE_WIN32" = 1 ; then
23885
23886for ac_header in w32api.h
23887do
23888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23889if eval "test \"\${$as_ac_Header+set}\" = set"; then
23890 echo "$as_me:$LINENO: checking for $ac_header" >&5
23891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23892if eval "test \"\${$as_ac_Header+set}\" = set"; then
23893 echo $ECHO_N "(cached) $ECHO_C" >&6
23894fi
23895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23897else
23898 # Is the header compilable?
23899echo "$as_me:$LINENO: checking $ac_header usability" >&5
23900echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23901cat >conftest.$ac_ext <<_ACEOF
23902/* confdefs.h. */
23903_ACEOF
23904cat confdefs.h >>conftest.$ac_ext
23905cat >>conftest.$ac_ext <<_ACEOF
23906/* end confdefs.h. */
23907$ac_includes_default
23908#include <$ac_header>
23909_ACEOF
23910rm -f conftest.$ac_objext
23911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23912 (eval $ac_compile) 2>conftest.er1
a848cd7e 23913 ac_status=$?
ac1cb8d3
VS
23914 grep -v '^ *+' conftest.er1 >conftest.err
23915 rm -f conftest.er1
23916 cat conftest.err >&5
a848cd7e
SC
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } &&
dfe0c803
JS
23919 { ac_try='test -z "$ac_c_werror_flag"
23920 || test ! -s conftest.err'
ac1cb8d3
VS
23921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23922 (eval $ac_try) 2>&5
23923 ac_status=$?
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); }; } &&
23926 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928 (eval $ac_try) 2>&5
23929 ac_status=$?
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); }; }; then
23932 ac_header_compiler=yes
23933else
23934 echo "$as_me: failed program was:" >&5
23935sed 's/^/| /' conftest.$ac_ext >&5
23936
23937ac_header_compiler=no
23938fi
ac1cb8d3 23939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23940echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23941echo "${ECHO_T}$ac_header_compiler" >&6
23942
23943# Is the header present?
23944echo "$as_me:$LINENO: checking $ac_header presence" >&5
23945echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23946cat >conftest.$ac_ext <<_ACEOF
23947/* confdefs.h. */
23948_ACEOF
23949cat confdefs.h >>conftest.$ac_ext
23950cat >>conftest.$ac_ext <<_ACEOF
23951/* end confdefs.h. */
23952#include <$ac_header>
23953_ACEOF
23954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23956 ac_status=$?
23957 grep -v '^ *+' conftest.er1 >conftest.err
23958 rm -f conftest.er1
23959 cat conftest.err >&5
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); } >/dev/null; then
23962 if test -s conftest.err; then
23963 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23965 else
23966 ac_cpp_err=
23967 fi
23968else
23969 ac_cpp_err=yes
23970fi
23971if test -z "$ac_cpp_err"; then
23972 ac_header_preproc=yes
23973else
23974 echo "$as_me: failed program was:" >&5
23975sed 's/^/| /' conftest.$ac_ext >&5
23976
23977 ac_header_preproc=no
23978fi
23979rm -f conftest.err conftest.$ac_ext
23980echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23981echo "${ECHO_T}$ac_header_preproc" >&6
23982
23983# So? What about this header?
ac1cb8d3
VS
23984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23985 yes:no: )
a848cd7e
SC
23986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23987echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23989echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23990 ac_header_preproc=yes
a848cd7e 23991 ;;
ac1cb8d3 23992 no:yes:* )
a848cd7e
SC
23993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23994echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23996echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23998echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24000echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24002echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24004echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24005 (
24006 cat <<\_ASBOX
ac1cb8d3
VS
24007## ----------------------------------------- ##
24008## Report this to wx-dev@lists.wxwidgets.org ##
24009## ----------------------------------------- ##
a848cd7e
SC
24010_ASBOX
24011 ) |
24012 sed "s/^/$as_me: WARNING: /" >&2
24013 ;;
24014esac
24015echo "$as_me:$LINENO: checking for $ac_header" >&5
24016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24017if eval "test \"\${$as_ac_Header+set}\" = set"; then
24018 echo $ECHO_N "(cached) $ECHO_C" >&6
24019else
ac1cb8d3 24020 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24021fi
24022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24023echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24024
24025fi
24026if test `eval echo '${'$as_ac_Header'}'` = yes; then
24027 cat >>confdefs.h <<_ACEOF
24028#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24029_ACEOF
24030
24031fi
24032
24033done
24034
24035 if test "${ac_cv_header_windows_h+set}" = set; then
24036 echo "$as_me:$LINENO: checking for windows.h" >&5
24037echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24038if test "${ac_cv_header_windows_h+set}" = set; then
24039 echo $ECHO_N "(cached) $ECHO_C" >&6
24040fi
24041echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24042echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24043else
24044 # Is the header compilable?
24045echo "$as_me:$LINENO: checking windows.h usability" >&5
24046echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24047cat >conftest.$ac_ext <<_ACEOF
24048/* confdefs.h. */
24049_ACEOF
24050cat confdefs.h >>conftest.$ac_ext
24051cat >>conftest.$ac_ext <<_ACEOF
24052/* end confdefs.h. */
24053$ac_includes_default
24054#include <windows.h>
24055_ACEOF
24056rm -f conftest.$ac_objext
24057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24058 (eval $ac_compile) 2>conftest.er1
a848cd7e 24059 ac_status=$?
ac1cb8d3
VS
24060 grep -v '^ *+' conftest.er1 >conftest.err
24061 rm -f conftest.er1
24062 cat conftest.err >&5
a848cd7e
SC
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); } &&
dfe0c803
JS
24065 { ac_try='test -z "$ac_c_werror_flag"
24066 || test ! -s conftest.err'
ac1cb8d3
VS
24067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24068 (eval $ac_try) 2>&5
24069 ac_status=$?
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); }; } &&
24072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074 (eval $ac_try) 2>&5
24075 ac_status=$?
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); }; }; then
24078 ac_header_compiler=yes
24079else
24080 echo "$as_me: failed program was:" >&5
24081sed 's/^/| /' conftest.$ac_ext >&5
24082
24083ac_header_compiler=no
24084fi
ac1cb8d3 24085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24086echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24087echo "${ECHO_T}$ac_header_compiler" >&6
24088
24089# Is the header present?
24090echo "$as_me:$LINENO: checking windows.h presence" >&5
24091echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24092cat >conftest.$ac_ext <<_ACEOF
24093/* confdefs.h. */
24094_ACEOF
24095cat confdefs.h >>conftest.$ac_ext
24096cat >>conftest.$ac_ext <<_ACEOF
24097/* end confdefs.h. */
24098#include <windows.h>
24099_ACEOF
24100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24102 ac_status=$?
24103 grep -v '^ *+' conftest.er1 >conftest.err
24104 rm -f conftest.er1
24105 cat conftest.err >&5
24106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107 (exit $ac_status); } >/dev/null; then
24108 if test -s conftest.err; then
24109 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24111 else
24112 ac_cpp_err=
24113 fi
24114else
24115 ac_cpp_err=yes
24116fi
24117if test -z "$ac_cpp_err"; then
24118 ac_header_preproc=yes
24119else
24120 echo "$as_me: failed program was:" >&5
24121sed 's/^/| /' conftest.$ac_ext >&5
24122
24123 ac_header_preproc=no
24124fi
24125rm -f conftest.err conftest.$ac_ext
24126echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24127echo "${ECHO_T}$ac_header_preproc" >&6
24128
24129# So? What about this header?
ac1cb8d3
VS
24130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24131 yes:no: )
a848cd7e
SC
24132 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24133echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24134 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24135echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24136 ac_header_preproc=yes
a848cd7e 24137 ;;
ac1cb8d3 24138 no:yes:* )
a848cd7e
SC
24139 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24140echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24141 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24142echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24143 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24144echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24145 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24146echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24147 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24148echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24149 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24150echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24151 (
24152 cat <<\_ASBOX
ac1cb8d3
VS
24153## ----------------------------------------- ##
24154## Report this to wx-dev@lists.wxwidgets.org ##
24155## ----------------------------------------- ##
a848cd7e
SC
24156_ASBOX
24157 ) |
24158 sed "s/^/$as_me: WARNING: /" >&2
24159 ;;
24160esac
24161echo "$as_me:$LINENO: checking for windows.h" >&5
24162echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24163if test "${ac_cv_header_windows_h+set}" = set; then
24164 echo $ECHO_N "(cached) $ECHO_C" >&6
24165else
24166 ac_cv_header_windows_h=$ac_header_preproc
24167fi
24168echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24169echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24170
24171fi
24172if test $ac_cv_header_windows_h = yes; then
24173 :
24174else
24175
24176 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24177echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24178 { (exit 1); exit 1; }; }
24179
24180fi
24181
24182
24183
24184 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24185
24186 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24187 LIBS="$LIBS -loleacc"
24188 fi
24189
24190 case "${host}" in
24191 *-*-cygwin* )
24192 LIBS="$LIBS -lkernel32 -luser32"
24193 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24194 esac
24195
24196 if test "$wxUSE_ODBC" = "sys" ; then
24197 wxUSE_ODBC = "yes"
24198 fi
24199 if test "$wxUSE_ODBC" = "yes" ; then
24200 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24201 cat >>confdefs.h <<\_ACEOF
24202#define wxUSE_ODBC 1
24203_ACEOF
24204
24205 fi
24206
24207 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24208 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24209
24210 WIN32INSTALL=win32install
24211fi
24212
24213if test "$wxUSE_GUI" = "yes"; then
24214 USE_GUI=1
24215
24216 GUI_TK_LIBRARY=
24217
24218 WXGTK12=
24219 WXGTK127=
24220 WXGTK20=
24221 WXGPE=
24222
207bc66c
RN
24223 if test "$wxUSE_COCOA" = 1 ; then
24224 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24225 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24226echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24227 wxUSE_PRINTING_ARCHITECTURE=no
24228 fi
24229 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24230 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24231echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24232 wxUSE_DRAG_AND_DROP=no
24233 fi
24234 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24235 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24236echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24237 wxUSE_DRAGIMAGE=no
24238 fi
24239 fi
24240
a848cd7e
SC
24241 if test "$wxUSE_MSW" = 1 ; then
24242 TOOLKIT=MSW
24243 GUIDIST=MSW_DIST
24244
ceec2216 24245 case "${host}" in
a848cd7e
SC
24246 *-*-mingw32* )
24247 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24248 esac
24249 fi
24250
24251 if test "$wxUSE_GTK" = 1; then
24252 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24253echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24254
24255 gtk_version_cached=1
24256 if test "${wx_cv_lib_gtk+set}" = set; then
24257 echo $ECHO_N "(cached) $ECHO_C" >&6
24258else
24259
24260 gtk_version_cached=0
24261 echo "$as_me:$LINENO: result: " >&5
24262echo "${ECHO_T}" >&6
24263
24264 GTK_MODULES=
24265 if test "$wxUSE_THREADS" = "yes"; then
24266 GTK_MODULES=gthread
24267 fi
24268
24269 wx_cv_lib_gtk=
24270 if test "x$wxUSE_GTK2" = "xyes"; then
24271 # Check whether --enable-gtktest or --disable-gtktest was given.
24272if test "${enable_gtktest+set}" = set; then
24273 enableval="$enable_gtktest"
24274
24275else
24276 enable_gtktest=yes
24277fi;
24278
24279 pkg_config_args=gtk+-2.0
24280 for module in . $GTK_MODULES
24281 do
24282 case "$module" in
24283 gthread)
24284 pkg_config_args="$pkg_config_args gthread-2.0"
24285 ;;
24286 esac
24287 done
24288
24289 no_gtk=""
24290
24291 # Extract the first word of "pkg-config", so it can be a program name with args.
24292set dummy pkg-config; ac_word=$2
24293echo "$as_me:$LINENO: checking for $ac_word" >&5
24294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24295if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24296 echo $ECHO_N "(cached) $ECHO_C" >&6
24297else
24298 case $PKG_CONFIG in
24299 [\\/]* | ?:[\\/]*)
24300 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24301 ;;
24302 *)
24303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24304for as_dir in $PATH
24305do
24306 IFS=$as_save_IFS
24307 test -z "$as_dir" && as_dir=.
24308 for ac_exec_ext in '' $ac_executable_extensions; do
24309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24310 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24312 break 2
24313 fi
24314done
24315done
24316
24317 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24318 ;;
24319esac
24320fi
24321PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24322
24323if test -n "$PKG_CONFIG"; then
24324 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24325echo "${ECHO_T}$PKG_CONFIG" >&6
24326else
24327 echo "$as_me:$LINENO: result: no" >&5
24328echo "${ECHO_T}no" >&6
24329fi
24330
24331
24332 if test x$PKG_CONFIG != xno ; then
24333 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24334 :
24335 else
c2218763 24336 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24337 no_gtk=yes
24338 PKG_CONFIG=no
24339 fi
24340 else
24341 no_gtk=yes
24342 fi
24343
24344 min_gtk_version=2.0.0
24345 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24346echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24347
24348 if test x$PKG_CONFIG != xno ; then
24349 ## don't try to run the test against uninstalled libtool libs
24350 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24351 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24352 enable_gtktest=no
24353 fi
24354
24355 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24356 :
24357 else
24358 no_gtk=yes
24359 fi
24360 fi
24361
24362 if test x"$no_gtk" = x ; then
24363 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24364 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24365 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24366 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24367 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24368 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24369 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24370 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24371 if test "x$enable_gtktest" = "xyes" ; then
24372 ac_save_CFLAGS="$CFLAGS"
24373 ac_save_LIBS="$LIBS"
24374 CFLAGS="$CFLAGS $GTK_CFLAGS"
24375 LIBS="$GTK_LIBS $LIBS"
24376 rm -f conf.gtktest
24377 if test "$cross_compiling" = yes; then
24378 echo $ac_n "cross compiling; assumed OK... $ac_c"
24379else
24380 cat >conftest.$ac_ext <<_ACEOF
24381/* confdefs.h. */
24382_ACEOF
24383cat confdefs.h >>conftest.$ac_ext
24384cat >>conftest.$ac_ext <<_ACEOF
24385/* end confdefs.h. */
24386
24387#include <gtk/gtk.h>
24388#include <stdio.h>
24389#include <stdlib.h>
24390
24391int
24392main ()
24393{
24394 int major, minor, micro;
24395 char *tmp_version;
24396
24397 system ("touch conf.gtktest");
24398
24399 /* HP/UX 9 (%@#!) writes to sscanf strings */
24400 tmp_version = g_strdup("$min_gtk_version");
24401 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24402 printf("%s, bad version string\n", "$min_gtk_version");
24403 exit(1);
24404 }
24405
24406 if ((gtk_major_version != $gtk_config_major_version) ||
24407 (gtk_minor_version != $gtk_config_minor_version) ||
24408 (gtk_micro_version != $gtk_config_micro_version))
24409 {
24410 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24411 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24412 gtk_major_version, gtk_minor_version, gtk_micro_version);
24413 printf ("*** was found! If pkg-config was correct, then it is best\n");
24414 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24415 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24416 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24417 printf("*** required on your system.\n");
24418 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24419 printf("*** to point to the correct configuration files\n");
24420 }
24421 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24422 (gtk_minor_version != GTK_MINOR_VERSION) ||
24423 (gtk_micro_version != GTK_MICRO_VERSION))
24424 {
24425 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24426 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24427 printf("*** library (version %d.%d.%d)\n",
24428 gtk_major_version, gtk_minor_version, gtk_micro_version);
24429 }
24430 else
24431 {
24432 if ((gtk_major_version > major) ||
24433 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24434 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24435 {
24436 return 0;
24437 }
24438 else
24439 {
24440 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24441 gtk_major_version, gtk_minor_version, gtk_micro_version);
24442 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24443 major, minor, micro);
24444 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24445 printf("***\n");
24446 printf("*** If you have already installed a sufficiently new version, this error\n");
24447 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24448 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24449 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24450 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24451 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24452 printf("*** so that the correct libraries are found at run-time))\n");
24453 }
24454 }
24455 return 1;
24456}
24457
24458_ACEOF
24459rm -f conftest$ac_exeext
24460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24461 (eval $ac_link) 2>&5
24462 ac_status=$?
24463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24466 (eval $ac_try) 2>&5
24467 ac_status=$?
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); }; }; then
24470 :
24471else
24472 echo "$as_me: program exited with status $ac_status" >&5
24473echo "$as_me: failed program was:" >&5
24474sed 's/^/| /' conftest.$ac_ext >&5
24475
24476( exit $ac_status )
24477no_gtk=yes
24478fi
ac1cb8d3 24479rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24480fi
24481 CFLAGS="$ac_save_CFLAGS"
24482 LIBS="$ac_save_LIBS"
24483 fi
24484 fi
24485 if test "x$no_gtk" = x ; then
24486 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24487echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24488 wx_cv_lib_gtk=2.0
24489 else
24490 echo "$as_me:$LINENO: result: no" >&5
24491echo "${ECHO_T}no" >&6
24492 if test "$PKG_CONFIG" = "no" ; then
24493 echo "*** A new enough version of pkg-config was not found."
24494 echo "*** See http://pkgconfig.sourceforge.net"
24495 else
24496 if test -f conf.gtktest ; then
24497 :
24498 else
24499 echo "*** Could not run GTK+ test program, checking why..."
24500 ac_save_CFLAGS="$CFLAGS"
24501 ac_save_LIBS="$LIBS"
24502 CFLAGS="$CFLAGS $GTK_CFLAGS"
24503 LIBS="$LIBS $GTK_LIBS"
24504 cat >conftest.$ac_ext <<_ACEOF
24505/* confdefs.h. */
24506_ACEOF
24507cat confdefs.h >>conftest.$ac_ext
24508cat >>conftest.$ac_ext <<_ACEOF
24509/* end confdefs.h. */
24510
24511#include <gtk/gtk.h>
24512#include <stdio.h>
24513
24514int
24515main ()
24516{
24517 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24518 ;
24519 return 0;
24520}
24521_ACEOF
24522rm -f conftest.$ac_objext conftest$ac_exeext
24523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24524 (eval $ac_link) 2>conftest.er1
a848cd7e 24525 ac_status=$?
ac1cb8d3
VS
24526 grep -v '^ *+' conftest.er1 >conftest.err
24527 rm -f conftest.er1
24528 cat conftest.err >&5
a848cd7e
SC
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); } &&
dfe0c803
JS
24531 { ac_try='test -z "$ac_c_werror_flag"
24532 || test ! -s conftest.err'
ac1cb8d3
VS
24533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24534 (eval $ac_try) 2>&5
24535 ac_status=$?
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); }; } &&
24538 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24540 (eval $ac_try) 2>&5
24541 ac_status=$?
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); }; }; then
24544 echo "*** The test program compiled, but did not run. This usually means"
24545 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24546 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24547 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24548 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24549 echo "*** is required on your system"
24550 echo "***"
24551 echo "*** If you have an old version installed, it is best to remove it, although"
24552 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24553else
24554 echo "$as_me: failed program was:" >&5
24555sed 's/^/| /' conftest.$ac_ext >&5
24556
24557 echo "*** The test program failed to compile or link. See the file config.log for the"
24558 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24559fi
ac1cb8d3
VS
24560rm -f conftest.err conftest.$ac_objext \
24561 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24562 CFLAGS="$ac_save_CFLAGS"
24563 LIBS="$ac_save_LIBS"
24564 fi
24565 fi
24566 GTK_CFLAGS=""
24567 GTK_LIBS=""
24568 :
24569 fi
24570
24571
24572 rm -f conf.gtktest
24573
24574 else
24575
24576# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24577if test "${with_gtk_prefix+set}" = set; then
24578 withval="$with_gtk_prefix"
24579 gtk_config_prefix="$withval"
24580else
24581 gtk_config_prefix=""
24582fi;
24583
24584# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24585if test "${with_gtk_exec_prefix+set}" = set; then
24586 withval="$with_gtk_exec_prefix"
24587 gtk_config_exec_prefix="$withval"
24588else
24589 gtk_config_exec_prefix=""
24590fi;
24591# Check whether --enable-gtktest or --disable-gtktest was given.
24592if test "${enable_gtktest+set}" = set; then
24593 enableval="$enable_gtktest"
24594
24595else
24596 enable_gtktest=yes
24597fi;
24598
24599 for module in . $GTK_MODULES
24600 do
24601 case "$module" in
24602 gthread)
24603 gtk_config_args="$gtk_config_args gthread"
24604 ;;
24605 esac
24606 done
24607
24608 if test x$gtk_config_exec_prefix != x ; then
24609 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24610 if test x${GTK_CONFIG+set} != xset ; then
24611 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24612 fi
24613 fi
24614 if test x$gtk_config_prefix != x ; then
24615 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24616 if test x${GTK_CONFIG+set} != xset ; then
24617 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24618 fi
24619 fi
24620
24621 # Extract the first word of "gtk-config", so it can be a program name with args.
24622set dummy gtk-config; ac_word=$2
24623echo "$as_me:$LINENO: checking for $ac_word" >&5
24624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24625if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24626 echo $ECHO_N "(cached) $ECHO_C" >&6
24627else
24628 case $GTK_CONFIG in
24629 [\\/]* | ?:[\\/]*)
24630 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24631 ;;
24632 *)
24633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24634for as_dir in $PATH
24635do
24636 IFS=$as_save_IFS
24637 test -z "$as_dir" && as_dir=.
24638 for ac_exec_ext in '' $ac_executable_extensions; do
24639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24640 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24642 break 2
24643 fi
24644done
24645done
24646
24647 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24648 ;;
24649esac
24650fi
24651GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24652
24653if test -n "$GTK_CONFIG"; then
24654 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24655echo "${ECHO_T}$GTK_CONFIG" >&6
24656else
24657 echo "$as_me:$LINENO: result: no" >&5
24658echo "${ECHO_T}no" >&6
24659fi
24660
24661 min_gtk_version=1.2.7
24662 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24663echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24664 no_gtk=""
24665 if test "$GTK_CONFIG" = "no" ; then
24666 no_gtk=yes
24667 else
24668 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24669 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24670 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24671 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24672 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24673 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24674 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24675 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24676 if test "x$enable_gtktest" = "xyes" ; then
24677 ac_save_CFLAGS="$CFLAGS"
24678 ac_save_LIBS="$LIBS"
24679 CFLAGS="$CFLAGS $GTK_CFLAGS"
24680 LIBS="$GTK_LIBS $LIBS"
24681 rm -f conf.gtktest
24682 if test "$cross_compiling" = yes; then
24683 echo $ac_n "cross compiling; assumed OK... $ac_c"
24684else
24685 cat >conftest.$ac_ext <<_ACEOF
24686/* confdefs.h. */
24687_ACEOF
24688cat confdefs.h >>conftest.$ac_ext
24689cat >>conftest.$ac_ext <<_ACEOF
24690/* end confdefs.h. */
24691
24692#include <gtk/gtk.h>
24693#include <stdio.h>
24694#include <stdlib.h>
24695
24696int
24697main ()
24698{
24699 int major, minor, micro;
24700 char *tmp_version;
24701
24702 system ("touch conf.gtktest");
24703
24704 /* HP/UX 9 (%@#!) writes to sscanf strings */
24705 tmp_version = g_strdup("$min_gtk_version");
24706 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24707 printf("%s, bad version string\n", "$min_gtk_version");
24708 exit(1);
24709 }
24710
24711 if ((gtk_major_version != $gtk_config_major_version) ||
24712 (gtk_minor_version != $gtk_config_minor_version) ||
24713 (gtk_micro_version != $gtk_config_micro_version))
24714 {
24715 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24716 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24717 gtk_major_version, gtk_minor_version, gtk_micro_version);
24718 printf ("*** was found! If gtk-config was correct, then it is best\n");
24719 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24720 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24721 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24722 printf("*** required on your system.\n");
24723 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24724 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24725 printf("*** before re-running configure\n");
24726 }
24727#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24728 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24729 (gtk_minor_version != GTK_MINOR_VERSION) ||
24730 (gtk_micro_version != GTK_MICRO_VERSION))
24731 {
24732 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24733 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24734 printf("*** library (version %d.%d.%d)\n",
24735 gtk_major_version, gtk_minor_version, gtk_micro_version);
24736 }
24737#endif /* defined (GTK_MAJOR_VERSION) ... */
24738 else
24739 {
24740 if ((gtk_major_version > major) ||
24741 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24742 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24743 {
24744 return 0;
24745 }
24746 else
24747 {
24748 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24749 gtk_major_version, gtk_minor_version, gtk_micro_version);
24750 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24751 major, minor, micro);
24752 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24753 printf("***\n");
24754 printf("*** If you have already installed a sufficiently new version, this error\n");
24755 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24756 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24757 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24758 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24759 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24760 printf("*** so that the correct libraries are found at run-time))\n");
24761 }
24762 }
24763 return 1;
24764}
24765
24766_ACEOF
24767rm -f conftest$ac_exeext
24768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24769 (eval $ac_link) 2>&5
24770 ac_status=$?
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24774 (eval $ac_try) 2>&5
24775 ac_status=$?
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); }; }; then
24778 :
24779else
24780 echo "$as_me: program exited with status $ac_status" >&5
24781echo "$as_me: failed program was:" >&5
24782sed 's/^/| /' conftest.$ac_ext >&5
24783
24784( exit $ac_status )
24785no_gtk=yes
24786fi
ac1cb8d3 24787rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24788fi
24789 CFLAGS="$ac_save_CFLAGS"
24790 LIBS="$ac_save_LIBS"
24791 fi
24792 fi
24793 if test "x$no_gtk" = x ; then
24794 echo "$as_me:$LINENO: result: yes" >&5
24795echo "${ECHO_T}yes" >&6
24796 wx_cv_lib_gtk=1.2.7
24797 else
24798 echo "$as_me:$LINENO: result: no" >&5
24799echo "${ECHO_T}no" >&6
24800 if test "$GTK_CONFIG" = "no" ; then
24801 echo "*** The gtk-config script installed by GTK could not be found"
24802 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24803 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24804 echo "*** full path to gtk-config."
24805 else
24806 if test -f conf.gtktest ; then
24807 :
24808 else
24809 echo "*** Could not run GTK test program, checking why..."
24810 CFLAGS="$CFLAGS $GTK_CFLAGS"
24811 LIBS="$LIBS $GTK_LIBS"
24812 cat >conftest.$ac_ext <<_ACEOF
24813/* confdefs.h. */
24814_ACEOF
24815cat confdefs.h >>conftest.$ac_ext
24816cat >>conftest.$ac_ext <<_ACEOF
24817/* end confdefs.h. */
24818
24819#include <gtk/gtk.h>
24820#include <stdio.h>
24821
24822int
24823main ()
24824{
24825 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24826 ;
24827 return 0;
24828}
24829_ACEOF
24830rm -f conftest.$ac_objext conftest$ac_exeext
24831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24832 (eval $ac_link) 2>conftest.er1
a848cd7e 24833 ac_status=$?
ac1cb8d3
VS
24834 grep -v '^ *+' conftest.er1 >conftest.err
24835 rm -f conftest.er1
24836 cat conftest.err >&5
a848cd7e
SC
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); } &&
dfe0c803
JS
24839 { ac_try='test -z "$ac_c_werror_flag"
24840 || test ! -s conftest.err'
ac1cb8d3
VS
24841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842 (eval $ac_try) 2>&5
24843 ac_status=$?
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; } &&
24846 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848 (eval $ac_try) 2>&5
24849 ac_status=$?
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); }; }; then
24852 echo "*** The test program compiled, but did not run. This usually means"
24853 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24854 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24855 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24856 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24857 echo "*** is required on your system"
24858 echo "***"
24859 echo "*** If you have an old version installed, it is best to remove it, although"
24860 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24861 echo "***"
24862 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24863 echo "*** came with the system with the command"
24864 echo "***"
24865 echo "*** rpm --erase --nodeps gtk gtk-devel"
24866else
24867 echo "$as_me: failed program was:" >&5
24868sed 's/^/| /' conftest.$ac_ext >&5
24869
24870 echo "*** The test program failed to compile or link. See the file config.log for the"
24871 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24872 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24873 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24874fi
ac1cb8d3
VS
24875rm -f conftest.err conftest.$ac_objext \
24876 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24877 CFLAGS="$ac_save_CFLAGS"
24878 LIBS="$ac_save_LIBS"
24879 fi
24880 fi
24881 GTK_CFLAGS=""
24882 GTK_LIBS=""
24883 :
24884 fi
24885
24886
24887 rm -f conf.gtktest
24888
24889
24890 if test -z "$wx_cv_lib_gtk"; then
24891
24892# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24893if test "${with_gtk_prefix+set}" = set; then
24894 withval="$with_gtk_prefix"
24895 gtk_config_prefix="$withval"
24896else
24897 gtk_config_prefix=""
24898fi;
24899
24900# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24901if test "${with_gtk_exec_prefix+set}" = set; then
24902 withval="$with_gtk_exec_prefix"
24903 gtk_config_exec_prefix="$withval"
24904else
24905 gtk_config_exec_prefix=""
24906fi;
24907# Check whether --enable-gtktest or --disable-gtktest was given.
24908if test "${enable_gtktest+set}" = set; then
24909 enableval="$enable_gtktest"
24910
24911else
24912 enable_gtktest=yes
24913fi;
24914
24915 for module in . $GTK_MODULES
24916 do
24917 case "$module" in
24918 gthread)
24919 gtk_config_args="$gtk_config_args gthread"
24920 ;;
24921 esac
24922 done
24923
24924 if test x$gtk_config_exec_prefix != x ; then
24925 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24926 if test x${GTK_CONFIG+set} != xset ; then
24927 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24928 fi
24929 fi
24930 if test x$gtk_config_prefix != x ; then
24931 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24932 if test x${GTK_CONFIG+set} != xset ; then
24933 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24934 fi
24935 fi
24936
24937 # Extract the first word of "gtk-config", so it can be a program name with args.
24938set dummy gtk-config; ac_word=$2
24939echo "$as_me:$LINENO: checking for $ac_word" >&5
24940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24941if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24942 echo $ECHO_N "(cached) $ECHO_C" >&6
24943else
24944 case $GTK_CONFIG in
24945 [\\/]* | ?:[\\/]*)
24946 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24947 ;;
24948 *)
24949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24950for as_dir in $PATH
24951do
24952 IFS=$as_save_IFS
24953 test -z "$as_dir" && as_dir=.
24954 for ac_exec_ext in '' $ac_executable_extensions; do
24955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24956 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24958 break 2
24959 fi
24960done
24961done
24962
24963 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24964 ;;
24965esac
24966fi
24967GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24968
24969if test -n "$GTK_CONFIG"; then
24970 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24971echo "${ECHO_T}$GTK_CONFIG" >&6
24972else
24973 echo "$as_me:$LINENO: result: no" >&5
24974echo "${ECHO_T}no" >&6
24975fi
24976
24977 min_gtk_version=1.2.3
24978 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24979echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24980 no_gtk=""
24981 if test "$GTK_CONFIG" = "no" ; then
24982 no_gtk=yes
24983 else
24984 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24985 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24986 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24987 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24988 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24989 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24990 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24991 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24992 if test "x$enable_gtktest" = "xyes" ; then
24993 ac_save_CFLAGS="$CFLAGS"
24994 ac_save_LIBS="$LIBS"
24995 CFLAGS="$CFLAGS $GTK_CFLAGS"
24996 LIBS="$GTK_LIBS $LIBS"
24997 rm -f conf.gtktest
24998 if test "$cross_compiling" = yes; then
24999 echo $ac_n "cross compiling; assumed OK... $ac_c"
25000else
25001 cat >conftest.$ac_ext <<_ACEOF
25002/* confdefs.h. */
25003_ACEOF
25004cat confdefs.h >>conftest.$ac_ext
25005cat >>conftest.$ac_ext <<_ACEOF
25006/* end confdefs.h. */
25007
25008#include <gtk/gtk.h>
25009#include <stdio.h>
25010#include <stdlib.h>
25011
25012int
25013main ()
25014{
25015 int major, minor, micro;
25016 char *tmp_version;
25017
25018 system ("touch conf.gtktest");
25019
25020 /* HP/UX 9 (%@#!) writes to sscanf strings */
25021 tmp_version = g_strdup("$min_gtk_version");
25022 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25023 printf("%s, bad version string\n", "$min_gtk_version");
25024 exit(1);
25025 }
25026
25027 if ((gtk_major_version != $gtk_config_major_version) ||
25028 (gtk_minor_version != $gtk_config_minor_version) ||
25029 (gtk_micro_version != $gtk_config_micro_version))
25030 {
25031 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25032 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25033 gtk_major_version, gtk_minor_version, gtk_micro_version);
25034 printf ("*** was found! If gtk-config was correct, then it is best\n");
25035 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25036 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25037 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25038 printf("*** required on your system.\n");
25039 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25040 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25041 printf("*** before re-running configure\n");
25042 }
25043#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25044 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25045 (gtk_minor_version != GTK_MINOR_VERSION) ||
25046 (gtk_micro_version != GTK_MICRO_VERSION))
25047 {
25048 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25049 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25050 printf("*** library (version %d.%d.%d)\n",
25051 gtk_major_version, gtk_minor_version, gtk_micro_version);
25052 }
25053#endif /* defined (GTK_MAJOR_VERSION) ... */
25054 else
25055 {
25056 if ((gtk_major_version > major) ||
25057 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25058 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25059 {
25060 return 0;
25061 }
25062 else
25063 {
25064 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25065 gtk_major_version, gtk_minor_version, gtk_micro_version);
25066 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25067 major, minor, micro);
25068 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25069 printf("***\n");
25070 printf("*** If you have already installed a sufficiently new version, this error\n");
25071 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25072 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25073 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25074 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25075 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25076 printf("*** so that the correct libraries are found at run-time))\n");
25077 }
25078 }
25079 return 1;
25080}
25081
25082_ACEOF
25083rm -f conftest$ac_exeext
25084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25085 (eval $ac_link) 2>&5
25086 ac_status=$?
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25090 (eval $ac_try) 2>&5
25091 ac_status=$?
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); }; }; then
25094 :
25095else
25096 echo "$as_me: program exited with status $ac_status" >&5
25097echo "$as_me: failed program was:" >&5
25098sed 's/^/| /' conftest.$ac_ext >&5
25099
25100( exit $ac_status )
25101no_gtk=yes
25102fi
ac1cb8d3 25103rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25104fi
25105 CFLAGS="$ac_save_CFLAGS"
25106 LIBS="$ac_save_LIBS"
25107 fi
25108 fi
25109 if test "x$no_gtk" = x ; then
25110 echo "$as_me:$LINENO: result: yes" >&5
25111echo "${ECHO_T}yes" >&6
25112 wx_cv_lib_gtk=1.2.3
25113 else
25114 echo "$as_me:$LINENO: result: no" >&5
25115echo "${ECHO_T}no" >&6
25116 if test "$GTK_CONFIG" = "no" ; then
25117 echo "*** The gtk-config script installed by GTK could not be found"
25118 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25119 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25120 echo "*** full path to gtk-config."
25121 else
25122 if test -f conf.gtktest ; then
25123 :
25124 else
25125 echo "*** Could not run GTK test program, checking why..."
25126 CFLAGS="$CFLAGS $GTK_CFLAGS"
25127 LIBS="$LIBS $GTK_LIBS"
25128 cat >conftest.$ac_ext <<_ACEOF
25129/* confdefs.h. */
25130_ACEOF
25131cat confdefs.h >>conftest.$ac_ext
25132cat >>conftest.$ac_ext <<_ACEOF
25133/* end confdefs.h. */
25134
25135#include <gtk/gtk.h>
25136#include <stdio.h>
25137
25138int
25139main ()
25140{
25141 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25142 ;
25143 return 0;
25144}
25145_ACEOF
25146rm -f conftest.$ac_objext conftest$ac_exeext
25147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25148 (eval $ac_link) 2>conftest.er1
a848cd7e 25149 ac_status=$?
ac1cb8d3
VS
25150 grep -v '^ *+' conftest.er1 >conftest.err
25151 rm -f conftest.er1
25152 cat conftest.err >&5
a848cd7e
SC
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); } &&
dfe0c803
JS
25155 { ac_try='test -z "$ac_c_werror_flag"
25156 || test ! -s conftest.err'
ac1cb8d3
VS
25157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25158 (eval $ac_try) 2>&5
25159 ac_status=$?
25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); }; } &&
25162 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25164 (eval $ac_try) 2>&5
25165 ac_status=$?
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); }; }; then
25168 echo "*** The test program compiled, but did not run. This usually means"
25169 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25170 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25171 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25172 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25173 echo "*** is required on your system"
25174 echo "***"
25175 echo "*** If you have an old version installed, it is best to remove it, although"
25176 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25177 echo "***"
25178 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25179 echo "*** came with the system with the command"
25180 echo "***"
25181 echo "*** rpm --erase --nodeps gtk gtk-devel"
25182else
25183 echo "$as_me: failed program was:" >&5
25184sed 's/^/| /' conftest.$ac_ext >&5
25185
25186 echo "*** The test program failed to compile or link. See the file config.log for the"
25187 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25188 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25189 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25190fi
ac1cb8d3
VS
25191rm -f conftest.err conftest.$ac_objext \
25192 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25193 CFLAGS="$ac_save_CFLAGS"
25194 LIBS="$ac_save_LIBS"
25195 fi
25196 fi
25197 GTK_CFLAGS=""
25198 GTK_LIBS=""
25199 :
25200 fi
25201
25202
25203 rm -f conf.gtktest
25204
25205 fi
25206 fi
25207
25208 if test -z "$wx_cv_lib_gtk"; then
25209 wx_cv_lib_gtk=none
25210 else
25211 wx_cv_cflags_gtk=$GTK_CFLAGS
25212 wx_cv_libs_gtk=$GTK_LIBS
25213 fi
25214
25215
25216fi
25217
25218
25219 if test "$gtk_version_cached" = 1; then
25220 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25221echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25222 fi
25223
25224 case "$wx_cv_lib_gtk" in
25225 2.0) WXGTK20=1
25226 TOOLKIT_VERSION=2
25227 ;;
25228 1.2.7) WXGTK127=1
25229 WXGTK12=1
25230 ;;
25231 1.2.3) WXGTK12=1
25232 ;;
25233 *) { { echo "$as_me:$LINENO: error:
25234Please check that gtk-config is in path, the directory
25235where GTK+ libraries are installed (returned by
25236'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25237equivalent variable and GTK+ is version 1.2.3 or above.
25238 " >&5
25239echo "$as_me: error:
25240Please check that gtk-config is in path, the directory
25241where GTK+ libraries are installed (returned by
25242'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25243equivalent variable and GTK+ is version 1.2.3 or above.
25244 " >&2;}
25245 { (exit 1); exit 1; }; }
25246 ;;
25247 esac
25248
25249 if test "$WXGTK20" = 1; then
304205f1
VS
25250 save_CFLAGS="$CFLAGS"
25251 save_LIBS="$LIBS"
9d271838
VZ
25252 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25253 LIBS="$LIBS $wx_cv_lib_gtk"
304205f1 25254
9755e73b 25255
304205f1
VS
25256for ac_func in pango_font_family_is_monospace
25257do
25258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25259echo "$as_me:$LINENO: checking for $ac_func" >&5
25260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25261if eval "test \"\${$as_ac_var+set}\" = set"; then
25262 echo $ECHO_N "(cached) $ECHO_C" >&6
25263else
25264 cat >conftest.$ac_ext <<_ACEOF
25265/* confdefs.h. */
25266_ACEOF
25267cat confdefs.h >>conftest.$ac_ext
25268cat >>conftest.$ac_ext <<_ACEOF
25269/* end confdefs.h. */
25270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25272#define $ac_func innocuous_$ac_func
25273
25274/* System header to define __stub macros and hopefully few prototypes,
25275 which can conflict with char $ac_func (); below.
25276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25277 <limits.h> exists even on freestanding compilers. */
25278
25279#ifdef __STDC__
25280# include <limits.h>
25281#else
25282# include <assert.h>
25283#endif
25284
25285#undef $ac_func
25286
25287/* Override any gcc2 internal prototype to avoid an error. */
25288#ifdef __cplusplus
25289extern "C"
25290{
25291#endif
25292/* We use char because int might match the return type of a gcc2
25293 builtin and then its argument prototype would still apply. */
25294char $ac_func ();
25295/* The GNU C library defines this for functions which it implements
25296 to always fail with ENOSYS. Some functions are actually named
25297 something starting with __ and the normal name is an alias. */
25298#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25299choke me
25300#else
25301char (*f) () = $ac_func;
25302#endif
25303#ifdef __cplusplus
25304}
25305#endif
25306
25307int
25308main ()
25309{
25310return f != $ac_func;
25311 ;
25312 return 0;
25313}
25314_ACEOF
25315rm -f conftest.$ac_objext conftest$ac_exeext
25316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25317 (eval $ac_link) 2>conftest.er1
25318 ac_status=$?
25319 grep -v '^ *+' conftest.er1 >conftest.err
25320 rm -f conftest.er1
25321 cat conftest.err >&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } &&
dfe0c803
JS
25324 { ac_try='test -z "$ac_c_werror_flag"
25325 || test ! -s conftest.err'
304205f1
VS
25326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327 (eval $ac_try) 2>&5
25328 ac_status=$?
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); }; } &&
25331 { ac_try='test -s conftest$ac_exeext'
25332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25333 (eval $ac_try) 2>&5
25334 ac_status=$?
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); }; }; then
25337 eval "$as_ac_var=yes"
25338else
25339 echo "$as_me: failed program was:" >&5
25340sed 's/^/| /' conftest.$ac_ext >&5
25341
25342eval "$as_ac_var=no"
25343fi
25344rm -f conftest.err conftest.$ac_objext \
25345 conftest$ac_exeext conftest.$ac_ext
25346fi
25347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25348echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25349if test `eval echo '${'$as_ac_var'}'` = yes; then
25350 cat >>confdefs.h <<_ACEOF
25351#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25352_ACEOF
25353
25354fi
25355done
25356
9755e73b
VS
25357
25358 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25359echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25360 cat >conftest.$ac_ext <<_ACEOF
25361/* confdefs.h. */
25362_ACEOF
25363cat confdefs.h >>conftest.$ac_ext
25364cat >>conftest.$ac_ext <<_ACEOF
25365/* end confdefs.h. */
25366
25367 #include <gtk/gtk.h>
25368
25369int
25370main ()
25371{
25372
25373 #if !GTK_CHECK_VERSION(2,4,0)
25374 #error "Not GTK+ 2.4"
25375 #endif
25376
25377 ;
25378 return 0;
25379}
25380_ACEOF
25381rm -f conftest.$ac_objext
25382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25383 (eval $ac_compile) 2>conftest.er1
25384 ac_status=$?
25385 grep -v '^ *+' conftest.er1 >conftest.err
25386 rm -f conftest.er1
25387 cat conftest.err >&5
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); } &&
dfe0c803
JS
25390 { ac_try='test -z "$ac_c_werror_flag"
25391 || test ! -s conftest.err'
9755e73b
VS
25392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25393 (eval $ac_try) 2>&5
25394 ac_status=$?
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); }; } &&
25397 { ac_try='test -s conftest.$ac_objext'
25398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25399 (eval $ac_try) 2>&5
25400 ac_status=$?
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); }; }; then
25403
25404 cat >>confdefs.h <<\_ACEOF
25405#define __WXGTK24__ 1
25406_ACEOF
25407
25408 echo "$as_me:$LINENO: result: yes" >&5
25409echo "${ECHO_T}yes" >&6
25410
25411else
25412 echo "$as_me: failed program was:" >&5
25413sed 's/^/| /' conftest.$ac_ext >&5
25414
25415
25416 echo "$as_me:$LINENO: result: no" >&5
25417echo "${ECHO_T}no" >&6
25418
25419fi
25420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25421
304205f1
VS
25422 CFLAGS="$save_CFLAGS"
25423 LIBS="$save_LIBS"
a848cd7e
SC
25424 else
25425 if test "$wxUSE_UNICODE" = "yes"; then
25426 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25427echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25428 wxUSE_UNICODE=no
25429 fi
25430 fi
25431
25432 if test "$USE_DARWIN" != 1; then
25433
25434for ac_func in poll
25435do
25436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25437echo "$as_me:$LINENO: checking for $ac_func" >&5
25438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25439if eval "test \"\${$as_ac_var+set}\" = set"; then
25440 echo $ECHO_N "(cached) $ECHO_C" >&6
25441else
25442 cat >conftest.$ac_ext <<_ACEOF
25443/* confdefs.h. */
25444_ACEOF
25445cat confdefs.h >>conftest.$ac_ext
25446cat >>conftest.$ac_ext <<_ACEOF
25447/* end confdefs.h. */
ac1cb8d3
VS
25448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25450#define $ac_func innocuous_$ac_func
25451
a848cd7e
SC
25452/* System header to define __stub macros and hopefully few prototypes,
25453 which can conflict with char $ac_func (); below.
25454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25455 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25456
a848cd7e
SC
25457#ifdef __STDC__
25458# include <limits.h>
25459#else
25460# include <assert.h>
25461#endif
ac1cb8d3
VS
25462
25463#undef $ac_func
25464
a848cd7e
SC
25465/* Override any gcc2 internal prototype to avoid an error. */
25466#ifdef __cplusplus
25467extern "C"
25468{
25469#endif
25470/* We use char because int might match the return type of a gcc2
25471 builtin and then its argument prototype would still apply. */
25472char $ac_func ();
25473/* The GNU C library defines this for functions which it implements
25474 to always fail with ENOSYS. Some functions are actually named
25475 something starting with __ and the normal name is an alias. */
25476#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25477choke me
25478#else
25479char (*f) () = $ac_func;
25480#endif
25481#ifdef __cplusplus
25482}
25483#endif
25484
25485int
25486main ()
25487{
25488return f != $ac_func;
25489 ;
25490 return 0;
25491}
25492_ACEOF
25493rm -f conftest.$ac_objext conftest$ac_exeext
25494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25495 (eval $ac_link) 2>conftest.er1
a848cd7e 25496 ac_status=$?
ac1cb8d3
VS
25497 grep -v '^ *+' conftest.er1 >conftest.err
25498 rm -f conftest.er1
25499 cat conftest.err >&5
a848cd7e
SC
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); } &&
dfe0c803
JS
25502 { ac_try='test -z "$ac_c_werror_flag"
25503 || test ! -s conftest.err'
ac1cb8d3
VS
25504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25505 (eval $ac_try) 2>&5
25506 ac_status=$?
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); }; } &&
25509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25511 (eval $ac_try) 2>&5
25512 ac_status=$?
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); }; }; then
25515 eval "$as_ac_var=yes"
25516else
25517 echo "$as_me: failed program was:" >&5
25518sed 's/^/| /' conftest.$ac_ext >&5
25519
25520eval "$as_ac_var=no"
25521fi
ac1cb8d3
VS
25522rm -f conftest.err conftest.$ac_objext \
25523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25524fi
25525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25526echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25527if test `eval echo '${'$as_ac_var'}'` = yes; then
25528 cat >>confdefs.h <<_ACEOF
25529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25530_ACEOF
25531
25532fi
25533done
25534
25535 fi
25536
25537 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25538 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25539
25540 AFMINSTALL=afminstall
25541 TOOLKIT=GTK
25542 GUIDIST=GTK_DIST
25543
25544 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25545echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25546if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25547 echo $ECHO_N "(cached) $ECHO_C" >&6
25548else
25549 ac_check_lib_save_LIBS=$LIBS
25550LIBS="-lgdk $LIBS"
25551cat >conftest.$ac_ext <<_ACEOF
25552/* confdefs.h. */
25553_ACEOF
25554cat confdefs.h >>conftest.$ac_ext
25555cat >>conftest.$ac_ext <<_ACEOF
25556/* end confdefs.h. */
25557
25558/* Override any gcc2 internal prototype to avoid an error. */
25559#ifdef __cplusplus
25560extern "C"
25561#endif
25562/* We use char because int might match the return type of a gcc2
25563 builtin and then its argument prototype would still apply. */
25564char gdk_im_open ();
25565int
25566main ()
25567{
25568gdk_im_open ();
25569 ;
25570 return 0;
25571}
25572_ACEOF
25573rm -f conftest.$ac_objext conftest$ac_exeext
25574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25575 (eval $ac_link) 2>conftest.er1
a848cd7e 25576 ac_status=$?
ac1cb8d3
VS
25577 grep -v '^ *+' conftest.er1 >conftest.err
25578 rm -f conftest.er1
25579 cat conftest.err >&5
a848cd7e
SC
25580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); } &&
dfe0c803
JS
25582 { ac_try='test -z "$ac_c_werror_flag"
25583 || test ! -s conftest.err'
ac1cb8d3
VS
25584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585 (eval $ac_try) 2>&5
25586 ac_status=$?
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; } &&
25589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591 (eval $ac_try) 2>&5
25592 ac_status=$?
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); }; }; then
25595 ac_cv_lib_gdk_gdk_im_open=yes
25596else
25597 echo "$as_me: failed program was:" >&5
25598sed 's/^/| /' conftest.$ac_ext >&5
25599
25600ac_cv_lib_gdk_gdk_im_open=no
25601fi
ac1cb8d3
VS
25602rm -f conftest.err conftest.$ac_objext \
25603 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25604LIBS=$ac_check_lib_save_LIBS
25605fi
25606echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25607echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25608if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25609 cat >>confdefs.h <<\_ACEOF
25610#define HAVE_XIM 1
25611_ACEOF
25612
25613fi
25614
25615
25616
25617 if test "$wxUSE_GPE" = "yes"; then
25618 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25619echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25620
25621ac_find_libraries=
25622for ac_dir in $SEARCH_LIB /usr/lib;
25623 do
25624 for ac_extension in a so sl dylib; do
25625 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25626 ac_find_libraries=$ac_dir
25627 break 2
25628 fi
25629 done
25630 done
25631
25632 if test "$ac_find_libraries" != "" ; then
25633
25634 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25635 result=$?
25636 if test $result = 0; then
25637 ac_path_to_link=""
25638 else
25639 ac_path_to_link=" -L$ac_find_libraries"
25640 fi
25641
25642 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25643 WXGPE=1
25644 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25645echo "${ECHO_T}found at $ac_find_libraries" >&6
25646 else
25647 echo "$as_me:$LINENO: result: not found" >&5
25648echo "${ECHO_T}not found" >&6
25649 fi
25650
25651 fi
25652 fi
25653
25654 if test "$wxUSE_MGL" = 1; then
25655 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25656echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25657 if test "x$MGL_ROOT" = x ; then
25658 echo "$as_me:$LINENO: result: not found" >&5
25659echo "${ECHO_T}not found" >&6
25660 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25661echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25662 { (exit 1); exit 1; }; }
25663 else
25664 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25665echo "${ECHO_T}$MGL_ROOT" >&6
25666 fi
25667
25668 echo "$as_me:$LINENO: checking for libmgl location" >&5
25669echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25670 case "${host}" in
25671 *-*-linux* )
25672 if test "x$wxUSE_SHARED" = xyes ; then
25673 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25674 else
25675 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25676 fi
25677 ;;
25678 *-pc-msdosdjgpp )
25679 mgl_os_candidates="dos32/dj2"
25680 ;;
25681 *)
25682 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25683echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25684 { (exit 1); exit 1; }; }
25685 esac
25686
25687 mgl_lib_type=""
25688 mgl_os=""
25689
25690 for mgl_os_i in $mgl_os_candidates ; do
25691 if test "x$mgl_os" = x ; then
25692 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25693 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25694 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25695 mgl_lib_type=debug
25696 mgl_os=$mgl_os_i
25697 fi
25698 fi
25699 if test "x$mgl_lib_type" = x ; then
25700 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25701 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25702 mgl_lib_type=release
25703 mgl_os=$mgl_os_i
25704 fi
25705 fi
25706 fi
25707 done
25708
25709 if test "x$mgl_os" = x ; then
25710 echo "$as_me:$LINENO: result: not found" >&5
25711echo "${ECHO_T}not found" >&6
25712 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25713echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25714 { (exit 1); exit 1; }; }
25715 fi
25716 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25717echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25718
25719 wxUSE_UNIVERSAL="yes"
25720
25721 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25722 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25723
25724 AFMINSTALL=afminstall
25725 TOOLKIT=MGL
25726 GUIDIST=MGL_DIST
25727 fi
25728
25729 if test "$wxUSE_MICROWIN" = 1; then
25730 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25731echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25732 if test "x$MICROWINDOWS" = x ; then
25733 echo "$as_me:$LINENO: result: not found" >&5
25734echo "${ECHO_T}not found" >&6
25735 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25736echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25737 { (exit 1); exit 1; }; }
25738 else
25739 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25740echo "${ECHO_T}$MICROWINDOWS" >&6
25741 fi
25742
25743 if test -f $MICROWINDOWS/lib/libmwin.a; then
25744 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25745echo "${ECHO_T}MicroWindows' libraries found." >&6
25746 else
25747 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25748echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25749 { (exit 1); exit 1; }; }
25750 fi
25751
25752 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25753 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25754
25755 wxUSE_UNIVERSAL="yes"
25756
25757 AFMINSTALL=afminstall
25758 TOOLKIT=MICROWIN
25759 GUIDIST=MICROWIN_DIST
25760
25761 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25762 fi
25763
74b84332 25764 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
dfe0c803 25765 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25766echo $ECHO_N "checking for X... $ECHO_C" >&6
25767
25768
25769# Check whether --with-x or --without-x was given.
25770if test "${with_x+set}" = set; then
25771 withval="$with_x"
25772
25773fi;
25774# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25775if test "x$with_x" = xno; then
25776 # The user explicitly disabled X.
25777 have_x=disabled
25778else
25779 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25780 # Both variables are already set.
25781 have_x=yes
25782 else
25783 if test "${ac_cv_have_x+set}" = set; then
25784 echo $ECHO_N "(cached) $ECHO_C" >&6
25785else
25786 # One or both of the vars are not set, and there is no cached value.
25787ac_x_includes=no ac_x_libraries=no
25788rm -fr conftest.dir
25789if mkdir conftest.dir; then
25790 cd conftest.dir
25791 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25792 cat >Imakefile <<'_ACEOF'
25793acfindx:
25794 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25795_ACEOF
25796 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25798 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25799 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25800 for ac_extension in a so sl; do
25801 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25802 test -f $ac_im_libdir/libX11.$ac_extension; then
25803 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25804 fi
25805 done
25806 # Screen out bogus values from the imake configuration. They are
25807 # bogus both because they are the default anyway, and because
25808 # using them would break gcc on systems where it needs fixed includes.
25809 case $ac_im_incroot in
25810 /usr/include) ;;
25811 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25812 esac
25813 case $ac_im_usrlibdir in
25814 /usr/lib | /lib) ;;
25815 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25816 esac
25817 fi
25818 cd ..
25819 rm -fr conftest.dir
25820fi
25821
25822# Standard set of common directories for X headers.
25823# Check X11 before X11Rn because it is often a symlink to the current release.
25824ac_x_header_dirs='
25825/usr/X11/include
25826/usr/X11R6/include
25827/usr/X11R5/include
25828/usr/X11R4/include
25829
25830/usr/include/X11
25831/usr/include/X11R6
25832/usr/include/X11R5
25833/usr/include/X11R4
25834
25835/usr/local/X11/include
25836/usr/local/X11R6/include
25837/usr/local/X11R5/include
25838/usr/local/X11R4/include
25839
25840/usr/local/include/X11
25841/usr/local/include/X11R6
25842/usr/local/include/X11R5
25843/usr/local/include/X11R4
25844
25845/usr/X386/include
25846/usr/x386/include
25847/usr/XFree86/include/X11
25848
25849/usr/include
25850/usr/local/include
25851/usr/unsupported/include
25852/usr/athena/include
25853/usr/local/x11r5/include
25854/usr/lpp/Xamples/include
25855
25856/usr/openwin/include
25857/usr/openwin/share/include'
25858
25859if test "$ac_x_includes" = no; then
dfe0c803 25860 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
25861 # First, try using that file with no special directory specified.
25862 cat >conftest.$ac_ext <<_ACEOF
25863/* confdefs.h. */
25864_ACEOF
25865cat confdefs.h >>conftest.$ac_ext
25866cat >>conftest.$ac_ext <<_ACEOF
25867/* end confdefs.h. */
25868#include <X11/Intrinsic.h>
25869_ACEOF
25870if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25872 ac_status=$?
25873 grep -v '^ *+' conftest.er1 >conftest.err
25874 rm -f conftest.er1
25875 cat conftest.err >&5
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); } >/dev/null; then
25878 if test -s conftest.err; then
25879 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25881 else
25882 ac_cpp_err=
25883 fi
25884else
25885 ac_cpp_err=yes
25886fi
25887if test -z "$ac_cpp_err"; then
25888 # We can compile using X headers with no special include directory.
25889ac_x_includes=
25890else
25891 echo "$as_me: failed program was:" >&5
25892sed 's/^/| /' conftest.$ac_ext >&5
25893
25894 for ac_dir in $ac_x_header_dirs; do
25895 if test -r "$ac_dir/X11/Intrinsic.h"; then
25896 ac_x_includes=$ac_dir
25897 break
25898 fi
25899done
25900fi
25901rm -f conftest.err conftest.$ac_ext
25902fi # $ac_x_includes = no
25903
25904if test "$ac_x_libraries" = no; then
25905 # Check for the libraries.
25906 # See if we find them without any special options.
25907 # Don't add to $LIBS permanently.
25908 ac_save_LIBS=$LIBS
25909 LIBS="-lXt $LIBS"
25910 cat >conftest.$ac_ext <<_ACEOF
25911/* confdefs.h. */
25912_ACEOF
25913cat confdefs.h >>conftest.$ac_ext
25914cat >>conftest.$ac_ext <<_ACEOF
25915/* end confdefs.h. */
25916#include <X11/Intrinsic.h>
25917int
25918main ()
25919{
25920XtMalloc (0)
25921 ;
25922 return 0;
25923}
25924_ACEOF
25925rm -f conftest.$ac_objext conftest$ac_exeext
25926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25927 (eval $ac_link) 2>conftest.er1
a848cd7e 25928 ac_status=$?
ac1cb8d3
VS
25929 grep -v '^ *+' conftest.er1 >conftest.err
25930 rm -f conftest.er1
25931 cat conftest.err >&5
a848cd7e
SC
25932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); } &&
dfe0c803
JS
25934 { ac_try='test -z "$ac_c_werror_flag"
25935 || test ! -s conftest.err'
ac1cb8d3
VS
25936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937 (eval $ac_try) 2>&5
25938 ac_status=$?
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); }; } &&
25941 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25943 (eval $ac_try) 2>&5
25944 ac_status=$?
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); }; }; then
25947 LIBS=$ac_save_LIBS
25948# We can link X programs with no special library path.
25949ac_x_libraries=
25950else
25951 echo "$as_me: failed program was:" >&5
25952sed 's/^/| /' conftest.$ac_ext >&5
25953
25954LIBS=$ac_save_LIBS
25955for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25956do
25957 # Don't even attempt the hair of trying to link an X program!
25958 for ac_extension in a so sl; do
25959 if test -r $ac_dir/libXt.$ac_extension; then
25960 ac_x_libraries=$ac_dir
25961 break 2
25962 fi
25963 done
25964done
25965fi
ac1cb8d3
VS
25966rm -f conftest.err conftest.$ac_objext \
25967 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25968fi # $ac_x_libraries = no
25969
25970if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25971 # Didn't find X anywhere. Cache the known absence of X.
25972 ac_cv_have_x="have_x=no"
25973else
25974 # Record where we found X for the cache.
25975 ac_cv_have_x="have_x=yes \
ac1cb8d3 25976 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25977fi
25978fi
25979
25980 fi
25981 eval "$ac_cv_have_x"
25982fi # $with_x != no
25983
25984if test "$have_x" != yes; then
25985 echo "$as_me:$LINENO: result: $have_x" >&5
25986echo "${ECHO_T}$have_x" >&6
25987 no_x=yes
25988else
25989 # If each of the values was on the command line, it overrides each guess.
25990 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25991 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25992 # Update the cache value to reflect the command line values.
25993 ac_cv_have_x="have_x=yes \
25994 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
dfe0c803
JS
25995 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25996echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
25997fi
25998
25999if test "$no_x" = yes; then
26000 # Not all programs may use this symbol, but it does not hurt to define it.
26001
26002cat >>confdefs.h <<\_ACEOF
26003#define X_DISPLAY_MISSING 1
26004_ACEOF
26005
26006 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26007else
26008 if test -n "$x_includes"; then
26009 X_CFLAGS="$X_CFLAGS -I$x_includes"
26010 fi
26011
26012 # It would also be nice to do this for all -L options, not just this one.
26013 if test -n "$x_libraries"; then
26014 X_LIBS="$X_LIBS -L$x_libraries"
26015 # For Solaris; some versions of Sun CC require a space after -R and
26016 # others require no space. Words are not sufficient . . . .
26017 case `(uname -sr) 2>/dev/null` in
26018 "SunOS 5"*)
26019 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26020echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26021 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26022 cat >conftest.$ac_ext <<_ACEOF
26023/* confdefs.h. */
26024_ACEOF
26025cat confdefs.h >>conftest.$ac_ext
26026cat >>conftest.$ac_ext <<_ACEOF
26027/* end confdefs.h. */
26028
26029int
26030main ()
26031{
26032
26033 ;
26034 return 0;
26035}
26036_ACEOF
26037rm -f conftest.$ac_objext conftest$ac_exeext
26038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26039 (eval $ac_link) 2>conftest.er1
a848cd7e 26040 ac_status=$?
ac1cb8d3
VS
26041 grep -v '^ *+' conftest.er1 >conftest.err
26042 rm -f conftest.er1
26043 cat conftest.err >&5
a848cd7e
SC
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); } &&
dfe0c803
JS
26046 { ac_try='test -z "$ac_c_werror_flag"
26047 || test ! -s conftest.err'
ac1cb8d3
VS
26048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26049 (eval $ac_try) 2>&5
26050 ac_status=$?
26051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); }; } &&
26053 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26055 (eval $ac_try) 2>&5
26056 ac_status=$?
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); }; }; then
26059 ac_R_nospace=yes
26060else
26061 echo "$as_me: failed program was:" >&5
26062sed 's/^/| /' conftest.$ac_ext >&5
26063
26064ac_R_nospace=no
26065fi
ac1cb8d3
VS
26066rm -f conftest.err conftest.$ac_objext \
26067 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26068 if test $ac_R_nospace = yes; then
26069 echo "$as_me:$LINENO: result: no" >&5
26070echo "${ECHO_T}no" >&6
26071 X_LIBS="$X_LIBS -R$x_libraries"
26072 else
26073 LIBS="$ac_xsave_LIBS -R $x_libraries"
26074 cat >conftest.$ac_ext <<_ACEOF
26075/* confdefs.h. */
26076_ACEOF
26077cat confdefs.h >>conftest.$ac_ext
26078cat >>conftest.$ac_ext <<_ACEOF
26079/* end confdefs.h. */
26080
26081int
26082main ()
26083{
26084
26085 ;
26086 return 0;
26087}
26088_ACEOF
26089rm -f conftest.$ac_objext conftest$ac_exeext
26090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26091 (eval $ac_link) 2>conftest.er1
a848cd7e 26092 ac_status=$?
ac1cb8d3
VS
26093 grep -v '^ *+' conftest.er1 >conftest.err
26094 rm -f conftest.er1
26095 cat conftest.err >&5
a848cd7e
SC
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); } &&
dfe0c803
JS
26098 { ac_try='test -z "$ac_c_werror_flag"
26099 || test ! -s conftest.err'
ac1cb8d3
VS
26100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26101 (eval $ac_try) 2>&5
26102 ac_status=$?
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); }; } &&
26105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26107 (eval $ac_try) 2>&5
26108 ac_status=$?
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); }; }; then
26111 ac_R_space=yes
26112else
26113 echo "$as_me: failed program was:" >&5
26114sed 's/^/| /' conftest.$ac_ext >&5
26115
26116ac_R_space=no
26117fi
ac1cb8d3
VS
26118rm -f conftest.err conftest.$ac_objext \
26119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26120 if test $ac_R_space = yes; then
26121 echo "$as_me:$LINENO: result: yes" >&5
26122echo "${ECHO_T}yes" >&6
26123 X_LIBS="$X_LIBS -R $x_libraries"
26124 else
26125 echo "$as_me:$LINENO: result: neither works" >&5
26126echo "${ECHO_T}neither works" >&6
26127 fi
26128 fi
26129 LIBS=$ac_xsave_LIBS
26130 esac
26131 fi
26132
26133 # Check for system-dependent libraries X programs must link with.
26134 # Do this before checking for the system-independent R6 libraries
26135 # (-lICE), since we may need -lsocket or whatever for X linking.
26136
26137 if test "$ISC" = yes; then
26138 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26139 else
26140 # Martyn Johnson says this is needed for Ultrix, if the X
26141 # libraries were built with DECnet support. And Karl Berry says
26142 # the Alpha needs dnet_stub (dnet does not exist).
26143 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26144 cat >conftest.$ac_ext <<_ACEOF
26145/* confdefs.h. */
26146_ACEOF
26147cat confdefs.h >>conftest.$ac_ext
26148cat >>conftest.$ac_ext <<_ACEOF
26149/* end confdefs.h. */
26150
26151/* Override any gcc2 internal prototype to avoid an error. */
26152#ifdef __cplusplus
26153extern "C"
26154#endif
26155/* We use char because int might match the return type of a gcc2
26156 builtin and then its argument prototype would still apply. */
26157char XOpenDisplay ();
26158int
26159main ()
26160{
26161XOpenDisplay ();
26162 ;
26163 return 0;
26164}
26165_ACEOF
26166rm -f conftest.$ac_objext conftest$ac_exeext
26167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26168 (eval $ac_link) 2>conftest.er1
a848cd7e 26169 ac_status=$?
ac1cb8d3
VS
26170 grep -v '^ *+' conftest.er1 >conftest.err
26171 rm -f conftest.er1
26172 cat conftest.err >&5
a848cd7e
SC
26173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); } &&
dfe0c803
JS
26175 { ac_try='test -z "$ac_c_werror_flag"
26176 || test ! -s conftest.err'
ac1cb8d3
VS
26177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; } &&
26182 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26184 (eval $ac_try) 2>&5
26185 ac_status=$?
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); }; }; then
26188 :
26189else
26190 echo "$as_me: failed program was:" >&5
26191sed 's/^/| /' conftest.$ac_ext >&5
26192
26193echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26194echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26195if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26196 echo $ECHO_N "(cached) $ECHO_C" >&6
26197else
26198 ac_check_lib_save_LIBS=$LIBS
26199LIBS="-ldnet $LIBS"
26200cat >conftest.$ac_ext <<_ACEOF
26201/* confdefs.h. */
26202_ACEOF
26203cat confdefs.h >>conftest.$ac_ext
26204cat >>conftest.$ac_ext <<_ACEOF
26205/* end confdefs.h. */
26206
26207/* Override any gcc2 internal prototype to avoid an error. */
26208#ifdef __cplusplus
26209extern "C"
26210#endif
26211/* We use char because int might match the return type of a gcc2
26212 builtin and then its argument prototype would still apply. */
26213char dnet_ntoa ();
26214int
26215main ()
26216{
26217dnet_ntoa ();
26218 ;
26219 return 0;
26220}
26221_ACEOF
26222rm -f conftest.$ac_objext conftest$ac_exeext
26223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26224 (eval $ac_link) 2>conftest.er1
a848cd7e 26225 ac_status=$?
ac1cb8d3
VS
26226 grep -v '^ *+' conftest.er1 >conftest.err
26227 rm -f conftest.er1
26228 cat conftest.err >&5
a848cd7e
SC
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); } &&
dfe0c803
JS
26231 { ac_try='test -z "$ac_c_werror_flag"
26232 || test ! -s conftest.err'
ac1cb8d3
VS
26233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234 (eval $ac_try) 2>&5
26235 ac_status=$?
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); }; } &&
26238 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26240 (eval $ac_try) 2>&5
26241 ac_status=$?
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); }; }; then
26244 ac_cv_lib_dnet_dnet_ntoa=yes
26245else
26246 echo "$as_me: failed program was:" >&5
26247sed 's/^/| /' conftest.$ac_ext >&5
26248
26249ac_cv_lib_dnet_dnet_ntoa=no
26250fi
ac1cb8d3
VS
26251rm -f conftest.err conftest.$ac_objext \
26252 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26253LIBS=$ac_check_lib_save_LIBS
26254fi
26255echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26256echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26257if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26258 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26259fi
26260
26261 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26262 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26263echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26264if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26265 echo $ECHO_N "(cached) $ECHO_C" >&6
26266else
26267 ac_check_lib_save_LIBS=$LIBS
26268LIBS="-ldnet_stub $LIBS"
26269cat >conftest.$ac_ext <<_ACEOF
26270/* confdefs.h. */
26271_ACEOF
26272cat confdefs.h >>conftest.$ac_ext
26273cat >>conftest.$ac_ext <<_ACEOF
26274/* end confdefs.h. */
26275
26276/* Override any gcc2 internal prototype to avoid an error. */
26277#ifdef __cplusplus
26278extern "C"
26279#endif
26280/* We use char because int might match the return type of a gcc2
26281 builtin and then its argument prototype would still apply. */
26282char dnet_ntoa ();
26283int
26284main ()
26285{
26286dnet_ntoa ();
26287 ;
26288 return 0;
26289}
26290_ACEOF
26291rm -f conftest.$ac_objext conftest$ac_exeext
26292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26293 (eval $ac_link) 2>conftest.er1
a848cd7e 26294 ac_status=$?
ac1cb8d3
VS
26295 grep -v '^ *+' conftest.er1 >conftest.err
26296 rm -f conftest.er1
26297 cat conftest.err >&5
a848cd7e
SC
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); } &&
dfe0c803
JS
26300 { ac_try='test -z "$ac_c_werror_flag"
26301 || test ! -s conftest.err'
ac1cb8d3
VS
26302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303 (eval $ac_try) 2>&5
26304 ac_status=$?
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); }; } &&
26307 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26309 (eval $ac_try) 2>&5
26310 ac_status=$?
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); }; }; then
26313 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26314else
26315 echo "$as_me: failed program was:" >&5
26316sed 's/^/| /' conftest.$ac_ext >&5
26317
26318ac_cv_lib_dnet_stub_dnet_ntoa=no
26319fi
ac1cb8d3
VS
26320rm -f conftest.err conftest.$ac_objext \
26321 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26322LIBS=$ac_check_lib_save_LIBS
26323fi
26324echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26325echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26326if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26327 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26328fi
26329
26330 fi
26331fi
ac1cb8d3
VS
26332rm -f conftest.err conftest.$ac_objext \
26333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26334 LIBS="$ac_xsave_LIBS"
26335
26336 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26337 # to get the SysV transport functions.
26338 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26339 # needs -lnsl.
26340 # The nsl library prevents programs from opening the X display
26341 # on Irix 5.2, according to T.E. Dickey.
26342 # The functions gethostbyname, getservbyname, and inet_addr are
26343 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26344 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26345echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26346if test "${ac_cv_func_gethostbyname+set}" = set; then
26347 echo $ECHO_N "(cached) $ECHO_C" >&6
26348else
26349 cat >conftest.$ac_ext <<_ACEOF
26350/* confdefs.h. */
26351_ACEOF
26352cat confdefs.h >>conftest.$ac_ext
26353cat >>conftest.$ac_ext <<_ACEOF
26354/* end confdefs.h. */
ac1cb8d3
VS
26355/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26357#define gethostbyname innocuous_gethostbyname
26358
a848cd7e
SC
26359/* System header to define __stub macros and hopefully few prototypes,
26360 which can conflict with char gethostbyname (); below.
26361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26362 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26363
a848cd7e
SC
26364#ifdef __STDC__
26365# include <limits.h>
26366#else
26367# include <assert.h>
26368#endif
ac1cb8d3
VS
26369
26370#undef gethostbyname
26371
a848cd7e
SC
26372/* Override any gcc2 internal prototype to avoid an error. */
26373#ifdef __cplusplus
26374extern "C"
26375{
26376#endif
26377/* We use char because int might match the return type of a gcc2
26378 builtin and then its argument prototype would still apply. */
26379char gethostbyname ();
26380/* The GNU C library defines this for functions which it implements
26381 to always fail with ENOSYS. Some functions are actually named
26382 something starting with __ and the normal name is an alias. */
26383#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26384choke me
26385#else
26386char (*f) () = gethostbyname;
26387#endif
26388#ifdef __cplusplus
26389}
26390#endif
26391
26392int
26393main ()
26394{
26395return f != gethostbyname;
26396 ;
26397 return 0;
26398}
26399_ACEOF
26400rm -f conftest.$ac_objext conftest$ac_exeext
26401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26402 (eval $ac_link) 2>conftest.er1
a848cd7e 26403 ac_status=$?
ac1cb8d3
VS
26404 grep -v '^ *+' conftest.er1 >conftest.err
26405 rm -f conftest.er1
26406 cat conftest.err >&5
a848cd7e
SC
26407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408 (exit $ac_status); } &&
dfe0c803
JS
26409 { ac_try='test -z "$ac_c_werror_flag"
26410 || test ! -s conftest.err'
ac1cb8d3
VS
26411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26412 (eval $ac_try) 2>&5
26413 ac_status=$?
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); }; } &&
26416 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418 (eval $ac_try) 2>&5
26419 ac_status=$?
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); }; }; then
26422 ac_cv_func_gethostbyname=yes
26423else
26424 echo "$as_me: failed program was:" >&5
26425sed 's/^/| /' conftest.$ac_ext >&5
26426
26427ac_cv_func_gethostbyname=no
26428fi
ac1cb8d3
VS
26429rm -f conftest.err conftest.$ac_objext \
26430 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26431fi
26432echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26433echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26434
26435 if test $ac_cv_func_gethostbyname = no; then
26436 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26437echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26438if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26439 echo $ECHO_N "(cached) $ECHO_C" >&6
26440else
26441 ac_check_lib_save_LIBS=$LIBS
26442LIBS="-lnsl $LIBS"
26443cat >conftest.$ac_ext <<_ACEOF
26444/* confdefs.h. */
26445_ACEOF
26446cat confdefs.h >>conftest.$ac_ext
26447cat >>conftest.$ac_ext <<_ACEOF
26448/* end confdefs.h. */
26449
26450/* Override any gcc2 internal prototype to avoid an error. */
26451#ifdef __cplusplus
26452extern "C"
26453#endif
26454/* We use char because int might match the return type of a gcc2
26455 builtin and then its argument prototype would still apply. */
26456char gethostbyname ();
26457int
26458main ()
26459{
26460gethostbyname ();
26461 ;
26462 return 0;
26463}
26464_ACEOF
26465rm -f conftest.$ac_objext conftest$ac_exeext
26466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26467 (eval $ac_link) 2>conftest.er1
26468 ac_status=$?
26469 grep -v '^ *+' conftest.er1 >conftest.err
26470 rm -f conftest.er1
26471 cat conftest.err >&5
26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); } &&
dfe0c803
JS
26474 { ac_try='test -z "$ac_c_werror_flag"
26475 || test ! -s conftest.err'
ac1cb8d3
VS
26476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26477 (eval $ac_try) 2>&5
26478 ac_status=$?
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); }; } &&
26481 { ac_try='test -s conftest$ac_exeext'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26484 ac_status=$?
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; }; then
26487 ac_cv_lib_nsl_gethostbyname=yes
26488else
26489 echo "$as_me: failed program was:" >&5
26490sed 's/^/| /' conftest.$ac_ext >&5
26491
26492ac_cv_lib_nsl_gethostbyname=no
26493fi
26494rm -f conftest.err conftest.$ac_objext \
26495 conftest$ac_exeext conftest.$ac_ext
26496LIBS=$ac_check_lib_save_LIBS
26497fi
26498echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26499echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26500if test $ac_cv_lib_nsl_gethostbyname = yes; then
26501 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26502fi
26503
26504 if test $ac_cv_lib_nsl_gethostbyname = no; then
26505 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26506echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26507if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26508 echo $ECHO_N "(cached) $ECHO_C" >&6
26509else
26510 ac_check_lib_save_LIBS=$LIBS
26511LIBS="-lbsd $LIBS"
26512cat >conftest.$ac_ext <<_ACEOF
26513/* confdefs.h. */
26514_ACEOF
26515cat confdefs.h >>conftest.$ac_ext
26516cat >>conftest.$ac_ext <<_ACEOF
26517/* end confdefs.h. */
26518
26519/* Override any gcc2 internal prototype to avoid an error. */
26520#ifdef __cplusplus
26521extern "C"
26522#endif
26523/* We use char because int might match the return type of a gcc2
26524 builtin and then its argument prototype would still apply. */
26525char gethostbyname ();
26526int
26527main ()
26528{
26529gethostbyname ();
26530 ;
26531 return 0;
26532}
26533_ACEOF
26534rm -f conftest.$ac_objext conftest$ac_exeext
26535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26536 (eval $ac_link) 2>conftest.er1
a848cd7e 26537 ac_status=$?
ac1cb8d3
VS
26538 grep -v '^ *+' conftest.er1 >conftest.err
26539 rm -f conftest.er1
26540 cat conftest.err >&5
a848cd7e
SC
26541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542 (exit $ac_status); } &&
dfe0c803
JS
26543 { ac_try='test -z "$ac_c_werror_flag"
26544 || test ! -s conftest.err'
a848cd7e
SC
26545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26546 (eval $ac_try) 2>&5
26547 ac_status=$?
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26549 (exit $ac_status); }; } &&
26550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26553 ac_status=$?
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; }; then
26556 ac_cv_lib_bsd_gethostbyname=yes
26557else
26558 echo "$as_me: failed program was:" >&5
26559sed 's/^/| /' conftest.$ac_ext >&5
26560
26561ac_cv_lib_bsd_gethostbyname=no
26562fi
ac1cb8d3
VS
26563rm -f conftest.err conftest.$ac_objext \
26564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26565LIBS=$ac_check_lib_save_LIBS
26566fi
26567echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26568echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26569if test $ac_cv_lib_bsd_gethostbyname = yes; then
26570 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26571fi
26572
26573 fi
26574 fi
26575
26576 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26577 # socket/setsockopt and other routines are undefined under SCO ODT
26578 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26579 # on later versions), says Simon Leinen: it contains gethostby*
26580 # variants that don't use the name server (or something). -lsocket
26581 # must be given before -lnsl if both are needed. We assume that
26582 # if connect needs -lnsl, so does gethostbyname.
26583 echo "$as_me:$LINENO: checking for connect" >&5
26584echo $ECHO_N "checking for connect... $ECHO_C" >&6
26585if test "${ac_cv_func_connect+set}" = set; then
26586 echo $ECHO_N "(cached) $ECHO_C" >&6
26587else
26588 cat >conftest.$ac_ext <<_ACEOF
26589/* confdefs.h. */
26590_ACEOF
26591cat confdefs.h >>conftest.$ac_ext
26592cat >>conftest.$ac_ext <<_ACEOF
26593/* end confdefs.h. */
ac1cb8d3
VS
26594/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26596#define connect innocuous_connect
26597
a848cd7e
SC
26598/* System header to define __stub macros and hopefully few prototypes,
26599 which can conflict with char connect (); below.
26600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26601 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26602
a848cd7e
SC
26603#ifdef __STDC__
26604# include <limits.h>
26605#else
26606# include <assert.h>
26607#endif
ac1cb8d3
VS
26608
26609#undef connect
26610
a848cd7e
SC
26611/* Override any gcc2 internal prototype to avoid an error. */
26612#ifdef __cplusplus
26613extern "C"
26614{
26615#endif
26616/* We use char because int might match the return type of a gcc2
26617 builtin and then its argument prototype would still apply. */
26618char connect ();
26619/* The GNU C library defines this for functions which it implements
26620 to always fail with ENOSYS. Some functions are actually named
26621 something starting with __ and the normal name is an alias. */
26622#if defined (__stub_connect) || defined (__stub___connect)
26623choke me
26624#else
26625char (*f) () = connect;
26626#endif
26627#ifdef __cplusplus
26628}
26629#endif
26630
26631int
26632main ()
26633{
26634return f != connect;
26635 ;
26636 return 0;
26637}
26638_ACEOF
26639rm -f conftest.$ac_objext conftest$ac_exeext
26640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26641 (eval $ac_link) 2>conftest.er1
a848cd7e 26642 ac_status=$?
ac1cb8d3
VS
26643 grep -v '^ *+' conftest.er1 >conftest.err
26644 rm -f conftest.er1
26645 cat conftest.err >&5
a848cd7e
SC
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); } &&
dfe0c803
JS
26648 { ac_try='test -z "$ac_c_werror_flag"
26649 || test ! -s conftest.err'
ac1cb8d3
VS
26650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26651 (eval $ac_try) 2>&5
26652 ac_status=$?
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); }; } &&
26655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26657 (eval $ac_try) 2>&5
26658 ac_status=$?
26659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660 (exit $ac_status); }; }; then
26661 ac_cv_func_connect=yes
26662else
26663 echo "$as_me: failed program was:" >&5
26664sed 's/^/| /' conftest.$ac_ext >&5
26665
26666ac_cv_func_connect=no
26667fi
ac1cb8d3
VS
26668rm -f conftest.err conftest.$ac_objext \
26669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26670fi
26671echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26672echo "${ECHO_T}$ac_cv_func_connect" >&6
26673
26674 if test $ac_cv_func_connect = no; then
26675 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26676echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26677if test "${ac_cv_lib_socket_connect+set}" = set; then
26678 echo $ECHO_N "(cached) $ECHO_C" >&6
26679else
26680 ac_check_lib_save_LIBS=$LIBS
26681LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26682cat >conftest.$ac_ext <<_ACEOF
26683/* confdefs.h. */
26684_ACEOF
26685cat confdefs.h >>conftest.$ac_ext
26686cat >>conftest.$ac_ext <<_ACEOF
26687/* end confdefs.h. */
26688
26689/* Override any gcc2 internal prototype to avoid an error. */
26690#ifdef __cplusplus
26691extern "C"
26692#endif
26693/* We use char because int might match the return type of a gcc2
26694 builtin and then its argument prototype would still apply. */
26695char connect ();
26696int
26697main ()
26698{
26699connect ();
26700 ;
26701 return 0;
26702}
26703_ACEOF
26704rm -f conftest.$ac_objext conftest$ac_exeext
26705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26706 (eval $ac_link) 2>conftest.er1
a848cd7e 26707 ac_status=$?
ac1cb8d3
VS
26708 grep -v '^ *+' conftest.er1 >conftest.err
26709 rm -f conftest.er1
26710 cat conftest.err >&5
a848cd7e
SC
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); } &&
dfe0c803
JS
26713 { ac_try='test -z "$ac_c_werror_flag"
26714 || test ! -s conftest.err'
ac1cb8d3
VS
26715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26716 (eval $ac_try) 2>&5
26717 ac_status=$?
26718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26719 (exit $ac_status); }; } &&
26720 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26722 (eval $ac_try) 2>&5
26723 ac_status=$?
26724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); }; }; then
26726 ac_cv_lib_socket_connect=yes
26727else
26728 echo "$as_me: failed program was:" >&5
26729sed 's/^/| /' conftest.$ac_ext >&5
26730
26731ac_cv_lib_socket_connect=no
26732fi
ac1cb8d3
VS
26733rm -f conftest.err conftest.$ac_objext \
26734 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26735LIBS=$ac_check_lib_save_LIBS
26736fi
26737echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26738echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26739if test $ac_cv_lib_socket_connect = yes; then
26740 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26741fi
26742
26743 fi
26744
26745 # Guillermo Gomez says -lposix is necessary on A/UX.
26746 echo "$as_me:$LINENO: checking for remove" >&5
26747echo $ECHO_N "checking for remove... $ECHO_C" >&6
26748if test "${ac_cv_func_remove+set}" = set; then
26749 echo $ECHO_N "(cached) $ECHO_C" >&6
26750else
26751 cat >conftest.$ac_ext <<_ACEOF
26752/* confdefs.h. */
26753_ACEOF
26754cat confdefs.h >>conftest.$ac_ext
26755cat >>conftest.$ac_ext <<_ACEOF
26756/* end confdefs.h. */
ac1cb8d3
VS
26757/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26759#define remove innocuous_remove
26760
a848cd7e
SC
26761/* System header to define __stub macros and hopefully few prototypes,
26762 which can conflict with char remove (); below.
26763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26764 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26765
a848cd7e
SC
26766#ifdef __STDC__
26767# include <limits.h>
26768#else
26769# include <assert.h>
26770#endif
ac1cb8d3
VS
26771
26772#undef remove
26773
a848cd7e
SC
26774/* Override any gcc2 internal prototype to avoid an error. */
26775#ifdef __cplusplus
26776extern "C"
26777{
26778#endif
26779/* We use char because int might match the return type of a gcc2
26780 builtin and then its argument prototype would still apply. */
26781char remove ();
26782/* The GNU C library defines this for functions which it implements
26783 to always fail with ENOSYS. Some functions are actually named
26784 something starting with __ and the normal name is an alias. */
26785#if defined (__stub_remove) || defined (__stub___remove)
26786choke me
26787#else
26788char (*f) () = remove;
26789#endif
26790#ifdef __cplusplus
26791}
26792#endif
26793
26794int
26795main ()
26796{
26797return f != remove;
26798 ;
26799 return 0;
26800}
26801_ACEOF
26802rm -f conftest.$ac_objext conftest$ac_exeext
26803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26804 (eval $ac_link) 2>conftest.er1
a848cd7e 26805 ac_status=$?
ac1cb8d3
VS
26806 grep -v '^ *+' conftest.er1 >conftest.err
26807 rm -f conftest.er1
26808 cat conftest.err >&5
a848cd7e
SC
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); } &&
dfe0c803
JS
26811 { ac_try='test -z "$ac_c_werror_flag"
26812 || test ! -s conftest.err'
ac1cb8d3
VS
26813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814 (eval $ac_try) 2>&5
26815 ac_status=$?
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); }; } &&
26818 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820 (eval $ac_try) 2>&5
26821 ac_status=$?
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; }; then
26824 ac_cv_func_remove=yes
26825else
26826 echo "$as_me: failed program was:" >&5
26827sed 's/^/| /' conftest.$ac_ext >&5
26828
26829ac_cv_func_remove=no
26830fi
ac1cb8d3
VS
26831rm -f conftest.err conftest.$ac_objext \
26832 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26833fi
26834echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26835echo "${ECHO_T}$ac_cv_func_remove" >&6
26836
26837 if test $ac_cv_func_remove = no; then
26838 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26839echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26840if test "${ac_cv_lib_posix_remove+set}" = set; then
26841 echo $ECHO_N "(cached) $ECHO_C" >&6
26842else
26843 ac_check_lib_save_LIBS=$LIBS
26844LIBS="-lposix $LIBS"
26845cat >conftest.$ac_ext <<_ACEOF
26846/* confdefs.h. */
26847_ACEOF
26848cat confdefs.h >>conftest.$ac_ext
26849cat >>conftest.$ac_ext <<_ACEOF
26850/* end confdefs.h. */
26851
26852/* Override any gcc2 internal prototype to avoid an error. */
26853#ifdef __cplusplus
26854extern "C"
26855#endif
26856/* We use char because int might match the return type of a gcc2
26857 builtin and then its argument prototype would still apply. */
26858char remove ();
26859int
26860main ()
26861{
26862remove ();
26863 ;
26864 return 0;
26865}
26866_ACEOF
26867rm -f conftest.$ac_objext conftest$ac_exeext
26868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26869 (eval $ac_link) 2>conftest.er1
a848cd7e 26870 ac_status=$?
ac1cb8d3
VS
26871 grep -v '^ *+' conftest.er1 >conftest.err
26872 rm -f conftest.er1
26873 cat conftest.err >&5
a848cd7e
SC
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); } &&
dfe0c803
JS
26876 { ac_try='test -z "$ac_c_werror_flag"
26877 || test ! -s conftest.err'
ac1cb8d3
VS
26878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879 (eval $ac_try) 2>&5
26880 ac_status=$?
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); }; } &&
26883 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885 (eval $ac_try) 2>&5
26886 ac_status=$?
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); }; }; then
26889 ac_cv_lib_posix_remove=yes
26890else
26891 echo "$as_me: failed program was:" >&5
26892sed 's/^/| /' conftest.$ac_ext >&5
26893
26894ac_cv_lib_posix_remove=no
26895fi
ac1cb8d3
VS
26896rm -f conftest.err conftest.$ac_objext \
26897 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26898LIBS=$ac_check_lib_save_LIBS
26899fi
26900echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26901echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26902if test $ac_cv_lib_posix_remove = yes; then
26903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26904fi
26905
26906 fi
26907
26908 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26909 echo "$as_me:$LINENO: checking for shmat" >&5
26910echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26911if test "${ac_cv_func_shmat+set}" = set; then
26912 echo $ECHO_N "(cached) $ECHO_C" >&6
26913else
26914 cat >conftest.$ac_ext <<_ACEOF
26915/* confdefs.h. */
26916_ACEOF
26917cat confdefs.h >>conftest.$ac_ext
26918cat >>conftest.$ac_ext <<_ACEOF
26919/* end confdefs.h. */
ac1cb8d3
VS
26920/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26922#define shmat innocuous_shmat
26923
a848cd7e
SC
26924/* System header to define __stub macros and hopefully few prototypes,
26925 which can conflict with char shmat (); below.
26926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26927 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26928
a848cd7e
SC
26929#ifdef __STDC__
26930# include <limits.h>
26931#else
26932# include <assert.h>
26933#endif
ac1cb8d3
VS
26934
26935#undef shmat
26936
a848cd7e
SC
26937/* Override any gcc2 internal prototype to avoid an error. */
26938#ifdef __cplusplus
26939extern "C"
26940{
26941#endif
26942/* We use char because int might match the return type of a gcc2
26943 builtin and then its argument prototype would still apply. */
26944char shmat ();
26945/* The GNU C library defines this for functions which it implements
26946 to always fail with ENOSYS. Some functions are actually named
26947 something starting with __ and the normal name is an alias. */
26948#if defined (__stub_shmat) || defined (__stub___shmat)
26949choke me
26950#else
26951char (*f) () = shmat;
26952#endif
26953#ifdef __cplusplus
26954}
26955#endif
26956
26957int
26958main ()
26959{
26960return f != shmat;
26961 ;
26962 return 0;
26963}
26964_ACEOF
26965rm -f conftest.$ac_objext conftest$ac_exeext
26966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26967 (eval $ac_link) 2>conftest.er1
a848cd7e 26968 ac_status=$?
ac1cb8d3
VS
26969 grep -v '^ *+' conftest.er1 >conftest.err
26970 rm -f conftest.er1
26971 cat conftest.err >&5
a848cd7e
SC
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); } &&
dfe0c803
JS
26974 { ac_try='test -z "$ac_c_werror_flag"
26975 || test ! -s conftest.err'
ac1cb8d3
VS
26976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977 (eval $ac_try) 2>&5
26978 ac_status=$?
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); }; } &&
26981 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26984 ac_status=$?
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; }; then
26987 ac_cv_func_shmat=yes
26988else
26989 echo "$as_me: failed program was:" >&5
26990sed 's/^/| /' conftest.$ac_ext >&5
26991
26992ac_cv_func_shmat=no
26993fi
ac1cb8d3
VS
26994rm -f conftest.err conftest.$ac_objext \
26995 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26996fi
26997echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26998echo "${ECHO_T}$ac_cv_func_shmat" >&6
26999
27000 if test $ac_cv_func_shmat = no; then
27001 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27002echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27003if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27004 echo $ECHO_N "(cached) $ECHO_C" >&6
27005else
27006 ac_check_lib_save_LIBS=$LIBS
27007LIBS="-lipc $LIBS"
27008cat >conftest.$ac_ext <<_ACEOF
27009/* confdefs.h. */
27010_ACEOF
27011cat confdefs.h >>conftest.$ac_ext
27012cat >>conftest.$ac_ext <<_ACEOF
27013/* end confdefs.h. */
27014
27015/* Override any gcc2 internal prototype to avoid an error. */
27016#ifdef __cplusplus
27017extern "C"
27018#endif
27019/* We use char because int might match the return type of a gcc2
27020 builtin and then its argument prototype would still apply. */
27021char shmat ();
27022int
27023main ()
27024{
27025shmat ();
27026 ;
27027 return 0;
27028}
27029_ACEOF
27030rm -f conftest.$ac_objext conftest$ac_exeext
27031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27032 (eval $ac_link) 2>conftest.er1
a848cd7e 27033 ac_status=$?
ac1cb8d3
VS
27034 grep -v '^ *+' conftest.er1 >conftest.err
27035 rm -f conftest.er1
27036 cat conftest.err >&5
a848cd7e
SC
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); } &&
dfe0c803
JS
27039 { ac_try='test -z "$ac_c_werror_flag"
27040 || test ! -s conftest.err'
ac1cb8d3
VS
27041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27042 (eval $ac_try) 2>&5
27043 ac_status=$?
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); }; } &&
27046 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048 (eval $ac_try) 2>&5
27049 ac_status=$?
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27052 ac_cv_lib_ipc_shmat=yes
27053else
27054 echo "$as_me: failed program was:" >&5
27055sed 's/^/| /' conftest.$ac_ext >&5
27056
27057ac_cv_lib_ipc_shmat=no
27058fi
ac1cb8d3
VS
27059rm -f conftest.err conftest.$ac_objext \
27060 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27061LIBS=$ac_check_lib_save_LIBS
27062fi
27063echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27064echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27065if test $ac_cv_lib_ipc_shmat = yes; then
27066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27067fi
27068
27069 fi
27070 fi
27071
27072 # Check for libraries that X11R6 Xt/Xaw programs need.
27073 ac_save_LDFLAGS=$LDFLAGS
27074 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27075 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27076 # check for ICE first), but we must link in the order -lSM -lICE or
27077 # we get undefined symbols. So assume we have SM if we have ICE.
27078 # These have to be linked with before -lX11, unlike the other
27079 # libraries we check for below, so use a different variable.
27080 # John Interrante, Karl Berry
27081 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27082echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27083if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27084 echo $ECHO_N "(cached) $ECHO_C" >&6
27085else
27086 ac_check_lib_save_LIBS=$LIBS
27087LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27088cat >conftest.$ac_ext <<_ACEOF
27089/* confdefs.h. */
27090_ACEOF
27091cat confdefs.h >>conftest.$ac_ext
27092cat >>conftest.$ac_ext <<_ACEOF
27093/* end confdefs.h. */
27094
27095/* Override any gcc2 internal prototype to avoid an error. */
27096#ifdef __cplusplus
27097extern "C"
27098#endif
27099/* We use char because int might match the return type of a gcc2
27100 builtin and then its argument prototype would still apply. */
27101char IceConnectionNumber ();
27102int
27103main ()
27104{
27105IceConnectionNumber ();
27106 ;
27107 return 0;
27108}
27109_ACEOF
27110rm -f conftest.$ac_objext conftest$ac_exeext
27111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27112 (eval $ac_link) 2>conftest.er1
a848cd7e 27113 ac_status=$?
ac1cb8d3
VS
27114 grep -v '^ *+' conftest.er1 >conftest.err
27115 rm -f conftest.er1
27116 cat conftest.err >&5
a848cd7e
SC
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); } &&
dfe0c803
JS
27119 { ac_try='test -z "$ac_c_werror_flag"
27120 || test ! -s conftest.err'
ac1cb8d3
VS
27121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122 (eval $ac_try) 2>&5
27123 ac_status=$?
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; } &&
27126 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128 (eval $ac_try) 2>&5
27129 ac_status=$?
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); }; }; then
27132 ac_cv_lib_ICE_IceConnectionNumber=yes
27133else
27134 echo "$as_me: failed program was:" >&5
27135sed 's/^/| /' conftest.$ac_ext >&5
27136
27137ac_cv_lib_ICE_IceConnectionNumber=no
27138fi
ac1cb8d3
VS
27139rm -f conftest.err conftest.$ac_objext \
27140 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27141LIBS=$ac_check_lib_save_LIBS
27142fi
27143echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27144echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27145if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27146 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27147fi
27148
27149 LDFLAGS=$ac_save_LDFLAGS
27150
27151fi
27152
27153
27154 if test "$no_x" = "yes"; then
27155 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27156echo "$as_me: error: X11 not found" >&2;}
27157 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27158 fi
27159
74b84332
VS
27160 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27161 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27162 AFMINSTALL=afminstall
27163 COMPILED_X_PROGRAM=0
27164
74b84332
VS
27165 fi
27166
27167 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27168 if test "$wxUSE_NANOX" = "yes"; then
27169 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27170echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27171 if test "x$MICROWIN" = x ; then
27172 echo "$as_me:$LINENO: result: not found" >&5
27173echo "${ECHO_T}not found" >&6
27174 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27175echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27176 { (exit 1); exit 1; }; }
27177 else
27178 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27179echo "${ECHO_T}$MICROWIN" >&6
27180 cat >>confdefs.h <<\_ACEOF
27181#define wxUSE_NANOX 1
27182_ACEOF
27183
27184 fi
27185 fi
27186
27187 if test "$wxUSE_UNICODE" = "yes"; then
27188
27189 succeeded=no
27190
27191 if test -z "$PKG_CONFIG"; then
27192 # Extract the first word of "pkg-config", so it can be a program name with args.
27193set dummy pkg-config; ac_word=$2
27194echo "$as_me:$LINENO: checking for $ac_word" >&5
27195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27196if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27197 echo $ECHO_N "(cached) $ECHO_C" >&6
27198else
27199 case $PKG_CONFIG in
27200 [\\/]* | ?:[\\/]*)
27201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27202 ;;
27203 *)
27204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27205for as_dir in $PATH
27206do
27207 IFS=$as_save_IFS
27208 test -z "$as_dir" && as_dir=.
27209 for ac_exec_ext in '' $ac_executable_extensions; do
27210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27213 break 2
27214 fi
27215done
27216done
27217
27218 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27219 ;;
27220esac
27221fi
27222PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27223
27224if test -n "$PKG_CONFIG"; then
27225 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27226echo "${ECHO_T}$PKG_CONFIG" >&6
27227else
27228 echo "$as_me:$LINENO: result: no" >&5
27229echo "${ECHO_T}no" >&6
27230fi
27231
27232 fi
27233
27234 if test "$PKG_CONFIG" = "no" ; then
27235 echo "*** The pkg-config script could not be found. Make sure it is"
27236 echo "*** in your path, or set the PKG_CONFIG environment variable"
27237 echo "*** to the full path to pkg-config."
27238 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27239 else
27240 PKG_CONFIG_MIN_VERSION=0.9.0
27241 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27242 echo "$as_me:$LINENO: checking for pangox" >&5
27243echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27244
27245 if $PKG_CONFIG --exists "pangox" ; then
27246 echo "$as_me:$LINENO: result: yes" >&5
27247echo "${ECHO_T}yes" >&6
27248 succeeded=yes
27249
27250 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27251echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27252 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27253 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27254echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27255
27256 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27257echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27258 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27259 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27260echo "${ECHO_T}$PANGOX_LIBS" >&6
27261 else
27262 PANGOX_CFLAGS=""
27263 PANGOX_LIBS=""
27264 ## If we have a custom action on failure, don't print errors, but
27265 ## do set a variable so people can do so.
27266 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27267
27268 fi
27269
27270
27271
27272 else
27273 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27274 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27275 fi
27276 fi
27277
27278 if test $succeeded = yes; then
27279
27280 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27281 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27282
27283 else
27284
27285 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27286echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27287 { (exit 1); exit 1; }; }
27288
27289
27290 fi
27291
27292
27293 succeeded=no
27294
27295 if test -z "$PKG_CONFIG"; then
27296 # Extract the first word of "pkg-config", so it can be a program name with args.
27297set dummy pkg-config; ac_word=$2
27298echo "$as_me:$LINENO: checking for $ac_word" >&5
27299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27300if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27301 echo $ECHO_N "(cached) $ECHO_C" >&6
27302else
27303 case $PKG_CONFIG in
27304 [\\/]* | ?:[\\/]*)
27305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27306 ;;
27307 *)
27308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27309for as_dir in $PATH
27310do
27311 IFS=$as_save_IFS
27312 test -z "$as_dir" && as_dir=.
27313 for ac_exec_ext in '' $ac_executable_extensions; do
27314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27317 break 2
27318 fi
27319done
27320done
27321
27322 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27323 ;;
27324esac
27325fi
27326PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27327
27328if test -n "$PKG_CONFIG"; then
27329 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27330echo "${ECHO_T}$PKG_CONFIG" >&6
27331else
27332 echo "$as_me:$LINENO: result: no" >&5
27333echo "${ECHO_T}no" >&6
27334fi
27335
27336 fi
27337
27338 if test "$PKG_CONFIG" = "no" ; then
27339 echo "*** The pkg-config script could not be found. Make sure it is"
27340 echo "*** in your path, or set the PKG_CONFIG environment variable"
27341 echo "*** to the full path to pkg-config."
27342 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27343 else
27344 PKG_CONFIG_MIN_VERSION=0.9.0
27345 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27346 echo "$as_me:$LINENO: checking for pangoft2" >&5
27347echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27348
27349 if $PKG_CONFIG --exists "pangoft2" ; then
27350 echo "$as_me:$LINENO: result: yes" >&5
27351echo "${ECHO_T}yes" >&6
27352 succeeded=yes
27353
27354 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27355echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27356 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27357 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27358echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27359
27360 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27361echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27362 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27363 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27364echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27365 else
27366 PANGOFT2_CFLAGS=""
27367 PANGOFT2_LIBS=""
27368 ## If we have a custom action on failure, don't print errors, but
27369 ## do set a variable so people can do so.
27370 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27371
27372 fi
27373
27374
27375
27376 else
27377 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27378 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27379 fi
27380 fi
27381
27382 if test $succeeded = yes; then
27383
27384 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27385 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27386
27387 else
27388
27389 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27390echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27391 wxUSE_PRINTING_ARCHITECTURE="no"
27392
27393
27394 fi
27395
27396
27397 succeeded=no
27398
27399 if test -z "$PKG_CONFIG"; then
27400 # Extract the first word of "pkg-config", so it can be a program name with args.
27401set dummy pkg-config; ac_word=$2
27402echo "$as_me:$LINENO: checking for $ac_word" >&5
27403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27404if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27405 echo $ECHO_N "(cached) $ECHO_C" >&6
27406else
27407 case $PKG_CONFIG in
27408 [\\/]* | ?:[\\/]*)
27409 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27410 ;;
27411 *)
27412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27413for as_dir in $PATH
27414do
27415 IFS=$as_save_IFS
27416 test -z "$as_dir" && as_dir=.
27417 for ac_exec_ext in '' $ac_executable_extensions; do
27418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27419 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27421 break 2
27422 fi
27423done
27424done
27425
27426 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27427 ;;
27428esac
27429fi
27430PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27431
27432if test -n "$PKG_CONFIG"; then
27433 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27434echo "${ECHO_T}$PKG_CONFIG" >&6
27435else
27436 echo "$as_me:$LINENO: result: no" >&5
27437echo "${ECHO_T}no" >&6
27438fi
27439
27440 fi
27441
27442 if test "$PKG_CONFIG" = "no" ; then
27443 echo "*** The pkg-config script could not be found. Make sure it is"
27444 echo "*** in your path, or set the PKG_CONFIG environment variable"
27445 echo "*** to the full path to pkg-config."
27446 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27447 else
27448 PKG_CONFIG_MIN_VERSION=0.9.0
27449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27450 echo "$as_me:$LINENO: checking for pangoxft" >&5
27451echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27452
27453 if $PKG_CONFIG --exists "pangoxft" ; then
27454 echo "$as_me:$LINENO: result: yes" >&5
27455echo "${ECHO_T}yes" >&6
27456 succeeded=yes
27457
27458 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27459echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27460 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27461 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27462echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27463
27464 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27465echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27466 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27467 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27468echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27469 else
27470 PANGOXFT_CFLAGS=""
27471 PANGOXFT_LIBS=""
27472 ## If we have a custom action on failure, don't print errors, but
27473 ## do set a variable so people can do so.
27474 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27475
27476 fi
27477
27478
27479
27480 else
27481 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27482 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27483 fi
27484 fi
27485
27486 if test $succeeded = yes; then
27487
4ae1af05
MB
27488 cat >>confdefs.h <<\_ACEOF
27489#define HAVE_PANGO_XFT 1
27490_ACEOF
27491
a848cd7e
SC
27492 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27493 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27494
27495 else
27496
27497 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27498echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27499
27500
27501 fi
27502
304205f1
VS
27503 save_CFLAGS="$CFLAGS"
27504 save_LIBS="$LIBS"
27505 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27506 LIBS="$LIBS $PANGOX_LIBS"
27507
27508for ac_func in pango_font_family_is_monospace
27509do
27510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27511echo "$as_me:$LINENO: checking for $ac_func" >&5
27512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27513if eval "test \"\${$as_ac_var+set}\" = set"; then
27514 echo $ECHO_N "(cached) $ECHO_C" >&6
27515else
27516 cat >conftest.$ac_ext <<_ACEOF
27517/* confdefs.h. */
27518_ACEOF
27519cat confdefs.h >>conftest.$ac_ext
27520cat >>conftest.$ac_ext <<_ACEOF
27521/* end confdefs.h. */
27522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27524#define $ac_func innocuous_$ac_func
27525
27526/* System header to define __stub macros and hopefully few prototypes,
27527 which can conflict with char $ac_func (); below.
27528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27529 <limits.h> exists even on freestanding compilers. */
27530
27531#ifdef __STDC__
27532# include <limits.h>
27533#else
27534# include <assert.h>
27535#endif
27536
27537#undef $ac_func
27538
27539/* Override any gcc2 internal prototype to avoid an error. */
27540#ifdef __cplusplus
27541extern "C"
27542{
27543#endif
27544/* We use char because int might match the return type of a gcc2
27545 builtin and then its argument prototype would still apply. */
27546char $ac_func ();
27547/* The GNU C library defines this for functions which it implements
27548 to always fail with ENOSYS. Some functions are actually named
27549 something starting with __ and the normal name is an alias. */
27550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27551choke me
27552#else
27553char (*f) () = $ac_func;
27554#endif
27555#ifdef __cplusplus
27556}
27557#endif
27558
27559int
27560main ()
27561{
27562return f != $ac_func;
27563 ;
27564 return 0;
27565}
27566_ACEOF
27567rm -f conftest.$ac_objext conftest$ac_exeext
27568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27569 (eval $ac_link) 2>conftest.er1
27570 ac_status=$?
27571 grep -v '^ *+' conftest.er1 >conftest.err
27572 rm -f conftest.er1
27573 cat conftest.err >&5
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); } &&
dfe0c803
JS
27576 { ac_try='test -z "$ac_c_werror_flag"
27577 || test ! -s conftest.err'
304205f1
VS
27578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27579 (eval $ac_try) 2>&5
27580 ac_status=$?
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); }; } &&
27583 { ac_try='test -s conftest$ac_exeext'
27584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585 (eval $ac_try) 2>&5
27586 ac_status=$?
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; }; then
27589 eval "$as_ac_var=yes"
27590else
27591 echo "$as_me: failed program was:" >&5
27592sed 's/^/| /' conftest.$ac_ext >&5
27593
27594eval "$as_ac_var=no"
27595fi
27596rm -f conftest.err conftest.$ac_objext \
27597 conftest$ac_exeext conftest.$ac_ext
27598fi
27599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27600echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27601if test `eval echo '${'$as_ac_var'}'` = yes; then
27602 cat >>confdefs.h <<_ACEOF
27603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27604_ACEOF
27605
27606fi
27607done
27608
27609 CFLAGS="$save_CFLAGS"
27610 LIBS="$save_LIBS"
a848cd7e
SC
27611 fi
27612
27613 wxUSE_UNIVERSAL="yes"
27614
27615 if test "$wxUSE_NANOX" = "yes"; then
27616 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27617 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"
27618 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27619 else
27620 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27621 fi
27622
a848cd7e
SC
27623 TOOLKIT=X11
27624 GUIDIST=X11_DIST
27625 fi
27626
27627 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
27628 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27629echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27630
74b84332
VS
27631ac_find_includes=
27632for ac_dir in $SEARCH_INCLUDE /usr/include;
27633 do
27634 if test -f "$ac_dir/Xm/Xm.h"; then
27635 ac_find_includes=$ac_dir
27636 break
27637 fi
27638 done
a848cd7e 27639
74b84332
VS
27640 if test "$ac_find_includes" != "" ; then
27641 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27642echo "${ECHO_T}found in $ac_find_includes" >&6
27643
27644 if test "x$ac_find_includes" = "x/usr/include"; then
27645 ac_path_to_include=""
27646 else
27647 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27648 result=$?
27649 if test $result = 0; then
27650 ac_path_to_include=""
27651 else
27652 ac_path_to_include=" -I$ac_find_includes"
27653 fi
a848cd7e
SC
27654 fi
27655
74b84332
VS
27656 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27657 else
27658 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27659/* confdefs.h. */
27660_ACEOF
27661cat confdefs.h >>conftest.$ac_ext
27662cat >>conftest.$ac_ext <<_ACEOF
27663/* end confdefs.h. */
27664
74b84332
VS
27665 #include <Xm/Xm.h>
27666
a848cd7e
SC
27667int
27668main ()
27669{
27670
74b84332
VS
27671 int version;
27672 version = xmUseVersion;
27673
a848cd7e
SC
27674 ;
27675 return 0;
27676}
27677_ACEOF
74b84332
VS
27678rm -f conftest.$ac_objext
27679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27680 (eval $ac_compile) 2>conftest.er1
a848cd7e 27681 ac_status=$?
ac1cb8d3
VS
27682 grep -v '^ *+' conftest.er1 >conftest.err
27683 rm -f conftest.er1
27684 cat conftest.err >&5
a848cd7e
SC
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); } &&
dfe0c803
JS
27687 { ac_try='test -z "$ac_c_werror_flag"
27688 || test ! -s conftest.err'
ac1cb8d3
VS
27689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27690 (eval $ac_try) 2>&5
27691 ac_status=$?
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); }; } &&
74b84332 27694 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696 (eval $ac_try) 2>&5
27697 ac_status=$?
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; }; then
74b84332
VS
27700
27701 echo "$as_me:$LINENO: result: found in default search path" >&5
27702echo "${ECHO_T}found in default search path" >&6
27703 COMPILED_X_PROGRAM=1
27704
a848cd7e
SC
27705else
27706 echo "$as_me: failed program was:" >&5
27707sed 's/^/| /' conftest.$ac_ext >&5
27708
a848cd7e 27709
74b84332
VS
27710 echo "$as_me:$LINENO: result: no" >&5
27711echo "${ECHO_T}no" >&6
27712 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27713echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27714 { (exit 1); exit 1; }; }
a848cd7e 27715
a848cd7e 27716
a848cd7e 27717fi
74b84332
VS
27718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27719 fi
27720
27721 if test "$COMPILED_X_PROGRAM" = 0; then
27722 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27723echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27724
27725ac_find_libraries=
27726for ac_dir in $SEARCH_LIB /usr/lib;
27727 do
27728 for ac_extension in a so sl dylib; do
27729 if test -f "$ac_dir/libXm.$ac_extension"; then
27730 ac_find_libraries=$ac_dir
27731 break 2
a848cd7e 27732 fi
74b84332
VS
27733 done
27734 done
a848cd7e 27735
74b84332
VS
27736 if test "$ac_find_libraries" != "" ; then
27737 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27738echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27739
74b84332
VS
27740
27741 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27742 result=$?
27743 if test $result = 0; then
27744 ac_path_to_link=""
a848cd7e 27745 else
74b84332
VS
27746 ac_path_to_link=" -L$ac_find_libraries"
27747 fi
27748
27749 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27750 else
27751 save_CFLAGS=$CFLAGS
27752 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27753
27754 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27755/* confdefs.h. */
27756_ACEOF
27757cat confdefs.h >>conftest.$ac_ext
27758cat >>conftest.$ac_ext <<_ACEOF
27759/* end confdefs.h. */
27760
74b84332
VS
27761 #include <Xm/Xm.h>
27762
a848cd7e
SC
27763int
27764main ()
27765{
74b84332
VS
27766
27767 int version;
27768 version = xmUseVersion;
27769
a848cd7e
SC
27770 ;
27771 return 0;
27772}
27773_ACEOF
74b84332
VS
27774rm -f conftest.$ac_objext
27775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27776 (eval $ac_compile) 2>conftest.er1
a848cd7e 27777 ac_status=$?
ac1cb8d3
VS
27778 grep -v '^ *+' conftest.er1 >conftest.err
27779 rm -f conftest.er1
27780 cat conftest.err >&5
a848cd7e
SC
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); } &&
dfe0c803
JS
27783 { ac_try='test -z "$ac_c_werror_flag"
27784 || test ! -s conftest.err'
ac1cb8d3
VS
27785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786 (eval $ac_try) 2>&5
27787 ac_status=$?
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); }; } &&
74b84332 27790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27792 (eval $ac_try) 2>&5
27793 ac_status=$?
27794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795 (exit $ac_status); }; }; then
74b84332
VS
27796
27797 echo "$as_me:$LINENO: result: found in default search path" >&5
27798echo "${ECHO_T}found in default search path" >&6
27799 COMPILED_X_PROGRAM=1
27800
a848cd7e
SC
27801else
27802 echo "$as_me: failed program was:" >&5
27803sed 's/^/| /' conftest.$ac_ext >&5
27804
74b84332
VS
27805
27806 echo "$as_me:$LINENO: result: no" >&5
27807echo "${ECHO_T}no" >&6
27808 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27809echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27810 { (exit 1); exit 1; }; }
27811
27812
27813fi
27814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27815
27816 CFLAGS=$save_CFLAGS
27817 fi
27818 fi
27819
27820 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27821echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27822 libp_link=""
27823 libsm_ice_link=""
27824 libs_found=0
27825 for libp in "" " -lXp"; do
27826 if test "$libs_found" = "0"; then
27827 for libsm_ice in "" " -lSM -lICE"; do
27828 if test "$libs_found" = "0"; then
27829 save_LIBS="$LIBS"
27830 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27831 save_CFLAGS=$CFLAGS
27832 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27833
27834 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27835/* confdefs.h. */
27836_ACEOF
27837cat confdefs.h >>conftest.$ac_ext
27838cat >>conftest.$ac_ext <<_ACEOF
27839/* end confdefs.h. */
27840
74b84332
VS
27841 #include <Xm/Xm.h>
27842 #include <Xm/List.h>
27843
a848cd7e
SC
27844int
27845main ()
27846{
74b84332
VS
27847
27848 XmString string = NULL;
27849 Widget w = NULL;
27850 int position = 0;
27851 XmListAddItem(w, string, position);
27852
a848cd7e
SC
27853 ;
27854 return 0;
27855}
27856_ACEOF
27857rm -f conftest.$ac_objext conftest$ac_exeext
27858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27859 (eval $ac_link) 2>conftest.er1
a848cd7e 27860 ac_status=$?
ac1cb8d3
VS
27861 grep -v '^ *+' conftest.er1 >conftest.err
27862 rm -f conftest.er1
27863 cat conftest.err >&5
a848cd7e
SC
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); } &&
dfe0c803
JS
27866 { ac_try='test -z "$ac_c_werror_flag"
27867 || test ! -s conftest.err'
ac1cb8d3
VS
27868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27869 (eval $ac_try) 2>&5
27870 ac_status=$?
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); }; } &&
27873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27875 (eval $ac_try) 2>&5
27876 ac_status=$?
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); }; }; then
27879
27880 libp_link="$libp"
27881 libsm_ice_link="$libsm_ice"
27882 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27883echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27884 libs_found=1
27885
27886else
27887 echo "$as_me: failed program was:" >&5
27888sed 's/^/| /' conftest.$ac_ext >&5
27889
27890
27891
27892fi
ac1cb8d3
VS
27893rm -f conftest.err conftest.$ac_objext \
27894 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27895
27896 LIBS="$save_LIBS"
27897 CFLAGS=$save_CFLAGS
27898 fi
27899 done
27900 fi
27901 done
27902
27903 if test "$libs_found" = "0"; then
27904 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27905echo "${ECHO_T}can't find the right libraries" >&6
27906 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27907echo "$as_me: error: can't link a simple motif program" >&2;}
27908 { (exit 1); exit 1; }; }
27909 fi
27910
27911 save_CFLAGS=$CFLAGS
27912 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27913 echo "$as_me:$LINENO: checking for Motif 2" >&5
27914echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27915 cat >conftest.$ac_ext <<_ACEOF
27916/* confdefs.h. */
27917_ACEOF
27918cat confdefs.h >>conftest.$ac_ext
27919cat >>conftest.$ac_ext <<_ACEOF
27920/* end confdefs.h. */
27921
27922 #include <Xm/Xm.h>
27923
27924int
27925main ()
27926{
27927
27928 #if XmVersion < 2000
27929 #error "Not Motif 2"
27930 #endif
27931
27932 ;
27933 return 0;
27934}
27935_ACEOF
27936rm -f conftest.$ac_objext
27937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27938 (eval $ac_compile) 2>conftest.er1
a848cd7e 27939 ac_status=$?
ac1cb8d3
VS
27940 grep -v '^ *+' conftest.er1 >conftest.err
27941 rm -f conftest.er1
27942 cat conftest.err >&5
a848cd7e
SC
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); } &&
dfe0c803
JS
27945 { ac_try='test -z "$ac_c_werror_flag"
27946 || test ! -s conftest.err'
ac1cb8d3
VS
27947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948 (eval $ac_try) 2>&5
27949 ac_status=$?
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); }; } &&
27952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954 (eval $ac_try) 2>&5
27955 ac_status=$?
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; }; then
27958
27959 cat >>confdefs.h <<\_ACEOF
27960#define __WXMOTIF20__ 1
27961_ACEOF
27962
27963 echo "$as_me:$LINENO: result: found" >&5
27964echo "${ECHO_T}found" >&6
27965
27966else
27967 echo "$as_me: failed program was:" >&5
27968sed 's/^/| /' conftest.$ac_ext >&5
27969
27970
27971 cat >>confdefs.h <<\_ACEOF
27972#define __WXMOTIF20__ 0
27973_ACEOF
27974
27975 echo "$as_me:$LINENO: result: not found" >&5
27976echo "${ECHO_T}not found" >&6
27977
27978fi
ac1cb8d3 27979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27980 CFLAGS=$save_CFLAGS
27981
27982 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27983 TOOLKIT=MOTIF
27984 GUIDIST=MOTIF_DIST
27985 fi
27986
74b84332 27987 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27988 if test "$wxUSE_LIBXPM" = "sys"; then
27989 echo "$as_me:$LINENO: checking for Xpm library" >&5
27990echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27991
27992ac_find_libraries=
27993for ac_dir in $SEARCH_LIB /usr/lib;
27994 do
27995 for ac_extension in a so sl dylib; do
27996 if test -f "$ac_dir/libXpm.$ac_extension"; then
27997 ac_find_libraries=$ac_dir
27998 break 2
27999 fi
28000 done
28001 done
28002
28003 if test "$ac_find_libraries" != "" ; then
28004
28005 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28006 result=$?
28007 if test $result = 0; then
28008 ac_path_to_link=""
28009 else
28010 ac_path_to_link=" -L$ac_find_libraries"
28011 fi
28012
28013 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28014 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28015echo "${ECHO_T}found at $ac_find_libraries" >&6
28016
28017 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28018echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28019if test "${wx_cv_x11_xpm_h+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28021else
28022
28023 save_CFLAGS=$CFLAGS
28024 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28025
28026 cat >conftest.$ac_ext <<_ACEOF
28027/* confdefs.h. */
28028_ACEOF
28029cat confdefs.h >>conftest.$ac_ext
28030cat >>conftest.$ac_ext <<_ACEOF
28031/* end confdefs.h. */
28032
28033 #include <X11/xpm.h>
28034
28035int
28036main ()
28037{
28038
28039 int version;
28040 version = XpmLibraryVersion();
28041
28042 ;
28043 return 0;
28044}
28045_ACEOF
28046rm -f conftest.$ac_objext
28047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28048 (eval $ac_compile) 2>conftest.er1
a848cd7e 28049 ac_status=$?
ac1cb8d3
VS
28050 grep -v '^ *+' conftest.er1 >conftest.err
28051 rm -f conftest.er1
28052 cat conftest.err >&5
a848cd7e
SC
28053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054 (exit $ac_status); } &&
dfe0c803
JS
28055 { ac_try='test -z "$ac_c_werror_flag"
28056 || test ! -s conftest.err'
ac1cb8d3
VS
28057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28058 (eval $ac_try) 2>&5
28059 ac_status=$?
28060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); }; } &&
28062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28064 (eval $ac_try) 2>&5
28065 ac_status=$?
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); }; }; then
28068 wx_cv_x11_xpm_h=yes
28069else
28070 echo "$as_me: failed program was:" >&5
28071sed 's/^/| /' conftest.$ac_ext >&5
28072
28073wx_cv_x11_xpm_h=no
28074
28075fi
ac1cb8d3 28076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28077
28078 CFLAGS=$save_CFLAGS
28079
28080
28081fi
28082echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28083echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28084
28085 if test $wx_cv_x11_xpm_h = "yes"; then
28086 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28087 cat >>confdefs.h <<\_ACEOF
28088#define wxHAVE_LIB_XPM 1
28089_ACEOF
28090
28091 else
28092 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28093echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28094 fi
28095 fi
28096
28097 fi
28098
28099 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28100echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28101if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28102 echo $ECHO_N "(cached) $ECHO_C" >&6
28103else
28104 ac_check_lib_save_LIBS=$LIBS
28105LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28106cat >conftest.$ac_ext <<_ACEOF
28107/* confdefs.h. */
28108_ACEOF
28109cat confdefs.h >>conftest.$ac_ext
28110cat >>conftest.$ac_ext <<_ACEOF
28111/* end confdefs.h. */
28112
28113/* Override any gcc2 internal prototype to avoid an error. */
28114#ifdef __cplusplus
28115extern "C"
28116#endif
28117/* We use char because int might match the return type of a gcc2
28118 builtin and then its argument prototype would still apply. */
28119char XShapeQueryExtension ();
28120int
28121main ()
28122{
28123XShapeQueryExtension ();
28124 ;
28125 return 0;
28126}
28127_ACEOF
28128rm -f conftest.$ac_objext conftest$ac_exeext
28129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28130 (eval $ac_link) 2>conftest.er1
a848cd7e 28131 ac_status=$?
ac1cb8d3
VS
28132 grep -v '^ *+' conftest.er1 >conftest.err
28133 rm -f conftest.er1
28134 cat conftest.err >&5
a848cd7e
SC
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); } &&
dfe0c803
JS
28137 { ac_try='test -z "$ac_c_werror_flag"
28138 || test ! -s conftest.err'
ac1cb8d3
VS
28139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140 (eval $ac_try) 2>&5
28141 ac_status=$?
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); }; } &&
28144 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146 (eval $ac_try) 2>&5
28147 ac_status=$?
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); }; }; then
28150 ac_cv_lib_Xext_XShapeQueryExtension=yes
28151else
28152 echo "$as_me: failed program was:" >&5
28153sed 's/^/| /' conftest.$ac_ext >&5
28154
28155ac_cv_lib_Xext_XShapeQueryExtension=no
28156fi
ac1cb8d3
VS
28157rm -f conftest.err conftest.$ac_objext \
28158 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28159LIBS=$ac_check_lib_save_LIBS
28160fi
28161echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28162echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28163if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28164
28165 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28166 wxHAVE_XEXT_LIB=1
28167
28168fi
28169
28170
28171 if test "$wxHAVE_XEXT_LIB" = 1; then
28172 save_CFLAGS="$CFLAGS"
28173 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28174
28175 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28176echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28177 cat >conftest.$ac_ext <<_ACEOF
28178/* confdefs.h. */
28179_ACEOF
28180cat confdefs.h >>conftest.$ac_ext
28181cat >>conftest.$ac_ext <<_ACEOF
28182/* end confdefs.h. */
28183
28184 #include <X11/Xlib.h>
28185 #include <X11/extensions/shape.h>
28186
28187int
28188main ()
28189{
28190
28191 int dummy1, dummy2;
28192 XShapeQueryExtension((Display*)NULL,
28193 (int*)NULL, (int*)NULL);
28194
28195 ;
28196 return 0;
28197}
28198_ACEOF
28199rm -f conftest.$ac_objext
28200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28201 (eval $ac_compile) 2>conftest.er1
a848cd7e 28202 ac_status=$?
ac1cb8d3
VS
28203 grep -v '^ *+' conftest.er1 >conftest.err
28204 rm -f conftest.er1
28205 cat conftest.err >&5
a848cd7e
SC
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); } &&
dfe0c803
JS
28208 { ac_try='test -z "$ac_c_werror_flag"
28209 || test ! -s conftest.err'
ac1cb8d3
VS
28210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28211 (eval $ac_try) 2>&5
28212 ac_status=$?
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); }; } &&
28215 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28217 (eval $ac_try) 2>&5
28218 ac_status=$?
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); }; }; then
28221
28222 cat >>confdefs.h <<\_ACEOF
28223#define HAVE_XSHAPE 1
28224_ACEOF
28225
28226 echo "$as_me:$LINENO: result: found" >&5
28227echo "${ECHO_T}found" >&6
28228
28229else
28230 echo "$as_me: failed program was:" >&5
28231sed 's/^/| /' conftest.$ac_ext >&5
28232
28233
28234 echo "$as_me:$LINENO: result: not found" >&5
28235echo "${ECHO_T}not found" >&6
28236
28237fi
ac1cb8d3 28238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28239 CFLAGS="$save_CFLAGS"
28240
28241 fi
28242 fi
28243
28244 if test "$wxUSE_MAC" = 1; then
28245 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28246echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28247 if test "$GCC" = yes; then
28248 echo "$as_me:$LINENO: result: gcc" >&5
28249echo "${ECHO_T}gcc" >&6
28250 CPPFLAGS_PASCAL="-fpascal-strings"
28251 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28252 echo "$as_me:$LINENO: result: xlc" >&5
28253echo "${ECHO_T}xlc" >&6
28254 CPPFLAGS_PASCAL="-qmacpstr"
28255 else
28256 echo "$as_me:$LINENO: result: none" >&5
28257echo "${ECHO_T}none" >&6
28258 fi
28259
1e9e8aba
DE
28260 if test "x$wxUSE_UNIX" = "xyes"; then
28261 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28262 else
28263 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28264 fi
a848cd7e 28265
a848cd7e
SC
28266 TOOLKIT=MAC
28267 GUIDIST=MACX_DIST
dd21ced8 28268 WXBASEPORT="_carbon"
a848cd7e
SC
28269 fi
28270
28271 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28272 TOOLKIT=COCOA
28273 GUIDIST=COCOA_DIST
28274 fi
28275
28276 if test "$wxUSE_PM" = 1; then
28277 TOOLKIT=PM
de59c161
RD
28278 GUIDIST=PM_DIST
28279 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28280echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28281if test "${wx_cv_spbcdata+set}" = set; then
28282 echo $ECHO_N "(cached) $ECHO_C" >&6
28283else
28284
28285 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28286/* confdefs.h. */
28287_ACEOF
28288cat confdefs.h >>conftest.$ac_ext
28289cat >>conftest.$ac_ext <<_ACEOF
28290/* end confdefs.h. */
28291
28292 #define INCL_PM
28293 #include <os2.h>
28294
28295int
28296main ()
28297{
28298
28299 SPBCDATA test;
28300
28301 ;
28302 return 0;
28303}
28304_ACEOF
28305rm -f conftest.$ac_objext
28306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28307 (eval $ac_compile) 2>conftest.er1
de59c161 28308 ac_status=$?
ac1cb8d3
VS
28309 grep -v '^ *+' conftest.er1 >conftest.err
28310 rm -f conftest.er1
28311 cat conftest.err >&5
de59c161
RD
28312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313 (exit $ac_status); } &&
dfe0c803
JS
28314 { ac_try='test -z "$ac_c_werror_flag"
28315 || test ! -s conftest.err'
ac1cb8d3
VS
28316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317 (eval $ac_try) 2>&5
28318 ac_status=$?
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); }; } &&
28321 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28323 (eval $ac_try) 2>&5
28324 ac_status=$?
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326 (exit $ac_status); }; }; then
28327 wx_cv_spbcdata=yes
28328else
28329 echo "$as_me: failed program was:" >&5
28330sed 's/^/| /' conftest.$ac_ext >&5
28331
28332wx_cv_spbcdata=no
28333
28334fi
ac1cb8d3 28335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28336
28337
28338fi
28339echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28340echo "${ECHO_T}$wx_cv_spbcdata" >&6
28341
28342 if test $wx_cv_spbcdata = "yes"; then
28343 cat >>confdefs.h <<\_ACEOF
28344#define HAVE_SPBCDATA 1
28345_ACEOF
28346
28347 fi
a848cd7e
SC
28348 fi
28349
28350 if test "$TOOLKIT" = "PM" ; then
28351 TOOLKIT_DIR="os2"
28352 else
28353 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28354 fi
28355
a848cd7e 28356 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28357 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28358 WIDGET_SET=univ
a848cd7e
SC
28359 fi
28360
28361 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28362 DISTDIR="wx\$(TOOLKIT)"
28363else
28364 USE_GUI=0
28365
28366 TOOLKIT_DIR="base"
28367
28368 if test "$USE_WIN32" = 1 ; then
a848cd7e 28369 TOOLKIT="MSW"
a848cd7e
SC
28370 fi
28371
a848cd7e
SC
28372 GUIDIST="BASE_DIST"
28373 DISTDIR="wxBase"
28374fi
28375
28376
28377
28378
28379IODBC_C_SRC=""
28380
28381
28382if test "$TOOLKIT" != "MSW" ; then
28383
28384 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28385
28386 if test "${ac_cv_header_sql_h+set}" = set; then
28387 echo "$as_me:$LINENO: checking for sql.h" >&5
28388echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28389if test "${ac_cv_header_sql_h+set}" = set; then
28390 echo $ECHO_N "(cached) $ECHO_C" >&6
28391fi
28392echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28393echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28394else
28395 # Is the header compilable?
28396echo "$as_me:$LINENO: checking sql.h usability" >&5
28397echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28398cat >conftest.$ac_ext <<_ACEOF
28399/* confdefs.h. */
28400_ACEOF
28401cat confdefs.h >>conftest.$ac_ext
28402cat >>conftest.$ac_ext <<_ACEOF
28403/* end confdefs.h. */
28404$ac_includes_default
28405#include <sql.h>
28406_ACEOF
28407rm -f conftest.$ac_objext
28408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28409 (eval $ac_compile) 2>conftest.er1
a848cd7e 28410 ac_status=$?
ac1cb8d3
VS
28411 grep -v '^ *+' conftest.er1 >conftest.err
28412 rm -f conftest.er1
28413 cat conftest.err >&5
a848cd7e
SC
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); } &&
dfe0c803
JS
28416 { ac_try='test -z "$ac_c_werror_flag"
28417 || test ! -s conftest.err'
ac1cb8d3
VS
28418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28419 (eval $ac_try) 2>&5
28420 ac_status=$?
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); }; } &&
28423 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28425 (eval $ac_try) 2>&5
28426 ac_status=$?
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
28429 ac_header_compiler=yes
28430else
28431 echo "$as_me: failed program was:" >&5
28432sed 's/^/| /' conftest.$ac_ext >&5
28433
28434ac_header_compiler=no
28435fi
ac1cb8d3 28436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28437echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28438echo "${ECHO_T}$ac_header_compiler" >&6
28439
28440# Is the header present?
28441echo "$as_me:$LINENO: checking sql.h presence" >&5
28442echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28443cat >conftest.$ac_ext <<_ACEOF
28444/* confdefs.h. */
28445_ACEOF
28446cat confdefs.h >>conftest.$ac_ext
28447cat >>conftest.$ac_ext <<_ACEOF
28448/* end confdefs.h. */
28449#include <sql.h>
28450_ACEOF
28451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28453 ac_status=$?
28454 grep -v '^ *+' conftest.er1 >conftest.err
28455 rm -f conftest.er1
28456 cat conftest.err >&5
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); } >/dev/null; then
28459 if test -s conftest.err; then
28460 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28462 else
28463 ac_cpp_err=
28464 fi
28465else
28466 ac_cpp_err=yes
28467fi
28468if test -z "$ac_cpp_err"; then
28469 ac_header_preproc=yes
28470else
28471 echo "$as_me: failed program was:" >&5
28472sed 's/^/| /' conftest.$ac_ext >&5
28473
28474 ac_header_preproc=no
28475fi
28476rm -f conftest.err conftest.$ac_ext
28477echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28478echo "${ECHO_T}$ac_header_preproc" >&6
28479
28480# So? What about this header?
ac1cb8d3
VS
28481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28482 yes:no: )
a848cd7e
SC
28483 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28484echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28485 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28486echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28487 ac_header_preproc=yes
a848cd7e 28488 ;;
ac1cb8d3 28489 no:yes:* )
a848cd7e
SC
28490 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28491echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28492 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28493echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28494 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28495echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28496 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28497echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28498 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28499echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28500 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28501echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28502 (
28503 cat <<\_ASBOX
ac1cb8d3
VS
28504## ----------------------------------------- ##
28505## Report this to wx-dev@lists.wxwidgets.org ##
28506## ----------------------------------------- ##
a848cd7e
SC
28507_ASBOX
28508 ) |
28509 sed "s/^/$as_me: WARNING: /" >&2
28510 ;;
28511esac
28512echo "$as_me:$LINENO: checking for sql.h" >&5
28513echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28514if test "${ac_cv_header_sql_h+set}" = set; then
28515 echo $ECHO_N "(cached) $ECHO_C" >&6
28516else
28517 ac_cv_header_sql_h=$ac_header_preproc
28518fi
28519echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28520echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28521
28522fi
28523if test $ac_cv_header_sql_h = yes; then
28524 found_sql_h=1
28525fi
28526
28527
28528 if test "x$found_sql_h" = "x1" ; then
28529 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28530echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28531if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28532 echo $ECHO_N "(cached) $ECHO_C" >&6
28533else
28534 ac_check_lib_save_LIBS=$LIBS
28535LIBS="-liodbc $LIBS"
28536cat >conftest.$ac_ext <<_ACEOF
28537/* confdefs.h. */
28538_ACEOF
28539cat confdefs.h >>conftest.$ac_ext
28540cat >>conftest.$ac_ext <<_ACEOF
28541/* end confdefs.h. */
28542
28543/* Override any gcc2 internal prototype to avoid an error. */
28544#ifdef __cplusplus
28545extern "C"
28546#endif
28547/* We use char because int might match the return type of a gcc2
28548 builtin and then its argument prototype would still apply. */
28549char SQLAllocEnv ();
28550int
28551main ()
28552{
28553SQLAllocEnv ();
28554 ;
28555 return 0;
28556}
28557_ACEOF
28558rm -f conftest.$ac_objext conftest$ac_exeext
28559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28560 (eval $ac_link) 2>conftest.er1
a848cd7e 28561 ac_status=$?
ac1cb8d3
VS
28562 grep -v '^ *+' conftest.er1 >conftest.err
28563 rm -f conftest.er1
28564 cat conftest.err >&5
a848cd7e
SC
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); } &&
dfe0c803
JS
28567 { ac_try='test -z "$ac_c_werror_flag"
28568 || test ! -s conftest.err'
ac1cb8d3
VS
28569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570 (eval $ac_try) 2>&5
28571 ac_status=$?
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; } &&
28574 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576 (eval $ac_try) 2>&5
28577 ac_status=$?
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); }; }; then
28580 ac_cv_lib_iodbc_SQLAllocEnv=yes
28581else
28582 echo "$as_me: failed program was:" >&5
28583sed 's/^/| /' conftest.$ac_ext >&5
28584
28585ac_cv_lib_iodbc_SQLAllocEnv=no
28586fi
ac1cb8d3
VS
28587rm -f conftest.err conftest.$ac_objext \
28588 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28589LIBS=$ac_check_lib_save_LIBS
28590fi
28591echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28592echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28593if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28594 ODBC_LINK=" -liodbc"
28595else
28596
28597 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28598echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28599if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28600 echo $ECHO_N "(cached) $ECHO_C" >&6
28601else
28602 ac_check_lib_save_LIBS=$LIBS
28603LIBS="-lunixodbc $LIBS"
28604cat >conftest.$ac_ext <<_ACEOF
28605/* confdefs.h. */
28606_ACEOF
28607cat confdefs.h >>conftest.$ac_ext
28608cat >>conftest.$ac_ext <<_ACEOF
28609/* end confdefs.h. */
28610
28611/* Override any gcc2 internal prototype to avoid an error. */
28612#ifdef __cplusplus
28613extern "C"
28614#endif
28615/* We use char because int might match the return type of a gcc2
28616 builtin and then its argument prototype would still apply. */
28617char SQLAllocEnv ();
28618int
28619main ()
28620{
28621SQLAllocEnv ();
28622 ;
28623 return 0;
28624}
28625_ACEOF
28626rm -f conftest.$ac_objext conftest$ac_exeext
28627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28628 (eval $ac_link) 2>conftest.er1
a848cd7e 28629 ac_status=$?
ac1cb8d3
VS
28630 grep -v '^ *+' conftest.er1 >conftest.err
28631 rm -f conftest.er1
28632 cat conftest.err >&5
a848cd7e
SC
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); } &&
dfe0c803
JS
28635 { ac_try='test -z "$ac_c_werror_flag"
28636 || test ! -s conftest.err'
ac1cb8d3
VS
28637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28638 (eval $ac_try) 2>&5
28639 ac_status=$?
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; } &&
28642 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644 (eval $ac_try) 2>&5
28645 ac_status=$?
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); }; }; then
28648 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28649else
28650 echo "$as_me: failed program was:" >&5
28651sed 's/^/| /' conftest.$ac_ext >&5
28652
28653ac_cv_lib_unixodbc_SQLAllocEnv=no
28654fi
ac1cb8d3
VS
28655rm -f conftest.err conftest.$ac_objext \
28656 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28657LIBS=$ac_check_lib_save_LIBS
28658fi
28659echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28660echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28661if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28662 ODBC_LINK=" -lunixodbc"
28663else
28664
28665 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28666echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28667if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28668 echo $ECHO_N "(cached) $ECHO_C" >&6
28669else
28670 ac_check_lib_save_LIBS=$LIBS
28671LIBS="-lodbc $LIBS"
28672cat >conftest.$ac_ext <<_ACEOF
28673/* confdefs.h. */
28674_ACEOF
28675cat confdefs.h >>conftest.$ac_ext
28676cat >>conftest.$ac_ext <<_ACEOF
28677/* end confdefs.h. */
28678
28679/* Override any gcc2 internal prototype to avoid an error. */
28680#ifdef __cplusplus
28681extern "C"
28682#endif
28683/* We use char because int might match the return type of a gcc2
28684 builtin and then its argument prototype would still apply. */
28685char SQLAllocEnv ();
28686int
28687main ()
28688{
28689SQLAllocEnv ();
28690 ;
28691 return 0;
28692}
28693_ACEOF
28694rm -f conftest.$ac_objext conftest$ac_exeext
28695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28696 (eval $ac_link) 2>conftest.er1
a848cd7e 28697 ac_status=$?
ac1cb8d3
VS
28698 grep -v '^ *+' conftest.er1 >conftest.err
28699 rm -f conftest.er1
28700 cat conftest.err >&5
a848cd7e
SC
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); } &&
dfe0c803
JS
28703 { ac_try='test -z "$ac_c_werror_flag"
28704 || test ! -s conftest.err'
ac1cb8d3
VS
28705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28706 (eval $ac_try) 2>&5
28707 ac_status=$?
28708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); }; } &&
28710 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28712 (eval $ac_try) 2>&5
28713 ac_status=$?
28714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); }; }; then
28716 ac_cv_lib_odbc_SQLAllocEnv=yes
28717else
28718 echo "$as_me: failed program was:" >&5
28719sed 's/^/| /' conftest.$ac_ext >&5
28720
28721ac_cv_lib_odbc_SQLAllocEnv=no
28722fi
ac1cb8d3
VS
28723rm -f conftest.err conftest.$ac_objext \
28724 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28725LIBS=$ac_check_lib_save_LIBS
28726fi
28727echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28728echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28729if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28730 ODBC_LINK=" -lodbc"
28731fi
28732
28733
28734fi
28735
28736
28737fi
28738
28739 fi
28740 if test "x$ODBC_LINK" = "x" ; then
28741 if test "$wxUSE_ODBC" = "sys" ; then
28742 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28743echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28744 { (exit 1); exit 1; }; }
28745 else
28746 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28747echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28748 wxUSE_ODBC=builtin
28749 fi
28750 else
28751 wxUSE_ODBC=sys
28752 fi
28753 fi
a848cd7e 28754
2da0c077
RD
28755 if test "$wxUSE_ODBC" = "builtin" ; then
28756 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28757#define wxUSE_BUILTIN_IODBC 1
28758_ACEOF
28759
a848cd7e
SC
28760 fi
28761fi
28762
2da0c077
RD
28763if test "$wxUSE_ODBC" != "no" ; then
28764 cat >>confdefs.h <<\_ACEOF
28765#define wxUSE_ODBC 1
28766_ACEOF
28767
28768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28769
28770 WXODBCFLAG="-D_IODBC_"
28771fi
a848cd7e 28772
01cb68df 28773
a848cd7e 28774if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28775 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28776 echo "$as_me:$LINENO: checking for Xinerama" >&5
28777echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28778
28779ac_find_libraries=
28780for ac_dir in $SEARCH_LIB /usr/lib;
28781 do
28782 for ac_extension in a so sl dylib; do
28783 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28784 ac_find_libraries=$ac_dir
28785 break 2
28786 fi
28787 done
28788 done
28789
28790 if test "$ac_find_libraries" != "" ; then
28791
28792 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28793 result=$?
28794 if test $result = 0; then
28795 ac_path_to_link=""
28796 else
28797 ac_path_to_link=" -L$ac_find_libraries"
28798 fi
28799
28800 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28801 LDFLAGS="$LDFLAGS $ac_path_to_link"
28802 fi
28803 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28804 echo "$as_me:$LINENO: result: yes" >&5
28805echo "${ECHO_T}yes" >&6
28806
28807 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28808echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28809
28810ac_find_libraries=
28811for ac_dir in $SEARCH_LIB /usr/lib;
28812 do
28813 for ac_extension in a so sl dylib; do
28814 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28815 ac_find_libraries=$ac_dir
28816 break 2
28817 fi
28818 done
28819 done
28820
28821 if test "$ac_find_libraries" != "" ; then
28822 echo "$as_me:$LINENO: result: yes" >&5
28823echo "${ECHO_T}yes" >&6
28824
28825for ac_header in X11/extensions/xf86vmode.h
28826do
28827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28828echo "$as_me:$LINENO: checking for $ac_header" >&5
28829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28830if eval "test \"\${$as_ac_Header+set}\" = set"; then
28831 echo $ECHO_N "(cached) $ECHO_C" >&6
28832else
28833 cat >conftest.$ac_ext <<_ACEOF
28834/* confdefs.h. */
28835_ACEOF
28836cat confdefs.h >>conftest.$ac_ext
28837cat >>conftest.$ac_ext <<_ACEOF
28838/* end confdefs.h. */
28839
28840 #if HAVE_X11_XLIB_H
28841 #include <X11/Xlib.h>
28842 #endif
28843
28844
28845#include <$ac_header>
28846_ACEOF
28847rm -f conftest.$ac_objext
28848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28849 (eval $ac_compile) 2>conftest.er1
a848cd7e 28850 ac_status=$?
ac1cb8d3
VS
28851 grep -v '^ *+' conftest.er1 >conftest.err
28852 rm -f conftest.er1
28853 cat conftest.err >&5
a848cd7e
SC
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); } &&
dfe0c803
JS
28856 { ac_try='test -z "$ac_c_werror_flag"
28857 || test ! -s conftest.err'
ac1cb8d3
VS
28858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28859 (eval $ac_try) 2>&5
28860 ac_status=$?
28861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); }; } &&
28863 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865 (eval $ac_try) 2>&5
28866 ac_status=$?
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; }; then
28869 eval "$as_ac_Header=yes"
28870else
28871 echo "$as_me: failed program was:" >&5
28872sed 's/^/| /' conftest.$ac_ext >&5
28873
28874eval "$as_ac_Header=no"
28875fi
ac1cb8d3 28876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28877fi
28878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28880if test `eval echo '${'$as_ac_Header'}'` = yes; then
28881 cat >>confdefs.h <<_ACEOF
28882#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28883_ACEOF
28884
28885 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28886
28887fi
28888
28889done
28890
28891 else
28892 echo "$as_me:$LINENO: result: no" >&5
28893echo "${ECHO_T}no" >&6
28894 fi
28895
28896 else
28897 echo "$as_me:$LINENO: result: no" >&5
28898echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28899 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28900echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28901 wxUSE_DISPLAY="no"
28902 fi
01cb68df
RG
28903 elif test "$wxUSE_MSW" = 1; then
28904
28905
28906for ac_header in multimon.h ddraw.h
28907do
28908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28909echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28911if eval "test \"\${$as_ac_Header+set}\" = set"; then
28912 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28913else
5294a27e 28914 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28915/* confdefs.h. */
28916_ACEOF
28917cat confdefs.h >>conftest.$ac_ext
28918cat >>conftest.$ac_ext <<_ACEOF
28919/* end confdefs.h. */
5294a27e
VZ
28920#include <windows.h>
28921
01cb68df
RG
28922#include <$ac_header>
28923_ACEOF
28924rm -f conftest.$ac_objext
28925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28926 (eval $ac_compile) 2>conftest.er1
01cb68df 28927 ac_status=$?
ac1cb8d3
VS
28928 grep -v '^ *+' conftest.er1 >conftest.err
28929 rm -f conftest.er1
28930 cat conftest.err >&5
01cb68df
RG
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); } &&
dfe0c803
JS
28933 { ac_try='test -z "$ac_c_werror_flag"
28934 || test ! -s conftest.err'
ac1cb8d3
VS
28935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28936 (eval $ac_try) 2>&5
28937 ac_status=$?
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); }; } &&
28940 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28942 (eval $ac_try) 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; }; then
5294a27e 28946 eval "$as_ac_Header=yes"
01cb68df
RG
28947else
28948 echo "$as_me: failed program was:" >&5
28949sed 's/^/| /' conftest.$ac_ext >&5
28950
5294a27e 28951eval "$as_ac_Header=no"
01cb68df 28952fi
ac1cb8d3 28953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28954fi
28955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28956echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28957if test `eval echo '${'$as_ac_Header'}'` = yes; then
28958 cat >>confdefs.h <<_ACEOF
28959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28960_ACEOF
28961
28962else
28963
5294a27e
VZ
28964 wxUSE_DISPLAY="no"
28965 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28966echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28967
28968fi
28969
28970done
28971
a848cd7e
SC
28972 fi
28973fi
28974
28975
28976USE_OPENGL=0
28977if test "$wxUSE_OPENGL" = "yes"; then
28978 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28979 OPENGL_LIBS="-framework OpenGL -framework AGL"
28980 elif test "$wxUSE_MSW" = 1; then
28981 OPENGL_LIBS="-lopengl32 -lglu32"
28982 else
28983
28984
28985ac_find_includes=
28986for ac_dir in $SEARCH_INCLUDE /usr/include;
28987 do
28988 if test -f "$ac_dir/GL/gl.h"; then
28989 ac_find_includes=$ac_dir
28990 break
28991 fi
28992 done
28993
28994 if test "$ac_find_includes" != "" ; then
28995 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28996echo "${ECHO_T}found in $ac_find_includes" >&6
28997
28998 if test "x$ac_find_includes" = "x/usr/include"; then
28999 ac_path_to_include=""
29000 else
29001 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29002 result=$?
29003 if test $result = 0; then
29004 ac_path_to_include=""
29005 else
29006 ac_path_to_include=" -I$ac_find_includes"
29007 fi
29008 fi
29009
29010 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29011 fi
29012
29013 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29014 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29015echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29016if test "${ac_cv_header_GL_gl_h+set}" = set; then
29017 echo $ECHO_N "(cached) $ECHO_C" >&6
29018fi
29019echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29020echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29021else
29022 # Is the header compilable?
29023echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29024echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29025cat >conftest.$ac_ext <<_ACEOF
29026/* confdefs.h. */
29027_ACEOF
29028cat confdefs.h >>conftest.$ac_ext
29029cat >>conftest.$ac_ext <<_ACEOF
29030/* end confdefs.h. */
29031$ac_includes_default
29032#include <GL/gl.h>
29033_ACEOF
29034rm -f conftest.$ac_objext
29035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29036 (eval $ac_compile) 2>conftest.er1
a848cd7e 29037 ac_status=$?
ac1cb8d3
VS
29038 grep -v '^ *+' conftest.er1 >conftest.err
29039 rm -f conftest.er1
29040 cat conftest.err >&5
a848cd7e
SC
29041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); } &&
dfe0c803
JS
29043 { ac_try='test -z "$ac_c_werror_flag"
29044 || test ! -s conftest.err'
ac1cb8d3
VS
29045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29046 (eval $ac_try) 2>&5
29047 ac_status=$?
29048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); }; } &&
29050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29052 (eval $ac_try) 2>&5
29053 ac_status=$?
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); }; }; then
29056 ac_header_compiler=yes
29057else
29058 echo "$as_me: failed program was:" >&5
29059sed 's/^/| /' conftest.$ac_ext >&5
29060
29061ac_header_compiler=no
29062fi
ac1cb8d3 29063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29064echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29065echo "${ECHO_T}$ac_header_compiler" >&6
29066
29067# Is the header present?
29068echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29069echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29070cat >conftest.$ac_ext <<_ACEOF
29071/* confdefs.h. */
29072_ACEOF
29073cat confdefs.h >>conftest.$ac_ext
29074cat >>conftest.$ac_ext <<_ACEOF
29075/* end confdefs.h. */
29076#include <GL/gl.h>
29077_ACEOF
29078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29080 ac_status=$?
29081 grep -v '^ *+' conftest.er1 >conftest.err
29082 rm -f conftest.er1
29083 cat conftest.err >&5
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); } >/dev/null; then
29086 if test -s conftest.err; then
29087 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29089 else
29090 ac_cpp_err=
29091 fi
29092else
29093 ac_cpp_err=yes
29094fi
29095if test -z "$ac_cpp_err"; then
29096 ac_header_preproc=yes
29097else
29098 echo "$as_me: failed program was:" >&5
29099sed 's/^/| /' conftest.$ac_ext >&5
29100
29101 ac_header_preproc=no
29102fi
29103rm -f conftest.err conftest.$ac_ext
29104echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29105echo "${ECHO_T}$ac_header_preproc" >&6
29106
29107# So? What about this header?
ac1cb8d3
VS
29108case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29109 yes:no: )
a848cd7e
SC
29110 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29111echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29112 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29113echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29114 ac_header_preproc=yes
a848cd7e 29115 ;;
ac1cb8d3 29116 no:yes:* )
a848cd7e
SC
29117 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29118echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29119 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29120echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29121 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29122echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29123 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29124echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29125 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29126echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29127 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29128echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29129 (
29130 cat <<\_ASBOX
ac1cb8d3
VS
29131## ----------------------------------------- ##
29132## Report this to wx-dev@lists.wxwidgets.org ##
29133## ----------------------------------------- ##
a848cd7e
SC
29134_ASBOX
29135 ) |
29136 sed "s/^/$as_me: WARNING: /" >&2
29137 ;;
29138esac
29139echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29140echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29141if test "${ac_cv_header_GL_gl_h+set}" = set; then
29142 echo $ECHO_N "(cached) $ECHO_C" >&6
29143else
29144 ac_cv_header_GL_gl_h=$ac_header_preproc
29145fi
29146echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29147echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29148
29149fi
29150if test $ac_cv_header_GL_gl_h = yes; then
29151
29152 found_gl=0
29153
29154 echo "$as_me:$LINENO: checking for -lGL" >&5
29155echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29156
29157ac_find_libraries=
29158for ac_dir in $SEARCH_LIB /usr/lib;
29159 do
29160 for ac_extension in a so sl dylib; do
29161 if test -f "$ac_dir/libGL.$ac_extension"; then
29162 ac_find_libraries=$ac_dir
29163 break 2
29164 fi
29165 done
29166 done
29167
29168 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29169 echo "$as_me:$LINENO: result: yes" >&5
29170echo "${ECHO_T}yes" >&6
29171
a848cd7e
SC
29172
29173 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29174 result=$?
29175 if test $result = 0; then
29176 ac_path_to_link=""
29177 else
29178 ac_path_to_link=" -L$ac_find_libraries"
29179 fi
29180
29181 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29182 LDFLAGS_GL="$ac_path_to_link"
29183 fi
29184
69120ee4
VZ
29185 echo "$as_me:$LINENO: checking for -lGLU" >&5
29186echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29187
29188ac_find_libraries=
29189for ac_dir in $SEARCH_LIB /usr/lib;
29190 do
29191 for ac_extension in a so sl dylib; do
29192 if test -f "$ac_dir/libGLU.$ac_extension"; then
29193 ac_find_libraries=$ac_dir
29194 break 2
29195 fi
29196 done
29197 done
29198
29199 if test "$ac_find_libraries" != "" ; then
29200
29201 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29202 result=$?
29203 if test $result = 0; then
29204 ac_path_to_link=""
29205 else
29206 ac_path_to_link=" -L$ac_find_libraries"
29207 fi
29208
29209 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29210 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29211 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29212 fi
29213
29214 found_gl=1
29215 OPENGL_LIBS="-lGL -lGLU"
29216 echo "$as_me:$LINENO: result: yes" >&5
29217echo "${ECHO_T}yes" >&6
69120ee4
VZ
29218 else
29219 echo "$as_me:$LINENO: result: no" >&5
29220echo "${ECHO_T}no" >&6
a848cd7e 29221 fi
69120ee4
VZ
29222 else
29223 echo "$as_me:$LINENO: result: no" >&5
29224echo "${ECHO_T}no" >&6
a848cd7e
SC
29225 fi
29226
29227 if test "$found_gl" != 1; then
a848cd7e
SC
29228 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29229echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29230
29231ac_find_libraries=
29232for ac_dir in $SEARCH_LIB /usr/lib;
29233 do
29234 for ac_extension in a so sl dylib; do
29235 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29236 ac_find_libraries=$ac_dir
29237 break 2
29238 fi
29239 done
29240 done
29241
29242 if test "$ac_find_libraries" != "" ; then
29243
29244 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29245 result=$?
29246 if test $result = 0; then
29247 ac_path_to_link=""
29248 else
29249 ac_path_to_link=" -L$ac_find_libraries"
29250 fi
29251
29252 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29253 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29254 echo "$as_me:$LINENO: result: yes" >&5
29255echo "${ECHO_T}yes" >&6
29256 else
29257 echo "$as_me:$LINENO: result: no" >&5
29258echo "${ECHO_T}no" >&6
29259 fi
29260 fi
29261
29262fi
29263
29264
29265
29266 if test "x$OPENGL_LIBS" = "x"; then
29267 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29268echo "$as_me: error: OpenGL libraries not available" >&2;}
29269 { (exit 1); exit 1; }; }
29270 fi
29271 fi
29272
29273 if test "$wxUSE_OPENGL" = "yes"; then
29274 USE_OPENGL=1
29275 cat >>confdefs.h <<\_ACEOF
29276#define wxUSE_OPENGL 1
29277_ACEOF
29278
29279 cat >>confdefs.h <<\_ACEOF
29280#define wxUSE_GLCANVAS 1
29281_ACEOF
29282
29283 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29284 fi
29285fi
29286
a848cd7e
SC
29287
29288if test -n "$TOOLKIT" ; then
29289 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29290fi
29291
a848cd7e
SC
29292
29293
29294if test "$wxUSE_SHARED" = "yes"; then
29295 case "${host}" in
29296 *-pc-msdosdjgpp )
29297 wxUSE_SHARED=no
29298 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29299echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29300 ;;
29301 esac
29302fi
29303
a848cd7e 29304if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29305
29306
29307 found_versioning=no
29308
29309
29310 if test $found_versioning = no ; then
29311 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29312echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29313if test "${wx_cv_version_script+set}" = set; then
29314 echo $ECHO_N "(cached) $ECHO_C" >&6
29315else
29316
29317 echo "VER_1 { *; };" >conftest.sym
29318 echo "int main() { return 0; }" >conftest.cpp
29319
29320 if { ac_try='
29321 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29322 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29324 (eval $ac_try) 2>&5
29325 ac_status=$?
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); }; } ; then
29328 if test -s conftest.stderr ; then
29329 wx_cv_version_script=no
29330 else
29331 wx_cv_version_script=yes
29332 fi
29333 else
29334 wx_cv_version_script=no
29335 fi
29336 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29337
29338fi
29339echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29340echo "${ECHO_T}$wx_cv_version_script" >&6
29341 if test $wx_cv_version_script = yes ; then
29342 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29343 fi
29344 fi
29345
29346
29347 case "${host}" in
29348 *-*-linux* | *-*-gnu* )
29349 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29350 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29351 ;;
29352
29353 *-*-solaris2* )
29354 if test "$GCC" = yes ; then
29355 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29356
29357 saveLdflags="$LDFLAGS"
29358 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29359 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29360echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29361 cat >conftest.$ac_ext <<_ACEOF
29362/* confdefs.h. */
29363_ACEOF
29364cat confdefs.h >>conftest.$ac_ext
29365cat >>conftest.$ac_ext <<_ACEOF
29366/* end confdefs.h. */
29367
29368int
29369main ()
29370{
29371
29372 ;
29373 return 0;
29374}
29375_ACEOF
29376rm -f conftest.$ac_objext conftest$ac_exeext
29377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29378 (eval $ac_link) 2>conftest.er1
a848cd7e 29379 ac_status=$?
ac1cb8d3
VS
29380 grep -v '^ *+' conftest.er1 >conftest.err
29381 rm -f conftest.er1
29382 cat conftest.err >&5
a848cd7e
SC
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); } &&
dfe0c803
JS
29385 { ac_try='test -z "$ac_c_werror_flag"
29386 || test ! -s conftest.err'
ac1cb8d3
VS
29387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388 (eval $ac_try) 2>&5
29389 ac_status=$?
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); }; } &&
29392 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394 (eval $ac_try) 2>&5
29395 ac_status=$?
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); }; }; then
29398
29399 echo "$as_me:$LINENO: result: yes" >&5
29400echo "${ECHO_T}yes" >&6
29401 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29402 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29403
29404else
29405 echo "$as_me: failed program was:" >&5
29406sed 's/^/| /' conftest.$ac_ext >&5
29407
29408
29409 echo "$as_me:$LINENO: result: no" >&5
29410echo "${ECHO_T}no" >&6
29411 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29412echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29413 LDFLAGS="$saveLdflags -Wl,-R,/"
29414 cat >conftest.$ac_ext <<_ACEOF
29415/* confdefs.h. */
29416_ACEOF
29417cat confdefs.h >>conftest.$ac_ext
29418cat >>conftest.$ac_ext <<_ACEOF
29419/* end confdefs.h. */
29420
29421int
29422main ()
29423{
29424
29425 ;
29426 return 0;
29427}
29428_ACEOF
29429rm -f conftest.$ac_objext conftest$ac_exeext
29430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29431 (eval $ac_link) 2>conftest.er1
a848cd7e 29432 ac_status=$?
ac1cb8d3
VS
29433 grep -v '^ *+' conftest.er1 >conftest.err
29434 rm -f conftest.er1
29435 cat conftest.err >&5
a848cd7e
SC
29436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437 (exit $ac_status); } &&
dfe0c803
JS
29438 { ac_try='test -z "$ac_c_werror_flag"
29439 || test ! -s conftest.err'
ac1cb8d3
VS
29440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29441 (eval $ac_try) 2>&5
29442 ac_status=$?
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); }; } &&
29445 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29447 (eval $ac_try) 2>&5
29448 ac_status=$?
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); }; }; then
29451
ffa0583f 29452 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29453echo "${ECHO_T}yes" >&6
ffa0583f
RL
29454 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29455 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29456
a848cd7e
SC
29457else
29458 echo "$as_me: failed program was:" >&5
29459sed 's/^/| /' conftest.$ac_ext >&5
29460
29461
29462 echo "$as_me:$LINENO: result: no" >&5
29463echo "${ECHO_T}no" >&6
29464
29465fi
ac1cb8d3
VS
29466rm -f conftest.err conftest.$ac_objext \
29467 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29468
29469fi
ac1cb8d3
VS
29470rm -f conftest.err conftest.$ac_objext \
29471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29472 LDFLAGS="$saveLdflags"
29473 else
a848cd7e 29474 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29475 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29476 fi
29477 ;;
29478
29479 powerpc-*-darwin* )
29480 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29481 cat <<EOF >change-install-names
29482#!/bin/sh
29483libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29484inst_cmd="install_name_tool "
29485for i in \${libnames} ; do
29486 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29487done
29488\${inst_cmd} \${3}
29489EOF
29490 chmod +x change-install-names
29491 ;;
29492
29493 *-*-cygwin* | *-*-mingw32* )
29494 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29495 ;;
29496
81f90336
MW
29497 *-*-hpux* )
29498 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29499 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29500 ;;
29501
a848cd7e 29502 esac
ceec2216 29503
ffa0583f
RL
29504 if test $wxUSE_RPATH = "no"; then
29505 SAMPLES_RPATH_FLAG=''
29506 SAMPLES_RPATH_POSTLINK=''
29507 WXCONFIG_RPATH=''
29508 fi
29509
29510 SHARED=1
29511
29512else
29513
ceec2216
RL
29514 config_linkage_component="-static"
29515 SHARED=0
ffa0583f 29516
ceec2216 29517fi
a848cd7e 29518
a848cd7e 29519
ceec2216
RL
29520UNICODE=0
29521lib_unicode_suffix=
29522WX_CHARTYPE="ansi"
29523if test "$wxUSE_UNICODE" = "yes"; then
29524 lib_unicode_suffix=u
29525 WX_CHARTYPE="unicode"
29526 UNICODE=1
a848cd7e
SC
29527fi
29528
ceec2216
RL
29529lib_debug_suffix=
29530WX_DEBUGTYPE="release"
29531DEBUG_FLAG=0
29532if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29533 lib_debug_suffix=d
29534 WX_DEBUGTYPE="debug"
29535 DEBUG_FLAG=1
29536fi
a848cd7e 29537
ceec2216
RL
29538WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29539WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29540
ceec2216
RL
29541DEBUG_INFO=0
29542if test "$wxUSE_DEBUG_INFO" = "yes"; then
29543 DEBUG_INFO=1
29544fi
a848cd7e 29545
ceec2216 29546WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29547
ceec2216 29548TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29549
ceec2216 29550TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29551
ceec2216
RL
29552if test "$cross_compiling" = "yes"; then
29553 HOST_SUFFIX="-$host_alias"
29554 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29555 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29556fi
29557
dd21ced8 29558WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29559WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29560
29561
29562
1d1af5ea
DE
29563if test "$wxUSE_COCOA" = 1; then
29564
29565
29566 ac_ext=c
29567ac_cpp='$CPP $CPPFLAGS'
29568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29570ac_compiler_gnu=$ac_cv_c_compiler_gnu
29571
29572ac_ext=m
29573
29574 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29575echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29576 cat >conftest.$ac_ext <<_ACEOF
29577/* confdefs.h. */
29578_ACEOF
29579cat confdefs.h >>conftest.$ac_ext
29580cat >>conftest.$ac_ext <<_ACEOF
29581/* end confdefs.h. */
29582#include <AppKit/NSEvent.h>
29583#include <CoreFoundation/CoreFoundation.h>
29584
29585int
29586main ()
29587{
29588
29589 ;
29590 return 0;
29591}
29592_ACEOF
29593rm -f conftest.$ac_objext
29594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29595 (eval $ac_compile) 2>conftest.er1
29596 ac_status=$?
29597 grep -v '^ *+' conftest.er1 >conftest.err
29598 rm -f conftest.er1
29599 cat conftest.err >&5
29600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601 (exit $ac_status); } &&
dfe0c803
JS
29602 { ac_try='test -z "$ac_c_werror_flag"
29603 || test ! -s conftest.err'
1d1af5ea
DE
29604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605 (eval $ac_try) 2>&5
29606 ac_status=$?
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); }; } &&
29609 { ac_try='test -s conftest.$ac_objext'
29610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29611 (eval $ac_try) 2>&5
29612 ac_status=$?
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; }; then
29615 echo "$as_me:$LINENO: result: no" >&5
29616echo "${ECHO_T}no" >&6
29617else
29618 echo "$as_me: failed program was:" >&5
29619sed 's/^/| /' conftest.$ac_ext >&5
29620
29621echo "$as_me:$LINENO: result: yes" >&5
29622echo "${ECHO_T}yes" >&6
29623 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29624echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29625 cat >conftest.$ac_ext <<_ACEOF
29626/* confdefs.h. */
29627_ACEOF
29628cat confdefs.h >>conftest.$ac_ext
29629cat >>conftest.$ac_ext <<_ACEOF
29630/* end confdefs.h. */
29631#define __Point__ 1
29632#include <AppKit/NSEvent.h>
29633#include <CoreFoundation/CoreFoundation.h>
29634
29635int
29636main ()
29637{
29638
29639 ;
29640 return 0;
29641}
29642_ACEOF
29643rm -f conftest.$ac_objext
29644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29645 (eval $ac_compile) 2>conftest.er1
29646 ac_status=$?
29647 grep -v '^ *+' conftest.er1 >conftest.err
29648 rm -f conftest.er1
29649 cat conftest.err >&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } &&
dfe0c803
JS
29652 { ac_try='test -z "$ac_c_werror_flag"
29653 || test ! -s conftest.err'
1d1af5ea
DE
29654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29655 (eval $ac_try) 2>&5
29656 ac_status=$?
29657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658 (exit $ac_status); }; } &&
29659 { ac_try='test -s conftest.$ac_objext'
29660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29661 (eval $ac_try) 2>&5
29662 ac_status=$?
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); }; }; then
29665 echo "$as_me:$LINENO: result: yes" >&5
29666echo "${ECHO_T}yes" >&6
29667 cat >>confdefs.h <<\_ACEOF
29668#define __Point__ 1
29669_ACEOF
29670
29671
29672else
29673 echo "$as_me: failed program was:" >&5
29674sed 's/^/| /' conftest.$ac_ext >&5
29675
29676{ { echo "$as_me:$LINENO: error: no
29677See \`config.log' for more details." >&5
29678echo "$as_me: error: no
29679See \`config.log' for more details." >&2;}
29680 { (exit 1); exit 1; }; }
29681
29682fi
29683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29684
29685fi
29686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29687 ac_ext=c
29688ac_cpp='$CPP $CPPFLAGS'
29689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29691ac_compiler_gnu=$ac_cv_c_compiler_gnu
29692
29693fi
29694
a848cd7e 29695if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29696 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29697 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29698
a848cd7e 29699 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29700
29701 # Extract the first word of "Rez", so it can be a program name with args.
29702set dummy Rez; ac_word=$2
29703echo "$as_me:$LINENO: checking for $ac_word" >&5
29704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29705if test "${ac_cv_prog_RESCOMP+set}" = set; then
29706 echo $ECHO_N "(cached) $ECHO_C" >&6
29707else
29708 if test -n "$RESCOMP"; then
29709 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29710else
29711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29712for as_dir in $PATH
29713do
29714 IFS=$as_save_IFS
29715 test -z "$as_dir" && as_dir=.
29716 for ac_exec_ext in '' $ac_executable_extensions; do
29717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29718 ac_cv_prog_RESCOMP="Rez"
29719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29720 break 2
29721 fi
29722done
29723done
29724
29725 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29726fi
29727fi
29728RESCOMP=$ac_cv_prog_RESCOMP
29729if test -n "$RESCOMP"; then
29730 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29731echo "${ECHO_T}$RESCOMP" >&6
29732else
29733 echo "$as_me:$LINENO: result: no" >&5
29734echo "${ECHO_T}no" >&6
29735fi
29736
29737 # Extract the first word of "DeRez", so it can be a program name with args.
29738set dummy DeRez; ac_word=$2
29739echo "$as_me:$LINENO: checking for $ac_word" >&5
29740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29741if test "${ac_cv_prog_DEREZ+set}" = set; then
29742 echo $ECHO_N "(cached) $ECHO_C" >&6
29743else
29744 if test -n "$DEREZ"; then
29745 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29746else
29747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29748for as_dir in $PATH
29749do
29750 IFS=$as_save_IFS
29751 test -z "$as_dir" && as_dir=.
29752 for ac_exec_ext in '' $ac_executable_extensions; do
29753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29754 ac_cv_prog_DEREZ="DeRez"
29755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29756 break 2
29757 fi
29758done
29759done
29760
29761 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29762fi
29763fi
29764DEREZ=$ac_cv_prog_DEREZ
29765if test -n "$DEREZ"; then
29766 echo "$as_me:$LINENO: result: $DEREZ" >&5
29767echo "${ECHO_T}$DEREZ" >&6
29768else
29769 echo "$as_me:$LINENO: result: no" >&5
29770echo "${ECHO_T}no" >&6
29771fi
29772
29773 # Extract the first word of "SetFile", so it can be a program name with args.
29774set dummy SetFile; ac_word=$2
29775echo "$as_me:$LINENO: checking for $ac_word" >&5
29776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29777if test "${ac_cv_prog_SETFILE+set}" = set; then
29778 echo $ECHO_N "(cached) $ECHO_C" >&6
29779else
29780 if test -n "$SETFILE"; then
29781 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29782else
29783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29784for as_dir in $PATH
29785do
29786 IFS=$as_save_IFS
29787 test -z "$as_dir" && as_dir=.
29788 for ac_exec_ext in '' $ac_executable_extensions; do
29789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29790 ac_cv_prog_SETFILE="SetFile"
29791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29792 break 2
29793 fi
29794done
29795done
29796
29797 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29798fi
29799fi
29800SETFILE=$ac_cv_prog_SETFILE
29801if test -n "$SETFILE"; then
29802 echo "$as_me:$LINENO: result: $SETFILE" >&5
29803echo "${ECHO_T}$SETFILE" >&6
29804else
29805 echo "$as_me:$LINENO: result: no" >&5
29806echo "${ECHO_T}no" >&6
29807fi
29808
29809
29810 MACSETFILE="\$(SETFILE)"
29811
29812 if test "$wxUSE_MAC" = 1; then
29813 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29814
29815 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29816 else
29817 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29818 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29819 fi
29820else
ffa0583f
RL
29821 MACSETFILE="@true"
29822 MACRESWXCONFIG="@true"
a848cd7e
SC
29823
29824 if test "$wxUSE_PM" = 1; then
29825 MACRESCOMP="emxbind -ep"
29826 else
ffa0583f 29827 MACRESCOMP="@true"
a848cd7e
SC
29828 fi
29829fi
29830
29831
29832
29833echo "$as_me:$LINENO: checking for mode_t" >&5
29834echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29835if test "${ac_cv_type_mode_t+set}" = set; then
29836 echo $ECHO_N "(cached) $ECHO_C" >&6
29837else
29838 cat >conftest.$ac_ext <<_ACEOF
29839/* confdefs.h. */
29840_ACEOF
29841cat confdefs.h >>conftest.$ac_ext
29842cat >>conftest.$ac_ext <<_ACEOF
29843/* end confdefs.h. */
29844$ac_includes_default
29845int
29846main ()
29847{
29848if ((mode_t *) 0)
29849 return 0;
29850if (sizeof (mode_t))
29851 return 0;
29852 ;
29853 return 0;
29854}
29855_ACEOF
29856rm -f conftest.$ac_objext
29857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29858 (eval $ac_compile) 2>conftest.er1
a848cd7e 29859 ac_status=$?
ac1cb8d3
VS
29860 grep -v '^ *+' conftest.er1 >conftest.err
29861 rm -f conftest.er1
29862 cat conftest.err >&5
a848cd7e
SC
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); } &&
dfe0c803
JS
29865 { ac_try='test -z "$ac_c_werror_flag"
29866 || test ! -s conftest.err'
ac1cb8d3
VS
29867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29868 (eval $ac_try) 2>&5
29869 ac_status=$?
29870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 (exit $ac_status); }; } &&
29872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29874 (eval $ac_try) 2>&5
29875 ac_status=$?
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); }; }; then
29878 ac_cv_type_mode_t=yes
29879else
29880 echo "$as_me: failed program was:" >&5
29881sed 's/^/| /' conftest.$ac_ext >&5
29882
29883ac_cv_type_mode_t=no
29884fi
ac1cb8d3 29885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29886fi
29887echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29888echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29889if test $ac_cv_type_mode_t = yes; then
29890 :
29891else
29892
29893cat >>confdefs.h <<_ACEOF
29894#define mode_t int
29895_ACEOF
29896
29897fi
29898
29899echo "$as_me:$LINENO: checking for off_t" >&5
29900echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29901if test "${ac_cv_type_off_t+set}" = set; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29903else
29904 cat >conftest.$ac_ext <<_ACEOF
29905/* confdefs.h. */
29906_ACEOF
29907cat confdefs.h >>conftest.$ac_ext
29908cat >>conftest.$ac_ext <<_ACEOF
29909/* end confdefs.h. */
29910$ac_includes_default
29911int
29912main ()
29913{
29914if ((off_t *) 0)
29915 return 0;
29916if (sizeof (off_t))
29917 return 0;
29918 ;
29919 return 0;
29920}
29921_ACEOF
29922rm -f conftest.$ac_objext
29923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29924 (eval $ac_compile) 2>conftest.er1
a848cd7e 29925 ac_status=$?
ac1cb8d3
VS
29926 grep -v '^ *+' conftest.er1 >conftest.err
29927 rm -f conftest.er1
29928 cat conftest.err >&5
a848cd7e
SC
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } &&
dfe0c803
JS
29931 { ac_try='test -z "$ac_c_werror_flag"
29932 || test ! -s conftest.err'
ac1cb8d3
VS
29933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29934 (eval $ac_try) 2>&5
29935 ac_status=$?
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; } &&
29938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29940 (eval $ac_try) 2>&5
29941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; }; then
29944 ac_cv_type_off_t=yes
29945else
29946 echo "$as_me: failed program was:" >&5
29947sed 's/^/| /' conftest.$ac_ext >&5
29948
29949ac_cv_type_off_t=no
29950fi
ac1cb8d3 29951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29952fi
29953echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29954echo "${ECHO_T}$ac_cv_type_off_t" >&6
29955if test $ac_cv_type_off_t = yes; then
29956 :
29957else
29958
29959cat >>confdefs.h <<_ACEOF
29960#define off_t long
29961_ACEOF
29962
29963fi
29964
29965echo "$as_me:$LINENO: checking for pid_t" >&5
29966echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29967if test "${ac_cv_type_pid_t+set}" = set; then
29968 echo $ECHO_N "(cached) $ECHO_C" >&6
29969else
29970 cat >conftest.$ac_ext <<_ACEOF
29971/* confdefs.h. */
29972_ACEOF
29973cat confdefs.h >>conftest.$ac_ext
29974cat >>conftest.$ac_ext <<_ACEOF
29975/* end confdefs.h. */
29976$ac_includes_default
29977int
29978main ()
29979{
29980if ((pid_t *) 0)
29981 return 0;
29982if (sizeof (pid_t))
29983 return 0;
29984 ;
29985 return 0;
29986}
29987_ACEOF
29988rm -f conftest.$ac_objext
29989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29990 (eval $ac_compile) 2>conftest.er1
a848cd7e 29991 ac_status=$?
ac1cb8d3
VS
29992 grep -v '^ *+' conftest.er1 >conftest.err
29993 rm -f conftest.er1
29994 cat conftest.err >&5
a848cd7e
SC
29995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996 (exit $ac_status); } &&
dfe0c803
JS
29997 { ac_try='test -z "$ac_c_werror_flag"
29998 || test ! -s conftest.err'
ac1cb8d3
VS
29999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30000 (eval $ac_try) 2>&5
30001 ac_status=$?
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); }; } &&
30004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30006 (eval $ac_try) 2>&5
30007 ac_status=$?
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); }; }; then
30010 ac_cv_type_pid_t=yes
30011else
30012 echo "$as_me: failed program was:" >&5
30013sed 's/^/| /' conftest.$ac_ext >&5
30014
30015ac_cv_type_pid_t=no
30016fi
ac1cb8d3 30017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30018fi
30019echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30020echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30021if test $ac_cv_type_pid_t = yes; then
30022 :
30023else
30024
30025cat >>confdefs.h <<_ACEOF
30026#define pid_t int
30027_ACEOF
30028
30029fi
30030
30031echo "$as_me:$LINENO: checking for size_t" >&5
30032echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30033if test "${ac_cv_type_size_t+set}" = set; then
30034 echo $ECHO_N "(cached) $ECHO_C" >&6
30035else
30036 cat >conftest.$ac_ext <<_ACEOF
30037/* confdefs.h. */
30038_ACEOF
30039cat confdefs.h >>conftest.$ac_ext
30040cat >>conftest.$ac_ext <<_ACEOF
30041/* end confdefs.h. */
30042$ac_includes_default
30043int
30044main ()
30045{
30046if ((size_t *) 0)
30047 return 0;
30048if (sizeof (size_t))
30049 return 0;
30050 ;
30051 return 0;
30052}
30053_ACEOF
30054rm -f conftest.$ac_objext
30055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30056 (eval $ac_compile) 2>conftest.er1
a848cd7e 30057 ac_status=$?
ac1cb8d3
VS
30058 grep -v '^ *+' conftest.er1 >conftest.err
30059 rm -f conftest.er1
30060 cat conftest.err >&5
a848cd7e
SC
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); } &&
dfe0c803
JS
30063 { ac_try='test -z "$ac_c_werror_flag"
30064 || test ! -s conftest.err'
ac1cb8d3
VS
30065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30066 (eval $ac_try) 2>&5
30067 ac_status=$?
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); }; } &&
30070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30072 (eval $ac_try) 2>&5
30073 ac_status=$?
30074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075 (exit $ac_status); }; }; then
30076 ac_cv_type_size_t=yes
30077else
30078 echo "$as_me: failed program was:" >&5
30079sed 's/^/| /' conftest.$ac_ext >&5
30080
30081ac_cv_type_size_t=no
30082fi
ac1cb8d3 30083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30084fi
30085echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30086echo "${ECHO_T}$ac_cv_type_size_t" >&6
30087if test $ac_cv_type_size_t = yes; then
30088 :
30089else
30090
30091cat >>confdefs.h <<_ACEOF
30092#define size_t unsigned
30093_ACEOF
30094
30095fi
30096
30097echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30098echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30099if test "${ac_cv_type_uid_t+set}" = set; then
30100 echo $ECHO_N "(cached) $ECHO_C" >&6
30101else
30102 cat >conftest.$ac_ext <<_ACEOF
30103/* confdefs.h. */
30104_ACEOF
30105cat confdefs.h >>conftest.$ac_ext
30106cat >>conftest.$ac_ext <<_ACEOF
30107/* end confdefs.h. */
30108#include <sys/types.h>
30109
30110_ACEOF
30111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30112 $EGREP "uid_t" >/dev/null 2>&1; then
30113 ac_cv_type_uid_t=yes
30114else
30115 ac_cv_type_uid_t=no
30116fi
30117rm -f conftest*
30118
30119fi
30120echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30121echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30122if test $ac_cv_type_uid_t = no; then
30123
30124cat >>confdefs.h <<\_ACEOF
30125#define uid_t int
30126_ACEOF
30127
30128
30129cat >>confdefs.h <<\_ACEOF
30130#define gid_t int
30131_ACEOF
30132
30133fi
30134
30135
d51253e8
RL
30136echo "$as_me:$LINENO: checking for ssize_t" >&5
30137echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30138if test "${ac_cv_type_ssize_t+set}" = set; then
30139 echo $ECHO_N "(cached) $ECHO_C" >&6
30140else
30141 cat >conftest.$ac_ext <<_ACEOF
30142/* confdefs.h. */
30143_ACEOF
30144cat confdefs.h >>conftest.$ac_ext
30145cat >>conftest.$ac_ext <<_ACEOF
30146/* end confdefs.h. */
30147$ac_includes_default
30148int
30149main ()
30150{
30151if ((ssize_t *) 0)
30152 return 0;
30153if (sizeof (ssize_t))
30154 return 0;
30155 ;
30156 return 0;
30157}
30158_ACEOF
30159rm -f conftest.$ac_objext
30160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30161 (eval $ac_compile) 2>conftest.er1
30162 ac_status=$?
30163 grep -v '^ *+' conftest.er1 >conftest.err
30164 rm -f conftest.er1
30165 cat conftest.err >&5
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); } &&
dfe0c803
JS
30168 { ac_try='test -z "$ac_c_werror_flag"
30169 || test ! -s conftest.err'
d51253e8
RL
30170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30171 (eval $ac_try) 2>&5
30172 ac_status=$?
30173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174 (exit $ac_status); }; } &&
30175 { ac_try='test -s conftest.$ac_objext'
30176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30177 (eval $ac_try) 2>&5
30178 ac_status=$?
30179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180 (exit $ac_status); }; }; then
30181 ac_cv_type_ssize_t=yes
30182else
30183 echo "$as_me: failed program was:" >&5
30184sed 's/^/| /' conftest.$ac_ext >&5
30185
30186ac_cv_type_ssize_t=no
30187fi
30188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30189fi
30190echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30191echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30192if test $ac_cv_type_ssize_t = yes; then
30193
30194cat >>confdefs.h <<_ACEOF
30195#define HAVE_SSIZE_T 1
30196_ACEOF
30197
30198
30199fi
30200
30201
a848cd7e
SC
30202
30203
30204ac_ext=cc
30205ac_cpp='$CXXCPP $CPPFLAGS'
30206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30209
30210echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30211echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30212if test "${wx_cv_size_t_is_uint+set}" = set; then
30213 echo $ECHO_N "(cached) $ECHO_C" >&6
30214else
30215
30216 cat >conftest.$ac_ext <<_ACEOF
30217/* confdefs.h. */
30218_ACEOF
30219cat confdefs.h >>conftest.$ac_ext
30220cat >>conftest.$ac_ext <<_ACEOF
30221/* end confdefs.h. */
30222#include <stddef.h>
30223int
30224main ()
30225{
30226
30227 return 0; }
30228
30229 struct Foo { void foo(size_t); void foo(unsigned int); };
30230
30231 int bar() {
30232
30233 ;
30234 return 0;
30235}
30236_ACEOF
30237rm -f conftest.$ac_objext
30238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30239 (eval $ac_compile) 2>conftest.er1
a848cd7e 30240 ac_status=$?
ac1cb8d3
VS
30241 grep -v '^ *+' conftest.er1 >conftest.err
30242 rm -f conftest.er1
30243 cat conftest.err >&5
a848cd7e
SC
30244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245 (exit $ac_status); } &&
dfe0c803
JS
30246 { ac_try='test -z "$ac_cxx_werror_flag"
30247 || test ! -s conftest.err'
ac1cb8d3
VS
30248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30249 (eval $ac_try) 2>&5
30250 ac_status=$?
30251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252 (exit $ac_status); }; } &&
30253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30255 (eval $ac_try) 2>&5
30256 ac_status=$?
30257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258 (exit $ac_status); }; }; then
30259 wx_cv_size_t_is_uint=no
30260else
30261 echo "$as_me: failed program was:" >&5
30262sed 's/^/| /' conftest.$ac_ext >&5
30263
30264wx_cv_size_t_is_uint=yes
30265
30266fi
ac1cb8d3 30267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30268
30269
30270fi
30271echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30272echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30273
30274if test "$wx_cv_size_t_is_uint" = "yes"; then
30275 cat >>confdefs.h <<\_ACEOF
30276#define wxSIZE_T_IS_UINT 1
30277_ACEOF
30278
30279else
30280 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30281echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30282if test "${wx_cv_size_t_is_ulong+set}" = set; then
30283 echo $ECHO_N "(cached) $ECHO_C" >&6
30284else
30285 cat >conftest.$ac_ext <<_ACEOF
30286/* confdefs.h. */
30287_ACEOF
30288cat confdefs.h >>conftest.$ac_ext
30289cat >>conftest.$ac_ext <<_ACEOF
30290/* end confdefs.h. */
30291#include <stddef.h>
30292int
30293main ()
30294{
30295
30296 return 0; }
30297
30298 struct Foo { void foo(size_t); void foo(unsigned long); };
30299
30300 int bar() {
30301
30302 ;
30303 return 0;
30304}
30305_ACEOF
30306rm -f conftest.$ac_objext
30307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30308 (eval $ac_compile) 2>conftest.er1
a848cd7e 30309 ac_status=$?
ac1cb8d3
VS
30310 grep -v '^ *+' conftest.er1 >conftest.err
30311 rm -f conftest.er1
30312 cat conftest.err >&5
a848cd7e
SC
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); } &&
dfe0c803
JS
30315 { ac_try='test -z "$ac_cxx_werror_flag"
30316 || test ! -s conftest.err'
ac1cb8d3
VS
30317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318 (eval $ac_try) 2>&5
30319 ac_status=$?
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; } &&
30322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30324 (eval $ac_try) 2>&5
30325 ac_status=$?
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); }; }; then
30328 wx_cv_size_t_is_ulong=no
30329else
30330 echo "$as_me: failed program was:" >&5
30331sed 's/^/| /' conftest.$ac_ext >&5
30332
30333wx_cv_size_t_is_ulong=yes
30334
30335fi
ac1cb8d3 30336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30337
30338fi
30339echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30340echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30341
30342 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30343 cat >>confdefs.h <<\_ACEOF
30344#define wxSIZE_T_IS_ULONG 1
30345_ACEOF
30346
30347 fi
30348fi
30349
30350ac_ext=c
30351ac_cpp='$CPP $CPPFLAGS'
30352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30354ac_compiler_gnu=$ac_cv_c_compiler_gnu
30355
30356
30357
30358echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30359echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30360if test "${wx_cv_struct_pw_gecos+set}" = set; then
30361 echo $ECHO_N "(cached) $ECHO_C" >&6
30362else
30363
30364 cat >conftest.$ac_ext <<_ACEOF
30365/* confdefs.h. */
30366_ACEOF
30367cat confdefs.h >>conftest.$ac_ext
30368cat >>conftest.$ac_ext <<_ACEOF
30369/* end confdefs.h. */
30370#include <pwd.h>
30371int
30372main ()
30373{
30374
30375 char *p;
30376 struct passwd *pw;
30377 p = pw->pw_gecos;
30378
30379 ;
30380 return 0;
30381}
30382_ACEOF
30383rm -f conftest.$ac_objext
30384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30385 (eval $ac_compile) 2>conftest.er1
a848cd7e 30386 ac_status=$?
ac1cb8d3
VS
30387 grep -v '^ *+' conftest.er1 >conftest.err
30388 rm -f conftest.er1
30389 cat conftest.err >&5
a848cd7e
SC
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); } &&
dfe0c803
JS
30392 { ac_try='test -z "$ac_c_werror_flag"
30393 || test ! -s conftest.err'
ac1cb8d3
VS
30394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30395 (eval $ac_try) 2>&5
30396 ac_status=$?
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); }; } &&
30399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30401 (eval $ac_try) 2>&5
30402 ac_status=$?
30403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404 (exit $ac_status); }; }; then
30405
30406 wx_cv_struct_pw_gecos=yes
30407
30408else
30409 echo "$as_me: failed program was:" >&5
30410sed 's/^/| /' conftest.$ac_ext >&5
30411
30412
30413 wx_cv_struct_pw_gecos=no
30414
30415
30416fi
ac1cb8d3 30417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30418
30419
30420fi
30421echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30422echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30423
30424if test "$wx_cv_struct_pw_gecos" = "yes"; then
30425 cat >>confdefs.h <<\_ACEOF
30426#define HAVE_PW_GECOS 1
30427_ACEOF
30428
30429fi
30430
30431
238ecede 30432if test "$ac_cv_sizeof_wchar_t" != "0"; then
a848cd7e
SC
30433 cat >>confdefs.h <<\_ACEOF
30434#define wxUSE_WCHAR_T 1
30435_ACEOF
30436
30437
30438 WCSLEN_FOUND=0
30439 WCHAR_LINK=
30440
30441for ac_func in wcslen
30442do
30443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30444echo "$as_me:$LINENO: checking for $ac_func" >&5
30445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30446if eval "test \"\${$as_ac_var+set}\" = set"; then
30447 echo $ECHO_N "(cached) $ECHO_C" >&6
30448else
30449 cat >conftest.$ac_ext <<_ACEOF
30450/* confdefs.h. */
30451_ACEOF
30452cat confdefs.h >>conftest.$ac_ext
30453cat >>conftest.$ac_ext <<_ACEOF
30454/* end confdefs.h. */
ac1cb8d3
VS
30455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30457#define $ac_func innocuous_$ac_func
30458
a848cd7e
SC
30459/* System header to define __stub macros and hopefully few prototypes,
30460 which can conflict with char $ac_func (); below.
30461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30462 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30463
a848cd7e
SC
30464#ifdef __STDC__
30465# include <limits.h>
30466#else
30467# include <assert.h>
30468#endif
ac1cb8d3
VS
30469
30470#undef $ac_func
30471
a848cd7e
SC
30472/* Override any gcc2 internal prototype to avoid an error. */
30473#ifdef __cplusplus
30474extern "C"
30475{
30476#endif
30477/* We use char because int might match the return type of a gcc2
30478 builtin and then its argument prototype would still apply. */
30479char $ac_func ();
30480/* The GNU C library defines this for functions which it implements
30481 to always fail with ENOSYS. Some functions are actually named
30482 something starting with __ and the normal name is an alias. */
30483#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30484choke me
30485#else
30486char (*f) () = $ac_func;
30487#endif
30488#ifdef __cplusplus
30489}
30490#endif
30491
30492int
30493main ()
30494{
30495return f != $ac_func;
30496 ;
30497 return 0;
30498}
30499_ACEOF
30500rm -f conftest.$ac_objext conftest$ac_exeext
30501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30502 (eval $ac_link) 2>conftest.er1
a848cd7e 30503 ac_status=$?
ac1cb8d3
VS
30504 grep -v '^ *+' conftest.er1 >conftest.err
30505 rm -f conftest.er1
30506 cat conftest.err >&5
a848cd7e
SC
30507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); } &&
dfe0c803
JS
30509 { ac_try='test -z "$ac_c_werror_flag"
30510 || test ! -s conftest.err'
ac1cb8d3
VS
30511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30512 (eval $ac_try) 2>&5
30513 ac_status=$?
30514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30515 (exit $ac_status); }; } &&
30516 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30518 (eval $ac_try) 2>&5
30519 ac_status=$?
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); }; }; then
30522 eval "$as_ac_var=yes"
30523else
30524 echo "$as_me: failed program was:" >&5
30525sed 's/^/| /' conftest.$ac_ext >&5
30526
30527eval "$as_ac_var=no"
30528fi
ac1cb8d3
VS
30529rm -f conftest.err conftest.$ac_objext \
30530 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30531fi
30532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30533echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30534if test `eval echo '${'$as_ac_var'}'` = yes; then
30535 cat >>confdefs.h <<_ACEOF
30536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30537_ACEOF
30538 WCSLEN_FOUND=1
30539fi
30540done
30541
30542
30543 if test "$WCSLEN_FOUND" = 0; then
30544 if test "$TOOLKIT" = "MSW"; then
30545 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30546echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30547if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30548 echo $ECHO_N "(cached) $ECHO_C" >&6
30549else
30550 ac_check_lib_save_LIBS=$LIBS
30551LIBS="-lmsvcrt $LIBS"
30552cat >conftest.$ac_ext <<_ACEOF
30553/* confdefs.h. */
30554_ACEOF
30555cat confdefs.h >>conftest.$ac_ext
30556cat >>conftest.$ac_ext <<_ACEOF
30557/* end confdefs.h. */
30558
30559/* Override any gcc2 internal prototype to avoid an error. */
30560#ifdef __cplusplus
30561extern "C"
30562#endif
30563/* We use char because int might match the return type of a gcc2
30564 builtin and then its argument prototype would still apply. */
30565char wcslen ();
30566int
30567main ()
30568{
30569wcslen ();
30570 ;
30571 return 0;
30572}
30573_ACEOF
30574rm -f conftest.$ac_objext conftest$ac_exeext
30575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30576 (eval $ac_link) 2>conftest.er1
a848cd7e 30577 ac_status=$?
ac1cb8d3
VS
30578 grep -v '^ *+' conftest.er1 >conftest.err
30579 rm -f conftest.er1
30580 cat conftest.err >&5
a848cd7e
SC
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); } &&
dfe0c803
JS
30583 { ac_try='test -z "$ac_c_werror_flag"
30584 || test ! -s conftest.err'
ac1cb8d3
VS
30585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30586 (eval $ac_try) 2>&5
30587 ac_status=$?
30588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30589 (exit $ac_status); }; } &&
30590 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30592 (eval $ac_try) 2>&5
30593 ac_status=$?
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); }; }; then
30596 ac_cv_lib_msvcrt_wcslen=yes
30597else
30598 echo "$as_me: failed program was:" >&5
30599sed 's/^/| /' conftest.$ac_ext >&5
30600
30601ac_cv_lib_msvcrt_wcslen=no
30602fi
ac1cb8d3
VS
30603rm -f conftest.err conftest.$ac_objext \
30604 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30605LIBS=$ac_check_lib_save_LIBS
30606fi
30607echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30608echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30609if test $ac_cv_lib_msvcrt_wcslen = yes; then
30610 WCHAR_OK=1
30611fi
30612
30613 else
30614 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30615echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30616if test "${ac_cv_lib_w_wcslen+set}" = set; then
30617 echo $ECHO_N "(cached) $ECHO_C" >&6
30618else
30619 ac_check_lib_save_LIBS=$LIBS
30620LIBS="-lw $LIBS"
30621cat >conftest.$ac_ext <<_ACEOF
30622/* confdefs.h. */
30623_ACEOF
30624cat confdefs.h >>conftest.$ac_ext
30625cat >>conftest.$ac_ext <<_ACEOF
30626/* end confdefs.h. */
30627
30628/* Override any gcc2 internal prototype to avoid an error. */
30629#ifdef __cplusplus
30630extern "C"
30631#endif
30632/* We use char because int might match the return type of a gcc2
30633 builtin and then its argument prototype would still apply. */
30634char wcslen ();
30635int
30636main ()
30637{
30638wcslen ();
30639 ;
30640 return 0;
30641}
30642_ACEOF
30643rm -f conftest.$ac_objext conftest$ac_exeext
30644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30645 (eval $ac_link) 2>conftest.er1
a848cd7e 30646 ac_status=$?
ac1cb8d3
VS
30647 grep -v '^ *+' conftest.er1 >conftest.err
30648 rm -f conftest.er1
30649 cat conftest.err >&5
a848cd7e
SC
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); } &&
dfe0c803
JS
30652 { ac_try='test -z "$ac_c_werror_flag"
30653 || test ! -s conftest.err'
ac1cb8d3
VS
30654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655 (eval $ac_try) 2>&5
30656 ac_status=$?
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; } &&
30659 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30661 (eval $ac_try) 2>&5
30662 ac_status=$?
30663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); }; }; then
30665 ac_cv_lib_w_wcslen=yes
30666else
30667 echo "$as_me: failed program was:" >&5
30668sed 's/^/| /' conftest.$ac_ext >&5
30669
30670ac_cv_lib_w_wcslen=no
30671fi
ac1cb8d3
VS
30672rm -f conftest.err conftest.$ac_objext \
30673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30674LIBS=$ac_check_lib_save_LIBS
30675fi
30676echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30677echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30678if test $ac_cv_lib_w_wcslen = yes; then
30679
30680 WCHAR_LINK=" -lw"
30681 WCSLEN_FOUND=1
30682
30683fi
30684
30685 fi
30686 fi
30687
30688 if test "$WCSLEN_FOUND" = 1; then
30689 cat >>confdefs.h <<\_ACEOF
30690#define HAVE_WCSLEN 1
30691_ACEOF
30692
30693 fi
30694
81f90336 30695 if test "$USE_HPUX" = 1; then
473276a9
VS
30696 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30697 fi
30698
a848cd7e
SC
30699
30700for ac_func in wcsrtombs
30701do
30702as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30703echo "$as_me:$LINENO: checking for $ac_func" >&5
30704echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30705if eval "test \"\${$as_ac_var+set}\" = set"; then
30706 echo $ECHO_N "(cached) $ECHO_C" >&6
30707else
30708 cat >conftest.$ac_ext <<_ACEOF
30709/* confdefs.h. */
30710_ACEOF
30711cat confdefs.h >>conftest.$ac_ext
30712cat >>conftest.$ac_ext <<_ACEOF
30713/* end confdefs.h. */
ac1cb8d3
VS
30714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30716#define $ac_func innocuous_$ac_func
30717
a848cd7e
SC
30718/* System header to define __stub macros and hopefully few prototypes,
30719 which can conflict with char $ac_func (); below.
30720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30721 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30722
a848cd7e
SC
30723#ifdef __STDC__
30724# include <limits.h>
30725#else
30726# include <assert.h>
30727#endif
ac1cb8d3
VS
30728
30729#undef $ac_func
30730
a848cd7e
SC
30731/* Override any gcc2 internal prototype to avoid an error. */
30732#ifdef __cplusplus
30733extern "C"
30734{
30735#endif
30736/* We use char because int might match the return type of a gcc2
30737 builtin and then its argument prototype would still apply. */
30738char $ac_func ();
30739/* The GNU C library defines this for functions which it implements
30740 to always fail with ENOSYS. Some functions are actually named
30741 something starting with __ and the normal name is an alias. */
30742#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30743choke me
30744#else
30745char (*f) () = $ac_func;
30746#endif
30747#ifdef __cplusplus
30748}
30749#endif
30750
30751int
30752main ()
30753{
30754return f != $ac_func;
30755 ;
30756 return 0;
30757}
30758_ACEOF
30759rm -f conftest.$ac_objext conftest$ac_exeext
30760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30761 (eval $ac_link) 2>conftest.er1
a848cd7e 30762 ac_status=$?
ac1cb8d3
VS
30763 grep -v '^ *+' conftest.er1 >conftest.err
30764 rm -f conftest.er1
30765 cat conftest.err >&5
a848cd7e
SC
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); } &&
dfe0c803
JS
30768 { ac_try='test -z "$ac_c_werror_flag"
30769 || test ! -s conftest.err'
ac1cb8d3
VS
30770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30771 (eval $ac_try) 2>&5
30772 ac_status=$?
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); }; } &&
30775 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30777 (eval $ac_try) 2>&5
30778 ac_status=$?
30779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780 (exit $ac_status); }; }; then
30781 eval "$as_ac_var=yes"
30782else
30783 echo "$as_me: failed program was:" >&5
30784sed 's/^/| /' conftest.$ac_ext >&5
30785
30786eval "$as_ac_var=no"
30787fi
ac1cb8d3
VS
30788rm -f conftest.err conftest.$ac_objext \
30789 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30790fi
30791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30792echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30793if test `eval echo '${'$as_ac_var'}'` = yes; then
30794 cat >>confdefs.h <<_ACEOF
30795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30796_ACEOF
30797
30798fi
30799done
30800
30801else
30802 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30803echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30804fi
30805
30806
30807
30808ac_ext=cc
30809ac_cpp='$CXXCPP $CPPFLAGS'
30810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30813
30814
30815
30816for ac_func in vsnprintf
30817do
30818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30819echo "$as_me:$LINENO: checking for $ac_func" >&5
30820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30821if eval "test \"\${$as_ac_var+set}\" = set"; then
30822 echo $ECHO_N "(cached) $ECHO_C" >&6
30823else
30824 cat >conftest.$ac_ext <<_ACEOF
30825/* confdefs.h. */
30826_ACEOF
30827cat confdefs.h >>conftest.$ac_ext
30828cat >>conftest.$ac_ext <<_ACEOF
30829/* end confdefs.h. */
ac1cb8d3
VS
30830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30832#define $ac_func innocuous_$ac_func
30833
a848cd7e
SC
30834/* System header to define __stub macros and hopefully few prototypes,
30835 which can conflict with char $ac_func (); below.
30836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30837 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30838
a848cd7e
SC
30839#ifdef __STDC__
30840# include <limits.h>
30841#else
30842# include <assert.h>
30843#endif
ac1cb8d3
VS
30844
30845#undef $ac_func
30846
a848cd7e
SC
30847/* Override any gcc2 internal prototype to avoid an error. */
30848#ifdef __cplusplus
30849extern "C"
30850{
30851#endif
30852/* We use char because int might match the return type of a gcc2
30853 builtin and then its argument prototype would still apply. */
30854char $ac_func ();
30855/* The GNU C library defines this for functions which it implements
30856 to always fail with ENOSYS. Some functions are actually named
30857 something starting with __ and the normal name is an alias. */
30858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30859choke me
30860#else
30861char (*f) () = $ac_func;
30862#endif
30863#ifdef __cplusplus
30864}
30865#endif
30866
30867int
30868main ()
30869{
30870return f != $ac_func;
30871 ;
30872 return 0;
30873}
30874_ACEOF
30875rm -f conftest.$ac_objext conftest$ac_exeext
30876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30877 (eval $ac_link) 2>conftest.er1
a848cd7e 30878 ac_status=$?
ac1cb8d3
VS
30879 grep -v '^ *+' conftest.er1 >conftest.err
30880 rm -f conftest.er1
30881 cat conftest.err >&5
a848cd7e
SC
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); } &&
dfe0c803
JS
30884 { ac_try='test -z "$ac_cxx_werror_flag"
30885 || test ! -s conftest.err'
ac1cb8d3
VS
30886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30887 (eval $ac_try) 2>&5
30888 ac_status=$?
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); }; } &&
30891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30893 (eval $ac_try) 2>&5
30894 ac_status=$?
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); }; }; then
30897 eval "$as_ac_var=yes"
30898else
30899 echo "$as_me: failed program was:" >&5
30900sed 's/^/| /' conftest.$ac_ext >&5
30901
30902eval "$as_ac_var=no"
30903fi
ac1cb8d3
VS
30904rm -f conftest.err conftest.$ac_objext \
30905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30906fi
30907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30909if test `eval echo '${'$as_ac_var'}'` = yes; then
30910 cat >>confdefs.h <<_ACEOF
30911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30912_ACEOF
30913
30914fi
30915done
30916
30917
30918if test "$ac_cv_func_vsnprintf" = "yes"; then
30919 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30920echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30921if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30922 echo $ECHO_N "(cached) $ECHO_C" >&6
30923else
30924
30925 cat >conftest.$ac_ext <<_ACEOF
30926/* confdefs.h. */
30927_ACEOF
30928cat confdefs.h >>conftest.$ac_ext
30929cat >>conftest.$ac_ext <<_ACEOF
30930/* end confdefs.h. */
30931
30932 #include <stdio.h>
30933 #include <stdarg.h>
30934
30935int
30936main ()
30937{
30938
30939 char *buf;
30940 va_list ap;
30941 vsnprintf(buf, 10u, "%s", ap);
30942
30943 ;
30944 return 0;
30945}
30946_ACEOF
30947rm -f conftest.$ac_objext
30948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30949 (eval $ac_compile) 2>conftest.er1
a848cd7e 30950 ac_status=$?
ac1cb8d3
VS
30951 grep -v '^ *+' conftest.er1 >conftest.err
30952 rm -f conftest.er1
30953 cat conftest.err >&5
a848cd7e
SC
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); } &&
dfe0c803
JS
30956 { ac_try='test -z "$ac_cxx_werror_flag"
30957 || test ! -s conftest.err'
ac1cb8d3
VS
30958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30959 (eval $ac_try) 2>&5
30960 ac_status=$?
30961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30962 (exit $ac_status); }; } &&
30963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30965 (eval $ac_try) 2>&5
30966 ac_status=$?
30967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968 (exit $ac_status); }; }; then
30969 wx_cv_func_vsnprintf_decl=yes
30970else
30971 echo "$as_me: failed program was:" >&5
30972sed 's/^/| /' conftest.$ac_ext >&5
30973
c122b164
DE
30974
30975 cat >conftest.$ac_ext <<_ACEOF
30976/* confdefs.h. */
30977_ACEOF
30978cat confdefs.h >>conftest.$ac_ext
30979cat >>conftest.$ac_ext <<_ACEOF
30980/* end confdefs.h. */
30981
30982 #include <stdio.h>
30983 #include <stdarg.h>
30984 using namespace std;
30985
30986int
30987main ()
30988{
30989
30990 char *buf;
30991 va_list ap;
30992 vsnprintf(buf, 10u, "%s", ap);
30993
30994 ;
30995 return 0;
30996}
30997_ACEOF
30998rm -f conftest.$ac_objext
30999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31000 (eval $ac_compile) 2>conftest.er1
31001 ac_status=$?
31002 grep -v '^ *+' conftest.er1 >conftest.err
31003 rm -f conftest.er1
31004 cat conftest.err >&5
31005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006 (exit $ac_status); } &&
dfe0c803
JS
31007 { ac_try='test -z "$ac_cxx_werror_flag"
31008 || test ! -s conftest.err'
c122b164
DE
31009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31010 (eval $ac_try) 2>&5
31011 ac_status=$?
31012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013 (exit $ac_status); }; } &&
31014 { ac_try='test -s conftest.$ac_objext'
31015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31016 (eval $ac_try) 2>&5
31017 ac_status=$?
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); }; }; then
31020 wx_cv_func_vsnprintf_decl=yes
31021else
31022 echo "$as_me: failed program was:" >&5
31023sed 's/^/| /' conftest.$ac_ext >&5
31024
a848cd7e
SC
31025wx_cv_func_vsnprintf_decl=no
31026
31027fi
ac1cb8d3 31028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31029
31030
c122b164
DE
31031fi
31032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31033
31034
a848cd7e
SC
31035fi
31036echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31037echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31038
31039 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31040 cat >>confdefs.h <<\_ACEOF
31041#define HAVE_VSNPRINTF_DECL 1
31042_ACEOF
31043
31044 fi
31045fi
31046
31047if test "$wxUSE_UNICODE" = yes; then
31048
31049
31050
fbe47c7b
VS
31051
31052
31053
31054for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31055do
31056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31057echo "$as_me:$LINENO: checking for $ac_func" >&5
31058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31059if eval "test \"\${$as_ac_var+set}\" = set"; then
31060 echo $ECHO_N "(cached) $ECHO_C" >&6
31061else
31062 cat >conftest.$ac_ext <<_ACEOF
31063/* confdefs.h. */
31064_ACEOF
31065cat confdefs.h >>conftest.$ac_ext
31066cat >>conftest.$ac_ext <<_ACEOF
31067/* end confdefs.h. */
ac1cb8d3
VS
31068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31070#define $ac_func innocuous_$ac_func
31071
a848cd7e
SC
31072/* System header to define __stub macros and hopefully few prototypes,
31073 which can conflict with char $ac_func (); below.
31074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31075 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31076
a848cd7e
SC
31077#ifdef __STDC__
31078# include <limits.h>
31079#else
31080# include <assert.h>
31081#endif
ac1cb8d3
VS
31082
31083#undef $ac_func
31084
a848cd7e
SC
31085/* Override any gcc2 internal prototype to avoid an error. */
31086#ifdef __cplusplus
31087extern "C"
31088{
31089#endif
31090/* We use char because int might match the return type of a gcc2
31091 builtin and then its argument prototype would still apply. */
31092char $ac_func ();
31093/* The GNU C library defines this for functions which it implements
31094 to always fail with ENOSYS. Some functions are actually named
31095 something starting with __ and the normal name is an alias. */
31096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31097choke me
31098#else
31099char (*f) () = $ac_func;
31100#endif
31101#ifdef __cplusplus
31102}
31103#endif
31104
31105int
31106main ()
31107{
31108return f != $ac_func;
31109 ;
31110 return 0;
31111}
31112_ACEOF
31113rm -f conftest.$ac_objext conftest$ac_exeext
31114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31115 (eval $ac_link) 2>conftest.er1
a848cd7e 31116 ac_status=$?
ac1cb8d3
VS
31117 grep -v '^ *+' conftest.er1 >conftest.err
31118 rm -f conftest.er1
31119 cat conftest.err >&5
a848cd7e
SC
31120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); } &&
dfe0c803
JS
31122 { ac_try='test -z "$ac_cxx_werror_flag"
31123 || test ! -s conftest.err'
ac1cb8d3
VS
31124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31125 (eval $ac_try) 2>&5
31126 ac_status=$?
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128 (exit $ac_status); }; } &&
31129 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31131 (eval $ac_try) 2>&5
31132 ac_status=$?
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); }; }; then
31135 eval "$as_ac_var=yes"
31136else
31137 echo "$as_me: failed program was:" >&5
31138sed 's/^/| /' conftest.$ac_ext >&5
31139
31140eval "$as_ac_var=no"
31141fi
ac1cb8d3
VS
31142rm -f conftest.err conftest.$ac_objext \
31143 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31144fi
31145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31146echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31147if test `eval echo '${'$as_ac_var'}'` = yes; then
31148 cat >>confdefs.h <<_ACEOF
31149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31150_ACEOF
31151
31152fi
31153done
31154
31155
31156 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31157echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31158 cat >conftest.$ac_ext <<_ACEOF
31159/* confdefs.h. */
31160_ACEOF
31161cat confdefs.h >>conftest.$ac_ext
31162cat >>conftest.$ac_ext <<_ACEOF
31163/* end confdefs.h. */
31164#include <wchar.h>
31165int
31166main ()
31167{
31168&_vsnwprintf;
31169 ;
31170 return 0;
31171}
31172_ACEOF
31173rm -f conftest.$ac_objext
31174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31175 (eval $ac_compile) 2>conftest.er1
a848cd7e 31176 ac_status=$?
ac1cb8d3
VS
31177 grep -v '^ *+' conftest.er1 >conftest.err
31178 rm -f conftest.er1
31179 cat conftest.err >&5
a848cd7e
SC
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); } &&
dfe0c803
JS
31182 { ac_try='test -z "$ac_cxx_werror_flag"
31183 || test ! -s conftest.err'
ac1cb8d3
VS
31184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31185 (eval $ac_try) 2>&5
31186 ac_status=$?
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); }; } &&
31189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31191 (eval $ac_try) 2>&5
31192 ac_status=$?
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); }; }; then
31195 echo "$as_me:$LINENO: result: yes" >&5
31196echo "${ECHO_T}yes" >&6
31197 cat >>confdefs.h <<\_ACEOF
31198#define HAVE__VSNWPRINTF 1
31199_ACEOF
31200
31201else
31202 echo "$as_me: failed program was:" >&5
31203sed 's/^/| /' conftest.$ac_ext >&5
31204
31205echo "$as_me:$LINENO: result: no" >&5
31206echo "${ECHO_T}no" >&6
31207fi
ac1cb8d3 31208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31209fi
31210
31211ac_ext=c
31212ac_cpp='$CPP $CPPFLAGS'
31213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31215ac_compiler_gnu=$ac_cv_c_compiler_gnu
31216
31217
31218
31219
31220if test "$TOOLKIT" != "MSW"; then
31221
31222
31223
31224
31225ac_ext=cc
31226ac_cpp='$CXXCPP $CPPFLAGS'
31227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31230
31231
31232
31233
31234# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31235if test "${with_libiconv_prefix+set}" = set; then
31236 withval="$with_libiconv_prefix"
31237
31238 for dir in `echo "$withval" | tr : ' '`; do
31239 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31240 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31241 done
31242
31243fi;
31244
31245 echo "$as_me:$LINENO: checking for iconv" >&5
31246echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31247if test "${am_cv_func_iconv+set}" = set; then
31248 echo $ECHO_N "(cached) $ECHO_C" >&6
31249else
31250
31251 am_cv_func_iconv="no, consider installing GNU libiconv"
31252 am_cv_lib_iconv=no
31253 cat >conftest.$ac_ext <<_ACEOF
31254/* confdefs.h. */
31255_ACEOF
31256cat confdefs.h >>conftest.$ac_ext
31257cat >>conftest.$ac_ext <<_ACEOF
31258/* end confdefs.h. */
31259#include <stdlib.h>
31260#include <iconv.h>
31261int
31262main ()
31263{
31264iconv_t cd = iconv_open("","");
31265 iconv(cd,NULL,NULL,NULL,NULL);
31266 iconv_close(cd);
31267 ;
31268 return 0;
31269}
31270_ACEOF
31271rm -f conftest.$ac_objext conftest$ac_exeext
31272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31273 (eval $ac_link) 2>conftest.er1
a848cd7e 31274 ac_status=$?
ac1cb8d3
VS
31275 grep -v '^ *+' conftest.er1 >conftest.err
31276 rm -f conftest.er1
31277 cat conftest.err >&5
a848cd7e
SC
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); } &&
dfe0c803
JS
31280 { ac_try='test -z "$ac_cxx_werror_flag"
31281 || test ! -s conftest.err'
ac1cb8d3
VS
31282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31283 (eval $ac_try) 2>&5
31284 ac_status=$?
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); }; } &&
31287 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31289 (eval $ac_try) 2>&5
31290 ac_status=$?
31291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31292 (exit $ac_status); }; }; then
31293 am_cv_func_iconv=yes
31294else
31295 echo "$as_me: failed program was:" >&5
31296sed 's/^/| /' conftest.$ac_ext >&5
31297
31298fi
ac1cb8d3
VS
31299rm -f conftest.err conftest.$ac_objext \
31300 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31301 if test "$am_cv_func_iconv" != yes; then
31302 am_save_LIBS="$LIBS"
31303 LIBS="$LIBS -liconv"
31304 cat >conftest.$ac_ext <<_ACEOF
31305/* confdefs.h. */
31306_ACEOF
31307cat confdefs.h >>conftest.$ac_ext
31308cat >>conftest.$ac_ext <<_ACEOF
31309/* end confdefs.h. */
31310#include <stdlib.h>
31311#include <iconv.h>
31312int
31313main ()
31314{
31315iconv_t cd = iconv_open("","");
31316 iconv(cd,NULL,NULL,NULL,NULL);
31317 iconv_close(cd);
31318 ;
31319 return 0;
31320}
31321_ACEOF
31322rm -f conftest.$ac_objext conftest$ac_exeext
31323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31324 (eval $ac_link) 2>conftest.er1
a848cd7e 31325 ac_status=$?
ac1cb8d3
VS
31326 grep -v '^ *+' conftest.er1 >conftest.err
31327 rm -f conftest.er1
31328 cat conftest.err >&5
a848cd7e
SC
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); } &&
dfe0c803
JS
31331 { ac_try='test -z "$ac_cxx_werror_flag"
31332 || test ! -s conftest.err'
ac1cb8d3
VS
31333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31334 (eval $ac_try) 2>&5
31335 ac_status=$?
31336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337 (exit $ac_status); }; } &&
31338 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340 (eval $ac_try) 2>&5
31341 ac_status=$?
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; }; then
31344 am_cv_lib_iconv=yes
31345 am_cv_func_iconv=yes
31346else
31347 echo "$as_me: failed program was:" >&5
31348sed 's/^/| /' conftest.$ac_ext >&5
31349
31350fi
ac1cb8d3
VS
31351rm -f conftest.err conftest.$ac_objext \
31352 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31353 LIBS="$am_save_LIBS"
31354 fi
31355
31356fi
31357echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31358echo "${ECHO_T}$am_cv_func_iconv" >&6
31359 if test "$am_cv_func_iconv" = yes; then
31360
31361cat >>confdefs.h <<\_ACEOF
31362#define HAVE_ICONV 1
31363_ACEOF
31364
31365 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31366echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31367if test "${wx_cv_func_iconv_const+set}" = set; then
31368 echo $ECHO_N "(cached) $ECHO_C" >&6
31369else
31370 cat >conftest.$ac_ext <<_ACEOF
31371/* confdefs.h. */
31372_ACEOF
31373cat confdefs.h >>conftest.$ac_ext
31374cat >>conftest.$ac_ext <<_ACEOF
31375/* end confdefs.h. */
31376
31377#include <stdlib.h>
31378#include <iconv.h>
31379extern
31380#ifdef __cplusplus
31381"C"
31382#endif
31383#if defined(__STDC__) || defined(__cplusplus)
31384size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31385#else
31386size_t iconv();
31387#endif
31388
31389int
31390main ()
31391{
31392
31393 ;
31394 return 0;
31395}
31396_ACEOF
31397rm -f conftest.$ac_objext
31398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31399 (eval $ac_compile) 2>conftest.er1
a848cd7e 31400 ac_status=$?
ac1cb8d3
VS
31401 grep -v '^ *+' conftest.er1 >conftest.err
31402 rm -f conftest.er1
31403 cat conftest.err >&5
a848cd7e
SC
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); } &&
dfe0c803
JS
31406 { ac_try='test -z "$ac_cxx_werror_flag"
31407 || test ! -s conftest.err'
ac1cb8d3
VS
31408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31409 (eval $ac_try) 2>&5
31410 ac_status=$?
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); }; } &&
31413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31415 (eval $ac_try) 2>&5
31416 ac_status=$?
31417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418 (exit $ac_status); }; }; then
31419 wx_cv_func_iconv_const="no"
31420else
31421 echo "$as_me: failed program was:" >&5
31422sed 's/^/| /' conftest.$ac_ext >&5
31423
31424wx_cv_func_iconv_const="yes"
31425
31426fi
ac1cb8d3 31427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31428
31429fi
31430echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31431echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31432
31433 iconv_const=
31434 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31435 iconv_const="const"
31436 fi
31437
31438
31439cat >>confdefs.h <<_ACEOF
31440#define ICONV_CONST $iconv_const
31441_ACEOF
31442
31443 fi
31444 LIBICONV=
31445 if test "$am_cv_lib_iconv" = yes; then
31446 LIBICONV="-liconv"
31447 fi
31448
31449
31450LIBS="$LIBICONV $LIBS"
31451ac_ext=c
31452ac_cpp='$CPP $CPPFLAGS'
31453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31455ac_compiler_gnu=$ac_cv_c_compiler_gnu
31456
31457
31458if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31459
31460for ac_func in sigaction
31461do
31462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31463echo "$as_me:$LINENO: checking for $ac_func" >&5
31464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31465if eval "test \"\${$as_ac_var+set}\" = set"; then
31466 echo $ECHO_N "(cached) $ECHO_C" >&6
31467else
31468 cat >conftest.$ac_ext <<_ACEOF
31469/* confdefs.h. */
31470_ACEOF
31471cat confdefs.h >>conftest.$ac_ext
31472cat >>conftest.$ac_ext <<_ACEOF
31473/* end confdefs.h. */
ac1cb8d3
VS
31474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31476#define $ac_func innocuous_$ac_func
31477
a848cd7e
SC
31478/* System header to define __stub macros and hopefully few prototypes,
31479 which can conflict with char $ac_func (); below.
31480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31481 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31482
a848cd7e
SC
31483#ifdef __STDC__
31484# include <limits.h>
31485#else
31486# include <assert.h>
31487#endif
ac1cb8d3
VS
31488
31489#undef $ac_func
31490
a848cd7e
SC
31491/* Override any gcc2 internal prototype to avoid an error. */
31492#ifdef __cplusplus
31493extern "C"
31494{
31495#endif
31496/* We use char because int might match the return type of a gcc2
31497 builtin and then its argument prototype would still apply. */
31498char $ac_func ();
31499/* The GNU C library defines this for functions which it implements
31500 to always fail with ENOSYS. Some functions are actually named
31501 something starting with __ and the normal name is an alias. */
31502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31503choke me
31504#else
31505char (*f) () = $ac_func;
31506#endif
31507#ifdef __cplusplus
31508}
31509#endif
31510
31511int
31512main ()
31513{
31514return f != $ac_func;
31515 ;
31516 return 0;
31517}
31518_ACEOF
31519rm -f conftest.$ac_objext conftest$ac_exeext
31520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31521 (eval $ac_link) 2>conftest.er1
a848cd7e 31522 ac_status=$?
ac1cb8d3
VS
31523 grep -v '^ *+' conftest.er1 >conftest.err
31524 rm -f conftest.er1
31525 cat conftest.err >&5
a848cd7e
SC
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); } &&
dfe0c803
JS
31528 { ac_try='test -z "$ac_c_werror_flag"
31529 || test ! -s conftest.err'
ac1cb8d3
VS
31530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31531 (eval $ac_try) 2>&5
31532 ac_status=$?
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31537 (eval $ac_try) 2>&5
31538 ac_status=$?
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; }; then
31541 eval "$as_ac_var=yes"
31542else
31543 echo "$as_me: failed program was:" >&5
31544sed 's/^/| /' conftest.$ac_ext >&5
31545
31546eval "$as_ac_var=no"
31547fi
ac1cb8d3
VS
31548rm -f conftest.err conftest.$ac_objext \
31549 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31550fi
31551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31552echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31553if test `eval echo '${'$as_ac_var'}'` = yes; then
31554 cat >>confdefs.h <<_ACEOF
31555#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31556_ACEOF
31557
31558fi
31559done
31560
31561
31562 if test "$ac_cv_func_sigaction" = "no"; then
31563 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31564echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31565 wxUSE_ON_FATAL_EXCEPTION=no
31566 fi
31567
31568 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31569
31570
31571 ac_ext=cc
31572ac_cpp='$CXXCPP $CPPFLAGS'
31573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31576
31577
31578 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31579echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31580if test "${wx_cv_type_sa_handler+set}" = set; then
31581 echo $ECHO_N "(cached) $ECHO_C" >&6
31582else
31583
31584 cat >conftest.$ac_ext <<_ACEOF
31585/* confdefs.h. */
31586_ACEOF
31587cat confdefs.h >>conftest.$ac_ext
31588cat >>conftest.$ac_ext <<_ACEOF
31589/* end confdefs.h. */
31590#include <signal.h>
31591int
31592main ()
31593{
31594
31595 extern void testSigHandler(int);
31596
31597 struct sigaction sa;
31598 sa.sa_handler = testSigHandler;
31599
31600 ;
31601 return 0;
31602}
31603_ACEOF
31604rm -f conftest.$ac_objext
31605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31606 (eval $ac_compile) 2>conftest.er1
a848cd7e 31607 ac_status=$?
ac1cb8d3
VS
31608 grep -v '^ *+' conftest.er1 >conftest.err
31609 rm -f conftest.er1
31610 cat conftest.err >&5
a848cd7e
SC
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); } &&
dfe0c803
JS
31613 { ac_try='test -z "$ac_cxx_werror_flag"
31614 || test ! -s conftest.err'
ac1cb8d3
VS
31615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31616 (eval $ac_try) 2>&5
31617 ac_status=$?
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); }; } &&
31620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31622 (eval $ac_try) 2>&5
31623 ac_status=$?
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); }; }; then
31626
31627 wx_cv_type_sa_handler=int
31628
31629else
31630 echo "$as_me: failed program was:" >&5
31631sed 's/^/| /' conftest.$ac_ext >&5
31632
31633
31634 wx_cv_type_sa_handler=void
31635
31636fi
ac1cb8d3 31637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31638
31639fi
31640echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31641echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31642
31643 ac_ext=c
31644ac_cpp='$CPP $CPPFLAGS'
31645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31647ac_compiler_gnu=$ac_cv_c_compiler_gnu
31648
31649
31650 cat >>confdefs.h <<_ACEOF
31651#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31652_ACEOF
31653
31654 fi
31655fi
31656
eaff0f0d
VZ
31657if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31658
31659
31660 ac_ext=cc
31661ac_cpp='$CXXCPP $CPPFLAGS'
31662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31665
31666
31667 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31668echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31669if test "${wx_cv_func_backtrace+set}" = set; then
31670 echo $ECHO_N "(cached) $ECHO_C" >&6
31671else
31672
31673 cat >conftest.$ac_ext <<_ACEOF
31674/* confdefs.h. */
31675_ACEOF
31676cat confdefs.h >>conftest.$ac_ext
31677cat >>conftest.$ac_ext <<_ACEOF
31678/* end confdefs.h. */
31679#include <execinfo.h>
31680int
31681main ()
31682{
31683
31684 void *trace[1];
31685 char **messages;
31686
31687 backtrace(trace, 1);
31688 messages = backtrace_symbols(trace, 1);
31689
31690 ;
31691 return 0;
31692}
31693_ACEOF
31694rm -f conftest.$ac_objext
31695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31696 (eval $ac_compile) 2>conftest.er1
31697 ac_status=$?
31698 grep -v '^ *+' conftest.er1 >conftest.err
31699 rm -f conftest.er1
31700 cat conftest.err >&5
31701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 (exit $ac_status); } &&
dfe0c803
JS
31703 { ac_try='test -z "$ac_cxx_werror_flag"
31704 || test ! -s conftest.err'
eaff0f0d
VZ
31705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31706 (eval $ac_try) 2>&5
31707 ac_status=$?
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); }; } &&
31710 { ac_try='test -s conftest.$ac_objext'
31711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31712 (eval $ac_try) 2>&5
31713 ac_status=$?
31714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); }; }; then
31716 wx_cv_func_backtrace=yes
31717else
31718 echo "$as_me: failed program was:" >&5
31719sed 's/^/| /' conftest.$ac_ext >&5
31720
31721wx_cv_func_backtrace=no
31722
31723fi
31724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31725
31726
31727fi
31728echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31729echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31730
31731
31732 if test "$wx_cv_func_backtrace" = "no"; then
31733 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31734echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31735 wxUSE_STACKWALKER=no
31736 else
31737 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31738echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31739if test "${wx_cv_func_cxa_demangle+set}" = set; then
31740 echo $ECHO_N "(cached) $ECHO_C" >&6
31741else
31742
31743 cat >conftest.$ac_ext <<_ACEOF
31744/* confdefs.h. */
31745_ACEOF
31746cat confdefs.h >>conftest.$ac_ext
31747cat >>conftest.$ac_ext <<_ACEOF
31748/* end confdefs.h. */
31749#include <cxxabi.h>
31750int
31751main ()
31752{
31753
31754 int rc;
31755 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31756
31757 ;
31758 return 0;
31759}
31760_ACEOF
dfe0c803
JS
31761rm -f conftest.$ac_objext conftest$ac_exeext
31762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31763 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
31764 ac_status=$?
31765 grep -v '^ *+' conftest.er1 >conftest.err
31766 rm -f conftest.er1
31767 cat conftest.err >&5
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); } &&
dfe0c803
JS
31770 { ac_try='test -z "$ac_cxx_werror_flag"
31771 || test ! -s conftest.err'
eaff0f0d
VZ
31772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31773 (eval $ac_try) 2>&5
31774 ac_status=$?
31775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776 (exit $ac_status); }; } &&
dfe0c803 31777 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
31778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31779 (eval $ac_try) 2>&5
31780 ac_status=$?
31781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); }; }; then
31783 wx_cv_func_cxa_demangle=yes
31784else
31785 echo "$as_me: failed program was:" >&5
31786sed 's/^/| /' conftest.$ac_ext >&5
31787
31788wx_cv_func_cxa_demangle=no
31789
31790fi
dfe0c803
JS
31791rm -f conftest.err conftest.$ac_objext \
31792 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
31793
31794
31795fi
31796echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31797echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31798
31799 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31800 cat >>confdefs.h <<\_ACEOF
31801#define HAVE_CXA_DEMANGLE 1
31802_ACEOF
31803
31804 fi
31805 fi
31806
31807 ac_ext=c
31808ac_cpp='$CPP $CPPFLAGS'
31809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31811ac_compiler_gnu=$ac_cv_c_compiler_gnu
31812
31813fi
31814
898beab1
DE
31815if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
31816 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
31817echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
31818 wxUSE_STACKWALKER=no
31819fi
31820
31821
a848cd7e
SC
31822
31823
31824for ac_func in mkstemp mktemp
31825do
31826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31827echo "$as_me:$LINENO: checking for $ac_func" >&5
31828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31829if eval "test \"\${$as_ac_var+set}\" = set"; then
31830 echo $ECHO_N "(cached) $ECHO_C" >&6
31831else
31832 cat >conftest.$ac_ext <<_ACEOF
31833/* confdefs.h. */
31834_ACEOF
31835cat confdefs.h >>conftest.$ac_ext
31836cat >>conftest.$ac_ext <<_ACEOF
31837/* end confdefs.h. */
ac1cb8d3
VS
31838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31840#define $ac_func innocuous_$ac_func
31841
a848cd7e
SC
31842/* System header to define __stub macros and hopefully few prototypes,
31843 which can conflict with char $ac_func (); below.
31844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31845 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31846
a848cd7e
SC
31847#ifdef __STDC__
31848# include <limits.h>
31849#else
31850# include <assert.h>
31851#endif
ac1cb8d3
VS
31852
31853#undef $ac_func
31854
a848cd7e
SC
31855/* Override any gcc2 internal prototype to avoid an error. */
31856#ifdef __cplusplus
31857extern "C"
31858{
31859#endif
31860/* We use char because int might match the return type of a gcc2
31861 builtin and then its argument prototype would still apply. */
31862char $ac_func ();
31863/* The GNU C library defines this for functions which it implements
31864 to always fail with ENOSYS. Some functions are actually named
31865 something starting with __ and the normal name is an alias. */
31866#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31867choke me
31868#else
31869char (*f) () = $ac_func;
31870#endif
31871#ifdef __cplusplus
31872}
31873#endif
31874
31875int
31876main ()
31877{
31878return f != $ac_func;
31879 ;
31880 return 0;
31881}
31882_ACEOF
31883rm -f conftest.$ac_objext conftest$ac_exeext
31884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31885 (eval $ac_link) 2>conftest.er1
a848cd7e 31886 ac_status=$?
ac1cb8d3
VS
31887 grep -v '^ *+' conftest.er1 >conftest.err
31888 rm -f conftest.er1
31889 cat conftest.err >&5
a848cd7e
SC
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); } &&
dfe0c803
JS
31892 { ac_try='test -z "$ac_c_werror_flag"
31893 || test ! -s conftest.err'
ac1cb8d3
VS
31894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31895 (eval $ac_try) 2>&5
31896 ac_status=$?
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); }; } &&
31899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31901 (eval $ac_try) 2>&5
31902 ac_status=$?
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); }; }; then
31905 eval "$as_ac_var=yes"
31906else
31907 echo "$as_me: failed program was:" >&5
31908sed 's/^/| /' conftest.$ac_ext >&5
31909
31910eval "$as_ac_var=no"
31911fi
ac1cb8d3
VS
31912rm -f conftest.err conftest.$ac_objext \
31913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31914fi
31915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31917if test `eval echo '${'$as_ac_var'}'` = yes; then
31918 cat >>confdefs.h <<_ACEOF
31919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31920_ACEOF
31921 break
31922fi
31923done
31924
31925
31926echo "$as_me:$LINENO: checking for statfs" >&5
31927echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31928if test "${wx_cv_func_statfs+set}" = set; then
31929 echo $ECHO_N "(cached) $ECHO_C" >&6
31930else
31931 cat >conftest.$ac_ext <<_ACEOF
31932/* confdefs.h. */
31933_ACEOF
31934cat confdefs.h >>conftest.$ac_ext
31935cat >>conftest.$ac_ext <<_ACEOF
31936/* end confdefs.h. */
31937
31938 #if defined(__BSD__)
31939 #include <sys/param.h>
31940 #include <sys/mount.h>
31941 #else
31942 #include <sys/vfs.h>
31943 #endif
31944
31945int
31946main ()
31947{
31948
31949 long l;
31950 struct statfs fs;
31951 statfs("/", &fs);
31952 l = fs.f_bsize;
31953 l += fs.f_blocks;
31954 l += fs.f_bavail;
31955
31956 ;
31957 return 0;
31958}
31959_ACEOF
31960rm -f conftest.$ac_objext
31961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31962 (eval $ac_compile) 2>conftest.er1
a848cd7e 31963 ac_status=$?
ac1cb8d3
VS
31964 grep -v '^ *+' conftest.er1 >conftest.err
31965 rm -f conftest.er1
31966 cat conftest.err >&5
a848cd7e
SC
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); } &&
dfe0c803
JS
31969 { ac_try='test -z "$ac_c_werror_flag"
31970 || test ! -s conftest.err'
ac1cb8d3
VS
31971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31972 (eval $ac_try) 2>&5
31973 ac_status=$?
31974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975 (exit $ac_status); }; } &&
31976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31978 (eval $ac_try) 2>&5
31979 ac_status=$?
31980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981 (exit $ac_status); }; }; then
31982
31983 wx_cv_func_statfs=yes
31984
31985else
31986 echo "$as_me: failed program was:" >&5
31987sed 's/^/| /' conftest.$ac_ext >&5
31988
31989
31990 wx_cv_func_statfs=no
31991
31992
31993fi
ac1cb8d3 31994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31995
31996fi
31997echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31998echo "${ECHO_T}$wx_cv_func_statfs" >&6
31999
32000if test "$wx_cv_func_statfs" = "yes"; then
32001 wx_cv_type_statvfs_t="struct statfs"
32002 cat >>confdefs.h <<\_ACEOF
32003#define HAVE_STATFS 1
32004_ACEOF
32005
32006else
32007 echo "$as_me:$LINENO: checking for statvfs" >&5
32008echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32009if test "${wx_cv_func_statvfs+set}" = set; then
32010 echo $ECHO_N "(cached) $ECHO_C" >&6
32011else
32012 cat >conftest.$ac_ext <<_ACEOF
32013/* confdefs.h. */
32014_ACEOF
32015cat confdefs.h >>conftest.$ac_ext
32016cat >>conftest.$ac_ext <<_ACEOF
32017/* end confdefs.h. */
32018
32019 #include <stddef.h>
32020 #include <sys/statvfs.h>
32021
32022int
32023main ()
32024{
32025
32026 statvfs("/", NULL);
32027
32028 ;
32029 return 0;
32030}
32031_ACEOF
32032rm -f conftest.$ac_objext
32033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32034 (eval $ac_compile) 2>conftest.er1
a848cd7e 32035 ac_status=$?
ac1cb8d3
VS
32036 grep -v '^ *+' conftest.er1 >conftest.err
32037 rm -f conftest.er1
32038 cat conftest.err >&5
a848cd7e
SC
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); } &&
dfe0c803
JS
32041 { ac_try='test -z "$ac_c_werror_flag"
32042 || test ! -s conftest.err'
ac1cb8d3
VS
32043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32044 (eval $ac_try) 2>&5
32045 ac_status=$?
32046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047 (exit $ac_status); }; } &&
32048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32050 (eval $ac_try) 2>&5
32051 ac_status=$?
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; }; then
32054 wx_cv_func_statvfs=yes
32055else
32056 echo "$as_me: failed program was:" >&5
32057sed 's/^/| /' conftest.$ac_ext >&5
32058
32059wx_cv_func_statvfs=no
32060
32061fi
ac1cb8d3 32062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32063
32064fi
32065echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32066echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32067
32068 if test "$wx_cv_func_statvfs" = "yes"; then
32069
32070
32071 ac_ext=cc
32072ac_cpp='$CXXCPP $CPPFLAGS'
32073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32076
32077
32078 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32079echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32080if test "${wx_cv_type_statvfs_t+set}" = set; then
32081 echo $ECHO_N "(cached) $ECHO_C" >&6
32082else
32083 cat >conftest.$ac_ext <<_ACEOF
32084/* confdefs.h. */
32085_ACEOF
32086cat confdefs.h >>conftest.$ac_ext
32087cat >>conftest.$ac_ext <<_ACEOF
32088/* end confdefs.h. */
32089
32090 #include <sys/statvfs.h>
32091
32092int
32093main ()
32094{
32095
32096 long l;
32097 statvfs_t fs;
32098 statvfs("/", &fs);
32099 l = fs.f_bsize;
32100 l += fs.f_blocks;
32101 l += fs.f_bavail;
32102
32103 ;
32104 return 0;
32105}
32106_ACEOF
32107rm -f conftest.$ac_objext
32108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32109 (eval $ac_compile) 2>conftest.er1
a848cd7e 32110 ac_status=$?
ac1cb8d3
VS
32111 grep -v '^ *+' conftest.er1 >conftest.err
32112 rm -f conftest.er1
32113 cat conftest.err >&5
a848cd7e
SC
32114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115 (exit $ac_status); } &&
dfe0c803
JS
32116 { ac_try='test -z "$ac_cxx_werror_flag"
32117 || test ! -s conftest.err'
ac1cb8d3
VS
32118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32119 (eval $ac_try) 2>&5
32120 ac_status=$?
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); }; } &&
32123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32125 (eval $ac_try) 2>&5
32126 ac_status=$?
32127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128 (exit $ac_status); }; }; then
32129 wx_cv_type_statvfs_t=statvfs_t
32130else
32131 echo "$as_me: failed program was:" >&5
32132sed 's/^/| /' conftest.$ac_ext >&5
32133
32134
32135 cat >conftest.$ac_ext <<_ACEOF
32136/* confdefs.h. */
32137_ACEOF
32138cat confdefs.h >>conftest.$ac_ext
32139cat >>conftest.$ac_ext <<_ACEOF
32140/* end confdefs.h. */
32141
32142 #include <sys/statvfs.h>
32143
32144int
32145main ()
32146{
32147
32148 long l;
32149 struct statvfs fs;
32150 statvfs("/", &fs);
32151 l = fs.f_bsize;
32152 l += fs.f_blocks;
32153 l += fs.f_bavail;
32154
32155 ;
32156 return 0;
32157}
32158_ACEOF
32159rm -f conftest.$ac_objext
32160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32161 (eval $ac_compile) 2>conftest.er1
a848cd7e 32162 ac_status=$?
ac1cb8d3
VS
32163 grep -v '^ *+' conftest.er1 >conftest.err
32164 rm -f conftest.er1
32165 cat conftest.err >&5
a848cd7e
SC
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); } &&
dfe0c803
JS
32168 { ac_try='test -z "$ac_cxx_werror_flag"
32169 || test ! -s conftest.err'
ac1cb8d3
VS
32170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32171 (eval $ac_try) 2>&5
32172 ac_status=$?
32173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174 (exit $ac_status); }; } &&
32175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32177 (eval $ac_try) 2>&5
32178 ac_status=$?
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); }; }; then
32181 wx_cv_type_statvfs_t="struct statvfs"
32182else
32183 echo "$as_me: failed program was:" >&5
32184sed 's/^/| /' conftest.$ac_ext >&5
32185
32186wx_cv_type_statvfs_t="unknown"
32187
32188fi
ac1cb8d3 32189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32190
32191
32192fi
ac1cb8d3 32193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32194
32195fi
32196echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32197echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32198
32199 ac_ext=c
32200ac_cpp='$CPP $CPPFLAGS'
32201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32203ac_compiler_gnu=$ac_cv_c_compiler_gnu
32204
32205
32206 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32207 cat >>confdefs.h <<\_ACEOF
32208#define HAVE_STATVFS 1
32209_ACEOF
32210
32211 fi
32212 else
32213 wx_cv_type_statvfs_t="unknown"
32214 fi
32215fi
32216
32217if test "$wx_cv_type_statvfs_t" != "unknown"; then
32218 cat >>confdefs.h <<_ACEOF
32219#define WX_STATFS_T $wx_cv_type_statvfs_t
32220_ACEOF
32221
32222else
32223 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32224echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32225fi
32226
32227if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32228
32229
32230for ac_func in fcntl flock
32231do
32232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32233echo "$as_me:$LINENO: checking for $ac_func" >&5
32234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32235if eval "test \"\${$as_ac_var+set}\" = set"; then
32236 echo $ECHO_N "(cached) $ECHO_C" >&6
32237else
32238 cat >conftest.$ac_ext <<_ACEOF
32239/* confdefs.h. */
32240_ACEOF
32241cat confdefs.h >>conftest.$ac_ext
32242cat >>conftest.$ac_ext <<_ACEOF
32243/* end confdefs.h. */
ac1cb8d3
VS
32244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32246#define $ac_func innocuous_$ac_func
32247
a848cd7e
SC
32248/* System header to define __stub macros and hopefully few prototypes,
32249 which can conflict with char $ac_func (); below.
32250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32251 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32252
a848cd7e
SC
32253#ifdef __STDC__
32254# include <limits.h>
32255#else
32256# include <assert.h>
32257#endif
ac1cb8d3
VS
32258
32259#undef $ac_func
32260
a848cd7e
SC
32261/* Override any gcc2 internal prototype to avoid an error. */
32262#ifdef __cplusplus
32263extern "C"
32264{
32265#endif
32266/* We use char because int might match the return type of a gcc2
32267 builtin and then its argument prototype would still apply. */
32268char $ac_func ();
32269/* The GNU C library defines this for functions which it implements
32270 to always fail with ENOSYS. Some functions are actually named
32271 something starting with __ and the normal name is an alias. */
32272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32273choke me
32274#else
32275char (*f) () = $ac_func;
32276#endif
32277#ifdef __cplusplus
32278}
32279#endif
32280
32281int
32282main ()
32283{
32284return f != $ac_func;
32285 ;
32286 return 0;
32287}
32288_ACEOF
32289rm -f conftest.$ac_objext conftest$ac_exeext
32290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32291 (eval $ac_link) 2>conftest.er1
a848cd7e 32292 ac_status=$?
ac1cb8d3
VS
32293 grep -v '^ *+' conftest.er1 >conftest.err
32294 rm -f conftest.er1
32295 cat conftest.err >&5
a848cd7e
SC
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); } &&
dfe0c803
JS
32298 { ac_try='test -z "$ac_c_werror_flag"
32299 || test ! -s conftest.err'
ac1cb8d3
VS
32300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32301 (eval $ac_try) 2>&5
32302 ac_status=$?
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; } &&
32305 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32307 (eval $ac_try) 2>&5
32308 ac_status=$?
32309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310 (exit $ac_status); }; }; then
32311 eval "$as_ac_var=yes"
32312else
32313 echo "$as_me: failed program was:" >&5
32314sed 's/^/| /' conftest.$ac_ext >&5
32315
32316eval "$as_ac_var=no"
32317fi
ac1cb8d3
VS
32318rm -f conftest.err conftest.$ac_objext \
32319 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32320fi
32321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32323if test `eval echo '${'$as_ac_var'}'` = yes; then
32324 cat >>confdefs.h <<_ACEOF
32325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32326_ACEOF
32327 break
32328fi
32329done
32330
32331
32332 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32333 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32334echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32335 wxUSE_SNGLINST_CHECKER=no
32336 fi
32337fi
32338
32339
32340for ac_func in timegm
32341do
32342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32343echo "$as_me:$LINENO: checking for $ac_func" >&5
32344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32345if eval "test \"\${$as_ac_var+set}\" = set"; then
32346 echo $ECHO_N "(cached) $ECHO_C" >&6
32347else
32348 cat >conftest.$ac_ext <<_ACEOF
32349/* confdefs.h. */
32350_ACEOF
32351cat confdefs.h >>conftest.$ac_ext
32352cat >>conftest.$ac_ext <<_ACEOF
32353/* end confdefs.h. */
ac1cb8d3
VS
32354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32356#define $ac_func innocuous_$ac_func
32357
a848cd7e
SC
32358/* System header to define __stub macros and hopefully few prototypes,
32359 which can conflict with char $ac_func (); below.
32360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32361 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32362
a848cd7e
SC
32363#ifdef __STDC__
32364# include <limits.h>
32365#else
32366# include <assert.h>
32367#endif
ac1cb8d3
VS
32368
32369#undef $ac_func
32370
a848cd7e
SC
32371/* Override any gcc2 internal prototype to avoid an error. */
32372#ifdef __cplusplus
32373extern "C"
32374{
32375#endif
32376/* We use char because int might match the return type of a gcc2
32377 builtin and then its argument prototype would still apply. */
32378char $ac_func ();
32379/* The GNU C library defines this for functions which it implements
32380 to always fail with ENOSYS. Some functions are actually named
32381 something starting with __ and the normal name is an alias. */
32382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32383choke me
32384#else
32385char (*f) () = $ac_func;
32386#endif
32387#ifdef __cplusplus
32388}
32389#endif
32390
32391int
32392main ()
32393{
32394return f != $ac_func;
32395 ;
32396 return 0;
32397}
32398_ACEOF
32399rm -f conftest.$ac_objext conftest$ac_exeext
32400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32401 (eval $ac_link) 2>conftest.er1
a848cd7e 32402 ac_status=$?
ac1cb8d3
VS
32403 grep -v '^ *+' conftest.er1 >conftest.err
32404 rm -f conftest.er1
32405 cat conftest.err >&5
a848cd7e
SC
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); } &&
dfe0c803
JS
32408 { ac_try='test -z "$ac_c_werror_flag"
32409 || test ! -s conftest.err'
ac1cb8d3
VS
32410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32411 (eval $ac_try) 2>&5
32412 ac_status=$?
32413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); }; } &&
32415 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32417 (eval $ac_try) 2>&5
32418 ac_status=$?
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); }; }; then
32421 eval "$as_ac_var=yes"
32422else
32423 echo "$as_me: failed program was:" >&5
32424sed 's/^/| /' conftest.$ac_ext >&5
32425
32426eval "$as_ac_var=no"
32427fi
ac1cb8d3
VS
32428rm -f conftest.err conftest.$ac_objext \
32429 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32430fi
32431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32432echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32433if test `eval echo '${'$as_ac_var'}'` = yes; then
32434 cat >>confdefs.h <<_ACEOF
32435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32436_ACEOF
32437
32438fi
32439done
32440
32441
32442
32443
32444for ac_func in putenv setenv
32445do
32446as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32447echo "$as_me:$LINENO: checking for $ac_func" >&5
32448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32449if eval "test \"\${$as_ac_var+set}\" = set"; then
32450 echo $ECHO_N "(cached) $ECHO_C" >&6
32451else
32452 cat >conftest.$ac_ext <<_ACEOF
32453/* confdefs.h. */
32454_ACEOF
32455cat confdefs.h >>conftest.$ac_ext
32456cat >>conftest.$ac_ext <<_ACEOF
32457/* end confdefs.h. */
ac1cb8d3
VS
32458/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32460#define $ac_func innocuous_$ac_func
32461
a848cd7e
SC
32462/* System header to define __stub macros and hopefully few prototypes,
32463 which can conflict with char $ac_func (); below.
32464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32465 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32466
a848cd7e
SC
32467#ifdef __STDC__
32468# include <limits.h>
32469#else
32470# include <assert.h>
32471#endif
ac1cb8d3
VS
32472
32473#undef $ac_func
32474
a848cd7e
SC
32475/* Override any gcc2 internal prototype to avoid an error. */
32476#ifdef __cplusplus
32477extern "C"
32478{
32479#endif
32480/* We use char because int might match the return type of a gcc2
32481 builtin and then its argument prototype would still apply. */
32482char $ac_func ();
32483/* The GNU C library defines this for functions which it implements
32484 to always fail with ENOSYS. Some functions are actually named
32485 something starting with __ and the normal name is an alias. */
32486#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32487choke me
32488#else
32489char (*f) () = $ac_func;
32490#endif
32491#ifdef __cplusplus
32492}
32493#endif
32494
32495int
32496main ()
32497{
32498return f != $ac_func;
32499 ;
32500 return 0;
32501}
32502_ACEOF
32503rm -f conftest.$ac_objext conftest$ac_exeext
32504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32505 (eval $ac_link) 2>conftest.er1
a848cd7e 32506 ac_status=$?
ac1cb8d3
VS
32507 grep -v '^ *+' conftest.er1 >conftest.err
32508 rm -f conftest.er1
32509 cat conftest.err >&5
a848cd7e
SC
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); } &&
dfe0c803
JS
32512 { ac_try='test -z "$ac_c_werror_flag"
32513 || test ! -s conftest.err'
ac1cb8d3
VS
32514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32515 (eval $ac_try) 2>&5
32516 ac_status=$?
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); }; } &&
32519 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32521 (eval $ac_try) 2>&5
32522 ac_status=$?
32523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32524 (exit $ac_status); }; }; then
32525 eval "$as_ac_var=yes"
32526else
32527 echo "$as_me: failed program was:" >&5
32528sed 's/^/| /' conftest.$ac_ext >&5
32529
32530eval "$as_ac_var=no"
32531fi
ac1cb8d3
VS
32532rm -f conftest.err conftest.$ac_objext \
32533 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32534fi
32535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32536echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32537if test `eval echo '${'$as_ac_var'}'` = yes; then
32538 cat >>confdefs.h <<_ACEOF
32539#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32540_ACEOF
32541 break
32542fi
32543done
32544
32545
32546HAVE_SOME_SLEEP_FUNC=0
32547if test "$USE_BEOS" = 1; then
32548 cat >>confdefs.h <<\_ACEOF
32549#define HAVE_SLEEP 1
32550_ACEOF
32551
32552 HAVE_SOME_SLEEP_FUNC=1
32553fi
32554
32555if test "$USE_DARWIN" = 1; then
32556 cat >>confdefs.h <<\_ACEOF
32557#define HAVE_USLEEP 1
32558_ACEOF
32559
32560 HAVE_SOME_SLEEP_FUNC=1
32561fi
32562
32563if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32564 POSIX4_LINK=
32565
32566for ac_func in nanosleep
32567do
32568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32569echo "$as_me:$LINENO: checking for $ac_func" >&5
32570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32571if eval "test \"\${$as_ac_var+set}\" = set"; then
32572 echo $ECHO_N "(cached) $ECHO_C" >&6
32573else
32574 cat >conftest.$ac_ext <<_ACEOF
32575/* confdefs.h. */
32576_ACEOF
32577cat confdefs.h >>conftest.$ac_ext
32578cat >>conftest.$ac_ext <<_ACEOF
32579/* end confdefs.h. */
ac1cb8d3
VS
32580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32582#define $ac_func innocuous_$ac_func
32583
a848cd7e
SC
32584/* System header to define __stub macros and hopefully few prototypes,
32585 which can conflict with char $ac_func (); below.
32586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32587 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32588
a848cd7e
SC
32589#ifdef __STDC__
32590# include <limits.h>
32591#else
32592# include <assert.h>
32593#endif
ac1cb8d3
VS
32594
32595#undef $ac_func
32596
a848cd7e
SC
32597/* Override any gcc2 internal prototype to avoid an error. */
32598#ifdef __cplusplus
32599extern "C"
32600{
32601#endif
32602/* We use char because int might match the return type of a gcc2
32603 builtin and then its argument prototype would still apply. */
32604char $ac_func ();
32605/* The GNU C library defines this for functions which it implements
32606 to always fail with ENOSYS. Some functions are actually named
32607 something starting with __ and the normal name is an alias. */
32608#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32609choke me
32610#else
32611char (*f) () = $ac_func;
32612#endif
32613#ifdef __cplusplus
32614}
32615#endif
32616
32617int
32618main ()
32619{
32620return f != $ac_func;
32621 ;
32622 return 0;
32623}
32624_ACEOF
32625rm -f conftest.$ac_objext conftest$ac_exeext
32626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32627 (eval $ac_link) 2>conftest.er1
a848cd7e 32628 ac_status=$?
ac1cb8d3
VS
32629 grep -v '^ *+' conftest.er1 >conftest.err
32630 rm -f conftest.er1
32631 cat conftest.err >&5
a848cd7e
SC
32632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); } &&
dfe0c803
JS
32634 { ac_try='test -z "$ac_c_werror_flag"
32635 || test ! -s conftest.err'
ac1cb8d3
VS
32636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32637 (eval $ac_try) 2>&5
32638 ac_status=$?
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640 (exit $ac_status); }; } &&
32641 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32643 (eval $ac_try) 2>&5
32644 ac_status=$?
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); }; }; then
32647 eval "$as_ac_var=yes"
32648else
32649 echo "$as_me: failed program was:" >&5
32650sed 's/^/| /' conftest.$ac_ext >&5
32651
32652eval "$as_ac_var=no"
32653fi
ac1cb8d3
VS
32654rm -f conftest.err conftest.$ac_objext \
32655 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32656fi
32657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32658echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32659if test `eval echo '${'$as_ac_var'}'` = yes; then
32660 cat >>confdefs.h <<_ACEOF
32661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32662_ACEOF
32663 cat >>confdefs.h <<\_ACEOF
32664#define HAVE_NANOSLEEP 1
32665_ACEOF
32666
32667else
32668
32669 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32670echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32671if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32672 echo $ECHO_N "(cached) $ECHO_C" >&6
32673else
32674 ac_check_lib_save_LIBS=$LIBS
32675LIBS="-lposix4 $LIBS"
32676cat >conftest.$ac_ext <<_ACEOF
32677/* confdefs.h. */
32678_ACEOF
32679cat confdefs.h >>conftest.$ac_ext
32680cat >>conftest.$ac_ext <<_ACEOF
32681/* end confdefs.h. */
32682
32683/* Override any gcc2 internal prototype to avoid an error. */
32684#ifdef __cplusplus
32685extern "C"
32686#endif
32687/* We use char because int might match the return type of a gcc2
32688 builtin and then its argument prototype would still apply. */
32689char nanosleep ();
32690int
32691main ()
32692{
32693nanosleep ();
32694 ;
32695 return 0;
32696}
32697_ACEOF
32698rm -f conftest.$ac_objext conftest$ac_exeext
32699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32700 (eval $ac_link) 2>conftest.er1
a848cd7e 32701 ac_status=$?
ac1cb8d3
VS
32702 grep -v '^ *+' conftest.er1 >conftest.err
32703 rm -f conftest.er1
32704 cat conftest.err >&5
a848cd7e
SC
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); } &&
dfe0c803
JS
32707 { ac_try='test -z "$ac_c_werror_flag"
32708 || test ! -s conftest.err'
ac1cb8d3
VS
32709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32710 (eval $ac_try) 2>&5
32711 ac_status=$?
32712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713 (exit $ac_status); }; } &&
32714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32716 (eval $ac_try) 2>&5
32717 ac_status=$?
32718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); }; }; then
32720 ac_cv_lib_posix4_nanosleep=yes
32721else
32722 echo "$as_me: failed program was:" >&5
32723sed 's/^/| /' conftest.$ac_ext >&5
32724
32725ac_cv_lib_posix4_nanosleep=no
32726fi
ac1cb8d3
VS
32727rm -f conftest.err conftest.$ac_objext \
32728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32729LIBS=$ac_check_lib_save_LIBS
32730fi
32731echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32732echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32733if test $ac_cv_lib_posix4_nanosleep = yes; then
32734
32735 cat >>confdefs.h <<\_ACEOF
32736#define HAVE_NANOSLEEP 1
32737_ACEOF
32738
32739 POSIX4_LINK=" -lposix4"
32740
32741else
32742
32743
32744for ac_func in usleep
32745do
32746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32747echo "$as_me:$LINENO: checking for $ac_func" >&5
32748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32749if eval "test \"\${$as_ac_var+set}\" = set"; then
32750 echo $ECHO_N "(cached) $ECHO_C" >&6
32751else
32752 cat >conftest.$ac_ext <<_ACEOF
32753/* confdefs.h. */
32754_ACEOF
32755cat confdefs.h >>conftest.$ac_ext
32756cat >>conftest.$ac_ext <<_ACEOF
32757/* end confdefs.h. */
ac1cb8d3
VS
32758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32760#define $ac_func innocuous_$ac_func
32761
a848cd7e
SC
32762/* System header to define __stub macros and hopefully few prototypes,
32763 which can conflict with char $ac_func (); below.
32764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32765 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32766
a848cd7e
SC
32767#ifdef __STDC__
32768# include <limits.h>
32769#else
32770# include <assert.h>
32771#endif
ac1cb8d3
VS
32772
32773#undef $ac_func
32774
a848cd7e
SC
32775/* Override any gcc2 internal prototype to avoid an error. */
32776#ifdef __cplusplus
32777extern "C"
32778{
32779#endif
32780/* We use char because int might match the return type of a gcc2
32781 builtin and then its argument prototype would still apply. */
32782char $ac_func ();
32783/* The GNU C library defines this for functions which it implements
32784 to always fail with ENOSYS. Some functions are actually named
32785 something starting with __ and the normal name is an alias. */
32786#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32787choke me
32788#else
32789char (*f) () = $ac_func;
32790#endif
32791#ifdef __cplusplus
32792}
32793#endif
32794
32795int
32796main ()
32797{
32798return f != $ac_func;
32799 ;
32800 return 0;
32801}
32802_ACEOF
32803rm -f conftest.$ac_objext conftest$ac_exeext
32804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32805 (eval $ac_link) 2>conftest.er1
a848cd7e 32806 ac_status=$?
ac1cb8d3
VS
32807 grep -v '^ *+' conftest.er1 >conftest.err
32808 rm -f conftest.er1
32809 cat conftest.err >&5
a848cd7e
SC
32810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811 (exit $ac_status); } &&
dfe0c803
JS
32812 { ac_try='test -z "$ac_c_werror_flag"
32813 || test ! -s conftest.err'
ac1cb8d3
VS
32814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32815 (eval $ac_try) 2>&5
32816 ac_status=$?
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); }; } &&
32819 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32821 (eval $ac_try) 2>&5
32822 ac_status=$?
32823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824 (exit $ac_status); }; }; then
32825 eval "$as_ac_var=yes"
32826else
32827 echo "$as_me: failed program was:" >&5
32828sed 's/^/| /' conftest.$ac_ext >&5
32829
32830eval "$as_ac_var=no"
32831fi
ac1cb8d3
VS
32832rm -f conftest.err conftest.$ac_objext \
32833 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32834fi
32835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32836echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32837if test `eval echo '${'$as_ac_var'}'` = yes; then
32838 cat >>confdefs.h <<_ACEOF
32839#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32840_ACEOF
32841 cat >>confdefs.h <<\_ACEOF
32842#define HAVE_USLEEP 1
32843_ACEOF
32844
32845else
32846 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32847echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32848
32849fi
32850done
32851
32852
32853
32854fi
32855
32856
32857
32858fi
32859done
32860
32861fi
32862
32863
32864
32865for ac_func in uname gethostname
32866do
32867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32868echo "$as_me:$LINENO: checking for $ac_func" >&5
32869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32870if eval "test \"\${$as_ac_var+set}\" = set"; then
32871 echo $ECHO_N "(cached) $ECHO_C" >&6
32872else
32873 cat >conftest.$ac_ext <<_ACEOF
32874/* confdefs.h. */
32875_ACEOF
32876cat confdefs.h >>conftest.$ac_ext
32877cat >>conftest.$ac_ext <<_ACEOF
32878/* end confdefs.h. */
ac1cb8d3
VS
32879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32881#define $ac_func innocuous_$ac_func
32882
a848cd7e
SC
32883/* System header to define __stub macros and hopefully few prototypes,
32884 which can conflict with char $ac_func (); below.
32885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32886 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32887
a848cd7e
SC
32888#ifdef __STDC__
32889# include <limits.h>
32890#else
32891# include <assert.h>
32892#endif
ac1cb8d3
VS
32893
32894#undef $ac_func
32895
a848cd7e
SC
32896/* Override any gcc2 internal prototype to avoid an error. */
32897#ifdef __cplusplus
32898extern "C"
32899{
32900#endif
32901/* We use char because int might match the return type of a gcc2
32902 builtin and then its argument prototype would still apply. */
32903char $ac_func ();
32904/* The GNU C library defines this for functions which it implements
32905 to always fail with ENOSYS. Some functions are actually named
32906 something starting with __ and the normal name is an alias. */
32907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32908choke me
32909#else
32910char (*f) () = $ac_func;
32911#endif
32912#ifdef __cplusplus
32913}
32914#endif
32915
32916int
32917main ()
32918{
32919return f != $ac_func;
32920 ;
32921 return 0;
32922}
32923_ACEOF
32924rm -f conftest.$ac_objext conftest$ac_exeext
32925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32926 (eval $ac_link) 2>conftest.er1
a848cd7e 32927 ac_status=$?
ac1cb8d3
VS
32928 grep -v '^ *+' conftest.er1 >conftest.err
32929 rm -f conftest.er1
32930 cat conftest.err >&5
a848cd7e
SC
32931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932 (exit $ac_status); } &&
dfe0c803
JS
32933 { ac_try='test -z "$ac_c_werror_flag"
32934 || test ! -s conftest.err'
ac1cb8d3
VS
32935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32936 (eval $ac_try) 2>&5
32937 ac_status=$?
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); }; } &&
32940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32942 (eval $ac_try) 2>&5
32943 ac_status=$?
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); }; }; then
32946 eval "$as_ac_var=yes"
32947else
32948 echo "$as_me: failed program was:" >&5
32949sed 's/^/| /' conftest.$ac_ext >&5
32950
32951eval "$as_ac_var=no"
32952fi
ac1cb8d3
VS
32953rm -f conftest.err conftest.$ac_objext \
32954 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32955fi
32956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32957echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32958if test `eval echo '${'$as_ac_var'}'` = yes; then
32959 cat >>confdefs.h <<_ACEOF
32960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32961_ACEOF
32962 break
32963fi
32964done
32965
32966
32967
32968
32969ac_ext=cc
32970ac_cpp='$CXXCPP $CPPFLAGS'
32971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32974
32975
32976
32977for ac_func in strtok_r
32978do
32979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32980echo "$as_me:$LINENO: checking for $ac_func" >&5
32981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32982if eval "test \"\${$as_ac_var+set}\" = set"; then
32983 echo $ECHO_N "(cached) $ECHO_C" >&6
32984else
32985 cat >conftest.$ac_ext <<_ACEOF
32986/* confdefs.h. */
32987_ACEOF
32988cat confdefs.h >>conftest.$ac_ext
32989cat >>conftest.$ac_ext <<_ACEOF
32990/* end confdefs.h. */
ac1cb8d3
VS
32991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32993#define $ac_func innocuous_$ac_func
32994
a848cd7e
SC
32995/* System header to define __stub macros and hopefully few prototypes,
32996 which can conflict with char $ac_func (); below.
32997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32998 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32999
a848cd7e
SC
33000#ifdef __STDC__
33001# include <limits.h>
33002#else
33003# include <assert.h>
33004#endif
ac1cb8d3
VS
33005
33006#undef $ac_func
33007
a848cd7e
SC
33008/* Override any gcc2 internal prototype to avoid an error. */
33009#ifdef __cplusplus
33010extern "C"
33011{
33012#endif
33013/* We use char because int might match the return type of a gcc2
33014 builtin and then its argument prototype would still apply. */
33015char $ac_func ();
33016/* The GNU C library defines this for functions which it implements
33017 to always fail with ENOSYS. Some functions are actually named
33018 something starting with __ and the normal name is an alias. */
33019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33020choke me
33021#else
33022char (*f) () = $ac_func;
33023#endif
33024#ifdef __cplusplus
33025}
33026#endif
33027
33028int
33029main ()
33030{
33031return f != $ac_func;
33032 ;
33033 return 0;
33034}
33035_ACEOF
33036rm -f conftest.$ac_objext conftest$ac_exeext
33037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33038 (eval $ac_link) 2>conftest.er1
a848cd7e 33039 ac_status=$?
ac1cb8d3
VS
33040 grep -v '^ *+' conftest.er1 >conftest.err
33041 rm -f conftest.er1
33042 cat conftest.err >&5
a848cd7e
SC
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); } &&
dfe0c803
JS
33045 { ac_try='test -z "$ac_cxx_werror_flag"
33046 || test ! -s conftest.err'
ac1cb8d3
VS
33047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33048 (eval $ac_try) 2>&5
33049 ac_status=$?
33050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051 (exit $ac_status); }; } &&
33052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33054 (eval $ac_try) 2>&5
33055 ac_status=$?
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); }; }; then
33058 eval "$as_ac_var=yes"
33059else
33060 echo "$as_me: failed program was:" >&5
33061sed 's/^/| /' conftest.$ac_ext >&5
33062
33063eval "$as_ac_var=no"
33064fi
ac1cb8d3
VS
33065rm -f conftest.err conftest.$ac_objext \
33066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33067fi
33068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33069echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33070if test `eval echo '${'$as_ac_var'}'` = yes; then
33071 cat >>confdefs.h <<_ACEOF
33072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33073_ACEOF
33074
33075fi
33076done
33077
33078
33079ac_ext=c
33080ac_cpp='$CPP $CPPFLAGS'
33081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33083ac_compiler_gnu=$ac_cv_c_compiler_gnu
33084
33085
33086INET_LINK=
33087
33088for ac_func in inet_addr
33089do
33090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33091echo "$as_me:$LINENO: checking for $ac_func" >&5
33092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33093if eval "test \"\${$as_ac_var+set}\" = set"; then
33094 echo $ECHO_N "(cached) $ECHO_C" >&6
33095else
33096 cat >conftest.$ac_ext <<_ACEOF
33097/* confdefs.h. */
33098_ACEOF
33099cat confdefs.h >>conftest.$ac_ext
33100cat >>conftest.$ac_ext <<_ACEOF
33101/* end confdefs.h. */
ac1cb8d3
VS
33102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33104#define $ac_func innocuous_$ac_func
33105
a848cd7e
SC
33106/* System header to define __stub macros and hopefully few prototypes,
33107 which can conflict with char $ac_func (); below.
33108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33109 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33110
a848cd7e
SC
33111#ifdef __STDC__
33112# include <limits.h>
33113#else
33114# include <assert.h>
33115#endif
ac1cb8d3
VS
33116
33117#undef $ac_func
33118
a848cd7e
SC
33119/* Override any gcc2 internal prototype to avoid an error. */
33120#ifdef __cplusplus
33121extern "C"
33122{
33123#endif
33124/* We use char because int might match the return type of a gcc2
33125 builtin and then its argument prototype would still apply. */
33126char $ac_func ();
33127/* The GNU C library defines this for functions which it implements
33128 to always fail with ENOSYS. Some functions are actually named
33129 something starting with __ and the normal name is an alias. */
33130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33131choke me
33132#else
33133char (*f) () = $ac_func;
33134#endif
33135#ifdef __cplusplus
33136}
33137#endif
33138
33139int
33140main ()
33141{
33142return f != $ac_func;
33143 ;
33144 return 0;
33145}
33146_ACEOF
33147rm -f conftest.$ac_objext conftest$ac_exeext
33148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33149 (eval $ac_link) 2>conftest.er1
a848cd7e 33150 ac_status=$?
ac1cb8d3
VS
33151 grep -v '^ *+' conftest.er1 >conftest.err
33152 rm -f conftest.er1
33153 cat conftest.err >&5
a848cd7e
SC
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); } &&
dfe0c803
JS
33156 { ac_try='test -z "$ac_c_werror_flag"
33157 || test ! -s conftest.err'
ac1cb8d3
VS
33158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33159 (eval $ac_try) 2>&5
33160 ac_status=$?
33161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162 (exit $ac_status); }; } &&
33163 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33165 (eval $ac_try) 2>&5
33166 ac_status=$?
33167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); }; }; then
33169 eval "$as_ac_var=yes"
33170else
33171 echo "$as_me: failed program was:" >&5
33172sed 's/^/| /' conftest.$ac_ext >&5
33173
33174eval "$as_ac_var=no"
33175fi
ac1cb8d3
VS
33176rm -f conftest.err conftest.$ac_objext \
33177 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33178fi
33179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33181if test `eval echo '${'$as_ac_var'}'` = yes; then
33182 cat >>confdefs.h <<_ACEOF
33183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33184_ACEOF
33185 cat >>confdefs.h <<\_ACEOF
33186#define HAVE_INET_ADDR 1
33187_ACEOF
33188
33189else
33190
33191 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33192echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33193if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33194 echo $ECHO_N "(cached) $ECHO_C" >&6
33195else
33196 ac_check_lib_save_LIBS=$LIBS
33197LIBS="-lnsl $LIBS"
33198cat >conftest.$ac_ext <<_ACEOF
33199/* confdefs.h. */
33200_ACEOF
33201cat confdefs.h >>conftest.$ac_ext
33202cat >>conftest.$ac_ext <<_ACEOF
33203/* end confdefs.h. */
33204
33205/* Override any gcc2 internal prototype to avoid an error. */
33206#ifdef __cplusplus
33207extern "C"
33208#endif
33209/* We use char because int might match the return type of a gcc2
33210 builtin and then its argument prototype would still apply. */
33211char inet_addr ();
33212int
33213main ()
33214{
33215inet_addr ();
33216 ;
33217 return 0;
33218}
33219_ACEOF
33220rm -f conftest.$ac_objext conftest$ac_exeext
33221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33222 (eval $ac_link) 2>conftest.er1
a848cd7e 33223 ac_status=$?
ac1cb8d3
VS
33224 grep -v '^ *+' conftest.er1 >conftest.err
33225 rm -f conftest.er1
33226 cat conftest.err >&5
a848cd7e
SC
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); } &&
dfe0c803
JS
33229 { ac_try='test -z "$ac_c_werror_flag"
33230 || test ! -s conftest.err'
ac1cb8d3
VS
33231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33232 (eval $ac_try) 2>&5
33233 ac_status=$?
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); }; } &&
33236 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33238 (eval $ac_try) 2>&5
33239 ac_status=$?
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); }; }; then
33242 ac_cv_lib_nsl_inet_addr=yes
33243else
33244 echo "$as_me: failed program was:" >&5
33245sed 's/^/| /' conftest.$ac_ext >&5
33246
33247ac_cv_lib_nsl_inet_addr=no
33248fi
ac1cb8d3
VS
33249rm -f conftest.err conftest.$ac_objext \
33250 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33251LIBS=$ac_check_lib_save_LIBS
33252fi
33253echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33254echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33255if test $ac_cv_lib_nsl_inet_addr = yes; then
33256 INET_LINK="nsl"
33257else
33258
33259 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33260echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33261if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33262 echo $ECHO_N "(cached) $ECHO_C" >&6
33263else
33264 ac_check_lib_save_LIBS=$LIBS
33265LIBS="-lresolv $LIBS"
33266cat >conftest.$ac_ext <<_ACEOF
33267/* confdefs.h. */
33268_ACEOF
33269cat confdefs.h >>conftest.$ac_ext
33270cat >>conftest.$ac_ext <<_ACEOF
33271/* end confdefs.h. */
33272
33273/* Override any gcc2 internal prototype to avoid an error. */
33274#ifdef __cplusplus
33275extern "C"
33276#endif
33277/* We use char because int might match the return type of a gcc2
33278 builtin and then its argument prototype would still apply. */
33279char inet_addr ();
33280int
33281main ()
33282{
33283inet_addr ();
33284 ;
33285 return 0;
33286}
33287_ACEOF
33288rm -f conftest.$ac_objext conftest$ac_exeext
33289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33290 (eval $ac_link) 2>conftest.er1
a848cd7e 33291 ac_status=$?
ac1cb8d3
VS
33292 grep -v '^ *+' conftest.er1 >conftest.err
33293 rm -f conftest.er1
33294 cat conftest.err >&5
a848cd7e
SC
33295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); } &&
dfe0c803
JS
33297 { ac_try='test -z "$ac_c_werror_flag"
33298 || test ! -s conftest.err'
ac1cb8d3
VS
33299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33300 (eval $ac_try) 2>&5
33301 ac_status=$?
33302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303 (exit $ac_status); }; } &&
33304 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33306 (eval $ac_try) 2>&5
33307 ac_status=$?
33308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309 (exit $ac_status); }; }; then
33310 ac_cv_lib_resolv_inet_addr=yes
33311else
33312 echo "$as_me: failed program was:" >&5
33313sed 's/^/| /' conftest.$ac_ext >&5
33314
33315ac_cv_lib_resolv_inet_addr=no
33316fi
ac1cb8d3
VS
33317rm -f conftest.err conftest.$ac_objext \
33318 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33319LIBS=$ac_check_lib_save_LIBS
33320fi
33321echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33322echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33323if test $ac_cv_lib_resolv_inet_addr = yes; then
33324 INET_LINK="resolv"
33325else
33326
33327 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33328echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33329if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33330 echo $ECHO_N "(cached) $ECHO_C" >&6
33331else
33332 ac_check_lib_save_LIBS=$LIBS
33333LIBS="-lsocket $LIBS"
33334cat >conftest.$ac_ext <<_ACEOF
33335/* confdefs.h. */
33336_ACEOF
33337cat confdefs.h >>conftest.$ac_ext
33338cat >>conftest.$ac_ext <<_ACEOF
33339/* end confdefs.h. */
33340
33341/* Override any gcc2 internal prototype to avoid an error. */
33342#ifdef __cplusplus
33343extern "C"
33344#endif
33345/* We use char because int might match the return type of a gcc2
33346 builtin and then its argument prototype would still apply. */
33347char inet_addr ();
33348int
33349main ()
33350{
33351inet_addr ();
33352 ;
33353 return 0;
33354}
33355_ACEOF
33356rm -f conftest.$ac_objext conftest$ac_exeext
33357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33358 (eval $ac_link) 2>conftest.er1
a848cd7e 33359 ac_status=$?
ac1cb8d3
VS
33360 grep -v '^ *+' conftest.er1 >conftest.err
33361 rm -f conftest.er1
33362 cat conftest.err >&5
a848cd7e
SC
33363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364 (exit $ac_status); } &&
dfe0c803
JS
33365 { ac_try='test -z "$ac_c_werror_flag"
33366 || test ! -s conftest.err'
ac1cb8d3
VS
33367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33368 (eval $ac_try) 2>&5
33369 ac_status=$?
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); }; } &&
33372 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374 (eval $ac_try) 2>&5
33375 ac_status=$?
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; }; then
33378 ac_cv_lib_socket_inet_addr=yes
33379else
33380 echo "$as_me: failed program was:" >&5
33381sed 's/^/| /' conftest.$ac_ext >&5
33382
33383ac_cv_lib_socket_inet_addr=no
33384fi
ac1cb8d3
VS
33385rm -f conftest.err conftest.$ac_objext \
33386 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33387LIBS=$ac_check_lib_save_LIBS
33388fi
33389echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33390echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33391if test $ac_cv_lib_socket_inet_addr = yes; then
33392 INET_LINK="socket"
33393
33394fi
33395
33396
33397
33398fi
33399
33400
33401
33402fi
33403
33404
33405
33406fi
33407done
33408
33409
33410
33411for ac_func in inet_aton
33412do
33413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33414echo "$as_me:$LINENO: checking for $ac_func" >&5
33415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33416if eval "test \"\${$as_ac_var+set}\" = set"; then
33417 echo $ECHO_N "(cached) $ECHO_C" >&6
33418else
33419 cat >conftest.$ac_ext <<_ACEOF
33420/* confdefs.h. */
33421_ACEOF
33422cat confdefs.h >>conftest.$ac_ext
33423cat >>conftest.$ac_ext <<_ACEOF
33424/* end confdefs.h. */
ac1cb8d3
VS
33425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33427#define $ac_func innocuous_$ac_func
33428
a848cd7e
SC
33429/* System header to define __stub macros and hopefully few prototypes,
33430 which can conflict with char $ac_func (); below.
33431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33432 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33433
a848cd7e
SC
33434#ifdef __STDC__
33435# include <limits.h>
33436#else
33437# include <assert.h>
33438#endif
ac1cb8d3
VS
33439
33440#undef $ac_func
33441
a848cd7e
SC
33442/* Override any gcc2 internal prototype to avoid an error. */
33443#ifdef __cplusplus
33444extern "C"
33445{
33446#endif
33447/* We use char because int might match the return type of a gcc2
33448 builtin and then its argument prototype would still apply. */
33449char $ac_func ();
33450/* The GNU C library defines this for functions which it implements
33451 to always fail with ENOSYS. Some functions are actually named
33452 something starting with __ and the normal name is an alias. */
33453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33454choke me
33455#else
33456char (*f) () = $ac_func;
33457#endif
33458#ifdef __cplusplus
33459}
33460#endif
33461
33462int
33463main ()
33464{
33465return f != $ac_func;
33466 ;
33467 return 0;
33468}
33469_ACEOF
33470rm -f conftest.$ac_objext conftest$ac_exeext
33471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33472 (eval $ac_link) 2>conftest.er1
a848cd7e 33473 ac_status=$?
ac1cb8d3
VS
33474 grep -v '^ *+' conftest.er1 >conftest.err
33475 rm -f conftest.er1
33476 cat conftest.err >&5
a848cd7e
SC
33477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478 (exit $ac_status); } &&
dfe0c803
JS
33479 { ac_try='test -z "$ac_c_werror_flag"
33480 || test ! -s conftest.err'
ac1cb8d3
VS
33481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33482 (eval $ac_try) 2>&5
33483 ac_status=$?
33484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33485 (exit $ac_status); }; } &&
33486 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33488 (eval $ac_try) 2>&5
33489 ac_status=$?
33490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 (exit $ac_status); }; }; then
33492 eval "$as_ac_var=yes"
33493else
33494 echo "$as_me: failed program was:" >&5
33495sed 's/^/| /' conftest.$ac_ext >&5
33496
33497eval "$as_ac_var=no"
33498fi
ac1cb8d3
VS
33499rm -f conftest.err conftest.$ac_objext \
33500 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33501fi
33502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33503echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33504if test `eval echo '${'$as_ac_var'}'` = yes; then
33505 cat >>confdefs.h <<_ACEOF
33506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33507_ACEOF
33508 cat >>confdefs.h <<\_ACEOF
33509#define HAVE_INET_ATON 1
33510_ACEOF
33511
33512else
33513
33514 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33515echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33516echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33517if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33518 echo $ECHO_N "(cached) $ECHO_C" >&6
33519else
33520 ac_check_lib_save_LIBS=$LIBS
33521LIBS="-l$INET_LINK $LIBS"
33522cat >conftest.$ac_ext <<_ACEOF
33523/* confdefs.h. */
33524_ACEOF
33525cat confdefs.h >>conftest.$ac_ext
33526cat >>conftest.$ac_ext <<_ACEOF
33527/* end confdefs.h. */
33528
33529/* Override any gcc2 internal prototype to avoid an error. */
33530#ifdef __cplusplus
33531extern "C"
33532#endif
33533/* We use char because int might match the return type of a gcc2
33534 builtin and then its argument prototype would still apply. */
33535char inet_aton ();
33536int
33537main ()
33538{
33539inet_aton ();
33540 ;
33541 return 0;
33542}
33543_ACEOF
33544rm -f conftest.$ac_objext conftest$ac_exeext
33545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33546 (eval $ac_link) 2>conftest.er1
a848cd7e 33547 ac_status=$?
ac1cb8d3
VS
33548 grep -v '^ *+' conftest.er1 >conftest.err
33549 rm -f conftest.er1
33550 cat conftest.err >&5
a848cd7e
SC
33551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552 (exit $ac_status); } &&
dfe0c803
JS
33553 { ac_try='test -z "$ac_c_werror_flag"
33554 || test ! -s conftest.err'
ac1cb8d3
VS
33555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33556 (eval $ac_try) 2>&5
33557 ac_status=$?
33558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33559 (exit $ac_status); }; } &&
33560 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33562 (eval $ac_try) 2>&5
33563 ac_status=$?
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; }; then
33566 eval "$as_ac_Lib=yes"
33567else
33568 echo "$as_me: failed program was:" >&5
33569sed 's/^/| /' conftest.$ac_ext >&5
33570
33571eval "$as_ac_Lib=no"
33572fi
ac1cb8d3
VS
33573rm -f conftest.err conftest.$ac_objext \
33574 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33575LIBS=$ac_check_lib_save_LIBS
33576fi
33577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33578echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33579if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33580 cat >>confdefs.h <<\_ACEOF
33581#define HAVE_INET_ATON 1
33582_ACEOF
33583
33584fi
33585
33586
33587fi
33588done
33589
33590
33591if test "x$INET_LINK" != "x"; then
33592 cat >>confdefs.h <<\_ACEOF
33593#define HAVE_INET_ADDR 1
33594_ACEOF
33595
33596 INET_LINK=" -l$INET_LINK"
33597fi
33598
33599fi
33600
33601
33602
33603EXTRALIBS_ESD=
33604echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33605echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33606if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33607 echo $ECHO_N "(cached) $ECHO_C" >&6
33608else
33609 ac_check_lib_save_LIBS=$LIBS
33610LIBS="-lesd $LIBS"
33611cat >conftest.$ac_ext <<_ACEOF
33612/* confdefs.h. */
33613_ACEOF
33614cat confdefs.h >>conftest.$ac_ext
33615cat >>conftest.$ac_ext <<_ACEOF
33616/* end confdefs.h. */
33617
33618/* Override any gcc2 internal prototype to avoid an error. */
33619#ifdef __cplusplus
33620extern "C"
33621#endif
33622/* We use char because int might match the return type of a gcc2
33623 builtin and then its argument prototype would still apply. */
33624char esd_close ();
33625int
33626main ()
33627{
33628esd_close ();
33629 ;
33630 return 0;
33631}
33632_ACEOF
33633rm -f conftest.$ac_objext conftest$ac_exeext
33634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33635 (eval $ac_link) 2>conftest.er1
a848cd7e 33636 ac_status=$?
ac1cb8d3
VS
33637 grep -v '^ *+' conftest.er1 >conftest.err
33638 rm -f conftest.er1
33639 cat conftest.err >&5
a848cd7e
SC
33640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641 (exit $ac_status); } &&
dfe0c803
JS
33642 { ac_try='test -z "$ac_c_werror_flag"
33643 || test ! -s conftest.err'
ac1cb8d3
VS
33644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33645 (eval $ac_try) 2>&5
33646 ac_status=$?
33647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648 (exit $ac_status); }; } &&
33649 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651 (eval $ac_try) 2>&5
33652 ac_status=$?
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); }; }; then
33655 ac_cv_lib_esd_esd_close=yes
33656else
33657 echo "$as_me: failed program was:" >&5
33658sed 's/^/| /' conftest.$ac_ext >&5
33659
33660ac_cv_lib_esd_esd_close=no
33661fi
ac1cb8d3
VS
33662rm -f conftest.err conftest.$ac_objext \
33663 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33664LIBS=$ac_check_lib_save_LIBS
33665fi
33666echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33667echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33668if test $ac_cv_lib_esd_esd_close = yes; then
33669
33670
33671for ac_header in esd.h
33672do
33673as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33674if eval "test \"\${$as_ac_Header+set}\" = set"; then
33675 echo "$as_me:$LINENO: checking for $ac_header" >&5
33676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33677if eval "test \"\${$as_ac_Header+set}\" = set"; then
33678 echo $ECHO_N "(cached) $ECHO_C" >&6
33679fi
33680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33682else
33683 # Is the header compilable?
33684echo "$as_me:$LINENO: checking $ac_header usability" >&5
33685echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33686cat >conftest.$ac_ext <<_ACEOF
33687/* confdefs.h. */
33688_ACEOF
33689cat confdefs.h >>conftest.$ac_ext
33690cat >>conftest.$ac_ext <<_ACEOF
33691/* end confdefs.h. */
33692$ac_includes_default
33693#include <$ac_header>
33694_ACEOF
33695rm -f conftest.$ac_objext
33696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33697 (eval $ac_compile) 2>conftest.er1
a848cd7e 33698 ac_status=$?
ac1cb8d3
VS
33699 grep -v '^ *+' conftest.er1 >conftest.err
33700 rm -f conftest.er1
33701 cat conftest.err >&5
a848cd7e
SC
33702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33703 (exit $ac_status); } &&
dfe0c803
JS
33704 { ac_try='test -z "$ac_c_werror_flag"
33705 || test ! -s conftest.err'
ac1cb8d3
VS
33706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33707 (eval $ac_try) 2>&5
33708 ac_status=$?
33709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710 (exit $ac_status); }; } &&
33711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33713 (eval $ac_try) 2>&5
33714 ac_status=$?
33715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716 (exit $ac_status); }; }; then
33717 ac_header_compiler=yes
33718else
33719 echo "$as_me: failed program was:" >&5
33720sed 's/^/| /' conftest.$ac_ext >&5
33721
33722ac_header_compiler=no
33723fi
ac1cb8d3 33724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33725echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33726echo "${ECHO_T}$ac_header_compiler" >&6
33727
33728# Is the header present?
33729echo "$as_me:$LINENO: checking $ac_header presence" >&5
33730echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33731cat >conftest.$ac_ext <<_ACEOF
33732/* confdefs.h. */
33733_ACEOF
33734cat confdefs.h >>conftest.$ac_ext
33735cat >>conftest.$ac_ext <<_ACEOF
33736/* end confdefs.h. */
33737#include <$ac_header>
33738_ACEOF
33739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33741 ac_status=$?
33742 grep -v '^ *+' conftest.er1 >conftest.err
33743 rm -f conftest.er1
33744 cat conftest.err >&5
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); } >/dev/null; then
33747 if test -s conftest.err; then
33748 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33750 else
33751 ac_cpp_err=
33752 fi
33753else
33754 ac_cpp_err=yes
33755fi
33756if test -z "$ac_cpp_err"; then
33757 ac_header_preproc=yes
33758else
33759 echo "$as_me: failed program was:" >&5
33760sed 's/^/| /' conftest.$ac_ext >&5
33761
33762 ac_header_preproc=no
33763fi
33764rm -f conftest.err conftest.$ac_ext
33765echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33766echo "${ECHO_T}$ac_header_preproc" >&6
33767
33768# So? What about this header?
ac1cb8d3
VS
33769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33770 yes:no: )
a848cd7e
SC
33771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33772echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33774echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33775 ac_header_preproc=yes
a848cd7e 33776 ;;
ac1cb8d3 33777 no:yes:* )
a848cd7e
SC
33778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33779echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33781echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33783echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33785echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33787echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33789echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33790 (
33791 cat <<\_ASBOX
ac1cb8d3
VS
33792## ----------------------------------------- ##
33793## Report this to wx-dev@lists.wxwidgets.org ##
33794## ----------------------------------------- ##
a848cd7e
SC
33795_ASBOX
33796 ) |
33797 sed "s/^/$as_me: WARNING: /" >&2
33798 ;;
33799esac
33800echo "$as_me:$LINENO: checking for $ac_header" >&5
33801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33802if eval "test \"\${$as_ac_Header+set}\" = set"; then
33803 echo $ECHO_N "(cached) $ECHO_C" >&6
33804else
ac1cb8d3 33805 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33806fi
33807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33809
33810fi
33811if test `eval echo '${'$as_ac_Header'}'` = yes; then
33812 cat >>confdefs.h <<_ACEOF
33813#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33814_ACEOF
33815
33816 EXTRALIBS_ESD="-lesd"
33817
33818fi
33819
33820done
33821
33822
33823fi
33824
33825
33826
33827echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33828echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33829cat >conftest.$ac_ext <<_ACEOF
33830/* confdefs.h. */
33831_ACEOF
33832cat confdefs.h >>conftest.$ac_ext
33833cat >>conftest.$ac_ext <<_ACEOF
33834/* end confdefs.h. */
33835#ifdef __linux__
33836 #include <linux/cdrom.h>
33837 #else
33838 /* For Solaris */
33839 #include <sys/cdio.h>
33840 #endif
33841
33842int
33843main ()
33844{
33845struct cdrom_tocentry entry, old_entry;
33846 ;
33847 return 0;
33848}
33849_ACEOF
33850rm -f conftest.$ac_objext
33851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33852 (eval $ac_compile) 2>conftest.er1
a848cd7e 33853 ac_status=$?
ac1cb8d3
VS
33854 grep -v '^ *+' conftest.er1 >conftest.err
33855 rm -f conftest.er1
33856 cat conftest.err >&5
a848cd7e
SC
33857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33858 (exit $ac_status); } &&
dfe0c803
JS
33859 { ac_try='test -z "$ac_c_werror_flag"
33860 || test ! -s conftest.err'
ac1cb8d3
VS
33861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33862 (eval $ac_try) 2>&5
33863 ac_status=$?
33864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865 (exit $ac_status); }; } &&
33866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33868 (eval $ac_try) 2>&5
33869 ac_status=$?
33870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33871 (exit $ac_status); }; }; then
33872 echo "$as_me:$LINENO: result: yes" >&5
33873echo "${ECHO_T}yes" >&6
33874 cat >>confdefs.h <<\_ACEOF
33875#define HAVE_KNOWN_CDROM_INTERFACE 1
33876_ACEOF
33877
33878else
33879 echo "$as_me: failed program was:" >&5
33880sed 's/^/| /' conftest.$ac_ext >&5
33881
33882echo "$as_me:$LINENO: result: no" >&5
33883echo "${ECHO_T}no" >&6
33884fi
ac1cb8d3 33885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33886
33887
33888cat >confcache <<\_ACEOF
33889# This file is a shell script that caches the results of configure
33890# tests run on this system so they can be shared between configure
33891# scripts and configure runs, see configure's option --config-cache.
33892# It is not useful on other systems. If it contains results you don't
33893# want to keep, you may remove or edit it.
33894#
33895# config.status only pays attention to the cache file if you give it
33896# the --recheck option to rerun configure.
33897#
33898# `ac_cv_env_foo' variables (set or unset) will be overridden when
33899# loading this file, other *unset* `ac_cv_foo' will be assigned the
33900# following values.
33901
33902_ACEOF
33903
33904# The following way of writing the cache mishandles newlines in values,
33905# but we know of no workaround that is simple, portable, and efficient.
33906# So, don't put newlines in cache variables' values.
33907# Ultrix sh set writes to stderr and can't be redirected directly,
33908# and sets the high bit in the cache file unless we assign to the vars.
33909{
33910 (set) 2>&1 |
33911 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33912 *ac_space=\ *)
33913 # `set' does not quote correctly, so add quotes (double-quote
33914 # substitution turns \\\\ into \\, and sed turns \\ into \).
33915 sed -n \
ac1cb8d3
VS
33916 "s/'/'\\\\''/g;
33917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33918 ;;
33919 *)
33920 # `set' quotes correctly as required by POSIX, so do not add quotes.
33921 sed -n \
ac1cb8d3 33922 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33923 ;;
33924 esac;
33925} |
33926 sed '
33927 t clear
33928 : clear
33929 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33930 t end
33931 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33932 : end' >>confcache
33933if diff $cache_file confcache >/dev/null 2>&1; then :; else
33934 if test -w $cache_file; then
33935 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33936 cat confcache >$cache_file
33937 else
33938 echo "not updating unwritable cache $cache_file"
33939 fi
33940fi
33941rm -f confcache
33942
33943
33944CPP_MT_FLAG=
33945if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33946
33947
33948 THREADS_LINK=
33949 THREADS_CFLAGS=
33950
33951 if test "$wxUSE_THREADS" = "yes" ; then
33952 if test "$USE_BEOS" = 1; then
33953 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33954echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33955 wxUSE_THREADS="no"
33956 fi
33957 fi
33958
33959 if test "$wxUSE_THREADS" = "yes" ; then
33960
33961
33962 THREAD_OPTS="-pthread"
33963 case "${host}" in
33964 *-*-solaris2* | *-*-sunos4* )
33965 if test "x$GCC" = "xyes"; then
33966 THREAD_OPTS="-pthreads $THREAD_OPTS"
33967 else
33968 THREAD_OPTS="-mt $THREAD_OPTS"
33969 fi
33970 ;;
33971 *-*-freebsd*)
33972 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33973 ;;
33974 *-*-darwin* | *-*-cygwin* )
33975 THREAD_OPTS=""
33976 ;;
33977 *-*-aix*)
33978 THREAD_OPTS="pthreads"
33979 ;;
33980 *-hp-hpux* )
33981 if test "x$GCC" != "xyes"; then
33982 THREAD_OPTS=""
33983 fi
33984 ;;
33985
33986 *-*-irix* )
33987 if test "x$GCC" = "xyes"; then
33988 THREAD_OPTS=""
33989 fi
33990 ;;
33991
33992 *-*-*UnixWare*)
33993 if test "x$GCC" != "xyes"; then
33994 THREAD_OPTS="-Ethread"
33995 fi
33996 ;;
33997 esac
33998
33999 THREAD_OPTS="$THREAD_OPTS pthread none"
34000
34001 THREADS_OK=no
34002 for flag in $THREAD_OPTS; do
34003 case $flag in
34004 none)
34005 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34006echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34007 ;;
34008
34009 -*)
34010 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34011echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34012 THREADS_CFLAGS="$flag"
34013 ;;
34014
34015 *)
34016 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34017echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34018 THREADS_LINK="-l$flag"
34019 ;;
34020 esac
34021
34022 save_LIBS="$LIBS"
34023 save_CFLAGS="$CFLAGS"
34024 LIBS="$THREADS_LINK $LIBS"
34025 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34026
34027 cat >conftest.$ac_ext <<_ACEOF
34028/* confdefs.h. */
34029_ACEOF
34030cat confdefs.h >>conftest.$ac_ext
34031cat >>conftest.$ac_ext <<_ACEOF
34032/* end confdefs.h. */
34033#include <pthread.h>
34034int
34035main ()
34036{
34037pthread_create(0,0,0,0);
34038 ;
34039 return 0;
34040}
34041_ACEOF
34042rm -f conftest.$ac_objext conftest$ac_exeext
34043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34044 (eval $ac_link) 2>conftest.er1
a848cd7e 34045 ac_status=$?
ac1cb8d3
VS
34046 grep -v '^ *+' conftest.er1 >conftest.err
34047 rm -f conftest.er1
34048 cat conftest.err >&5
a848cd7e
SC
34049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34050 (exit $ac_status); } &&
dfe0c803
JS
34051 { ac_try='test -z "$ac_c_werror_flag"
34052 || test ! -s conftest.err'
ac1cb8d3
VS
34053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34054 (eval $ac_try) 2>&5
34055 ac_status=$?
34056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057 (exit $ac_status); }; } &&
34058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34060 (eval $ac_try) 2>&5
34061 ac_status=$?
34062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34063 (exit $ac_status); }; }; then
34064 THREADS_OK=yes
34065else
34066 echo "$as_me: failed program was:" >&5
34067sed 's/^/| /' conftest.$ac_ext >&5
34068
34069fi
ac1cb8d3
VS
34070rm -f conftest.err conftest.$ac_objext \
34071 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34072
34073 LIBS="$save_LIBS"
34074 CFLAGS="$save_CFLAGS"
34075
34076 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34077echo "${ECHO_T}$THREADS_OK" >&6
34078 if test "x$THREADS_OK" = "xyes"; then
34079 break;
34080 fi
34081
34082 THREADS_LINK=""
34083 THREADS_CFLAGS=""
34084 done
34085
34086 if test "x$THREADS_OK" != "xyes"; then
34087 wxUSE_THREADS=no
34088 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34089echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34090 else
34091 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34092 LIBS="$THREADS_LINK $LIBS"
34093
34094 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34095echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34096 flag=no
34097 case "${host}" in
34098 *-aix*)
34099 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34100 flag="-D_THREAD_SAFE"
34101 ;;
34102 *-freebsd*)
34103 flag="-D_THREAD_SAFE"
34104 ;;
34105 *-hp-hpux* )
34106 flag="-D_REENTRANT"
34107 if test "x$GCC" != "xyes"; then
34108 flag="$flag -D_RWSTD_MULTI_THREAD"
34109 fi
34110 ;;
34111 *solaris* | alpha*-osf*)
34112 flag="-D_REENTRANT"
34113 ;;
34114 esac
34115 echo "$as_me:$LINENO: result: ${flag}" >&5
34116echo "${ECHO_T}${flag}" >&6
34117 if test "x$flag" != xno; then
34118 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34119 fi
34120
34121 if test "x$THREADS_CFLAGS" != "x"; then
34122 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34123 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34124 fi
34125 fi
34126 fi
34127
34128 if test "$wxUSE_THREADS" = "yes" ; then
34129
34130for ac_func in thr_setconcurrency
34131do
34132as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34133echo "$as_me:$LINENO: checking for $ac_func" >&5
34134echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34135if eval "test \"\${$as_ac_var+set}\" = set"; then
34136 echo $ECHO_N "(cached) $ECHO_C" >&6
34137else
34138 cat >conftest.$ac_ext <<_ACEOF
34139/* confdefs.h. */
34140_ACEOF
34141cat confdefs.h >>conftest.$ac_ext
34142cat >>conftest.$ac_ext <<_ACEOF
34143/* end confdefs.h. */
ac1cb8d3
VS
34144/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34146#define $ac_func innocuous_$ac_func
34147
a848cd7e
SC
34148/* System header to define __stub macros and hopefully few prototypes,
34149 which can conflict with char $ac_func (); below.
34150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34151 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34152
a848cd7e
SC
34153#ifdef __STDC__
34154# include <limits.h>
34155#else
34156# include <assert.h>
34157#endif
ac1cb8d3
VS
34158
34159#undef $ac_func
34160
a848cd7e
SC
34161/* Override any gcc2 internal prototype to avoid an error. */
34162#ifdef __cplusplus
34163extern "C"
34164{
34165#endif
34166/* We use char because int might match the return type of a gcc2
34167 builtin and then its argument prototype would still apply. */
34168char $ac_func ();
34169/* The GNU C library defines this for functions which it implements
34170 to always fail with ENOSYS. Some functions are actually named
34171 something starting with __ and the normal name is an alias. */
34172#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34173choke me
34174#else
34175char (*f) () = $ac_func;
34176#endif
34177#ifdef __cplusplus
34178}
34179#endif
34180
34181int
34182main ()
34183{
34184return f != $ac_func;
34185 ;
34186 return 0;
34187}
34188_ACEOF
34189rm -f conftest.$ac_objext conftest$ac_exeext
34190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34191 (eval $ac_link) 2>conftest.er1
a848cd7e 34192 ac_status=$?
ac1cb8d3
VS
34193 grep -v '^ *+' conftest.er1 >conftest.err
34194 rm -f conftest.er1
34195 cat conftest.err >&5
a848cd7e
SC
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); } &&
dfe0c803
JS
34198 { ac_try='test -z "$ac_c_werror_flag"
34199 || test ! -s conftest.err'
ac1cb8d3
VS
34200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34201 (eval $ac_try) 2>&5
34202 ac_status=$?
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); }; } &&
34205 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34211 eval "$as_ac_var=yes"
34212else
34213 echo "$as_me: failed program was:" >&5
34214sed 's/^/| /' conftest.$ac_ext >&5
34215
34216eval "$as_ac_var=no"
34217fi
ac1cb8d3
VS
34218rm -f conftest.err conftest.$ac_objext \
34219 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34220fi
34221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34222echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34223if test `eval echo '${'$as_ac_var'}'` = yes; then
34224 cat >>confdefs.h <<_ACEOF
34225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34226_ACEOF
34227
34228fi
34229done
34230
34231
34232
34233for ac_header in sched.h
34234do
34235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34236if eval "test \"\${$as_ac_Header+set}\" = set"; then
34237 echo "$as_me:$LINENO: checking for $ac_header" >&5
34238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34239if eval "test \"\${$as_ac_Header+set}\" = set"; then
34240 echo $ECHO_N "(cached) $ECHO_C" >&6
34241fi
34242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34244else
34245 # Is the header compilable?
34246echo "$as_me:$LINENO: checking $ac_header usability" >&5
34247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34248cat >conftest.$ac_ext <<_ACEOF
34249/* confdefs.h. */
34250_ACEOF
34251cat confdefs.h >>conftest.$ac_ext
34252cat >>conftest.$ac_ext <<_ACEOF
34253/* end confdefs.h. */
34254$ac_includes_default
34255#include <$ac_header>
34256_ACEOF
34257rm -f conftest.$ac_objext
34258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34259 (eval $ac_compile) 2>conftest.er1
a848cd7e 34260 ac_status=$?
ac1cb8d3
VS
34261 grep -v '^ *+' conftest.er1 >conftest.err
34262 rm -f conftest.er1
34263 cat conftest.err >&5
a848cd7e
SC
34264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265 (exit $ac_status); } &&
dfe0c803
JS
34266 { ac_try='test -z "$ac_c_werror_flag"
34267 || test ! -s conftest.err'
ac1cb8d3
VS
34268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34269 (eval $ac_try) 2>&5
34270 ac_status=$?
34271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272 (exit $ac_status); }; } &&
34273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34275 (eval $ac_try) 2>&5
34276 ac_status=$?
34277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278 (exit $ac_status); }; }; then
34279 ac_header_compiler=yes
34280else
34281 echo "$as_me: failed program was:" >&5
34282sed 's/^/| /' conftest.$ac_ext >&5
34283
34284ac_header_compiler=no
34285fi
ac1cb8d3 34286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34288echo "${ECHO_T}$ac_header_compiler" >&6
34289
34290# Is the header present?
34291echo "$as_me:$LINENO: checking $ac_header presence" >&5
34292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34293cat >conftest.$ac_ext <<_ACEOF
34294/* confdefs.h. */
34295_ACEOF
34296cat confdefs.h >>conftest.$ac_ext
34297cat >>conftest.$ac_ext <<_ACEOF
34298/* end confdefs.h. */
34299#include <$ac_header>
34300_ACEOF
34301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34303 ac_status=$?
34304 grep -v '^ *+' conftest.er1 >conftest.err
34305 rm -f conftest.er1
34306 cat conftest.err >&5
34307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308 (exit $ac_status); } >/dev/null; then
34309 if test -s conftest.err; then
34310 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34312 else
34313 ac_cpp_err=
34314 fi
34315else
34316 ac_cpp_err=yes
34317fi
34318if test -z "$ac_cpp_err"; then
34319 ac_header_preproc=yes
34320else
34321 echo "$as_me: failed program was:" >&5
34322sed 's/^/| /' conftest.$ac_ext >&5
34323
34324 ac_header_preproc=no
34325fi
34326rm -f conftest.err conftest.$ac_ext
34327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34328echo "${ECHO_T}$ac_header_preproc" >&6
34329
34330# So? What about this header?
ac1cb8d3
VS
34331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34332 yes:no: )
a848cd7e
SC
34333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34337 ac_header_preproc=yes
a848cd7e 34338 ;;
ac1cb8d3 34339 no:yes:* )
a848cd7e
SC
34340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34352 (
34353 cat <<\_ASBOX
ac1cb8d3
VS
34354## ----------------------------------------- ##
34355## Report this to wx-dev@lists.wxwidgets.org ##
34356## ----------------------------------------- ##
a848cd7e
SC
34357_ASBOX
34358 ) |
34359 sed "s/^/$as_me: WARNING: /" >&2
34360 ;;
34361esac
34362echo "$as_me:$LINENO: checking for $ac_header" >&5
34363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34364if eval "test \"\${$as_ac_Header+set}\" = set"; then
34365 echo $ECHO_N "(cached) $ECHO_C" >&6
34366else
ac1cb8d3 34367 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34368fi
34369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34371
34372fi
34373if test `eval echo '${'$as_ac_Header'}'` = yes; then
34374 cat >>confdefs.h <<_ACEOF
34375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34376_ACEOF
34377
34378fi
34379
34380done
34381
34382 if test "$ac_cv_header_sched_h" = "yes"; then
34383 echo "$as_me:$LINENO: checking for sched_yield" >&5
34384echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34385if test "${ac_cv_func_sched_yield+set}" = set; then
34386 echo $ECHO_N "(cached) $ECHO_C" >&6
34387else
34388 cat >conftest.$ac_ext <<_ACEOF
34389/* confdefs.h. */
34390_ACEOF
34391cat confdefs.h >>conftest.$ac_ext
34392cat >>conftest.$ac_ext <<_ACEOF
34393/* end confdefs.h. */
ac1cb8d3
VS
34394/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34396#define sched_yield innocuous_sched_yield
34397
a848cd7e
SC
34398/* System header to define __stub macros and hopefully few prototypes,
34399 which can conflict with char sched_yield (); below.
34400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34401 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34402
a848cd7e
SC
34403#ifdef __STDC__
34404# include <limits.h>
34405#else
34406# include <assert.h>
34407#endif
ac1cb8d3
VS
34408
34409#undef sched_yield
34410
a848cd7e
SC
34411/* Override any gcc2 internal prototype to avoid an error. */
34412#ifdef __cplusplus
34413extern "C"
34414{
34415#endif
34416/* We use char because int might match the return type of a gcc2
34417 builtin and then its argument prototype would still apply. */
34418char sched_yield ();
34419/* The GNU C library defines this for functions which it implements
34420 to always fail with ENOSYS. Some functions are actually named
34421 something starting with __ and the normal name is an alias. */
34422#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34423choke me
34424#else
34425char (*f) () = sched_yield;
34426#endif
34427#ifdef __cplusplus
34428}
34429#endif
34430
34431int
34432main ()
34433{
34434return f != sched_yield;
34435 ;
34436 return 0;
34437}
34438_ACEOF
34439rm -f conftest.$ac_objext conftest$ac_exeext
34440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34441 (eval $ac_link) 2>conftest.er1
a848cd7e 34442 ac_status=$?
ac1cb8d3
VS
34443 grep -v '^ *+' conftest.er1 >conftest.err
34444 rm -f conftest.er1
34445 cat conftest.err >&5
a848cd7e
SC
34446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34447 (exit $ac_status); } &&
dfe0c803
JS
34448 { ac_try='test -z "$ac_c_werror_flag"
34449 || test ! -s conftest.err'
ac1cb8d3
VS
34450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34451 (eval $ac_try) 2>&5
34452 ac_status=$?
34453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34454 (exit $ac_status); }; } &&
34455 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34457 (eval $ac_try) 2>&5
34458 ac_status=$?
34459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460 (exit $ac_status); }; }; then
34461 ac_cv_func_sched_yield=yes
34462else
34463 echo "$as_me: failed program was:" >&5
34464sed 's/^/| /' conftest.$ac_ext >&5
34465
34466ac_cv_func_sched_yield=no
34467fi
ac1cb8d3
VS
34468rm -f conftest.err conftest.$ac_objext \
34469 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34470fi
34471echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34472echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34473if test $ac_cv_func_sched_yield = yes; then
34474 cat >>confdefs.h <<\_ACEOF
34475#define HAVE_SCHED_YIELD 1
34476_ACEOF
34477
34478else
34479
34480 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34481echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34482if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34483 echo $ECHO_N "(cached) $ECHO_C" >&6
34484else
34485 ac_check_lib_save_LIBS=$LIBS
34486LIBS="-lposix4 $LIBS"
34487cat >conftest.$ac_ext <<_ACEOF
34488/* confdefs.h. */
34489_ACEOF
34490cat confdefs.h >>conftest.$ac_ext
34491cat >>conftest.$ac_ext <<_ACEOF
34492/* end confdefs.h. */
34493
34494/* Override any gcc2 internal prototype to avoid an error. */
34495#ifdef __cplusplus
34496extern "C"
34497#endif
34498/* We use char because int might match the return type of a gcc2
34499 builtin and then its argument prototype would still apply. */
34500char sched_yield ();
34501int
34502main ()
34503{
34504sched_yield ();
34505 ;
34506 return 0;
34507}
34508_ACEOF
34509rm -f conftest.$ac_objext conftest$ac_exeext
34510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34511 (eval $ac_link) 2>conftest.er1
a848cd7e 34512 ac_status=$?
ac1cb8d3
VS
34513 grep -v '^ *+' conftest.er1 >conftest.err
34514 rm -f conftest.er1
34515 cat conftest.err >&5
a848cd7e
SC
34516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517 (exit $ac_status); } &&
dfe0c803
JS
34518 { ac_try='test -z "$ac_c_werror_flag"
34519 || test ! -s conftest.err'
ac1cb8d3
VS
34520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34521 (eval $ac_try) 2>&5
34522 ac_status=$?
34523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524 (exit $ac_status); }; } &&
34525 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34527 (eval $ac_try) 2>&5
34528 ac_status=$?
34529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); }; }; then
34531 ac_cv_lib_posix4_sched_yield=yes
34532else
34533 echo "$as_me: failed program was:" >&5
34534sed 's/^/| /' conftest.$ac_ext >&5
34535
34536ac_cv_lib_posix4_sched_yield=no
34537fi
ac1cb8d3
VS
34538rm -f conftest.err conftest.$ac_objext \
34539 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34540LIBS=$ac_check_lib_save_LIBS
34541fi
34542echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34543echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34544if test $ac_cv_lib_posix4_sched_yield = yes; then
34545 cat >>confdefs.h <<\_ACEOF
34546#define HAVE_SCHED_YIELD 1
34547_ACEOF
34548 POSIX4_LINK=" -lposix4"
34549else
34550 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34551echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34552
34553fi
34554
34555
34556
34557fi
34558
34559 fi
34560
34561 HAVE_PRIOR_FUNCS=0
34562 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34563echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34564if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34565 echo $ECHO_N "(cached) $ECHO_C" >&6
34566else
34567 cat >conftest.$ac_ext <<_ACEOF
34568/* confdefs.h. */
34569_ACEOF
34570cat confdefs.h >>conftest.$ac_ext
34571cat >>conftest.$ac_ext <<_ACEOF
34572/* end confdefs.h. */
ac1cb8d3
VS
34573/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34575#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34576
a848cd7e
SC
34577/* System header to define __stub macros and hopefully few prototypes,
34578 which can conflict with char pthread_attr_getschedpolicy (); below.
34579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34580 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34581
a848cd7e
SC
34582#ifdef __STDC__
34583# include <limits.h>
34584#else
34585# include <assert.h>
34586#endif
ac1cb8d3
VS
34587
34588#undef pthread_attr_getschedpolicy
34589
a848cd7e
SC
34590/* Override any gcc2 internal prototype to avoid an error. */
34591#ifdef __cplusplus
34592extern "C"
34593{
34594#endif
34595/* We use char because int might match the return type of a gcc2
34596 builtin and then its argument prototype would still apply. */
34597char pthread_attr_getschedpolicy ();
34598/* The GNU C library defines this for functions which it implements
34599 to always fail with ENOSYS. Some functions are actually named
34600 something starting with __ and the normal name is an alias. */
34601#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34602choke me
34603#else
34604char (*f) () = pthread_attr_getschedpolicy;
34605#endif
34606#ifdef __cplusplus
34607}
34608#endif
34609
34610int
34611main ()
34612{
34613return f != pthread_attr_getschedpolicy;
34614 ;
34615 return 0;
34616}
34617_ACEOF
34618rm -f conftest.$ac_objext conftest$ac_exeext
34619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34620 (eval $ac_link) 2>conftest.er1
a848cd7e 34621 ac_status=$?
ac1cb8d3
VS
34622 grep -v '^ *+' conftest.er1 >conftest.err
34623 rm -f conftest.er1
34624 cat conftest.err >&5
a848cd7e
SC
34625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34626 (exit $ac_status); } &&
dfe0c803
JS
34627 { ac_try='test -z "$ac_c_werror_flag"
34628 || test ! -s conftest.err'
ac1cb8d3
VS
34629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34630 (eval $ac_try) 2>&5
34631 ac_status=$?
34632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633 (exit $ac_status); }; } &&
34634 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34636 (eval $ac_try) 2>&5
34637 ac_status=$?
34638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34639 (exit $ac_status); }; }; then
34640 ac_cv_func_pthread_attr_getschedpolicy=yes
34641else
34642 echo "$as_me: failed program was:" >&5
34643sed 's/^/| /' conftest.$ac_ext >&5
34644
34645ac_cv_func_pthread_attr_getschedpolicy=no
34646fi
ac1cb8d3
VS
34647rm -f conftest.err conftest.$ac_objext \
34648 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34649fi
34650echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34651echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34652if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34653 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34654echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34655if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34656 echo $ECHO_N "(cached) $ECHO_C" >&6
34657else
34658 cat >conftest.$ac_ext <<_ACEOF
34659/* confdefs.h. */
34660_ACEOF
34661cat confdefs.h >>conftest.$ac_ext
34662cat >>conftest.$ac_ext <<_ACEOF
34663/* end confdefs.h. */
ac1cb8d3
VS
34664/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34666#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34667
a848cd7e
SC
34668/* System header to define __stub macros and hopefully few prototypes,
34669 which can conflict with char pthread_attr_setschedparam (); below.
34670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34671 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34672
a848cd7e
SC
34673#ifdef __STDC__
34674# include <limits.h>
34675#else
34676# include <assert.h>
34677#endif
ac1cb8d3
VS
34678
34679#undef pthread_attr_setschedparam
34680
a848cd7e
SC
34681/* Override any gcc2 internal prototype to avoid an error. */
34682#ifdef __cplusplus
34683extern "C"
34684{
34685#endif
34686/* We use char because int might match the return type of a gcc2
34687 builtin and then its argument prototype would still apply. */
34688char pthread_attr_setschedparam ();
34689/* The GNU C library defines this for functions which it implements
34690 to always fail with ENOSYS. Some functions are actually named
34691 something starting with __ and the normal name is an alias. */
34692#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34693choke me
34694#else
34695char (*f) () = pthread_attr_setschedparam;
34696#endif
34697#ifdef __cplusplus
34698}
34699#endif
34700
34701int
34702main ()
34703{
34704return f != pthread_attr_setschedparam;
34705 ;
34706 return 0;
34707}
34708_ACEOF
34709rm -f conftest.$ac_objext conftest$ac_exeext
34710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34711 (eval $ac_link) 2>conftest.er1
a848cd7e 34712 ac_status=$?
ac1cb8d3
VS
34713 grep -v '^ *+' conftest.er1 >conftest.err
34714 rm -f conftest.er1
34715 cat conftest.err >&5
a848cd7e
SC
34716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34717 (exit $ac_status); } &&
dfe0c803
JS
34718 { ac_try='test -z "$ac_c_werror_flag"
34719 || test ! -s conftest.err'
ac1cb8d3
VS
34720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34721 (eval $ac_try) 2>&5
34722 ac_status=$?
34723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34724 (exit $ac_status); }; } &&
34725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34727 (eval $ac_try) 2>&5
34728 ac_status=$?
34729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730 (exit $ac_status); }; }; then
34731 ac_cv_func_pthread_attr_setschedparam=yes
34732else
34733 echo "$as_me: failed program was:" >&5
34734sed 's/^/| /' conftest.$ac_ext >&5
34735
34736ac_cv_func_pthread_attr_setschedparam=no
34737fi
ac1cb8d3
VS
34738rm -f conftest.err conftest.$ac_objext \
34739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34740fi
34741echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34742echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34743if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34744 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34745echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34746if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34747 echo $ECHO_N "(cached) $ECHO_C" >&6
34748else
34749 cat >conftest.$ac_ext <<_ACEOF
34750/* confdefs.h. */
34751_ACEOF
34752cat confdefs.h >>conftest.$ac_ext
34753cat >>conftest.$ac_ext <<_ACEOF
34754/* end confdefs.h. */
ac1cb8d3
VS
34755/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34757#define sched_get_priority_max innocuous_sched_get_priority_max
34758
a848cd7e
SC
34759/* System header to define __stub macros and hopefully few prototypes,
34760 which can conflict with char sched_get_priority_max (); below.
34761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34762 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34763
a848cd7e
SC
34764#ifdef __STDC__
34765# include <limits.h>
34766#else
34767# include <assert.h>
34768#endif
ac1cb8d3
VS
34769
34770#undef sched_get_priority_max
34771
a848cd7e
SC
34772/* Override any gcc2 internal prototype to avoid an error. */
34773#ifdef __cplusplus
34774extern "C"
34775{
34776#endif
34777/* We use char because int might match the return type of a gcc2
34778 builtin and then its argument prototype would still apply. */
34779char sched_get_priority_max ();
34780/* The GNU C library defines this for functions which it implements
34781 to always fail with ENOSYS. Some functions are actually named
34782 something starting with __ and the normal name is an alias. */
34783#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34784choke me
34785#else
34786char (*f) () = sched_get_priority_max;
34787#endif
34788#ifdef __cplusplus
34789}
34790#endif
34791
34792int
34793main ()
34794{
34795return f != sched_get_priority_max;
34796 ;
34797 return 0;
34798}
34799_ACEOF
34800rm -f conftest.$ac_objext conftest$ac_exeext
34801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34802 (eval $ac_link) 2>conftest.er1
a848cd7e 34803 ac_status=$?
ac1cb8d3
VS
34804 grep -v '^ *+' conftest.er1 >conftest.err
34805 rm -f conftest.er1
34806 cat conftest.err >&5
a848cd7e
SC
34807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); } &&
dfe0c803
JS
34809 { ac_try='test -z "$ac_c_werror_flag"
34810 || 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); } &&
dfe0c803
JS
34875 { ac_try='test -z "$ac_c_werror_flag"
34876 || test ! -s conftest.err'
ac1cb8d3
VS
34877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34878 (eval $ac_try) 2>&5
34879 ac_status=$?
34880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34881 (exit $ac_status); }; } &&
34882 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34884 (eval $ac_try) 2>&5
34885 ac_status=$?
34886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34887 (exit $ac_status); }; }; then
34888 ac_cv_lib_posix4_sched_get_priority_max=yes
34889else
34890 echo "$as_me: failed program was:" >&5
34891sed 's/^/| /' conftest.$ac_ext >&5
34892
34893ac_cv_lib_posix4_sched_get_priority_max=no
34894fi
ac1cb8d3
VS
34895rm -f conftest.err conftest.$ac_objext \
34896 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34897LIBS=$ac_check_lib_save_LIBS
34898fi
34899echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34900echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34901if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34902
34903 HAVE_PRIOR_FUNCS=1
34904 POSIX4_LINK=" -lposix4"
34905
34906fi
34907
34908
34909fi
34910
34911
34912fi
34913
34914
34915fi
34916
34917
34918 if test "$HAVE_PRIOR_FUNCS" = 1; then
34919 cat >>confdefs.h <<\_ACEOF
34920#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34921_ACEOF
34922
34923 else
34924 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34925echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34926 fi
34927
34928 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34929echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34930if test "${ac_cv_func_pthread_cancel+set}" = set; then
34931 echo $ECHO_N "(cached) $ECHO_C" >&6
34932else
34933 cat >conftest.$ac_ext <<_ACEOF
34934/* confdefs.h. */
34935_ACEOF
34936cat confdefs.h >>conftest.$ac_ext
34937cat >>conftest.$ac_ext <<_ACEOF
34938/* end confdefs.h. */
ac1cb8d3
VS
34939/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34941#define pthread_cancel innocuous_pthread_cancel
34942
a848cd7e
SC
34943/* System header to define __stub macros and hopefully few prototypes,
34944 which can conflict with char pthread_cancel (); below.
34945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34946 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34947
a848cd7e
SC
34948#ifdef __STDC__
34949# include <limits.h>
34950#else
34951# include <assert.h>
34952#endif
ac1cb8d3
VS
34953
34954#undef pthread_cancel
34955
a848cd7e
SC
34956/* Override any gcc2 internal prototype to avoid an error. */
34957#ifdef __cplusplus
34958extern "C"
34959{
34960#endif
34961/* We use char because int might match the return type of a gcc2
34962 builtin and then its argument prototype would still apply. */
34963char pthread_cancel ();
34964/* The GNU C library defines this for functions which it implements
34965 to always fail with ENOSYS. Some functions are actually named
34966 something starting with __ and the normal name is an alias. */
34967#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34968choke me
34969#else
34970char (*f) () = pthread_cancel;
34971#endif
34972#ifdef __cplusplus
34973}
34974#endif
34975
34976int
34977main ()
34978{
34979return f != pthread_cancel;
34980 ;
34981 return 0;
34982}
34983_ACEOF
34984rm -f conftest.$ac_objext conftest$ac_exeext
34985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34986 (eval $ac_link) 2>conftest.er1
a848cd7e 34987 ac_status=$?
ac1cb8d3
VS
34988 grep -v '^ *+' conftest.er1 >conftest.err
34989 rm -f conftest.er1
34990 cat conftest.err >&5
a848cd7e
SC
34991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34992 (exit $ac_status); } &&
dfe0c803
JS
34993 { ac_try='test -z "$ac_c_werror_flag"
34994 || test ! -s conftest.err'
ac1cb8d3
VS
34995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34996 (eval $ac_try) 2>&5
34997 ac_status=$?
34998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999 (exit $ac_status); }; } &&
35000 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35002 (eval $ac_try) 2>&5
35003 ac_status=$?
35004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35005 (exit $ac_status); }; }; then
35006 ac_cv_func_pthread_cancel=yes
35007else
35008 echo "$as_me: failed program was:" >&5
35009sed 's/^/| /' conftest.$ac_ext >&5
35010
35011ac_cv_func_pthread_cancel=no
35012fi
ac1cb8d3
VS
35013rm -f conftest.err conftest.$ac_objext \
35014 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35015fi
35016echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35017echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35018if test $ac_cv_func_pthread_cancel = yes; then
35019 cat >>confdefs.h <<\_ACEOF
35020#define HAVE_PTHREAD_CANCEL 1
35021_ACEOF
35022
35023else
35024 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35025echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35026fi
35027
35028
35029
35030
35031 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35032echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35033if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35034 echo $ECHO_N "(cached) $ECHO_C" >&6
35035else
35036
35037 cat >conftest.$ac_ext <<_ACEOF
35038/* confdefs.h. */
35039_ACEOF
35040cat confdefs.h >>conftest.$ac_ext
35041cat >>conftest.$ac_ext <<_ACEOF
35042/* end confdefs.h. */
35043#include <pthread.h>
35044int
35045main ()
35046{
35047
35048 pthread_mutexattr_t attr;
35049 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35050
35051 ;
35052 return 0;
35053}
35054_ACEOF
35055rm -f conftest.$ac_objext
35056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35057 (eval $ac_compile) 2>conftest.er1
a848cd7e 35058 ac_status=$?
ac1cb8d3
VS
35059 grep -v '^ *+' conftest.er1 >conftest.err
35060 rm -f conftest.er1
35061 cat conftest.err >&5
a848cd7e
SC
35062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35063 (exit $ac_status); } &&
dfe0c803
JS
35064 { ac_try='test -z "$ac_c_werror_flag"
35065 || test ! -s conftest.err'
ac1cb8d3
VS
35066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35067 (eval $ac_try) 2>&5
35068 ac_status=$?
35069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070 (exit $ac_status); }; } &&
35071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35073 (eval $ac_try) 2>&5
35074 ac_status=$?
35075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076 (exit $ac_status); }; }; then
35077
35078 wx_cv_type_pthread_mutexattr_t=yes
35079
35080else
35081 echo "$as_me: failed program was:" >&5
35082sed 's/^/| /' conftest.$ac_ext >&5
35083
35084
35085 wx_cv_type_pthread_mutexattr_t=no
35086
35087
35088fi
ac1cb8d3 35089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35090
35091fi
35092echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35093echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35094
35095 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35096 cat >>confdefs.h <<\_ACEOF
35097#define HAVE_PTHREAD_MUTEXATTR_T 1
35098_ACEOF
35099
35100 else
35101 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35102echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35103if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35104 echo $ECHO_N "(cached) $ECHO_C" >&6
35105else
35106
35107 cat >conftest.$ac_ext <<_ACEOF
35108/* confdefs.h. */
35109_ACEOF
35110cat confdefs.h >>conftest.$ac_ext
35111cat >>conftest.$ac_ext <<_ACEOF
35112/* end confdefs.h. */
35113#include <pthread.h>
35114int
35115main ()
35116{
35117
35118 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35119
35120 ;
35121 return 0;
35122}
35123_ACEOF
35124rm -f conftest.$ac_objext
35125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35126 (eval $ac_compile) 2>conftest.er1
a848cd7e 35127 ac_status=$?
ac1cb8d3
VS
35128 grep -v '^ *+' conftest.er1 >conftest.err
35129 rm -f conftest.er1
35130 cat conftest.err >&5
a848cd7e
SC
35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); } &&
dfe0c803
JS
35133 { ac_try='test -z "$ac_c_werror_flag"
35134 || test ! -s conftest.err'
ac1cb8d3
VS
35135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35136 (eval $ac_try) 2>&5
35137 ac_status=$?
35138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139 (exit $ac_status); }; } &&
35140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35142 (eval $ac_try) 2>&5
35143 ac_status=$?
35144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145 (exit $ac_status); }; }; then
35146
35147 wx_cv_type_pthread_rec_mutex_init=yes
35148
35149else
35150 echo "$as_me: failed program was:" >&5
35151sed 's/^/| /' conftest.$ac_ext >&5
35152
35153
35154 wx_cv_type_pthread_rec_mutex_init=no
35155
35156
35157fi
ac1cb8d3 35158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35159
35160fi
35161echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35162echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35163 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35164 cat >>confdefs.h <<\_ACEOF
35165#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35166_ACEOF
35167
35168 else
35169 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35170echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35171 fi
35172 fi
35173 fi
35174
35175else
35176 if test "$wxUSE_THREADS" = "yes" ; then
35177 case "${host}" in
35178 *-*-mingw32* )
35179 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35180echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35181if test "${wx_cv_cflags_mthread+set}" = set; then
35182 echo $ECHO_N "(cached) $ECHO_C" >&6
35183else
35184
35185 CFLAGS_OLD="$CFLAGS"
35186 CFLAGS="$CFLAGS -mthreads"
35187 cat >conftest.$ac_ext <<_ACEOF
35188/* confdefs.h. */
35189_ACEOF
35190cat confdefs.h >>conftest.$ac_ext
35191cat >>conftest.$ac_ext <<_ACEOF
35192/* end confdefs.h. */
35193
35194int
35195main ()
35196{
35197
35198 ;
35199 return 0;
35200}
35201_ACEOF
35202rm -f conftest.$ac_objext
35203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35204 (eval $ac_compile) 2>conftest.er1
a848cd7e 35205 ac_status=$?
ac1cb8d3
VS
35206 grep -v '^ *+' conftest.er1 >conftest.err
35207 rm -f conftest.er1
35208 cat conftest.err >&5
a848cd7e
SC
35209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35210 (exit $ac_status); } &&
dfe0c803
JS
35211 { ac_try='test -z "$ac_c_werror_flag"
35212 || test ! -s conftest.err'
ac1cb8d3
VS
35213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35214 (eval $ac_try) 2>&5
35215 ac_status=$?
35216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217 (exit $ac_status); }; } &&
35218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35220 (eval $ac_try) 2>&5
35221 ac_status=$?
35222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35223 (exit $ac_status); }; }; then
35224 wx_cv_cflags_mthread=yes
35225else
35226 echo "$as_me: failed program was:" >&5
35227sed 's/^/| /' conftest.$ac_ext >&5
35228
35229wx_cv_cflags_mthread=no
35230
35231fi
ac1cb8d3 35232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35233
35234
35235fi
35236echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35237echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35238
35239 if test "$wx_cv_cflags_mthread" = "yes"; then
35240 CXXFLAGS="$CXXFLAGS -mthreads"
35241 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35242 LDFLAGS="$LDFLAGS -mthreads"
35243 else
35244 CFLAGS="$CFLAGS_OLD"
35245 fi
35246 ;;
35247 *-pc-os2*emx )
35248 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35249 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35250 LDFLAGS="$LDFLAGS -Zmt"
35251 ;;
35252 esac
35253 fi
35254fi
35255
35256if test "$wxUSE_THREADS" = "yes"; then
35257 cat >>confdefs.h <<\_ACEOF
35258#define wxUSE_THREADS 1
35259_ACEOF
35260
35261
35262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35263else
35264 if test "$ac_cv_func_strtok_r" = "yes"; then
35265 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35266echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35267 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35268 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35269 echo "$as_me:$LINENO: result: yes" >&5
35270echo "${ECHO_T}yes" >&6
35271 else
35272 echo "$as_me:$LINENO: result: no" >&5
35273echo "${ECHO_T}no" >&6
35274 fi
35275 fi
35276fi
35277
35278if test "$WXGTK20" = 1 ; then
35279 cat >>confdefs.h <<_ACEOF
35280#define __WXGTK20__ $WXGTK20
35281_ACEOF
35282
35283 WXGTK12=1
35284fi
35285
35286if test "$WXGTK12" = 1 ; then
35287 cat >>confdefs.h <<_ACEOF
35288#define __WXGTK12__ $WXGTK12
35289_ACEOF
35290
35291fi
35292
35293if test "$WXGTK127" = 1 ; then
35294 cat >>confdefs.h <<_ACEOF
35295#define __WXGTK127__ $WXGTK127
35296_ACEOF
35297
35298fi
35299
35300if test "$WXGPE" = 1 ; then
35301 cat >>confdefs.h <<_ACEOF
35302#define __WXGPE__ $WXGPE
35303_ACEOF
35304
35305fi
35306
35307WXDEBUG=
35308
35309if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35310 WXDEBUG="-g"
35311 wxUSE_OPTIMISE=no
35312fi
35313
35314if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35315 wxUSE_DEBUG_INFO=yes
35316 WXDEBUG="-ggdb"
35317fi
35318
35319if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35320 cat >>confdefs.h <<\_ACEOF
35321#define WXDEBUG 1
35322_ACEOF
35323
35324 WXDEBUG_DEFINE="-D__WXDEBUG__"
35325else
35326 if test "$wxUSE_GTK" = 1 ; then
35327 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35328 fi
35329fi
35330
35331if test "$wxUSE_MEM_TRACING" = "yes" ; then
35332 cat >>confdefs.h <<\_ACEOF
35333#define wxUSE_MEMORY_TRACING 1
35334_ACEOF
35335
35336 cat >>confdefs.h <<\_ACEOF
35337#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35338_ACEOF
35339
35340 cat >>confdefs.h <<\_ACEOF
35341#define wxUSE_DEBUG_NEW_ALWAYS 1
35342_ACEOF
35343
35344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35345fi
35346
35347if test "$wxUSE_DMALLOC" = "yes" ; then
35348 DMALLOC_LIBS="-ldmalloc"
35349fi
35350
35351PROFILE=
35352if test "$wxUSE_PROFILE" = "yes" ; then
35353 PROFILE=" -pg"
35354fi
35355
35356CODE_GEN_FLAGS=
35357CODE_GEN_FLAGS_CXX=
35358if test "$GCC" = "yes" ; then
35359 if test "$wxUSE_NO_RTTI" = "yes" ; then
35360 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35361 fi
35362 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35363 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35364 fi
35365 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35366 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35367 fi
35368
35369 case "${host}" in
35370 powerpc*-*-aix* )
35371 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35372 ;;
35373 *-hppa* )
35374 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35375 ;;
35376 esac
35377fi
35378
35379OPTIMISE=
35380if test "$wxUSE_OPTIMISE" = "no" ; then
35381 if test "$GCC" = yes ; then
35382 OPTIMISE="-O0"
35383 fi
35384else
35385 if test "$GCC" = yes ; then
35386 OPTIMISE="-O2"
35387
35388 case "${host}" in
35389 i586-*-*|i686-*-* )
35390 OPTIMISE="${OPTIMISE} "
35391 ;;
35392 esac
35393 else
35394 OPTIMISE="-O"
35395 fi
35396fi
35397
35398
35399if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35400 cat >>confdefs.h <<\_ACEOF
35401#define WXWIN_COMPATIBILITY_2_2 1
35402_ACEOF
35403
35404
35405 WXWIN_COMPATIBILITY_2_4="yes"
35406fi
35407
35408if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35409 cat >>confdefs.h <<\_ACEOF
35410#define WXWIN_COMPATIBILITY_2_4 1
35411_ACEOF
35412
35413fi
35414
35415
35416if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35417 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35418#define wxUSE_GUI 1
35419_ACEOF
35420
35421
370fd4c2 35422 fi
a848cd7e
SC
35423
35424
35425if test "$wxUSE_UNIX" = "yes"; then
35426 cat >>confdefs.h <<\_ACEOF
35427#define wxUSE_UNIX 1
35428_ACEOF
35429
35430fi
35431
35432
35433if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35434
35435 HAVE_DL_FUNCS=0
35436 HAVE_SHL_FUNCS=0
35437 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35438 if test "$USE_DARWIN" = 1; then
35439 HAVE_DL_FUNCS=1
35440 else
35441
35442for ac_func in dlopen
35443do
35444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35445echo "$as_me:$LINENO: checking for $ac_func" >&5
35446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35447if eval "test \"\${$as_ac_var+set}\" = set"; then
35448 echo $ECHO_N "(cached) $ECHO_C" >&6
35449else
35450 cat >conftest.$ac_ext <<_ACEOF
35451/* confdefs.h. */
35452_ACEOF
35453cat confdefs.h >>conftest.$ac_ext
35454cat >>conftest.$ac_ext <<_ACEOF
35455/* end confdefs.h. */
ac1cb8d3
VS
35456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35458#define $ac_func innocuous_$ac_func
35459
a848cd7e
SC
35460/* System header to define __stub macros and hopefully few prototypes,
35461 which can conflict with char $ac_func (); below.
35462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35463 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35464
a848cd7e
SC
35465#ifdef __STDC__
35466# include <limits.h>
35467#else
35468# include <assert.h>
35469#endif
ac1cb8d3
VS
35470
35471#undef $ac_func
35472
a848cd7e
SC
35473/* Override any gcc2 internal prototype to avoid an error. */
35474#ifdef __cplusplus
35475extern "C"
35476{
35477#endif
35478/* We use char because int might match the return type of a gcc2
35479 builtin and then its argument prototype would still apply. */
35480char $ac_func ();
35481/* The GNU C library defines this for functions which it implements
35482 to always fail with ENOSYS. Some functions are actually named
35483 something starting with __ and the normal name is an alias. */
35484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35485choke me
35486#else
35487char (*f) () = $ac_func;
35488#endif
35489#ifdef __cplusplus
35490}
35491#endif
35492
35493int
35494main ()
35495{
35496return f != $ac_func;
35497 ;
35498 return 0;
35499}
35500_ACEOF
35501rm -f conftest.$ac_objext conftest$ac_exeext
35502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35503 (eval $ac_link) 2>conftest.er1
a848cd7e 35504 ac_status=$?
ac1cb8d3
VS
35505 grep -v '^ *+' conftest.er1 >conftest.err
35506 rm -f conftest.er1
35507 cat conftest.err >&5
a848cd7e
SC
35508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509 (exit $ac_status); } &&
dfe0c803
JS
35510 { ac_try='test -z "$ac_c_werror_flag"
35511 || test ! -s conftest.err'
ac1cb8d3
VS
35512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35513 (eval $ac_try) 2>&5
35514 ac_status=$?
35515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516 (exit $ac_status); }; } &&
35517 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35519 (eval $ac_try) 2>&5
35520 ac_status=$?
35521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522 (exit $ac_status); }; }; then
35523 eval "$as_ac_var=yes"
35524else
35525 echo "$as_me: failed program was:" >&5
35526sed 's/^/| /' conftest.$ac_ext >&5
35527
35528eval "$as_ac_var=no"
35529fi
ac1cb8d3
VS
35530rm -f conftest.err conftest.$ac_objext \
35531 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35532fi
35533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35534echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35535if test `eval echo '${'$as_ac_var'}'` = yes; then
35536 cat >>confdefs.h <<_ACEOF
35537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35538_ACEOF
35539
35540 cat >>confdefs.h <<\_ACEOF
35541#define HAVE_DLOPEN 1
35542_ACEOF
35543
35544 HAVE_DL_FUNCS=1
35545
35546else
35547
35548 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35549echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35550if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35551 echo $ECHO_N "(cached) $ECHO_C" >&6
35552else
35553 ac_check_lib_save_LIBS=$LIBS
35554LIBS="-ldl $LIBS"
35555cat >conftest.$ac_ext <<_ACEOF
35556/* confdefs.h. */
35557_ACEOF
35558cat confdefs.h >>conftest.$ac_ext
35559cat >>conftest.$ac_ext <<_ACEOF
35560/* end confdefs.h. */
35561
35562/* Override any gcc2 internal prototype to avoid an error. */
35563#ifdef __cplusplus
35564extern "C"
35565#endif
35566/* We use char because int might match the return type of a gcc2
35567 builtin and then its argument prototype would still apply. */
35568char dlopen ();
35569int
35570main ()
35571{
35572dlopen ();
35573 ;
35574 return 0;
35575}
35576_ACEOF
35577rm -f conftest.$ac_objext conftest$ac_exeext
35578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35579 (eval $ac_link) 2>conftest.er1
a848cd7e 35580 ac_status=$?
ac1cb8d3
VS
35581 grep -v '^ *+' conftest.er1 >conftest.err
35582 rm -f conftest.er1
35583 cat conftest.err >&5
a848cd7e
SC
35584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585 (exit $ac_status); } &&
dfe0c803
JS
35586 { ac_try='test -z "$ac_c_werror_flag"
35587 || test ! -s conftest.err'
ac1cb8d3
VS
35588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35589 (eval $ac_try) 2>&5
35590 ac_status=$?
35591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35592 (exit $ac_status); }; } &&
35593 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35595 (eval $ac_try) 2>&5
35596 ac_status=$?
35597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35598 (exit $ac_status); }; }; then
35599 ac_cv_lib_dl_dlopen=yes
35600else
35601 echo "$as_me: failed program was:" >&5
35602sed 's/^/| /' conftest.$ac_ext >&5
35603
35604ac_cv_lib_dl_dlopen=no
35605fi
ac1cb8d3
VS
35606rm -f conftest.err conftest.$ac_objext \
35607 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35608LIBS=$ac_check_lib_save_LIBS
35609fi
35610echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35611echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35612if test $ac_cv_lib_dl_dlopen = yes; then
35613
35614 cat >>confdefs.h <<\_ACEOF
35615#define HAVE_DLOPEN 1
35616_ACEOF
35617
35618 HAVE_DL_FUNCS=1
35619 DL_LINK=" -ldl$DL_LINK"
35620
35621else
35622
35623
35624for ac_func in shl_load
35625do
35626as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35627echo "$as_me:$LINENO: checking for $ac_func" >&5
35628echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35629if eval "test \"\${$as_ac_var+set}\" = set"; then
35630 echo $ECHO_N "(cached) $ECHO_C" >&6
35631else
35632 cat >conftest.$ac_ext <<_ACEOF
35633/* confdefs.h. */
35634_ACEOF
35635cat confdefs.h >>conftest.$ac_ext
35636cat >>conftest.$ac_ext <<_ACEOF
35637/* end confdefs.h. */
ac1cb8d3
VS
35638/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35640#define $ac_func innocuous_$ac_func
35641
a848cd7e
SC
35642/* System header to define __stub macros and hopefully few prototypes,
35643 which can conflict with char $ac_func (); below.
35644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35645 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35646
a848cd7e
SC
35647#ifdef __STDC__
35648# include <limits.h>
35649#else
35650# include <assert.h>
35651#endif
ac1cb8d3
VS
35652
35653#undef $ac_func
35654
a848cd7e
SC
35655/* Override any gcc2 internal prototype to avoid an error. */
35656#ifdef __cplusplus
35657extern "C"
35658{
35659#endif
35660/* We use char because int might match the return type of a gcc2
35661 builtin and then its argument prototype would still apply. */
35662char $ac_func ();
35663/* The GNU C library defines this for functions which it implements
35664 to always fail with ENOSYS. Some functions are actually named
35665 something starting with __ and the normal name is an alias. */
35666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35667choke me
35668#else
35669char (*f) () = $ac_func;
35670#endif
35671#ifdef __cplusplus
35672}
35673#endif
35674
35675int
35676main ()
35677{
35678return f != $ac_func;
35679 ;
35680 return 0;
35681}
35682_ACEOF
35683rm -f conftest.$ac_objext conftest$ac_exeext
35684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35685 (eval $ac_link) 2>conftest.er1
a848cd7e 35686 ac_status=$?
ac1cb8d3
VS
35687 grep -v '^ *+' conftest.er1 >conftest.err
35688 rm -f conftest.er1
35689 cat conftest.err >&5
a848cd7e
SC
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); } &&
dfe0c803
JS
35692 { ac_try='test -z "$ac_c_werror_flag"
35693 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
35699 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35701 (eval $ac_try) 2>&5
35702 ac_status=$?
35703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704 (exit $ac_status); }; }; then
35705 eval "$as_ac_var=yes"
35706else
35707 echo "$as_me: failed program was:" >&5
35708sed 's/^/| /' conftest.$ac_ext >&5
35709
35710eval "$as_ac_var=no"
35711fi
ac1cb8d3
VS
35712rm -f conftest.err conftest.$ac_objext \
35713 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35714fi
35715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35716echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35717if test `eval echo '${'$as_ac_var'}'` = yes; then
35718 cat >>confdefs.h <<_ACEOF
35719#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35720_ACEOF
35721
35722 cat >>confdefs.h <<\_ACEOF
35723#define HAVE_SHL_LOAD 1
35724_ACEOF
35725
35726 HAVE_SHL_FUNCS=1
35727
35728else
35729
35730 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35731echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35732if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35733 echo $ECHO_N "(cached) $ECHO_C" >&6
35734else
35735 ac_check_lib_save_LIBS=$LIBS
35736LIBS="-lshl_load $LIBS"
35737cat >conftest.$ac_ext <<_ACEOF
35738/* confdefs.h. */
35739_ACEOF
35740cat confdefs.h >>conftest.$ac_ext
35741cat >>conftest.$ac_ext <<_ACEOF
35742/* end confdefs.h. */
35743
35744/* Override any gcc2 internal prototype to avoid an error. */
35745#ifdef __cplusplus
35746extern "C"
35747#endif
35748/* We use char because int might match the return type of a gcc2
35749 builtin and then its argument prototype would still apply. */
35750char dld ();
35751int
35752main ()
35753{
35754dld ();
35755 ;
35756 return 0;
35757}
35758_ACEOF
35759rm -f conftest.$ac_objext conftest$ac_exeext
35760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35761 (eval $ac_link) 2>conftest.er1
a848cd7e 35762 ac_status=$?
ac1cb8d3
VS
35763 grep -v '^ *+' conftest.er1 >conftest.err
35764 rm -f conftest.er1
35765 cat conftest.err >&5
a848cd7e
SC
35766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35767 (exit $ac_status); } &&
dfe0c803
JS
35768 { ac_try='test -z "$ac_c_werror_flag"
35769 || test ! -s conftest.err'
ac1cb8d3
VS
35770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35771 (eval $ac_try) 2>&5
35772 ac_status=$?
35773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774 (exit $ac_status); }; } &&
35775 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35777 (eval $ac_try) 2>&5
35778 ac_status=$?
35779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35780 (exit $ac_status); }; }; then
35781 ac_cv_lib_shl_load_dld=yes
35782else
35783 echo "$as_me: failed program was:" >&5
35784sed 's/^/| /' conftest.$ac_ext >&5
35785
35786ac_cv_lib_shl_load_dld=no
35787fi
ac1cb8d3
VS
35788rm -f conftest.err conftest.$ac_objext \
35789 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35790LIBS=$ac_check_lib_save_LIBS
35791fi
35792echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35793echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35794if test $ac_cv_lib_shl_load_dld = yes; then
35795
35796 HAVE_SHL_FUNCS=1
35797 DL_LINK=" -ldld$DL_LINK"
35798
35799fi
35800
35801
35802fi
35803done
35804
35805
35806fi
35807
35808
35809fi
35810done
35811
35812
35813 if test "$HAVE_DL_FUNCS" = 1; then
35814
35815for ac_func in dlerror
35816do
35817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35818echo "$as_me:$LINENO: checking for $ac_func" >&5
35819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35820if eval "test \"\${$as_ac_var+set}\" = set"; then
35821 echo $ECHO_N "(cached) $ECHO_C" >&6
35822else
35823 cat >conftest.$ac_ext <<_ACEOF
35824/* confdefs.h. */
35825_ACEOF
35826cat confdefs.h >>conftest.$ac_ext
35827cat >>conftest.$ac_ext <<_ACEOF
35828/* end confdefs.h. */
ac1cb8d3
VS
35829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35831#define $ac_func innocuous_$ac_func
35832
a848cd7e
SC
35833/* System header to define __stub macros and hopefully few prototypes,
35834 which can conflict with char $ac_func (); below.
35835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35836 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35837
a848cd7e
SC
35838#ifdef __STDC__
35839# include <limits.h>
35840#else
35841# include <assert.h>
35842#endif
ac1cb8d3
VS
35843
35844#undef $ac_func
35845
a848cd7e
SC
35846/* Override any gcc2 internal prototype to avoid an error. */
35847#ifdef __cplusplus
35848extern "C"
35849{
35850#endif
35851/* We use char because int might match the return type of a gcc2
35852 builtin and then its argument prototype would still apply. */
35853char $ac_func ();
35854/* The GNU C library defines this for functions which it implements
35855 to always fail with ENOSYS. Some functions are actually named
35856 something starting with __ and the normal name is an alias. */
35857#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35858choke me
35859#else
35860char (*f) () = $ac_func;
35861#endif
35862#ifdef __cplusplus
35863}
35864#endif
35865
35866int
35867main ()
35868{
35869return f != $ac_func;
35870 ;
35871 return 0;
35872}
35873_ACEOF
35874rm -f conftest.$ac_objext conftest$ac_exeext
35875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35876 (eval $ac_link) 2>conftest.er1
a848cd7e 35877 ac_status=$?
ac1cb8d3
VS
35878 grep -v '^ *+' conftest.er1 >conftest.err
35879 rm -f conftest.er1
35880 cat conftest.err >&5
a848cd7e
SC
35881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882 (exit $ac_status); } &&
dfe0c803
JS
35883 { ac_try='test -z "$ac_c_werror_flag"
35884 || test ! -s conftest.err'
ac1cb8d3
VS
35885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35886 (eval $ac_try) 2>&5
35887 ac_status=$?
35888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35889 (exit $ac_status); }; } &&
35890 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35892 (eval $ac_try) 2>&5
35893 ac_status=$?
35894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35895 (exit $ac_status); }; }; then
35896 eval "$as_ac_var=yes"
35897else
35898 echo "$as_me: failed program was:" >&5
35899sed 's/^/| /' conftest.$ac_ext >&5
35900
35901eval "$as_ac_var=no"
35902fi
ac1cb8d3
VS
35903rm -f conftest.err conftest.$ac_objext \
35904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35905fi
35906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35907echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35908if test `eval echo '${'$as_ac_var'}'` = yes; then
35909 cat >>confdefs.h <<_ACEOF
35910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35911_ACEOF
35912 cat >>confdefs.h <<\_ACEOF
35913#define HAVE_DLERROR 1
35914_ACEOF
35915
35916else
35917
35918 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35919echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35920if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35921 echo $ECHO_N "(cached) $ECHO_C" >&6
35922else
35923 ac_check_lib_save_LIBS=$LIBS
35924LIBS="-ldl $LIBS"
35925cat >conftest.$ac_ext <<_ACEOF
35926/* confdefs.h. */
35927_ACEOF
35928cat confdefs.h >>conftest.$ac_ext
35929cat >>conftest.$ac_ext <<_ACEOF
35930/* end confdefs.h. */
35931
35932/* Override any gcc2 internal prototype to avoid an error. */
35933#ifdef __cplusplus
35934extern "C"
35935#endif
35936/* We use char because int might match the return type of a gcc2
35937 builtin and then its argument prototype would still apply. */
35938char dlerror ();
35939int
35940main ()
35941{
35942dlerror ();
35943 ;
35944 return 0;
35945}
35946_ACEOF
35947rm -f conftest.$ac_objext conftest$ac_exeext
35948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35949 (eval $ac_link) 2>conftest.er1
a848cd7e 35950 ac_status=$?
ac1cb8d3
VS
35951 grep -v '^ *+' conftest.er1 >conftest.err
35952 rm -f conftest.er1
35953 cat conftest.err >&5
a848cd7e
SC
35954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35955 (exit $ac_status); } &&
dfe0c803
JS
35956 { ac_try='test -z "$ac_c_werror_flag"
35957 || test ! -s conftest.err'
ac1cb8d3
VS
35958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35959 (eval $ac_try) 2>&5
35960 ac_status=$?
35961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962 (exit $ac_status); }; } &&
35963 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35965 (eval $ac_try) 2>&5
35966 ac_status=$?
35967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968 (exit $ac_status); }; }; then
35969 ac_cv_lib_dl_dlerror=yes
35970else
35971 echo "$as_me: failed program was:" >&5
35972sed 's/^/| /' conftest.$ac_ext >&5
35973
35974ac_cv_lib_dl_dlerror=no
35975fi
ac1cb8d3
VS
35976rm -f conftest.err conftest.$ac_objext \
35977 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35978LIBS=$ac_check_lib_save_LIBS
35979fi
35980echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35981echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35982if test $ac_cv_lib_dl_dlerror = yes; then
35983 cat >>confdefs.h <<\_ACEOF
35984#define HAVE_DLERROR 1
35985_ACEOF
35986
35987fi
35988
35989
35990
35991fi
35992done
35993
35994 fi
35995 fi
35996
35997 if test "$HAVE_DL_FUNCS" = 0; then
35998 if test "$HAVE_SHL_FUNCS" = 0; then
35999 if test "$USE_UNIX" = 1; then
36000 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36001echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36002 wxUSE_DYNAMIC_LOADER=no
36003 wxUSE_DYNLIB_CLASS=no
36004 else
36005 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36006echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36007 fi
36008 fi
36009 fi
36010 fi
36011fi
36012
36013if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36014 cat >>confdefs.h <<\_ACEOF
36015#define wxUSE_DYNAMIC_LOADER 1
36016_ACEOF
36017
36018fi
36019if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36020 cat >>confdefs.h <<\_ACEOF
36021#define wxUSE_DYNLIB_CLASS 1
36022_ACEOF
36023
36024fi
36025
36026
36027
36028if test "$wxUSE_PLUGINS" = "yes" ; then
36029 if test "$wxUSE_SHARED" = "no" ; then
36030 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36031echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36032 wxUSE_PLUGINS=no
36033 fi
36034 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36035 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36036echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36037 wxUSE_PLUGINS=no
36038 fi
36039 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36040 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36041echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36042 wxUSE_PLUGINS=no
36043 fi
36044 if test "$wxUSE_PLUGINS" = "yes" ; then
36045 cat >>confdefs.h <<\_ACEOF
36046#define wxUSE_PLUGINS 1
36047_ACEOF
36048
36049 fi
36050fi
36051
36052
36053if test "$wxUSE_STL" = "yes"; then
36054 cat >>confdefs.h <<\_ACEOF
36055#define wxUSE_STL 1
36056_ACEOF
36057
36058fi
36059
36060if test "$wxUSE_APPLE_IEEE" = "yes"; then
36061 cat >>confdefs.h <<\_ACEOF
36062#define wxUSE_APPLE_IEEE 1
36063_ACEOF
36064
36065fi
36066
36067if test "$wxUSE_TIMER" = "yes"; then
36068 cat >>confdefs.h <<\_ACEOF
36069#define wxUSE_TIMER 1
36070_ACEOF
36071
36072fi
36073
36074WITH_PLUGIN_SDL=0
36075if test "$wxUSE_SOUND" = "yes"; then
36076 if test "$USE_UNIX" = "1" ; then
36077
36078for ac_header in sys/soundcard.h
36079do
36080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36081if eval "test \"\${$as_ac_Header+set}\" = set"; then
36082 echo "$as_me:$LINENO: checking for $ac_header" >&5
36083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36084if eval "test \"\${$as_ac_Header+set}\" = set"; then
36085 echo $ECHO_N "(cached) $ECHO_C" >&6
36086fi
36087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36089else
36090 # Is the header compilable?
36091echo "$as_me:$LINENO: checking $ac_header usability" >&5
36092echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36093cat >conftest.$ac_ext <<_ACEOF
36094/* confdefs.h. */
36095_ACEOF
36096cat confdefs.h >>conftest.$ac_ext
36097cat >>conftest.$ac_ext <<_ACEOF
36098/* end confdefs.h. */
36099$ac_includes_default
36100#include <$ac_header>
36101_ACEOF
36102rm -f conftest.$ac_objext
36103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36104 (eval $ac_compile) 2>conftest.er1
a848cd7e 36105 ac_status=$?
ac1cb8d3
VS
36106 grep -v '^ *+' conftest.er1 >conftest.err
36107 rm -f conftest.er1
36108 cat conftest.err >&5
a848cd7e
SC
36109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36110 (exit $ac_status); } &&
dfe0c803
JS
36111 { ac_try='test -z "$ac_c_werror_flag"
36112 || test ! -s conftest.err'
ac1cb8d3
VS
36113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36114 (eval $ac_try) 2>&5
36115 ac_status=$?
36116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117 (exit $ac_status); }; } &&
36118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36120 (eval $ac_try) 2>&5
36121 ac_status=$?
36122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123 (exit $ac_status); }; }; then
36124 ac_header_compiler=yes
36125else
36126 echo "$as_me: failed program was:" >&5
36127sed 's/^/| /' conftest.$ac_ext >&5
36128
36129ac_header_compiler=no
36130fi
ac1cb8d3 36131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36133echo "${ECHO_T}$ac_header_compiler" >&6
36134
36135# Is the header present?
36136echo "$as_me:$LINENO: checking $ac_header presence" >&5
36137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36138cat >conftest.$ac_ext <<_ACEOF
36139/* confdefs.h. */
36140_ACEOF
36141cat confdefs.h >>conftest.$ac_ext
36142cat >>conftest.$ac_ext <<_ACEOF
36143/* end confdefs.h. */
36144#include <$ac_header>
36145_ACEOF
36146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36148 ac_status=$?
36149 grep -v '^ *+' conftest.er1 >conftest.err
36150 rm -f conftest.er1
36151 cat conftest.err >&5
36152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153 (exit $ac_status); } >/dev/null; then
36154 if test -s conftest.err; then
36155 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36157 else
36158 ac_cpp_err=
36159 fi
36160else
36161 ac_cpp_err=yes
36162fi
36163if test -z "$ac_cpp_err"; then
36164 ac_header_preproc=yes
36165else
36166 echo "$as_me: failed program was:" >&5
36167sed 's/^/| /' conftest.$ac_ext >&5
36168
36169 ac_header_preproc=no
36170fi
36171rm -f conftest.err conftest.$ac_ext
36172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36173echo "${ECHO_T}$ac_header_preproc" >&6
36174
36175# So? What about this header?
ac1cb8d3
VS
36176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36177 yes:no: )
a848cd7e
SC
36178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36182 ac_header_preproc=yes
a848cd7e 36183 ;;
ac1cb8d3 36184 no:yes:* )
a848cd7e
SC
36185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36197 (
36198 cat <<\_ASBOX
ac1cb8d3
VS
36199## ----------------------------------------- ##
36200## Report this to wx-dev@lists.wxwidgets.org ##
36201## ----------------------------------------- ##
a848cd7e
SC
36202_ASBOX
36203 ) |
36204 sed "s/^/$as_me: WARNING: /" >&2
36205 ;;
36206esac
36207echo "$as_me:$LINENO: checking for $ac_header" >&5
36208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36209if eval "test \"\${$as_ac_Header+set}\" = set"; then
36210 echo $ECHO_N "(cached) $ECHO_C" >&6
36211else
ac1cb8d3 36212 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36213fi
36214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36216
36217fi
36218if test `eval echo '${'$as_ac_Header'}'` = yes; then
36219 cat >>confdefs.h <<_ACEOF
36220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36221_ACEOF
36222
36223fi
36224
36225done
36226
36227
36228 if test "$wxUSE_LIBSDL" != "no"; then
36229
36230# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36231if test "${with_sdl_prefix+set}" = set; then
36232 withval="$with_sdl_prefix"
36233 sdl_prefix="$withval"
36234else
36235 sdl_prefix=""
36236fi;
36237
36238# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36239if test "${with_sdl_exec_prefix+set}" = set; then
36240 withval="$with_sdl_exec_prefix"
36241 sdl_exec_prefix="$withval"
36242else
36243 sdl_exec_prefix=""
36244fi;
36245# Check whether --enable-sdltest or --disable-sdltest was given.
36246if test "${enable_sdltest+set}" = set; then
36247 enableval="$enable_sdltest"
36248
36249else
36250 enable_sdltest=yes
36251fi;
36252
36253 if test x$sdl_exec_prefix != x ; then
36254 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36255 if test x${SDL_CONFIG+set} != xset ; then
36256 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36257 fi
36258 fi
36259 if test x$sdl_prefix != x ; then
36260 sdl_args="$sdl_args --prefix=$sdl_prefix"
36261 if test x${SDL_CONFIG+set} != xset ; then
36262 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36263 fi
36264 fi
36265
36266
36267 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36268 # Extract the first word of "sdl-config", so it can be a program name with args.
36269set dummy sdl-config; ac_word=$2
36270echo "$as_me:$LINENO: checking for $ac_word" >&5
36271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36272if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36273 echo $ECHO_N "(cached) $ECHO_C" >&6
36274else
36275 case $SDL_CONFIG in
36276 [\\/]* | ?:[\\/]*)
36277 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36278 ;;
36279 *)
36280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36281for as_dir in $PATH
36282do
36283 IFS=$as_save_IFS
36284 test -z "$as_dir" && as_dir=.
36285 for ac_exec_ext in '' $ac_executable_extensions; do
36286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36287 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36289 break 2
36290 fi
36291done
36292done
36293
36294 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36295 ;;
36296esac
36297fi
36298SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36299
36300if test -n "$SDL_CONFIG"; then
36301 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36302echo "${ECHO_T}$SDL_CONFIG" >&6
36303else
36304 echo "$as_me:$LINENO: result: no" >&5
36305echo "${ECHO_T}no" >&6
36306fi
36307
36308 min_sdl_version=1.2.0
36309 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36310echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36311 no_sdl=""
36312 if test "$SDL_CONFIG" = "no" ; then
36313 no_sdl=yes
36314 else
36315 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36316 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36317
36318 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36319 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36320 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36321 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36322 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36323 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36324 if test "x$enable_sdltest" = "xyes" ; then
36325 ac_save_CFLAGS="$CFLAGS"
94acd38e 36326 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36327 ac_save_LIBS="$LIBS"
36328 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36329 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36330 LIBS="$LIBS $SDL_LIBS"
36331 rm -f conf.sdltest
36332 if test "$cross_compiling" = yes; then
36333 echo $ac_n "cross compiling; assumed OK... $ac_c"
36334else
36335 cat >conftest.$ac_ext <<_ACEOF
36336/* confdefs.h. */
36337_ACEOF
36338cat confdefs.h >>conftest.$ac_ext
36339cat >>conftest.$ac_ext <<_ACEOF
36340/* end confdefs.h. */
36341
36342#include <stdio.h>
36343#include <stdlib.h>
36344#include <string.h>
36345#include "SDL.h"
36346
36347char*
36348my_strdup (char *str)
36349{
36350 char *new_str;
36351
36352 if (str)
36353 {
36354 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36355 strcpy (new_str, str);
36356 }
36357 else
36358 new_str = NULL;
36359
36360 return new_str;
36361}
36362
36363int main (int argc, char *argv[])
36364{
36365 int major, minor, micro;
36366 char *tmp_version;
36367
36368 /* This hangs on some systems (?)
36369 system ("touch conf.sdltest");
36370 */
36371 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36372
36373 /* HP/UX 9 (%@#!) writes to sscanf strings */
36374 tmp_version = my_strdup("$min_sdl_version");
36375 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36376 printf("%s, bad version string\n", "$min_sdl_version");
36377 exit(1);
36378 }
36379
36380 if (($sdl_major_version > major) ||
36381 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36382 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36383 {
36384 return 0;
36385 }
36386 else
36387 {
36388 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36389 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36390 printf("*** best to upgrade to the required version.\n");
36391 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36392 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36393 printf("*** config.cache before re-running configure\n");
36394 return 1;
36395 }
36396}
36397
36398
36399_ACEOF
36400rm -f conftest$ac_exeext
36401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36402 (eval $ac_link) 2>&5
36403 ac_status=$?
36404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36407 (eval $ac_try) 2>&5
36408 ac_status=$?
36409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36410 (exit $ac_status); }; }; then
36411 :
36412else
36413 echo "$as_me: program exited with status $ac_status" >&5
36414echo "$as_me: failed program was:" >&5
36415sed 's/^/| /' conftest.$ac_ext >&5
36416
36417( exit $ac_status )
36418no_sdl=yes
36419fi
ac1cb8d3 36420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36421fi
36422 CFLAGS="$ac_save_CFLAGS"
94acd38e 36423 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36424 LIBS="$ac_save_LIBS"
36425 fi
36426 fi
36427 if test "x$no_sdl" = x ; then
36428 echo "$as_me:$LINENO: result: yes" >&5
36429echo "${ECHO_T}yes" >&6
36430
36431 EXTRALIBS_SDL="$SDL_LIBS"
36432 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36433 cat >>confdefs.h <<\_ACEOF
36434#define wxUSE_LIBSDL 1
36435_ACEOF
36436
36437
36438 else
36439 echo "$as_me:$LINENO: result: no" >&5
36440echo "${ECHO_T}no" >&6
36441 if test "$SDL_CONFIG" = "no" ; then
36442 echo "*** The sdl-config script installed by SDL could not be found"
36443 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36444 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36445 echo "*** full path to sdl-config."
36446 else
36447 if test -f conf.sdltest ; then
36448 :
36449 else
36450 echo "*** Could not run SDL test program, checking why..."
36451 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36452 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36453 LIBS="$LIBS $SDL_LIBS"
36454 cat >conftest.$ac_ext <<_ACEOF
36455/* confdefs.h. */
36456_ACEOF
36457cat confdefs.h >>conftest.$ac_ext
36458cat >>conftest.$ac_ext <<_ACEOF
36459/* end confdefs.h. */
36460
36461#include <stdio.h>
36462#include "SDL.h"
36463
36464int main(int argc, char *argv[])
36465{ return 0; }
36466#undef main
36467#define main K_and_R_C_main
36468
36469int
36470main ()
36471{
36472 return 0;
36473 ;
36474 return 0;
36475}
36476_ACEOF
36477rm -f conftest.$ac_objext conftest$ac_exeext
36478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36479 (eval $ac_link) 2>conftest.er1
a848cd7e 36480 ac_status=$?
ac1cb8d3
VS
36481 grep -v '^ *+' conftest.er1 >conftest.err
36482 rm -f conftest.er1
36483 cat conftest.err >&5
a848cd7e
SC
36484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36485 (exit $ac_status); } &&
dfe0c803
JS
36486 { ac_try='test -z "$ac_c_werror_flag"
36487 || test ! -s conftest.err'
ac1cb8d3
VS
36488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36489 (eval $ac_try) 2>&5
36490 ac_status=$?
36491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492 (exit $ac_status); }; } &&
36493 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36495 (eval $ac_try) 2>&5
36496 ac_status=$?
36497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36498 (exit $ac_status); }; }; then
36499 echo "*** The test program compiled, but did not run. This usually means"
36500 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36501 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36502 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36503 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36504 echo "*** is required on your system"
36505 echo "***"
36506 echo "*** If you have an old version installed, it is best to remove it, although"
36507 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36508else
36509 echo "$as_me: failed program was:" >&5
36510sed 's/^/| /' conftest.$ac_ext >&5
36511
36512 echo "*** The test program failed to compile or link. See the file config.log for the"
36513 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36514 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36515 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36516fi
ac1cb8d3
VS
36517rm -f conftest.err conftest.$ac_objext \
36518 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36519 CFLAGS="$ac_save_CFLAGS"
94acd38e 36520 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36521 LIBS="$ac_save_LIBS"
36522 fi
36523 fi
36524 SDL_CFLAGS=""
36525 SDL_LIBS=""
36526 wxUSE_LIBSDL="no"
36527 fi
36528
36529
36530 rm -f conf.sdltest
36531
36532 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36533 WITH_PLUGIN_SDL=1
36534 fi
36535 fi
36536 fi
36537
36538 cat >>confdefs.h <<\_ACEOF
36539#define wxUSE_SOUND 1
36540_ACEOF
36541
36542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36543fi
36544
d1c38808
VZ
36545if test "$WXGTK20" = 1; then
36546 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36547 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36548
36549
36550 succeeded=no
36551
36552 if test -z "$PKG_CONFIG"; then
36553 # Extract the first word of "pkg-config", so it can be a program name with args.
36554set dummy pkg-config; ac_word=$2
36555echo "$as_me:$LINENO: checking for $ac_word" >&5
36556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36557if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36558 echo $ECHO_N "(cached) $ECHO_C" >&6
36559else
36560 case $PKG_CONFIG in
36561 [\\/]* | ?:[\\/]*)
36562 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36563 ;;
36564 *)
36565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36566for as_dir in $PATH
36567do
36568 IFS=$as_save_IFS
36569 test -z "$as_dir" && as_dir=.
36570 for ac_exec_ext in '' $ac_executable_extensions; do
36571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36572 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36574 break 2
36575 fi
36576done
36577done
36578
36579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36580 ;;
36581esac
36582fi
36583PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36584
36585if test -n "$PKG_CONFIG"; then
36586 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36587echo "${ECHO_T}$PKG_CONFIG" >&6
36588else
36589 echo "$as_me:$LINENO: result: no" >&5
36590echo "${ECHO_T}no" >&6
36591fi
36592
36593 fi
36594
36595 if test "$PKG_CONFIG" = "no" ; then
36596 echo "*** The pkg-config script could not be found. Make sure it is"
36597 echo "*** in your path, or set the PKG_CONFIG environment variable"
36598 echo "*** to the full path to pkg-config."
36599 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36600 else
36601 PKG_CONFIG_MIN_VERSION=0.9.0
36602 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36603 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36604echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36605
ffa762ff 36606 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36607 echo "$as_me:$LINENO: result: yes" >&5
36608echo "${ECHO_T}yes" >&6
36609 succeeded=yes
36610
36611 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36612echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36613 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36614 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36615echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36616
36617 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36618echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36619 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36620 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36621echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36622 else
36623 LIBGNOMEPRINTUI_CFLAGS=""
36624 LIBGNOMEPRINTUI_LIBS=""
36625 ## If we have a custom action on failure, don't print errors, but
36626 ## do set a variable so people can do so.
ffa762ff 36627 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36628
36629 fi
36630
36631
36632
36633 else
36634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36636 fi
36637 fi
36638
36639 if test $succeeded = yes; then
36640
d1c38808
VZ
36641 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36642 cat >>confdefs.h <<\_ACEOF
36643#define wxUSE_LIBGNOMEPRINT 1
36644_ACEOF
36645
36646
36647 else
36648
36649 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36650echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36651 wxUSE_LIBGNOMEPRINT="no"
36652
36653
36654 fi
36655
36656 fi
36657 fi
36658fi
36659
36660
a848cd7e
SC
36661if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36662 cat >>confdefs.h <<\_ACEOF
36663#define wxUSE_CMDLINE_PARSER 1
36664_ACEOF
36665
36666fi
36667
36668if test "$wxUSE_STOPWATCH" = "yes"; then
36669 cat >>confdefs.h <<\_ACEOF
36670#define wxUSE_STOPWATCH 1
36671_ACEOF
36672
36673fi
36674
36675if test "$wxUSE_DATETIME" = "yes"; then
36676 cat >>confdefs.h <<\_ACEOF
36677#define wxUSE_DATETIME 1
36678_ACEOF
36679
36680fi
36681
36682if test "$wxUSE_FILE" = "yes"; then
36683 cat >>confdefs.h <<\_ACEOF
36684#define wxUSE_FILE 1
36685_ACEOF
36686
36687fi
36688
36689if test "$wxUSE_FFILE" = "yes"; then
36690 cat >>confdefs.h <<\_ACEOF
36691#define wxUSE_FFILE 1
36692_ACEOF
36693
36694fi
36695
36696if test "$wxUSE_FILESYSTEM" = "yes"; then
36697 cat >>confdefs.h <<\_ACEOF
36698#define wxUSE_FILESYSTEM 1
36699_ACEOF
36700
36701fi
36702
36703if test "$wxUSE_FS_ZIP" = "yes"; then
36704 cat >>confdefs.h <<\_ACEOF
36705#define wxUSE_FS_ZIP 1
36706_ACEOF
36707
36708fi
36709
9e8e867f 36710if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36711 cat >>confdefs.h <<\_ACEOF
9e8e867f 36712#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36713_ACEOF
36714
36715fi
36716
36717if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36718 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36719 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36720echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36721 elif test "$wxUSE_ZLIB" = "no"; then
36722 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36723echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36724 else
36725 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36726#define wxUSE_ZIPSTREAM 1
36727_ACEOF
36728
81f90336 36729 fi
a848cd7e
SC
36730fi
36731
a848cd7e
SC
36732if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36733 cat >>confdefs.h <<\_ACEOF
36734#define wxUSE_ON_FATAL_EXCEPTION 1
36735_ACEOF
36736
36737fi
36738
eaff0f0d
VZ
36739if test "$wxUSE_STACKWALKER" = "yes"; then
36740 cat >>confdefs.h <<\_ACEOF
36741#define wxUSE_STACKWALKER 1
36742_ACEOF
36743
36744fi
36745
36b6448c 36746if test "$wxUSE_DEBUGREPORT" = "yes"; then
dfe0c803
JS
36747 if test "$USE_OS2" = "1"; then
36748 { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5
36749echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;}
36750 wxUSE_DEBUGREPORT=no
36751 else
36752 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
36753#define wxUSE_DEBUGREPORT 1
36754_ACEOF
36755
dfe0c803
JS
36756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36757 fi
36b6448c
VZ
36758fi
36759
a848cd7e
SC
36760if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36761 cat >>confdefs.h <<\_ACEOF
36762#define wxUSE_SNGLINST_CHECKER 1
36763_ACEOF
36764
36765fi
36766
36767if test "$wxUSE_BUSYINFO" = "yes"; then
36768 cat >>confdefs.h <<\_ACEOF
36769#define wxUSE_BUSYINFO 1
36770_ACEOF
36771
36772fi
36773
36774if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36775 cat >>confdefs.h <<\_ACEOF
36776#define wxUSE_STD_IOSTREAM 1
36777_ACEOF
36778
36779fi
36780
07158944
VZ
36781if test "$wxUSE_STDPATHS" = "yes"; then
36782 cat >>confdefs.h <<\_ACEOF
36783#define wxUSE_STDPATHS 1
36784_ACEOF
36785
36786fi
36787
a848cd7e
SC
36788if test "$wxUSE_TEXTBUFFER" = "yes"; then
36789 cat >>confdefs.h <<\_ACEOF
36790#define wxUSE_TEXTBUFFER 1
36791_ACEOF
36792
36793fi
36794
36795if test "$wxUSE_TEXTFILE" = "yes"; then
36796 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36797 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36798echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36799 else
36800 cat >>confdefs.h <<\_ACEOF
36801#define wxUSE_TEXTFILE 1
36802_ACEOF
36803
36804 fi
36805fi
36806
36807if test "$wxUSE_CONFIG" = "yes" ; then
36808 if test "$wxUSE_TEXTFILE" != "yes"; then
36809 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36810echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36811 else
36812 cat >>confdefs.h <<\_ACEOF
36813#define wxUSE_CONFIG 1
89be85c2
VS
36814_ACEOF
36815
36816 cat >>confdefs.h <<\_ACEOF
36817#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36818_ACEOF
36819
36820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36821 fi
36822fi
36823
36824if test "$wxUSE_INTL" = "yes" ; then
36825 if test "$wxUSE_FILE" != "yes"; then
36826 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36827echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36828 else
36829 cat >>confdefs.h <<\_ACEOF
36830#define wxUSE_INTL 1
36831_ACEOF
36832
36833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36834 GUIDIST="$GUIDIST INTL_DIST"
36835 fi
36836fi
36837
36838if test "$wxUSE_LOG" = "yes"; then
36839 cat >>confdefs.h <<\_ACEOF
36840#define wxUSE_LOG 1
36841_ACEOF
36842
36843
36844 if test "$wxUSE_LOGGUI" = "yes"; then
36845 cat >>confdefs.h <<\_ACEOF
36846#define wxUSE_LOGGUI 1
36847_ACEOF
36848
36849 fi
36850
36851 if test "$wxUSE_LOGWINDOW" = "yes"; then
36852 cat >>confdefs.h <<\_ACEOF
36853#define wxUSE_LOGWINDOW 1
36854_ACEOF
36855
36856 fi
36857
36858 if test "$wxUSE_LOGDIALOG" = "yes"; then
36859 cat >>confdefs.h <<\_ACEOF
36860#define wxUSE_LOG_DIALOG 1
36861_ACEOF
36862
36863 fi
0b78747f
MW
36864
36865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
36866fi
36867
36868if test "$wxUSE_LONGLONG" = "yes"; then
36869 cat >>confdefs.h <<\_ACEOF
36870#define wxUSE_LONGLONG 1
36871_ACEOF
36872
36873fi
36874
36875if test "$wxUSE_GEOMETRY" = "yes"; then
36876 cat >>confdefs.h <<\_ACEOF
36877#define wxUSE_GEOMETRY 1
36878_ACEOF
36879
36880fi
36881
a848cd7e
SC
36882if test "$wxUSE_STREAMS" = "yes" ; then
36883 cat >>confdefs.h <<\_ACEOF
36884#define wxUSE_STREAMS 1
36885_ACEOF
36886
36887fi
36888
36889
36890if test "$wxUSE_DATETIME" = "yes"; then
36891
36892for ac_func in strptime
36893do
36894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36895echo "$as_me:$LINENO: checking for $ac_func" >&5
36896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36897if eval "test \"\${$as_ac_var+set}\" = set"; then
36898 echo $ECHO_N "(cached) $ECHO_C" >&6
36899else
36900 cat >conftest.$ac_ext <<_ACEOF
36901/* confdefs.h. */
36902_ACEOF
36903cat confdefs.h >>conftest.$ac_ext
36904cat >>conftest.$ac_ext <<_ACEOF
36905/* end confdefs.h. */
ac1cb8d3
VS
36906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36908#define $ac_func innocuous_$ac_func
36909
a848cd7e
SC
36910/* System header to define __stub macros and hopefully few prototypes,
36911 which can conflict with char $ac_func (); below.
36912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36913 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36914
a848cd7e
SC
36915#ifdef __STDC__
36916# include <limits.h>
36917#else
36918# include <assert.h>
36919#endif
ac1cb8d3
VS
36920
36921#undef $ac_func
36922
a848cd7e
SC
36923/* Override any gcc2 internal prototype to avoid an error. */
36924#ifdef __cplusplus
36925extern "C"
36926{
36927#endif
36928/* We use char because int might match the return type of a gcc2
36929 builtin and then its argument prototype would still apply. */
36930char $ac_func ();
36931/* The GNU C library defines this for functions which it implements
36932 to always fail with ENOSYS. Some functions are actually named
36933 something starting with __ and the normal name is an alias. */
36934#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36935choke me
36936#else
36937char (*f) () = $ac_func;
36938#endif
36939#ifdef __cplusplus
36940}
36941#endif
36942
36943int
36944main ()
36945{
36946return f != $ac_func;
36947 ;
36948 return 0;
36949}
36950_ACEOF
36951rm -f conftest.$ac_objext conftest$ac_exeext
36952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36953 (eval $ac_link) 2>conftest.er1
a848cd7e 36954 ac_status=$?
ac1cb8d3
VS
36955 grep -v '^ *+' conftest.er1 >conftest.err
36956 rm -f conftest.er1
36957 cat conftest.err >&5
a848cd7e
SC
36958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959 (exit $ac_status); } &&
dfe0c803
JS
36960 { ac_try='test -z "$ac_c_werror_flag"
36961 || test ! -s conftest.err'
ac1cb8d3
VS
36962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36963 (eval $ac_try) 2>&5
36964 ac_status=$?
36965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36966 (exit $ac_status); }; } &&
36967 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36969 (eval $ac_try) 2>&5
36970 ac_status=$?
36971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36972 (exit $ac_status); }; }; then
36973 eval "$as_ac_var=yes"
36974else
36975 echo "$as_me: failed program was:" >&5
36976sed 's/^/| /' conftest.$ac_ext >&5
36977
36978eval "$as_ac_var=no"
36979fi
ac1cb8d3
VS
36980rm -f conftest.err conftest.$ac_objext \
36981 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36982fi
36983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36984echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36985if test `eval echo '${'$as_ac_var'}'` = yes; then
36986 cat >>confdefs.h <<_ACEOF
36987#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36988_ACEOF
36989
36990fi
36991done
36992
36993
36994 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36995echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36996if test "${wx_cv_var_timezone+set}" = set; then
36997 echo $ECHO_N "(cached) $ECHO_C" >&6
36998else
36999
37000 cat >conftest.$ac_ext <<_ACEOF
37001/* confdefs.h. */
37002_ACEOF
37003cat confdefs.h >>conftest.$ac_ext
37004cat >>conftest.$ac_ext <<_ACEOF
37005/* end confdefs.h. */
37006
37007 #include <time.h>
37008
37009int
37010main ()
37011{
37012
37013 int tz;
37014 tz = timezone;
37015
37016 ;
37017 return 0;
37018}
37019_ACEOF
37020rm -f conftest.$ac_objext
37021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37022 (eval $ac_compile) 2>conftest.er1
a848cd7e 37023 ac_status=$?
ac1cb8d3
VS
37024 grep -v '^ *+' conftest.er1 >conftest.err
37025 rm -f conftest.er1
37026 cat conftest.err >&5
a848cd7e
SC
37027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37028 (exit $ac_status); } &&
dfe0c803
JS
37029 { ac_try='test -z "$ac_c_werror_flag"
37030 || test ! -s conftest.err'
ac1cb8d3
VS
37031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37032 (eval $ac_try) 2>&5
37033 ac_status=$?
37034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37035 (exit $ac_status); }; } &&
37036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37038 (eval $ac_try) 2>&5
37039 ac_status=$?
37040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37041 (exit $ac_status); }; }; then
37042
37043 wx_cv_var_timezone=timezone
37044
37045else
37046 echo "$as_me: failed program was:" >&5
37047sed 's/^/| /' conftest.$ac_ext >&5
37048
37049
37050 cat >conftest.$ac_ext <<_ACEOF
37051/* confdefs.h. */
37052_ACEOF
37053cat confdefs.h >>conftest.$ac_ext
37054cat >>conftest.$ac_ext <<_ACEOF
37055/* end confdefs.h. */
37056
37057 #include <time.h>
37058
37059int
37060main ()
37061{
37062
37063 int tz;
37064 tz = _timezone;
37065
37066 ;
37067 return 0;
37068}
37069_ACEOF
37070rm -f conftest.$ac_objext
37071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37072 (eval $ac_compile) 2>conftest.er1
a848cd7e 37073 ac_status=$?
ac1cb8d3
VS
37074 grep -v '^ *+' conftest.er1 >conftest.err
37075 rm -f conftest.er1
37076 cat conftest.err >&5
a848cd7e
SC
37077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37078 (exit $ac_status); } &&
dfe0c803
JS
37079 { ac_try='test -z "$ac_c_werror_flag"
37080 || test ! -s conftest.err'
ac1cb8d3
VS
37081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37082 (eval $ac_try) 2>&5
37083 ac_status=$?
37084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37085 (exit $ac_status); }; } &&
37086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37088 (eval $ac_try) 2>&5
37089 ac_status=$?
37090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091 (exit $ac_status); }; }; then
37092
37093 wx_cv_var_timezone=_timezone
37094
37095else
37096 echo "$as_me: failed program was:" >&5
37097sed 's/^/| /' conftest.$ac_ext >&5
37098
37099
37100 cat >conftest.$ac_ext <<_ACEOF
37101/* confdefs.h. */
37102_ACEOF
37103cat confdefs.h >>conftest.$ac_ext
37104cat >>conftest.$ac_ext <<_ACEOF
37105/* end confdefs.h. */
37106
37107 #include <time.h>
37108
37109int
37110main ()
37111{
37112
37113 int tz;
37114 tz = __timezone;
37115
37116 ;
37117 return 0;
37118}
37119_ACEOF
37120rm -f conftest.$ac_objext
37121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37122 (eval $ac_compile) 2>conftest.er1
a848cd7e 37123 ac_status=$?
ac1cb8d3
VS
37124 grep -v '^ *+' conftest.er1 >conftest.err
37125 rm -f conftest.er1
37126 cat conftest.err >&5
a848cd7e
SC
37127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); } &&
dfe0c803
JS
37129 { ac_try='test -z "$ac_c_werror_flag"
37130 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
37136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37138 (eval $ac_try) 2>&5
37139 ac_status=$?
37140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141 (exit $ac_status); }; }; then
37142
37143 wx_cv_var_timezone=__timezone
37144
37145else
37146 echo "$as_me: failed program was:" >&5
37147sed 's/^/| /' conftest.$ac_ext >&5
37148
37149
37150 if test "$USE_DOS" = 0 ; then
37151 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37152echo "$as_me: WARNING: no timezone variable" >&2;}
37153 fi
37154
37155
37156fi
ac1cb8d3 37157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37158
37159
37160fi
ac1cb8d3 37161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37162
37163
37164fi
ac1cb8d3 37165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37166
37167
37168fi
37169echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37170echo "${ECHO_T}$wx_cv_var_timezone" >&6
37171
37172 if test "x$wx_cv_var_timezone" != x ; then
37173 cat >>confdefs.h <<_ACEOF
37174#define WX_TIMEZONE $wx_cv_var_timezone
37175_ACEOF
37176
37177 fi
37178
37179
37180for ac_func in localtime
37181do
37182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37183echo "$as_me:$LINENO: checking for $ac_func" >&5
37184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37185if eval "test \"\${$as_ac_var+set}\" = set"; then
37186 echo $ECHO_N "(cached) $ECHO_C" >&6
37187else
37188 cat >conftest.$ac_ext <<_ACEOF
37189/* confdefs.h. */
37190_ACEOF
37191cat confdefs.h >>conftest.$ac_ext
37192cat >>conftest.$ac_ext <<_ACEOF
37193/* end confdefs.h. */
ac1cb8d3
VS
37194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37196#define $ac_func innocuous_$ac_func
37197
a848cd7e
SC
37198/* System header to define __stub macros and hopefully few prototypes,
37199 which can conflict with char $ac_func (); below.
37200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37201 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37202
a848cd7e
SC
37203#ifdef __STDC__
37204# include <limits.h>
37205#else
37206# include <assert.h>
37207#endif
ac1cb8d3
VS
37208
37209#undef $ac_func
37210
a848cd7e
SC
37211/* Override any gcc2 internal prototype to avoid an error. */
37212#ifdef __cplusplus
37213extern "C"
37214{
37215#endif
37216/* We use char because int might match the return type of a gcc2
37217 builtin and then its argument prototype would still apply. */
37218char $ac_func ();
37219/* The GNU C library defines this for functions which it implements
37220 to always fail with ENOSYS. Some functions are actually named
37221 something starting with __ and the normal name is an alias. */
37222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37223choke me
37224#else
37225char (*f) () = $ac_func;
37226#endif
37227#ifdef __cplusplus
37228}
37229#endif
37230
37231int
37232main ()
37233{
37234return f != $ac_func;
37235 ;
37236 return 0;
37237}
37238_ACEOF
37239rm -f conftest.$ac_objext conftest$ac_exeext
37240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37241 (eval $ac_link) 2>conftest.er1
a848cd7e 37242 ac_status=$?
ac1cb8d3
VS
37243 grep -v '^ *+' conftest.er1 >conftest.err
37244 rm -f conftest.er1
37245 cat conftest.err >&5
a848cd7e
SC
37246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247 (exit $ac_status); } &&
dfe0c803
JS
37248 { ac_try='test -z "$ac_c_werror_flag"
37249 || test ! -s conftest.err'
ac1cb8d3
VS
37250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37251 (eval $ac_try) 2>&5
37252 ac_status=$?
37253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37254 (exit $ac_status); }; } &&
37255 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37257 (eval $ac_try) 2>&5
37258 ac_status=$?
37259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37260 (exit $ac_status); }; }; then
37261 eval "$as_ac_var=yes"
37262else
37263 echo "$as_me: failed program was:" >&5
37264sed 's/^/| /' conftest.$ac_ext >&5
37265
37266eval "$as_ac_var=no"
37267fi
ac1cb8d3
VS
37268rm -f conftest.err conftest.$ac_objext \
37269 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37270fi
37271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37272echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37273if test `eval echo '${'$as_ac_var'}'` = yes; then
37274 cat >>confdefs.h <<_ACEOF
37275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37276_ACEOF
37277
37278fi
37279done
37280
37281
37282 if test "$ac_cv_func_localtime" = "yes"; then
37283 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37284echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37285if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37286 echo $ECHO_N "(cached) $ECHO_C" >&6
37287else
37288
37289 cat >conftest.$ac_ext <<_ACEOF
37290/* confdefs.h. */
37291_ACEOF
37292cat confdefs.h >>conftest.$ac_ext
37293cat >>conftest.$ac_ext <<_ACEOF
37294/* end confdefs.h. */
37295
37296 #include <time.h>
37297
37298int
37299main ()
37300{
37301
37302 struct tm tm;
37303 tm.tm_gmtoff++;
37304
37305 ;
37306 return 0;
37307}
37308_ACEOF
37309rm -f conftest.$ac_objext
37310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37311 (eval $ac_compile) 2>conftest.er1
a848cd7e 37312 ac_status=$?
ac1cb8d3
VS
37313 grep -v '^ *+' conftest.er1 >conftest.err
37314 rm -f conftest.er1
37315 cat conftest.err >&5
a848cd7e
SC
37316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37317 (exit $ac_status); } &&
dfe0c803
JS
37318 { ac_try='test -z "$ac_c_werror_flag"
37319 || test ! -s conftest.err'
ac1cb8d3
VS
37320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37321 (eval $ac_try) 2>&5
37322 ac_status=$?
37323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37324 (exit $ac_status); }; } &&
37325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37327 (eval $ac_try) 2>&5
37328 ac_status=$?
37329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37330 (exit $ac_status); }; }; then
37331
37332 wx_cv_struct_tm_has_gmtoff=yes
37333
37334else
37335 echo "$as_me: failed program was:" >&5
37336sed 's/^/| /' conftest.$ac_ext >&5
37337
37338wx_cv_struct_tm_has_gmtoff=no
37339
37340fi
ac1cb8d3 37341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37342
37343fi
37344echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37345echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37346 fi
37347
37348 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37349 cat >>confdefs.h <<\_ACEOF
37350#define WX_GMTOFF_IN_TM 1
37351_ACEOF
37352
37353 fi
37354
37355
37356
37357for ac_func in gettimeofday ftime
37358do
37359as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37360echo "$as_me:$LINENO: checking for $ac_func" >&5
37361echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37362if eval "test \"\${$as_ac_var+set}\" = set"; then
37363 echo $ECHO_N "(cached) $ECHO_C" >&6
37364else
37365 cat >conftest.$ac_ext <<_ACEOF
37366/* confdefs.h. */
37367_ACEOF
37368cat confdefs.h >>conftest.$ac_ext
37369cat >>conftest.$ac_ext <<_ACEOF
37370/* end confdefs.h. */
ac1cb8d3
VS
37371/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37373#define $ac_func innocuous_$ac_func
37374
a848cd7e
SC
37375/* System header to define __stub macros and hopefully few prototypes,
37376 which can conflict with char $ac_func (); below.
37377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37378 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37379
a848cd7e
SC
37380#ifdef __STDC__
37381# include <limits.h>
37382#else
37383# include <assert.h>
37384#endif
ac1cb8d3
VS
37385
37386#undef $ac_func
37387
a848cd7e
SC
37388/* Override any gcc2 internal prototype to avoid an error. */
37389#ifdef __cplusplus
37390extern "C"
37391{
37392#endif
37393/* We use char because int might match the return type of a gcc2
37394 builtin and then its argument prototype would still apply. */
37395char $ac_func ();
37396/* The GNU C library defines this for functions which it implements
37397 to always fail with ENOSYS. Some functions are actually named
37398 something starting with __ and the normal name is an alias. */
37399#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37400choke me
37401#else
37402char (*f) () = $ac_func;
37403#endif
37404#ifdef __cplusplus
37405}
37406#endif
37407
37408int
37409main ()
37410{
37411return f != $ac_func;
37412 ;
37413 return 0;
37414}
37415_ACEOF
37416rm -f conftest.$ac_objext conftest$ac_exeext
37417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37418 (eval $ac_link) 2>conftest.er1
a848cd7e 37419 ac_status=$?
ac1cb8d3
VS
37420 grep -v '^ *+' conftest.er1 >conftest.err
37421 rm -f conftest.er1
37422 cat conftest.err >&5
a848cd7e
SC
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); } &&
dfe0c803
JS
37425 { ac_try='test -z "$ac_c_werror_flag"
37426 || test ! -s conftest.err'
ac1cb8d3
VS
37427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37428 (eval $ac_try) 2>&5
37429 ac_status=$?
37430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37431 (exit $ac_status); }; } &&
37432 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37434 (eval $ac_try) 2>&5
37435 ac_status=$?
37436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437 (exit $ac_status); }; }; then
37438 eval "$as_ac_var=yes"
37439else
37440 echo "$as_me: failed program was:" >&5
37441sed 's/^/| /' conftest.$ac_ext >&5
37442
37443eval "$as_ac_var=no"
37444fi
ac1cb8d3
VS
37445rm -f conftest.err conftest.$ac_objext \
37446 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37447fi
37448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37449echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37450if test `eval echo '${'$as_ac_var'}'` = yes; then
37451 cat >>confdefs.h <<_ACEOF
37452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37453_ACEOF
37454 break
37455fi
37456done
37457
37458
37459 if test "$ac_cv_func_gettimeofday" = "yes"; then
37460 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37461echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37462if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37463 echo $ECHO_N "(cached) $ECHO_C" >&6
37464else
37465
37466
37467
37468 ac_ext=cc
37469ac_cpp='$CXXCPP $CPPFLAGS'
37470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37473
37474
37475 cat >conftest.$ac_ext <<_ACEOF
37476/* confdefs.h. */
37477_ACEOF
37478cat confdefs.h >>conftest.$ac_ext
37479cat >>conftest.$ac_ext <<_ACEOF
37480/* end confdefs.h. */
37481
37482 #include <sys/time.h>
37483 #include <unistd.h>
37484
37485int
37486main ()
37487{
37488
37489 struct timeval tv;
37490 gettimeofday(&tv, NULL);
37491
37492 ;
37493 return 0;
37494}
37495_ACEOF
37496rm -f conftest.$ac_objext
37497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37498 (eval $ac_compile) 2>conftest.er1
a848cd7e 37499 ac_status=$?
ac1cb8d3
VS
37500 grep -v '^ *+' conftest.er1 >conftest.err
37501 rm -f conftest.er1
37502 cat conftest.err >&5
a848cd7e
SC
37503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37504 (exit $ac_status); } &&
dfe0c803
JS
37505 { ac_try='test -z "$ac_cxx_werror_flag"
37506 || test ! -s conftest.err'
ac1cb8d3
VS
37507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37508 (eval $ac_try) 2>&5
37509 ac_status=$?
37510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511 (exit $ac_status); }; } &&
37512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37514 (eval $ac_try) 2>&5
37515 ac_status=$?
37516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37517 (exit $ac_status); }; }; then
37518 wx_cv_func_gettimeofday_has_2_args=yes
37519else
37520 echo "$as_me: failed program was:" >&5
37521sed 's/^/| /' conftest.$ac_ext >&5
37522
37523cat >conftest.$ac_ext <<_ACEOF
37524/* confdefs.h. */
37525_ACEOF
37526cat confdefs.h >>conftest.$ac_ext
37527cat >>conftest.$ac_ext <<_ACEOF
37528/* end confdefs.h. */
37529
37530 #include <sys/time.h>
37531 #include <unistd.h>
37532
37533int
37534main ()
37535{
37536
37537 struct timeval tv;
37538 gettimeofday(&tv);
37539
37540 ;
37541 return 0;
37542}
37543_ACEOF
37544rm -f conftest.$ac_objext
37545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37546 (eval $ac_compile) 2>conftest.er1
a848cd7e 37547 ac_status=$?
ac1cb8d3
VS
37548 grep -v '^ *+' conftest.er1 >conftest.err
37549 rm -f conftest.er1
37550 cat conftest.err >&5
a848cd7e
SC
37551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552 (exit $ac_status); } &&
dfe0c803
JS
37553 { ac_try='test -z "$ac_cxx_werror_flag"
37554 || test ! -s conftest.err'
ac1cb8d3
VS
37555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37556 (eval $ac_try) 2>&5
37557 ac_status=$?
37558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37559 (exit $ac_status); }; } &&
37560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37562 (eval $ac_try) 2>&5
37563 ac_status=$?
37564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37565 (exit $ac_status); }; }; then
37566 wx_cv_func_gettimeofday_has_2_args=no
37567else
37568 echo "$as_me: failed program was:" >&5
37569sed 's/^/| /' conftest.$ac_ext >&5
37570
37571
37572 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37573echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37574 wx_cv_func_gettimeofday_has_2_args=unknown
37575
37576
37577fi
ac1cb8d3 37578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37579
37580fi
ac1cb8d3 37581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37582 ac_ext=c
37583ac_cpp='$CPP $CPPFLAGS'
37584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37586ac_compiler_gnu=$ac_cv_c_compiler_gnu
37587
37588
37589fi
37590echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37591echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37592
37593 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37594 cat >>confdefs.h <<\_ACEOF
37595#define WX_GETTIMEOFDAY_NO_TZ 1
37596_ACEOF
37597
37598 fi
37599 fi
37600
37601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37602fi
37603
37604
37605if test "$wxUSE_SOCKETS" = "yes"; then
37606 if test "$wxUSE_MGL" = "1"; then
37607 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37608echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37609 wxUSE_SOCKETS="no"
37610 fi
37611fi
37612
37613if test "$wxUSE_SOCKETS" = "yes"; then
37614 if test "$TOOLKIT" != "MSW"; then
37615 echo "$as_me:$LINENO: checking for socket" >&5
37616echo $ECHO_N "checking for socket... $ECHO_C" >&6
37617if test "${ac_cv_func_socket+set}" = set; then
37618 echo $ECHO_N "(cached) $ECHO_C" >&6
37619else
37620 cat >conftest.$ac_ext <<_ACEOF
37621/* confdefs.h. */
37622_ACEOF
37623cat confdefs.h >>conftest.$ac_ext
37624cat >>conftest.$ac_ext <<_ACEOF
37625/* end confdefs.h. */
ac1cb8d3
VS
37626/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37628#define socket innocuous_socket
37629
a848cd7e
SC
37630/* System header to define __stub macros and hopefully few prototypes,
37631 which can conflict with char socket (); below.
37632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37633 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37634
a848cd7e
SC
37635#ifdef __STDC__
37636# include <limits.h>
37637#else
37638# include <assert.h>
37639#endif
ac1cb8d3
VS
37640
37641#undef socket
37642
a848cd7e
SC
37643/* Override any gcc2 internal prototype to avoid an error. */
37644#ifdef __cplusplus
37645extern "C"
37646{
37647#endif
37648/* We use char because int might match the return type of a gcc2
37649 builtin and then its argument prototype would still apply. */
37650char socket ();
37651/* The GNU C library defines this for functions which it implements
37652 to always fail with ENOSYS. Some functions are actually named
37653 something starting with __ and the normal name is an alias. */
37654#if defined (__stub_socket) || defined (__stub___socket)
37655choke me
37656#else
37657char (*f) () = socket;
37658#endif
37659#ifdef __cplusplus
37660}
37661#endif
37662
37663int
37664main ()
37665{
37666return f != socket;
37667 ;
37668 return 0;
37669}
37670_ACEOF
37671rm -f conftest.$ac_objext conftest$ac_exeext
37672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37673 (eval $ac_link) 2>conftest.er1
a848cd7e 37674 ac_status=$?
ac1cb8d3
VS
37675 grep -v '^ *+' conftest.er1 >conftest.err
37676 rm -f conftest.er1
37677 cat conftest.err >&5
a848cd7e
SC
37678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679 (exit $ac_status); } &&
dfe0c803
JS
37680 { ac_try='test -z "$ac_c_werror_flag"
37681 || test ! -s conftest.err'
ac1cb8d3
VS
37682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37683 (eval $ac_try) 2>&5
37684 ac_status=$?
37685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686 (exit $ac_status); }; } &&
37687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37689 (eval $ac_try) 2>&5
37690 ac_status=$?
37691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37692 (exit $ac_status); }; }; then
37693 ac_cv_func_socket=yes
37694else
37695 echo "$as_me: failed program was:" >&5
37696sed 's/^/| /' conftest.$ac_ext >&5
37697
37698ac_cv_func_socket=no
37699fi
ac1cb8d3
VS
37700rm -f conftest.err conftest.$ac_objext \
37701 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37702fi
37703echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37704echo "${ECHO_T}$ac_cv_func_socket" >&6
37705if test $ac_cv_func_socket = yes; then
37706 :
37707else
37708
37709 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37710echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37711if test "${ac_cv_lib_socket_socket+set}" = set; then
37712 echo $ECHO_N "(cached) $ECHO_C" >&6
37713else
37714 ac_check_lib_save_LIBS=$LIBS
37715LIBS="-lsocket $LIBS"
37716cat >conftest.$ac_ext <<_ACEOF
37717/* confdefs.h. */
37718_ACEOF
37719cat confdefs.h >>conftest.$ac_ext
37720cat >>conftest.$ac_ext <<_ACEOF
37721/* end confdefs.h. */
37722
37723/* Override any gcc2 internal prototype to avoid an error. */
37724#ifdef __cplusplus
37725extern "C"
37726#endif
37727/* We use char because int might match the return type of a gcc2
37728 builtin and then its argument prototype would still apply. */
37729char socket ();
37730int
37731main ()
37732{
37733socket ();
37734 ;
37735 return 0;
37736}
37737_ACEOF
37738rm -f conftest.$ac_objext conftest$ac_exeext
37739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37740 (eval $ac_link) 2>conftest.er1
a848cd7e 37741 ac_status=$?
ac1cb8d3
VS
37742 grep -v '^ *+' conftest.er1 >conftest.err
37743 rm -f conftest.er1
37744 cat conftest.err >&5
a848cd7e
SC
37745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37746 (exit $ac_status); } &&
dfe0c803
JS
37747 { ac_try='test -z "$ac_c_werror_flag"
37748 || test ! -s conftest.err'
ac1cb8d3
VS
37749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37750 (eval $ac_try) 2>&5
37751 ac_status=$?
37752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37753 (exit $ac_status); }; } &&
37754 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37756 (eval $ac_try) 2>&5
37757 ac_status=$?
37758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37759 (exit $ac_status); }; }; then
37760 ac_cv_lib_socket_socket=yes
37761else
37762 echo "$as_me: failed program was:" >&5
37763sed 's/^/| /' conftest.$ac_ext >&5
37764
37765ac_cv_lib_socket_socket=no
37766fi
ac1cb8d3
VS
37767rm -f conftest.err conftest.$ac_objext \
37768 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37769LIBS=$ac_check_lib_save_LIBS
37770fi
37771echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37772echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37773if test $ac_cv_lib_socket_socket = yes; then
37774 if test "$INET_LINK" != " -lsocket"; then
37775 INET_LINK="$INET_LINK -lsocket"
37776 fi
37777else
37778
37779 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37780echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37781 wxUSE_SOCKETS=no
37782
37783
37784fi
37785
37786
37787
37788fi
37789
37790 fi
37791fi
37792
37793if test "$wxUSE_SOCKETS" = "yes" ; then
37794 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37795 ac_ext=cc
37796ac_cpp='$CXXCPP $CPPFLAGS'
37797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37800
37801 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37802echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37803if test "${wx_cv_type_getsockname3+set}" = set; then
37804 echo $ECHO_N "(cached) $ECHO_C" >&6
37805else
37806
37807 cat >conftest.$ac_ext <<_ACEOF
37808/* confdefs.h. */
37809_ACEOF
37810cat confdefs.h >>conftest.$ac_ext
37811cat >>conftest.$ac_ext <<_ACEOF
37812/* end confdefs.h. */
37813
37814 #include <sys/types.h>
37815 #include <sys/socket.h>
37816
37817int
37818main ()
37819{
37820
37821 socklen_t len;
37822 getsockname(0, 0, &len);
37823
37824 ;
37825 return 0;
37826}
37827_ACEOF
37828rm -f conftest.$ac_objext
37829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37830 (eval $ac_compile) 2>conftest.er1
a848cd7e 37831 ac_status=$?
ac1cb8d3
VS
37832 grep -v '^ *+' conftest.er1 >conftest.err
37833 rm -f conftest.er1
37834 cat conftest.err >&5
a848cd7e
SC
37835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836 (exit $ac_status); } &&
dfe0c803
JS
37837 { ac_try='test -z "$ac_cxx_werror_flag"
37838 || test ! -s conftest.err'
ac1cb8d3
VS
37839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37840 (eval $ac_try) 2>&5
37841 ac_status=$?
37842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37843 (exit $ac_status); }; } &&
37844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37846 (eval $ac_try) 2>&5
37847 ac_status=$?
37848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849 (exit $ac_status); }; }; then
37850 wx_cv_type_getsockname3=socklen_t
37851else
37852 echo "$as_me: failed program was:" >&5
37853sed 's/^/| /' conftest.$ac_ext >&5
37854
37855
37856 CFLAGS_OLD="$CFLAGS"
37857 if test "$GCC" = yes ; then
37858 CFLAGS="$CFLAGS -Werror"
37859 fi
37860
37861 cat >conftest.$ac_ext <<_ACEOF
37862/* confdefs.h. */
37863_ACEOF
37864cat confdefs.h >>conftest.$ac_ext
37865cat >>conftest.$ac_ext <<_ACEOF
37866/* end confdefs.h. */
37867
37868 #include <sys/types.h>
37869 #include <sys/socket.h>
37870
37871int
37872main ()
37873{
37874
37875 size_t len;
37876 getsockname(0, 0, &len);
37877
37878 ;
37879 return 0;
37880}
37881_ACEOF
37882rm -f conftest.$ac_objext
37883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37884 (eval $ac_compile) 2>conftest.er1
a848cd7e 37885 ac_status=$?
ac1cb8d3
VS
37886 grep -v '^ *+' conftest.er1 >conftest.err
37887 rm -f conftest.er1
37888 cat conftest.err >&5
a848cd7e
SC
37889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37890 (exit $ac_status); } &&
dfe0c803
JS
37891 { ac_try='test -z "$ac_cxx_werror_flag"
37892 || test ! -s conftest.err'
ac1cb8d3
VS
37893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37894 (eval $ac_try) 2>&5
37895 ac_status=$?
37896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37897 (exit $ac_status); }; } &&
37898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37900 (eval $ac_try) 2>&5
37901 ac_status=$?
37902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37903 (exit $ac_status); }; }; then
37904 wx_cv_type_getsockname3=size_t
37905else
37906 echo "$as_me: failed program was:" >&5
37907sed 's/^/| /' conftest.$ac_ext >&5
37908
37909cat >conftest.$ac_ext <<_ACEOF
37910/* confdefs.h. */
37911_ACEOF
37912cat confdefs.h >>conftest.$ac_ext
37913cat >>conftest.$ac_ext <<_ACEOF
37914/* end confdefs.h. */
37915
37916 #include <sys/types.h>
37917 #include <sys/socket.h>
37918
37919int
37920main ()
37921{
37922
37923 int len;
37924 getsockname(0, 0, &len);
37925
37926 ;
37927 return 0;
37928}
37929_ACEOF
37930rm -f conftest.$ac_objext
37931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37932 (eval $ac_compile) 2>conftest.er1
a848cd7e 37933 ac_status=$?
ac1cb8d3
VS
37934 grep -v '^ *+' conftest.er1 >conftest.err
37935 rm -f conftest.er1
37936 cat conftest.err >&5
a848cd7e
SC
37937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37938 (exit $ac_status); } &&
dfe0c803
JS
37939 { ac_try='test -z "$ac_cxx_werror_flag"
37940 || test ! -s conftest.err'
ac1cb8d3
VS
37941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37942 (eval $ac_try) 2>&5
37943 ac_status=$?
37944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37945 (exit $ac_status); }; } &&
37946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37948 (eval $ac_try) 2>&5
37949 ac_status=$?
37950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37951 (exit $ac_status); }; }; then
37952 wx_cv_type_getsockname3=int
37953else
37954 echo "$as_me: failed program was:" >&5
37955sed 's/^/| /' conftest.$ac_ext >&5
37956
37957wx_cv_type_getsockname3=unknown
37958
37959fi
ac1cb8d3 37960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37961
37962fi
ac1cb8d3 37963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37964
37965 CFLAGS="$CFLAGS_OLD"
37966
37967
37968fi
ac1cb8d3 37969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37970
37971fi
37972echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37973echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37974
37975 if test "$wx_cv_type_getsockname3" = "unknown"; then
37976 wxUSE_SOCKETS=no
37977 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37978echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37979 else
37980 cat >>confdefs.h <<_ACEOF
37981#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37982_ACEOF
37983
37984 fi
37985 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37986echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37987if test "${wx_cv_type_getsockopt5+set}" = set; then
37988 echo $ECHO_N "(cached) $ECHO_C" >&6
37989else
37990
37991 cat >conftest.$ac_ext <<_ACEOF
37992/* confdefs.h. */
37993_ACEOF
37994cat confdefs.h >>conftest.$ac_ext
37995cat >>conftest.$ac_ext <<_ACEOF
37996/* end confdefs.h. */
37997
37998 #include <sys/types.h>
37999 #include <sys/socket.h>
38000
38001int
38002main ()
38003{
38004
38005 socklen_t len;
38006 getsockopt(0, 0, 0, 0, &len);
38007
38008 ;
38009 return 0;
38010}
38011_ACEOF
38012rm -f conftest.$ac_objext
38013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38014 (eval $ac_compile) 2>conftest.er1
38015 ac_status=$?
38016 grep -v '^ *+' conftest.er1 >conftest.err
38017 rm -f conftest.er1
38018 cat conftest.err >&5
38019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38020 (exit $ac_status); } &&
dfe0c803
JS
38021 { ac_try='test -z "$ac_cxx_werror_flag"
38022 || test ! -s conftest.err'
5b674b9d
DE
38023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38024 (eval $ac_try) 2>&5
38025 ac_status=$?
38026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38027 (exit $ac_status); }; } &&
38028 { ac_try='test -s conftest.$ac_objext'
38029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38030 (eval $ac_try) 2>&5
38031 ac_status=$?
38032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38033 (exit $ac_status); }; }; then
38034 wx_cv_type_getsockopt5=socklen_t
38035else
38036 echo "$as_me: failed program was:" >&5
38037sed 's/^/| /' conftest.$ac_ext >&5
38038
38039
38040 CFLAGS_OLD="$CFLAGS"
38041 if test "$GCC" = yes ; then
38042 CFLAGS="$CFLAGS -Werror"
38043 fi
38044
38045 cat >conftest.$ac_ext <<_ACEOF
38046/* confdefs.h. */
38047_ACEOF
38048cat confdefs.h >>conftest.$ac_ext
38049cat >>conftest.$ac_ext <<_ACEOF
38050/* end confdefs.h. */
38051
38052 #include <sys/types.h>
38053 #include <sys/socket.h>
38054
38055int
38056main ()
38057{
38058
38059 size_t len;
38060 getsockopt(0, 0, 0, 0, &len);
38061
38062 ;
38063 return 0;
38064}
38065_ACEOF
38066rm -f conftest.$ac_objext
38067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38068 (eval $ac_compile) 2>conftest.er1
38069 ac_status=$?
38070 grep -v '^ *+' conftest.er1 >conftest.err
38071 rm -f conftest.er1
38072 cat conftest.err >&5
38073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074 (exit $ac_status); } &&
dfe0c803
JS
38075 { ac_try='test -z "$ac_cxx_werror_flag"
38076 || test ! -s conftest.err'
5b674b9d
DE
38077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38078 (eval $ac_try) 2>&5
38079 ac_status=$?
38080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38081 (exit $ac_status); }; } &&
38082 { ac_try='test -s conftest.$ac_objext'
38083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38084 (eval $ac_try) 2>&5
38085 ac_status=$?
38086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38087 (exit $ac_status); }; }; then
38088 wx_cv_type_getsockopt5=size_t
38089else
38090 echo "$as_me: failed program was:" >&5
38091sed 's/^/| /' conftest.$ac_ext >&5
38092
38093cat >conftest.$ac_ext <<_ACEOF
38094/* confdefs.h. */
38095_ACEOF
38096cat confdefs.h >>conftest.$ac_ext
38097cat >>conftest.$ac_ext <<_ACEOF
38098/* end confdefs.h. */
38099
38100 #include <sys/types.h>
38101 #include <sys/socket.h>
38102
38103int
38104main ()
38105{
38106
38107 int len;
38108 getsockopt(0, 0, 0, 0, &len);
38109
38110 ;
38111 return 0;
38112}
38113_ACEOF
38114rm -f conftest.$ac_objext
38115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38116 (eval $ac_compile) 2>conftest.er1
38117 ac_status=$?
38118 grep -v '^ *+' conftest.er1 >conftest.err
38119 rm -f conftest.er1
38120 cat conftest.err >&5
38121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38122 (exit $ac_status); } &&
dfe0c803
JS
38123 { ac_try='test -z "$ac_cxx_werror_flag"
38124 || test ! -s conftest.err'
5b674b9d
DE
38125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38126 (eval $ac_try) 2>&5
38127 ac_status=$?
38128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38129 (exit $ac_status); }; } &&
38130 { ac_try='test -s conftest.$ac_objext'
38131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38132 (eval $ac_try) 2>&5
38133 ac_status=$?
38134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135 (exit $ac_status); }; }; then
38136 wx_cv_type_getsockopt5=int
38137else
38138 echo "$as_me: failed program was:" >&5
38139sed 's/^/| /' conftest.$ac_ext >&5
38140
38141wx_cv_type_getsockopt5=unknown
38142
38143fi
38144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38145
38146fi
38147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38148
38149 CFLAGS="$CFLAGS_OLD"
38150
38151
38152fi
38153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38154
38155fi
38156echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38157echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38158
38159 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38160 wxUSE_SOCKETS=no
38161 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38162echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38163 else
38164 cat >>confdefs.h <<_ACEOF
38165#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38166_ACEOF
38167
38168 fi
4d4ff94c
VZ
38169 ac_ext=c
38170ac_cpp='$CPP $CPPFLAGS'
38171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38173ac_compiler_gnu=$ac_cv_c_compiler_gnu
38174
a848cd7e
SC
38175 fi
38176fi
38177
38178if test "$wxUSE_SOCKETS" = "yes" ; then
38179 cat >>confdefs.h <<\_ACEOF
38180#define wxUSE_SOCKETS 1
38181_ACEOF
38182
38183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38184fi
38185
38186if test "$wxUSE_PROTOCOL" = "yes"; then
38187 if test "$wxUSE_SOCKETS" != "yes"; then
38188 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38189echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38190 wxUSE_PROTOCOL=no
38191 fi
38192fi
38193
38194if test "$wxUSE_PROTOCOL" = "yes"; then
38195 cat >>confdefs.h <<\_ACEOF
38196#define wxUSE_PROTOCOL 1
38197_ACEOF
38198
38199
38200 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38201 cat >>confdefs.h <<\_ACEOF
38202#define wxUSE_PROTOCOL_HTTP 1
38203_ACEOF
38204
38205 fi
38206 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38207 cat >>confdefs.h <<\_ACEOF
38208#define wxUSE_PROTOCOL_FTP 1
38209_ACEOF
38210
38211 fi
38212 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38213 cat >>confdefs.h <<\_ACEOF
38214#define wxUSE_PROTOCOL_FILE 1
38215_ACEOF
38216
38217 fi
38218else
38219 if test "$wxUSE_FS_INET" = "yes"; then
38220 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38221echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38222 wxUSE_FS_INET="no"
38223 fi
38224fi
38225
38226if test "$wxUSE_URL" = "yes"; then
38227 if test "$wxUSE_PROTOCOL" != "yes"; then
38228 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38229echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38230 wxUSE_URL=no
38231 fi
38232 if test "$wxUSE_URL" = "yes"; then
38233 cat >>confdefs.h <<\_ACEOF
38234#define wxUSE_URL 1
38235_ACEOF
38236
38237 fi
38238fi
38239
38240if test "$wxUSE_FS_INET" = "yes"; then
38241 cat >>confdefs.h <<\_ACEOF
38242#define wxUSE_FS_INET 1
38243_ACEOF
38244
38245fi
38246
38247
38248if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 38249 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 38250
4cb1d3da 38251 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
38252
38253for ac_header in linux/joystick.h
38254do
38255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38256if eval "test \"\${$as_ac_Header+set}\" = set"; then
38257 echo "$as_me:$LINENO: checking for $ac_header" >&5
38258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38259if eval "test \"\${$as_ac_Header+set}\" = set"; then
38260 echo $ECHO_N "(cached) $ECHO_C" >&6
38261fi
38262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38264else
38265 # Is the header compilable?
38266echo "$as_me:$LINENO: checking $ac_header usability" >&5
38267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38268cat >conftest.$ac_ext <<_ACEOF
38269/* confdefs.h. */
38270_ACEOF
38271cat confdefs.h >>conftest.$ac_ext
38272cat >>conftest.$ac_ext <<_ACEOF
38273/* end confdefs.h. */
38274$ac_includes_default
38275#include <$ac_header>
38276_ACEOF
38277rm -f conftest.$ac_objext
38278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38279 (eval $ac_compile) 2>conftest.er1
a848cd7e 38280 ac_status=$?
ac1cb8d3
VS
38281 grep -v '^ *+' conftest.er1 >conftest.err
38282 rm -f conftest.er1
38283 cat conftest.err >&5
a848cd7e
SC
38284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38285 (exit $ac_status); } &&
dfe0c803
JS
38286 { ac_try='test -z "$ac_c_werror_flag"
38287 || test ! -s conftest.err'
ac1cb8d3
VS
38288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38289 (eval $ac_try) 2>&5
38290 ac_status=$?
38291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292 (exit $ac_status); }; } &&
38293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38295 (eval $ac_try) 2>&5
38296 ac_status=$?
38297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298 (exit $ac_status); }; }; then
38299 ac_header_compiler=yes
38300else
38301 echo "$as_me: failed program was:" >&5
38302sed 's/^/| /' conftest.$ac_ext >&5
38303
38304ac_header_compiler=no
38305fi
ac1cb8d3 38306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38308echo "${ECHO_T}$ac_header_compiler" >&6
38309
38310# Is the header present?
38311echo "$as_me:$LINENO: checking $ac_header presence" >&5
38312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38313cat >conftest.$ac_ext <<_ACEOF
38314/* confdefs.h. */
38315_ACEOF
38316cat confdefs.h >>conftest.$ac_ext
38317cat >>conftest.$ac_ext <<_ACEOF
38318/* end confdefs.h. */
38319#include <$ac_header>
38320_ACEOF
38321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38323 ac_status=$?
38324 grep -v '^ *+' conftest.er1 >conftest.err
38325 rm -f conftest.er1
38326 cat conftest.err >&5
38327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38328 (exit $ac_status); } >/dev/null; then
38329 if test -s conftest.err; then
38330 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38332 else
38333 ac_cpp_err=
38334 fi
38335else
38336 ac_cpp_err=yes
38337fi
38338if test -z "$ac_cpp_err"; then
38339 ac_header_preproc=yes
38340else
38341 echo "$as_me: failed program was:" >&5
38342sed 's/^/| /' conftest.$ac_ext >&5
38343
38344 ac_header_preproc=no
38345fi
38346rm -f conftest.err conftest.$ac_ext
38347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38348echo "${ECHO_T}$ac_header_preproc" >&6
38349
38350# So? What about this header?
ac1cb8d3
VS
38351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38352 yes:no: )
a848cd7e
SC
38353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38357 ac_header_preproc=yes
a848cd7e 38358 ;;
ac1cb8d3 38359 no:yes:* )
a848cd7e
SC
38360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38372 (
38373 cat <<\_ASBOX
ac1cb8d3
VS
38374## ----------------------------------------- ##
38375## Report this to wx-dev@lists.wxwidgets.org ##
38376## ----------------------------------------- ##
a848cd7e
SC
38377_ASBOX
38378 ) |
38379 sed "s/^/$as_me: WARNING: /" >&2
38380 ;;
38381esac
38382echo "$as_me:$LINENO: checking for $ac_header" >&5
38383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38384if eval "test \"\${$as_ac_Header+set}\" = set"; then
38385 echo $ECHO_N "(cached) $ECHO_C" >&6
38386else
ac1cb8d3 38387 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38388fi
38389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38391
38392fi
38393if test `eval echo '${'$as_ac_Header'}'` = yes; then
38394 cat >>confdefs.h <<_ACEOF
38395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38396_ACEOF
38397
38398fi
38399
38400done
38401
38402 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38403 wxUSE_JOYSTICK=no
38404 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38405echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38406 fi
4cb1d3da
RN
38407 else
38408 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38409 wxUSE_JOYSTICK=no
38410 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38411echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38412 fi
a848cd7e 38413 fi
a848cd7e 38414
4cb1d3da
RN
38415
38416 if test "$wxUSE_JOYSTICK" = "yes"; then
38417 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38418#define wxUSE_JOYSTICK 1
38419_ACEOF
38420
4cb1d3da
RN
38421 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38422 fi
a848cd7e
SC
38423 fi
38424fi
38425
38426
38427
38428if test "$wxUSE_FONTMAP" = "yes" ; then
38429 cat >>confdefs.h <<\_ACEOF
38430#define wxUSE_FONTMAP 1
38431_ACEOF
38432
38433fi
38434
38435if test "$wxUSE_UNICODE" = "yes" ; then
38436 cat >>confdefs.h <<\_ACEOF
38437#define wxUSE_UNICODE 1
38438_ACEOF
38439
38440
38441 if test "$USE_WIN32" != 1; then
38442 wxUSE_UNICODE_MSLU=no
38443 fi
38444
38445 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38446 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38447echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38448if test "${ac_cv_lib_unicows_main+set}" = set; then
38449 echo $ECHO_N "(cached) $ECHO_C" >&6
38450else
38451 ac_check_lib_save_LIBS=$LIBS
38452LIBS="-lunicows $LIBS"
38453cat >conftest.$ac_ext <<_ACEOF
38454/* confdefs.h. */
38455_ACEOF
38456cat confdefs.h >>conftest.$ac_ext
38457cat >>conftest.$ac_ext <<_ACEOF
38458/* end confdefs.h. */
38459
38460
38461int
38462main ()
38463{
38464main ();
38465 ;
38466 return 0;
38467}
38468_ACEOF
38469rm -f conftest.$ac_objext conftest$ac_exeext
38470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38471 (eval $ac_link) 2>conftest.er1
a848cd7e 38472 ac_status=$?
ac1cb8d3
VS
38473 grep -v '^ *+' conftest.er1 >conftest.err
38474 rm -f conftest.er1
38475 cat conftest.err >&5
a848cd7e
SC
38476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38477 (exit $ac_status); } &&
dfe0c803
JS
38478 { ac_try='test -z "$ac_c_werror_flag"
38479 || test ! -s conftest.err'
ac1cb8d3
VS
38480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38481 (eval $ac_try) 2>&5
38482 ac_status=$?
38483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38484 (exit $ac_status); }; } &&
38485 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38487 (eval $ac_try) 2>&5
38488 ac_status=$?
38489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38490 (exit $ac_status); }; }; then
38491 ac_cv_lib_unicows_main=yes
38492else
38493 echo "$as_me: failed program was:" >&5
38494sed 's/^/| /' conftest.$ac_ext >&5
38495
38496ac_cv_lib_unicows_main=no
38497fi
ac1cb8d3
VS
38498rm -f conftest.err conftest.$ac_objext \
38499 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38500LIBS=$ac_check_lib_save_LIBS
38501fi
38502echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38503echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38504if test $ac_cv_lib_unicows_main = yes; then
38505
38506 cat >>confdefs.h <<\_ACEOF
38507#define wxUSE_UNICODE_MSLU 1
38508_ACEOF
38509
38510
38511else
38512
38513 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38514 Applications will only run on Windows NT/2000/XP!" >&5
38515echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38516 Applications will only run on Windows NT/2000/XP!" >&2;}
38517 wxUSE_UNICODE_MSLU=no
38518
38519fi
38520
38521 fi
38522fi
38523
38524if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38525 cat >>confdefs.h <<\_ACEOF
38526#define wxUSE_EXPERIMENTAL_PRINTF 1
38527_ACEOF
38528
38529fi
38530
38531
38532if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38533 cat >>confdefs.h <<\_ACEOF
38534#define wxUSE_POSTSCRIPT 1
38535_ACEOF
38536
38537fi
38538
38539cat >>confdefs.h <<\_ACEOF
38540#define wxUSE_AFM_FOR_POSTSCRIPT 1
38541_ACEOF
38542
38543
38544cat >>confdefs.h <<\_ACEOF
38545#define wxUSE_NORMALIZED_PS_FONTS 1
38546_ACEOF
38547
38548
38549
38550if test "$wxUSE_CONSTRAINTS" = "yes"; then
38551 cat >>confdefs.h <<\_ACEOF
38552#define wxUSE_CONSTRAINTS 1
38553_ACEOF
38554
38555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38556fi
38557
8a7b1113
VZ
38558if test "$wxUSE_MDI" = "yes"; then
38559 cat >>confdefs.h <<\_ACEOF
38560#define wxUSE_MDI 1
38561_ACEOF
38562
38563
38564 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38565 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38566#define wxUSE_MDI_ARCHITECTURE 1
38567_ACEOF
38568
8a7b1113
VZ
38569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38570 fi
a848cd7e
SC
38571fi
38572
38573if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38574 cat >>confdefs.h <<\_ACEOF
38575#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38576_ACEOF
38577
38578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38579 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38581 fi
38582fi
38583
38584if test "$wxUSE_HELP" = "yes"; then
38585 cat >>confdefs.h <<\_ACEOF
38586#define wxUSE_HELP 1
38587_ACEOF
38588
38589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38590
38591 if test "$wxUSE_MSW" = 1; then
38592 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38593 cat >>confdefs.h <<\_ACEOF
38594#define wxUSE_MS_HTML_HELP 1
38595_ACEOF
38596
38597 fi
38598 fi
38599
38600 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38601 if test "$wxUSE_HTML" = "yes"; then
38602 cat >>confdefs.h <<\_ACEOF
38603#define wxUSE_WXHTML_HELP 1
38604_ACEOF
38605
38606 else
38607 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38608echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38609 wxUSE_WXHTML_HELP=no
38610 fi
38611 fi
38612fi
38613
38614if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38615 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38616 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38617echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38618 else
38619 cat >>confdefs.h <<\_ACEOF
38620#define wxUSE_PRINTING_ARCHITECTURE 1
38621_ACEOF
38622
38623 fi
38624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38625fi
38626
38627if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38628 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38629echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38630 { (exit 1); exit 1; }; }
38631fi
38632
38633
38634if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38635 -o "$wxUSE_CLIPBOARD" = "yes" \
38636 -o "$wxUSE_OLE" = "yes" \
38637 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38638
38639for ac_header in ole2.h
38640do
38641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38642if eval "test \"\${$as_ac_Header+set}\" = set"; then
38643 echo "$as_me:$LINENO: checking for $ac_header" >&5
38644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38645if eval "test \"\${$as_ac_Header+set}\" = set"; then
38646 echo $ECHO_N "(cached) $ECHO_C" >&6
38647fi
38648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38650else
38651 # Is the header compilable?
38652echo "$as_me:$LINENO: checking $ac_header usability" >&5
38653echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38654cat >conftest.$ac_ext <<_ACEOF
38655/* confdefs.h. */
38656_ACEOF
38657cat confdefs.h >>conftest.$ac_ext
38658cat >>conftest.$ac_ext <<_ACEOF
38659/* end confdefs.h. */
38660$ac_includes_default
38661#include <$ac_header>
38662_ACEOF
38663rm -f conftest.$ac_objext
38664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38665 (eval $ac_compile) 2>conftest.er1
a848cd7e 38666 ac_status=$?
ac1cb8d3
VS
38667 grep -v '^ *+' conftest.er1 >conftest.err
38668 rm -f conftest.er1
38669 cat conftest.err >&5
a848cd7e
SC
38670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671 (exit $ac_status); } &&
dfe0c803
JS
38672 { ac_try='test -z "$ac_c_werror_flag"
38673 || test ! -s conftest.err'
ac1cb8d3
VS
38674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38675 (eval $ac_try) 2>&5
38676 ac_status=$?
38677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38678 (exit $ac_status); }; } &&
38679 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38681 (eval $ac_try) 2>&5
38682 ac_status=$?
38683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38684 (exit $ac_status); }; }; then
38685 ac_header_compiler=yes
38686else
38687 echo "$as_me: failed program was:" >&5
38688sed 's/^/| /' conftest.$ac_ext >&5
38689
38690ac_header_compiler=no
38691fi
ac1cb8d3 38692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38693echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38694echo "${ECHO_T}$ac_header_compiler" >&6
38695
38696# Is the header present?
38697echo "$as_me:$LINENO: checking $ac_header presence" >&5
38698echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38699cat >conftest.$ac_ext <<_ACEOF
38700/* confdefs.h. */
38701_ACEOF
38702cat confdefs.h >>conftest.$ac_ext
38703cat >>conftest.$ac_ext <<_ACEOF
38704/* end confdefs.h. */
38705#include <$ac_header>
38706_ACEOF
38707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38709 ac_status=$?
38710 grep -v '^ *+' conftest.er1 >conftest.err
38711 rm -f conftest.er1
38712 cat conftest.err >&5
38713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38714 (exit $ac_status); } >/dev/null; then
38715 if test -s conftest.err; then
38716 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38718 else
38719 ac_cpp_err=
38720 fi
38721else
38722 ac_cpp_err=yes
38723fi
38724if test -z "$ac_cpp_err"; then
38725 ac_header_preproc=yes
38726else
38727 echo "$as_me: failed program was:" >&5
38728sed 's/^/| /' conftest.$ac_ext >&5
38729
38730 ac_header_preproc=no
38731fi
38732rm -f conftest.err conftest.$ac_ext
38733echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38734echo "${ECHO_T}$ac_header_preproc" >&6
38735
38736# So? What about this header?
ac1cb8d3
VS
38737case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38738 yes:no: )
a848cd7e
SC
38739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38740echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38742echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38743 ac_header_preproc=yes
a848cd7e 38744 ;;
ac1cb8d3 38745 no:yes:* )
a848cd7e
SC
38746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38747echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38749echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38751echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38753echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38755echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38757echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38758 (
38759 cat <<\_ASBOX
ac1cb8d3
VS
38760## ----------------------------------------- ##
38761## Report this to wx-dev@lists.wxwidgets.org ##
38762## ----------------------------------------- ##
a848cd7e
SC
38763_ASBOX
38764 ) |
38765 sed "s/^/$as_me: WARNING: /" >&2
38766 ;;
38767esac
38768echo "$as_me:$LINENO: checking for $ac_header" >&5
38769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38770if eval "test \"\${$as_ac_Header+set}\" = set"; then
38771 echo $ECHO_N "(cached) $ECHO_C" >&6
38772else
ac1cb8d3 38773 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38774fi
38775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38777
38778fi
38779if test `eval echo '${'$as_ac_Header'}'` = yes; then
38780 cat >>confdefs.h <<_ACEOF
38781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38782_ACEOF
38783
38784fi
38785
38786done
38787
38788
38789 if test "$ac_cv_header_ole2_h" = "yes" ; then
38790 if test "$GCC" = yes ; then
38791
38792
38793 ac_ext=cc
38794ac_cpp='$CXXCPP $CPPFLAGS'
38795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38798
38799
38800 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38801echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38802 cat >conftest.$ac_ext <<_ACEOF
38803/* confdefs.h. */
38804_ACEOF
38805cat confdefs.h >>conftest.$ac_ext
38806cat >>conftest.$ac_ext <<_ACEOF
38807/* end confdefs.h. */
38808#include <windows.h>
38809 #include <ole2.h>
38810int
38811main ()
38812{
38813
38814 ;
38815 return 0;
38816}
38817_ACEOF
38818rm -f conftest.$ac_objext
38819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38820 (eval $ac_compile) 2>conftest.er1
a848cd7e 38821 ac_status=$?
ac1cb8d3
VS
38822 grep -v '^ *+' conftest.er1 >conftest.err
38823 rm -f conftest.er1
38824 cat conftest.err >&5
a848cd7e
SC
38825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38826 (exit $ac_status); } &&
dfe0c803
JS
38827 { ac_try='test -z "$ac_cxx_werror_flag"
38828 || test ! -s conftest.err'
ac1cb8d3
VS
38829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38830 (eval $ac_try) 2>&5
38831 ac_status=$?
38832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38833 (exit $ac_status); }; } &&
38834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38836 (eval $ac_try) 2>&5
38837 ac_status=$?
38838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38839 (exit $ac_status); }; }; then
38840 echo "$as_me:$LINENO: result: no" >&5
38841echo "${ECHO_T}no" >&6
38842else
38843 echo "$as_me: failed program was:" >&5
38844sed 's/^/| /' conftest.$ac_ext >&5
38845
38846echo "$as_me:$LINENO: result: yes" >&5
38847echo "${ECHO_T}yes" >&6
38848 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38849fi
ac1cb8d3 38850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38851 ac_ext=c
38852ac_cpp='$CPP $CPPFLAGS'
38853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38855ac_compiler_gnu=$ac_cv_c_compiler_gnu
38856
a848cd7e
SC
38857 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38858 if test "$wxUSE_OLE" = "yes" ; then
38859 cat >>confdefs.h <<\_ACEOF
38860#define wxUSE_OLE 1
38861_ACEOF
38862
0b78747f 38863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
38864 fi
38865 fi
38866
38867 if test "$wxUSE_DATAOBJ" = "yes" ; then
38868 cat >>confdefs.h <<\_ACEOF
38869#define wxUSE_DATAOBJ 1
38870_ACEOF
38871
38872 fi
38873 else
38874 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38875echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38876
38877 wxUSE_CLIPBOARD=no
38878 wxUSE_DRAG_AND_DROP=no
38879 wxUSE_DATAOBJ=no
38880 wxUSE_OLE=no
38881 fi
38882
38883 if test "$wxUSE_METAFILE" = "yes"; then
38884 cat >>confdefs.h <<\_ACEOF
38885#define wxUSE_METAFILE 1
38886_ACEOF
38887
38888
38889 cat >>confdefs.h <<\_ACEOF
38890#define wxUSE_ENH_METAFILE 1
38891_ACEOF
38892
38893 fi
38894fi
38895
38896if test "$wxUSE_IPC" = "yes"; then
0b78747f 38897 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
38898 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38899echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 38900 wxUSE_IPC=no
a848cd7e
SC
38901 fi
38902
0b78747f
MW
38903 if test "$wxUSE_IPC" = "yes"; then
38904 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38905#define wxUSE_IPC 1
38906_ACEOF
38907
0b78747f
MW
38908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38909 fi
a848cd7e
SC
38910fi
38911
38912if test "$wxUSE_CLIPBOARD" = "yes"; then
38913 if test "$wxUSE_MGL" = 1; then
38914 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38915echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38916 wxUSE_CLIPBOARD=no
38917 fi
38918
38919 if test "$wxUSE_CLIPBOARD" = "yes"; then
38920 cat >>confdefs.h <<\_ACEOF
38921#define wxUSE_CLIPBOARD 1
38922_ACEOF
38923
38924
38925 cat >>confdefs.h <<\_ACEOF
38926#define wxUSE_DATAOBJ 1
38927_ACEOF
38928
38929 fi
38930fi
38931
38932if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38933 if test "$wxUSE_GTK" = 1; then
38934 if test "$WXGTK12" != 1; then
38935 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38936echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38937 wxUSE_DRAG_AND_DROP=no
38938 fi
38939 fi
38940
38941 if test "$wxUSE_MOTIF" = 1; then
38942 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38943echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38944 wxUSE_DRAG_AND_DROP=no
38945 fi
38946
38947 if test "$wxUSE_X11" = 1; then
38948 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38949echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38950 wxUSE_DRAG_AND_DROP=no
38951 fi
38952
38953 if test "$wxUSE_MGL" = 1; then
38954 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38955echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38956 wxUSE_DRAG_AND_DROP=no
38957 fi
38958
38959 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38960 cat >>confdefs.h <<\_ACEOF
38961#define wxUSE_DRAG_AND_DROP 1
38962_ACEOF
38963
38964 fi
38965
38966fi
38967
38968if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38970fi
38971
38972if test "$wxUSE_SPLINES" = "yes" ; then
38973 cat >>confdefs.h <<\_ACEOF
38974#define wxUSE_SPLINES 1
38975_ACEOF
38976
38977fi
38978
38979
38980USES_CONTROLS=0
38981if test "$wxUSE_CONTROLS" = "yes"; then
38982 USES_CONTROLS=1
38983fi
38984
38985if test "$wxUSE_ACCEL" = "yes"; then
38986 cat >>confdefs.h <<\_ACEOF
38987#define wxUSE_ACCEL 1
38988_ACEOF
38989
38990 USES_CONTROLS=1
38991fi
38992
38993if test "$wxUSE_BUTTON" = "yes"; then
38994 cat >>confdefs.h <<\_ACEOF
38995#define wxUSE_BUTTON 1
38996_ACEOF
38997
38998 USES_CONTROLS=1
38999fi
39000
39001if test "$wxUSE_BMPBUTTON" = "yes"; then
39002 cat >>confdefs.h <<\_ACEOF
39003#define wxUSE_BMPBUTTON 1
39004_ACEOF
39005
39006 USES_CONTROLS=1
39007fi
39008
39009if test "$wxUSE_CALCTRL" = "yes"; then
39010 cat >>confdefs.h <<\_ACEOF
39011#define wxUSE_CALENDARCTRL 1
39012_ACEOF
39013
39014 USES_CONTROLS=1
39015 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
39016fi
39017
39018if test "$wxUSE_CARET" = "yes"; then
39019 cat >>confdefs.h <<\_ACEOF
39020#define wxUSE_CARET 1
39021_ACEOF
39022
39023 USES_CONTROLS=1
39024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
39025fi
39026
39027if test "$wxUSE_COMBOBOX" = "yes"; then
39028 cat >>confdefs.h <<\_ACEOF
39029#define wxUSE_COMBOBOX 1
39030_ACEOF
39031
39032 USES_CONTROLS=1
39033fi
39034
39035if test "$wxUSE_CHOICE" = "yes"; then
39036 cat >>confdefs.h <<\_ACEOF
39037#define wxUSE_CHOICE 1
39038_ACEOF
39039
39040 USES_CONTROLS=1
39041fi
39042
92bbdbcd
WS
39043if test "$wxUSE_CHOICEBOOK" = "yes"; then
39044 cat >>confdefs.h <<\_ACEOF
39045#define wxUSE_CHOICEBOOK 1
39046_ACEOF
39047
39048 USES_CONTROLS=1
39049fi
39050
a848cd7e
SC
39051if test "$wxUSE_CHECKBOX" = "yes"; then
39052 cat >>confdefs.h <<\_ACEOF
39053#define wxUSE_CHECKBOX 1
39054_ACEOF
39055
39056 USES_CONTROLS=1
39057fi
39058
39059if test "$wxUSE_CHECKLST" = "yes"; then
39060 cat >>confdefs.h <<\_ACEOF
39061#define wxUSE_CHECKLISTBOX 1
39062_ACEOF
39063
39064 USES_CONTROLS=1
39065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
39066fi
39067
da98e9be
VZ
39068if test "$wxUSE_DATEPICKCTRL" = "yes"; then
39069 cat >>confdefs.h <<\_ACEOF
39070#define wxUSE_DATEPICKCTRL 1
39071_ACEOF
39072
39073 USES_CONTROLS=1
39074fi
39075
a848cd7e
SC
39076if test "$wxUSE_DISPLAY" = "yes"; then
39077 cat >>confdefs.h <<\_ACEOF
39078#define wxUSE_DISPLAY 1
39079_ACEOF
39080
0b78747f 39081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
39082fi
39083
39084if test "$wxUSE_GAUGE" = "yes"; then
39085 cat >>confdefs.h <<\_ACEOF
39086#define wxUSE_GAUGE 1
39087_ACEOF
39088
39089 USES_CONTROLS=1
39090fi
39091
39092if test "$wxUSE_GRID" = "yes"; then
39093 cat >>confdefs.h <<\_ACEOF
39094#define wxUSE_GRID 1
39095_ACEOF
39096
39097 USES_CONTROLS=1
39098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39099fi
39100
39101if test "$wxUSE_IMAGLIST" = "yes"; then
39102 cat >>confdefs.h <<\_ACEOF
39103#define wxUSE_IMAGLIST 1
39104_ACEOF
39105
39106fi
39107
39108if test "$wxUSE_LISTBOOK" = "yes"; then
39109 cat >>confdefs.h <<\_ACEOF
39110#define wxUSE_LISTBOOK 1
39111_ACEOF
39112
39113 USES_CONTROLS=1
39114fi
39115
39116if test "$wxUSE_LISTBOX" = "yes"; then
39117 cat >>confdefs.h <<\_ACEOF
39118#define wxUSE_LISTBOX 1
39119_ACEOF
39120
39121 USES_CONTROLS=1
0b78747f 39122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
39123fi
39124
39125if test "$wxUSE_LISTCTRL" = "yes"; then
39126 if test "$wxUSE_IMAGLIST" = "yes"; then
39127 cat >>confdefs.h <<\_ACEOF
39128#define wxUSE_LISTCTRL 1
39129_ACEOF
39130
39131 USES_CONTROLS=1
39132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39133 else
39134 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39135echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39136 fi
39137fi
39138
39139if test "$wxUSE_NOTEBOOK" = "yes"; then
39140 cat >>confdefs.h <<\_ACEOF
39141#define wxUSE_NOTEBOOK 1
39142_ACEOF
39143
39144 USES_CONTROLS=1
39145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39146fi
39147
39148
39149if test "$wxUSE_RADIOBOX" = "yes"; then
39150 cat >>confdefs.h <<\_ACEOF
39151#define wxUSE_RADIOBOX 1
39152_ACEOF
39153
39154 USES_CONTROLS=1
39155fi
39156
39157if test "$wxUSE_RADIOBTN" = "yes"; then
39158 cat >>confdefs.h <<\_ACEOF
39159#define wxUSE_RADIOBTN 1
39160_ACEOF
39161
39162 USES_CONTROLS=1
39163fi
39164
39165if test "$wxUSE_SASH" = "yes"; then
39166 cat >>confdefs.h <<\_ACEOF
39167#define wxUSE_SASH 1
39168_ACEOF
39169
39170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
39171fi
39172
39173if test "$wxUSE_SCROLLBAR" = "yes"; then
39174 cat >>confdefs.h <<\_ACEOF
39175#define wxUSE_SCROLLBAR 1
39176_ACEOF
39177
39178 USES_CONTROLS=1
39179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
39180fi
39181
39182if test "$wxUSE_SLIDER" = "yes"; then
39183 cat >>confdefs.h <<\_ACEOF
39184#define wxUSE_SLIDER 1
39185_ACEOF
39186
39187 USES_CONTROLS=1
39188fi
39189
39190if test "$wxUSE_SPINBTN" = "yes"; then
39191 cat >>confdefs.h <<\_ACEOF
39192#define wxUSE_SPINBTN 1
39193_ACEOF
39194
39195 USES_CONTROLS=1
39196fi
39197
39198if test "$wxUSE_SPINCTRL" = "yes"; then
39199 cat >>confdefs.h <<\_ACEOF
39200#define wxUSE_SPINCTRL 1
39201_ACEOF
39202
39203 USES_CONTROLS=1
39204fi
39205
39206if test "$wxUSE_SPLITTER" = "yes"; then
39207 cat >>confdefs.h <<\_ACEOF
39208#define wxUSE_SPLITTER 1
39209_ACEOF
39210
39211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
39212fi
39213
39214if test "$wxUSE_STATBMP" = "yes"; then
39215 cat >>confdefs.h <<\_ACEOF
39216#define wxUSE_STATBMP 1
39217_ACEOF
39218
39219 USES_CONTROLS=1
39220fi
39221
39222if test "$wxUSE_STATBOX" = "yes"; then
39223 cat >>confdefs.h <<\_ACEOF
39224#define wxUSE_STATBOX 1
39225_ACEOF
39226
39227 USES_CONTROLS=1
39228fi
39229
39230if test "$wxUSE_STATTEXT" = "yes"; then
39231 cat >>confdefs.h <<\_ACEOF
39232#define wxUSE_STATTEXT 1
39233_ACEOF
39234
39235 USES_CONTROLS=1
39236fi
39237
39238if test "$wxUSE_STATLINE" = "yes"; then
39239 cat >>confdefs.h <<\_ACEOF
39240#define wxUSE_STATLINE 1
39241_ACEOF
39242
39243 USES_CONTROLS=1
39244fi
39245
39246if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
39247 cat >>confdefs.h <<\_ACEOF
39248#define wxUSE_NATIVE_STATUSBAR 1
39249_ACEOF
39250
a848cd7e
SC
39251 cat >>confdefs.h <<\_ACEOF
39252#define wxUSE_STATUSBAR 1
39253_ACEOF
39254
39255 USES_CONTROLS=1
39256
39257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39258fi
39259
39260if test "$wxUSE_TABDIALOG" = "yes"; then
39261 cat >>confdefs.h <<\_ACEOF
39262#define wxUSE_TAB_DIALOG 1
39263_ACEOF
39264
a848cd7e
SC
39265fi
39266
39267if test "$wxUSE_TEXTCTRL" = "yes"; then
39268 cat >>confdefs.h <<\_ACEOF
39269#define wxUSE_TEXTCTRL 1
39270_ACEOF
39271
39272 USES_CONTROLS=1
39273 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39274fi
39275
39276if test "$wxUSE_TOGGLEBTN" = "yes"; then
39277 if test "$wxUSE_COCOA" = 1 ; then
39278 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39279echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39280 wxUSE_TOGGLEBTN=no
bdcade0a
MB
39281 else
39282 if test "$wxUSE_PM" = 1; then
39283 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
39284echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
39285 wxUSE_TOGGLEBTN=no
39286 fi
a848cd7e
SC
39287 fi
39288 if test "$wxUSE_UNIVERSAL" = "yes"; then
39289 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39290echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39291 wxUSE_TOGGLEBTN=no
39292 fi
39293
39294 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39295 cat >>confdefs.h <<\_ACEOF
39296#define wxUSE_TOGGLEBTN 1
39297_ACEOF
39298
39299 USES_CONTROLS=1
39300 fi
39301fi
39302
39303if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39304 cat >>confdefs.h <<\_ACEOF
39305#define wxUSE_TOOLBAR_SIMPLE 1
39306_ACEOF
39307
39308 wxUSE_TOOLBAR="yes"
39309 USES_CONTROLS=1
39310fi
39311
39312if test "$wxUSE_TOOLBAR" = "yes"; then
39313 cat >>confdefs.h <<\_ACEOF
39314#define wxUSE_TOOLBAR 1
39315_ACEOF
39316
39317 USES_CONTROLS=1
39318
39319 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39320 wxUSE_TOOLBAR_NATIVE="yes"
39321 fi
39322
39323 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39324 cat >>confdefs.h <<\_ACEOF
39325#define wxUSE_TOOLBAR_NATIVE 1
39326_ACEOF
39327
39328 USES_CONTROLS=1
39329 fi
39330
39331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39332fi
39333
39334if test "$wxUSE_TOOLTIPS" = "yes"; then
39335 if test "$wxUSE_MOTIF" = 1; then
39336 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39337echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39338 else
39339 if test "$wxUSE_UNIVERSAL" = "yes"; then
39340 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39341echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39342 else
39343 cat >>confdefs.h <<\_ACEOF
39344#define wxUSE_TOOLTIPS 1
39345_ACEOF
39346
39347 fi
39348 fi
39349fi
39350
39351if test "$wxUSE_TREECTRL" = "yes"; then
39352 if test "$wxUSE_IMAGLIST" = "yes"; then
39353 cat >>confdefs.h <<\_ACEOF
39354#define wxUSE_TREECTRL 1
39355_ACEOF
39356
39357 USES_CONTROLS=1
39358 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39359 else
39360 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39361echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39362 fi
39363fi
39364
39365if test "$wxUSE_POPUPWIN" = "yes"; then
39366 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39367 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39368echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39369 else
39370 if test "$wxUSE_PM" = 1; then
39371 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39372echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39373 else
39374 cat >>confdefs.h <<\_ACEOF
39375#define wxUSE_POPUPWIN 1
39376_ACEOF
39377
0b78747f 39378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39379
39380 USES_CONTROLS=1
39381 fi
39382 fi
39383fi
39384
0dcd06dd 39385if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39386 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39387 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39388echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39389 else
39390 cat >>confdefs.h <<\_ACEOF
39391#define wxUSE_DIALUP_MANAGER 1
39392_ACEOF
39393
39394 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39395 fi
39396fi
39397
a848cd7e
SC
39398if test "$wxUSE_TIPWINDOW" = "yes"; then
39399 if test "$wxUSE_PM" = 1; then
39400 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39401echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39402 else
39403 cat >>confdefs.h <<\_ACEOF
39404#define wxUSE_TIPWINDOW 1
39405_ACEOF
39406
39407 fi
39408fi
39409
39410if test "$USES_CONTROLS" = 1; then
39411 cat >>confdefs.h <<\_ACEOF
39412#define wxUSE_CONTROLS 1
39413_ACEOF
39414
39415fi
39416
39417
39418if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39419 cat >>confdefs.h <<\_ACEOF
39420#define wxUSE_ACCESSIBILITY 1
39421_ACEOF
39422
39423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39424fi
39425
39426if test "$wxUSE_DRAGIMAGE" = "yes"; then
39427 cat >>confdefs.h <<\_ACEOF
39428#define wxUSE_DRAGIMAGE 1
39429_ACEOF
39430
39431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39432fi
39433
39434if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39435 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39436 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39437echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39438 else
39439 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39440#define wxUSE_EXCEPTIONS 1
39441_ACEOF
39442
07bea8f0
VS
39443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39444 fi
a848cd7e
SC
39445fi
39446
39447USE_HTML=0
39448if test "$wxUSE_HTML" = "yes"; then
39449 cat >>confdefs.h <<\_ACEOF
39450#define wxUSE_HTML 1
39451_ACEOF
39452
39453 USE_HTML=1
39454 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39455 if test "$wxUSE_MAC" = 1; then
39456 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39457 fi
a848cd7e 39458fi
646b6ec1 39459if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39460 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39461 old_CPPFLAGS="$CPPFLAGS"
39462 CPPFLAGS="$CPPFLAGS -x objective-c++"
39463 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39464echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39465if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39466 echo $ECHO_N "(cached) $ECHO_C" >&6
39467else
39468 cat >conftest.$ac_ext <<_ACEOF
39469/* confdefs.h. */
39470_ACEOF
39471cat confdefs.h >>conftest.$ac_ext
39472cat >>conftest.$ac_ext <<_ACEOF
39473/* end confdefs.h. */
39474#include <Carbon/Carbon.h>
39475
39476#include <WebKit/HIWebView.h>
39477_ACEOF
39478rm -f conftest.$ac_objext
39479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39480 (eval $ac_compile) 2>conftest.er1
39481 ac_status=$?
39482 grep -v '^ *+' conftest.er1 >conftest.err
39483 rm -f conftest.er1
39484 cat conftest.err >&5
39485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486 (exit $ac_status); } &&
dfe0c803
JS
39487 { ac_try='test -z "$ac_c_werror_flag"
39488 || test ! -s conftest.err'
07bea8f0
VS
39489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39490 (eval $ac_try) 2>&5
39491 ac_status=$?
39492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39493 (exit $ac_status); }; } &&
39494 { ac_try='test -s conftest.$ac_objext'
39495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39496 (eval $ac_try) 2>&5
39497 ac_status=$?
39498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39499 (exit $ac_status); }; }; then
39500 ac_cv_header_WebKit_HIWebView_h=yes
39501else
39502 echo "$as_me: failed program was:" >&5
39503sed 's/^/| /' conftest.$ac_ext >&5
39504
39505ac_cv_header_WebKit_HIWebView_h=no
39506fi
39507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39508fi
39509echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39510echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39511if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39512
39513 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39514#define wxUSE_WEBKIT 1
39515_ACEOF
39516
07bea8f0
VS
39517 WEBKIT_LINK="-framework WebKit"
39518
39519else
39520
39521 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39522echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39523 wxUSE_WEBKIT=no
39524
646b6ec1
VS
39525fi
39526
07bea8f0
VS
39527
39528 CPPFLAGS="$old_CPPFLAGS"
39529 elif test "$wxUSE_COCOA" = 1; then
39530 cat >>confdefs.h <<\_ACEOF
39531#define wxUSE_WEBKIT 1
39532_ACEOF
39533
39534 else
39535 wxUSE_WEBKIT=no
39536 fi
39537fi
39538
9a8f0513
VS
39539USE_XRC=0
39540if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39541 if test "$wxUSE_XML" != "yes"; then
39542 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39543echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39544 wxUSE_XRC=no
39545 else
39546 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39547#define wxUSE_XRC 1
39548_ACEOF
39549
d2ebf0b7
VS
39550 USE_XRC=1
39551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39552 fi
9a8f0513 39553fi
07bea8f0 39554
a848cd7e
SC
39555if test "$wxUSE_MENUS" = "yes"; then
39556 cat >>confdefs.h <<\_ACEOF
39557#define wxUSE_MENUS 1
39558_ACEOF
39559
39560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39561fi
39562
39563if test "$wxUSE_METAFILE" = "yes"; then
39564 cat >>confdefs.h <<\_ACEOF
39565#define wxUSE_METAFILE 1
39566_ACEOF
39567
39568fi
39569
39570if test "$wxUSE_MIMETYPE" = "yes"; then
39571 cat >>confdefs.h <<\_ACEOF
39572#define wxUSE_MIMETYPE 1
39573_ACEOF
39574
39575fi
39576
39577if test "$wxUSE_MINIFRAME" = "yes"; then
39578 cat >>confdefs.h <<\_ACEOF
39579#define wxUSE_MINIFRAME 1
39580_ACEOF
39581
39582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39583fi
39584
39585if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39586 cat >>confdefs.h <<\_ACEOF
39587#define wxUSE_SYSTEM_OPTIONS 1
39588_ACEOF
39589
39590 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39591 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39593 fi
39594fi
39595
39596
39597if test "$wxUSE_VALIDATORS" = "yes"; then
39598 cat >>confdefs.h <<\_ACEOF
39599#define wxUSE_VALIDATORS 1
39600_ACEOF
39601
39602 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39603fi
39604
39605if test "$wxUSE_PALETTE" = "yes" ; then
39606 cat >>confdefs.h <<\_ACEOF
39607#define wxUSE_PALETTE 1
39608_ACEOF
39609
39610fi
39611
39612if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39613 LIBS=" -lunicows $LIBS"
39614fi
39615
39616
39617if test "$wxUSE_IMAGE" = "yes" ; then
39618 cat >>confdefs.h <<\_ACEOF
39619#define wxUSE_IMAGE 1
39620_ACEOF
39621
39622
39623 if test "$wxUSE_GIF" = "yes" ; then
39624 cat >>confdefs.h <<\_ACEOF
39625#define wxUSE_GIF 1
39626_ACEOF
39627
39628 fi
39629
39630 if test "$wxUSE_PCX" = "yes" ; then
39631 cat >>confdefs.h <<\_ACEOF
39632#define wxUSE_PCX 1
39633_ACEOF
39634
39635 fi
39636
39637 if test "$wxUSE_IFF" = "yes" ; then
39638 cat >>confdefs.h <<\_ACEOF
39639#define wxUSE_IFF 1
39640_ACEOF
39641
39642 fi
39643
39644 if test "$wxUSE_PNM" = "yes" ; then
39645 cat >>confdefs.h <<\_ACEOF
39646#define wxUSE_PNM 1
39647_ACEOF
39648
39649 fi
39650
39651 if test "$wxUSE_XPM" = "yes" ; then
39652 cat >>confdefs.h <<\_ACEOF
39653#define wxUSE_XPM 1
39654_ACEOF
39655
39656 fi
39657
39658 if test "$wxUSE_ICO_CUR" = "yes" ; then
39659 cat >>confdefs.h <<\_ACEOF
39660#define wxUSE_ICO_CUR 1
39661_ACEOF
39662
39663 fi
39664fi
39665
39666
39667if test "$wxUSE_CHOICEDLG" = "yes"; then
39668 cat >>confdefs.h <<\_ACEOF
39669#define wxUSE_CHOICEDLG 1
39670_ACEOF
39671
39672fi
39673
39674if test "$wxUSE_COLOURDLG" = "yes"; then
39675 cat >>confdefs.h <<\_ACEOF
39676#define wxUSE_COLOURDLG 1
39677_ACEOF
39678
39679fi
39680
39681if test "$wxUSE_FILEDLG" = "yes"; then
39682 cat >>confdefs.h <<\_ACEOF
39683#define wxUSE_FILEDLG 1
39684_ACEOF
39685
39686fi
39687
39688if test "$wxUSE_FINDREPLDLG" = "yes"; then
39689 cat >>confdefs.h <<\_ACEOF
39690#define wxUSE_FINDREPLDLG 1
39691_ACEOF
39692
39693fi
39694
39695if test "$wxUSE_FONTDLG" = "yes"; then
39696 cat >>confdefs.h <<\_ACEOF
39697#define wxUSE_FONTDLG 1
39698_ACEOF
39699
39700fi
39701
39702if test "$wxUSE_DIRDLG" = "yes"; then
39703 if test "$wxUSE_TREECTRL" != "yes"; then
39704 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39705echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39706 else
39707 cat >>confdefs.h <<\_ACEOF
39708#define wxUSE_DIRDLG 1
39709_ACEOF
39710
39711 fi
39712fi
39713
39714if test "$wxUSE_MSGDLG" = "yes"; then
39715 cat >>confdefs.h <<\_ACEOF
39716#define wxUSE_MSGDLG 1
39717_ACEOF
39718
39719fi
39720
39721if test "$wxUSE_NUMBERDLG" = "yes"; then
39722 cat >>confdefs.h <<\_ACEOF
39723#define wxUSE_NUMBERDLG 1
39724_ACEOF
39725
39726fi
39727
39728if test "$wxUSE_PROGRESSDLG" = "yes"; then
39729 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39730 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39731echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39732 else
39733 cat >>confdefs.h <<\_ACEOF
39734#define wxUSE_PROGRESSDLG 1
39735_ACEOF
39736
39737 fi
39738fi
39739
39740if test "$wxUSE_SPLASH" = "yes"; then
39741 cat >>confdefs.h <<\_ACEOF
39742#define wxUSE_SPLASH 1
39743_ACEOF
39744
2057db16 39745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39746fi
39747
39748if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39749 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39750 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39751echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39752 else
39753 cat >>confdefs.h <<\_ACEOF
39754#define wxUSE_STARTUP_TIPS 1
39755_ACEOF
39756
39757 fi
39758fi
39759
39760if test "$wxUSE_TEXTDLG" = "yes"; then
39761 cat >>confdefs.h <<\_ACEOF
39762#define wxUSE_TEXTDLG 1
39763_ACEOF
39764
39765fi
39766
39767if test "$wxUSE_WIZARDDLG" = "yes"; then
39768 cat >>confdefs.h <<\_ACEOF
39769#define wxUSE_WIZARDDLG 1
39770_ACEOF
39771
39772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39773fi
39774
39775
ce756cb0
RN
39776if test "$wxUSE_MEDIACTRL" = "yes"; then
39777 if test "$wxUSE_MSW" = 1; then
39778 wxUSE_DIRECTSHOW="yes"
39779
39780for ac_header in dshow.h
39781do
39782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39783echo "$as_me:$LINENO: checking for $ac_header" >&5
39784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39785if eval "test \"\${$as_ac_Header+set}\" = set"; then
39786 echo $ECHO_N "(cached) $ECHO_C" >&6
39787else
39788 cat >conftest.$ac_ext <<_ACEOF
39789/* confdefs.h. */
39790_ACEOF
39791cat confdefs.h >>conftest.$ac_ext
39792cat >>conftest.$ac_ext <<_ACEOF
39793/* end confdefs.h. */
39794#include <windows.h>
39795
39796#include <$ac_header>
39797_ACEOF
39798rm -f conftest.$ac_objext
39799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39800 (eval $ac_compile) 2>conftest.er1
39801 ac_status=$?
39802 grep -v '^ *+' conftest.er1 >conftest.err
39803 rm -f conftest.er1
39804 cat conftest.err >&5
39805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39806 (exit $ac_status); } &&
dfe0c803
JS
39807 { ac_try='test -z "$ac_c_werror_flag"
39808 || test ! -s conftest.err'
ce756cb0
RN
39809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39810 (eval $ac_try) 2>&5
39811 ac_status=$?
39812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39813 (exit $ac_status); }; } &&
39814 { ac_try='test -s conftest.$ac_objext'
39815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39816 (eval $ac_try) 2>&5
39817 ac_status=$?
39818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39819 (exit $ac_status); }; }; then
39820 eval "$as_ac_Header=yes"
39821else
39822 echo "$as_me: failed program was:" >&5
39823sed 's/^/| /' conftest.$ac_ext >&5
39824
39825eval "$as_ac_Header=no"
39826fi
39827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39828fi
39829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39831if test `eval echo '${'$as_ac_Header'}'` = yes; then
39832 cat >>confdefs.h <<_ACEOF
39833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39834_ACEOF
39835
39836else
39837
39838 wxUSE_DIRECTSHOW="no"
39839 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39840echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39841
39842fi
39843
39844done
39845
39846
39847 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39848 cat >>confdefs.h <<\_ACEOF
39849#define wxUSE_DIRECTSHOW 1
39850_ACEOF
39851
39852 LIBS="$LIBS -lstrmiids"
39853 fi
39854 fi
39855
39856 if test "$wxUSE_GTK" = 1; then
39857 wxUSE_GSTREAMER="yes"
39858
ce756cb0 39859
dae87f93 39860 succeeded=no
ce756cb0 39861
dae87f93
RN
39862 if test -z "$PKG_CONFIG"; then
39863 # Extract the first word of "pkg-config", so it can be a program name with args.
39864set dummy pkg-config; ac_word=$2
39865echo "$as_me:$LINENO: checking for $ac_word" >&5
39866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39867if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39868 echo $ECHO_N "(cached) $ECHO_C" >&6
39869else
39870 case $PKG_CONFIG in
39871 [\\/]* | ?:[\\/]*)
39872 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39873 ;;
39874 *)
39875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39876for as_dir in $PATH
39877do
39878 IFS=$as_save_IFS
39879 test -z "$as_dir" && as_dir=.
39880 for ac_exec_ext in '' $ac_executable_extensions; do
39881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39882 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39884 break 2
39885 fi
39886done
39887done
39888
39889 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39890 ;;
39891esac
39892fi
39893PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39894
39895if test -n "$PKG_CONFIG"; then
39896 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39897echo "${ECHO_T}$PKG_CONFIG" >&6
39898else
39899 echo "$as_me:$LINENO: result: no" >&5
39900echo "${ECHO_T}no" >&6
39901fi
39902
39903 fi
39904
39905 if test "$PKG_CONFIG" = "no" ; then
39906 echo "*** The pkg-config script could not be found. Make sure it is"
39907 echo "*** in your path, or set the PKG_CONFIG environment variable"
39908 echo "*** to the full path to pkg-config."
39909 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39910 else
39911 PKG_CONFIG_MIN_VERSION=0.9.0
39912 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39913 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39914echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39915
39916 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39917 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39918echo "${ECHO_T}yes" >&6
dae87f93 39919 succeeded=yes
ce756cb0 39920
dae87f93
RN
39921 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39922echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39923 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39924 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39925echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39926
39927 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39928echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39929 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39930 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39931echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39932 else
39933 GSTREAMER_CFLAGS=""
39934 GSTREAMER_LIBS=""
39935 ## If we have a custom action on failure, don't print errors, but
39936 ## do set a variable so people can do so.
39937 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39938
dae87f93
RN
39939 fi
39940
39941
39942
39943 else
39944 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39945 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39946 fi
39947 fi
39948
39949 if test $succeeded = yes; then
39950
39951 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39952 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39953
ce756cb0 39954 else
dae87f93
RN
39955
39956 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39957echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39958 wxUSE_GSTREAMER="no"
39959
39960 fi
39961
39962
39963
39964
39965
39966 if test "x$GST_INSPECT" == "x"; then
39967 # Extract the first word of "gst-inspect", so it can be a program name with args.
39968set dummy gst-inspect; ac_word=$2
39969echo "$as_me:$LINENO: checking for $ac_word" >&5
39970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39971if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39972 echo $ECHO_N "(cached) $ECHO_C" >&6
39973else
39974 if test -n "$GST_INSPECT"; then
39975 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39976else
39977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39978for as_dir in $PATH
39979do
39980 IFS=$as_save_IFS
39981 test -z "$as_dir" && as_dir=.
39982 for ac_exec_ext in '' $ac_executable_extensions; do
39983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39984 ac_cv_prog_GST_INSPECT="gst-inspect"
39985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39986 break 2
ce756cb0 39987 fi
dae87f93
RN
39988done
39989done
39990
39991fi
39992fi
39993GST_INSPECT=$ac_cv_prog_GST_INSPECT
39994if test -n "$GST_INSPECT"; then
39995 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39996echo "${ECHO_T}$GST_INSPECT" >&6
39997else
39998 echo "$as_me:$LINENO: result: no" >&5
39999echo "${ECHO_T}no" >&6
40000fi
40001
40002 fi
40003
40004 if test "x$GST_INSPECT" != "x"; then
40005 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40006echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40007 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40008 echo "$as_me:$LINENO: result: found." >&5
40009echo "${ECHO_T}found." >&6
ce756cb0 40010
ce756cb0 40011 else
dae87f93
RN
40012 echo "$as_me:$LINENO: result: not found." >&5
40013echo "${ECHO_T}not found." >&6
40014
40015 wxUSE_GSTREAMER="no"
40016 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40017echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40018
40019 fi
40020 fi
40021
40022
40023 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40024echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40025if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40026 echo $ECHO_N "(cached) $ECHO_C" >&6
40027else
40028 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40029/* confdefs.h. */
40030_ACEOF
40031cat confdefs.h >>conftest.$ac_ext
40032cat >>conftest.$ac_ext <<_ACEOF
40033/* end confdefs.h. */
dae87f93 40034#include <gst/gst.h>
ce756cb0 40035
dae87f93 40036#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40037_ACEOF
40038rm -f conftest.$ac_objext
40039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40040 (eval $ac_compile) 2>conftest.er1
40041 ac_status=$?
40042 grep -v '^ *+' conftest.er1 >conftest.err
40043 rm -f conftest.er1
40044 cat conftest.err >&5
40045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40046 (exit $ac_status); } &&
dfe0c803
JS
40047 { ac_try='test -z "$ac_c_werror_flag"
40048 || test ! -s conftest.err'
ce756cb0
RN
40049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40050 (eval $ac_try) 2>&5
40051 ac_status=$?
40052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053 (exit $ac_status); }; } &&
40054 { ac_try='test -s conftest.$ac_objext'
40055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40056 (eval $ac_try) 2>&5
40057 ac_status=$?
40058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40059 (exit $ac_status); }; }; then
dae87f93 40060 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40061else
40062 echo "$as_me: failed program was:" >&5
40063sed 's/^/| /' conftest.$ac_ext >&5
40064
dae87f93 40065ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40066fi
40067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40068fi
40069echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40070echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40071if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40072 :
40073else
ce756cb0 40074
dae87f93
RN
40075 wxUSE_GSTREAMER="no"
40076 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40077echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 40078
dae87f93 40079fi
ce756cb0 40080
dae87f93
RN
40081
40082
40083 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
40084echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40085
40086ac_find_libraries=
40087for ac_dir in $SEARCH_LIB /usr/lib;
40088 do
40089 for ac_extension in a so sl dylib; do
40090 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40091 ac_find_libraries=$ac_dir
40092 break 2
40093 fi
40094 done
40095 done
40096
ce756cb0 40097
dae87f93
RN
40098 if test "$ac_find_libraries" = "" ; then
40099 echo "$as_me:$LINENO: result: no" >&5
40100echo "${ECHO_T}no" >&6
40101 wxUSE_GSTREAMER="no"
40102 else
40103 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40104echo "${ECHO_T}yes" >&6
dae87f93 40105 fi
ce756cb0 40106
dae87f93
RN
40107 if test "$wxUSE_GSTREAMER" = "yes"; then
40108 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40109#define wxUSE_GSTREAMER 1
40110_ACEOF
40111
dae87f93
RN
40112 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40113echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40114 fi
40115 fi
40116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40117 cat >>confdefs.h <<\_ACEOF
40118#define wxUSE_MEDIACTRL 1
40119_ACEOF
40120
40121fi
40122
40123
a848cd7e
SC
40124if test "$cross_compiling" = "yes"; then
40125 OSINFO="\"$host\""
40126else
40127 OSINFO=`uname -s -r -m`
40128 OSINFO="\"$OSINFO\""
40129fi
40130
40131cat >>confdefs.h <<_ACEOF
40132#define WXWIN_OS_DESCRIPTION $OSINFO
40133_ACEOF
40134
40135
40136
40137if test "x$prefix" != "xNONE"; then
40138 wxPREFIX=$prefix
40139else
40140 wxPREFIX=$ac_default_prefix
40141fi
40142
40143cat >>confdefs.h <<_ACEOF
40144#define wxINSTALL_PREFIX "$wxPREFIX"
40145_ACEOF
40146
40147
a848cd7e
SC
40148
40149
40150CORE_BASE_LIBS="net base"
40151CORE_GUI_LIBS="adv core"
40152
40153if test "$wxUSE_XML" = "yes" ; then
40154 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40155fi
40156if test "$wxUSE_ODBC" != "no" ; then
40157 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40158 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40159fi
40160if test "$wxUSE_HTML" = "yes" ; then
40161 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40162fi
61639efb
VZ
40163if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40164 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40165fi
9a8f0513
VS
40166if test "$wxUSE_XRC" = "yes" ; then
40167 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40168fi
a848cd7e
SC
40169
40170if test "$wxUSE_GUI" != "yes"; then
40171 CORE_GUI_LIBS=""
40172fi
40173
40174
40175
40176
40177
40178
40179
40180
40181if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 40182 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
40183 if test "$USE_DARWIN" = 1; then
40184 LDFLAGS="$LDFLAGS -framework QuickTime"
40185 else
40186 LDFLAGS="$LDFLAGS -lQuickTimeLib"
40187 fi
07bea8f0 40188 fi
5dcf30a0 40189 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
40190 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40191 else
40192 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 40193 fi
a848cd7e
SC
40194fi
40195if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 40196 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
40197 if test "$wxUSE_MEDIACTRL" = "yes"; then
40198 LDFLAGS="$LDFLAGS -framework QuickTime"
40199 fi
a848cd7e
SC
40200fi
40201
40202
40203LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40204
40205have_cos=0
40206have_floor=0
40207
40208for ac_func in cos
40209do
40210as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40211echo "$as_me:$LINENO: checking for $ac_func" >&5
40212echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40213if eval "test \"\${$as_ac_var+set}\" = set"; then
40214 echo $ECHO_N "(cached) $ECHO_C" >&6
40215else
40216 cat >conftest.$ac_ext <<_ACEOF
40217/* confdefs.h. */
40218_ACEOF
40219cat confdefs.h >>conftest.$ac_ext
40220cat >>conftest.$ac_ext <<_ACEOF
40221/* end confdefs.h. */
ac1cb8d3
VS
40222/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40224#define $ac_func innocuous_$ac_func
40225
a848cd7e
SC
40226/* System header to define __stub macros and hopefully few prototypes,
40227 which can conflict with char $ac_func (); below.
40228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40229 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40230
a848cd7e
SC
40231#ifdef __STDC__
40232# include <limits.h>
40233#else
40234# include <assert.h>
40235#endif
ac1cb8d3
VS
40236
40237#undef $ac_func
40238
a848cd7e
SC
40239/* Override any gcc2 internal prototype to avoid an error. */
40240#ifdef __cplusplus
40241extern "C"
40242{
40243#endif
40244/* We use char because int might match the return type of a gcc2
40245 builtin and then its argument prototype would still apply. */
40246char $ac_func ();
40247/* The GNU C library defines this for functions which it implements
40248 to always fail with ENOSYS. Some functions are actually named
40249 something starting with __ and the normal name is an alias. */
40250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40251choke me
40252#else
40253char (*f) () = $ac_func;
40254#endif
40255#ifdef __cplusplus
40256}
40257#endif
40258
40259int
40260main ()
40261{
40262return f != $ac_func;
40263 ;
40264 return 0;
40265}
40266_ACEOF
40267rm -f conftest.$ac_objext conftest$ac_exeext
40268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40269 (eval $ac_link) 2>conftest.er1
a848cd7e 40270 ac_status=$?
ac1cb8d3
VS
40271 grep -v '^ *+' conftest.er1 >conftest.err
40272 rm -f conftest.er1
40273 cat conftest.err >&5
a848cd7e
SC
40274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40275 (exit $ac_status); } &&
dfe0c803
JS
40276 { ac_try='test -z "$ac_c_werror_flag"
40277 || test ! -s conftest.err'
ac1cb8d3
VS
40278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40279 (eval $ac_try) 2>&5
40280 ac_status=$?
40281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40282 (exit $ac_status); }; } &&
40283 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40285 (eval $ac_try) 2>&5
40286 ac_status=$?
40287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40288 (exit $ac_status); }; }; then
40289 eval "$as_ac_var=yes"
40290else
40291 echo "$as_me: failed program was:" >&5
40292sed 's/^/| /' conftest.$ac_ext >&5
40293
40294eval "$as_ac_var=no"
40295fi
ac1cb8d3
VS
40296rm -f conftest.err conftest.$ac_objext \
40297 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40298fi
40299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40300echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40301if test `eval echo '${'$as_ac_var'}'` = yes; then
40302 cat >>confdefs.h <<_ACEOF
40303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40304_ACEOF
40305 have_cos=1
40306fi
40307done
40308
40309
40310for ac_func in floor
40311do
40312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40313echo "$as_me:$LINENO: checking for $ac_func" >&5
40314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40315if eval "test \"\${$as_ac_var+set}\" = set"; then
40316 echo $ECHO_N "(cached) $ECHO_C" >&6
40317else
40318 cat >conftest.$ac_ext <<_ACEOF
40319/* confdefs.h. */
40320_ACEOF
40321cat confdefs.h >>conftest.$ac_ext
40322cat >>conftest.$ac_ext <<_ACEOF
40323/* end confdefs.h. */
ac1cb8d3
VS
40324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40326#define $ac_func innocuous_$ac_func
40327
a848cd7e
SC
40328/* System header to define __stub macros and hopefully few prototypes,
40329 which can conflict with char $ac_func (); below.
40330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40331 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40332
a848cd7e
SC
40333#ifdef __STDC__
40334# include <limits.h>
40335#else
40336# include <assert.h>
40337#endif
ac1cb8d3
VS
40338
40339#undef $ac_func
40340
a848cd7e
SC
40341/* Override any gcc2 internal prototype to avoid an error. */
40342#ifdef __cplusplus
40343extern "C"
40344{
40345#endif
40346/* We use char because int might match the return type of a gcc2
40347 builtin and then its argument prototype would still apply. */
40348char $ac_func ();
40349/* The GNU C library defines this for functions which it implements
40350 to always fail with ENOSYS. Some functions are actually named
40351 something starting with __ and the normal name is an alias. */
40352#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40353choke me
40354#else
40355char (*f) () = $ac_func;
40356#endif
40357#ifdef __cplusplus
40358}
40359#endif
40360
40361int
40362main ()
40363{
40364return f != $ac_func;
40365 ;
40366 return 0;
40367}
40368_ACEOF
40369rm -f conftest.$ac_objext conftest$ac_exeext
40370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40371 (eval $ac_link) 2>conftest.er1
a848cd7e 40372 ac_status=$?
ac1cb8d3
VS
40373 grep -v '^ *+' conftest.er1 >conftest.err
40374 rm -f conftest.er1
40375 cat conftest.err >&5
a848cd7e
SC
40376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40377 (exit $ac_status); } &&
dfe0c803
JS
40378 { ac_try='test -z "$ac_c_werror_flag"
40379 || test ! -s conftest.err'
ac1cb8d3
VS
40380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40381 (eval $ac_try) 2>&5
40382 ac_status=$?
40383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40384 (exit $ac_status); }; } &&
40385 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40387 (eval $ac_try) 2>&5
40388 ac_status=$?
40389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40390 (exit $ac_status); }; }; then
40391 eval "$as_ac_var=yes"
40392else
40393 echo "$as_me: failed program was:" >&5
40394sed 's/^/| /' conftest.$ac_ext >&5
40395
40396eval "$as_ac_var=no"
40397fi
ac1cb8d3
VS
40398rm -f conftest.err conftest.$ac_objext \
40399 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40400fi
40401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40402echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40403if test `eval echo '${'$as_ac_var'}'` = yes; then
40404 cat >>confdefs.h <<_ACEOF
40405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40406_ACEOF
40407 have_floor=1
40408fi
40409done
40410
40411echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40412echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40413if test "$have_cos" = 1 -a "$have_floor" = 1; then
40414 echo "$as_me:$LINENO: result: yes" >&5
40415echo "${ECHO_T}yes" >&6
40416else
40417 echo "$as_me:$LINENO: result: no" >&5
40418echo "${ECHO_T}no" >&6
40419 LIBS="$LIBS -lm"
40420 # use different functions to avoid configure caching
40421 have_sin=0
40422 have_ceil=0
40423
40424for ac_func in sin
40425do
40426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40427echo "$as_me:$LINENO: checking for $ac_func" >&5
40428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40429if eval "test \"\${$as_ac_var+set}\" = set"; then
40430 echo $ECHO_N "(cached) $ECHO_C" >&6
40431else
40432 cat >conftest.$ac_ext <<_ACEOF
40433/* confdefs.h. */
40434_ACEOF
40435cat confdefs.h >>conftest.$ac_ext
40436cat >>conftest.$ac_ext <<_ACEOF
40437/* end confdefs.h. */
ac1cb8d3
VS
40438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40440#define $ac_func innocuous_$ac_func
40441
a848cd7e
SC
40442/* System header to define __stub macros and hopefully few prototypes,
40443 which can conflict with char $ac_func (); below.
40444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40445 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40446
a848cd7e
SC
40447#ifdef __STDC__
40448# include <limits.h>
40449#else
40450# include <assert.h>
40451#endif
ac1cb8d3
VS
40452
40453#undef $ac_func
40454
a848cd7e
SC
40455/* Override any gcc2 internal prototype to avoid an error. */
40456#ifdef __cplusplus
40457extern "C"
40458{
40459#endif
40460/* We use char because int might match the return type of a gcc2
40461 builtin and then its argument prototype would still apply. */
40462char $ac_func ();
40463/* The GNU C library defines this for functions which it implements
40464 to always fail with ENOSYS. Some functions are actually named
40465 something starting with __ and the normal name is an alias. */
40466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40467choke me
40468#else
40469char (*f) () = $ac_func;
40470#endif
40471#ifdef __cplusplus
40472}
40473#endif
40474
40475int
40476main ()
40477{
40478return f != $ac_func;
40479 ;
40480 return 0;
40481}
40482_ACEOF
40483rm -f conftest.$ac_objext conftest$ac_exeext
40484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40485 (eval $ac_link) 2>conftest.er1
a848cd7e 40486 ac_status=$?
ac1cb8d3
VS
40487 grep -v '^ *+' conftest.er1 >conftest.err
40488 rm -f conftest.er1
40489 cat conftest.err >&5
a848cd7e
SC
40490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40491 (exit $ac_status); } &&
dfe0c803
JS
40492 { ac_try='test -z "$ac_c_werror_flag"
40493 || test ! -s conftest.err'
ac1cb8d3
VS
40494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40495 (eval $ac_try) 2>&5
40496 ac_status=$?
40497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40498 (exit $ac_status); }; } &&
40499 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40501 (eval $ac_try) 2>&5
40502 ac_status=$?
40503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40504 (exit $ac_status); }; }; then
40505 eval "$as_ac_var=yes"
40506else
40507 echo "$as_me: failed program was:" >&5
40508sed 's/^/| /' conftest.$ac_ext >&5
40509
40510eval "$as_ac_var=no"
40511fi
ac1cb8d3
VS
40512rm -f conftest.err conftest.$ac_objext \
40513 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40514fi
40515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40516echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40517if test `eval echo '${'$as_ac_var'}'` = yes; then
40518 cat >>confdefs.h <<_ACEOF
40519#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40520_ACEOF
40521 have_sin=1
40522fi
40523done
40524
40525
40526for ac_func in ceil
40527do
40528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40529echo "$as_me:$LINENO: checking for $ac_func" >&5
40530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40531if eval "test \"\${$as_ac_var+set}\" = set"; then
40532 echo $ECHO_N "(cached) $ECHO_C" >&6
40533else
40534 cat >conftest.$ac_ext <<_ACEOF
40535/* confdefs.h. */
40536_ACEOF
40537cat confdefs.h >>conftest.$ac_ext
40538cat >>conftest.$ac_ext <<_ACEOF
40539/* end confdefs.h. */
ac1cb8d3
VS
40540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40542#define $ac_func innocuous_$ac_func
40543
a848cd7e
SC
40544/* System header to define __stub macros and hopefully few prototypes,
40545 which can conflict with char $ac_func (); below.
40546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40547 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40548
a848cd7e
SC
40549#ifdef __STDC__
40550# include <limits.h>
40551#else
40552# include <assert.h>
40553#endif
ac1cb8d3
VS
40554
40555#undef $ac_func
40556
a848cd7e
SC
40557/* Override any gcc2 internal prototype to avoid an error. */
40558#ifdef __cplusplus
40559extern "C"
40560{
40561#endif
40562/* We use char because int might match the return type of a gcc2
40563 builtin and then its argument prototype would still apply. */
40564char $ac_func ();
40565/* The GNU C library defines this for functions which it implements
40566 to always fail with ENOSYS. Some functions are actually named
40567 something starting with __ and the normal name is an alias. */
40568#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40569choke me
40570#else
40571char (*f) () = $ac_func;
40572#endif
40573#ifdef __cplusplus
40574}
40575#endif
40576
40577int
40578main ()
40579{
40580return f != $ac_func;
40581 ;
40582 return 0;
40583}
40584_ACEOF
40585rm -f conftest.$ac_objext conftest$ac_exeext
40586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40587 (eval $ac_link) 2>conftest.er1
a848cd7e 40588 ac_status=$?
ac1cb8d3
VS
40589 grep -v '^ *+' conftest.er1 >conftest.err
40590 rm -f conftest.er1
40591 cat conftest.err >&5
a848cd7e
SC
40592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40593 (exit $ac_status); } &&
dfe0c803
JS
40594 { ac_try='test -z "$ac_c_werror_flag"
40595 || test ! -s conftest.err'
ac1cb8d3
VS
40596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40597 (eval $ac_try) 2>&5
40598 ac_status=$?
40599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40600 (exit $ac_status); }; } &&
40601 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40603 (eval $ac_try) 2>&5
40604 ac_status=$?
40605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40606 (exit $ac_status); }; }; then
40607 eval "$as_ac_var=yes"
40608else
40609 echo "$as_me: failed program was:" >&5
40610sed 's/^/| /' conftest.$ac_ext >&5
40611
40612eval "$as_ac_var=no"
40613fi
ac1cb8d3
VS
40614rm -f conftest.err conftest.$ac_objext \
40615 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40616fi
40617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40618echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40619if test `eval echo '${'$as_ac_var'}'` = yes; then
40620 cat >>confdefs.h <<_ACEOF
40621#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40622_ACEOF
40623 have_ceil=1
40624fi
40625done
40626
40627 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40628echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40629 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40630 echo "$as_me:$LINENO: result: yes" >&5
40631echo "${ECHO_T}yes" >&6
40632 else
40633 echo "$as_me:$LINENO: result: no" >&5
40634echo "${ECHO_T}no" >&6
40635 # not sure we should warn the user, crash, etc.
40636 fi
40637fi
40638
40639if test "$wxUSE_GUI" = "yes"; then
40640
40641
8bce5cda
MW
40642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40643 dynamic erase event exec font image minimal mobile \
40644 mobile/wxedit mobile/styles propsize render \
40645 richedit rotate shaped vscroll widgets"
a848cd7e
SC
40646
40647 if test "$wxUSE_MONOLITHIC" != "yes"; then
40648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40649 fi
0b78747f 40650 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
40651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40652 if test "$wxUSE_UNIVERSAL" != "yes"; then
40653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40654 fi
40655 fi
40656 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40657 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 40658 fi
a848cd7e
SC
40659else
40660 SAMPLES_SUBDIRS="console"
40661fi
40662
40663
ceec2216 40664INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40665-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40666
40667if test "$GXX" = yes ; then
5294a27e
VZ
40668 CWARNINGS="-Wall"
40669 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40670 fi
40671
40672EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40673
0c3c69fc 40674CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40675CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40676CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40677
95986553
DE
40678if test "x$MWCC" = "xyes"; then
40679
40680 CC="$CC -cwd source -I-"
40681 CXX="$CXX -cwd source -I-"
40682fi
40683
a848cd7e 40684
0c3c69fc 40685LIBS=`echo $LIBS`
a848cd7e
SC
40686EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40687EXTRALIBS_XML="$EXPAT_LINK"
40688EXTRALIBS_HTML="$MSPACK_LINK"
40689EXTRALIBS_ODBC="$ODBC_LINK"
40690if test "$wxUSE_GUI" = "yes"; then
2e350179 40691 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40692fi
40693if test "$wxUSE_OPENGL" = "yes"; then
40694 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40695fi
40696
40697LDFLAGS="$LDFLAGS $PROFILE"
40698
40699if test "$wxUSE_GTK" = 1; then
40700 WXCONFIG_INCLUDE=
40701else
40702 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40703fi
40704
40705WXCONFIG_EXTRALIBS="$LIBS"
40706
40707if test "$wxUSE_REGEX" = "builtin" ; then
40708 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
40709fi
40710if test "$wxUSE_EXPAT" = "builtin" ; then
40711 wxconfig_3rdparty="$wxconfig_3rdparty expat"
40712fi
40713if test "$wxUSE_ODBC" = "builtin" ; then
40714 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40715fi
40716if test "$wxUSE_LIBTIFF" = "builtin" ; then
40717 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
40718fi
40719if test "$wxUSE_LIBJPEG" = "builtin" ; then
40720 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
40721fi
40722if test "$wxUSE_LIBPNG" = "builtin" ; then
40723 wxconfig_3rdparty="$wxconfig_3rdparty png"
40724fi
40725if test "$wxUSE_ZLIB" = "builtin" ; then
40726 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
40727fi
40728if test "$wxUSE_ODBC" = "builtin" ; then
40729 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40730fi
40731
40732for i in $wxconfig_3rdparty ; do
ceec2216 40733 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
40734done
40735
40736
40737if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40738 WXUNIV=1
40739else
40740 WXUNIV=0
40741fi
40742
40743
40744
40745
40746
40747
40748
40749
40750
40751if test $wxUSE_MONOLITHIC = "yes" ; then
40752 MONOLITHIC=1
40753else
40754 MONOLITHIC=0
40755fi
40756
40757if test $wxUSE_PLUGINS = "yes" ; then
40758 USE_PLUGINS=1
40759else
40760 USE_PLUGINS=0
40761fi
40762
40763if test $wxUSE_ODBC != "no" ; then
40764 USE_ODBC=1
40765else
40766 USE_ODBC=0
40767fi
40768
16358932
VZ
40769if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40770 USE_QA=1
40771else
40772 USE_QA=0
40773fi
40774
a848cd7e
SC
40775if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40776 OFFICIAL_BUILD=1
40777else
40778 OFFICIAL_BUILD=0
40779fi
40780
40781
40782
40783
40784
40785
40786
40787
40788
40789
40790
40791
40792
40793
40794
40795
40796
40797
40798
ceec2216 40799
d1c38808 40800
a848cd7e
SC
40801
40802
40803TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40804
40805
40806
40807
40808
40809
40810
40811
4d4ff94c
VZ
40812case "$TOOLKIT" in
40813 GTK)
40814 TOOLKIT_USER="GTK+"
40815 if test "$WXGTK20" = 1; then
40816 TOOLKIT_USER="$TOOLKIT_USER 2"
40817 fi
9a8f0513 40818 ;;
4d4ff94c
VZ
40819
40820 *)
40821 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40822 ;;
4d4ff94c 40823esac
a848cd7e 40824
9a8f0513 40825
1e9e8aba
DE
40826
40827
a848cd7e
SC
40828 if test "x$BAKEFILE_HOST" = "x"; then
40829 BAKEFILE_HOST="${host}"
40830 fi
40831
40832 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40833
40834 if test -n "$ac_tool_prefix"; then
40835 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40836set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40837echo "$as_me:$LINENO: checking for $ac_word" >&5
40838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40839if test "${ac_cv_prog_RANLIB+set}" = set; then
40840 echo $ECHO_N "(cached) $ECHO_C" >&6
40841else
40842 if test -n "$RANLIB"; then
40843 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40844else
40845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40846for as_dir in $PATH
40847do
40848 IFS=$as_save_IFS
40849 test -z "$as_dir" && as_dir=.
40850 for ac_exec_ext in '' $ac_executable_extensions; do
40851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40852 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40854 break 2
40855 fi
40856done
40857done
40858
40859fi
40860fi
40861RANLIB=$ac_cv_prog_RANLIB
40862if test -n "$RANLIB"; then
40863 echo "$as_me:$LINENO: result: $RANLIB" >&5
40864echo "${ECHO_T}$RANLIB" >&6
40865else
40866 echo "$as_me:$LINENO: result: no" >&5
40867echo "${ECHO_T}no" >&6
40868fi
40869
40870fi
40871if test -z "$ac_cv_prog_RANLIB"; then
40872 ac_ct_RANLIB=$RANLIB
40873 # Extract the first word of "ranlib", so it can be a program name with args.
40874set dummy ranlib; ac_word=$2
40875echo "$as_me:$LINENO: checking for $ac_word" >&5
40876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40877if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40878 echo $ECHO_N "(cached) $ECHO_C" >&6
40879else
40880 if test -n "$ac_ct_RANLIB"; then
40881 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40882else
40883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40884for as_dir in $PATH
40885do
40886 IFS=$as_save_IFS
40887 test -z "$as_dir" && as_dir=.
40888 for ac_exec_ext in '' $ac_executable_extensions; do
40889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40890 ac_cv_prog_ac_ct_RANLIB="ranlib"
40891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40892 break 2
40893 fi
40894done
40895done
40896
40897 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40898fi
40899fi
40900ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40901if test -n "$ac_ct_RANLIB"; then
40902 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40903echo "${ECHO_T}$ac_ct_RANLIB" >&6
40904else
40905 echo "$as_me:$LINENO: result: no" >&5
40906echo "${ECHO_T}no" >&6
40907fi
40908
40909 RANLIB=$ac_ct_RANLIB
40910else
40911 RANLIB="$ac_cv_prog_RANLIB"
40912fi
40913
40914 # Find a good install program. We prefer a C program (faster),
40915# so one script is as good as another. But avoid the broken or
40916# incompatible versions:
40917# SysV /etc/install, /usr/sbin/install
40918# SunOS /usr/etc/install
40919# IRIX /sbin/install
40920# AIX /bin/install
40921# AmigaOS /C/install, which installs bootblocks on floppy discs
40922# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40923# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40924# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40925# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40926# ./install, which can be erroneously created by make from ./install.sh.
40927echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40928echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40929if test -z "$INSTALL"; then
40930if test "${ac_cv_path_install+set}" = set; then
40931 echo $ECHO_N "(cached) $ECHO_C" >&6
40932else
40933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40934for as_dir in $PATH
40935do
40936 IFS=$as_save_IFS
40937 test -z "$as_dir" && as_dir=.
40938 # Account for people who put trailing slashes in PATH elements.
40939case $as_dir/ in
40940 ./ | .// | /cC/* | \
40941 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40942 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40943 /usr/ucb/* ) ;;
40944 *)
40945 # OSF1 and SCO ODT 3.0 have their own names for install.
40946 # Don't use installbsd from OSF since it installs stuff as root
40947 # by default.
40948 for ac_prog in ginstall scoinst install; do
40949 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40950 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40951 if test $ac_prog = install &&
40952 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40953 # AIX install. It has an incompatible calling convention.
40954 :
40955 elif test $ac_prog = install &&
40956 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40957 # program-specific install script used by HP pwplus--don't use.
40958 :
40959 else
40960 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40961 break 3
40962 fi
40963 fi
a848cd7e
SC
40964 done
40965 done
40966 ;;
40967esac
40968done
40969
40970
40971fi
40972 if test "${ac_cv_path_install+set}" = set; then
40973 INSTALL=$ac_cv_path_install
40974 else
40975 # As a last resort, use the slow shell script. We don't cache a
40976 # path for INSTALL within a source directory, because that will
40977 # break other packages using the cache if that directory is
40978 # removed, or if the path is relative.
40979 INSTALL=$ac_install_sh
40980 fi
40981fi
40982echo "$as_me:$LINENO: result: $INSTALL" >&5
40983echo "${ECHO_T}$INSTALL" >&6
40984
40985# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40986# It thinks the first close brace ends the variable substitution.
40987test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40988
40989test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40990
40991test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40992
40993 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40994echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40995LN_S=$as_ln_s
40996if test "$LN_S" = "ln -s"; then
40997 echo "$as_me:$LINENO: result: yes" >&5
40998echo "${ECHO_T}yes" >&6
40999else
41000 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41001echo "${ECHO_T}no, using $LN_S" >&6
41002fi
41003
41004
41005 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41006echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41007set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41008if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41009 echo $ECHO_N "(cached) $ECHO_C" >&6
41010else
41011 cat >conftest.make <<\_ACEOF
41012all:
41013 @echo 'ac_maketemp="$(MAKE)"'
41014_ACEOF
41015# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41016eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41017if test -n "$ac_maketemp"; then
41018 eval ac_cv_prog_make_${ac_make}_set=yes
41019else
41020 eval ac_cv_prog_make_${ac_make}_set=no
41021fi
41022rm -f conftest.make
41023fi
41024if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41025 echo "$as_me:$LINENO: result: yes" >&5
41026echo "${ECHO_T}yes" >&6
41027 SET_MAKE=
41028else
41029 echo "$as_me:$LINENO: result: no" >&5
41030echo "${ECHO_T}no" >&6
41031 SET_MAKE="MAKE=${MAKE-make}"
41032fi
41033
41034
41035
41036 if test -n "$ac_tool_prefix"; then
41037 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41038set dummy ${ac_tool_prefix}ar; ac_word=$2
41039echo "$as_me:$LINENO: checking for $ac_word" >&5
41040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41041if test "${ac_cv_prog_AR+set}" = set; then
41042 echo $ECHO_N "(cached) $ECHO_C" >&6
41043else
41044 if test -n "$AR"; then
41045 ac_cv_prog_AR="$AR" # Let the user override the test.
41046else
41047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41048for as_dir in $PATH
41049do
41050 IFS=$as_save_IFS
41051 test -z "$as_dir" && as_dir=.
41052 for ac_exec_ext in '' $ac_executable_extensions; do
41053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41054 ac_cv_prog_AR="${ac_tool_prefix}ar"
41055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41056 break 2
41057 fi
41058done
41059done
41060
41061fi
41062fi
41063AR=$ac_cv_prog_AR
41064if test -n "$AR"; then
41065 echo "$as_me:$LINENO: result: $AR" >&5
41066echo "${ECHO_T}$AR" >&6
41067else
41068 echo "$as_me:$LINENO: result: no" >&5
41069echo "${ECHO_T}no" >&6
41070fi
41071
41072fi
41073if test -z "$ac_cv_prog_AR"; then
41074 ac_ct_AR=$AR
41075 # Extract the first word of "ar", so it can be a program name with args.
41076set dummy ar; ac_word=$2
41077echo "$as_me:$LINENO: checking for $ac_word" >&5
41078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41079if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41080 echo $ECHO_N "(cached) $ECHO_C" >&6
41081else
41082 if test -n "$ac_ct_AR"; then
41083 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41084else
41085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41086for as_dir in $PATH
41087do
41088 IFS=$as_save_IFS
41089 test -z "$as_dir" && as_dir=.
41090 for ac_exec_ext in '' $ac_executable_extensions; do
41091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41092 ac_cv_prog_ac_ct_AR="ar"
41093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41094 break 2
41095 fi
41096done
41097done
41098
41099 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41100fi
41101fi
41102ac_ct_AR=$ac_cv_prog_ac_ct_AR
41103if test -n "$ac_ct_AR"; then
41104 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41105echo "${ECHO_T}$ac_ct_AR" >&6
41106else
41107 echo "$as_me:$LINENO: result: no" >&5
41108echo "${ECHO_T}no" >&6
41109fi
41110
41111 AR=$ac_ct_AR
41112else
41113 AR="$ac_cv_prog_AR"
41114fi
41115
41116 if test -n "$ac_tool_prefix"; then
41117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41118set dummy ${ac_tool_prefix}strip; ac_word=$2
41119echo "$as_me:$LINENO: checking for $ac_word" >&5
41120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41121if test "${ac_cv_prog_STRIP+set}" = set; then
41122 echo $ECHO_N "(cached) $ECHO_C" >&6
41123else
41124 if test -n "$STRIP"; then
41125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41126else
41127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41128for as_dir in $PATH
41129do
41130 IFS=$as_save_IFS
41131 test -z "$as_dir" && as_dir=.
41132 for ac_exec_ext in '' $ac_executable_extensions; do
41133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41134 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41136 break 2
41137 fi
41138done
41139done
41140
41141fi
41142fi
41143STRIP=$ac_cv_prog_STRIP
41144if test -n "$STRIP"; then
41145 echo "$as_me:$LINENO: result: $STRIP" >&5
41146echo "${ECHO_T}$STRIP" >&6
41147else
41148 echo "$as_me:$LINENO: result: no" >&5
41149echo "${ECHO_T}no" >&6
41150fi
41151
41152fi
41153if test -z "$ac_cv_prog_STRIP"; then
41154 ac_ct_STRIP=$STRIP
41155 # Extract the first word of "strip", so it can be a program name with args.
41156set dummy strip; ac_word=$2
41157echo "$as_me:$LINENO: checking for $ac_word" >&5
41158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41159if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41160 echo $ECHO_N "(cached) $ECHO_C" >&6
41161else
41162 if test -n "$ac_ct_STRIP"; then
41163 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41164else
41165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41166for as_dir in $PATH
41167do
41168 IFS=$as_save_IFS
41169 test -z "$as_dir" && as_dir=.
41170 for ac_exec_ext in '' $ac_executable_extensions; do
41171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41172 ac_cv_prog_ac_ct_STRIP="strip"
41173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41174 break 2
41175 fi
41176done
41177done
41178
41179 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41180fi
41181fi
41182ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41183if test -n "$ac_ct_STRIP"; then
41184 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41185echo "${ECHO_T}$ac_ct_STRIP" >&6
41186else
41187 echo "$as_me:$LINENO: result: no" >&5
41188echo "${ECHO_T}no" >&6
41189fi
41190
41191 STRIP=$ac_ct_STRIP
41192else
41193 STRIP="$ac_cv_prog_STRIP"
41194fi
41195
41196 if test -n "$ac_tool_prefix"; then
41197 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41198set dummy ${ac_tool_prefix}nm; ac_word=$2
41199echo "$as_me:$LINENO: checking for $ac_word" >&5
41200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41201if test "${ac_cv_prog_NM+set}" = set; then
41202 echo $ECHO_N "(cached) $ECHO_C" >&6
41203else
41204 if test -n "$NM"; then
41205 ac_cv_prog_NM="$NM" # Let the user override the test.
41206else
41207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41208for as_dir in $PATH
41209do
41210 IFS=$as_save_IFS
41211 test -z "$as_dir" && as_dir=.
41212 for ac_exec_ext in '' $ac_executable_extensions; do
41213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41214 ac_cv_prog_NM="${ac_tool_prefix}nm"
41215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41216 break 2
41217 fi
41218done
41219done
41220
41221fi
41222fi
41223NM=$ac_cv_prog_NM
41224if test -n "$NM"; then
41225 echo "$as_me:$LINENO: result: $NM" >&5
41226echo "${ECHO_T}$NM" >&6
41227else
41228 echo "$as_me:$LINENO: result: no" >&5
41229echo "${ECHO_T}no" >&6
41230fi
41231
41232fi
41233if test -z "$ac_cv_prog_NM"; then
41234 ac_ct_NM=$NM
41235 # Extract the first word of "nm", so it can be a program name with args.
41236set dummy nm; ac_word=$2
41237echo "$as_me:$LINENO: checking for $ac_word" >&5
41238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41239if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41240 echo $ECHO_N "(cached) $ECHO_C" >&6
41241else
41242 if test -n "$ac_ct_NM"; then
41243 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41244else
41245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41246for as_dir in $PATH
41247do
41248 IFS=$as_save_IFS
41249 test -z "$as_dir" && as_dir=.
41250 for ac_exec_ext in '' $ac_executable_extensions; do
41251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41252 ac_cv_prog_ac_ct_NM="nm"
41253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41254 break 2
41255 fi
41256done
41257done
41258
41259 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41260fi
41261fi
41262ac_ct_NM=$ac_cv_prog_ac_ct_NM
41263if test -n "$ac_ct_NM"; then
41264 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41265echo "${ECHO_T}$ac_ct_NM" >&6
41266else
41267 echo "$as_me:$LINENO: result: no" >&5
41268echo "${ECHO_T}no" >&6
41269fi
41270
41271 NM=$ac_ct_NM
41272else
41273 NM="$ac_cv_prog_NM"
41274fi
41275
41276
41277 case ${BAKEFILE_HOST} in
41278 *-hp-hpux* )
1e9e8aba 41279 INSTALL_DIR="mkdir -p"
a848cd7e
SC
41280 ;;
41281 *) INSTALL_DIR="$INSTALL -d"
41282 ;;
41283 esac
41284
41285
41286 LDFLAGS_GUI=
41287 case ${BAKEFILE_HOST} in
41288 *-*-cygwin* | *-*-mingw32* )
41289 LDFLAGS_GUI="-mwindows"
41290 esac
41291
41292
41293 fi
41294
41295 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41296echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41297if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41298 echo $ECHO_N "(cached) $ECHO_C" >&6
41299else
41300
41301 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41302 egrep -s GNU > /dev/null); then
41303 bakefile_cv_prog_makeisgnu="yes"
41304 else
41305 bakefile_cv_prog_makeisgnu="no"
41306 fi
41307
41308fi
41309echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41310echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41311
41312 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41313 IF_GNU_MAKE=""
41314 else
41315 IF_GNU_MAKE="#"
41316 fi
41317
41318
41319
41320 PLATFORM_UNIX=0
41321 PLATFORM_WIN32=0
41322 PLATFORM_MSDOS=0
41323 PLATFORM_MAC=0
1e9e8aba 41324 PLATFORM_MACOS=0
a848cd7e
SC
41325 PLATFORM_MACOSX=0
41326 PLATFORM_OS2=0
1e9e8aba 41327 PLATFORM_BEOS=0
a848cd7e
SC
41328
41329 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41330 case "${BAKEFILE_HOST}" in
41331 *-*-cygwin* | *-*-mingw32* )
41332 PLATFORM_WIN32=1
41333 ;;
41334 *-pc-msdosdjgpp )
41335 PLATFORM_MSDOS=1
41336 ;;
41337 *-pc-os2_emx | *-pc-os2-emx )
41338 PLATFORM_OS2=1
41339 ;;
41340 powerpc-*-darwin* )
41341 PLATFORM_MAC=1
41342 PLATFORM_MACOSX=1
41343 ;;
1e9e8aba
DE
41344 *-*-beos* )
41345 PLATFORM_BEOS=1
41346 ;;
41347 powerpc-apple-macos* )
41348 PLATFORM_MAC=1
41349 PLATFORM_MACOS=1
41350 ;;
a848cd7e
SC
41351 * )
41352 PLATFORM_UNIX=1
41353 ;;
41354 esac
41355 else
41356 case "$BAKEFILE_FORCE_PLATFORM" in
41357 win32 )
41358 PLATFORM_WIN32=1
41359 ;;
41360 msdos )
41361 PLATFORM_MSDOS=1
41362 ;;
41363 os2 )
41364 PLATFORM_OS2=1
41365 ;;
41366 darwin )
41367 PLATFORM_MAC=1
41368 PLATFORM_MACOSX=1
41369 ;;
41370 unix )
41371 PLATFORM_UNIX=1
41372 ;;
1e9e8aba
DE
41373 beos )
41374 PLATFORM_BEOS=1
41375 ;;
a848cd7e
SC
41376 * )
41377 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41378echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41379 { (exit 1); exit 1; }; }
41380 ;;
41381 esac
41382 fi
41383
41384
41385
41386
41387
41388
41389
41390
41391
1e9e8aba
DE
41392
41393
a848cd7e
SC
41394 # Check whether --enable-omf or --disable-omf was given.
41395if test "${enable_omf+set}" = set; then
41396 enableval="$enable_omf"
41397 bk_os2_use_omf="$enableval"
41398fi;
41399
41400 case "${BAKEFILE_HOST}" in
41401 *-*-darwin* )
41402 CFLAGS="$CFLAGS -fno-common"
41403 CXXFLAGS="$CXXFLAGS -fno-common"
41404 ;;
41405
41406 *-pc-os2_emx | *-pc-os2-emx )
41407 if test "x$bk_os2_use_omf" = "xyes" ; then
41408 AR=emxomfar
41409 RANLIB=:
41410 LDFLAGS="-Zomf $LDFLAGS"
41411 CFLAGS="-Zomf $CFLAGS"
41412 CXXFLAGS="-Zomf $CXXFLAGS"
41413 OS2_LIBEXT="lib"
41414 else
41415 OS2_LIBEXT="a"
41416 fi
41417 ;;
1e9e8aba
DE
41418
41419 i*86-*-beos* )
41420 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41421 ;;
a848cd7e
SC
41422 esac
41423
41424
41425 SO_SUFFIX="so"
41426 SO_SUFFIX_MODULE="so"
41427 EXEEXT=""
41428 LIBPREFIX="lib"
41429 LIBEXT=".a"
41430 DLLPREFIX="lib"
41431 DLLPREFIX_MODULE=""
41432 DLLIMP_SUFFIX=""
41433
41434 case "${BAKEFILE_HOST}" in
41435 *-hp-hpux* )
41436 SO_SUFFIX="sl"
41437 SO_SUFFIX_MODULE="sl"
41438 ;;
41439 *-*-aix* )
41440 SO_SUFFIX="a"
41441 SO_SUFFIX_MODULE="a"
41442 ;;
41443 *-*-cygwin* | *-*-mingw32* )
41444 SO_SUFFIX="dll"
41445 SO_SUFFIX_MODULE="dll"
41446 DLLIMP_SUFFIX="dll.a"
41447 EXEEXT=".exe"
41448 DLLPREFIX=""
41449 ;;
41450 *-pc-msdosdjgpp )
41451 EXEEXT=".exe"
41452 DLLPREFIX=""
41453 ;;
41454 *-pc-os2_emx | *-pc-os2-emx )
41455 SO_SUFFIX="dll"
41456 SO_SUFFIX_MODULE="dll"
41457 DLLIMP_SUFFIX=$OS2_LIBEXT
41458 EXEEXT=".exe"
41459 DLLPREFIX=""
41460 LIBPREFIX=""
41461 LIBEXT=".$OS2_LIBEXT"
41462 ;;
41463 powerpc-*-darwin* )
41464 SO_SUFFIX="dylib"
41465 SO_SUFFIX_MODULE="bundle"
41466 ;;
41467 esac
41468
41469 if test "x$DLLIMP_SUFFIX" = "x" ; then
41470 DLLIMP_SUFFIX="$SO_SUFFIX"
41471 fi
41472
41473
41474
41475
41476
41477
41478
41479
41480
41481
41482
1e9e8aba
DE
41483 PIC_FLAG=""
41484 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41485 PIC_FLAG="-fPIC"
41486 fi
41487
1e9e8aba
DE
41488 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41489 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41490
a848cd7e
SC
41491 case "${BAKEFILE_HOST}" in
41492 *-hp-hpux* )
1e9e8aba 41493 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41494 LDFLAGS="$LDFLAGS -L/usr/lib"
41495
41496 SHARED_LD_CC="${CC} -b -o"
41497 SHARED_LD_CXX="${CXX} -b -o"
41498 PIC_FLAG="+Z"
41499 fi
41500 ;;
41501
41502 *-*-linux* )
41503 if test "x$GCC" != "xyes"; then
41504 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41505echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41506if test "${bakefile_cv_prog_icc+set}" = set; then
41507 echo $ECHO_N "(cached) $ECHO_C" >&6
41508else
41509
41510 cat >conftest.$ac_ext <<_ACEOF
41511/* confdefs.h. */
41512_ACEOF
41513cat confdefs.h >>conftest.$ac_ext
41514cat >>conftest.$ac_ext <<_ACEOF
41515/* end confdefs.h. */
41516
41517int
41518main ()
41519{
41520
41521 #ifndef __INTEL_COMPILER
41522 #error Not icc
41523 #endif
41524
41525 ;
41526 return 0;
41527}
41528_ACEOF
41529rm -f conftest.$ac_objext
41530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41531 (eval $ac_compile) 2>conftest.er1
a848cd7e 41532 ac_status=$?
ac1cb8d3
VS
41533 grep -v '^ *+' conftest.er1 >conftest.err
41534 rm -f conftest.er1
41535 cat conftest.err >&5
a848cd7e
SC
41536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41537 (exit $ac_status); } &&
dfe0c803
JS
41538 { ac_try='test -z "$ac_c_werror_flag"
41539 || test ! -s conftest.err'
ac1cb8d3
VS
41540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41541 (eval $ac_try) 2>&5
41542 ac_status=$?
41543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41544 (exit $ac_status); }; } &&
41545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41547 (eval $ac_try) 2>&5
41548 ac_status=$?
41549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41550 (exit $ac_status); }; }; then
41551 bakefile_cv_prog_icc=yes
41552else
41553 echo "$as_me: failed program was:" >&5
41554sed 's/^/| /' conftest.$ac_ext >&5
41555
41556bakefile_cv_prog_icc=no
41557
41558fi
ac1cb8d3 41559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41560
41561fi
41562echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41563echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41564 if test "$bakefile_cv_prog_icc" = "yes"; then
41565 PIC_FLAG="-KPIC"
41566 fi
41567 fi
41568 ;;
41569
41570 *-*-solaris2* )
41571 if test "x$GCC" != xyes ; then
41572 SHARED_LD_CC="${CC} -G -o"
41573 SHARED_LD_CXX="${CXX} -G -o"
41574 PIC_FLAG="-KPIC"
41575 fi
41576 ;;
41577
41578 *-*-darwin* )
41579
41580 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41581echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41582if test "${wx_cv_gcc31+set}" = set; then
41583 echo $ECHO_N "(cached) $ECHO_C" >&6
41584else
41585
41586 cat >conftest.$ac_ext <<_ACEOF
41587/* confdefs.h. */
41588_ACEOF
41589cat confdefs.h >>conftest.$ac_ext
41590cat >>conftest.$ac_ext <<_ACEOF
41591/* end confdefs.h. */
41592
41593int
41594main ()
41595{
41596
41597 #if (__GNUC__ < 3) || \
41598 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41599 #error old gcc
41600 #endif
41601
41602 ;
41603 return 0;
41604}
41605_ACEOF
41606rm -f conftest.$ac_objext
41607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41608 (eval $ac_compile) 2>conftest.er1
a848cd7e 41609 ac_status=$?
ac1cb8d3
VS
41610 grep -v '^ *+' conftest.er1 >conftest.err
41611 rm -f conftest.er1
41612 cat conftest.err >&5
a848cd7e
SC
41613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41614 (exit $ac_status); } &&
dfe0c803
JS
41615 { ac_try='test -z "$ac_c_werror_flag"
41616 || test ! -s conftest.err'
ac1cb8d3
VS
41617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41618 (eval $ac_try) 2>&5
41619 ac_status=$?
41620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41621 (exit $ac_status); }; } &&
41622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41624 (eval $ac_try) 2>&5
41625 ac_status=$?
41626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41627 (exit $ac_status); }; }; then
41628
41629 wx_cv_gcc31=yes
41630
41631else
41632 echo "$as_me: failed program was:" >&5
41633sed 's/^/| /' conftest.$ac_ext >&5
41634
41635
41636 wx_cv_gcc31=no
41637
41638
41639fi
ac1cb8d3 41640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41641
41642fi
41643echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41644echo "${ECHO_T}$wx_cv_gcc31" >&6
41645 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41646
41647D='$'
41648cat <<EOF >shared-ld-sh
a848cd7e
SC
41649#!/bin/sh
41650#-----------------------------------------------------------------------------
41651#-- Name: distrib/mac/shared-ld-sh
41652#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41653#-- Author: Gilles Depeyrot
41654#-- Copyright: (c) 2002 Gilles Depeyrot
41655#-- Licence: any use permitted
41656#-----------------------------------------------------------------------------
41657
41658verbose=0
41659args=""
41660objects=""
41661linking_flag="-dynamiclib"
41662
473276a9
VS
41663while test ${D}# -gt 0; do
41664 case ${D}1 in
a848cd7e
SC
41665
41666 -v)
41667 verbose=1
41668 ;;
41669
41670 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41671 # collect these options and values
473276a9 41672 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41673 shift
41674 ;;
41675
41676 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41677 # collect these options
473276a9 41678 args="${D}{args} ${D}1"
a848cd7e
SC
41679 ;;
41680
41681 -dynamiclib|-bundle)
473276a9 41682 linking_flag="${D}1"
a848cd7e
SC
41683 ;;
41684
41685 -*)
473276a9 41686 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41687 exit 1
41688 ;;
41689
41690 *.o | *.a | *.dylib)
41691 # collect object files
473276a9 41692 objects="${D}{objects} ${D}1"
a848cd7e
SC
41693 ;;
41694
41695 *)
473276a9 41696 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41697 exit 1
41698 ;;
41699
41700 esac
41701 shift
41702done
41703
41704#
41705# Link one module containing all the others
41706#
473276a9
VS
41707if test ${D}{verbose} = 1; then
41708 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41709fi
473276a9
VS
41710c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41711status=${D}?
41712if test ${D}{status} != 0; then
41713 exit ${D}{status}
a848cd7e
SC
41714fi
41715
41716#
41717# Link the shared library from the single module created
41718#
473276a9
VS
41719if test ${D}{verbose} = 1; then
41720 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41721fi
473276a9
VS
41722c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41723status=${D}?
41724if test ${D}{status} != 0; then
41725 exit ${D}{status}
a848cd7e
SC
41726fi
41727
41728#
41729# Remove intermediate module
41730#
473276a9 41731rm -f master.${D}${D}.o
a848cd7e
SC
41732
41733exit 0
41734EOF
473276a9 41735
a848cd7e
SC
41736 chmod +x shared-ld-sh
41737
41738 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41739 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41740 SHARED_LD_CXX="$SHARED_LD_CC"
41741 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41742 else
41743 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41744 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41745 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41746 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41747 fi
41748
41749 PIC_FLAG="-dynamic -fPIC"
41750 ;;
41751
41752 *-*-aix* )
41753 if test "x$GCC" != "xyes"; then
41754 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41755set dummy makeC++SharedLib; ac_word=$2
41756echo "$as_me:$LINENO: checking for $ac_word" >&5
41757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41758if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41759 echo $ECHO_N "(cached) $ECHO_C" >&6
41760else
41761 if test -n "$AIX_CXX_LD"; then
41762 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41763else
41764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41765for as_dir in $PATH
41766do
41767 IFS=$as_save_IFS
41768 test -z "$as_dir" && as_dir=.
41769 for ac_exec_ext in '' $ac_executable_extensions; do
41770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41771 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41773 break 2
41774 fi
41775done
41776done
41777
41778 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41779fi
41780fi
41781AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41782if test -n "$AIX_CXX_LD"; then
41783 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41784echo "${ECHO_T}$AIX_CXX_LD" >&6
41785else
41786 echo "$as_me:$LINENO: result: no" >&5
41787echo "${ECHO_T}no" >&6
41788fi
41789
41790 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41791 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41792 fi
41793 ;;
41794
41795 *-*-beos* )
1e9e8aba
DE
41796 SHARED_LD_CC="${LD} -nostart -o"
41797 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41798 ;;
41799
41800 *-*-irix* )
41801 if test "x$GCC" != "xyes"; then
41802 PIC_FLAG="-KPIC"
41803 fi
41804 ;;
41805
41806 *-*-cygwin* | *-*-mingw32* )
41807 PIC_FLAG=""
1e9e8aba
DE
41808 SHARED_LD_CC="\$(CC) -shared -o"
41809 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41810 ;;
41811
41812 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41813 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41814 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41815 PIC_FLAG=""
473276a9
VS
41816
41817D='$'
41818cat <<EOF >dllar.sh
41819#!/bin/sh
41820#
41821# dllar - a tool to build both a .dll and an .a file
41822# from a set of object (.o) files for EMX/OS2.
41823#
41824# Written by Andrew Zabolotny, bit@freya.etu.ru
41825# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41826#
41827# This script will accept a set of files on the command line.
41828# All the public symbols from the .o files will be exported into
41829# a .DEF file, then linker will be run (through gcc) against them to
41830# build a shared library consisting of all given .o files. All libraries
41831# (.a) will be first decompressed into component .o files then act as
41832# described above. You can optionally give a description (-d "description")
41833# which will be put into .DLL. To see the list of accepted options (as well
41834# as command-line format) simply run this program without options. The .DLL
41835# is built to be imported by name (there is no guarantee that new versions
41836# of the library you build will have same ordinals for same symbols).
41837#
41838# dllar is free software; you can redistribute it and/or modify
41839# it under the terms of the GNU General Public License as published by
41840# the Free Software Foundation; either version 2, or (at your option)
41841# any later version.
41842#
41843# dllar is distributed in the hope that it will be useful,
41844# but WITHOUT ANY WARRANTY; without even the implied warranty of
41845# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41846# GNU General Public License for more details.
41847#
41848# You should have received a copy of the GNU General Public License
41849# along with dllar; see the file COPYING. If not, write to the Free
41850# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41851# 02111-1307, USA.
41852
41853# To successfuly run this program you will need:
41854# - Current drive should have LFN support (HPFS, ext2, network, etc)
41855# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41856# - gcc
41857# (used to build the .dll)
41858# - emxexp
41859# (used to create .def file from .o files)
41860# - emximp
41861# (used to create .a file from .def file)
41862# - GNU text utilites (cat, sort, uniq)
41863# used to process emxexp output
41864# - GNU file utilities (mv, rm)
41865# - GNU sed
41866# - lxlite (optional, see flag below)
41867# (used for general .dll cleanup)
41868#
41869
41870flag_USE_LXLITE=1;
41871
41872#
41873# helper functions
41874# basnam, variant of basename, which does _not_ remove the path, _iff_
41875# second argument (suffix to remove) is given
41876basnam(){
41877 case ${D}# in
41878 1)
1e9e8aba 41879 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41880 ;;
41881 2)
41882 echo ${D}1 | sed 's/'${D}2'${D}//'
41883 ;;
41884 *)
41885 echo "error in basnam ${D}*"
41886 exit 8
41887 ;;
41888 esac
41889}
41890
41891# Cleanup temporary files and output
41892CleanUp() {
41893 cd ${D}curDir
41894 for i in ${D}inputFiles ; do
41895 case ${D}i in
41896 *!)
41897 rm -rf \`basnam ${D}i !\`
41898 ;;
41899 *)
41900 ;;
41901 esac
41902 done
41903
41904 # Kill result in case of failure as there is just to many stupid make/nmake
41905 # things out there which doesn't do this.
1e9e8aba 41906 if [ ${D}# -eq 0 ]; then
473276a9
VS
41907 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41908 fi
41909}
41910
41911# Print usage and exit script with rc=1.
41912PrintHelp() {
b1d22ded
DE
41913 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41914 echo ' [-name-mangler-script script.sh]'
41915 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41916 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41917 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41918 echo ' [*.o] [*.a]'
473276a9
VS
41919 echo '*> "output_file" should have no extension.'
41920 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41921 echo ' The import library name is derived from this and is set to "name".a,'
41922 echo ' unless overridden by -import'
41923 echo '*> "importlib_name" should have no extension.'
41924 echo ' If it has the .o, or .a extension, it is automatically removed.'
41925 echo ' This name is used as the import library name and may be longer and'
41926 echo ' more descriptive than the DLL name which has to follow the old '
41927 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41928 echo '*> "script.sh may be given to override the output_file name by a'
41929 echo ' different name. It is mainly useful if the regular make process'
41930 echo ' of some package does not take into account OS/2 restriction of'
41931 echo ' DLL name lengths. It takes the importlib name as input and is'
41932 echo ' supposed to procude a shorter name as output. The script should'
41933 echo ' expect to get importlib_name without extension and should produce'
41934 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41935 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41936 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41937 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41938 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41939 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41940 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41941 echo ' If the last character of a symbol is "*", all symbols beginning'
41942 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41943 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41944 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41945 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41946 echo ' C runtime DLLs.'
b1d22ded 41947 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41948 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41949 echo ' unchanged to GCC at the end of command line.'
41950 echo '*> If you create a DLL from a library and you do not specify -o,'
41951 echo ' the basename for DLL and import library will be set to library name,'
41952 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41953 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41954 echo ' library will be renamed into gcc_s.a.'
41955 echo '--------'
41956 echo 'Example:'
41957 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41958 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41959 CleanUp
41960 exit 1
41961}
41962
41963# Execute a command.
41964# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41965# @Uses Whatever CleanUp() uses.
41966doCommand() {
41967 echo "${D}*"
41968 eval ${D}*
41969 rcCmd=${D}?
41970
1e9e8aba 41971 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41972 echo "command failed, exit code="${D}rcCmd
41973 CleanUp
41974 exit ${D}rcCmd
41975 fi
41976}
41977
41978# main routine
41979# setup globals
41980cmdLine=${D}*
41981outFile=""
41982outimpFile=""
41983inputFiles=""
b1d22ded 41984renameScript=""
473276a9
VS
41985description=""
41986CC=gcc.exe
41987CFLAGS="-s -Zcrtdll"
41988EXTRA_CFLAGS=""
41989EXPORT_BY_ORDINALS=0
41990exclude_symbols=""
41991library_flags=""
41992curDir=\`pwd\`
41993curDirS=curDir
41994case ${D}curDirS in
41995*/)
41996 ;;
41997*)
41998 curDirS=${D}{curDirS}"/"
41999 ;;
42000esac
42001# Parse commandline
42002libsToLink=0
b1d22ded 42003omfLinking=0
1e9e8aba 42004while [ ${D}1 ]; do
473276a9
VS
42005 case ${D}1 in
42006 -ord*)
42007 EXPORT_BY_ORDINALS=1;
42008 ;;
42009 -o*)
42010 shift
42011 outFile=${D}1
42012 ;;
42013 -i*)
42014 shift
42015 outimpFile=${D}1
42016 ;;
b1d22ded
DE
42017 -name-mangler-script)
42018 shift
42019 renameScript=${D}1
42020 ;;
473276a9
VS
42021 -d*)
42022 shift
42023 description=${D}1
42024 ;;
42025 -f*)
42026 shift
42027 CFLAGS=${D}1
42028 ;;
42029 -c*)
42030 shift
42031 CC=${D}1
42032 ;;
42033 -h*)
42034 PrintHelp
42035 ;;
42036 -ex*)
42037 shift
42038 exclude_symbols=${D}{exclude_symbols}${D}1" "
42039 ;;
42040 -libf*)
42041 shift
42042 library_flags=${D}{library_flags}${D}1" "
42043 ;;
42044 -nocrt*)
42045 CFLAGS="-s"
42046 ;;
42047 -nolxl*)
42048 flag_USE_LXLITE=0
42049 ;;
42050 -* | /*)
42051 case ${D}1 in
42052 -L* | -l*)
42053 libsToLink=1
42054 ;;
b1d22ded
DE
42055 -Zomf)
42056 omfLinking=1
42057 ;;
473276a9
VS
42058 *)
42059 ;;
42060 esac
42061 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42062 ;;
b1d22ded
DE
42063 *.dll)
42064 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42065 if [ ${D}omfLinking -eq 1 ]; then
42066 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42067 else
42068 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42069 fi
42070 ;;
473276a9
VS
42071 *)
42072 found=0;
1e9e8aba 42073 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
42074 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42075 else
42076 for file in ${D}1 ; do
1e9e8aba 42077 if [ -f ${D}file ]; then
473276a9
VS
42078 inputFiles="${D}{inputFiles} ${D}file"
42079 found=1
42080 fi
42081 done
1e9e8aba 42082 if [ ${D}found -eq 0 ]; then
473276a9
VS
42083 echo "ERROR: No file(s) found: "${D}1
42084 exit 8
42085 fi
42086 fi
42087 ;;
42088 esac
42089 shift
42090done # iterate cmdline words
42091
42092#
1e9e8aba 42093if [ -z "${D}inputFiles" ]; then
473276a9
VS
42094 echo "dllar: no input files"
42095 PrintHelp
42096fi
42097
42098# Now extract all .o files from .a files
42099newInputFiles=""
42100for file in ${D}inputFiles ; do
42101 case ${D}file in
42102 *.a | *.lib)
42103 case ${D}file in
42104 *.a)
42105 suffix=".a"
42106 AR="ar"
42107 ;;
42108 *.lib)
42109 suffix=".lib"
42110 AR="emxomfar"
42111 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42112 ;;
42113 *)
42114 ;;
42115 esac
42116 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42117 mkdir ${D}dirname
1e9e8aba 42118 if [ ${D}? -ne 0 ]; then
473276a9
VS
42119 echo "Failed to create subdirectory ./${D}dirname"
42120 CleanUp
42121 exit 8;
42122 fi
42123 # Append '!' to indicate archive
42124 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42125 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42126 cd ${D}curDir
42127 found=0;
42128 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42129 if [ -f ${D}subfile ]; then
473276a9 42130 found=1
1e9e8aba 42131 if [ -s ${D}subfile ]; then
473276a9
VS
42132 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42133 newInputFiles="${D}newInputFiles ${D}subfile"
42134 fi
42135 fi
42136 done
1e9e8aba
DE
42137 if [ ${D}found -eq 0 ]; then
42138 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42139 fi
42140 ;;
42141 *)
42142 newInputFiles="${D}{newInputFiles} ${D}file"
42143 ;;
42144 esac
42145done
42146inputFiles="${D}newInputFiles"
42147
42148# Output filename(s).
42149do_backup=0;
1e9e8aba 42150if [ -z ${D}outFile ]; then
473276a9
VS
42151 do_backup=1;
42152 set outFile ${D}inputFiles; outFile=${D}2
42153fi
42154
42155# If it is an archive, remove the '!' and the '_%' suffixes
42156case ${D}outFile in
42157*_%!)
42158 outFile=\`basnam ${D}outFile _%!\`
42159 ;;
42160*)
42161 ;;
42162esac
42163case ${D}outFile in
42164*.dll)
42165 outFile=\`basnam ${D}outFile .dll\`
42166 ;;
42167*.DLL)
42168 outFile=\`basnam ${D}outFile .DLL\`
42169 ;;
42170*.o)
42171 outFile=\`basnam ${D}outFile .o\`
42172 ;;
42173*.obj)
42174 outFile=\`basnam ${D}outFile .obj\`
42175 ;;
42176*.a)
42177 outFile=\`basnam ${D}outFile .a\`
42178 ;;
42179*.lib)
42180 outFile=\`basnam ${D}outFile .lib\`
42181 ;;
42182*)
42183 ;;
42184esac
42185case ${D}outimpFile in
42186*.a)
42187 outimpFile=\`basnam ${D}outimpFile .a\`
42188 ;;
42189*.lib)
42190 outimpFile=\`basnam ${D}outimpFile .lib\`
42191 ;;
42192*)
42193 ;;
42194esac
1e9e8aba 42195if [ -z ${D}outimpFile ]; then
473276a9
VS
42196 outimpFile=${D}outFile
42197fi
42198defFile="${D}{outFile}.def"
42199arcFile="${D}{outimpFile}.a"
42200arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
42201
42202#create ${D}dllFile as something matching 8.3 restrictions,
42203if [ -z ${D}renameScript ] ; then
42204 dllFile="${D}outFile"
42205else
42206 dllFile=\`${D}renameScript ${D}outimpFile\`
42207fi
473276a9 42208
1e9e8aba
DE
42209if [ ${D}do_backup -ne 0 ] ; then
42210 if [ -f ${D}arcFile ] ; then
473276a9
VS
42211 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42212 fi
1e9e8aba 42213 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
42214 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42215 fi
42216fi
42217
42218# Extract public symbols from all the object files.
42219tmpdefFile=${D}{defFile}_%
42220rm -f ${D}tmpdefFile
42221for file in ${D}inputFiles ; do
42222 case ${D}file in
42223 *!)
42224 ;;
42225 *)
42226 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42227 ;;
42228 esac
42229done
42230
42231# Create the def file.
42232rm -f ${D}defFile
42233echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
42234dllFile="${D}{dllFile}.dll"
42235if [ ! -z ${D}description ]; then
1e9e8aba 42236 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
42237fi
42238echo "EXPORTS" >> ${D}defFile
42239
42240doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42241grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42242
42243# Checks if the export is ok or not.
42244for word in ${D}exclude_symbols; do
42245 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42246 mv ${D}{tmpdefFile}% ${D}tmpdefFile
42247done
42248
42249
1e9e8aba
DE
42250if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42251 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
42252 sed '
42253 N
42254 : loop
1e9e8aba 42255 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
42256 t loop
42257 ' > ${D}{tmpdefFile}%
42258 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42259else
42260 rm -f ${D}{tmpdefFile}%
42261fi
42262cat ${D}tmpdefFile >> ${D}defFile
42263rm -f ${D}tmpdefFile
42264
42265# Do linking, create implib, and apply lxlite.
42266gccCmdl="";
42267for file in ${D}inputFiles ; do
42268 case ${D}file in
42269 *!)
42270 ;;
42271 *)
42272 gccCmdl="${D}gccCmdl ${D}file"
42273 ;;
42274 esac
42275done
42276doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42277touch "${D}{outFile}.dll"
42278
42279doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 42280if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 42281 add_flags="";
1e9e8aba 42282 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
42283 add_flags="-ynd"
42284 fi
42285 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42286fi
42287doCommand "emxomf -s -l ${D}arcFile"
42288
42289# Successful exit.
42290CleanUp 1
42291exit 0
42292EOF
42293
42294 chmod +x dllar.sh
a848cd7e
SC
42295 ;;
42296
1e9e8aba 42297 powerpc-apple-macos* | \
a848cd7e
SC
42298 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42299 *-*-sunos4* | \
42300 *-*-osf* | \
42301 *-*-dgux5* | \
42302 *-*-sysv5* )
42303 ;;
42304
42305 *)
42306 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42307echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42308 { (exit 1); exit 1; }; }
42309 esac
42310
2057db16
VS
42311 if test "x$PIC_FLAG" != "x" ; then
42312 PIC_FLAG="$PIC_FLAG -DPIC"
42313 fi
42314
a848cd7e
SC
42315 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42316 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42317 fi
42318 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42319 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42320 fi
42321
42322
42323
42324
42325
42326
42327
42328
42329 USE_SOVERSION=0
42330 USE_SOVERLINUX=0
42331 USE_SOVERSOLARIS=0
42332 USE_SOSYMLINKS=0
42333 USE_MACVERSION=0
42334 SONAME_FLAG=
42335
42336 case "${BAKEFILE_HOST}" in
b1d22ded 42337 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42338 SONAME_FLAG="-Wl,-soname,"
42339 USE_SOVERSION=1
42340 USE_SOVERLINUX=1
42341 USE_SOSYMLINKS=1
42342 ;;
42343
a848cd7e
SC
42344 *-*-solaris2* )
42345 SONAME_FLAG="-h "
42346 USE_SOVERSION=1
42347 USE_SOVERSOLARIS=1
42348 USE_SOSYMLINKS=1
42349 ;;
42350
42351 *-*-darwin* )
42352 USE_MACVERSION=1
42353 USE_SOVERSION=1
42354 USE_SOSYMLINKS=1
42355 ;;
42356 esac
42357
42358
42359
42360
42361
42362
42363
42364
42365
42366 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42367echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42368 DEPS_TRACKING=0
42369
42370 if test "x$GCC" = "xyes"; then
42371 DEPSMODE=gcc
42372 DEPS_TRACKING=1
42373 case "${BAKEFILE_HOST}" in
42374 powerpc-*-darwin* )
42375 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42376 ;;
42377 * )
42378 DEPSFLAG_GCC="-MMD"
42379 ;;
42380 esac
42381 echo "$as_me:$LINENO: result: gcc" >&5
42382echo "${ECHO_T}gcc" >&6
b1d22ded 42383 elif test "x$MWCC" = "xyes"; then
81f90336 42384 DEPSMODE=mwcc
b1d22ded 42385 DEPS_TRACKING=1
81f90336 42386 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42387 echo "$as_me:$LINENO: result: mwcc" >&5
42388echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42389 else
42390 echo "$as_me:$LINENO: result: none" >&5
42391echo "${ECHO_T}none" >&6
42392 fi
42393
42394 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42395
42396D='$'
42397cat <<EOF >bk-deps
a848cd7e
SC
42398#!/bin/sh
42399
42400# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42401# script. It is used to track C/C++ files dependencies in portable way.
42402#
42403# Permission is given to use this file in any way.
42404
473276a9 42405DEPSMODE=${DEPSMODE}
a848cd7e 42406DEPSDIR=.deps
473276a9 42407DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42408DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42409
473276a9 42410mkdir -p ${D}DEPSDIR
a848cd7e 42411
473276a9
VS
42412if test ${D}DEPSMODE = gcc ; then
42413 ${D}* ${D}{DEPSFLAG_GCC}
42414 status=${D}?
42415 if test ${D}{status} != 0 ; then
42416 exit ${D}{status}
a848cd7e
SC
42417 fi
42418 # move created file to the location we want it in:
473276a9
VS
42419 while test ${D}# -gt 0; do
42420 case "${D}1" in
a848cd7e
SC
42421 -o )
42422 shift
473276a9 42423 objfile=${D}1
a848cd7e
SC
42424 ;;
42425 -* )
42426 ;;
42427 * )
473276a9 42428 srcfile=${D}1
a848cd7e
SC
42429 ;;
42430 esac
42431 shift
42432 done
1e9e8aba
DE
42433 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42434 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42435 if test -f ${D}depfile ; then
42436 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42437 rm -f ${D}depfile
a848cd7e 42438 else
1e9e8aba 42439 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42440 if test -f ${D}depfile ; then
42441 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42442 rm -f ${D}depfile
a848cd7e
SC
42443 fi
42444 fi
42445 exit 0
81f90336
MW
42446elif test ${D}DEPSMODE = mwcc ; then
42447 ${D}*
42448 status=${D}?
42449 if test ${D}{status} != 0 ; then
42450 exit ${D}{status}
42451 fi
42452 # Run mwcc again with -MM and redirect into the dep file we want
42453 # NOTE: We can't use shift here because we need ${D}* to be valid
42454 prevarg=
42455 for arg in ${D}* ; do
42456 if test "${D}prevarg" = "-o"; then
42457 objfile=${D}arg
42458 else
42459 case "${D}arg" in
42460 -* )
42461 ;;
42462 * )
42463 srcfile=${D}arg
42464 ;;
42465 esac
42466 fi
42467 prevarg="${D}arg"
42468 done
42469 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42470 exit 0
a848cd7e 42471else
473276a9
VS
42472 ${D}*
42473 exit ${D}?
a848cd7e
SC
42474fi
42475EOF
473276a9 42476
a848cd7e
SC
42477 chmod +x bk-deps
42478 fi
42479
42480
42481
42482
42483 RESCOMP=
42484 SETFILE=
42485
42486 case ${BAKEFILE_HOST} in
42487 *-*-cygwin* | *-*-mingw32* )
42488 if test "$build" != "$host" ; then
42489 RESCOMP=$host_alias-windres
42490 else
42491 # Extract the first word of "windres", so it can be a program name with args.
42492set dummy windres; ac_word=$2
42493echo "$as_me:$LINENO: checking for $ac_word" >&5
42494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42495if test "${ac_cv_prog_RESCOMP+set}" = set; then
42496 echo $ECHO_N "(cached) $ECHO_C" >&6
42497else
42498 if test -n "$RESCOMP"; then
42499 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42500else
42501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42502for as_dir in $PATH
42503do
42504 IFS=$as_save_IFS
42505 test -z "$as_dir" && as_dir=.
42506 for ac_exec_ext in '' $ac_executable_extensions; do
42507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42508 ac_cv_prog_RESCOMP="windres"
42509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42510 break 2
42511 fi
42512done
42513done
42514
42515 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42516fi
42517fi
42518RESCOMP=$ac_cv_prog_RESCOMP
42519if test -n "$RESCOMP"; then
42520 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42521echo "${ECHO_T}$RESCOMP" >&6
42522else
42523 echo "$as_me:$LINENO: result: no" >&5
42524echo "${ECHO_T}no" >&6
42525fi
42526
42527 fi
42528 ;;
42529
1e9e8aba 42530 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42531 # Extract the first word of "Rez", so it can be a program name with args.
42532set dummy Rez; ac_word=$2
42533echo "$as_me:$LINENO: checking for $ac_word" >&5
42534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42535if test "${ac_cv_prog_RESCOMP+set}" = set; then
42536 echo $ECHO_N "(cached) $ECHO_C" >&6
42537else
42538 if test -n "$RESCOMP"; then
42539 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42540else
42541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42542for as_dir in $PATH
42543do
42544 IFS=$as_save_IFS
42545 test -z "$as_dir" && as_dir=.
42546 for ac_exec_ext in '' $ac_executable_extensions; do
42547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42548 ac_cv_prog_RESCOMP="Rez"
42549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42550 break 2
42551 fi
42552done
42553done
42554
42555 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42556fi
42557fi
42558RESCOMP=$ac_cv_prog_RESCOMP
42559if test -n "$RESCOMP"; then
42560 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42561echo "${ECHO_T}$RESCOMP" >&6
42562else
42563 echo "$as_me:$LINENO: result: no" >&5
42564echo "${ECHO_T}no" >&6
42565fi
42566
42567 # Extract the first word of "SetFile", so it can be a program name with args.
42568set dummy SetFile; ac_word=$2
42569echo "$as_me:$LINENO: checking for $ac_word" >&5
42570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42571if test "${ac_cv_prog_SETFILE+set}" = set; then
42572 echo $ECHO_N "(cached) $ECHO_C" >&6
42573else
42574 if test -n "$SETFILE"; then
42575 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42576else
42577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42578for as_dir in $PATH
42579do
42580 IFS=$as_save_IFS
42581 test -z "$as_dir" && as_dir=.
42582 for ac_exec_ext in '' $ac_executable_extensions; do
42583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42584 ac_cv_prog_SETFILE="SetFile"
42585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42586 break 2
42587 fi
42588done
42589done
42590
42591 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42592fi
42593fi
42594SETFILE=$ac_cv_prog_SETFILE
42595if test -n "$SETFILE"; then
42596 echo "$as_me:$LINENO: result: $SETFILE" >&5
42597echo "${ECHO_T}$SETFILE" >&6
42598else
42599 echo "$as_me:$LINENO: result: no" >&5
42600echo "${ECHO_T}no" >&6
42601fi
42602
42603 ;;
42604 esac
42605
42606
42607
42608
42609
fbb7dfff 42610 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 42611
dcc1b6ad 42612
fbb7dfff 42613BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 42614
646b6ec1 42615
74b84332 42616
a848cd7e
SC
42617 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42618if test "${enable_precomp_headers+set}" = set; then
42619 enableval="$enable_precomp_headers"
42620 bk_use_pch="$enableval"
42621fi;
42622
42623 GCC_PCH=0
42624
42625 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42626 if test "x$GCC" = "xyes"; then
42627 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42628echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42629 cat >conftest.$ac_ext <<_ACEOF
42630/* confdefs.h. */
42631_ACEOF
42632cat confdefs.h >>conftest.$ac_ext
42633cat >>conftest.$ac_ext <<_ACEOF
42634/* end confdefs.h. */
42635
42636int
42637main ()
42638{
42639
42640 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42641 #error "no pch support"
42642 #endif
42643 #if (__GNUC__ < 3)
42644 #error "no pch support"
42645 #endif
42646 #if (__GNUC__ == 3) && \
42647 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42648 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42649 #error "no pch support"
42650 #endif
42651
42652 ;
42653 return 0;
42654}
42655_ACEOF
42656rm -f conftest.$ac_objext
42657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42658 (eval $ac_compile) 2>conftest.er1
a848cd7e 42659 ac_status=$?
ac1cb8d3
VS
42660 grep -v '^ *+' conftest.er1 >conftest.err
42661 rm -f conftest.er1
42662 cat conftest.err >&5
a848cd7e
SC
42663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42664 (exit $ac_status); } &&
dfe0c803
JS
42665 { ac_try='test -z "$ac_c_werror_flag"
42666 || test ! -s conftest.err'
ac1cb8d3
VS
42667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42668 (eval $ac_try) 2>&5
42669 ac_status=$?
42670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42671 (exit $ac_status); }; } &&
42672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42674 (eval $ac_try) 2>&5
42675 ac_status=$?
42676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42677 (exit $ac_status); }; }; then
42678
42679 echo "$as_me:$LINENO: result: yes" >&5
42680echo "${ECHO_T}yes" >&6
a848cd7e
SC
42681 GCC_PCH=1
42682
42683else
42684 echo "$as_me: failed program was:" >&5
42685sed 's/^/| /' conftest.$ac_ext >&5
42686
42687
42688 echo "$as_me:$LINENO: result: no" >&5
42689echo "${ECHO_T}no" >&6
42690
42691fi
ac1cb8d3 42692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42693 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42694
42695D='$'
42696cat <<EOF >bk-make-pch
a848cd7e
SC
42697#!/bin/sh
42698
42699# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42700# script. It is used to generated precompiled headers.
42701#
42702# Permission is given to use this file in any way.
42703
1e9e8aba
DE
42704outfile="${D}{1}"
42705header="${D}{2}"
a848cd7e
SC
42706shift
42707shift
42708
42709compiler=
42710headerfile=
1e9e8aba
DE
42711while test ${D}{#} -gt 0; do
42712 case "${D}{1}" in
a848cd7e 42713 -I* )
1e9e8aba
DE
42714 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42715 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42716 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42717 fi
42718 ;;
42719 esac
1e9e8aba 42720 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42721 shift
42722done
42723
1e9e8aba
DE
42724if test "x${D}{headerfile}" = "x" ; then
42725 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42726else
1e9e8aba
DE
42727 if test -f ${D}{outfile} ; then
42728 rm -f ${D}{outfile}
a848cd7e 42729 else
1e9e8aba 42730 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42731 fi
1e9e8aba 42732 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42733 mkdir -p .deps
42734 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42735 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42736 exit ${D}{?}
a848cd7e
SC
42737fi
42738EOF
1e9e8aba 42739
a848cd7e
SC
42740 chmod +x bk-make-pch
42741 fi
42742 fi
42743 fi
42744
42745
42746
a848cd7e
SC
42747 COND_BUILD_DEBUG="#"
42748 if test "x$BUILD" = "xdebug" ; then
42749 COND_BUILD_DEBUG=""
42750 fi
42751
42752 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42753 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42754 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42755 fi
42756
42757 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42758 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42759 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42760 fi
42761
42762 COND_BUILD_DEBUG_UNICODE_0="#"
42763 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42764 COND_BUILD_DEBUG_UNICODE_0=""
42765 fi
42766
42767 COND_BUILD_DEBUG_UNICODE_1="#"
42768 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42769 COND_BUILD_DEBUG_UNICODE_1=""
42770 fi
42771
42772 COND_BUILD_RELEASE="#"
42773 if test "x$BUILD" = "xrelease" ; then
42774 COND_BUILD_RELEASE=""
42775 fi
42776
42777 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42778 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42779 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42780 fi
42781
42782 COND_BUILD_RELEASE_UNICODE_0="#"
42783 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42784 COND_BUILD_RELEASE_UNICODE_0=""
42785 fi
42786
42787 COND_BUILD_RELEASE_UNICODE_1="#"
42788 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42789 COND_BUILD_RELEASE_UNICODE_1=""
42790 fi
42791
42792 COND_DEBUG_FLAG_1="#"
42793 if test "x$DEBUG_FLAG" = "x1" ; then
42794 COND_DEBUG_FLAG_1=""
42795 fi
42796
42797 COND_DEBUG_INFO_0="#"
42798 if test "x$DEBUG_INFO" = "x0" ; then
42799 COND_DEBUG_INFO_0=""
42800 fi
42801
42802 COND_DEBUG_INFO_1="#"
42803 if test "x$DEBUG_INFO" = "x1" ; then
42804 COND_DEBUG_INFO_1=""
42805 fi
42806
42807 COND_DEPS_TRACKING_0="#"
42808 if test "x$DEPS_TRACKING" = "x0" ; then
42809 COND_DEPS_TRACKING_0=""
42810 fi
42811
42812 COND_DEPS_TRACKING_1="#"
42813 if test "x$DEPS_TRACKING" = "x1" ; then
42814 COND_DEPS_TRACKING_1=""
42815 fi
42816
42817 COND_GCC_PCH_1="#"
42818 if test "x$GCC_PCH" = "x1" ; then
42819 COND_GCC_PCH_1=""
42820 fi
42821
42822 COND_MONOLITHIC_0="#"
42823 if test "x$MONOLITHIC" = "x0" ; then
42824 COND_MONOLITHIC_0=""
42825 fi
42826
42827 COND_MONOLITHIC_0_SHARED_0="#"
42828 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42829 COND_MONOLITHIC_0_SHARED_0=""
42830 fi
42831
42832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42833 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42834 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42835 fi
42836
90970d69
DE
42837 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42838 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42839 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42840 fi
42841
a848cd7e
SC
42842 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42843 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42844 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42845 fi
42846
6671c68b
VZ
42847 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42848 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42849 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42850 fi
42851
a848cd7e
SC
42852 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42853 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42854 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42855 fi
42856
ceec2216
RL
42857 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42858 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42859 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42860 fi
42861
a848cd7e
SC
42862 COND_MONOLITHIC_0_SHARED_1="#"
42863 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42864 COND_MONOLITHIC_0_SHARED_1=""
42865 fi
42866
42867 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42868 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42869 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42870 fi
42871
90970d69
DE
42872 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42873 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42874 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42875 fi
42876
a848cd7e
SC
42877 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42878 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42879 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42880 fi
42881
6671c68b
VZ
42882 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
42883 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42884 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
42885 fi
42886
a848cd7e
SC
42887 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42888 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42889 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42890 fi
42891
ceec2216
RL
42892 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42893 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42894 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42895 fi
42896
a848cd7e
SC
42897 COND_MONOLITHIC_0_USE_ODBC_1="#"
42898 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42899 COND_MONOLITHIC_0_USE_ODBC_1=""
42900 fi
42901
42902 COND_MONOLITHIC_1="#"
42903 if test "x$MONOLITHIC" = "x1" ; then
42904 COND_MONOLITHIC_1=""
42905 fi
42906
42907 COND_MONOLITHIC_1_SHARED_0="#"
42908 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42909 COND_MONOLITHIC_1_SHARED_0=""
42910 fi
42911
42912 COND_MONOLITHIC_1_SHARED_1="#"
42913 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42914 COND_MONOLITHIC_1_SHARED_1=""
42915 fi
42916
42917 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42918 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42919 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42920 fi
42921
42922 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42923 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42924 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42925 fi
42926
42927 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42928 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42929 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42930 fi
42931
42932 COND_PLATFORM_MACOSX_1="#"
42933 if test "x$PLATFORM_MACOSX" = "x1" ; then
42934 COND_PLATFORM_MACOSX_1=""
42935 fi
42936
a30f955f
VS
42937 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42938 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42939 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42940 fi
42941
a848cd7e
SC
42942 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42943 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42944 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42945 fi
42946
42947 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42948 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42949 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42950 fi
42951
42952 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42953 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42954 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42955 fi
42956
fc480dc1
DE
42957 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42958 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42959 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42960 fi
42961
1e9e8aba
DE
42962 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42963 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42964 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42965 fi
42966
ebee3cd0
VS
42967 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42968 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42969 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42970 fi
42971
42972 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42973 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42974 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42975 fi
42976
a848cd7e
SC
42977 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42978 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42979 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42980 fi
42981
42982 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42983 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42984 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42985 fi
42986
b48a2016
DE
42987 COND_PLATFORM_MACOS_1="#"
42988 if test "x$PLATFORM_MACOS" = "x1" ; then
42989 COND_PLATFORM_MACOS_1=""
42990 fi
42991
a848cd7e
SC
42992 COND_PLATFORM_MAC_1="#"
42993 if test "x$PLATFORM_MAC" = "x1" ; then
42994 COND_PLATFORM_MAC_1=""
42995 fi
42996
42997 COND_PLATFORM_OS2_1="#"
42998 if test "x$PLATFORM_OS2" = "x1" ; then
42999 COND_PLATFORM_OS2_1=""
43000 fi
43001
43002 COND_PLATFORM_UNIX_0="#"
43003 if test "x$PLATFORM_UNIX" = "x0" ; then
43004 COND_PLATFORM_UNIX_0=""
43005 fi
43006
43007 COND_PLATFORM_UNIX_1="#"
43008 if test "x$PLATFORM_UNIX" = "x1" ; then
43009 COND_PLATFORM_UNIX_1=""
43010 fi
43011
43012 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
43013 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
43014 COND_PLATFORM_UNIX_1_USE_GUI_1=""
43015 fi
43016
43017 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
43018 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
43019 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
43020 fi
43021
43022 COND_PLATFORM_WIN32_0="#"
43023 if test "x$PLATFORM_WIN32" = "x0" ; then
43024 COND_PLATFORM_WIN32_0=""
43025 fi
43026
43027 COND_PLATFORM_WIN32_1="#"
43028 if test "x$PLATFORM_WIN32" = "x1" ; then
43029 COND_PLATFORM_WIN32_1=""
43030 fi
43031
43032 COND_SHARED_0="#"
43033 if test "x$SHARED" = "x0" ; then
43034 COND_SHARED_0=""
43035 fi
43036
ceec2216
RL
43037 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
43038 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
43039 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
43040 fi
43041
43042 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
43043 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43044 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43045 fi
43046
43047 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43048 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
43049 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
43050 fi
43051
a848cd7e
SC
43052 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
43053 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43054 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
43055 fi
43056
43057 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43058 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43059 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43060 fi
43061
43062 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43063 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43064 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43065 fi
43066
43067 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43068 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43069 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43070 fi
43071
43072 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
43073 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
43074 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
43075 fi
43076
43077 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
43078 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
43079 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
43080 fi
43081
43082 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
43083 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
43084 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
43085 fi
43086
43087 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
43088 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
43089 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
43090 fi
43091
43092 COND_SHARED_1="#"
43093 if test "x$SHARED" = "x1" ; then
43094 COND_SHARED_1=""
43095 fi
43096
43097 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43098 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43099 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43100 fi
43101
a30f955f
VS
43102 COND_TOOLKIT_="#"
43103 if test "x$TOOLKIT" = "x" ; then
43104 COND_TOOLKIT_=""
43105 fi
43106
a848cd7e
SC
43107 COND_TOOLKIT_COCOA="#"
43108 if test "x$TOOLKIT" = "xCOCOA" ; then
43109 COND_TOOLKIT_COCOA=""
43110 fi
43111
a49baeab
DE
43112 COND_TOOLKIT_COCOA_USE_GUI_1="#"
43113 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43114 COND_TOOLKIT_COCOA_USE_GUI_1=""
43115 fi
43116
a848cd7e
SC
43117 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43118 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43119 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43120 fi
43121
43122 COND_TOOLKIT_GTK="#"
43123 if test "x$TOOLKIT" = "xGTK" ; then
43124 COND_TOOLKIT_GTK=""
43125 fi
43126
43127 COND_TOOLKIT_GTK_USE_GUI_1="#"
43128 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43129 COND_TOOLKIT_GTK_USE_GUI_1=""
43130 fi
43131
43132 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43133 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43134 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43135 fi
43136
43137 COND_TOOLKIT_MAC="#"
43138 if test "x$TOOLKIT" = "xMAC" ; then
43139 COND_TOOLKIT_MAC=""
43140 fi
43141
43142 COND_TOOLKIT_MAC_USE_GUI_1="#"
43143 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43144 COND_TOOLKIT_MAC_USE_GUI_1=""
43145 fi
43146
43147 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43148 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43149 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43150 fi
43151
43152 COND_TOOLKIT_MGL="#"
43153 if test "x$TOOLKIT" = "xMGL" ; then
43154 COND_TOOLKIT_MGL=""
43155 fi
43156
43157 COND_TOOLKIT_MGL_USE_GUI_1="#"
43158 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43159 COND_TOOLKIT_MGL_USE_GUI_1=""
43160 fi
43161
43162 COND_TOOLKIT_MOTIF="#"
43163 if test "x$TOOLKIT" = "xMOTIF" ; then
43164 COND_TOOLKIT_MOTIF=""
43165 fi
43166
43167 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
43168 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
43169 COND_TOOLKIT_MOTIF_USE_GUI_1=""
43170 fi
43171
43172 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
43173 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43174 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
43175 fi
43176
43177 COND_TOOLKIT_MSW="#"
43178 if test "x$TOOLKIT" = "xMSW" ; then
43179 COND_TOOLKIT_MSW=""
43180 fi
43181
43182 COND_TOOLKIT_MSW_USE_GUI_1="#"
43183 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
43184 COND_TOOLKIT_MSW_USE_GUI_1=""
43185 fi
43186
43187 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
43188 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43189 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
43190 fi
43191
43192 COND_TOOLKIT_PM="#"
43193 if test "x$TOOLKIT" = "xPM" ; then
43194 COND_TOOLKIT_PM=""
43195 fi
43196
43197 COND_TOOLKIT_PM_USE_GUI_1="#"
43198 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
43199 COND_TOOLKIT_PM_USE_GUI_1=""
43200 fi
43201
43202 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
43203 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43204 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
43205 fi
43206
3fd9c298
DE
43207 COND_TOOLKIT_WINCE="#"
43208 if test "x$TOOLKIT" = "xWINCE" ; then
43209 COND_TOOLKIT_WINCE=""
43210 fi
43211
43212 COND_TOOLKIT_WINCE_USE_GUI_1="#"
43213 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
43214 COND_TOOLKIT_WINCE_USE_GUI_1=""
43215 fi
43216
43217 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
43218 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43219 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
43220 fi
43221
a848cd7e
SC
43222 COND_TOOLKIT_X11="#"
43223 if test "x$TOOLKIT" = "xX11" ; then
43224 COND_TOOLKIT_X11=""
43225 fi
43226
43227 COND_TOOLKIT_X11_USE_GUI_1="#"
43228 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
43229 COND_TOOLKIT_X11_USE_GUI_1=""
43230 fi
43231
43232 COND_UNICODE_1="#"
43233 if test "x$UNICODE" = "x1" ; then
43234 COND_UNICODE_1=""
43235 fi
43236
43237 COND_USE_EXCEPTIONS_0="#"
43238 if test "x$USE_EXCEPTIONS" = "x0" ; then
43239 COND_USE_EXCEPTIONS_0=""
43240 fi
43241
43242 COND_USE_EXCEPTIONS_1="#"
43243 if test "x$USE_EXCEPTIONS" = "x1" ; then
43244 COND_USE_EXCEPTIONS_1=""
43245 fi
43246
43247 COND_USE_GUI_0="#"
43248 if test "x$USE_GUI" = "x0" ; then
43249 COND_USE_GUI_0=""
43250 fi
43251
43252 COND_USE_GUI_1="#"
43253 if test "x$USE_GUI" = "x1" ; then
43254 COND_USE_GUI_1=""
43255 fi
43256
43257 COND_USE_GUI_1_WXUNIV_0="#"
43258 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43259 COND_USE_GUI_1_WXUNIV_0=""
43260 fi
43261
43262 COND_USE_GUI_1_WXUNIV_1="#"
43263 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43264 COND_USE_GUI_1_WXUNIV_1=""
43265 fi
43266
43267 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43268 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43269 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43270 fi
43271
43272 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43273 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43274 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43275 fi
43276
43277 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43278 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43279 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43280 fi
43281
ceec2216
RL
43282 COND_USE_ODBC_1="#"
43283 if test "x$USE_ODBC" = "x1" ; then
43284 COND_USE_ODBC_1=""
43285 fi
43286
ffa0583f
RL
43287 COND_USE_OPENGL_1="#"
43288 if test "x$USE_OPENGL" = "x1" ; then
43289 COND_USE_OPENGL_1=""
43290 fi
43291
a848cd7e
SC
43292 COND_USE_PLUGINS_0="#"
43293 if test "x$USE_PLUGINS" = "x0" ; then
43294 COND_USE_PLUGINS_0=""
43295 fi
43296
0b78747f
MW
43297 COND_USE_RTTI_0="#"
43298 if test "x$USE_RTTI" = "x0" ; then
43299 COND_USE_RTTI_0=""
43300 fi
43301
43302 COND_USE_RTTI_1="#"
43303 if test "x$USE_RTTI" = "x1" ; then
43304 COND_USE_RTTI_1=""
43305 fi
43306
a848cd7e
SC
43307 COND_USE_SOSYMLINKS_1="#"
43308 if test "x$USE_SOSYMLINKS" = "x1" ; then
43309 COND_USE_SOSYMLINKS_1=""
43310 fi
43311
43312 COND_USE_SOVERLINUX_1="#"
43313 if test "x$USE_SOVERLINUX" = "x1" ; then
43314 COND_USE_SOVERLINUX_1=""
43315 fi
43316
43317 COND_USE_SOVERSION_0="#"
43318 if test "x$USE_SOVERSION" = "x0" ; then
43319 COND_USE_SOVERSION_0=""
43320 fi
43321
43322 COND_USE_SOVERSOLARIS_1="#"
43323 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43324 COND_USE_SOVERSOLARIS_1=""
43325 fi
43326
0b78747f
MW
43327 COND_USE_THREADS_0="#"
43328 if test "x$USE_THREADS" = "x0" ; then
43329 COND_USE_THREADS_0=""
43330 fi
43331
43332 COND_USE_THREADS_1="#"
43333 if test "x$USE_THREADS" = "x1" ; then
43334 COND_USE_THREADS_1=""
43335 fi
43336
a13a7f89
RL
43337 COND_USE_XRC_1="#"
43338 if test "x$USE_XRC" = "x1" ; then
43339 COND_USE_XRC_1=""
43340 fi
43341
a848cd7e
SC
43342 COND_WITH_PLUGIN_SDL_1="#"
43343 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43344 COND_WITH_PLUGIN_SDL_1=""
43345 fi
43346
1e6eb025
VZ
43347 COND_WXUNIV_0="#"
43348 if test "x$WXUNIV" = "x0" ; then
43349 COND_WXUNIV_0=""
43350 fi
43351
a848cd7e
SC
43352 COND_WXUNIV_1="#"
43353 if test "x$WXUNIV" = "x1" ; then
43354 COND_WXUNIV_1=""
43355 fi
43356
43357 COND_WXUSE_EXPAT_BUILTIN="#"
43358 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43359 COND_WXUSE_EXPAT_BUILTIN=""
43360 fi
43361
43362 COND_WXUSE_LIBJPEG_BUILTIN="#"
43363 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43364 COND_WXUSE_LIBJPEG_BUILTIN=""
43365 fi
43366
43367 COND_WXUSE_LIBPNG_BUILTIN="#"
43368 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43369 COND_WXUSE_LIBPNG_BUILTIN=""
43370 fi
43371
43372 COND_WXUSE_LIBTIFF_BUILTIN="#"
43373 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43374 COND_WXUSE_LIBTIFF_BUILTIN=""
43375 fi
43376
43377 COND_WXUSE_ODBC_BUILTIN="#"
43378 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43379 COND_WXUSE_ODBC_BUILTIN=""
43380 fi
43381
43382 COND_WXUSE_REGEX_BUILTIN="#"
43383 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43384 COND_WXUSE_REGEX_BUILTIN=""
43385 fi
43386
43387 COND_WXUSE_ZLIB_BUILTIN="#"
43388 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43389 COND_WXUSE_ZLIB_BUILTIN=""
43390 fi
43391
43392
43393
2057db16
VS
43394 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43395 { { 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
43396echo "$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;}
43397 { (exit 1); exit 1; }; }
43398 fi
43399
a848cd7e 43400
ceec2216
RL
43401if test "$wxUSE_SHARED" = "yes"; then
43402
43403 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43404 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43405
5b674b9d
DE
43406 case "${host}" in
43407 *-pc-os2_emx | *-pc-os2-emx )
43408 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43409 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43410 cp -p ${srcdir}/src/os2/dllnames.sh .
43411 cp -p ${srcdir}/src/os2/dllar.sh .
43412 ;;
43413 esac
ceec2216
RL
43414else
43415
43416 EXE_LINKER="$CXX -o"
43417
43418fi
69120ee4
VZ
43419if test "$wxUSE_OMF" = "yes"; then
43420 case "${host}" in
43421 *-pc-os2_emx | *-pc-os2-emx )
43422 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43423 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43424 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43425 ;;
43426 esac
43427fi
a848cd7e 43428
74b84332 43429GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43430PCH_FLAGS=""
43431if test $GCC_PCH = 1 ; then
43432 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43433 PCH_FLAGS="-DWX_PRECOMP"
43434else
a848cd7e
SC
43435 case "${host}" in
43436 powerpc-*-darwin* )
74b84332 43437 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43438 ;;
bea8e651 43439 *-*-mingw32* )
1f344abf
VS
43440 if test "$wxUSE_STL" = "yes" -o \
43441 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43442 "$wxUSE_NO_RTTI" != "yes"; then
43443 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43444echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43445 cat >conftest.$ac_ext <<_ACEOF
43446/* confdefs.h. */
43447_ACEOF
43448cat confdefs.h >>conftest.$ac_ext
43449cat >>conftest.$ac_ext <<_ACEOF
43450/* end confdefs.h. */
43451
3314e67b
RR
43452int
43453main ()
43454{
43455#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43456 #error "Not GCC 3.2 or greater"
43457 #endif
43458
43459 ;
43460 return 0;
43461}
43462_ACEOF
43463rm -f conftest.$ac_objext
43464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43465 (eval $ac_compile) 2>conftest.er1
43466 ac_status=$?
43467 grep -v '^ *+' conftest.er1 >conftest.err
43468 rm -f conftest.er1
43469 cat conftest.err >&5
43470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43471 (exit $ac_status); } &&
dfe0c803
JS
43472 { ac_try='test -z "$ac_c_werror_flag"
43473 || test ! -s conftest.err'
3314e67b
RR
43474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43475 (eval $ac_try) 2>&5
43476 ac_status=$?
43477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43478 (exit $ac_status); }; } &&
43479 { ac_try='test -s conftest.$ac_objext'
43480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43481 (eval $ac_try) 2>&5
43482 ac_status=$?
43483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43484 (exit $ac_status); }; }; then
43485 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43486 echo "$as_me:$LINENO: result: yes" >&5
43487echo "${ECHO_T}yes" >&6
43488else
43489 echo "$as_me: failed program was:" >&5
43490sed 's/^/| /' conftest.$ac_ext >&5
43491
43492echo "$as_me:$LINENO: result: no" >&5
43493echo "${ECHO_T}no" >&6
43494fi
43495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43496 fi
43497 ;;
43498 *-pc-os2_emx | *-pc-os2-emx )
43499 if test "$wxUSE_STL" = "yes"; then
43500 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43501echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43502 cat >conftest.$ac_ext <<_ACEOF
43503/* confdefs.h. */
43504_ACEOF
43505cat confdefs.h >>conftest.$ac_ext
43506cat >>conftest.$ac_ext <<_ACEOF
43507/* end confdefs.h. */
43508
bea8e651
MB
43509int
43510main ()
43511{
1f344abf 43512#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43513 #error "Not GCC 3.2 or greater"
43514 #endif
43515
43516 ;
43517 return 0;
43518}
43519_ACEOF
43520rm -f conftest.$ac_objext
43521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43522 (eval $ac_compile) 2>conftest.er1
bea8e651 43523 ac_status=$?
ac1cb8d3
VS
43524 grep -v '^ *+' conftest.er1 >conftest.err
43525 rm -f conftest.er1
43526 cat conftest.err >&5
bea8e651
MB
43527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43528 (exit $ac_status); } &&
dfe0c803
JS
43529 { ac_try='test -z "$ac_c_werror_flag"
43530 || test ! -s conftest.err'
ac1cb8d3
VS
43531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43532 (eval $ac_try) 2>&5
43533 ac_status=$?
43534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43535 (exit $ac_status); }; } &&
43536 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43538 (eval $ac_try) 2>&5
43539 ac_status=$?
43540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43541 (exit $ac_status); }; }; then
74b84332 43542 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43543 echo "$as_me:$LINENO: result: yes" >&5
43544echo "${ECHO_T}yes" >&6
43545else
43546 echo "$as_me: failed program was:" >&5
43547sed 's/^/| /' conftest.$ac_ext >&5
43548
43549echo "$as_me:$LINENO: result: no" >&5
43550echo "${ECHO_T}no" >&6
43551fi
ac1cb8d3 43552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43553 fi
43554 ;;
a848cd7e
SC
43555 esac
43556fi
d2083416 43557CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43558
43559
43560SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43561
43562
43563
43564
43565
43566
43567
43568
43569
43570
43571
43572
43573
43574
43575
43576
43577
43578
43579
43580
43581
43582
43583
43584
43585
43586
43587
43588
43589
43590
43591
43592
43593
43594
43595
43596
43597
43598
43599
43600
43601
43602
a848cd7e
SC
43603
43604
43605
43606
43607
43608
43609
43610
43611
43612
43613
43614
43615
43616
43617
43618
43619
43620
74b84332 43621
a848cd7e
SC
43622
43623
43624echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43625echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43626set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43627if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43628 echo $ECHO_N "(cached) $ECHO_C" >&6
43629else
43630 cat >conftest.make <<\_ACEOF
43631all:
43632 @echo 'ac_maketemp="$(MAKE)"'
43633_ACEOF
43634# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43635eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43636if test -n "$ac_maketemp"; then
43637 eval ac_cv_prog_make_${ac_make}_set=yes
43638else
43639 eval ac_cv_prog_make_${ac_make}_set=no
43640fi
43641rm -f conftest.make
43642fi
43643if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43644 echo "$as_me:$LINENO: result: yes" >&5
43645echo "${ECHO_T}yes" >&6
43646 SET_MAKE=
43647else
43648 echo "$as_me:$LINENO: result: no" >&5
43649echo "${ECHO_T}no" >&6
43650 SET_MAKE="MAKE=${MAKE-make}"
43651fi
43652
43653
a848cd7e 43654
ceec2216
RL
43655 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43656
a848cd7e 43657
ceec2216 43658 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43659
a848cd7e 43660
ceec2216 43661 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43662
ceec2216
RL
43663
43664 ac_config_files="$ac_config_files version-script Makefile"
43665
43666
43667 ac_config_commands="$ac_config_commands wx-config
43668 "
a848cd7e
SC
43669
43670
9103d280
RL
43671
43672
a848cd7e
SC
43673if test "$wxUSE_GUI" = "yes"; then
43674 SUBDIRS="samples demos utils contrib"
43675else SUBDIRS="samples utils"
43676fi
43677
43678
43679
43680# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43681if test "${with_cppunit_prefix+set}" = set; then
43682 withval="$with_cppunit_prefix"
43683 cppunit_config_prefix="$withval"
43684else
43685 cppunit_config_prefix=""
43686fi;
43687
43688# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43689if test "${with_cppunit_exec_prefix+set}" = set; then
43690 withval="$with_cppunit_exec_prefix"
43691 cppunit_config_exec_prefix="$withval"
43692else
43693 cppunit_config_exec_prefix=""
43694fi;
43695
43696 if test x$cppunit_config_exec_prefix != x ; then
43697 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43698 if test x${CPPUNIT_CONFIG+set} != xset ; then
43699 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43700 fi
43701 fi
43702 if test x$cppunit_config_prefix != x ; then
43703 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43704 if test x${CPPUNIT_CONFIG+set} != xset ; then
43705 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43706 fi
43707 fi
43708
43709 # Extract the first word of "cppunit-config", so it can be a program name with args.
43710set dummy cppunit-config; ac_word=$2
43711echo "$as_me:$LINENO: checking for $ac_word" >&5
43712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43713if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43714 echo $ECHO_N "(cached) $ECHO_C" >&6
43715else
43716 case $CPPUNIT_CONFIG in
43717 [\\/]* | ?:[\\/]*)
43718 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43719 ;;
43720 *)
43721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43722for as_dir in $PATH
43723do
43724 IFS=$as_save_IFS
43725 test -z "$as_dir" && as_dir=.
43726 for ac_exec_ext in '' $ac_executable_extensions; do
43727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43728 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43730 break 2
43731 fi
43732done
43733done
43734
43735 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43736 ;;
43737esac
43738fi
43739CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43740
43741if test -n "$CPPUNIT_CONFIG"; then
43742 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43743echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43744else
43745 echo "$as_me:$LINENO: result: no" >&5
43746echo "${ECHO_T}no" >&6
43747fi
43748
43749 cppunit_version_min=1.8.0
43750
43751 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43752echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43753 no_cppunit=""
43754 if test "$CPPUNIT_CONFIG" = "no" ; then
43755 no_cppunit=yes
43756 else
43757 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43758 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43759 cppunit_version=`$CPPUNIT_CONFIG --version`
43760
43761 cppunit_major_version=`echo $cppunit_version | \
43762 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43763 cppunit_minor_version=`echo $cppunit_version | \
43764 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43765 cppunit_micro_version=`echo $cppunit_version | \
43766 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43767
43768 cppunit_major_min=`echo $cppunit_version_min | \
43769 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43770 cppunit_minor_min=`echo $cppunit_version_min | \
43771 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43772 cppunit_micro_min=`echo $cppunit_version_min | \
43773 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43774
43775 cppunit_version_proper=`expr \
43776 $cppunit_major_version \> $cppunit_major_min \| \
43777 $cppunit_major_version \= $cppunit_major_min \& \
43778 $cppunit_minor_version \> $cppunit_minor_min \| \
43779 $cppunit_major_version \= $cppunit_major_min \& \
43780 $cppunit_minor_version \= $cppunit_minor_min \& \
43781 $cppunit_micro_version \>= $cppunit_micro_min `
43782
43783 if test "$cppunit_version_proper" = "1" ; then
43784 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43785echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43786 else
43787 echo "$as_me:$LINENO: result: no" >&5
43788echo "${ECHO_T}no" >&6
43789 no_cppunit=yes
43790 fi
43791 fi
43792
43793 if test "x$no_cppunit" = x ; then
c2218763 43794 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43795 else
43796 CPPUNIT_CFLAGS=""
43797 CPPUNIT_LIBS=""
c2218763 43798 :
a848cd7e
SC
43799 fi
43800
43801
43802
43803
43804
43805for subdir in `echo $SUBDIRS`; do
43806 if test -d ${srcdir}/${subdir} ; then
43807 if test "$wxUSE_GUI" = "yes"; then
43808 if test ${subdir} = "samples"; then
43809 makefiles="samples/Makefile.in $makefiles"
43810 for sample in `echo $SAMPLES_SUBDIRS`; do
43811 if test -d $srcdir/samples/$sample; then
43812 makefiles="samples/$sample/Makefile.in $makefiles"
43813 fi
43814 done
43815 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43816 fi
43817 else if test ${subdir} = "samples"; then
43818 makefiles="samples/Makefile.in samples/console/Makefile.in"
43819 elif test ${subdir} = "utils"; then
6537ccf8
VS
43820 makefiles=""
43821 for util in HelpGen tex2rtf ; do
43822 if test -d $srcdir/utils/$util ; then
43823 makefiles="utils/$util/Makefile.in \
43824 utils/$util/src/Makefile.in \
43825 $makefiles"
43826 fi
43827 done
a848cd7e
SC
43828 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43829 fi
43830 fi
43831
43832 for mkin in $makefiles ; do
43833 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43834 ac_config_files="$ac_config_files $mk"
43835
43836 done
43837 fi
43838done
43839
43840
43841cat >confcache <<\_ACEOF
43842# This file is a shell script that caches the results of configure
43843# tests run on this system so they can be shared between configure
43844# scripts and configure runs, see configure's option --config-cache.
43845# It is not useful on other systems. If it contains results you don't
43846# want to keep, you may remove or edit it.
43847#
43848# config.status only pays attention to the cache file if you give it
43849# the --recheck option to rerun configure.
43850#
43851# `ac_cv_env_foo' variables (set or unset) will be overridden when
43852# loading this file, other *unset* `ac_cv_foo' will be assigned the
43853# following values.
43854
43855_ACEOF
43856
43857# The following way of writing the cache mishandles newlines in values,
43858# but we know of no workaround that is simple, portable, and efficient.
43859# So, don't put newlines in cache variables' values.
43860# Ultrix sh set writes to stderr and can't be redirected directly,
43861# and sets the high bit in the cache file unless we assign to the vars.
43862{
43863 (set) 2>&1 |
43864 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43865 *ac_space=\ *)
43866 # `set' does not quote correctly, so add quotes (double-quote
43867 # substitution turns \\\\ into \\, and sed turns \\ into \).
43868 sed -n \
ac1cb8d3
VS
43869 "s/'/'\\\\''/g;
43870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43871 ;;
43872 *)
43873 # `set' quotes correctly as required by POSIX, so do not add quotes.
43874 sed -n \
ac1cb8d3 43875 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43876 ;;
43877 esac;
43878} |
43879 sed '
43880 t clear
43881 : clear
43882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43883 t end
43884 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43885 : end' >>confcache
43886if diff $cache_file confcache >/dev/null 2>&1; then :; else
43887 if test -w $cache_file; then
43888 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43889 cat confcache >$cache_file
43890 else
43891 echo "not updating unwritable cache $cache_file"
43892 fi
43893fi
43894rm -f confcache
43895
43896test "x$prefix" = xNONE && prefix=$ac_default_prefix
43897# Let make expand exec_prefix.
43898test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43899
43900# VPATH may cause trouble with some makes, so we remove $(srcdir),
43901# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43902# trailing colons and then remove the whole line if VPATH becomes empty
43903# (actually we leave an empty line to preserve line numbers).
43904if test "x$srcdir" = x.; then
ac1cb8d3 43905 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43906s/:*\$(srcdir):*/:/;
43907s/:*\${srcdir}:*/:/;
43908s/:*@srcdir@:*/:/;
ac1cb8d3 43909s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43910s/:*$//;
ac1cb8d3 43911s/^[^=]*=[ ]*$//;
a848cd7e
SC
43912}'
43913fi
43914
43915DEFS=-DHAVE_CONFIG_H
43916
43917ac_libobjs=
43918ac_ltlibobjs=
43919for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43920 # 1. Remove the extension, and $U if already installed.
43921 ac_i=`echo "$ac_i" |
ac1cb8d3 43922 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43923 # 2. Add them.
43924 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43925 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43926done
43927LIBOBJS=$ac_libobjs
43928
43929LTLIBOBJS=$ac_ltlibobjs
43930
43931
43932
43933: ${CONFIG_STATUS=./config.status}
43934ac_clean_files_save=$ac_clean_files
43935ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43936{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43937echo "$as_me: creating $CONFIG_STATUS" >&6;}
43938cat >$CONFIG_STATUS <<_ACEOF
43939#! $SHELL
43940# Generated by $as_me.
43941# Run this file to recreate the current configuration.
43942# Compiler output produced by configure, useful for debugging
43943# configure, is in config.log if it exists.
43944
43945debug=false
43946ac_cs_recheck=false
43947ac_cs_silent=false
43948SHELL=\${CONFIG_SHELL-$SHELL}
43949_ACEOF
43950
43951cat >>$CONFIG_STATUS <<\_ACEOF
43952## --------------------- ##
43953## M4sh Initialization. ##
43954## --------------------- ##
43955
43956# Be Bourne compatible
43957if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43958 emulate sh
43959 NULLCMD=:
43960 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43961 # is contrary to our usage. Disable this feature.
43962 alias -g '${1+"$@"}'='"$@"'
43963elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43964 set -o posix
43965fi
ac1cb8d3 43966DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43967
43968# Support unset when possible.
ac1cb8d3 43969if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43970 as_unset=unset
43971else
43972 as_unset=false
43973fi
43974
43975
43976# Work around bugs in pre-3.0 UWIN ksh.
43977$as_unset ENV MAIL MAILPATH
43978PS1='$ '
43979PS2='> '
43980PS4='+ '
43981
43982# NLS nuisances.
43983for as_var in \
43984 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43985 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43986 LC_TELEPHONE LC_TIME
43987do
ac1cb8d3 43988 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43989 eval $as_var=C; export $as_var
43990 else
43991 $as_unset $as_var
43992 fi
43993done
43994
43995# Required to use basename.
43996if expr a : '\(a\)' >/dev/null 2>&1; then
43997 as_expr=expr
43998else
43999 as_expr=false
44000fi
44001
44002if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44003 as_basename=basename
44004else
44005 as_basename=false
44006fi
44007
44008
44009# Name of the executable.
44010as_me=`$as_basename "$0" ||
44011$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44012 X"$0" : 'X\(//\)$' \| \
44013 X"$0" : 'X\(/\)$' \| \
44014 . : '\(.\)' 2>/dev/null ||
44015echo X/"$0" |
44016 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44017 /^X\/\(\/\/\)$/{ s//\1/; q; }
44018 /^X\/\(\/\).*/{ s//\1/; q; }
44019 s/.*/./; q'`
44020
44021
44022# PATH needs CR, and LINENO needs CR and PATH.
44023# Avoid depending upon Character Ranges.
44024as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44025as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44026as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44027as_cr_digits='0123456789'
44028as_cr_alnum=$as_cr_Letters$as_cr_digits
44029
44030# The user is always right.
44031if test "${PATH_SEPARATOR+set}" != set; then
44032 echo "#! /bin/sh" >conf$$.sh
44033 echo "exit 0" >>conf$$.sh
44034 chmod +x conf$$.sh
44035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44036 PATH_SEPARATOR=';'
44037 else
44038 PATH_SEPARATOR=:
44039 fi
44040 rm -f conf$$.sh
44041fi
44042
44043
44044 as_lineno_1=$LINENO
44045 as_lineno_2=$LINENO
44046 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44047 test "x$as_lineno_1" != "x$as_lineno_2" &&
44048 test "x$as_lineno_3" = "x$as_lineno_2" || {
44049 # Find who we are. Look in the path if we contain no path at all
44050 # relative or not.
44051 case $0 in
44052 *[\\/]* ) as_myself=$0 ;;
44053 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44054for as_dir in $PATH
44055do
44056 IFS=$as_save_IFS
44057 test -z "$as_dir" && as_dir=.
44058 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44059done
44060
44061 ;;
44062 esac
44063 # We did not find ourselves, most probably we were run as `sh COMMAND'
44064 # in which case we are not to be found in the path.
44065 if test "x$as_myself" = x; then
44066 as_myself=$0
44067 fi
44068 if test ! -f "$as_myself"; then
44069 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44070echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44071 { (exit 1); exit 1; }; }
44072 fi
44073 case $CONFIG_SHELL in
44074 '')
44075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44076for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44077do
44078 IFS=$as_save_IFS
44079 test -z "$as_dir" && as_dir=.
44080 for as_base in sh bash ksh sh5; do
44081 case $as_dir in
44082 /*)
44083 if ("$as_dir/$as_base" -c '
44084 as_lineno_1=$LINENO
44085 as_lineno_2=$LINENO
44086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44087 test "x$as_lineno_1" != "x$as_lineno_2" &&
44088 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
44089 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44090 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44091 CONFIG_SHELL=$as_dir/$as_base
44092 export CONFIG_SHELL
44093 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44094 fi;;
44095 esac
44096 done
44097done
44098;;
44099 esac
44100
44101 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44102 # uniformly replaced by the line number. The first 'sed' inserts a
44103 # line-number line before each line; the second 'sed' does the real
44104 # work. The second script uses 'N' to pair each line-number line
44105 # with the numbered line, and appends trailing '-' during
44106 # substitution so that $LINENO is not a special case at line end.
44107 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44108 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44109 sed '=' <$as_myself |
44110 sed '
44111 N
44112 s,$,-,
44113 : loop
44114 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44115 t loop
44116 s,-$,,
44117 s,^['$as_cr_digits']*\n,,
44118 ' >$as_me.lineno &&
44119 chmod +x $as_me.lineno ||
44120 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44121echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44122 { (exit 1); exit 1; }; }
44123
44124 # Don't try to exec as it changes $[0], causing all sort of problems
44125 # (the dirname of $[0] is not the place where we might find the
44126 # original and so on. Autoconf is especially sensible to this).
44127 . ./$as_me.lineno
44128 # Exit status is that of the last command.
44129 exit
44130}
44131
44132
44133case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44134 *c*,-n*) ECHO_N= ECHO_C='
44135' ECHO_T=' ' ;;
44136 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44137 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44138esac
44139
44140if expr a : '\(a\)' >/dev/null 2>&1; then
44141 as_expr=expr
44142else
44143 as_expr=false
44144fi
44145
44146rm -f conf$$ conf$$.exe conf$$.file
44147echo >conf$$.file
44148if ln -s conf$$.file conf$$ 2>/dev/null; then
44149 # We could just check for DJGPP; but this test a) works b) is more generic
44150 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44151 if test -f conf$$.exe; then
44152 # Don't use ln at all; we don't have any links
44153 as_ln_s='cp -p'
44154 else
44155 as_ln_s='ln -s'
44156 fi
44157elif ln conf$$.file conf$$ 2>/dev/null; then
44158 as_ln_s=ln
44159else
44160 as_ln_s='cp -p'
44161fi
44162rm -f conf$$ conf$$.exe conf$$.file
44163
44164if mkdir -p . 2>/dev/null; then
44165 as_mkdir_p=:
44166else
ac1cb8d3 44167 test -d ./-p && rmdir ./-p
a848cd7e
SC
44168 as_mkdir_p=false
44169fi
44170
44171as_executable_p="test -f"
44172
44173# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 44174as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44175
44176# Sed expression to map a string onto a valid variable name.
ac1cb8d3 44177as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44178
44179
44180# IFS
44181# We need space, tab and new line, in precisely that order.
44182as_nl='
44183'
44184IFS=" $as_nl"
44185
44186# CDPATH.
44187$as_unset CDPATH
44188
44189exec 6>&1
44190
44191# Open the log real soon, to keep \$[0] and so on meaningful, and to
44192# report actual input values of CONFIG_FILES etc. instead of their
44193# values after options handling. Logging --version etc. is OK.
44194exec 5>>config.log
44195{
44196 echo
44197 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44198## Running $as_me. ##
44199_ASBOX
44200} >&5
44201cat >&5 <<_CSEOF
44202
63c4f6da 44203This file was extended by wxWidgets $as_me 2.5.5, which was
ac1cb8d3 44204generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
44205
44206 CONFIG_FILES = $CONFIG_FILES
44207 CONFIG_HEADERS = $CONFIG_HEADERS
44208 CONFIG_LINKS = $CONFIG_LINKS
44209 CONFIG_COMMANDS = $CONFIG_COMMANDS
44210 $ $0 $@
44211
44212_CSEOF
44213echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44214echo >&5
44215_ACEOF
44216
44217# Files that config.status was made for.
44218if test -n "$ac_config_files"; then
44219 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44220fi
44221
44222if test -n "$ac_config_headers"; then
44223 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44224fi
44225
44226if test -n "$ac_config_links"; then
44227 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44228fi
44229
44230if test -n "$ac_config_commands"; then
44231 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44232fi
44233
44234cat >>$CONFIG_STATUS <<\_ACEOF
44235
44236ac_cs_usage="\
44237\`$as_me' instantiates files from templates according to the
44238current configuration.
44239
44240Usage: $0 [OPTIONS] [FILE]...
44241
44242 -h, --help print this help, then exit
44243 -V, --version print version number, then exit
44244 -q, --quiet do not print progress messages
44245 -d, --debug don't remove temporary files
44246 --recheck update $as_me by reconfiguring in the same conditions
44247 --file=FILE[:TEMPLATE]
ac1cb8d3 44248 instantiate the configuration file FILE
a848cd7e 44249 --header=FILE[:TEMPLATE]
ac1cb8d3 44250 instantiate the configuration header FILE
a848cd7e
SC
44251
44252Configuration files:
44253$config_files
44254
44255Configuration headers:
44256$config_headers
44257
44258Configuration commands:
44259$config_commands
44260
44261Report bugs to <bug-autoconf@gnu.org>."
44262_ACEOF
44263
44264cat >>$CONFIG_STATUS <<_ACEOF
44265ac_cs_version="\\
63c4f6da 44266wxWidgets config.status 2.5.5
ac1cb8d3 44267configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
44268 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44269
ac1cb8d3 44270Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
44271This config.status script is free software; the Free Software Foundation
44272gives unlimited permission to copy, distribute and modify it."
44273srcdir=$srcdir
44274INSTALL="$INSTALL"
44275_ACEOF
44276
44277cat >>$CONFIG_STATUS <<\_ACEOF
44278# If no file are specified by the user, then we need to provide default
44279# value. By we need to know if files were specified by the user.
44280ac_need_defaults=:
44281while test $# != 0
44282do
44283 case $1 in
44284 --*=*)
44285 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44286 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44287 ac_shift=:
44288 ;;
44289 -*)
44290 ac_option=$1
44291 ac_optarg=$2
44292 ac_shift=shift
44293 ;;
44294 *) # This is not an option, so the user has probably given explicit
44295 # arguments.
44296 ac_option=$1
44297 ac_need_defaults=false;;
44298 esac
44299
44300 case $ac_option in
44301 # Handling of the options.
44302_ACEOF
44303cat >>$CONFIG_STATUS <<\_ACEOF
44304 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44305 ac_cs_recheck=: ;;
44306 --version | --vers* | -V )
44307 echo "$ac_cs_version"; exit 0 ;;
44308 --he | --h)
44309 # Conflict between --help and --header
44310 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44311Try \`$0 --help' for more information." >&5
44312echo "$as_me: error: ambiguous option: $1
44313Try \`$0 --help' for more information." >&2;}
44314 { (exit 1); exit 1; }; };;
44315 --help | --hel | -h )
44316 echo "$ac_cs_usage"; exit 0 ;;
44317 --debug | --d* | -d )
44318 debug=: ;;
44319 --file | --fil | --fi | --f )
44320 $ac_shift
44321 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44322 ac_need_defaults=false;;
44323 --header | --heade | --head | --hea )
44324 $ac_shift
44325 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44326 ac_need_defaults=false;;
44327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44328 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44329 ac_cs_silent=: ;;
44330
44331 # This is an error.
44332 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44333Try \`$0 --help' for more information." >&5
44334echo "$as_me: error: unrecognized option: $1
44335Try \`$0 --help' for more information." >&2;}
44336 { (exit 1); exit 1; }; } ;;
44337
44338 *) ac_config_targets="$ac_config_targets $1" ;;
44339
44340 esac
44341 shift
44342done
44343
44344ac_configure_extra_args=
44345
44346if $ac_cs_silent; then
44347 exec 6>/dev/null
44348 ac_configure_extra_args="$ac_configure_extra_args --silent"
44349fi
44350
44351_ACEOF
44352cat >>$CONFIG_STATUS <<_ACEOF
44353if \$ac_cs_recheck; then
44354 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44355 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44356fi
44357
44358_ACEOF
44359
44360cat >>$CONFIG_STATUS <<_ACEOF
44361#
44362# INIT-COMMANDS section.
44363#
44364
ceec2216
RL
44365 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44366 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44367 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44368 LN_S="${LN_S}"
a848cd7e
SC
44369
44370
44371_ACEOF
44372
44373
44374
44375cat >>$CONFIG_STATUS <<\_ACEOF
44376for ac_config_target in $ac_config_targets
44377do
44378 case "$ac_config_target" in
44379 # Handling of arguments.
ceec2216
RL
44380 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44381 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44382 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44383 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44384 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44385 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44386 "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
44387 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44388echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44389 { (exit 1); exit 1; }; };;
44390 esac
44391done
44392
44393# If the user did not use the arguments to specify the items to instantiate,
44394# then the envvar interface is used. Set only those that are not.
44395# We use the long form for the default assignment because of an extremely
44396# bizarre bug on SunOS 4.1.3.
44397if $ac_need_defaults; then
44398 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44399 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44400 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44401fi
44402
44403# Have a temporary directory for convenience. Make it in the build tree
44404# simply because there is no reason to put it here, and in addition,
44405# creating and moving files from /tmp can sometimes cause problems.
44406# Create a temporary directory, and hook for its removal unless debugging.
44407$debug ||
44408{
44409 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44410 trap '{ (exit 1); exit 1; }' 1 2 13 15
44411}
44412
44413# Create a (secure) tmp directory for tmp files.
44414
44415{
44416 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44417 test -n "$tmp" && test -d "$tmp"
44418} ||
44419{
44420 tmp=./confstat$$-$RANDOM
44421 (umask 077 && mkdir $tmp)
44422} ||
44423{
44424 echo "$me: cannot create a temporary directory in ." >&2
44425 { (exit 1); exit 1; }
44426}
44427
44428_ACEOF
44429
44430cat >>$CONFIG_STATUS <<_ACEOF
44431
44432#
44433# CONFIG_FILES section.
44434#
44435
44436# No need to generate the scripts if there are no CONFIG_FILES.
44437# This happens for instance when ./config.status config.h
44438if test -n "\$CONFIG_FILES"; then
44439 # Protect against being on the right side of a sed subst in config.status.
44440 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44441 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44442s,@SHELL@,$SHELL,;t t
44443s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44444s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44445s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44446s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44447s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44448s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44449s,@exec_prefix@,$exec_prefix,;t t
44450s,@prefix@,$prefix,;t t
44451s,@program_transform_name@,$program_transform_name,;t t
44452s,@bindir@,$bindir,;t t
44453s,@sbindir@,$sbindir,;t t
44454s,@libexecdir@,$libexecdir,;t t
44455s,@datadir@,$datadir,;t t
44456s,@sysconfdir@,$sysconfdir,;t t
44457s,@sharedstatedir@,$sharedstatedir,;t t
44458s,@localstatedir@,$localstatedir,;t t
44459s,@libdir@,$libdir,;t t
44460s,@includedir@,$includedir,;t t
44461s,@oldincludedir@,$oldincludedir,;t t
44462s,@infodir@,$infodir,;t t
44463s,@mandir@,$mandir,;t t
44464s,@build_alias@,$build_alias,;t t
44465s,@host_alias@,$host_alias,;t t
44466s,@target_alias@,$target_alias,;t t
44467s,@DEFS@,$DEFS,;t t
44468s,@ECHO_C@,$ECHO_C,;t t
44469s,@ECHO_N@,$ECHO_N,;t t
44470s,@ECHO_T@,$ECHO_T,;t t
44471s,@LIBS@,$LIBS,;t t
44472s,@build@,$build,;t t
44473s,@build_cpu@,$build_cpu,;t t
44474s,@build_vendor@,$build_vendor,;t t
44475s,@build_os@,$build_os,;t t
44476s,@host@,$host,;t t
44477s,@host_cpu@,$host_cpu,;t t
44478s,@host_vendor@,$host_vendor,;t t
44479s,@host_os@,$host_os,;t t
44480s,@target@,$target,;t t
44481s,@target_cpu@,$target_cpu,;t t
44482s,@target_vendor@,$target_vendor,;t t
44483s,@target_os@,$target_os,;t t
44484s,@CC@,$CC,;t t
44485s,@CFLAGS@,$CFLAGS,;t t
44486s,@LDFLAGS@,$LDFLAGS,;t t
44487s,@CPPFLAGS@,$CPPFLAGS,;t t
44488s,@ac_ct_CC@,$ac_ct_CC,;t t
44489s,@EXEEXT@,$EXEEXT,;t t
44490s,@OBJEXT@,$OBJEXT,;t t
44491s,@CPP@,$CPP,;t t
44492s,@EGREP@,$EGREP,;t t
44493s,@CXX@,$CXX,;t t
44494s,@CXXFLAGS@,$CXXFLAGS,;t t
44495s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44496s,@RANLIB@,$RANLIB,;t t
44497s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44498s,@AR@,$AR,;t t
44499s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44500s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44501s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44502s,@STRIP@,$STRIP,;t t
44503s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44504s,@LN_S@,$LN_S,;t t
44505s,@CXXCPP@,$CXXCPP,;t t
44506s,@subdirs@,$subdirs,;t t
44507s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44508s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44509s,@GTK_LIBS@,$GTK_LIBS,;t t
44510s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44511s,@X_CFLAGS@,$X_CFLAGS,;t t
44512s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44513s,@X_LIBS@,$X_LIBS,;t t
44514s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44515s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44516s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44517s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44518s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44519s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44520s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44521s,@RESCOMP@,$RESCOMP,;t t
44522s,@DEREZ@,$DEREZ,;t t
44523s,@SETFILE@,$SETFILE,;t t
44524s,@LIBICONV@,$LIBICONV,;t t
44525s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44526s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44527s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44528s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44529s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44530s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44531s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44532s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44533s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44534s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44535s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44536s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44537s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44538s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44539s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44540s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44541s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44542s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44543s,@VENDOR@,$VENDOR,;t t
44544s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44545s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44546s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44547s,@WXUNIV@,$WXUNIV,;t t
44548s,@MONOLITHIC@,$MONOLITHIC,;t t
44549s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44550s,@EXTRALIBS@,$EXTRALIBS,;t t
44551s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44552s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44553s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44554s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44555s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44556s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44557s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44558s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44559s,@UNICODE@,$UNICODE,;t t
44560s,@BUILD@,$BUILD,;t t
44561s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44562s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44563s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44564s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44565s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44566s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44567s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44568s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44569s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44570s,@SET_MAKE@,$SET_MAKE,;t t
44571s,@MAKE_SET@,$MAKE_SET,;t t
44572s,@ac_ct_AR@,$ac_ct_AR,;t t
44573s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44574s,@NM@,$NM,;t t
44575s,@ac_ct_NM@,$ac_ct_NM,;t t
44576s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44577s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44578s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44579s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44580s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44581s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44582s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44583s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44584s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44585s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44586s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44587s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44588s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44589s,@LIBPREFIX@,$LIBPREFIX,;t t
44590s,@LIBEXT@,$LIBEXT,;t t
44591s,@DLLPREFIX@,$DLLPREFIX,;t t
44592s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44593s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44594s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44595s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44596s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44597s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44598s,@PIC_FLAG@,$PIC_FLAG,;t t
44599s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44600s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44601s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44602s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44603s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44604s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44605s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44606s,@GCC_PCH@,$GCC_PCH,;t t
44607s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44608s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44609s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44610s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44611s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44612s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44613s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44614s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44615s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44616s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44617s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44618s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44619s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44620s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44621s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44622s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44623s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44624s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44625s,@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 44626s,@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 44627s,@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 44628s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44629s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44630s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44631s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44632s,@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 44633s,@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 44634s,@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 44635s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44636s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44637s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44638s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44639s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44640s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44641s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44642s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44643s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44644s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44645s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44646s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44647s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44648s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44649s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44650s,@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
44651s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44652s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44653s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44654s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44655s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44656s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44657s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44658s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44659s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44660s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44661s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44662s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44663s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44664s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44665s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44666s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44667s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44668s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44669s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44670s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44671s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44672s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44673s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44674s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44675s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44676s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44677s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 44678s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44679s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44680s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44681s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44682s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44683s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44684s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44685s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44686s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44687s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44688s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44689s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44690s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44691s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44692s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44693s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44694s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44695s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44696s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44697s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44698s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44699s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44700s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44701s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44702s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44703s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44704s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44705s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44706s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44707s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44708s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44709s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44710s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44711s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44712s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44713s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44714s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44715s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44716s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44717s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44718s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44719s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44720s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44721s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44722s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44723s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44724s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44725s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44726s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44727s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44728s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44729s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44730s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44731s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44732s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44733s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44734s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44735s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44736s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44737s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44738s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44739s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44740s,@USE_GUI@,$USE_GUI,;t t
44741s,@AFMINSTALL@,$AFMINSTALL,;t t
44742s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44743s,@TOOLKIT@,$TOOLKIT,;t t
44744s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44745s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44746s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44747s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44748s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44749s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44750s,@WIDGET_SET@,$WIDGET_SET,;t t
44751s,@WX_RELEASE@,$WX_RELEASE,;t t
44752s,@WX_VERSION@,$WX_VERSION,;t t
44753s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44754s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44755s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44756s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44757s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44758s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44759s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44760s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44761s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44762s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44763s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44764s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44765s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44766s,@DISTDIR@,$DISTDIR,;t t
44767s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44768s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44769s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44770s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44771s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44772s,@RESFLAGS@,$RESFLAGS,;t t
44773s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44774s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44775s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44776s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44777s,@MACRESCOMP@,$MACRESCOMP,;t t
44778s,@MACSETFILE@,$MACSETFILE,;t t
44779s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44780s,@GCC@,$GCC,;t t
a848cd7e 44781s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44782s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44783s,@LIBOBJS@,$LIBOBJS,;t t
44784s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44785CEOF
44786
44787_ACEOF
44788
44789 cat >>$CONFIG_STATUS <<\_ACEOF
44790 # Split the substitutions into bite-sized pieces for seds with
44791 # small command number limits, like on Digital OSF/1 and HP-UX.
44792 ac_max_sed_lines=48
44793 ac_sed_frag=1 # Number of current file.
44794 ac_beg=1 # First line for current file.
44795 ac_end=$ac_max_sed_lines # Line after last line for current file.
44796 ac_more_lines=:
44797 ac_sed_cmds=
44798 while $ac_more_lines; do
44799 if test $ac_beg -gt 1; then
44800 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44801 else
44802 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44803 fi
44804 if test ! -s $tmp/subs.frag; then
44805 ac_more_lines=false
44806 else
44807 # The purpose of the label and of the branching condition is to
44808 # speed up the sed processing (if there are no `@' at all, there
44809 # is no need to browse any of the substitutions).
44810 # These are the two extra sed commands mentioned above.
44811 (echo ':t
44812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44813 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44814 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44815 else
ac1cb8d3 44816 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44817 fi
44818 ac_sed_frag=`expr $ac_sed_frag + 1`
44819 ac_beg=$ac_end
44820 ac_end=`expr $ac_end + $ac_max_sed_lines`
44821 fi
44822 done
44823 if test -z "$ac_sed_cmds"; then
44824 ac_sed_cmds=cat
44825 fi
44826fi # test -n "$CONFIG_FILES"
44827
44828_ACEOF
44829cat >>$CONFIG_STATUS <<\_ACEOF
44830for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44831 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44832 case $ac_file in
44833 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44834 cat >$tmp/stdin
44835 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44836 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44837 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44838 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44839 * ) ac_file_in=$ac_file.in ;;
44840 esac
44841
44842 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44843 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44844$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44845 X"$ac_file" : 'X\(//\)[^/]' \| \
44846 X"$ac_file" : 'X\(//\)$' \| \
44847 X"$ac_file" : 'X\(/\)' \| \
44848 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44849echo X"$ac_file" |
44850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44852 /^X\(\/\/\)$/{ s//\1/; q; }
44853 /^X\(\/\).*/{ s//\1/; q; }
44854 s/.*/./; q'`
44855 { if $as_mkdir_p; then
44856 mkdir -p "$ac_dir"
44857 else
44858 as_dir="$ac_dir"
44859 as_dirs=
44860 while test ! -d "$as_dir"; do
44861 as_dirs="$as_dir $as_dirs"
44862 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44863$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44864 X"$as_dir" : 'X\(//\)[^/]' \| \
44865 X"$as_dir" : 'X\(//\)$' \| \
44866 X"$as_dir" : 'X\(/\)' \| \
44867 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44868echo X"$as_dir" |
44869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44871 /^X\(\/\/\)$/{ s//\1/; q; }
44872 /^X\(\/\).*/{ s//\1/; q; }
44873 s/.*/./; q'`
44874 done
44875 test ! -n "$as_dirs" || mkdir $as_dirs
44876 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44877echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44878 { (exit 1); exit 1; }; }; }
44879
44880 ac_builddir=.
44881
44882if test "$ac_dir" != .; then
44883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44884 # A "../" for each directory in $ac_dir_suffix.
44885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44886else
44887 ac_dir_suffix= ac_top_builddir=
44888fi
44889
44890case $srcdir in
44891 .) # No --srcdir option. We are building in place.
44892 ac_srcdir=.
44893 if test -z "$ac_top_builddir"; then
44894 ac_top_srcdir=.
44895 else
44896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44897 fi ;;
44898 [\\/]* | ?:[\\/]* ) # Absolute path.
44899 ac_srcdir=$srcdir$ac_dir_suffix;
44900 ac_top_srcdir=$srcdir ;;
44901 *) # Relative path.
44902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44904esac
ac1cb8d3
VS
44905
44906# Do not use `cd foo && pwd` to compute absolute paths, because
44907# the directories may not exist.
44908case `pwd` in
44909.) ac_abs_builddir="$ac_dir";;
44910*)
44911 case "$ac_dir" in
44912 .) ac_abs_builddir=`pwd`;;
44913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44915 esac;;
44916esac
44917case $ac_abs_builddir in
44918.) ac_abs_top_builddir=${ac_top_builddir}.;;
44919*)
44920 case ${ac_top_builddir}. in
44921 .) ac_abs_top_builddir=$ac_abs_builddir;;
44922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44924 esac;;
44925esac
44926case $ac_abs_builddir in
44927.) ac_abs_srcdir=$ac_srcdir;;
44928*)
44929 case $ac_srcdir in
44930 .) ac_abs_srcdir=$ac_abs_builddir;;
44931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44933 esac;;
44934esac
44935case $ac_abs_builddir in
44936.) ac_abs_top_srcdir=$ac_top_srcdir;;
44937*)
44938 case $ac_top_srcdir in
44939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44942 esac;;
44943esac
a848cd7e
SC
44944
44945
44946 case $INSTALL in
44947 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44948 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44949 esac
44950
dfe0c803
JS
44951 if test x"$ac_file" != x-; then
44952 { echo "$as_me:$LINENO: creating $ac_file" >&5
44953echo "$as_me: creating $ac_file" >&6;}
44954 rm -f "$ac_file"
44955 fi
a848cd7e
SC
44956 # Let's still pretend it is `configure' which instantiates (i.e., don't
44957 # use $as_me), people would be surprised to read:
44958 # /* config.h. Generated by config.status. */
44959 if test x"$ac_file" = x-; then
44960 configure_input=
44961 else
44962 configure_input="$ac_file. "
44963 fi
44964 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44965 sed 's,.*/,,'` by configure."
a848cd7e
SC
44966
44967 # First look for the input files in the build tree, otherwise in the
44968 # src tree.
44969 ac_file_inputs=`IFS=:
44970 for f in $ac_file_in; do
44971 case $f in
44972 -) echo $tmp/stdin ;;
44973 [\\/$]*)
ac1cb8d3
VS
44974 # Absolute (can't be DOS-style, as IFS=:)
44975 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44976echo "$as_me: error: cannot find input file: $f" >&2;}
44977 { (exit 1); exit 1; }; }
ac1cb8d3 44978 echo "$f";;
a848cd7e 44979 *) # Relative
ac1cb8d3
VS
44980 if test -f "$f"; then
44981 # Build tree
44982 echo "$f"
44983 elif test -f "$srcdir/$f"; then
44984 # Source tree
44985 echo "$srcdir/$f"
44986 else
44987 # /dev/null tree
44988 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44989echo "$as_me: error: cannot find input file: $f" >&2;}
44990 { (exit 1); exit 1; }; }
ac1cb8d3 44991 fi;;
a848cd7e
SC
44992 esac
44993 done` || { (exit 1); exit 1; }
44994_ACEOF
44995cat >>$CONFIG_STATUS <<_ACEOF
44996 sed "$ac_vpsub
44997$extrasub
44998_ACEOF
44999cat >>$CONFIG_STATUS <<\_ACEOF
45000:t
45001/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45002s,@configure_input@,$configure_input,;t t
45003s,@srcdir@,$ac_srcdir,;t t
45004s,@abs_srcdir@,$ac_abs_srcdir,;t t
45005s,@top_srcdir@,$ac_top_srcdir,;t t
45006s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45007s,@builddir@,$ac_builddir,;t t
45008s,@abs_builddir@,$ac_abs_builddir,;t t
45009s,@top_builddir@,$ac_top_builddir,;t t
45010s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45011s,@INSTALL@,$ac_INSTALL,;t t
45012" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45013 rm -f $tmp/stdin
45014 if test x"$ac_file" != x-; then
45015 mv $tmp/out $ac_file
45016 else
45017 cat $tmp/out
45018 rm -f $tmp/out
45019 fi
45020
ceec2216
RL
45021 # Run the commands associated with the file.
45022 case $ac_file in
45023 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
45024 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
45025 esac
a848cd7e
SC
45026done
45027_ACEOF
45028cat >>$CONFIG_STATUS <<\_ACEOF
45029
45030#
45031# CONFIG_HEADER section.
45032#
45033
45034# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45035# NAME is the cpp macro being defined and VALUE is the value it is being given.
45036#
45037# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
45038ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45039ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
45040ac_dC=' '
45041ac_dD=',;t'
45042# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 45043ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
45044ac_uB='$,\1#\2define\3'
45045ac_uC=' '
45046ac_uD=',;t'
45047
45048for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45049 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45050 case $ac_file in
45051 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45052 cat >$tmp/stdin
45053 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45054 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45055 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45056 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45057 * ) ac_file_in=$ac_file.in ;;
45058 esac
45059
45060 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45061echo "$as_me: creating $ac_file" >&6;}
45062
45063 # First look for the input files in the build tree, otherwise in the
45064 # src tree.
45065 ac_file_inputs=`IFS=:
45066 for f in $ac_file_in; do
45067 case $f in
45068 -) echo $tmp/stdin ;;
45069 [\\/$]*)
ac1cb8d3
VS
45070 # Absolute (can't be DOS-style, as IFS=:)
45071 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45072echo "$as_me: error: cannot find input file: $f" >&2;}
45073 { (exit 1); exit 1; }; }
ac1cb8d3
VS
45074 # Do quote $f, to prevent DOS paths from being IFS'd.
45075 echo "$f";;
a848cd7e 45076 *) # Relative
ac1cb8d3
VS
45077 if test -f "$f"; then
45078 # Build tree
45079 echo "$f"
45080 elif test -f "$srcdir/$f"; then
45081 # Source tree
45082 echo "$srcdir/$f"
45083 else
45084 # /dev/null tree
45085 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45086echo "$as_me: error: cannot find input file: $f" >&2;}
45087 { (exit 1); exit 1; }; }
ac1cb8d3 45088 fi;;
a848cd7e
SC
45089 esac
45090 done` || { (exit 1); exit 1; }
45091 # Remove the trailing spaces.
ac1cb8d3 45092 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
45093
45094_ACEOF
45095
45096# Transform confdefs.h into two sed scripts, `conftest.defines' and
45097# `conftest.undefs', that substitutes the proper values into
45098# config.h.in to produce config.h. The first handles `#define'
45099# templates, and the second `#undef' templates.
45100# And first: Protect against being on the right side of a sed subst in
45101# config.status. Protect against being in an unquoted here document
45102# in config.status.
45103rm -f conftest.defines conftest.undefs
45104# Using a here document instead of a string reduces the quoting nightmare.
45105# Putting comments in sed scripts is not portable.
45106#
45107# `end' is used to avoid that the second main sed command (meant for
45108# 0-ary CPP macros) applies to n-ary macro definitions.
45109# See the Autoconf documentation for `clear'.
45110cat >confdef2sed.sed <<\_ACEOF
45111s/[\\&,]/\\&/g
45112s,[\\$`],\\&,g
45113t clear
45114: clear
ac1cb8d3 45115s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 45116t end
ac1cb8d3 45117s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
45118: end
45119_ACEOF
45120# If some macros were called several times there might be several times
45121# the same #defines, which is useless. Nevertheless, we may not want to
45122# sort them, since we want the *last* AC-DEFINE to be honored.
45123uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45124sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45125rm -f confdef2sed.sed
45126
45127# This sed command replaces #undef with comments. This is necessary, for
45128# example, in the case of _POSIX_SOURCE, which is predefined and required
45129# on some systems where configure will not decide to define it.
45130cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 45131s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
45132_ACEOF
45133
45134# Break up conftest.defines because some shells have a limit on the size
45135# of here documents, and old seds have small limits too (100 cmds).
45136echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 45137echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
45138echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45139echo ' :' >>$CONFIG_STATUS
45140rm -f conftest.tail
45141while grep . conftest.defines >/dev/null
45142do
45143 # Write a limited-size here document to $tmp/defines.sed.
45144 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45145 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 45146 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
45147 # Work around the forget-to-reset-the-flag bug.
45148 echo 't clr' >>$CONFIG_STATUS
45149 echo ': clr' >>$CONFIG_STATUS
45150 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45151 echo 'CEOF
45152 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45153 rm -f $tmp/in
45154 mv $tmp/out $tmp/in
45155' >>$CONFIG_STATUS
45156 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45157 rm -f conftest.defines
45158 mv conftest.tail conftest.defines
45159done
45160rm -f conftest.defines
45161echo ' fi # grep' >>$CONFIG_STATUS
45162echo >>$CONFIG_STATUS
45163
45164# Break up conftest.undefs because some shells have a limit on the size
45165# of here documents, and old seds have small limits too (100 cmds).
45166echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45167rm -f conftest.tail
45168while grep . conftest.undefs >/dev/null
45169do
45170 # Write a limited-size here document to $tmp/undefs.sed.
45171 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45172 # Speed up: don't consider the non `#undef'
ac1cb8d3 45173 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
45174 # Work around the forget-to-reset-the-flag bug.
45175 echo 't clr' >>$CONFIG_STATUS
45176 echo ': clr' >>$CONFIG_STATUS
45177 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45178 echo 'CEOF
45179 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45180 rm -f $tmp/in
45181 mv $tmp/out $tmp/in
45182' >>$CONFIG_STATUS
45183 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45184 rm -f conftest.undefs
45185 mv conftest.tail conftest.undefs
45186done
45187rm -f conftest.undefs
45188
45189cat >>$CONFIG_STATUS <<\_ACEOF
45190 # Let's still pretend it is `configure' which instantiates (i.e., don't
45191 # use $as_me), people would be surprised to read:
45192 # /* config.h. Generated by config.status. */
45193 if test x"$ac_file" = x-; then
45194 echo "/* Generated by configure. */" >$tmp/config.h
45195 else
45196 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45197 fi
45198 cat $tmp/in >>$tmp/config.h
45199 rm -f $tmp/in
45200 if test x"$ac_file" != x-; then
45201 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45202 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45203echo "$as_me: $ac_file is unchanged" >&6;}
45204 else
45205 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45206$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45207 X"$ac_file" : 'X\(//\)[^/]' \| \
45208 X"$ac_file" : 'X\(//\)$' \| \
45209 X"$ac_file" : 'X\(/\)' \| \
45210 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45211echo X"$ac_file" |
45212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45214 /^X\(\/\/\)$/{ s//\1/; q; }
45215 /^X\(\/\).*/{ s//\1/; q; }
45216 s/.*/./; q'`
45217 { if $as_mkdir_p; then
45218 mkdir -p "$ac_dir"
45219 else
45220 as_dir="$ac_dir"
45221 as_dirs=
45222 while test ! -d "$as_dir"; do
45223 as_dirs="$as_dir $as_dirs"
45224 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45225$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45226 X"$as_dir" : 'X\(//\)[^/]' \| \
45227 X"$as_dir" : 'X\(//\)$' \| \
45228 X"$as_dir" : 'X\(/\)' \| \
45229 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45230echo X"$as_dir" |
45231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45233 /^X\(\/\/\)$/{ s//\1/; q; }
45234 /^X\(\/\).*/{ s//\1/; q; }
45235 s/.*/./; q'`
45236 done
45237 test ! -n "$as_dirs" || mkdir $as_dirs
45238 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45239echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45240 { (exit 1); exit 1; }; }; }
45241
45242 rm -f $ac_file
45243 mv $tmp/config.h $ac_file
45244 fi
45245 else
45246 cat $tmp/config.h
45247 rm -f $tmp/config.h
45248 fi
45249done
45250_ACEOF
45251cat >>$CONFIG_STATUS <<\_ACEOF
45252
45253#
45254# CONFIG_COMMANDS section.
45255#
45256for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45257 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45258 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45259 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45260$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45261 X"$ac_dest" : 'X\(//\)[^/]' \| \
45262 X"$ac_dest" : 'X\(//\)$' \| \
45263 X"$ac_dest" : 'X\(/\)' \| \
45264 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45265echo X"$ac_dest" |
45266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45268 /^X\(\/\/\)$/{ s//\1/; q; }
45269 /^X\(\/\).*/{ s//\1/; q; }
45270 s/.*/./; q'`
ac1cb8d3
VS
45271 { if $as_mkdir_p; then
45272 mkdir -p "$ac_dir"
45273 else
45274 as_dir="$ac_dir"
45275 as_dirs=
45276 while test ! -d "$as_dir"; do
45277 as_dirs="$as_dir $as_dirs"
45278 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45279$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45280 X"$as_dir" : 'X\(//\)[^/]' \| \
45281 X"$as_dir" : 'X\(//\)$' \| \
45282 X"$as_dir" : 'X\(/\)' \| \
45283 . : '\(.\)' 2>/dev/null ||
45284echo X"$as_dir" |
45285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45287 /^X\(\/\/\)$/{ s//\1/; q; }
45288 /^X\(\/\).*/{ s//\1/; q; }
45289 s/.*/./; q'`
45290 done
45291 test ! -n "$as_dirs" || mkdir $as_dirs
45292 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45293echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45294 { (exit 1); exit 1; }; }; }
45295
a848cd7e
SC
45296 ac_builddir=.
45297
45298if test "$ac_dir" != .; then
45299 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45300 # A "../" for each directory in $ac_dir_suffix.
45301 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45302else
45303 ac_dir_suffix= ac_top_builddir=
45304fi
45305
45306case $srcdir in
45307 .) # No --srcdir option. We are building in place.
45308 ac_srcdir=.
45309 if test -z "$ac_top_builddir"; then
45310 ac_top_srcdir=.
45311 else
45312 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45313 fi ;;
45314 [\\/]* | ?:[\\/]* ) # Absolute path.
45315 ac_srcdir=$srcdir$ac_dir_suffix;
45316 ac_top_srcdir=$srcdir ;;
45317 *) # Relative path.
45318 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45319 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45320esac
ac1cb8d3
VS
45321
45322# Do not use `cd foo && pwd` to compute absolute paths, because
45323# the directories may not exist.
45324case `pwd` in
45325.) ac_abs_builddir="$ac_dir";;
45326*)
45327 case "$ac_dir" in
45328 .) ac_abs_builddir=`pwd`;;
45329 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45330 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45331 esac;;
45332esac
45333case $ac_abs_builddir in
45334.) ac_abs_top_builddir=${ac_top_builddir}.;;
45335*)
45336 case ${ac_top_builddir}. in
45337 .) ac_abs_top_builddir=$ac_abs_builddir;;
45338 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45339 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45340 esac;;
45341esac
45342case $ac_abs_builddir in
45343.) ac_abs_srcdir=$ac_srcdir;;
45344*)
45345 case $ac_srcdir in
45346 .) ac_abs_srcdir=$ac_abs_builddir;;
45347 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45348 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45349 esac;;
45350esac
45351case $ac_abs_builddir in
45352.) ac_abs_top_srcdir=$ac_top_srcdir;;
45353*)
45354 case $ac_top_srcdir in
45355 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45356 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45357 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45358 esac;;
45359esac
a848cd7e
SC
45360
45361
45362 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45363echo "$as_me: executing $ac_dest commands" >&6;}
45364 case $ac_dest in
ceec2216
RL
45365 wx-config ) rm -f wx-config
45366 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45367 ;;
a848cd7e
SC
45368 esac
45369done
45370_ACEOF
45371
45372cat >>$CONFIG_STATUS <<\_ACEOF
45373
45374{ (exit 0); exit 0; }
45375_ACEOF
45376chmod +x $CONFIG_STATUS
45377ac_clean_files=$ac_clean_files_save
45378
45379
45380# configure is writing to config.log, and then calls config.status.
45381# config.status does its own redirection, appending to config.log.
45382# Unfortunately, on DOS this fails, as config.log is still kept open
45383# by configure, so config.status won't be able to write to it; its
45384# output is simply discarded. So we exec the FD to /dev/null,
45385# effectively closing config.log, so it can be properly (re)opened and
45386# appended to by config.status. When coming back to configure, we
45387# need to make the FD available again.
45388if test "$no_create" != yes; then
45389 ac_cs_success=:
45390 ac_config_status_args=
45391 test "$silent" = yes &&
45392 ac_config_status_args="$ac_config_status_args --quiet"
45393 exec 5>/dev/null
45394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45395 exec 5>>config.log
45396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45397 # would make configure fail if this is the last instruction.
45398 $ac_cs_success || { (exit 1); exit 1; }
45399fi
45400
45401#
45402# CONFIG_SUBDIRS section.
45403#
45404if test "$no_recursion" != yes; then
45405
45406 # Remove --cache-file and --srcdir arguments so they do not pile up.
45407 ac_sub_configure_args=
45408 ac_prev=
45409 for ac_arg in $ac_configure_args; do
45410 if test -n "$ac_prev"; then
45411 ac_prev=
45412 continue
45413 fi
45414 case $ac_arg in
45415 -cache-file | --cache-file | --cache-fil | --cache-fi \
45416 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45417 ac_prev=cache_file ;;
45418 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45419 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45420 | --c=*)
45421 ;;
45422 --config-cache | -C)
45423 ;;
45424 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45425 ac_prev=srcdir ;;
45426 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45427 ;;
45428 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45429 ac_prev=prefix ;;
45430 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45431 ;;
45432 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45433 esac
45434 done
45435
45436 # Always prepend --prefix to ensure using the same prefix
45437 # in subdir configurations.
45438 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45439
45440 ac_popdir=`pwd`
45441 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45442
45443 # Do not complain, so a configure script can configure whichever
45444 # parts of a large source tree are present.
45445 test -d $srcdir/$ac_dir || continue
45446
45447 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45448echo "$as_me: configuring in $ac_dir" >&6;}
45449 { if $as_mkdir_p; then
45450 mkdir -p "$ac_dir"
45451 else
45452 as_dir="$ac_dir"
45453 as_dirs=
45454 while test ! -d "$as_dir"; do
45455 as_dirs="$as_dir $as_dirs"
45456 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45457$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45458 X"$as_dir" : 'X\(//\)[^/]' \| \
45459 X"$as_dir" : 'X\(//\)$' \| \
45460 X"$as_dir" : 'X\(/\)' \| \
45461 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45462echo X"$as_dir" |
45463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45465 /^X\(\/\/\)$/{ s//\1/; q; }
45466 /^X\(\/\).*/{ s//\1/; q; }
45467 s/.*/./; q'`
45468 done
45469 test ! -n "$as_dirs" || mkdir $as_dirs
45470 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45471echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45472 { (exit 1); exit 1; }; }; }
45473
45474 ac_builddir=.
45475
45476if test "$ac_dir" != .; then
45477 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45478 # A "../" for each directory in $ac_dir_suffix.
45479 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45480else
45481 ac_dir_suffix= ac_top_builddir=
45482fi
45483
45484case $srcdir in
45485 .) # No --srcdir option. We are building in place.
45486 ac_srcdir=.
45487 if test -z "$ac_top_builddir"; then
45488 ac_top_srcdir=.
45489 else
45490 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45491 fi ;;
45492 [\\/]* | ?:[\\/]* ) # Absolute path.
45493 ac_srcdir=$srcdir$ac_dir_suffix;
45494 ac_top_srcdir=$srcdir ;;
45495 *) # Relative path.
45496 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45497 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45498esac
ac1cb8d3
VS
45499
45500# Do not use `cd foo && pwd` to compute absolute paths, because
45501# the directories may not exist.
45502case `pwd` in
45503.) ac_abs_builddir="$ac_dir";;
45504*)
45505 case "$ac_dir" in
45506 .) ac_abs_builddir=`pwd`;;
45507 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45508 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45509 esac;;
45510esac
45511case $ac_abs_builddir in
45512.) ac_abs_top_builddir=${ac_top_builddir}.;;
45513*)
45514 case ${ac_top_builddir}. in
45515 .) ac_abs_top_builddir=$ac_abs_builddir;;
45516 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45517 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45518 esac;;
45519esac
45520case $ac_abs_builddir in
45521.) ac_abs_srcdir=$ac_srcdir;;
45522*)
45523 case $ac_srcdir in
45524 .) ac_abs_srcdir=$ac_abs_builddir;;
45525 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45526 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45527 esac;;
45528esac
45529case $ac_abs_builddir in
45530.) ac_abs_top_srcdir=$ac_top_srcdir;;
45531*)
45532 case $ac_top_srcdir in
45533 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45534 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45535 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45536 esac;;
45537esac
a848cd7e
SC
45538
45539
45540 cd $ac_dir
45541
45542 # Check for guested configure; otherwise get Cygnus style configure.
45543 if test -f $ac_srcdir/configure.gnu; then
45544 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45545 elif test -f $ac_srcdir/configure; then
45546 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45547 elif test -f $ac_srcdir/configure.in; then
45548 ac_sub_configure=$ac_configure
45549 else
45550 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45551echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45552 ac_sub_configure=
45553 fi
45554
45555 # The recursion is here.
45556 if test -n "$ac_sub_configure"; then
45557 # Make the cache file name correct relative to the subdirectory.
45558 case $cache_file in
45559 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45560 *) # Relative path.
ac1cb8d3 45561 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45562 esac
45563
45564 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45565echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45566 # The eval makes quoting arguments work.
45567 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45568 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45569 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45570echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45571 { (exit 1); exit 1; }; }
45572 fi
45573
dfe0c803 45574 cd $ac_popdir
a848cd7e
SC
45575 done
45576fi
45577
45578
45579echo
77ffb593 45580echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45581echo ""
4d4ff94c 45582echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45583echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45584
77ffb593
JS
45585echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45586echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45587echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45588
77ffb593
JS
45589echo " What level of wxWidgets compatibility should be enabled?"
45590echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45591echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45592
77ffb593 45593echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45594echo " jpeg ${wxUSE_LIBJPEG-none}"
45595echo " png ${wxUSE_LIBPNG-none}"
45596echo " regex ${wxUSE_REGEX}"
45597echo " tiff ${wxUSE_LIBTIFF-none}"
45598if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45599echo " xpm ${wxUSE_LIBXPM-none}"
45600fi
45601echo " zlib ${wxUSE_ZLIB}"
45602echo " odbc ${wxUSE_ODBC}"
45603echo " expat ${wxUSE_EXPAT}"
45604echo " libmspack ${wxUSE_LIBMSPACK}"
45605echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45606echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45607
45608echo ""
45609